1"use strict";(self.webpackChunkamagch=self.webpackChunkamagch||[]).push([[828],{702:function(t,e,n){n.d(e,{j:function(){return o}});var r=n(57226),i=n(58740),a=n(83209);const o=new(n(79507).x)(a.w.FIRST_CONTENTFUL_PAINT);if(i.RI)if(i.sb)try{if(!i.mw){performance.getEntriesByType("paint").forEach((t=>{"first-contentful-paint"===t.name&&o.update({value:Math.floor(t.startTime)})}))}}catch(t){}else(0,r.zB)((({value:t,attribution:e})=>{if(i.mw||o.isValid)return;const n={timeToFirstByte:e.timeToFirstByte,firstByteToFCP:e.firstByteToFCP,loadState:e.loadState};o.update({value:t,attrs:n})}))},41291:function(t,e,n){n.d(e,{J:function(){return a}});var r=n(58740),i=n(83209);const a=new(n(79507).x)(i.w.FIRST_PAINT);if(r.RI){const t=t=>{t.forEach((t=>{"first-paint"!==t.name||a.isValid||(e.disconnect(),a.update({value:t.startTime}))}))};let e;try{PerformanceObserver.supportedEntryTypes.includes("paint")&&!r.mw&&(e=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))})),e.observe({type:"paint",buffered:!0}))}catch(t){}}},57226:function(t,e,n){n.d(e,{Ck:function(){return ct},IN:function(){return F},fK:function(){return it},rH:function(){return et},zB:function(){return A}});var r,i,a=function(){var t=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t},o=function(t){if("loading"===document.readyState)return"loading";var e=a();if(e){if(t<e.domInteractive)return"loading";if(0===e.domContentLoadedEventStart||t<e.domContentLoadedEventStart)return"dom-interactive";if(0===e.domComplete||t<e.domComplete)return"dom-content-loaded"}return"complete"},u=function(t){var e=t.nodeName;return 1===t.nodeType?e.toLowerCase():e.toUpperCase().replace(/^#/,"")},c=function(t,e){var n="";try{for(;t&&9!==t.nodeType;){var r=t,i=r.id?"#"+r.id:u(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+i.length>(e||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;t=r.parentNode}}catch(t){}return n},s=-1,f=function(){return s},d=function(t){addEventListener("pageshow",(function(e){e.persisted&&(s=e.timeStamp,t(e))}),!0)},l=function(){var t=a();return t&&t.activationStart||0},m=function(t,e){var n=a(),r="navigate";return f()>=0?r="back-forward-cache":n&&(document.prerendering||l()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},p=function(t,e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver((function(t){Promise.resolve().then((function(){e(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},h=function(t,e,n,r){var i,a;return function(o){e.value>=0&&(o||r)&&((a=e.value-(i||0))||void 0===i)&&(i=e.value,e.delta=a,e.rating=function(t,e){return t>e[1]?"poor":t>e[0]?"needs-improvement":"good"}(e.value,n),t(e))}},v=function(t){requestAnimationFrame((function(){return requestAnimationFrame((function(){return t()}))}))},g=function(t){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t()}))},T=function(t){var e=!1;return function(){e||(t(),e=!0)}},y=-1,E=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},S=function(t){"hidden"===document.visibilityState&&y>-1&&(y="visibilitychange"===t.type?t.timeStamp:0,C())},b=function(){addEventListener("visibilitychange",S,!0),addEventListener("prerenderingchange",S,!0)},C=function(){removeEventListener("visibilitychange",S,!0),removeEventListener("prerenderingchange",S,!0)},I=function(){return y<0&&(y=E(),b(),d((function(){setTimeout((function(){y=E(),b()}),0)}))),{get firstHiddenTime(){return y}}},w=function(t){document.prerendering?addEventListener("prerenderingchange",(function(){return t()}),!0):t()},M=[1800,3e3],L=function(t,e){e=e||{},w((function(){var n,r=I(),i=m("FCP"),a=p("paint",(function(t){t.forEach((function(t){"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-l(),0),i.entries.push(t),n(!0)))}))}));a&&(n=h(t,i,M,e.reportAllChanges),d((function(r){i=m("FCP"),n=h(t,i,M,e.reportAllChanges),v((function(){i.value=performance.now()-r.timeStamp,n(!0)}))})))}))},_=[.1,.25],F=function(t,e){!function(t,e){e=e||{},L(T((function(){var n,r=m("CLS",0),i=0,a=[],o=function(t){t.forEach((function(t){if(!t.hadRecentInput){var e=a[0],n=a[a.length-1];i&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(i+=t.value,a.push(t)):(i=t.value,a=[t])}})),i>r.value&&(r.value=i,r.entries=a,n())},u=p("layout-shift",o);u&&(n=h(t,r,_,e.reportAllChanges),g((function(){o(u.takeRecords()),n(!0)})),d((function(){i=0,r=m("CLS",0),n=h(t,r,_,e.reportAllChanges),v((function(){return n()}))})),setTimeout(n,0))}
vendor: 5,196 bytes, line 1
1)))}((function(e){var n=function(t){var e,n={};if(t.entries.length){var r=t.entries.reduce((function(t,e){return t&&t.value>e.value?t:e}));if(r&&r.sources&&r.sources.length){var i=(e=r.sources).find((function(t){return t.node&&1===t.node.nodeType}))||e[0];i&&(n={largestShiftTarget:c(i.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:i,largestShiftEntry:r,loadState:o(r.startTime)})}}return Object.assign(t,{attribution:n})}(e);t(n)}),e)},A=function(t,e){L((function(e){var n=function(t){var e={timeToFirstByte:0,firstByteToFCP:t.value,loadState:o(f())};if(t.entries.length){var n=a(),r=t.entries[t.entries.length-1];if(n){var i=n.activationStart||0,u=Math.max(0,n.responseStart-i);e={timeToFirstByte:u,firstByteToFCP:t.value-u,loadState:o(t.entries[0].startTime),navigationEntry:n,fcpEntry:r}}}return Object.assign(t,{attribution:e})}(e);t(n)}),e)},P=0,D=1/0,k=0,x=function(t){t.forEach((function(t){t.interactionId&&(D=Math.min(D,t.interactionId),k=Math.max(k,t.interactionId),P=k?(k-D)/7+1:0)}))},N=function(){return r?P:performance.interactionCount||0},R=function(){"interactionCount"in performance||r||(r=p("event",x,{type:"event",buffered:!0,durationThreshold:0}))},B=[],O=new Map,q=0,j=[],U=function(t){if(j.forEach((function(e){return e(t)})),t.interactionId||"first-input"===t.entryType){var e=B[B.length-1],n=O.get(t.interactionId);if(n||B.length<10||t.duration>e.latency){if(n)t.duration>n.latency?(n.entries=[t],n.latency=t.duration):t.duration===n.latency&&t.startTime===n.entries[0].startTime&&n.entries.push(t);else{var r={id:t.interactionId,latency:t.duration,entries:[t]};O.set(r.id,r),B.push(r)}B.sort((function(t,e){return e.latency-t.latency})),B.length>10&&B.splice(10).forEach((function(t){return O.delete(t.id)}))}}},V=function(t){var e=self.requestIdleCallback||self.setTimeout,n=-1;return t=T(t),"hidden"===document.visibilityState?t():(n=e(t),g(t)),n},H=[200,500],z=function(t,e){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(e=e||{},w((function(){var n;R();var r,i=m("INP"),a=function(t){V((function(){t.forEach(U);var e=function(){var t=Math.min(B.length-1,Math.floor((N()-q)/50));return B[t]}();e&&e.latency!==i.value&&(i.value=e.latency,i.entries=e.entries,r())}))},o=p("event",a,{durationThreshold:null!==(n=e.durationThreshold)&&void 0!==n?n:40});r=h(t,i,H,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),g((function(){a(o.takeRecords()),r(!0)})),d((function(){q=N(),B.length=0,O.clear(),i=m("INP"),r=h(t,i,H,e.reportAllChanges)})))})))},W=[],Y=[],G=0,J=new WeakMap,K=new Map,X=-1,Q=function(t){W=W.concat(t),Z()},Z=function(){X<0&&(X=V($))},$=function(){K.size>10&&K.forEach((function(t,e){O.has(e)||K.delete(e)}));var t=B.map((function(t){return J.get(t.entries[0])})),e=Y.length-50;Y=Y.filter((function(n,r){return r>=e||t.includes(n)}));for(var n=new Set,r=0;r<Y.length;r++){var i=Y[r];tt(i.startTime,i.processingEnd).forEach((function(t){n.add(t)}))}var a=W.length-1-50;W=W.filter((function(t,e){return t.startTime>G&&e>a||n.has(t)})),X=-1};j.push((function(t){t.interactionId&&t.target&&!K.has(t.interactionId)&&K.set(t.interactionId,t.target)}),(function(t){var e,n=t.startTime+t.duration;G=Math.max(G,t.processingEnd);for(var r=Y.length-1;r>=0;r--){var i=Y[r];if(Math.abs(n-i.renderTime)<=8){(e=i).startTime=Math.min(t.startTime,e.startTime),e.processingStart=Math.min(t.processingStart,e.processingStart),e.processingEnd=Math.max(t.processingEnd,e.processingEnd),e.entries.push(t);break}}e||(e={startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,renderTime:n,entries:[t]},Y.push(e)),(t.interactionId||"first-input"===t.entryType)&&J.set(t,e),Z()}));var tt=function(t,e){for(var n,r=[],i=0;n=W[i];i++)if(!(n.startTime+n.duration<t)){if(n.startTime>e)break;r.push(n)}return r},et=function(t,e){i||(i=p("long-animation-frame",Q)),z((function(e){var n=function(t){var e=t.entries[0],n=J.get(e),r=e.processingStart,i=n.processingEnd,a=n.entries.sort((function(t,e){return t.processingStart-e.processingStart})),u=tt(e.startTime,i),s=t.entries.find((function(t){return t.target})),f=s&&s.target||K.get(e.interactionId),d=[e.startTime+e.duration,i].concat(u.map((function(t){return t.startTime+t.duration}))),l=Math.max.apply(Math,d),m={interactionTarget:c(f),interactionTargetElement:f,interactionType:e.name.startsWith("key")?"keyboard":"pointer",interactionTime:e.startTime,nextPaintTime:l,processedEventEntries:a,longAnimationFrameEntries:u,inputDelay:r-e.startTime,processingDuration:i-r,presentationDelay:Math.max(l-i,0),loadState:o(e.startTime)};return Object.assign(t,{attribution:m})}(e);t(n)}),e)},nt=[2500,4e3],rt={},it=function(t,e){!function(t,e){e=e||{},w((function(){var n,r=I(),i=m("LCP"),a=function(t){e.reportAllChanges||(t=t.slice(-1)),t.forEach((function(t){t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-l(),0),i.entries=[t],n())}))},o=p("largest-contentful-paint",a);if(o){n=h(t,i,nt,e.reportAllChanges);var u=T((function(){rt[i.id]||(a(o.takeRecords()),o.disconnect(),rt[i.id]=!0,n(!0))}));["keydown","click"].forEach((function(t){addEventListener(t,(function(){return V(u)}),{once:!0,capture:!0})}
1)),g(u),d((function(r){i=m("LCP"),n=h(t,i,nt,e.reportAllChanges),v((function(){i.value=performance.now()-r.timeStamp,rt[i.id]=!0,n(!0)}))}))}}))}((function(e){var n=function(t){var e={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:t.value};if(t.entries.length){var n=a();if(n){var r=n.activationStart||0,i=t.entries[t.entries.length-1],o=i.url&&performance.getEntriesByType("resource").filter((function(t){return t.name===i.url}))[0],u=Math.max(0,n.responseStart-r),s=Math.max(u,o?(o.requestStart||o.startTime)-r:0),f=Math.max(s,o?o.responseEnd-r:0),d=Math.max(f,i.startTime-r);e={element:c(i.element),timeToFirstByte:u,resourceLoadDelay:s-u,resourceLoadDuration:f-s,elementRenderDelay:d-f,navigationEntry:n,lcpEntry:i},i.url&&(e.url=i.url),o&&(e.lcpResourceEntry=o)}}return Object.assign(t,{attribution:e})}(e);t(n)}),e)},at=[800,1800],ot=function t(e){document.prerendering?w((function(){return t(e)})):"complete"!==document.readyState?addEventListener("load",(function(){return t(e)}),!0):setTimeout(e,0)},ut=function(t,e){e=e||{};var n=m("TTFB"),r=h(t,n,at,e.reportAllChanges);ot((function(){var i=a();i&&(n.value=Math.max(i.responseStart-l(),0),n.entries=[i],r(!0),d((function(){n=m("TTFB",0),(r=h(t,n,at,e.reportAllChanges))(!0)})))}))},ct=function(t,e){ut((function(e){var n=function(t){var e={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(t.entries.length){var n=t.entries[0],r=n.activationStart||0,i=Math.max((n.workerStart||n.fetchStart)-r,0),a=Math.max(n.domainLookupStart-r,0),o=Math.max(n.connectStart-r,0),u=Math.max(n.connectEnd-r,0);e={waitingDuration:i,cacheDuration:a-i,dnsDuration:o-a,connectionDuration:u-o,requestDuration:t.value-u,navigationEntry:n}}return Object.assign(t,{attribution:e})}(e);t(n)}),e)};new Date},79507:function(t,e,n){n.d(e,{x:function(){return r}});class r{#t=new Set;history=[];constructor(t,e){this.name=t,this.attrs={},this.roundingMethod="function"==typeof e?e:Math.floor}update({value:t,attrs:e={}}){if(null==t||t<0)return;const n={value:this.roundingMethod(t),name:this.name,attrs:e};this.history.push(n),this.#t.forEach((t=>{try{t(n)}catch(t){}}))}get current(){return this.history[this.history.length-1]||{value:void 0,name:this.name,attrs:{}}}get isValid(){return this.current.value>=0}subscribe(t,e=!0){if("function"==typeof t)return this.#t.add(t),this.isValid&&e&&this.history.forEac
1h((e=>{t(e)})),()=>{this.#t.delete(t)}}}},83209:function(t,e,n){n.d(e,{w:function(){return r}});const r={FIRST_PAINT:"fp",FIRST_CONTENTFUL_PAINT:"fcp",FIRST_INTERACTION:"fi",LARGEST_CONTENTFUL_PAINT:"lcp",LOAD_TIME:"load",CUMULATIVE_LAYOUT_SHIFT:"cls",INTERACTION_TO_NEXT_PAINT:"inp",TIME_TO_FIRST_BYTE:"ttfb"}},91823:function(t,e,n){n.d(e,{eM:function(){return p},si:function(){return h},ss:function(){return m}});var r="Start",i="End",a="unloadEvent",o="redirect",u="domainLookup",c="onnect",s="request",f="response",d="loadEvent",l="domContentLoadedEvent";const m=[];function p(t,e,n={},m=!1){if(e)return n.of=t,v(n.of,n,"n",!0),v(e[a+r],n,"u",m),v(e[o+r],n,"r",m),v(e[a+i],n,"ue",m),v(e[o+i],n,"re",m),v(e["fetch"+r],n,"f",m),v(e[u+r],n,"dn",m),v(e[u+i],n,"dne",m),v(e["c"+c+r],n,"c",m),v(e["secureC"+c+"ion"+r],n,"s",m),v(e["c"+c+i],n,"ce",m),v(e[s+r],n,"rq",m),v(e[f+r],n,"rp",m),v(e[f+i],n,"rpe",m),v(e.domLoading,n,"dl",m),v(e.domInteractive,n,"di",m),v(e[l+r],n,"ds",m),v(e[l+i],n,"de",m),v(e.domComplete,n,"dc",m),v(e[d+r],n,"l",m),v(e[d+i],n,"le",m),n}function h(t,e){try{v("number"==typeof(n=t.type)?n:{navigate:void 0,reload:1,back_forward:2,prerender:3}[n],e,"ty"),v(t.redirectCount,e,"rc")}catch(t){e.ty=0,e.rc=0}var n;return e}function v(t,e,n,r){if("number"==typeof t&&t>0){if(r){const n=e?.of>0?e.of:0;t=Math.max(t-n,0)}t=Math.round(t),e[n]=t,m.push(t)}else m.push(void 0)}},98689:function(t,e,n){n.d(e,{R:function(){return i}});var r=n(58740);const i=(()=>{try{if("undefined"!=typeof navigator&&!0===navigator.webdriver)return!0;if(r.RI){if(document.__webdriver_evaluate||document.__selenium_unwrapped||document.__driver_evaluate||document.__webdriver_script_function)return!0;if(window.callPhantom||window._phantom)return!0;if(window.__nightmare)return!0}return!1}catch(t){return!1}})()}}]); 2/*! For license information please see 901.js.LICENSE.txt */ 3"use strict";(self.webpackChunkamagch=self.webpackChunkamagch||[]).push([[901],{9281:function(e,t,r){r.d(t,{Z:function(){return i}});var s=r(21690),a=r(97517);class i{#e=[];#t=0;#r;#s;constructor(e=a.It,t){this.maxPayloadSize=e,this.featureAgg=t}get length(){return this.#e.length}isEmpty(){return 0===this.#e.length}get(){return this.#e}byteSize(){return this.#t}wouldExceedMaxSize(e){return this.#t+e>this.maxPayloadSize}add(e,t){const r=t||(0,s.A)(e)?.length||0;if(this.#t+r>this.maxPayloadSize){const e=e=>"EventBuffer/".concat(e,"/Dropped/Bytes");return this.featureAgg?.reportSupportabilityMetric(e(this.featureAgg.featureName),r),this.featureAgg?.reportSupportabilityMetric(e("Combined"),r),!1}return this.#e.push(e),this.#t+=r,this.featureAgg?.decideEarlyHarvest(),!0}merge(e,t){if(this.isEmpty()||!e)return!1;const r=this.#e.findIndex(e);return!(r<0)&&(this.#e[r]={...this.#e[r],...t},!0)}clear(e={}){void 0!==e.clearBeforeTime&&e.timestampKey?this.#e=this.#e.filter((t=>t[e.timestampKey]>=e.clearBeforeTime)):void 0!==e.clearBeforeIndex?this.#e=this.#e.slice(e.clearBeforeIndex):this.#e=[],this.#t=this.#e.length&&(0,s.A)(this.#e)?.length||0}save(){this.#r=this.#e,this.#s=this.#t}clearSave(){this.#r=void 0,this.#s=void 0}reloadSave(){this.#r&&(this.#s+this.#t>this.maxPayloadSize||(this.#e=[...this.#r,...this.#e],this.#t=this.#s+this.#t))}}},29017:function(e,t,r){r.d(t,{P:function(){return k},t:function(){return w}});var s=r(7187),a=r(19470),i=r(5928),n=r(58740),o=r(34842),u=r(17508),c=r(31609),h=r(62449);if(n.bv){n.gm.cleanupTasks=[];const e=n.gm.close;n.gm.close=()=>{for(let e of n.gm.cleanupTasks)e();e()}}var f=r(18897),g=r(66600),d=r(49674),l=r(21690),p=r(85668),m=r(71999);const v="Harvester/Retry/",y=v+"Attempted/",b=v+"Failed/",R=v+"Succeeded/";class k{#a=!1;initializedAggregates=[];constructor(e){var t,r;this.agentRef=e,t=()=>
3{this.initializedAggregates.forEach((e=>{"function"==typeof e.harvestOpts.beforeUnload&&e.harvestOpts.beforeUnload()})),this.initializedAggregates.forEach((e=>this.triggerHarvestFor(e,{isFinalHarvest:!0})))},r=!1,n.RI?(0,h.u)(t,!0,r):n.bv&&n.gm.cleanupTasks.push(t)}startTimer(e=this.agentRef.init.harvest.interval){if(this.#a)return;this.#a=!0;const t=()=>{this.initializedAggregates.forEach((e=>this.triggerHarvestFor(e))),setTimeout(t,1e3*e)};setTimeout(t,1e3*e)}triggerHarvestFor(e,t={}){const r={ranSend:!1,payload:void 0,endpointVersion:e.harvestEndpointVersion||1};if(e.blocked)return r;if(this.agentRef.init?.browser_consent_mode?.enabled&&!this.agentRef.runtime.consented)return r;const i=(0,p.mj)(t);if(!i)return r;const n=!t.isFinalHarvest&&i===p.nF;return r.payload=e.makeHarvestPayload(n,t),r.payload?(w(this.agentRef,{endpoint:a.$J[e.featureName],payload:r.payload,localOpts:t,submitMethod:i,cbFinished:function(r){if(e.harvestOpts.prevAttemptCode){const t=t=>(0,o.p)(s.xV,[t],void 0,a.K7.metrics,e.ee);t(y+e.featureName),t((r.retry?b:R)+e.harvestOpts.prevAttemptCode),delete e.harvestOpts.prevAttemptCode}r.retry&&(e.harvestOpts.prevAttemptCode=r.status);t.forceNoRetry&&(r.retry=!1);e.postHarvestCleanup(r)},raw:e.harvestOpts.raw,featureName:e.featureName,endpointVersion:r.endpointVersion}),r.ranSend=!0,r):r}}const B={};function w(e,{endpoint:t,payload:r,localOpts:s={},submitMethod:h,cbFinished:v,raw:y,featureName:b,endpointVersion:R=1}){if(!e.info.errorBeacon)return!1;let{body:k,qs:w}=function(e={}){const t=e=>"undefined"!=typeof Uint8Array&&e instanceof Uint8Array||Array.isArray(e)||"string"==typeof e?e:Object.entries(e||{}).reduce(((e,[t,r])=>(("number"==typeof r||"string"==typeof r&&r.length>0||"object"==typeof r&&Object.keys(r||{}).length>0)&&(e[t]=r),e)),{});return{body:t(e.body),qs:t(e.qs)}}(r);if(0===Object.keys(k).length&&!s.sendEmptyBody)return v&&v({sent:!1}),!1;const x=!1===e.init.ssl?"http":"https",A=e.init.proxy.beacon||e.info.errorBeacon,S=y?"".concat(x,"://").concat(A,"/").concat(t):"".concat(x,"://").concat(A).concat(t!==a.v4?"/"+t:"","/").concat(R,"/").concat(e.info.licenseKey),E=y?"":function(e,t,r){const s=e.runtime.obfuscator.obfuscateString((0,f.L)(""+n.gm.location)),o=e.runtime.session,u=!!o?.state.sessionReplaySentFirstChunk&&1===o?.state.sessionReplayMode&&r!==a.XX,h=!!o?.state.traceHarvestStarted&&1===o?.state.sessionTraceMode&&![a.Yy,a.df].includes(r),d=["a="+e.info.applicationID,(0,g.uR)("sa",e.info.sa?""+e.info.sa:""),(0,g.uR)("v",i.xv),l(),(0,g.uR)("ct",e.runtime.customTransaction),"&rst="+(0,c.t)(),"&ck=0","&s="+(o?.state.value||"0"),(0,g.uR)("ref",s),(0,g.uR)("ptid",e.runtime.ptid?""+e.runtime.ptid:"")];u&&d.push((0,g.uR)("hr","1",t));h&&d.push((0,g.uR)("ht","1",t));return d.join("");function l(){return e.info.transactionName?(0,g.uR)("to",e.info.transactionName):(0,g.uR)("t",e.info.tNamePlain||"Unnamed Transaction")}}(e,w,t);let O=(0,g.WL)(w,e.runtime.maxBytes);""===E&&O.startsWith("&")&&(O=O.substring(1));const T="".concat(S,"?").concat(E).concat(O);let F=!!w?.attributes?.includes("gzip")||t===a.qY?k:(0,l.A)(k);F&&0!==F.length&&"{}"!==F&&"[]"!==F||(F=""),t!==a.df&&F.length>75e4&&1===(B[t]=(B[t]||0)+1)&&(0,d.R)(28,t);const H=[{key:"content-type",value:"text/plain"}];let j=h({url:T,body:F,sync:s.isFinalHarvest&&n.bv,headers:H});if(!s.isFinalHarvest&&v){function M(){try{if(b===a.K7.jserrors&&!k?.err)return;const t=E.includes("hr=1"),r=E.includes("ht=1"),s=w?.attributes?.includes("hasError=true");(0,o.p)("harvest-metadata",[{[b]:{...t&&{hasReplay:t},...r&&{hasTrace:r},...s&&{hasError:s}}}],void 0,a.K7.metrics,e.ee)}catch(e){}}h===p.nF?j.addEventListener("loadend",(function(){const e={sent:0!==this.status,status:this.status,retry:C(this.status),fullUrl:T,xhr:this,responseText:this.responseText};v(e),C(this.status)||M()}),(0,u.jT)(!1)):h===p.Jf&&j.then((async function(e){const t=e.status,r={sent:!0,status:t,retry:C(t),fullUrl:T,fetchResponse:e,responseText:await e.text()};v(r),C(t)||M()}))}return(0,m.W)({drained:!!e.runtime?.activatedFeatures,type:"data",name:"harvest",feature:b,data:{endpoint:t,headers:H,payload:r,submitMethod:h===p.nF?"xhr":h===p.Jf?"fetch":"beacon",raw:y,synchronousXhr:!(!s.isFinalHarvest||!n.bv)}}),!0;function C(e){switch(e){case 408:case 429:case 500:return!0}return e>=502&&e<=504||e>=512&&e<=530}}},66600:function(e,t,r){r.d(t,{WL:function(){return c},uR:function(){return h}});var s=r(21690),a={"%2C":",","%3A":":","%2F":"/","%40":"@","%24":"$","%3B":";"},i=Object.keys(a),n=new RegExp(i.join("|"),"g");function o(e){return a[e]}function u(e){return null==e?"null":encodeURIComponent(e).replace(n,o)}function c(e,t){var r=0,a="";return Object.entries(e||{}
3).forEach((([e,i])=>{var n,o,c=[];if("string"==typeof i||!Array.isArray(i)&&null!=i&&i.toString().length)n="&"+e+"="+u(i),r+=n.length,a+=n;else if(Array.isArray(i)&&i.length){for(r+=9,o=0;o<i.length&&(n=u((0,s.A)(i[o])),r+=n.length,!(void 0!==t&&r>=t));o++)c.push(n);a+="&"+e+"=%5B"+c.join(",")+"%5D"}})),a}function h(e,t,r={}){return Object.keys(r).includes(e)?"":t&&"string"==typeof t?"&"+e+"="+u(t):""}},75901:function(e,t,r){r.d(t,{r:function(){return k}});var s=r(87688),a=r(29077),i=r(18795),n=r(21966),o=r(96657),u=r(89274),c=r(49674);class h{constructor(e){this.agentRef=e,this.warnedRegexMissing=!1,this.warnedInvalidRegex=!1,this.warnedInvalidReplacement=!1}get obfuscateConfigRules(){return this.agentRef.init.obfuscate||[]}obfuscateString(e){if("string"!=typeof e||0===e.trim().length)return e;const t=this.obfuscateConfigRules.map((e=>this.validateObfuscationRule(e)));return(0,u.p)()&&t.push({regex:/^file:\/\/(.*)/,replacement:atob("ZmlsZTovL09CRlVTQ0FURUQ=")}),t.filter((e=>e.isValid)).reduce(((e,t)=>{const{rule:r}=t;return e.replace(r.regex,r.replacement||"*")}),e)}validateObfuscationRule(e){const t=Boolean(void 0===e.regex),r=Boolean(void 0!==e.regex&&"string"!=typeof e.regex&&!(e.regex instanceof RegExp)),s=Boolean(e.replacement&&"string"!=typeof e.replacement);return t&&!this.warnedRegexMissing?((0,c.R)(12,e),this.warnedRegexMissing=!0):r&&!this.warnedInvalidRegex&&((0,c.R)(13,e),this.warnedInvalidRegex=!0),s&&!this.warnedInvalidReplacement&&((0,c.R)(14,e),this.warnedInvalidReplacement=!0),{rule:e,isValid:!t&&!r&&!s,errors:{regexMissingDetected:t,invalidRegexDetected:r,invalidReplacementDetected:s}}}}var f=r(19470),g=r(29017),d=r(9281),l=r(34842),p=r(7187);class m{constructor(){this.aggregatedData={}}store(e,t,r,s,a){var i=this.#i(e,t,r,a);return i.metrics=function(e,t){t||(t={count:0});return t.count+=1,Object.entries(e||{}).forEach((([e,r])=>{t[e]=v(r,t[e])})),t}(s,i.metrics),i}merge(e,t,r,s,a,i=!1){var n=this.#i(e,t,s,a);if(i&&(n.params=s),n.metrics){var o=n.metrics;o.count+=r.count,Object.keys(r||{}).forEach((e=>{if("count"!==e){var t=o[e],s=r[e];s&&!s.c?o[e]=v(s.t,t):o[e]=function(e,t){if(!t)return e;t.c||(t=y(t.t));return t.min=Math.min(e.min,t.min),t.max=Math.max(e.max,t.max),t.t+=e.t,t.sos+=e.sos,t.c+=e.c,t}(s,o[e])}}))}else n.metrics=r}storeMetric(e,t,r,s){var a=this.#i(e,t,r);return a.stats=v(s,a.stats),a}take(e,t=!0){for(var r={},s="",a=!1,i=0;i<e.length;i++)r[s=e[i]]=Object.values(this.aggregatedData[s]||{}),r[s].length&&(a=!0),t&&delete this.aggregatedData[s];return a?r:null}#i(e,t,r,s){this.aggregatedData[e]||(this.aggregatedData[e]={});var a=this.aggregatedData[e][t];return a||(a=this.aggregatedData[e][t]={params:r||{}},s&&(a.custom=s)),a}}function v(e,t){return null==e?function(e){e?e.c++:e={c:1};return e}(t):t?(t.c||(t=y(t.t)),t.c+=1,t.t+=e,t.sos+=e*e,e>t.max&&(t.max=e),e<t.min&&(t.min=e),t):{t:e}}function y(e){return{t:e,min:e,max:e,sos:e*e,c:1}}class b{#n=new m;#o={};byteSize(){return 0}isEmpty({aggregatorTypes:e}){return e?e.every((e=>!this.#n.aggregatedData[e])):0===Object.keys(this.#n.aggregatedData).length}add([e,t,r,s,a]){return this.#n.store(e,t,r,s,a),!0}addMetric(e,t,r,s){return this.#n.storeMetric(e,t,r,s),!0}save({aggregatorTypes:e}){const t=e.toString(),r={};e.forEach((e=>r[e]=this.#n.aggregatedData[e])),this.#o[t]=r}get(e){const t=Array.isArray(e)?e:e.aggregatorTypes;return this.#n.take(t,!1)}clear({aggregatorTypes:e}={}){e?e.forEach((e=>delete this.#n.aggregatedData[e])):this.#n.aggregatedData={}}reloadSave({aggregatorTypes:e}){const t=e.toString(),r=this.#o[t];e.forEach((e=>{Object.keys(r[e]||{}).forEach((t=>{const s=r[e][t];this.#n.merge(e,t,s.metrics,s.params,s.custom,!0)}))}))}clearSave({aggregatorTypes:e}){const t=e.toString();delete this.#o[t]}}var R=r(97517);class k extends s.W{constructor(e,t){super(e,t),this.checkConfiguration(e),this.doOnceForAllAggregate(e),this.customAttributesAreSeparate=!1,this.canHarvestEarly=!0,this.isRetrying=!1,this.harvestOpts={},this.#u(),this.waitForDrain()}#u(){if(!this.events)switch(this.featureName){case f.K7.sessionReplay:break;case f.K7.jserrors:case f.K7.metrics:this.events=this.agentRef.sharedAggregator??=new b;break;default:this.events=new d.Z(R.It,this)}}get supportsRegisteredEntities(){return this.featureName in R.KC&&(R.KC[this.featureName]||this.agentRef.init.feature_flags.includes("register."+this.featureName))}get harvestEndpointVersion(){return this.supportsRegisteredEntities&&this.agentRef.runtime.registeredEntities.length?2:1}waitForDrain(){this.ee.on("drain-"+this.featureName,(()=>{this.drained||setTimeout((()=>this.agentRef.runtime.harvester.triggerHarvestFor(this)),1),this.drained=!0}))}decideEarlyHarvest(){if(!this.canHarvestEarly||this.blocked||this.isRetrying)return;const e=this.events.byteSize()+(this.customAttributesAreSeparate?this.agentRef.runtime.jsAttributesMetadata.bytes:0);e>R.No&&(this.agentRef.runtime.harvester.triggerHarvestFor(this),this.reportSupportabilityMetric("".concat(this.featureName,"/Harvest/Early/Seen"),e))}waitForFlags(e=[]){return new Promise(((t,r)=>{function s(t){return e.map((e=>t[e]?t[e]:0))}this.agentRef.runtime?.activatedFeatures?t(s(this.agentRef.runtime.activatedFeatures)):this.ee.on("rumresp",((e={})=>{t(s(e))}))})).catch((e=>{this.ee.emit("internal-error",[e]),this.blocked=!0,this.deregisterDrain()}))}drain(){(0,o.Ze)(this.agentRef,this.featureName)}preHarvestChecks(e){return!this.blocked&&!this.ee.aborted}makeHarvestPayload(e=!1,t={}){if(!this.events||this.events.isEmpty(this.harvestOpts))return;if(this.preHarvestChecks&&!this.preHarvestChecks(t))return;e&&this.events.save(this.harvestOpts);const r=this.events.get(this.harvestOpts);if(!r)return;this.events.clear(this.harvestOpts);const s={body:this.serializer?this.serializer(r):r};return this.queryStringsBuilder&&(s.qs=this.queryStringsBuilder(r)),s}postHarvestCleanup(e={}){this.isRetrying=e.sent&&e.retry,this.isRetrying&&this.events.reloadSave(this.harvestOpts),this.events.clearSave(this.harvestOpts)}checkConfiguration(e){if(!(0,a.f)(e.info)){const t=(0,n.pV)();let r={...t.info?.jsAttributes};try{r={...r,...e.info?.jsAttributes}}catch(e){}(0,i.j)(e,{...t,info:{...t.info,jsAttributes:r},runtime:e.runtime},e.runtime.loaderType)}}doOnceForAllAggregate(e){e.runtime.obfuscator||(e.runtime.obfuscator=new h(e)),this.obfuscator=e.runtime.obfuscator,e.runtime.harvester||(e.runtime.harvester=new g.P(e))}reportSupportabilityMetric(e,t){(0,l.p)(p.xV,[e,t],void 0,f.K7.metrics,this.ee)}}},85668:function(e,t,r){r.d(t,{Jf:function(){return i},mj:function(){return a},nF:function(){return n}});var s=r(58740);function a({isFinalHarvest:e=!1}={}){return e&&s.RI?o:"undefined"!=typeof XMLHttpRequest?n:i}function i({url:e,body:t=null,method:r="POST",headers:s=[{key:"content-type",value:"text/plain"}
3]}){const a={};for(const e of s)a[e.key]=e.value;return fetch(e,{headers:a,method:r,body:t})}function n({url:e,body:t=null,sync:r,method:s="POST",headers:a=[{key:"content-type",value:"text/plain"}]}){const i=new XMLHttpRequest;return i.open(s,e,!r),a.forEach((e=>{i.setRequestHeader(e.key,e.value)})),i.send(t),i}function o({url:e,body:t}){try{return window.navigator.sendBeacon.bind(window.navigator)(e,t)}catch(e){return!1}}},89274:function(e,t,r){r.d(t,{p:function(){return a}});var s=r(58740);function a(){return Boolean("file:"===s.gm?.location?.protocol)}}}]); 4"use strict";(self.webpackChunkamagch=self.webpackChunkamagch||[]).push([[211],{48861:function(t,e,r){r.d(e,{AQ:function(){return c},me:function(){return a},sH:function(){return o},uJ:function(){return u}});var n=r(21690),i=Object.prototype.hasOwnProperty,s=64;function a(t,e,r){return t||0===t||""===t?e(t)+(r?",":""):"!"}function o(t,e){return e?Math.floor(t).toString(36):void 0===t||0===t?"":Math.floor(t).toString(36)}function u(t){let e=0;const r=Object.prototype.hasOwnProperty.call(Object,"create")?Object.create(null):{};return function(n){if(void 0===n||""===n)return"";return n=t.obfuscateString(String(n)),i.call(r,n)?o(r[n],!0):(r[n]=e++,function(t){return"'"+t.replace(p,"\\$1")}(n))}}function c(t,e){var r=[];return Object.entries(t||{}).forEach((([t,i])=>{if(!(r.length>=s)){var a,o=5;switch(t=e(t),typeof i){case"object":i?a=e((0,n.A)(i)):o=9;break;case"number":o=6,a=i%1?i:i+".";break;case"boolean":o=i?7:8;break;case"undefined":o=9;break;default:a=e(i)}r.push([o,t+(a?","+a:"")])}})),r}var p=/([,\\;])/g},53200:function(t,e,r){r.r(e),r.d(e,{Aggregate:function(){return b}});var n=r(72024),i=r(21690),s=r(34842),a=r(44897),o=r(51914),u=r(19470),c=r(75901),p=r(77218);function h({body:t,query:e}={}){if(t||e)try{const r=function(t){if(!t)return;Array.isArray(t)||(t=[t]);const e=[],r=[];for(let n of t){const t=f(n);t&&(e.push(t.operationName),r.push(t.operationType))}if(!r.length)return;return{operationName:e.join(","),operationType:r.join(","),operationFramework:"GraphQL"}}(d(t));if(r)return r;const n=f(function(t){if(!t||"string"!=typeof t)return;const e=new URLSearchParams(t);return d(Object.fromEntries(e))}(e));if(n)return n}catch(t){}}function f(t){if("object"!=typeof t||!t.query||"string"!=typeof t.query)return;const e=t.query.trim().match(/^(query|mutation|subscription)\s?(\w*)/),r=e?.[1];if(!r)return;return{operationName:t.operationName||e?.[2]||"Anonymous",operationType:r,operationFramework:"GraphQL"}}function d(t){let e;if(!t||"string"!=typeof t&&"object"!=typeof t)return;if(e="string"==typeof t?JSON.parse(t):t,!(0,p.a)(e)&&!Array.isArray(e))return;let r=!1;return r=Array.isArray(e)?e.some((t=>l(t))):l(e),r?e:void 0}function l(t){return!("object"!=typeof t||!t.query||"string"!=typeof t.query)}var g=r(48861),m=r(21966),y=r(2822);class b extends c.r{static featureName=o.T;constructor(t){super(t,o.T),(0,a.Xv)(t.runtime.denyList);const e=this;t.init.ajax.block_internal?super.customAttributesAreSeparate=!0:super.canHarvestEarly=!1,(0,n.i)("returnAjax",(t=>this.events.add(t)),this.featureName,this.ee),(0,n.i)("xhr",(function(t,r,n,i,s,a){e.storeXhr(t,r,n,i,s,a,this)}),this.featureName,this.ee),this.ee.on("long-task",((t,e)=>{if(e instanceof(0,m.dV)().o.XHR){this.ee.context(e).latestLongtaskEnd=t.end}})),this.waitForFlags([]).then((()=>this.drain()))}storeXhr(t,e,r,n,o,c,p){let f;e.time=r,f=t.cat?(0,i.A)([t.status,t.cat]):(0,i.A)([t.status,t.host,t.pathname]);const d=(0,a.gX)(t),l=this.agentRef.init.feature_flags?.includes("ajax_metrics_deny_list");if(!Boolean(this.agentRef.features?.[u.K7.jserrors])||!d&&l||this.agentRef.sharedAggregator?.add(["xhr",f,t,e]),!d)return void(t.hostname===this.agentRef.info.errorBeacon||this.agentRef.init.proxy?.beacon&&t.hostname===this.agentRef.init.proxy.beacon?(this.reportSupportabilityMetric("Ajax/Events/Excluded/Agent"),l&&this.reportSupportabilityMetric("Ajax/Metrics/Excluded/Agent")):(this.reportSupportabilityMetric("Ajax/Events/Excluded/App"),l&&this.reportSupportabilityMetric("Ajax/Metrics/Excluded/App")));(0,s.p)("bstXhrAgg",["xhr",f,t,e],void 0,u.K7.sessionTrace,this.ee);const g={method:t.method,status:t.status,domain:t.host,path:t.pathname,requestSize:e.txSize,responseSize:e.rxSize,type:o,startTime:r,endTime:n,callbackDuration:e.cbTime};p.dt&&(g.spanId=p.dt.spanId,g.traceId=p.dt.traceId,g.spanTimestamp=Math.floor(this.agentRef.runtime.timeKeeper.correctAbsoluteTimestamp(p.dt.timestamp))),g.gql=t.gql=h({body:p.body,query:p.parsedOrigin?.search}),g.gql&&this.reportSupportabilityMetric("Ajax/Events/GraphQL/Bytes-Added",(0,i.A)(g.gql).length),c?(this.events.add({...g,targetAttributes:(0,y.Ux)(c,this)}),(0,y.B5)(c,this)&&this.reportContainerEvent({...g,targetAttributes:(0,y.YA)(c,this)},p)):this.reportContainerEvent(g,p)}reportContainerEvent(t,e){Boolean(this.agentRef.features?.[u.K7.softNav])?(0,s.p)("ajax",[t,e],void 0,u.K7.softNav,this.ee):this.events.add(t)}serializer(t){if(!t.length)return;const e=(0,g.uJ)(this.agentRef.runtime.obfuscator);let r="bel.7;",n=0;for(let i=0;i<t.length;i++){const s=t[i],a=s.startTime-n;0===i&&(n=s.startTime);const o=[(0,g.sH)(a),(0,g.sH)(s.endTime-s.startTime),(0,g.sH)(0),(0,g.sH)(0),e(s.method),(0,g.sH)(s.status),e(s.domain),e(s.path),(0,g.sH)(s.requestSize),(0,g.sH)(s.responseSize),"fetch"===s.type?1:"",e(0),(0,g.me)(s.spanId,e,!0)+(0,g.me)(s.traceId,e,!0)+(0,g.me)(s.spanTimestamp,g.sH,!1)];let u="2,";const c=this.agentRef.info.jsAttributes,p=(0,g.AQ)({...c||{},...s.gql||{},...s.targetAttributes||{}},e);o.unshift((0,g.sH)(p.length)),u+=o.join(","),p&&p.length>0&&(u+=";"+p.join(";")),i+1<t.length&&(u+=";"),r+=u}return r}}},77218:function(t,e,r){function n(t){return t?.constructor==={}.constructor}r.d(e,{a:function(){return n}})}}]); 5/*! For license information please see amagch.js.LICENSE.txt */ 6(function(){var __webpack_modules__={276:function(e,t,n){"use strict";n.d(t,{AM:function(){return o},O2:function(){return d},OV:function(){return i},Qu:function(){return h},TZ:function(){return c},ih:function(){return p},pP:function(){return s},t1:function(){return u},tC:function(){return a},wD:function(){return l}});var r=n(19470);const a=["click","keydown","submit"],i="popstate",o="api",s="initialPageLoad",c=r.K7.softNav,l=5e3,u=500,d={INITIAL_PAGE_LOAD:"",ROUTE_CHANGE:1,UNSPECIFIED:2},h={INTERACTION:1,AJAX:2,CUSTOM_END:3,CUSTOM_TRACER:4},p={IP:"in progress",PF:"pending finish",FIN:"finished",CAN:"cancelled"}},761:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;var r=n(90680),a=n(10281);t.switchMapTo=function(e,t){return a.isFunction(t)?r.switchMap((function(){return e}),t):r.switchMap((function(){return e}))}},1847:function(e,t,n){"use strict";n.d(t,{R:function(){return d}});var r=n(23029),a=n(92901),i=n(82284),o=n(94044),s=n(78781),c=n(69267),l=function(e,t,n,r){var a,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,i.A)(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(s=(o<3?a(s):o>3?a(t,n,s):a(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,i.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(){return(0,a.A)((function e(){var t=this;(0,r.A)(this,e),this.createShareData=function(){var e=document.querySelector('meta[property="og:title"]'),n=e?e.getAttribute("content"):document.title,r=document.querySelector('meta[name="description"]'),a=r||document.querySelector('meta[property="og:description"]'),i=a?a.getAttribute("content"):"",o=t._element.querySelector(".amag-share-wrapper").dataset.metaimageurl;return{title:n,text:"".concat(i," ").concat(o),url:window.location.href,files:[]}},this.showShareDialog=function(e){navigator.canShare&&!c.lp.isDesktop()?navigator.share(t.createShareData()).then((function(){console.debug("Successful share"),t.closeShareDialog()})).catch((function(e){return console.error("DOMException Error sharing",e)})).catch((function(e){return console.error("Error sharing",e)})):t._element.querySelector(".amag-share-button__dropdown-menu").classList.toggle("d-none")},this.closeShareDialog=function(){t._element.querySelector(".amag-share-button__dropdown-menu").classList.add("d-none")},this.addShareDropdownEventLiseners=function(){var e=t._element.querySelector(".amag-share-button__dropdown-menu"),n=t.createShareData(),r=e.querySelector("#shareButtonCopyClipboard"),a=t.createToast();document.body.appendChild(a),r.addEventListener("click",(function(){if(navigator.clipboard)navigator.clipboard.writeText(n.title+"\n"+n.text+"\n"+n.url).then((function(){console.debug("Share data copied to clipboard using clipboard API"),a.show()})).catch((function(e){return console.log("Error copying share data to clipboard",e)}));else{console.debug("Clipboard API not available!");var e=document.createElement("textarea");e.value=n.title+"\n"+n.text+"\n"+n.url,document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove(),a.show()}t.closeShareDialog()})),e.querySelector("#shareButtonWhatsapp").addEventListener("click",(function(){var e="https://wa.me/?text=".concat(n.text,"%20").concat(n.url);t.openShareWindow(e)})),e.querySelector("#shareButtonFacebook").addEventListener("click",(function(){var e="https://www.facebook.com/dialog/share?app_id=".concat("1340617159852045","&href=").concat(n.url,""e=").concat(n.text);t.openShareWindow(e)})),e.querySelector("#shareButtonLinkedIn").addEventListener("click",(function(){var e="https://www.linkedin.com/sharing/share-offsite/?url=".concat(n.url);t.openShareWindow(e)})),e.querySelector("#shareButtonTwitter").addEventListener("click",(function(){var e="https://twitter.com/intent/tweet?text=".concat(n.text,"&url=").concat(n.url);t.openShareWindow(e)}))},this.createToast=function(){var e=t._element.querySelector(".amag-share-wrapper").dataset.toasttext;return(0,s.ox)(e,3e3,["success-toast","share-toast"],(0,s.l4)("copyToastClose"),(0,s.MM)("copyToastIcon"))},this.openShareWindow=function(e){window.open(e,"_blank"),t.closeShareDialog()},this.showTooltip=function(e){e.target.querySelector(".amag-share-button__tooltip").classList.remove("d-none")},this.hideTooltip=function(e){e.target.querySelector(".amag-share-button__tooltip").classList.add("d-none")}}),[{key:"init",value:function(e){this._element=e;var t=this._element.querySelector(".amag-share-button");if(t){t.addEventListener("click",this.showShareDialog),t.addEventListener("mouseenter",this.showTooltip),t.addEventListener("mouseleave",this.hideTooltip),this.addShareDropdownEventLiseners();var n=this._element.querySelector(".amag-share-button__dropdown-menu");(0,c._1)([t,n],this.closeShareDialog)}}}])}();d=l([o.K,u("design:paramtypes",[])],d)},1903:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var r=n(48051),a=n(7652),i=n(17214),o=n(5717),s=n(19724);t.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a.argsOrArgArray(e);return new r.Observable((function(e){var t=0,r=function(){if(t<n.length){var a=void 0;try{a=s.innerFrom(n[t++])}catch(e){return void r()}var c=new i.OperatorSubscriber(e,void 0,o.noop,o.noop);a.subscribe(c),c.add(r)}else e.complete()};r()}))}},2574:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;var r=n(19724),a=n(28619),i=n(17214);t.mergeInternals=function(e,t,n,o,s,c,l,u){var d=[],h=0,p=0,f=!1,m=function(){!f||d.length||h||t.complete()},v=function(e){return h<o?g(e):d.push(e)},g=function(e){c&&t.next(e),h++;var u=!1;r.innerFrom(n(e,p++)).subscribe(i.createOperatorSubscriber(t,(function(e){null==s||s(e),c?v(e):t.next(e)}),(function(){u=!0}),void 0,(function(){if(u)try{h--;for(var e=function(){var e=d.shift();l?a.executeSchedule(t,l,(function(){return g(e)})):g(e)};d.length&&h<o;)e();m()}catch(e){t.error(e)}})))};return e.subscribe(i.createOperatorSubscriber(t,v,(function(){f=!0,m()}))),function(){null==u||u()}}},2708: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_OBSERVER=t.SafeSubscriber=t.Subscriber=void 0;var i=n(10281),o=n(69879),s=n(93728),c=n(32980),l=n(5717),u=n(42767),d=n(94808),h=n(12688),p=function(e){function n(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,o.isSubscription(n)&&n.add(r)):r.destination=t.EMPTY_OBSERVER,r}return a(n,e),n.create=function(e,t,n){return new g(e,t,n)},n.prototype.next=function(e){this.isStopped?_(u.nextNotification(e),this):this._next(e)},n.prototype.error=function(e){this.isStopped?_(u.errorNotification(e),this):(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped?_(u.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(o.Subscription);t.Subscriber=p;var f=Function.prototype.bind;function m(e,t){return f.call(e,t)}var v=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){y(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){y(e)}else y(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){y(e)}},e}(),g=function(e){function t(t,n,r){var a,o,c=e.call(this)||this;i.isFunction(t)||!t?a={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:c&&s.config.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return c.unsubscribe()},a={next:t.next&&m(t.next,o),error:t.error&&m(t.error,o),complete:t.complete&&m(t.complete,o)}):a=t;return c.destination=new v(a),c}return a(t,e),t}(p);function y(e){s.config.useDeprecatedSynchronousErrorHandling?h.captureError(e):c.reportUnhandledError(e)}function _(e,t){var n=s.config.onStoppedNotification;n&&d.timeoutProvider.setTimeout((function(){return n(e,t)}))}t.SafeSubscriber=g,t.EMPTY_OBSERVER={closed:!0,next:l.noop,error:function(e){throw e},complete:l.noop}},2822:function(e,t,n){"use strict";n.d(t,{$5:function(){return l},B5:function(){return c},Ux:function(){return o},YA:function(){return s},fQ:function(){return a},yx:function(){return i}});var r=n(9639);const a={MFE:"MFE",BA:"BA"};function i(e,t){if(!e||!t?.init.api.register.enabled)return[];const n=t.runtime.registeredEntities;return n?.filter((t=>t.metadata.timings?.asset?.endsWith(e))).map((e=>e.metadata.target))||[]}function o(e,t){if(!u(t))return{};const n=t.agentRef.runtime.appMetadata.agents[0].entityGuid;return e?e.attributes:{"entity.guid":n,appId:t.agentRef.info.applicationID}}function s(e,t){return c(e,t)?{"child.id":e.id,"child.type":e.type,...o(void 0,t)}:{}}
6function c(e,t){return!!e&&!!u(t)&&t.agentRef.init.api.register.duplicate_data_to_container}function l(e){if(!e?.init.api.register.enabled)return[void 0];const t=[];try{var n=(0,r.AZ)((0,r.QL)());let a=n.length-1;for(;n[a];)t.push(...i(n[a--],e))}catch(e){}return t.length||t.push(void 0),t}function u(e){return 2===e?.harvestEndpointVersion}},2884:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable=void 0,t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},2959:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;var r=n(65212),a=n(17214),i=n(5717);t.ignoreElements=function(){return r.operate((function(e,t){e.subscribe(a.createOperatorSubscriber(t,i.noop))}))}},2978:function(e,t,n){var r=n(74692);r((function(){if(document.querySelector(".amag-promotionTeaserBox")&&document.querySelector(".amag-promotionTeaser")){var e=r(".amag-promotionTeaser"),t=r(".amag-promotionTeaserBox__showMoreBtn"),n=e.length;e.hide(),n>4?t.show():t.hide(),e.slice(0,4).show(),t.click((function(r){var a=document.scrollingElement.scrollTop,i=e.filter(":visible").length;e.slice(i-1,i+100).show();var o=e.filter(":visible").length;document.scrollingElement.scrollTop=a,o>=n&&t.hide()}))}}))},3143:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;var r=n(65212),a=n(5717),i=n(17214),o=n(19724);t.debounce=function(e){return r.operate((function(t,n){var r=!1,s=null,c=null,l=function(){if(null==c||c.unsubscribe(),c=null,r){r=!1;var e=s;s=null,n.next(e)}};t.subscribe(i.createOperatorSubscriber(n,(function(t){null==c||c.unsubscribe(),r=!0,s=t,c=i.createOperatorSubscriber(n,l,a.noop),o.innerFrom(e(t)).subscribe(c)}),(function(){l(),n.complete()}),void 0,(function(){s=c=null})))}))}},3193:function(e,t,n){"use strict";n.d(t,{Lt:function(){return c},a9:function(){return r},yE:function(){return l}});var r,a=n(69267),i=n(85555),o=n.n(i);!function(e){e.STAGE_TEASER_VIDEO="STAGE_TEASER_VIDEO",e.TEXT_IMAGE="TEXT_IMAGE",e.DYNAMIC_TEXT_IMAGE="DYNAMIC_TEXT_IMAGE",e.VIDEO_VIMEO="VIDEO_VIMEO",e.VIDEO_VIMEO_LANDING="VIDEO_VIMEO_LANDING",e.INTRO_GARAGE_WITH_SLIDER_VIDEO="INTRO_GARAGE_WITH_SLIDER_VIDEO"}(r||(r={}));var s={transparent:"transparent",video3to4:"video3to4"},c=function(e,t,n,i,c){if(!i)return e.forEach((function(e){var i,l=e.querySelector(n),d=l.getAttribute("id"),h=l.getAttribute("data-vi16_9_id"),p=l.getAttribute("data-vi16_9_url"),f=!1,m="",v="",g=!1,y=!1,_=!0,b=!0,w=!1,S=/.*\/(\d*)/;t===r.STAGE_TEASER_VIDEO&&(f=!!!!a.lp.isMobile()&&screen.width<=768);f&&(m=l.getAttribute("data-vi3_4_id"),v=l.getAttribute("data-vi3_4_url")),t===r.STAGE_TEASER_VIDEO?(g=!0,y=!0,_=!0,w=!0):t===r.INTRO_GARAGE_WITH_SLIDER_VIDEO?(g=!1,y=!0,_=!0,b=!1,w=!1):[r.TEXT_IMAGE,r.DYNAMIC_TEXT_IMAGE,r.VIDEO_VIMEO,r.VIDEO_VIMEO_LANDING].includes(t)&&(g="true"===l.getAttribute("data-vi-autoplay"),y="true"===l.getAttribute("data-vi-loop"),_="true"===l.getAttribute("data-vi-muted"));try{if(f&&m)l.classList.add(s.video3to4),i=Number(m);else if(f&&!m&&v)l.classList.add(s.video3to4),i=Number(v.match(S)[1]);else if(h)i=Number(h);else{if(h||!p)return void console.error("There is no valid Vimeo-ID available for the ".concat(t," video with the following component-ID: ").concat(d));i=Number(p.match(S)[1])}}catch(e){return void console.error("Error occurred while fetching ID for the Vimeo video for the ".concat(t," component:"),e)}var C={id:i,autoplay:g,loop:y,muted:_,controls:b,background:w},E=new(o())(d,C);if(t===r.STAGE_TEASER_VIDEO){var x=e.querySelector(".progress");E.on("timeupdate",(function(e){x.style.right="".concat(100-100*e.percent,"%")})),E.on("ended",(function(){x.style.right="0%"}))}[r.VIDEO_VIMEO_LANDING,r.INTRO_GARAGE_WITH_SLIDER_VIDEO].includes(t)&&u(e,E,C,c)})),i=!0},l=function(e,t,n,i,c,l){if(!i){var d,h=e.querySelector(n),p=h.getAttribute("id"),f=h.getAttribute("data-vi16_9_id"),m=h.getAttribute("data-vi16_9_url"),v=!1,g="",y="",_=!1,b=!1,w=!0,S=!0,C=!1,E=/.*\/(\d*)/;if(t===r.STAGE_TEASER_VIDEO)v=!!!!a.lp.isMobile()&&screen.width<=768;v&&(g=h.getAttribute("data-vi3_4_id"),y=h.getAttribute("data-vi3_4_url")),t===r.STAGE_TEASER_VIDEO?(_=!0,b=!0,w=!0,C=!0):t===r.INTRO_GARAGE_WITH_SLIDER_VIDEO?(_=!1,b=!0,w=!0,S=!1,C=!1):[r.TEXT_IMAGE,r.DYNAMIC_TEXT_IMAGE,r.VIDEO_VIMEO,r.VIDEO_VIMEO_LANDING].includes(t)&&(_="true"===h.getAttribute("data-vi-autoplay"),b="true"===h.getAttribute("data-vi-loop"),w="true"===h.getAttribute("data-vi-muted"));try{if(v&&g)h.classList.add(s.video3to4),d=Number(g);else if(v&&!g&&y)h.classList.add(s.video3to4),d=Number(y.match(E)[1]);else if(f)d=Number(f);else{if(f||!m)return void console.error("There is no valid Vimeo-ID available for the ".concat(t," video with the following component-ID: ").concat(p));d=Number(m.match(E)[1])}}catch(e){return void console.error("Error occurred while fetching ID for the Vimeo video for the ".concat(t," component:"),e)}var x={id:d,autoplay:_,loop:b,muted:w,controls:S,background:C},A=new(o())(p,x);if(c&&A.pause(),t===r.STAGE_TEASER_VIDEO){var k=e.querySelector(".progress");A.on("timeupdate",(function(e){k.style.right="".concat(100-100*e.percent,"%")})),A.on("ended",(function(){k.style.right="0%"}))}return[r.VIDEO_VIMEO_LANDING,r.INTRO_GARAGE_WITH_SLIDER_VIDEO].includes(t)&&u(e,A,x,l),A}},u=function(e,t,n,r){var a=e.querySelector(r),i=!1;n.autoplay&&(i=!0,a.classList.add(s.transparent)),n.loop||t.on("ended",(function(){i=!1,a.classList.remove(s.transparent)})),a.addEventListener("click",(function(){i?(t.pause(),a.classList.remove(s.transparent)):(t.play(),a.classList.add(s.transparent)),i=!i}))}},3352:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;var r=n(65212),a=n(17214),i=n(87699),o=n(5825),s=n(19724);t.retry=function(e){var t;void 0===e&&(e=1/0);var n=(t=e&&"object"==typeof e?e:{count:e}).count,c=void 0===n?1/0:n,l=t.delay,u=t.resetOnSuccess,d=void 0!==u&&u;return c<=0?i.identity:r.operate((function(e,t){var n,r=0,i=function(){var u=!1;n=e.subscribe(a.createOperatorSubscriber(t,(function(e){d&&(r=0),t.next(e)}),void 0,(function(e){if(r++<c){var d=function(){n?(n.unsubscribe(),n=null,i()):u=!0};if(null!=l){var h="number"==typeof l?o.timer(l):s.innerFrom(l(e,r)),p=a.createOperatorSubscriber(t,(function(){p.unsubscribe(),d()}),(function(){t.complete()}));h.subscribe(p)}else d()}else t.error(e)}))),u&&(n.unsubscribe(),n=null,i())};i()}))}},3453:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(96369),a=n(6986),i=n(27800),o=n(76562);function s(e,t){return(0,r.A)(e)||(0,a.A)(e,t)||(0,i.A)(e,t)||(0,o.A)()}},3653:function(e,t,n){"use strict";var r;n.d(t,{H:function(){return r}}),function(e){e.AMAG_USER="amaguser",e.AMAG_APP_VEHICLE="amagAppVehicle",e.AMAG_USER_TOKEN="amagUserToken",e.INPUT_VALUE="inputValue"}(r||(r={}))},4625:function(e,t,n){var r=n(74692);function a(e){e?r(document).trigger("keyboard.open"):r(document).trigger("keyboard.close")}var i=!1;function o(){if("ios"!=(n=navigator.userAgent||navigator.vendor||window.opera,/windows phone/i.test(n)?"winphone":/android/i.test(n)?"android":/iPad|iPhone|iPod/.test(n)&&!window.MSStream?"ios":"")&&!1!==i){var e=r("body").hasClass("view-withKeyboard"),t=!1;Math.abs(i-(r(window).width()+r(window).height()))>100&&(t=!0),r("body").toggleClass("view-withKeyboard",t),e!=t&&a(t)}var n}r(document).ready((function(){!1===i&&(i=r(window).width()+r(window).height())})),r(document).on("focus blur","select, textarea, input[type=text], input[type=date], input[type=password], input[type=email], input[type=number]",(function(e){r(this);var t="focusin"==e.type;r("body").toggleClass("view-withKeyboard",t),a(t)})),r(window).on("resize orientationchange",(function(){o()}))},4633:function(e,t,n){var r=n(73738).default;function a(){"use strict";e.exports=a=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,o=i.hasOwnProperty,s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function h(e,n,r,a){var i=n&&n.prototype instanceof m?n:m,o=Object.create(i.prototype);return d(o,"_invoke",function(e,n,r){var a=1;return function(i,o){if(3===a)throw Error("Generator is already running");if(4===a){if("throw"===i)throw o;return{value:t,done:!0}}for(r.method=i,r.arg=o;;){var s=r.delegate;if(s){var c=E(s,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===a)throw a=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=3;var l=p(e,n,r);if("normal"===l.type){if(a=r.done?4:2,l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a=4,r.method="throw",r.arg=l.arg)}}}(e,r,new k(a||[])),!0),o}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=h;var f={};function m(){}function v(){}function g(){}var y={};d(y,c,(function(){return this}));var _=Object.getPrototypeOf,b=_&&_(_(T([])));b&&b!==i&&o.call(b,c)&&(y=b);var w=g.prototype=m.prototype=Object.create(y);function S(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(a,i,s,c){var l=p(e[a],e,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,c)}))}c(l.arg)}var a;d(this,"_invoke",(function(e,r){function i(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(i,i):i()}),!0)}function E(e,n){var r=n.method,a=e.i[r];
6if(a===t)return n.delegate=null,"throw"===r&&e.i.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=p(a,e.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var o=i.arg;return o?o.done?(n[e.r]=o.value,n.next=e.n,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,f):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function x(e){this.tryEntries.push(e)}function A(e){var n=e[4]||{};n.type="normal",n.arg=t,e[4]=n}function k(e){this.tryEntries=[[-1]],e.forEach(x,this),this.reset(!0)}function T(e){if(null!=e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function n(){for(;++a<e.length;)if(o.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return v.prototype=g,d(w,"constructor",g),d(g,"constructor",v),v.displayName=d(g,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,d(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},n.awrap=function(e){return{__await:e}},S(C.prototype),d(C.prototype,l,(function(){return this})),n.AsyncIterator=C,n.async=function(e,t,r,a,i){void 0===i&&(i=Promise);var o=new C(h(e,t,r,a),i);return n.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(w),d(w,u,"Generator"),d(w,c,(function(){return this})),d(w,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},n.values=T,k.prototype={constructor:k,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t){o.type="throw",o.arg=e,n.next=t}for(var a=n.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],o=i[4],s=this.prev,c=i[1],l=i[2];if(-1===i[0])return r("end"),!1;if(!c&&!l)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<c)return this.method="next",this.arg=t,r(c),!0;if(s<l)return r(l),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var a=r;break}}a&&("break"===e||"continue"===e)&&a[0]<=t&&t<=a[2]&&(a=null);var i=a?a[4]:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a[2],f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),A(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var a=r.arg;A(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={i:T(e),r:n,n:r},"next"===this.method&&(this.arg=t),f}},n}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},5128:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;var r=n(48051),a=n(19724),i=n(76808),o=n(65212),s=n(17214);t.groupBy=function(e,t,n,c){return o.operate((function(o,l){var u;t&&"function"!=typeof t?(n=t.duration,u=t.element,c=t.connector):u=t;var d=new Map,h=function(e){d.forEach(e),e(l)},p=function(e){return h((function(t){return t.error(e)}))},f=0,m=!1,v=new s.OperatorSubscriber(l,(function(t){try{var o=e(t),h=d.get(o);if(!h){d.set(o,h=c?c():new i.Subject);var g=(_=o,b=h,(w=new r.Observable((function(e){f++;var t=b.subscribe(e);return function(){t.unsubscribe(),0==--f&&m&&v.unsubscribe()}}))).key=_,w);if(l.next(g),n){var y=s.createOperatorSubscriber(h,(function(){h.complete(),null==y||y.unsubscribe()}),void 0,void 0,(function(){return d.delete(o)}
6));v.add(a.innerFrom(n(g)).subscribe(y))}}h.next(u?u(t):t)}catch(e){p(e)}var _,b,w}),(function(){return h((function(e){return e.complete()}))}),p,(function(){return d.clear()}),(function(){return m=!0,0===f}));o.subscribe(v)}))}},5130: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncSubject=void 0;var i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return a(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t._hasValue,a=t._value,i=t.thrownError,o=t.isStopped,s=t._isComplete;n?e.error(i):(o||s)&&(r&&e.next(a),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,n=t._hasValue,r=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,r),e.prototype.complete.call(this))},t}(n(76808).Subject);t.AsyncSubject=i},5362:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;var r=n(11415),a=n(80719);t.zipAll=function(e){return a.joinAllInternals(r.zip,e)}},5455:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;var r=n(65212);t.subscribeOn=function(e,t){return void 0===t&&(t=0),r.operate((function(n,r){r.add(e.schedule((function(){return n.subscribe(r)}),t))}))}},5717:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},5797:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;var r=n(62326),a=n(72885),i=n(5825);t.delay=function(e,t){void 0===t&&(t=r.asyncScheduler);var n=i.timer(e,t);return a.delayWhen((function(){return n}))}},5825:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;var r=n(48051),a=n(62326),i=n(68596),o=n(85345);t.timer=function(e,t,n){void 0===e&&(e=0),void 0===n&&(n=a.async);var s=-1;return null!=t&&(i.isScheduler(t)?n=t:s=t),new r.Observable((function(t){var r=o.isValidDate(e)?+e-n.now():e;r<0&&(r=0);var a=0;return n.schedule((function(){t.closed||(t.next(a++),0<=s?this.schedule(void 0,s):t.complete())}),r)}))}},5928:function(e,t,n){"use strict";n.d(t,{AJ:function(){return o},F3:function(){return a},Xs:function(){return i},Yq:function(){return s},xv:function(){return r}});const r="1.313.0",a="NPM",i="NPM",o="@newrelic/rrweb",s="1.1.0"},6677:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.raceWith=void 0;var i=n(89795),o=n(65212),s=n(87699);t.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?o.operate((function(t,n){i.raceInit(a([t],r(e)))(n)})):s.identity}},6757: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)});
6Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameAction=void 0;var i=n(64772),o=n(35726),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return a(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=o.animationFrameProvider.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,n,r){var a;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var i=t.actions;null!=n&&n===t._scheduled&&(null===(a=i[i.length-1])||void 0===a?void 0:a.id)!==n&&(o.animationFrameProvider.cancelAnimationFrame(n),t._scheduled=void 0)},t}(i.AsyncAction);t.AnimationFrameAction=s},6986:function(e,t,n){"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return s}}n.d(t,{A:function(){return r}})},7024:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;var r=n(9619);t.ArgumentOutOfRangeError=r.createErrorClass((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}))},7187:function(e,t,n){"use strict";n.d(t,{TZ:function(){return r},XG:function(){return s},rs:function(){return a},xV:function(){return o},z_:function(){return i}});const r=n(19470).K7.metrics,a="sm",i="cm",o="storeSupportabilityMetrics",s="storeEventMetrics"},7245:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;var r=n(62326),a=n(44880),i=n(5825);t.throttleTime=function(e,t,n){void 0===t&&(t=r.asyncScheduler);var o=i.timer(e,t);return a.throttle((function(){return o}),n)}},7652:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsOrArgArray=void 0;var n=Array.isArray;t.argsOrArgArray=function(e){return 1===e.length&&n(e[0])?e[0]:e}},8284:function(e,t){"use strict";var n=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},r=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.intervalProvider=void 0,t.intervalProvider={setInterval:function(e,a){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var s=t.intervalProvider.delegate;return(null==s?void 0:s.setInterval)?s.setInterval.apply(s,r([e,a],n(i))):setInterval.apply(void 0,r([e,a],n(i)))},clearInterval:function(e){var n=t.intervalProvider.delegate;return((null==n?void 0:n.clearInterval)||clearInterval)(e)},delegate:void 0}},9254:function(e,t,n){n(74692)((function(){if(document.querySelector(".amag-servicebooking")){if(!new URL(window.location.href).hash)return;var e=window.location.hash.split("#")[1];if(!e)return;if(isNaN(parseInt(e)))return;window.sessionStorage.setItem("garage.presetGarage",e)}}))},9287:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferCount=void 0;var a=n(65212),i=n(17214),o=n(54830);t.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,a.operate((function(n,a){var s=[],c=0;n.subscribe(i.createOperatorSubscriber(a,(function(n){var i,l,u,d,h=null;c++%t==0&&s.push([]);try{for(var p=r(s),f=p.next();!f.done;f=p.next()){(g=f.value).push(n),e<=g.length&&(h=null!=h?h:[]).push(g)}}catch(e){i={error:e}}finally{try{f&&!f.done&&(l=p.return)&&l.call(p)}finally{if(i)throw i.error}}if(h)try{for(var m=r(h),v=m.next();!v.done;v=m.next()){var g=v.value;o.arrRemove(s,g),a.next(g)}}catch(e){u={error:e}}finally{try{v&&!v.done&&(d=m.return)&&d.call(m)}finally{if(u)throw u.error}}}),(function(){var e,t;try{for(var n=r(s),i=n.next();!i.done;i=n.next()){var o=i.value;a.next(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}a.complete()}),void 0,(function(){s=null})))}))}},9330:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};
6Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var i=n(65212),o=n(68087),s=n(26404),c=n(47058);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=s.popScheduler(e),l=s.popNumber(e,1/0);return i.operate((function(t,i){o.mergeAll(l)(c.from(a([t],r(e)),n)).subscribe(i)}))}},9417:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:function(){return r}})},9619:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorClass=void 0,t.createErrorClass=function(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},9639:function(e,t,n){"use strict";n.d(t,{AZ:function(){return m},Qr:function(){return _},QL:function(){return v}});var r=n(58740),a=n(31609),i=n(18897),o=n(72196);class s{dom=new c;performance=new c;constructor(e){this.url=e}get script(){const e=Math.max(this.dom.start,this.performance.end);return{start:e,end:Math.max(this.dom.end,this.performance.end,e)}}}class c{start=0;end=0;value=void 0}let l;try{l=m(v())[0]}catch(e){l=m(e)[0]}const u=e=>"script"===e.initiatorType||["link","fetch"].includes(e.initiatorType)&&e.name.endsWith(".js"),d=new Map;let h=[];function p(e){return d.get(e)}function f(e){const t=p(e);if(t)return t;const n=new s(e);if(d.set(e,n),d.size>1e3){const e=d.keys().next().value;d.delete(e)}return n}if(r.gm.MutationObserver&&r.gm.document){new MutationObserver((e=>{e.forEach((e=>{e.addedNodes.forEach((e=>{if("SCRIPT"===e.nodeName&&e.src){const t=f((0,i.L)(e.src));t.dom.start=(0,a.t)(),t.dom.value=e;const n=()=>{t.dom.end=(0,a.t)()};["load","error"].forEach((t=>e.addEventListener(t,n,{once:!0})))}}))}))})).observe(r.gm.document,{childList:!0,subtree:!0})}if(r.gm.PerformanceObserver?.supportedEntryTypes.includes("resource")){new PerformanceObserver((e=>{e.getEntries().filter(u).forEach((e=>{const t=f((0,i.L)(e.name));t.performance.start=Math.floor(e.startTime),t.performance.end=Math.floor(e.responseEnd),t.performance.value=e;const n=[];h.forEach((({test:t,addedAt:r},i)=>{(t(e)||(0,a.t)()-r>1e4)&&n.push(i)})),h=h.filter(((e,t)=>!n.includes(t)))}))})).observe({type:"resource",buffered:!0})}function m(e){if(!e||"string"!=typeof e)return[];const t=new Set,n=e.split("\n");for(const e of n){const n=e.match(o.cn)||e.match(o.hB)||e.match(o.fL);if(n&&n[2])t.add((0,i.L)(n[2]));else{const n=e.match(/\(([^)]+\.js):\d+:\d+\)/)||e.match(/^\s+at\s+([^\s(]+\.js):\d+:\d+/);n&&n[1]&&t.add((0,i.L)(n[1]))}}return[...t]}function v(){let e;try{const t=Error.stackTraceLimit;Error.stackTraceLimit=50,e=(new Error).stack,Error.stackTraceLimit=t}catch(t){e=(new Error).stack}return e}function g(e,t){return(0,i.L)(e.name)===t}function y(e,t){e.fetchStart=Math.floor(t.startTime),e.fetchEnd=Math.floor(t.responseEnd),e.asset=t.name,e.type=t.initiatorType}function _(){const e={registeredAt:(0,a.t)(),reportedAt:void 0,fetchStart:0,fetchEnd:0,scriptStart:0,scriptEnd:0,asset:void 0,type:"unknown"},t=v();if(!t)return e;const n=r.gm.performance?.getEntriesByType("navigation")?.[0]?.name||"";try{const o=m(t),s=(o.length>1?o.filter((e=>l!==e)):o)[0];if(!s)return e;if(n.includes(s))return e.asset=(0,i.L)(n),e.type="inline",e;e.correlation=p(s);const c=e.correlation?.performance.value||performance.getEntriesByType("resource").find((e=>g(e,s)));c?y(e,c):function(e){if(!e||!r.gm.document)return!1;try{const t=r.gm.document.querySelectorAll('link[rel="preload"][as="script"]');for(const n of t)if((0,i.L)(n.href)===e)return!0}catch(e){}return!1}(s)&&(e.asset=s,e.type="preload",h.push({addedAt:(0,a.t)(),test:t=>!!g(t,s)&&(y(e,t),!0)})),Object.defineProperty(e,"scriptStart",{get:()=>e.correlation?.script.start||e.fetchEnd}),Object.defineProperty(e,"scriptEnd",{get:()=>e.correlation?.script.end||e.registeredAt})}catch(e){}return e}},10281:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},10381: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)});
6Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaySubject=void 0;var i=n(76808),o=n(93275),s=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=o.dateTimestampProvider);var a=e.call(this)||this;return a._bufferSize=t,a._windowTime=n,a._timestampProvider=r,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=n===1/0,a._bufferSize=Math.max(1,t),a._windowTime=Math.max(1,n),a}return a(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,a=n._buffer,i=n._infiniteTimeWindow,o=n._timestampProvider,s=n._windowTime;r||(a.push(t),!i&&a.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),a=0;a<r.length&&!e.closed;a+=n?1:2)e.next(r[a]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,a=e._infiniteTimeWindow,i=(a?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!a){for(var o=n.now(),s=0,c=1;c<r.length&&r[c]<=o;c+=2)s=c;s&&r.splice(0,s+1)}},t}(i.Subject);t.ReplaySubject=s},10467:function(e,t,n){"use strict";function r(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(a,i){var o=e.apply(t,n);function s(e){r(o,a,i,s,c,"next",e)}function c(e){r(o,a,i,s,c,"throw",e)}s(void 0)}))}}n.d(t,{A:function(){return a}})},10706:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;var r=n(65212),a=n(5717),i=n(17214),o=n(19724);t.buffer=function(e){return r.operate((function(t,n){var r=[];return t.subscribe(i.createOperatorSubscriber(n,(function(e){return r.push(e)}),(function(){n.next(r),n.complete()}))),o.innerFrom(e).subscribe(i.createOperatorSubscriber(n,(function(){var e=r;r=[],n.next(e)}),a.noop)),function(){r=null}}))}},11415:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var i=n(48051),o=n(19724),s=n(7652),c=n(44885),l=n(17214),u=n(26404);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=u.popResultSelector(e),d=s.argsOrArgArray(e);return d.length?new i.Observable((function(e){var t=d.map((function(){return[]})),i=d.map((function(){return!1}));e.add((function(){t=i=null}));for(var s=function(s){o.innerFrom(d[s]).subscribe(l.createOperatorSubscriber(e,(function(o){if(t[s].push(o),t.every((function(e){return e.length}))){var c=t.map((function(e){return e.shift()}));e.next(n?n.apply(void 0,a([],r(c))):c),t.some((function(e,t){return!e.length&&i[t]}))&&e.complete()}}),(function(){i[s]=!0,!t[s].length&&e.complete()})))},c=0;!e.closed&&c<d.length;c++)s(c);return function(){t=i=null}})):c.EMPTY}},11464:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaust=void 0;var r=n(17977);t.exhaust=r.exhaustAll},11934:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.never=t.NEVER=void 0;var r=n(48051),a=n(5717);t.NEVER=new r.Observable(a.noop),t.never=function(){return t.NEVER}},12187:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterable=void 0;var r=n(34891),a=n(10281);t.isIterable=function(e){return a.isFunction(null==e?void 0:e[r.iterator])}},12624:function(){function e(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}
6}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw o}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}!function(){if(0!=document.querySelectorAll(".amag-quoteContainer").length){var t,n=e(document.querySelectorAll(".amag-quoteContainer"));try{for(n.s();!(t=n.n()).done;){var r=t.value,a=r.querySelectorAll(".cmp-carousel__item").length;if(a>1){r.querySelector(".cmp-carousel__itemsLength").innerHTML=a;var i,o=e(r.querySelectorAll(".cmp-carousel__action"));try{for(o.s();!(i=o.n()).done;){i.value.addEventListener("click",(function(){var e=this;setTimeout((function(){var t=e.closest(".cmp-carousel__content"),n=t.querySelector(".cmp-carousel__indicator.cmp-carousel__indicator--active").getAttribute("aria-label");t.querySelector(".cmp-carousel__activeItemIndex").innerHTML=n}),25)}))}}catch(e){o.e(e)}finally{o.f()}}else r.querySelector(".cmp-carousel__actions").style.display="none"}}catch(e){n.e(e)}finally{n.f()}}}()},12688:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureError=t.errorContext=void 0;var r=n(93728),a=null;t.errorContext=function(e){if(r.config.useDeprecatedSynchronousErrorHandling){var t=!a;if(t&&(a={errorThrown:!1,error:null}),e(),t){var n=a,i=n.errorThrown,o=n.error;if(a=null,i)throw o}}else e()},t.captureError=function(e){r.config.useDeprecatedSynchronousErrorHandling&&a&&(a.errorThrown=!0,a.error=e)}},13337:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;var r=n(26872);t.mapTo=function(e){return r.map((function(){return e}))}},13884:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});const r=n(19470).K7.jserrors},13916:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOneOrManyArgs=void 0;var i=n(26872),o=Array.isArray;t.mapOneOrManyArgs=function(e){return i.map((function(t){return function(e,t){return o(t)?e.apply(void 0,a([],r(t))):e(t)}(e,t)}))}},14120:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.not=void 0,t.not=function(e,t){return function(n,r){return!e.call(t,n,r)}}},14359: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectableObservable=void 0;var i=n(48051),o=n(69879),s=n(79224),c=n(17214),l=n(65212),u=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,l.hasLift(t)&&(r.lift=t.lift),r}return a(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new o.Subscription;var n=this.getSubject();t.add(this.source.subscribe(c.createOperatorSubscriber(n,void 0,(function(){e._teardown(),n.complete()}),(function(t){e._teardown(),n.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=o.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return s.refCount()(this)},t}(i.Observable);t.ConnectableObservable=u},14985:function(e,t){var n,r,a;r=[e,t],n=function(e,t){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e((function(e){e.datepicker.regional["en-GB"]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional["en-GB"])}))},e.exports=t.default},void 0===(a="function"==typeof n?n.apply(t,r):n)||(e.exports=a)},15019:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;var r=n(10281),a=n(65212),i=n(17214),o=n(87699);t.tap=function(e,t,n){var s=r.isFunction(e)||t||n?{next:e,error:t,complete:n}:e;return s?a.operate((function(e,t){var n;null===(n=s.subscribe)||void 0===n||n.call(s);var r=!0;e.subscribe(i.createOperatorSubscriber(t,(function(e){var n;null===(n=s.next)||void 0===n||n.call(s,e),t.next(e)}),(function(){var e;r=!1,null===(e=s.complete)||void 0===e||e.call(s),t.complete()}),(function(e){var n;r=!1,null===(n=s.error)||void 0===n||n.call(s,e),t.error(e)}),(function(){var e,t;r&&(null===(e=s.unsubscribe)||void 0===e||e.call(s)),null===(t=s.finalize)||void 0===t||t.call(s)})))})):o.identity}},15810:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createObject=void 0,t.createObject=function(e,t){return e.reduce((function(e,n,r){return e[n]=t[r],e}),{})}},15887:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrame=t.animationFrameScheduler=void 0;var r=n(6757),a=n(74478);t.animationFrameScheduler=new a.AnimationFrameScheduler(r.AnimationFrameAction),t.animationFrame=t.animationFrameScheduler},15893:function(e,t,n){!function(e,t){"use strict";var n,r=Object.defineProperty,a=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i=(e,t,n)=>a(e,"symbol"!=typeof t?t+"":t,n),o=((n=o||{}).POST="POST",n.GET="GET",n.PUT="PUT",n.PATCH="PATCH",n.DELETE="DELETE",n);class s{static for(e,t){return{cache:e.cache,mode:e.mode,credentials:e.credentials,headers:e.headers,redirect:e.redirect,referrer:e.referrer,method:t,body:t!==o.GET?JSON.stringify(e.body):null}}}function c(){return function(e){return e.pipe(t.mergeMap((e=>e.ok?t.of(e):t.throwError((()=>e)))))}}class l{constructor(e){i(this,"_interceptors"),this._interceptors=e}execute(e){return this._interceptors.length>0?this._interceptors.reduce(((e,t)=>t.intercept(e)),e):e}}const u=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)?/gi;class d{constructor(e,t){i(this,"url"),i(this,"mode"),i(this,"cache"),i(this,"credentials"),i(this,"redirect"),i(this,"referrer"),i(this,"body"),i(this,"_headers"),this.url=new RegExp(u).test(e)?e:`${window.location.origin}${e}`,this.mode=t.mode||void 0,this.cache=t.cache||void 0,this.credentials=t.credentials||void 0,this.headers=t.headers||{},this.redirect=t.redirect||void 0,this.referrer=t.referrer||void 0,this.body=t.body||void 0}get headers(){return this._headers}set headers(e){e.hasOwnProperty("Content-Type")?this._headers=e:this._headers={"Content-Type":"application/json",...e}}clone(){return new d(this.url,{body:this.body,cache:this.cache,mode:this.mode,credentials:this.credentials,headers:this.headers,redirect:this.redirect,referrer:this.referrer})}}class h{constructor(e){i(this,"headers"),i(this,"ok"),i(this,"redirected"),i(this,"status"),i(this,"statusText"),i(this,"type"),i(this,"url"),i(this,"_response"),this._response=e,this.headers=e.headers,this.ok=e.ok,this.redirected=e.redirected,this.status=e.status,this.statusText=e.statusText,this.type=e.type,this.url=e.url}arrayBuffer(){return t.from(this._response.arrayBuffer())}blob(){return t.from(this._response.blob())}formData(){return t.from(this._response.formData())}json(){return t.from(this._response.json())}text(){return t.from(this._response.text())}clone(){return new h(this._response.clone())}}class p{constructor(e=[],t=[]){i(this,"_reqInterceptors"),i(this,"_resInterceptors"),this._reqInterceptors=new l(e),this._resInterceptors=new l(t)}get(e,n={}){const r=this._reqInterceptors.execute(new d(e,n)),a=s.for(r,o.GET);return t.from(fetch(e,a)).pipe(t.map((e=>this._resInterceptors.execute(new h(e)))),c())}post(e,n){const r=this._reqInterceptors.execute(new d(e,n)),a=s.for(r,o.PO
6ST);return t.from(fetch(e,a)).pipe(t.map((e=>this._resInterceptors.execute(new h(e)))),c())}put(e,n){const r=this._reqInterceptors.execute(new d(e,n)),a=s.for(r,o.PUT);return t.from(fetch(e,a)).pipe(t.map((e=>this._resInterceptors.execute(new h(e)))),c())}patch(e,n){const r=this._reqInterceptors.execute(new d(e,n)),a=s.for(r,o.PATCH);return t.from(fetch(e,a)).pipe(t.map((e=>this._resInterceptors.execute(new h(e)))),c())}delete(e,n){const r=this._reqInterceptors.execute(new d(e,n)),a=s.for(r,o.DELETE);return t.from(fetch(e,a)).pipe(t.map((e=>this._resInterceptors.execute(new h(e)))),c())}}class f{constructor(){i(this,"mode"),i(this,"cache"),i(this,"credentials"),i(this,"headers"),i(this,"redirect"),i(this,"referrer"),i(this,"body")}}e.HttpRequest=d,e.HttpRequestConfig=f,e.HttpResponse=h,e.RxJSHttpClient=p,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}(t,n(79364))},16002:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.immediateProvider=void 0;var i=n(92052),o=i.Immediate.setImmediate,s=i.Immediate.clearImmediate;t.immediateProvider={setImmediate:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=t.immediateProvider.delegate;return((null==i?void 0:i.setImmediate)||o).apply(void 0,a([],r(e)))},clearImmediate:function(e){var n=t.immediateProvider.delegate;return((null==n?void 0:n.clearImmediate)||s)(e)},delegate:void 0}},16201:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;var r=n(90680),a=n(87699);t.switchAll=function(){return r.switchMap(a.identity)}},16359:function(e,t,n){"use strict";Object.defineProperty(t,"WX",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"a",{enumerable:!0,get:function(){return r.default}});var r=i(n(99608)),a=i(n(58302));function i(e){return e&&e.__esModule?e:{default:e}}r.default},16707:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;var r=n(65212),a=n(2574);t.mergeScan=function(e,t,n){return void 0===n&&(n=1/0),r.operate((function(r,i){var o=t;return a.mergeInternals(r,i,(function(t,n){return e(o,t,n)}),n,(function(e){o=e}),!1,void 0,(function(){return o=null}))}))}},16796:function(e,t,n){var r=n(74692);r(document).ready((function(){var e={table:".rich-text table",validationCheckHelper:".hidden-checkbox-validation-helper",validationMsg:".validation-error-msg",coralTooltipError:".coral-Tooltip--error"},t={isInvalidModifier:"m--custom-is-invalid"},n={arrowDown:'<svg class="icon-arrowDown size-xs" width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M1.413 0.584L6 5.17L10.586 0.584L12 1.998L6 7.998L0 1.998L1.413 0.584Z" />\n</svg>\n'},a={coralTooltip:'<span class="validation-error-msg m--type-email" role="tooltip"></span>'},i=function(n){var a=r(n),i=a.find(e.validationCheckHelper);a.find("select").change((function(n){var o,s,c,l=n.target;return s=(o=l).options[o.selectedIndex],void(!((c=r(o).val())&&c.length>0)||s&&s.disabled?(i.val(""),a.addClass(t.isInvalidModifier)):(i.val("isvalid"),i.removeAttr("aria-invalid"),a.removeClass(t.isInvalidModifier),a.find(e.coralTooltipError).remove()))}))},o=function(e){r(e).find("input[type=email]").change((function(t){var n=t.currentTarget,i=new RegExp(/^[^@]+([@]{1})[0-9a-zA-Z\\._-]+([\\.]{1})[0-9a-zA-Z\\._-]+$/),o=r(a.coralTooltip),s=n.parentElement.dataset.cmpInvalidemailMessage;o.text(s),i.test(n.value)||0===n.value.length?(n.classList.remove("is-invalid-myamag"),n.setAttribute("aria-invalid-myamag",!1),r(e).find(".m--type-email").remove()):(n.classList.add("is-invalid-myamag"),n.setAttribute("aria-invalid-myamag",!0),r(e).find(".m--type-email").remove(),r(n).after(o))})),r(e).find("input.cmp-form-text__text.form-text-vehicle-holder-input[type=text]").on("input",(function(t){var n=t.currentTarget,i=r(a.coralTooltip),o=n.parentElement.dataset.cmpInvalidemailMessage;i.text(o),n.value.length>
60?(n.invalid=!1,n.classList.remove("is-invalid-myamag"),n.setAttribute("aria-invalid-myamag",!1),r(e).find(".m--type-text").remove()):(n.invalid=!0,n.classList.add("is-invalid-myamag"),n.setAttribute("aria-invalid-myamag",!0),r(e).find(".m--type-text").remove(),r(n).after(i))}))};r(".cmp-form").submit((function(e){!function(e){var t=e.currentTarget;e.preventDefault(),r(t).find("input[aria-invalid-myamag=true]").length>0?r(t).find("input[aria-invalid-myamag=true]")[0].classList.add("is-invalid-myamag"):t.submit()}(e)})),r(".cmp-form-text[required=true],fieldset[required=true]").each((function(n,a){var s,c;a.className.indexOf("cmp-form-options--checkbox")>-1&&(s=r(a),c=s.find(e.validationCheckHelper),s.find('input[type="checkbox"]').each((function(n,a){r(a).change((function(){s.find('input[type="checkbox"]:checked').length>=1?(c.val("isvalid"),c.removeAttr("aria-invalid"),s.removeClass(t.isInvalidModifier),s.find(e.coralTooltipError).remove()):(c.val(""),s.addClass(t.isInvalidModifier))}))}))),a.className.indexOf("
6cmp-form-options--radio")>-1&&function(n){var a=r(n),i=a.find(e.validationCheckHelper);a.find('input[type="radio"]').each((function(n,o){r(o).change((function(){i.val("isvalid"),i.removeAttr("aria-invalid"),a.removeClass(t.isInvalidModifier),a.find(e.coralTooltipError).remove()}))}))}(a),(a.className.indexOf("cmp-form-options--multi-drop-down")>-1||a.className.indexOf("cmp-form-options--drop-down")>-1)&&i(a),a.className.indexOf("cmp-form-text")>-1&&o(a)})),function(){r("body").append('<div class="select2-single-container"></div>');var e=r(".cmp-form-options--drop-down select");e.find("option").each((function(e,t){var n,r;t.setAttribute("value",null!==(n=null===(r=t.attributes.value)||void 0===r?void 0:r.value)&&void 0!==n?n:"")})),e.select2({minimumResultsForSearch:-1,dropdownParent:r(".select2-single-container")}),r("body").append('<div class="select2-multi-container"></div>'),r(".cmp-form-options--multi-drop-down select").select2({minimumResultsForSearch:-1,dropdownParent:r(".select2-multi-container"),multiple:!0}),r(".select2-container").append(n.arrowDown)}(),o()}))},17023:function(e,t,n){"use strict";n.d(t,{$v:function(){return u},TZ:function(){return r},Xh:function(){return c},Zp:function(){return a},kd:function(){return l},mq:function(){return s},nf:function(){return o},qN:function(){return i}});const r=n(19470).K7.genericEvents,a=["auxclick","click","copy","keydown","paste","scrollend"],i=["focus","blur"],o=4,s=1e3,c=2e3,l=["PageAction","UserAction","BrowserPerformance"],u={RESOURCES:"experimental.resources",REGISTER:"register"}},17214: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorSubscriber=t.createOperatorSubscriber=void 0;var i=n(2708);t.createOperatorSubscriber=function(e,t,n,r,a){return new o(e,t,n,r,a)};var o=function(e){function t(t,n,r,a,i,o){var s=e.call(this,t)||this;return s.onFinalize=i,s.shouldUnsubscribe=o,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=a?function(e){try{a(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return a(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(i.Subscriber);t.OperatorSubscriber=o},17305:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var r=n(58740);const a=e=>r.RI&&!0===e?.privacy.cookies_enabled},17474:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallbackInternals=void 0;var i=n(68596),o=n(48051),s=n(5455),c=n(13916),l=n(32071),u=n(5130);t.bindCallbackInternals=function e(t,n,d,h){if(d){if(!i.isScheduler(d))return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return e(t,n,h).apply(this,r).pipe(c.mapOneOrManyArgs(d))};h=d}return h?function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return e(t,n).apply(this,r).pipe(s.subscribeOn(h),l.observeOn(h))}:function(){for(var e=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var c=new u.AsyncSubject,l=!0;return new o.Observable((function(o){var s=c.subscribe(o);if(l){l=!1;var u=!1,d=!1;n.apply(e,a(a([],r(i)),[function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=e.shift();if(null!=r)return void c.error(r)}c.next(1<e.length?e:e[0]),d=!0,u&&c.complete()}])),d&&c.complete(),u=!0}return s}))}}},17508:function(e,t,n){"use strict";function r(e,t){return{capture:e,passive:!1,signal:t}}function a(e,t,n=!1,a){window.addEventListener(e,t,r(n,a))}function i(e,t,n=!1,a){document.addEventListener(e,t,r(n,a))}n.d(t,{DD:function(){return i},jT:function(){return r},sp:function(){return a}})},17782:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var r=n(10381),a=n(93405);t.shareReplay=function(e,t,n){var i,o,s,c,l=!1;return e&&"object"==typeof e?(i=e.bufferSize,c=void 0===i?1/0:i,o=e.windowTime,t=void 0===o?1/0:o,l=void 0!==(s=e.refCount)&&s,n=e.scheduler):c=null!=e?e:1/0,a.share({connector:function(){return new r.ReplaySubject(c,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}},17802:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;var r=n(65212);t.finalize=function(e){return r.operate((function(t,n){try{t.subscribe(n)}finally{n.add(e)}}))}},17812:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var r=n(76808),a=n(19724),i=n(65212),o=n(51071),s={connector:function(){return new r.Subject}};t.connect=function(e,t){void 0===t&&(t=s);var n=t.connector;return i.operate((function(t,r){var i=n();a.innerFrom(e(o.fromSubscribable(i))).subscribe(r),r.add(t.subscribe(i))}))}},17873:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;var r=n(48051),a=n(28619);t.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.Observable((function(n){a.executeSchedule(n,t,(function(){var r=e[Symbol.asyncIterator]();a.executeSchedule(n,t,(function(){r.next().then((function(e){e.done?n.complete():n.next(e.value)}))}),0,!0)}))}))}},17977:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;var r=n(86632),a=n(87699);t.exhaustAll=function(){return r.exhaustMap(a.identity)}},18282:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(89394);function a(e){return(0,r.A)(e.content.cloneNode(!0).childNodes).find((function(e){return e.constructor!==Text}))}},18464:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicast=void 0;var r=n(14359),a=n(10281),i=n(17812);t.multicast=function(e,t){var n=a.isFunction(e)?e:function(){return e};return a.isFunction(t)?i.connect(t,{connector:n}):function(e){return new r.ConnectableObservable(e,n)}}},18795:function(e,t,n){"use strict";n.d(t,{j:function(){return x}});var r=n(21966),a=n(34703);var i=n(29077),o=n(17023);const s=e=>{if(!e||"string"!=typeof e)return!1;try{document.createDocumentFragment().querySelector(e)}catch{return!1}return!0};var c=n(79324),l=n(49674),u=n(19644);const d="[data-nr-mask]",h=e=>(0,u.a)(e,(()=>{const e={feature_flags:[],experimental:{register:!1,resources:!1},mask_selector:"*",block_selector:"[data-nr-block]",mask_input_options:{color:!1,date:!1,"datetime-local":!1,email:!1,month:!1,number:!1,range:!1,search:!1,tel:!1,text:!1,time:!1,url:!1,week:!1,textarea:!1,select:!1,password:!0}};return{ajax:{deny_list:void 0,block_internal:!0,enabled:!0,autoStart:!0},api:{register:{get enabled(){return e.feature_flags.includes(o.$v.REGISTER)||e.experimental.register},set enabled(t){e.experimental.register=t},duplicate_data_to_container:!1}},browser_consent_mode:{enabled:!1},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},get feature_flags(){return e.feature_flags},set feature_flags(t){e.feature_flags=t},generic_events:{enabled:!0,autoStart:!0},harvest:{interval:30},jserrors:{enabled:!0,autoStart:!0},logging:{enabled:!0,autoStart:!0},metrics:{enabled:!0,autoStart:!0},obfuscate:void 0,page_action:{enabled:!0},page_view_event:{enabled:!0,autoStart:!0},page_view_timing:{enabled:!0,autoStart:!0},performance:{capture_marks:!1,capture_measures:!1,capture_detail:!0,resources:{get enabled(){return e.feature_flags.includes(o.$v.RESOURCES)||e.experimental.resources},set enabled(t){e.experimental.resources=t},asset_types:[],first_party_domains:[],ignore_newrelic:!0}},privacy:{cookies_enabled:!0},proxy:{assets:void 0,beacon:void 0},session:{expiresMs:c.wk,inactiveMs:c.BB},session_replay:{autoStart:!0,enabled:!1,preload:!1,sampling_rate:10,error_sampling_rate:100,collect_fonts:!1,inl
6ine_images:!1,fix_stylesheets:!0,mask_all_inputs:!0,get mask_text_selector(){return e.mask_selector},set mask_text_selector(t){s(t)?e.mask_selector="".concat(t,",").concat(d):""===t||null===t?e.mask_selector=d:(0,l.R)(5,t)},get block_class(){return"nr-block"},get ignore_class(){return"nr-ignore"},get mask_text_class(){return"nr-mask"},get block_selector(){return e.block_selector},set block_selector(t){s(t)?e.block_selector+=",".concat(t):""!==t&&(0,l.R)(6,t)},get mask_input_options(){return e.mask_input_options},set mask_input_options(t){t&&"object"==typeof t?e.mask_input_options={...t,password:!0}:(0,l.R)(7,t)}},session_trace:{enabled:!0,autoStart:!0},soft_navigations:{enabled:!0,autoStart:!0},ssl:void 0,user_actions:{enabled:!0,elementAttributes:["id","className","tagName","type"]}}})());var p=n(58740),f=n(5928);let m=0;const v={buildEnv:f.F3,distMethod:f.Xs,version:f.xv,originTime:p.WN},g={consented:!1},y={activatedFeatures:void 0,appMetadata:{},configured:!1,get consented(){return this.session?.state?.consent||g.consented},set consented(e){g.consented=e},customTransaction:void 0,denyList:[],disabled:!1,drainRegistry:new Map,harvester:void 0,isolatedBacklog:!1,isRecording:!1,loaderType:void 0,maxBytes:3e4,obfuscator:void 0,onerror:void 0,ptid:void 0,releaseIds:{},session:void 0,timeKeeper:void 0,registeredEntities:[],jsAttributesMetadata:{bytes:0},get harvestCount(){return++m}},_=e=>{const t=(0,u.a)(e,y),n=Object.keys(v).reduce(((e,t)=>(e[t]={value:v[t],writable:!1,configurable:!0,enumerable:!0},e)),{});return Object.defineProperties(t,n)},b=()=>{};var w=n(68126),S=n(71999);const C={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:void 0,applicationID:void 0,xpid:void 0},E=e=>(0,u.a)(e,C);function x(e,t={},n,o){let{init:s,info:c,loader_config:l,runtime:u={},exposed:d=!0}=t;if(!c){const e=(0,r.pV)();s=e.init,c=e.info,l=e.loader_config}e.init=h(s||{}),e.loader_config=E(l||{}),c.jsAttributes??={},p.bv&&(c.jsAttributes.isWorker=!0),e.info=(0,i.D)(c);const f=e.init;e.runtime??=_(u),f.proxy.assets&&b(f.proxy.assets),e.runtime.configured||(Object.defineProperty(e,"beacons",{get(){return[e.info.beacon,e.info.errorBeacon,e.init.proxy.assets,e.init.proxy.beacon].filter(Boolean)}}),Object.defineProperty(e.runtime,"denyList",{get(){return[...e.init.ajax.deny_list||[],...e.init.ajax.block_internal?e.beacons:[]]}}),e.runtime.ptid=e.agentIdentifier,function(e){const t=(0,r.pV)();Object.getOwnPropertyNames(a.W.prototype).forEach((n=>{const r=a.W.prototype[n];if("function"!=typeof r||"constructor"===r)return;let i=t[n];e[n]&&!1!==e.exposed&&"micro-agent"!==e.runtime?.loaderType&&(t[n]=(...t)=>{const r=e[n](...t);return i?i(...t):r})}))}(e),e.runtime.loaderType=n,e.ee=w.ee.get(e.agentIdentifier),e.exposed=d,(0,S.W)({drained:!!e.runtime.activatedFeatures,type:"lifecycle",name:"initialize",feature:void 0,data:e.config}),e.runtime.configured=!0)}},18897:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=/([^?#]*)[^#]*(#[^?]*|$).*/,a=/([^?#]*)().*/;function i(e,t){return e?e.replace(t?r:a,"$1$2"):e}},18922:function(e,t,n){var r;!function(){"use strict";function a(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,r,i,o){return a((s=a(a(t,e),a(r,o)))<<(c=i)|s>>>32-c,n);var s,c}function o(e,t,n,r,a,o,s){return i(t&n|~t&r,e,t,a,o,s)}function s(e,t,n,r,a,o,s){return i(t&r|n&~r,e,t,a,o,s)}function c(e,t,n,r,a,o,s){return i(t^n^r,e,t,a,o,s)}function l(e,t,n,r,a,o,s){return i(n^(t|~r),e,t,a,o,s)}function u(e,t){var n,r,i,u,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var h=1732584193,p=-271733879,f=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)r=h,i=p,u=f,d=m,h=o(h,p,f,m,e[n],7,-680876936),m=o(m,h,p,f,e[n+1],12,-389564586),f=o(f,m,h,p,e[n+2],17,606105819),p=o(p,f,m,h,e[n+3],22,-1044525330),h=o(h,p,f,m,e[n+4],7,-176418897),m=o(m,h,p,f,e[n+5],12,1200080426),f=o(f,m,h,p,e[n+6],17,-1473231341),p=o(p,f,m,h,e[n+7],22,-45705983),h=o(h,p,f,m,e[n+8],7,1770035416),m=o(m,h,p,f,e[n+9],12,-1958414417),f=o(f,m,h,p,e[n+10],17,-42063),p=o(p,f,m,h,e[n+11],22,-1990404162),h=o(h,p,f,m,e[n+12],7,1804603682),m=o(m,h,p,f,e[n+13],12,-40341101),f=
6o(f,m,h,p,e[n+14],17,-1502002290),h=s(h,p=o(p,f,m,h,e[n+15],22,1236535329),f,m,e[n+1],5,-165796510),m=s(m,h,p,f,e[n+6],9,-1069501632),f=s(f,m,h,p,e[n+11],14,643717713),p=s(p,f,m,h,e[n],20,-373897302),h=s(h,p,f,m,e[n+5],5,-701558691),m=s(m,h,p,f,e[n+10],9,38016083),f=s(f,m,h,p,e[n+15],14,-660478335),p=s(p,f,m,h,e[n+4],20,-405537848),h=s(h,p,f,m,e[n+9],5,568446438),m=s(m,h,p,f,e[n+14],9,-1019803690),f=s(f,m,h,p,e[n+3],14,-187363961),p=s(p,f,m,h,e[n+8],20,1163531501),h=s(h,p,f,m,e[n+13],5,-1444681467),m=s(m,h,p,f,e[n+2],9,-51403784),f=s(f,m,h,p,e[n+7],14,1735328473),h=c(h,p=s(p,f,m,h,e[n+12],20,-1926607734),f,m,e[n+5],4,-378558),m=c(m,h,p,f,e[n+8],11,-2022574463),f=c(f,m,h,p,e[n+11],16,1839030562),p=c(p,f,m,h,e[n+14],23,-35309556),h=c(h,p,f,m,e[n+1],4,-1530992060),m=c(m,h,p,f,e[n+4],11,1272893353),f=c(f,m,h,p,e[n+7],16,-155497632),p=c(p,f,m,h,e[n+10],23,-1094730640),h=c(h,p,f,m,e[n+13],4,681279174),m=c(m,h,p,f,e[n],11,-358537222),f=c(f,m,h,p,e[n+3],16,-722521979),p=c(p,f,m,h,e[n+6],23,76029189),h=c(h,p,f,m,e[n+9],4,-640364487),m=c(m,h,p,f,e[n+12],11,-421815835),f=c(f,m,h,p,e[n+15],16,530742520),h=l(h,p=c(p,f,m,h,e[n+2],23,-995338651),f,m,e[n],6,-198630844),m=l(m,h,p,f,e[n+7],10,1126891415),f=l(f,m,h,p,e[n+14],15,-1416354905),p=l(p,f,m,h,e[n+5],21,-57434055),h=l(h,p,f,m,e[n+12],
66,1700485571),m=l(m,h,p,f,e[n+3],10,-1894986606),f=l(f,m,h,p,e[n+10],15,-1051523),p=l(p,f,m,h,e[n+1],21,-2054922799),h=l(h,p,f,m,e[n+8],6,1873313359),m=l(m,h,p,f,e[n+15],10,-30611744),f=l(f,m,h,p,e[n+6],15,-1560198380),p=l(p,f,m,h,e[n+13],21,1309151649),h=l(h,p,f,m,e[n+4],6,-145523070),m=l(m,h,p,f,e[n+11],10,-1120210379),f=l(f,m,h,p,e[n+2],15,718787259),p=l(p,f,m,h,e[n+9],21,-343485551),h=a(h,r),p=a(p,i),f=a(f,u),m=a(m,d);return[h,p,f,m]}function d(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function h(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function p(e){var t,n,r="0123456789abcdef",a="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),a+=r.charAt(t>>>4&15)+r.charAt(15&t);return a}function f(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return d(u(h(e),8*e.length))}(f(e))}function v(e,t){return function(e,t){var n,r,a=h(e),i=[],o=[];for(i[15]=o[15]=void 0,a.length>16&&(a=u(a,8*e.length)),n=0;n<16;n+=1)i[n]=909522486^a[n],o[n]=1549556828^a[n];return r=u(i.concat(h(t)),512+8*t.length),d(u(o.concat(r),640))}(f(e),f(t))}function g(e,t,n){return t?n?v(t,e):p(v(t,e)):n?m(e):p(m(e))}void 0===(r=function(){return g}.call(t,n,t,e))||(e.exports=r)}()},19470:function(e,t,n){"use strict";n.d(t,{$J:function(){return u},K7:function(){return c},P3:function(){return l},XX:function(){return a},Yy:function(){return s},df:function(){return i},qY:function(){return r},v4:function(){return o}});const r="events",a="jserrors",i="browser/blobs",o="rum",s="browser/logs",c={ajax:"ajax",genericEvents:"generic_events",jserrors:a,logging:"logging",metrics:"metrics",pageAction:"page_action",pageViewEvent:"page_view_event",pageViewTiming:"page_view_timing",sessionReplay:"session_replay",sessionTrace:"session_trace",softNav:"soft_navigations"},l={[c.pageViewEvent]:1,[c.pageViewTiming]:2,[c.metrics]:3,[c.jserrors]:4,[c.softNav]:5,[c.ajax]:6,[c.sessionTrace]:7,[c.sessionReplay]:8,[c.logging]:9,[c.genericEvents]:10},u={[c.pageViewEvent]:o,[c.pageViewTiming]:r,[c.ajax]:r,[c.softNav]:r,[c.metrics]:a,[c.jserrors]:a,[c.sessionTrace]:i,[c.sessionReplay]:i,[c.logging]:s,[c.genericEvents]:"ins"}},19533: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncScheduler=void 0;var i=n(65881),o=function(e){function t(t,n){void 0===n&&(n=i.Scheduler.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return a(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(i.Scheduler);t.AsyncScheduler=o},19644:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var r=n(49674);function a(e,t){try{if(!e||"object"!=typeof e)return(0,r.R)(3);if(!t||"object"!=typeof t)return(0,r.R)(4);const n=Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),i=0===Object.keys(n).length?e:n;for(let o in i)if(void 0!==e[o])try{if(null===e[o]){n[o]=null;continue}Array.isArray(e[o])&&Array.isArray(t[o])?n[o]=Array.from(new Set([...e[o],...t[o]])):e[o]instanceof Map||e[o]instanceof Set||e[o]instanceof Date||e[o]instanceof RegExp?n[o]=e[o]:"object"==typeof e[o]&&"object"==typeof t[o]?n[o]=a(e[o],t[o]):n[o]=e[o]}catch(e){n[o]||(0,r.R)(1,e)}return n}catch(e){(0,r.R)(2,e)}}},19724:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}
vendor: 4,262 bytes, line 6
6if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},i=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof o?o(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,a){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,a,(t=e[n](t)).done,t.value)}))}}},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.fromReadableStreamLike=t.fromAsyncIterable=t.fromIterable=t.fromPromise=t.fromArrayLike=t.fromInteropObservable=t.innerFrom=void 0;var s=n(94975),c=n(67552),l=n(48051),u=n(80629),d=n(78263),h=n(86297),p=n(12187),f=n(95462),m=n(10281),v=n(32980),g=n(2884);function y(e){return new l.Observable((function(t){var n=e[g.observable]();if(m.isFunction(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function _(e){return new l.Observable((function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()}))}function b(e){return new l.Observable((function(t){e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,v.reportUnhandledError)}))}function w(e){return new l.Observable((function(t){var n,r;try{for(var a=o(e),i=a.next();!i.done;i=a.next()){var s=i.value;if(t.next(s),t.closed)return}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}t.complete()}))}function S(e){return new l.Observable((function(t){(function(e,t){var n,o,s,c;return r(this,void 0,void 0,(function(){var r,l;return a(this,(function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=i(e),a.label=1;case 1:return[4,n.next()];case 2:if((o=a.sent()).done)return[3,4];if(r=o.value,t.next(r),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=a.sent(),s={error:l},[3,11];case 6:return a.trys.push([6,,9,10]),o&&!o.done&&(c=n.return)?[4,c.call(n)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function C(e){return S(f.readableStreamLikeToAsyncGenerator(e))}t.innerFrom=function(e){if(e instanceof l.Observable)return e;if(null!=e){if(u.isInteropObservable(e))return y(e);if(s.isArrayLike(e))return _(e);if(c.isPromise(e))return b(e);if(d.isAsyncIterable(e))return S(e);if(p.isIterable(e))return w(e);if(f.isReadableStreamLike(e))return C(e)}throw h.createInvalidObservableTypeError(e)},t.fromInteropObservable=y,t.fromArrayLike=_,t.fromPromise=b,t.fromIterable=w,t.fromAsyncIterable=S,t.fromReadableStreamLike=C},19749:function(){(()=>{"use strict";var e={792:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(609),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,':host{--divider-width: 1px;--divider-color: #fff;--divider-shadow: none;--default-handle-width: 50px;--default-handle-color: #fff;--default-handle-opacity: 1;--default-handle-shadow: none;--handle-position-start: 50%;position:relative;display:inline-block;overflow:hidden;line-height:0;direction:ltr}@media screen and (-webkit-min-device-pixel-ratio: 0)and (min-resolution: 0.001dpcm){:host{outline-offset:1px}}:host(:focus){outline:2px solid -webkit-focus-ring-color}::slotted(*){-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;-o-user-drag:none;user-drag:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.first{position:absolute;
6left:0;top:0;right:0;line-height:normal;font-size:100%;max-height:100%;height:100%;width:100%;--exposure: 50%;--keyboard-transition-time: 0ms;--default-transition-time: 0ms;--transition-time: var(--default-transition-time)}.first .first-overlay-container{position:relative;clip-path:inset(0 var(--exposure) 0 0);transition:clip-path var(--transition-time);height:100%}.first .first-overlay{overflow:hidden;height:100%}.first.focused{will-change:clip-path}.first.focused .first-overlay-container{will-change:clip-path}.second{position:relative}.handle-container{transform:translateX(50%);position:absolute;top:0;right:var(--exposure);height:100%;transition:right var(--transition-time),bottom var(--transition-time)}.focused .handle-container{will-change:right}.divider{position:absolute;height:100%;width:100%;left:0;top:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.divider:after{content:" ";display:block;height:100%;border-left-width:var(--divider-width);border-left-style:solid;border-left-color:var(--divider-color);box-shadow:var(--divider-shadow)}.handle{position:absolute;top:var(--handle-position-start);pointer-events:none;box-sizing:border-box;margin-left:1px;transform:translate(calc(-50% - 0.5px), -50%);line-height:0}.default-handle{width:var(--default-handle-width);opacity:var(--default-handle-opacity);transition:all 1s;filter:drop-shadow(var(--default-handle-shadow))}.default-handle path{stroke:var(--default-handle-color)}.vertical .first-overlay-container{clip-path:inset(0 0 var(--exposure) 0)}.vertical .handle-container{transform:translateY(50%);height:auto;top:unset;bottom:var(--exposure);width:100%;left:0;flex-direction:row}.vertical .divider:after{height:1px;width:100%;border-top-width:var(--divider-width);border-top-style:solid;border-top-color:var(--divider-color);border-left:0}.vertical .handle{top:auto;left:var(--handle-position-start);transform:translate(calc(-50% - 0.5px), -50%) rotate(90deg)}',""]);const i=a},609:e=>{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 i=0;i<this.length;i++){var o=this[i][0];null!=o&&(a[o]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&a[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e=n(792);const t="rendered",r=(e,t)=>{const n=e.getBoundingClientRect();let r,a;return"mousedown"===t.type?(r=t.clientX,a=t.clientY):(r=t.touches[0].clientX,a=t.touches[0].clientY),r>=n.x&&r<=n.x+n.width&&a>=n.y&&a<=n.y+n.height};let a;const i={ArrowLeft:-1,ArrowRight:1},o=["horizontal","vertical"],s=e=>({x:e.touches[0].pageX,y:e.touches[0].pageY}),c=e=>({x:e.pageX,y:e.pageY}),l="undefined"!=typeof window&&(null===window||void 0===window?void 0:window.HTMLElement);"undefined"!=typeof window&&(window.document&&(a=document.createElement("template"),a.innerHTML='<div class="second" id="second"> <slot name="second"><slot name="before"></slot></slot> </div> <div class="first" id="first"> <div class="first-overlay"> <div class="first-overlay-container" id="firstImageContainer"> <slot name="first"><slot name="after"></slot></slot> </div> </div> <div class="handle-container"> <div class="divider"></div> <div class="handle" id="handle"> <slot name="handle"> <svg xmlns="http://www.w3.org/2000/svg" class="default-handle" viewBox="-8 -3 16 6"> <path d="M -5 -2 L -7 0 L -5 2 M 5 -2 L 7 0 L 5 2" fill="none" vector-effect="non-scaling-stroke"/> </svg> </slot> </div> </div> </div> '),window.customElements.define("img-comparison-slider",class extends l{constructor(){super(),this.exposure=this.hasAttribute("value")?parseFloat(this.getAttribute("value")):
vendor: 4,924 bytes, line 6
650,this.slideOnHover=!1,this.slideDirection="horizontal",this.keyboard="enabled",this.isMouseDown=!1,this.animationDirection=0,this.isFocused=!1,this.dragByHandle=!1,this.onMouseMove=e=>{if(this.isMouseDown||this.slideOnHover){const t=c(e);this.slideToPage(t)}},this.bodyUserSelectStyle="",this.bodyWebkitUserSelectStyle="",this.onMouseDown=e=>{if(this.slideOnHover)return;if(this.handle&&!r(this.handleElement,e))return;e.preventDefault(),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onWindowMouseUp),this.isMouseDown=!0,this.enableTransition();const t=c(e);this.slideToPage(t),this.focus(),this.bodyUserSelectStyle=window.document.body.style.userSelect,this.bodyWebkitUserSelectStyle=window.document.body.style.webkitUserSelect,window.document.body.style.userSelect="none",window.document.body.style.webkitUserSelect="none"},this.onWindowMouseUp=()=>{this.isMouseDown=!1,window.document.body.style.userSelect=this.bodyUserSelectStyle,window.document.body.style.webkitUserSelect=this.bodyWebkitUserSelectStyle,window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onWindowMouseUp)},this.touchStartPoint=null,this.isTouchComparing=!1,this.hasTouchMoved=!1,this.onTouchStart=e=>{this.dragByHandle&&!r(this.handleElement,e)||(this.touchStartPoint=s(e),this.isFocused&&(this.enableTransition(),this.slideToPage(this.touchStartPoint)))},this.onTouchMove=e=>{if(null===this.touchStartPoint)return;const t=s(e);if(this.isTouchComparing)return this.slideToPage(t),e.preventDefault(),!1;if(!this.hasTouchMoved){const n=Math.abs(t.y-this.touchStartPoint.y),r=Math.abs(t.x-this.touchStartPoint.x);if("horizontal"===this.slideDirection&&n<r||"vertical"===this.slideDirection&&n>r)return this.isTouchComparing=!0,this.focus(),this.slideToPage(t),e.preventDefault(),!1;this.hasTouchMoved=!0}},this.onTouchEnd=()=>{this.isTouchComparing=!1,this.hasTouchMoved=!1,this.touchStartPoint=null},this.onBlur=()=>{this.stopSlideAnimation(),this.isFocused=!1,this.firstElement.classList.remove("focused")},this.onFocus=()=>{this.isFocused=!0,this.firstElement.classList.add("focused")},this.onKeyDown=e=>{if("disabled"===this.keyboard)return;const t=i[e.key];this.animationDirection!==t&&void 0!==t&&(this.animationDirection=t,this.startSlideAnimation())},this.onKeyUp=e=>{if("disabled"===this.keyboard)return;const t=i[e.key];void 0!==t&&this.animationDirection===t&&this.stopSlideAnimation()},this.resetDimensions=()=>{this.imageWidth=this.offsetWidth,this.imageHeight=this.offsetHeight};const t=this.attachShadow({mode:"open"}),n=document.createElement("style");n.innerHTML=e.Z,this.getAttribute("nonce")&&n.setAttribute("nonce",this.getAttribute("nonce")),t.appendChild(n),t.appendChild(a.content.cloneNode(!0)),this.firstElement=t.getElementById("first"),this.handleElement=t.getElementById("handle")}set handle(e){this.dragByHandle="false"!==e.toString().toLowerCase()}get handle(){return this.dragByHandle}get value(){return this.exposure}set value(e){const t=parseFloat(e);t!==this.exposure&&(this.exposure=t,this.enableTransition(),this.setExposure())}get hover(){return this.slideOnHover}set hover(e){this.slideOnHover="false"!==e.toString().toLowerCase(),this.removeEventListener("mousemove",this.onMouseMove),this.slideOnHover&&this.addEventListener("mousemove",this.onMouseMove)}get direction(){return this.slideDirection}set direction(e){this.slideDirection=e.toString().toLowerCase(),this.slide(0),this.firstElement.classList.remove(...o),o.includes(this.slideDirection)&&this.firstElement.classList.add(this.slideDirection)}static get observedAttributes(){return["hover","direction"]}connectedCallback(){this.hasAttribute("tabindex")||(this.tabIndex=0),this.addEventListener("dragstart",(e=>(e.preventDefault(),!1))),new ResizeObserver(this.resetDimensions).observe(this),this.setExposure(0),this.keyboard=this.hasAttribute("keyboard")&&"disabled"===this.getAttribute("keyboard")?"disabled":"enabled",this.addEventListener("keydown",this.onKeyDown),this.addEventListener("keyup",this.onKeyUp),this.addEventListener("focus",this.onFocus),this.addEventListener("blur",this.onBlur),this.addEventListener("touchstart",this.onTouchStart,{passive:!0}),this.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.addEventListener("touchend",this.onTouchEnd),this.addEventListener("mousedown",this.onMouseDown),this.handle=this.hasAttribute("handle")?this.getAttribute("handle"):this.dragByHandle,this.hover=this.hasAttribute("hover")?this.getAttribute("hover"):this.slideOnHover,this.direction=this.hasAttribute("direction")?this.getAttribute("direction"):this.slideDirection,this.resetDimensions(),this.classList.contains(t)||this.classList.add(t)}disconnectedCallback(){this.transitionTimer&&window.clearTimeout(this.transitionTimer)}attributeChangedCallback(e,t,n){"hover"===e&&(this.hover=n),"direction"===e&&(this.direction=n),"ke
6yboard"===e&&(this.keyboard="disabled"===n?"disabled":"enabled")}setExposure(e=0){var t;this.exposure=(t=this.exposure+e)<0?0:t>100?100:t,this.firstElement.style.setProperty("--exposure",100-this.exposure+"%")}slide(e=0){this.setExposure(e);const t=new Event("slide");this.dispatchEvent(t)}slideToPage(e){"horizontal"===this.slideDirection&&this.slideToPageX(e.x),"vertical"===this.slideDirection&&this.slideToPageY(e.y)}slideToPageX(e){const t=e-this.getBoundingClientRect().left-window.scrollX;this.exposure=t/this.imageWidth*100,this.slide(0)}slideToPageY(e){const t=e-this.getBoundingClientRect().top-window.scrollY;this.exposure=t/this.imageHeight*100,this.slide(0)}enableTransition(){this.firstElement.style.setProperty("--transition-time","100ms"),this.transitionTimer=window.setTimeout((()=>{this.firstElement.style.setProperty("--transition-time","var(--default-transition-time)"),this.transitionTimer=null}),100)}startSlideAnimation(){let e=null,t=this.animationDirection;this.firstElement.style.setProperty("--transition-time","var(--keyboard-transition-time)");const n=r=>{if(0===this.animationDirection||t!==this.animationDirection)return;null===e&&(e=r);const a=(r-e)/16.666666666666668*this.animationDirection;this.slide(a),setTimeout((()=>window.requestAnimationFrame(n)),0),e=r};window.requestAnimationFrame(n)}stopSlideAnimation(){this.animationDirection=0,this.firstElement.style.setProperty("--transition-time","var(--default-transition-time)")}}))})()})()},19818:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;var r=n(31245),a=n(65212),i=n(17214);t.dematerialize=function(){return a.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,(function(e){return r.observeNotification(e,t)})))}))}},19913:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;var r=n(29512),a=n(10281);t.concatMapTo=function(e,t){return a.isFunction(t)?r.concatMap((function(){return e}),t):r.concatMap((function(){return e}))}},19980:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;var r=n(59328),a=n(85934),i=n(54383),o=n(58799),s=n(30632),c=n(87699);t.first=function(e,t){var n=arguments.length>=2;return function(l){return l.pipe(e?a.filter((function(t,n){return e(t,n,l)})):c.identity,i.take(1),n?o.defaultIfEmpty(t):s.throwIfEmpty((function(){return new r.EmptyError})))}}},20998:function(e,t,n){var r=n(74692),a=n(74692);r((function(){if(document.querySelector(".amag-confirmDoi")&&document.location.search.indexOf("subscriptions")>-1){var e=document.location.search.replace("?","").split("&"),t=document.querySelector("html").lang;if((e.find((function(e){return e.indexOf("lang=")>-1}))||t).replace("lang=","")===t){var n={selectors:{wrapper:".amag-confirmDoi"},matchListBrands:{de:{audi:"Audi",vwpw:"Volkswagen",vwnf:"Volkswagen Nutzfahrzeuge",skoda:"Škoda",seat:"Seat",cupra:"Cupra"},fr:{audi:"Audi",vwpw:"Volkswagen",vwnf:"Volkswagen Véhicules Utilitaires",skoda:"Škoda",seat:"Seat",cupra:"Cupra"},it:{audi:"Audi",vwpw:"Volkswagen",vwnf:"Volkswagen Veicoli Commerciali",skoda:"Škoda",seat:"Seat",cupra:"Cupra"}}},r=e.find((function(e){return e.indexOf("subscriptions=")>-1})).replace("subscriptions=","").split(",");a(".amag-confirmDoi__inner").each((function(e,t){for(var a=t.classList[1].replace("lang--",""),i="",o=new Array,s=0;s<r.length;s++){var c=n.matchListBrands[a];void 0!==c[r[s].toLowerCase()]&&o.push(c[r[s].toLowerCase()])}o.length&&(i="<ul><li>".concat(o.join("</li><li>"),"</li></ul>"),t.innerHTML=i)}))}}}))},21361:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;var r=n(65212),a=n(17214);t.every=function(e,t){return r.operate((function(n,r){var i=0;n.subscribe(a.createOperatorSubscriber(r,(function(a){e.call(t,a,i++,n)||(r.next(!1),r.complete())}),(function(){r.next(!0),r.complete()})))}))}},21375:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var r=n(58740);function a(e){if(0===(e||"").indexOf("data:"))return{protocol:"data"};try{const t=new URL(e,location.href),n={port:t.port,hostname:t.hostname,pathname:t.pathname,search:t.search,protocol:t.protocol.slice(0,t.protocol.indexOf(":")),sameOrigin:t.protocol===r.gm?.location?.protocol&&t.host===r.gm?.location?.host};return n.port&&""!==n.port||("http:"===t.protocol&&(n.port="80"),"https:"===t.protocol&&(n.port="443")),n.pathname&&""!==n.pathname?n.pathname.startsWith("/")||(n.pathname="/".concat(n.pathname)):n.pathname="/",n}catch(e){return{}}}},21690:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(68126);const a=()=>{const e=new WeakSet;return(t,n)=>{if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}};function i(e){try{return JSON.stringify(e,a())??""}catch(e){try{r.ee.emit("internal-error",[e])}catch(e){}return""}}},21762:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;var r=n(62326),a=n(65212),i=n(17214);t.debounceTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),a.operate((function(n,r){var a=null,o=null,s=null,c=function(){if(a){a.unsubscribe(),a=null;var e=o;o=null,r.next(e)}};function l(){var n=s+e,i=t.now();if(i<n)return a=this.schedule(void 0,n-i),void r.add(a);c()}n.subscribe(i.createOperatorSubscriber(r,(function(n){o=n,s=t.now(),a||(a=t.schedule(l,e),r.add(a))}),(function(){c(),r.complete()}),void 0,(function(){o=a=null})))}))}},21875:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrames=void 0;var r=n(48051),a=n(22931),i=n(35726);function o(e){return new r.Observable((function(t){var n=e||a.performanceTimestampProvider,r=n.now(),o=0,s=function(){t.closed||(o=i.animationFrameProvider.requestAnimationFrame((function(a){o=0;var i=n.now();t.next({timestamp:e?i:a,elapsed:i-r}),s()})))};return s(),function(){o&&i.animationFrameProvider.cancelAnimationFrame(o)}}))}t.animationFrames=function(e){return e?o(e):s};var s=o()},21946:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindNodeCallback=void 0;var r=n(17474);t.bindNodeCallback=function(e,t,n){return r.bindCallbackInternals(!0,e,t,n)}},21966:function(e,t,n){"use strict";n.d(t,{NT:function(){return s},Zm:function(){return c},bQ:function(){return u},dV:function(){return l},pV:function(){return d}});var r=n(58740),a=n(31609),i=n(49674),o=n(53720);const s={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net"};function c(){return r.gm.NREUM||(r.gm.NREUM={}),void 0===r.gm.newrelic&&(r.gm.newrelic=r.gm.NREUM),r.gm.NREUM}function l(){let e=c();return e.o||(e.o={ST:r.gm.setTimeout,SI:r.gm.setImmediate||r.gm.setInterval,CT:r.gm.clearTimeout,XHR:r.gm.XMLHttpRequest,REQ:r.gm.Request,EV:r.gm.Event,PR:r.gm.Promise,MO:r.gm.MutationObserver,FETCH:r.gm.fetch,WS:r.gm.WebSocket},(0,o.i)(...Object.values(e.o))),e}function u(e,t){let n=c();n.initializedAgents??={},t.initializedAt={ms:(0,a.t)(),date:new Date},n.initializedAgents[e]=t,2===Object.keys(n.initializedAgents).length&&(0,i.R)(69)}function d(){return function(){let e=c();const t=e.info||{};e.info={beacon:s.beacon,errorBeacon:s.errorBeacon,...t}}(),function(){let e=c();const t=e.init||{};e.init={...t}}(),l(),function(){let e=c();const t=e.loader_config||{};e.loader_config={...t}}(),c()}},22044:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;var r=n(87699),a=n(65212),i=n(17214);function o(e,t){return e===t}t.distinctUntilChanged=function(e,t){return void 0===t&&(t=r.identity),e=null!=e?e:o,a.operate((function(n,r){var a,o=!0;n.subscribe(i.createOperatorSubscriber(r,(function(n){var i=t(n);!o&&e(a,i)||(o=!1,a=i,r.next(n))})))}))}},22105:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asap=t.asapScheduler=void 0;var r=n(78051),a=n(23952);t.asapScheduler=new a.AsapScheduler(r.AsapAction),t.asap=t.asapScheduler},22300:function(e,t,n){var r=n(74692);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}!function(){if(document.querySelector(".amag-abbildungTeamsWrapper")&&document.getElementById("goToFooter")){(e=r("#goToFooter")).on("click",(function(t){t.preventDefault();var n=e[0].getAttribute("href");r("html, body").animate({scrollTop:r(n).offset().top})}))}var e;if(document.querySelector(".amag-content-abbildungTeamsWrapper")&&(document.querySelector(".amag-abbildungTeams")||document.querySelector(".amag-teamMember-small"))){var t=function(e){return r("#"+e).find(".amag-dropdown__selectText span.value").html()},n=function(e){var t=document.querySelectorAll(".amag-abbildungTeamsWrapper__departments");if(""!=e){var n,r=a(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.getAttribute("id")===e?i.style.display="block":i.style.display="none"}}catch(e){r.e(e)}finally{r.f()}}else{var o,s=a(t);try{for(s.s();!(o=s.n()).done;){o.value.style.display="block"}}catch(e){s.e(e)}finally{s.f()}}};n(t("amag-filterDepartments")),r(".amag-dropdown .amag-dropdown__select").click((function(e){r(this).closest(".amag-dropdown").find(".amag-dropdown__list").toggle()})),r(document).bind("click",(function(e){r(e.target).parents().hasClass("amag-dropdown")||r(".amag-dropdown .amag-dropdown__list").hide()})),r(".amag-dropdown .amag-dropdown__list ul li a").click((function(e){e.preventDefault();var a=r(this).html();r(this).closest(".amag-dropdown").attr("id");r(this).closest(".amag-dropdown").find(".amag-dropdown__select .amag-dropdown__selectText").html(a),r(this).closest(".amag-dropdown").find(".amag-dropdown__list").hide(),r(this).closest(".amag-dropdown").addClass("selected"),n(t("amag-filterDepartments"))}))}}()},22400:function(){document.querySelector(".amag-abbildungTeams")&&document.querySelectorAll(".amag-abbildungTeams__showMoreIcon a").forEach((function(e){e.addEventListener("click",(function(){e.closest(".amag-abbildungTeams").querySelector(".amag-abbildungTeams__imgWrapper").classList.toggle("amag-abbildungTeams__imgWrapper--ratio3-4")}))}))},22752:function(e,t,n){"use strict";n.d(t,{He:function(){return a},Kp:function(){return s},Lc:function(){return l},Rz:function(){return u},TZ:function(){return r},bD:function(){return i},d3:function(){return o},jx:function(){return d},sl:function(){return h},uP:function(){return c}});const r=n(19470).K7.sessionTrace,a="bstResource",i="resource",o="-start",s="-end",c="fn"+o,l="fn"+s,u="pushState",d=1e3,h=3e4},22931:function(e,t){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.performanceTimestampProvider=void 0,t.performanceTimestampProvider={now:function(){return(t.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},23029:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:function(){return r}})},23079:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;var r=n(85934);t.skip=function(e){return r.filter((function(t,n){return e<=n}))}},23506:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;var r=n(9619);t.NotFoundError=r.createErrorClass((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}))},23941:function(e,t,n){"use strict";n.d(t,{u:function(){return h}});var r=n(68126),a=n(77340),i=n(29176),o=n(58740);const s={},c=o.gm.XMLHttpRequest,l="addEventListener",u="removeEventListener",d="nr@wrapped:".concat(r.P);function h(e){var t=function(e){return(e||r.ee).get("events")}(e);if(s[t.debugId]++)return t;s[t.debugId]=1;var n=(0,a.YM)(t,!0);function h(e){n.inPlace(e,[l,u],"-",f)}function f(e,t){return e[1]}return"getPrototypeOf"in Object&&(o.RI&&p(document,h),c&&p(c.prototype,h),p(o.gm,h)),t.on(l+"-start",(function(e,t){var r=e[1];if(null!==r&&("function"==typeof r||"object"==typeof r)&&"newrelic"!==e[0]){var a=(0,i.I)(r,d,(function(){var e={object:function(){if("function"!=typeof r.handleEvent)return;return r.handleEvent.apply(r,arguments)},function:r}[typeof r];return e?n(e,"fn-",null,e.name||"anonymous"):r}));this.wrapped=e[1]=a}})),t.on(u+"-start",(function(e){e[1]=this.wrapped||e[1]})),t}function p(e,t,...n){let r=e;for(;"object"==typeof r&&!Object.prototype.hasOwnProperty.call(r,l);)r=Object.getPrototypeOf(r);r&&t(r,...n)}},23952: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapScheduler=void 0;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var n,r=this.actions;e=e||r.shift();do{if(n=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,n){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw n}},t}(n(19533).AsyncScheduler);t.AsapScheduler=i},25096:function(e,t){var n,r,a;r=[e,t],n=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e((function(e){e.datepicker.regional.fr={closeText:"Fermer",prevText:"Précédent",nextText:"Suivant",currentText:"Aujourd'hui",monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthNamesShort:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],dayNamesMin:["D","L","M","M","J","V","S"],weekHeader:"Sem.",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.fr)}))},e.exports=t.default},void 0===(a="function"==typeof n?n.apply(t,r):n)||(e.exports=a)},26404:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;var r=n(10281),a=n(68596);function i(e){return e[e.length-1]}t.popResultSelector=function(e){return r.isFunction(i(e))?e.pop():void 0},t.popScheduler=function(e){return a.isScheduler(i(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof i(e)?e.pop():t}},26474:function(e,t,n){"use strict";n.d(t,{AZ:function(){return r},Ri:function(){return i},TV:function(){return o}});var r,a=n(69267);!function(e){e.GARAGE="garage",e.LANGUAGE="language"}(r||(r={}));var i=function(e){var t=document.cookie.match("(^|;) ?".concat(e,"=([^;]*)(;|$)"));return t?t[2]:null},o=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",i=(0,a.Wq)(),o="";n&&(o="expires=".concat(n,";")),document.cookie="".concat(e,"=").concat(encodeURIComponent(t),";").concat(o,"path=").concat(r,";domain=").concat(i)}},26569:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.publishLast=void 0;var r=n(5130),a=n(14359);t.publishLast=function(){return function(e){var t=new r.AsyncSubject;return new a.ConnectableObservable(e,(function(){return t}))}}},26680:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;var r=n(48051),a=n(10281);t.throwError=function(e,t){var n=a.isFunction(e)?e:function(){return e},i=function(e){return e.error(n())};return new r.Observable(t?function(e){return t.schedule(i,0,e)}:i)}},26744:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;var r=n(65212),a=n(17214);t.pairwise=function(){return r.operate((function(e,t){var n,r=!1;e.subscribe(a.createOperatorSubscriber(t,(function(e){var a=n;n=e,r&&t.next([a,e]),r=!0})))}))}},26749:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var i=n(11415),o=n(65212);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.operate((function(t,n){i.zip.apply(void 0,a([t],r(e))).subscribe(n)}))}},26872:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;var r=n(65212),a=n(17214);t.map=function(e,t){return r.operate((function(n,r){var i=0;n.subscribe(a.createOperatorSubscriber(r,(function(n){r.next(e.call(t,n,i++))})))}))}},26920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromEventPattern=void 0;var r=n(48051),a=n(10281),i=n(13916);t.fromEventPattern=function e(t,n,o){return o?e(t,n).pipe(i.mapOneOrManyArgs(o)):new r.Observable((function(e){var r=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1===t.length?t[0]:t)},i=t(r);return a.isFunction(n)?function(){return n(r,i)}:void 0}))}},27800:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(43145);function a(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},28619:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,n,r,a){void 0===r&&(r=0),void 0===a&&(a=!1);var i=t.schedule((function(){n(),a?e.add(this.schedule(null,r)):this.unsubscribe()}),r);if(e.add(i),!a)return i}},28996:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowToggle=void 0;var a=n(76808),i=n(69879),o=n(65212),s=n(19724),c=n(17214),l=n(5717),u=n(54830);t.windowToggle=function(e,t){return o.operate((function(n,o){var d=[],h=function(e){for(;0<d.length;)d.shift().error(e);o.error(e)};s.innerFrom(e).subscribe(c.createOperatorSubscriber(o,(function(e){var n=new a.Subject;d.push(n);var r,p=new i.Subscription;try{r=s.innerFrom(t(e))}catch(e){return void h(e)}o.next(n.asObservable()),p.add(r.subscribe(c.createOperatorSubscriber(o,(function(){u.arrRemove(d,n),n.complete(),p.unsubscribe()}),l.noop,h)))}),l.noop)),n.subscribe(c.createOperatorSubscriber(o,(function(e){var t,n,a=d.slice();try{for(var i=r(a),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),(function(){for(;0<d.length;)d.shift().complete();o.complete()}),h,(function(){for(;0<d.length;)d.shift().unsubscribe()})))}))}},29035:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;var r=n(65212),a=n(98183);t.findIndex=function(e,t){return r.operate(a.createFind(e,t,"index"))}},29077:function(e,t,n){"use strict";n.d(t,{D:function(){return s},f:function(){return o}});var r=n(21966),a=n(19644);const i={beacon:r.NT.beacon,errorBeacon:r.NT.errorBeacon,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0};function o(e){try{return!!e.licenseKey&&!!e.errorBeacon&&!!e.applicationID}catch(e){return!1}}const s=e=>(0,a.a)(e,i)},29176:function(e,t,n){"use strict";n.d(t,{I:function(){return a}});var r=Object.prototype.hasOwnProperty;function a(e,t,n){if(r.call(e,t))return e[t];var a=n();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:a,writable:!0,enumerable:!1}),a}catch(e){}return e[t]=a,a}},29512:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;var r=n(67478),a=n(10281);t.concatMap=function(e,t){return a.isFunction(t)?r.mergeMap(e,t,1):r.mergeMap(e,1)}},29987:function(e,t){var n,r,a;r=[e,t],n=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e((function(e){e.datepicker.regional.de={closeText:"SchlieÃen",prevText:"<Zurück",nextText:"Vor>",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.de)}))},e.exports=t.default},void 0===(a="function"==typeof n?n.apply(t,r):n)||(e.exports=a)},30131:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;var r=n(65650),a=n(54530),i=n(34950),o=n(36805),s=n(17873),c=n(80629),l=n(67552),u=n(94975),d=n(12187),h=n(78263),p=n(86297),f=n(95462),m=n(30380);t.scheduled=function(e,t){if(null!=e){if(c.isInteropObservable(e))return r.scheduleObservable(e,t);if(u.isArrayLike(e))return i.scheduleArray(e,t);if(l.isPromise(e))return a.schedulePromise(e,t);if(h.isAsyncIterable(e))return s.scheduleAsyncIterable(e,t);if(d.isIterable(e))return o.scheduleIterable(e,t);if(f.isReadableStreamLike(e))return m.scheduleReadableStreamLike(e,t)}throw p.createInvalidObservableTypeError(e)}},30380:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;var r=n(17873),a=n(95462);t.scheduleReadableStreamLike=function(e,t){return r.scheduleAsyncIterable(a.readableStreamLikeToAsyncGenerator(e),t)}},30632:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;var r=n(59328),a=n(65212),i=n(17214);function o(){return new r.EmptyError}t.throwIfEmpty=function(e){return void 0===e&&(e=o),a.operate((function(t,n){var r=!1;t.subscribe(i.createOperatorSubscriber(n,(function(e){r=!0,n.next(e)}),(function(){return r?n.complete():n.error(e())})))}))}},31080:function(e,t,n){"use strict";n.d(t,{B:function(){return c}});var r=n(10467),a=n(54756),i=n.n(a);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c=function(){var e=(0,r.A)(i().mark((function e(){var t,n,r,a,s,c,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.google&&window.google.maps){e.next=3;break}return console.error("Google Maps API not loaded yet!"),e.abrupt("return");case 3:t=document.querySelectorAll(".amag-garageTabModul__content"),n=o(t);try{for(n.s();!(r=n.n()).done;)a=r.value,s=a.querySelector(".amag-garageTabModul__map"),c=a.querySelector(".amag-garageTabModul__location").getAttribute("data-latitude"),u=a.querySelector(".amag-garageTabModul__location").getAttribute("data-longitude"),l(s,c,u)}catch(e){n.e(e)}finally{n.f()}case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),l=function(e,t,n){var r={lat:parseFloat(t),lng:parseFloat(n)},a=new google.maps.Map(e,{center:r,zoom:16,streetViewControl:!1,fullscreenControl:!1,mapTypeControl:!1,zoomControl:!0});new google.maps.Marker({position:r,map:a})}},31245:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=t.Notification=t.NotificationKind=void 0;var r=n(44885),a=n(61587),i=n(26680),o=n(10281);!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(t.NotificationKind||(t.NotificationKind={}));var s=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return c(this,e)},e.prototype.do=function(e,t,n){var r=this,a=r.kind,i=r.value,o=r.error;return"N"===a?null==e?void 0:e(i):"E"===a?null==t?void 0:t(o):null==n?void 0:n()},e.prototype.accept=function(e,t,n){var r;return o.isFunction(null===(r=e)||void 0===r?void 0:r.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,t=e.kind,n=e.value,o=e.error,s="N"===t?a.of(n):"E"===t?i.throwError((function(){return o})):"C"===t?r.EMPTY:0;if(!s)throw new TypeError("Unexpected notification kind "+t);return s},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function c(e,t){var n,r,a,i=e,o=i.kind,s=i.value,c=i.error;if("string"!=typeof o)throw new TypeError('Invalid notification, missing "kind"');"N"===o?null===(n=t.next)||void 0===n||n.call(t,s):"E"===o?null===(r=t.error)||void 0===r||r.call(t,c):null===(a=t.complete)||void 0===a||a.call(t)}t.Notification=s,t.observeNotification=c},31609:function(e,t,n){"use strict";function r(){return Math.floor(performance.now())}n.d(t,{t:function(){return r}})},31896:function(e,t,n){var r=n(74692);r(document).ready((function(){if(document.querySelector(".generic-header")){r(window).resize((function(){if(window.innerWidth<1200){var e=window.innerHeight-r(".generic-header").height();r(".generic-navbar-overlay").height(e),r(".generic-amagNavigationItem__subMenu").height(e-100)}})),r(window).resize(),r(".generic-header__hamburger").on("click",(function(){r("#header").toggleClass("generic-header--overlay-open"),r("html").toggleClass("overflow-hidden")})),r(".generic-amagNavigationItem__submenuToggle").on("change",(function(){if(r(this).is(":checked")){var e=r(this).closest("ul"),t=e.scrollTop();e[0].scrollTop=0,r(this).data("scrollmemory",t),r(this).closest("ul").addClass("overflow-hidden")}else{var n=r(this).closest("ul"),a=r(this).data("scrollmemory");n[0].scrollTop=a,r(this).closest("ul").removeClass("overflow-hidden")}}));var e,t=!1,n=r(".generic-navbar-overlay"),a="";r(document).on("mouseenter",".generic-nav-link--hasOverlay",(function(){clearTimeout(e),a=r(this).data("overlay"),r("#header").addClass("generic-header--overlay-open"),n.addClass("generic-navbar-overlay--desktop"),n.find(".generic-amagNavigation-desktop.active")&&(n.find(".generic-amagNavigation-desktop.active").removeClass("active"),n.find(".generic-amagNavigation-desktop[data-overlay='"+a+"']").addClass("active"))})).on("mouseleave",".generic-nav-link--hasOverlay",(function(){clearTimeout(e),e=setTimeout((function(){t||(r("html").removeClass("overflow-hidden"),r("#header").removeClass("generic-header--overlay-open"),n.removeClass("generic-navbar-overlay--desktop"),n.find(".generic-amagNavigation-desktop[data-overlay='"+a+"']").removeClass("active"))}),1)})),r(document).on("mouseenter",".generic-navbar-overlay",(function(){window.innerWidth>=1200&&(t=!0,setTimeout((function(){t=!1}),100))})).on("mouseleave",".generic-navbar-overlay",(function(){window.innerWidth>=1200&&(t=!1,r("#header").removeClass("generic-header--overlay-open"),n.removeClass("generic-navbar-overlay--desktop"),n.find(".generic-amagNavigation-desktop[data-overlay='"+a+"']").removeClass("active"))}))}}))},31983: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)});
6Object.defineProperty(t,"__esModule",{value:!0}),t.QueueAction=void 0;var i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return a(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.flush(this),0)},t}(n(64772).AsyncAction);t.QueueAction=i},32036: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueScheduler=void 0;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(n(19533).AsyncScheduler);t.QueueScheduler=i},32071:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;var r=n(28619),a=n(65212),i=n(17214);t.observeOn=function(e,t){return void 0===t&&(t=0),a.operate((function(n,a){n.subscribe(i.createOperatorSubscriber(a,(function(n){return r.executeSchedule(a,e,(function(){return a.next(n)}),t)}),(function(){return r.executeSchedule(a,e,(function(){return a.complete()}),t)}),(function(n){return r.executeSchedule(a,e,(function(){return a.error(n)}),t)})))}))}},32508:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;var r=n(62326),a=n(65212),i=n(17214);t.timeInterval=function(e){return void 0===e&&(e=r.asyncScheduler),a.operate((function(t,n){var r=e.now();t.subscribe(i.createOperatorSubscriber(n,(function(t){var a=e.now(),i=a-r;r=a,n.next(new o(t,i))})))}))};var o=function(e,t){this.value=e,this.interval=t};t.TimeInterval=o},32568:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;var r=n(59328),a=n(85934),i=n(65279),o=n(30632),s=n(58799),c=n(87699);t.last=function(e,t){var n=arguments.length>=2;return function(l){return l.pipe(e?a.filter((function(t,n){return e(t,n,l)})):c.identity,i.takeLast(1),n?s.defaultIfEmpty(t):o.throwIfEmpty((function(){return new r.EmptyError})))}}},32980:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportUnhandledError=void 0;var r=n(93728),a=n(94808);t.reportUnhandledError=function(e){a.timeoutProvider.setTimeout((function(){var t=r.config.onUnhandledError;if(!t)throw e;t(e)}))}},33078:function(e,t,n){var r=n(74692);!function(){"use strict";var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();!function(t){var n="ekkoLightbox",a=t.fn[n],i={title:"",footer:"",maxWidth:9999,maxHeight:9999,showArrows:!0,wrapping:!0,type:null,alwaysShowClose:!1,loadingMessage:'<div class="ekko-lightbox-loader"><div><div></div><div></div></div></div>',leftArrow:"<span>❮</span>",rightArrow:"<span>❯</span>",strings:{close:"Close",fail:"Failed to load image:",type:"Could not detect remote target type. Force the type using data-type"},doc:document,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNavigate:function(){},onContentLoaded:function(){}},o=function(){function n(e,a){var o=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),this._config=t.extend({},i,a),this._$modalArrows=null,this._galleryIndex=0,this._galleryName=null,this._padding=null,this._border=null,this._titleIsShown=!1,this._footerIsShown=!1,this._wantedWidth=0,this._wantedHeight=0,this._touchstartX=0,this._touchendX=0,this._modalId="ekkoLightbox-"+Math.floor(1e3*Math.random()+1),this._$element=e instanceof r?e:t(e),this._isBootstrap3=3==t.fn.modal.Constructor.VERSION[0];var s='<h4 class="modal-title">'+(this._config.title||" ")+"</h4>",c='<button type="button" class="close" data-dismiss="modal" aria-label="'+this._config.strings.close+'"><span aria-hidden="true">×</span></button>',l='<div class="modal-dialog" role="document"><div class="modal-content">'+('<div class="modal-header'+(this._config.title||this._config.alwaysShowClose?"":" hide")+'">'+(this._isBootstrap3?c+s:s+c)+"</div>")+'<div class="modal-body"><div class="ekko-lightbox-container"><div class="ekko-lightbox-item fade in show"></div><div class="ekko-lightbox-item fade"></div></div></div>'+('<div class="modal-footer'+(this._config.footer?"":" hide")+'">'+(this._config.footer||" ")+"</div>")+"</div></div>";t(this._config.doc.body).append('<div id="'+this._modalId+'" class="ekko-lightbox modal fade" tabindex="-1" tabindex="-1" role="dialog" aria-hidden="true">'+l+"</div>"),this._$modal=t("#"+this._modalId,this._config.doc),this._$modalDialog=this._$modal.find(".modal
6-dialog").first(),this._$modalContent=this._$modal.find(".modal-content").first(),this._$modalBody=this._$modal.find(".modal-body").first(),this._$modalHeader=this._$modal.find(".modal-header").first(),this._$modalFooter=this._$modal.find(".modal-footer").first(),this._$lightboxContainer=this._$modalBody.find(".ekko-lightbox-container").first(),this._$lightboxBodyOne=this._$lightboxContainer.find("> div:first-child").first(),this._$lightboxBodyTwo=this._$lightboxContainer.find("> div:last-child").first(),this._border=this._calculateBorders(),this._padding=this._calculatePadding(),this._galleryName=this._$element.data("gallery"),this._galleryName&&(this._$galleryItems=t(document.body).find('*[data-gallery="'+this._galleryName+'"]'),this._galleryIndex=this._$galleryItems.index(this._$element),t(document).on("keydown.ekkoLightbox",this._navigationalBinder.bind(this)),this._config.showArrows&&this._$galleryItems.length>1&&(this._$lightboxContainer.append('<div class="ekko-lightbox-nav-overlay"><a href="#">'+this._config.leftArrow+'</a><a href="#">'+this._config.rightArrow+"</a></div>"),this._$modalArrows=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay").first(),this._$lightboxContainer.on("click","a:first-child",(function(e){return e.preventDefault(),o.navigateLeft()})),this._$lightboxContainer.on("click","a:last-child",(function(e){return e.preventDefault(),o.navigateRight()})),this.updateNavigation())),this._$modal.on("show.bs.modal",this._config.onShow.bind(this)).on("shown.bs.modal",(function(){return o._toggleLoading(!0),o._handle(),o._config.onShown.call(o)})).on("hide.bs.modal",this._config.onHide.bind(this)).on("hidden.bs.modal",(function(){return o._galleryName&&(t(document).off("keydown.ekkoLightbox"),t(window).off("resize.ekkoLightbox")),o._$modal.remove(),o._config.onHidden.call(o)})).modal(this._config),t(window).on("resize.ekkoLightbox",(function(){o._resize(o._wantedWidth,o._wantedHeight)})),this._$lightboxContainer.on("touchstart",(function(){o._touchstartX=event.changedTouches[0].screenX})).on("touchend",(function(){o._touchendX=event.changedTouches[0].screenX,o._swipeGesure()}))}return e(n,null,[{key:"Default",get:function(){return i}}]),e(n,[{key:"element",value:function(){return this._$element}},{key:"modal",value:function(){return this._$modal}},{key:"navigateTo",value:function(e){return e<0||e>this._$galleryItems.length-1?this:(this._galleryIndex=e,this.updateNavigation(),this._$element=t(this._$galleryItems.get(this._galleryIndex)),void this._handle())}},{key:"navigateLeft",value:function(){if(this._$galleryItems&&1!==this._$galleryItems.length){if(0===this._galleryIndex){if(!this._config.wrapping)return;this._galleryIndex=this._$galleryItems.length-1}else this._galleryIndex--;return this._config.onNavigate.call(this,"left",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"navigateRight",value:function(){if(this._$galleryItems&&1!==this._$galleryItems.length){if(this._galleryIndex===this._$galleryItems.length-1){if(!this._config.wrapping)return;this._galleryIndex=0}else this._galleryIndex++;return this._config.onNavigate.call(this,"right",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"updateNavigation",value:function(){if(!this._config.wrapping){var e=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay");0===this._galleryIndex?e.find("a:first-child").addClass("disabled"):e.find("a:first-child").removeClass("disabled"),this._galleryIndex===this._$galleryItems.length-1?e.find("a:last-child").addClass("disabled"):e.find("a:last-child").removeClass("disabled")}}},{key:"close",value:function(){return this._$modal.modal("hide")}},{key:"_navigationalBinder",value:function(e){return 39===(e=e||window.event).keyCode?this.navigateRight():37===e.keyCode?this.navigateLeft():void 0}},{key:"_detectRemoteType",value:function(e,t){return!(t=t||!1)&&this._isImage(e)&&(t="image"),!t&&this._getYoutubeId(e)&&(t="youtube"),!t&&this._getVimeoId(e)&&(t="vimeo"),!t&&this._getInstagramId(e)&&(t="instagram"),(!t||["image","youtube","vimeo","instagram","video","url"].indexOf(t)<0)&&(t="url"),t}},{key:"_isImage",value:function(e){return e&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)}},{key:"_containerToUse",value:function(){var e=this,t=this._$lightboxBodyTwo,n=this._$lightboxBodyOne;return this._$lightboxBodyTwo.hasClass("in")&&(t=this._$lightboxBodyOne,n=this._$lightboxBodyTwo),n.removeClass("in show"),setTimeout((function(){e._$lightboxBodyTwo.hasClass("in")||e._$lightboxBodyTwo.empty(),e._$lightboxBodyOne.hasClass("in")||e._$lightboxBodyOne.empty()}),500),t.addClass("in show"),t}},{key:"_handle",value:function(){var e=this._containerToUse();this._updateTitleAndFooter();var t=this._$element.attr("data-remote")||this._$element.attr("href"),n=this._detectRemoteType(t,this._$element.attr("data-type")||!1);
6if(["image","youtube","vimeo","instagram","video","url"].indexOf(n)<0)return this._error(this._config.strings.type);switch(n){case"image":this._preloadImage(t,e),this._preloadImageByIndex(this._galleryIndex,3);break;case"youtube":this._showYoutubeVideo(t,e);break;case"vimeo":this._showVimeoVideo(this._getVimeoId(t),e);break;case"instagram":this._showInstagramVideo(this._getInstagramId(t),e);break;case"video":this._showHtml5Video(t,e);break;default:this._loadRemoteContent(t,e)}return this}},{key:"_getYoutubeId",value:function(e){if(!e)return!1;var t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return!(!t||11!==t[2].length)&&t[2]}},{key:"_getVimeoId",value:function(e){return!!(e&&e.indexOf("vimeo")>0)&&e}},{key:"_getInstagramId",value:function(e){return!!(e&&e.indexOf("instagram")>0)&&e}},{key:"_toggleLoading",value:function(e){return(e=e||!1)?(this._$modalDialog.css("display","none"),this._$modal.removeClass("in show"),t(".modal-backdrop").append(this._config.loadingMessage)):(this._$modalDialog.css("display","block"),this._$modal.addClass("in show"),t(".modal-backdrop").find(".ekko-lightbox-loader").remove()),this}},{key:"_calculateBorders",value:function(){return{top:this._totalCssByAttribute("border-top-width"),right:this._totalCssByAttribute("border-right-width"),bottom:this._totalCssByAttribute("border-bottom-width"),left:this._totalCssByAttribute("border-left-width")}}},{key:"_calculatePadding",value:function(){return{top:this._totalCssByAttribute("padding-top"),right:this._totalCssByAttribute("padding-right"),bottom:this._totalCssByAttribute("padding-bottom"),left:this._totalCssByAttribute("padding-left")}}},{key:"_totalCssByAttribute",value:function(e){return parseInt(this._$modalDialog.css(e),10)+parseInt(this._$modalContent.css(e),10)+parseInt(this._$modalBody.css(e),10)}},{key:"_updateTitleAndFooter",value:function(){var e=this._$element.data("title")||"",t=this._$element.data("footer")||"";return this._titleIsShown=!1,e||this._config.alwaysShowClose?(this._titleIsShown=!0,this._$modalHeader.css("display","").find(".modal-title").html(e||" ")):this._$modalHeader.css("display","none"),this._footerIsShown=!1,t?(this._footerIsShown=!0,this._$modalFooter.css("display","").html(t)):this._$modalFooter.css("display","none"),this}},{key:"_showYoutubeVideo",value:function(e,t){var n=this._getYoutubeId(e),r=e.indexOf("&")>0?e.substr(e.indexOf("&")):"",a=this._$element.data("width")||560,i=this._$element.data("height")||a/(560/315);return this._showVideoIframe("//www.youtube.com/embed/"+n+"?badge=0&autoplay=1&html5=1"+r,a,i,t)}},{key:"_showVimeoVideo",value:function(e,t){var n=this._$element.data("width")||500,r=this._$element.data("height")||n/(560/315);return this._showVideoIframe(e+"?autoplay=1",n,r,t)}},{key:"_showInstagramVideo",value:function(e,t){var n=this._$element.data("width")||612,r=n+80;return e="/"!==e.substr(-1)?e+"/":e,t.html('<iframe width="'+n+'" height="'+r+'" src="'+e+'embed/" frameborder="0" allowfullscreen></iframe>'),this._resize(n,r),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showVideoIframe",value:function(e,t,n,r){return n=n||t,r.html('<div class="embed-responsive embed-responsive-16by9"><iframe width="'+t+'" height="'+n+'" src="'+e+'" frameborder="0" allowfullscreen class="embed-responsive-item"></iframe></div>'),this._resize(t,n),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showHtml5Video",value:function(e,t){var n=this._$element.data("width")||560,r=this._$element.data("height")||n/(560/315);return t.html('<div class="embed-responsive embed-responsive-16by9"><video width="'+n+'" height="'+r+'" src="'+e+'" preload="auto" autoplay controls class="embed-responsive-item"></video></div>'),this._resize(n,r),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_loadRemoteContent",value:function(e,n){var r=this,a=this._$element.data("width")||560,i=this._$element.data("height")||560,o=this._$element.data("disableExternalCheck")||!1;return this._toggleLoading(!1),o||this._isExternal(e)?(n.html('<iframe src="'+e+'" frameborder="0" allowfullscreen></iframe>'),this._config.onContentLoaded.call(this)):n.load(e,t.proxy((function(){return r._$element.trigger("loaded.bs.modal")}))),this._$modalArrows&&this._$modalArrows.css("display","none"),this._resize(a,i),this}},{key:"_isExternal",value:function(e){var t=e.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return"string"==typeof t[1]&&t[1].length>0&&t[1].toLowerCase()!==location.protocol||"string"==typeof t[2]&&t[2].length>0&&t[2].replace(new RegExp(":("+{"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host}},{key:"_error",value:function(e){return console.error(e),this._containerToUse().html(e),this._resize(300,300),this}},{key:"_preloadImageByIndex",value:function(e,n){if(this._$galleryItems){var r=t(this._$galleryItems.get(e),!1);if(void 0!==r){var a=r.attr("data-remote")||r.attr("href");return("image"===r.attr("data-type")||this._isImage(a))&&this._preloadImage(a,!1),n>0?this._preloadImageByIndex(e+1,n-1):void 0}}}},{key:"_preloadImage",value:function(e,n){var r=this;n=n||!1;var a=new Image;return n&&function(){var i=setTimeout((function(){n.append(r._config.loadingMessage)}),200);a.onload=function(){i&&clearTimeout(i),i=null;var e=t("<img />");return e.attr("src",a.src),e.addClass("img-fluid"),e.css("width","100%"),n.html(e),r._$modalArrows&&r._$modalArrows.css("display",""),r._resize(a.width,a.height),r._toggleLoading(!1),r._config.onContentLoaded.call(r)},a.onerror=function(){return r._toggleLoading(!1),r._error(r._config.strings.fail+" "+e)}}(),a.src=e,a}},{key:"_swipeGesure",value:function(){return this._touchendX<this._touchstartX?this.navigateRight():this._touchendX>this._touchstartX?this.navigateLeft():void 0}}
6,{key:"_resize",value:function(e,n){n=n||e,this._wantedWidth=e,this._wantedHeight=n;var r=e/n,a=this._padding.left+this._padding.right+this._border.left+this._border.right,i=this._config.doc.body.clientWidth>575?20:0,o=this._config.doc.body.clientWidth>575?0:20,s=Math.min(e+a,this._config.doc.body.clientWidth-i,this._config.maxWidth);e+a>s?(n=(s-a-o)/r,e=s):e+=a;var c=0,l=0;this._footerIsShown&&(l=this._$modalFooter.outerHeight(!0)||55),this._titleIsShown&&(c=this._$modalHeader.outerHeight(!0)||67);var u=this._padding.top+this._padding.bottom+this._border.bottom+this._border.top,d=parseFloat(this._$modalDialog.css("margin-top"))+parseFloat(this._$modalDialog.css("margin-bottom")),h=Math.min(n,t(window).height()-u-d-c-l,this._config.maxHeight-u-c-l);n>h&&(e=Math.ceil(h*r)+a),this._$lightboxContainer.css("height",h),this._$modalDialog.css("flex",1).css("maxWidth",e);var p=this._$modal.data("bs.modal");if(p)try{p._handleUpdate()}catch(e){p.handleUpdate()}return this}}],[{key:"_jQueryInterface",value:function(e){var r=this;return e=e||{},this.each((function(){var a=t(r),i=t.extend({},n.Default,a.data(),"object"==typeof e&&e);new n(r,i)}))}}]),n}();t.fn[n]=o._jQueryInterface,t.fn[n].Constructor=o,t.fn[n].noConflict=function(){return t.fn[n]=a,o._jQueryInterface}}(r)}()},33664:function(e,t,n){"use strict";n.d(t,{EK:function(){return s},Jx:function(){return u},XX:function(){return c},YI:function(){return l},rW:function(){return h},z9:function(){return o}});var r,a=n(3193);!function(e){e.ESSENTIAL="C0001",e.PERFORMANCE="C0002",e.FUNCTIONAL="C0003",e.TARGETING_AND_COMMERCIAL="C0004",e.STATISTIC="C0005"}(r||(r={}));var i={cookieNotice:"cookie-notice"},o=function(){return"undefined"!=typeof window&&"function"==typeof window.OptanonWrapper},s=function(e,t){"boolean"!=typeof window.OneTrustLoaded&&(window.OneTrustLoaded=!1),window.OneTrustLoaded?(e(!1),window.OneTrust.OnConsentChanged(t)):document.addEventListener("onetrustloaded",(function(){window.OneTrustLoaded=!0,e(!1),window.OneTrust.OnConsentChanged(t)}))},c=function(e,t,n,r,i,o){return h()?(u(e),o?(0,a.Lt)(e,t,n,r,o):(0,a.Lt)(e,t,n,r)):i?void window.location.reload():void l(e)},l=function(e){e.forEach((function(e){e.classList.add(i.cookieNotice)}))},u=function(e){e.forEach((function(e){e.classList.remove(i.cookieNotice)}))},d=function(){return window.OnetrustActiveGroups},h=function(){return d().includes(r.FUNCTIONAL)}},34703:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(49674),a=n(38839);class i{#e(e,...t){if(this[e]!==i.prototype[e])return this[e](...t);(0,r.R)(35,e)}addPageAction(e,t){return this.#e(a.hG,e,t)}register(e){return this.#e(a.eY,e)}recordCustomEvent(e,t){return this.#e(a.fF,e,t)}setPageViewName(e,t){return this.#e(a.Fw,e,t)}setCustomAttribute(e,t,n){return this.#e(a.cD,e,t,n)}noticeError(e,t){return this.#e(a.o5,e,t)}setUserId(e,t=!1){return this.#e(a.Dl,e,t)}setApplicationVersion(e){return this.#e(a.nb,e)}setErrorHandler(e){return this.#e(a.bt,e)}addRelease(e,t){return this.#e(a.k6,e,t)}log(e,t){return this.#e(a.$9,e,t)}start(){return this.#e(a.d3)}finished(e){return this.#e(a.BL,e)}recordReplay(){return this.#e(a.CH)}pauseReplay(){return this.#e(a.Tb)}addToTrace(e){return this.#e(a.U2,e)}setCurrentRouteName(e){return this.#e(a.PA,e)}interaction(e){return this.#e(a.dT,e)}wrapLogger(e,t,n){return this.#e(a.Wb,e,t,n)}measure(e,t){return this.#e(a.V1,e,t)}consent(e){return this.#e(a.Pv,e)}}},34842:function(e,t,n){"use strict";n.d(t,{d:function(){return r},p:function(){return a}});var r=n(68126).ee.get("handle");function a(e,t,n,a,i){i?(i.buffer([e],a),i.emit(e,t,n)):(r.buffer([e],a),r.emit(e,t,n))}},34891:function(e,t){"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.getSymbolIterator=void 0,t.getSymbolIterator=n,t.iterator=n()},34950:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;var r=n(48051);t.scheduleArray=function(e,t){return new r.Observable((function(n){var r=0;return t.schedule((function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())}))}))}},35565:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;var r=n(65212),a=n(78531);t.scan=function(e,t){return r.operate(a.scanInternals(e,t,arguments.length>=2,!0))}},35726:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrameProvider=void 0;var i=n(69879);t.animationFrameProvider={schedule:function(e){var n=requestAnimationFrame,r=cancelAnimationFrame,a=t.animationFrameProvider.delegate;a&&(n=a.requestAnimationFrame,r=a.cancelAnimationFrame);var o=n((function(t){r=void 0,e(t)}));return new i.Subscription((function(){return null==r?void 0:r(o)}))},requestAnimationFrame:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=t.animationFrameProvider.delegate;return((null==i?void 0:i.requestAnimationFrame)||requestAnimationFrame).apply(void 0,a([],r(e)))},cancelAnimationFrame:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=t.animationFrameProvider.delegate;return((null==i?void 0:i.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,a([],r(e)))},delegate:void 0}},35884:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defer=void 0;var r=n(48051),a=n(19724);t.defer=function(e){return new r.Observable((function(t){a.innerFrom(e()).subscribe(t)}))}},35904:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.using=void 0;var r=n(48051),a=n(19724),i=n(44885);t.using=function(e,t){return new r.Observable((function(n){var r=e(),o=t(r);return(o?a.innerFrom(o):i.EMPTY).subscribe(n),function(){r&&r.unsubscribe()}}))}},36805:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;var r=n(48051),a=n(34891),i=n(10281),o=n(28619);t.scheduleIterable=function(e,t){return new r.Observable((function(n){var r;return o.executeSchedule(n,t,(function(){r=e[a.iterator](),o.executeSchedule(n,t,(function(){var e,t,a;try{t=(e=r.next()).value,a=e.done}catch(e){return void n.error(e)}a?n.complete():n.next(t)}),0,!0)})),function(){return i.isFunction(null==r?void 0:r.return)&&r.return()}}))}},36977:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zipWith=void 0;var i=n(26749);t.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.zip.apply(void 0,a([],r(e)))}},38108:function(e,t,n){var r=n(74692);r((function(){r(document).find(".amag-intro-anker").length&&r(".amag-intro-anker__anker-link").on("click",(function(){var e=r(this).attr("data-ankerTarget");r("html, body").animate({scrollTop:r("#"+e).offset().top},1e3)}))}))},38839:function(e,t,n){"use strict";n.d(t,{$9:function(){return u},BL:function(){return c},CH:function(){return f},Dl:function(){return w},Fw:function(){return b},PA:function(){return g},Pl:function(){return r},Pv:function(){return x},Tb:function(){return h},U2:function(){return o},V1:function(){return E},Wb:function(){return C},bt:function(){return _},cD:function(){return y},d3:function(){return S},dT:function(){return l},eY:function(){return m},fF:function(){return p},hG:function(){return i},hw:function(){return a},k6:function(){return s},nb:function(){return v},o5:function(){return d}});const r="api-",a=r+"ixn-",i="addPageAction",o="addToTrace",s="addRelease",c="finished",l="interaction",u="log",d="noticeError",h="pauseReplay",p="recordCu
6stomEvent",f="recordReplay",m="register",v="setApplicationVersion",g="setCurrentRouteName",y="setCustomAttribute",_="setErrorHandler",b="setPageViewName",w="setUserId",S="start",C="wrapLogger",E="measure",x="consent"},39304:function(e,t,n){e.exports=function(){"use strict";var e="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,t=function(){for(var t=["Edge","Trident","Firefox"],n=0;n<t.length;n+=1)if(e&&navigator.userAgent.indexOf(t[n])>=0)return 1;return 0}();function r(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}function a(e){var n=!1;return function(){n||(n=!0,setTimeout((function(){n=!1,e()}),t))}}var i=e&&window.Promise?r:a;function o(e){return e&&"[object Function]"==={}.toString.call(e)}function s(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function c(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=s(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(n+a+r)?e:l(c(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var d=e&&!(!window.MSInputMethodContext||!document.documentMode),h=e&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?d:10===e?h:d||h}function f(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?f(n):n:e?e.ownerDocument.documentElement:document.documentElement}function m(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||f(e.firstElementChild)===e)}function v(e){return null!==e.parentNode?v(e.parentNode):e}function g(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,a=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(a,0);var o=i.commonAncestorContainer;if(e!==o&&t!==o||r.contains(a))return m(o)?o:f(o);var s=v(e);return s.host?g(s.host,t):g(e,v(t).host)}function y(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=y(t,"top"),a=y(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=a*i,e.right+=a*i,e}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function w(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],p(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function S(e){var t=e.body,n=e.documentElement,r=p(10)&&getComputedStyle(n);return{height:w("Height",t,n,r),width:w("Width",t,n,r)}}var C=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),x=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function k(e){return A({},e,{right:e.left+e.width,bottom:e.top+e.height})}function T(e){var t={};try{if(p(10)){t=e.getBoundingClientRect();var n=y(e,"top"),r=y(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top}
vendor: 13,459 bytes, line 6
6,i="HTML"===e.nodeName?S(e.ownerDocument):{},o=i.width||e.clientWidth||a.width,c=i.height||e.clientHeight||a.height,l=e.offsetWidth-o,u=e.offsetHeight-c;if(l||u){var d=s(e);l-=b(d,"x"),u-=b(d,"y"),a.width-=l,a.height-=u}return k(a)}function L(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=p(10),a="HTML"===t.nodeName,i=T(e),o=T(t),c=l(e),u=s(t),d=parseFloat(u.borderTopWidth),h=parseFloat(u.borderLeftWidth);n&&a&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var f=k({top:i.top-o.top-d,left:i.left-o.left-h,width:i.width,height:i.height});if(f.marginTop=0,f.marginLeft=0,!r&&a){var m=parseFloat(u.marginTop),v=parseFloat(u.marginLeft);f.top-=d-m,f.bottom-=d-m,f.left-=h-v,f.right-=h-v,f.marginTop=m,f.marginLeft=v}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(f=_(f,t)),f}function I(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=L(e,n),a=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:y(n),s=t?0:y(n,"left");return k({top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:a,height:i})}function D(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===s(e,"position"))return!0;var n=c(e);return!!n&&D(n)}function P(e){if(!e||!e.parentElement||p())return document.documentElement;for(var t=e.parentElement;t&&"none"===s(t,"transform");)t=t.parentElement;return t||document.documentElement}function O(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},o=a?P(e):g(e,u(t));if("viewport"===r)i=I(o,a);else{var s=void 0;"scrollParent"===r?"BODY"===(s=l(c(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var d=L(s,o,a);if("HTML"!==s.nodeName||D(o))i=d;else{var h=S(e.ownerDocument),p=h.height,f=h.width;i.top+=d.top-d.marginTop,i.bottom=p+d.top,i.left+=d.left-d.marginLeft,i.right=f+d.left}}var m="number"==typeof(n=n||0);return i.left+=m?n:n.left||0,i.top+=m?n:n.top||0,i.right-=m?n:n.right||0,i.bottom-=m?n:n.bottom||0,i}function R(e){return e.width*e.height}function M(e,t,n,r,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=O(n,r,i,a),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},c=Object.keys(s).map((function(e){return A({key:e},s[e],{area:R(s[e])})})).sort((function(e,t){return t.area-e.area})),l=c.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=l.length>0?l[0].key:c[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function q(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return L(n,r?P(t):g(t,u(n)),r)}function N(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function V(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function F(e,t,n){n=n.split("-")[0];var r=N(e),a={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),o=i?"top":"left",s=i?"left":"top",c=i?"height":"width",l=i?"width":"height";return a[o]=t[o]+t[c]/2-r[c]/2,a[s]=n===s?t[s]-r[l]:t[V(s)],a}function B(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function j(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=B(e,(function(e){return e[t]===n}));return e.indexOf(r)}function H(e,t,n){return(void 0===n?e:e.slice(0,j(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=k(t.offsets.popper),t.offsets.reference=k(t.offsets.reference),t=n(t,e))})),t}function G(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=q(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=M(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=F(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=H(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function U(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function W(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var a=t[r],i=a?""+a+n:e;if(void 0!==document.body.style[i])return i}return null}function z(){return this.state.isDestroyed=!0,U(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[W("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function $(e){var t=e.ownerDocument;return t?t.defaultView:window}function Y(e,t,n,r){var a="BODY"===e.nodeName,i=a?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),a||Y(l(i.parentNode),t,n,r),r.push(i)}function Z(e,t,n,r){n.updateBound=r,$(e).addEventListener("resize",n.updateBound,{passive:!0});var a=l(e);return Y(a,"scroll",n.updateBound,n.scrollParents),n.scrollElement=a,n.eventsEnabled=!0,n}function K(){this.state.eventsEnabled||(this.state=Z(this.reference,this.options,this.state,this.scheduleUpdate))}function X(e,t){return $(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function J(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=X(this.reference,this.state))}function Q(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ee(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Q(t[n])&&(r="px"),e.style[n]=t[n]+r}))}function te(e,t){Object.keys(t).forEach((function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)}))}function ne(e){return ee(e.instance.popper,e.styles),te(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&ee(e.arrowElement,e.arrowStyles),e}function re(e,t,n,r,a){var i=q(a,t,e,n.positionFixed),o=M(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),ee(t,{position:n.positionFixed?"fixed":"absolute"}),n}function ae(e,t){var n=e.offsets,r=n.popper,a=n.reference,i=Math.round,o=Math.floor,s=function(e){return e},c=i(a.width),l=i(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),h=t?u||d||c%2==l%2?i:o:s,p=t?i:s;return{left:h(c%2==1&&l%2==1&&!d&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:h(r.right)}}var ie=e&&/Firefox/i.test(navigator.userAgent);function oe(e,t){var n=t.x,r=t.y,a=e.offsets.popper,i=B(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=void 0!==i?i:t.gpuAcceleration,s=f(e.instance.popper),c=T(s),l={position:a.position},u=ae(e,window.devicePixelRatio<2||!ie),d="bottom"===n?"top":"bottom",h="right"===r?"left":"right",p=W("transform"),m=void 0,v=void 0;if(v="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-c.height+u.bottom:u.top,m="right"===h?"HTML"===s.nodeName?-s.clientWidth+u.right:-c.width+u.right:u.left,o&&p)l[p]="translate3d("+m+"px, "+v+"px, 0)",l[d]=0,l[h]=0,l.willChange="transform";else{var g="bottom"===d?-1:1,y="right"===h?-1:1;l[d]=v*g,l[h]=m*y,l.willChange=d+", "+h}var _={"x-placement":e.placement};return e.attributes=A({},_,e.attributes),e.styles=A({},l,e.styles),e.arrowStyles=A({},e.offsets.arrow,e.arrowStyles),e}function se(e,t,n){var r=B(e,(function(e){return e.name===t})),a=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!a){var i="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return a}function ce(e,t){var n;if(!se(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var a=e.placement.split("-")[0],i=e.offsets,o=i.popper,c=i.reference,l=-1!==["left","right"].indexOf(a),u=l?"height":"width",d=l?"Top":"Left",h=d.toLowerCase(),p=l?"left":"top",f=l?"bottom":"right",m=N(r)[u];c[f]-m<o[h]&&(e.offsets.popper[h]-=o[h]-(c[f]-m)),c[h]+m>o[f]&&(e.offsets.popper[h]+=c[h]+m-o[f]),e.offsets.popper=k(e.offsets.popper);var v=c[h]+c[u]/2-m/2,g=s(e.instance.popper),y=parseFloat(g["margin"+d]),_=parseFloat(g["border"+d+"Width"]),b=v-e.offsets.popper[h]-y-_;return b=Math.max(Math.min(o[u]-m,b),0),e.arrowElement=r,e.offsets.arrow=(x(n={},h,Math.round(b)),x(n,p,""),n),e}function le(e){return"end"===e?"start":"start"===e?"end":e}var ue=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],de=ue.slice(3);function he(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=de.indexOf(e),r=de.slice(n+1).concat(de.slice(0,n));return t?r.reverse():r}var pe={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function fe(e,t){if(U(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=O(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],a=V(r),i=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case pe.FLIP:o=[r,a];break;case pe.CLOCKWISE:o=he(r);break;case pe.COUNTERCLOCKWISE:o=he(r,!0);break;default:o=t.behavior}return o.forEach((function(s,c){if(r!==s||o.length===c+1)return e;r=e.placement.split("-")[0],a=V(r);var l=e.offsets.popper,u=e.offsets.reference,d=Math.floor,h="left"===r&&d(l.right)>d(u.left)||"right"===r&&d(l.left)<d(u.right)||"top"===r&&d(l.bottom)>d(u.top)||"bottom"===r&&d(l.top)<d(u.bottom),p=d(l.left)<d(n.left),f=d(l.right)>d(n.right),m=d(l.top)<d(n.top),v=d(l.bottom)>d(n.bottom),g="left"===r&&p||"right"===r&&f||"top"===r&&m||"bottom"===r&&v,y=-1!==["top","bottom"].indexOf(r),_=!!t.flipVariations&&(y&&"start"===i&&p||y&&"end"===i&&f||!y&&"start"===i&&m||!y&&"end"===i&&v),b=!!t.flipVariationsByContent&&(y&&"start"===i&&f||y&&"end"===i&&p||!y&&"start"===i&&v||!y&&"end"===i&&m),w=_||b;(h||g||w)&&(e.flipped=!0,(h||g)&&(r=o[c+1]),w&&(i=le(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=A({},e.offsets.popper,F(e.instance.popper,e.offsets.reference,e.placement)),e=H(e.instance.modifiers,e,"flip"))})),e}function me(e){var t=e.offsets,n=t.popper,r=t.reference,a=e.placement.split("-")[0],i=Math.floor,o=-1!==["top","bottom"].indexOf(a),s=o?"right":"bottom",c=o?"left":"top",l=o?"width":"height";return n[s]<i(r[c])&&(e.offsets.popper[c]=i(r[c])-n[l]),n[c]>i(r[s])&&(e.offsets.popper[c]=i(r[s])),e}function ve(e,t,n,r){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+a[1],o=a[2];if(!i)return e;if(0===o.indexOf("%")){return k("%p"===o?n:r)[t]/100*i}return"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i}function ge(e,t,n,r){var a=[0,0],i=-1!==["right","left"].indexOf(r),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=o.indexOf(B(o,(function(e){return-1!==e.search(/,|\s/)})));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=-1!==s?[o.slice(0,s).concat([o[s].split(c)[0]]),[o[s].split(c)[1]].concat(o.slice(s+1))]:[o];return(l=l.map((function(e,r){var a=(1===r?!i:i)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return ve(e,a,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){Q(n)&&(a[t]+=n*("-"===e[r-1]?-1:1))}))})),a}function ye(e,t){var n=t.offset,r=e.placement,a=e.offsets,i=a.popper,o=a.reference,s=r.split("-")[0],c=void 0;return c=Q(+n)?[+n,0]:ge(n,i,o,s),"left"===s?(i.top+=c[0],i.left-=c[1]):"right"===s?(i.top+=c[0],i.left+=c[1]):"top"===s?(i.left+=c[0],i.top-=c[1]):"bottom"===s&&(i.left+=c[0],i.top+=c[1]),e.popper=i,e}function _e(e,t){var n=t.boundariesElement||f(e.instance.popper);e.instance.reference===n&&(n=f(n));var r=W("transform"),a=e.instance.popper.style,i=a.top,o=a.left,s=a[r];a.top="",a.left="",a[r]="";var c=O(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);
6a.top=i,a.left=o,a[r]=s,t.boundaries=c;var l=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),x({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),x({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=A({},u,d[t](e))})),e.offsets.popper=u,e}function be(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var a=e.offsets,i=a.reference,o=a.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",u={start:x({},c,i[c]),end:x({},c,i[c]+i[l]-o[l])};e.offsets.popper=A({},o,u[r])}return e}function we(e){if(!se(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=B(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function Se(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,a=r.popper,i=r.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return a[o?"left":"top"]=i[n]-(s?a[o?"width":"height"]:0),e.placement=V(t),e.offsets.popper=k(a),e}var Ce={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:be},offset:{order:200,enabled:!0,fn:ye,offset:0},preventOverflow:{order:300,enabled:!0,fn:_e,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:me},arrow:{order:500,enabled:!0,fn:ce,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:fe,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Se},hide:{order:800,enabled:!0,fn:we},computeStyle:{order:850,enabled:!0,fn:oe,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:ne,onLoad:re,gpuAcceleration:void 0}}},Ee=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};C(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=A({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(A({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=A({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return A({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return E(e,[{key:"update",value:function(){return G.call(this)}},{key:"destroy",value:function(){return z.call(this)}},{key:"enableEventListeners",value:function(){return K.call(this)}},{key:"disableEventListeners",value:function(){return J.call(this)}}]),e}();return Ee.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,Ee.placements=ue,Ee.Defaults=Ce,Ee}()},39335:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZOOM_CONSTANT=t.MOUSE_WHEEL_COUNT=void 0,t.addClass=function e(t,n){var r=n.split(" ");r.length>1?r.forEach((function(n){return e(t,n)})):t.classList?t.classList.add(n):t.className+=" ".concat(n)},t.assign=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach((function(t){Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},t.assignEvent=function(e,t,n){"string"==typeof t&&(t=[t]);return t.forEach((function(t){e.addEventListener(t,n)}
6)),function(){t.forEach((function(t){e.removeEventListener(t,n)}))}},t.clamp=function(e,t,n){return Math.min(Math.max(e,t),n)},t.createElement=function(e){var t=document.createElement(e.tagName);e.id&&(t.id=e.id);e.html&&(t.innerHTML=e.html);e.className&&(t.className=e.className);e.src&&(t.src=e.src);e.style&&(t.style.cssText=e.style);e.child&&t.appendChild(e.child);e.insertBefore?e.parent.insertBefore(t,e.insertBefore):e.parent.appendChild(t);return t},t.css=function(e,t){var r=n(e);if("string"==typeof t)return window.getComputedStyle(r[0])[t];return void r.forEach((function(e){Object.keys(t).forEach((function(n){var r=t[n];e.style[n]=r}))}))},t.easeOutQuart=function(e,t,n,r){return e/=r,-n*((e-=1)*e*e*e-1)+t},t.getTouchPointsDistance=function(e){var t=e[0],n=e[1];return Math.sqrt(Math.pow(n.pageX-t.pageX,2)+Math.pow(n.pageY-t.pageY,2))},t.imageLoaded=function(e){return e.complete&&(void 0===e.naturalWidth||0!==e.naturalWidth)},t.noop=function(){},t.preventDefault=function(e){e.preventDefault()},t.remove=function(e){n(e).forEach((function(e){e.parentNode.removeChild(e)}))},t.removeClass=function e(t,n){var r=n.split(" ");r.length>1?r.forEach((function(n){return e(t,n)})):t.classList?t.classList.remove(n):t.className=t.className.replace(new RegExp("(^|\\b)".concat(n.split(" ").join("|"),"(\\b|$)"),"gi")," ")},t.removeCss=function(e,t){e.style.removeProperty(t)},t.toArray=n,t.unwrap=function(e){var t=e.parentNode;t!==document.body&&(t.parentNode.insertBefore(e,t),t.parentNode.removeChild(t))},t.wrap=function(e,t){var n=t.tag,r=void 0===n?"div":n,a=t.className,i=t.id,o=t.style,s=document.createElement(r);a&&(s.className=a);i&&(s.id=i);o&&(s.style=o);return e.parentNode.insertBefore(s,e),e.parentNode.removeChild(e),s.appendChild(e),s};t.ZOOM_CONSTANT=15,t.MOUSE_WHEEL_COUNT=5;function n(e){return e instanceof NodeList||e instanceof HTMLCollection?Array.prototype.slice.call(e):[e]}},39546:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var r=n(70201),a=n(26404),i=n(47058);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.concatAll()(i.from(e,a.popScheduler(e)))}},40596:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(23029),a=n(92901),i=n(74692),o=function(){return(0,a.A)((function e(){(0,r.A)(this,e),this._$spinner=i('<div class="amag-spinner"><div></div><div></div><div></div><div></div><p class="amag-spinner__text"></p></div>'),this._color="#801977",this._textColor="#801977",this._backgroundColor="#FFFFFF",this._text=Granite.I18n.get("apps.amag-ch.spinner.default.text")}),[{key:"backgroundColor",set:function(e){this._backgroundColor=e}},{key:"text",set:function(e){this._text=e}},{key:"color",set:function(e){this._color=e}},{key:"textColor",set:function(e){this._textColor=e}},{key:"$",get:function(){return this._$spinner}},{key:"show",value:function(e){this._$spinner.css("background-color",this._backgroundColor),this._$spinner.find("div").css("border-color","".concat(this._color," transparent transparent transparent")),this._$spinner.find(".amag-spinner__text").css("color",this._textColor),this._$spinner.find(".amag-spinner__text").text(this._text),e.append(this._$spinner)}},{key:"remove",value:function(){var e=this;return new Promise((function(t){e._$spinner.css("opacity","0"),setTimeout((function(){e._$spinner.remove(),t()}),500)}))}}])}()},40841:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstValueFrom=void 0;var r=n(59328),a=n(2708);t.firstValueFrom=function(e,t){var n="object"==typeof t;return new Promise((function(i,o){var s=new a.SafeSubscriber({next:function(e){i(e),s.unsubscribe()},error:o,complete:function(){n?i(t.defaultValue):o(new r.EmptyError)}});e.subscribe(s)}))}},41172:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});const r=n(19470).K7.pageViewTiming},41719:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};
6Object.defineProperty(t,"__esModule",{value:!0}),t.bufferTime=void 0;var a=n(69879),i=n(65212),o=n(17214),s=n(54830),c=n(62326),l=n(26404),u=n(28619);t.bufferTime=function(e){for(var t,n,d=[],h=1;h<arguments.length;h++)d[h-1]=arguments[h];var p=null!==(t=l.popScheduler(d))&&void 0!==t?t:c.asyncScheduler,f=null!==(n=d[0])&&void 0!==n?n:null,m=d[1]||1/0;return i.operate((function(t,n){var i=[],c=!1,l=function(e){var t=e.buffer;e.subs.unsubscribe(),s.arrRemove(i,e),n.next(t),c&&d()},d=function(){if(i){var t=new a.Subscription;n.add(t);var r={buffer:[],subs:t};i.push(r),u.executeSchedule(t,p,(function(){return l(r)}),e)}};null!==f&&f>=0?u.executeSchedule(n,p,d,f,!0):c=!0,d();var h=o.createOperatorSubscriber(n,(function(e){var t,n,a=i.slice();try{for(var o=r(a),s=o.next();!s.done;s=o.next()){var c=s.value,u=c.buffer;u.push(e),m<=u.length&&l(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}),(function(){for(;null==i?void 0:i.length;)n.next(i.shift().buffer);null==h||h.unsubscribe(),n.complete(),n.unsubscribe()}),void 0,(function(){return i=null}));t.subscribe(h)}))}},42767:function(e,t){"use strict";function n(e,t,n){return{kind:e,value:t,error:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=void 0,t.COMPLETE_NOTIFICATION=n("C",void 0,void 0),t.errorNotification=function(e){return n("E",void 0,e)},t.nextNotification=function(e){return n("N",e,void 0)},t.createNotification=n},42780:function(e,t,n){var r=n(74692);r((function(){r(".amag-heroAngebot__showMoreBtn").click((function(){var e=r(this).text(),t=r(this).attr("data-heroLessText"),n=r(this).attr("data-heroMoreText");e==n?r(this).text(t):e==t&&r(this).text(n)}))}))},42797:function(e,t){var n,r,a;r=[e,t],n=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e((function(e){e.datepicker.regional.it={closeText:"Chiudi",prevText:"<Prec",nextText:"Succ>",currentText:"Oggi",monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],dayNames:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],dayNamesShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayNamesMin:["Do","Lu","Ma","Me","Gi","Ve","Sa"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.it)}))},e.exports=t.default},void 0===(a="function"==typeof n?n.apply(t,r):n)||(e.exports=a)},43145:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:function(){return r}})},43434:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;var r=n(19724),a=n(65212),i=n(5717),o=n(17214);t.sample=function(e){return a.operate((function(t,n){var a=!1,s=null;t.subscribe(o.createOperatorSubscriber(n,(function(e){a=!0,s=e}))),r.innerFrom(e).subscribe(o.createOperatorSubscriber(n,(function(){if(a){a=!1;var e=s;s=null,n.next(e)}}),i.noop))}))}},44143:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;var r=n(62326),a=n(43434),i=n(62275);t.sampleTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),a.sample(i.interval(e,t))}},44880:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=void 0;var r=n(65212),a=n(17214),i=n(19724);t.throttle=function(e,t){return r.operate((function(n,r){var o=null!=t?t:{},s=o.leading,c=void 0===s||s,l=o.trailing,u=void 0!==l&&l,d=!1,h=null,p=null,f=!1,m=function(){null==p||p.unsubscribe(),p=null,u&&(y(),f&&r.complete())},v=function(){p=null,f&&r.complete()},g=function(t){return p=i.innerFrom(e(t)).subscribe(a.createOperatorSubscriber(r,m,v))},y=function(){if(d){d=!1;var e=h;h=null,r.next(e),!f&&g(e)}};n.subscribe(a.createOperatorSubscriber(r,(function(e){d=!0,h=e,(!p||p.closed)&&(c?y():g(e))}),(function(){f=!0,(!(u&&d&&p)||p.closed)&&r.complete()}
6)))}))}},44885:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.EMPTY=void 0;var r=n(48051);t.EMPTY=new r.Observable((function(e){return e.complete()})),t.empty=function(e){return e?function(e){return new r.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}(e):t.EMPTY}},44897:function(e,t,n){"use strict";n.d(t,{Xv:function(){return o},gX:function(){return a},iW:function(){return i}});var r=[];function a(e){if(!e||i(e))return!1;if(0===r.length)return!0;if("*"===r[0].hostname)return!1;for(var t=0;t<r.length;t++){var n=r[t];if(n.hostname.test(e.hostname)&&n.pathname.test(e.pathname))return!1}return!0}function i(e){return void 0===e.hostname}function o(e){if(r=[],e&&e.length)for(var t=0;t<e.length;t++){let n=e[t];if(!n)continue;if("*"===n)return void(r=[{hostname:"*"}]);0===n.indexOf("http://")?n=n.substring(7):0===n.indexOf("https://")&&(n=n.substring(8));const a=n.indexOf("/");let i,o;a>0?(i=n.substring(0,a),o=n.substring(a)):(i=n,o="*");let[c]=i.split(":");r.push({hostname:s(c),pathname:s(o,!0)})}}function s(e,t=!1){const n=e.replace(/[.+?^${}()|[\]\\]/g,(e=>"\\"+e)).replace(/\*/g,".*?");return new RegExp((t?"^":"")+n+"$")}},45703:function(e,t){var n,r,a;r=[e,t],n=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;function n(e){for(var t,n;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(e.css("zIndex"),10),!isNaN(n)&&0!==n))return n;e=e.parent()}return 0}function r(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=a(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function a(t){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",n,(function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",n,i)}function i(){e.datepicker._isDisabledDatepicker(t.inline?t.dpDiv.parent()[0]:t.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function o(t,n){for(var r in e.extend(t,n),n)null==n[r]&&(t[r]=n[r]);return t}return e.extend(e.ui,{datepicker:{version:"1.12.1"}}),e.extend(r.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return o(this._defaults,e||{}),this},_attachDatepicker:function(t,n){var r,a,i;a="div"===(r=t.nodeName.toLowerCase())||"span"===r,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst(e(t),a)).settings=e.extend({},n||{}),"input"===r?this._connectDatepicker(t,i):a&&this._inlineDatepicker(t,i)},_newInst:function(t,n){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?a(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,n){var r=e(t);n.append=e([]),n.trigger=e([]),r.hasClass(this.markerClassName)||(this._attachments(r,n),r.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),e.data(t,"datepicker",n),n.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,n){var r,a,i,o=this._get(n,"appendText"),s=this._get(n,"isRTL");n.append&&n.append.remove(),o&&(n.append=e("<span class='"+this._appendClass+"'>"+o+"</span>"),t[s?"before":"after"](n.append)),t.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),"focus"!==(r=this._get(n,"showOn"))&&"both"!==r||t.on("focus",this._showDatepicker),"button"!==r&&"both"!==r||(a=this._get(n,"buttonText"),i=this._get(n,"buttonImage"),n.trigger=e(this._get(n,"buttonImageOnly")?e("<img/>").addClass(this._triggerClass).attr({src:i,alt:a,title:a}):e("<button type='button'></button>").addClass(this._triggerClass).html(i?e("<img/>").attr({src:i,alt:a,title:a}):a)),t[s?"before":"after"](n.trigger),n.trigger.on("click",(function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1})))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,n,r,a,i=new Date(2009,11,20),o=this._get(e,"dateFormat");o.match(/[DM]/)&&(t=function(e){for(n=0,r=0,a=0;a<e.length;a++)e[a].length>n&&(n=e[a].length,r=a);return r},i.setMonth(t(this._get(e,o.match(/MM/)?"monthNames":"monthNamesShort"))),i.setDate(t(this._get(e,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-i.getDay())),e.input.attr("size",this._formatDate(e,i).length)}},_inlineDatepicker:function(t,n){var r=e(t);r.hasClass(this.markerClassName)||(r.addClass(this.markerClassName).append(n.dpDiv),e.data(t,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(t),n.dpDiv.css("display","block"))},_dialogDatepicker:function(t,n,r,a,i){var s,c,l,u,d,h=this._dialogInst;return h||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>
6"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(h=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",h)),o(h.settings,a||{}),n=n&&n.constructor===Date?this._formatDate(h,n):n,this._dialogInput.val(n),this._pos=i?i.length?i:[i.pageX,i.pageY]:null,this._pos||(c=document.documentElement.clientWidth,l=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[c/2-100+u,l/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=r,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(n){var r,a=e(n),i=e.data(n,"datepicker");a.hasClass(this.markerClassName)&&(r=n.nodeName.toLowerCase(),e.removeData(n,"datepicker"),"input"===r?(i.append.remove(),i.trigger.remove(),a.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==r&&"span"!==r||a.removeClass(this.markerClassName).empty(),t===i&&(t=null))},_enableDatepicker:function(t){var n,r,a=e(t),i=e.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!1,i.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==n&&"span"!==n||((r=a.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})))},_disableDatepicker:function(t){var n,r,a=e(t),i=e.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!0,i.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==n&&"span"!==n||((r=a.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,n,r){var a,i,s,c,l=this._getInst(t);if(2===arguments.length&&"string"==typeof n)return"defaults"===n?e.extend({},e.datepicker._defaults):l?"all"===n?e.extend({},l.settings):this._get(l,n):null;a=n||{},"string"==typeof n&&((a={})[n]=r),l&&(this._curInst===l&&this._hideDatepicker(),i=this._getDateDatepicker(t,!0),s=this._getMinMaxDate(l,"min"),c=this._getMinMaxDate(l,"max"),o(l.settings,a),null!==s&&void 0!==a.dateFormat&&void 0===a.minDate&&(l.settings.minDate=this._formatDate(l,s)),null!==c&&void 0!==a.dateFormat&&void 0===a.maxDate&&(l.settings.maxDate=this._formatDate(l,c)),"disabled"in a&&(a.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),l),this._autoSize(l),this._setDate(l,i),this._updateAlternate(l),this._updateDatepicker(l))},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var n=this._getInst(e);n&&(this._setDate(n,t),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(e,t){var n=this._getInst(e);return n&&!n.inline&&this._setDateFromField(n,t),n?this._getDate(n):null},_doKeyDown:function(t){var n,r,a,i=e.datepicker._getInst(t.target),o=!0,s=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),o=!1;break;case 13:return(a=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",i.dpDiv))[0]&&e.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,a[0]),(n=e.datepicker._get(i,"onSelect"))?(r=e.datepicker._formatDate(i),n.apply(i.input?i.input[0]:null,[r,i])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(i,"stepBigMonths"):-e.datepicker._get(i,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(i,"stepBigMonths"):+e.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),o=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),o=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?1:-1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(i,"stepBigMonths"):-e.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),o=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?-1:1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(i,"stepBigMonths"):+e.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),o=t.ctrlKey||t.metaKey;break;default:o=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):o=!1;o&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var n,r,a=e.datepicker._getInst(t.target);if(e.datepicker._get(a,"constrainInput"))return n=e.datepicker._possibleChars(e.datepicker._get(a,"dateFormat")),r=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||r<" "||!n||n.indexOf(r)>-1},_doKeyUp:function(t){var n=e.datepicker._getInst(t.target);if(n.input.val()!==n.lastVal)try{e.datepicker.parseDate(e.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,e.datepicker._getFormatConfig(n))&&(e.datepicker._setDateFromField(n),e.datepicker._updateAlternate(n),e.datepicker._updateDatepicker(n))}catch(e){}return!0},_showDatepicker:function(t){var r,a,i,s,c,l,u;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t||(r=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==r&&(e.datepicker._curInst.dpDiv.stop(!0,!0),r&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(i=(a=e.datepicker._get(r,"beforeShow"))?a.apply(t,[t,r]):{})&&(o(r.settings,i),r.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(r),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),s=!1,e(t).parents().each((function(){return!(s|="fixed"===e(this).css("position"))})),c={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,r.dpDiv.empty(),r.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(r),c=e.datepicker._checkOffset(r,c,s),r.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":s?"fixed":"absolute",display:"none",left:c.left+"px",to
vendor: 10,758 bytes, line 6
6p:c.top+"px"}),r.inline||(l=e.datepicker._get(r,"showAnim"),u=e.datepicker._get(r,"duration"),r.dpDiv.css("z-index",n(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[l]?r.dpDiv.show(l,e.datepicker._get(r,"showOptions"),u):r.dpDiv[l||"show"](l?u:null),e.datepicker._shouldFocusInput(r)&&r.input.trigger("focus"),e.datepicker._curInst=r)))},_updateDatepicker:function(n){this.maxRows=4,t=n,n.dpDiv.empty().append(this._generateHTML(n)),this._attachHandlers(n);var r,a=this._getNumberOfMonths(n),o=a[1],s=17,c=n.dpDiv.find("."+this._dayOverClass+" a");c.length>0&&i.apply(c.get(0)),n.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&n.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",s*o+"em"),n.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),n.dpDiv[(this._get(n,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),n===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),n.yearshtml&&(r=n.yearshtml,setTimeout((function(){r===n.yearshtml&&n.yearshtml&&n.dpDiv.find("select.ui-datepicker-year:first").replaceWith(n.yearshtml),r=n.yearshtml=null}),0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,n,r){var a=t.dpDiv.outerWidth(),i=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,s=t.input?t.input.outerHeight():0,c=document.documentElement.clientWidth+(r?0:e(document).scrollLeft()),l=document.documentElement.clientHeight+(r?0:e(document).scrollTop());return n.left-=this._get(t,"isRTL")?a-o:0,n.left-=r&&n.left===t.input.offset().left?e(document).scrollLeft():0,n.top-=r&&n.top===t.input.offset().top+s?e(document).scrollTop():0,n.left-=Math.min(n.left,n.left+a>c&&c>a?Math.abs(n.left+a-c):0),n.top-=Math.min(n.top,n.top+i>l&&l>i?Math.abs(i+s):0),n},_findPos:function(t){for(var n,r=this._getInst(t),a=this._get(r,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.filters.hidden(t));)t=t[a?"previousSibling":"nextSibling"];return[(n=e(t).offset()).left,n.top]},_hideDatepicker:function(t){var n,r,a,i,o=this._curInst;!o||t&&o!==e.data(t,"datepicker")||this._datepickerShowing&&(n=this._get(o,"showAnim"),r=this._get(o,"duration"),a=function(){e.datepicker._tidyDialog(o)},e.effects&&(e.effects.effect[n]||e.effects[n])?o.dpDiv.hide(n,e.datepicker._get(o,"showOptions"),r,a):o.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?r:null,a),n||a(),this._datepickerShowing=!1,(i=this._get(o,"onClose"))&&i.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var n=e(t.target),r=e.datepicker._getInst(n[0]);(n[0].id===e.datepicker._mainDivId||0!==n.parents("#"+e.datepicker._mainDivId).length||n.hasClass(e.datepicker.markerClassName)||n.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!n.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===r)||e.datepicker._hideDatepicker()}},_adjustDate:function(t,n,r){var a=e(t),i=this._getInst(a[0]);this._isDisabledDatepicker(a[0])||(this._adjustInstDate(i,n,r),this._updateDatepicker(i))},_gotoToday:function(t){var n,r=e(t),a=this._getInst(r[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(n=new Date,a.selectedDay=n.getDate(),a.drawMonth=a.selectedMonth=n.getMonth(),a.drawYear=a.selectedYear=n.getFullYear()),this._notifyChange(a),this._adjustDate(r)},_selectMonthYear:function(t,n,r){var a=e(t),i=this._getInst(a[0]);i["selected"+("M"===r?"Month":"Year")]=i["draw"+("M"===r?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(a)},_selectDay:function(t,n,r,a){var i,o=e(t);e(a).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||((i=this._getInst(o[0])).selectedDay=i.currentDay=e("a",a).html(),i.selectedMonth=i.currentMonth=n,i.selectedYear=i.currentYear=r,this._selectDate(t,this._formatDate(i,i.currentDay,i.currentMonth,i.currentYear)))},_clearDate:function(t){var n=e(t);this._selectDate(n,"")},_selectDate:function(t,n){var r,a=e(t),i=this._getInst(a[0]);n=null!=n?n:this._formatDate(i),i.input&&i.input.val(n),this._updateAlternate(i),(r=this._get(i,"onSelect"))?r.apply(i.input?i.input[0]:null,[n,i]):i.input&&i.input.trigger("change"),i.inline?this._updateDatepicker(i):(this._hideDatepicker(),this._lastInput=i.input[0],"object"!=typeof i.input[0]&&i.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var n,r,a,i=this._get(t,"altField");i&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),r=this._getDate(t),a=this.formatDate(n,r,this._getFormatConfig(t)),e(i).val(a))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,n=new Date(e.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),t=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((t-n)/864e5)/7)+1},parseDate:function(t,n,r){if(null==t||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?n.toString():n+""))return null;var a,i,o,s,c=0,l=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10),d=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,h=(r?r.dayNames:null)||this._defaults.dayNames,p=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,f=(r?r.monthNames:null)||this._defaults.monthNames,m=-1,v=-1,g=-1,y=-1,_=!1,b=function(e){var n=a+1<t.length&&t.charAt(a+1)===e;return n&&a++,n},w=function(e){var t=b(e),r="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,a=new RegExp("^\\d{"+("y"===e?r:1)+","+r+"}"),i=n.substring(c).match(a);if(!i)throw"Missing number at position "+c;return c+=i[0].length,parseInt(i[0],10)},S=function(t,r,a){var i=-1,o=e.map(b(t)?a:r,(function(e,t){return[[t,e]]})).sort((function(e,t){return-(e[1].length-t[1].length)}));if(e.each(o,(function(e,t){var r=t[1];if(n.substr(c,r.length).toLowerCase()===r.toLowerCase())return i=t[0],c+=r.length,!1})),-1!==i)return i+1;throw"Unknown name at position "+c},C=function(){if(n.charAt(c)!==t.charAt(a))throw"Unexpected literal at position "+c;c++};for(a=0;a<t.length;a++)if(_)"'"!==t.charAt(a)||b("'")?C():_=!1;else switch(t.charAt(a)){case"d":g=w("d");break;case"D":S("D",d,h);break;case"o":y=w("o");break;case"m":v=w("m");break;case"M":v=S("M",p,f);break;case"y":m=w("y");break;case"@":m=(s=new Date(w("@"))).getFullYear(),v=s.getMonth()+1,g=s.getDate();break;case"!":m=(s=new Date((w("!")-this._ticksTo1970)/1e4)).getFullYear(),v=s.getMonth()+1,g=s.getDate();break;case"'":b("'")?C():_=!0;break;default:C()}if(c<n.length&&(o=n.substr(c),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===m?m=(new Date).getFullYear():m<100&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(m<=u?0:-100)),y>-1)for(v=1,g=y;!(g<=(i=this._getDaysInMonth(m,v-1)));)v++,g-=i;if((s=this._daylightSavingAdjust(new Date(m,v-1,g))).getFullYear()!==m||s.getMonth()+1!==v||s.getDate()!==g)throw"Invalid date";return s},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,n){if(!t)return"";var r,a=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,i=(n?n.dayNames:null)||this._defaults.dayNames,o=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,s=(n?n.monthNames:null)||this._defaults.monthNames,c=function(t){var n=r+1<e.length&&e.charAt(r+1)===t;return n&&r++,n},l=function(e,t,n){var r=""+t;if(c(e))for(;r.length<n;)r="0"+r;return r},u=function(e,t,n,r){return c(e)?r[t]:n[t]},d="",h=!1;if(t)for(r=0;r<e.length;r++)if(h)"'"!==e.charAt(r)||c("'")?d+=e.charAt(r):h=!1;else switch(e.charAt(r)){case"d":d+=l("d",t.getDate(),2);break;case"D":d+=u("D",t.getDay(),a,i);break;case"o":d+=l("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=l("m",t.getMonth()+1,2);break;case"M":d+=u("M",t.getMonth(),o,s);break;case"y":d+=c("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":c("'")?d+="'":h=!0;break;default:d+=e.charAt(r)}return d},_possibleChars:function(e){var t,n="",r=!1,a=function(n){var r=t+1<e.length&&e.charAt(t+1)===n;return r&&t++,r};for(t=0;t<e.length;t++)if(r)"'"!==e.charAt(t)||a("'")?n+=e.charAt(t):r=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":a("'")?n+="'":r=!0;break;default:n+=e.charAt(t)}return n},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var n=this._get(e,"dateFormat"),r=e.lastVal=e.input?e.input.val():null,a=this._getDefaultDate(e),i=a,o=this._getFormatConfig(e);try{i=this.parseDate(n,r,o)||a}catch(e){r=t?"":r}e.selectedDay=i.getDate(),e.drawMonth=e.selectedMonth=i.getMonth(),e.drawYear=e.selectedYear=i.getFullYear(),e.currentDay=r?i.getDate():0,e.currentMonth=r?i.getMonth():0,e.currentYear=r?i.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,n,r){var a=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},i=function(n){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),n,e.datepicker._getFormatConfig(t))}catch(e){}for(var r=(n.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,a=r.getFullYear(),i=r.getMonth(),o=r.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,c=s.exec(n);c;){switch(c[2]||"d"){case"d":case"D":o+=parseInt(c[1],10);break;case"w":case"W":o+=7*parseInt(c[1],10);break;case"m":case"M":i+=parseInt(c[1],10),o=Math.min(o,e.datepicker._getDaysInMonth(a,i));break;case"y":case"Y":a+=parseInt(c[1],10),o=Math.min(o,e.datepicker._getDaysInMonth(a,i))}c=s.exec(n)}return new Date(a,i,o)},o=null==n||""===n?r:"string"==typeof n?i(n):"number"==typeof n?isNaN(n)?r:a(n):new Date(n.getTime());
vendor: 4,344 bytes, line 6
6return(o=o&&"Invalid Date"===o.toString()?r:o)&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,n){var r=!t,a=e.selectedMonth,i=e.selectedYear,o=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=o.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=o.getMonth(),e.drawYear=e.selectedYear=e.currentYear=o.getFullYear(),a===e.selectedMonth&&i===e.selectedYear||n||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(r?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var n=this._get(t,"stepMonths"),r="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map((function(){var t={prev:function(){e.datepicker._adjustDate(r,-n,"M")},next:function(){e.datepicker._adjustDate(r,+n,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(r)},selectDay:function(){return e.datepicker._selectDay(r,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(r,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(r,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])}))},_generateHTML:function(e){var t,n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b,w,S,C,E,x,A,k,T,L,I,D,P,O,R,M,q,N,V,F,B=new Date,j=this._daylightSavingAdjust(new Date(B.getFullYear(),B.getMonth(),B.getDate())),H=this._get(e,"isRTL"),G=this._get(e,"showButtonPanel"),U=this._get(e,"hideIfNoPrevNext"),W=this._get(e,"navigationAsDateFormat"),z=this._getNumberOfMonths(e),$=this._get(e,"showCurrentAtPos"),Y=this._get(e,"stepMonths"),Z=1!==z[0]||1!==z[1],K=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(e,"min"),J=this._getMinMaxDate(e,"max"),Q=e.drawMonth-$,ee=e.drawYear;if(Q<0&&(Q+=12,ee--),J)for(t=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-z[0]*z[1]+1,J.getDate())),t=X&&t<X?X:t;this._daylightSavingAdjust(new Date(ee,Q,1))>t;)--Q<0&&(Q=11,ee--);for(e.drawMonth=Q,e.drawYear=ee,n=this._get(e,"prevText"),n=W?this.formatDate(n,this._daylightSavingAdjust(new Date(ee,Q-Y,1)),this._getFormatConfig(e)):n,r=this._canAdjustMonth(e,-1,ee,Q)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(H?"e":"w")+"'>"+n+"</span></a>":U?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(H?"e":"w")+"'>"+n+"</span></a>",a=this._get(e,"nextText"),a=W?this.formatDate(a,this._daylightSavingAdjust(new Date(ee,Q+Y,1)),this._getFormatConfig(e)):a,i=this._canAdjustMonth(e,1,ee,Q)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+a+"'><span class='ui-icon ui-icon-circle-triangle-"+(H?"w":"e")+"'>"+a+"</span></a>":U?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+a+"'><span class='ui-icon ui-icon-circle-triangle-"+(H?"w":"e")+"'>"+a+"</span></a>",o=this._get(e,"currentText"),s=this._get(e,"gotoCurrent")&&e.currentDay?K:j,o=W?this.formatDate(o,s,this._getFormatConfig(e)):o,c=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",l=G?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(H?c:"")+(this._isInRange(e,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+o+"</button>":"")+(H?"":c)+"</div>":"",u=parseInt(this._get(e,"firstDay"),10),u=isNaN(u)?0:u,d=this._get(e,"showWeek"),h=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),f=this._get(e,"monthNames"),m=this._get(e,"monthNamesShort"),v=this._get(e,"beforeShowDay"),g=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),_=this._getDefaultDate(e),b="",S=0;S<z[0];
vendor: 6,484 bytes, line 6
6S++){for(C="",this.maxRows=4,E=0;E<z[1];E++){if(x=this._daylightSavingAdjust(new Date(ee,Q,e.selectedDay)),A=" ui-corner-all",k="",Z){if(k+="<div class='ui-datepicker-group",z[1]>1)switch(E){case 0:k+=" ui-datepicker-group-first",A=" ui-corner-"+(H?"right":"left");break;case z[1]-1:k+=" ui-datepicker-group-last",A=" ui-corner-"+(H?"left":"right");break;default:k+=" ui-datepicker-group-middle",A=""}k+="'>"}for(k+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+A+"'>"+(/all|left/.test(A)&&0===S?H?i:r:"")+(/all|right/.test(A)&&0===S?H?r:i:"")+this._generateMonthYearHeader(e,Q,ee,X,J,S>0||E>0,f,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",T=d?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",w=0;w<7;w++)T+="<th scope='col'"+((w+u+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+h[L=(w+u)%7]+"'>"+p[L]+"</span></th>";for(k+=T+"</tr></thead><tbody>",I=this._getDaysInMonth(ee,Q),ee===e.selectedYear&&Q===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,I)),D=(this._getFirstDayOfMonth(ee,Q)-u+7)%7,P=Math.ceil((D+I)/7),O=Z&&this.maxRows>P?this.maxRows:P,this.maxRows=O,R=this._daylightSavingAdjust(new Date(ee,Q,1-D)),M=0;M<O;M++){for(k+="<tr>",q=d?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(R)+"</td>":"",w=0;w<7;w++)N=v?v.apply(e.input?e.input[0]:null,[R]):[!0,""],F=(V=R.getMonth()!==Q)&&!y||!N[0]||X&&R<X||J&&R>J,q+="<td class='"+((w+u+6)%7>=5?" ui-datepicker-week-end":"")+(V?" ui-datepicker-other-month":"")+(R.getTime()===x.getTime()&&Q===e.selectedMonth&&e._keyEvent||_.getTime()===R.getTime()&&_.getTime()===x.getTime()?" "+this._dayOverClass:"")+(F?" "+this._unselectableClass+" ui-state-disabled":"")+(V&&!g?"":" "+N[1]+(R.getTime()===K.getTime()?" "+this._currentClass:"")+(R.getTime()===j.getTime()?" ui-datepicker-today":""))+"'"+(V&&!g||!N[2]?"":" title='"+N[2].replace(/'/g,"'")+"'")+(F?"":" data-handler='selectDay' data-event='click' data-month='"+R.getMonth()+"' data-year='"+R.getFullYear()+"'")+">"+(V&&!g?" ":F?"<span class='ui-state-default'>"+R.getDate()+"</span>":"<a class='ui-state-default"+(R.getTime()===j.getTime()?" ui-state-highlight":"")+(R.getTime()===K.getTime()?" ui-state-active":"")+(V?" ui-priority-secondary":"")+"' href='#'>"+R.getDate()+"</a>")+"</td>",R.setDate(R.getDate()+1),R=this._daylightSavingAdjust(R);k+=q+"</tr>"}++Q>11&&(Q=0,ee++),C+=k+="</tbody></table>"+(Z?"</div>"+(z[0]>0&&E===z[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}b+=C}return b+=l,e._keyEvent=!1,b},_generateMonthYearHeader:function(e,t,n,r,a,i,o,s){var c,l,u,d,h,p,f,m,v=this._get(e,"changeMonth"),g=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),_="<div class='ui-datepicker-title'>",b="";if(i||!v)b+="<span class='ui-datepicker-month'>"+o[t]+"</span>";else{for(c=r&&r.getFullYear()===n,l=a&&a.getFullYear()===n,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!c||u>=r.getMonth())&&(!l||u<=a.getMonth())&&(b+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+s[u]+"</option>");b+="</select>"}if(y||(_+=b+(!i&&v&&g?"":" ")),!e.yearshtml)if(e.yearshtml="",i||!g)_+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(d=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t},f=p(d[0]),m=Math.max(f,p(d[1]||"")),f=r?Math.max(f,r.getFullYear()):f,m=a?Math.min(m,a.getFullYear()):m,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";f<=m;f++)e.yearshtml+="<option value='"+f+"'"+(f===n?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",_+=e.yearshtml,e.yearshtml=null}return _+=this._get(e,"yearSuffix"),y&&(_+=(!i&&v&&g?"":" ")+b),_+="</div>"},_adjustInstDate:function(e,t,n){var r=e.selectedYear+("Y"===n?t:0),a=e.selectedMonth+("M"===n?t:0),i=Math.min(e.selectedDay,this._getDaysInMonth(r,a))+("D"===n?t:0),o=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(r,a,i)));e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max"),a=n&&t<n?n:t;return r&&a>r?r:a},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,n,r){var a=this._getNumberOfMonths(e),i=this._daylightSavingAdjust(new Date(n,r+(t<0?t:a[0]*a[1]),1));return t<0&&i.setDate(this._getDaysInMonth(i.getFullYear(),i.getMonth())),this._isInRange(e,i)},_isInRange:function(e,t){var n,r,a=this._getMinMaxDate(e,"min"),i=this._getMinMaxDate(e,"max"),o=null,s=null,c=this._get(e,"yearRange");return c&&(n=c.split(":"),r=(new Date).getFullYear(),o=parseInt(n[0],10),s=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(o+=r),n[1].match(/[+\-].*/)&&(s+=r)),(!a||t.getTime()>=a.getTime())&&(!i||t.getTime()<=i.getTime())&&(!o||t.getFullYear()>=o)&&(!s||t.getFullYear()<=s)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,r){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var a=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(r,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),a,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);
6var n=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n)):this.each((function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(n)):e.datepicker._attachDatepicker(this,t)})):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n))},e.datepicker=new r,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.12.1",e.datepicker},e.exports=t.default},void 0===(a="function"==typeof n?n.apply(t,r):n)||(e.exports=a)},46549:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});const r=(0,n(98800).bz)()},47058:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=void 0;var r=n(30131),a=n(19724);t.from=function(e,t){return t?r.scheduled(e,t):a.innerFrom(e)}},47200:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});const r=n(19470).K7.pageViewEvent},47415:function(e,t,n){"use strict";n.d(t,{R:function(){return c},b:function(){return l}});var r=n(34842),a=n(31609),i=n(19470),o=n(7187),s=n(61059);function c(e,t,n={},c=s.p_.INFO,l=!0,u,d=(0,a.t)()){(0,r.p)(o.xV,["API/logging/".concat(c.toLowerCase(),"/called")],void 0,i.K7.metrics,e),(0,r.p)(s.ET,[d,t,n,c,l,u],void 0,i.K7.logging,e)}function l(e){return"string"==typeof e&&Object.values(s.p_).some((t=>t===e.toUpperCase().trim()))}},47716:function(e,t){"use strict";const n=new Function;function r(e,t,n,r){return e/=r,-n*((e-=1)*e*e*e-1)+t}function a(e){const t=document.createElement(e.tagName);if(e.id&&(t.id=e.id),e.html&&(t.innerHTML=e.html),e.className&&(t.className=e.className),e.src&&t instanceof HTMLImageElement){const n=encodeURIComponent(e.src);t.setAttribute("src",n)}return e.style&&(t.style.cssText=e.style),e.child&&t.appendChild(e.child),e.insertBefore?e.parent.insertBefore(t,e.insertBefore):e.parent.appendChild(t),t}function i(e,t){const n=t.split(" ");n.length>1?n.forEach((t=>i(e,t))):e.classList?e.classList.add(t):e.className+=` ${t}`}function o(e,t){const n=t.split(" ");n.length>1?n.forEach((t=>o(e,t))):e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(^|\\b)${t.split(" ").join("|")}(\\b|$)`,"gi")," ")}function s(e){return e.complete&&(void 0===e.naturalWidth||0!==e.naturalWidth)}function c(e){return e instanceof HTMLElement?[e]:e instanceof NodeList||e instanceof HTMLCollection?Array.prototype.slice.call(e):[]}function l(e,t){const n=c(e);if("string"==typeof t)return window.getComputedStyle(n[0])[t];n.forEach((e=>{Object.keys(t).forEach((n=>{e.style[n]=t[n]}))}))}function u(e,t){e.style.removeProperty(t)}function d(e){c(e).forEach((e=>{e.parentNode&&e.parentNode.removeChild(e)}))}function h(e,t,n){return Math.min(Math.max(e,t),n)}function p(e,t,n){const r=Array.isArray(t)?t:[t];return r.forEach((t=>e.addEventListener(t,n))),()=>{r.forEach((t=>e.removeEventListener(t,n)))}}function f(e){const t=e[0],n=e[1];return Math.sqrt(Math.pow(n.pageX-t.pageX,2)+Math.pow(n.pageY-t.pageY,2))}class m{onStart;onMove;onEnd;isSliderEnabled;container;touchMoveEvent;touchEndEvent;sx;sy;constructor(e,{onStart:t,onMove:r,onEnd:a,isSliderEnabled:i}){this.container=e,this.isSliderEnabled=i,this.onStart=t||n,this.onMove=r||n,this.onEnd=a||n}startHandler=e=>{if(!this.isSliderEnabled())return;this.removeListeners(),e.preventDefault();const{moveHandler:t,endHandler:n,onStart:r}=this;let a,i;if("touchstart"===e.type||"touchend"===e.type){const t=e;this.touchMoveEvent="touchmove",this.touchEndEvent="touchend",a=t.touches[0].clientX,i=t.touches[0].clientY}else{const t=e;this.touchMoveEvent="mousemove",this.touchEndEvent="mouseup",a=t.clientX,i=t.clientY}this.sx=a,this.sy=i,r(e,{x:this.sx,y:this.sy}),document.addEventListener(this.touchMoveEvent,t),document.addEventListener(this.touchEndEvent,n),document.addEventListener("contextmenu",n)};moveHandler=e=>{if(!this.isSliderEnabled())return;e.preventDefault();const{sx:t,sy:n,onMove:r}=this;let a,i;if("touchmove"===this.touchMoveEvent){const t=e;a=t.touches[0].clientX,i=t.touches[0].clientY}else{const t=e;a=t.clientX,i=t.clientY}r(e,{dx:a-t,dy:i-n,mx:a,my:i})};endHandler=()=>{this.isSliderEnabled()&&(this.removeListeners(),this.onEnd())};removeListeners(){this.touchMoveEvent&&document.removeEventListener(this.touchMoveEvent,this.moveHandler),this.touchEndEvent&&document.removeEventListener(this.touchEndEvent,this.endHandler),document.removeEventListener("contextmenu",this.endHandler)}init(){["touchstart","mousedown"].forEach((e=>{this.container.addEventListener(e,this.startHandler)}))}destroy(){["touchstart","mousedown"].forEach((e=>{this.container.removeEventListener(e,this.startHandler)})),this.removeListeners()}}class v{static defaults;static FullScreenViewer;_ev;_elements;_events;_options;_listeners;_state;_sliders;_frames;_images;constructor(e,t={}){const{container:n,domElement:r,imageSrc:a,hiResImageSrc:i}=this._findContainerAndImageSrc(e);this._elements={container:n,domElement:r},this._options={...v.defaults,...t},this._events={},this._listeners=this._options.listeners||{},this._frames={},this._sliders={},this._state={zoomValue:this._options.zoomValue},this._images={imageSrc:a,hiResImageSrc:i},this._init(),a&&this._loadImages(),r._imageViewer=this}get zoomInButton(){return this._options.hasZoomButtons?'<div class="iv-button-zoom--in" role="button"></div>':""}get zoomOutButton(){return this._options.hasZoomButtons?'<div class="iv-button-zoom--out" role="button"></div>':""}get imageViewHtml(){return`\n <div class="iv-loader"></div>\n <div class="iv-snap-view">\n <div class="iv-snap-image-wrap">\n <div class="iv-snap-handle"></div>\n </div>\n <div class="iv-zoom-actions ${this._options.hasZoomButtons?"iv-zoom-actions--has-buttons":""}">\n ${this.zoomInButton}\n <div class="iv-zoom-slider">\n <div class="iv-zoom-handle"></div>\n </div>\n ${this.zoomOutButton}\n </div>\n </div>\n <div class="iv-image-view" >\n <div class="iv-image-wrap" ></div>\n </div>\n`}get _callbackData(){return{container:this._elements.container,snapView:this._elements.snapView,zoomValue:this._state.zoomValue,reachedMin:Math.round(this._state.zoomValue)===this._options.zoomValue,reachedMax:Math.round(this._state.zoomValue)===this._options.maxZoom,instance:this}}_findContainerAndImageSrc(e){let t,n,r=e;if("string"==typeof e&&(r=document.querySelector(e)),r._imageViewer)throw new Error("An image viewer is already being initiated on the element.");let a=e;return"IMG"===r.tagName?(t=r.src,n=r.getAttribute("high-res-src")||r.getAttribute("data-high-res-src"),a=function(e,{tag:t="div",className:n,id:r,style:a}){const i=document.createElement(t);n&&(i.className=n),r&&(i.id=r),a&&(a.display&&(i.style.display=a.display),a.overflow&&(i.style.overflow=a.overflow));const o=e.parentNode;if(!o)throw new Error("element does not have a parent node");return o.insertBefore(i,e),o.removeChild(e),i.appendChild(e),i}(r,{className:"iv-container iv-image-mode",style:{display:"inline-block",overflow:"hidden"}}),l(r,{opacity:0,position:"relative",zIndex:-1})):(t=r.getAttribute("src")||r.getAttribute("data-src"),n=r.getAttribute("high-res-src")||r.getAttribute("data-high-res-src")),{container:a,domElement:r,imageSrc:t,hiResImageSrc:n}}_init(){this._initDom(),this._initImageSlider(),this._initSnapSlider(),this._initZoomSlider(),this._pinchAndZoom(),this._scrollZoom(),this._doubleTapToZoom(),this._initEvents()}_initDom(){const{container:e}=this._elements;a({tagName:"div",className:"iv-wrap",html:this.imageViewHtml,parent:e}),i(e,"iv-container"),"static"===l(e,"position")&&l(e,{position:"relative"}),this._elements={...this._elements,snapView:e.querySelector(".iv-snap-view"),snapImageWrap:e.querySelector(".iv-snap-image-wrap"),imageWrap:e.querySelector(".iv-image-wrap"),snapHandle:e.querySelector(".iv-snap-handle"),zoomHandle:e.querySelector(".iv-zoom-handle"),zoomIn:e.querySelector(".iv-button-zoom--in"),zoomOut:e.querySelector(".iv-button-zoom--out")},this._listeners.onInit&&this._listeners.onInit(this._callbackData)}_initImageSlider(){const{_elements:e}=this,{imageWrap:t}=e;let n,a;
6const i=new m(t,{isSliderEnabled:()=>{const{loaded:e,zooming:t,zoomValue:n}=this._state;return e&&!t&&n>100},onStart:(e,t)=>{const{snapSlider:r}=this._sliders;this._clearFrames(),r.onStart(),n=[t,t],a=void 0,this._frames.slideMomentumCheck=setInterval((()=>{a&&(n.shift(),n.push({x:a.mx,y:a.my}))}),50)},onMove:(e,t)=>{const{snapImageDim:n}=this._state,{snapSlider:r}=this._sliders,i=this._getImageCurrentDim();a=t,r.onMove(e,{dx:-t.dx*n.w/i.w,dy:-t.dy*n.h/i.h})},onEnd:()=>{const{snapImageDim:e}=this._state,{snapSlider:t}=this._sliders,i=this._getImageCurrentDim();let o,s,c;this._clearFrames();const l=n[1].x-n[0].x,u=n[1].y-n[0].y,d=()=>{o<=60&&(this._frames.sliderMomentumFrame=requestAnimationFrame(d)),s+=r(o,l/3,-l/3,60),c+=r(o,u/3,-u/3,60),t.onMove(null,{dx:-s*e.w/i.w,dy:-c*e.h/i.h}),o++};(Math.abs(l)>30||Math.abs(u)>30)&&(o=1,s=a.dx,c=a.dy,d())}});i.init(),this._sliders.imageSlider=i}_initSnapSlider(){const{snapHandle:e}=this._elements;let t,n;const r=new m(e,{isSliderEnabled:()=>this._state.loaded,onStart:()=>{const{slideMomentumCheck:r,sliderMomentumFrame:a}=this._frames;t=parseFloat(l(e,"top")),n=parseFloat(l(e,"left")),r&&clearInterval(r),"number"==typeof a&&cancelAnimationFrame(a)},onMove:(r,a)=>{const{snapHandleDim:i,snapImageDim:o}=this._state,{image:s}=this._elements,c=this._getImageCurrentDim();if(!i)return;const u=Math.max(o.w-i.w,n),d=Math.max(o.h-i.h,t),p=Math.min(0,n),f=Math.min(0,t),m=h(n+a.dx,p,u),v=h(t+a.dy,f,d),g=-m*c.w/o.w,y=-v*c.h/o.h;l(e,{left:`${m}px`,top:`${v}px`}),l(s,{left:`${g}px`,top:`${y}px`})}});r.init(),this._sliders.snapSlider=r}_initZoomSlider(){const{snapView:e,zoomHandle:t}=this._elements,n=e.querySelector(".iv-zoom-slider");let r,a;const i=new m(n,{isSliderEnabled:()=>this._state.loaded,onStart:e=>{const{zoomSlider:i}=this._sliders;r=n.getBoundingClientRect().left+document.body.scrollLeft,a=parseInt(l(t,"width"),10),i.onMove(e)},onMove:e=>{const{maxZoom:t}=this._options,{zoomSliderLength:n}=this._state,i=void 0!==e.pageX?e.pageX:e.touches[0].pageX;if(!n)return;const o=100+(t-100)*h(i-r-a/2,0,n)/n;this.zoom(o)}});i.init(),this._sliders.zoomSlider=i}_initEvents(){this._snapViewEvents(),this._options.refreshOnResize&&(this._events.onWindowResize=p(window,"resize",this.refresh))}_snapViewEvents(){const{imageWrap:e,snapView:t}=this._elements;if(this._events.snapViewOnMouseMove=p(e,["touchmove","mousemove"],(()=>{this.showSnapView()})),this._events.mouseEnterSnapView=p(t,["mouseenter","touchstart"],(()=>{this._state.snapViewVisible=!1,this.showSnapView(!0)})),this._events.mouseLeaveSnapView=p(t,["mouseleave","touchend"],(()=>{this._state.snapViewVisible=!1,this.showSnapView()})),!this._options.hasZoomButtons)return;const{zoomOut:n,zoomIn:r}=this._elements;this._events.zoomInClick=p(r,["click"],(()=>{this.zoom(this._state.zoomValue+(this._options.zoomStep||50))})),this._events.zoomOutClick=p(n,["click"],(()=>{this.zoom(this._state.zoomValue-(this._options.zoomStep||50))}))}_pinchAndZoom(){const{imageWrap:e,container:t}=this._elements;this._events.pinchStart=p(e,"touchstart",(e=>{const{loaded:n,zoomValue:r}=this._state,{_events:a}=this;if(!n)return;const i=e.touches[0],o=e.touches[1];if(!i||!o)return;this._state.zooming=!0;const s=t.getBoundingClientRect(),c=f(e.touches),l={x:(o.pageX+i.pageX)/2-(s.left+document.body.scrollLeft),y:(o.pageY+i.pageY)/2-(s.top+document.body.scrollTop)};a.pinchMove&&a.pinchMove(),a.pinchEnd&&a.pinchEnd(),a.pinchMove=p(document,"touchmove",(e=>{const t=f(e.touches),n=r+(t-c)/2;this.zoom(n,l)})),a.pinchEnd=p(document,"touchend",(e=>{a.pinchMove&&a.pinchMove(),a.pinchEnd&&a.pinchEnd(),this._state.zooming=!1,1===e.touches.length&&this._sliders.imageSlider.startHandler(e)}))}))}_scrollZoom(){const{_options:e}=this,{container:t,imageWrap:n}=this._elements;let r=0;this._ev=p(n,"wheel",(n=>{const{loaded:a,zoomValue:i}=this._state;if(!e.zoomOnMouseWheel||!a)return;this._clearFrames();const o=Math.max(-1,Math.min(1,n.wheelDelta||-n.detail||-n.deltaY)),s=i*(100+15*o)/100;if(s>=100&&s<=e.maxZoom?r=0:r+=Math.abs(o),n.preventDefault(),r>5)return;const c=t.getBoundingClientRect(),l=(n.pageX||n.pageX)-(c.left+document.body.scrollLeft),u=(n.pageY||n.pageY)-(c.top+document.body.scrollTop);this.zoom(s,{x:l,y:u}),this.showSnapView()}))}_doubleTapToZoom(){const{imageWrap:e}=this._elements;let t,n=0;p(e,"click",(e=>{0===n?(n=Date.now(),t={x:e.pageX,y:e.pageY}):Date.now()-n<500&&Math.abs(e.pageX-t.x)<50&&Math.abs(e.pageY-t.y)<50?(this._state.zoomValue===this._options.zoomValue?this.zoom(200):this.resetZoom(),n=0):n=0}))}_getImageCurrentDim(){const{zoomValue:e,imageDim:t}=this._state;return{w:t.w*(e/100),h:t.h*(e/100)}}_loadImages(){const{_images:e,_elements:t}=this,{imageSrc:n,hiResImageSrc:r}
6=e,{container:i,snapImageWrap:o,imageWrap:c}=t,u=i.querySelector(".iv-loader");d(i.querySelectorAll(".iv-snap-image, .iv-image"));const h=a({tagName:"img",className:"iv-snap-image",insertBefore:o.firstChild,parent:o});h.src=String(n);const f=a({tagName:"img",className:"iv-image iv-small-image",parent:c});f.src=String(n),this._state.loaded=!1,this._elements.image=f,this._elements.snapImage=h,l(u,{display:"block"}),l(f,{visibility:"hidden"}),this.hideSnapView();const m=()=>{l(u,{display:"none"}),l(f,{visibility:"visible"}),r&&this._loadHighResImage(r),this._state.loaded=!0,this._calculateDimensions(),this._listeners.onImageLoaded&&this._listeners.onImageLoaded(this._callbackData),this.resetZoom()};s(f)?m():(this._events.imageLoad=p(f,"load",m),this._events.imageError=p(f,"error",(e=>{l(u,{display:"none"}),this._listeners.onImageError&&this._listeners.onImageError(e)})))}_loadHighResImage(e){const{imageWrap:t,container:n}=this._elements,r=this._elements.image,i=a({tagName:"img",className:"iv-image iv-large-image",src:e,parent:t,style:r.style.cssText});i.style.cssText=r.style.cssText,this._elements.image=n.querySelectorAll(".iv-image");const o=()=>{d(r),this._elements.image=i};s(i)?o():this._events.hiResImageLoad=p(i,"load",o)}_calculateDimensions(){const{image:e,container:t,snapView:n,snapImage:r,zoomHandle:a}=this._elements,i=parseInt(l(e,"width"),10),o=parseInt(l(e,"height"),10),s=parseInt(l(t,"width"),10),c=parseInt(l(t,"height"),10),u=n.clientWidth,d=n.clientHeight;this._state.containerDim={w:s,h:c};const h=e.naturalWidth||i,p=e.naturalHeight||o,f=h/p,m=h>p&&c>=s||f*c>s?s:f*c,v=m/f;this._state.imageDim={w:m,h:v},l(e,{width:`${m}px`,height:`${v}px`,left:(s-m)/2+"px",top:(c-v)/2+"px",maxWidth:"none",maxHeight:"none"});const g=m>v?u:m*d/v,y=v>m?d:v*u/m;this._state.snapImageDim={w:g,h:y},l(r,{width:`${g}px`,height:`${y}px`});const _=n.querySelector(".iv-zoom-slider").clientWidth;this._state.zoomSliderLength=_-a.offsetWidth}resetZoom(e=!0){const{zoomValue:t}=this._options;e||(this._state.zoomValue=t),this.zoom(t)}zoom=(e,t)=>{const{_options:n,_elements:a,_state:i}=this,{zoomValue:o,imageDim:s,containerDim:c,zoomSliderLength:u}=i,{image:d,zoomHandle:h}=a,{maxZoom:p}=n;e=Math.round(Math.max(100,e)),e=Math.min(p,e),t=t||{x:c.w/2,y:c.h/2};const f=parseFloat(l(d,"left")),m=parseFloat(l(d,"top"));this._clearFrames();let v=0;const g=(c.w-s.w)/2,y=(c.h-s.h)/2,_=c.w-g,b=c.h-y,w=()=>{v++,v<16&&(this._frames.zoomFrame=requestAnimationFrame(w));const n=r(v,o,e-o,16),a=n/o,i=s.w*n/100,c=s.h*n/100;let S=-((t.x-f)*a-t.x),C=-((t.y-m)*a-t.y);S=Math.min(S,g),C=Math.min(C,y),S+i<_&&(S=_-i),C+c<b&&(C=b-c),l(d,{height:`${c}px`,width:`${i}px`,left:`${S}px`,top:`${C}px`}),this._state.zoomValue=n,this._resizeSnapHandle(i,c,S,C),l(h,{left:(n-100)*(u||0)/(p-100)+"px"}),this._listeners.onZoomChange&&this._listeners.onZoomChange(this._callbackData)};w()};_clearFrames=()=>{const{slideMomentumCheck:e,sliderMomentumFrame:t,zoomFrame:n}=this._frames;e&&clearInterval(e),"number"==typeof t&&cancelAnimationFrame(t),"number"==typeof n&&cancelAnimationFrame(n)};_resizeSnapHandle=(e,t,n,r)=>{const{_elements:a,_state:i}=this,{snapHandle:o,image:s}=a,{imageDim:c,containerDim:u,zoomValue:d,snapImageDim:h}=i,p=e||c.w*d/100,f=t||c.h*d/100,m=n||parseFloat(l(s,"left")),v=r||parseFloat(l(s,"top")),g=-m*h.w/p,y=-v*h.h/f,_=u.w*h.w/p,b=u.h*h.h/f;l(o,{top:`${y}px`,left:`${g}px`,width:`${_}px`,height:`${b}px`}),this._state.snapHandleDim={w:_,h:b}};showSnapView=e=>{const{snapViewVisible:t,zoomValue:n,loaded:r}=this._state,{snapView:a}=this._elements;this._options.snapView&&(t||n<=100||!r||(clearTimeout(this._frames.snapViewTimeout),this._state.snapViewVisible=!0,l(a,{opacity:1,pointerEvents:"inherit"}),e||(this._frames.snapViewTimeout=setTimeout(this.hideSnapView,1500))))};hideSnapView=()=>{const{snapView:e}=this._elements;l(e,{opacity:0,pointerEvents:"none"}),this._state.snapViewVisible=!1};refresh=()=>{this._calculateDimensions(),this.resetZoom()};load(e,t){this._images={imageSrc:e,hiResImageSrc:t},this._loadImages()}destroy(){const{container:e,domElement:t}=this._elements;
6Object.entries(this._sliders).forEach((([,e])=>{e.destroy()})),Object.entries(this._events).forEach((([,e])=>{e()})),this._clearFrames(),d(e.querySelector(".iv-wrap")),o(e,"iv-container"),u(document.querySelector("html"),"relative"),t!==e&&function(e){const t=e.parentNode;t&&t!==document.body&&(t.parentNode?.insertBefore(e,t),t.parentNode?.removeChild(t))}(t),t._imageViewer=null,this._listeners.onDestroy&&this._listeners.onDestroy()}}v.defaults={zoomValue:100,snapView:!0,maxZoom:500,refreshOnResize:!0,zoomOnMouseWheel:!0,hasZoomButtons:!1,zoomStep:50,listeners:{onInit:null,onDestroy:null,onImageLoaded:null,onZoomChange:null,onImageError:null}},t.WX=class extends v{constructor(e={}){const t=a({tagName:"div",className:"iv-fullscreen",html:'\n <div class="iv-fullscreen-container"></div>\n <div class="iv-fullscreen-close"></div>\n',parent:document.body});super(t.querySelector(".iv-fullscreen-container"),{...e,refreshOnResize:!1}),this._elements.fullScreen=t,this._initFullScreenEvents()}_initFullScreenEvents(){const{fullScreen:e}=this._elements,t=e.querySelector(".iv-fullscreen-close");this._events.onCloseBtnClick=p(t,"click",this.hide)}show(e,t){l(this._elements.fullScreen,{display:"block"}),e&&this.load(e,t),this._events.onWindowResize=p(window,"resize",this.refresh),l(document.querySelector("html"),{overflow:"hidden"})}hide=()=>{l(this._elements.fullScreen,{display:"none"}),u(document.querySelector("html"),"overflow"),this._events.onWindowResize&&this._events.onWindowResize()};destroy(){const{fullScreen:e}=this._elements;super.destroy(),d(e)}}},48051:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var r=n(2708),a=n(69879),i=n(2884),o=n(99517),s=n(93728),c=n(10281),l=n(12688),u=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i,o=this,s=(i=e)&&i instanceof r.Subscriber||function(e){return e&&c.isFunction(e.next)&&c.isFunction(e.error)&&c.isFunction(e.complete)}(i)&&a.isSubscription(i)?e:new r.SafeSubscriber(e,t,n);return l.errorContext((function(){var e=o,t=e.operator,n=e.source;s.add(t?t.call(s,n):n?o._subscribe(s):o._trySubscribe(s))})),s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=d(t))((function(t,a){var i=new r.SafeSubscriber({next:function(t){try{e(t)}catch(e){a(e),i.unsubscribe()}},error:a,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[i.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=d(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function d(e){var t;return null!==(t=null!=e?e:s.config.Promise)&&void 0!==t?t:Promise}t.Observable=u},48461:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;var r=n(90680),a=n(65212);t.switchScan=function(e,t){return a.operate((function(n,a){var i=t;return r.switchMap((function(t,n){return e(i,t,n)}),(function(e,t){return i=t,t}))(n).subscribe(a),function(){i=null}}))}},49674:function(e,t,n){"use strict";n.d(t,{R:function(){return a}});var r=n(71999);function a(e,t){"function"==typeof console.debug&&(console.debug("New Relic Warning: https://github.com/newrelic/newrelic-browser-agent/blob/main/docs/warning-codes.md#".concat(e),t),(0,r.W)({drained:null,type:"data",name:"warn",feature:"warn",data:{code:e,secondary:t}}))}},49891:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,r,a=e.length;for(n=0;n<a;n+=1)for(var i in r=e[n].prototype)Object.prototype.hasOwnProperty.call(r,i)&&(t.prototype[i]=r[i])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var n,r=0,a=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<t;r+=1)a.push(n);return a}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="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},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=t.length;for(e=0;e<n;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,n=createSizedArray(e.length),r=e.length;for(t=0;t<r;t+=1)n[t]=Math.abs(e[t]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,n){var r,a,i,o,s,c,l,u;switch(c=n*(1-t),l=n*(1-(s=6*e-(o=Math.floor(6*e)))*t),u=n*(1-(1-s)*t),o%6){case 0:r=n,a=u,i=c;break;case 1:r=l,a=n,i=c;break;case 2:r=c,a=n,i=u;break;case 3:r=c,a=l,i=n;break;case 4:r=u,a=c,i=n;break;case 5:r=n,a=c,i=l}return[r,a,i]}
vendor: 35,399 bytes, line 6
6function RGBtoHSV(e,t,n){var r,a=Math.max(e,t,n),i=Math.min(e,t,n),o=a-i,s=0===a?0:o/a,c=a/255;switch(a){case i:r=0;break;case e:r=t-n+o*(t<n?6:0),r/=6*o;break;case t:r=n-e+2*o,r/=6*o;break;case n:r=e-t+4*o,r/=6*o}return[r,s,c]}function addSaturationToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+n[e]+n[t]+n[r]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="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},_typeof$5(e)}var dataManager=function(){var e,t,n=1,r=[],a={onmessage:function(){},postMessage:function(t){e({data:t})}},i={postMessage:function(e){a.onmessage({data:e})}};function o(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return e=t,a}((function(e){if(i.dataManager||(i.dataManager=function(){function e(a,i){var o,s,c,l,u,h,p=a.length;for(s=0;s<p;s+=1)if("ks"in(o=a[s])&&!o.completed){if(o.completed=!0,o.hasMask){var f=o.masksProperties;for(l=f.length,c=0;c<l;c+=1)if(f[c].pt.k.i)r(f[c].pt.k);else for(h=f[c].pt.k.length,u=0;u<h;u+=1)f[c].pt.k[u].s&&r(f[c].pt.k[u].s[0]),f[c].pt.k[u].e&&r(f[c].pt.k[u].e[0])}0===o.ty?(o.layers=t(o.refId,i),e(o.layers,i)):4===o.ty?n(o.shapes):5===o.ty&&d(o)}}function t(e,t){var n=function(e,t){for(var n=0,r=t.length;n<r;){if(t[n].id===e)return t[n];n+=1}return null}(e,t);return n?n.layers.__used?JSON.parse(JSON.stringify(n.layers)):(n.layers.__used=!0,n.layers):null}function n(e){var t,a,i;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(i=e[t].ks.k.length,a=0;a<i;a+=1)e[t].ks.k[a].s&&r(e[t].ks.k[a].s[0]),e[t].ks.k[a].e&&r(e[t].ks.k[a].e[0]);else"gr"===e[t].ty&&n(e[t].it)}function r(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function a(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var i,o=function(){var e=[4,4,14];function t(e){var t,n,r,a=e.length;for(t=0;t<a;t+=1)5===e[t].ty&&(r=void 0,r=(n=e[t]).t.d,n.t.d={k:[{s:r,t:0}]})}return function(n){if(a(e,n.v)&&(t(n.layers),n.assets)){var r,i=n.assets.length;for(r=0;r<i;r+=1)n.assets[r].layers&&t(n.assets[r].layers)}}}(),s=(i=[4,7,99],function(e){if(e.chars&&!a(i,e.v)){var t,r=e.chars.length;for(t=0;t<r;t+=1){var o=e.chars[t];o.data&&o.data.shapes&&(n(o.data.shapes),o.data.ip=0,o.data.op=99999,o.data.st=0,o.data.sr=1,o.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(o.data.shapes.push({ty:"no"}),o.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),c=function(){var e=[5,7,15];function t(e){var t,n,r=e.length;for(t=0;t<r;t+=1)5===e[t].ty&&(n=void 0,"number"==typeof(n=e[t].t.p).a&&(n.a={a:0,k:n.a}),"number"==typeof n.p&&(n.p={a:0,k:n.p}),"number"==typeof n.r&&(n.r={a:0,k:n.r}))}return function(n){if(a(e,n.v)&&(t(n.layers),n.assets)){var r,i=n.assets.length;for(r=0;r<i;r+=1)n.assets[r].layers&&t(n.assets[r].layers)}}}(),l=function(){var e=[4,1,9];function t(e){var n,r,a,i=e.length;for(n=0;n<i;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(a=e[n].c.k.length,r=0;r<a;r+=1)e[n].c.k[r].s&&(e[n].c.k[r].s[0]/=255,e[n].c.k[r].s[1]/=255,e[n].c.k[r].s[2]/=255,e[n].c.k[r].s[3]/=255),e[n].c.k[r].e&&(e[n].c.k[r].e[0]/=255,e[n].c.k[r].e[1]/=255,e[n].c.k[r].e[2]/=255,e[n].c.k[r].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),u=function(){var e=[4,4,18];function t(e){var n,r,a;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(a=e[n].ks.k.length,r=0;r<a;r+=1)e[n].ks.k[r].s&&(e[n].ks.k[r].s[0].c=e[n].closed),e[n].ks.k[r].e&&(e[n].ks.k[r].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,r,a,i,o,s,c=e.length;for(r=0;r<c;r+=1){if((n=e[r]).hasMask){var l=n.masksProperties;for(i=l.length,a=0;a<i;a+=1)if(l[a].pt.k.i)l[a].pt.k.c=l[a].cl;else for(s=l[a].pt.k.length,o=0;o<s;o+=1)l[a].pt.k[o].s&&(l[a].pt.k[o].s[0].c=l[a].cl),l[a].pt.k[o].e&&(l[a].pt.k[o].e[0].c=l[a].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}();function d(e){0===e.t.a.length&&e.t.p}var h={completeData:function(n){n.__complete||(l(n),o(n),s(n),c(n),u(n),e(n.layers,n.assets),function(n,r){if(n){var a=0,i=n.length;for(a=0;a<i;a+=1)1===n[a].t&&(n[a].data.layers=t(n[a].data.refId,r),e(n[a].data.layers,r))}}(n.chars,n.assets),n.__complete=!0)}};return h.checkColors=l,h.checkChars=s,h.checkPathProperties=c,h.checkShapes=u,h.completeLayers=e,h}()),i.assetLoader||(i.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,n,r,a){var i,o=new XMLHttpRequest;try{o.responseType="json"}catch(e){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)i=e(o),r(i);else try{i=e(o),r(i)}catch(e){a&&a(e)}};try{o.open(["G","E","T"].join(""),t,!0)}catch(e){o.open(["G","E","T"].join(""),n+"/"+t,!0)}o.send()}}}()),"loadAnimation"===e.data.type)i.assetLoader.load(e.data.path,e.data.fullPath,(function(t){i.dataManager.completeData(t),i.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){i.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;i.dataManager.completeData(t),i.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&i.assetLoader.load(e.data.path,e.data.fullPath,(function(t){i.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){i.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,n=t.id,a=r[n];r[n]=null,"success"===t.status?a.onComplete(t.payload):a.onError&&a.onError()})}function s(e,t){var a="processId_"+(n+=1);return r[a]={onComplete:e,onError:t},a}return{loadAnimation:function(e,n,r){o();var a=s(n,r);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:a})},loadData:function(e,n,r){o();var a=s(n,r);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:a})},completeAnimation:function(e,n,r){o();var a=s(n,r);t.postMessage({type:"complete",animation:e,id:a})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(e,t,n){var r="";if(e.e)r=e.p;else if(t){var a=e.p;-1!==a.indexOf("images/")&&(a=a.split("/")[1]),r=t+a}else r=n,r+=e.u?e.u:"",r+=e.p;return r}function a(e){var t=0,n=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function i(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return dataManager.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function o(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=a.bind(this),this.createFootageData=i.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(e,t){var n;this.imagesLoadedCb=t;var r=e.length;for(n=0;n<r;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var n=r(t,this.assetsPath,this.path),a=createTag("img");a.crossOrigin="anonymous",a.addEventListener("load",this._imageLoaded,!1),a.addEventListener("error",function(){i.img=e,this._imageLoaded()}.bind(this),!1),a.src=n;var i={img:a,assetData:t};return i},createImageData:function(t){var n=r(t,this.assetsPath,this.path),a=createNS("image");isSafari?this.testImageLoaded(a):a.addEventListener("load",this._imageLoaded,!1),a.addEventListener("error",function(){i.img=e,this._imageLoaded()}.bind(this),!1),a.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(a):this._elementHelper.appendChild(a);var i={img:a,assetData:t};return i},imageLoaded:t,footageLoaded:n,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],r=0;r<n.length;r+=1)n[r](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,r=this._cbs[e].length;n<r;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,r-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,n=e.split("\r\n"),r={},a=0,i=0;i<n.length;i+=1)2===(t=n[i].split(":")).length&&(r[t[0]]=t[1].trim(),a+=1);if(0===a)throw new Error;return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var a=t[r],i={time:a.tm,duration:a.dr};try{i.payload=JSON.parse(t[r].cm)}catch(n){try{i.payload=e(t[r].cm)}catch(e){i.payload={name:t[r].cm}}}n.push(i)}return n}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="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},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var a=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===a?n.loop=!1:"true"===a?n.loop=!0:""!==a&&(n.loop=parseInt(a,10));var i=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==i,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,a=r.length,i=e.layers,o=i.length;for(n=0;n<o;n+=1)for(t=0;t<a;){if(r[t].id===i[n].id){r[t]=i[n];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(a=e.assets.length,t=0;t<a;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var n="number"==typeof e?e:void 0,r="number"==typeof t?t:void 0;this.renderer.updateContainerSize(n,r)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var a=this.getMarkerData(e);a&&this.goToAndStop(a.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var a=this.getMarkerData(e);a&&(a.duration?this.playSegments([a.time,a.time+a.duration],!0):this.goToAndStop(a.time,!0))}else this.goToAndStop(r,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{this.renderer.getElementByPath(e).updateDocumentData(t,n)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],n=0,r=0,a=0,i=!0,o=!1;function s(e){for(var n=0,a=e.target;n<r;)t[n].animation===a&&(t.splice(n,1),n-=1,r-=1,a.isPaused||u()),n+=1}function c(e,n){if(!e)return null;for(var a=0;a<r;){if(t[a].elem===e&&null!==t[a].elem)return t[a].animation;a+=1}var i=new AnimationItem;return d(i,e),i.setData(e,n),i}function l(){a+=1,f()}function u(){a-=1}function d(e,n){e.addEventListener("destroy",s),e.addEventListener("_active",l),e.addEventListener("_idle",u),t.push({elem:n,animation:e}),r+=1}function h(e){var s,c=e-n;for(s=0;s<r;s+=1)t[s].animation.advanceTime(c);n=e,a&&!o?window.requestAnimationFrame(h):i=!0}function p(e){n=e,window.requestAnimationFrame(h)}function f(){!o&&a&&i&&(window.requestAnimationFrame(p),i=!1)}return e.registerAnimation=c,e.loadAnimation=function(e){var t=new AnimationItem;return d(t,null),t.setParams(e),t},e.setSpeed=function(e,n){var a;for(a=0;a<r;a+=1)t[a].animation.setSpeed(e,n)},e.setDirection=function(e,n){var a;for(a=0;a<r;a+=1)t[a].animation.setDirection(e,n)},e.play=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.play(e)},e.pause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.pause(e)},e.stop=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.stop(e)},e.togglePause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.togglePause(e)},e.searchAnimations=function(e,t,n){var r,a=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),i=a.length;for(r=0;r<i;r+=1)n&&a[r].setAttribute("data-bm-type",n),c(a[r],e);if(t&&0===i){n||(n="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",n),o.appendChild(s),c(s,e)}},e.resize=function(){var e;for(e=0;e<r;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,n,a){var i;for(i=0;i<r;i+=1)t[i].animation.goToAndStop(e,n,a)},e.destroy=function(e){var n;for(n=r-1;n>=0;n-=1)t[n].animation.destroy(e)},e.freeze=function(){o=!0},e.unfreeze=function(){o=!1,f()},e.setVolume=function(e,n){var a;for(a=0;a<r;a+=1)t[a].animation.setVolume(e,n)},e.mute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.mute(e)},e.unmute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r.push(t[e].animation);return r},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,n,r,a,i){var o=i||("bez_"+e+"_"+n+"_"+r+"_"+a).replace(/\./g,"p");if(t[o])return t[o];var s=new u([e,n,r,a]);return t[o]=s,s}},t={},n=11,r=1/(n-1),a="function"==typeof Float32Array;function i(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function s(e){return 3*e}function c(e,t,n){return((i(t,n)*e+o(t,n))*e+s(t))*e}function l(e,t,n){return 3*i(t,n)*e*e+2*o(t,n)*e+s(t)}function u(e){this._p=e,this._mSampleValues=a?new Float32Array(n):new Array(n),this._precomputed=!1,this.get=this.get.bind(this)}return u.prototype={get:function(e){var t=this._p[0],n=this._p[1],r=this._p[2],a=this._p[3];return this._precomputed||this._precompute(),t===n&&r===a?e:0===e?0:1===e?1:c(this._getTForX(e),n,a)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,e===t&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],a=0;a<n;++a)this._mSampleValues[a]=c(a*r,e,t)},_getTForX:function(e){for(var t=this._p[0],a=this._p[2],i=this._mSampleValues,o=0,s=1,u=n-1;s!==u&&i[s]<=e;++s)o+=r;var d=o+(e-i[--s])/(i[s+1]-i[s])*r,h=l(d,t,a);return h>=.001?function(e,t,n,r){for(var a=0;a<4;++a){var i=l(t,n,r);if(0===i)return t;t-=(c(t,n,r)-e)/i}return t}(e,d,t,a):0===h?d:function(e,t,n,r,a){var i,o,s=0;do{(i=c(o=t+(n-t)/2,r,a)-e)>0?n=o:t=o}while(Math.abs(i)>1e-7&&++s<10);return o}(e,o,o+r,t,a)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,n){var r=0,a=e,i=createSizedArray(a);return{newElement:function(){return r?i[r-=1]:t()},release:function(e){r===a&&(i=pooling.double(i),a*=2),n&&n(e),i[r]=e,r+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,n,r,a,i){var o=e*r+t*a+n*i-a*r-i*e-n*t;return o>-.001&&o<.001}var n=function(e,t,n,r){var a,i,o,s,c,l,u=getDefaultCurveSegments(),d=0,h=[],p=[],f=bezierLengthPool.newElement();for(o=n.length,a=0;a<u;a+=1){for(c=a/(u-1),l=0,i=0;i<o;i+=1)s=bmPow(1-c,3)*e[i]+3*bmPow(1-c,2)*c*n[i]+3*(1-c)*bmPow(c,2)*r[i]+bmPow(c,3)*t[i],h[i]=s,null!==p[i]&&(l+=bmPow(h[i]-p[i],2)),p[i]=h[i];l&&(d+=l=bmSqrt(l)),f.percents[a]=c,f.lengths[a]=d}return f.addedLength=d,f};function r(e){this.segmentLength=0,this.points=new Array(e)}function a(e,t){this.partialLength=e,this.point=t}var i,o=(i={},function(e,n,o,s){var c=(e[0]+"_"+e[1]+"_"+n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!i[c]){var l,u,d,h,p,f,m,v=getDefaultCurveSegments(),g=0,y=null;2===e.length&&(e[0]!==n[0]||e[1]!==n[1])&&t(e[0],e[1],n[0],n[1],e[0]+o[0],e[1]+o[1])&&t(e[0],e[1],n[0],n[1],n[0]+s[0],n[1]+s[1])&&(v=2);var _=new r(v);for(d=o.length,l=0;l<v;l+=1){for(m=createSizedArray(d),p=l/(v-1),f=0,u=0;u<d;u+=1)h=bmPow(1-p,3)*e[u]+3*bmPow(1-p,2)*p*(e[u]+o[u])+3*(1-p)*bmPow(p,2)*(n[u]+s[u])+bmPow(p,3)*n[u],m[u]=h,null!==y&&(f+=bmPow(m[u]-y[u],2));g+=f=bmSqrt(f),_.points[l]=new a(f,m),y=m}_.segmentLength=g,i[c]=_}return i[c]});function s(e,t){var n=t.percents,r=t.lengths,a=n.length,i=bmFloor((a-1)*e),o=e*t.addedLength,s=0;if(i===a-1||0===i||o===r[i])return n[i];for(var c=r[i]>o?-1:1,l=!0;l;)if(r[i]<=o&&r[i+1]>o?(s=(o-r[i])/(r[i+1]-r[i]),l=!1):i+=c,i<0||i>=a-1){if(i===a-1)return n[i];l=!1}return n[i]+(n[i+1]-n[i])*s}var c=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,r=segmentsLengthPool.newElement(),a=e.c,i=e.v,o=e.o,s=e.i,c=e._length,l=r.lengths,u=0;for(t=0;t<c-1;t+=1)l[t]=n(i[t],i[t+1],o[t],s[t+1]),u+=l[t].addedLength;return a&&c&&(l[t]=n(i[t],i[0],o[t],s[0]),u+=l[t].addedLength),r.totalLength=u,r},getNewSegment:function(t,n,r,a,i,o,l){i<0?i=0:i>1&&(i=1);var u,d=s(i,l),h=s(o=o>1?1:o,l),p=t.length,f=1-d,m=1-h,v=f*f*f,g=d*f*f*3,y=d*d*f*3,_=d*d*d,b=f*f*m,w=d*f*m+f*d*m+f*f*h,S=d*d*m+f*d*h+d*f*h,C=d*d*h,E=f*m*m,x=d*m*m+f*h*m+f*m*h,A=d*h*m+f*h*h+d*m*h,k=d*h*h,T=m*m*m,L=h*m*m+m*h*m+m*m*h,I=h*h*m+m*h*h+h*m*h,D=h*h*h;for(u=0;
vendor: 2,974 bytes, line 6
6u<p;u+=1)c[4*u]=e.round(1e3*(v*t[u]+g*r[u]+y*a[u]+_*n[u]))/1e3,c[4*u+1]=e.round(1e3*(b*t[u]+w*r[u]+S*a[u]+C*n[u]))/1e3,c[4*u+2]=e.round(1e3*(E*t[u]+x*r[u]+A*a[u]+k*n[u]))/1e3,c[4*u+3]=e.round(1e3*(T*t[u]+L*r[u]+I*a[u]+D*n[u]))/1e3;return c},getPointInSegment:function(t,n,r,a,i,o){var c=s(i,o),l=1-c;return[e.round(1e3*(l*l*l*t[0]+(c*l*l+l*c*l+l*l*c)*r[0]+(c*c*l+l*c*c+c*l*c)*a[0]+c*c*c*n[0]))/1e3,e.round(1e3*(l*l*l*t[1]+(c*l*l+l*c*l+l*l*c)*r[1]+(c*c*l+l*c*c+c*l*c)*a[1]+c*c*c*n[1]))/1e3]},buildBezierData:o,pointOnLine2D:t,pointOnLine3D:function(n,r,a,i,o,s,c,l,u){if(0===a&&0===s&&0===u)return t(n,r,i,o,c,l);var d,h=e.sqrt(e.pow(i-n,2)+e.pow(o-r,2)+e.pow(s-a,2)),p=e.sqrt(e.pow(c-n,2)+e.pow(l-r,2)+e.pow(u-a,2)),f=e.sqrt(e.pow(c-i,2)+e.pow(l-o,2)+e.pow(u-s,2));return(d=h>p?h>f?h-p-f:f-p-h:f>p?f-p-h:p-h-f)>-1e-4&&d<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var n,r=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var a,i,o,s,c,l,u,d,h,p=t.lastIndex,f=p,m=this.keyframes.length-1,v=!0;v;){if(a=this.keyframes[f],i=this.keyframes[f+1],f===m-1&&e>=i.t-r){a.h&&(a=i),p=0;break}if(i.t-r>e){p=f;break}f<m-1?f+=1:(p=0,v=!1)}o=this.keyframesMetadata[f]||{};var g,y=i.t-r,_=a.t-r;if(a.to){o.bezierData||(o.bezierData=bez.buildBezierData(a.s,i.s||a.e,a.to,a.ti));var b=o.bezierData;if(e>=y||e<_){var w=e>=y?b.points.length-1:0;for(c=b.points[w].point.length,s=0;s<c;s+=1)n[s]=b.points[w].point[s]}else{o.__fnct?h=o.__fnct:(h=BezierFactory.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y,a.n).get,o.__fnct=h),l=h((e-_)/(y-_));var S,C=b.segmentLength*l,E=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(d=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,v=!0,u=b.points.length;v;){if(E+=b.points[d].partialLength,0===C||0===l||d===b.points.length-1){for(c=b.points[d].point.length,s=0;s<c;s+=1)n[s]=b.points[d].point[s];break}if(C>=E&&C<E+b.points[d+1].partialLength){for(S=(C-E)/b.points[d+1].partialLength,c=b.points[d].point.length,s=0;s<c;s+=1)n[s]=b.points[d].point[s]+(b.points[d+1].point[s]-b.points[d].point[s])*S;break}d<u-1?d+=1:v=!1}t._lastPoint=d,t._lastAddedLength=E-b.points[d].partialLength,t._lastKeyframeIndex=f}}else{var x,A,k,T,L;if(m=a.s.length,g=i.s||a.e,this.sh&&1!==a.h)e>=y?(n[0]=g[0],n[1]=g[1],n[2]=g[2]):e<=_?(n[0]=a.s[0],n[1]=a.s[1],n[2]=a.s[2]):quaternionToEuler(n,slerp(createQuaternion(a.s),createQuaternion(g),(e-_)/(y-_)));else for(f=0;f<m;f+=1)1!==a.h&&(e>=y?l=1:e<_?l=0:(a.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[f]?h=o.__fnct[f]:(x=void 0===a.o.x[f]?a.o.x[0]:a.o.x[f],A=void 0===a.o.y[f]?a.o.y[0]:a.o.y[f],k=void 0===a.i.x[f]?a.i.x[0]:a.i.x[f],T=void 0===a.i.y[f]?a.i.y[0]:a.i.y[f],h=BezierFactory.getBezierEasing(x,A,k,T).get,o.__fnct[f]=h)):o.__fnct?h=o.__fnct:(x=a.o.x,A=a.o.y,k=a.i.x,T=a.i.y,h=BezierFactory.getBezierEasing(x,A,k,T).get,a.keyframeMetadata=h),l=h((e-_)/(y-_)))),g=i.s||a.e,
vendor: 14,068 bytes, line 6
6L=1===a.h?a.s[f]:a.s[f]+(g[f]-a.s[f])*l,"multidimensional"===this.propType?n[f]=L:n=L}return t.lastIndex=p,n}function slerp(e,t,n){var r,a,i,o,s,c=[],l=e[0],u=e[1],d=e[2],h=e[3],p=t[0],f=t[1],m=t[2],v=t[3];return(a=l*p+u*f+d*m+h*v)<0&&(a=-a,p=-p,f=-f,m=-m,v=-v),1-a>1e-6?(r=Math.acos(a),i=Math.sin(r),o=Math.sin((1-n)*r)/i,s=Math.sin(n*r)/i):(o=1-n,s=n),c[0]=o*l+s*p,c[1]=o*u+s*f,c[2]=o*d+s*m,c[3]=o*h+s*v,c}function quaternionToEuler(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],o=Math.atan2(2*r*i-2*n*a,1-2*r*r-2*a*a),s=Math.asin(2*n*r+2*a*i),c=Math.atan2(2*n*i-2*r*a,1-2*n*n-2*a*a);e[0]=o/degToRads,e[1]=s/degToRads,e[2]=c/degToRads}function createQuaternion(e){var t=e[0]*degToRads,n=e[1]*degToRads,r=e[2]*degToRads,a=Math.cos(t/2),i=Math.cos(n/2),o=Math.cos(r/2),s=Math.sin(t/2),c=Math.sin(n/2),l=Math.sin(r/2);return[s*c*o+a*i*l,s*i*o+a*c*l,a*c*o-s*i*l,a*i*o-s*c*l]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,r=this.v.length;n<r;)t=e[n]*this.mult,mathAbs(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,n,r){var a;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var i=t.k.length;for(this.v=createTypedArray("float32",i),this.pv=createTypedArray("float32",i),this.vel=createTypedArray("float32",i),a=0;a<i;a+=1)this.v[a]=t.k[a]*this.mult,this.pv[a]=t.k[a];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,n,r){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,n,r){var a;this.propType="multidimensional";var i,o,s,c,l=t.k.length;for(a=0;a<l-1;a+=1)t.k[a].to&&t.k[a].s&&t.k[a+1]&&t.k[a+1].s&&(i=t.k[a].s,o=t.k[a+1].s,s=t.k[a].to,c=t.k[a].ti,(2===i.length&&(i[0]!==o[0]||i[1]!==o[1])&&bez.pointOnLine2D(i[0],i[1],o[0],o[1],i[0]+s[0],i[1]+s[1])&&bez.pointOnLine2D(i[0],i[1],o[0],o[1],o[0]+c[0],o[1]+c[1])||3===i.length&&(i[0]!==o[0]||i[1]!==o[1]||i[2]!==o[2])&&bez.pointOnLine3D(i[0],i[1],i[2],o[0],o[1],o[2],i[0]+s[0],i[1]+s[1],i[2]+s[2])&&bez.pointOnLine3D(i[0],i[1],i[2],o[0],o[1],o[2],o[0]+c[0],o[1]+c[1],o[2]+c[2]))&&(t.k[a].to=null,t.k[a].ti=null),i[0]===o[0]&&i[1]===o[1]&&0===s[0]&&0===s[1]&&0===c[0]&&0===c[1]&&(2===i.length||i[2]===o[2]&&0===s[2]&&0===c[2])&&(t.k[a].to=null,t.k[a].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var u=t.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),a=0;a<u;a+=1)this.v[a]=initFrame,this.pv[a]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,n,r,a){var i;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])i=new MultiDimensionalProperty(e,t,r,a);else switch(n){case 0:i=new KeyframedValueProperty(e,t,r,a);break;case 1:i=new KeyframedMultidimensionalProperty(e,t,r,a)}else i=new ValueProperty(e,t,r,a);return i.effectsSequence.length&&a.addDynamicProperty(i),i}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,r,a){var i;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":i=this.v;break;case"i":i=this.i;break;case"o":i=this.o;break;default:i=[]}(!i[r]||i[r]&&!a)&&(i[r]=pointPool.newElement()),i[r][0]=e,i[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,a,i,o,s){this.setXYAt(e,t,"v",o,s),this.setXYAt(n,r,"o",o,s),this.setXYAt(a,i,"i",o,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,a=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),a=1);var i,o=this._length-1,s=this._length;for(i=a;i<s;i+=1)e.setTripleAt(t[o][0],t[o][1],r[o][0],r[o][1],n[o][0],n[o][1],i,!1),o-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,n=e._length;for(t=0;t<n;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,n=factory.newElement(),r=void 0===e._length?e.v.length:e._length;for(n.setLength(r),n.c=e.c,t=0;t<r;t+=1)n.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return n},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,n=e._length;for(t=0;t<n;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,n){var r,a,i,o,s,c,l,u,d,h=n.lastIndex,p=this.keyframes;if(e<p[0].t-this.offsetTime)r=p[0].s[0],i=!0,h=0;else if(e>=p[p.length-1].t-this.offsetTime)r=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],i=!0;else{for(var f,m,v,g=h,y=p.length-1,_=!0;_&&(f=p[g],!((m=p[g+1]).t-this.offsetTime>e));)g<y-1?g+=1:_=!1;if(v=this.keyframesMetadata[g]||{},h=g,!(i=1===f.h)){if(e>=m.t-this.offsetTime)u=1;else if(e<f.t-this.offsetTime)u=0;else{var b;v.__fnct?b=v.__fnct:(b=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,v.__fnct=b),u=b((e-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}a=m.s?m.s[0]:f.e[0]}r=f.s[0]}for(c=t._length,l=r.i[0].length,n.lastIndex=h,o=0;o<c;o+=1)for(s=0;s<l;s+=1)d=i?r.i[o][s]:r.i[o][s]+(a.i[o][s]-r.i[o][s])*u,t.i[o][s]=d,d=i?r.o[o][s]:r.o[o][s]+(a.o[o][s]-r.o[o][s])*u,t.o[o][s]=d,d=i?r.v[o][s]:r.v[o][s]+(a.v[o][s]-r.v[o][s])*u,t.v[o][s]=d}function n(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,a=this._caching.lastFrame;return a!==e&&(a<n&&t<n||a>r&&t>r)||(this._caching.lastIndex=a<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function a(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,r=e._length;for(n=0;n<r;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function o(e,t,n){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var a=3===n?t.pt.k:t.ks.k;this.v=shapePool.clone(a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function c(t,a,i){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===i?a.pt.k:a.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}o.prototype.interpolateShape=t,o.prototype.getValue=i,o.prototype.setVValue=a,o.prototype.addEffect=s,c.prototype.getValue=i,c.prototype.interpolateShape=t,c.prototype.setVValue=a,c.prototype.addEffect=s;var l=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,a=this.s.v[1]/2,i=3!==this.d,o=this.v;o.v[0][0]=t,o.v[0][1]=n-a,o.v[1][0]=i?t+r:t-r,o.v[1][1]=n,o.v[2][0]=t,o.v[2][1]=n+a,o.v[3][0]=i?t-r:t+r,o.v[3][1]=n,o.i[0][0]=i?t-r*e:t+r*e,o.i[0][1]=n-a,o.i[1][0]=i?t+r:t-r,o.i[1][1]=n-a*e,o.i[2][0]=i?t+r*e:t-r*e,o.i[2][1]=n+a,o.i[3][0]=i?t-r:t+r,o.i[3][1]=n+a*e,o.o[0][0]=i?t+r*e:t-r*e,o.o[0][1]=n-a,o.o[1][0]=i?t+r:t-r,o.o[1][1]=n+a*e,o.o[2][0]=i?t-r*e:t+r*e,o.o[2][1]=n+a,o.o[3][0]=i?t-r:t+r,o.o[3][1]=n-a*e}},extendPrototype([DynamicPropertyContainer],t),t}(),u=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Pro
vendor: 4,684 bytes, line 6
6pertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,r,a=2*Math.floor(this.pt.v),i=2*Math.PI/a,o=!0,s=this.or.v,c=this.ir.v,l=this.os.v,u=this.is.v,d=2*Math.PI*s/(2*a),h=2*Math.PI*c/(2*a),p=-Math.PI/2;p+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<a;e+=1){n=o?l:u,r=o?d:h;var m=(t=o?s:c)*Math.cos(p),v=t*Math.sin(p),g=0===m&&0===v?0:v/Math.sqrt(m*m+v*v),y=0===m&&0===v?0:-m/Math.sqrt(m*m+v*v);m+=+this.p.v[0],v+=+this.p.v[1],this.v.setTripleAt(m,v,m-g*r*n*f,v-y*r*n*f,m+g*r*n*f,v+y*r*n*f,e,!0),o=!o,p+=i*f}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,r=this.or.v,a=this.os.v,i=2*Math.PI*r/(4*t),o=.5*-Math.PI,s=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var c=r*Math.cos(o),l=r*Math.sin(o),u=0===c&&0===l?0:l/Math.sqrt(c*c+l*l),d=0===c&&0===l?0:-c/Math.sqrt(c*c+l*l);c+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(c,l,c-u*i*a*s,l-d*i*a*s,c+u*i*a*s,l+d*i*a*s,e,!0),o+=n*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),d=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,a=bmMin(n,r,this.r.v),i=a*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-r+a,e+n,t-r+a,e+n,t-r+i,0,!0),this.v.setTripleAt(e+n,t+r-a,e+n,t+r-i,e+n,t+r-a,1,!0),0!==a?(this.v.setTripleAt(e+n-a,t+r,e+n-a,t+r,e+n-i,t+r,2,!0),this.v.setTripleAt(e-n+a,t+r,e-n+i,t+r,e-n+a,t+r,3,!0),this.v.setTripleAt(e-n,t+r-a,e-n,t+r-a,e-n,t+r-i,4,!0),this.v.setTripleAt(e-n,t-r+a,e-n,t-r+i,e-n,t-r+a,5,!0),this.v.setTripleAt(e-n+a,t-r,e-n+a,t-r,e-n+i,t-r,6,!0),this.v.setTripleAt(e+n-a,t-r,e+n-i,t-r,e+n-a,t-r,7,!0)):(this.v.setTripleAt(e-n,t+r,e-n+i,t+r,e-n,t+r,2),this.v.setTripleAt(e-n,t-r,e-n,t-r+i,e-n,t-r,3))):(this.v.setTripleAt(e+n,t-r+a,e+n,t-r+i,e+n,t-r+a,0,!0),0!==a?(this.v.setTripleAt(e+n-a,t-r,e+n-a,t-r,e+n-i,t-r,1,!0),this.v.setTripleAt(e-n+a,t-r,e-n+i,t-r,e-n+a,t-r,2,!0),this.v.setTripleAt(e-n,t-r+a,e-n,t-r+a,e-n,t-r+i,3,!0),this.v.setTripleAt(e-n,t+r-a,e-n,t+r-i,e-n,t+r-a,4,!0),this.v.setTripleAt(e-n+a,t+r,e-n+a,t+r,e-n+i,t+r,5,!0),this.v.setTripleAt(e+n-a,t+r,e+n-i,t+r,e+n-a,t+r,6,!0),this.v.setTripleAt(e+n,t+r-a,e+n,t+r-a,e+n,t+r-i,7,!0)):(this.v.setTripleAt(e-n,t-r,e-n+i,t-r,e-n,t-r,1,!0),this.v.setTripleAt(e-n,t+r,e-n,t+r-i,e-n,t+r,2,!0),this.v.setTripleAt(e+n,t+r,e+n-i,t+r,e+n,t+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],e),e}(),h={getShapeProp:function(e,t,n){var r;return 3===n||4===n?r=(3===n?t.pt:t.ks).k.length?new c(e,t,n):new o(e,t,n):5===n?r=new d(e,t):6===n?r=new l(e,t):7===n&&(r=new u(e,t)),r.k&&e.addDynamicProperty(r),r},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return c}};return h}(),Matrix=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=Math.round;function a(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function i(n){if(0===n)return this;var r=e(n),a=t(n);return this._t(r,-a,0,0,a,r,0,0,0,0,1,0,0,0,0,1)}function o(n){if(0===n)return this;var r=e(n),a=t(n);return this._t(1,0,0,0,0,r,-a,0,0,a,r,0,0,0,0,1)}
vendor: 9,654 bytes, line 6
6function s(n){if(0===n)return this;var r=e(n),a=t(n);return this._t(r,0,a,0,0,1,0,0,-a,0,r,0,0,0,0,1)}function c(n){if(0===n)return this;var r=e(n),a=t(n);return this._t(r,-a,0,0,a,r,0,0,0,0,1,0,0,0,0,1)}function l(e,t){return this._t(1,t,e,1,0,0)}function u(e,t){return this.shear(n(e),n(t))}function d(r,a){var i=e(a),o=t(a);return this._t(i,o,0,0,-o,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(i,-o,0,0,o,i,0,0,0,0,1,0,0,0,0,1)}function h(e,t,n){return n||0===n||(n=1),1===e&&1===t&&1===n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function p(e,t,n,r,a,i,o,s,c,l,u,d,h,p,f,m){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=r,this.props[4]=a,this.props[5]=i,this.props[6]=o,this.props[7]=s,this.props[8]=c,this.props[9]=l,this.props[10]=u,this.props[11]=d,this.props[12]=h,this.props[13]=p,this.props[14]=f,this.props[15]=m,this}function f(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function m(e,t,n,r,a,i,o,s,c,l,u,d,h,p,f,m){var v=this.props;if(1===e&&0===t&&0===n&&0===r&&0===a&&1===i&&0===o&&0===s&&0===c&&0===l&&1===u&&0===d)return v[12]=v[12]*e+v[15]*h,v[13]=v[13]*i+v[15]*p,v[14]=v[14]*u+v[15]*f,v[15]*=m,this._identityCalculated=!1,this;var g=v[0],y=v[1],_=v[2],b=v[3],w=v[4],S=v[5],C=v[6],E=v[7],x=v[8],A=v[9],k=v[10],T=v[11],L=v[12],I=v[13],D=v[14],P=v[15];return v[0]=g*e+y*a+_*c+b*h,v[1]=g*t+y*i+_*l+b*p,v[2]=g*n+y*o+_*u+b*f,v[3]=g*r+y*s+_*d+b*m,v[4]=w*e+S*a+C*c+E*h,v[5]=w*t+S*i+C*l+E*p,v[6]=w*n+S*o+C*u+E*f,v[7]=w*r+S*s+C*d+E*m,v[8]=x*e+A*a+k*c+T*h,v[9]=x*t+A*i+k*l+T*p,v[10]=x*n+A*o+k*u+T*f,v[11]=x*r+A*s+k*d+T*m,v[12]=L*e+I*a+D*c+P*h,v[13]=L*t+I*i+D*l+P*p,v[14]=L*n+I*o+D*u+P*f,v[15]=L*r+I*s+D*d+P*m,this._identityCalculated=!1,this}function v(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function g(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function _(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function b(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function w(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function S(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function C(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function E(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function x(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,r=-this.props[4]/e,a=this.props[0]/e,i=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=n,s.props[4]=r,s.props[5]=a,s.props[12]=i,s.props[13]=o,s}function A(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function k(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=A(e[t]);return r}function T(e,t,n){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=e[0],r[1]=e[1],r[2]=t[0],r[3]=t[1],r[4]=n[0],r[5]=n[1];else{var a=this.props[0],i=this.props[1],o=this.props[4],s=this.props[5],c=this.props[12],l=this.props[13];r[0]=e[0]*a+e[1]*o+c,r[1]=e[0]*i+e[1]*s+l,r[2]=t[0]*a+t[1]*o+c,r[3]=t[0]*i+t[1]*s+l,r[4]=n[0]*a+n[1]*o+c,r[5]=n[0]*i+n[1]*s+l}return r}function L(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function I(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round(100*(e*n[0]+t*n[4]+n[12]))/100+","+Math.round(100*(e*n[1]+t*n[5]+n[13]))/100}function D(){for(var e=0,t=this.props,n="matrix3d(";e<16;)n+=r(1e4*t[e])/1e4,n+=15===e?")":",",e+=1;return n}function P(e){return e<1e-6&&e>0||e>-1e-6&&e<0?r(1e4*e)/1e4:e}function O(){var e=this.props;return"matrix("+P(e[0])+","+P(e[1])+","+P(e[4])+","+P(e[5])+","+P(e[12])+","+P(e[13])+")"}return function(){this.reset=a,this.rotate=i,this.rotateX=o,this.rotateY=s,this.rotateZ=c,this.skew=u,this.skewFromAxis=d,this.shear=l,this.scale=h,this.setTransform=p,this.translate=f,this.transform=m,this.multiply=v,this.applyToPoint=w,this.applyToX=S,this.applyToY=C,this.applyToZ=E,this.applyToPointArray=L,this.applyToTriplePoints=T,this.applyToPointStringified=I,this.toCSS=D,this.to2dCSS=O,this.clone=_,this.cloneFromProps=b,this.equals=y,this.inversePoints=k,this.inversePoint=A,this.getInverseMatrix=x,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="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},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,n){t[e]||(t[e]=n)},e.getModifier=function(e,n,r){return new t[e](n,r)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=Pro
vendor: 5,993 bytes, line 6
6pertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,r,a){var i=[];t<=1?i.push({s:e,e:t}):e>=1?i.push({s:e-1,e:t-1}):(i.push({s:e,e:1}),i.push({s:0,e:t-1}));var o,s,c=[],l=i.length;for(o=0;o<l;o+=1){var u,d;(s=i[o]).e*a<r||s.s*a>r+n||(u=s.s*a<=r?0:(s.s*a-r)/n,d=s.e*a>=r+n?1:(s.e*a-r)/n,c.push([u,d]))}return c.length||c.push([0,0]),c},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n,r,a;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),(t=this.s.v>1?1+i:this.s.v<0?0+i:this.s.v+i)>(n=this.e.v>1?1+i:this.e.v<0?0+i:this.e.v+i)){var o=t;t=n,n=o}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var s,c,l,u,d,h=this.shapes.length,p=0;if(n===t)for(a=0;a<h;a+=1)this.shapes[a].localShapeCollection.releaseShapes(),this.shapes[a].shape._mdf=!0,this.shapes[a].shape.paths=this.shapes[a].localShapeCollection,this._mdf&&(this.shapes[a].pathsData.length=0);else if(1===n&&0===t||0===n&&1===t){if(this._mdf)for(a=0;a<h;a+=1)this.shapes[a].pathsData.length=0,this.shapes[a].shape._mdf=!0}else{var f,m,v=[];for(a=0;a<h;a+=1)if((f=this.shapes[a]).shape._mdf||this._mdf||e||2===this.m){if(c=(r=f.shape.paths)._length,d=0,!f.shape._mdf&&f.pathsData.length)d=f.totalShapeLength;else{for(l=this.releasePathsData(f.pathsData),s=0;s<c;s+=1)u=bez.getSegmentsLength(r.shapes[s]),l.push(u),d+=u.totalLength;f.totalShapeLength=d,f.pathsData=l}p+=d,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var g,y=t,_=n,b=0;for(a=h-1;a>=0;a-=1)if((f=this.shapes[a]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&h>1?(g=this.calculateShapeEdges(t,n,f.totalShapeLength,b,p),b+=f.totalShapeLength):g=[[y,_]],c=g.length,s=0;s<c;s+=1){y=g[s][0],_=g[s][1],v.length=0,_<=1?v.push({s:f.totalShapeLength*y,e:f.totalShapeLength*_}):y>=1?v.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(_-1)}):(v.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),v.push({s:0,e:f.totalShapeLength*(_-1)}));var w=this.addShapes(f,v[0]);if(v[0].s!==v[0].e){if(v.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var S=w.pop();this.addPaths(w,m),w=this.addShapes(f,v[1],S)}else this.addPaths(w,m),w=this.addShapes(f,v[1]);this.addPaths(w,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,r,a,i,o){a.setXYAt(t[0],t[1],"o",i),a.setXYAt(n[0],n[1],"i",i+1),o&&a.setXYAt(e[0],e[1],"v",i),a.setXYAt(r[0],r[1],"v",i+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var r,a,i,o,s,c,l,u,d=e.pathsData,h=e.shape.paths.shapes,p=e.shape.paths._length,f=0,m=[],v=!0;for(n?(s=n._length,u=n._length):(n=shapePool.newElement(),s=0,u=0),m.push(n),r=0;r<p;r+=1){for(c=d[r].lengths,n.c=h[r].c,i=h[r].c?c.length:c.length+1,a=1;a<i;a+=1)if(f+(o=c[a-1]).addedLength<t.s)f+=o.addedLength,n.c=!1;else{if(f>t.e){n.c=!1;break}t.s<=f&&t.e>=f+o.addedLength?(this.addSegment(h[r].v[a-1],h[r].o[a-1],h[r].i[a],h[r].v[a],n,s,v),v=!1):(l=bez.getNewSegment(h[r].v[a-1],h[r].v[a],h[r].o[a-1],h[r].i[a],(t.s-f)/o.addedLength,(t.e-f)/o.addedLength,c[a-1]),this.addSegmentFromArray(l,n,s,v),v=!1,n.c=!1),f+=o.addedLength,s+=1}if(h[r].c&&c.length){if(o=c[a-1],f<=t.e){var g=c[a-1].addedLength;t.s<=f&&t.e>=f+g?(this.addSegment(h[r].v[a-1],h[r].o[a-1],h[r].i[0],h[r].v[0],n,s,v),v=!1):(l=bez.getNewSegment(h[r].v[a-1],h[r].v[0],h[r].o[a-1],h[r].i[0],(t.s-f)/g,(t.e-f)/g,c[a-1]),this.addSegmentFromArray(l,n,s,v),v=!1,n.c=!1)}else n.c=!1;f+=o.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[u][0],n.v[u][1],"i",u),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),f>t.e)break;r<p-1&&(n=shapePool.newElement(),v=!0,m.push(n),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,r=[0,0],a=e._length,i=0;for(i=0;i<a;i+=1)r[0]+=e.v[i][0],r[1]+=e.v[i][1];r[0]/=a,r[1]/=a;var o,s,c,l,u,d,h=shapePool.newElement();for(h.c=e.c,i=0;i<a;i+=1)o=e.v[i][0]+(r[0]-e.v[i][0])*n,s=e.v[i][1]+(r[1]-e.v[i][1])*n,c=e.o[i][0]+(r[0]-e.o[i][0])*-n,l=e.o[i][1]+(r[1]-e.o[i][1])*-n,u=e.i[i][0]+(r[0]-e.i[i][0])*-n,d=e.i[i][1]+(r[1]-e.i[i][1])*-n,h.setTripleAt(o,s,c,l,u,d,i);return h},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,r,a,i,o,s=this.shapes.length,c=this.amount.v;if(0!==c)for(n=0;n<s;n+=1){if(o=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||e)for(o.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,a=i.shape.paths._length,r=0;r<a;r+=1)o.addShape(this.processPath(t[r],c));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]}
vendor: 40,304 bytes, line 6
6,1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var r,a=t.or.k.length;for(r=0;r<a;r+=1)t.or.k[r].to=null,t.or.k[r].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,a;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),a=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),a=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,a=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],a=[];var i=this.px,o=this.py;i._caching.lastFrame+i.offsetTime<=i.keyframes[0].t?(r[0]=i.getValueAtTime((i.keyframes[0].t+.01)/n,0),r[1]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),a[0]=i.getValueAtTime(i.keyframes[0].t/n,0),a[1]=o.getValueAtTime(o.keyframes[0].t/n,0)):i._caching.lastFrame+i.offsetTime>=i.keyframes[i.keyframes.length-1].t?(r[0]=i.getValueAtTime(i.keyframes[i.keyframes.length-1].t/n,0),r[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),a[0]=i.getValueAtTime((i.keyframes[i.keyframes.length-1].t-.01)/n,0),a[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0)):(r=[i.pv,o.pv],a[0]=i.getValueAtTime((i._caching.lastFrame+i.offsetTime-.01)/n,i.offsetTime),a[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime))}else r=a=e;this.v.rotate(-Math.atan2(r[1]-a[1],r[0]-a[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,n,r){return new t(e,n,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(0===e)return[];var r=t*t-4*e*n;if(r<0)return[];var a=-t/(2*e);if(0===r)return[a];var i=Math.sqrt(r)/(2*e);return[a-i,a+i]}function polynomialCoefficients(e,t,n,r){return[3*t-e-3*n+r,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,r,a){a&&pointEqual(e,t)&&(t=lerpPoint(e,r,1/3)),a&&pointEqual(n,r)&&(n=lerpPoint(e,r,2/3));var i=polynomialCoefficients(e[0],t[0],n[0],r[0]),o=polynomialCoefficients(e[1],t[1],n[1],r[1]);this.a=[i[0],o[0]],this.b=[i[1],o[1]],this.c=[i[2],o[2]],this.d=[i[3],o[3]],this.points=[e,t,n,r]}function extrema(e,t){var n=e.points[0][t],r=e.points[e.points.length-1][t];if(n>r){var a=r;r=n,n=a}for(var i=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),o=0;o<i.length;o+=1)if(i[o]>0&&i[o]<1){var s=e.point(i[o])[t];s<n?n=s:s>r&&(r=s)}return{min:n,max:r}}function intersectData(e,t,n){var r=e.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,n,r,a,i){if(boxIntersect(e,t))if(n>=i||e.width<=r&&e.height<=r&&t.width<=r&&t.height<=r)a.push([e.t,t.t]);else{var o=splitData(e),s=splitData(t);intersectsImpl(o[0],s[0],n+1,r,a,i),intersectsImpl(o[0],s[1],n+1,r,a,i),intersectsImpl(o[1],s[0],n+1,r,a,i),intersectsImpl(o[1],s[1],n+1,r,a,i)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,n,r){var a=[e[0],e[1],1],i=[t[0],t[1],1],o=[n[0],n[1],1],s=[r[0],r[1],1],c=crossProduct(crossProduct(a,i),crossProduct(o,s));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,n,r,a,i,o){var s=n-Math.PI/2,c=n+Math.PI/2,l=t[0]+Math.cos(n)*r*a,u=t[1]-Math.sin(n)*r*a;e.setTripleAt(l,u,l+Math.cos(s)*i,u-Math.sin(s)*i,l+Math.cos(c)*o,u-Math.sin(c)*o,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function getProjectingAngle(e,t){var n=0===t?e.length()-1:t-1,r=(t+1)%e.length(),a=getPerpendicularVector(e.v[n],e.v[r]);return Math.atan2(0,1)-Math.atan2(a[1],a[0])}function zigZagCorner(e,t,n,r,a,i,o){var s=getProjectingAngle(t,n),c=t.v[n%t._length],l=t.v[0===n?t._length-1:n-1],u=t.v[(n+1)%t._length],d=2===i?Math.sqrt(Math.pow(c[0]-l[0],2)+Math.pow(c[1]-l[1],2)):0,h=2===i?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0;setPoint(e,t.v[n%t._length],s,o,r,h/(2*(a+1)),d/(2*(a+1)),i)}function zigZagSegment(e,t,n,r,a,i){for(var o=0;o<r;o+=1){var s=(o+1)/(r+1),c=2===a?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,l=t.normalAngle(s);setPoint(e,t.point(s),l,i,n,c/(2*(r+1)),c/(2*(r+1)),a),i=-i}return i}function linearOffset(e,t,n){var r=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,r,n),polarOffset(t,r,n)]}function offsetSegment(e,t){var n,r,a,i,o,s,c;n=(c=linearOffset(e.points[0],e.points[1],t))[0],r=c[1],a=(c=linearOffset(e.points[1],e.points[2],t))[0],i=c[1],o=(c=linearOffset(e.points[2],e.points[3],t))[0],s=c[1];var l=lineIntersection(n,r,a,i);null===l&&(l=r);var u=lineIntersection(o,s,a,i);return null===u&&(u=o),new PolynomialBezier(n,l,u,s)}function joinLines(e,t,n,r,a){var i=t.points[3],o=n.points[0];if(3===r)return i;if(pointEqual(i,o))return i;if(2===r){var s=-t.tangentAngle(1),c=-n.tangentAngle(0)+Math.PI,l=lineIntersection(i,polarOffset(i,s+Math.PI/2,100),o,polarOffset(o,s+Math.PI/2,100)),u=l?pointDistance(l,i):pointDistance(i,o)/2,d=polarOffset(i,s,2*u*roundCorner);return e.setXYAt(d[0],d[1],"o",e.length()-1),d=polarOffset(o,c,2*u*roundCorner),e.setTripleAt(o[0],o[1],o[0],o[1],d[0],d[1],e.length()),o}var h=lineIntersection(pointEqual(i,t.points[2])?t.points[0]:t.points[2],i,o,pointEqual(o,n.points[1])?n.points[3]:n.points[1]);return h&&pointDistance(h,i)<a?(e.setTripleAt(h[0],h[1],h[0],h[1],h[0],h[1],e.length()),h):i}function getIntersection(e,t){var n=e.intersections(t);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,t){var n=e.slice(),r=t.slice(),a=getIntersection(e[e.length-1],t[0]);return a&&(n[e.length-1]=e[e.length-1].split(a[0])[0],r[0]=t[0].split(a[1])[1]),e.length>1&&t.length>1&&(a=getIntersection(e[0],t[t.length-1]))?[[e[0].split(a[0])[0]],[t[t.length-1].split(a[1])[1]]]:[n,r]}function pruneIntersections(e){for(var t,n=1;n<e.length;n+=1)t=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var n,r,a,i,o=e.inflectionPoints();if(0===o.length)return[offsetSegment(e,t)];if(1===o.length||floatEqual(o[1],1))return n=(a=e.split(o[0]))[0],r=a[1],[offsetSegment(n,t),offsetSegment(r,t)];n=(a=e.split(o[0]))[0];var s=(o[1]-o[0])/(1-o[0]);return i=(a=a[1].split(s))[0],r=a[1],[offsetSegment(n,t),offsetSegment(i,t),offsetSegment(r,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",a=t.length,i=0;i<a;i+=1)switch(t[i].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:e.fWeight||n}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,r,a,i){var o=i?-1:1,s=r.s.v[0]+(1-r.s.v[0])*(1-a),c=r.s.v[1]+(1-r.s.v[1])*(1-a);e.translate(r.p.v[0]*o*a,r.p.v[1]*o*a,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*o*a),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(i?1/s:s,i?1/c:c),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,r,a,i,o=!1;if(this._mdf||e){var s,c=Math.ceil(this.c.v);if(this._groups.length<c){for(;this._groups.length<c;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(i=0,r=0;r<=this._groups.length-1;r+=1){if(s=i<c,this._groups[r]._render=s,this.changeGroupRender(this._groups[r].it,s),!s){var u=this.elemsData[r].it,d=u[u.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}i+=1}this._currentCopies=c;var h=this.o.v,p=h%1,f=h>0?Math.floor(h):Math.ceil(h),m=this.pMatrix.props,v=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,_,b=0;if(h>0){for(;b<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),b+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),b+=p)}else if(h<0){for(;b>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),b-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),b-=p)}for(r=1===this.data.m?0:this._currentCopies-1,a=1===this.data.m?1:-1,i=this._currentCopies;i;){if(_=(n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==b){for((0!==r&&1===a||r!==this._currentCopies-1&&-1===a)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),y=0;y<_;y+=1)n[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<_;y+=1)n[y]=this.matrix.props[y];b+=1,i-=1,r+=a}}else for(i=this._currentCopies,r=0,a=1;i;)n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,i-=1,r+=a;return o},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n,r=shapePool.newElement();r.c=e.c;var a,i,o,s,c,l,u,d,h,p,f,m,v=e._length,g=0;for(n=0;n<v;n+=1)a=e.v[n],o=e.o[n],i=e.i[n],a[0]===o[0]&&a[1]===o[1]&&a[0]===i[0]&&a[1]===i[1]?0!==n&&n!==v-1||e.c?(s=0===n?e.v[v-1]:e.v[n-1],l=(c=Math.sqrt(Math.pow(a[0]-s[0],2)+Math.pow(a[1]-s[1],2)))?Math.min(c/2,t)/c:0,u=f=a[0]+(s[0]-a[0])*l,d=m=a[1]-(a[1]-s[1])*l,h=u-(u-a[0])*roundCorner,p=d-(d-a[1])*roundCorner,r.setTripleAt(u,d,h,p,f,m,g),g+=1,s=n===v-1?e.v[0]:e.v[n+1],l=(c=Math.sqrt(Math.pow(a[0]-s[0],2)+Math.pow(a[1]-s[1],2)))?Math.min(c/2,t)/c:0,u=h=a[0]+(s[0]-a[0])*l,d=p=a[1]+(s[1]-a[1])*l,f=u-(u-a[0])*roundCorner,m=d-(d-a[1])*roundCorner,r.setTripleAt(u,d,h,p,f,m,g),g+=1):(r.setTripleAt(a[0],a[1],o[0],o[1],i[0],i[1],g),g+=1):(r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],g),g+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,n,r,a,i,o,s=this.shapes.length,c=this.rd.v;if(0!==c)for(n=0;n<s;n+=1){if(o=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||e)for(o.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,a=i.shape.paths._length,r=0;r<a;r+=1)o.addShape(this.processPath(t[r],c));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var r=Math.sqrt(n);return floatZero(r)?r>0&&r<1?[t]:[]:[t-r,t+r].filter((function(e){return e>0&&e<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),r=lerpPoint(this.points[2],this.points[3],e),a=lerpPoint(t,n,e),i=lerpPoint(n,r,e),o=lerpPoint(a,i,e);return[new PolynomialBezier(this.points[0],t,a,o,!0),new PolynomialBezier(o,i,r,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,n){void 0===t&&(t=2),void 0===n&&(n=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,r,n),r},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,n,r){var a=e._length,i=shapePool.newElement();if(i.c=e.c,e.c||(a-=1),0===a)return i;var o=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(i,e,0,t,n,r,o);for(var c=0;c<a;c+=1)o=zigZagSegment(i,s,t,n,r,-o),s=c!==a-1||e.c?PolynomialBezier.shapeSegment(e,(c+1)%a):null,zigZagCorner(i,e,c+1,t,n,r,o);return i},ZigZagModifier.prototype.processShapes=function(e){var t,n,r,a,i,o,s=this.shapes.length,c=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(0!==c)for(n=0;n<s;n+=1){if(o=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||e)for(o.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,a=i.shape.paths._length,r=0;r<a;r+=1)o.addShape(this.processPath(t[r],c,l,u));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,n,r){var a=shapePool.newElement();a.c=e.c;var i,o,s,c=e.length();e.c||(c-=1);var l=[];for(i=0;i<c;i+=1)s=PolynomialBezier.shapeSegment(e,i),l.push(offsetSegmentSplit(s,t));if(!e.c)for(i=c-1;i>=0;i-=1)s=PolynomialBezier.shapeSegmentInverted(e,i),l.push(offsetSegmentSplit(s,t));l=pruneIntersections(l);var u=null,d=null;for(i=0;i<l.length;i+=1){var h=l[i];for(d&&(u=joinLines(a,d,h[0],n,r)),d=h[h.length-1],o=0;o<h.length;o+=1)s=h[o],u&&pointEqual(s.points[0],u)?a.setXYAt(s.points[1][0],s.points[1][1],"o",a.length()-1):a.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],a.length()),a.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],a.length()),u=s.points[3]}return l.length&&joinLines(a,d,l[0][0],n,r),a},OffsetPathModifier.prototype.processShapes=function(e){var t,n,r,a,i,o,s=this.shapes.length,c=this.amount.v,l=this.miterLimit.v,u=this.lineJoin;if(0!==c)for(n=0;n<s;n+=1){if(o=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||e)for(o.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,a=i.shape.paths._length,r=0;r<a;r+=1)o.addShape(this.processPath(t[r],c,u,l));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=127988,r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function a(e,t){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var r=createTag("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var a=r.offsetWidth;return r.style.fontFamily=function(e){var t,n=e.split(","),r=n.length,a=[];for(t=0;t<r;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&a.push(n[t]);return a.join(",")}(e)+", "+t,{node:r,w:a,parent:n}}function i(e,t){var n,r=document.body&&t?"svg":"canvas",a=getFontProperties(e);if("svg"===r){var i=createNS("text");i.style.fontSize="100px",i.setAttribute("font-family",e.fFamily),i.setAttribute("font-style",a.style),i.setAttribute("font-weight",a.weight),i.textContent="1",e.fClass?(i.style.fontFamily="inherit",i.setAttribute("class",e.fClass)):i.style.fontFamily=e.fFamily,t.appendChild(i),n=i}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=a.style+" "+a.weight+" 100px "+e.fFamily,n=o}return{measureText:function(e){return"svg"===r?(n.textContent=e,n.getComputedTextLength()):n.measureText(e).width}}}function o(e){var t=0,n=e.charCodeAt(0);if(n>=55296&&n<=56319){var r=e.charCodeAt(1);r>=56320&&r<=57343&&(t=1024*(n-55296)+r-56320+65536)}return t}function s(e){var t=o(e);return t>=127462&&t<=127487}var c=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};c.isModifier=function(e,t){var n=e.toString(16)+t.toString(16);return-1!==r.indexOf(n)},c.isZeroWidthJoiner=function(e){return 8205===e},c.isFlagEmoji=function(e){return s(e.substr(0,2))&&s(e.substr(2,2))},c.isRegionalCode=s,c.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},c.isRegionalFlag=function(e,t){var r=o(e.substr(t,2));if(r!==n)return!1;var a=0;for(t+=2;a<5;){if((r=o(e.substr(t,2)))<917601||r>917626)return!1;a+=1,t+=2}return 917631===o(e.substr(t,2))},c.isVariationSelector=function(e){return 65039===e},c.BLACK_FLAG_CODE_POINT=n;var l={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var n,r,a=e.length,i=this.chars.length;for(t=0;t<a;t+=1){for(n=0,r=!1;n<i;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(r=!0),n+=1;r||(this.chars.push(e[t]),i+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=i(e),e.cache={}})),void(this.fonts=e.list);var n,r=e.list,o=r.length,s=o;for(n=0;n<o;n+=1){var c,l,u=!0;if(r[n].loaded=!1,r[n].monoCase=a(r[n].fFamily,"monospace"),r[n].sansCase=a(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((c=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(u=!1),u){var d=createTag("style");d.setAttribute("f-forigin",r[n].fOrigin),d.setAttribute("f-origin",r[n].origin),d.setAttribute("f-family",r[n].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",t.appendChild(d)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(c=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l<c.length;l+=1)-1!==c[l].href.indexOf(r[n].fPath)&&(u=!1);if(u){var h=createTag("link");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.type="text/css",h.rel="stylesheet",h.href=r[n].fPath,document.body.appendChild(h)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(c=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),l=0;l<c.length;l+=1)r[n].fPath===c[l].src&&(u=!1);if(u){var p=createTag("link");p.setAttribute("f-forigin",r[n].fOrigin),p.setAttribute("f-origin",r[n].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",r[n].fPath),t.appendChild(p)}}}else r[n].loaded=!0,s-=1;r[n].helper=i(r[n],t),r[n].cache={},this.fonts.push(r[n])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,n,r){for(var a=0,i=this.chars.length;a<i;){if(this.chars[a].ch===t&&this.chars[a].style===n&&this.chars[a].fFamily===r)return this.chars[a];a+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,n,r)),e},getFontByName:function(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,n){var r=this.getFontByName(t),a=e;if(!r.cache[a]){var i=r.helper;if(" "===e){var o=i.measureText("|"+e+"|"),s=i.measureText("||");r.cache[a]=(o-s)/100}else r.cache[a]=i.measureText(e)/100}return r.cache[a]*n},checkLoadedFonts:function(){var e,t,n,r=this.fonts.length,a=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?a-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,n=this.fonts[e].monoCase.w,t.offsetWidth!==n?(a-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,n=this.fonts[e].sansCase.w,t.offsetWidth!==n&&(a-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==a&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return c.prototype=l,c}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n,r=e.ef||[];this.effectElements=[];var a,i=r.length;for(n=0;n<i;n+=1)a=new GroupEffect(r[n],t),this.effectElements.push(a)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,a=this.data.ef.length,i=this.data.ef;for(n=0;n<a;n+=1){switch(r=null,i[n].ty){case 0:r=new SliderEffect(i[n],t,this);break;case 1:r=new AngleEffect(i[n],t,this);break;case 2:r=new ColorEffect(i[n],t,this);break;case 3:r=new PointEffect(i[n],t,this);break;case 4:case 7:r=new CheckboxEffect(i[n],t,this);break;case 10:r=new LayerIndexEffect(i[n],t,this);break;case 11:r=new MaskIndexEffect(i[n],t,this);break;case 5:r=new EffectsManager(i[n],t,this);break;default:r=new NoValueEffect(i[n],t,this)}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),n=e("effects"),r=e("shape"),a=e("text"),i=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),0===this.data.ty||this.data.xt?this.compInterface=i(this):4===this.data.ty?(this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=a(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var n,r=e.length,a=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<a;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var r=this.elements,a=this.layers,i=0,o=a.length;i<o;)a[i].ind==t&&(r[i]&&!0!==r[i]?(n.push(r[i]),r[i].setAsParent(),void 0!==a[i].parent?this.buildElementParenting(e,a[i].parent,n):e.setHierarchy(n)):(this.buildItem(i),this.addPendingElement(e))),i+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,n=e.shift();if("number"==typeof n)t=this.elements[n];else{var r,a=this.elements.length;for(r=0;r<a;r+=1)if(this.elements[r].data.nm===n){t=this.elements[r];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,a,i=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,c,l,u,d,h,p=this.masksProperties,f=0,m=[],v=createElementID(),g="clipPath",y="clip-path";
vendor: 12,313 bytes, line 6
6for(r=0;r<o;r+=1)if(("a"!==p[r].mode&&"n"!==p[r].mode||p[r].inv||100!==p[r].o.k||p[r].o.x)&&(g="mask",y="mask"),"s"!==p[r].mode&&"i"!==p[r].mode||0!==f?l=null:((l=createNS("rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",this.element.comp.data.w||0),l.setAttribute("height",this.element.comp.data.h||0),m.push(l)),a=createNS("path"),"n"===p[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,p[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[r],3),elem:a,lastPath:""},i.appendChild(a);else{var _;if(f+=1,a.setAttribute("fill","s"===p[r].mode?"#000000":"#ffffff"),a.setAttribute("clip-rule","nonzero"),0!==p[r].x.k?(g="mask",y="mask",h=PropertyFactory.getProp(this.element,p[r].x,0,null,this.element),_=createElementID(),(u=createNS("filter")).setAttribute("id",_),(d=createNS("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),u.appendChild(d),i.appendChild(u),a.setAttribute("stroke","s"===p[r].mode?"#000000":"#ffffff")):(d=null,h=null),this.storedData[r]={elem:a,x:h,expan:d,lastPath:"",lastOperator:"",filterId:_,lastRadius:0},"i"===p[r].mode){c=m.length;var b=createNS("g");for(s=0;s<c;s+=1)b.appendChild(m[s]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",v+"_"+f),w.appendChild(a),i.appendChild(w),b.setAttribute("mask","url("+getLocationHref()+"#"+v+"_"+f+")"),m.length=0,m.push(b)}else m.push(a);p[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:a,lastPath:"",op:PropertyFactory.getProp(this.element,p[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[r],3),invRect:l},this.viewData[r].prop.k||this.drawPath(p[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(g),o=m.length,r=0;r<o;r+=1)this.maskElement.appendChild(m[r]);f>0&&(this.maskElement.setAttribute("id",v),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+v+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<r;n+=1)t.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),e=1;e<t;e+=1){var r=this.localTransforms[e].matrix;n.multiply(r)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var a=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)a*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=a}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,n=e.length;for(t=0;t<n;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,r=!0,a=this.comp;r;)a.finalTransform?(a.data.hasMask&&t.splice(0,0,a.finalTransform),a=a.comp):r=!1;var i,o=t.length;for(n=0;n<o;n+=1)i=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-i[0],e[1]-i[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(t=0;t<r;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var a=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),a.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,n){var r,a,i=" M"+t.v[0][0]+","+t.v[0][1];for(a=t._length,r=1;r<a;r+=1)i+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[r][0]+","+t.i[r][1]+" "+t.v[r][0]+","+t.v[r][1];if(t.c&&a>1&&(i+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==i){var o="";n.elem&&(t.c&&(o=e.inv?this.solidPath+i:i),n.elem.setAttribute("d",o)),n.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var n=createNS("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,n,r="SourceGraphic",a=e.data.ef?e.data.ef.length:0,i=createElementID(),o=filtersFactory.createFilter(i,!0),s=0;for(this.filters=[],t=0;t<a;t+=1){n=null;var c=e.data.ef[t].ty;registeredEffects$1[c]&&(n=new(0,registeredEffects$1[c].effect)(o,e.effectsManager.effectElements[t],e,idPrefix+s,r),r=idPrefix+s,registeredEffects$1[c].countsAsEffect&&(s+=1)),n&&this.filters.push(n)}s&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+i+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,n){registeredEffects$1[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var n=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var a=createElementID();if(n.setAttribute("id",a),n.appendChild(r),this.globalData.defs.appendChild(n),this.checkMasks()){var i=createNS("g");i.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),i.appendChild(this.layerElement),this.transformedElement=i,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,n,r,a,i=this.layerId+"_"+e;if(1===e||3===e){var o=createNS("mask");o.setAttribute("id",i),o.setAttribute("mask-type",3===e?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(r),this.globalData.defs.appendChild(o),featureSupport.maskType||1!==e||(o.setAttribute("mask-type","luminance"),t=createElementID(),n=filtersFactory.createFilter(t),this.globalData.defs.appendChild(n),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(a=createNS("g")).appendChild(r),o.appendChild(a),a.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",i),s.setAttribute("mask-type","alpha");var c=createNS("g");s.appendChild(c),t=createElementID(),n=filtersFactory.createFilter(t);var l=createNS("feComponentTransfer");l.setAttribute("in","SourceGraphic"),n.appendChild(l);var u=createNS("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),l.appendChild(u),this.globalData.defs.appendChild(n);var d=createNS("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("op
6acity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),c.appendChild(d),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(r),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),a=createNS("g"),c.appendChild(d),a.appendChild(this.layerElement),c.appendChild(a)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=i}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n<r;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===e)return void(n[r].pos=t);n.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,a=e.length;r<a;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,n,r){var a;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var i,o=t.length||0;for(a=0;a<o;a+=1)i=PropertyFactory.getProp(e,t[a].v,0,0,this),this.k=i.k||this.k,this.dataProps[a]={n:t[a].n,p:i};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var r=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,r,a=4*this.data.p;for(t=0;t<a;t+=1)n=t%4==0?100:255,r=Math.round(this.prop.v[t]*n),this.c[t]!==r&&(this.c[t]=r,this._cmdf=!e);if(this.o.length)for(a=this.prop.v.length,t=4*this.data.p;t<a;t+=1)n=t%2==0?100:1,r=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==r&&(this.o[t-4*this.data.p]=r,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=Pro
vendor: 2,676 bytes, line 6
6pertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),r=createNS(1===t.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var a,i,o,s=[];for(o=4*t.g.p,i=0;i<o;i+=4)a=createNS("stop"),r.appendChild(a),s.push(a);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=r,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,a,i=createNS("mask"),o=createNS("path");i.appendChild(o);var s=createElementID(),c=createElementID();i.setAttribute("id",c);var l=createNS(1===e.t?"linearGradient":"radialGradient");l.setAttribute("id",s),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse"),a=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var u=this.stops;for(r=4*e.g.p;r<a;r+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),l.appendChild(n),u.push(n);o.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=l,this.ms=i,this.ost=u,this.maskId=c,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,n,r){if(0===t)return"";var a,i=e.o,o=e.i,s=e.v,c=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(a=1;a<t;a+=1)c+=" C"+r.applyToPointStringified(i[a-1][0],i[a-1][1])+" "+r.applyToPointStringified(o[a][0],o[a][1])+" "+r.applyToPointStringified(s[a][0],s[a][1]);return n&&t&&(c+=" C"+r.applyToPointStringified(i[a-1][0],i[a-1][1])+" "+r.applyToPointStringified(o[0][0],o[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),c+="z"),c},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function n(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function r(){}function a(n,r,a){var i,o,s,c,l,u,d,h,p,f,m=r.styles.length,v=r.lvl;for(u=0;
vendor: 5,818 bytes, line 6
6u<m;u+=1){if(c=r.sh._mdf||a,r.styles[u].lvl<v){for(h=t.reset(),p=v-r.styles[u].lvl,f=r.transformers.length-1;!c&&p>0;)c=r.transformers[f].mProps._mdf||c,p-=1,f-=1;if(c)for(p=v-r.styles[u].lvl,f=r.transformers.length-1;p>0;)h.multiply(r.transformers[f].mProps.v),p-=1,f-=1}else h=e;if(o=(d=r.sh.paths)._length,c){for(s="",i=0;i<o;i+=1)(l=d.shapes[i])&&l._length&&(s+=buildShapeString(l,l._length,l.c,h));r.caches[u]=s}else s=r.caches[u];r.styles[u].d+=!0===n.hd?"":s,r.styles[u]._mdf=c||r.styles[u]._mdf}}function i(e,t,n){var r=t.style;(t.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",t.o.v)}function o(e,t,n){s(e,t,n),c(0,t,n)}function s(e,t,n){var r,a,i,o,s,c=t.gf,l=t.g._hasOpacity,u=t.s.v,d=t.e.v;if(t.o._mdf||n){var h="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(h,t.o.v)}if(t.s._mdf||n){var p=1===e.t?"x1":"cx",f="x1"===p?"y1":"cy";c.setAttribute(p,u[0]),c.setAttribute(f,u[1]),l&&!t.g._collapsable&&(t.of.setAttribute(p,u[0]),t.of.setAttribute(f,u[1]))}if(t.g._cmdf||n){r=t.cst;var m=t.g.c;for(i=r.length,a=0;a<i;a+=1)(o=r[a]).setAttribute("offset",m[4*a]+"%"),o.setAttribute("stop-color","rgb("+m[4*a+1]+","+m[4*a+2]+","+m[4*a+3]+")")}if(l&&(t.g._omdf||n)){var v=t.g.o;for(i=(r=t.g._collapsable?t.cst:t.ost).length,a=0;a<i;a+=1)o=r[a],t.g._collapsable||o.setAttribute("offset",v[2*a]+"%"),o.setAttribute("stop-opacity",v[2*a+1])}if(1===e.t)(t.e._mdf||n)&&(c.setAttribute("x2",d[0]),c.setAttribute("y2",d[1]),l&&!t.g._collapsable&&(t.of.setAttribute("x2",d[0]),t.of.setAttribute("y2",d[1])));else if((t.s._mdf||t.e._mdf||n)&&(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)),c.setAttribute("r",s),l&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.e._mdf||t.h._mdf||t.a._mdf||n){s||(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)));var g=Math.atan2(d[1]-u[1],d[0]-u[0]),y=t.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var _=s*y,b=Math.cos(g+t.a.v)*_+u[0],w=Math.sin(g+t.a.v)*_+u[1];c.setAttribute("fx",b),c.setAttribute("fy",w),l&&!t.g._collapsable&&(t.of.setAttribute("fx",b),t.of.setAttribute("fy",w))}}function c(e,t,n){var r=t.style,a=t.d;a&&(a._mdf||n)&&a.dashStr&&(r.pElem.setAttribute("stroke-dasharray",a.dashStr),r.pElem.setAttribute("stroke-dashoffset",a.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return i;case"gf":return s;case"gs":return o;case"st":return c;case"sh":case"el":case"rc":case"sr":return a;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function LetterProps(e,t,n,r,a,i){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=a,this.p=i,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,n,r,a=this.shapes.length,i=this.stylesList.length,o=[],s=!1;for(n=0;n<i;n+=1){for(r=this.stylesList[n],s=!1,o.length=0,e=0;e<a;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(r)&&(o.push(t),s=t._isAnimated||s);o.length>1&&s&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,r=new SVGStyleData(e,t),a=r.pElem;return"st"===e.ty?n=new SVGStrokeStyleData(this,e,r):"fl"===e.ty?n=new SVGFillStyleData(this,e,r):"gf"===e.ty||"gs"===e.ty?(n=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),a.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):"no"===e.ty&&(n=new SVGNoStyleData(this,e,r)),"st"!==e.ty&&"gs"!==e.ty||(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),a.setAttribute("fill-opacity","0"),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&a.setAttribute("fill-rule","evenodd"),e.ln&&a.setAttribute("id",e.ln),e.cl&&a.setAttribute("class",e.cl),e.bm&&(a.style["mix-blend-mode"]=getBlendM
vendor: 31,616 bytes, line 6
6ode(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),r=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var r=4;"rc"===e.ty?r=5:"el"===e.ty?r=6:"sr"===e.ty&&(r=7);var a=new SVGShapeData(t,n,ShapePropertyFactory.getShapeProp(this,e,r,this));return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,n=e.styles,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||n.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,r,a,i,o){var s,c,l,u,d,h,p=[].concat(i),f=e.length-1,m=[],v=[];for(s=f;s>=0;s-=1){if((h=this.searchProcessedElement(e[s]))?t[s]=n[h-1]:e[s]._render=o,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)h?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],a),e[s]._render&&t[s].style.pElem.parentNode!==r&&r.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(h)for(l=t[s].it.length,c=0;c<l;c+=1)t[s].prevViewData[c]=t[s].it[c];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,a+1,p,o),e[s]._render&&t[s].gr.parentNode!==r&&r.appendChild(t[s].gr)}else"tr"===e[s].ty?(h||(t[s]=this.createTransformElement(e[s],r)),u=t[s].transform,p.push(u)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(h||(t[s]=this.createShapeElement(e[s],p,a)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(h?(d=t[s]).closed=!1:((d=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=d,this.shapeModifiers.push(d)),v.push(d)):"rp"===e[s].ty&&(h?(d=t[s]).closed=!0:(d=ShapeModifiers.getModifier(e[s].ty),t[s]=d,d.init(this,e,s,t),this.shapeModifiers.push(d),o=!1),v.push(d));this.addProcessedElement(e[s],s+1)}for(f=m.length,s=0;s<f;s+=1)m[s].closed=!0;for(f=v.length,s=0;s<f;s+=1)v[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,n,r,a,i){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,o=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,o=!0),this.m!==a&&(this.m=a,this._mdf.m=!0,o=!0),!i.length||this.p[0]===i[0]&&this.p[1]===i[1]&&this.p[4]===i[4]&&this.p[5]===i[5]&&this.p[12]===i[12]&&this.p[13]===i[13]||(this.p=i,this._mdf.p=!0,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var a=this.effectsSequence.length,i=e||this.data.d.k[this.keysIndex].s;for(r=0;r<a;r+=1)i=n!==this.keysIndex?this.effectsSequence[r](i,i.t):this.effectsSequence[r](this.currentData,i.t);t!==i&&this.setCurrentData(i),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,r=e.length;n<=r-1&&!(n===r-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,r=[],a=0,i=e.length,o=!1,s=!1,c="";a<i;)o=s,s=!1,t=e.charCodeAt(a),c=e.charAt(a),FontManager.isCombinedCharacter(t)?o=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,a)?c=e.substr(a,14):(n=e.charCodeAt(a+1))>=56320&&n<=57343&&(FontManager.isModifier(t,n)?(c=e.substr(a,2),o=!0):c=FontManager.isFlagEmoji(e.substr(a,4))?e.substr(a,4):e.substr(a,2)):t>56319?(n=e.charCodeAt(a+1),FontManager.isVariationSelector(t)&&(o=!0)):FontManager.isZeroWidthJoiner(t)&&(o=!0,s=!0),o?(r[r.length-1]+=c,o=!1):r.push(c),a+=c.length;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,n,r,a,i,o,s,c=this.elem.globalData.fontManager,l=this.data,u=[],d=0,h=l.m.g,p=0,f=0,m=0,v=[],g=0,y=0,_=c.getFontByName(e.f),b=0,w=getFontProperties(_);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var S,C=e.tr/1e3*e.finalSize;if(e.sz)for(var E,x,A=!0,k=e.sz[0],T=e.sz[1];A;){E=0,g=0,n=(x=this.buildFinalText(e.t)).length,C=e.tr/1e3*e.finalSize;var L=-1;for(t=0;t<n;t+=1)S=x[t].charCodeAt(0),r=!1," "===x[t]?L=t:13!==S&&3!==S||(g=0,r=!0,E+=e.finalLineHeight||1.2*e.finalSize),c.chars?(s=c.getCharData(x[t],_.fStyle,_.fFamily),b=r?0:s.w*e.finalSize/100):b=c.measureText(x[t],e.f,e.finalSize),g+b>k&&" "!==x[t]?(-1===L?n+=1:t=L,E+=e.finalLineHeight||1.2*e.finalSize,x.splice(t,L===t?1:0,"\r"),L=-1,g=0):(g+=b,g+=C);E+=_.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&T<E?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=x,n=e.finalText.length,A=!1)}g=-C,b=0;var I,D=0;for(t=0;t<n;t+=1)if(r=!1,13===(S=(I=e.finalText[t]).charCodeAt(0))||3===S?(D=0,v.push(g),y=g>y?g:y,g=-2*C,a="",r=!0,m+=1):a=I,c.chars?(s=c.getCharData(I,_.fStyle,c.getFontByName(e.f).fFamily),b=r?0:s.w*e.finalSize/100):b=c.measureText(a,e.f,e.finalSize)," "===I?D+=b+C:(g+=b+C+D,D=0),u.push({l:b,an:b,add:p,n:r,anIndexes:[],val:a,line:m,animatorJustifyOffset:0}),2==h){if(p+=b,""===a||" "===a||t===n-1){for(""!==a&&" "!==a||(p-=b);f<=t;)u[f].an=p,u[f].ind=d,u[f].extra=b,f+=1;d+=1,p=0}}else if(3==h){if(p+=b,""===a||t===n-1){for(""===a&&(p-=b);f<=t;)u[f].an=p,u[f].ind=d,u[f].extra=b,f+=1;p=0,d+=1}}else u[d].ind=d,u[d].extra=0,d+=1;if(e.l=u,y=g>y?g:y,v.push(g),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=y,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=v;var P,O,R,M,q=l.a;o=q.length;var N=[];for(i=0;i<o;i+=1){for((P=q[i]).a.sc&&(e.strokeColorAnim=!0),P.a.sw&&(e.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(e.fillColorAnim=!0),M=0,R=P.s.b,t=0;t<n;t+=1)(O=u[t]).anIndexes[i]=M,(1==R&&""!==O.val||2==R&&""!==O.val&&" "!==O.val||3==R&&(O.n||" "==O.val||t==n-1)||4==R&&(O.n||t==n-1))&&(1===P.s.rn&&N.push(M),M+=1);l.a[i].s.totalChars=M;var V,F=-1;if(1===P.s.rn)for(t=0;t<n;t+=1)F!=(O=u[t]).anIndexes[i]&&(F=O.anIndexes[i],V=N.splice(Math.floor(Math.random()*N.length),1)[0]),O.anIndexes[i]=V}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=_.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,n=Math.floor;function r(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var a=0,i=0,o=1,s=1;this.ne.v>0?a=this.ne.v/100:i=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var c=BezierFactory.getBezierEasing(a,i,o,s).get,l=0,u=this.finalS,d=this.finalE,h=this.data.sh;if(2===h)l=c(l=d===u?r>=d?1:0:e(0,t(.5/(d-u)+(r-u)/(d-u),1)));else if(3===h)l=c(l=d===u?r>=d?0:1:1-e(0,t(.5/(d-u)+(r-u)/(d-u),1)));else if(4===h)d===u?l=0:(l=e(0,t(.5/(d-u)+(r-u)/(d-u),1)))<.5?l*=2:l=1-2*(l-.5),l=c(l);else if(5===h){if(d===u)l=0;else{var p=d-u,f=-p/2+(r=t(e(0,r+.5-u),d-u)),m=p/2;l=Math.sqrt(1-f*f/(m*m))}l=c(l)}else 6===h?(d===u?l=0:(r=t(e(0,r+.5-u),d-u),l=(1+Math.cos(Math.PI+2*Math.PI*r/(d-u)))/2),l=c(l)):(r>=n(u)&&(l=e(0,t(r-u<0?t(d,1)-(u-r):d-r,1))),l=c(l));if(100!==this.sm.v){var v=.01*this.sm.v;0===v&&(v=1e-8);var g=.5-.5*v;l<g?l=0:(l=(l-g)/v)>1&&(l=1)}return l*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,a=this.e.v/t+n;if(r>a){var i=r;r=a,a=i}this.finalS=r,this.finalE=a}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(e,t,n){return new r(e,t,n)}}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},a=PropertyFactory.getProp,i=t.a;this.a={r:i.r?a(e,i.r,0,degToRads,n):r,rx:i.rx?a(e,i.rx,0,degToRads,n):r,ry:i.ry?a(e,i.ry,0,degToRads,n):r,sk:i.sk?a(e,i.sk,0,degToRads,n):r,sa:i.sa?a(e,i.sa,0,degToRads,n):r,s:i.s?a(e,i.s,1,.01,n):r,a:i.a?a(e,i.a,1,0,n):r,o:i.o?a(e,i.o,0,.01,n):r,p:i.p?a(e,i.p,1,0,n):r,sw:i.sw?a(e,i.sw,0,0,n):r,sc:i.sc?a(e,i.sc,1,0,n):r,fc:i.fc?a(e,i.fc,1,0,n):r,fh:i.fh?a(e,i.fh,0,0,n):r,fs:i.fs?a(e,i.fs,0,.01,n):r,fb:i.fb?a(e,i.fb,0,.01,n):r,t:i.t?a(e,i.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=PropertyFactory.getProp;for(e=0;e<n;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b,w=this._moreOptions.alignment.v,S=this._animatorsData,C=this._textData,E=this.mHelper,x=this._renderType,A=this.renderedLetters.length,k=e.l;if(this._hasMaskedPath){if(b=this._pathData.m,!this._pathData.n||this._pathData._mdf){var T,L=b.v;for(this._pathData.r.v&&(L=L.reverse()),o={tLength:0,segments:[]},i=L._length-1,g=0,a=0;a<i;a+=1)T=bez.buildBezierData(L.v[a],L.v[a+1],[L.o[a][0]-L.v[a][0],L.o[a][1]-L.v[a][1]],[L.i[a+1][0]-L.v[a+1][0],L.i[a+1][1]-L.v[a+1][1]]),o.tLength+=T.segmentLength,o.segments.push(T),g+=T.segmentLength;a=i,b.v.c&&(T=bez.buildBezierData(L.v[a],L.v[0],[L.o[a][0]-L.v[a][0],L.o[a][1]-L.v[a][1]],[L.i[0][0]-L.v[0][0],L.i[0][1]-L.v[0][1]]),o.tLength+=T.segmentLength,o.segments.push(T),g+=T.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,s=this._pathData.f.v,h=0,d=1,l=0,u=!0,m=o.segments,s<0&&b.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),d=(f=m[h=m.length-1].points).length-1;s<0;)s+=f[d].partialLength,(d-=1)<0&&(d=(f=m[h-=1].points).length-1);p=(f=m[h].points)[d-1],v=(c=f[d]).partialLength}i=k.length,n=0,r=0;var I,D,P,O,R,M=1.2*e.finalSize*.714,q=!0;P=S.length;var N,V,F,B,j,H,G,U,W,z,$,Y,Z=-1,K=s,X=h,J=d,Q=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var ne=0,re=0,ae=2===e.j?-.5:-1,ie=0,oe=!0;for(a=0;a<i;a+=1)if(k[a].n){for(ne&&(ne+=re);ie<a;)k[ie].animatorJustifyOffset=ne,ie+=1;ne=0,oe=!0}else{for(D=0;D<P;D+=1)(I=S[D].a).t.propType&&(oe&&2===e.j&&(re+=I.t.v*ae),(R=S[D].s.getMult(k[a].anIndexes[D],C.a[D].s.totalChars)).length?ne+=I.t.v*R[0]*ae:ne+=I.t.v*R*ae);oe=!1}for(ne&&(ne+=re);ie<a;)k[ie].animatorJustifyOffset=ne,ie+=1}for(a=0;a<i;a+=1){if(E.reset(),B=1,k[a].n)n=0,r+=e.yOffset,r+=q?1:0,s=K,q=!1,this._hasMaskedPath&&(d=J,p=(f=m[h=X].points)[d-1],v=(c=f[d]).partialLength,l=0),ee="",$="",W="",Y="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==k[a].line){switch(e.j){case 1:s+=g-e.lineWidths[k[a].line];break;case 2:s+=(g-e.lineWidths[k[a].line])/2}Q=k[a].line}Z!==k[a].ind&&(k[Z]&&(s+=k[Z].extra),s+=k[a].an/2,Z=k[a].ind),s+=w[0]*k[a].an*.005;var se=0;for(D=0;D<P;D+=1)(I=S[D].a).p.propType&&((R=S[D].s.getMult(k[a].anIndexes[D],C.a[D].s.totalChars)).length?se+=I.p.v[0]*R[0]:se+=I.p.v[0]*R),I.a.propType&&((R=S[D].s.getMult(k[a].anIndexes[D],C.a[D].s.totalChars)).length?se+=I.a.v[0]*R[0]:se+=I.a.v[0]*R);for(u=!0,this._pathData.a.v&&(s=.5*k[0].an+(g-this._pathData.f.v-.5*k[0].an-.5*k[k.length-1].an)*Z/(i-1),s+=this._pathData.f.v);u;)l+v>=s+se||!f?(y=(s+se-l)/c.partialLength,V=p.point[0]+(c.point[0]-p.point[0])*y,F=p.point[1]+(c.point[1]-p.point[1])*y,E.translate(-w[0]*k[a].an*.005,-w[1]*M*.01),u=!1):f&&(l+=c.partialLength,(d+=1)>=f.length&&(d=0,m[h+=1]?f=m[h].points:b.v.c?(d=0,f=m[h=0].points):(l-=c.partialLength,f=null)),f&&(p=c,v=(c=f[d]).partialLength));N=k[a].an/2-k[a].add,E.translate(-N,0,0)}else N=k[a].an/2-k[a].add,E.translate(-N,0,0),E.translate(-w[0]*k[a].an*.005,-w[1]*M*.01,0);for(D=0;D<P;D+=1)(I=S[D].a).t.propType&&(R=S[D].s.getMult(k[a].anIndexes[D],C.a[D].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?R.length?s+=I.t.v*R[0]:s+=I.t.v*R:R.length?n+=I.t.v*R[0]:n+=I.t.v*R));for(e.strokeWidthAnim&&(H=e.sw||0),e.strokeColorAnim&&(j=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(G=[e.fc[0],e.fc[1],e.fc[2]]),D=0;D<P;D+=1)(I=S[D].a).a.propType&&((R=S[D].s.getMult(k[a].anIndexes[D],C.a[D].s.totalChars)).length?E.translate(-I.a.v[0]*R[0],-I.a.v[1]*R[1],I.a.v[2]*R[2]):E.translate(-I.a.v[0]*R,-I.a.v[1]*R,I.a.v[2]*R));for(D=0;D<P;D+=1)(I=S[D].a).s.propType&&((R=S[D].s.getMult(k[a].anIndexes[D],C.a[D].s.totalChars)).length?E.scale(1+(I.s.v[0]-1)*R[0],1+(I.s.v[1]-1)*R[1],1):E.scale(1+(I.s.v[0]-1)*R,1+(I.s.v[1]-1)*R,1));for(D=0;D<P;D+=1){if(I=S[D].a,R=S[D].s.getMult(k[a].anIndexes[D],C.a[D].s.totalChars),I.sk.propType&&(R.length?E.skewFromAxis(-I.sk.v*R[0],I.sa.v*R[1]):E.skewFromAxis(-I.sk.v*R,I.sa.v*R)),I.r.propType&&(R.length?E.rotateZ(-I.r.v*R[2]):E.rotateZ(-I.r.v*R)),I.ry.propType&&(R.length?E.rotateY(I.ry.v*R[1]):E.rotateY(I.ry.v*R)),I.rx.propType&&(R.length?E.rotateX(I.rx.v*R[0]):E.rotateX(I.rx.v*R)),I.o.propType&&(R.length?B+=(I.o.v*R[0]-B)*R[0]:B+=(I.o.v*R-B)*R),e.strokeWidthAnim&&I.sw.propType&&(R.length?H+=I.sw.v*R[0]:H+=I.sw.v*R),e.strokeColorAnim&&I.sc.propType)for(U=0;U<3;U+=1)R.length?j[U]+=(I.sc.v[U]-j[U])*R[0]:j[U]+=(I.sc.v[U]-j[U])*R;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(U=0;U<3;U+=1)R.length?G[U]+=(I.fc.v[U]-G[U])*R[0]:G[U]+=(I.fc.v[U]-G[U])*R;I.fh.propType&&(G=R.length?addHueToRGB(G,I.fh.v*R[0]):addHueToRGB(G,I.fh.v*R)),I.fs.propType&&(G=R.length?addSaturationToRGB(G,I.fs.v*R[0]):addSaturationToRGB(G,I.fs.v*R)),I.fb.propType&&(G=R.length?addBrightnessToRGB(G,I.fb.v*R[0]):addBrightnessToRGB(G,I.fb.v*R))}}for(D=0;D<P;D+=1)(I=S[D].a).p.propType&&(R=S[D].s.getMult(k[a].anIndexes[D],C.a[D].s.totalChars),this._hasMaskedPath?R.length?E.translate(0,I.p.v[1]*R[0],-I.p.v[2]*R[1]):E.translate(0,I.p.v[1]*R,-I.p.v[2]*R):R.length?E.translate(I.p.v[0]*R[0],I.p.v[1]*R[1],-I.p.v[2]*R[2]):E.translate(I.p.v[0]*R,I.p.v[1]*R,-I.p.v[2]*R));if(e.strokeWidthAnim&&(W=H<0?0:H),e.strokeColorAnim&&(z="rgb("+Math.round(255*j[0])+","+Math.round(255*j[1])+","+Math.round(255*j[2])+")"),e.fillColorAnim&&e.fc&&($="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),this._hasMaskedPath){if(E.translate(0,-e.ls),E.translate(0,w[1]*M*.01+r,0),this._pathData.p.v){_=(c.point[1]-p.point[1])/(c.point[0]-p.point[0]);var ce=180*Math.atan(_)/Math.PI;c.point[0]<p.point[0]&&(ce+=180),E.rotate(-ce*Math.PI/180)}E.translate(V,F,0),s-=w[0]*k[a].an*.005,k[a+1]&&Z!==k[a+1].ind&&(s+=k[a].an/2,s+=.001*e.tr*e.finalSize)}else{switch(E.translate(n,r,0),e.ps&&E.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:E.translate(k[a].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[k[a].line]),0,0);break;case 2:E.translate(k[a].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[k[a].line])/2,0,0)}E.translate(0,-e.ls),E.translate(N,0,0),E.translate(w[0]*k[a].an*.005,w[1]*M*.01,0),n+=k[a].l+.001*e.tr*e.finalSize}"html"===x?ee=E.toCSS():"svg"===x?ee=E.to2dCSS():te=[E.props[0],E.props[1],E.props[2],E.props[3],E.props[4],E.props[5],E.props[6],E.props[7],E.props[8],E.props[9],E.props[10],E.props[11],E.props[12],E.props[13],E.props[14],E.props[15]],Y=B}A<=a?(O=new LetterProps(Y,W,z,$,ee,te),this.renderedLetters.push(O),A+=1,this.lettersChangedFlag=!0):(O=this.renderedLetters[a],this.lettersChangedFlag=O.update(Y,W,z,$,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var n,r,a=t.length,i="";for(n=0;n<a;n+=1)"sh"===t[n].ty&&(r=t[n].ks.k,i+=buildShapeString(r,r.i.length,!0,e));return i},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,r,a){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(r,a,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function ISolidElement(e,t,n){this.initElement(e,t,n)}function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var r=createNS("title"),a=createElementID();r.setAttribute("id",a),r.textContent=t.title,this.svgElement.appendChild(r),n+=a}if(t&&t.description){var i=createNS("desc"),o=createElementID();i.setAttribute("id",o),i.textContent=t.description,this.svgElement.appendChild(i),n+=" "+o}n&&this.svgElement.setAttribute("aria-labelledby",n);var s=createNS("defs");this.svgElement.appendChild(s);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,r=[],a="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(a),a=""):a+=e[t],t+=1;return r.push(a),r},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var a=n.fWeight,i=n.fStyle;this.layerElement.setAttribute("font-style",i),this.layerElement.setAttribute("font-weight",a)}this.layerElement.setAttribute("aria-label",n.t);var o,s=n.l||[],c=!!this.globalData.fontManager.chars;t=s.length;var l=this.mHelper,u=this.data.singleShape,d=0,h=0,p=!0,f=.001*n.tr*n.finalSize;if(!u||c||n.sz){var m,v=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!c||!u||0===e){if(o=v>e?this.textSpans[e].span:createNS(c?"g":"text"),v<=e){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=o,c){var g=createNS("g");o.appendChild(g),this.textSpans[e].childSpan=g}this.textSpans[e].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(l.reset(),u&&(s[e].n&&(d=-f,h+=n.yOffset,h+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(n,l,s[e].line,d,h),d+=s[e].l||0,d+=f),c){var y;if(1===(m=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)y=new SVGCompElement(m.data,this.globalData,this);else{var _=emptyShapeData;m.data&&m.data.shapes&&(_=this.buildShapeData(m.data,n.finalSize)),y=new SVGShapeElement(_,this.globalData,this)}if(this.textSpans[e].glyph){var b=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(b.layerElement),b.destroy()}this.textSpans[e].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[e].childSpan.appendChild(y.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else u&&o.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),o.textContent=s[e].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&o&&o.setAttribute("d","")}else{var w=this.textContainer,S="start";switch(n.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}w.setAttribute("text-anchor",S),w.setAttribute("letter-spacing",f);var C=this.buildTextContents(n.finalText);for(t=C.length,h=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(o=this.textSpans[e].span||createNS("tspan")).textContent=C[e],o.setAttribute("x",0),o.setAttribute("y",h),o.style.display="inherit",w.appendChild(o),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=o,h+=n.finalLineHeight;this.layerElement.appendChild(w)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var n,r,a,i=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(t=o.length,e=0;e<t;e+=1)o[e].n||(n=i[e],r=this.textSpans[e].span,(a=this.textSpans[e].glyph)&&a.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,
60,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var a=createElementID();n.setAttribute("id",a),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var r="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var a=t[r].getMatte(this.layers[e].tt);n.setMatte(a)}else this.buildItem(r),this.addPendingElement(n)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var r="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,a=this.elements[r].getMatte(this.layers[t].tt);e.setMatte(a);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var r,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement()&&(r=this.elements[a].getBaseElement()),a+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,n=e.length,r="_";for(t=0;t<n;t+=1)r+=e[t].transform.key+"_";var a=this.sequences[r];return a||(a={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=a,this.sequenceList.push(a)),a},processSequence:function(e,t){for(var n=0,r=e.transforms.length,a=t;n<r&&!t;){if(e.transforms[n].transform.mProps._mdf){a=!0;break}n+=1}if(a)for(e.finalTransform.reset(),n=r-1;n>=0;n-=1)e.finalTransform.multiply(e.transforms[n].transform.mProps.v);e._mdf=a},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t<n;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,n=null,r=null;function a(){var a,i,o;t||(a=createNS("svg"),i=createNS("filter"),o=createNS("feColorMatrix"),i.setAttribute("id",e),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),i.appendChild(o),a.appendChild(i),a.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(a.style.display="none"),r=a,document.body.appendChild(r),t=createTag("canvas"),(n=t.getContext("2d")).filter="url
6(#"+e+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}return{load:a,get:function(r){return t||a(),t.width=r.width,t.height=r.height,n.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var n=createTag("canvas");return n.width=e,n.height=t,n}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(e){var t,n,r=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<r;t+=1){n=null;var a=e.data.ef[t].ty;registeredEffects[a]&&(n=new(0,registeredEffects[a].effect)(e.effectsManager.effectElements[t],e)),n&&this.filters.push(n)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var n;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r=this.masksProperties.length,a=!1;for(n=0;n<r;n+=1)"n"!==this.masksProperties[n].mode&&(a=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=a,a&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,n,r,a=this.element.finalTransform.mat,i=this.element.canvasContext,o=this.masksProperties.length;for(i.beginPath(),e=0;e<o;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(i.moveTo(0,0),i.lineTo(this.element.globalData.compSize.w,0),i.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),i.lineTo(0,this.element.globalData.compSize.h),i.lineTo(0,0)),r=this.viewData[e].v,t=a.applyToPointArray(r.v[0][0],r.v[0][1],0),i.moveTo(t[0],t[1]);var c=r._length;for(s=1;s<c;s+=1)n=a.applyToTriplePoints(r.o[s-1],r.i[s],r.v[s]),i.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=a.applyToTriplePoints(r.o[s-1],r.i[0],r.v[0]),i.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),i.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var a,i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,i,e);var o,s=n.length;for(a=0;a<s;a+=1)n[a].closed||(o={transforms:r.addTransformSequence(n[a].transforms),trNodes:[]},this.styledShapes.push(o),n[a].elements.push(o))}function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}function CVSolidElement(e,t,n){this.initElement(e,t,n)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}
vendor: 29,392 bytes, line 6
6this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,n){this.initElement(e,t,n)}function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,e.pe,0,0,this),e.ks.p.s?(this.px=r(this,e.ks.p.x,1,0,this),this.py=r(this,e.ks.p.y,1,0,this),this.pz=r(this,e.ks.p.z,1,0,this)):this.p=r(this,e.ks.p,1,0,this),e.ks.a&&(this.a=r(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var a,i=e.ks.or.k.length;for(a=0;a<i;a+=1)e.ks.or.k[a].to=null,e.ks.or.k[a].ti=null}this.or=r(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,e.ks.rx,0,degToRads,this),this.ry=r(this,e.ks.ry,0,degToRads,this),this.rz=r(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var n=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(n),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var n=assetLoader.getLumaCanvas(this.canvasContext.canvas);n.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(n,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},r={};if("fl"===e.ty||"st"===e.ty?(r.c=PropertyFactory.getProp(this,e.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(r.s=PropertyFactory.getProp(this,e.s,1,null,this),r.e=PropertyFactory.getProp(this,e.e,1,null,this),r.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,e.g,this)),r.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],1==e.lj&&(n.ml=e.ml),r.w=PropertyFactory.getProp(this,e.w,0,null,this),r.w.k||(n.wi=r.w.v),e.d){var a=new DashProperty(this,e.d,"canvas",this);r.d=a,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(n),r.style=n,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,r,a){var i,o,s,c,l,u,d=e.length-1,h=[],p=[],f=[].concat(a);for(i=d;i>=0;i-=1){if((c=this.searchProcessedElement(e[i]))?t[i]=n[c-1]:e[i]._shouldRender=r,"fl"===e[i].ty||"st"===e[i].ty||"gf"===e[i].ty||"gs"===e[i].ty)c?t[i].style.closed=!1:t[i]=this.createStyleElement(e[i],f),h.push(t[i].style);else if("gr"===e[i].ty){if(c)for(s=t[i].it.length,o=0;o<s;o+=1)t[i].prevViewData[o]=t[i].it[o];else t[i]=this.createGroupElement(e[i]);this.searchShapes(e[i].it,t[i].it,t[i].prevViewData,r,f)}else"tr"===e[i].ty?(c||(u=this.createTransformElement(e[i]),t[i]=u),f.push(t[i]),this.addTransformToStyleList(t[i])):"sh"===e[i].ty||"rc"===e[i].ty||"el"===e[i].ty||"sr"===e[i].ty?c||(t[i]=this.createShapeElement(e[i])):"tm"===e[i].ty||"rd"===e[i].ty||"pb"===e[i].ty||"zz"===e[i].ty||"op"===e[i].ty?(c?(l=t[i]).closed=!1:((l=ShapeModifiers.getModifier(e[i].ty)).init(this,e[i]),t[i]=l,this.shapeModifiers.push(l)),p.push(l)):"rp"===e[i].ty&&(c?(l=t[i]).closed=!0:(l=ShapeModifiers.getModifier(e[i].ty),t[i]=l,l.init(this,e,i,t),this.shapeModifiers.push(l),r=!1),p.push(l));this.addProcessedElement(e[i],i+1)}for(this.removeTransformFromStyleList(),this.closeStyles(h),d=p.length,i=0;i<d;i+=1)p[i].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,n,r,a,i,o,s,c,l=this.stylesList.length,u=this.globalData.renderer,d=this.globalData.canvasContext;for(e=0;e<l;e+=1)if(("st"!==(s=(c=this.stylesList[e]).type)&&"gs"!==s||0!==c.wi)&&c.data._shouldRender&&0!==c.coOp&&0!==this.globalData.currentGlobalAlpha){for(u.save(),i=c.elements,"st"===s||"gs"===s?(u.ctxStrokeStyle("st"===s?c.co:c.grd),u.ctxLineWidth(c.wi),u.ctxLineCap(c.lc),u.ctxLineJoin(c.lj),u.ctxMiterLimit(c.ml||0)):u.ctxFillStyle("fl"===s?c.co:c.grd),u.ctxOpacity(c.coOp),"st"!==s&&"gs"!==s&&d.beginPath(),u.ctxTransform(c.preTransforms.finalTransform.props),n=i.length,t=0;t<n;t+=1){for("st"!==s&&"gs"!==s||(d.beginPath(),c.da&&(d.setLineDash(c.da),d.lineDashOffset=c.do)),a=(o=i[t].trNodes).length,r=0;r<a;r+=1)"m"===o[r].t?d.moveTo(o[r].p[0],o[r].p[1]):"c"===o[r].t?d.bezierCurveTo(o[r].pts[0],o[r].pts[1],o[r].pts[2],o[r].pts[3],o[r].pts[4],o[r].pts[5]):d.closePath();"st"!==s&&"gs"!==s||(u.ctxStroke(),c.da&&d.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(c.r),u.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,r){var a,i;for(i=e,a=t.length-1;a>=0;a-=1)"tr"===t[a].ty?(i=n[a].transform,this.renderShapeTransform(e,i)):"sh"===t[a].ty||"el"===t[a].ty||"rc"===t[a].ty||"sr"===t[a].ty?this.renderPath(t[a],n[a]):"fl"===t[a].ty?this.renderFill(t[a],n[a],i):"st"===t[a].ty?this.renderStroke(t[a],n[a],i):"gf"===t[a].ty||"gs"===t[a].ty?this.renderGradientFill(t[a],n[a],i):"gr"===t[a].ty?this.renderShape(i,t[a].it,n[a].it):t[a].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n,r,a,i=e.trNodes,o=t.paths,s=o._length;i.length=0;var c=e.transforms.finalTransform;for(a=0;a<s;a+=1){var l=o.shapes[a];if(l&&l.v){for(r=l._length,n=1;n<r;n+=1)1===n&&i.push({t:"m",p:c.applyToPointArray(l.v[0][0],l.v[0][1],0)}),i.push({t:"c",pts:c.applyToTriplePoints(l.o[n-1],l.i[n],l.v[n])});1===r&&i.push({t:"m",p:c.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&r&&(i.push({t:"c",pts:c.applyToTriplePoints(l.o[n-1],l.i[0],l.v[0])}),i.push({t:"z"}))}}e.trNodes=i}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var n,r=t.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var r=t.style;(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var r,a=t.style;if(!a.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var i,o=this.globalData.canvasContext,s=t.s.v,c=t.e.v;if(1===e.t)r=o.createLinearGradient(s[0],s[1],c[0],c[1]);else{var l=Math.sqrt(Math.pow(s[0]-c[0],2)+Math.pow(s[1]-c[1],2)),u=Math.atan2(c[1]-s[1],c[0]-s[0]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var h=l*d,p=Math.cos(u+t.a.v)*h+s[0],f=Math.sin(u+t.a.v)*h+s[1];r=o.createRadialGradient(p,f,0,s[0],s[1],l)}var m=e.g.p,v=t.g.c,g=1;for(i=0;i<m;i+=1)t.g._hasOpacity&&t.g._collapsable&&(g=t.g.o[2*i+1]),r.addColorStop(v[4*i]/100,"rgba("+v[4*i+1]+","+v[4*i+2]+","+v[4*i+3]+","+g+")");a.grd=r}a.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var r=t.style,a=t.d;a&&(a._mdf||this._isFirstFrame)&&(r.da=a.dashArray,r.do=a.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(r.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var r,a,i,o,s,c,l,u,d,h,p,f,m=this.globalData.fontManager.getFontByName(e.f),v=e.l,g=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,a=e.finalText.length;var y=this.data.singleShape,_=.001*e.tr*e.finalSize,b=0,w=0,S=!0,C=0;for(r=0;r<a;r+=1){o=(i=this.globalData.fontManager.getCharData(e.finalText[r],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&i.data||{},g.reset(),y&&v[r].n&&(b=-_,w+=e.yOffset,w+=S?1:0,S=!1),d=(l=o.shapes?o.shapes[0].it:[]).length,g.scale(e.finalSize/100,e.finalSize/100),y&&this.applyTextPropertiesToMatrix(e,g,v[r].line,b,w),p=createSizedArray(d-1);var E=0;for(u=0;u<d;u+=1)if("sh"===l[u].ty){for(c=l[u].ks.k.i.length,h=l[u].ks.k,f=[],s=1;s<c;s+=1)1===s&&f.push(g.applyToX(h.v[0][0],h.v[0][1],0),g.applyToY(h.v[0][0],h.v[0][1],0)),f.push(g.applyToX(h.o[s-1][0],h.o[s-1][1],0),g.applyToY(h.o[s-1][0],h.o[s-1][1],0),g.applyToX(h.i[s][0],h.i[s][1],0),g.applyToY(h.i[s][0],h.i[s][1],0),g.applyToX(h.v[s][0],h.v[s][1],0),g.applyToY(h.v[s][0],h.v[s][1],0));f.push(g.applyToX(h.o[s-1][0],h.o[s-1][1],0),g.applyToY(h.o[s-1][0],h.o[s-1][1],0),g.applyToX(h.i[0][0],h.i[0][1],0),g.applyToY(h.i[0][0],h.i[0][1],0),g.applyToX(h.v[0][0],h.v[0][1],0),g.applyToY(h.v[0][0],h.v[0][1],0)),p[E]=f,E+=1}y&&(b+=v[r].l,b+=_),this.textSpans[C]?this.textSpans[C].elem=p:this.textSpans[C]={elem:p},C+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,n,r,a,i;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,s=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;t=c.length;var l,u,d=null,h=null,p=null,f=this.globalData.renderer;for(e=0;e<t;e+=1)if(!c[e].n){if((o=s[e])&&(f.save(),f.ctxTransform(o.p),f.ctxOpacity(o.o)),this.fill){for(o&&o.fc?d!==o.fc&&(f.ctxFillStyle(o.fc),d=o.fc):d!==this.values.fill&&(d=this.values.fill,f.ctxFillStyle(this.values.fill)),r=(l=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(i=(u=l[n]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),a=2;a<i;a+=6)this.globalData.canvasContext.bezierCurveTo(u[a],u[a+1],u[a+2],u[a+3],u[a+4],u[a+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(o&&o.sw?p!==o.sw&&(p=o.sw,f.ctxLineWidth(o.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),o&&o.sc?h!==o.sc&&(h=o.sc,f.ctxStrokeStyle(o.sc)):h!==this.values.stroke&&(h=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),r=(l=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(i=(u=l[n]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),a=2;a<i;a+=6)this.globalData.canvasContext.bezierCurveTo(u[a],u[a+1],u[a+2],u[a+3],u[a+4],u[a+5]);this.globalData.canvasContext.closePath(),f.ctxStroke()}o&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,n,r=e.getContext("2d"),a=this.img.width,i=this.img.height,o=a/i,s=this.assetData.w/this.assetData.h,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>s&&"xMidYMid slice"===c||o<s&&"xMidYMid slice"!==c?t=(n=i)*s:n=(t=a)/s,r.drawImage(this.img,(a-t)/2,(i-n)/2,t,n,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,n,r){this.canvasContext.fillRect(e,t,n,r)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var n,r,a,i;if(this.reset(),e?(n=e,r=t,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var o=this.renderConfig.preserveAspectRatio.split(" "),s=o[1]||"meet",c=o[0]||"xMidYMid",l=c.substr(0,4),u=c.substr(4);a=n/r,(i=this.transformCanvas.w/this.transformCanvas.h)>a&&"meet"===s||i<a&&"slice"===s?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===l&&(i<a&&"meet"===s||i>a&&"slice"===s)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===l&&(i<a&&"meet"===s||i>a&&"slice"===s)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(i>a&&"meet"===s||i<a&&"slice"===s)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===u&&(i>a&&"meet"===s||i<a&&"slice"===s)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var n;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();
vendor: 19,157 bytes, line 6
6!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,n=this.stack[this.cArrPos],r=n.transform,a=this.cTr.props;for(t=0;t<16;t+=1)a[t]=r[t];if(e){this.nativeContext.restore();var i=this.stack[this.cArrPos+1];this.appliedFillStyle=i.fillStyle,this.appliedStrokeStyle=i.strokeStyle,this.appliedLineWidth=i.lineWidth,this.appliedLineCap=i.lineCap,this.appliedLineJoin=i.lineJoin,this.appliedMiterLimit=i.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||-1!==n.opacity&&this.currentOpacity!==n.opacity)&&(this.nativeContext.globalAlpha=n.opacity,this.currentOpacity=n.opacity),this.currentFillStyle=n.fillStyle,this.currentStrokeStyle=n.strokeStyle,this.currentLineWidth=n.lineWidth,this.currentLineCap=n.lineCap,this.currentLineJoin=n.lineJoin,this.currentMiterLimit=n.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n,r=this.stack[this.cArrPos];for(n=0;n<16;n+=1)r.transform[n]=t[n];this.cArrPos+=1;var a=this.stack[this.cArrPos];a.opacity=r.opacity,a.fillStyle=r.fillStyle,a.strokeStyle=r.strokeStyle,a.lineWidth=r.lineWidth,a.lineCap=r.lineCap,a.lineJoin=r.lineJoin,a.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var n=t.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,n,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,n,r)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n,r,a,i,o,s=e.sh.v,c=e.transformers,l=s._length;if(!(l<=1)){for(n=0;n<l-1;n+=1)r=this.getTransformedPoint(c,s.v[n]),a=this.getTransformedPoint(c,s.o[n]),i=this.getTransformedPoint(c,s.i[n+1]),o=this.getTransformedPoint(c,s.v[n+1]),this.checkBounds(r,a,i,o,t);s.c&&(r=this.getTransformedPoint(c,s.v[n]),a=this.getTransformedPoint(c,s.o[n]),i=this.getTransformedPoint(c,s.i[0]),o=this.getTransformedPoint(c,s.v[0]),this.checkBounds(r,a,i,o,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,r,a){this.getBoundsOfCurve(e,t,n,r);var i=this.shapeBoundingBox;a.x=bmMin(i.left,a.x),a.xMax=bmMax(i.right,a.xMax),a.y=bmMin(i.top,a.y),a.yMax=bmMax(i.bottom,a.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,r){for(var a,i,o,s,c,l,u,d=[[e[0],r[0]],[e[1],r[1]]],h=0;h<2;++h)i=6*e[h]-12*t[h]+6*n[h],a=-3*e[h]+9*t[h]-9*n[h]+3*r[h],o=3*t[h]-3*e[h],i|=0,o|=0,0==(a|=0)&&0===i||(0===a?(s=-o/i)>0&&s<1&&d[h].push(this.calculateF(s,e,t,n,r,h)):(c=i*i-4*o*a)>=0&&((l=(-i+bmSqrt(c))/(2*a))>0&&l<1&&d[h].push(this.calculateF(l,e,t,n,r,h)),(u=(-i-bmSqrt(c))/(2*a))>0&&u<1&&d[h].push(this.calculateF(u,e,t,n,r,h))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(e,t,n,r,a,i){return bmPow(1-e,3)*t[i]+3*bmPow(1-e,2)*e*n[i]+3*(1-e)*bmPow(e,2)*r[i]+bmPow(e,3)*a[i]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var r=0;r<e.keyframes.length;r+=1){var a=e.keyframes[r].s;a>n&&(n=a)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,a="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=a,r.webkitTransform=a}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var r,a,i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var o=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=o}var c,l,u,d=e.l;a=d.length;var h,p=this.mHelper,f="",m=0;for(r=0;r<a;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?c=this.textPaths[m]:((c=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?u=(l=this.textSpans[m]).children[0]:((l=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(c),styleDiv(l)))):this.isMasked?c=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(l=this.textSpans[m],c=this.textPaths[m]):(styleDiv(l=createTag("span")),styleDiv(c=createTag("span")),l.appendChild(c)),this.globalData.fontManager.chars){var v,g=this.globalData.fontManager.getCharData(e.finalText[r],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(v=g?g.data:null,p.reset(),v&&v.shapes&&v.shapes.length&&(h=v.shapes[0].it,p.scale(e.finalSize/100,e.finalSize/100),f=this.createPathShape(p,h),c.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(l),v&&v.shapes){document.body.appendChild(u);var y=u.getBBox();u.setAttribute("width",y.width+2),u.setAttribute("height",y.height+2),u.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var _=u.style,b="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";_.transform=b,_.webkitTransform=b,d[r].yOffset=y.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);l.appendChild(u)}}else if(c.textContent=d[r].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(l);var w=c.style,S="translate3d(0,"+-e.finalSize/1.2+"px,0)";w.transform=S,w.webkitTransform=S}this.isMasked?this.textSpans[m]=c:this.textSpans[m]=l,this.textSpans[m].style.display="block",this.textPaths[m]=c,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var n,r,a,i,o,s=0,c=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;for(r=l.length,n=0;n<r;n+=1)l[n].n?s+=1:(i=this.textSpans[n],o=this.textPaths[n],a=c[s],s+=1,a._mdf.m&&(this.isMasked?i.setAttribute("transform",a.m):(i.style.webkitTransform=a.m,i.style.transform=a.m)),i.style.opacity=a.o,a.sw&&a._mdf.sw&&o.setAttribute("stroke-width",a.sw),a.sc&&a._mdf.sc&&o.setAttribute("stroke",a.sc),a.fc&&a._mdf.fc&&(o.setAttribute("fill",a.fc),o.style.color=a.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();if(this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height)),this.currentBBox.w!==u.width+2||this.currentBBox.h!==u.height+2||this.currentBBox.x!==u.x-1||this.currentBBox.y!==u.y-1){this.currentBBox.w=u.width+2,this.currentBBox.h=u.height+2,this.currentBBox.x=u.x-1,this.currentBBox.y=u.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=d,e.webkitTransform=d}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,n,r,a=this.comp.threeDElements.length;for(e=0;e<a;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){n=t.perspectiveElem.style,r=t.container.style;var i=this.pe.v+"px",o="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=i,n.webkitPerspective=i,r.transformOrigin=o,r.mozTransformOrigin=o,r.webkitTransformOrigin=o,n.transform=s,n.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,n=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)n=this.hierarchy[e].finalTransform.mProp._mdf||n;if(n||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var a;a=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var i=Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)),o=[a[0]/i,a[1]/i,a[2]/i],s=Math.sqrt(o[2]*o[2]+o[0]*o[
vendor: 15,604 bytes, line 6
60]),c=Math.atan2(o[1],s),l=Math.atan2(o[0],-o[2]);this.mat.rotateY(l).rotateX(-c)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var d,h,p;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(d=this.comp.threeDElements[e]).type){if(u){var f=this.mat.toCSS();(p=d.container.style).transform=f,p.webkitTransform=f}this.pe._mdf&&((h=d.perspectiveElem.style).perspective=this.pe.v+"px",h.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){var r=this.layers[t];if(r.ddd&&this.supports3d)this.addTo3dContainer(n,t);else if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var a,i,o=0;o<t;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement&&(i=this.elements[o],a=(this.layers[o].ddd?this.getThreeDContainerByPos(o):i.getBaseElement())||a),o+=1;a?r.ddd&&this.supports3d||this.layerElement.insertBefore(n,a):r.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n,r,a=createTag("div");styleDiv(a);var i=createTag("div");if(styleDiv(i),"3d"===t){(n=a.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var o="50% 50%";n.webkitTransformOrigin=o,n.mozTransformOrigin=o,n.transformOrigin=o;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=i.style).transform=s,r.webkitTransform=s}a.appendChild(i);var c={container:i,perspectiveElem:a,startPos:e,endPos:e,type:t};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,t,n=this.layers.length,r="";for(e=0;e<n;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==r&&(r="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==r&&(r="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(n=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,r=this.threeDElements.length;n<r;){if(t<=this.threeDElements[n].endPos){for(var a,i=this.threeDElements[n].startPos;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(a=this.elements[i].getBaseElement()),i+=1;a?this.threeDElements[n].container.insertBefore(e,a):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,r=t.style;r.width=e.w+"px",r.height=e.h+"px",this.resizerElem=t,styleDiv(t),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),r.overflow="hidden";var a=createNS("svg");a.setAttribute("width","1"),a.setAttribute("height","1"),styleDiv(a),this.resizerElem.appendChild(a);var i=createNS("defs");a.appendChild(i),this.data=e,this.setupGlobalData(e,a),this.globalData.defs=i,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,n,r,a=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight,o=a/i;this.globalData.compSize.w/this.globalData.compSize.h>o?(e=a/this.globalData.compSize.w,t=a/this.globalData.compSize.w,n=0,r=(i-this.globalData.compSize.h*(a/this.globalData.compSize.w))/2):(e=i/this.globalData.compSize.h,t=i/this.globalData.compSize.h,n=(a-this.globalData.compSize.w*(i/this.globalData.compSize.h))/2,r=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+n+","+r+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,n=this.globalData.compSize.h,r=this.threeDElements.length;for(e=0;e<r;e+=1){var a=this.threeDElements[e].perspectiveElem.style;a.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(n,2))+"px",a.perspective=a.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,r=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var a=this.createComp(e[t],r,this.globalData.comp,null);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n,r=0;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var n=0,r=e.layers.length;n<r;){if(e.layers[n].nm===t||e.layers[n].ind===t)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="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},_typeof$2(e)}function seedRandom(e,t){var n=this,r=256,a="random",i=t.pow(r,6),o=t.pow(2,52),s=2*o,c=255;function l(e){var t,n=e.length,a=this,i=0,o=a.i=a.j=0,s=a.S=[];for(n||(e=[n++]);i<r;)s[i]=i++;for(i=0;i<r;i++)s[i]=s[o=c&o+e[i%n]+(t=s[i])],s[o]=t;a.g=function(e){for(var t,n=0,i=a.i,o=a.j,s=a.S;e--;)t=s[i=c&i+1],n=n*r+s[c&(s[i]=s[o=c&o+t])+(s[o]=t)];return a.i=i,a.j=o,n}}function u(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function d(e,t){var n,r=[],a=_typeof$2(e);if(t&&"object"==a)for(n in e)try{r.push(d(e[n],t-1))}catch(e){}return r.length?r:"string"==a?e:e+"\0"}function h(e,t){for(var n,r=e+"",a=0;a<r.length;)t[c&a]=c&(n^=19*t[c&a])+r.charCodeAt(a++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}t["seed"+a]=function(c,f,m){var v=[],g=h(d((f=!0===f?{entropy:!0}:f||{}).entropy?[c,p(e)]:null===c?function(){try{var t=new Uint8Array(r);return(n.crypto||n.msCrypto).getRandomValues(t),p(t)}catch(t){var a=n.navigator,i=a&&a.plugins;return[+new Date,n,i,n.screen,p(e)]}}():c,3),v),y=new l(v),_=function(){for(var e=y.g(6),t=i,n=0;e<o;)e=(e+n)*r,t*=r,n=y.g(1);for(;e>=s;)e/=2,t/=2,n>>>=1;return(e+n)/t};return _.int32=function(){return 0|y.g(4)},_.quick=function(){return y.g(4)/4294967296},_.double=_,h(p(y.S),e),(f.pass||m||function(e,n,r,i){return i&&(i.S&&u(i,y),e.state=function(){return u(y,{})}),r?(t[a]=e,n):e})(_,g,"global"in f?f.global:this==t,f.state)},h(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="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},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var n,r=e.length,a=[];for(n=0;n<r;n+=1)a[n]=-e[n];return a}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t)||"string"===n||"string"===r)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var a=0,i=e.length,o=t.length,s=[];a<i||a<o;)("number"==typeof e[a]||e[a]instanceof Number)&&("number"==typeof t[a]||t[a]instanceof Number)?s[a]=e[a]+t[a]:s[a]=void 0===t[a]?e[a]:e[a]||t[a],a+=1;return s}return 0}var add=sum;function sub(e,t){var n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t))return"string"===n&&(e=parseInt(e,10)),"string"===r&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var a=0,i=e.length,o=t.length,s=[];a<i||a<o;)("number"==typeof e[a]||e[a]instanceof Number)&&("number"==typeof t[a]||t[a]instanceof Number)?s[a]=e[a]-t[a]:s[a]=void 0===t[a]?e[a]:e[a]||t[a],a+=1;return s}return 0}function mul(e,t){var n,r,a,i=_typeof$1(e),o=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(o,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(a=e.length,n=createTypedArray("float32",a),r=0;r<a;r+=1)n[r]=e[r]*t;return n}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,n=createTypedArray("float32",a),r=0;r<a;r+=1)n[r]=e*t[r];return n}return 0}function div(e,t){var n,r,a,i=_typeof$1(e),o=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(o,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(a=e.length,n=createTypedArray("float32",a),r=0;r<a;r+=1)n[r]=e[r]/t;return n}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,n=createTypedArray("float32",a),r=0;r<a;r+=1)n[r]=e/t[r];return n}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var n;t||(t=helperLengthArray);var r=Math.min(e.length,t.length),a=0;for(n=0;n<r;n+=1)a+=Math.pow(t[n]-e[n],2);return Math.sqrt(a)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,n,r=e[0],a=e[1],i=e[2],o=Math.max(r,a,i),s=Math.min(r,a,i),c=(o+s)/2;if(o===s)t=0,n=0;else{var l=o-s;switch(n=c>.5?l/(2-o-s):l/(o+s),o){case r:t=(a-i)/l+(a<i?6:0);break;case a:t=(i-r)/l+2;break;case i:t=(r-a)/l+4}t/=6}return[t,n,c,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t,n,r,a=e[0],i=e[1],o=e[2];if(0===i)t=o,r=o,n=o;else{var s=o<.5?o*(1+i):o+i-o*i,c=2*o-s;t=hue2rgb(c,s,a+1/3),n=hue2rgb(c,s,a),r=hue2rgb(c,s,a-1/3)}return[t,n,r,e[3]]}function linear(e,t,n,r,a){if(void 0!==r&&void 0!==a||(r=t,a=n,t=0,n=1),n<t){var i=n;n=t,t=i}if(e<=t)return r;if(e>=n)return a;var o,s=n===t?0:(e-t)/(n-t);if(!r.length)return r+(a-r)*s;var c=r.length,l=createTypedArray("float32",c);for(o=0;o<c;o+=1)l[o]=r[o]+(a[o]-r[o])*s;return l}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var n,r=t.length;e||(e=createTypedArray("float32",r));
vendor: 18,679 bytes, line 6
6var a=createTypedArray("float32",r),i=BMMath.random();for(n=0;n<r;n+=1)a[n]=e[n]+i*(t[n]-e[n]);return a}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,n,r){var a,i=e.length,o=shapePool.newElement();o.setPathData(!!r,i);var s,c,l=[0,0];for(a=0;a<i;a+=1)s=t&&t[a]?t[a]:l,c=n&&n[a]?n[a]:l,o.setTripleAt(e[a][0],e[a][1],c[0]+e[a][0],c[1]+e[a][1],s[0]+e[a][0],s[1]+e[a][1],a,!0);return o}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var n,r,a=this.pv.length?this.pv.length:1,i=createTypedArray("float32",a),o=Math.floor(5*time);for(n=0,r=0;n<o;){for(r=0;r<a;r+=1)i[r]+=-t+2*t*BMMath.random();n+=1}var s=5*time,c=s-Math.floor(s),l=createTypedArray("float32",a);if(a>1){for(r=0;r<a;r+=1)l[r]=this.pv[r]+i[r]+(-t+2*t*BMMath.random())*c;return l}return this.pv+i[0]+(-t+2*t*BMMath.random())*c}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,r,0]}function easeOut(e,t,n,r,a){return applyEase(easeOutBez,e,t,n,r,a)}function easeIn(e,t,n,r,a){return applyEase(easeInBez,e,t,n,r,a)}function ease(e,t,n,r,a){return applyEase(easeInOutBez,e,t,n,r,a)}function applyEase(e,t,n,r,a,i){void 0===a?(a=n,i=r):t=(t-n)/(r-n),t>1?t=1:t<0&&(t=0);var o=e(t);if($bm_isInstanceOfArray(a)){var s,c=a.length,l=createTypedArray("float32",c);for(s=0;s<c;s+=1)l[s]=(i[s]-a[s])*o+a[s];return l}return(i-a)*o+a}function nearestKey(e){var t,n,r,a=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(n=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,r=data.k[0].t;else{for(t=0;t<a-1;t+=1){if(e===data.k[t].t){n=t+1,r=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,r=data.k[t+1].t):(n=t+1,r=data.k[t].t);break}}-1===n&&(n=t+1,r=data.k[t].t)}else n=0,r=0;var i={};return i.index=n,i.time=r/elem.comp.globalData.frameRate,i}function key(e){var t,n,r;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var a=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=a.length,n=0;n<r;n+=1)t[n]=a[n],t.value[n]=a[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,n=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=n.length;for(e=0;e<t;e+=1)n[e].release();n.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===n.indexOf(e)&&n.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var n,r=createSizedArray(t.viewData.length),a=t.viewData.length;for(n=0;n<a;n+=1)r[n]=new e(t.viewData[n],t.masksProperties[n]);return function(e){for(n=0;n<a;){if(t.masksProperties[n].nm===e)return r[n];n+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(e,t,n){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(r){if(!e.numKeys)return 0;var a="";a="s"in t.keyframes[r-1]?t.keyframes[r-1].s:"e"in t.keyframes[r-2]?t.keyframes[r-2].e:t.keyframes[r-2].s;var i="unidimensional"===n?new Number(a):Object.assign({},a);return i.time=t.keyframes[r-1].t/t.elem.comp.globalData.frameRate,i.value="unidimensional"===n?a[0]:a,i},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function r(){return e}return function(a){return a?"unidimensional"===a.propType?function(t){t&&"pv"in t||(t=e);var r=1/t.mult,a=t.pv*r,i=new Number(a);return i.value=a,n(i,t,"unidimensional"),function(){return t.k&&t.getValue(),a=t.v*r,i.value!==a&&((i=new Number(a)).value=a,n(i,t,"unidimensional")),i}}(a):function(e){e&&"pv"in e||(e=t);var r=1/e.mult,a=e.data&&e.data.l||e.pv.length,i=createTypedArray("float32",a),o=createTypedArray("float32",a);return i.value=o,n(i,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<a;t+=1)o[t]=e.v[t]*r,i[t]=o[t];return i}}(a):r}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var n,r,a,i;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?i=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),r=ExpressionPropertyInterface(e.py),e.pz&&(a=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?i():[n(),r(),a?a():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.applyPoint(n,e)}function n(e,t){var n=this.getMatrix(t);return this.applyPoint(n,e)}function r(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.invertPoint(n,e)}function a(e,t){var n=this.getMatrix(t);return this.invertPoint(n,e)}function i(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function c(){return[1,1,1,1]}return function(l){var u;function d(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return d.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return d.effect;case"ADBE Text Properties":return d.textInterface;default:return null}}d.getMatrix=e,d.invertPoint=o,d.applyPoint=i,d.toWorld=n,d.toWorldVec=t,d.fromWorld=a,d.fromWorldVec=r,d.toComp=n,d.fromComp=s,d.sampleImage=c,d.sourceRectAtTime=l.sourceRectAtTime.bind(l),d._elem=l;var h=getDescriptor(u=TransformExpressionInterface(l.finalTransform.mProp),"anchorPoint");return Object.defineProperties(d,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:h,anchor_point:h,transform:{get:function(){return u}},active:{get:function(){return l.isInRange}}}),d.startTime=l.data.st,d.index=l.data.ind,d.source=l.data.refId,d.height=0===l.data.ty?l.data.h:100,d.width=0===l.data.ty?l.data.w:100,d.inPoint=l.data.ip/l.comp.globalData.frameRate,d.outPoint=l.data.op/l.comp.globalData.frameRate,d._name=l.data.nm,d.registerMaskInterface=function(e){d.mask=new MaskManagerInterface(e,l)},d.registerEffectsInterface=function(e){d.effect=e},d}}(),propertyGroupFactory=function(e,t){return function(n){return(n=void 0===n?1:n)<=0?e:t(n-1)}},PropertyInterface=function(e,t){var n={_name:e};return function(e){return(e=void 0===e?1:e)<=0?n:t(e-1)}},EffectsExpressionInterface=function(){function e(n,r,a,i){function o(e){for(var t=n.ef,r=0,a=t.length;r<a;){if(e===t[r].nm||e===t[r].mn||e===t[r].ix)return 5===t[r].ty?l[r]:l[r]();r+=1}throw new Error}var s,c=propertyGroupFactory(o,a),l=[],u=n.ef.length;for(s=0;s<u;s+=1)5===n.ef[s].ty?l.push(e(n.ef[s],r.effectElements[s],r.effectElements[s].propertyGroup,i)):l.push(t(r.effectElements[s],n.ef[s].ty,i,c));return"ADBE Color Control"===n.mn&&Object.defineProperty(o,"color",{get:function(){return l[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:c}}),o.enabled=0!==n.en,o.active=o.enabled,o}function t(e,t,n,r){var a=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===t?n.comp.compInterface(e.p.v):a()}}return{createEffectsInterface:function(t,n){if(t.effectsManager){var r,a=[],i=t.data.ef,o=t.effectsManager.effectElements.length;for(r=0;r<o;r+=1)a.push(e(i[r],t.effectsManager.effectElements[r],n,t));var s=t.data.ef||[],c=function(e){for(r=0,o=s.length;r<o;){if(e===s[r].nm||e===s[r].mn||e===s[r].ix)return a[r];r+=1}return null};return Object.defineProperty(c,"numProperties",{get:function(){return s.length}}),c}return null}}}(),ShapePathInterface=function(e,t,n){var r=t.sh;function a(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?a.path:null}var i=propertyGroupFactory(a,n);return r.setGroupProperty(PropertyInterface("Path",i)),Object.defineProperties(a,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:n}}),a},ShapeExpressionInterface=function(){function e(e,o,h){var p,f=[],m=e?e.length:0;for(p=0;p<m;p+=1)"gr"===e[p].ty?f.push(t(e[p],o[p],h)):"fl"===e[p].ty?f.push(n(e[p],o[p],h)):"st"===e[p].ty?f.push(a(e[p],o[p],h)):"tm"===e[p].ty?f.push(i(e[p],o[p],h)):"tr"===e[p].ty||("el"===e[p].ty?f.push(s(e[p],o[p],h)):"sr"===e[p].ty?f.push(c(e[p],o[p],h)):"sh"===e[p].ty?f.push(ShapePathInterface(e[p],o[p],h)):"rc"===e[p].ty?f.push(l(e[p],o[p],h)):"rd"===e[p].ty?f.push(u(e[p],o[p],h)):"rp"===e[p].ty?f.push(d(e[p],o[p],h)):"gf"===e[p].ty?f.push(r(e[p],o[p],h)):f.push((e[p],o[p],function(){return null})));return f}function t(t,n,r){var a=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return a.content;default:return a.transform}};a.propertyGroup=propertyGroupFactory(a,r);var i=function(t,n,r){var a,i=function(e){for(var t=0,n=a.length;t<n;){if(a[t]._name===e||a[t].mn===e||a[t].propertyIndex===e||a[t].ix===e||a[t].ind===e)return a[t];t+=1}return"number"==typeof e?a[e-1]:null};i.propertyGroup=propertyGroupFactory(i,r),a=e(t.it,n.it,i.propertyGroup),i.numProperties=a.length;var s=o(t.it[t.it.length-1],n.it[n.it.length-1],i.propertyGroup);return i.transform=s,i.propertyIndex=t.cix,i._name=t.nm,i}(t,n,a.propertyGroup),s=o(t.it[t.it.length-1],n.it[n.it.length-1],a.propertyGroup);return a.content=i,a.transform=s,Object.defineProperty(a,"_name",{get:function(){return t.nm}}),a.numProperties=t.np,a.propertyIndex=t.ix,a.nm=t.nm,a.mn=t.mn,a}function n(e,t,n){function r(e){return"Color"===e||"color"===e?r.color:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function r(e,t,n){function r(e){return"Start Point"===e||"start point"===e?r.startPoint:"End Point"===e||"end point"===e?r.endPoint:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",n)),t.e.setGroupProperty(PropertyInterface("End Point",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function a(e,t,n){var r,a=propertyGroupFactory(l,n),i=propertyGroupFactory(c,a);function o(n){Object.defineProperty(c,e.d[n].nm,{get:ExpressionPropertyInterface(t.d.dataProps[n].p)})}var s=e.d?e.d.length:0,c={};for(r=0;r<s;r+=1)o(r),t.d.dataProps[r].p.setGroupProperty(i);function l(e){return"Color"===e||"color"===e?l.color:"Opacity"===e||"opacity"===e?l.opacity:"Stroke Width"===e||"stroke width"===e?l.strokeWidth:null}
vendor: 18,389 bytes, line 6
6return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return c}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",a)),t.o.setGroupProperty(PropertyInterface("Opacity",a)),t.w.setGroupProperty(PropertyInterface("Stroke Width",a)),l}function i(e,t,n){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:null}var a=propertyGroupFactory(r,n);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",a)),t.e.setGroupProperty(PropertyInterface("End",a)),t.o.setGroupProperty(PropertyInterface("Offset",a)),r.propertyIndex=e.ix,r.propertyGroup=n,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}function o(e,t,n){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:null}var a=propertyGroupFactory(r,n);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",a)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",a)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",a)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",a)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",a)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",a)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",a))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",a)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=n,r}function s(e,t,n){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:null}var a=propertyGroupFactory(r,n);r.propertyIndex=e.ix;var i="tm"===t.sh.ty?t.sh.prop:t.sh;return i.s.setGroupProperty(PropertyInterface("Size",a)),i.p.setGroupProperty(PropertyInterface("Position",a)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(i.s)},position:{get:ExpressionPropertyInterface(i.p)},_name:{value:e.nm}}),r.mn=e.mn,r}function c(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?r.innerRoundness:null:r.innerRadius}var a=propertyGroupFactory(r,n),i="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,i.or.setGroupProperty(PropertyInterface("Outer Radius",a)),i.os.setGroupProperty(PropertyInterface("Outer Roundness",a)),i.pt.setGroupProperty(PropertyInterface("Points",a)),i.p.setGroupProperty(PropertyInterface("Position",a)),i.r.setGroupProperty(PropertyInterface("Rotation",a)),e.ir&&(i.ir.setGroupProperty(PropertyInterface("Inner Radius",a)),i.is.setGroupProperty(PropertyInterface("Inner Roundness",a))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(i.p)},rotation:{get:ExpressionPropertyInterface(i.r)},points:{get:ExpressionPropertyInterface(i.pt)},outerRadius:{get:ExpressionPropertyInterface(i.or)},outerRoundness:{get:ExpressionPropertyInterface(i.os)},innerRadius:{get:ExpressionPropertyInterface(i.ir)},innerRoundness:{get:ExpressionPropertyInterface(i.is)},_name:{value:e.nm}}),r.mn=e.mn,r}function l(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:null}var a=propertyGroupFactory(r,n),i="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,i.p.setGroupProperty(PropertyInterface("Position",a)),i.s.setGroupProperty(PropertyInterface("Size",a)),i.r.setGroupProperty(PropertyInterface("Rotation",a)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(i.p)},roundness:{get:ExpressionPropertyInterface(i.r)},size:{get:ExpressionPropertyInterface(i.s)},_name:{value:e.nm}}),r.mn=e.mn,r}function u(e,t,n){function r(t){return e.r.ix===t||"Round Corners 1"===t?r.radius:null}var a=propertyGroupFactory(r,n),i=t;return r.propertyIndex=e.ix,i.rd.setGroupProperty(PropertyInterface("Radius",a)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(i.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}function d(e,t,n){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:null}var a=propertyGroupFactory(r,n),i=t;return r.propertyIndex=e.ix,i.c.setGroupProperty(PropertyInterface("Copies",a)),i.o.setGroupProperty(PropertyInterface("Offset",a)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(i.c)},offset:{get:ExpressionPropertyInterface(i.o)},_name:{value:e.nm}}),r.mn=e.mn,r}return function(t,n,r){var a;function i(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?r:a[e-1];for(var t=0,n=a.length;t<n;){if(a[t]._name===e)return a[t];t+=1}return null}return i.propertyGroup=propertyGroupFactory(i,(function(){return r})),a=e(t,n,i.propertyGroup),i.numProperties=a.length,i._name="Contents",i}}(),TextExpressionInterface=function(e){var t;function n(e){return"ADBE Text Document"===e?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var n=e.textProperty.currentData.t;return t&&n===t.value||((t=new String(n)).value=n||new String(n),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),n};function _typeof(e){return _typeof="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},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",n=e.getFootageData();function r(e){if(n[e])return t=e,"object"===_typeof(n=n[e])?r:n;var a=e.indexOf(t);if(-1!==a){var i=parseInt(e.substr(a+t.length),10);return"object"===_typeof(n=n[i])?r:n}return""}return function(){return t="",n=e.getFootageData(),r}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,n){t.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(e,t,n).bind(n)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),n=this.getValueAtTime(e+-.01),r=0;if(t.length){var a;for(a=0;a<t.length;a+=1)r+=Math.pow(n[a]-t[a],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,n,r=-.001,a=this.getValueAtTime(e),i=this.getValueAtTime(e+r);if(a.length)for(t=createTypedArray("float32",a.length),n=0;n<a.length;n+=1)t[n]=(i[n]-a[n])/r;else t=(i-a)/r;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,n){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var r,a,i,o,s,c=this.comp.renderedFrame,l=this.keyframes,u=l[l.length-1].t;if(c<=u)return this.pv;if(n?a=u-(r=t?Math.abs(u-this.elem.comp.globalData.frameRate*t):Math.max(0,u-this.elem.data.ip)):((!t||t>l.length-1)&&(t=l.length-1),r=u-(a=l[l.length-1-t].t)),"pingpong"===e){if(Math.floor((c-a)/r)%2!=0)return this.getValueAtTime((r-(c-a)%r+a)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(a/this.comp.globalData.frameRate,0),h=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((c-a)%r+a)/this.comp.globalData.frameRate,0),f=Math.floor((c-a)/r);if(this.pv.length){for(o=(s=new Array(d.length)).length,i=0;i<o;i+=1)s[i]=(h[i]-d[i])*f+p[i];return s}return(h-d)*f+p}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),v=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,i=0;i<o;i+=1)s[i]=m[i]+(m[i]-v[i])*((c-u)/this.comp.globalData.frameRate)/5e-4;return s}return m+(c-u)/.001*(m-v)}}return this.getValueAtTime(((c-a)%r+a)/this.comp.globalData.frameRate,0)}function t(e,t,n){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var r,a,i,o,s,c=this.comp.renderedFrame,l=this.keyframes,u=l[0].t;if(c>=u)return this.pv;if(n?a=u+(r=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-u)):((!t||t>l.length-1)&&(t=l.length-1),r=(a=l[t].t)-u),"pingpong"===e){if(Math.floor((u-c)/r)%2==0)return this.getValueAtTime(((u-c)%r+u)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),h=this.getValueAtTime(a/this.comp.globalData.frameRate,0),p=this.getValueAtTime((r-(u-c)%r+u)/this.comp.globalData.frameRate,0),f=Math.floor((u-c)/r)+1;if(this.pv.length){for(o=(s=new Array(d.length)).length,i=0;i<o;i+=1)s[i]=p[i]-(h[i]-d[i])*f;return s}return p-(h-d)*f}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),v=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,i=0;i<o;i+=1)s[i]=m[i]+(m[i]-v[i])*(u-c)/.001;return s}return m+(m-v)*(u-c)/.001}}return this.getValueAtTime((r-((u-c)%r+u))/this.comp.globalData.frameRate,0)}function n(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var n,r,a=this.comp.renderedFrame/this.comp.globalData.frameRate,i=a-e,o=t>1?(a+e-i)/(t-1):1,s=0,c=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(r=this.getValueAtTime(i+s*o),this.pv.length)for(c=0;c<this.pv.length;c+=1)n[c]+=r[c];else n+=r;s+=1}if(this.pv.length)for(c=0;c<this.pv.length;c+=1)n[c]/=t;else n/=t;return n}function r(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var n=this.a.getValueAtTime(e);t.translate(-n[0]*this.a.mult,-n[1]*this.a.mult,n[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(e);t.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var a=this.sk.getValueAtTime(e),i=this.sa.getValueAtTime(e);t.skewFromAxis(-a*this.sk.mult,i*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var o=this.r.getValueAtTime(e);t.rotate(-o*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),c=this.ry.getValueAtTime(e),l=this.rx.getValueAtTime(e),u=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(c*this.ry.mult).rotateX(l*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var d=this.px.getValueAtTime(e),h=this.py.getValueAtTime(e);if(this.data.p.z){var p=this.pz.getValueAtTime(e);t.translate(d*this.px.mult,h*this.py.mult,-p*this.pz.mult)}else t.translate(d*this.px.mult,h*this.py.mult,0)}else{var f=this.p.getValueAtTime(e);t.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return t}function a(){return this.v.clone(new Matrix)}var i=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,n){var o=i(e,t,n);return o.dynamicProperties.length?o.getValueAtTime=r.bind(o):o.getValueAtTime=a.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(r,a,i,s,c){var l=o(r,a,i,s,c);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=e,l.loopIn=t,l.smooth=n,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===a.a?a.k.length:0,l.propertyIndex=a.ix;var u=0;return 0!==i&&(u=createTypedArray("float32",1===a.a?a.k[0].s.length:a.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(r,a,l),l.k&&c.addDynamicProperty(l),l};var s=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function l(){}l.prototype={vertices:function(e,t){this.k&&this.getValue();var n,r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0));var a=r._length,i=r[e],o=r.v,s=createSizedArray(a);for(n=0;n<a;n+=1)s[n]="i"===e||"o"===e?[i[n][0]-o[n][0],i[n][1]-o[n][1]]:[i[n][0],i[n][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(n));for(var r,a=this._segmentsLength,i=a.lengths,o=a.totalLength*e,s=0,c=i.length,l=0;s<c;){if(l+i[s].addedLength>o){var u=s,d=n.c&&s===c-1?0:s+1,h=(o-l)/i[s].addedLength;r=bez.getPointInSegment(n.v[u],n.v[d],n.o[u],n.i[d],h,i[s]);break}l+=i[s].addedLength,s+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(e,t,n){1==e?e=this.v.c:0==e&&(e=.999);var r=this.pointOnPath(e,t),a=this.pointOnPath(e+.001,t),i=a[0]-r[0],o=a[1]-r[1],s=Math.sqrt(Math.pow(i,2)+Math.pow(o,2));return 0===s?[0,0]:"tangent"===n?[i/s,o/s]:[-o/s,i/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([l],s),extendPrototype([l],c),c.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},c.prototype.initiateExpression=ExpressionManager.initiateExpression;var u=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,n,r,a){var i=u(e,t,n,r,a);return i.propertyIndex=t.ix,i.lock=!1,3===n?expressionHelpers.searchExpressions(e,t.pt,i):4===n&&expressionHelpers.searchExpressions(e,t.ks,i),i.k&&e.addDynamicProperty(i),i}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var n=this.calculateExpression(t);if(e.t!==n){var r={};return this.copyData(r,e),r.t=n.toString(),r.__complete=!1,r}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var n,r,a=createNS("feMerge");for(a.setAttribute("result",e),r=0;r<t.length;r+=1)(n=createNS("feMergeNode")).setAttribute("in",t[r]),a.appendChild(n),a.appendChild(n);return a}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,n,r,a){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=i,i.setAttribute("result",r+"_tint_1"),e.appendChild(i),(i=createNS("feColorMatrix")).setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",r+"_tint_2"),e.appendChild(i),this.matrixFilter=i;var o=this.createMergeNode(r,[a,r+"_tint_1",r+"_tint_2"]);e.appendChild(o)}function SVGFillFilter(e,t,n,r){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",r),e.appendChild(a),this.matrixFilter=a}function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}function SVGTritoneFilter(e,t,n,r){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.a
vendor: 5,131 bytes, line 6
6ppendChild(a);var i=createNS("feComponentTransfer");i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("result",r),this.matrixFilter=i;var o=createNS("feFuncR");o.setAttribute("type","table"),i.appendChild(o),this.feFuncR=o;var s=createNS("feFuncG");s.setAttribute("type","table"),i.appendChild(s),this.feFuncG=s;var c=createNS("feFuncB");c.setAttribute("type","table"),i.appendChild(c),this.feFuncB=c,e.appendChild(i)}function SVGProLevelsFilter(e,t,n,r){this.filterManager=t;var a=this.filterManager.effectElements,i=createNS("feComponentTransfer");(a[10].p.k||0!==a[10].p.v||a[11].p.k||1!==a[11].p.v||a[12].p.k||1!==a[12].p.v||a[13].p.k||0!==a[13].p.v||a[14].p.k||1!==a[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",i)),(a[17].p.k||0!==a[17].p.v||a[18].p.k||1!==a[18].p.v||a[19].p.k||1!==a[19].p.v||a[20].p.k||0!==a[20].p.v||a[21].p.k||1!==a[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",i)),(a[24].p.k||0!==a[24].p.v||a[25].p.k||1!==a[25].p.v||a[26].p.k||1!==a[26].p.v||a[27].p.k||0!==a[27].p.v||a[28].p.k||1!==a[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",i)),(a[31].p.k||0!==a[31].p.v||a[32].p.k||1!==a[32].p.v||a[33].p.k||1!==a[33].p.v||a[34].p.k||0!==a[34].p.v||a[35].p.k||1!==a[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",i)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(i.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(i)),(a[3].p.k||0!==a[3].p.v||a[4].p.k||1!==a[4].p.v||a[5].p.k||1!==a[5].p.v||a[6].p.k||0!==a[6].p.v||a[7].p.k||1!==a[7].p.v)&&((i=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("result",r),e.appendChild(i),this.feFuncRComposed=this.createFeFunc("feFuncR",i),this.feFuncGComposed=this.createFeFunc("feFuncG",i),this.feFuncBComposed=this.createFeFunc("feFuncB",i))}function SVGDropShadowEffect(e,t,n,r,a){var i=t.container.globalData.renderConfig.filterSize,o=t.data.fs||i;e.setAttribute("x",o.x||i.x),e.setAttribute("y",o.y||i.y),e.setAttribute("width",o.width||i.width),e.setAttribute("height",o.height||i.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",r+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",r+"_drop_shadow_1"),c.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var l=createNS("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=l,e.appendChild(l);var u=createNS("feComposite");u.setAttribute("in",r+"_drop_shadow_3"),u.setAttribute("in2",r+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",r+"_drop_shadow_4"),e.appendChild(u);var d=this.createMergeNode(r,[r+"_drop_shadow_4",a]);e.appendChild(d)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,n,r,a=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,n=0):r=1+(n=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);n<r;n+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:n});if(3===this.filterManager.effectElements[10].p.v){var i=createNS("mask"),o=createElementID();i.setAttribute("id",o),i.setAttribute("mask-type","alpha"),i.appendChild(t),this.elem.globalData.defs.appendChild(i);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+o+")");a[0];)s.appendChild(a[0]);this.elem.layerElement.appendChild(s),this.masker=i,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(a=this.elem.layerElement.children||this.elem.layerElement.childNodes;a.length;)this.elem.layerElement.removeChild(a[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var n,r,a=this.paths.length;for(t=0;t<a;
vendor: 4,652 bytes, line 6
6t+=1)if(-1!==this.paths[t].m&&(n=this.elem.maskManager.viewData[this.paths[t].m],r=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&r.setAttribute("d",n.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var i;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),c=r.getTotalLength();i="0 0 0 "+c*o+" ";var l,u=c*(s-o),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,h=Math.floor(u/d);for(l=0;l<h;l+=1)i+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";i+="0 "+10*c+" 0 0"}else i="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",i)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,a=r[0]+" "+n[0]+" "+t[0],i=r[1]+" "+n[1]+" "+t[1],o=r[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",a),this.feFuncG.setAttribute("tableValues",i),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,r,a){for(var i,o,s=0,c=Math.min(e,t),l=Math.max(e,t),u=Array.call(null,{length:256}),d=0,h=a-r,p=t-e;s<=256;)o=(i=s/256)<=c?p<0?a:r:i>=l?p<0?r:a:r+h*Math.pow((i-e)/p,1/n),u[d]=o,d+=1,s+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,a=n*Math.cos(r),i=n*Math.sin(r);
vendor: 4,407 bytes, line 6
6this.feOffset.setAttribute("dx",a),this.feOffset.setAttribute("dy",i)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(e,t,n,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var a=createNS("feGaussianBlur");a.setAttribute("result",r),e.appendChild(a),this.feGaussianBlur=a}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var r,a=n.children,i=0,o=a.length;i<o&&a[i]!==e.layerElement;)i+=1;i<=o-2&&(r=a[i+1]);var s=createNS("use");s.setAttribute("href","#"+t),r?n.insertBefore(s,r):n.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var a=e.globalData.defs;a.appendChild(r);var i=createNS("symbol");i.setAttribute("id",n),this.replaceInParent(t,n),i.appendChild(t.layerElement),a.appendChild(i);var o=createNS("use");o.setAttribute("href","#"+n),r.appendChild(o),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,r=t.length;n<r;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=3==n?0:t,a=2==n?0:t;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+a);var i=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",i)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,n=t[0].p.v,r=t[1].p.v,a=1===t[2].p.v,i=t[3].p.v,o=a?i:t[4].p.v,s=t[5].p.v,c=t[6].p.v,l=t[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(.01*o,.01*i,1),this.matrix.rotate(-l*degToRads),this.matrix.skewFromAxis(-s*degToRads,(c+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},49922:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(82284),a=n(92327);function i(e){var t=(0,a.A)(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},50096:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;var r=n(92070),a=n(10281);t.max=function(e){return r.reduce(a.isFunction(e)?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}},50439:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsArgArrayOrObject=void 0;var n=Array.isArray,r=Object.getPrototypeOf,a=Object.prototype,i=Object.keys;t.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(n(t))return{args:t,keys:null};if((s=t)&&"object"==typeof s&&r(s)===a){var o=i(t);return{args:o.map((function(e){return t[e]})),keys:o}}}var s;return{args:e,keys:null}}},50597:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;var r=n(62326),a=n(85345),i=n(81713);t.timeoutWith=function(e,t,n){var o,s,c;if(n=null!=n?n:r.async,a.isValidDate(e)?o=e:"number"==typeof e&&(s=e),!t)throw new TypeError("No observable provided to switch to");if(c=function(){return t},null==o&&null==s)throw new TypeError("No timeout provided.");return i.timeout({first:o,each:s,scheduler:n,with:c})}},50839:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUnsubscribedError=void 0;var r=n(9619);t.ObjectUnsubscribedError=r.createErrorClass((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}))},50875: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)});Object.defineProperty(t,"__esModule",{value:!0}
vendor: 1,351 bytes, line 6
6),t.VirtualAction=t.VirtualTimeScheduler=void 0;var i=n(64772),o=n(69879),s=function(e){function t(t,n){void 0===t&&(t=c),void 0===n&&(n=1/0);var r=e.call(this,t,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return a(t,e),t.prototype.flush=function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(n(19533).AsyncScheduler);t.VirtualTimeScheduler=s;var c=function(e){function t(t,n,r){void 0===r&&(r=t.index+=1);var a=e.call(this,t,n)||this;return a.scheduler=t,a.work=n,a.index=r,a.active=!0,a.index=t.index=r,a}return a(t,e),t.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var a=new t(this.scheduler,this.work);return this.add(a),a.schedule(n,r)}return o.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,n,r){void 0===r&&(r=0),this.delay=e.frame+r;var a=e.actions;return a.push(this),a.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>
6t.index?1:-1:e.delay>t.delay?1:-1},t}(i.AsyncAction);t.VirtualAction=c},51071:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;var r=n(48051);t.fromSubscribable=function(e){return new r.Observable((function(t){return e.subscribe(t)}))}},51608:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;var r=n(62326),a=n(88877),i=n(5825);t.auditTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),a.audit((function(){return i.timer(e,t)}))}},51665:function(e,t,n){n(74692)((function(){if(document.querySelector(".generic-header")){var e=document.querySelector(".generic-header"),t=e.offsetHeight,n=window.pageYOffset;window.addEventListener("scroll",(function(){var r=window.pageYOffset;r>n&&r>t?e.style.top="-".concat(t,"px"):n===r||(e.style.top="0"),n=r}))}}))},51815:function(){var e=null,t=null;function n(n){if(n.addEventListener("touchstart",(function(n){var r;r=function(e){return e.touches||e.originalEvent.touches}(n)[0],e=r.clientX,t=r.clientY})),n.addEventListener("touchmove",(function(r){!function(n,r){if(e&&t){var a=n.touches[0].clientX,i=n.touches[0].clientY,o=e-a,s=t-i;Math.abs(o)>Math.abs(s)?o>0?(document.querySelector("body").classList.add("stop-scrolling"),r.closest(".cmp-carousel").querySelector(".cmp-carousel__action--next").click(),(s>0||s<0)&&document.querySelector("body").classList.add("stop-scrolling")):(document.querySelector("body").classList.add("stop-scrolling"),r.closest(".cmp-carousel").querySelector(".cmp-carousel__action--previous").click(),(s>0||s<0)&&document.querySelector("body").classList.add("stop-scrolling")):(s>0||s<0)&&document.querySelector("body").classList.remove("stop-scrolling"),e=null,t=null}}(r,n)})),n.addEventListener("touchend",(function(e){document.querySelector("body").classList.remove("stop-scrolling")})),n.querySelector(".amag-contentTeaserS")&&"none"===n.closest(".cmp-carousel").querySelector(".cmp-carousel__actions").style.display){var r=n,a=n.cloneNode(!0);r.parentNode.replaceChild(a,r)}}document.querySelectorAll(".cmp-carousel__items").forEach((function(e){return n(e)})),Element.prototype.ActivateSliderSwipeActions=function(){n(this)}},51914:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});const r=n(19470).K7.ajax},52043:function(e,t,n){"use strict";var r=n(52754);n(72461),n(77217);var a=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))};var i=function(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var a=r.length;function i(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var o=n.then;if("function"==typeof o)return void o.call(n,(function(t){i(e,t)}),(function(n){r[e]={status:"rejected",reason:n},0==--a&&t(r)}))}r[e]={status:"fulfilled",value:n},0==--a&&t(r)}for(var o=0;o<r.length;o++)i(o,r[o])}))};function o(e,t){this.name="AggregateError",this.errors=e,this.message=t||""}o.prototype=Error.prototype;var s=function(e){var t=this;return new t((function(n,r){if(!e||void 0===e.length)return r(new TypeError("Promise.any accepts an array"));var a=Array.prototype.slice.call(e);if(0===a.length)return r();for(var i=[],s=0;s<a.length;s++)try{t.resolve(a[s]).then(n).catch((function(e){i.push(e),i.length===a.length&&r(new o(i,"All promises were rejected"))}))}catch(e){r(e)}}))},c=setTimeout;function l(e){return Boolean(e&&void 0!==e.length)}function u(){}function d(e){if(!(this instanceof d))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],g(e,this)}function h(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,d._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void f(t.promise,e)}p(t.promise,r)}else(1===e._state?p:f)(t.promise,e._value)}))):e._deferreds.push(t)}function p(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof d)return e._state=3,e._value=t,void m(e);
6if("function"==typeof n)return void g((r=n,a=t,function(){r.apply(a,arguments)}),e)}e._state=1,e._value=t,m(e)}catch(t){f(e,t)}var r,a}function f(e,t){e._state=2,e._value=t,m(e)}function m(e){2===e._state&&0===e._deferreds.length&&d._immediateFn((function(){e._handled||d._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)h(e,e._deferreds[t]);e._deferreds=null}function v(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function g(e,t){var n=!1;try{e((function(e){n||(n=!0,p(t,e))}),(function(e){n||(n=!0,f(t,e))}))}catch(e){if(n)return;n=!0,f(t,e)}}d.prototype.catch=function(e){return this.then(null,e)},d.prototype.then=function(e,t){var n=new this.constructor(u);return h(this,new v(e,t,n)),n},d.prototype.finally=a,d.all=function(e){return new d((function(t,n){if(!l(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var a=r.length;function i(e,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,(function(t){i(e,t)}),n)}r[e]=o,0==--a&&t(r)}catch(e){n(e)}}for(var o=0;o<r.length;o++)i(o,r[o])}))},d.any=s,d.allSettled=i,d.resolve=function(e){return e&&"object"==typeof e&&e.constructor===d?e:new d((function(t){t(e)}))},d.reject=function(e){return new d((function(t,n){n(e)}))},d.race=function(e){return new d((function(t,n){if(!l(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,a=e.length;r<a;r++)d.resolve(e[r]).then(t,n)}))},d._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){c(e,0)},d._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var y=d,_=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("unable to locate global object")}();"function"!=typeof _.Promise?_.Promise=y:(_.Promise.prototype.finally||(_.Promise.prototype.finally=a),_.Promise.allSettled||(_.Promise.allSettled=i),_.Promise.any||(_.Promise.any=s));n(33078),n(51815),n(4625);var b=n(82284),w=n(74692);!function(){var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();!function(t){var n="ekkoLightbox",r=t.fn[n],a={title:"Titel",footer:"Footer",maxWidth:9999,maxHeight:9999,showArrows:!0,wrapping:!0,type:null,alwaysShowClose:!1,loadingMessage:'<div class="ekko-lightbox-loader"><div><div></div><div></div></div></div>',leftArrow:"<span>❮</span>",rightArrow:"<span>❯</span>",strings:{close:"Close",fail:"Failed to load image:",type:"Could not detect remote target type. Force the type using data-type"},doc:document,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNavigate:function(){},onContentLoaded:function(){}},i=function(){function n(e,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._config=t.extend({},a,r),this._$modalArrows=null,this._galleryIndex=0,this._galleryName=null,this._padding=null,this._border=null,this._titleIsShown=!1,this._footerIsShown=!1,this._wantedWidth=0,this._wantedHeight=0,this._touchstartX=0,this._touchendX=0,this._modalId="ekkoLightbox-".concat(Math.floor(1e3*Math.random()+1)),this._$element=e instanceof w?e:t(e),this._isBootstrap3=3==t.fn.modal.Constructor.VERSION[0];var o='<button type="button" class="close" data-dismiss="modal" aria-label="'+this._config.strings.close+'"><span aria-hidden="true">×</span></button>',s='<div class="modal-header"><h4 class="modal-title"> </h4>'.concat(o,"</div>"),c='<div class="modal-footer">'.concat(this._config.footer||" ","</div>"),l='<div class="modal-dialog" role="document"><div class="modal-content">'.concat(s).concat('<div class="modal-body"><div class="ekko-lightbox-container"><div class="ekko-lightbox-item fade in show"></div><div class="ekko-lightbox-item fade"></div></div></div>').concat(c,"</div></div>");t(this._config.doc.body).append('<div id="'.concat(this._modalId,'" class="ekko-lightbox modal fade" tabindex="-1" tabindex="-1" role="dialog" aria-hidden="true">').concat(l,"</div>")),this._$modal=t("#".concat(this._modalId),this._config.doc),this._$modalDialog=this._$modal.find(".modal
6-dialog").first(),this._$modalContent=this._$modal.find(".modal-content").first(),this._$modalBody=this._$modal.find(".modal-body").first(),this._$modalHeader=this._$modal.find(".modal-header").first(),this._$modalFooter=this._$modal.find(".modal-footer").first(),this._$lightboxContainer=this._$modalBody.find(".ekko-lightbox-container").first(),this._$lightboxBodyOne=this._$lightboxContainer.find("> div:first-child").first(),this._$lightboxBodyTwo=this._$lightboxContainer.find("> div:last-child").first(),this._border=this._calculateBorders(),this._padding=this._calculatePadding(),this._galleryName=this._$element.data("gallery"),this._galleryName&&(this._$galleryItems=t(document.body).find('*[data-gallery="'.concat(this._galleryName,'"]')),this._galleryIndex=this._$galleryItems.index(this._$element),t(document).on("keydown.ekkoLightbox",this._navigationalBinder.bind(this)),this._config.showArrows&&this._$galleryItems.length>1&&(this._$lightboxContainer.append('<div class="ekko-lightbox-nav-overlay"><a href="#">'.concat(this._config.leftArrow,'</a><a href="#">').concat(this._config.rightArrow,"</a></div>")),this._$modalArrows=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay").first(),this._$lightboxContainer.on("click","a:first-child",(function(e){return e.preventDefault(),i.navigateLeft()})),this._$lightboxContainer.on("click","a:last-child",(function(e){return e.preventDefault(),i.navigateRight()}))),this.updateNavigation()),this._$modal.on("show.bs.modal",this._config.onShow.bind(this)).on("shown.bs.modal",(function(){return i._toggleLoading(!0),i._handle(),i._config.onShown.call(i)})).on("hide.bs.modal",this._config.onHide.bind(this)).on("hidden.bs.modal",(function(){return i._galleryName&&(t(document).off("keydown.ekkoLightbox"),t(window).off("resize.ekkoLightbox")),i._$modal.remove(),i._config.onHidden.call(i)})).modal(this._config),t(window).on("resize.ekkoLightbox",(function(){i._resize(i._wantedWidth,i._wantedHeight)})),this._$lightboxContainer.on("touchstart",(function(){i._touchstartX=event.changedTouches[0].screenX})).on("touchend",(function(){i._touchendX=event.changedTouches[0].screenX,i._swipeGesure()}))}return e(n,null,[{key:"Default",get:function(){return a}}]),e(n,[{key:"element",value:function(){return this._$element}},{key:"modal",value:function(){return this._$modal}},{key:"navigateTo",value:function(e){if(e<0||e>this._$galleryItems.length-1)return this;this._galleryIndex=e,this.updateNavigation(),this._$element=t(this._$galleryItems.get(this._galleryIndex)),this._handle()}},{key:"navigateLeft",value:function(){if(this._$galleryItems&&1!==this._$galleryItems.length){if(0===this._galleryIndex){if(!this._config.wrapping)return;this._galleryIndex=this._$galleryItems.length-1}else this._galleryIndex--;return this._config.onNavigate.call(this,"left",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"navigateRight",value:function(){if(this._$galleryItems&&1!==this._$galleryItems.length){if(this._galleryIndex===this._$galleryItems.length-1){if(!this._config.wrapping)return;this._galleryIndex=0}else this._galleryIndex++;return this._config.onNavigate.call(this,"right",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"updateNavigation",value:function(){var e=this._galleryIndex+1,n=(t(".modal-footer").innerText,this._$galleryItems[this._galleryIndex].dataset.footertext||!1),r=n?'<div class="footerText">'.concat(n,"</div>"):"";if(this._$galleryItems.length>1?t(".modal-footer").html("".concat(e," / ").concat(this._$galleryItems.length).concat(r)):t(".modal-footer").html(r),!this._config.wrapping){var a=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay");0===this._galleryIndex?a.find("a:first-child").addClass("disabled"):a.find("a:first-child").removeClass("disabled"),this._galleryIndex===this._$galleryItems.length-1?a.find("a:last-child").addClass("disabled"):a.find("a:last-child").removeClass("disabled")}}},{key:"close",value:function(){return this._$modal.modal("hide")}},{key:"_navigationalBinder",value:function(e){return 39===(e=e||window.event).keyCode?this.navigateRight():37===e.ke
6yCode?this.navigateLeft():void 0}},{key:"_detectRemoteType",value:function(e,t){return!(t=t||!1)&&this._isImage(e)&&(t="image"),!t&&this._getYoutubeId(e)&&(t="youtube"),!t&&this._getVimeoId(e)&&(t="vimeo"),!t&&this._getInstagramId(e)&&(t="instagram"),("audio"==t||"video"==t||!t&&this._isMedia(e))&&(t="media"),(!t||["image","youtube","vimeo","instagram","media","url"].indexOf(t)<0)&&(t="url"),t}},{key:"_getRemoteContentType",value:function(e){return t.ajax({type:"HEAD",url:e,async:!1}).getResponseHeader("Content-Type")}},{key:"_isImage",value:function(e){return e&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)}},{key:"_isMedia",value:function(e){return e&&e.match(/(\.(mp3|mp4|ogg|webm|wav)((\?|#).*)?$)/i)}},{key:"_containerToUse",value:function(){var e=this,t=this._$lightboxBodyTwo,n=this._$lightboxBodyOne;return this._$lightboxBodyTwo.hasClass("in")&&(t=this._$lightboxBodyOne,n=this._$lightboxBodyTwo),n.removeClass("in show"),setTimeout((function(){e._$lightboxBodyTwo.hasClass("in")||e._$lightboxBodyTwo.empty(),e._$lightboxBodyOne.hasClass("in")||e._$lightboxBodyOne.empty()}),500),t.addClass("in show"),t}},{key:"_handle",value:function(){var e=this._containerToUse();this._updateTitleAndFooter();var t=this._$element.attr("data-remote")||this._$element.attr("href"),n=this._detectRemoteType(t,this._$element.attr("data-type")||!1);if(["image","youtube","vimeo","instagram","media","url"].indexOf(n)<0)return this._error(this._config.strings.type);switch(n){case"image":this._preloadImage(t,e),this._preloadImageByIndex(this._galleryIndex,3);break;case"youtube":this._showYoutubeVideo(t,e);break;case"vimeo":this._showVimeoVideo(this._getVimeoId(t),e);break;case"instagram":this._showInstagramVideo(this._getInstagramId(t),e);break;case"media":this._showHtml5Media(t,e);break;default:this._loadRemoteContent(t,e)}return this}},{key:"_getYoutubeId",value:function(e){if(!e)return!1;var t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return!(!t||11!==t[2].length)&&t[2]}},{key:"_getVimeoId",value:function(e){return!!(e&&e.indexOf("vimeo")>0)&&e}},{key:"_getInstagramId",value:function(e){return!!(e&&e.indexOf("instagram")>0)&&e}},{key:"_toggleLoading",value:function(e){return(e=e||!1)?(this._$modalDialog.css("display","none"),this._$modal.removeClass("in show"),t(".modal-backdrop").append(this._config.loadingMessage)):(this._$modalDialog.css("display","block"),this._$modal.addClass("in show"),t(".modal-backdrop").find(".ekko-lightbox-loader").remove()),this}},{key:"_calculateBorders",value:function(){return{top:this._totalCssByAttribute("border-top-width"),right:this._totalCssByAttribute("border-right-width"),bottom:this._totalCssByAttribute("border-bottom-width"),left:this._totalCssByAttribute("border-left-width")}}},{key:"_calculatePadding",value:function(){return{top:this._totalCssByAttribute("padding-top"),right:this._totalCssByAttribute("padding-right"),bottom:this._totalCssByAttribute("padding-bottom"),left:this._totalCssByAttribute("padding-left")}}},{key:"_totalCssByAttribute",value:function(e){return parseInt(this._$modalDialog.css(e),10)+parseInt(this._$modalContent.css(e),10)+parseInt(this._$modalBody.css(e),10)}},{key:"_updateTitleAndFooter",value:function(){var e=this._$element.data("title")||"",t=this._$element.data("footer")||"";return this._titleIsShown=!1,e||this._config.alwaysShowClose?(this._titleIsShown=!0,this._$modalHeader.css("display","").find(".modal-title").html(e||" ")):this._$modalHeader.css("display","none"),this._footerIsShown=!1,t?(this._footerIsShown=!0,this._$modalFooter.css("display","").html(t)):this._$modalFooter.css("display","none"),this}},{key:"_showYoutubeVideo",value:function(e,t){var n=this._getYoutubeId(e),r=e.indexOf("&")>0?e.substr(e.indexOf("&")):"",a=this._$element.data("width")||560,i=this._$element.data("height")||a/(560/315);return this._showVideoIframe("//www.youtube.com/embed/".concat(n,"?badge=0&autoplay=1&html5=1").concat(r),a,i,t)}},{key:"_showVimeoVideo",value:function(e,t){var n=this._$element.data("width")||500,r=this._$element.data("height")||n/(560/315);return this._showVideoIframe("".concat(e,"?autoplay=1"),n,r,t)}},{key:"_showInstagramVideo",value:function(e,t){var n=this._$element.data("width")||612,r=n+80;return e="/"!==e.substr(-1)?"".concat(e,"/"):e,t.html('<iframe width="'.concat(n,'" height="').concat(r,'" src="').concat(e,'embed/" frameborder="0" allowfullscreen></iframe>')),this._resize(n,r),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showVideoIframe",value:function(e,t,n,r){return n=n||t,r.html('<div class="embed-responsive embed-responsive-16by9"><iframe width="'.concat(t,'" height="').concat(n,'" src="').concat(e,'" frameborder="0" allowfullscreen class="embed-responsive-item"></iframe></div>')),this._resize(t,n),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showHtml5Media",value:function(e,t){var n=this._getRemoteContentType(e);if(!n)return this._error(this._config.strings.type);var r="";r=n.indexOf("audio")>0?"audio":"video";var a=this._$element.data("width")||560,i=this._$element.data("height")||a/(560/315);return t.html('<div class="embed-responsive embed-responsive-16by9"><'.concat(r,' width="').concat(a,'" height="').concat(i,'" preload="auto" autoplay controls class="embed-responsive-item"><source src="').concat(e,'" type="').concat(n,'">').concat(this._config.strings.type,"</").concat(r,"></div>")),this._resize(a,i),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_loadRemoteContent",value:function(e,n){var r=this,a=this._$element.data("width")||560,i=this._$element.data("height")||560,o=this._$element.data("disableExternalCheck")||!1;return this._toggleLoading(!1),o||this._isExternal(e)?(n.html('<iframe src="'.concat(e,'" frameborder="0" allowfullscreen></iframe>')),this._config.onContentLoaded.call(this)):n.load(e,t.proxy((function(){return r._$element.trigger("loaded.bs.modal")}))),this._$modalArrows&&this._$modalArrows.css("display","none"),this._resize(a,i),this}},{key:"_isExternal",value:function(e){var t=e.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return"string"==typeof t[1]&&t[1].length>0&&t[1].toLowerCase()!==location.protocol||"string"==typeof t[2]&&t[2].length>0&&t[2].replace(new RegExp(":(".concat({"http:":80,"https:":443}[location.protocol],")?$")),"")!==location.host}},{key:"_error",value:function(e){return console.error(e),this._containerToUse().html(e),this._resize(300,300),this}},{key:"_preloadImageByIndex",value:function(e,n){if(this._$galleryItems){var r=t(this._$galleryItems.get(e),!1);if(void 0!==r){var a=r.attr("data-remote")||r.attr("href");return("image"===r.attr("data-type")||this._isImage(a))&&this._preloadImage(a,!1),n>0?this._preloadImageByIndex(e+1,n-1):void 0}}}},{key:"_preloadImage",value:function(e,n){var r=this;n=n||!1;var a,i=new Image;return n&&(a=setTimeout((function(){n.append(r._config.loadingMessage)}),200),i.onload=function(){a&&clearTimeout(a),a=null;var e=t("<img />");return e.attr("src",i.src),e.addClass("img-fluid"),e.css("width","100%"),n.html(e),r._$modalArrows&&r._$modalArrows.css("display",""),r._resize(i.width,i.height),r._toggleLoading(!1),r._config.onContentLoaded.call(r)},i.onerror=function(){return r._toggleLoading(!1),r._error("".concat(r._config.strings.fail," ").concat(e))}),i.src=e,i}},{key:"_swipeGesure",value:function(){return this._touchendX<this._touchstartX?this.navigateRight():this._touchendX>this._touchstartX?this.navigateLeft():void 0}}
6,{key:"_resize",value:function(e,n){n=n||e,this._wantedWidth=e,this._wantedHeight=n;var r=e/n,a=this._padding.left+this._padding.right+this._border.left+this._border.right,i=this._config.doc.body.clientWidth>575?20:0,o=this._config.doc.body.clientWidth>575?0:20,s=Math.min(e+a,this._config.doc.body.clientWidth-i,this._config.maxWidth);e+a>s?(n=(s-a-o)/r,e=s):e+=a;var c=0,l=0;this._footerIsShown&&(l=this._$modalFooter.outerHeight(!0)||55),this._titleIsShown&&(c=this._$modalHeader.outerHeight(!0)||67);var u=this._padding.top+this._padding.bottom+this._border.bottom+this._border.top,d=parseFloat(this._$modalDialog.css("margin-top"))+parseFloat(this._$modalDialog.css("margin-bottom")),h=Math.min(n,t(window).height()-u-d-c-l,this._config.maxHeight-u-c-l);n>h&&(e=Math.ceil(h*r)+a),this._$lightboxContainer.css("height",h),this._$modalDialog.css("maxWidth",e).css("width",e);var p=this._$modal.data("bs.modal");if(p)try{p._handleUpdate()}catch(e){p.handleUpdate()}return this}}],[{key:"_jQueryInterface",value:function(e){var r=this;return e=e||{},this.each((function(){var a=t(r),i=t.extend({},n.Default,a.data(),"object"===(0,b.A)(e)&&e);new n(r,i)}))}}]),n}();t.fn[n]=i._jQueryInterface,t.fn[n].Constructor=i,t.fn[n].noConflict=function(){return t.fn[n]=r,i._jQueryInterface}}(w)}();var S=n(10467),C=n(89394),E=n(54756),x=n.n(E),A=n(69267),k=n(95707),T=n(74692);function L(e){var t=0;arguments.length>1&&void 0!==arguments[1]&&arguments[1]?Array.from(e).forEach((function(e){e.removeAttribute("style"),t=t?Math.min(e.clientWidth,t):e.clientWidth})):Array.from(e).forEach((function(e){e.removeAttribute("style"),t=Math.max(e.clientWidth,t)})),Array.from(e).forEach((function(e){return e.style.width=t+"px"}))}T((function(){if(document.querySelector(".generic-search-page")){var e,t,n=document.querySelector(".generic-search-page").getAttribute("data-search-selector"),r="searchQueries",a=document.querySelector("html").getAttribute("lang"),i=document.querySelector("#amag-dspSearchPageInput"),o=document.querySelector(".amag-dspSearchPage__inputLabel"),s=document.querySelector(".amag-dspSearchPage__content"),c=(0,C.A)(document.querySelectorAll(".generic-header__listItem a")),l=document.querySelector(".amag-dspSearchPage__lastSearchQueriesOverlay"),u=/(\b)(on\S+)(\s*)=|javascript|<(|\/|[^\/>][^>]+|\/[^>][^>]+)>/gi,d=1,h=!1,p=function(){return i.value.replace(u,"").toLowerCase()},f=function(e){var t=document.cookie.match("(^|;) ?".concat(e,"=([^;]*)(;|$)"));return t?t[2]:null},m=function(){var e=(0,S.A)(x().mark((function e(t,n,r){var a,i;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,(a=new URL(window.location.origin+(0,k.d)(n))).searchParams.append("q",encodeURI(t)),!r){e.next=9;break}return e.next=6,fetch("".concat(r));case 6:e.t0=e.sent,e.next=12;break;case 9:return e.next=11,fetch(a.href);case 11:e.t0=e.sent;case 12:if(!(i=e.t0).ok){e.next=17;break}return e.next=16,i.json();case 16:return e.abrupt("return",e.sent);case 17:throw new Error("Something went wrong with the search request: SEARCHTERM-".concat(t,", SELECTOR-").concat(n));case 20:e.prev=20,e.t1=e.catch(0),console.error("Failed ".concat(e.t1));case 23:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(t,n,r){return e.apply(this,arguments)}}(),v=function(e){document.querySelectorAll(e)&&document.querySelectorAll(e).forEach((function(e){for(var t=e.innerHTML.split(" ");e.scrollHeight>e.offsetHeight;)t.pop(),e.innerHTML="".concat(t.join(" "),"...")}))},g=function(e,t){return 1===t&&(t=d%2,d+=1),e.map((function(n){return'<div class="amag-searchResultCard '.concat(e.indexOf(n)%2===t?"amag-searchResultCard--bgColorGrey":"",'">\n <div class="amag-searchResultCard__content">\n <div class="amag-searchResultCard__header">\n <p class="amag-searchResultCard__breadcrumbLink">').concat(n.fields.meta_breadcrumb,'</p>\n </div>\n <div class="amag-searchResultCard__body">\n <a class="amag-searchResultCard__title text-decoration-none" href="').concat(n.target,'">').concat(n.fields.page_title,'</a>\n <a class="amag-searchResultCard__text col-lg-9 col-md-12 col-sm-12 text-decoration-none" href="').concat(n.target,'">').concat(n.fields.meta_description,"</a>\n </div>\n </div>\n </div>")})).join("")},y=function(){var t=(0,S.A)(x().mark((function t(){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m(p(),n,e);case 2:r=t.sent,T(".amag-dspContentWrapper__searchResultWrapper").append("".concat(g(r.results,1))),v(".amag-searchResultCard__text"),0!==r.nextResultsCount?(document.querySelector(".amag-dspContentWrapper__showMoreCounter").innerHTML="".concat(r.nextResultsCount),e=r.next):document.querySelector(".amag-dspContentWrapper__showMoreWrapper").remove();case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),_=function(){var t=(0,S.A)(x().mark((function t(){var r,a;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m(p(),n,"");case 2:r=t.sent,(l=r.results)&&l.length>0?(h=!0,a='\n <div class="amag-dspSearchPage__contentSectionResult">\n <a class="amag-dspSearchPage__contentSectionResultLink text-decoration-none" href="#amag-dspContentSection">\n '.concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.content"),' (<span class="amag-dspSearchPage__contentSectionCounter">').concat(r.totalResultsCount,"</span>)\n </a>\n </div>"),i=r.totalResultsCount,o=a,c=void 0,c='\n <div class="amag-dspSearchPage__result">\n <h3 class="amag-dspSearchPage__resultText"><span class="amag-dspSearchPage__resultTextCounter">'.concat(i,"</span> ").concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.searchResultText"),' "<span class="amag-dspSearch__searchTerm">').concat(p(),'</span>"</h3>\n <div class="amag-dspSearchPage__sectionResultWrapper">\n ').concat(o,"\n </div>\n </div>"),T(".amag-dspSearchPage__header").append(c),T(s).append('<div id="amag-dspContentSection" class="amag-dspContentWrapper">\n <h2 class="amag-dspContentWrapper__headline">'.concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.content"),' (<span class="amag-dspContentWrapper__headlineCounter">').concat(r.totalResultsCount,'</span>)</h2>\n <div class="amag-dspContentWrapper__searchResultWrapper">\n ').concat(g(r.results,0),"\n </div>\n ").concat(r.nextResultsCount>0?'<div class="amag-dspContentWrapper__showMoreWrapper">\n <button class="amag-dspContentWrapper__showMoreBtn d-flex justify-content-center align-items-center text-decoration-none" role="button">\n <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M15.3043 32C14.5363 32 13.913 31.3767 13.913 30.6087V18.087H1.3913C0.623304 18.087 0 17.4637 0 16.6957C0 15.9277 0.623304 15.3043 1.3913 15.3043H13.913V1.3913C13.913 0.623304 14.5363
60 15.3043 0C16.0723 0 16.6957 0.623304 16.6957 1.3913V15.3043H30.6087C31.3767 15.3043 32 15.9277 32 16.6957C32 17.4637 31.3767 18.087 30.6087 18.087H16.6957V30.6087C16.6957 31.3739 16.0723 32 15.3043 32Z" fill="white"></path>\n </svg>\n <span class="amag-dspContentWrapper__showMoreCounter">'.concat(r.nextResultsCount,"</span>").concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.showMore"),"\n </button>\n </div>"):"","\n </div>")),v(".amag-searchResultCard__text"),e=r.next,document.querySelector(".amag-dspContentWrapper__showMoreBtn")&&document.querySelector(".amag-dspContentWrapper__showMoreBtn").addEventListener("click",(function(){y()}))):h=!1;case 4:case"end":return t.stop()}var i,o,c,l}),t)})));return function(){return t.apply(this,arguments)}}(),b=function(){var e=(0,S.A)(x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""===p()){e.next=9;break}return localStorage.setItem("inputValue",p()),i=void 0,i=(i=f(r))?"".concat(p(),"|").concat(i):"".concat(p()),document.cookie="".concat(r,"=").concat(i),document.querySelector(".amag-dspContentWrapper")&&document.querySelector(".amag-dspContentWrapper").remove(),document.querySelector(".amag-dspSearchPage__result")&&document.querySelector(".amag-dspSearchPage__result").remove(),document.querySelector(".amag-dspSearchPage__noResult")&&document.querySelector(".amag-dspSearchPage__noResult").remove(),d=1,e.next=7,_();case 7:h||(a=void 0,a='<div class="amag-dspSearchPage__noResult">\n <div class="amag-dspSearchPage__noResultWrapper">\n <h3 class="amag-dspSearchPage__noResultHeadline">'.concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.noResults"),' "<span class="amag-dspSearch__searchTerm">').concat(p(),'</span>"</h3>\n <p class="amag-dspSearchPage__noResultText col-lg-9 col-md-12 col-sm-12 px-0">\n ').concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.noResultsText"),'\n </p>\n </div>\n <div class="amag-dspSearchPage__suggestion">\n <h3 class="amag-dspSearchPage__suggestionHeadline">').concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.suggestionPages"),'</h3>\n <div class="amag-dspSearchPage__suggestionLinkWrapper">\n ').concat(c.map((function(e){return'<a class="amag-dspSearchPage__suggestionLink text-decoration-none" href="'.concat(e.getAttribute("href"),'">\n ').concat(e.innerHTML,"\n </a>")})).join("")," \n </div>\n </div>\n </div>"),T(".amag-dspSearchPage__header").append(a)),t=p(),n=document.querySelector(".amag-dspSearchPage__resultTextCounter"),"undefined"!=typeof dataLayer&&dataLayer.push({event:"gaEvent",eventCategory:"Suche",eventAction:t,eventLabel:n?n.innerHTML:"0"});case 9:case"end":return e.stop()}var t,n,a,i}),e)})));return function(){return e.apply(this,arguments)}}();Granite.I18n.setLocale(a),window.addEventListener("beforeunload",(function(){window.scrollTo(0,0)})),window.performance&&window.performance.navigation.type===window.performance.navigation.TYPE_BACK_FORWARD&&(i.value=localStorage.getItem("inputValue")),i.addEventListener("focusout",(function(){setTimeout((function(){l.classList.remove("d-block"),l.innerHTML=""}),200)})),i.addEventListener("focus",(function(){!function(){var e=f(r);if(e){var t=e.split("|"),n=(0,C.A)(new Set(t)).slice(0,5);if(document.cookie="".concat(r,"=").concat(n.join("|")),0!==n.length){var a='<p class="amag-dspSearchPage__lastSearchTitle">'.concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.lastSearchQueriesText"),'</p>\n <ul class="amag-dspSearchPage__lastSearchList">\n ').concat(n.map((function(e){return'<li class="amag-dspSearchPage__lastSearchListItem">'.concat(e,"</li>")})).join(""),"\n </ul>");T(l).append(a),l.classList.add("d-block"),document.querySelectorAll(".amag-dspSearchPage__lastSearchListItem").forEach((function(e){e.addEventListener("click",(function(){i.value=e.innerText,o.click()}))}))}}}()})),o.addEventListener("click",(function(){b()})),i.onkeyup=function(e){clearTimeout(t),i.value.length>2&&(t=setTimeout(b,700)),13===e.keyCode&&(clearTimeout(t),b())},A.lp.isTouchNew()||i.focus()}})),document.querySelector(".amag-garageFooter")&&(document.querySelector(".amag-garageTabModul")&&document.querySelectorAll(".amag-garageTabModul__navItem").length<=1&&(document.querySelector(".amag-garageTabModul__navigation").style.display="none",document.querySelector(".amag-garageTabModul").style.position="relative"),document.querySelector(".amag-garageBrands__brand")&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];L(e,t),window.addEventListener("resize",(function(){L(e,t)}))}(document.querySelectorAll(".amag-garageBrands__brand"),!0));n(31080),n(51665),n(31896);var I=n(74692);if(document.querySelector("#PromotionPage")){var D=window.location.pathname.replace("/editor.html","").split(".html")[0],P=document.querySelector(".amag-promotionOverview__td--jsStatusUpdate"),O=parent.document.getElementById("ContentScrollView"),R=document.querySelector(".amag-promotionLoadSpinner"),M={selectors:{modal:"#amag-promotionOverview__modal",modalText:".amag-promotionOverview__modalBody",modalTitle:".amag-promotionOverview__modalTitle",modalHeader:".amag-promotionOverview__modalHeader"}},q=function(e,t){e.closest(".collapse").querySelectorAll("input[name='distribution']").forEach((function(e){e.checked=t}))},N=function(){var e=(0,S.A)(x().mark((function e(t){var n;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("promotion-update-distribution"!==t){e.next=6;break}return e.next=3,I.post("".concat(D,".").concat(t,".html"),I("#amag-distributionForm").serialize());case 3:n=e.sent,e.next=9;break;case 6:return e.next=8,I.post("".concat(D,".").concat(t,".html"));case 8:n=e.sent;case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),V=function(){var e=(0,S.A)(x().mark((function e(t){var n,r;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N(t.getAttribute("data-selector"));case 2:n=e.sent,I(M.selectors.modalHeader).removeClass((function(e,t){return(t.match(/\bamag-promotionOverview__modalHeader--\S+/g)||[]).join(" ")})),"ERROR"!==n.status&&0!==n.length?("promotion-update-distribution"===t.getAttribute("data-selector")?(r='<div class="amag-promotionOverview__modalResponse">'.concat(Granite.I18n.get("apps.amag-ch.structure.page.promotions.promotionSaveMsg"),"</div>"),document.querySelector(M.selectors.modalTitle).innerHTML="".concat(Granite.I18n.get("apps.amag-ch.structure.page.promotions.promotionStatus"))):(r=n.map((function(e){return'<div class="amag-promotionOverview__modalResponse">'.concat(e,"</div>")})).join(""),document.querySelector(M.selectors.modalTitle).innerHTML="".concat(Granite.I18n.get("apps.amag-ch.structure.page.promotions.promotionPage"))),I(M.selectors.modalHeader).addClass("amag-promotionOverview__modalHeader--bgGreen"),I(M.selectors.modalText).append(r)):0===n.length?(r='<div class="amag-promotionOverview__modalResponse">'.concat(Granite.I18n.get("apps.amag-ch.structure.page.promotions.promotionInfoText"),"</div>"),document.querySelector(M.selectors.modalTitle).innerHTML="".concat(Granite.I18n.get("apps.amag-ch.structure.page.promotions.promotionInfo")),I(M.selectors.modalText).append(r)):(r='<div class="amag-promotionOverview__modalError">\n\t\t\t '.concat(Granite.I18n.get("apps.amag-ch.structure.page.promotions.promotionErrorText"),'\n\t\t\t <
6a class="amag-promotionOverview__detailsLinkError" data-toggle="collapse" href="#amag-promotionOverview__detailsLinkError" role="button" aria-expanded="false" aria-controls="collapseExample">\n\t\t\t Details\n\t\t\t </a>\n\t\t\t <div class="collapse" id="amag-promotionOverview__detailsLinkError">\n\t\t\t <div class="card card-body">\n\t\t\t <p>').concat(n.message,"</p>\n\t\t\t <p>").concat(n.exception,"</p>\n\t\t\t </div>\n\t\t\t </div>\n\t\t\t</div>"),document.querySelector(M.selectors.modalTitle).innerHTML="".concat(Granite.I18n.get("apps.amag-ch.structure.page.promotions.promotionError")),I(M.selectors.modalHeader).addClass("amag-promotionOverview__modalHeader--bgRed"),I(M.selectors.modalText).append(r));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F=function(){var e=(0,S.A)(x().mark((function e(t){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O.scrollTo(0,0),R.classList.remove("d-none"),document.querySelector(M.selectors.modalText).innerHTML="",e.next=5,V(t);case 5:R.classList.add("d-none"),I(M.selectors.modal).modal("show");case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),B=function(){var e=(0,S.A)(x().mark((function e(t){var n;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I.get("".concat(D,".").concat(t,".html"));case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();I(M.selectors.modal).on("hidden.bs.modal",(0,S.A)(x().mark((function e(){var t;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B("promotion-status");case 2:t=e.sent,P.innerHTML=t.status;case 4:case"end":return e.stop()}}),e)})))),I(M.selectors.modal).on("show.bs.modal",(function(){var e=.8*O.clientHeight;document.querySelector(M.selectors.modalText).style.maxHeight="".concat(e,"px")})),document.querySelectorAll(".amag-promotionDistribution__checkAllBtn").forEach((function(e){e.addEventListener("click",(function(){q(e,!0)}))})),document.querySelectorAll(".amag-promotionDistribution__uncheckAllBtn").forEach((function(e){e.addEventListener("click",(function(){q(e,!1)}))})),document.querySelectorAll(".amag-promotionOverview__button").forEach((function(e){e.addEventListener("click",(function(){F(e)}))})),document.querySelectorAll(".amag-promotionDistribution__saveBtn").forEach((function(e){e.addEventListener("click",(function(){F(e)}))}))}n(52317),n(20998),n(16796),n(42780),n(62808),n(74892),n(38108);function j(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return H(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n(74692)((function(){document.querySelectorAll(".amag-newsStream").forEach((function(e){if(e){var t=function(){return document.documentElement.clientWidth<=767?"mobile":document.documentElement.clientWidth<=1199?"tablet":"desktop"},n=function(){var t=(0,S.A)(x().mark((function t(){var n,i,o;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=j(e.querySelectorAll(".amag-newsStream__wrapper")),t.prev=1,o=x().mark((function e(){var t,n,o,u,d,h;return x().wrap((function(e){for(;;
6)switch(e.prev=e.next){case 0:return t=i.value,n=t.getAttribute("id"),e.next=4,r(n);case 4:o=e.sent,u="true"===t.getAttribute("data-isonstartpage"),s(n),!1!==o&&(d=o.items,h=0,d.forEach((function(e){0===h?a(n,h,e,!0):h<13&&a(n,h,e,!1),h++})),u||l(n)),c(n);case 9:case"end":return e.stop()}}),e)})),n.s();case 4:if((i=n.n()).done){t.next=8;break}return t.delegateYield(o(),"t0",6);case 6:t.next=4;break;case 8:t.next=13;break;case 10:t.prev=10,t.t1=t.catch(1),n.e(t.t1);case 13:return t.prev=13,n.f(),t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[1,10,13,16]])})));return function(){return t.apply(this,arguments)}}(),r=function(){var t=(0,S.A)(x().mark((function t(n){var r,a,i;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=e.querySelector("#".concat(n)).getAttribute("data-rssurl"),a="https://api.rss2json.com/v1/api.json?rss_url=".concat(r),t.next=5,fetch(a);case 5:if(!(i=t.sent).ok){t.next=12;break}return t.next=9,i.json();case 9:return t.abrupt("return",t.sent);case 12:return console.error("Error while fetching RSS feed from "+a),t.abrupt("return",!1);case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(0),console.error("Fetch of RSS feed failed due to error:",t.t0);case 19:case"end":return t.stop()}}),t,null,[[0,16]])})));return function(e){return t.apply(this,arguments)}}(),a=function(n,r,a,s){var c=e.querySelector("#".concat(n)).getAttribute("data-fallbackimg"),l=i(a.content),u=i(a.description),d=l||(u||null),h=function(n,r,a,i){var s=e.querySelector("#".concat(n)).getAttribute("data-brand")?e.querySelector("#".concat(n)).getAttribute("data-brand"):"",c=i?"large":"small",l=s?function(e,t,n){return'<div class="amag-newsStream__container--'.concat(n,'--info-brand">\n <p>\n <a href="').concat(t,'" target="_blank">').concat(e,"</a>\n </p>\n </div>")}(s,a.link,c):"",u=t(),d="mobile"===u?1:"tablet"===u?2:3;return'\n <div id="'.concat(n,"-news-").concat(r,'" class="amag-newsStream__container--').concat(c," ").concat(i?"col-12":"col-sm-12 col-md-6 col-lg-4"," ").concat(!i&&r>d?"d-none":"",'">\n <div class="amag-newsStream__container--').concat(c,'--image"> \n <div class="image"></div>\n </div>\n ').concat(i?'<div class="d-lg-block col-lg-1"></div>':"",'\n <div class="amag-newsStream__container--').concat(c,"--info ").concat(i?"col-md-6 col-lg-5":"",'">\n ').concat(i?'<div class="amag-newsStream__container--'+c+'--content">':"",'\n <div class="amag-newsStream__container--').concat(c,'--info-date">\n <p>').concat(o(a.pubDate),"</p>\n </div>\n ").concat(l,'\n <div class="amag-newsStream__container--').concat(c,'--info-headline">\n <p>').concat(a.title,"</p>\n </div>\n ").concat(i?"</div>":"",'\n <div class="amag-newsStream__container--').concat(c,'--info-link">\n <a class="text-decoration-none amag-linkWrapper__link--text-decoration-underline" href="').concat(a.link,'" target="_blank">').concat(Granite.I18n.get("apps.amag-ch.components.content.newsStream.labels.knowmore"),"</a>\n </div>\n </div>\n </div>\n ")}(n,r,a,s);s?e.querySelector("#".concat(n," .amag-newsStream__newsList")).insertAdjacentHTML("afterbegin",h):e.querySelector("#".concat(n," .amag-newsStream__container--row")).insertAdjacentHTML("beforeend",h),e.querySelector("#".concat(n,"-news-").concat(r," .image")).style.backgroundImage="url('".concat(d||c,"')")},i=function(e){var t=/<picture>.*<\/picture>/g.exec(e),n=null,r=null;try{if(!t)return null;n=t[0].replaceAll('"','"');var a=/((?:https)[a-zA-Z0-9-._~:\/?#[\]@!$&%'()*+,;=]*?(?:media_thumb_l)[a-zA-Z0-9-._~:\/?#[\]@!$&%'()*+,;=]*?\.(?:jpg|jpeg|png))/gim.exec(n);a&&(r=a[0])}catch(e){console.error("Retrieving image from RSS feed failed with error: "+e)}return r},o=function(e){return((e=new Date(e)).getDate().toString().length>1?e.getDate().toString():"0"+e.getDate().toString())+"."+((e.getMonth()+1).toString().length>1?(e.getMonth()+1).toString():"0"+(e.getMonth()+1).toString())+"."+e.getFullYear()},s=function(t){e.querySelector("#".concat(t," .group-loadSpinner")).classList.remove("d-none")},c=function(t){e.querySelector("#".concat(t," .group-loadSpinner")).classList.add("d-none")},l=function(n){var r=e.querySelector("#".concat(n," .amag-newsStream__showMoreButton a")),a=e.querySelector("#".concat(n," .amag-newsStream__showMoreButton")),i=e.querySelector("#".concat(n," .amag-newsStream__c
6ontainer--row")),o=t(),s="mobile"===o||"tablet"===o?2:3,c=(12-2*s)/s,l=0;r.addEventListener("click",(function(e){e.preventDefault(),++l;var t=0;i.querySelectorAll("#".concat(n," .amag-newsStream__container--small.d-none")).forEach((function(e){t<s&&e.classList.remove("d-none"),t++})),l>=c&&a.classList.add("d-none")}))};n()}}))}));n(2978),n(12624);var G=n(74692),U=n.n(G);!function(e){e((function(){var t="d-lg-none th-text",n={table:".rich-text table"},r={activeRow:"state-active",toggleRow:"th-accordion-toggle"},a='<svg class="icon-circle-plus" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd"\nd="M9.94499 0.833252C4.88238 0.833252 0.77832 4.93731 0.77832 9.99992C0.77832 15.0625 4.88238 19.1666 9.94499 19.1666C15.0076 19.1666 19.1117 15.0625 19.1117 9.99992C19.1059 4.93969 15.0052 0.838992 9.94499 0.833252ZM10.7783 9.16658V4.99992H9.11166V9.16658H4.94499V10.8333H9.11166V14.9999H10.7783V10.8333H14.945V9.16658H10.7783ZM2.44499 9.99992C2.44499 14.1421 5.80285 17.4999 9.94499 17.4999C14.0852 17.4953 17.4404 14.1401 17.445 9.99992C17.445 5.85778 14.0871 2.49992 9.94499 2.49992C5.80285 2.49992 2.44499 5.85778 2.44499 9.99992Z" />\n</svg>\n<svg class="icon-circle-minus" width="20" height="19" viewBox="0 0 20 19" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M9.99992 0.621338C4.93731 0.621338 0.833252 4.7042 0.833252 9.74066C0.833252 14.7771 4.93731 18.86 9.99992 18.86C15.0625 18.86 19.1666 14.7771 19.1666 9.74066C19.1608 4.70656 15.0601 0.627049 9.99992 0.621338ZM9.99992 17.2029C5.85778 17.2029 2.49992 13.8624 2.49992 9.74162C2.49992 5.62088 5.85778 2.28036 9.99992 2.28036C14.1421 2.28036 17.4999 5.62088 17.4999 9.74162C17.4953 13.8605 14.1401 17.1983 9.99992 17.2029ZM14.9999 10.5706H4.99992V8.91259H14.9999V10.5706Z"></path>\n\t\t\t\t\t\t</svg>';e(n.table).length>0&&e(n.table).each((function(n,i){var o=Array.from(i.querySelectorAll("tr:first-child th")).map((function(e){return e.innerText}));o.length>0&&(e(i).find("th, td").each((function(n,r){r.innerHTML='<span class="'.concat(t,'">').concat(o[e(r).index()],"</span>").concat(r.innerHTML)})),e(i).find("tr:not(:first-child) th:first-child").each((function(t,n){e(n).addClass(r.toggleRow),n.innerHTML+=a,e(n).bind("click",(function(){e(this).toggleClass(r.activeRow)}))})))}))}))}(U());n(90168);var W=n(85555),z=n.n(W),$=n(74692),Y={componentBody:".amag-vimeo",jsPlayer:".js-amag-vimeo__player",thumbsImg:".amag-stageHomepage__thumbs"},Z={vimeoThumbnailpath:"https://vimeo.com/api/oembed.json?url=https://vimeo.com/"};if(document.querySelector(Y.componentBody)){var K=$(Y.jsPlayer),X=K.attr("id"),J=K.data("video-url-3by4"),Q=(K.data("video-url-3by4"),K.data("video-url-16by9")),ee="true"===K.data("vimeo-autoplay"),te="true"===K.data("vimeo-loop");window.innerWidth>=768&&(J=Q);var ne={id:J,autoplay:ee,loop:te,muted:!0,background:!0};new(z())(X,ne);$.getJSON(Z.vimeoThumbnailpath+J,{format:"json"},(function(e){$(Y.thumbsImg).attr("src",e.thumbnail_url)}))}var re=n(3453);function ae(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ie(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ie(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var oe="cmp-carousel__item--active",se=document.querySelector(".amagCh-stageCarousel .cmp-carousel__content"),ce=se?se.querySelectorAll(".cmp-carousel__item"):null;ce&&(ce.active=function(){return(0,C.A)(this).filter((function(e){return e.classList.contains(oe)}))[0]||!1},ce.activeIndex=function(){var e,t=ae(this.entries());try{for(t.s();!(e=t.n()).done;){var n=(0,re.A)(e.value,2),r=n[0];if(n[1].classList.contains(oe))return r}}catch(e){t.e(e)}finally{t.f()}return!1},ce.next=function(){return!this.isLast()&&this[this.activeIndex()+1]},ce.previous=function(){return!this.isFirst()&&this[this.activeIndex()-1]},ce.get=function(e){return!(e<0||e>ce.length-1)&&ce[e]},ce.isFirst=function(){return this[0].classList.contains(oe)},ce.isLast=function(){return this[this.length-1].classList.contains(oe)});var le=se?se.querySelectorAll("button.cmp-carousel__action"):null,ue=(se&&se.querySelector("button.cmp-carousel__action[data-cmp-hook-carousel=next]"),se&&se.querySelector("button.cmp-carousel__action[data-cmp-hook-carousel=previous]"),"previous"),de="next",he="data-cmp-hook-carousel";function pe(e){le.forEach((function(e){return e.disabled=!1}))}function fe(e){switch(this.getAttribute(he)){case ue:0;break;case de:0;break;default:return void console.error("No hook attribute given in ".concat(he," (Result: ").concat(this.getAttribute(he),")"))}pe(ce.activeIndex())}var me=n(74692);function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}if(se){se.ActivateSliderSwipeActions();var ge,ye=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ve(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}(le);try{for(ye.s();!(ge=ye.n()).done;){ge.value.addEventListener("click",fe)}}catch(e){ye.e(e)}finally{ye.f()}pe(ce.activeIndex())}me((function(){var e=document.querySelector(".amagCh-stageCarousel"),t=document.querySelector(".amag-header__navbar"),n=document.querySelector(".amag-header__beforeDivWhite"),r=document.querySelector(".amag-header__afterDivWhite");if(e){if(e.querySelector(".is-author"))return;if("false"==e.querySelector(".cmp-carousel").getAttribute("data-margin")&&e.classList.add("amagCh-stageCarousel--noMargin"),t&&n&&r){var a=function(){window.pageYOffset<e.clientHeight-100&&(t.classList.remove("amag-header__navbar--transparent"),n.classList.remove("amag-header__beforeDivWhite--transparent"),r.classList.remove("amag-header__afterDivWhite--transparent"))},i=function(){if(window.pageYOffset<e.clientHeight-100){t.classList.add("amag-header__navbar--transparent"),n.classList.add("amag-header__beforeDivWhite--transparent"),r.classList.add("amag-header__afterDivWhite--transparent");var a=document.querySelector(".amag-languageWrapper__language");a.classList.contains("show")&&(a.classList.remove("show"),document.querySelector(".amag-languageWrapper__menu").classList.remove("show"))}};window.pageYOffset<e.clientHeight-100&&(t.classList.add("amag-header__navbar--transparent"),n.classList.add("amag-header__beforeDivWhite--transparent"),r.classList.add("amag-header__afterDivWhite--transparent")),"ontouchstart"in document.documentElement||(t.addEventListener("mouseenter",a),t.addEventListener("mouseleave",i),n.addEventListener("mouseenter",a),n.addEventListener("mouseleave",i),r.addEventListener("mouseenter",a),r.addEventListener("mouseleave",i))}}}));var _e=n(74692);_e((function(){if(document.querySelector(".storelocatorRetail")){var e,t,n,r,a,i,o,s,c,l,u,d=document.querySelectorAll(".storelocator__garage"),h=document.querySelector(".amag-filterModal__resetButton"),p=document.querySelectorAll(".amag-filterModal input[type='checkbox']"),f=document.querySelector(".amag-filterModal__showGaragesButton"),m=document.querySelector(".storelocator__noResultsWrapper"),v=document.querySelector(".storelocator__showMapOrListBtn"),g=v.getAttribute("data-showMap"),y=v.getAttribute("data-showList"),_=document.querySelectorAll(".storelocator [data-dismiss]"),b=document.querySelector(".storelocator__filterButton"),w=document.querySelector(".amag-filterModal__garagenCounter"),E=document.getElementById("storelocator__searchField"),A=[],k=[],T=[],L=[],I={top:70,bottom:20,left:210,right:620},D={top:70,bottom:10,left:40,right:410},P={top:70,bottom:10,left:40,right:40},O=window.matchMedia("(max-width: 767.98px)"),R=window.matchMedia("(min-width:768px) and (max-width: 1199.98px)"),M=function(){var e=(0,S.A)(x().mark((function e(t){var n;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(t));case 3:if(!(n=e.sent).ok){e.next=6;break}return e.abrupt("return",n.json());case 6:throw new Error("Something went wrong by getting the data from URL: ".concat(t));case 9:e.prev=9,e.t0=e.catch(0),console.error("Failed ".concat(e.t0));case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),q=function(){return E.value},N=function(){document.querySelector(".storelocator__autosuggestContainer").innerHTML=""},V=function(e){w.innerHTML=e},F=function(){var e=[],t=document.querySelectorAll(".amag-filterModal input[type='checkbox']:checked");r=!1,A=[],0!==t.length?(t.forEach((function(t){e.push(t.getAttribute("data-brand"))})),d.forEach((function(t){if(null!==t.getAttribute("data-brands")){var n=(0,C.A)(new Set(t.getAttribute("data-brands").split(",")));r=n,e.every((function(e){return r.includes(e)}))&&A.push(t)}var r})),r=!0,h.classList.add("visible"),V(A.length)):(h.classList.remove("visible"),V(w.getAttribute("data-allLabel")))},B=function(){p.forEach((function(e){e.checked=!1}
6)),r=!1,A=[],h.classList.remove("visible"),V(w.getAttribute("data-allLabel"))},j=function(e){O.matches&&_e(e).on("shown.bs.modal",(function(e){var t=e.target.scrollHeight;document.querySelectorAll(".storelocator").forEach((function(e){e.style.height="".concat(t,"px")}))}))},H=function(){for(var e=document.querySelectorAll(".storelocator__garage:not(.storelocator__garage--hide)"),t=0;t<e.length;t+=2)e[t].style.backgroundColor="#F5F5F5";for(var n=1;n<e.length;n+=2)e[n].style.backgroundColor="white"},G=function(){L=[],document.querySelectorAll(".storelocator__garage:not(.storelocator__garage--hide)").forEach((function(e){L.push({storeId:e.getAttribute("data-storeId"),lat:parseFloat(e.getAttribute("data-lat")),lng:parseFloat(e.getAttribute("data-lng")),title:e.querySelector(".storelocator__garageName").innerHTML})}))},U=function(){k.forEach((function(e){"/etc.clientlibs/amag-ch/clientlibs/themes/clientlib-generic/resources/img/googleMapsMarkers/amagMarkerSearch.png"!==e.getIcon().url&&e.setIcon(i)}))},W=function(e){a.panTo(e.getPosition()),a.setZoom(15),O.matches||(R.matches,a.panBy(100,0))},z=function(e,t,n,r){var c=new google.maps.Marker({position:new google.maps.LatLng(e,t),map:a,title:r,icon:i,storeId:n});k.push(c),google.maps.event.addListener(c,"click",(function(){W(c),document.querySelectorAll(".amag-garagenModal.show").forEach((function(e){_e(e).modal("hide")})),U(),j(".amag-garagenModal"),_e("#id".concat(c.storeId)).modal({backdrop:!1,show:!0}),c.setIcon(s)})),google.maps.event.addListener(c,"mouseover",(function(){var e=document.querySelector("[data-storeId='".concat(c.storeId,"']"));e.style.boxShadow="0px 0px 28px 0px rgba(0,0,0,0.48)",e.style.zIndex="30","/etc.clientlibs/amag-ch/clientlibs/themes/clientlib-generic/resources/img/googleMapsMarkers/amagMarkerBlue.png"!==c.getIcon().url&&c.setIcon(o)})),google.maps.event.addListener(c,"mouseout",(function(){var e=document.querySelector("[data-storeId='".concat(c.storeId,"']"));e.style.boxShadow="none",e.style.zIndex="0","/etc.clientlibs/amag-ch/clientlibs/themes/clientlib-generic/resources/img/googleMapsMarkers/amagMarkerBlue.png"!==c.getIcon().url&&c.setIcon(i)}))},$=function(){k.forEach((function(e){e.setMap(null)})),k=[],G(),L.forEach((function(e){z(e.lat,e.lng,e.storeId,e.title)}))},Y=function(){a.setZoom(8),a.setCenter({lat:46.8127598,lng:7.6638335})},Z=function(){l=new google.maps.LatLngBounds(null),k.forEach((function(e){l.extend(e.position)})),0!==k.length?(a.panBy(100,0),O.matches?a.fitBounds(l,P):R.matches?a.fitBounds(l,D):a.fitBounds(l,I)):Y()},K=function(e){return k.find((function(t){return t.storeId===e}))},X=function(e,t){e.geocode({address:q(),region:"CH",componentRestrictions:{country:"CH"}},(function(e,n){if("OK"===n){var r=new google.maps.InfoWindow({content:e[0].formatted_address});t.setCenter(e[0].geometry.location);var i=new google.maps.Marker({map:t,position:e[0].geometry.location,icon:c});k.push(i),r.open(a,i),o=i,s=[],T.forEach((function(e){var t=google.maps.geometry.spherical.computeDistanceBetween(e.getPosition(),o.getPosition());s.push({distanceBetween:t,marker:e})})),(s=s.sort((function(e,t){return parseFloat(e.distanceBetween)-parseFloat(t.distanceBetween)})).slice(0,5)).forEach((function(e){k.push(e.marker),e.marker.setMap(a),document.querySelector("[data-storeid='".concat(e.marker.storeId,"']"))&&document.querySelector("[data-storeid='".concat(e.marker.storeId,"']")).classList.remove("storelocator__garage--hide")})),H(),Z()}else m.classList.remove("storelocator__noResultsWrapper--hide"),Y();var o,s}))},J=function(r){if(m.classList.add("storelocator__noResultsWrapper--hide"),N(),n&&0!==n.length&&n.forEach((function(e){t[e].forEach((function(t){var n=new RegExp("".concat(t),"gi");r=r.replace(n,e)}))})),""!==r){var i=new RegExp("".concat(r),"gi"),o=[];if(e.forEach((function(e){e.name.match(i)&&(o=[].concat((0,C.A)(o),(0,C.A)(e.storeId)))})),o=(0,C.A)(new Set(o)),d.forEach((function(e){o.includes(e.getAttribute("data-storeId"))?e.classList.remove("storelocator__garage--hide"):e.classList.add("storelocator__garage--hide")})),$(),B(),0===o.length)return void X(u,a);if(1===o.length){var s=K(o[0]);s&&(W(s),H())}else H(),Z()}};Q=new google.maps.StyledMapType([{featureType:"all",stylers:[{saturation:0},{hue:"#E7ECF0"}]},{featureType:"road",stylers:[{saturation:-70}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"water",stylers:[{visibility:"simplified"},{saturation:-60}]}],{name:"AMAG MAP"}),i={url:"/etc.clientlibs/amag-ch/clientlibs/themes/clientlib-generic/resources/img/googleMapsMarkers/amagMarkerBlack.png",scaledSize:new google.maps.Size(30,30)},o={url:"/etc.clientlibs/amag-ch/clientlibs/themes/clientlib-generic/resources/img/googleMapsMarkers/amagMarkerViolet.png",scaledSize:new google.maps.Size(40,40)},s={url:"/etc.clientlibs/amag-ch/clientlibs/themes/clientlib-generic/resources/img/googleMapsMarkers/amagMarkerBlue.png",scaledSize:new google.maps.Size(40,40)},c={url:"/etc.clientlibs/amag-ch/clientlibs/themes/clientlib-generic/resources/img/googleMapsMarkers/amagMarkerSearch.png",anchor:new google.maps.Point(50,50),scaledSize:new google.maps.Size(100,100)},l=new google.maps.LatLngBounds,u=new google.maps.Geocoder,(a=new google.maps.Map(document.getElementById("storelocator__map"),{center:{lat:46.8127598,lng:7.6638335},zoom:8,streetViewControl:!1,fullscreenControl:!1,mapTypeControl:!1,zoomControl:!0,zoomControlOptions:{position:google.maps.ControlPosition.LEFT_BOTTOM},mapTypeControlOptions:{mapTypeIds:["styled_map"]}})).mapTypes.set("styled_map",Q),a.setMapTypeId("styled_map"),G(),L.forEac
6h((function(e){z(e.lat,e.lng,e.storeId,e.title)})),T=(0,C.A)(k),Z(),(0,S.A)(x().mark((function r(){return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,M("/bin/amagch/storelocator.sales-stores.json");case 2:return e=r.sent,r.next=5,M("/bin/amagch/storelocator.synonyms.json");case 5:(t=r.sent)&&!t.status&&(n=Object.keys(t));case 7:case"end":return r.stop()}}),r)})))(),H(),document.querySelector("body").classList.add("amag-overrideBootstrapModal"),h.addEventListener("click",B),_.forEach((function(e){e.addEventListener("click",(function(){1!==k.length&&Z(),U(),O.matches&&document.querySelectorAll(".storelocator").forEach((function(e){e.style.height=""}))}))})),p.forEach((function(e){e.addEventListener("click",F)})),f.addEventListener("click",(function(){0!==A.length?(m.classList.add("storelocator__noResultsWrapper--hide"),d.forEach((function(e){A.includes(e)?e.classList.remove("storelocator__garage--hide"):e.classList.add("storelocator__garage--hide")}))):0===A.length&&r?(m.classList.remove("storelocator__noResultsWrapper--hide"),d.forEach((function(e){e.classList.add("storelocator__garage--hide")}))):d.forEach((function(e){e.classList.remove("storelocator__garage--hide")})),$(),H(),Z(),_e("#amag-filterModal").modal("hide")})),b.addEventListener("click",(function(){j("#amag-filterModal")})),d.forEach((function(e){e.addEventListener("click",(function(){j(".amag-garagenModal"),function(e){U();var t=K(e);t&&(t.setIcon(s),W(t))}(e.getAttribute("data-storeId"))})),e.addEventListener("mouseover",(function(){var t=K(e.getAttribute("data-storeId"));t&&"/etc.clientlibs/amag-ch/clientlibs/themes/clientlib-generic/resources/img/googleMapsMarkers/amagMarkerBlue.png"!==t.getIcon().url&&t.setIcon(o)})),e.addEventListener("mouseout",(function(){var t=K(e.getAttribute("data-storeId"));t&&"/etc.clientlibs/amag-ch/clientlibs/themes/clientlib-generic/resources/img/googleMapsMarkers/amagMarkerBlue.png"!==t.getIcon().url&&t.setIcon(i)}))})),document.querySelector(".storelocator__searchIcon").addEventListener("click",(function(){J(q())})),E.addEventListener("keydown",(function(e){13===e.keyCode&&(J(q()),e.target.blur())})),E.addEventListener("input",(function(){!function(r){n&&0!==n.length&&n.forEach((function(e){t[e].forEach((function(t){var n=new RegExp("".concat(t),"gi");r=r.replace(n,e)}))}));var a=e.filter((function(e){var t=new RegExp("".concat(r),"gi");return e.name.match(t)}));if(0!==r.length&&0!==a.length||(a=[],N()),a.length>0){var i='\n\t <ul class="storelocator__autosuggestList">\n\t '.concat(a.map((function(e){return'<li class="storelocator__autosuggestListItem">'.concat(e.name,"</li>")})).join(""),"\n\t </ul>");document.querySelector(".storelocator__autosuggestContainer").innerHTML=i,document.querySelectorAll(".storelocator__autosuggestListItem").forEach((function(e){e.addEventListener("click",(function(){E.value=e.innerHTML,document.querySelector(".storelocator__searchIcon").click()}))}))}}(q()),""===q()&&(d.forEach((function(e){e.classList.remove("storelocator__garage--hide")})),m.classList.add("storelocator__noResultsWrapper--hide"),$(),Z())})),v.addEventListener("click",(function(){v.innerText===y?(document.querySelector(".storelocator__garagenContainer").style.display="block",document.querySelector("#storelocator__map").style.display="none",document.querySelector(".storelocator__garagenOverlay").style.cssText="height: calc(100vh - 100px); overflow-y: auto",v.innerText=g):v.innerText===g&&(document.querySelector(".storelocator__garagenContainer").style.display="none",document.querySelector(".storelocator__garagenOverlay").style.cssText="height: auto; overflow-y: initial",document.querySelector("#storelocator__map").style.display="block",v.innerText=y,Z())}))}var Q}));n(89334),n(22300),n(22400);var be=n(92901),we=n(23029),Se=n(78674),Ce=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Ee=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},xe={filterSection:".amag-academy-course-list__filter-section",filterSectionText:".amag-academy-course-list__filter-section__text",filterReset:".amag-academy-course-list__filter-section__reset",filterTagsContainer:".amag-academy-course-list__filter-section__tag-container",filterTag:".amag-academy-course-list__filter-section__tag",course:".amag-academy-course-list__course",courseAmount:".amag-academy-course-list__course-container__course-amount",scrollToTopButton:".amag-academy-course-list__buttons__scroll-btn"},Ae=(0,be.A)((function e(t){var n=this;(0,we.A)(this,e),this._element=t,this._filterSection=this._element.querySelector(xe.filterSection),this._filterSectionText=this._element.querySelector(xe.filterSectionText),this._filterResetButton=this._element.querySelector(xe.filterReset),this._filterTagsContainer=this._element.querySelector(xe.filterTagsContainer),this._filterTags=this._element.querySelectorAll(xe.filterTag),this._courses=this._element.querySelectorAll(xe.course),this._courseAmount=this._element.querySelector(xe.courseAmount),this._scrollToTopButton=this._element.querySelector(xe.scrollToTopButton),this._currentTags=[],this._currentAmountOfShownCourses=this._courses.length,this.init=function(){n.addEventListeners(),n._courseAmount.textContent="".concat(n._currentAmountOfShownCourses.toString()," ").concat(Granite.I18n.get("apps.amag-ch.components.c
6ontent-amag.academy-course-list.i18n.courses-amount"))},this.addEventListeners=function(){n._filterSection.addEventListener("click",n.toggleFilterSection),n._filterResetButton.addEventListener("click",n.resetFilter),n._filterTags.forEach((function(e){e.addEventListener("click",n.toggleActive)})),n._courses.forEach((function(e){e.addEventListener("click",n.navigateToCourse(e.dataset.link))})),n._scrollToTopButton.addEventListener("click",n.scrollToTop)},this.toggleFilterSection=function(){n._filterSectionText.classList.toggle("open"),n._filterTagsContainer.hidden=!n._filterTagsContainer.hidden},this.resetFilter=function(){n._currentTags=[],n._filterTags.forEach((function(e){e.classList.remove("active")})),n.filterCourses(),n.updateCurrentShownCoursesAmount(),n._filterResetButton.hidden=!0},this.toggleActive=function(e){e.preventDefault();var t=e.target;t.classList.toggle("active"),n.updateTagList(t.id),n.filterCourses(),n.updateCurrentShownCoursesAmount()},this.updateTagList=function(e){n._currentTags.includes(e)?n._currentTags.splice(n._currentTags.indexOf(e),1):n._currentTags.push(e),0===n._currentTags.length?n._filterResetButton.hidden=!0:n._filterResetButton.hidden=!1},this.filterCourses=function(){n._courses.forEach((function(e){0!==n._currentTags.length?e.hidden=!n._currentTags.some((function(t){return e.dataset.categories.split(",").includes(t)})):e.hidden=!1}))},this.updateCurrentShownCoursesAmount=function(){n._currentAmountOfShownCourses=0,n._courses.forEach((function(e){e.hidden||n._currentAmountOfShownCourses++})),n._courseAmount.textContent="".concat(n._currentAmountOfShownCourses.toString()," ").concat(Granite.I18n.get("apps.amag-ch.components.content-amag.academy-course-list.i18n.courses-amount"))},this.navigateToCourse=function(e){return function(){window.location.href=e}},this.scrollToTop=function(){window.scrollTo({top:0,left:0,behavior:"smooth"})},this.init()}));Ae=Ce([(0,Se.d)({selector:".amag-academy-course-list",onDomLoaded:!0}),Ee("design:paramtypes",[HTMLDivElement])],Ae);var ke=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Te=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Le=function(){return(0,be.A)((function e(t){(0,we.A)(this,e),this.element=t,this.init()}),[{key:"init",value:function(){this.stylingSection()}},{key:"addClassOnNextSection",value:function(e,t,n){var r,a=null===(r=e.closest(".accordionSection"))||void 0===r?void 0:r.nextElementSibling;if(a&&a.matches(".accordionSection")){var i=a.querySelector(".amagCh-accordionSection__stepswrapper-before");if(!i)return;if(i.classList.add(t),!n)return;i.style.setProperty("--stepswrapper-bgcolor",n)}}},{key:"hideNextSectionStepwrapper",value:function(e,t){var n,r=null===(n=e.closest(".accordionSection"))||void 0===n?void 0:n.nextElementSibling;if(r&&r.classList.contains(t)){var a=r.querySelector(".amagCh-accordionSection__stepswrapper-before");if(!a)return;a.classList.add("d-none")}}},{key:"hideNextColoredSectionStepwrapper",value:function(e,t){var n,r=null===(n=e.closest(".accordionSection"))||void 0===n?void 0:n.nextElementSibling;if(r){var a=r.dataset.color===t?r.querySelector(".amagCh-accordionSection__stepswrapper-before"):null;a&&a.classList.add("d-none")}}},{key:"stylingSection",value:function(){var e=this.element.classList,t=this.element.dataset.color;e.contains("amagCh-accordionSection--colored")?(this.element.classList.remove("amagCh-accordionSection--grey"),this.addClassOnNextSection(this.element,"background-color-colored",t),this.hideNextColoredSectionStepwrapper(this.element,t)):e.contains("amagCh-accordionSection--grey")?(this.addClassOnNextSection(this.element,"background-color-grey",""),this.hideNextSectionStepwrapper(this.element,"amagCh-accordionSection--grey")):this.addClassOnNextSection(this.element,"background-color-white",t)}}])}();Le=ke([(0,Se.d)({selector:".amagCh-accordionSection",onDomLoaded:!0}),Te("design:paramtypes",[HTMLElement])],Le);var Ie=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},De=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Pe=function(){return(0,be.A)((function e(t){(0,we.A)(this,e),this.element=t,this.init()}),[{key:"init",value:function(){var e=this.element.querySelector("#animatedNumber");if(e.classList.contains("amag-animatedCounter-number__animated")){var t=this.element.querySelector(".amag-animatedCounter-number__transparent"),n=e.getAttribute("data-number"),r=e.getAttribute("data-duration");e.style.width=t.offsetWidth+"px",t.hidden=!0,e.innerHTML="",e.appendChild(this.addDigits(r,n)),this.animateDigits(n)}}},{key:"addDigits",value:function(e,t){for(var n=document.createDocumentFragment(),r=0;r<t.length;r++){var a=document.createElement("div");if(a.classList.add("amag-animatedCounter-number-wrapper","amag-animatedCounter-number-wrapper--duration-".concat(e)),a.classList.add("digit-".concat(r)),a.style.marginTop="0px",Number.isNaN(parseFloat(t[r]))){var i=document.createElement("div");i.innerText="".concat(t[r]),a.appendChild(i)}else for(var o=0;o<=9;o++){var s=document.createElement("div");s.innerText="".concat(o),a.appendChild(s)}n.appendChild(a)}return n}},{key:"animateDigits",value:function(e){var t=this;
6new IntersectionObserver((function(n,r){n.forEach((function(n){if(n.isIntersecting){for(var a=0;a<e.length;a++){if(!Number.isNaN(parseInt(e[a])))t.element.querySelector(".digit-".concat(a)).style.marginTop="-".concat(100*parseInt(e[a]),"px")}r.unobserve(n.target)}}))}),{root:null,threshold:.5}).observe(this.element)}}])}();Pe=Ie([(0,Se.d)({selector:".amag-animatedCounter",onDomLoaded:!0}),De("design:paramtypes",[HTMLElement])],Pe);var Oe=n(40596),Re=n(18282),Me=n(74692),qe=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Ne=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ve=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Fe=function(){return(0,be.A)((function e(t){var n=this;(0,we.A)(this,e),this.element=t,this.descriptionEl=this.element.querySelector(".amag-blogTeaser-description"),this.RSS_URL=this.descriptionEl.dataset.feed,this.contentWrapper=this.element.querySelector(".amag-blogTeaser-content"),this.template=this.element.querySelector("template"),this.init=function(){return Ve(n,void 0,void 0,x().mark((function e(){var t,n;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.setSpinner(),e.next=3,this.createRssItems();case 3:if(0!==(n=e.sent).length){e.next=6;break}return e.abrupt("return");case 6:return this.appendRssItems(n),e.next=9,t.remove();case 9:case"end":return e.stop()}}),e,this)})))},this.setSpinner=function(){var e=new Oe.y;return e.text="",e.backgroundColor="rgba(0, 0, 0, 0.7)",e.color="white",e.$.css("align-items","center"),e.show(Me(n.contentWrapper)),e},this.getRssFeedItems=function(){return Ve(n,void 0,void 0,x().mark((function e(){var t;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.RSS_URL);case 2:if(!(t=e.sent).ok){e.next=7;break}return e.next=6,t.text();case 6:return e.abrupt("return",e.sent);case 7:return console.error("Feed could not be loaded!"),e.abrupt("return",null);case 9:case"end":return e.stop()}}),e,this)})))},this.convertDate=function(e){var t=new Date(e);return new Intl.DateTimeFormat("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"}).format(t)},this.getLabels=function(e){var t=[];return e.forEach((function(e){var n={title:e.querySelector("name").innerHTML.replace("<![CDATA[","").replace("]]>",""),link:e.querySelector("link").innerHTML};t.push(n)})),t},this.appendRssItems=function(e){e.forEach((function(e){var t=(0,Re.C)(n.template);t.querySelector(".amag-blogTeaser-content__image").style.backgroundImage="url(".concat(e.imageUrl,")"),t.querySelector(".amag-blogTeaser-content__link a").href=e.linkUrl,t.querySelector(".amag-blogTeaser-content__date").innerText=e.date,t.querySelector(".amag-blogTeaser-content__headline").innerText=e.title,e.labels.forEach((function(e){var n='<span class="amag-blogTeaser-content__label"><a href="'.concat(e.link,'" target="_blank">').concat(e.title,"</a></span>");t.querySelector(".amag-blogTeaser-content__labels").insertAdjacentHTML("afterend",n)})),n.contentWrapper.firstElementChild.appendChild(t)}))},this.init().catch()}),[{key:"createRssItems",value:function(){return Ve(this,void 0,void 0,x().mark((function e(){var t,n,r,a=this;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRssFeedItems();case 2:if(null!==(t=e.sent)){e.next=5;break}return e.abrupt("return",[]);case 5:return n=(new window.DOMParser).parseFromString(t,"text/xml").querySelectorAll("item"),r=[],n.forEach((function(e){var t={imageUrl:e.querySelector("post_thumbnail url").innerHTML,title:e.querySelector("title").innerHTML,linkUrl:e.querySelector("link").innerHTML,labels:a.getLabels(Array.from(e.querySelectorAll("post_c
6ategory"))),date:a.convertDate(e.querySelector("pubDate").innerHTML)};r.push(t)})),e.abrupt("return",r.slice(0,4));case 9:case"end":return e.stop()}}),e,this)})))}}])}();Fe=qe([(0,Se.d)({selector:".amag-blogTeaser",onDomLoaded:!0}),Ne("design:paramtypes",[HTMLElement])],Fe);var Be=n(52286),je=n(1847),He=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Ge=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ue=(0,be.A)((function e(t){var n=this;(0,we.A)(this,e),this._element=t,this._shareButtonService=new je.R,this.init=function(){n._element&&(window.addEventListener("resize",(function(){(0,Be.n)(n._element)})),(0,Be.n)(n._element),n._shareButtonService.init(n._element))},this.init()}));Ue=He([(0,Se.d)({selector:".cmp-breadcrumb",onDomLoaded:!0}),Ge("design:paramtypes",[HTMLElement])],Ue);var We=n(65561),ze=n(74692);function $e(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ye(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ze=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Ke=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Xe=function(){return(0,be.A)((function e(t){(0,we.A)(this,e),this.element=t,this.carouselElements=this.element.getElementsByClassName("cmp-carousel__item"),this.init()}),[{key:"init",value:function(){this.equaliseAllElements(),this.captionItem(),this.carouselFunction(),this.addClickEventToTile()}},{key:"captionItem",value:function(){if(this.element.querySelectorAll(".cmp-carousel__item").length>1){var e,t=this.element.querySelectorAll(".cmp-carousel__item"),n=this.element.querySelectorAll(".cmp-carousel__captionitem .cmp-carousel__indicatortext"),r=0,a=$e(t);try{for(a.s();!(e=a.n()).done;){var i=e.value;null!==i.querySelector(".amag-image")&&null!==i.querySelector(".amag-image .amag-image__imgCaption")&&(n[r].innerHTML+=i.querySelector(".amag-image .amag-image__imgCaption").textContent.trim()),r++}}catch(e){a.e(e)}finally{a.f()}}}},{key:"carouselFunction",value:function(){var e=this.element.querySelectorAll(".cmp-carousel__item").length,t=!1,n=this.element.querySelectorAll(".cmp-carousel__indicatortext"),r=this.element.getElementsByClassName("cmp-carousel__captionitems");if(Array.from(n).forEach((function(e){e.innerHTML.trim().length>1&&(t=!0)})),t||ze(r).css("display","none"),e>1){this.element.querySelector(".cmp-carousel__itemsLength").innerText=e+"";var a,i,o=this.element.querySelectorAll(".cmp-carousel__action"),s=this.element.querySelectorAll(".cmp-carousel__item"),c=this.element.querySelector(".cmp-carousel__items"),l=this.element.querySelector(".cmp-carousel__captionitems"),u=$e(o);try{for(u.s();!(i=u.n()).done;){i.value.addEventListener("click",(function(){var e,t,n=$e(s);try{for(n.s();!(t=n.n()).done;){e=t.value.classList.contains("threeCol")}}catch(e){n.e(e)}finally{n.f()}a=e?A.lp.isMobile()||A.lp.isTablet()?ze(s[0]).width()+30:ze(s[0]).width()+45:ze(s[0]).width()+30;var r=this.closest(".cmp-carousel__content");r.querySelector(".cmp-carousel__activeItemIndex").innerText=r.querySelector(".cmp-carousel__indicator.cmp-carousel__indicator--active").getAttribute("aria-label"),r.querySelector(".cmp-carousel__item.prev")&&r.querySelector(".cmp-carousel__item.prev").classList.remove("prev"),null!=r.querySelector(".cmp-carousel__item--active").previousElementSibling&&r.querySelector(".cmp-carousel__item--active").previousElementSibling.classList.add("prev");var i,o=0,u=0,d=$e(s);try{for(d.s();!(i=d.n()).done;){var h=i.value;u++,h.classList.contains("cmp-carousel__item--active")&&(o=u)}}catch(e){d.e(e)}finally{d.f()}var p=(o-1)*a;(ze(this).hasClass("cmp-carousel__action--next")||ze(this).hasClass("cmp-carousel__action--previous"))&&(ze(c).stop(!1,!0).animate({left:"-"+p}),ze(l).stop(!1,!0).animate({left:"-"+p}))}))}}catch(e){u.e(e)}finally{u.f()}}else this.element.querySelector(".cmp-carousel__actions").style.display="none"}},{key:"addClickEventToTile",value:function(){document.querySelectorAll(".amag-angeboteRecoContainer__reco").forEach((function(e){e.addEventListener("click",(function(){e.querySelector("a").click()}))}))}},{key:"equaliseAllElements",value:function(){for(var e=this.element.getElementsByClassName("cmp-carousel__item"),t=1;t<e.length;t++)e[t].classList.add("cmp-carousel__item--active");(0,We.A)(e);for(var n=1;n<e.length;n++)e[n].classList.remove("cmp-carousel__item--active")}}])}();Xe=Ze([(0,Se.d)({selector:".amagCh-carousel",onDomLoaded:!0}),Ke("design:paramtypes",[HTMLElement])],Xe);var Je=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Qe=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},et=function(){return(0,be.A)((function e(t){var n=this;(0,we.A)(this,e),this.element=t,this.addFrontNowAIEvent=function(){if(n.element.querySelector(".isFrontnow")){var e=window.aiAdvisor,t=
6document.querySelector(".frontnow-button"),r=document.querySelector(".amag-direct-entry");if(e&&t)n.aiEventLogic(n.element,r,t,e);else{var a=new MutationObserver((function(){var e=window.aiAdvisor,t=document.querySelector(".frontnow-button");e&&t&&(n.aiEventLogic(n.element,r,t,e),a.disconnect())}));a.observe(document.body,{subtree:!0,childList:!0})}}},this.aiEventLogic=function(e,t,n,r){r.hideLauncher(),n.classList.add("no-show"),e.attributes.removeNamedItem("href"),e.addEventListener("click",(function(e){e.preventDefault(),r.open()}))},this.init(),this.addFrontNowAIEvent()}),[{key:"init",value:function(){this.setColor()}},{key:"setColor",value:function(){this.element.dataset.btnColor&&this.element.dataset.textColor&&!this.isDisplayAsLink()&&(this.element.style.backgroundColor=this.element.dataset.btnColor,this.element.style.color=this.element.dataset.textColor)}},{key:"isDisplayAsLink",value:function(){return this.element.classList.contains("displayAsLink")}}])}();et=Je([(0,Se.d)({selector:".amag-ctaWrapper__button",onDomLoaded:!0}),Qe("design:paramtypes",[HTMLAnchorElement])],et);var tt=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},nt=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},rt=(0,be.A)((function e(t){var n=this;(0,we.A)(this,e),this.element=t,this.init=function(){var e=n.element.querySelector(".amag-download__title"),t=e.getAttribute("title");t&&e.setAttribute("title",t.replace(/<(.|\n)*?>/g,""))},this.init()}));rt=tt([(0,Se.d)({selector:".amag-download",onDomLoaded:!0}),nt("design:paramtypes",[HTMLElement])],rt);var at=n(74692);function it(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ot(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var st=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},ct=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},lt=(0,be.A)((function e(t){var n=this;(0,we.A)(this,e),this.element=t,this.init=function(){if(n.element.classList.contains("cmp-form-options--drop-down")||n.element.classList.contains("cmp-form-options--multi-drop-down")){var e=n.element.querySelector("select");n.bindSelectEventListener(e),n.setSelectFieldValidity(e)}else{var t=n.element.querySelectorAll(".cmp-form-options__field");n.bindInputEventListeners(t),n.updateInputFieldsetValidity(t)}},this.bindInputEventListeners=function(e){e.forEach((function(t){t.addEventListener("change",(function(){return n.updateInputFieldsetValidity(e)}))}))},this.bindSelectEventListener=function(e){at(n.element).on("change select2:select select2:unselect","select",(function(){n.setSelectFieldValidity(e)}))},this.isOneOptionChecked=function(e){var t,n=it(e);try{for(n.s();!(t=n.n()).done;){if(t.value.checked)return!0}}catch(e){n.e(e)}finally{n.f()}return!1},this.isElementVisible=function(e){var t=window.getComputedStyle(e);
6return"none"!==t.display&&"hidden"!==t.visibility&&e.getClientRects().length>0},this.updateInputFieldsetValidity=function(e){if(n.isElementVisible(n.element)){var t=n.isOneOptionChecked(e),r=Array.from(e).find((function(e){return!e.disabled}));e.forEach((function(e){if(e.removeAttribute("required"),t)e.setCustomValidity("");else{var n=e.dataset.requiredMessage;e.setCustomValidity(n||""),e===r&&e.setAttribute("required","true")}}))}else e.forEach((function(e){e.removeAttribute("required"),e.setCustomValidity("")}))},this.setSelectFieldValidity=function(e){if(!e||!n.isElementVisible(n.element))return null==e||e.removeAttribute("required"),void(null==e||e.setCustomValidity(""));var t=""!==e.value,r=e.dataset.requiredMessage;if(t)return e.removeAttribute("required"),void e.setCustomValidity("");e.setCustomValidity(r||""),e.setAttribute("required","true")},this.init()}));lt=st([(0,Se.d)({selector:".cmp-form-options[required]",onDomLoaded:!0}),ct("design:paramtypes",[HTMLElement])],lt);var ut=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},dt=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ht=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},pt=(0,be.A)((function e(t){var n=this;(0,we.A)(this,e),this.element=t,this.AMAGCH_BUSINESS_RATING_SELECTOR="amagch-business-rating",this.googleMyBusinessRating_content=this.element.querySelector(".googleMyBusinessRating__content"),this.averageRatingType="type.average.rating",this.userRatingsType="type.user.ratings",this.init=function(){return ht(n,void 0,void 0,x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.checkHasContent()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.requestGoogleMyBusinessRating();case 4:this.checkTypeOfRating();case 5:case"end":return e.stop()}}),e,this)})))},this.checkHasContent=function(){var e=n.element.childElementCount>0;return e||console.warn("===================================\nGoogle MyBusiness Rating: Please check if a title has been set for the component, otherwise it will not be displayed.\n==================================="),e},this.requestGoogleMyBusinessRating=function(){return ht(n,void 0,void 0,x().mark((function e(){var t,n;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new URL(window.location.origin+(0,k.$)(this.AMAGCH_BUSINESS_RATING_SELECTOR)+window.location.search+"?"),e.next=3,fetch(t);case 3:if(!(n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:return this.myBusinessRatingData=e.sent,e.abrupt("return");case 9:console.error("Error occurred during fetch of rating data in function requestGoogleMyBusinessRating.");case 10:case"end":return e.stop()}}),e,this)})))},this.checkTypeOfRating=function(){var e,t=null===(e=n.googleMyBusinessRating_content)||void 0===e?void 0:e.dataset.ratingType;t===n.averageRatingType?n.createAverageRatingDisplay():t===n.userRatingsType&&n.createUserRatingsDisplay()},this.createStarElements=function(e){for(var t='<svg class="size-l" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#FFDF00" viewBox="0 0 16 16">\n <path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>\n </svg>',n='<svg class="size-l" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#eee" viewBox="0 0 16 16">\n <path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>\n </svg>',r=Math.floor(e),a=e-Math.floor(e),i="",o=0;o<r;o++)i+=t;a>=.75?i+=t:a>=.25&&a<.75?i+='<svg class="size-l" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#eee" viewBox="0 0 16 16">\n <path d="M 8 13.187 L 7.538 0.792 C 7.735 0.402 8.268 0.402 8.465 0.792 L 10.649 5.119 L 15.547 5.815 C 15.988 5.877 16.159 6.451 15.829 6.765 L 12.307 10.121 L 13.137 14.851 C 13.215 15.294 12.777 15.641 12.391 15.443 L 8 13.187 Z"/>\n <path style="fill: #FFDF00;" d="M 3.592 15.443 C 3.206 15.641 2.768 15.294 2.846 14.851 L 3.676 10.121 L 0.153 6.765 C -0.176 6.451 -0.005 5.877 0.436 5.815 L 5.334 5.119 L 7.531 0.792 C 7.728 0.402 8.103 0.389 8.051 0.805 L 7.98 13.187 L 3.591 15.443 L 3.592 15.443 Z"/>\n </svg>':a>0&&a<.25&&(i+=n);for(var s=5-(0!==a?r+1:r),c=0;c<s;c++)i+=n;return i},this.createAverageRatingDisplay=function(){var e=n.element.querySelector(".googleMyBusinessRating__averageRatingTitle"),t=n.element.querySelector(".googleMyBusinessRating__averageRatingActual"),r=n.element.querySelector(".googleMyBusinessRating__averageRatingStars"),a=n.myBusinessRatingData.totalReviewCount.toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."),i=n.myBusinessRatingData.averageRating,o=n.createStarElements(i),s=e.querySelector("p"),c=s.innerHTML;c='<span class="googleMyBusinessRating__averageRatingAmount">'.concat(a,"</span>")+c,s.innerHTML=c,t.innerText="".concat(Math.round(10*i)/10),r.innerHTML=o},this.createUserRatingsDisplay=function(){var e=n.element.querySelector(".googleMyBusinessRating__userRatingsBody"),t=n.myBusinessRatingData.reviews;e.innerHTML="",t.forEach((function(t){if("STAR_RATING_UNSPECIFIED"!==t.starRating){var r,a,i=t.comment,o=t.reviewer.displayName,s=!1;switch(t.starRating){case"FIVE":r=5;break;case"FOUR":r=4;break;case"THREE":r=3;break;case"TWO":r=2;break;case"ONE":r=1;break;default:s=!0}
6if(!s){a=n.createStarElements(r);var c='<div class="googleMyBusinessRating__userRatingsItem">\n <div class="googleMyBusinessRating__userRatingsItemTitle">\n <p class="googleMyBusinessRating__userRatingsItemName">'.concat(o,'</p>\n <span class="googleMyBusinessRating__userRatingsItemStars">').concat(a,'</span>\n </div>\n <p class="googleMyBusinessRating__userRatingsItemText">').concat(i,"</p>\n </div>");e.insertAdjacentHTML("beforeend",c)}}}))},this.init().catch()}));pt=ut([(0,Se.d)({selector:".googleMyBusinessRating",onDomLoaded:!0}),dt("design:paramtypes",[HTMLElement])],pt);var ft,mt,vt,gt=n(67443),yt=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},_t=null===(ft=document.querySelector("#nav-list"))||void 0===ft?void 0:ft.content,bt=null===(mt=document.querySelector("#nav-nested-item"))||void 0===mt?void 0:mt.content,wt=null===(vt=document.querySelector("#nav-direct-item"))||void 0===vt?void 0:vt.content,St=document.querySelector(".generic-nav-v2__header"),Ct=document.querySelector(".generic-sidebar-v2");function Et(){return yt(this,void 0,void 0,x().mark((function e(){var t;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,gt.ee)("amag-navigation","json?");case 3:if(!At(t=e.sent)){e.next=6;break}return e.abrupt("return",t);case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.error("Could not fetch navigation",e.t0);case 11:return e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})))}function xt(e,t){if(0!==e.length){t.append(_t.cloneNode(!0));var n=t.querySelector("ul");e.forEach((function(e){0!==e.children.length?function(e,t){var n=bt.cloneNode(!0),r=n.querySelector("button"),a=n.querySelector("div"),i=n.querySelector("li");a.innerHTML=e.icon,r.innerHTML=e.label+r.innerHTML,r.addEventListener("click",(function(){(function(e){return(0,C.A)(e.parentElement.children).filter((function(t){return t!==e}))})(r.parentElement).forEach((function(e){e.classList.remove("active")})),function(e,t){if(A.lp.isMobile()||A.lp.isTablet())return;e.style.height="auto";var n=e.getBoundingClientRect().height,r=t.getBoundingClientRect().height;if(n>=r)return;e.style.height=r+"px"}(r.closest("ul"),r.nextElementSibling),r.parentElement.classList.add("active"),St.classList.add("active"),Ct.classList.add("overflow-hidden"),Ct.scrollTop=0})),xt(e.children,i),t.append(n)}(e,n):function(e,t){var n=wt.cloneNode(!0),r=n.querySelector("a"),a=n.querySelector("div"),i=n.querySelector("span");r.href=e.href,a.innerHTML=e.icon,i.innerText=e.label,e.showAsTile&&n.firstElementChild.classList.add("generic-nav-v2__list-item--tile-view");t.append(n)}(e,n)}))}}function At(e){return!!Array.isArray(e)&&void 0!==e[0].label}var kt=function(){return(0,be.A)((function e(t,n){(0,we.A)(this,e),this.sidebarEl=t,this.navigationList=n,this.navContainer=this.sidebarEl.querySelector(".generic-sidebar-v2__navigation"),this.backButton=this.sidebarEl.querySelector(".generic-nav-v2__back-button"),this.closeSidebarBtn=this.sidebarEl.querySelector(".generic-nav-v2__close-btn"),this.sidebarHeader=this.sidebarEl.querySelector(".generic-nav-v2__header"),this.headerEl=document.querySelector("header"),this.header=document.querySelector(".generic-header-v2"),this.openSidebarHeaderBtn=this.headerEl.querySelector(".generic-header-v2__open-sidebar-btn"),this.bindEvents()}),[{key:"bindEvents",value:function(){var e=this;this.closeSidebarBtn.addEventListener("click",(function(){return e.closeSidebar()})),this.backButton.addEventListener("click",(function(){var t=document.querySelectorAll(".generic-nav-v2__list-item.active");t[t.length-1].classList.remove("active"),1===t.length&&(e.resetSidebarHeader(),e.sidebarEl.classList.remove("overflow-hidden"))})),window.addEventListener("resize",(function(){return e.closeSidebar()})),window.addEventListener("click",(function(t){var n=t.target;e.sidebarEl.contains(n)||e.headerEl.contains(n)||e.closeSidebar()}))}},{key:"resetSidebarHeader",value:function(){this.sidebarHeader.classList.remove("active")}},{key:"resetFirstLevelNavItems",value:function(){this.headerEl.querySelectorAll(".generic-header-v2__navigation-item.active").forEach((function(e){return e.classList.remove("active")}))}},{key:"resetActiveLists",value:function(){this.sidebarEl.querySelectorAll(".generic-nav-v2__list-item.active").forEach((function(e){e.classList.remove("active")}))}},{key:"resetHeaderButtons",value:function(){var e;null===(e=this.openSidebarHeaderBtn)||void 0===e||e.classList.remove("inactive")}},{key:"resetHeader",value:function(){this.header.classList.remove("active")}},{key:"openSidebar",value:function(e){this.sidebarEl.classList.add("active"),document.querySelector("body").classList.add("overflow-hidden"),xt(void 0!==e?this.navigationList[e].children:this.navigationList,this.navContainer)}},{key:"closeSidebar",value:function(){var e=this;this.sidebarEl.classList.remove("active"),this.sidebarEl.classList.remove("overflow-hidden"),this.resetHeaderButtons(),this.resetActiveLists(),this.resetFirstLevelNavItems(),this.resetHeader(),document.querySelector("body").classList.remove("overflow-hidden"),this.sidebarEl.addEventListener("transitionend",(function(){var t;e.sidebarEl.classList.contains("active")||(null===(t=e.navContainer.querySelector("ul"))||void 0===t||t.remove(),e.resetSidebarHeader())}),{once:!0})}}])}(),Tt=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Lt=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}
6,It=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Dt=function(){return(0,be.A)((function e(t){var n=this;(0,we.A)(this,e),this.element=t,this.header=this.element.querySelector("header"),this.firstLevelContainer=this.element.querySelector(".generic-header-v2__navigation-list"),this.sidebarEl=this.element.querySelector(".generic-sidebar-v2"),this.navContainer=this.sidebarEl.querySelector(".generic-sidebar-v2__navigation"),this.openSidebarBtn=this.element.querySelector(".generic-header-v2__open-sidebar-btn"),this.closeSidebarBtn=this.element.querySelector(".generic-header-v2__close-sidebar-btn"),this.lastScrollPosition=0,this.handleScroll=function(){var e=window.scrollY||document.documentElement.scrollTop,t=e>n.lastScrollPosition,r=n.header.offsetHeight;return t&&e>=2*r?(n.header.style.position="fixed",n.header.style.top="-".concat(r,"px"),n.hidePopUp(r),void(n.lastScrollPosition=e)):!t&&e>=2*r?(n.header.style.position="fixed",n.header.style.top="0",n.header.style.width="100vw",n.showPopUp(),void(n.lastScrollPosition=e)):(n.header.style.removeProperty("position"),n.header.style.removeProperty("top"),n.header.style.removeProperty("width"),void(n.lastScrollPosition=e))},this.hidePopUp=function(e){var t=n.header.querySelector(".amag-pop-up__wrapper--desktop"),r=n.header.querySelector(".amag-pop-up__wrapper--mobile"),a=r?r.offsetHeight:0;A.lp.isDesktop()&&t&&!t.classList.contains("amag-pop-up__unseen")&&(t.style.transition="top 0.5s ease",t.style.top="-".concat(e,"px")),(A.lp.isMobile()||A.lp.isTablet())&&r&&!r.classList.contains("d-none")&&(r.style.top="-".concat(a,"px"))},this.showPopUp=function(){if(!(0,A.I$)()){var e=n.header.querySelector(".amag-pop-up__wrapper--desktop"),t=n.header.querySelector(".amag-pop-up__wrapper--mobile");A.lp.isDesktop()&&e&&!e.classList.contains("amag-pop-up__unseen")&&(e.style.transition="top 0.5s ease",e.style.top="0"),(A.lp.isMobile()||A.lp.isTablet())&&t&&!t.classList.contains("d-none")&&(t.style.top="0")}},this.init()}),[{key:"init",value:function(){return It(this,void 0,void 0,x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Et();case 2:this.navigationList=e.sent,this.sidebar=new kt(this.sidebarEl,this.navigationList),"true"!==this.header.dataset.hideNavigation&&this.appendFirstLevelNav(this.navigationList),this.bindEvents();case 6:case"end":return e.stop()}}),e,this)})))}},{key:"bindEvents",value:function(){var e,t,n=this;null===(e=this.openSidebarBtn)||void 0===e||e.addEventListener("click",(function(){n.openSidebarBtn.classList.add("inactive"),n.element.classList.add("active"),n.sidebar.openSidebar()})),null===(t=this.closeSidebarBtn)||void 0===t||t.addEventListener("click",(function(){n.openSidebarBtn.classList.remove("inactive"),n.element.classList.remove("active"),n.sidebar.closeSidebar()})),document.addEventListener("scroll",this.handleScroll)}},{key:"appendFirstLevelNav",value:function(e){var t=this,n=this.element.querySelector("#header-nav-item").content;e.forEach((function(e,r){var a=n.cloneNode(!0),i=a.firstElementChild,o=a.querySelector("a");o.innerText=e.label,o.href=e.href,o.setAttribute("title",e.label),i.dataset.index=""+r,e.children.length>0&&i.addEventListener("click",(function(e){var n;document.querySelectorAll(".generic-header-v2__navigation-item.active").forEach((function(e){return e.classList.remove("active")})),i.classList.add("active"),e.preventDefault(),null===(n=t.navContainer.querySelector("ul"))||void 0===n||n.remove(),t.sidebar.openSidebar(+i.dataset.index)})),t.firstLevelContainer.append(a)}))}}])}();Dt=Tt([(0,Se.d)({selector:".generic-header-v2"}),Lt("design:paramtypes",[HTMLElement])],Dt);var Pt=n(74692),Ot=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Rt=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}
6,Mt=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},qt=function(){return(0,be.A)((function e(t){(0,we.A)(this,e),this.element=t,this.statics={selectors:{component:".js-amag-imageGallery",item:".js-amag-imageGallery__item",button:".js-amag-imageGallery__btn"},html:{svgRight:'<svg height="33" width="19" viewBox="0 0 32 64" xmlns="http://www.w3.org/2000/svg" class="imageGallery__icon-arrow"><g fill="none" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke" stroke-width="6"><path d="M2.30 59.5388L29.8 32.04L2.30 4.54"></path></g></svg>',svgLeft:'<svg height="33" width="19" viewBox="0 0 32 64" xmlns="http://www.w3.org/2000/svg" class="imageGallery__icon-arrow"><g fill="none" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke" stroke-width="6"><path d="M29.8 59.5388L2.30 32.04L29.8 4.54"></path></g></svg>'}},this.init()}),[{key:"init",value:function(){return Mt(this,void 0,void 0,x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.listAndHide();case 1:case"end":return e.stop()}}),e,this)})))}},{key:"listAndHide",value:function(){var e=this,t=Pt(this.element),n=t.find(this.statics.selectors.item),r=t.find(this.statics.selectors.button);n.slice(0,12).show(),n.length<13?r.fadeOut("slow"):r.fadeIn("slow"),r.on("click",(function(n){n.preventDefault(),t.find("".concat(e.statics.selectors.item,":hidden")).slice(0,8).slideDown(),0===t.find("".concat(e.statics.selectors.item,":hidden")).length&&r.fadeOut("slow")})),this.findAndBind()}},{key:"findAndBind",value:function(){var e=window.innerWidth>765?window.innerWidth-100:window.innerWidth,t=window.innerHeight-150,n=this;Pt(this.element).find('*[data-toggle="lightbox"]').on("click",(function(r){r.preventDefault(),Pt(this).ekkoLightbox({title:"EKKO-Titel",alwaysShowClose:!0,showArrows:!0,maxHeight:t,maxWidth:e,leftArrow:'<div class="amag-imageGallery__action amag-imageGallery__action--previous" type="button" data-cmp-hook-carousel="previous">'.concat(n.statics.html.svgLeft,"</div>"),rightArrow:'<div class="amag-imageGallery__action amag-imageGallery__action--next" type="button" data-cmp-hook-carousel="next">'.concat(n.statics.html.svgRight,"</div>")})}))}}])}();qt=Ot([(0,Se.d)({selector:".js-amag-imageGallery"}),Rt("design:paramtypes",[HTMLElement])],qt);var Nt=n(26474),Vt=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Ft=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Bt=function(){return(0,be.A)((function e(t){(0,we.A)(this,e),this.element=t,this.favoriteGarageContainer=this.element.querySelector(".amag-introGarage__favoriteGarage"),this.garageId=this.favoriteGarageContainer.getAttribute("data-cookievalue"),this.handleIcon()}),[{key:"handleIcon",value:function(){var e=(0,re.A)(this.favoriteGarageContainer.children,2),t=e[0],n=e[1],r=(0,Nt.Ri)(Nt.AZ.GARAGE);r&&r===this.garageId&&(t.classList.add("d-none"),n.classList.remove("d-none"))}}])}();Bt=Vt([(0,Se.d)({selector:".amag-introGarage"}),Ft("design:paramtypes",[HTMLElement])],Bt);var jt=n(16359),Ht=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Gt=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ut=function(){return(0,be.A)((function e(t){(0,we.A)(this,e),this.element=t,this.imageElement=this.element.querySelector(".amag-maxiTeaserBild__content"),this.init()}),[{key:"init",value:function(){this.ivViewer()}},{key:"ivViewer",value:function(){var e;if(null===(e=this.imageElement)||void 0===e?void 0:e.classList.contains("dm-image")){var t=0;t=A.lp.isMobile()?2:A.lp.isTablet()?1:0;var n=this.element.querySelector(".amag-maxiTeaserBild__imgContainer"),r=this.element.querySelector(".amag-maxiTeaserBild__imgContainer picture").children[t].getAttribute("srcset").toString().trim().split("w,")[0].split(" ")[0];n.addEventListener("click",(function(e){var t=this.querySelector(".amag-maxiTeaserBild__img").currentSrc,n=new jt.WX({snapView:!1});n.show(t,r);var a=document.querySelector('div[class="iv-fullscreen"][style*="display: block;"]');if(a){var i=document.createElement("div");i.classList.add("amag-maxiTeaserBild__showZoomIcon"),i.innerHTML='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" rx="20" fill="#222222" fill-opacity="0.7"/><path d="M23.0362 12.2374C23.0694 12.2042 23.1153 12.1869 23.1616 12.1899C23.2513 12.1957 23.3197 12.2733 23.3139 12.363L22.9968 17.3477L29.2968 11.0477C29.3604 10.9841 29.4637 10.9841 29.5273 11.0477C29.5909 11.1113 29.5909 11.2146 29.5273 11.2782L23.2277 17.5777L28.2122 17.2608C28.2555 17.258 28.2975 17.2723 28.3302 17.3009C28.3627 17.3297 28.3823 17.3696 28.3851 17.4129C28.3881 17.4597 28.3708 17.50
656 28.3378 17.5386C28.3097 17.5667 28.2726 17.5835 28.2329 17.5858L23.1863 17.9069C23.1657 17.908 23.1452 17.9083 23.1245 17.9069C23.0173 17.9002 22.9173 17.8582 22.8345 17.7852C22.8269 17.7808 22.8182 17.7748 22.8092 17.7658C22.8032 17.7598 22.7988 17.7541 22.7958 17.7492C22.7937 17.7472 22.7916 17.7451 22.7893 17.7428C22.7024 17.6443 22.6596 17.5185 22.6676 17.3883L22.9887 12.342C22.9913 12.3026 23.0083 12.2653 23.0362 12.2374Z" fill="white" stroke="white" stroke-width="0.7"/><path d="M17.5385 28.3369C17.5053 28.3701 17.4595 28.3874 17.4131 28.3844C17.3235 28.3786 17.255 28.3009 17.2608 28.2113L17.5779 23.2268L11.2782 29.5265C11.2146 29.5901 11.1113 29.5901 11.0477 29.5265C10.9841 29.4629 10.9841 29.3596 11.0477 29.296L17.347 22.9968L12.3627 23.3137C12.3194 23.3164 12.2774 23.3021 12.2447 23.2736C12.2122 23.2448 12.1926 23.2049 12.1898 23.1616C12.1869 23.1148 12.2041 23.0689 12.2371 23.0359C12.2652 23.0078 12.3023 22.991 12.342 22.9887L17.3885 22.6676C17.409 22.6665 17.4295 22.6662 17.4502 22.6676C17.5574 22.6743 17.6574 22.7163 17.7402 22.7893C17.7478 22.7937 17.7566 22.7997 17.7655 22.8087C17.7715 22.8147 17.7759 22.8204 17.7789 22.8253C17.781 22.8273 17.7831 22.8294 17.7854 22.8317C17.8723 22.9301 17.9151 23.056 17.9071 23.1862L17.586 28.2322C17.5835 28.2717 17.5664 28.309 17.5385 28.3369Z" fill="white" stroke="white" stroke-width="0.7"/></svg>',i.onclick=function(){n.resetZoom()},a.appendChild(i),a.classList.add("iv-fullscreenupdated"),document.querySelector(".iv-fullscreen-close").addEventListener("click",(function(e){n.destroy()}))}}))}}}])}();Ut=Ht([(0,Se.d)({selector:".amag-maxiTeaserBild"}),Gt("design:paramtypes",[HTMLElement])],Ut);var Wt=n(91757),zt=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},$t=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Yt=(0,be.A)((function e(t){var n=this;(0,we.A)(this,e),this.component=t,this.statics={selectors:{component:".amag-newsTeaser",inner:".amag-newsTeaser-inner",showMoreBtn:".amag-newsTeaser__showMore-button",showMoreIcon:".amag-newsTeaser__showMore-icon",showLessIcon:".amag-newsTeaser__showLess-icon"},classes:{newsTeaserElem:"amag-newsTeaser-element",allNews:"allNews",newsHidden:"newsHidden"}},this.innerContainer=this.component.querySelector(this.statics.selectors.inner),this.newsLinkListener=function(){var e=n.component.querySelector(n.statics.selectors.inner);if(e)for(var t=e.children,r=0;r<t.length;r++){var a=t[r],i=a.querySelector(".amag-newsTeaser-element__info-headline a");a.querySelector(".amag-newsTeaser-element__info-link").addEventListener("click",(function(){var e=this.getAttribute("href");(0,Wt.A)("news_interaction","NewsModule","click",e)})),i.addEventListener("click",(function(){var e=this.getAttribute("href");(0,Wt.A)("news_interaction","NewsModule","click",e)}))}},this.setupNewsEnvironment=function(){var e=n.component.querySelector(n.statics.selectors.inner);e&&e.children.length>3&&n.showButton()},this.showButton=function(){n.component.querySelector(n.statics.selectors.showMoreBtn).classList.remove("d-none"),n.component.querySelector(n.statics.selectors.showMoreIcon).classList.remove("d-none")},this.hideButton=function(){n.component.querySelector(n.statics.selectors.showMoreBtn).classList.add("d-none"),n.component.querySelector(n.statics.selectors.showMoreIcon).classList.add("d-none")},this.fadeIn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=.1;e.style.display="flex";var r=setInterval((function(){n>=1&&clearInterval(r),e.style.opacity="".concat(n),e.style.filter="alpha(opacity=".concat(100*n,")"),n+=.1*n}),t)},this.fadeOut=function(e){var t=1,n=setInterval((function(){t<=.1&&(clearInterval(n),e.style.display="none"),e.style.opacity="".concat(t),e.style.filter="alpha(opacity=".concat(100*t,")"),t-=.1*t}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:10)},this.showInitialNews=function(){n.innerContainer.querySelectorAll("article").forEach((function(e,t){t<=2&&(e.style.display="flex")})),n.component.querySelector(n.statics.selectors.showMoreBtn).classList.add(n.statics.classes.allNews)},this.showAdditionalNews=function(){n.innerContainer.classList.remove(n.statics.classes.newsHidden),n.innerContainer.querySelectorAll("article").forEach((function(e,t){t>2&&n.fadeIn(e)})),n.component.querySelector(n.statics.selectors.showMoreBtn).classList.add(n.statics.classes.allNews)},this.hideAdditionalNews=function(){n.innerContainer.classList.add(n.statics.classes.newsHidden),n.innerContainer.querySelectorAll("article").forEach((function(e,t){t>=3&&n.fadeOut(e)})),n.component.querySelector(n.statics.selectors.showMoreBtn).classList.remove(n.statics.classes.allNews)},this.activateButtonListener=function(){var e=n.component.querySelector(n.statics.selectors.showMoreBtn),t=!1;e&&e.addEventListener("click",(function(){t?n.hideAdditionalNews():n.showAdditionalNews(),t=!t}))},this.setupNewsEnvironment(),this.activateButtonListener(),this.newsLinkListener()}));Yt=zt([(0,Se.d)({selector:".amag-newsTeaser"}),$t("design:paramtypes",[HTMLDivElement])],Yt);var Zt=n(58276),Kt=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Xt=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Jt=function(){return(0,be.A)((function e(t){var n;(0,we.A)(this,e),this.element=t,this.checkElement=document.querySelector(".amag-pop-up__check-element"),this.contentElement=this.element.querySelector(".amag-pop-up__content-box"),this.notificationElement=this.element.querySelector(".amag-pop-up__notification"),this.messageElement=this.element.querySelector(".amag-pop-up__message"),this.closeElement=this.element.querySelector(".amag-pop-up__icon"),this.moreLinkElement=this.element.querySelector(".amag-pop-up__linkLabel"),this.headerBeforeWrapperElement=document.querySelector(".amag-header__beforeWrapper"),this.headerLogoWrapperElement=document.querySelector(".amag-header__logoWrapper"),this.headerElement=document.querySelector("#header"),this.amagHeader=null===(n=this.headerElement)||void 0===n?void 0:n.querySelector(".amag-header"),this.beforeWrapperElement=document.querySelector(".amag-pop-up__wrapper-before "),this.headerV2ContainerElement=document.querySelector(".generic-header-v2"),this.headerV2HeaderElement=document.querySelector(".generic-header-v2__header"),this.sideBarElement=document.querySelector(".generic-sidebar-v2"),this.notification=this.notificationElement.innerText,this.startDate=this.contentElement.dataset.startDate?new Date(this.contentElement.dataset.startDate):null,this.endDate=this.contentElement.dataset.endDate?new Date(this.contentElement.dataset.endDate):null,this.currentDate=new Date,this.message=this.messageElement.innerText,this.init()}),[{key:"init",value:function(){var e=this;this.setDesktopBannerWidth(),this.checkLength(),window.addEventListener("resize",(function(){return e.setDesktopBannerWidth()})),this.checkVisibility(),this.addCloseEventListener()}},{key:"isBannerCookieAvailable",value:function(){var e=this.notification+this.message,t=(0,Nt.Ri)("banner"),n="%7B%22hash%22%3A%22"+(0,Zt.Y)(this.getChangeTriggeringContentsConcatenated(e,this.moreLinkElement.getAttribute("href")))+"%22%7D";return!(!t||n!==t)}},{key:"isBetweenDate",value:function(e,t,n){return(!t||t<=e)&&(!n||e<=n)}},{key:"checkVisibility",value:function(){var e;if(this.message&&this.moreLinkElement.getAttribute("href")&&this.checkElement&&this.isBetweenDate(this.currentDate,this.startDate,this.endDate)&&!this.isBannerCookieAvailable())if(this.element.classList.contains("amag-pop-up__wrapper--mobile")&&(A.lp.isMobile()||A.lp.isTablet())){if(this.element.classList.remove("d-none"),this.headerV2ContainerElement&&this.sideBarElement){this.sideBarInitialHeight=this.sideBarElement.offsetHeight,this.sideBarInitialTopPos=this.sideBarElement.getBoundingClientRect().top,this.popUpHeight=this.element.offsetHeight;var t="".concat(this.sideBarInitialHeight-this.popUpHeight,"px"),n="".concat(this.sideBarInitialTopPos+this.popUpHeight,"px");this.sideBarElement.style.height=t,this.sideBarElement.style.top=n}if(!this.headerElement)return;this.headerElement.style.top="".concat(this.element.offsetHeight,"px")}else this.element.classList.contains("amag-pop-up__wrapper--desktop")&&(this.element.classList.remove("amag-pop-up__unseen"),null===(e=this.beforeWrapperElement)||void 0===e||e.classList.remove("amag-pop-up__unseen"))}},{key:"checkLength",value:function(){var e=this.notification.length;if(e+this.message.length>130){var t=this.message,n=129-e;this.messageElement.innerText=t.substring(0,n)+"..."}}},{key:"closePopUp",value:function(){var e=this;if(A.lp.isMobile()||A.lp.isTablet()){var t;if(this.element.style.top="-".concat(this.element.offsetHeight,"px"),this.headerV2ContainerElement&&this.sideBarElement)this.sideBarElement.style.height="".concat(this.sideBarInitialHeight,"px"),this.sideBarElement.style.top="".concat(this.sideBarInitialTopPos,"px"),this.element.addEventListener("transitionstart",(function(){t=setInterval((function(){e.headerV2ContainerElement.style.setProperty("--top-offset",e.sideBarElement.getBoundingClientRect().top+"px"),e.headerV2HeaderElement.style.marginTop="-".concat(e.element.offsetHeight,"px")}),10)})),this.element.addEventListener("transitionend",(function(){clearInterval(t),e.headerV2HeaderElement.style.removeProperty("margin-top"),e.element.remove()}));this.headerElement&&(this.headerElement.style.top="0",this.amagHeader&&this.element.classList.add("d-none"))}else this.element.style.removeProperty("top"),this.element.classList.add("amag-pop-up__unseen"),this.beforeWrapperElement&&(this.beforeWrapperElement.style.removeProperty("top"),this.beforeWrapperElement.classList.add("amag-pop-up__unseen"));var n=this.notification+this.message;(0,Nt.TV)("banner",JSON.stringify({hash:(0,Zt.Y)(this.getChangeTriggeringContentsConcatenated(n,this.moreLinkElement.attributes[1].value))}))}},{key:"getChangeTriggeringContentsConcatenated",value:function(e,t){return e+t}},{key:"addCloseEventListener",value:function(){var e=this;this.closeElement.addEventListener("click",(function(){return e.closePopUp()}))}},{key:"setDesktopBannerWidth",value:function(){if(this.element.classList.contains("amag-pop-up__wrapper--desktop")&&(this.headerBeforeWrapperElement&&this.headerLogoWrapperElement||(this.headerBeforeWrapperElement=document.querySelector(".generic-header__beforeWrapper"),this.headerLogoWrapperElement=document.querySelector(".generic-header__logoWrapper")),this.headerBeforeWrapperElement)){var e=this.headerBeforeWrapperElement.offsetWidth+this.headerLogoWrapperElement.offsetWidth;this.element.style.width="calc(100% - ".concat(e,"px)"),this.element.style.marginLeft="".concat(e,"px")}}}])}();Jt=Kt([(0,Se.d)({selector:".amag-pop-up"}),Xt("design:paramtypes",[HTMLElement])],Jt);var Qt=n(74692),en=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},tn=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},nn=(0,be.A)((function e(t){var n=this;(0,we.A)(this,e),this.element=t,this.modalDiv=this.element.querySelector(".modal"),this.modalCookieId=this.modalDiv.getAttribute("id"),this.popupImage=this.element.querySelector(".amag-popupOverlay__image"),this.init=function(){!window.parent.location.pathname.startsWith("/editor.html/")&&n.modalDiv&&(n.getSessionDataForModal()&&n.setAllEvents())}
6,this.getSessionDataForModal=function(){return!("closed-by-user"===(0,Nt.Ri)(n.modalCookieId))},this.openModal=function(){new r.Modal(n.modalDiv).show()},this.setAllEvents=function(){Qt(n.modalDiv).on("hidden.bs.modal",(function(e){(0,Nt.TV)(n.modalCookieId,"closed-by-user")})),n.popupImage.complete?n.openModal():n.popupImage.addEventListener("load",(function(e){n.openModal()}))},this.init()}));nn=en([(0,Se.d)({selector:".amag-popupOverlay"}),tn("design:paramtypes",[HTMLElement])],nn);var rn=n(74692),an=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},on=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},sn=function(){return(0,be.A)((function e(t){(0,we.A)(this,e),this.element=t,this.init()}),[{key:"init",value:function(){this.stylingSection()}},{key:"addClassOnNextSection",value:function(e,t,n){rn(e).closest(".section").next(".section").find(".amagCh-section__stepswrapper-before").addClass(t),""!==n&&rn(e).closest(".section").next(".section").find(".amagCh-section__stepswrapper-before").css({"--stepswrapper-bgcolor":n})}},{key:"hideNextSectionStepwrapper",value:function(e,t){var n=rn(e).closest(".section").next(".section").find(".amagCh-section");rn(n).hasClass(t)&&rn(n).find(".amagCh-section__stepswrapper-before").addClass("d-none")}},{key:"hideNextColoredSectionStepwrapper",value:function(e,t){var n=rn(e).closest(".section").next(".section").find(".amagCh-section");n.data("color")===t&&rn(n).find(".amagCh-section__stepswrapper-before").addClass("d-none")}},{key:"stylingSection",value:function(){var e=this.element.classList,t=this.element.dataset.color;switch(!0){case e.contains("amagCh-section--colored"):this.element.classList.remove("amagCh-section--grey"),this.addClassOnNextSection(this.element,"background-color-colored",t),this.hideNextColoredSectionStepwrapper(this.element,t);break;case e.contains("amagCh-section--grey"):this.addClassOnNextSection(this.element,"background-color-grey",""),this.hideNextSectionStepwrapper(this.element,"amagCh-section--grey");break;default:this.addClassOnNextSection(this.element,"background-color-white",t)}}}])}();sn=an([(0,Se.d)({selector:".amagCh-section",onDomLoaded:!0}),on("design:paramtypes",[HTMLElement])],sn);var cn=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},ln=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},un=function(){return(0,be.A)((function e(t){(0,we.A)(this,e),this.element=t,this.setEventListener()}),[{key:"setEventListener",value:function(){var e=this;this.element.addEventListener("click",(function(){e.element.querySelector("a").click()}))}}])}();un=cn([(0,Se.d)({selector:".amag-serviceBoxWrapper",onDomLoaded:!0}),ln("design:paramtypes",[HTMLElement])],un);var dn=n(74692),hn=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},pn=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},fn=(0,be.A)((function e(t){var n=this;(0,we.A)(this,e),this._element=t,this.serviceBoxWrapper=this._element.querySelector(".amag-serviceContainerWrapper__serviceBox"),this.init=function(){n.prepareServiceBoxes(),n.setHeightForServiceBoxWrapper(),n.addEventListeners()},this.prepareServiceBoxes=function(){n.serviceBoxWrapper.firstElementChild.classList.add("active");var e=["col-sm-9","col-md-4","carousel-item","carousel-align-left"];n.serviceBoxWrapper.querySelectorAll(".amag-serviceBoxWrapper").forEach((function(t){var n;(n=t.classList).add.apply(n,e)})),n.serviceBoxElements=n.serviceBoxWrapper.querySelectorAll(".carousel-item"),n.elementCount=n.serviceBoxElements.length,n._element.querySelector(".amag-serviceContainerWrapper__counter--count").textContent="".concat(n.elementCount)}
6,this.setHeightForServiceBoxWrapper=function(){n._element.querySelectorAll(".serviceBoxWrapper").forEach((function(e){var t=(0,A.Oq)(e)+"px";e.style.maxHeight=t}))},this.alignItems=function(e){if(-1!==e&&e!==n.elementCount){var t=["carousel-align-left","carousel-align-center","carousel-align-right"];n.serviceBoxElements.forEach((function(n){var r;(r=n.classList).remove.apply(r,t),n.classList.add(t[e])})),n._element.querySelector(".amag-serviceContainerWrapper__counter--current").textContent="".concat(e+1)}},this.addEventListeners=function(){var e,t=n._element.querySelector(".carousel"),r=!0;t.addEventListener("touchstart",(function(t){e=t.touches[0].pageX})),t.addEventListener("touchmove",(function(a){if(r){r=!1;var i=a.touches[0].pageX,o=n.serviceBoxWrapper.querySelector("div.active");Math.floor(e-i)>5?(n.alignItems(dn(o).index()+1),dn(t).carousel("next")):Math.floor(e-i)<-5&&(n.alignItems(dn(o).index()-1),dn(t).carousel("prev"))}})),t.addEventListener("touchend",(function(){r=!0}))},this.init()}));fn=hn([(0,Se.d)({selector:".amag-serviceContainerWrapper",onDomLoaded:!0}),pn("design:paramtypes",[HTMLElement])],fn);var mn=n(33664),vn=n(3193);function gn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return yn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}if(document.querySelector(".amag-stageTeaserVideo")){var _n,bn,wn=[],Sn=!1,Cn=function(){Sn||(Sn=!0,window.dispatchEvent(new CustomEvent("amagStageTeaserVideo:firstVideoPlaying")))},En=function(e,t){0===t&&e.vimeoVideoObj&&e.vimeoVideoObj.on("play",Cn)},xn=function(){(0,mn.rW)()?((0,mn.Jx)(_n),kn()):(0,mn.YI)(_n)},An=function(){(0,mn.rW)()?((0,mn.Jx)(_n),Tn(!0)):window.location.reload()},kn=function(){wn.forEach((function(e,t){0===t?(e.vimeoVideoObj=(0,vn.yE)(e.vidComp,vn.a9.STAGE_TEASER_VIDEO,".amag-stageTeaserVideo__player",e.activated,!1),En(e,t),e.activated=!0):1===t&&(e.vimeoVideoObj=(0,vn.yE)(e.vidComp,vn.a9.STAGE_TEASER_VIDEO,".amag-stageTeaserVideo__player",e.activated,!0))})),Ln()},Tn=function(e){wn.forEach((function(e,t){e.active&&!e.vimeoVideoObj?(e.vimeoVideoObj=(0,vn.yE)(e.vidComp,vn.a9.STAGE_TEASER_VIDEO,".amag-stageTeaserVideo__player",e.activated,!1),En(e,t),e.activated=!0):e.active&&e.vimeoVideoObj?e.vimeoVideoObj.getPaused().then((function(t){t&&function(e){e.vimeoVideoObj.play().then((function(){e.activated=!0}))}(e)})):e.active||!e.prevActive||e.vimeoVideoObj||(e.vimeoVideoObj=(0,vn.yE)(e.vidComp,vn.a9.STAGE_TEASER_VIDEO,".amag-stageTeaserVideo__player",e.activated,!0))})),e&&Ln()},Ln=function(){var e=wn[0].allVidContainer;bn=new MutationObserver((function(e){var t,n=gn(e);try{var r=function(){if("attributes"===t.value.type){wn.forEach((function(e,t){var n,r,a=e.carouselItem.classList.contains("cmp-carousel__item--active"),i=!1;(0===t&&!0===(null===(n=wn[wn.length-1])||void 0===n?void 0:n.active)||t>0&&!0===(null===(r=wn[t-1])||void 0===r?void 0:r.active))&&(i=!0),e.active=a,e.prevActive=i})),Tn();var e=!0;wn.forEach((function(t){t.activated||(e=!1)})),e&&In()}};for(n.s();!(t=n.n()).done;)r()}catch(e){n.e(e)}finally{n.f()}})),bn.observe(e,{attributes:!0,childList:!1,subtree:!0,attributeFilter:["class"]})},In=function(){bn.disconnect()};
6(_n=document.querySelectorAll(".amag-stageTeaserVideo")).forEach((function(e,t){var n,r=e.closest(".cmp-carousel__item"),a=r.closest(".cmp-carousel__content"),i=r.classList.contains("cmp-carousel__item--active"),o=!1;t>0&&!0===(null===(n=wn[t-1])||void 0===n?void 0:n.active)&&(o=!0);var s={vidComp:e,carouselItem:r,allVidContainer:a,active:i,prevActive:o,activated:!1,vimeoVideoObj:null};wn.push(s)})),0!==wn.length?(0,mn.z9)()?(0,mn.EK)(xn,An):kn():console.warn("No video elements are available, so the initialization of the stage teaser videos has been halted.")}var Dn=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Pn=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},On=function(){return(0,be.A)((function e(t){(0,we.A)(this,e),this.element=t,this.imageElement=this.element.querySelector(".amag-standardTeaser__image"),this.init()}),[{key:"init",value:function(){this.ivViewer()}},{key:"ivViewer",value:function(){var e;if(null===(e=this.imageElement)||void 0===e?void 0:e.classList.contains("dm-image")){var t=0;t=A.lp.isMobile()?2:A.lp.isTablet()?1:0;var n=this.element.querySelector(".amag-standardTeaser__container"),r=this.element.querySelector(".amag-standardTeaser__container picture").children[t].getAttribute("srcset").toString().trim().split("w,")[0].split(" ")[0];n.addEventListener("click",(function(e){var t=this.querySelector(".amag-standardTeaser-image").currentSrc,n=new jt.WX({snapView:!1});n.show(t,r);var a=document.querySelector('div[class="iv-fullscreen"][style*="display: block;"]');if(a){var i=document.createElement("div");i.classList.add("amag-standardTeaser__showZoomOutIcon"),i.innerHTML='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" rx="20" fill="#222222" fill-opacity="0.7"/><path d="M23.0362 12.2374C23.0694 12.2042 23.1153 12.1869 23.1616 12.1899C23.2513 12.1957 23.3197 12.2733 23.3139 12.363L22.9968 17.3477L29.2968 11.0477C29.3604 10.9841 29.4637 10.9841 29.5273 11.0477C29.5909 11.1113 29.5909 11.2146 29.5273 11.2782L23.2277 17.5777L28.2122 17.2608C28.2555 17.258 28.2975 17.2723 28.3302 17.3009C28.3627 17.3297 28.3823 17.3696 28.3851 17.4129C28.3881 17.4597 28.3708 17.50
656 28.3378 17.5386C28.3097 17.5667 28.2726 17.5835 28.2329 17.5858L23.1863 17.9069C23.1657 17.908 23.1452 17.9083 23.1245 17.9069C23.0173 17.9002 22.9173 17.8582 22.8345 17.7852C22.8269 17.7808 22.8182 17.7748 22.8092 17.7658C22.8032 17.7598 22.7988 17.7541 22.7958 17.7492C22.7937 17.7472 22.7916 17.7451 22.7893 17.7428C22.7024 17.6443 22.6596 17.5185 22.6676 17.3883L22.9887 12.342C22.9913 12.3026 23.0083 12.2653 23.0362 12.2374Z" fill="white" stroke="white" stroke-width="0.7"/><path d="M17.5385 28.3369C17.5053 28.3701 17.4595 28.3874 17.4131 28.3844C17.3235 28.3786 17.255 28.3009 17.2608 28.2113L17.5779 23.2268L11.2782 29.5265C11.2146 29.5901 11.1113 29.5901 11.0477 29.5265C10.9841 29.4629 10.9841 29.3596 11.0477 29.296L17.347 22.9968L12.3627 23.3137C12.3194 23.3164 12.2774 23.3021 12.2447 23.2736C12.2122 23.2448 12.1926 23.2049 12.1898 23.1616C12.1869 23.1148 12.2041 23.0689 12.2371 23.0359C12.2652 23.0078 12.3023 22.991 12.342 22.9887L17.3885 22.6676C17.409 22.6665 17.4295 22.6662 17.4502 22.6676C17.5574 22.6743 17.6574 22.7163 17.7402 22.7893C17.7478 22.7937 17.7566 22.7997 17.7655 22.8087C17.7715 22.8147 17.7759 22.8204 17.7789 22.8253C17.781 22.8273 17.7831 22.8294 17.7854 22.8317C17.8723 22.9301 17.9151 23.056 17.9071 23.1862L17.586 28.2322C17.5835 28.2717 17.5664 28.309 17.5385 28.3369Z" fill="white" stroke="white" stroke-width="0.7"/></svg>',i.onclick=function(){n.resetZoom()},a.appendChild(i),a.classList.add("iv-fullscreenupdated"),document.querySelector(".iv-fullscreen-close").addEventListener("click",(function(e){n.destroy()}))}}))}}}])}();if(On=Dn([(0,Se.d)({selector:".amag-standardTeaser"}),Pn("design:paramtypes",[HTMLElement])],On),document.querySelector(".amag-textImage")){var Rn,Mn={selectors:{component:".amag-textImage",vimeoPlayer:".amag-video__player"}},qn=!1,Nn=function(){qn=(0,mn.XX)(Rn,vn.a9.TEXT_IMAGE,Mn.selectors.vimeoPlayer,qn,!1)},Vn=function(){qn=(0,mn.XX)(Rn,vn.a9.TEXT_IMAGE,Mn.selectors.vimeoPlayer,qn,!0)};Rn=document.querySelectorAll(Mn.selectors.component),(0,mn.z9)()?(0,mn.EK)(Nn,Vn):(0,vn.Lt)(Rn,vn.a9.TEXT_IMAGE,Mn.selectors.vimeoPlayer,qn)}var Fn=n(58501),Bn=n(45703),jn=n.n(Bn),Hn=n(29987),Gn=n.n(Hn),Un=n(14985),Wn=n.n(Un),zn=n(42797),$n=n.n(zn),Yn=n(25096),Zn=n.n(Yn),Kn=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Xn=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Jn=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Qn=U();jn()(Qn),Gn()(Qn),Wn()(Qn),$n()(Qn),Zn()(Qn);var er=(0,be.A)((function e(t){var n=this;(0,we.A)(this,e),this.element=t,this.departureTimeDropdown=null,this.returnTimeDropdown=null,this.arrowSvg='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M13.4009 24C13.2789 24 13.1609 23.956 13.0699 23.875L0.494919 12.748C0.464919 12.721 0.436919 12.693 0.410919 12.664C0.0449191 12.251 0.0819193 11.617 0.493919 11.252L13.0689 0.125C13.1609 0.044 13.2789 0 13.4009 0C13.5439 0 13.6809 0.062 13.7759 0.169C13.9579 0.375 13.9389 0.692 13.7329 0.874L1.15692 12L13.7319 23.125C13.9379 23.308 13.9579 23.625 13.7749 23.831C13.6799 23.939 13.5439 24 13.4009 24Z" fill="currentColor"/>\n </svg>',this.init=function(){n.departureDateInput&&n.returnDateInput&&(n.initDatepickers(),n.initDropdowns(),n.bindDatepickerTriggers(),n.bindCtaButton(),n.setContentPosition())},this.initDatepickers=function(){if(n.departureDateInput&&n.returnDateInput){var e=document.documentElement.getAttribute("lang")||"de";Qn.datepicker.setDefaults(Qn.datepicker.regional[e]||Qn.datepicker.regional.de),n.createDatepicker(n.departureDateInput),n.createDatepicker(n.returnDateInput)}},this.createDatepicker=function(e){var t=Qn(e);t.datepicker("destroy"),t.datepicker({dateFormat:"dd.mm.yy",firstDay:1,minDate:0,prevText:n.arrowSvg,nextText:n.arrowSvg,showAnim
6:"",beforeShow:function(e,r){var a,i;e===n.returnDateInput&&""===e.value&&""!==(null===(a=n.departureDateInput)||void 0===a?void 0:a.value)&&t.datepicker("setDate",null===(i=n.departureDateInput)||void 0===i?void 0:i.value),r.dpDiv.addClass("amag-valetBookingEntryHero__datepickerPopup")}})},this.initDropdowns=function(){var e=n.createTimeArray("");n.departureTimeDropdown&&n.departureTimeDropdown.setOptions(e),n.returnTimeDropdown&&n.returnTimeDropdown.setOptions(e)},this.bindDatepickerTriggers=function(){n.element.querySelectorAll("[data-datepicker-target]").forEach((function(e){e.addEventListener("click",(function(){var t=e.dataset.datepickerTarget;if(t){var r=n.element.querySelector("#".concat(t));r&&(Qn(r).datepicker("show"),r.focus())}}))}))},this.bindCtaButton=function(){n.ctaButton&&n.ctaButton.addEventListener("click",n.handleCtaButtonClick)},this.handleCtaButtonClick=function(e){return Jn(n,void 0,void 0,x().mark((function t(){var n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b,w,S,C,E;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.preventDefault(),p=null===(n=this.returnDateInput)||void 0===n?void 0:n.value,f=null===(r=this.departureDateInput)||void 0===r?void 0:r.value,m=null===(a=this.departureTimeDropdown)||void 0===a?void 0:a.getSelectedOptionValue(),v=null===(i=this.returnTimeDropdown)||void 0===i?void 0:i.getSelectedOptionValue(),null===(o=this.errorMessageContainer)||void 0===o||o.setAttribute("hidden","true"),null===(c=null===(s=this.errorMessageContainer)||void 0===s?void 0:s.querySelectorAll(".amag-valetBookingEntryHero__messageText"))||void 0===c||c.forEach((function(e){return e.setAttribute("hidden","true")})),this.element.querySelectorAll(".invalid").forEach((function(e){return e.classList.remove("invalid")})),f&&p&&m&&v){t.next=12;break}return this.showErrorInputIfEmpty(),this.showErrorMessage(2),t.abrupt("return");case 12:if(g=new Date("".concat(f.split(".").reverse().join("-"),"T").concat(m)),y=new Date("".concat(p.split(".").reverse().join("-"),"T").concat(v)),!(g>=y)){t.next=19;break}return null===(l=this.returnDateInput)||void 0===l||l.classList.add("invalid"),null===(u=this.departureDateInput)||void 0===u||u.classList.add("invalid"),this.showErrorMessage(3),t.abrupt("return");case 19:return _=this.formatTimeAndDate(f,m),b=this.formatTimeAndDate(p,v),w=Number(null===(d=this.ctaButton)||void 0===d?void 0:d.getAttribute("data-garage-id"))||0,S={from:_,to:b,garage:w},t.next=25,this.submitBooking(S);case 25:if(!("reason"in(C=t.sent))){t.next=29;break}return this.showErrorMessage(4),t.abrupt("return");case 29:if(C.lotAvailable){t.next=32;break}return this.showErrorMessage(1),t.abrupt("return");case 32:if(console.log("Booking successful. Redirecting to booking page...",C),E=null===(h=this.ctaButton)||void 0===h?void 0:h.dataset.urlRedirect){t.next=37;break}return this.showErrorMessage(4),t.abrupt("return");case 37:window.location.href="".concat(E,"?garage=").concat(w,"&from=").concat(_,"&to=").concat(b);case 38:case"end":return t.stop()}}),t,this)})))},this.createDropdownInstance=function(e){var t=n.element.querySelector(e);return t?new Fn.e(t):null},this.createTimeArray=function(e){for(var t=[{value:"",label:e}],n=5;n<24;n++){var r=n<10?"0".concat(n):"".concat(n),a="".concat(r,":00");t.push({value:a,label:a});var i="".concat(r,":15");t.push({value:i,label:i});var o="".concat(r,":30");if(t.push({value:o,label:o}),23!==n){var s="".concat(r,":45");t.push({value:s,label:s})}}return t},this.showErrorMessage=function(e){var t,r,a,i,o,s,c,l,u;switch(null===(t=n.errorMessageContainer)||void 0===t||t.removeAttribute("hidden"),e){case 1:null===(a=null===(r=n.errorMessageContainer)||void 0===r?void 0:r.querySelector(".amag-valetBookingEntryHero__error--availableParking"))||void 0===a||a.removeAttribute("hidden");break;case 2:null===(o=null===(i=n.errorMessageContainer)||void 0===i?void 0:i.querySelector(".amag-valetBookingEntryHero__error--missingInformation"))||void 0===o||o.removeAttribute("hidden");break;case 3:null===(c=null===(s=n.errorMessageContainer)||void 0===s?void 0:s.querySelector(".amag-valetBookingEntryHero__error--invalidDate"))||void 0===c||c.removeAttribute("hidden");break;case 4:null===(u=null===(l=n.errorMessageContainer)||void 0===l?void 0:l.querySelector(".amag-valetBookingEntryHero__error--serverError"))||void 0===u||u.removeAttribute("hidden")}n.setContentPosition()},this.formatTimeAndDate=function(e,t){return e.split(".").reverse().join("")+t.replace(/:/g,"")},this.submitBooking=function(e){return Jn(n,void 0,void 0,x().mark((function t(){var n,r,a;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=null===(n=this.ctaButton)||void 0===n?void 0:n.dataset.urlApi){t.next=3;break}return t.abrupt("return",{reason:0});case 3:return t.next=5,fetch(r,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(e)});case 5:if(!(a=t.sent).ok){t.next=10;break}return t.next=9,a.json();case 9:case 13:return t.abrupt("return",t.sent);case 10:return console.error("Booking failed. Server responded with:",a),t.next=13,a.json();case 14:case"end":return t.stop()}}),t,this)})))},this.setContentPosition=function(){var e,t,r=n.element.querySelector(".amag-valetBookingEntryHero__content"),a=n.element.querySelector(".amag-valetBookingEntryHero__background"),i=(null!==(e=null==r?void 0:r.offsetHeight)&&void 0!==e?e:0)-(null!==(t=null==a?void 0:a.offsetHeight)&&void 0!==t?t:0)/2;null==r||r.style.setProperty("bottom","-".concat(i,"px")),n.element.style.setProperty("margin-bottom","".concat(A.lp.isMobile()?40+i:140+i,"px"))},this.showErrorInputIfEmpty=function(){var e,t,r,a,i=null===(e=n.returnDateInput)||void 0===e?void 0:e.value,o=null===(t=n.departureDateInput)||void 0===t?void 0:t.value;n.returnDateInput&&!i&&n.returnDateInput.classList.add("invalid"),n.departureDateInput&&!o&&n.departureDateInput.classList.add("invalid"),null===(r=n.returnTimeDropdown)||void 0===r||r.validateDropdown(),null===(a=n.departureTimeDropdown)||void 0===a||a.validateDropdown()},this.departureDateInput=this.element.querySelector("#valetBookingDepartureDate"),this.returnDateInput=this.element.querySelector("#valetBookingReturnDate"),this.ctaButton=this.element.querySelector(".amag-valetBookingEntryHero__submit"),this.errorMessageContainer=this.element.querySelector(".amag-valetBookingEntryHero__message"),this.departureTimeDropdown=this.createDropdownInstance("#valetBookingDepartureTimeDropdown"),this.returnTimeDropdown=this.createDropdownInstance("#valetBookingReturnTimeDropdown"),this.init()}));if(er=Kn([(0,Se.d)({selector:".amag-valetBookingEntryHero",onDomLoaded:!0}),Xn("design:paramtypes",[HTMLElement])],er),document.querySelector(".amag-videoComp")){var tr,nr={selectors:{component:".amag-videoComp",content:".amag-videoComp__content",vimeoPlayer:".amag-videoComp__player"}},rr=!1,ar=function(){rr=(0,mn.XX)(tr,vn.a9.VIDEO_VIMEO,nr.selectors.vimeoPlayer,rr,!1)},ir=function(){rr=(0,mn.XX)(tr,vn.a9.VIDEO_VIMEO,nr.selectors.vimeoPlayer,rr,!0)};tr=document.querySelectorAll(nr.selectors.component),(0,mn.z9)()?(0,mn.EK)(ar,ir):(0,vn.Lt)(tr,vn.a9.VIDEO_VIMEO,nr.selectors.vimeoPlayer,rr)}var or=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},sr=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,b.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},cr=function(){return(0,be.A)((function e(t){(0,we.A)(this,e),this.element=t,this.init()}),[{key:"init",value:function(){this.checkIfJobTeaserFragmentWithMaxiTeaserComponent(this.element)&&this.addBootstrapClass(this.element)}},{key:"checkIfJobTeaserFragmentWithMaxiTeaserComponent",value:function(e){var t=e.querySelector(".cmp-experiencefragment--job-teaser");return!!t&&!!t.querySelector(".amag-maxiTeaser")}}
6,{key:"addBootstrapClass",value:function(e){e.classList.add("col-12")}}])}();cr=or([(0,Se.d)({selector:".experiencefragment",onDomLoaded:!0}),sr("design:paramtypes",[HTMLDivElement])],cr)},52286:function(e,t,n){"use strict";n.d(t,{n:function(){return r}});var r=function(e){var t=e.querySelectorAll(".cmp-breadcrumb__item:not(.cmp-breadcrumb__item--active)");if(window.innerWidth>=360&&window.innerWidth<1440&&t.length>0){var n=t[t.length-1];n&&(n.style.display="inline-block")}}},52317:function(e,t,n){"use strict";var r=n(56822),a=n(53954),i=n(85501),o=n(92901),s=n(23029),c=n(82284),l=n(78674);function u(e,t,n){return t=(0,a.A)(t),(0,r.A)(e,d()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,c.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,c.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=(0,o.A)((function e(t,n){var r=this;(0,s.A)(this,e),this.element=t,this.selector=n,this.init=function(){r.element.querySelector(".cookie-video-".concat(r.selector,"__content")).addEventListener("click",(function(e){e.preventDefault(),window.OneTrust.ToggleInfoDisplay()}))},this.init()})),m=function(e){function t(e){return(0,s.A)(this,t),u(this,t,[e,"overlay"])}return(0,i.A)(t,e),(0,o.A)(t)}(f);m=h([(0,l.d)({selector:".cookie-video-overlay__container",onDomLoaded:!0}),p("design:paramtypes",[HTMLDivElement])],m);var v=function(e){function t(e){return(0,s.A)(this,t),u(this,t,[e,"banner"])}return(0,i.A)(t,e),(0,o.A)(t)}(f);v=h([(0,l.d)({selector:".cookie-video-banner__container",onDomLoaded:!0}),p("design:paramtypes",[HTMLElement])],v)},52428:function(e,t,n){"use strict";n.d(t,{U:function(){return h},Y:function(){return d}});var r=n(71999),a=n(34842),i=n(31609),o=n(49674),s=n(7187),c=n(85972),l=n(19470),u=n(38839);function d(e,t,n,i){const d=i||n;!d||d[e]&&d[e]!==c.d.prototype[e]||(d[e]=function(){(0,a.p)(s.xV,["API/"+e+"/called"],void 0,l.K7.metrics,n.ee),(0,r.W)({drained:!!n.runtime?.activatedFeatures,type:"data",name:"api",feature:u.Pl+e,data:{}});try{return t.apply(this,arguments)}catch(e){(0,o.R)(23,e)}})}function h(e,t,n,r,o){const s=e.info;null===n?delete s.jsAttributes[t]:s.jsAttributes[t]=n,(o||null===n)&&(0,a.p)(u.Pl+r,[(0,i.t)(),t,n],void 0,"session",e.ee)}},52754:function(e,t,n){!function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=r(t),i=r(n);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,u(e,t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var d="transitionend",h=1e6,p=1e3;function f(e){return null==e?""+e:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}function m(){return{bindType:d,delegateType:d,handle:function(e){if(a.default(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}}function v(e){var t=this,n=!1;return a.default(this).one(y.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||y.triggerTransitionEnd(t)}),e),this}function g(){a.default.fn.emulateTransitionEnd=v,a.default.event.special[y.TRANSITION_END]=m()}var y={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(Math.random()*h)}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=a.default(e).css("transition-duration"),n=a.default(e).css("transition-delay"),r=parseFloat(t),i=parseFloat(n);return r||i?(t=t.split(",")[0],n=n.split(",")[0],(parseFloat(t)+parseFloat(n))*p):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){a.default(e).trigger(d)},supportsTransitionEnd:function(){return Boolean(d)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var a=n[r],i=t[r],o=i&&y.isElement(i)?"element":f(i);if(!new RegExp(a).test(o))throw new Error(e.toUpperCase()+': Option "'+r+'" provided type "'+o+'" but expected type "'+a+'".')}},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?y.findShadowRoot(e.parentNode):null},jQueryDetection:function(){if(void 0===a.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=a.default.fn.jquery.split(" ")[0].split("."),t=1,n=2,r=9,i=1,o=4;if(e[0]<n&&e[1]<r||e[0]===t&&e[1]===r&&e[2]<i||e[0]>=o)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};y.jQueryDetection(),g();var _="alert",b="4.6.2",w="bs.alert",S="."+w,C=".data-api",E=a.default.fn[_],x="alert",A="fade",k="show",T="
6close"+S,L="closed"+S,I="click"+S+C,D='[data-dismiss="alert"]',P=function(){function e(e){this._element=e}var t=e.prototype;return t.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){a.default.removeData(this._element,w),this._element=null},t._getRootElement=function(e){var t=y.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n||(n=a.default(e).closest("."+x)[0]),n},t._triggerCloseEvent=function(e){var t=a.default.Event(T);return a.default(e).trigger(t),t},t._removeElement=function(e){var t=this;if(a.default(e).removeClass(k),a.default(e).hasClass(A)){var n=y.getTransitionDurationFromElement(e);a.default(e).one(y.TRANSITION_END,(function(n){return t._destroyElement(e,n)})).emulateTransitionEnd(n)}else this._destroyElement(e)},t._destroyElement=function(e){a.default(e).detach().trigger(L).remove()},e._jQueryInterface=function(t){return this.each((function(){var n=a.default(this),r=n.data(w);r||(r=new e(this),n.data(w,r)),"close"===t&&r[t](this)}))},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},s(e,null,[{key:"VERSION",get:function(){return b}}]),e}();a.default(document).on(I,D,P._handleDismiss(new P)),a.default.fn[_]=P._jQueryInterface,a.default.fn[_].Constructor=P,a.default.fn[_].noConflict=function(){return a.default.fn[_]=E,P._jQueryInterface};var O="button",R="4.6.2",M="bs.button",q="."+M,N=".data-api",V=a.default.fn[O],F="active",B="btn",j="focus",H="click"+q+N,G="focus"+q+N+" blur"+q+N,U="load"+q+N,W='[data-toggle^="button"]',z='[data-toggle="buttons"]',$='[data-toggle="button"]',Y='[data-toggle="buttons"] .btn',Z='input:not([type="hidden"])',K=".active",X=".btn",J=function(){function e(e){this._element=e,this.shouldAvoidTriggerChange=!1}var t=e.prototype;return t.toggle=function(){var e=!0,t=!0,n=a.default(this._element).closest(z)[0];if(n){var r=this._element.querySelector(Z);if(r){if("radio"===r.type)if(r.checked&&this._element.classList.contains(F))e=!1;else{var i=n.querySelector(K);i&&a.default(i).removeClass(F)}e&&("checkbox"!==r.type&&"radio"!==r.type||(r.checked=!this._element.classList.contains(F)),this.shouldAvoidTriggerChange||a.default(r).trigger("change")),r.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(F)),e&&a.default(this._element).toggleClass(F))},t.dispose=function(){a.default.removeData(this._element,M),this._element=null},e._jQueryInterface=function(t,n){return this.each((function(){var r=a.default(this),i=r.data(M);i||(i=new e(this),r.data(M,i)),i.shouldAvoidTriggerChange=n,"toggle"===t&&i[t]()}))},s(e,null,[{key:"VERSION",get:function(){return R}}]),e}();a.default(document).on(H,W,(function(e){var t=e.target,n=t;if(a.default(t).hasClass(B)||(t=a.default(t).closest(X)[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))e.preventDefault();else{var r=t.querySelector(Z);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void e.preventDefault();"INPUT"!==n.tagName&&"LABEL"===t.tagName||J._jQueryInterface.call(a.default(t),"toggle","INPUT"===n.tagName)}})).on(G,W,(function(e){var t=a.default(e.target).closest(X)[0];a.default(t).toggleClass(j,/^focus(in)?$/.test(e.type))})),a.default(window).on(U,(function(){for(var e=[].slice.call(document.querySelectorAll(Y)),t=0,n=e.length;t<n;t++){var r=e[t],a=r.querySelector(Z);a.checked||a.hasAttribute("checked")?r.classList.add(F):r.classList.remove(F)}for(var i=0,o=(e=[].slice.call(document.querySelectorAll($))).length;i<o;i++){var s=e[i];"true"===s.getAttribute("aria-pressed")?s.classList.add(F):s.classList.remove(F)}})),a.default.fn[O]=J._jQueryInterface,a.default.fn[O].Constructor=J,a.default.fn[O].noConflict=function(){return a.default.fn[O]=V,J._jQueryInterface};var Q="carousel",ee="4.6.2",te="bs.carousel",ne="."+te,re=".data-api",ae=a.default.fn[Q],ie=37,oe=39,se=500,ce=40,le="carousel",ue="active",de="slide",he="carousel-item-right",pe="carousel-item-left",fe="carousel-item-next",me="carousel-item-prev",ve="pointer-event",ge="next",ye="prev",_e="left",be="right",we="slide"+ne,Se="slid"+ne,Ce="keydown"+ne,Ee="mouseenter"+ne,xe="mouseleave"+ne,Ae="touchstart"+ne,ke="touchmove"+ne,Te="touchend"+ne,Le="pointerdown"+ne,Ie="pointerup"+ne,De="dragstart"+ne,Pe="load"+ne+re,Oe="click"+ne+re,Re=".active",Me=".active.carousel-item",qe=".carousel-item",Ne=".carousel-item img",Ve=".carousel-item-next, .carousel-item-prev",Fe=".carousel-indicators",Be="[data-sli
6de], [data-slide-to]",je='[data-ride="carousel"]',He={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Ge={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Ue={TOUCH:"touch",PEN:"pen"},We=function(){function e(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(Fe),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=e.prototype;return t.next=function(){this._isSliding||this._slide(ge)},t.nextWhenVisible=function(){var e=a.default(this._element);!document.hidden&&e.is(":visible")&&"hidden"!==e.css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(ye)},t.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(Ve)&&(y.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(e){var t=this;this._activeElement=this._element.querySelector(Me);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)a.default(this._element).one(Se,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?ge:ye;this._slide(r,this._items[e])}},t.dispose=function(){a.default(this._element).off(ne),a.default.removeData(this._element,te),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(e){return e=c({},He,e),y.typeCheckConfig(Q,e,Ge),e},t._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=ce)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&a.default(this._element).on(Ce,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&a.default(this._element).on(Ee,(function(t){return e.pause(t)})).on(xe,(function(t){return e.cycle(t)})),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var t=function(t){e._pointerEvent&&Ue[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},n=function(t){e.touchDeltaX=t.originalEvent.touches&&t.originalEvent.touches.length>1?0:t.originalEvent.touches[0].clientX-e.touchStartX},r=function(t){e._pointerEvent&&Ue[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),se+e._config.interval))};a.default(this._element.querySelectorAll(Ne)).on(De,(function(e){return e.preventDefault()})),this._pointerEvent?(a.default(this._element).on(Le,(function(e){return t(e)})),a.default(this._element).on(Ie,(function(e){return r(e)})),this._element.classList.add(ve)):(a.default(this._element).on(Ae,(function(e){return t(e)})),a.default(this._element).on(ke,(function(e){return n(e)})),a.default(this._element).on(Te,(function(e){return r(e)})))}},t._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case ie:e.preventDefault(),this.prev();break;case oe:e.preventDefault(),this.next()}},t._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(qe)):[],this._items.indexOf(e)},t._getItemByDirection=function(e,t){var n=e===ge,r=e===ye,a=this._getItemIndex(t),i=this._items.length-1;if((r&&0===a||n&&a===i)&&!this._config.wrap)return t;var o=(a+(e===ye?-1:1))%this._items.length;return-1===o?this._items[this._items.length-1]:this._items[o]},t._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(this._element.querySelector(Me)),i=a.default.Event(we,{relatedTarget:e,direction:t,from:r,to:n});return a.default(this._element).trigger(i),i},t._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(Re));a.default(t).removeClass(ue);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&a.default(n).addClass(ue)}},t._updateInterval=function(){var e=this._activeElement||this._element.querySelector(Me);if(e){var t=parseInt(e.getAttribute("data-interval"),10);
6t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}},t._slide=function(e,t){var n,r,i,o=this,s=this._element.querySelector(Me),c=this._getItemIndex(s),l=t||s&&this._getItemByDirection(e,s),u=this._getItemIndex(l),d=Boolean(this._interval);if(e===ge?(n=pe,r=fe,i=_e):(n=he,r=me,i=be),l&&a.default(l).hasClass(ue))this._isSliding=!1;else if(!this._triggerSlideEvent(l,i).isDefaultPrevented()&&s&&l){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(l),this._activeElement=l;var h=a.default.Event(Se,{relatedTarget:l,direction:i,from:c,to:u});if(a.default(this._element).hasClass(de)){a.default(l).addClass(r),y.reflow(l),a.default(s).addClass(n),a.default(l).addClass(n);var p=y.getTransitionDurationFromElement(s);a.default(s).one(y.TRANSITION_END,(function(){a.default(l).removeClass(n+" "+r).addClass(ue),a.default(s).removeClass(ue+" "+r+" "+n),o._isSliding=!1,setTimeout((function(){return a.default(o._element).trigger(h)}),0)})).emulateTransitionEnd(p)}else a.default(s).removeClass(ue),a.default(l).addClass(ue),this._isSliding=!1,a.default(this._element).trigger(h);d&&this.cycle()}},e._jQueryInterface=function(t){return this.each((function(){var n=a.default(this).data(te),r=c({},He,a.default(this).data());"object"==typeof t&&(r=c({},r,t));var i="string"==typeof t?t:r.slide;if(n||(n=new e(this,r),a.default(this).data(te,n)),"number"==typeof t)n.to(t);else if("string"==typeof i){if(void 0===n[i])throw new TypeError('No method named "'+i+'"');n[i]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}))},e._dataApiClickHandler=function(t){var n=y.getSelectorFromElement(this);if(n){var r=a.default(n)[0];if(r&&a.default(r).hasClass(le)){var i=c({},a.default(r).data(),a.default(this).data()),o=this.getAttribute("data-slide-to");o&&(i.interval=!1),e._jQueryInterface.call(a.default(r),i),o&&a.default(r).data(te).to(o),t.preventDefault()}}},s(e,null,[{key:"VERSION",get:function(){return ee}},{key:"Default",get:function(){return He}}]),e}();a.default(document).on(Oe,Be,We._dataApiClickHandler),a.default(window).on(Pe,(function(){for(var e=[].slice.call(document.querySelectorAll(je)),t=0,n=e.length;t<n;t++){var r=a.default(e[t]);We._jQueryInterface.call(r,r.data())}})),a.default.fn[Q]=We._jQueryInterface,a.default.fn[Q].Constructor=We,a.default.fn[Q].noConflict=function(){return a.default.fn[Q]=ae,We._jQueryInterface};var ze="collapse",$e="4.6.2",Ye="bs.collapse",Ze="."+Ye,Ke=".data-api",Xe=a.default.fn[ze],Je="show",Qe="collapse",et="collapsing",tt="collapsed",nt="width",rt="height",at="show"+Ze,it="shown"+Ze,ot="hide"+Ze,st="hidden"+Ze,ct="click"+Ze+Ke,lt=".show, .collapsing",ut='[data-toggle="collapse"]',dt={toggle:!0,parent:""},ht={toggle:"boolean",parent:"(string|element)"},pt=function(){function e(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(ut)),r=0,a=n.length;r<a;r++){var i=n[r],o=y.getSelectorFromElement(i),s=[].slice.call(document.querySelectorAll(o)).filter((function(t){return t===e}));null!==o&&s.length>0&&(this._selector=o,this._triggerArray.push(i))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=e.prototype;return t.toggle=function(){a.default(this._element).hasClass(Je)?this.hide():this.show()},t.show=function(){var t,n,r=this;if(!(this._isTransitioning||a.default(this._element).hasClass(Je)||(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(lt)).filter((function(e){return"string"==typeof r._config.parent?e.getAttribute("data-parent")===r._config.parent:e.classList.contains(Qe)}))).length&&(t=null),t&&(n=a.default(t).not(this._selector).data(Ye))&&n._isTransitioning))){var i=a.default.Event(at);if(a.default(this._element).trigger(i),!i.isDefaultPrevented()){t&&(e._jQueryInterface.call(a.default(t).not(this._selector),"hide"),n||a.default(t).data(Ye,null));var o=this._getDimension();a.default(this._element).removeClass(Qe).addClass(et),this._element.style[o]=0,this._triggerArray.length&&a.default(this._triggerArray).removeClass(tt).attr("aria-expanded",!0),this.setTransitioning(!0);var s=function(){a.default(r._element).removeClass(et).addClass(Qe+" "+Je),r._element.style[o]="",r.setTransitioning(!1),a.default(r._element).trigger(it)},c="scroll"+(o[0].toUpperCase()+o.slice(1)),l=y.getTransitionDurationFromElement(this._element);a.default(this._element).one(y.TRANSITION_END,s).emulateTransitionEnd(l),this._element.style[o]=this._element[c]+"px"}}},t.hide=function(){var e=this;if(!this._isTransitioning&&a.default(this._element).hasClass(Je)){var t=a.default.Event(ot);if(a.default(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",y.reflow(this._element),a.default(this._element).addClass(et).removeClass(Qe+" "+Je);var r=this._triggerArray.length;if(r>0)for(var i=0;i<r;i++){var o=this._triggerArray[i],s=y.getSelectorFromElement(o);null!==s&&(a.default([].slice.call(document.querySelectorAll(s))).hasClass(Je)||a.default(o).addClass(tt).attr("aria-expanded",!1))}this.setTransitioning(!0);var c=function(){e.setTransitioning(!1),a.default(e._element).removeClass(et).addClass(Qe).trigger(st)};this._element.style[n]="";var l=y.getTransitionDurationFromElement(this._element);a.default(this._element).one(y.TRANSITION_END,c).emulateTransitionEnd(l)}}},t.setTransitioning=function(e){this._isTransitioning=e},t.dispose=function(){a.default.removeData(this._element,Ye),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(e){return(e=c({},dt,e)).toggle=Boolean(e.toggle),y.typeCheckConfig(ze,e,ht),e},t._getDimension=function(){return a.default(this._element).hasClass(nt)?nt:rt},t._getParent=function(){var t,n=this;y.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(t.querySelectorAll(r));return a.default(i).each((function(t,r){n._addAriaAndCollapsedClass(e._getTargetFromElement(r),[r])})),t},t._addAriaAndCollapsedClass=function(e,t){var n=a.default(e).hasClass(Je);t.length&&a.default(t).toggleClass(tt,!n).attr("aria-expanded",n)},e._getTargetFromElement=function(e){var t=y.getSelectorFromElement(e);return t?document.querySelector(t):null},e._jQueryInterface=function(t){return this.each((function(){var n=a.default(this),r=n.data(Ye),i=c({},dt,n.data(),"object"==typeof t&&t?t:{});if(!r&&i.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(i.toggle=!1),r||(r=new e(this,i),n.data(Ye,r)),"string"==typeof t){if(void 0===r[t])throw new TypeError('No method n
6amed "'+t+'"');r[t]()}}))},s(e,null,[{key:"VERSION",get:function(){return $e}},{key:"Default",get:function(){return dt}}]),e}();a.default(document).on(ct,ut,(function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var t=a.default(this),n=y.getSelectorFromElement(this),r=[].slice.call(document.querySelectorAll(n));a.default(r).each((function(){var e=a.default(this),n=e.data(Ye)?"toggle":t.data();pt._jQueryInterface.call(e,n)}))})),a.default.fn[ze]=pt._jQueryInterface,a.default.fn[ze].Constructor=pt,a.default.fn[ze].noConflict=function(){return a.default.fn[ze]=Xe,pt._jQueryInterface};var ft="dropdown",mt="4.6.2",vt="bs.dropdown",gt="."+vt,yt=".data-api",_t=a.default.fn[ft],bt=27,wt=32,St=9,Ct=38,Et=40,xt=3,At=new RegExp(Ct+"|"+Et+"|"+bt),kt="disabled",Tt="show",Lt="dropup",It="dropright",Dt="dropleft",Pt="dropdown-menu-right",Ot="position-static",Rt="hide"+gt,Mt="hidden"+gt,qt="show"+gt,Nt="shown"+gt,Vt="click"+gt,Ft="click"+gt+yt,Bt="keydown"+gt+yt,jt="keyup"+gt+yt,Ht='[data-toggle="dropdown"]',Gt=".dropdown form",Ut=".dropdown-menu",Wt=".navbar-nav",zt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",$t="top-start",Yt="top-end",Zt="bottom-start",Kt="bottom-end",Xt="right-start",Jt="left-start",Qt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},en={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},tn=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=e.prototype;return t.toggle=function(){if(!this._element.disabled&&!a.default(this._element).hasClass(kt)){var t=a.default(this._menu).hasClass(Tt);e._clearMenus(),t||this.show(!0)}},t.show=function(t){if(void 0===t&&(t=!1),!(this._element.disabled||a.default(this._element).hasClass(kt)||a.default(this._menu).hasClass(Tt))){var n={relatedTarget:this._element},r=a.default.Event(qt,n),o=e._getParentFromElement(this._element);if(a.default(o).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar&&t){if(void 0===i.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var s=this._element;"parent"===this._config.reference?s=o:y.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&a.default(o).addClass(Ot),this._popper=new i.default(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===a.default(o).closest(Wt).length&&a.default(document.body).children().on("mouseover",null,a.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),a.default(this._menu).toggleClass(Tt),a.default(o).toggleClass(Tt).trigger(a.default.Event(Nt,n))}}},t.hide=function(){if(!this._element.disabled&&!a.default(this._element).hasClass(kt)&&a.default(this._menu).hasClass(Tt)){var t={relatedTarget:this._element},n=a.default.Event(Rt,t),r=e._getParentFromElement(this._element);a.default(r).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),a.default(this._menu).toggleClass(Tt),a.default(r).toggleClass(Tt).trigger(a.default.Event(Mt,t)))}},t.dispose=function(){a.default.removeData(this._element,vt),a.default(this._element).off(gt),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;a.default(this._element).on(Vt,(function(t){t.preventDefault(),t.stopPropagation(),e.toggle()}))},t._getConfig=function(e){return e=c({},this.constructor.Default,a.default(this._element).data(),e),y.typeCheckConfig(ft,e,this.constructor.DefaultType),e},t._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(Ut))}return this._menu},t._getPlacement=function(){var e=a.default(this._element.parentNode),t=Zt;return e.hasClass(Lt)?t=a.default(this._menu).hasClass(Pt)?Yt:$t:e.hasClass(It)?t=Xt:e.hasClass(Dt)?t=Jt:a.default(this._menu).hasClass(Pt)&&(t=Kt),t},t._detectNavbar=function(){return a.default(this._element).closest(".
6navbar").length>0},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=c({},t.offsets,e._config.offset(t.offsets,e._element)),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),c({},e,this._config.popperConfig)},e._jQueryInterface=function(t){return this.each((function(){var n=a.default(this).data(vt);if(n||(n=new e(this,"object"==typeof t?t:null),a.default(this).data(vt,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},e._clearMenus=function(t){if(!t||t.which!==xt&&("keyup"!==t.type||t.which===St))for(var n=[].slice.call(document.querySelectorAll(Ht)),r=0,i=n.length;r<i;r++){var o=e._getParentFromElement(n[r]),s=a.default(n[r]).data(vt),c={relatedTarget:n[r]};if(t&&"click"===t.type&&(c.clickEvent=t),s){var l=s._menu;if(a.default(o).hasClass(Tt)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&t.which===St)&&a.default.contains(o,t.target))){var u=a.default.Event(Rt,c);a.default(o).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&a.default(document.body).children().off("mouseover",null,a.default.noop),n[r].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),a.default(l).removeClass(Tt),a.default(o).removeClass(Tt).trigger(a.default.Event(Mt,c)))}}}},e._getParentFromElement=function(e){var t,n=y.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},e._dataApiKeydownHandler=function(t){if(!(/input|textarea/i.test(t.target.tagName)?t.which===wt||t.which!==bt&&(t.which!==Et&&t.which!==Ct||a.default(t.target).closest(Ut).length):!At.test(t.which))&&!this.disabled&&!a.default(this).hasClass(kt)){var n=e._getParentFromElement(this),r=a.default(n).hasClass(Tt);if(r||t.which!==bt){if(t.preventDefault(),t.stopPropagation(),!r||t.which===bt||t.which===wt)return t.which===bt&&a.default(n.querySelector(Ht)).trigger("focus"),void a.default(this).trigger("click");var i=[].slice.call(n.querySelectorAll(zt)).filter((function(e){return a.default(e).is(":visible")}));if(0!==i.length){var o=i.indexOf(t.target);t.which===Ct&&o>0&&o--,t.which===Et&&o<i.length-1&&o++,o<0&&(o=0),i[o].focus()}}}},s(e,null,[{key:"VERSION",get:function(){return mt}},{key:"Default",get:function(){return Qt}},{key:"DefaultType",get:function(){return en}}]),e}();a.default(document).on(Bt,Ht,tn._dataApiKeydownHandler).on(Bt,Ut,tn._dataApiKeydownHandler).on(Ft+" "+jt,tn._clearMenus).on(Ft,Ht,(function(e){e.preventDefault(),e.stopPropagation(),tn._jQueryInterface.call(a.default(this),"toggle")})).on(Ft,Gt,(function(e){e.stopPropagation()})),a.default.fn[ft]=tn._jQueryInterface,a.default.fn[ft].Constructor=tn,a.default.fn[ft].noConflict=function(){return a.default.fn[ft]=_t,tn._jQueryInterface};var nn="modal",rn="4.6.2",an="bs.modal",on="."+an,sn=".data-api",cn=a.default.fn[nn],ln=27,un="modal-dialog-scrollable",dn="modal-scrollbar-measure",hn="modal-backdrop",pn="modal-open",fn="fade",mn="show",vn="modal-static",gn="hide"+on,yn="hidePrevented"+on,_n="hidden"+on,bn="show"+on,wn="shown"+on,Sn="focusin"+on,Cn="resize"+on,En="click.dismiss"+on,xn="keydown.dismiss"+on,An="mouseup.dismiss"+on,kn="mousedown.dismiss"+on,Tn="click"+on+sn,Ln=".modal-dialog",In=".modal-body",Dn='[data-toggle="modal"]',Pn='[data-dismiss="modal"]',On=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Rn=".sticky-top",Mn={backdrop:!0,keyboard:!0,focus:!0,show:!0},qn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Nn=function(){function e(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(Ln),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=e.prototype;return t.toggle=function(e){return this._isShown?this.hide():this.show(e)},t.show=function(e){var t=this;if(!this._isShown&&!this._isTransitioning){var n=a.default.Event(bn,{relatedTarget:e});a.default(this._element).trigger(n),n.isDefaultPrevented()||(this._isShown=!0,a.default(this._element).hasClass(fn)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),a.default(this._element).on(En,Pn,(function(e){return t.hide(e)})),a.default(this._dialog).on(kn,(function(){a.default(t._element).one(An,(function(e){a.default(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return t._showElement(e)})))}},t.hide=function(e){var t=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var n=a.default.Event(gn);if(a.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var r=a.default(this._element).hasClass(fn);if(r&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),a.default(document).off(Sn),a.default(this._element).removeClass(mn),a.default(this._element).off(En),a.default(this._dialog).off(kn),r){var i=y.getTransitionDurationFromElement(this._element);a.default(this._element).one(y.TRANSITION_END,(function(e){return t._hideModal(e)})).emulateTransitionEnd(i)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach((function(e){return a.default(e).off(on)})),a.default(document).off(Sn),a.default.removeData(this._element,an),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(e){return e=c({},Mn,e),y.typeCheckConfig(nn,e,qn),e},t._triggerBackdropTransition=function(){var e=this,t=a.default.Event(yn);if(a.default(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(vn);var r=y.getTransitionDurationFromElement(this._dialog);a.default(this._element).off(y.TRANSITION_END),a.default(this._element).one(y.TRANSITION_END,(function(){e._element.classList.remove(vn),n||a.default(e._element).one(y.TRANSITION_END,(function(){e._element.style.overflowY=""})).emulateTransitionEnd(e._element,r)})).emulateTransitionEnd(r),this._element.focus()}},t._showElement=function(e){var t=this,n=a.default(this._element).hasClass(fn),r=this._dialog?this._dialog.querySelector(In):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),a.default(this._dialog).hasClass(un)&&r?r.scrollTop=0:this._element.scrollTop=0,n&&y.reflow(this._element),a.default(this._element).addClass(mn),this._config.focus&&this._enforceFocus();var i=a.default.Event(wn,{relatedTarget:e}),o=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,a.default(t._element).trigger(i)};if(n){var s=y.getTransitionDurationFromElement(this._dialog);a.default(this._dialog).one(y.TRANSITION_END,o).emulateTransitionEnd(s)}else o()},t._enforceFocus=function(){var e=this;a.default(document).off(Sn).on(Sn,(function(t){document!==t.target&&e._element!==t.target&&0===a.default(e._element).has(t.target).length&&e._element.focus()}))},t._setEscapeEvent=function(){var e=this;this._isShown?a.default(this._element).on(xn,(function(t){e._config.keyboard&&t.which===ln?(t.preventDefault(),e.hide()):e._config.keyboard||t.which!==ln||e._triggerBackdropTransition()})):this._isShown||a.default(this._element).off(xn)},t._setResizeEvent=function(){var e=this;this._isShown?a.default(window).on(Cn,(function(t){return e.handleUpdate(t)})):a.default(window).off(Cn)},t._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){a.default(document.body).removeClass(pn),e._resetAdjustments(),e._resetScrollbar(),a.default(e._element).trigger(_n)}))},t._removeBackdrop=function(){this._backdrop&&(a.default(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(e){var t=this,n=a.default(this._element).hasClass(fn)?fn:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=hn,n&&this._backdrop.classList.add(n),a.default(this._backdrop).appendTo(document.body),a.default(this._element).on(En,(function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===t._config.backdrop?t._triggerBackdropTransition():t.hide())})),n&&y.reflow(this._backdrop),a.default(this._backdrop).addClass(mn),!e)return;if(!n)return void e();var r=y.getTransitionDurationFromElement(this._backdrop);a.default(this._backdrop).one(y.TRANSITION_END,e).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){a.default(this._backdrop).removeClass(mn);var i=function(){t._removeBackdrop(),e&&e()};if(a.default(this._element).hasClass(fn)){var o=y.getTransitionDurationFromElement(this._backdrop);a.default(this._backdrop).one(y.TRANSITION_END,i).emulateTransitionEnd(o)}else i()}else e&&e()},t._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(On)),n=[].slice.call(document.querySelectorAll(Rn));a.default(t).each((function(t,n){var r=n.style.paddingRight,i=a.default(n).css("padding-right");a.default(n).data("padding-right",r).css("padding-right",parseFloat(i)+e._scrollbarWidth+"px")})),a.default(n).each((function(t,n){var r=n.style.marginRight,i=a.default(n).css("margin-right");a.default(n).data("margin-right",r).css("margin-right",parseFloat(i)-e._scrollbarWidth+"px")}));var r=document.body.style.paddingRight,i=a.default(document.body).css("padding-right");a.default(document.body).data("padding-right",r).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}a.default(document.body).addClass(pn)},t._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(On));a.default(e).each((function(e,t){var n=a.default(t).data("padding-right");a.default(t).removeData("padding-right"),t.style.paddingRight=n||""}));var t=[].slice.call(document.querySelectorAll(""+Rn));a.default(t).each((function(e,t){var n=a.default(t).data("margin-right");void 0!==n&&a.default(t).css("margin-right",n).removeData("margin-right")}));var n=a.default(document.body).data("padding-right");a.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},t._getScrollbarWidth=function(){var e=document.createElement("div");e.className=dn,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},e._jQueryInterface=function(t,n){return this.each((function(){var r=a.default(this).data(an),i=c({},Mn,a.default(this).data(),"object"==typeof t&&t?t:{});if(r||(r=new e(this,i),a.default(this).data(an,r)),"string"==typeof t){if(void 0===r[t])throw new TypeError('No method n
6amed "'+t+'"');r[t](n)}else i.show&&r.show(n)}))},s(e,null,[{key:"VERSION",get:function(){return rn}},{key:"Default",get:function(){return Mn}}]),e}();a.default(document).on(Tn,Dn,(function(e){var t,n=this,r=y.getSelectorFromElement(this);r&&(t=document.querySelector(r));var i=a.default(t).data(an)?"toggle":c({},a.default(t).data(),a.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var o=a.default(t).one(bn,(function(e){e.isDefaultPrevented()||o.one(_n,(function(){a.default(n).is(":visible")&&n.focus()}))}));Nn._jQueryInterface.call(a.default(t),i,this)})),a.default.fn[nn]=Nn._jQueryInterface,a.default.fn[nn].Constructor=Nn,a.default.fn[nn].noConflict=function(){return a.default.fn[nn]=cn,Nn._jQueryInterface};var Vn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Fn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Bn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,jn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Hn(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===Vn.indexOf(n)||Boolean(Bn.test(e.nodeValue)||jn.test(e.nodeValue));for(var r=t.filter((function(e){return e instanceof RegExp})),a=0,i=r.length;a<i;a++)if(r[a].test(n))return!0;return!1}function Gn(e,t,n){if(0===e.length)return e;if(n&&"function"==typeof n)return n(e);for(var r=(new window.DOMParser).parseFromString(e,"text/html"),a=Object.keys(t),i=[].slice.call(r.body.querySelectorAll("*")),o=function(e,n){var r=i[e],o=r.nodeName.toLowerCase();if(-1===a.indexOf(r.nodeName.toLowerCase()))return r.parentNode.removeChild(r),"continue";var s=[].slice.call(r.attributes),c=[].concat(t["*"]||[],t[o]||[]);s.forEach((function(e){Hn(e,c)||r.removeAttribute(e.nodeName)}))},s=0,c=i.length;s<c;s++)o(s);return r.body.innerHTML}var Un="tooltip",Wn="4.6.2",zn="bs.tooltip",$n="."+zn,Yn=a.default.fn[Un],Zn="bs-tooltip",Kn=new RegExp("(^|\\s)"+Zn+"\\S+","g"),Xn=["sanitize","whiteList","sanitizeFn"],Jn="fade",Qn="show",er="show",tr="out",nr=".tooltip-inner",rr=".arrow",ar="hover",ir="focus",or="click",
vendor: 9,498 bytes, line 6
6sr="manual",cr={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},lr={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Fn,popperConfig:null},ur={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},dr={HIDE:"hide"+$n,HIDDEN:"hidden"+$n,SHOW:"show"+$n,SHOWN:"shown"+$n,INSERTED:"inserted"+$n,CLICK:"click"+$n,FOCUSIN:"focusin"+$n,FOCUSOUT:"focusout"+$n,MOUSEENTER:"mouseenter"+$n,MOUSELEAVE:"mouseleave"+$n},hr=function(){function e(e,t){if(void 0===i.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var t=e.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=a.default(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),a.default(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(a.default(this.getTipElement()).hasClass(Qn))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),a.default.removeData(this.element,this.constructor.DATA_KEY),a.default(this.element).off(this.constructor.EVENT_KEY),a.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&a.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===a.default(this.element).css("display"))throw new Error("Please use show on visible elements");var t=a.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){a.default(this.element).trigger(t);var n=y.findShadowRoot(this.element),r=a.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!r)return;var o=this.getTipElement(),s=y.getUID(this.constructor.NAME);o.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&a.default(o).addClass(Jn);var c="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,l=this._getAttachment(c);this.addAttachmentClass(l);var u=this._getContainer();a.default(o).data(this.constructor.DATA_KEY,this),a.default.contains(this.element.ownerDocument.documentElement,this.tip)||a.default(o).appendTo(u),a.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new i.default(this.element,o,this._getPopperConfig(l)),a.default(o).addClass(Qn),a.default(o).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&a.default(document.body).children().on("mouseover",null,a.default.noop);var d=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,a.default(e.element).trigger(e.constructor.Event.SHOWN),t===tr&&e._leave(null,e)};if(a.default(this.tip).hasClass(Jn)){var h=y.getTransitionDurationFromElement(this.tip);a.default(this.tip).one(y.TRANSITION_END,d).emulateTransitionEnd(h)}else d()}},t.hide=function(e){var t=this,n=this.getTipElement(),r=a.default.Event(this.constructor.Event.HIDE),i=function(){t._hoverState!==er&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),a.default(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(a.default(this.element).trigger(r),!r.isDefaultPrevented()){if(a.default(n).removeClass(Qn),"ontouchstart"in document.documentElement&&a.default(document.body).children().off("mouseover",null,a.default.noop),this._activeTrigger[or]=!1,this._activeTrigger[ir]=!1,this._activeTrigger[ar]=!1,a.default(this.tip).hasClass(Jn)){var o=y.getTransitionDurationFromElement(n);a.default(n).one(y.TRANSITION_END,i).emulateTransitionEnd(o)}else i();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(e){a.default(this.getTipElement()).addClass(Zn+"-"+e)},t.getTipElement=function(){return this.tip=this.tip||a.default(this.config.template)[0],this.tip},t.setContent=function(){var e=this.getTipElement();this.setElementContent(a.default(e.querySelectorAll(nr)),this.getTitle()),a.default(e).removeClass(Jn+" "+Qn)},t.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=Gn(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?a.default(t).parent().is(e)||e.empty().append(t):e.text(a.default(t).text())},t.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},t._getPopperConfig=function(e){var t=this;return c({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:rr},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},this.config.popperConfig)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=c({},t.offsets,e.config.offset(t.offsets,e.element)),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:y.isElement(this.config.container)?a.default(this.config.container):a.default(document).find(this.config.container)},t._getAttachment=function(e){return cr[e.toUpperCase()]},t._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(t){if("click"===t)a.default(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if(t!==sr){var n=t===ar?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=t===ar?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;a.default(e.element).on(n,e.config.selector,(function(t){return e._enter(t)})).on(r,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},a.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=c({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||a.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),a.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?ir:ar]=!0),a.default(t.getTipElement()).hasClass(Qn)||t._hoverState===er?t._hoverState=er:(clearTimeout(t._timeout),t._hoverState=er,t.config.delay&&t.config.delay.show?t._timeout=setTimeout((function(){t._hoverState===er&&t.show()}),t.config.delay.show):t.show())},t._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||a.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),a.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?ir:ar]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=tr,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout((function(){t._hoverState===tr&&t.hide()}),t.config.delay.hide):t.hide())},t._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},t._getConfig=function(e){var t=a.default(this.element).data();return Object.keys(t).forEach((function(e){-1!==Xn.indexOf(e)&&delete t[e]})),"number"==typeof(e=c({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),y.typeCheckConfig(Un,e,this.constructor.DefaultType),e.sanitize&&(e.template=Gn(e.template,e.whiteList,e.sanitizeFn)),e},t._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e}
6,t._cleanTipClass=function(){var e=a.default(this.getTipElement()),t=e.attr("class").match(Kn);null!==t&&t.length&&e.removeClass(t.join(""))},t._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},t._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(a.default(e).removeClass(Jn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},e._jQueryInterface=function(t){return this.each((function(){var n=a.default(this),r=n.data(zn),i="object"==typeof t&&t;if((r||!/dispose|hide/.test(t))&&(r||(r=new e(this,i),n.data(zn,r)),"string"==typeof t)){if(void 0===r[t])throw new TypeError('No method named "'+t+'"');r[t]()}}))},s(e,null,[{key:"VERSION",get:function(){return Wn}},{key:"Default",get:function(){return lr}},{key:"NAME",get:function(){return Un}},{key:"DATA_KEY",get:function(){return zn}},{key:"Event",get:function(){return dr}},{key:"EVENT_KEY",get:function(){return $n}},{key:"DefaultType",get:function(){return ur}}]),e}();a.default.fn[Un]=hr._jQueryInterface,a.default.fn[Un].Constructor=hr,a.default.fn[Un].noConflict=function(){return a.default.fn[Un]=Yn,hr._jQueryInterface};var pr="popover",fr="4.6.2",mr="bs.popover",vr="."+mr,gr=a.default.fn[pr],yr="bs-popover",_r=new RegExp("(^|\\s)"+yr+"\\S+","g"),br="fade",wr="show",Sr=".popover-header",Cr=".popover-body",Er=c({},hr.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),xr=c({},hr.DefaultType,{content:"(string|element|function)"}),Ar={HIDE:"hide"+vr,HIDDEN:"hidden"+vr,SHOW:"show"+vr,SHOWN:"shown"+vr,INSERTED:"inserted"+vr,CLICK:"click"+vr,FOCUSIN:"focusin"+vr,FOCUSOUT:"focusout"+vr,MOUSEENTER:"mouseenter"+vr,MOUSELEAVE:"mouseleave"+vr},kr=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(e){a.default(this.getTipElement()).addClass(yr+"-"+e)},n.getTipElement=function(){return this.tip=this.tip||a.default(this.config.template)[0],this.tip},n.setContent=function(){var e=a.default(this.getTipElement());this.setElementContent(e.find(Sr),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(Cr),t),e.removeClass(br+" "+wr)},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var e=a.default(this.getTipElement()),t=e.attr("class").match(_r);null!==t&&t.length>0&&e.removeClass(t.join(""))},t._jQueryInterface=function(e){return this.each((function(){var n=a.default(this).data(mr),r="object"==typeof e?e:null;if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,r),a.default(this).data(mr,n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return fr}},{key:"Default",get:function(){return Er}},{key:"NAME",get:function(){return pr}},{key:"DATA_KEY",get:function(){return mr}},{key:"Event",get:function(){return Ar}},{key:"EVENT_KEY",get:function(){return vr}},{key:"DefaultType",get:function(){return xr}}]),t}(hr);a.default.fn[pr]=kr._jQueryInterface,a.default.fn[pr].Constructor=kr,a.default.fn[pr].noConflict=function(){return a.default.fn[pr]=gr,kr._jQueryInterface};var Tr="scrollspy",Lr="4.6.2",Ir="bs.scrollspy",Dr="."+Ir,Pr=".data-api",Or=a.default.fn[Tr],Rr="dropdown-item",Mr="active",qr="activate"+Dr,Nr="scroll"+Dr,Vr="load"+Dr+Pr,Fr="offset",Br="position",jr='[data-spy="scroll"]',Hr=".nav, .list-group",Gr=".nav-link",Ur=".nav-item",Wr=".list-group-item",zr=".dropdown",$r=".dropdown-item",Yr=".dropdown-toggle",Zr={offset:10,method:"auto",target:""},Kr={offset:"number",method:"string",target:"(string|element)"},Xr=function(){function e(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+Gr+","+this._config.target+" "+Wr+","+this._config.target+" "+$r,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,a.default(this._scrollElement).on(Nr,(function(e){return n._process(e)})),this.refresh(),this._process()}var t=e.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?Fr:Br,n="auto"===this._config.method?t:this._config.method,r=n===Br?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var t,i=y.get
6SelectorFromElement(e);if(i&&(t=document.querySelector(i)),t){var o=t.getBoundingClientRect();if(o.width||o.height)return[a.default(t)[n]().top+r,i]}return null})).filter(Boolean).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},t.dispose=function(){a.default.removeData(this._element,Ir),a.default(this._scrollElement).off(Dr),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(e){if("string"!=typeof(e=c({},Zr,"object"==typeof e&&e?e:{})).target&&y.isElement(e.target)){var t=a.default(e.target).attr("id");t||(t=y.getUID(Tr),a.default(e.target).attr("id",t)),e.target="#"+t}return y.typeCheckConfig(Tr,e,Kr),e},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var a=this._offsets.length;a--;)this._activeTarget!==this._targets[a]&&e>=this._offsets[a]&&(void 0===this._offsets[a+1]||e<this._offsets[a+1])&&this._activate(this._targets[a])}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map((function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'})),n=a.default([].slice.call(document.querySelectorAll(t.join(","))));n.hasClass(Rr)?(n.closest(zr).find(Yr).addClass(Mr),n.addClass(Mr)):(n.addClass(Mr),n.parents(Hr).prev(Gr+", "+Wr).addClass(Mr),n.parents(Hr).prev(Ur).children(Gr).addClass(Mr)),a.default(this._scrollElement).trigger(qr,{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(e){return e.classList.contains(Mr)})).forEach((function(e){return e.classList.remove(Mr)}))},e._jQueryInterface=function(t){return this.each((function(){var n=a.default(this).data(Ir);if(n||(n=new e(this,"object"==typeof t&&t),a.default(this).data(Ir,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},s(e,null,[{key:"VERSION",get:function(){return Lr}},{key:"Default",get:function(){return Zr}}]),e}();a.default(window).on(Vr,(function(){for(var e=[].slice.call(document.querySelectorAll(jr)),t=e.length;t--;){var n=a.default(e[t]);Xr._jQueryInterface.call(n,n.data())}})),a.default.fn[Tr]=Xr._jQueryInterface,a.default.fn[Tr].Constructor=Xr,a.default.fn[Tr].noConflict=function(){return a.default.fn[Tr]=Or,Xr._jQueryInterface};var Jr="tab",Qr="4.6.2",ea="bs.tab",ta="."+ea,na=".data-api",ra=a.default.fn[Jr],aa="dropdown-menu",ia="active",oa="disabled",sa="fade",ca="show",la="hide"+ta,ua="hidden"+ta,da="show"+ta,ha="shown"+ta,pa="click"+ta+na,fa=".dropdown",ma=".nav, .list-group",va=".active",ga="> li > .active",ya='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',_a=".dropdown-toggle",ba="> .dropdown-menu .active",wa=function(){function e(e){this._element=e}var t=e.prototype;return t.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&a.default(this._element).hasClass(ia)||a.default(this._element).hasClass(oa)||this._element.hasAttribute("disabled"))){var t,n,r=a.default(this._element).closest(ma)[0],i=y.getSelectorFromElement(this._element);if(r){var o="UL"===r.nodeName||"OL"===r.nodeName?ga:va;n=(n=a.default.makeArray(a.default(r).find(o)))[n.length-1]}var s=a.default.Event(la,{relatedTarget:this._element}),c=a.default.Event(da,{relatedTarget:n});if(n&&a.default(n).trigger(s),a.default(this._element).trigger(c),!c.isDefaultPrevented()&&!s.isDefaultPrevented()){i&&
6(t=document.querySelector(i)),this._activate(this._element,r);var l=function(){var t=a.default.Event(ua,{relatedTarget:e._element}),r=a.default.Event(ha,{relatedTarget:n});a.default(n).trigger(t),a.default(e._element).trigger(r)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){a.default.removeData(this._element,ea),this._element=null},t._activate=function(e,t,n){var r=this,i=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?a.default(t).children(va):a.default(t).find(ga))[0],o=n&&i&&a.default(i).hasClass(sa),s=function(){return r._transitionComplete(e,i,n)};if(i&&o){var c=y.getTransitionDurationFromElement(i);a.default(i).removeClass(ca).one(y.TRANSITION_END,s).emulateTransitionEnd(c)}else s()},t._transitionComplete=function(e,t,n){if(t){a.default(t).removeClass(ia);var r=a.default(t.parentNode).find(ba)[0];r&&a.default(r).removeClass(ia),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}a.default(e).addClass(ia),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),y.reflow(e),e.classList.contains(sa)&&e.classList.add(ca);var i=e.parentNode;if(i&&"LI"===i.nodeName&&(i=i.parentNode),i&&a.default(i).hasClass(aa)){var o=a.default(e).closest(fa)[0];if(o){var s=[].slice.call(o.querySelectorAll(_a));a.default(s).addClass(ia)}e.setAttribute("aria-expanded",!0)}n&&n()},e._jQueryInterface=function(t){return this.each((function(){var n=a.default(this),r=n.data(ea);if(r||(r=new e(this),n.data(ea,r)),"string"==typeof t){if(void 0===r[t])throw new TypeError('No method named "'+t+'"');r[t]()}}))},s(e,null,[{key:"VERSION",get:function(){return Qr}}]),e}();a.default(document).on(pa,ya,(function(e){e.preventDefault(),wa._jQueryInterface.call(a.default(this),"show")})),a.default.fn[Jr]=wa._jQueryInterface,a.default.fn[Jr].Constructor=wa,a.default.fn[Jr].noConflict=function(){return a.default.fn[Jr]=ra,wa._jQueryInterface};var Sa="toast",Ca="4.6.2",Ea="bs.toast",xa="."+Ea,Aa=a.default.fn[Sa],ka="fade",Ta="hide",La="show",Ia="showing",Da="click.dismiss"+xa,Pa="hide"+xa,Oa="hidden"+xa,Ra="show"+xa,Ma="shown"+xa,qa='[data-dismiss="toast"]',Na={animation:!0,autohide:!0,delay:500},Va={animation:"boolean",autohide:"boolean",delay:"number"},Fa=function(){function e(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var t=e.prototype;return t.show=function(){var e=this,t=a.default.Event(Ra);if(a.default(this._element).trigger(t),!t.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(ka);var n=function(){e._element.classList.remove(Ia),e._element.classList.add(La),a.default(e._element).trigger(Ma),e._config.autohide&&(e._timeout=setTimeout((function(){e.hide()}),e._config.delay))};if(this._element.classList.remove(Ta),y.reflow(this._element),this._element.classList.add(Ia),this._config.animation){var r=y.getTransitionDurationFromElement(this._element);a.default(this._element).one(y.TRANSITION_END,n).emulateTransitionEnd(r)}else n()}},t.hide=function(){if(this._element.classList.contains(La)){var e=a.default.Event(Pa);a.default(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},t.dispose=function(){this._clearTimeout(),this._element.classList.contains(La)&&this._element.classList.remove(La),a.default(this._element).off(Da),a.default.removeData(this._element,Ea),this._element=null,this._config=null},t._getConfig=function(e){return e=c({},Na,a.default(this._element).data(),"object"==typeof e&&e?e:{}),y.typeCheckConfig(Sa,e,this.constructor.DefaultType),e},t._setListeners=function(){var e=this;a.default(this._element).on(Da,qa,(function(){return e.hide()}))},t._close=function(){var e=this,t=function(){e._element.classList.add(Ta),a.default(e._element).trigger(Oa)};if(this._element.classList.remove(La),this._config.animation){var n=y.getTransitionDurationFromElement(this._element);a.default(this._element).one(y.TRANSITION_END,t).emulateTransitionEnd(n)}else t()},t._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},e._jQueryInterface=function(t){return this.each((function(){var n=a.default(this),r=n.data(Ea);if(r||(r=new e(this,"object"==typeof t&&t),n.data(Ea,r)),"string"==typeof t){if(void 0===r[t])throw new TypeError('No method n
6amed "'+t+'"');r[t](this)}}))},s(e,null,[{key:"VERSION",get:function(){return Ca}},{key:"DefaultType",get:function(){return Va}},{key:"Default",get:function(){return Na}}]),e}();a.default.fn[Sa]=Fa._jQueryInterface,a.default.fn[Sa].Constructor=Fa,a.default.fn[Sa].noConflict=function(){return a.default.fn[Sa]=Aa,Fa._jQueryInterface},e.Alert=P,e.Button=J,e.Carousel=We,e.Collapse=pt,e.Dropdown=tn,e.Modal=Nn,e.Popover=kr,e.Scrollspy=Xr,e.Tab=wa,e.Toast=Fa,e.Tooltip=hr,e.Util=y,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(74692),n(39304))},53197:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publish=void 0;var r=n(76808),a=n(18464),i=n(17812);t.publish=function(e){return e?function(t){return i.connect(e)(t)}:function(e){return a.multicast(new r.Subject)(e)}}},53720:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(49674);const a=new Map;function i(...e){return e.every((e=>{if(a.has(e))return a.get(e);const t="function"==typeof e?e.toString():"",n=t.includes("[native code]"),i=t.includes("nrWrapper");return n||i||(0,r.R)(64,e?.name||t),a.set(e,n),n}))}},53866:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;var r=n(93275),a=n(26872);t.timestamp=function(e){return void 0===e&&(e=r.dateTimestampProvider),a.map((function(t){return{value:t,timestamp:e.now()}}))}},53954:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:function(){return r}})},54383:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;var r=n(44885),a=n(65212),i=n(17214);t.take=function(e){return e<=0?function(){return r.EMPTY}:a.operate((function(t,n){var r=0;t.subscribe(i.createOperatorSubscriber(n,(function(t){++r<=e&&(n.next(t),e<=r&&n.complete())})))}))}},54530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;var r=n(19724),a=n(32071),i=n(5455);t.schedulePromise=function(e,t){return r.innerFrom(e).pipe(i.subscribeOn(t),a.observeOn(t))}},54756:function(e,t,n){var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},54830:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrRemove=void 0,t.arrRemove=function(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}},55239:function(e,t,n){"use strict";function r(e,t=500,n={}){const r=n?.leading||!1;let a;return(...n)=>{r&&void 0===a&&(e.apply(this,n),a=setTimeout((()=>{a=clearTimeout(a)}),t)),r||(clearTimeout(a),a=setTimeout((()=>{e.apply(this,n)}),t))}}function a(e){let t=!1;return(...n)=>{t||(t=!0,e.apply(this,n))}}n.d(t,{J:function(){return a},s:function(){return r}})},55440:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;var r=n(59328),a=n(94708),i=n(23506),o=n(65212),s=n(17214);t.single=function(e){return o.operate((function(t,n){var o,c=!1,l=!1,u=0;t.subscribe(s.createOperatorSubscriber(n,(function(r){l=!0,e&&!e(r,u++,t)||(c&&n.error(new a.SequenceError("Too many matching values")),c=!0,o=r)}),(function(){c?(n.next(o),n.complete()):n.error(l?new i.NotFoundError("No matching values"):new r.EmptyError)})))}))}},55590:function(e,t,n){"use strict";n.d(t,{BB:function(){return u},Qb:function(){return d},TZ:function(){return a},Ug:function(){return o},Vh:function(){return i},_s:function(){return s},bc:function(){return l},yP:function(){return c}});var r=n(79324);const a=n(19470).K7.sessionReplay,i="errorDuringReplay",o=.12,s={DomContentLoaded:0,Load:1,FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Custom:5},c={[r.g.ERROR]:15e3,[r.g.FULL]:3e5,[r.g.OFF]:0},l={RESET:{message:"Session was reset",sm:"Reset"},IMPORT:{message:"Recorder failed to import",sm:"Import"},TOO_MANY:{message:"429: Too Many Requests",sm:"Too-Many"},TOO_BIG:{message:"Payload was too large",sm:"Too-Big"},CROSS_TAB:{message:"Session Entity was set to OFF on another tab",sm:"Cross-Tab"},ENTITLEMENTS:{message:"Session Replay is not allowed and will not be started",sm:"Entitlement"}},u=5e3,d={API:"api",RESUME:"resume",SWITCH_TO_FULL:"switchToFull",INITIALIZE:"initialize",PRELOAD:"preload"}},56131:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;var r=n(44885),a=n(65212),i=n(17214),o=n(19724),s=n(5825);t.repeat=function(e){var t,n,c=1/0;return null!=e&&("object"==typeof e?(t=e.count,c=void 0===t?1/0:t,n=e.delay):c=e),c<=0?function(){return r.EMPTY}:a.operate((function(e,t){var r,a=0,l=function(){if(null==r||r.unsubscribe(),r=null,null!=n){var e="number"==typeof n?s.timer(n):o.innerFrom(n(a)),c=i.createOperatorSubscriber(t,(function(){c.unsubscribe(),u()}));e.subscribe(c)}else u()},u=function(){var n=!1;r=e.subscribe(i.createOperatorSubscriber(t,void 0,(function(){++a<c?r?l():n=!0:t.complete()}))),n&&l()};u()}))}},56606:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;var r=n(65212),a=n(5717),i=n(17214),o=n(19724);t.bufferWhen=function(e){return r.operate((function(t,n){var r=null,s=null,c=function(){null==s||s.unsubscribe();var t=r;r=[],t&&n.next(t),o.innerFrom(e()).subscribe(s=i.createOperatorSubscriber(n,c,a.noop))};c(),t.subscribe(i.createOperatorSubscriber(n,(function(e){return null==r?void 0:r.push(e)}),(function(){r&&n.next(r),n.complete()}),void 0,(function(){return r=s=null})))}))}},56822:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(82284),a=n(9417);function i(e,t){if(t&&("object"==(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.A)(e)}},57406:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var r=n(14120),a=n(85934),i=n(19724);t.partition=function(e,t,n){return[a.filter(t,n)(i.innerFrom(e)),a.filter(r.not(t,n))(i.innerFrom(e))]}},58276:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var r=n(18922),a=n.n(r);function i(e){return a()(e)}},58302:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=n(39335),i=(r=n(99608))&&r.__esModule?r:{default:r};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function u(e,t,n){return t=p(t),function(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(){return h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(arguments.length<3?e:n):a.value}},h.apply(null,arguments)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function m(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var g=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=(0,a.createElement)({tagName:"div",className:"iv-fullscreen",html:'\n <div class="iv-fullscreen-container"></div>\n <div class="iv-fullscreen-close"></div>\n',parent:document.body}),i=r.querySelector(".iv-fullscreen-container");return m(e=u(this,t,[i,c(c({},n),{},{refreshOnResize:!1})]),"hide",(function(){(0,a.css)(e._elements.fullScreen,{display:"none"}),(0,a.removeCss)(document.querySelector("html"),"overflow"),e._events.onWindowResize()})),e._elements.fullScreen=r,e._initFullScreenEvents(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_initFullScreenEvents",value:function(){var e=this._elements.fullScreen.querySelector(".iv-fullscreen-close");this._events.onCloseBtnClick=(0,a.assignEvent)(e,"click",this.hide)}},{key:"show",value:function(e,t){(0,a.css)(this._elements.fullScreen,{display:"block"}),e&&this.load(e,t),this._events.onWindowResize=(0,a.assignEvent)(window,"resize",this.refresh),(0,a.css)(document.querySelector("html"),{overflow:"hidden"})}},{key:"destroy",value:function(){var e=this._elements.fullScreen;h(p(t.prototype),"destroy",this).call(this),(0,a.remove)(e)}}])}(i.default);t.default=g},58501:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(23029),a=n(92901),i=function(){return(0,a.A)((function e(t){var n=this;(0,r.A)(this,e),this._currentFocusIndex=-1,this._setEvents=!1,this.getElementById=function(e){var t=document.getElementById(e);if(!(t instanceof HTMLDivElement))throw new Error("GenericDynamicDropdown element not found: ".concat(e));return t},this.getRequiredElement=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:n._element).querySelector(e);
6if(!t)throw new Error("GenericDynamicDropdown element not found: ".concat(e));return t},this.initVariables=function(){n._dropdownButton=n.getRequiredElement(".generic-dynamic-dropdown-button"),n._dropdownMenu=n.getRequiredElement(".generic-dynamic-dropdown-menu"),n._dropdownItems=n._element.querySelectorAll(".generic-dynamic-dropdown-item"),n._dropdownLabel=n.getRequiredElement(".generic-dynamic-dropdown-label"),n._dropdownChevron=n.getRequiredElement(".generic-dynamic-dropdown-chevron"),n._spinner=n.getRequiredElement(".generic-dynamic-dropdown-spinner"),n._nativeSelect=n.getRequiredElement(".generic-dynamic-dropdown-native"),n._allOtherDropdowns=Array.from(document.querySelectorAll(".generic-dynamic-dropdown-wrapper")).filter((function(e){return e!==n._element}))},this.initEvents=function(){n._dropdownItems.length>1&&!n._setEvents&&(n._dropdownButton.addEventListener("click",n.toggleDropdown),n._dropdownButton.addEventListener("keydown",n.handleKeydown),n._dropdownItems.forEach((function(e){return e.addEventListener("click",n.selectItem)})),n._setEvents=!0)},this.toggleDropdown=function(e){if(n.closeAllOtherDropdowns(),document.addEventListener("click",n.closeDropdown),e.stopPropagation(),n.adjustDropdownPosition(),n._dropdownMenu.classList.toggle("show"),n._dropdownChevron.classList.toggle("show"),n._nativeSelect.value||n._dropdownLabel.classList.toggle("active"),!n._nativeSelect.value&&n._dropdownMenu.classList.contains("show"))n._dropdownButton.textContent=n._dropdownItems[0].textContent;else{if(n._nativeSelect.value)return;n._dropdownButton.textContent=""}},this.adjustDropdownPosition=function(){if(!n._dropdownMenu.classList.contains("show")){n._dropdownMenu.style.removeProperty("height"),n._dropdownMenu.style.visibility="hidden",n._dropdownMenu.classList.add("show");var e=n._dropdownButton.getBoundingClientRect(),t=n._dropdownMenu.getBoundingClientRect(),r=window.innerHeight-e.bottom;e.top<t.height||r>=t.height?n._element.classList.remove("upwards"):n._element.classList.add("upwards"),n._dropdownMenu.classList.remove("show"),n._dropdownMenu.style.visibility=""}},this.selectItem=function(e){var t=e.target,r=t.getAttribute("data-value"),a=new Event("change",{bubbles:!0});n._dropdownButton.textContent=t.textContent,n._nativeSelect.value=r,n._nativeSelect.dispatchEvent(a),n._dropdownMenu.classList.remove("show"),n._dropdownChevron.classList.remove("show"),r?n._dropdownLabel.classList.add("active"):n._dropdownLabel.classList.remove("active")},this.handleKeydown=function(e){switch(e.key){case"ArrowDown":e.preventDefault(),n.navigateItems(1);break;case"ArrowUp":e.preventDefault(),n.navigateItems(-1);break;case"Enter":e.preventDefault(),n._currentFocusIndex>=0&&n._dropdownMenu.classList.contains("show")?n.selectItem({target:n._dropdownItems[n._currentFocusIndex]}):n.toggleDropdown(e);break;case"Escape":e.preventDefault(),n.closeDropdown(e)}},this.navigateItems=function(e){n._dropdownMenu.classList.contains("show")||n.toggleDropdown(new KeyboardEvent("keydown",{key:"Enter"})),n._currentFocusIndex=(n._currentFocusIndex+e+n._dropdownItems.length)%n._dropdownItems.length,n._dropdownItems.forEach((function(e,t){t===n._currentFocusIndex?(e.classList.add("focused"),e.scrollIntoView({block:"nearest"})):e.classList.remove("focused")}))},this.closeDropdown=function(e){n._dropdownButton.contains(e.target)||(n._dropdownMenu.classList.remove("show"),n._dropdownChevron.classList.remove("show"),n._nativeSelect.value?n._element.classList.remove("invalid"):(n._dropdownButton.textContent="",n._dropdownLabel.classList.remove("active")),document.removeEventListener("click",n.closeDropdown))},this.closeAllOtherDropdowns=function(){n._allOtherDropdowns.forEach((function(e){n.getRequiredElement(".generic-dynamic-dropdown-menu",e).classList.remove("show"),n.getRequiredElement(".generic-dynamic-dropdown-chevron",e).classList.remove("show"),n.getRequiredElement(".generic-dynamic-dropdown-native",e).value||(n.getRequiredElement(".generic-dynamic-dropdown-button",e).textContent="",n.getRequiredElement(".generic-dynamic-dropdown-label",e).classList.remove("active"))}))},this.setOptions=function(e){if(0!=e.length){n._nativeSelect.innerHTML="",n._dropdownMenu.innerHTML="";var t=document.createDocumentFragment();e.forEach((function(e){var n=document.createElement("li");n.classList.add("generic-dynamic-dropdown-item"),n.textContent=e.label,n.setAttribute("data-value",e.value),t.appendChild(n)})),n._dropdownMenu.appendChild(t),t=document.createDocumentFragment(),e.forEach((function(e,n){var r=document.createElement("option");r.value=e.value,r.textContent=e.label,0===n&&(r.disabled=!0,r.selected=!0),t.appendChild(r)})),n._nativeSelect.appendChild(t),n._dropdownItems=n._element.querySelectorAll(".generic-dynamic-dropdown-item"),n.initEvents(),n._dropdownItems.forEac
6h((function(e){return e.addEventListener("click",n.selectItem)})),n._spinner.hidden=!0}else n._spinner&&(n._spinner.hidden=!1),n._setEvents=!1,n._dropdownButton.removeEventListener("click",n.toggleDropdown),n._dropdownButton.removeEventListener("keydown",n.handleKeydown)},this.setSelectedItem=function(e){var t=Array.from(n._dropdownItems).find((function(t){return t.getAttribute("data-value")===e}));n.selectItem({target:t})},this.getSelectedOptionValue=function(){return n._nativeSelect.value},this.getSelectedOptionText=function(){return n._nativeSelect.options[n._nativeSelect.selectedIndex].text},this.getNativeSelect=function(){return n._nativeSelect},this._element="string"==typeof t?this.getElementById(t):t,this.initVariables(),this.initEvents()}),[{key:"validateDropdown",value:function(){return!!this._nativeSelect.value||(this._element.classList.add("invalid"),!1)}},{key:"toggle",value:function(){this._element.hidden?this._element.hidden=!1:this._element.hidden=!0}},{key:"hide",value:function(){this._element.hidden=!0}},{key:"show",value:function(){this._element.hidden=!1}}])}()},58740:function(e,t,n){"use strict";n.d(t,{OF:function(){return l},RI:function(){return a},WN:function(){return h},bv:function(){return i},gm:function(){return o},lR:function(){return d},m:function(){return c},mw:function(){return s},sb:function(){return u},zk:function(){return p}});var r=n(31609);const a="undefined"!=typeof window&&!!window.document,i="undefined"!=typeof WorkerGlobalScope&&("undefined"!=typeof self&&self instanceof WorkerGlobalScope&&self.navigator instanceof WorkerNavigator||"undefined"!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis.navigator instanceof WorkerNavigator),o=a?window:"undefined"!=typeof WorkerGlobalScope&&("undefined"!=typeof self&&self instanceof WorkerGlobalScope&&self||"undefined"!=typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis),s=Boolean("hidden"===o?.document?.visibilityState),c=""+o?.location,l=/iPad|iPhone|iPod/.test(o.navigator?.userAgent),u=l&&"undefined"==typeof SharedWorker,d=(()=>{const e=o.navigator?.userAgent?.match(/Firefox[/\s](\d+\.\d+)/);return Array.isArray(e)&&e.length>=2?+e[1]:0})(),h=Date.now()-(0,r.t)(),p=()=>{const e=o?.performance?.getEntriesByType?.("navigation")?.[0];if(e&&e.responseStart>0&&e.responseStart<o.performance.now())return e}},58799:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;var r=n(65212),a=n(17214);t.defaultIfEmpty=function(e){return r.operate((function(t,n){var r=!1;t.subscribe(a.createOperatorSubscriber(n,(function(e){r=!0,n.next(e)}),(function(){r||n.next(e),n.complete()})))}))}},59328:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var r=n(9619);t.EmptyError=r.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}))},60519:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:function(){return r}})},60598:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;var r=n(65212),a=n(17214);t.takeWhile=function(e,t){return void 0===t&&(t=!1),r.operate((function(n,r){var i=0;n.subscribe(a.createOperatorSubscriber(r,(function(n){var a=e(n,i++);(a||t)&&r.next(n),!a&&r.complete()})))}))}},60708:function(e,t,n){var r=n(74692);r((function(){if(document.querySelector(".amag-serviceOverview")){var e=window.location.pathname,t="otv-refresh-cache",n=document.querySelector(".amag-promotionLoadSpinner");document.querySelector(".amag-serviceOverview__button button").addEventListener("click",(function(a){var i;a.preventDefault(),n.classList.remove("d-none"),i=null!=e.match(/\/\w*\..*\.html/g)?e.replace(/\/(\w*)\..*\.html/g,"/$1.".concat(t,".html")):e.replace(".html",".".concat(t,".html")),r.get(i,(function(e){n.classList.add("d-none")}))}))}}))},61059:function(e,t,n){"use strict";n.d(t,{A$:function(){return i},ET:function(){return o},TZ:function(){return s},p_:function(){return a}});var r=n(19470);const a={ERROR:"ERROR",WARN:"WARN",INFO:"INFO",DEBUG:"DEBUG",TRACE:"TRACE"},i={OFF:0,ERROR:1,WARN:2,INFO:3,DEBUG:4,TRACE:5},o="log",s=r.K7.logging},61279:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var r=n(7024),a=n(85934),i=n(30632),o=n(58799),s=n(54383);t.elementAt=function(e,t){if(e<0)throw new r.ArgumentOutOfRangeError;var n=arguments.length>=2;return function(c){return c.pipe(a.filter((function(t,n){return n===e})),s.take(1),n?o.defaultIfEmpty(t):i.throwIfEmpty((function(){return new r.ArgumentOutOfRangeError})))}}},61587:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;var r=n(26404),a=n(47058);t.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.popScheduler(e);return a.from(e,n)}},61778:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToggle=void 0;var a=n(69879),i=n(65212),o=n(19724),s=n(17214),c=n(5717),l=n(54830);t.bufferToggle=function(e,t){return i.operate((function(n,i){var u=[];o.innerFrom(e).subscribe(s.createOperatorSubscriber(i,(function(e){var n=[];u.push(n);var r=new a.Subscription;r.add(o.innerFrom(t(e)).subscribe(s.createOperatorSubscriber(i,(function(){l.arrRemove(u,n),i.next(n),r.unsubscribe()}),c.noop)))}),c.noop)),n.subscribe(s.createOperatorSubscriber(i,(function(e){var t,n;try{for(var a=r(u),i=a.next();!i.done;i=a.next()){i.value.push(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}}),(function(){for(;u.length>0;)i.next(u.shift());i.complete()})))}))}},62275:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var r=n(62326),a=n(5825);t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=r.asyncScheduler),e<0&&(e=0),a.timer(e,e,t)}},62326:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=t.asyncScheduler=void 0;var r=n(64772),a=n(19533);t.asyncScheduler=new a.AsyncScheduler(r.AsyncAction),t.async=t.asyncScheduler},62449:function(e,t,n){"use strict";n.d(t,{G:function(){return i},u:function(){return a}});var r=n(17508);function a(e,t=!1,n,a){(0,r.DD)("visibilitychange",(function(){if(t)return void("hidden"===document.visibilityState&&e());e(document.visibilityState)}),n,a)}function i(e,t,n){(0,r.sp)("pagehide",e,t,n)}},62560:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;var r=n(48051),a=n(10281);t.isObservable=function(e){return!!e&&(e instanceof r.Observable||a.isFunction(e.lift)&&a.isFunction(e.subscribe))}},62808:function(e,t,n){var r=n(74692);r(".amagCh-section__container > .container > .amag-image").each((function(){r(this).addClass(r(this).find(".amag-image__content").attr("data-imageWidth")),"imageCenter"==r(this).find(".amag-image__content").attr("data-imagePosition")&&r(this).addClass("m-auto")})),r(".cmp-accordion .amag-image").each((function(){var e=r(this).find(".amag-image__content"),t=e.attr("data-imageWidth"),n=e.attr("data-imagePosition");r(this).addClass("row"),e.addClass(t),"imageCenter"==n&&e.addClass("m-auto")}))},62893:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowCount=void 0;var a=n(76808),i=n(65212),o=n(17214);t.windowCount=function(e,t){void 0===t&&(t=0);var n=t>0?t:e;return i.operate((function(t,i){var s=[new a.Subject],c=0;i.next(s[0].asObservable()),t.subscribe(o.createOperatorSubscriber(i,(function(t){var o,l;try{for(var u=r(s),d=u.next();!d.done;d=u.next()){d.value.next(t)}}catch(e){o={error:e}}finally{try{d&&!d.done&&(l=u.return)&&l.call(u)}finally{if(o)throw o.error}}var h=c-e+1;
vendor: 4,140 bytes, line 6
6if(h>=0&&h%n==0&&s.shift().complete(),++c%n==0){var p=new a.Subject;s.push(p),i.next(p.asObservable())}}),(function(){for(;s.length>0;)s.shift().complete();i.complete()}),(function(e){for(;s.length>0;)s.shift().error(e);i.error(e)}),(function(){s=null})))}))}},63662:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:function(){return r}})},64243:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(43145);function a(e){if(Array.isArray(e))return(0,r.A)(e)}},64772: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=void 0;var i=n(71666),o=n(8284),s=n(54830),c=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return a(t,e),t.prototype.schedule=function(e,t){var n;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,a=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(a,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(a,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),o.intervalProvider.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&o.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,s.arrRemove(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(i.Action);t.AsyncAction=c},64948:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatest=void 0;var i=n(88246),o=n(65212),s=n(7652),c=n(13916),l=n(99517),u=n(26404);t.combineLatest=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var d=u.popResultSelector(t);return d?l.pipe(e.apply(void 0,a([],r(t))),c.mapOneOrManyArgs(d)):o.operate((function(e,n){i.combineLatestInit(a([e],r(s.argsOrArgArray(t))))(n)}))}},65156:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;var r=n(76808),a=n(65212),i=n(17214),o=n(19724);t.windowWhen=function(e){return a.operate((function(t,n){var a,s,c=function(e){a.error(e),n.error(e)},l=function(){var t;null==s||s.unsubscribe(),null==a||a.complete(),a=new r.Subject,n.next(a.asObservable());try{t=o.innerFrom(e())}catch(e){return void c(e)}t.subscribe(s=i.createOperatorSubscriber(n,l,l,c))};l(),t.subscribe(i.createOperatorSubscriber(n,(function(e){return a.next(e)}),(function(){a.complete(),n.complete()}),c,(function(){null==s||s.unsubscribe(),a=null})))}))}},65212:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.operate=t.hasLift=void 0;var r=n(10281);function a(e){return r.isFunction(null==e?void 0:e.lift)}t.hasLift=a,t.operate=function(e){return function(t){if(a(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}},65279:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.takeLast=void 0;var a=n(44885),i=n(65212),o=n(17214);t.takeLast=function(e){return e<=0?function(){return a.EMPTY}:i.operate((function(t,n){var a=[];t.subscribe(o.createOperatorSubscriber(n,(function(t){a.push(t),e<a.length&&a.shift()}),(function(){var e,t;try{for(var i=r(a),o=i.next();!o.done;o=i.next()){var s=o.value;n.next(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}n.complete()}),void 0,(function(){a=null})))}))}},65561:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(89394);function a(e){var t=0;(0,r.A)(e).forEach((function(e){t=Math.max(e.clientHeight,t)})),(0,r.A)(e).forEach((function(e){return e.style.minHeight=t+"px"}))}},65650:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;var r=n(19724),a=n(32071),i=n(5455);t.scheduleObservable=function(e,t){return r.innerFrom(e).pipe(i.subscribeOn(t),a.observeOn(t))}},65774:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;var r=n(65212),a=n(17214);t.skipWhile=function(e){return r.operate((function(t,n){var r=!1,i=0;t.subscribe(a.createOperatorSubscriber(n,(function(t){return(r||(r=!e(t,i++)))&&n.next(t)})))}))}},65881:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var r=n(93275),a=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=r.dateTimestampProvider.now,e}();t.Scheduler=a},66355:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluck=void 0;var r=n(26872);t.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return r.map((function(t){for(var r=t,a=0;a<n;a++){var i=null==r?void 0:r[e[a]];if(void 0===i)return;r=i}return r}))}},66791:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.endWith=void 0;var i=n(39546),o=n(61587);t.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return i.concat(t,o.of.apply(void 0,a([],r(e))))}}},66911:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;var r=n(65212),a=n(17214),i=n(19724),o=n(5717);t.takeUntil=function(e){return r.operate((function(t,n){i.innerFrom(e).subscribe(a.createOperatorSubscriber(n,(function(){return n.complete()}),o.noop)),!n.closed&&t.subscribe(n)}))}},66975:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};
6Object.defineProperty(t,"__esModule",{value:!0}),t.withLatestFrom=void 0;var i=n(65212),o=n(17214),s=n(19724),c=n(87699),l=n(5717),u=n(26404);t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=u.popResultSelector(e);return i.operate((function(t,i){for(var u=e.length,d=new Array(u),h=e.map((function(){return!1})),p=!1,f=function(t){s.innerFrom(e[t]).subscribe(o.createOperatorSubscriber(i,(function(e){d[t]=e,p||h[t]||(h[t]=!0,(p=h.every(c.identity))&&(h=null))}),l.noop))},m=0;m<u;m++)f(m);t.subscribe(o.createOperatorSubscriber(i,(function(e){if(p){var t=a([e],r(d));i.next(n?n.apply(void 0,a([],r(t))):t)}})))}))}},67443:function(e,t,n){"use strict";n.d(t,{Db:function(){return c},Hx:function(){return y},KA:function(){return h},N$:function(){return o},O:function(){return b},eJ:function(){return f},eT:function(){return v},ee:function(){return u}});var r=n(10467),a=n(54756),i=n.n(a);function o(e){return s.apply(this,arguments)}function s(){return(s=(0,r.A)(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u(t,"html");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(e){return l.apply(this,arguments)}function l(){return(l=(0,r.A)(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u(t,"json");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(e,t){return d.apply(this,arguments)}function d(){return(d=(0,r.A)(i().mark((function e(t,n){var r,a,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(r=(r=window.location.pathname).replace(/\.(?:\w|\.|-)+\.html/,".html")).split(".html")[0],e.next=5,fetch("".concat(r,".").concat(t,".").concat(n));case 5:return a=e.sent,e.next=8,a.json();case 8:if(o=e.sent,!(a.status<=200&&a.status<300)){e.next=11;break}return e.abrupt("return",o.data);case 11:throw o;case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e,t,n,r){return p.apply(this,arguments)}function p(){return(p=(0,r.A)(i().mark((function e(t,n,r,a){var o,s,c,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(o=(o=window.location.pathname).replace(/\.(?:\w|\.|-)+\.html/,".html")).split(".html")[0],s=new URLSearchParams(r).toString(),e.next=6,fetch("".concat(o,".").concat(t,".").concat(n,"?").concat(s));case 6:if(c=e.sent,!a){e.next=11;break}return e.next=10,c.blob();case 10:return e.abrupt("return",e.sent);case 11:return e.next=13,c.json();case 13:if(200!==(l=e.sent).status&&201!==l.status&&204!==l.status){e.next=16;break}return e.abrupt("return",l);case 16:throw l;case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return m.apply(this,arguments)}function m(){return(m=(0,r.A)(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(t));case 2:if(!(n=e.sent).ok){e.next=7;break}return e.next=6,n.json();case 6:return e.abrupt("return",e.sent);case 7:throw n;case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e,t){return g.apply(this,arguments)}function g(){return(g=(0,r.A)(i().mark((function e(t,n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(t),{method:"POST",body:JSON.stringify(n)});case 3:if(!(r=e.sent).ok){e.next=8;break}return e.next=7,r.json();case 7:return e.abrupt("return",e.sent);case 8:e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(0),console.error(e.t0),e.t0;case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function y(e,t){return _.apply(this,arguments)}function _(){return(_=(0,r.A)(i().mark((function e(t,n){var r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(t),{method:"POST",body:JSON.stringify(n)});case 3:return r=e.sent,e.next=6,r.json();case 6:if(a=e.sent,!r.ok){e.next=11;break}return e.abrupt("return",a);case 11:return e.abrupt("return",r);case 12:e.next=18;break;case 14:throw e.prev=14,e.t0=e.catch(0),console.error(e.t0),e.t0;case 18:case"end":return e.stop()}}),e,null,[[0,14]])}
6)))).apply(this,arguments)}function b(e,t,n){return w.apply(this,arguments)}function w(){return(w=(0,r.A)(i().mark((function e(t,n,r){var a,o,s,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(a=(a=window.location.pathname).replace(/\.(?:\w|\.|-)+\.html/,".html")).split(".html")[0],e.prev=3,e.next=6,fetch("".concat(window.location.origin,"/libs/granite/csrf/token.json?ts=1"));case 6:if(!(o=e.sent).ok){e.next=11;break}return e.next=10,o.json();case 10:s=e.sent.token;case 11:return e.next=13,fetch("".concat(a,".").concat(t,".").concat(n),{method:"POST",headers:{"CSRF-Token":s},body:r});case 13:if(!(c=e.sent).ok){e.next=16;break}return e.abrupt("return",c);case 16:e.next=22;break;case 18:throw e.prev=18,e.t0=e.catch(3),console.error(e.t0),e.t0;case 22:case"end":return e.stop()}}),e,null,[[3,18]])})))).apply(this,arguments)}},67478:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;var r=n(26872),a=n(19724),i=n(65212),o=n(2574),s=n(10281);t.mergeMap=function e(t,n,c){return void 0===c&&(c=1/0),s.isFunction(n)?e((function(e,i){return r.map((function(t,r){return n(e,t,i,r)}))(a.innerFrom(t(e,i)))}),c):("number"==typeof n&&(c=n),i.operate((function(e,n){return o.mergeInternals(e,n,t,c)})))}},67552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;var r=n(10281);t.isPromise=function(e){return r.isFunction(null==e?void 0:e.then)}},67933:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;var r=n(88246),a=n(80719);t.combineLatestAll=function(e){return a.joinAllInternals(r.combineLatest,e)}},68061:function(e,t,n){"use strict";n.d(t,{Y:function(){return c}});var r=n(92901),a=n(23029),i=n(54756),o=n.n(i),s=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},c=(0,r.A)((function e(){(0,a.A)(this,e)}));c.getUrl=function(){var e=document.getElementById("amag-infrastructure-info");return e?e.getAttribute("data-isvurl")+"/amag/rest/isv/data/":(console.error("Path to ISV is null"),null)},c.fetchSelectorWithExtensionAndParams=function(e,t,n,r){return s(void 0,void 0,void 0,o().mark((function a(){var i,s,l;return o().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i=c.getUrl(),s=new URLSearchParams(n).toString(),a.next=4,fetch("".concat(i).concat(e,".").concat(t,"?").concat(s));case 4:if(l=a.sent,!r){a.next=9;break}return a.next=8,l.blob();case 8:case 11:return a.abrupt("return",a.sent);case 9:return a.next=11,l.json();case 12:case"end":return a.stop()}}),a)})))}},68087:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;var r=n(67478),a=n(87699);t.mergeAll=function(e){return void 0===e&&(e=1/0),r.mergeMap(a.identity,e)}},68126:function(e,t,n){"use strict";n.d(t,{P:function(){return s},ee:function(){return c}});var r=n(21966),a=n(29176),i=n(81752),o=n(46549);const s="nr@context:".concat(o.W),c=function e(t,n){var r={},o={},u={},d=!1;try{d=16===n.length&&l.initializedAgents?.[n]?.runtime.isolatedBacklog}catch(e){}var h={on:f,addEventListener:f,removeEventListener:function(e,t){var n=r[e];if(!n)return;for(var a=0;a<n.length;a++)n[a]===t&&n.splice(a,1)},emit:function(e,n,r,a,i){!1!==i&&(i=!0);if(c.aborted&&!a)return;t&&i&&t.emit(e,n,r);var s=p(r);m(e).forEach((e=>{e.apply(s,n)}));var l=g()[o[e]];l&&l.push([h,e,n,s]);return s},get:v,listeners:m,context:p,buffer:function(e,t){const n=g();if(t=t||"feature",h.aborted)return;Object.entries(e||{}).forEach((([e,r])=>{o[r]=t,t in n||(n[t]=[])}))},abort:function(){h._aborted=!0,Object.keys(h.backlog).forEach((e=>{delete h.backlog[e]}))},isBuffering:function(e){return!!g()[o[e]]},debugId:n,backlog:d?{}:t&&"object"==typeof t.backlog?t.backlog:{},isolatedBacklog:d};return Object.defineProperty(h,"aborted",{get:()=>{let e=h._aborted||!1;return e||(t&&(e=t.aborted),e)}}),h;function p(e){return e&&e instanceof i.y?e:e?(0,a.I)(e,s,(()=>new i.y(s))):new i.y(s)}function f(e,t){r[e]=m(e).concat(t)}function m(e){return r[e]||[]}function v(t){return u[t]=u[t]||e(h,t)}function g(){return h.backlog}}(void 0,"globalEE"),l=(0,r.Zm)();l.ee||(l.ee=c)},68596:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;var r=n(10281);t.isScheduler=function(e){return e&&r.isFunction(e.schedule)}},68710:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishReplay=void 0;var r=n(10381),a=n(18464),i=n(10281);t.publishReplay=function(e,t,n,o){n&&!i.isFunction(n)&&(o=n);var s=i.isFunction(n)?n:void 0;return function(n){return a.multicast(new r.ReplaySubject(e,t,o),s)(n)}}},69267:function(e,t,n){"use strict";n.d(t,{$f:function(){return M},A$:function(){return A},AQ:function(){return E},EW:function(){return S},HY:function(){return R},I$:function(){return L},M7:function(){return k},Oq:function(){return f},PA:function(){return b},Q2:function(){return w},RI:function(){return v},Wq:function(){return O},Xo:function(){return y},Z0:function(){return _},_1:function(){return T},eo:function(){return m},gL:function(){return C},g_:function(){return I},h0:function(){return P},kS:function(){return g},lp:function(){return h},yZ:function(){return D}});var r=n(54756),a=n.n(r),i=n(98335),o=n.n(i),s=n(68061),c=n(26474),l=n(58276),u=n(3653),d=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},h={isMobile:function(){if("mobile"===o().type)return!0},isTablet:function(){if("tablet"===o().type)return!0},isLandscape:function(){if("landscape"===o().orientation)return!0},isPortrait:function(){if("portrait"===o().orientation)return!0},isTouchNew:function(){return"mobile"===o().type||"tablet"===o().type||("TouchEvent"in window||void 0)},isDesktop:function(){if("desktop"===o().type)return!0},isIos:function(){if("ios"===o().os)return!0},osIsIos:function(){if("ios"===o().os)return!0},osIsWin:function(){if("windows"===o().os)return!0}},p=function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)};(function(){return window.navigator.userAgent.indexOf("Edge")>1})()&&n.g.document.body.classList.add("browser-edge"),p()&&n.g.document.body.classList.add("browser-safari"),h.osIsWin()&&n.g.document.body.classList.add("os-win"),h.osIsIos()&&n.g.document.body.classList.add("os-ios");var f=function(e){(e=e.cloneNode(!0)).style.visibility="hidden",e.style.display="block",document.body.appendChild(e);var t=e.offsetHeight+0;return document.body.removeChild(e),t},m=function(e,t){void 0!==window.dataLayer&&window.dataLayer.push(e)},v=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},g=function(e){for(var t in e)v(e[t])&&delete e[t]},y=function(){var e;return null!==(e=document.querySelector("html").getAttribute("lang"))&&void 0!==e?e:"de"},_=function(){switch(y()){case"de":return"de-DE";case"it":return"it-IT";case"en":return"en-GB";case"fr":return"fr-FR"}},b=function(e){return(e||"").split(",").map((function(e){return e.trim()})).filter(Boolean)},w=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)},S=function(){return!!localStorage.getItem(u.H.AMAG_USER)},C=function(){return JSON.parse(localStorage.getItem(u.H.AMAG_USER))},E=function(e,t){var n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n.setDate(Math.min(e.getDate(),x(n.getFullYear(),n.getMonth()+1))),n},x=function(e,t){return new Date(e,t,0).getDate()},A=function(e,t,n){return d(void 0,void 0,void 0,a().mark((function r(){var i;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=[],r.next=3,s.Y.fetchSelectorWithExtensionAndParams("getNonWorkDaySet","json","garageId=".concat(e,"&startDate=").concat(t,"&endDate=").concat(n),!1);case 3:return r.sent.d.results.forEach((function(e){i.push(e.DATE_OFF_C)})),r.abrupt("return",i);case 6:case"end":return r.stop()}}),r)})))},k=function(e){return"".concat(new Date(e.getTime()-6e4*e.getTimezoneOffset()).toISOString().split("T")[0],"T00:00")},T=function(e,t){document.addEventListener("click",(function(n){!e.some((function(e){return e.contains(n.target)}))&&t()}))},L=function(){var e=document.querySelector(".amag-pop-up"),t=e.querySelector(".amag-pop-up__linkLabel"),n=e.querySelector(".amag-pop-up__notification"),r=e.querySelector(".amag-pop-up__message"),a=n.innerText+r.innerText,i=(0,c.Ri)("banner"),o="%7B%22hash%22%3A%22"+(0,l.Y)(function(e,t){return e+t}(a,t.getAttribute("href")))+"%22%7D";return!(!i||o!==i)},I=function(e){var t=e.replaceAll(/\s/g,"").match(/(\+\d{2})(\d{2})(\d{3})(\d{2})(\d{0,4})/);return!t||t.length<6?e:"".concat(t[1]," ").concat(t[2]," ").concat(t[3]," ").concat(t[4]," ").concat(t[5])},D=function(e){var t,n,r,a;"name"in e?(t=e.name,n=e.path,r=e.phone,a=e.mail):(t=e.getGarageName(),n=e.getPath(),r=e.getPhoneNumber(),a=e.getEmail());var i=document.querySelectorAll(".amag-header__garageName"),o=document.querySelectorAll(".amag-header__default");
6i.forEach((function(e){e.innerHTML=t})),document.querySelectorAll("a.amag-header__garage").forEach((function(e){e.setAttribute("href",n)})),i.forEach((function(e){e.classList.remove("d-none")})),i.forEach((function(e){e.classList.add("d-inline-block")})),o.forEach((function(e){e.classList.remove("d-inline-block")})),o.forEach((function(e){e.classList.add("d-none")})),document.querySelectorAll(".amagMyGarage__garageName").forEach((function(e){e.innerHTML=t})),document.querySelectorAll("a.amagMyGarage__services-item--call").forEach((function(e){e.setAttribute("href","tel:"+r)})),document.querySelectorAll("a.amagMyGarage__services-item--mail").forEach((function(e){e.setAttribute("href","mailto:"+a)})),document.querySelectorAll("a.amagMyGarage__services-item--toGarage").forEach((function(e){e.setAttribute("href",n)})),document.querySelectorAll(".amagMyGarage--noFavorite").forEach((function(e){e.classList.remove("d-sm-block")})),document.querySelectorAll(".amagMyGarage--noFavorite").forEach((function(e){e.classList.add("d-sm-none")})),document.querySelectorAll(".amagMyGarage--Favorite").forEach((function(e){e.classList.remove("d-sm-none")})),document.querySelectorAll(".amagMyGarage--Favorite").forEach((function(e){e.classList.add("d-sm-block")})),document.querySelectorAll(".amag-header__garageFlyout").forEach((function(e){e.classList.remove("noFavorite")})),document.querySelectorAll(".amag-header__garageFlyout").forEach((function(e){e.classList.add("favorite")})),document.querySelectorAll(".amag-header__garageFlyout").forEach((function(e){e.classList.remove("show")})),document.querySelectorAll(".amag-header__garageFlyout .dropdown-noFav").forEach((function(e){e.classList.remove("show")})),document.querySelectorAll(".amag-header__garageFlyout .dropdown-success").forEach((function(e){e.classList.remove("show")}))},P=function(e,t){console.error(e)},O=function(){var e=window.location.hostname;return(e.match(/\./g)||[]).length<=1?e:e.substring(e.indexOf(".")+1,e.length)},R=function(){return"true"===document.getElementById("amag-infrastructure-info").dataset.publisher},M=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},69517:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=void 0;var r=n(9619);t.UnsubscriptionError=r.createErrorClass((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}))},69879:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.isSubscription=t.EMPTY_SUBSCRIPTION=t.Subscription=void 0;var o=n(10281),s=n(69517),c=n(54830),l=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,c,l;if(!this.closed){this.closed=!0;var d=this._parentage;if(d)if(this._parentage=null,Array.isArray(d))try{for(var h=r(d),p=h.next();!p.done;p=h.next()){p.value.remove(this)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}else d.remove(this);var f=this.initialTeardown;if(o.isFunction(f))try{f()}catch(e){l=e instanceof s.UnsubscriptionError?e.errors:[e]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var v=r(m),g=v.next();!g.done;g=v.next()){var y=g.value;try{u(y)}catch(e){l=null!=l?l:[],e instanceof s.UnsubscriptionError?l=i(i([],a(l)),a(e.errors)):l.push(e)}}}catch(e){n={error:e}}finally{try{g&&!g.done&&(c=v.return)&&c.call(v)}finally{if(n)throw n.error}}}if(l)throw new s.UnsubscriptionError(l)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)u(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&c.arrRemove(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&c.arrRemove(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function u(e){o.isFunction(e)?e():e.unsubscribe()}t.Subscription=l,t.EMPTY_SUBSCRIPTION=l.EMPTY,t.isSubscription=function(e){return e instanceof l||e&&"closed"in e&&o.isFunction(e.remove)&&o.isFunction(e.add)&&o.isFunction(e.unsubscribe)}},69915:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;var r=n(65212),a=n(17214);t.isEmpty=function(){return r.operate((function(e,t){e.subscribe(a.createOperatorSubscriber(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))}},70201:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;var r=n(68087);t.concatAll=function(){return r.mergeAll(1)}},71666: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;var i=function(e){function t(t,n){return e.call(this)||this}return a(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(69879).Subscription);t.Action=i},71736:function(e,t,n){"use strict";n.d(t,{Aw:function(){return o},SR:function(){return i},rF:function(){return s}});var r=n(21966),a=n(17305);function i(e){return!!(0,r.dV)().o.MO&&(0,a.V)(e)&&!0===e?.session_trace.enabled}function o(e){return!0===e?.session_replay.preload&&i(e)}function s(e,t){try{if("string"==typeof t?.type){if("password"===t.type.toLowerCase())return"*".repeat(e?.length||0);if(void 0!==t?.dataset?.nrUnmask||t?.classList?.contains("nr-unmask"))return e}}catch(e){}return"string"==typeof e?e.replace(/[\S]/g,"*"):"*".repeat(e?.length||0)}},71999:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(58740);const a="newrelic";function i(e={}){try{r.gm.dispatchEvent(new CustomEvent(a,{detail:e}))}catch(e){}}},72024:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(34842);i.on=o;var a=i.handlers={};function i(e,t,n,i){o(i||r.d,a,e,t,n)}function o(e,t,n,a,i){i||(i="feature"),e||(e=r.d);var o=t[i]=t[i]||{};(o[n]=o[n]||[]).push([e,a])}},72196:function(e,t,n){"use strict";n.d(t,{Nc:function(){return i},cn:function(){return s},fL:function(){return a},h3:function(){return r},hB:function(){return o}});const r=/function (.+?)\s*\(/,a=/^\s*at .+ \(eval at \S+ \((?:(?:file|http|https):[^)]+)?\)(?:, [^:]*:\d+:\d+)?\)$/i,i=/^\s*at Function code \(Function code:\d+:\d+\)\s*/i,o=/^\s*at (?:((?:\[object object\])?(?:[^(]*\([^)]*\))*[^()]*(?: \[as \S+\])?) )?\(?((?:file|http|https|chrome-extension):.*?)?:(\d+)(?::(\d+))?\)?\s*$/i,s=/^\s*(?:([^@]*)(?:\(.*?\))?@)?((?:file|http|https|chrome|safari-extension).*?):(\d+)(?::(\d+))?\s*$/i},72461:function(e,t,n){var r,a,i,o=n(74692);a=[n(74692)],r=function(t){var n=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var n=t.fn.select2.amd;var r,a,i,s,c,l,u,d,h,p,f,m,v,g,y,_;function b(e,t){return v.call(e,t)}function w(e,t){var n,r,a,i,o,s,c,l,u,d,h,p=t&&t.split("/"),m=f.map,v=m&&m["*"]||{};if(e){for(o=(e=e.split("/")).length-1,f.nodeIdCompat&&y.test(e[o])&&(e[o]=e[o].replace(y,"")),"."===e[0].charAt(0)&&p&&(e=p.slice(0,p.length-1).concat(e)),u=0;u<e.length;u++)if("."===(h=e[u]))e.splice(u,1),--u;else if(".."===h){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((p||v)&&m){for(u=(n=e.split("/")).length;0<u;--u){if(r=n.slice(0,u).join("/"),p)for(d=p.length;0<d;--d)if(a=(a=m[p.slice(0,d).join("/")])&&a[r]){i=a,s=u;break}if(i)break;!c&&v&&v[r]&&(c=v[r],l=u)}!i&&c&&(i=c,s=l),i&&(n.splice(0,s,i),e=n.join("/"))}return e}function S(e,t){return function(){var n=g.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),l.apply(s,n.concat([e,t]))}}function C(e){return function(t){h[e]=t}}function E(e){if(b(p,e)){var t=p[e];delete p[e],m[e]=!0,c.apply(s,t)}if(!b(h,e)&&!b(m,e))throw new Error("No "+e);return h[e]}function x(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function A(e){return e?x(e):[]}return n&&n.requirejs||(n?a=n:n={},h={},p={},f={},m={},v=Object.prototype.hasOwnProperty,g=[].slice,y=/\.js$/,u=function(e,t){var n,r,a=x(e),i=a[0],o=t[1];return e=a[1],i&&(n=E(i=w(i,o))),i?e=n&&n.normalize?n.normalize(e,(r=o,function(e){return w(e,r)})):w(e,o):(i=(a=x(e=w(e,o)))[0],e=a[1],i&&(n=E(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},d={require:function(e){return S(e)},exports:function(e){var t=h[e];return void 0!==t?t:h[e]={}},module:function(e){return{id:e,uri:"",exports:h[e],config:(t=e,function(){return f&&f.config&&f.config[t]||{}})};var t}},c=function(e,t,n,r){var a,i,o,c,l,f,v,g=[],y=typeof n;if(f=A(r=r||e),"undefined"==y||"function"==y){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(i=(c=u(t[l],f)).f))g[l]=d.require(e);else if("exports"===i)g[l]=d.exports(e),v=!0;else if("module"===i)a=g[l]=d.module(e);else if(b(h,i)||b(p,i)||b(m,i))g[l]=E(i);else{if(!c.p)throw new Error(e+" missing "+i);c.p.load(c.n,S(r,!0),C(i),{}),g[l]=h[i]}o=n?n.apply(h[e],g):void 0,e&&(a&&a.exports!==s&&a.exports!==h[e]?h[e]=a.exports:o===s&&v||(h[e]=o))}else e&&(h[e]=n)},r=a=l=function(e,t,n,r,a){if("string"==typeof e)return d[e]?d[e](t):E(u(e,A(t)).f);if(!e.splice){if((f=e).deps&&l(f.deps,f.callback),!t)return;t.splice?(e=t,t=n,n=null):e=s}return t=t||function(){},"function"==typeof n&&(n=r,r=a),r?c(s,e,t,n):setTimeout((function(){c(s,e,t,n)}),4),l},l.config=function(e){return l(e)}
6,r._defined=h,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),b(h,e)||b(p,e)||(p[e]=[e,t,n])}).amd={jQuery:!0},n.requirejs=r,n.require=a,n.define=i),n.define("almond",(function(){})),n.define("jquery",[],(function(){var e=t||o;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),n.define("select2/utils",["jquery"],(function(e){var t={};function n(e){var t=e.prototype,n=[];for(var r in t)"function"==typeof t[r]&&"constructor"!==r&&n.push(r);return n}function r(){this.listeners={}}t.Extend=function(e,t){var n={}.hasOwnProperty;function r(){this.constructor=e}for(var a in t)n.call(t,a)&&(e[a]=t[a]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},t.Decorate=function(e,t){var r=n(t),a=n(e);function i(){var n=Array.prototype.unshift,r=t.prototype.constructor.length,a=e.prototype.constructor;0<r&&(n.call(arguments,e.prototype.constructor),a=t.prototype.constructor),a.apply(this,arguments)}t.displayName=e.displayName,i.prototype=new function(){this.constructor=i};for(var o=0;o<a.length;o++){var s=a[o];i.prototype[s]=e.prototype[s]}function c(e){var n=function(){};e in i.prototype&&(n=i.prototype[e]);var r=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,n),r.apply(this,arguments)}}for(var l=0;l<r.length;l++){var u=r[l];i.prototype[u]=c(u)}return i},r.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},r.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},r.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},t.Observable=r,t.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),r=e;if(1!==n.length){for(var a=0;a<n.length;a++){var i=n[a];(i=i.substring(0,1).toLowerCase()+i.substring(1))in r||(r[i]={}),a==n.length-1&&(r[i]=e[t]),r=r[i]}delete e[t]}}return e},t.hasScroll=function(t,n){var r=e(n),a=n.style.overflowX,i=n.style.overflowY;return(a!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===a||"scroll"===i||r.innerHeight()<n.scrollHeight||r.innerWidth()<n.scrollWidth)},t.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var r=e();e.map(n,(function(e){r=r.add(e)})),n=r}t.append(n)},t.__cache={};var a=0;return t.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++a),t=a.toString())),t},t.StoreData=function(e,n,r){var a=t.GetUniqueElementId(e);t.__cache[a]||(t.__cache[a]={}),t.__cache[a][n]=r},t.GetData=function(n,r){var a=t.GetUniqueElementId(n);return r?t.__cache[a]&&null!=t.__cache[a][r]?t.__cache[a][r]:e(n).data(r):t.__cache[a]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t})),n.define("select2/results",["jquery","./utils"],(function(e,t){function n(e,t,r){this.$element=e,this.data=r,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var r=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),a=this.options.get("translations").get(t.message);r.append(n(a(t.args))),r[0].className+=" select2-results__message",this.$results.append(r)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n],a=this.option(r);t.push(a)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current((function(r){var a=e.map(r,(function(e){return e.id.toString()}));n.$results.find(".select2-results__option[aria-selected]").each((function(){var n=e(this),r=t.GetData(this,"data"),i=""+r.id;null!=r.element&&r.element.selected||null==r.element&&-1<e.inArray(i,a)?n.attr("aria-selected","true"):n.attr("aria-selected","false")}))}))},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var r=document.createElement("li");r.className="select2-results__option";var a={role:"option","aria-selected":"false"},i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var o in(null!=n.element&&i.call(n.element,":disabled")||null==n.element&&n.disabled)&&(delete a["aria-selected"],a["aria-disabled"]="true"),null==n.id&&delete a["aria-selected"],null!=n._resultId&&(r.id=n._resultId),n.title&&(r.title=n.title),n.children&&(a.role="group",a["aria-label"]=n.text,delete a["aria-selected"]),a){var s=a[o];r.setAttribute(o,s)}
6if(n.children){var c=e(r),l=document.createElement("strong");l.className="select2-results__group",e(l),this.template(n,l);for(var u=[],d=0;d<n.children.length;d++){var h=n.children[d],p=this.option(h);u.push(p)}var f=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});f.append(u),c.append(l),c.append(f)}else this.template(n,r);return t.StoreData(r,"data",n),r},n.prototype.bind=function(n,r){var a=this,i=n.id+"-results";this.$results.attr("id",i),n.on("results:all",(function(e){a.clear(),a.append(e.data),n.isOpen()&&(a.setClasses(),a.highlightFirstItem())})),n.on("results:append",(function(e){a.append(e.data),n.isOpen()&&a.setClasses()})),n.on("query",(function(e){a.hideMessages(),a.showLoading(e)})),n.on("select",(function(){n.isOpen()&&(a.setClasses(),a.options.get("scrollAfterSelect")&&a.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(a.setClasses(),a.options.get("scrollAfterSelect")&&a.highlightFirstItem())})),n.on("open",(function(){a.$results.attr("aria-expanded","true"),a.$results.attr("aria-hidden","false"),a.setClasses(),a.ensureHighlightVisible()})),n.on("close",(function(){a.$results.attr("aria-expanded","false"),a.$results.attr("aria-hidden","true"),a.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var e=a.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),n.on("results:select",(function(){var e=a.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");"true"==e.attr("aria-selected")?a.trigger("close",{}):a.trigger("select",{data:n})}})),n.on("results:previous",(function(){var e=a.getHighlightedResults(),t=a.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var i=t.eq(r);i.trigger("mouseenter");var o=a.$results.offset().top,s=i.offset().top,c=a.$results.scrollTop()+(s-o);0===r?a.$results.scrollTop(0):s-o<0&&a.$results.scrollTop(c)}})),n.on("results:next",(function(){var e=a.getHighlightedResults(),t=a.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var i=a.$results.offset().top+a.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),s=a.$results.scrollTop()+o-i;0===n?a.$results.scrollTop(0):i<o&&a.$results.scrollTop(s)}})),n.on("results:focus",(function(e){e.element.addClass("select2-results__option--highlighted")})),n.on("results:message",(function(e){a.displayMessage(e)})),e.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=a.$results.scrollTop(),n=a.$results.get(0).scrollHeight-t+e.deltaY,r=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&n<=a.$results.height();r?(a.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(a.$results.scrollTop(a.$results.get(0).scrollHeight-a.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(n){var r=e(this),i=t.GetData(this,"data");"true"!==r.attr("aria-selected")?a.trigger("select",{originalEvent:n,data:i}):a.options.get("multiple")?a.trigger("unselect",{originalEvent:n,data:i}):a.trigger("close",{})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(n){var r=t.GetData(this,"data");a.getHighlightedResults().removeClass("select2-results__option--highlighted"),a.trigger("results:focus",{data:r,element:e(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,r=e.offset().top,a=this.$results.scrollTop()+(r-n),i=r-n;a-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(i>this.$results.outerHeight()||i<0)&&this.$results.scrollTop(a)}},n.prototype.template=function(t,n){var r=this.options.get("templateResult"),a=this.options.get("escapeMarkup"),i=r(t,n);null==i?n.style.display="none":"string"==typeof i?n.innerHTML=a(i):e(n).append(i)},n})),n.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),n.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,n){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n},r.prototype.bind=function(e,t){var r=this,a=e.id+"-results";this.container=e,this.$selection.on("focus",(function(e){r.trigger("focus",e)})),this.$selection.on("blur",(function(e){r._handleBlur(e)})),this.$selection.on("keydown",(function(e){r.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){r.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){r.update(e.data)})),e.on("open",(function(){r.$selection.attr("aria-expanded","true"),r.$selection.attr("aria-owns",a),r._attachCloseHandler(e)})),e.on("close",(function(){r.$selection.attr("aria-expanded","fal
6se"),r.$selection.removeAttr("aria-activedescendant"),r.$selection.removeAttr("aria-owns"),r.$selection.trigger("focus"),r._detachCloseHandler(e)})),e.on("enable",(function(){r.$selection.attr("tabindex",r._tabindex),r.$selection.attr("aria-disabled","false")})),e.on("disable",(function(){r.$selection.attr("tabindex","-1"),r.$selection.attr("aria-disabled","true")}))},r.prototype._handleBlur=function(t){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)}),1)},r.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,(function(n){var r=e(n.target).closest(".select2");e(".select2.select2-container--open").each((function(){this!=r[0]&&t.GetData(this,"element").select2("close")}))}))},r.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(e,t){t.find(".selection").append(e)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r})),n.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,n,r){function a(){a.__super__.constructor.apply(this,arguments)}return n.Extend(a,t),a.prototype.render=function(){var e=a.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},a.prototype.bind=function(e,t){var n=this;a.__super__.bind.apply(this,arguments);var r=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",(function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||n.$selection.trigger("focus")}))},a.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},a.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},a.prototype.selectionContainer=function(){return e("<span></span>")},a.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r);var a=t.title||t.text;a?n.attr("title",a):n.removeAttr("title")}else this.clear()},a})),n.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,n){function r(e,t){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},r.prototype.bind=function(t,a){var i=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(e){i.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){if(!i.isDisabled()){var r=e(this).parent(),a=n.GetData(r[0],"data");i.trigger("unselect",{originalEvent:t,data:a})}}))},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},r.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],r=0;r<e.length;r++){var a=e[r],i=this.selectionContainer(),o=this.display(a,i);i.append(o);var s=a.title||a.text;s&&i.attr("title",s),n.StoreData(i[0],"data",a),t.push(i)}var c=this.$selection.find(".select2-selection__rendered");n.appendMany(c,t)}},r})),n.define("select2/selection/placeholder",["../utils"],(function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t}
6)),n.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(e,t,n){function r(){}return r.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(e){r._handleClear(e)})),t.on("keypress",(function(e){r._handleKeyboardClear(e,t)}))},r.prototype._handleClear=function(e,t){if(!this.isDisabled()){var r=this.$selection.find(".select2-selection__clear");if(0!==r.length){t.stopPropagation();var a=n.GetData(r[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var o={data:a};if(this.trigger("clear",o),o.prevented)this.$element.val(i);else{for(var s=0;s<a.length;s++)if(o={data:a[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},r.prototype._handleKeyboardClear=function(e,n,r){r.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},r.prototype.update=function(t,r){if(t.call(this,r),!(0<this.$selection.find(".select2-selection__placeholder").length||0===r.length)){var a=this.options.get("translations").get("removeAllItems"),i=e('<span class="select2-selection__clear" title="'+a()+'">×</span>');n.StoreData(i[0],"data",r),this.$selection.find(".select2-selection__rendered").prepend(i)}},r})),n.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,n){function r(e,t,n){e.call(this,t,n)}return r.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var r=t.call(this);return this._transferTabIndex(),r},r.prototype.bind=function(e,r,a){var i=this,o=r.id+"-results";e.call(this,r,a),r.on("open",(function(){i.$search.attr("aria-controls",o),i.$search.trigger("focus")})),r.on("close",(function(){i.$search.val(""),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")})),r.on("enable",(function(){i.$search.prop("disabled",!1),i._transferTabIndex()})),r.on("disable",(function(){i.$search.prop("disabled",!0)})),r.on("focus",(function(e){i.$search.trigger("focus")})),r.on("results:focus",(function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(e){i.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){i._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===i.$search.val()){var r=i.$searchContainer.prev(".select2-selection__choice");if(0<r.length){var a=t.GetData(r[0],"data");i.searchRemoveChoice(a),e.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(e){i.$search.val()&&e.stopPropagation()}));var s=document.documentMode,c=s&&s<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){c?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){if(c&&"input"===e.type)i.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&i.handleSearch(e)}}))},r.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},r})),n.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,n,r){var a=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,r),n.on("*",(function(t,n){if(-1!==e.inArray(t,i)){n=n||{};var r=e.Event("select2:"+t,{params:n});a.$element.trigger(r),-1!==e.inArray(t,o)&&(n.prevented=r.isDefaultPrevented())}}))},t})),n.define("select2/translation",["jquery","require"],(function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={}
6,n.loadPath=function(e){if(!(e in n._cache)){var r=t(e);n._cache[e]=r}return new n(n._cache[e])},n})),n.define("select2/diacritics",[],(function(){return{"â¶":"A","A":"A","Ã":"A","Ã":"A","Ã":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ä":"A","Ä":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ç ":"A","Ã":"A","Ç":"A","Ả":"A","Ã
":"A","Ǻ":"A","Ç":"A","È":"A","È":"A","Ạ":"A","Ậ":"A","Ặ":"A","á¸":"A","Ä":"A","Ⱥ":"A","Ɐ":"A","ê²":"AA","Ã":"AE","Ǽ":"AE","Ç¢":"AE","ê´":"AO","ê¶":"AU","ê¸":"AV","êº":"AV","ê¼":"AY","â·":"B","ï¼¢":"B","á¸":"B","á¸":"B","á¸":"B","É":"B","Æ":"B","Æ":"B","â¸":"C","ï¼£":"C","Ä":"C","Ä":"C","Ä":"C","Ä":"C","Ã":"C","á¸":"C","Æ":"C","È»":"C","ê¾":"C","â¹":"D","D":"D","á¸":"D","Ä":"D","á¸":"D","á¸":"D","á¸":"D","á¸":"D","Ä":"D","Æ":"D","Æ":"D","Æ":"D","ê¹":"D","DZ":"DZ","Ç":"DZ","Dz":"Dz","Ç
":"Dz","âº":"E","ï¼¥":"E","Ã":"E","Ã":"E","Ã":"E","á»":"E","Ế":"E","á»":"E","á»":"E","Ẽ":"E","Ä":"E","á¸":"E","á¸":"E","Ä":"E","Ä":"E","Ã":"E","Ẻ":"E","Ä":"E","È":"E","È":"E","Ẹ":"E","á»":"E","Ȩ":"E","á¸":"E","Ä":"E","á¸":"E","á¸":"E","Æ":"E","Æ":"E","â»":"F","F":"F","á¸":"F","Æ":"F","ê»":"F","â¼":"G","ï¼§":"G","Ç´":"G","Ä":"G","Ḡ":"G","Ä":"G","Ä ":"G","Ǧ":"G","Ä¢":"G","Ǥ":"G","Æ":"G","ê ":"G","ê½":"G","ê¾":"G","â½":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","È":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","â±§":"H","â±µ":"H","ê":"H","â¾":"I","I":"I","Ã":"I","Ã":"I","Ã":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ã":"I","Ḯ":"I","á»":"I","Ç":"I","È":"I","È":"I","á»":"I","Ä®":"I","Ḭ":"I","Æ":"I","â¿":"J","J":"J","Ä´":"J","É":"J","â":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Æ":"K","Ⱪ":"K","ê":"K","ê":"K","ê":"K","ê¢":"K","â":"L","L":"L","Ä¿":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ä»":"L","Ḽ":"L","Ḻ":"L","Å":"L","Ƚ":"L","â±¢":"L","â± ":"L","ê":"L","ê":"L","ê":"L","Ç":"LJ","Ç":"Lj","â":"M","ï¼":"M","Ḿ":"M","á¹":"M","á¹":"M","â±®":"M","Æ":"M","â":"N","ï¼®":"N","Ǹ":"N","Å":"N","Ã":"N","á¹":"N","Å":"N","á¹":"N","Å
":"N","á¹":"N","á¹":"N","È ":"N","Æ":"N","ê":"N","ê¤":"N","Ç":"NJ","Ç":"Nj","â":"O","O":"O","Ã":"O","Ã":"O","Ã":"O","á»":"O","á»":"O","á»":"O","á»":"O","Ã":"O","á¹":"O","Ȭ":"O","á¹":"O","Å":"O","á¹":"O","á¹":"O","Å":"O","È®":"O","Ȱ":"O","Ã":"O","Ȫ":"O","á»":"O","Å":"O","Ç":"O","È":"O","È":"O","Æ ":"O","á»":"O","á»":"O","á» ":"O","á»":"O","Ợ":"O","á»":"O","á»":"O","Ǫ":"O","Ǭ":"O","Ã":"O","Ǿ":"O","Æ":"O","Æ":"O","ê":"O","ê":"O","Å":"OE","Æ¢":"OI","ê":"OO","È¢":"OU","â
":"P","ï¼°":"P","á¹":"P","á¹":"P","Ƥ":"P","â±£":"P","ê":"P","ê":"P","ê":"P","â":"Q","ï¼±":"Q","ê":"Q","ê":"Q","É":"Q","â":"R","ï¼²":"R","Å":"R","á¹":"R","Å":"R","È":"R","È":"R","á¹":"R","á¹":"R","Å":"R","á¹":"R","É":"R","Ɽ":"R","ê":"R","ê¦":"R","ê":"R","â":"S","ï¼³":"S","áº":"S","Å":"S","Ṥ":"S","Å":"S","á¹ ":"S","Å ":"S","Ṧ":"S","á¹¢":"S","Ṩ":"S","È":"S","Å":"S","â±¾":"S","ê¨":"S","ê":"S","â":"T","ï¼´":"T","Ṫ":"T","Ť":"T","Ṭ":"T","È":"T","Å¢":"T","á¹°":"T","á¹®":"T","Ŧ":"T","Ƭ":"T","Æ®":"T","Ⱦ":"T","ê":"T","ê¨":"TZ","â":"U","ï¼µ":"U","Ã":"U","Ã":"U","Ã":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ã":"U","Ç":"U","Ç":"U","Ç":"U","Ç":"U","Ủ":"U","Å®":"U","Ű":"U","Ç":"U","È":"U","È":"U","Ư":"U","Ừ":"U","Ứ":"U","á»®":"U","Ử":"U","á»°":"U","Ụ":"U","á¹²":"U","Ų":"U","á¹¶":"U","á¹´":"U","É":"U","â":"V","ï¼¶":"V","á¹¼":"V","á¹¾":"V","Ʋ":"V","ê":"V","É
":"V","ê ":"VY","â":"W","ï¼·":"W","áº":"W","áº":"W","Å´":"W","áº":"W","áº":"W","áº":"W","â±²":"W","â":"X","X":"X","áº":"X","áº":"X","â":"Y","ï¼¹":"Y","Ỳ":"Y","Ã":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","áº":"Y","Ÿ":"Y","á»¶":"Y","á»´":"Y","Ƴ":"Y","É":"Y","Ỿ":"Y","â":"Z","Z":"Z","Ź":"Z","áº":"Z","Å»":"Z","Ž":"Z","áº":"Z","áº":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","ê¢":"Z","â":"a","ï½":"a","áº":"a","à ":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","Ä":"a","Ä":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","Ç¡":"a","ä":"a","Ç":"a","ả":"a","Ã¥":"a","Ç»":"a","Ç":"a","È":"a","È":"a","ạ":"a","áº":"a","ặ":"a","á¸":"a","Ä
":"a","â±¥":"a","É":"a","ê³":"aa","æ":"ae","ǽ":"ae","Ç£":"ae","êµ":"ao","ê·":"au","ê¹":"av","ê»":"av","ê½":"ay","â":"b","ï½":"b","á¸":"b","á¸
":"b","á¸":"b","Æ":"b","Æ":"b","É":"b","â":"c","ï½":"c","Ä":"
6c","Ä":"c","Ä":"c","Ä":"c","ç":"c","á¸":"c","Æ":"c","ȼ":"c","ê¿":"c","â":"c","â":"d","ï½":"d","á¸":"d","Ä":"d","á¸":"d","á¸":"d","á¸":"d","á¸":"d","Ä":"d","Æ":"d","É":"d","É":"d","êº":"d","dz":"dz","Ç":"dz","â":"e","ï½
":"e","è":"e","é":"e","ê":"e","á»":"e","ế":"e","á»
":"e","á»":"e","ẽ":"e","Ä":"e","á¸":"e","á¸":"e","Ä":"e","Ä":"e","ë":"e","ẻ":"e","Ä":"e","È
":"e","È":"e","ẹ":"e","á»":"e","È©":"e","á¸":"e","Ä":"e","á¸":"e","á¸":"e","É":"e","É":"e","Ç":"e","â":"f","ï½":"f","á¸":"f","Æ":"f","ê¼":"f","â":"g","ï½":"g","ǵ":"g","Ä":"g","ḡ":"g","Ä":"g","Ä¡":"g","ǧ":"g","Ä£":"g","Ç¥":"g","É ":"g","ê¡":"g","áµ¹":"g","ê¿":"g","â":"h","ï½":"h","Ä¥":"h","ḣ":"h","ḧ":"h","È":"h","ḥ":"h","ḩ":"h","ḫ":"h","áº":"h","ħ":"h","ⱨ":"h","â±¶":"h","É¥":"h","Æ":"hv","â":"i","ï½":"i","ì":"i","Ã":"i","î":"i","Ä©":"i","Ä«":"i","Ä":"i","ï":"i","ḯ":"i","á»":"i","Ç":"i","È":"i","È":"i","á»":"i","į":"i","á¸":"i","ɨ":"i","ı":"i","â":"j","ï½":"j","ĵ":"j","ǰ":"j","É":"j","â":"k","ï½":"k","ḱ":"k","Ç©":"k","ḳ":"k","Ä·":"k","ḵ":"k","Æ":"k","ⱪ":"k","ê":"k","ê":"k","ê
":"k","ê£":"k","â":"l","ï½":"l","Å":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","Å¿":"l","Å":"l","Æ":"l","É«":"l","ⱡ":"l","ê":"l","ê":"l","ê":"l","Ç":"lj","â":"m","ï½":"m","ḿ":"m","á¹":"m","á¹":"m","ɱ":"m","ɯ":"m","â":"n","ï½":"n","ǹ":"n","Å":"n","ñ":"n","á¹
":"n","Å":"n","á¹":"n","Å":"n","á¹":"n","á¹":"n","Æ":"n","ɲ":"n","Å":"n","ê":"n","ê¥":"n","Ç":"nj","â":"o","ï½":"o","ò":"o","ó":"o","ô":"o","á»":"o","á»":"o","á»":"o","á»":"o","õ":"o","á¹":"o","È":"o","á¹":"o","Å":"o","á¹":"o","á¹":"o","Å":"o","ȯ":"o","ȱ":"o","ö":"o","È«":"o","á»":"o","Å":"o","Ç":"o","È":"o","È":"o","Æ¡":"o","á»":"o","á»":"o","ỡ":"o","á»":"o","ợ":"o","á»":"o","á»":"o","Ç«":"o","Ç":"o","ø":"o","Ç¿":"o","É":"o","ê":"o","ê":"o","ɵ":"o","Å":"oe","Æ£":"oi","È£":"ou","ê":"oo","â":"p","ï½":"p","á¹":"p","á¹":"p","Æ¥":"p","áµ½":"p","ê":"p","ê":"p","ê":"p","â ":"q","ï½":"q","É":"q","ê":"q","ê":"q","â¡":"r","ï½":"r","Å":"r","á¹":"r","Å":"r","È":"r","È":"r","á¹":"r","á¹":"r","Å":"r","á¹":"r","É":"r","ɽ":"r","ê":"r","ê§":"r","ê":"r","â¢":"s","ï½":"s","Ã":"s","Å":"s","á¹¥":"s","Å":"s","ṡ":"s","Å¡":"s","á¹§":"s","á¹£":"s","ṩ":"s","È":"s","Å":"s","È¿":"s","ê©":"s","ê
":"s","áº":"s","â£":"t","ï½":"t","ṫ":"t","áº":"t","Å¥":"t","á¹":"t","È":"t","Å£":"t","á¹±":"t","ṯ":"t","ŧ":"t","Æ":"t","Ê":"t","ⱦ":"t","ê":"t","ê©":"tz","â¤":"u","ï½":"u","ù":"u","ú":"u","û":"u","Å©":"u","á¹¹":"u","Å«":"u","á¹»":"u","Å":"u","ü":"u","Ç":"u","Ç":"u","Ç":"u","Ç":"u","á»§":"u","ů":"u","ű":"u","Ç":"u","È":"u","È":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","á»":"u","á»±":"u","ụ":"u","á¹³":"u","ų":"u","á¹·":"u","á¹µ":"u","Ê":"u","â¥":"v","ï½":"v","á¹½":"v","ṿ":"v","Ê":"v","ê":"v","Ê":"v","ê¡":"vy","â¦":"w","ï½":"w","áº":"w","áº":"w","ŵ":"w","áº":"w","áº
":"w","áº":"w","áº":"w","â±³":"w","â§":"x","ï½":"x","áº":"x","áº":"x","â¨":"y","ï½":"y","ỳ":"y","ý":"y","Å·":"y","ỹ":"y","ȳ":"y","áº":"y","ÿ":"y","á»·":"y","áº":"y","ỵ":"y","Æ´":"y","É":"y","ỿ":"y","â©":"z","ï½":"z","ź":"z","áº":"z","ż":"z","ž":"z","áº":"z","áº":"z","ƶ":"z","È¥":"z","É":"z","ⱬ":"z","ê£":"z","Î":"Î","Î":"Î","Î":"Î","Î":"Î","Ϊ":"Î","Î":"Î","Î":"Î¥","Ϋ":"Î¥","Î":"Ω","ά":"α","Î":"ε","ή":"η","ί":"ι","Ï":"ι","Î":"ι","Ï":"ο","Ï":"Ï
","Ï":"Ï
","ΰ":"Ï
","Ï":"Ï","Ï":"Ï","â":"'"}})),n.define("select2/data/base",["../utils"],(function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var r=t.id+"-result-";return r+=e.generateChars(4),null!=n.id?r+="-"+n.id.toString():r+="-"+e.generateChars(4),r},t})),n.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,n){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,e),r.prototype.current=function(e){var t=[],r=this;this.$element.find(":selected").each((function(){var e=n(this),a=r.item(e);t.push(a)})),e(t)},r.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(r){var a=[];(e=[e]).push.apply(e,r);for(var i=0;i<e.length;i++){var o=e[i].id;-1===n.inArray(o,a)&&a.push(o)}t.$element.val(a),t.$element.trigger("input").trigger("change")}));else{var r=e.id;this.$element.val(r),this.$element.trigger("input").trigger("change")}},r.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,n(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(r){for(var a=[],i=0;i<r.length;i++){var o=r[i].id;o!==e.id&&-1===n.inArray(o,a)&&a.push(o)}t.$element.val(a),t.$element.trigger("input").trigger("change")}))}},r.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",(function(e){n.select(e.data)})),e.on("unselect",(function(e){n.unselect(e.data)}))},r.prototype.destroy=function(){this.$element.find("*").each((function(){t.RemoveData(this)}))},r.prototype.query=function(e,t){var r=[],a=this;this.$element.children().each((function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var i=a.item(t),o=a.matches(e,i);null!==o&&r.push(o)}})),t({results:r})},r.prototype.addOptions=function(e){t.appendMany(this.$element,e)},r.prototype.option=function(e){var r;e.children?(r=document.createElement("optgroup")).label=e.text:void 0!==(r=document.createElement("option")).textContent?r.textContent=e.text:r.innerText=e.text,void 0!==e.id&&(r.value=e.id),e.disabled&&(r.disabled=!0),e.selected&&(r.selected=!0),e.title&&(r.title=e.title);var a=n(r),i=this._normalizeItem(e);return i.element=r,t.StoreData(r,"data",i),a},r.prototype.item=function(e){var r={};if(null!=(r=t.GetData(e[0],"data")))return r;if(e.is("option"))r={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){r={text:e.prop("label"),children:[],title:e.prop("title")};for(var a=e.children("option"),i=[],o=0;o<a.length;o++){var s=n(a[o]),c=this.item(s);i.push(c)}r.children=i}return(r=this._normalizeItem(r)).element=e[0],t.StoreData(e[0],"data",r),r},r.prototype._normalizeItem=function(e){return e!==Object(e)&&(e={id:e,text:e}),null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},r.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},r})),n.define("select2/data/array",["./select","../utils","jquery"],(function(e,t,n){function r(e,t){this._dataToConvert=t.get("data")||[],r.__super__.constructor.call(this,e,t)}return t.Extend(r,e),r.prototype.bind=function(e,t){r.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(e){var t=this.$element.find("option").filter((function(t,n){return n.value==e.id.toString()}));0===t.length&&(t=this.option(e),this.addOptions(t)),r.__super__.select.call(this,e)},r.prototype.convertToOptions=function(e){var r=this,a=this.$element.find("option"),i=a.map((function(){return r.item(n(this)).id})).get(),o=[];function s(e){return function(){return n(this).val()==e.id}}for(var c=0;c<e.length;c++){var l=this._normalizeItem(e[c]);if(0<=n.inArray(l.id,i)){var u=a.filter(s(l)),d=this.item(u),h=n.extend(!0,{},l,d),p=this.option(h);u.replaceWith(p)}else{var f=this.option(l);if(l.children){var m=this.convertToOptions(l.children);t.appendMany(f,m)}o.push(f)}}return o},r})),n.define("select2/data/ajax",["./array","../utils","jquery"],(function(e,t,n){function r(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,e,t)}return t.Extend(r,e),r.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,r){var a=n.ajax(e);return a.then(t),a.fail(r),a}};return n.extend({},t,e,!0)},r.prototype.processResults=function(e){return e},r.prototype.query=function(e,t){var r=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var a=n.extend({type:"GET"},this.ajaxOptions);function i(){var i=a.transport(a,(function(a){var i=r.processResults(a,e);r.options.get("debug")&&window.console&&console.error&&(i&&i.results&&n.isArray(i.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(i)}),(function(){"status"in i&&(0===i.status||"0"===i.status)||r.trigger("results:message",{message:"errorLoading"})}));r._request=i}"function"==typeof a.url&&(a.url=a.url.call(this.$element,e)),"function"==typeof a.data&&(a.data=a.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(i,this.ajaxOptions.delay)):i()},r})),n.define("select2/data/tags",["jquery"],(function(e){function t(t,n,r){var a=r.get("tags"),i=r.get("createTag");void 0!==i&&(this.createTag=i);var o=r.get("insertTag");if(void 0!==o&&(this.insertTag=o),t.call(this,n,r),e.isArray(a))for(var s=0;s<a.length;s++){var c=a[s],l=this._normalizeItem(c),u=this.option(l);this.$element.append(u)}}return t.prototype.query=function(e,t,n){var r=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,(function e(a,i){for(var o=a.results,s=0;s<o.length;s++){var c=o[s],l=null!=c.children&&!e({results:c.children},!0);if((c.text||"").toUpperCase()===(t.term||"").toUpperCase()||l)return!i&&(a.data=o,void n(a))}if(i)return!0;var u=r.createTag(t);if(null!=u){var d=r.option(u);d.attr("data-select2-tag",!0),r.addOptions([d]),r.insertTag(o,u)}a.results=o,n(a)})):e.call(this,t,n)},t.prototype.createTag=function(t,n){var r=e.trim(n.term);return""===r?null:{id:r,text:r}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each((function(){this.selected||e(this).remove()}))},t})),n.define("select2/data/tokenizer",["jquery"],(function(e){function t(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,r){var a=this;n.term=n.term||"";
6var i=this.tokenizer(n,this.options,(function(t){var n,r=a._normalizeItem(t);if(!a.$element.find("option").filter((function(){return e(this).val()===r.id})).length){var i=a.option(r);i.attr("data-select2-tag",!0),a._removeOldTags(),a.addOptions([i])}n=r,a.trigger("select",{data:n})}));i.term!==n.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.trigger("focus")),n.term=i.term),t.call(this,n,r)},t.prototype.tokenizer=function(t,n,r,a){for(var i=r.get("tokenSeparators")||[],o=n.term,s=0,c=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==e.inArray(l,i)){var u=o.substr(0,s),d=c(e.extend({},n,{term:u}));null!=d?(a(d),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},t})),n.define("select2/data/minimumInputLength",[],(function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),n.define("select2/data/maximumInputLength",[],(function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),n.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",(function(){r._checkIfMaximumSelected()}))},e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected((function(){e.call(r,t,n)}))},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current((function(e){var r=null!=e?e.length:0;0<n.maximumSelectionLength&&r>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()}))},e})),n.define("select2/dropdown",["jquery","./utils"],(function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),n.define("select2/dropdown/search",["jquery","../utils"],(function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),r=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=r,this.$search=r.find("input"),n.prepend(r),n},n.prototype.bind=function(t,n,r){var a=this,i=n.id+"-results";t.call(this,n,r),this.$search.on("keydown",(function(e){a.trigger("keypress",e),a._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){a.handleSearch(e)})),n.on("open",(function(){a.$search.attr("tabindex",0),a.$search.attr("aria-controls",i),a.$search.trigger("focus"),window.setTimeout((function(){a.$search.trigger("focus")}),0)})),n.on("close",(function(){a.$search.attr("tabindex",-1),a.$search.removeAttr("aria-controls"),a.$search.removeAttr("aria-activedescendant"),a.$search.val(""),a.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||a.$search.trigger("focus")})),n.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(a.showSearch(e)?a.$searchContainer.removeClass("select2-search--hide"):a.$searchContainer.addClass("select2-search--hide"))})),n.on("results:focus",(function(e){e.data._resultId?a.$search.attr("aria-activedescendant",e.data._resultId):a.$search.removeAttr("aria-activedescendant")}))},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n})),n.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;0<=r;r--){var a=t[r];this.placeholder.id===a.id&&n.splice(r,1)}return n},e})),n.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",(function(e){r.lastParams=e,r.loading=!0})),t.on("query:append",(function(e){r.lastParams=e,r.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&t){var n=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=n+50&&this.loadMore()}},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t})),n.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function n(t,n,r){this.$dropdownParent=e(r.get("dropdownParent")||document.body),t.call(this,n,r)}return n.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",(function(){r._showDropdown(),r._attachPositioningHandler(t),r._bindContainerResultHandlers(t)})),t.on("close",(function(){r._hideDropdown(),r._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),r=t.call(this);return n.append(r),this.$dropdownContainer=n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,r){var a=this,i="scroll.
6select2."+r.id,o="resize.select2."+r.id,s="orientationchange.select2."+r.id,c=this.$container.parents().filter(t.hasScroll);c.each((function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),c.on(i,(function(n){var r=t.GetData(this,"select2-scroll-position");e(this).scrollTop(r.y)})),e(window).on(i+" "+o+" "+s,(function(e){a._positionDropdown(),a._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,r){var a="scroll.select2."+r.id,i="resize.select2."+r.id,o="orientationchange.select2."+r.id;this.$container.parents().filter(t.hasScroll).off(a),e(window).off(a+" "+i+" "+o)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),r=this.$dropdown.hasClass("select2-dropdown--below"),a=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var s=this.$dropdown.outerHeight(!1),c=t.scrollTop(),l=t.scrollTop()+t.height(),u=c<i.top-s,d=l>i.bottom+s,h={left:i.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var f={top:0,left:0};(e.contains(document.body,p[0])||p[0].isConnected)&&(f=p.offset()),h.top-=f.top,h.left-=f.left,n||r||(a="below"),d||!u||n?!u&&d&&n&&(a="below"):a="above",("above"==a||n&&"below"!==a)&&(h.top=o.top-f.to
6p-s),null!=a&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+a),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+a)),this.$dropdownContainer.css(h)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),n.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,r=0;r<t.length;r++){var a=t[r];a.children?n+=e(a.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e})),n.define("select2/dropdown/selectOnClose",["../utils"],(function(e){function t(){}return t.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",(function(e){r._handleSelectOnClose(e)}))},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var r=n.originalSelect2Event;if("select"===r._type||"unselect"===r._type)return}var a=this.getHighlightedResults();if(!(a.length<1)){var i=e.GetData(a[0],"data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},t})),n.define("select2/dropdown/closeOnSelect",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",(function(e){r._selectTriggered(e)})),t.on("unselect",(function(e){r._selectTriggered(e)}))},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e})),n.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more resultsâ¦"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searchingâ¦"},removeAllItems:function(){return"Remove all items"}}})),n.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(e,t,n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b,w,S,C,E,x,A,k,T){function L(){this.reset()}return L.prototype.apply=function(u){if(null==(u=e.extend(!0,{},this.defaults,u)).dataAdapter){if(null!=u.ajax?u.dataAdapter=f:null!=u.data?u.dataAdapter=p:u.dataAdapter=h,0<u.minimumInputLength&&(u.dataAdapter=l.Decorate(u.dataAdapter,g)),0<u.maximumInputLength&&(u.dataAdapter=l.Decorate(u.dataAdapter,y)),0<u.maximumSelectionLength&&(u.dataAdapter=l.Decorate(u.dataAdapter,_)),u.tags&&(u.dataAdapter=l.Decorate(u.dataAdapter,m)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=l.Decorate(u.dataAdapter,v)),null!=u.query){var d=t(u.amdBase+"compat/query");u.dataAdapter=l.Decorate(u.dataAdapter,d)}if(null!=u.initSelection){var T=t(u.amdBase+"compat/initSelection");u.dataAdapter=l.Decorate(u.dataAdapter,T)}}if(null==u.resultsAdapter&&(u.resultsAdapter=n,null!=u.ajax&&(u.resultsAdapter=l.Decorate(u.resultsAdapter,C)),null!=u.placeholder&&(u.resultsAdapter=l.Decorate(u.resultsAdapter,S)),u.selectOnClose&&(u.resultsAdapter=l.Decorate(u.resultsAdapter,A))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=b;else{var L=l.Decorate(b,w);u.dropdownAdapter=L}if(0!==u.minimumResultsForSearch&&(u.dropdownAdapter=l.Decorate(u.dropdownAdapter,x)),u.closeOnSelect&&(u.dropdownAdapter=l.Decorate(u.dropdownAdapter,k)),null!=u.dropdownCssClass||null!=u.dropdownCss||null!=u.adaptDropdownCssClass){var I=t(u.amdBase+"compat/dropdownCss");u.dropdownAdapter=l.Decorate(u.dropdownAdapter,I)}u.dropdownAdapter=l.Decorate(u.dropdownAdapter,E)}if(null==u.selectionAdapter){if(u.multiple?u.selectionAdapter=a:u.selectionAdapter=r,
6null!=u.placeholder&&(u.selectionAdapter=l.Decorate(u.selectionAdapter,i)),u.allowClear&&(u.selectionAdapter=l.Decorate(u.selectionAdapter,o)),u.multiple&&(u.selectionAdapter=l.Decorate(u.selectionAdapter,s)),null!=u.containerCssClass||null!=u.containerCss||null!=u.adaptContainerCssClass){var D=t(u.amdBase+"compat/containerCss");u.selectionAdapter=l.Decorate(u.selectionAdapter,D)}u.selectionAdapter=l.Decorate(u.selectionAdapter,c)}u.language=this._resolveLanguage(u.language),u.language.push("en");for(var P=[],O=0;O<u.language.length;O++){var R=u.language[O];-1===P.indexOf(R)&&P.push(R)}return u.language=P,u.translations=this._processTranslations(u.language,u.debug),u},L.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return d[e]||e}))}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:l.escapeMarkup,language:{},matcher:function n(r,a){if(""===e.trim(r.term))return a;if(a.children&&0<a.children.length){for(var i=e.extend(!0,{},a),o=a.children.length-1;0<=o;o--)null==n(r,a.children[o])&&i.children.splice(o,1);return 0<i.children.length?i:n(r,i)}var s=t(a.text).toUpperCase(),c=t(r.term).toUpperCase();return-1<s.indexOf(c)?a:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},L.prototype.applyFromElement=function(e,t){var n=e.language,r=this.defaults.language,a=t.prop("lang"),i=t.closest("[lang]").prop("lang"),o=Array.prototype.concat.call(this._resolveLanguage(a),this._resolveLanguage(n),this._resolveLanguage(r),this._resolveLanguage(i));return e.language=o,e},L.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var n;n=e.isArray(t)?t:[t];for(var r=[],a=0;a<n.length;a++)if(r.push(n[a]),"string"==typeof n[a]&&0<n[a].indexOf("-")){var i=n[a].split("-")[0];r.push(i)}return r},L.prototype._processTranslations=function(t,n){for(var r=new u,a=0;a<t.length;a++){var i=new u,o=t[a];if("string"==typeof o)try{i=u.loadPath(o)}catch(t){try{o=this.defaults.amdLanguageBase+o,i=u.loadPath(o)}catch(t){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else i=e.isPlainObject(o)?new u(o):o;r.extend(i)}return r},L.prototype.set=function(t,n){var r={};r[e.camelCase(t)]=n;var a=l._convertData(r);e.extend(!0,this.defaults,a)},new L})),n.define("select2/options",["require","jquery","./defaults","./utils"],(function(e,t,n,r){function a(t,a){if(this.options=t,null!=a&&this.fromElement(a),null!=a&&(this.options=n.applyFromElement(this.options,a)),this.options=n.apply(this.options),a&&a.is("input")){var i=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,i)}}return a.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),r.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),r.StoreData(e[0],"data",r.GetData(e[0],"select2Tags")),r.StoreData(e[0],"tags",!0)),r.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",r.GetData(e[0],"ajaxUrl")),r.StoreData(e[0],"ajax-Url",r.GetData(e[0],"ajaxUrl")));var a={};function i(e,t){return t.toUpperCase()}for(var o=0;o<e[0].attributes.length;o++){var s=e[0].attributes[o].name,c="data-";if(s.substr(0,c.length)==c){var l=s.substring(c.length),u=r.GetData(e[0],l);a[l.replace(/-([a-z])/g,i)]=u}}t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset&&(a=t.extend(!0,{},e[0].dataset,a));var d=t.extend(!0,{},r.GetData(e[0]),a);for(var h in d=r._convertData(d))-1<t.inArray(h,n)||(t.isPlainObject(this.options[h])?t.extend(this.options[h],d[h]):this.options[h]=d[h]);return this},a.prototype.get=function(e){return this.options[e]},a.prototype.set=function(e,t){this.options[e]=t},a})),n.define("select2/core",["jquery","./options","./utils","./keys"],(function(e,t,n,r){var a=function(e,r){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),r=r||{},this.options=new t(r,e),a.__super__.constructor.call(this);var i=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",i),e.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(e,this.options);var s=this.render();this._placeContainer(s);var c=this.options.get("selectionAdapter");this.selection=new c(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var l=this.options.get("dropdownAdapter");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(e){d.trigger("selection:update",{data:e})})),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(a,n.Observable),a.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},a.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},a.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var a=e.outerWidth(!1);return a<=0?"auto":a+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var i=e.attr("style");if("string"!=typeof i)return null;for(var o=i.split(";"),s=0,c=o.length;s<c;s+=1){var l=o[s].replace(/\s/g,"").match(n);if(null!==l&&1<=l.length)return l[1]}return null},a.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},a.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=t?(this._observer=new t((function(t){e._syncA(),e._syncS(null,t)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},a.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",(function(t,n){e.trigger(t,n)}
6))},a.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",(function(){t.toggleDropdown()})),this.selection.on("focus",(function(e){t.focus(e)})),this.selection.on("*",(function(r,a){-1===e.inArray(r,n)&&t.trigger(r,a)}))},a.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,n){e.trigger(t,n)}))},a.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,n){e.trigger(t,n)}))},a.prototype._registerEvents=function(){var e=this;this.on("open",(function(){e.$container.addClass("select2-container--open")})),this.on("close",(function(){e.$container.removeClass("select2-container--open")})),this.on("enable",(function(){e.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){e.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){e.$container.removeClass("select2-container--focus")})),this.on("query",(function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,(function(n){e.trigger("results:all",{data:n,query:t})}))})),this.on("query:append",(function(t){this.dataAdapter.query(t,(function(n){e.trigger("results:append",{data:n,query:t})}))})),this.on("keypress",(function(t){var n=t.which;e.isOpen()?n===r.ESC||n===r.TAB||n===r.UP&&t.altKey?(e.close(t),t.preventDefault()):n===r.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===r.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===r.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===r.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===r.ENTER||n===r.SPACE||n===r.DOWN&&t.altKey)&&(e.open(),t.preventDefault())}))},a.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},a.prototype._isChangeMutation=function(t,n){var r=!1,a=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(n)if(n.addedNodes&&0<n.addedNodes.length)for(var i=0;i<n.addedNodes.length;i++)n.addedNodes[i].selected&&(r=!0);else n.removedNodes&&0<n.removedNodes.length?r=!0:e.isArray(n)&&e.each(n,(function(e,t){if(a._isChangeMutation(e,t))return!(r=!0)}));else r=!0;return r}},a.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),r=this;n&&this.dataAdapter.current((function(e){r.trigger("selection:update",{data:e})}))},a.prototype.trigger=function(e,t){var n=a.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in r){var i=r[e],o={prevented:!1,name:e,args:t};if(n.call(this,i,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},a.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},a.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},a.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},a.prototype.isEnabled=function(){return!this.isDisabled()},a.prototype.isDisabled=function(){return this.options.get("disabled")},a.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},a.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},a.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},a.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},a.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current((function(t){e=t})),e},a.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,(function(e){return e.toString()}))),this.$element.val(n).trigger("input").trigger("change")},a.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},a.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},a})),n.define("select2/compat/utils",["jquery"],(function(e){return{syncCssClasse
6s:function(t,n,r){var a,i,o=[];(a=e.trim(t.attr("class")))&&e((a=""+a).split(/\s+/)).each((function(){0===this.indexOf("select2-")&&o.push(this)})),(a=e.trim(n.attr("class")))&&e((a=""+a).split(/\s+/)).each((function(){0!==this.indexOf("select2-")&&null!=(i=r(this))&&o.push(i)})),t.attr("class",o.join(" "))}}})),n.define("select2/compat/containerCss",["jquery","./utils"],(function(e,t){function n(e){return null}function r(){}return r.prototype.render=function(r){var a=r.call(this),i=this.options.get("containerCssClass")||"";e.isFunction(i)&&(i=i(this.$element));var o=this.options.get("adaptContainerCssClass");if(o=o||n,-1!==i.indexOf(":all:")){i=i.replace(":all:","");var s=o;o=function(e){var t=s(e);return null!=t?t+" "+e:e}}var c=this.options.get("containerCss")||{};return e.isFunction(c)&&(c=c(this.$element)),t.syncCssClasses(a,this.$element,o),a.css(c),a.addClass(i),a},r})),n.define("select2/compat/dropdownCss",["jquery","./utils"],(function(e,t){function n(e){return null}function r(){}return r.prototype.render=function(r){var a=r.call(this),i=this.options.get("dropdownCssClass")||"";e.isFunction(i)&&(i=i(this.$element));var o=this.options.get("adaptDropdownCssClass");if(o=o||n,-1!==i.indexOf(":all:")){i=i.replace(":all:","");var s=o;o=function(e){var t=s(e);return null!=t?t+" "+e:e}}
6var c=this.options.get("dropdownCss")||{};return e.isFunction(c)&&(c=c(this.$element)),t.syncCssClasses(a,this.$element,o),a.css(c),a.addClass(i),a},r})),n.define("select2/compat/initSelection",["jquery"],(function(e){function t(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,e.call(this,t,n)}return t.prototype.current=function(t,n){var r=this;this._isInitialized?t.call(this,n):this.initSelection.call(null,this.$element,(function(t){r._isInitialized=!0,e.isArray(t)||(t=[t]),n(t)}))},t})),n.define("select2/compat/inputData",["jquery","../utils"],(function(e,t){function n(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,n)}return n.prototype.current=function(t,n){function r(t,n){var a=[];return t.selected||-1!==e.inArray(t.id,n)?(t.selected=!0,a.push(t)):t.selected=!1,t.children&&a.push.apply(a,r(t.children,n)),a}for(var a=[],i=0;i<this._currentData.length;i++){var o=this._currentData[i];a.push.apply(a,r(o,this.$element.val().split(this._valueSeparator)))}n(a)},n.prototype.select=function(t,n){if(this.options.get("multiple")){var r=this.$element.val();r+=this._valueSeparator+n.id,this.$element.val(r),this.$element.trigger("input").trigger("change")}else this.current((function(t){e.map(t,(function(e){e.selected=!1}))})),this.$element.val(n.id),this.$element.trigger("input").trigger("change")},n.prototype.unselect=function(e,t){var n=this;t.selected=!1,this.current((function(e){for(var r=[],a=0;a<e.length;a++){var i=e[a];t.id!=i.id&&r.push(i.id)}n.$element.val(r.join(n._valueSeparator)),n.$element.trigger("input").trigger("change")}))},n.prototype.query=function(e,t,n){for(var r=[],a=0;a<this._currentData.length;a++){var i=this._currentData[a],o=this.matches(t,i);null!==o&&r.push(o)}n({results:r})},n.prototype.addOptions=function(n,r){var a=e.map(r,(function(e){return t.GetData(e[0],"data")}));this._currentData.push.apply(this._currentData,a)},n})),n.define("select2/compat/matcher",["jquery"],(function(e){return function(t){return function(n,r){var a=e.extend(!0,{},r);if(null==n.term||""===e.trim(n.term))return a;if(r.children){for(var i=r.children.length-1;0<=i;i--){var o=r.children[i];t(n.term,o.text,o)||a.children.splice(i,1)}if(0<a.children.length)return a}return t(n.term,r.text,r)?a:null}}})),n.define("select2/compat/query",[],(function(){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.callback=n,this.options.get("query").call(null,t)},e})),n.define("select2/dropdown/attachContainer",[],(function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t.addClass("select2-dropdown--below"),n.addClass("select2-container--below")},e})),n.define("select2/dropdown/stopPropagation",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(e){e.stopPropagation()}))},e})),n.define("select2/selection/stopPropagation",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(e){e.stopPropagation()}))},e})),_=function(e){var t,n,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(e.event.fixHooks)for(var o=r.length;o;)e.event.fixHooks[r[--o]]=e.event.mouseHooks;var s=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=a.length;t;)this.addEventListener(a[--t],c,!1);else this.onmousewheel=c;e.data(this,"mousewheel-line-height",s.getLineHeight(this)),e.data(this,"mousewheel-page-height",s.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=a.length;t;)this.removeEventListener(a[--t],c,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),r=n["offsetParent"in e.fn?"offsetParent":"parent"]();return r.length||(r=e("body")),parseInt(r.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};
6function c(r){var a,o=r||window.event,c=i.call(arguments,1),d=0,h=0,p=0,f=0,m=0;if((r=e.event.fix(o)).type="mousewheel","detail"in o&&(p=-1*o.detail),"wheelDelta"in o&&(p=o.wheelDelta),"wheelDeltaY"in o&&(p=o.wheelDeltaY),"wheelDeltaX"in o&&(h=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(h=-1*p,p=0),d=0===p?h:p,"deltaY"in o&&(d=p=-1*o.deltaY),"deltaX"in o&&(h=o.deltaX,0===p&&(d=-1*h)),0!==p||0!==h){if(1===o.deltaMode){var v=e.data(this,"mousewheel-line-height");d*=v,p*=v,h*=v}else if(2===o.deltaMode){var g=e.data(this,"mousewheel-page-height");d*=g,p*=g,h*=g}if(a=Math.max(Math.abs(p),Math.abs(h)),(!n||a<n)&&u(o,n=a)&&(n/=40),u(o,a)&&(d/=40,h/=40,p/=40),d=Math[1<=d?"floor":"ceil"](d/n),h=Math[1<=h?"floor":"ceil"](h/n),p=Math[1<=p?"floor":"ceil"](p/n),s.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=r.clientX-y.left,m=r.clientY-y.top}return r.deltaX=h,r.deltaY=p,r.deltaFactor=n,r.offsetX=f,r.offsetY=m,r.deltaMode=0,c.unshift(r,d,h,p),t&&clearTimeout(t),t=setTimeout(l,200),(e.event.dispatch||e.event.handle).apply(this,c)}}function l(){n=null}function u(e,t){return s.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof n.define&&n.define.amd?n.define("jquery-mousewheel",["jquery"],_):e.exports=_,n.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(e,t,n,r,a){if(null==e.fn.select2){var i=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var r=e.extend(!0,{},t);new n(e(this),r)})),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var r,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var e=a.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),r=e[t].apply(e,o)})),-1<e.inArray(t,i)?this:r}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=r),n})),{define:n.define,require:n.require}}(),r=n.require("jquery.select2");return t.fn.select2.amd=n,r},void 0===(i="function"==typeof r?r.apply(t,a):r)||(e.exports=i)},72719:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;var r=n(19724),a=n(17214),i=n(65212);t.catchError=function e(t){return i.operate((function(n,i){var o,s=null,c=!1;s=n.subscribe(a.createOperatorSubscriber(i,void 0,void 0,(function(a){o=r.innerFrom(t(a,e(t)(n))),s?(s.unsubscribe(),s=null,o.subscribe(i)):c=!0}))),c&&(s.unsubscribe(),s=null,o.subscribe(i))}))}},72885:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;var r=n(39546),a=n(54383),i=n(2959),o=n(13337),s=n(67478),c=n(19724);t.delayWhen=function e(t,n){return n?function(o){return r.concat(n.pipe(a.take(1),i.ignoreElements()),o.pipe(e(t)))}:s.mergeMap((function(e,n){return c.innerFrom(t(e,n)).pipe(a.take(1),o.mapTo(e))}))}},73484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var r=n(92070),a=n(65212),i=function(e,t){return e.push(t),e};t.toArray=function(){return a.operate((function(e,t){r.reduce(i,[])(e).subscribe(t)}))}},73738:function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},73893:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:function(){return r}})},73929:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;var r=n(65212),a=n(17214),i=n(19724);t.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),r.operate((function(n,r){var o={buffer:[],complete:!1},s={buffer:[],complete:!1},c=function(e){r.next(e),r.complete()},l=function(e,n){var i=a.createOperatorSubscriber(r,(function(r){var a=n.buffer,i=n.complete;0===a.length?i?c(!1):e.buffer.push(r):!t(r,a.shift())&&c(!1)}),(function(){e.complete=!0;var t=n.complete,r=n.buffer;t&&c(0===r.length),null==i||i.unsubscribe()}));return i};n.subscribe(l(o,s)),i.innerFrom(e).subscribe(l(s,o))}))}},73956:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;var r=n(19724),a=n(76808),i=n(65212),o=n(17214);t.retryWhen=function(e){return i.operate((function(t,n){var i,s,c=!1,l=function(){i=t.subscribe(o.createOperatorSubscriber(n,void 0,void 0,(function(t){s||(s=new a.Subject,r.innerFrom(e(s)).subscribe(o.createOperatorSubscriber(n,(function(){return i?l():c=!0})))),s&&s.next(t)}))),c&&(i.unsubscribe(),i=null,c=!1,l())};l()}))}},74385:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0;var r=n(48051),a=n(44885);t.range=function(e,t,n){if(null==t&&(t=e,e=0),t<=0)return a.EMPTY;var i=t+e;return new r.Observable(n?function(t){var r=e;return n.schedule((function(){r<i?(t.next(r++),this.schedule()):t.complete()}))}:function(t){for(var n=e;n<i&&!t.closed;)t.next(n++);t.complete()})}},74478: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameScheduler=void 0;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.flush=function(e){var t;this._active=!0,e?t=e.id:(t=this._scheduled,this._scheduled=void 0);var n,r=this.actions;e=e||r.shift();do{if(n=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,n){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw n}},t}(n(19533).AsyncScheduler);t.AnimationFrameScheduler=i},74613:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=void 0;var r=n(67478);t.flatMap=r.mergeMap},74692:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,a){"use strict";var i=[],o=Object.getPrototypeOf,s=i.slice,c=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},l=i.push,u=i.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,m=f.call(Object),v={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},_=r.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,a,i=(n=n||_).createElement("script");if(i.text=e,t)for(r in b)(a=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,a);n.head.appendChild(i).parentNode.removeChild(i)}function S(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var C="3.7.1",E=/HTML$/i,x=function(e,t){return new x.fn.init(e,t)};function A(e){var t=!!e&&"length"in e&&e.length,n=S(e);return!g(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}x.fn=x.prototype={jquery:C,constructor:x,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:i.sort,splice:i.splice},x.extend=x.fn.extend=function(){var e,t,n,r,a,i,o=arguments[0]||{},s=1,c=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[s]||{},s++),"object"==typeof o||g(o)||(o={}),s===c&&(o=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&o!==r&&(l&&r&&(x.isPlainObject(r)||(a=Array.isArray(r)))?(n=o[t],i=a&&!Array.isArray(n)?[]:a||x.isPlainObject(n)?n:{},a=!1,o[t]=x.extend(l,i,r)):void 0!==r&&(o[t]=r));return o},x.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;
vendor: 5,326 bytes, line 6
6return!(!e||"[object Object]"!==h.call(e))&&(!(t=o(e))||"function"==typeof(n=p.call(t,"constructor")&&t.constructor)&&f.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(A(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,a=e.nodeType;if(!a)for(;t=e[r++];)n+=x.text(t);return 1===a||11===a?e.textContent:9===a?e.documentElement.textContent:3===a||4===a?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(A(Object(e))?x.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!E.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,a=e.length;r<n;r++)e[a++]=t[r];return e.length=a,e},grep:function(e,t,n){for(var r=[],a=0,i=e.length,o=!n;a<i;a++)!t(e[a],a)!==o&&r.push(e[a]);return r},map:function(e,t,n){var r,a,i=0,o=[];if(A(e))for(r=e.length;i<r;i++)null!=(a=t(e[i],i,n))&&o.push(a);else for(i in e)null!=(a=t(e[i],i,n))&&o.push(a);return c(o)},guid:1,support:v}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=i[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var T=i.pop,L=i.sort,I=i.splice,D="[\\x20\\t\\r\\n\\f]",P=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");x.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var O=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function R(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}x.escapeSelector=function(e){return(e+"").replace(O,R)};var M=_,q=l;!function(){var e,t,n,a,o,c,l,d,h,f,m=q,g=x.expando,y=0,_=0,b=ee(),w=ee(),S=ee(),C=ee(),E=function(e,t){return e===t&&(o=!0),0},A="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+D+"*("+O+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+D+"*\\]",N=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",V=new RegExp(D+"+","g"),F=new RegExp("^"+D+"*,"+D+"*"),B=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),j=new RegExp(D+"|>"),H=new RegExp(N),G=new RegExp("^"+O+"$"),U={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+A+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,z=/^h\d$/i,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,Z=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),K=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},X=function(){ce()},J=he((function(e){return!0===e.disabled&&k(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(i=s.call(M.childNodes),M.childNodes),i[M.childNodes.length].nodeType}catch(e){m={apply:function(e,t){q.apply(e,s.call(t))},call:function(e){q.apply(e,s.call(arguments,1))}}}function Q(e,t,n,r){var a,i,o,s,l,u,p,f=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!r&&(ce(t),t=t||c,d)){if(11!==y&&(l=$.exec(e)))if(a=l[1]){if(9===y){if(!(o=t.getElementById(a)))return n;if(o.id===a)return m.call(n,o),n}else if(f&&(o=f.getElementById(a))&&Q.contains(t,o)&&o.id===a)return m.call(n,o),n}else{if(l[2])return m.apply(n,t.getElementsByTagName(e)),n;if((a=l[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(a)),n}if(!(C[e+" "]||h&&h.test(e))){if(p=e,f=t,1===y&&(j.test(e)||B.test(e))){for((f=Y.test(e)&&se(t.parentNode)||t)==t&&v.scope||((s=t.getAttribute("id"))?s=x.escapeSelector(s):t.setAttribute("id",s=g)),i=(u=ue(e)).length;i--;)u[i]=(s?"#"+s:":scope")+" "+de(u[i]);p=u.join(",")}try{return m.apply(n,f.querySelectorAll(p)),n}catch(t){C(e,!0)}finally{s===g&&t.removeAttribute("id")}}}return ye(e.replace(P,"$1"),t,n,r)}function ee(){var e=[];return function n(r,a){return e.push(r+" ")>t.cacheLength&&delete n[e.shift()],n[r+" "]=a}}function te(e){return e[g]=!0,e}function ne(e){var t=c.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return k(t,"input")&&t.type===e}}function ae(e){return function(t){return(k(t,"input")||k(t,"button"))&&t.type===e}}function ie(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&J(t)===e
vendor: 18,826 bytes, line 6
6:t.disabled===e:"label"in t&&t.disabled===e}}function oe(e){return te((function(t){return t=+t,te((function(n,r){for(var a,i=e([],n.length,t),o=i.length;o--;)n[a=i[o]]&&(n[a]=!(r[a]=n[a]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function ce(e){var n,r=e?e.ownerDocument||e:M;return r!=c&&9===r.nodeType&&r.documentElement?(l=(c=r).documentElement,d=!x.isXMLDoc(c),f=l.matches||l.webkitMatchesSelector||l.msMatchesSelector,l.msMatchesSelector&&M!=c&&(n=c.defaultView)&&n.top!==n&&n.addEventListener("unload",X),v.getById=ne((function(e){return l.appendChild(e).id=x.expando,!c.getElementsByName||!c.getElementsByName(x.expando).length})),v.disconnectedMatch=ne((function(e){return f.call(e,"*")})),v.scope=ne((function(){return c.querySelectorAll(":scope")})),v.cssHas=ne((function(){try{return c.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),v.getById?(t.filter.ID=function(e){var t=e.replace(Z,K);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(Z,K);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,r,a,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(a=t.getElementsByName(e),r=0;i=a[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},h=[],ne((function(e){var t;l.appendChild(e).innerHTML="<a id='"+g+"' href='' disabled='disabled'></a><select id='"+g+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+D+"*(?:value|"+A+")"),e.querySelectorAll("[id~="+g+"-]").length||h.push("~="),e.querySelectorAll("a#"+g+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=c.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),l.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=c.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),v.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),E=function(e,t){if(e===t)return o=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!v.sortDetached&&t.compareDocumentPosition(e)===n?e===c||e.ownerDocument==M&&Q.contains(M,e)?-1:t===c||t.ownerDocument==M&&Q.contains(M,t)?1:a?u.call(a,e)-u.call(a,t):0:4&n?-1:1)},c):c}for(e in Q.matches=function(e,t){return Q(e,null,null,t)},Q.matchesSelector=function(e,t){if(ce(e),d&&!C[t+" "]&&(!h||!h.test(t)))try{var n=f.call(e,t);if(n||v.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){C(t,!0)}return Q(t,c,null,[e]).length>0},Q.contains=function(e,t){return(e.ownerDocument||e)!=c&&ce(e),x.contains(e,t)},Q.attr=function(e,n){(e.ownerDocument||e)!=c&&ce(e);var r=t.attrHandle[n.toLowerCase()],a=r&&p.call(t.attrHandle,n.toLowerCase())?r(e,n,!d):void 0;return void 0!==a?a:e.getAttribute(n)},Q.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],r=0,i=0;if(o=!v.sortStable,a=!v.sortStable&&s.call(e,0),L.call(e,E),o){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)I.call(e,n[r],1)}return a=null,e},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(s.apply(this)))},t=x.expr={cacheLength:50,createPseudo:te,match:U,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,K),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,K),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Q.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Q.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return U.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&H.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,K).toLowerCase();return"*"===e?function(){return!0}:function(e){return k(e,t)}},CLASS:function(e){var t=b[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&b(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var a=Q.attr(r,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(V," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,a){var i="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===a?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,h,p,f=i!==o?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),_=!c&&!s,b=!1;if(m){if(i){for(;f;){for(d=t;d=d[f];)if(s?k(d,v):1===d.nodeType)return!1;p=f="only"===e&&!p&&"nextSibling"}return!0}if(p=[o?m.firstChild:m.lastChild],o&&_){for(b=(h=(l=(u=m[g]||(m[g]={}))[e]||[])[0]===y&&l[1])&&l[2],d=h&&m.childNodes[h];d=++h&&d&&d[f]||(b=h=0)||p.pop();)if(1===d.nodeType&&++b&&d===t){u[e]=[y,h,b];break}}else if(_&&(b=h=(l=(u=t[g]||(t[g]={}))[e]||[])[0]===y&&l[1]),!1===b)for(;(d=++h&&d&&d[f]||(b=h=0)||p.pop())&&(!(s?k(d,v):1===d.nodeType)||!++b||(_&&((u=d[g]||(d[g]={}))[e]=[y,b]),d!==t)););return(b-=a)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,n){var r,a=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Q.error("unsupported pseudo: "+e);return a[g]?a(n):a.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var r,i=a(e,n),o=i.length;o--;)e[r=u.call(e,i[o])]=!(t[r]=i[o])})):function(e){return a(e,0,r)}):a}},pseudos:{not:te((function(e){var t=[],n=[],r=ge(e.replace(P,"$1"));return r[g]?te((function(e,t,n,a){for(var i,o=r(e,null,a,[]),s=e.length;s--;)(i=o[s])&&(e[s]=!(t[s]=i))})):function(e,a,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Q(e,t).length>0}})),contains:te((function(e){return e=e.replace(Z,K),function(t){return(t.textContent||x.text(t)).indexOf(e)>-1}})),lang:te((function(e){return G.test(e||"")||Q.error("unsupported lang: "+e),e=e.replace(Z,K).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===l},focus:function(e){return e===function(){try{return c.activeElement}catch(e){}}()&&c.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ie(!1),disabled:ie(!0),checked:function(e){return k(e,"input")&&!!e.checked||k(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return z.test(e.nodeName)},input:function(e){return W.test(e.nodeName)},button:function(e){return k(e,"input")&&"button"===e.type||k(e,"button")},text:function(e){var t;return k(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:oe((function(){return[0]})),last:oe((function(e,t){return[t-1]})),eq:oe((function(e,t,n){return[n<0?n+t:n]})),even:oe((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:oe((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:oe((function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:oe((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ae(e);function le(){}function ue(e,n){var r,a,i,o,s,c,l,u=w[e+" "];if(u)return n?0:u.slice(0);for(s=e,c=[],l=t.preFilter;s;){for(o in r&&!(a=F.exec(s))||(a&&(s=s.slice(a[0].length)||s),c.push(i=[])),r=!1,(a=B.exec(s))&&(r=a.shift(),i.push({value:r,type:a[0].replace(P," ")}),s=s.slice(r.length)),t.filter)!(a=U[o].exec(s))||l[o]&&!(a=l[o](a))||(r=a.shift(),i.push({value:r,type:o,matches:a}),s=s.slice(r.length));if(!r)break}return n?s.length:s?Q.error(e):w(e,c).slice(0)}function de(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function he(e,t,n){var r=t.dir,a=t.next,i=a||r,o=n&&"parentNode"===i,s=_++;return t.first?function(t,n,a){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,a);return!1}:function(t,n,c){var l,u,d=[y,s];if(c){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(u=t[g]||(t[g]={}),a&&k(t,a))t=t[r]||t;else{if((l=u[i])&&l[0]===y&&l[1]===s)return d[2]=l[2];if(u[i]=d,d[2]=e(t,n,c))return!0}return!1}}function pe(e){return e.length>1?function(t,n,r){for(var a=e.length;a--;)if(!e[a](t,n,r))return!1;return!0}:e[0]}function fe(e,t,n,r,a){for(var i,o=[],s=0,c=e.length,l=null!=t;s<c;s++)(i=e[s])&&(n&&!n(i,r,a)||(o.push(i),l&&t.push(s)));return o}function me(e,t,n,r,a,i){return r&&!r[g]&&(r=me(r)),a&&!a[g]&&(a=me(a,i)),te((function(i,o,s,c){var l,d,h,p,f=[],v=[],g=o.length,y=i||function(e,t,n){for(var r=0,a=t.length;r<a;r++)Q(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),_=!e||!i&&t?y:fe(y,f,e,s,c);if(n?n(_,p=a||(i?e:g||r)?[]:o,s,c):p=_,r)for(l=fe(p,v),r(l,[],s,c),d=l.length;d--;)(h=l[d])&&(p[v[d]]=!(_[v[d]]=h));if(i){if(a||e){if(a){for(l=[],d=p.length;d--;)(h=p[d])&&l.push(_[d]=h);a(null,p=[],l,c)}for(d=p.length;d--;)(h=p[d])&&(l=a?u.call(i,h):f[d])>-1&&(i[l]=!(o[l]=h))}}else p=fe(p===o?p.splice(g,p.length):p),a?a(null,o,p,c):m.apply(o,p)}))}function ve(e){for(var r,a,i,o=e.length,s=t.relative[e[0].type],c=s||t.relative[" "],l=s?1:0,d=he((function(e){return e===r}),c,!0),h=he((function(e){return u.call(r,e)>-1}),c,!0),p=[function(e,t,a){var i=!s&&(a||t!=n)||((r=t).nodeType?d(e,t,a):h(e,t,a));return r=null,i}];l<o;l++)if(a=t.relative[e[l].type])p=[he(pe(p),a)];else{if((a=t.filter[e[l].type].apply(null,e[l].matches))[g]){for(i=++l;i<o&&!t.relative[e[i].type];i++);return me(l>1&&pe(p),l>1&&de(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(P,"$1"),a,l<i&&ve(e.slice(l,i)),i<o&&ve(e=e.slice(i)),i<o&&de(e))}p.push(a)}return pe(p)}function ge(e,r){var a,i=[],o=[],s=S[e+" "];if(!s){for(r||(r=ue(e)),a=r.length;a--;)(s=ve(r[a]))[g]?i.push(s):o.push(s);s=S(e,function(e,r){var a=r.length>0,i=e.length>0,o=function(o,s,l,u,h){var p,f,v,g=0,_="0",b=o&&[],w=[],S=n,C=o||i&&t.find.TAG("*",h),E=y+=null==S?1:Math.random()||.1,A=C.length;for(h&&(n=s==c||s||h);_!==A&&null!=(p=C[_]);_++){if(i&&p){for(f=0,s||p.ownerDocument==c||(ce(p),l=!d);v=e[f++];)if(v(p,s||c,l)){m.call(u,p);break}h&&(y=E)}a&&((p=!v&&p)&&g--,o&&b.push(p))}if(g+=_,a&&_!==g){for(f=0;v=r[f++];)v(b,w,s,l);if(o){if(g>0)for(;_--;)b[_]||w[_]||(w[_]=T.call(u));w=fe(w)}m.apply(u,w),h&&!o&&w.length>0&&g+r.length>1&&x.uniqueSort(u)}return h&&(y=E,n=S),b};return a?te(o):o}(o,i)),s.selector=e}return s}function ye(e,n,r,a){var i,o,s,c,l,u="function"==typeof e&&e,h=!a&&ue(e=u.selector||e);if(r=r||[],1===h.length){if((o=h[0]=h[0].slice(0)).length>2&&"ID"===(s=o[0]).type&&9===n.nodeType&&d&&t.relative[o[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(Z,K),n)||[])[0]))return r;u&&(n=n.parentNode),e=e.slice(o.shift().value.length)}for(i=U.needsContext.test(e)?0:o.length;i--&&(s=o[i],!t.relative[c=s.type]);)if((l=t.find[c])&&(a=l(s.matches[0].replace(Z,K),Y.test(o[0].type)&&se(n.parentNode)||n))){if(o.splice(i,1),!(e=a.length&&de(o)))return m.apply(r,a),r;break}}return(u||ge(e,h))(a,n,!d,r,!n||Y.test(e)&&se(n.parentNode)||n),r}le.prototype=t.filters=t.pseudos,t.setFilters=new le,v.sortStable=g.split("").sort(E).join("")===g,ce(),v.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(c.createElement("fieldset"))})),x.find=Q,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,Q.compile=ge,Q.select=ye,Q.setDocument=ce,Q.tokenize=ue,Q.escape=x.escapeSelector,Q.getText=x.text,Q.isXML=x.isXMLDoc,Q.selectors=x.expr,Q.support=x.support,Q.uniqueSort=x.uniqueSort}();var N=function(e,t,n){for(var r=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&x(e).is(n))break;r.push(e)}return r},V=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},F=x.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return g(t)?x.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?x.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?x.grep(e,(function(e){return u.call(t,e)>-1!==n})):x.filter(t,e,n)}x.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,n,r=this.length,a=this;if("string"!=typeof e)return this.pushStack(x(e).filter((function(){for(t=0;t<r;t++)if(x.contains(a[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)x.find(e,a[t],n);return r>1?x.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&F.test(e)?x(e):e||[],!1).length}});var H,G=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var r,a;if(!e)return this;if(n=n||H,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:G.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:_,!0)),B.test(r[1])&&x.isPlainObject(t))for(r in t)g(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(a=_.getElementById(r[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,H=x(_);var U=/^(?:parents|prev(?:Until|All))/,W={children:!0,contents:!0,next:!0,prev:!0};function z(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,a=this.length,i=[],o="string"!=typeof e&&x(e);if(!F.test(e))for(;r<a;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?x.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?u.call(x(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return N(e,"parentNode")},parentsUntil:function(e,t,n){return N(e,"parentNode",n)},next:function(e){return z(e,"nextSibling")},prev:function(e){return z(e,"previousSibling")},nextAll:function(e){return N(e,"nextSibling")},prevAll:function(e){return N(e,"previousSibling")},nextUntil:function(e,t,n){return N(e,"nextSibling",n)},prevUntil:function(e,t,n){return N(e,"previousSibling",n)},siblings:function(e){return V((e.parentNode||{}).firstChild,e)},children:function(e){return V(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(k(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(n,r){var a=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(a=x.filter(r,a)),this.length>1&&(W[e]||x.uniqueSort(a),U.test(e)&&a.reverse()),this.pushStack(a)}}));var $=/[^\x20\t\r\n\f]+/g;function Y(e){return e}function Z(e){throw e}function K(e,t,n,r){var a;try{e&&g(a=e.promise)?a.call(e).done(t).fail(n):e&&g(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}x.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return x.each(e.match($)||[],(function(e,n){t[n]=!0})),t}(e):x.extend({},e);var t,n,r,a,i=[],o=[],s=-1,c=function(){for(a=a||e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,a&&(i=n?[]:"")},l={add:function(){return i&&(n&&!t&&(s=i.length-1,o.push(n)),function t(n){x.each(n,(function(n,r){g(r)?e.unique&&l.has(r)||i.push(r):r&&r.length&&"string"!==S(r)&&t(r)}))}(arguments),n&&!t&&c()),this},remove:function(){return x.each(arguments,(function(e,t){for(var n;(n=x.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--})),this},has:function(e){return e?x.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return a=o=[],i=n="",this},disabled:function(){return!i},lock:function(){return a=o=[],n||t||(i=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},x.extend({Deferred:function(e){var t=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],n="pending",a={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return x.Deferred((function(n){x.each(t,(function(t,r){var a=g(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=a&&a.apply(this,arguments);e&&g(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,a){var i=0;function o(e,t,n,a){return function(){var s=this,c=arguments,l=function(){var r,l;if(!(e<i)){if((r=n.apply(s,c))===t.promise())throw new TypeError("Thenable self
6-resolution");l=r&&("object"==typeof r||"function"==typeof r)&&r.then,g(l)?a?l.call(r,o(i,t,Y,a),o(i,t,Z,a)):(i++,l.call(r,o(i,t,Y,a),o(i,t,Z,a),o(i,t,Y,t.notifyWith))):(n!==Y&&(s=void 0,c=[r]),(a||t.resolveWith)(s,c))}},u=a?l:function(){try{l()}catch(r){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(r,u.error),e+1>=i&&(n!==Z&&(s=void 0,c=[r]),t.rejectWith(s,c))}};e?u():(x.Deferred.getErrorHook?u.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(u.error=x.Deferred.getStackHook()),r.setTimeout(u))}}return x.Deferred((function(r){t[0][3].add(o(0,r,g(a)?a:Y,r.notifyWith)),t[1][3].add(o(0,r,g(e)?e:Y)),t[2][3].add(o(0,r,g(n)?n:Z))})).promise()},promise:function(e){return null!=e?x.extend(e,a):a}},i={};return x.each(t,(function(e,r){var o=r[2],s=r[5];a[r[1]]=o.add,s&&o.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(r[3].fire),i[r[0]]=function(){return i[r[0]+"With"](this===i?void 0:this,arguments),this},i[r[0]+"With"]=o.fireWith})),a.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),a=s.call(arguments),i=x.Deferred(),o=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?s.call(arguments):n,--t||i.resolveWith(r,a)}};if(t<=1&&(K(e,i.done(o(n)).resolve,i.reject,!t),"pending"===i.state()||g(a[n]&&a[n].then)))return i.then();for(;n--;)K(a[n],o(n),i.reject);return i.promise()}});var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&X.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},x.readyException=function(e){r.setTimeout((function(){throw e}))};var J=x.Deferred();function Q(){_.removeEventListener("DOMContentLoaded",Q),r.removeEventListener("load",Q),x.ready()}x.fn.ready=function(e){return J.then(e).catch((function(e){x.readyException(e)})),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||J.resolveWith(_,[x]))}}),x.ready.then=J.then,"complete"===_.readyState||"loading"!==_.readyState&&!_.documentElement.doScroll?r.setTimeout(x.ready):(_.addEventListener("DOMContentLoaded",Q),r.addEventListener("load",Q));var ee=function(e,t,n,r,a,i,o){var s=0,c=e.length,l=null==n;if("object"===S(n))for(s in a=!0,n)ee(e,t,s,n[s],!0,i,o);else if(void 0!==r&&(a=!0,g(r)||(o=!0),l&&(o?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(x(e),n)})),t))for(;s<c;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return a?e:l?t.call(e):c?t(e[0],n):i},te=/^-ms-/,ne=/-([a-z])/g;function re(e,t){return t.toUpperCase()}function ae(e){return e.replace(te,"ms-").replace(ne,re)}var ie=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function oe(){this.expando=x.expando+oe.uid++}oe.uid=1,oe.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ie(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,a=this.cache(e);if("string"==typeof t)a[ae(t)]=n;else for(r in t)a[ae(r)]=t[r];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ae(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(ae):(t=ae(t))in r?[t]:t.match($)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||x.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var se=new oe,ce=new oe,le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:le.test(e)?JSON.parse(e):e)}(n)}catch(e){}ce.set(e,t,n)}else n=void 0;return n}x.extend({hasData:function(e){return ce.hasData(e)||se.hasData(e)},data:function(e,t,n){return ce.access(e,t,n)},removeData:function(e,t){ce.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,r,a,i=this[0],o=i&&i.attributes;if(void 0===e){if(this.length&&(a=ce.get(i),1===i.nodeType&&!se.get(i,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=ae(r.slice(5)),de(i,r,a[r]));se.set(i,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each((function(){ce.set(this,e)})):ee(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=ce.get(i,e))||void 0!==(n=de(i,e))?n:void 0;this.each((function(){ce.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){ce.remove(this,e)}))}}),x.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=se.get(e,t),n&&(!r||Array.isArray(n)?r=se.access(e,t,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,a=n.shift(),i=x._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),r--),a&&("fx"===t&&n.unshift("inprogress"),delete i.stop,a.call(e,(function(){x.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:x.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",n])}))})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each((function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){x.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,a=x.Deferred(),i=this,o=this.length,s=function(){--r||a.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=se.get(i[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),a.promise(t)}});var he=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pe=new RegExp("^(?:([+-])=|)("+he+")([a-z%]*)$","i"),fe=["Top","Right","Bottom","Left"],me=_.documentElement,ve=function(e){return x.contains(e.ownerDocument,e)},ge={composed:!0};me.getRootNode&&(ve=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(ge)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ve(e)&&"none"===x.css(e,"display")};function _e(e,t,n,r){var a,i,o=20,s=r?function(){return r.cur()}:function(){return x.css(e,t,"")},c=s(),l=n&&n[3]||(x.cssNumber[t]?"":"px"),u=e.nodeType&&(x.cssNumber[t]||"px"!==l&&+c)&&pe.exec(x.css(e,t));
vendor: 16,202 bytes, line 6
6if(u&&u[3]!==l){for(c/=2,l=l||u[3],u=+c||1;o--;)x.style(e,t,u+l),(1-i)*(1-(i=s()/c||.5))<=0&&(o=0),u/=i;u*=2,x.style(e,t,u+l),n=n||[]}return n&&(u=+u||+c||0,a=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=a)),a}var be={};function we(e){var t,n=e.ownerDocument,r=e.nodeName,a=be[r];return a||(t=n.body.appendChild(n.createElement(r)),a=x.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),be[r]=a,a)}function Se(e,t){for(var n,r,a=[],i=0,o=e.length;i<o;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(a[i]=se.get(r,"display")||null,a[i]||(r.style.display="")),""===r.style.display&&ye(r)&&(a[i]=we(r))):"none"!==n&&(a[i]="none",se.set(r,"display",n)));for(i=0;i<o;i++)null!=a[i]&&(e[i].style.display=a[i]);return e}x.fn.extend({show:function(){return Se(this,!0)},hide:function(){return Se(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?x(this).show():x(this).hide()}))}});var Ce,Ee,xe=/^(?:checkbox|radio)$/i,Ae=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ke=/^$|^module$|\/(?:java|ecma)script/i;Ce=_.createDocumentFragment().appendChild(_.createElement("div")),(Ee=_.createElement("input")).setAttribute("type","radio"),Ee.setAttribute("checked","checked"),Ee.setAttribute("name","t"),Ce.appendChild(Ee),v.checkClone=Ce.cloneNode(!0).cloneNode(!0).lastChild.checked,Ce.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!Ce.cloneNode(!0).lastChild.defaultValue,Ce.innerHTML="<option></option>",v.option=!!Ce.lastChild;var Te={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Le(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?x.merge([e],n):n}function Ie(e,t){for(var n=0,r=e.length;n<r;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Te.tbody=Te.tfoot=Te.colgroup=Te.caption=Te.thead,Te.th=Te.td,v.option||(Te.optgroup=Te.option=[1,"<select multiple='multiple'>","</select>"]);var De=/<|&#?\w+;/;function Pe(e,t,n,r,a){for(var i,o,s,c,l,u,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((i=e[p])||0===i)if("object"===S(i))x.merge(h,i.nodeType?[i]:i);else if(De.test(i)){for(o=o||d.appendChild(t.createElement("div")),s=(Ae.exec(i)||["",""])[1].toLowerCase(),c=Te[s]||Te._default,o.innerHTML=c[1]+x.htmlPrefilter(i)+c[2],u=c[0];u--;)o=o.lastChild;x.merge(h,o.childNodes),(o=d.firstChild).textContent=""}else h.push(t.createTextNode(i));for(d.textContent="",p=0;i=h[p++];)if(r&&x.inArray(i,r)>-1)a&&a.push(i);else if(l=ve(i),o=Le(d.appendChild(i),"script"),l&&Ie(o),n)for(u=0;i=o[u++];)ke.test(i.type||"")&&n.push(i);return d}var Oe=/^([^.]*)(?:\.(.+)|)/;function Re(){return!0}function Me(){return!1}function qe(e,t,n,r,a,i){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)qe(e,s,n,r,t[s],i);return e}if(null==r&&null==a?(a=n,r=n=void 0):null==a&&("string"==typeof n?(a=r,r=void 0):(a=r,r=n,n=void 0)),!1===a)a=Me;else if(!a)return e;return 1===i&&(o=a,a=function(e){return x().off(e),o.apply(this,arguments)},a.guid=o.guid||(o.guid=x.guid++)),e.each((function(){x.event.add(this,t,a,r,n)}))}function Ne(e,t,n){n?(se.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var n,r=se.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),se.set(this,t,r),this[t](),n=se.get(this,t),se.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(se.set(this,t,x.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Re)}})):void 0===se.get(e,t)&&x.event.add(e,t,Re)}x.event={global:{},add:function(e,t,n,r,a){var i,o,s,c,l,u,d,h,p,f,m,v=se.get(e);if(ie(e))for(n.handler&&(n=(i=n).handler,a=i.selector),a&&x.find.matchesSelector(me,a),n.guid||(n.guid=x.guid++),(c=v.events)||(c=v.events=Object.create(null)),(o=v.handle)||(o=v.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match($)||[""]).length;l--;)p=m=(s=Oe.exec(t[l])||[])[1],f=(s[2]||"").split(".").sort(),p&&(d=x.event.special[p]||{},p=(a?d.delegateType:d.bindType)||p,d=x.event.special[p]||{},u=x.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:f.join(".")},i),(h=c[p])||((h=c[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,f,o)||e.addEventListener&&e.addEventListener(p,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),a?h.splice(h.delegateCount++,0,u):h.push(u),x.event.global[p]=!0)},remove:function(e,t,n,r,a){var i,o,s,c,l,u,d,h,p,f,m,v=se.hasData(e)&&se.get(e);if(v&&(c=v.events)){for(l=(t=(t||"").match($)||[""]).length;l--;)if(p=m=(s=Oe.exec(t[l])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=x.event.special[p]||{},h=c[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=i=h.length;i--;)u=h[i],!a&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(h.splice(i,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,v.handle)||x.removeEvent(e,p,v.handle),delete c[p])}else for(p in c)x.event.remove(e,p+t[l],n,r,!0);x.isEmptyObject(c)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,r,a,i,o,s=new Array(arguments.length),c=x.event.fix(e),l=(se.get(this,"events")||Object.create(null))[c.type]||[],u=x.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,c)){for(o=x.event.handlers.call(this,c,l),t=0;(a=o[t++])&&!c.isPropagationStopped();)for(c.currentTarget=a.elem,n=0;(i=a.handlers[n++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==i.namespace&&!c.rnamespace.test(i.namespace)||(c.handleObj=i,c.data=i.data,void 0!==(r=((x.event.special[i.origType]||{}).handle||i.handler).apply(a.elem,s))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,a,i,o,s=[],c=t.delegateCount,l=e.target;if(c&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(i=[],o={},n=0;n<c;n++)void 0===o[a=(r=t[n]).selector+" "]&&(o[a]=r.needsContext?x(a,this).index(l)>-1:x.find(a,this,null,[l]).length),o[a]&&i.push(r);i.length&&s.push({elem:l,handlers:i})}return l=this,c<t.length&&s.push({elem:l,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return xe.test(t.type)&&t.click&&k(t,"input")&&Ne(t,"click",!0),!1},trigger:function(e){var t=this||e;return xe.test(t.type)&&t.click&&k(t,"input")&&Ne(t,"click"),!0},_default:function(e){var t=e.target;return xe.test(t.type)&&t.click&&k(t,"input")&&se.get(t,"click")||k(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Re:Me,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Re,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Re,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Re,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(_.documentMode){var n=se.get(this,"handle"),r=x.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else x.event.simulate(t,e.target,x.event.fix(e))}x.event.special[e]={setup:function(){var r;if(Ne(this,e,!0),!_.documentMode)return!1;(r=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(r||0)+1)},trigger:function(){return Ne(this,e),!0},teardown:function(){var e;if(!_.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},x.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,a=_.documentMode?this:r,i=se.get(a,t);i||(_.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),se.set(a,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,a=_.documentMode?this:r,i=se.get(a,t)-1;i?se.set(a,t,i):(_.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),se.remove(a,t))}}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,a=e.handleObj;return r&&(r===this||x.contains(this,r))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),x.fn.extend({on:function(e,t,n,r){return qe(this,e,t,n,r)},one:function(e,t,n,r){return qe(this,e,t,n,r,1)},off:function(e,t,n){var r,a;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Me),this.each((function(){x.event.remove(this,e,n,t)}))}});var Ve=/<script|<style|<link/i,Fe=/checked\s*(?:[^=]|=\s*.checked.)/i,Be=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function je(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ge(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ue(e,t){var n,r,a,i,o,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(a in se.remove(t,"handle events"),s)for(n=0,r=s[a].length;n<r;n++)x.event.add(t,a,s[a][n]);ce.hasData(e)&&(i=ce.access(e),o=x.extend({},i),ce.set(t,o))}}function We(e,t){var n=t.nodeName.toLowerCase();"input"===n&&xe.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function ze(e,t,n,r){t=c(t);var a,i,o,s,l,u,d=0,h=e.length,p=h-1,f=t[0],m=g(f);if(m||h>1&&"string"==typeof f&&!v.checkClone&&Fe.test(f))return e.each((function(a){var i=e.eq(a);m&&(t[0]=f.call(this,a,i.html())),ze(i,t,n,r)}));if(h&&(i=(a=Pe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===a.childNodes.length&&(a=i),i||r)){for(s=(o=x.map(Le(a,"script"),He)).length;d<h;d++)l=a,d!==p&&(l=x.clone(l,!0,!0),s&&x.merge(o,Le(l,"script"))),n.call(e[d],l,d);if(s)for(u=o[o.length-1].ownerDocument,x.map(o,Ge),d=0;d<s;d++)l=o[d],ke.test(l.type||"")&&!se.access(l,"globalEval")&&x.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?x._evalUrl&&!l.noModule&&x._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):w(l.textContent.replace(Be,""),l,u))}return e}function $e(e,t,n){for(var r,a=t?x.filter(t,e):e,i=0;null!=(r=a[i]);i++)n||1!==r.nodeType||x.cleanData(Le(r)),r.parentNode&&(n&&ve(r)&&Ie(Le(r,"script")),r.parentNode.removeChild(r));return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,a,i,o,s=e.cloneNode(!0),c=ve(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(o=Le(s),r=0,a=(i=Le(e)).length;r<a;r++)We(i[r],o[r]);if(t)if(n)for(i=i||Le(e),o=o||Le(s),r=0,a=i.length;r<a;r++)Ue(i[r],o[r]);else Ue(e,s);return(o=Le(s,"script")).length>0&&Ie(o,!c&&Le(e,"script")),s},cleanData:function(e){for(var t,n,r,a=x.event.special,i=0;void 0!==(n=e[i]);i++)if(ie(n)){if(t=n[se.expando]){if(t.events)for(r in t.events)a[r]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);n[se.expando]=void 0}n[ce.expando]&&(n[ce.expando]=void 0)}}}),x.fn.extend({detach:function(e){return $e(this,e,!0)},remove:function(e){return $e(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return ze(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)}))},prepend:function(){return ze(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(Le(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return x.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ve.test(e)&&!Te[(Ae.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(Le(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return ze(this,arguments,(function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(Le(this)),n&&n.replaceChild(t,this))}),e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){x.fn[e]=function(e){for(var n,r=[],a=x(e),i=a.length-1,o=0;o<=i;o++)n=o===i?this:this.clone(!0),x(a[o])[t](n),l.apply(r,n.get());return this.pushStack(r)}}));var Ye=new RegExp("^("+he+")(?!px)[a-z%]+$","i"),Ze=/^--/,Ke=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Xe=function(e,t,n){var r,a,i={};for(a in t)i[a]=e.style[a],e.style[a]=t[a];for(a in r=n.call(e),t)e.style[a]=i[a];return r},Je=new RegExp(fe.join("|"),"i");function Qe(e,t,n){var r,a,i,o,s=Ze.test(t),c=e.style;return(n=n||Ke(e))&&(o=n.getPropertyValue(t)||n[t],s&&o&&(o=o.replace(P,"$1")||void 0),""!==o||ve(e)||(o=x.style(e,t)),!v.pixelBoxStyles()&&Ye.test(o)&&Je.test(t)&&(r=c.width,a=c.minWidth,i=c.maxWidth,c.minWidth=c.maxWidth=c.width=o,o=n.width,c.width=r,c.minWidth=a,c.maxWidth=i)),void 0!==o?o+"":o}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){l.style.cssText="position:absolute;
6left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",me.appendChild(l).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,c=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),a=36===t(e.width),u.style.position="absolute",i=12===t(u.offsetWidth/3),me.removeChild(l),u=null}}function t(e){return Math.round(parseFloat(e))}var n,a,i,o,s,c,l=_.createElement("div"),u=_.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,x.extend(v,{boxSizingReliable:function(){return e(),a},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,a;return null==s&&(e=_.createElement("table"),t=_.createElement("tr"),n=_.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",me.appendChild(e).appendChild(t).appendChild(n),a=r.getComputedStyle(t),s=parseInt(a.height,10)+parseInt(a.borderTopWidth,10)+parseInt(a.borderBottomWidth,10)===t.offsetHeight,me.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],nt=_.createElement("div").style,rt={};function at(e){var t=x.cssProps[e]||rt[e];return t||(e in nt?e:rt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var it=/^(none|table(?!-c[ea]).+)/,ot={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function ct(e,t,n){var r=pe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function lt(e,t,n,r,a,i){var o="width"===t?1:0,s=0,c=0,l=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=x.css(e,n+fe[o],!0,a)),r?("content"===n&&(c-=x.css(e,"padding"+fe[o],!0,a)),"margin"!==n&&(c-=x.css(e,"border"+fe[o]+"Width",!0,a))):(c+=x.css(e,"padding"+fe[o],!0,a),"padding"!==n?c+=x.css(e,"border"+fe[o]+"Width",!0,a):s+=x.css(e,"border"+fe[o]+"Width",!0,a));return!r&&i>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-c-s-.5))||0),c+l}function ut(e,t,n){var r=Ke(e),a=(!v.boxSizingReliable()||n)&&"border-box"===x.css(e,"boxSizing",!1,r),i=a,o=Qe(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ye.test(o)){if(!n)return o;o="auto"}return(!v.boxSizingReliable()&&a||!v.reliableTrDimensions()&&k(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===x.css(e,"display",!1,r))&&e.getClientRects().length&&(a="border-box"===x.css(e,"boxSizing",!1,r),(i=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+lt(e,t,n||(a?"border":"content"),i,r,o)+"px"}function dt(e,t,n,r,a){return new dt.prototype.init(e,t,n,r,a)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,i,o,s=ae(t),c=Ze.test(t),l=e.style;if(c||(t=at(s)),o=x.cssHooks[t]||x.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(a=o.get(e,!1,r))?a:l[t];"string"===(i=typeof n)&&(a=pe.exec(n))&&a[1]&&(n=_e(e,t,a),i="number"),null!=n&&n==n&&("number"!==i||c||(n+=a&&a[3]||(x.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(c?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var a,i,o,s=ae(t);return Ze.test(t)||(t=at(s)),(o=x.cssHooks[t]||x.cssHooks[s])&&"get"in o&&(a=o.get(e,!0,n)),void 0===a&&(a=Qe(e,t,r)),"normal"===a&&t in st&&(a=st[t]),""===n||n?(i=parseFloat(a),!0===n||isFinite(i)?i||0:a):a}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,n,r){if(n)return!it.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,r):Xe(e,ot,(function(){return ut(e,t,r)}))},set:function(e,n,r){var a,i=Ke(e),o=!v.scrollboxSize()&&"absolute"===i.position,s=(o||r)&&"border-box"===x.css(e,"boxSizing",!1,i),c=r?lt(e,t,r,s,i):0;return s&&o&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-lt(e,t,"border",!1,i)-.5)),c&&(a=pe.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),ct(0,n,c)}}})),x.cssHooks.marginLeft=et(v.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-Xe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(e,t){x.cssHooks[e+t]={expand:function(n){for(var r=0,a={},i="string"==typeof n?n.split(" "):[n];r<4;r++)a[e+fe[r]+t]=i[r]||i[r-2]||i[0];return a}},"margin"!==e&&(x.cssHooks[e+t].set=ct)})),x.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var r,a,i={},o=0;if(Array.isArray(t)){for(r=Ke(e),a=t.length;o<a;o++)i[t[o]]=x.css(e,t[o],!1,r);return i}return void 0!==n?x.style(e,t,n):x.css(e,t)}),e,t,arguments.length>1)}}),x.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,r,a,i){this.elem=e,this.prop=n,this.easing=a||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(x.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[at(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=dt.prototype.init,x.fx.step={};var ht,pt,ft=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function vt(){pt&&(!1===_.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(vt):r.setTimeout(vt,x.fx.interval),x.fx.tick())}function gt(){return r.setTimeout((function(){ht=void 0})),ht=Date.now()}function yt(e,t){var n,r=0,a={height:e};for(t=t?1:0;r<4;r+=2-t)a["margin"+(n=fe[r])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function _t(e,t,n){for(var r,a=(bt.tweeners[t]||[]).concat(bt.tweeners["*"]),i=0,o=a.length;i<o;i++)if(r=a[i].call(n,t,e))return r}function bt(e,t,n){var r,a,i=0,o=bt.prefilters.length,s=x.Deferred().always((function(){delete c.elem})),c=function(){if(a)return!1;for(var t=ht||gt(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),i=0,o=l.tweens.length;i<o;i++)l.tweens[i].run(r);return s.notifyWith(e,[l,r,n]),r<1&&o?n:(o||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:ht||gt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(a)return this;for(a=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),u=l.props;for(!function(e,t){var n,r,a,i,o;for(n in e)if(a=t[r=ae(n)],i=e[n],Array.isArray(i)&&(a=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(o=x.cssHooks[r])&&"expand"in o)for(n in i=o.expand(i),delete e[r],i)n in e||(e[
vendor: 24,802 bytes, line 6
6n]=i[n],t[n]=a);else t[r]=a}(u,l.opts.specialEasing);i<o;i++)if(r=bt.prefilters[i].call(l,e,u,l.opts))return g(r.stop)&&(x._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return x.map(u,_t,l),g(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),x.fx.timer(x.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}x.Animation=x.extend(bt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return _e(n.elem,e,pe.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match($);for(var n,r=0,a=e.length;r<a;r++)n=e[r],bt.tweeners[n]=bt.tweeners[n]||[],bt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,a,i,o,s,c,l,u,d="width"in t||"height"in t,h=this,p={},f=e.style,m=e.nodeType&&ye(e),v=se.get(e,"fxshow");for(r in n.queue||(null==(o=x._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,h.always((function(){h.always((function(){o.unqueued--,x.queue(e,"fx").length||o.empty.fire()}))}))),t)if(a=t[r],ft.test(a)){if(delete t[r],i=i||"toggle"===a,a===(m?"hide":"show")){if("show"!==a||!v||void 0===v[r])continue;m=!0}p[r]=v&&v[r]||x.style(e,r)}if((c=!x.isEmptyObject(t))||!x.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(l=v&&v.display)&&(l=se.get(e,"display")),"none"===(u=x.css(e,"display"))&&(l?u=l:(Se([e],!0),l=e.style.display||l,u=x.css(e,"display"),Se([e]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===x.css(e,"float")&&(c||(h.done((function(){f.display=l})),null==l&&(u=f.display,l="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),c=!1,p)c||(v?"hidden"in v&&(m=v.hidden):v=se.access(e,"fxshow",{display:l}),i&&(v.hidden=!m),m&&Se([e],!0),h.done((function(){for(r in m||Se([e]),se.remove(e,"fxshow"),p)x.style(e,r,p[r])}))),c=_t(m?v[r]:0,r,h),r in v||(v[r]=c.start,m&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?bt.prefilters.unshift(e):bt.prefilters.push(e)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return x.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in x.fx.speeds?r.duration=x.fx.speeds[r.duration]:r.duration=x.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var a=x.isEmptyObject(e),i=x.speed(t,n,r),o=function(){var t=bt(this,x.extend({},e),i);(a||se.get(this,"finish"))&&t.stop(!0)};return o.finish=o,a||!1===i.queue?this.each(o):this.queue(i.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,a=null!=e&&e+"queueHooks",i=x.timers,o=se.get(this);if(a)o[a]&&o[a].stop&&r(o[a]);else for(a in o)o[a]&&o[a].stop&&mt.test(a)&&r(o[a]);for(a=i.length;a--;)i[a].elem!==this||null!=e&&i[a].queue!==e||(i[a].anim.stop(n),t=!1,i.splice(a,1));!t&&n||x.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=se.get(this),r=n[e+"queue"],a=n[e+"queueHooks"],i=x.timers,o=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),x.each(["toggle","show","hide"],(function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,a){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,r,a)}})),x.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(ht=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),ht=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){pt||(pt=!0,vt())},x.fx.stop=function(){pt=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,t){return e=x.fx&&x.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var a=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(a)}}))},function(){var e=_.createElement("input"),t=_.createElement("select").appendChild(_.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=_.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var wt,St=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return ee(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?x.prop(e,t,n):(1===i&&x.isXMLDoc(e)||(a=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?wt:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(r=a.get(e,t))?r:null==(r=x.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&k(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,a=t&&t.match($);if(a&&1===e.nodeType)for(;n=a[r++];)e.removeAttribute(n)}}),wt={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=St[t]||x.find.attr;St[t]=function(e,t,r){var a,i,o=t.toLowerCase();return r||(i=St[o],St[o]=a,a=null!=n(e,t,r)?o:null,St[o]=i),a}}));var Ct=/^(?:input|select|textarea|button)$/i,Et=/^(?:a|area)$/i;function xt(e){return(e.match($)||[]).join(" ")}function At(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match($)||[]}x.fn.extend({prop:function(e,t){return ee(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[x.propFix[e]||e]}))}}),x.extend({prop:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&x.isXMLDoc(e)||(t=x.propFix[t]||t,a=x.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:e[t]=n:a&&"get"in a&&null!==(r=a.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||Et.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(e){var t,n,r,a,i,o;return g(e)?this.each((function(t){x(this).addClass(e.call(this,t,At(this)))})):(t=kt(e)).length?this.each((function(){if(r=At(this),n=1===this.nodeType&&" "+xt(r)+" "){for(i=0;i<t.length;i++)a=t[i],n.indexOf(" "+a+" ")<0&&(n+=a+" ");o=xt(n),r!==o&&this.setAttribute("class",o)}})):this},removeClass:function(e){var t,n,r,a,i,o;return g(e)?this.each((function(t){x(this).removeClass(e.call(this,t,At(this)))})):arguments.length?(t=kt(e)).length?this.each((function(){if(r=At(this),n=1===this.nodeType&&" "+xt(r)+" "){for(i=0;i<t.length;i++)for(a=t[i];n.indexOf(" "+a+" ")>-1;)n=n.replace(" "+a+" "," ");o=xt(n),r!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,a,i,o=typeof e,s="string"===o||Array.isArray(e);return g(e)?this.each((function(n){x(this).toggleClass(e.call(this,n,At(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=kt(e),this.each((function(){if(s)for(i=x(this),a=0;a<n.length;a++)r=n[a],i.hasClass(r)?i.removeClass(r):i.addClass(r);else void 0!==e&&"boolean"!==o||((r=At(this))&&se.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+xt(At(n))+" ").indexOf(t)>-1)return!0;return!1}});var Tt=/\r/g;x.fn.extend({val:function(e){var t,n,r,a=this[0];return arguments.length?(r=g(e),this.each((function(n){var a;1===this.nodeType&&(null==(a=r?e.call(this,n,x(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=x.map(a,(function(e){return null==e?"":e+""}))),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=x.valHooks[a.type]||x.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:"string"==typeof(n=a.value)?n.replace(Tt,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:xt(x.text(e))}},select:{get:function(e){var t,n,r,a=e.options,i=e.selectedIndex,o="select-one"===e.type,s=o?null:[],c=o?i+1:a.length;for(r=i<0?c:o?i:0;r<c;r++)if(((n=a[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!k(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,a=e.options,i=x.makeArray(t),o=a.length;o--;)((r=a[o]).selected=x.inArray(x.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},v.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Lt=r.location,It={guid:Date.now()},Dt=/\?/;x.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||x.error("Invalid XML: "+(n?x.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Pt=/^(?:focusinfocus|focusoutblur)$/,Ot=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,t,n,a){var i,o,s,c,l,u,d,h,f=[n||_],m=p.call(e,"type")?e.type:e,v=p.call(e,"namespace")?e.namespace.split("."):[];if(o=h=s=n=n||_,3!==n.nodeType&&8!==n.nodeType&&!Pt.test(m+x.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),l=m.indexOf(":")<0&&"on"+m,(e=e[x.expando]?e:new x.Event(m,"object"==typeof e&&e)).isTrigger=a?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:x.makeArray(t,[e]),d=x.event.special[m]||{},a||!d.trigger||!1!==d.trigger.apply(n,t))){if(!a&&!d.noBubble&&!y(n)){for(c=d.delegateType||m,Pt.test(c+m)||(o=o.parentNode);o;o=o.parentNode)f.push(o),s=o;s===(n.ownerDocument||_)&&f.push(s.defaultView||s.parentWindow||r)}for(i=0;(o=f[i++])&&!e.isPropagationStopped();)h=o,e.type=i>1?c:d.bindType||m,(u=(se.get(o,"events")||Object.create(null))[e.type]&&se.get(o,"handle"))&&u.apply(o,t),(u=l&&o[l])&&u.apply&&ie(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=m,a||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),t)||!ie(n)||l&&g(n[m])&&!y(n)&&((s=n[l])&&(n[l]=null),x.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,Ot),n[m](),e.isPropagationStopped()&&h.removeEventListener(m,Ot),x.event.triggered=void 0,s&&(n[l]=s)),e.result}},simulate:function(e,t,n){var r=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(r,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}});var Rt=/\[\]$/,Mt=/\r?\n/g,qt=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Vt(e,t,n,r){var a;if(Array.isArray(t))x.each(t,(function(t,a){n||Rt.test(e)?r(e,a):Vt(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,n,r)}));else if(n||"object"!==S(t))r(e,t);else for(a in t)Vt(e+"["+a+"]",t[a],n,r)}x.param=function(e,t){var n,r=[],a=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,(function(){a(this.name,this.value)}));else for(n in e)Vt(n,e[n],t,a);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Nt.test(this.nodeName)&&!qt.test(e)&&(this.checked||!xe.test(e))})).map((function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}})):{name:t.name,value:n.replace(Mt,"\r\n")}})).get()}});var Ft=/%20/g,Bt=/#.*$/,jt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Gt=/^(?:GET|HEAD)$/,Ut=/^\/\//,Wt={},zt={},$t="*/".concat("*"),Yt=_.createElement("a");function Zt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,a=0,i=t.toLowerCase().match($)||[];if(g(n))for(;r=i[a++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Kt(e,t,n,r){var a={},i=e===zt;function o(s){var c;return a[s]=!0,x.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!=typeof l||i||a[l]?i?!(c=l):void 0:(t.dataTypes.unshift(l),o(l),!1)})),c}return o(t.dataTypes[0])||!a["*"]&&o("*")}function Xt(e,t){var n,r,a=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:r||(r={}))[n]=t[n]);return r&&x.extend(!0,e,r),e}Yt.href=Lt.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Lt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Xt(Xt(e,x.ajaxSettings),t):Xt(x.ajaxSettings,e)},ajaxPrefilter:Zt(Wt),ajaxTransport:Zt(zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,a,i,o,s,c,l,u,d,h,p=x.ajaxSetup({},t),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?x(f):x.event,v=x.Deferred(),g=x.Callbacks("once memory"),y=p.statusCode||{},b={},w={},S="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(l){if(!o)for(o={};t=Ht.exec(i);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?i:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)C.always(e[C.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||S;return n&&n.abort(t),E(0,t),this}};if(v.promise(C),p.url=((e||p.url||Lt.href)+"").replace(Ut,Lt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match($)||[""],null==p.crossDomain){c=_.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=Yt.protocol+"//"+Yt.host!=c.protocol+"//"+c.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),Kt(Wt,p,t,C),l)return C;for(d in(u=x.event&&p.global)&&0==x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Gt.test(p.type),a=p.url.replace(Bt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ft,"+")):(h=p.url.slice(a.length),p.data&&(p.processData||"string"==typeof p.data)&&(a+=(Dt.test(a)?"&":"?")+p.data,delete p.data),!1===p.cache&&(a=a.replace(jt,"$1"),h=(Dt.test(a)?"&":"?")+"_="+It.guid+++h),p.url=a+h),p.ifModified&&(x.lastModified[a]&&C.setRequestHeader("If-Modified-Since",x.lastModified[a]),x.etag[a]&&C.setRequestHeader("If-None-Match",x.etag[a])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+$t+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,C,p)||l))return C.abort();if(S="abort",g.add(p.complete),C.done(p.success),C.fail(p.error),n=Kt(zt,p,t,C)){if(C.readyState=1,u&&m.trigger("ajaxSend",[C,p]),l)return C;p.async&&p.timeout>0&&(s=r.setTimeout((function(){C.abort("timeout")}),p.timeout));try{l=!1,n.send(b,E)}catch(e){if(l)throw e;E(-1,e)}}else E(-1,"No Transport");function E(e,t,o,c){var d,h,_,b,w,S=t;l||(l=!0,s&&r.clearTimeout(s),n=void 0,i=c||"",C.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(b=function(e,t,n){for(var r,a,i,o,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){c.unshift(a);break}if(c[0]in n)i=c[0];else{for(a in n){if(!c[0]||e.converters[a+" "+c[0]]){i=a;break}o||(o=a)}i=i||o}if(i)return i!==c[0]&&c.unshift(i),n[i]}(p,C,o)),!d&&x.inArray("script",p.dataTypes)>-1&&x.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),b=function(e,t,n,r){var a,i,o,s,c,l={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=i,i=u.shift())if("*"===i)i=c;else if("*"!==c&&c!==i){if(!(o=l[c+" "+i]||l["* "+i]))for(a in l)if((s=a.split(" "))[1]===i&&(o=l[c+" "+s[0]]||l["* "+s[0]])){!0===o?o=l[a]:!0!==l[a]&&(i=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+c+" to "+i}}}return{state:"success",data:t}}(p,b,C,d),d?(p.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(x.lastModified[a]=w),(w=C.getResponseHeader("etag"))&&(x.etag[a]=w)),204===e||"HEAD"===p.type?S="nocontent":304===e?S="notmodified":(S=b.state,h=b.data,d=!(_=b.error))):(_=S,!e&&S||(S="error",e<0&&(e=0))),C.status=e,C.statusText=(t||S)+"",d?v.resolveWith(f,[h,S,C]):v.rejectWith(f,[C,S,_]),C.statusCode(y),y=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[C,p,d?h:_]),g.fireWith(f,[C,S]),u&&(m.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,n,r,a){return g(n)&&(a=a||r,r=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:a,data:n,success:r},x.isPlainObject(e)&&e))}})),x.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){x(this).wrapInner(e.call(this,t))})):this.each((function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){x(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Jt={0:200,1223:204},Qt=x.ajaxSettings.xhr();v.cors=!!Qt&&"withCredentials"in Qt,v.ajax=Qt=!!Qt,x.ajaxTransport((function(e){var t,n;if(v.cors||Qt&&!e.crossDomain)return{send:function(a,i){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)s.setRequestHeader(o,a[o]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Jt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),x.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),x.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,a){t=x("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),_.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||x.expando+"_"+It.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",(function(e,t,n){var a,i,o,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+a):!1!==e.jsonp&&(e.url+=(Dt.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return o||x.error(a+" was not called"),o[0]},e.dataTypes[0]="json",i=r[a],r[a]=function(){o=arguments},n.always((function(){void 0===i?x(r).removeProp(a):r[a]=i,e[a]&&(e.jsonpCallback=t.jsonpCallback,tn.push(a)),o&&g(i)&&i(o[0]),o=i=void 0})),"script"})),v.createHTMLDocument=((en=_.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),x.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=_.implementation.createHTMLDocument("")).createElement("base")).href=_.location.href,t.head.appendChild(r)):t=_),i=!n&&[],(a=B.exec(e))?[t.createElement(a[1])]:(a=Pe([e],t,i),i&&i.length&&x(i).remove(),x.merge([],a.childNodes)));var r,a,i},x.fn.load=function(e,t,n){var r,a,i,o=this,s=e.indexOf(" ");return s>-1&&(r=xt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),o.length>0&&x.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done((function(e){i=arguments,o.html(r?x("<div>").append(x.parseHTML(e)).find(r):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},x.expr.pseudos.animated=function(e){return x.grep(x.timers,(function(t){return e===t.elem})).length},x.offset={setOffset:function(e,t,n){var r,a,i,o,s,c,l=x.css(e,"position"),u=x(e),d={};"static"===l&&(e.style.position="relative"),s=u.offset(),i=x.css(e,"to
6p"),c=x.css(e,"left"),("absolute"===l||"fixed"===l)&&(i+c).indexOf("auto")>-1?(o=(r=u.position()).top,a=r.left):(o=parseFloat(i)||0,a=parseFloat(c)||0),g(t)&&(t=t.call(e,n,x.extend({},s))),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+a),"using"in t?t.using.call(e,d):u.css(d)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){x.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],a={top:0,left:0};if("fixed"===x.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((a=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),a.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-x.css(r,"marginTop",!0),left:t.left-a.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||me}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;x.fn[e]=function(r){return ee(this,(function(e,r,a){var i;if(y(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===a)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:a,n?a:i.pageYOffset):e[r]=a}),e,r,arguments.length)}})),x.each(["top","left"],(function(e,t){x.cssHooks[t]=et(v.pixelPosition,(function(e,n){if(n)return n=Qe(e,t),Ye.test(n)?x(e).position()[t]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){x.fn[r]=function(a,i){var o=arguments.length&&(n||"boolean"!=typeof a),s=n||(!0===a||!0===i?"margin":"border");return ee(this,(function(t,n,a){var i;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===a?x.css(t,n,s):x.style(t,n,a,s)}),t,o?a:void 0,o)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){x.fn[t]=function(e){return this.on(t,e)}})),x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var n,r,a;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=s.call(arguments,2),a=function(){return e.apply(t||this,r.concat(s.call(arguments)))},a.guid=e.guid=e.guid||x.guid++,a},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=k,x.isFunction=g,x.isWindow=y,x.camelCase=ae,x.type=S,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return x}.apply(t,[]))||(e.exports=n);var an=r.jQuery,on=r.$;return x.noConflict=function(e){return r.$===x&&(r.$=on),e&&r.jQuery===x&&(r.jQuery=an),x},void 0===a&&(r.jQuery=r.$=x),x}))},74892:function(e,t,n){var r=n(74692);r(".amag-imageAccordion__arrow").on("click",(function(){r(this).closest(".amag-imageAccordion").find(".amag-imageAccordion__textSlider").slideToggle("slow"),r(this).toggleClass("active")}))},75019:function(e,t,n){"use strict";
vendor: 4,496 bytes, line 6
6Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;var r=n(31245),a=n(65212),i=n(17214);t.materialize=function(){return a.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,(function(e){t.next(r.Notification.createNext(e))}),(function(){t.next(r.Notification.createComplete()),t.complete()}),(function(e){t.next(r.Notification.createError(e)),t.complete()})))}))}},75266:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forkJoin=void 0;var r=n(48051),a=n(50439),i=n(19724),o=n(26404),s=n(17214),c=n(13916),l=n(15810);t.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o.popResultSelector(e),u=a.argsArgArrayOrObject(e),d=u.args,h=u.keys,p=new r.Observable((function(e){var t=d.length;if(t)for(var n=new Array(t),r=t,a=t,o=function(t){var o=!1;i.innerFrom(d[t]).subscribe(s.createOperatorSubscriber(e,(function(e){o||(o=!0,a--),n[t]=e}),(function(){return r--}),void 0,(function(){r&&o||(a||e.next(h?l.createObject(h,n):n),e.complete())})))},c=0;c<t;c++)o(c);else e.complete()}));return n?p.pipe(c.mapOneOrManyArgs(n)):p}},75544:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;var r=n(65212),a=n(2574);t.expand=function(e,t,n){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,r.operate((function(r,i){return a.mergeInternals(r,i,e,t,void 0,!0,n)}))}},76035:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var r=n(22044);t.distinctUntilKeyChanged=function(e,t){return r.distinctUntilChanged((function(n,r){return t?t(n[e],r[e]):n[e]===r[e]}))}},76075:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;var r=n(67478),a=n(10281);t.mergeMapTo=function(e,t,n){return void 0===n&&(n=1/0),a.isFunction(t)?r.mergeMap((function(){return e}),t,n):("number"==typeof t&&(n=t),r.mergeMap((function(){return e}),n))}},76562:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:function(){return r}})},76808: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)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousSubject=t.Subject=void 0;var o=n(48051),s=n(69879),c=n(50839),l=n(54830),u=n(12688),d=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return a(t,e),t.prototype.lift=function(e){var t=new h(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new c.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;u.errorContext((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var a=i(t.currentObservers),o=a.next();!o.done;o=a.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;u.errorContext((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;u.errorContext((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}
6,enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,a=n.isStopped,i=n.observers;return r||a?s.EMPTY_SUBSCRIPTION:(this.currentObservers=null,i.push(e),new s.Subscription((function(){t.currentObservers=null,l.arrRemove(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,a=t.isStopped;n?e.error(r):a&&e.complete()},t.prototype.asObservable=function(){var e=new o.Observable;return e.source=this,e},t.create=function(e,t){return new h(e,t)},t}(o.Observable);t.Subject=d;var h=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return a(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:s.EMPTY_SUBSCRIPTION},t}(d);t.AnonymousSubject=h},77217:function(e,t,n){!function(e){"use strict";var t="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},r={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};function a(e){return e&&DataView.prototype.isPrototypeOf(e)}if(r.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function p(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function f(e){var t=new FileReader,n=h(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),a=r?r[1]:"utf-8";return t.readAsText(e,a),n}function m(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:r.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r.arrayBuffer&&r.blob&&a(e)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=d(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(r.blob)return this.blob().then(p);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return f(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(m(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(e,t){e=s(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype.delete=function(e){delete this.map[s(e)]},u.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},u.prototype.set=function(e,t){this.map[s(e)]=c(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),l(e)},u.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),l(e)},u.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),l(e)},r.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var y=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function _(e){var t=e.toUpperCase();return y.indexOf(t)>-1?t:e}function b(e,n){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object c
6onstructor cannot be called as a function.');var r=(n=n||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new u(n.headers)),this.method=_(n.method||this.method||"GET"),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}})),t}function S(e){var t=new u;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();try{t.append(r,a)}catch(e){console.warn("Response "+e.message)}}})),t}function C(e,t){if(!(this instanceof C))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},g.call(b.prototype),g.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var E=[301,302,303,307,308];C.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function x(n,a){return new Promise((function(i,o){var l=new b(n,a);if(l.signal&&l.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var d=new XMLHttpRequest;function h(){d.abort()}function p(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}if(d.onload=function(){var e={statusText:d.statusText,headers:S(d.getAllResponseHeaders()||"")};0===l.url.indexOf("file://")&&(d.status<200||d.status>599)?e.status=200:e.status=d.status,e.url="responseURL"in d?d.responseURL:e.headers.get("X-Request-URL");var t="response"in d?d.response:d.responseText;setTimeout((function(){i(new C(t,e))}),0)},d.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},d.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request timed out"))}),0)},d.onabort=function(){setTimeout((function(){o(new e.DOMException("Aborted","AbortError"))}),0)},d.open(l.method,p(l.url),!0),"include"===l.credentials?d.withCredentials=!0:"omit"===l.credentials&&(d.withCredentials=!1),"responseType"in d&&(r.blob?d.responseType="blob":r.arrayBuffer&&(d.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof u||t.Headers&&a.headers instanceof t.Headers)){var f=[];
6Object.getOwnPropertyNames(a.headers).forEach((function(e){f.push(s(e)),d.setRequestHeader(e,c(a.headers[e]))})),l.headers.forEach((function(e,t){-1===f.indexOf(t)&&d.setRequestHeader(t,e)}))}else l.headers.forEach((function(e,t){d.setRequestHeader(t,e)}));l.signal&&(l.signal.addEventListener("abort",h),d.onreadystatechange=function(){4===d.readyState&&l.signal.removeEventListener("abort",h)}),d.send(void 0===l._bodyInit?null:l._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=u,t.Request=b,t.Response=C),e.Headers=u,e.Request=b,e.Response=C,e.fetch=x,Object.defineProperty(e,"__esModule",{value:!0})}(t)},77340:function(e,t,n){"use strict";n.d(t,{Jt:function(){return o},YM:function(){return u}});var r=n(68126),a=n(46549),i=n(2822);const o="nr@original:".concat(a.W),s=50;var c=Object.prototype.hasOwnProperty,l=!1;function u(e,t,n){return e||(e=r.ee),a.inPlace=function(e,t,n,r,i,o){n||(n="");const s="-"===n.charAt(0);for(let c=0;c<t.length;c++){const l=t[c],u=e[l];h(u)||(e[l]=a(u,s?l+n:n,r,l,i,o))}},a.flag=o,a;function a(t,r,a,l,p,f){return h(t)?t:(r||(r=""),m[o]=t,function(e,t,n){if(Object.defineProperty&&Object.keys)try{return Object.keys(e).forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){return e[n]=t,t}})})),t}catch(e){d([e],n)}for(var r in e)c.call(e,r)&&(t[r]=e[r])}(t,m,e),m);function m(){var o,c,h,m;let v,g;try{c=this,o=[...arguments],g=f?(0,i.$5)(n):[void 0],h="function"==typeof a?a(o,c):a||{}}catch(t){d([t,"",[o,c,l],h],e)}u(r+"start",[o,c,l,g],h,p);const y=performance.now();let _;try{return m=t.apply(c,o),_=performance.now(),m}catch(e){throw _=performance.now(),u(r+"err",[o,c,e,g],h,p),v=e,v}finally{const e=_-y,t={start:y,end:_,duration:e,isLongTask:e>=s,methodName:l,thrownError:v};t.isLongTask&&u("long-task",[t,c,g],h,p),u(r+"end",[o,c,m,g],h,p)}}}function u(n,r,a,i){if(!l||t){var o=l;l=!0;try{e.emit(n,r,a,t,i)}catch(t){d([t,n,r,a],e)}l=o}}}function d(e,t){t||(t=r.ee);try{t.emit("internal-error",e)}catch(e){}}function h(e){return!(e&&"function"==typeof e&&e.apply&&!e[o])}},77876:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;var r=n(65212),a=n(17214),i=n(5717),o=n(19724);t.distinct=function(e,t){return r.operate((function(n,r){var s=new Set;n.subscribe(a.createOperatorSubscriber(r,(function(t){var n=e?e(t):t;s.has(n)||(s.add(n),r.next(t))}))),t&&o.innerFrom(t).subscribe(a.createOperatorSubscriber(r,(function(){return s.clear()}),i.noop))}))}},78051: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapAction=void 0;var i=n(64772),o=n(16002),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return a(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=o.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){var a;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var i=t.actions;null!=n&&(null===(a=i[i.length-1])||void 0===a?void 0:a.id)!==n&&(o.immediateProvider.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(i.AsyncAction);t.AsapAction=s},78072:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;var r=n(76808),a=n(65212),i=n(17214),o=n(5717),s=n(19724);t.window=function(e){return a.operate((function(t,n){var a=new r.Subject;n.next(a.asObservable());var c=function(e){a.error(e),n.error(e)};return t.subscribe(i.createOperatorSubscriber(n,(function(e){return null==a?void 0:a.next(e)}),(function(){a.complete(),n.complete()}),c)),s.innerFrom(e).subscribe(i.createOperatorSubscriber(n,(function(){a.complete(),n.next(a=new r.Subject)}),o.noop,c)),function(){null==a||a.unsubscribe(),a=null}}))}},78263:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=void 0;var r=n(10281);t.isAsyncIterable=function(e){return Symbol.asyncIterator&&r.isFunction(null==e?void 0:e[Symbol.asyncIterator])}},78531:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;var r=n(17214);t.scanInternals=function(e,t,n,a,i){return function(o,s){var c=n,l=t,u=0;o.subscribe(r.createOperatorSubscriber(s,(function(t){var n=u++;l=c?e(l,t,n):(c=!0,t),a&&s.next(l)}),i&&function(){c&&s.next(l),s.complete()}))}}},78674:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var r=n(74692);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e){return function(t){var n=function(){var n,r=a(document.querySelectorAll(e.selector));try{for(r.s();!(n=r.n()).done;){var i=n.value;if((e.mount||i.innerHTML&&!i.querySelector(".cq-placeholder"))&&(new t(i),e.mount)){var o=e.mount.on?i.querySelector(e.mount.on):i;e.mount.mounter(o)}}}catch(e){r.e(e)}finally{r.f()}};e.onDomLoaded||e.mount?r((function(){n()})):n()}}},78781:function(e,t,n){"use strict";n.d(t,{MM:function(){return s},l4:function(){return o},nQ:function(){return a},ox:function(){return i}});var r=function(e){setTimeout((function(){e.remove()}),3e3)},a=function(e,t){e&&"number"==typeof t&&(e.style.top="".concat(t,"px"))},i=function(e,t,n,a,i){var o=document.createElement("div");o.setAttribute("role","alert"),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),o.classList.add("toast"),n&&n.forEach((function(e){return o.classList.add(e)}));var s=document.createElement("div");s.classList.add("toast-positioning");var c=document.createElement("div");c.style.display="flex",c.style.alignItems="center",c.style.height="100%",i&&(i.style.width="32px",i.style.height="32px",i.style.marginLeft="40px",i.style.marginRight="10px",c.appendChild(i));var l=document.createElement("span");return l.textContent=e,c.appendChild(l),s.appendChild(c),o.appendChild(s),a&&(a.style.position="absolute",a.style.top="20px",a.style.right="20px",a.style.cursor="pointer",a.addEventListener("click",(function(){o.classList.remove("show"),o.classList.add("hide"),r(o)})),s.appendChild(a)),o.show=function(){!function(e){var t=document.querySelector(".amag-header"),n="adjust-pos-header-visible";e.style.top=null,t?t.getBoundingClientRect().top<0?e.classList.remove(n):e.classList.add(n):e.classList.remove(n)}(o),o.classList.add("show"),o.classList.remove("hide"),setTimeout((function(){o.classList.remove("show"),o.classList.add("hide"),r(o)}),t)},o},o=function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("class",e),t.setAttribute("width","24"),t.setAttribute("height","24"),t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","white"),t.setAttribute("xmlns","http://www.w3.org/2000/svg");var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d","M23.4999 23.9988C23.3659 23.9988 23.2409 23.9468 23.1459 23.8528L11.9999 12.7058L0.853945 23.8528C0.759945 23.9468 0.633945 23.9988 0.499945 23.9988C0.365945 23.9988 0.240945 23.9468 0.145945 23.8528C-0.0490552 23.6578 -0.0490552 23.3408 0.145945 23.1458L11.2919 11.9998L0.146945 0.852779C-0.0480552 0.657779 -0.0480552 0.340779 0.146945 0.145779C0.240945 0.0507793 0.366945 -0.
60012207 0.499945 -0.0012207C0.632945 -0.0012207 0.758945 0.0507793 0.853945 0.144779L11.9999 11.2918L23.1469 0.145779C23.2409 0.0517793 23.3669 -0.000220703 23.5009 -0.000220703C23.6349 -0.000220703 23.7599 0.0517793 23.8549 0.145779C24.0499 0.340779 24.0499 0.657779 23.8549 0.852779L12.7069 11.9988L23.8529 23.1448C24.0479 23.3398 24.0479 23.6568 23.8529 23.8518C23.7589 23.9468 23.6339 23.9988 23.4999 23.9988Z"),t.appendChild(n),t},s=function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("class",e),t.setAttribute("width","40"),t.setAttribute("height","40"),t.setAttribute("viewBox","0 0 40 40"),t.setAttribute("fill","white"),t.setAttribute("xmlns","http://www.w3.org/2000/svg");var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d","M11.6671 39.9983C11.4471 39.9983 11.2321 39.91 11.0771 39.7533L0.24375 28.92C-0.08125 28.595 -0.08125 28.0667 0.24375 27.7417C0.400417 27.585 0.610417 27.4983 0.83375 27.4983C1.05708 27.4983 1.26542 27.585 1.42375 27.7417L11.5621 37.88L38.4887 0.346667C38.6454 0.13 38.8987 0 39.1654 0C39.3404 0 39.5087 0.0533333 39.6504 0.156667C39.8321 0.286667 39.9504 0.478333 39.9871 0.698333C40.0237 0.918333 39.9721 1.13833 39.8421 1.32L12.3421 39.6533C12.1987 39.8517 11.9771 39.9783 11.7337 39.9983C11.7237 39.9967 11.6787 39.9983 11.6671 39.9983Z"),t.appendChild(n),t}},79224:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refCount=void 0;var r=n(65212),a=n(17214);t.refCount=function(){return r.operate((function(e,t){var n=null;e._refCount++;var r=a.createOperatorSubscriber(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)n=null;else{var r=e._connection,a=n;n=null,!r||a&&r!==a||r.unsubscribe(),t.unsubscribe()}}));e.subscribe(r),r.closed||(n=e.connect())}))}},79324:function(e,t,n){"use strict";n.d(t,{BB:function(){return o},H3:function(){return r},g:function(){return l},iL:function(){return c},tS:function(){return s},uh:function(){return a},wk:function(){return i}});const r="NRBA",a="SESSION",i=144e5,o=18e5,s={STARTED:"session-started",PAUSE:"session-pause",RESET:"session-reset",RESUME:"session-resume",UPDATE:"session-update"},c={SAME_TAB:"same-tab",CROSS_TAB:"cross-tab"},l={OFF:0,FULL:1,ERROR:2}},79364:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}: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.interval=t.iif=t.generate=t.fromEventPattern=t.fromEvent=t.from=t.forkJoin=t.empty=t.defer=t.connectable=t.concat=t.combineLatest=t.bindNodeCallback=t.bindCallback=t.UnsubscriptionError=t.TimeoutError=t.SequenceError=t.ObjectUnsubscribedError=t.NotFoundError=t.EmptyError=t.ArgumentOutOfRangeError=t.firstValueFrom=t.lastValueFrom=t.isObservable=t.identity=t.noop=t.pipe=t.NotificationKind=t.Notification=t.Subscriber=t.Subscription=t.Scheduler=t.VirtualAction=t.VirtualTimeScheduler
vendor: 5,321 bytes, line 6
6=t.animationFrameScheduler=t.animationFrame=t.queueScheduler=t.queue=t.asyncScheduler=t.async=t.asapScheduler=t.asap=t.AsyncSubject=t.ReplaySubject=t.BehaviorSubject=t.Subject=t.animationFrames=t.observable=t.ConnectableObservable=t.Observable=void 0,t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.combineLatestWith=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=t.config=t.NEVER=t.EMPTY=t.scheduled=t.zip=t.using=t.timer=t.throwError=t.range=t.race=t.partition=t.pairs=t.onErrorResumeNext=t.of=t.never=t.merge=void 0,t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.pairwise=t.onErrorResumeNextWith=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=t.mergeAll=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=void 0,t.zipWith=t.zipAll=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=void 0;var i=n(48051);Object.defineProperty(t,"Observable",{enumerable:!0,get:function(){return i.Observable}});var o=n(14359);Object.defineProperty(t,"ConnectableObservable",{enumerable:!0,get:function(){return o.ConnectableObservable}});var s=n(2884);Object.defineProperty(t,"observable",{enumerable:!0,get:function(){return s.observable}});var c=n(21875);Object.defineProperty(t,"animationFrames",{enumerable:!0,get:function(){return c.animationFrames}});var l=n(76808);Object.defineProperty(t,"Subject",{enumerable:!0,get:function(){return l.Subject}});var u=n(97314);Object.defineProperty(t,"BehaviorSubject",{enumerable:!0,get:function(){return u.BehaviorSubject}});var d=n(10381);Object.defineProperty(t,"ReplaySubject",{enumerable:!0,get:function(){return d.ReplaySubject}});var h=n(5130);Object.defineProperty(t,"AsyncSubject",{enumerable:!0,get:function(){return h.AsyncSubject}});var p=n(22105);Object.defineProperty(t,"asap",{enumerable:!0,get:function(){return p.asap}}),Object.defineProperty(t,"asapScheduler",{enumerable:!0,get:function(){return p.asapScheduler}});var f=n(62326);Object.defineProperty(t,"async",{enumerable:!0,get:function(){return f.async}}),Object.defineProperty(t,"asyncScheduler",{enumerable:!0,get:function(){return f.asyncScheduler}});var m=n(99245);Object.defineProperty(t,"queue",{enumerable:!0,get:function(){return m.queue}}),Object.defineProperty(t,"queueScheduler",{enumerable:!0,get:function(){return m.queueScheduler}});var v=n(15887);Object.defineProperty(t,"animationFrame",{enumerable:!0,get:function(){return v.animationFrame}}),Object.defineProperty(t,"animationFrameScheduler",{enumerable:!0,get:function(){return v.animationFrameScheduler}});var g=n(50875);Object.defineProperty(t,"VirtualTimeScheduler",{enumerable:!0,get:function(){return g.VirtualTimeScheduler}}),Object.defineProperty(t,"VirtualAction",{enumerable:!0,get:function(){return g.VirtualAction}});var y=n(65881);Object.defineProperty(t,"Scheduler",{enumerable:!0,get:function(){return y.Scheduler}});var _=n(69879);Object.defineProperty(t,"Subscription",{enumerable:!0,get:function(){return _.Subscription}});var b=n(2708);Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return b.Subscriber}});var w=n(31245);Object.defineProperty(t,"Notification",{enumerable:!0,get:function(){return w.Notification}}),Object.defineProperty(t,"NotificationKind",{enumerable:!0,get:function(){return w.NotificationKind}});var S=n(99517);Object.defineProperty(t,"pipe",{enumerable:!0,get:function(){return S.pipe}});var C=n(5717);Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return C.noop}});var E=n(87699);Object.defineProperty(t,"identity",{enumerable:!0,get:function(){return E.identity}});var x=n(62560);Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return x.isObservable}});var A=n(85761);Object.defineProperty(t,"lastValueFrom",{enumerable:!0,get:function(){return A.lastValueFrom}});var k=n(40841);Object.defineProperty(t,"firstValueFrom",{enumerable:!0,get:function(){return k.firstValueFrom}});var T=n(7024);Object.defineProperty(t,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return T.ArgumentOutOfRangeError}});var L=n(59328);Object.defineProperty(t,"EmptyError",{enumerable:!0,get:function(){return L.EmptyError}});var I=n(23506);Object.defineProperty(t,"NotFoundError",{enumerable:!0,get:function(){return I.NotFoundError}});var D=n(50839);Object.defineProperty(t,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return D.ObjectUnsubscribedError}});var P=n(94708);Object.defineProperty(t,"SequenceError",{enumerable:!0,get:function(){return P.
6SequenceError}});var O=n(81713);Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return O.TimeoutError}});var R=n(69517);Object.defineProperty(t,"UnsubscriptionError",{enumerable:!0,get:function(){return R.UnsubscriptionError}});var M=n(79750);Object.defineProperty(t,"bindCallback",{enumerable:!0,get:function(){return M.bindCallback}});var q=n(21946);Object.defineProperty(t,"bindNodeCallback",{enumerable:!0,get:function(){return q.bindNodeCallback}});var N=n(88246);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return N.combineLatest}});var V=n(39546);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return V.concat}});var F=n(98590);Object.defineProperty(t,"connectable",{enumerable:!0,get:function(){return F.connectable}});var B=n(35884);Object.defineProperty(t,"defer",{enumerable:!0,get:function(){return B.defer}});var j=n(44885);Object.defineProperty(t,"empty",{enumerable:!0,get:function(){return j.empty}});var H=n(75266);Object.defineProperty(t,"forkJoin",{enumerable:!0,get:function(){return H.forkJoin}});var G=n(47058);Object.defineProperty(t,"from",{enumerable:!0,get:function(){return G.from}});var U=n(88616);Object.defineProperty(t,"fromEvent",{enumerable:!0,get:function(){return U.fromEvent}});var W=n(26920);Object.defineProperty(t,"fromEventPattern",{enumerable:!0,get:function(){return W.fromEventPattern}});var z=n(87281);Object.defineProperty(t,"generate",{enumerable:!0,get:function(){return z.generate}});var $=n(99380);Object.defineProperty(t,"iif",{enumerable:!0,get:function(){return $.iif}});var Y=n(62275);Object.defineProperty(t,"interval",{enumerable:!0,get:function(){return Y.interval}});var Z=n(95936);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return Z.merge}});var K=n(11934);Object.defineProperty(t,"never",{enumerable:!0,get:function(){return K.never}});var X=n(61587);Object.defineProperty(t,"of",{enumerable:!0,get:function(){return X.of}});var J=n(1903);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return J.onErrorResumeNext}});var Q=n(88269);Object.defineProperty(t,"pairs",{enumerable:!0,get:function(){return Q.pairs}});var ee=n(57406);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ee.partition}});var te=n(89795);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return te.race}});var ne=n(74385);Object.defineProperty(t,"range",{enumerable:!0,get:function(){return ne.range}});var re=n(26680);Object.defineProperty(t,"throwError",{enumerable:!0,get:function(){return re.throwError}});var ae=n(5825);Object.defineProperty(t,"timer",{enumerable:!0,get:function(){return ae.timer}});var ie=n(35904);Object.defineProperty(t,"using",{enumerable:!0,get:function(){return ie.using}});var oe=n(11415);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return oe.zip}});var se=n(30131);Object.defineProperty(t,"scheduled",{enumerable:!0,get:function(){return se.scheduled}});var ce=n(44885);Object.defineProperty(t,"EMPTY",{enumerable:!0,get:function(){return ce.EMPTY}});var le=n(11934);Object.defineProperty(t,"NEVER",{enumerable:!0,get:function(){return le.NEVER}}),a(n(96153),t);var ue=n(93728);Object.defineProperty(t,"config",{enumerable:!0,get:function(){return ue.config}});var de=n(88877);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return de.audit}});var he=n(51608);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return he.auditTime}});var pe=n(10706);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return pe.buffer}});var fe=n(9287);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return fe.bufferCount}});var me=n(41719);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return me.bufferTime}});var ve=n(61778);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return ve.bufferToggle}});var ge=n(56606);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return ge.bufferWhen}});var ye=n(72719);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return ye.catchError}});var _e=n(89244);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return _e.combineAll}});var be=n(67933);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return be.combineLatestAll}});var we=n(82044);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return we.combineLatestWith}});var Se=n(70201);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return Se.concatAll}});var Ce=n(29512);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return Ce.concatMap}});var Ee=n(19913);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return Ee.concatMapTo}});var xe=n(98032);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return xe.concatWith}});var Ae=n(17812);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return Ae.connect}});var ke=n(88589);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return ke.count}});var Te=n(3143);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return Te.debounce}});var Le=n(21762);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return Le.debounceTime}});var Ie=n(58799);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return Ie.defaultIfEmpty}});var De=n(5797);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return De.delay}});var Pe=n(72885);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return Pe.delayWhen}});var Oe=n(19818);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return Oe.dematerialize}});var Re=n(77876);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return Re.distinct}});var Me=n(22044);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return Me.distinctUntilChanged}});var qe=n(76035);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return qe.distinctUntilKeyChanged}});var Ne=n(61279);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return Ne.elementAt}});var Ve=n(66791);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return Ve.endWith}});var Fe=n(21361);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return Fe.every}});var Be=n(11464);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return Be.exhaust}});
6var je=n(17977);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return je.exhaustAll}});var He=n(86632);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return He.exhaustMap}});var Ge=n(75544);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return Ge.expand}});var Ue=n(85934);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return Ue.filter}});var We=n(17802);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return We.finalize}});var ze=n(98183);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return ze.find}});var $e=n(29035);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return $e.findIndex}});var Ye=n(19980);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return Ye.first}});var Ze=n(5128);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return Ze.groupBy}});var Ke=n(2959);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return Ke.ignoreElements}});var Xe=n(69915);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return Xe.isEmpty}});var Je=n(32568);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return Je.last}});var Qe=n(26872);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return Qe.map}});var et=n(13337);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return et.mapTo}});var tt=n(75019);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return tt.materialize}});var nt=n(50096);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return nt.max}});var rt=n(68087);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return rt.mergeAll}});var at=n(74613);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return at.flatMap}});var it=n(67478);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return it.mergeMap}});var ot=n(76075);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return ot.mergeMapTo}});var st=n(16707);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return st.mergeScan}});var ct=n(79694);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return ct.mergeWith}});var lt=n(80142);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return lt.min}});var ut=n(18464);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return ut.multicast}});var dt=n(32071);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return dt.observeOn}});var ht=n(95513);Object.defineProperty(t,"onErrorResumeNextWith",{enumerable:!0,get:function(){return ht.onErrorResumeNextWith}});var pt=n(26744);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return pt.pairwise}});var ft=n(66355);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return ft.pluck}});var mt=n(53197);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return mt.publish}});var vt=n(82955);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return vt.publishBehavior}});var gt=n(26569);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return gt.publishLast}});var yt=n(68710);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return yt.publishReplay}});var _t=n(6677);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return _t.raceWith}});var bt=n(92070);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return bt.reduce}});var wt=n(56131);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return wt.repeat}});var St=n(82139);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return St.repeatWhen}});var Ct=n(3352);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return Ct.retry}});var Et=n(73956);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return Et.retryWhen}});var xt=n(79224);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return xt.refCount}});var At=n(43434);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return At.sample}});var kt=n(44143);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return kt.sampleTime}});var Tt=n(35565);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return Tt.scan}});var Lt=n(73929);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return Lt.sequenceEqual}});var It=n(93405);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return It.share}});var Dt=n(17782);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return Dt.shareReplay}});var Pt=n(55440);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return Pt.single}});var Ot=n(23079);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return Ot.skip}});var Rt=n(92359);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Rt.skipLast}});var Mt=n(97783);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Mt.skipUntil}});var qt=n(65774);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return qt.skipWhile}});var Nt=n(99054);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Nt.startWith}});var Vt=n(5455);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return Vt.subscribeOn}});var Ft=n(16201);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return Ft.switchAll}});var Bt=n(90680);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Bt.switchMap}});var jt=n(761);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return jt.switchMapTo}});var Ht=n(48461);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return Ht.switchScan}});var Gt=n(54383);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return Gt.take}});var Ut=n(65279);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return Ut.takeLast}});var Wt=n(66911);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return Wt.takeUntil}});var zt=n(60598);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return zt.takeWhile}});var $t=n(15019);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return $t.tap}});var Yt=n(44880);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return Yt.throttle}});var Zt=n(7245);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return Zt.throttleTime}});var Kt=n(30632);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return Kt.throwIfEmpty}});var Xt=n(32508);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Xt.timeInterval}});var Jt=n(81713);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Jt.timeout}});var Qt=n(50597);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Qt.timeoutWith}});var en=n(53866);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return en.timestamp}});var tn=n(73484);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return tn.toArray}});var nn=n(78072);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return nn.window}});
6var rn=n(62893);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return rn.windowCount}});var an=n(90037);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return an.windowTime}});var on=n(28996);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return on.windowToggle}});var sn=n(65156);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return sn.windowWhen}});var cn=n(66975);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return cn.withLatestFrom}});var ln=n(5362);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return ln.zipAll}});var un=n(36977);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return un.zipWith}})},79528:function(e,t,n){var r=n(74692);r((function(){var e,t,n=r("body"),a=!1,i=!1,o=r(".navbar-overlay"),s="";function c(){if(window.innerWidth>=1200){if(a)return;e=r(window).scrollTop(),n.addClass("no-scroll").css({top:-1*e}),a=!0}}function l(){if(window.innerWidth>=1200){if(!a)return;n.removeClass("no-scroll"),r(window).scrollTop(e),a=!1,setTimeout((function(){document.querySelector(".amag-header").style.top="0",document.querySelector(".amag-header__beforeDivWhite").classList.remove("amag-header__beforeDivWhite--transparent"),document.querySelector(".amag-header__navbar").classList.remove("amag-header__navbar--transparent"),document.querySelector(".amag-header__afterDivWhite").classList.remove("amag-header__afterDivWhite--transparent")}),100)}}window.addEventListener("resize",(function(){var e=document.querySelector(".amag-pop-up__wrapper--mobile");if(window.innerWidth<1200&&!e.classList.contains("d-none")){var t=window.innerHeight;e.classList.add("d-none");var n=t-r(".amag-header ").height();r(".navbar-overlay").height(n),r(".amagNavigationItem__subMenu").height(n-100),e.classList.remove("d-none")}})),r(".amag-header__hamburger").on("click",(function(){var e=r("#header"),t=document.querySelector(".amag-direct-entry");e.toggleClass("header--overlay-open"),t.classList.toggle("d-none"),r("html").toggleClass("overflow-hidden")})),r(".amagNavigationItem__submenuToggle").on("change",(function(){if(r(this).is(":checked")){var e=r(this).closest("ul"),t=e.scrollTop();e[0].scrollTop=0,r(this).data("scrollmemory",t),r(this).closest("ul").addClass("overflow-hidden")}else{var n=r(this).closest("ul"),a=r(this).data("scrollmemory");n[0].scrollTop=a,r(this).closest("ul").removeClass("overflow-hidden")}})),r(document).on("mouseenter",".nav-link--hasOverlay",(function(){clearTimeout(t),s=r(this).data("overlay"),r("#header").addClass("header--overlay-open"),o.addClass("navbar-overlay--desktop"),c(),o.find(".amagNavigation-desktop.active")&&(o.find(".amagNavigation-desktop.active").removeClass("active"),o.find(".amagNavigation-desktop[data-overlay='"+s+"']").addClass("active"))})).on("mouseleave",".nav-link--hasOverlay",(function(){clearTimeout(t),t=setTimeout((function(){i||(r("#header").removeClass("header--overlay-open"),o.removeClass("navbar-overlay--desktop"),o.find(".amagNavigation-desktop[data-overlay='"+s+"']").removeClass("active"),l())}),1)})),r(document).on("mouseenter",".navbar-overlay",(function(){window.innerWidth>=1200&&(r(".amag-stageHomepage, .amagCh-stageCarousel").length&&(r(".amag-header__navbar").removeClass("amag-header__navbar--transparent"),r(".amag-header__beforeDivWhite").removeClass("amag-header__beforeDivWhite--transparent"),r(".amag-header__afterDivWhite").removeClass("amag-header__afterDivWhite--transparent")),i=!0,setTimeout((function(){i=!1}),100),c())})).on("mouseleave",".navbar-overlay",(function(){window.innerWidth>=1200&&(i=!1,r(".amag-stageHomepage, .amagCh-stageCarousel").length&&(r(".amag-header__navbar").addClass("amag-header__navbar--transparent"),r(".amag-header__beforeDivWhite").addClass("amag-header__beforeDivWhite--transparent"),r(".amag-header__afterDivWhite").addClass("amag-header__afterDivWhite--transparent")),r("#header").removeClass("header--overlay-open"),o.removeClass("navbar-overlay--desktop"),o.find(".amagNavigation-desktop[data-overlay='"+s+"']").removeClass("active"),l())})),r("a.amag-language").each((function(e,t){var n=r(t);n.attr("href",n.attr("href")+window.location.search)}))}))},79694:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};
6Object.defineProperty(t,"__esModule",{value:!0}),t.mergeWith=void 0;var i=n(9330);t.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.merge.apply(void 0,a([],r(e)))}},79750:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallback=void 0;var r=n(17474);t.bindCallback=function(e,t,n){return r.bindCallbackInternals(!1,e,t,n)}},80142:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;var r=n(92070),a=n(10281);t.min=function(e){return r.reduce(a.isFunction(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}},80629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInteropObservable=void 0;var r=n(2884),a=n(10281);t.isInteropObservable=function(e){return a.isFunction(e[r.observable])}},80719:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;var r=n(87699),a=n(13916),i=n(99517),o=n(67478),s=n(73484);t.joinAllInternals=function(e,t){return i.pipe(s.toArray(),o.mergeMap((function(t){return e(t)})),t?a.mapOneOrManyArgs(t):r.identity)}},80751:function(){var e;e=window.location.pathname,dataLayer.push({event:"custom_page_view",pagePath:e})},81713:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;var r=n(62326),a=n(85345),i=n(65212),o=n(19724),s=n(9619),c=n(17214),l=n(28619);function u(e){throw new t.TimeoutError(e)}t.TimeoutError=s.createErrorClass((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}})),t.timeout=function(e,t){var n=a.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,s=n.first,d=n.each,h=n.with,p=void 0===h?u:h,f=n.scheduler,m=void 0===f?null!=t?t:r.asyncScheduler:f,v=n.meta,g=void 0===v?null:v;if(null==s&&null==d)throw new TypeError("No timeout provided.");return i.operate((function(e,t){var n,r,a=null,i=0,u=function(e){r=l.executeSchedule(t,m,(function(){try{n.unsubscribe(),o.innerFrom(p({meta:g,lastValue:a,seen:i})).subscribe(t)}catch(e){t.error(e)}}),e)};n=e.subscribe(c.createOperatorSubscriber(t,(function(e){null==r||r.unsubscribe(),i++,t.next(a=e),d>0&&u(d)}),void 0,void 0,(function(){(null==r?void 0:r.closed)||null==r||r.unsubscribe(),a=null}))),!i&&u(null!=s?"number"==typeof s?s:+s-m.now():d)}))}},81752:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});class r{constructor(e){this.contextId=e}}},82044:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestWith=void 0;var i=n(64948);t.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.combineLatest.apply(void 0,a([],r(e)))}},82139:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;var r=n(19724),a=n(76808),i=n(65212),o=n(17214);t.repeatWhen=function(e){return i.operate((function(t,n){var i,s,c=!1,l=!1,u=!1,d=function(){return u&&l&&(n.complete(),!0)},h=function(){u=!1,i=t.subscribe(o.createOperatorSubscriber(n,void 0,(function(){u=!0,!d()&&(s||(s=new a.Subject,r.innerFrom(e(s)).subscribe(o.createOperatorSubscriber(n,(function(){i?h():c=!0}),(function(){l=!0,d()})))),s).next()}))),c&&(i.unsubscribe(),i=null,c=!1,h())};h()}))}},82284:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:function(){return r}})},82955:function(e,t,n){"use strict";
vendor: 4,546 bytes, line 6
6Object.defineProperty(t,"__esModule",{value:!0}),t.publishBehavior=void 0;var r=n(97314),a=n(14359);t.publishBehavior=function(e){return function(t){var n=new r.BehaviorSubject(e);return new a.ConnectableObservable(t,(function(){return n}))}}},85345:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},85501:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(63662);function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},85555:function(e,t,n){var r=n(74692);e.exports=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(){a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),s=new A(a||[]);return r(o,"_invoke",{value:S(e,n,s)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var h={};function p(){}function f(){}function m(){}var v={};l(v,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(k([])));y&&y!==t&&n.call(y,o)&&(v=y);var _=m.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function a(r,i,o,s){var c=d(e[r],e,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){a("next",e,o,s)}),(function(e){a("throw",e,o,s)})):t.resolve(u).then((function(e){l.value=e,o(l)}),(function(e){return a("throw",e,o,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function S(e,t,n){var r="suspendedStart";return function(a,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw i;return T()}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var s=C(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var a=d(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,h;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);
vendor: 4,554 bytes, line 6
6if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return f.prototype=m,r(_,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:f,configurable:!0}),f.displayName=l(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,s,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,a,i){void 0===i&&(i=Promise);var o=new w(u(t,n,r,a),i);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},b(_),l(_,c,"Generator"),l(_,o,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=k,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;x(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function i(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){i(o,r,a,s,c,"next",e)}function c(e){i(o,r,a,s,c,"throw",e)}s(void 0)}))}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S(r.key),r)}}function l(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}
6function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function m(e,t,n){return m=f()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&p(a,n.prototype),a},m.apply(null,arguments)}function v(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function g(e){var t="function"==typeof Map?new Map:void 0;return g=function(e){if(null===e||!v(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return m(e,arguments,h(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),p(n,e)},g(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}function b(e){var t=f();return function(){var n,r=h(e);if(t){var a=h(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _(this,n)}}function w(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function S(e){var t=w(e,"string");return"symbol"==typeof t?t:String(t)}var C=void 0!==n.g&&"[object global]"==={}.toString.call(n.g);function E(e,t){return 0===e.indexOf(t.toLowerCase())?e:"".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function x(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}function A(e){return!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e}function k(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function T(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function L(e){for(var t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.",""),r=0,a=[".videoji.hk",".vimeo.work",".videoji.cn"];r<a.length;r++){var i=a[r];if(n.endsWith(i))return n}return"vimeo.com"}function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.url,r=t||n;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(A(r))return"https://vimeo.com/".concat(r);if(k(r))return r.replace("http:","https:");if(t)throw new TypeError("â".concat(t,"â is not a valid video id."));throw new TypeError("â".concat(r,"â is not a vimeo.com url."))}var D=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",i="string"==typeof t?[t]:t;return i.forEach((function(t){e[r](t,n)})),{cancel:function(){return i.forEach((function(t){return e[a](t,n)}))}}},P=void 0!==Array.prototype.indexOf,O="undefined"!=typeof window&&void 0!==window.postMessage;if(!(C||P&&O))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function M(e,t){return e(t={exports:{}},t.exports),t.exports}!function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),r=function(e,t,r){n?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:r}):e[t]=r};e.WeakMap=function(){function e(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id",i("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function n(e,n){if(!a(e)||!t.call(e,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof e)}function i(e){return e+"_"+o()+"."+o()}function o(){return Math.random().toString().substring(2)}return r(e.prototype,"delete",(function(e){if(n(this,"delete"),!a(e))return!1;var t=e[this._id];return!(!t||t[0]!==e||(delete e[this._id],0))})),r(e.prototype,"get",(function(e){if(n(this,"get"),a(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),r(e.prototype,"has",(function(e){if(n(this,"has"),!a(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),r(e.prototype,"set",(function(e,t){if(n(this,"set"),!a(e))throw new TypeError("Invalid value used as weak map key");var i=e[this._id];return i&&i[0]===e?(i[1]=t,this):(r(e,this._id,[e,t]),this)})),r(e,"_polyfill",!0),e}()}function a(e){return Object(e)===e}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:R);var q=M((function(e){var t,n,r;r=function(){var e,t,n,r=Object.prototype.toString,a="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function i(e,r){n.add(e,r),t||(t=a(n.drain))}function o(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)c(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}
6function c(e,t,n){var r,a;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(a=o(r))?a.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function l(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=o(e))?i((function(){var r=new h(n);try{t.call(e,(function(){l.apply(r,arguments)}),(function(){u.apply(r,arguments)}))}catch(e){u.call(r,e)}})):(n.msg=e,n.state=1,n.chain.length>0&&i(s,n))}catch(e){u.call(new h(n),e)}}}function u(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&i(s,t))}function d(e,t,n,r){for(var a=0;a<t.length;a++)!function(a){e.resolve(t[a]).then((function(e){n(a,e)}),r)}(a)}function h(e){this.def=e,this.triggered=!1}function p(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function f(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new p(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t})),t.chain.push(r),0!==t.state&&i(s,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){l.call(t,e)}),(function(e){u.call(t,e)}))}catch(e){u.call(t,e)}}n=function(){var e,n,r;function a(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){r=new a(t,i),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var m=e({},"constructor",f,!1);return f.prototype=m,e(m,"__NPO__",0,!1),e(f,"resolve",(function(e){var t=this;return e&&"object"==typeof e&&1===e.__NPO__?e:new t((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)}))})),e(f,"reject",(function(e){return new this((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)}))})),e(f,"all",(function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var a=e.length,i=Array(a),o=0;d(t,e,(function(e,t){i[e]=t,++o===a&&n(i)}),r)}))})),e(f,"race",(function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t((function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");d(t,e,(function(e,t){n(t)}),r)}))})),f},(n=R)[t="Promise"]=n[t]||r(),e.exports&&(e.exports=n[t])})),N=new WeakMap;function V(e,t,n){var r=N.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),N.set(e.element,r)}function F(e,t){return(N.get(e.element)||{})[t]||[]}function B(e,t,n){var r=N.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],N.set(e.element,r),!0;var a=r[t].indexOf(n);return-1!==a&&r[t].splice(a,1),N.set(e.element,r),r[t]&&0===r[t].length}function j(e,t){var n=F(e,t);if(n.length<1)return!1;var r=n.shift();return B(e,t,r),r}function H(e,t){var n=N.get(e);N.set(t,n),N.delete(e)}function G(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function U(e,t,n){if(e.element.contentWindow&&e.element.contentWindow.postMessage){var r={method:t};void 0!==n&&(r.value=n);var a=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));a>=8&&a<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}}function W(e,t){var n,r=[];if((t=G(t)).event)"error"===t.event&&F(e,t.data.method).forEach((function(n){var r=new Error(t.data.message);r.name=t.data.name,n.reject(r),B(e,t.data.method,n)})),r=F(e,"event:".concat(t.event)),n=t.data;else if(t.method){var a=j(e,t.method);a&&(r.push(a),n=t.value)}r.forEach((function(t){try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}}))}var z=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return z.reduce((function(t,n){var r=e.getAttribute("data-vimeo-".concat(n));return(r||""===r)&&(t[n]=""===r?1:r),t}),t)}function Y(e,t){var n=e.html;if(!t)throw new TypeError("An element must be provided");
6if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((function(r,a){if(!k(e))throw new TypeError("â".concat(e,"â is not a vimeo.com url."));var i=L(e),o="https://".concat(i,"/api/oembed.json?url=").concat(encodeURIComponent(e));for(var s in t)t.hasOwnProperty(s)&&(o+="&".concat(s,"=").concat(encodeURIComponent(t[s])));var c="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;c.open("GET",o,!0),c.onload=function(){if(404!==c.status)if(403!==c.status)try{var t=JSON.parse(c.responseText);if(403===t.domain_status_code)return Y(t,n),void a(new Error("â".concat(e,"â is not embeddable.")));r(t)}catch(e){a(e)}else a(new Error("â".concat(e,"â is not embeddable.")));else a(new Error("â".concat(e,"â was not found.")))},c.onerror=function(){var e=c.status?" (".concat(c.status,")"):"";a(new Error("There was an error fetching the embed code from Vimeo".concat(e,".")))},c.send()}))}function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(e){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(e))};t.forEach((function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var t=$(e);Z(I(t),t,e).then((function(t){return Y(t,e)})).catch(n)}catch(e){n(e)}}))}function X(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var t=function(t){if(k(t.origin)&&t.data&&"spacechange"===t.data.event)for(var n=e.querySelectorAll("iframe"),r=0;r<n.length;r++)if(n[r].contentWindow===t.source){n[r].parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}};window.addEventListener("message",t)}}function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var t=function(t){if(k(t.origin)){var n=G(t.data);if(n&&"ready"===n.event)for(var r=e.querySelectorAll("iframe"),a=0;a<r.length;a++){var i=r[a],o=i.contentWindow===t.source;T(i.src)&&o&&new oe(i).callMethod("appendVideoMetadata",window.location.href)}}};window.addEventListener("message",t)}}function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam
6=!0;var t=function(e){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(e))},n=function(n){if(k(n.origin)){var r=G(n.data);if(r&&"ready"===r.event)for(var a=e.querySelectorAll("iframe"),i=function(){var e=a[o],r=e.contentWindow===n.source;if(T(e.src)&&r){var i=new oe(e);i.getVideoId().then((function(e){var t=new RegExp("[?&]vimeo_t_".concat(e,"=([^&#]*)")).exec(window.location.href);if(t&&t[1]){var n=decodeURI(t[1]);i.setCurrentTime(n)}})).catch(t)}},o=0;o<a.length;o++)i()}};window.addEventListener("message",n)}}function ee(){var e=function(){for(var e,t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,r=t.length,a={};n<r;n++)if((e=t[n])&&e[1]in document){for(n=0;n<e.length;n++)a[t[0][n]]=e[n];return a}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:function(t){return new Promise((function(r,a){var i=function e(){n.off("fullscreenchange",e),r()};n.on("fullscreenchange",i);var o=(t=t||document.documentElement)[e.requestFullscreen]();o instanceof Promise&&o.then(i).catch(a)}))},exit:function(){return new Promise((function(t,r){if(n.isFullscreen){var a=function e(){n.off("fullscreenchange",e),t()};n.on("fullscreenchange",a);var i=document[e.exitFullscreen]();i instanceof Promise&&i.then(a).catch(r)}else t()}))},on:function(e,n){var r=t[e];r&&document.addEventListener(r,n)},off:function(e,n){var r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get:function(){return Boolean(document[e.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[e.fullscreenEnabled])}}}),n}var te={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},ne=function(e){d(r,e);var n=b(r);function r(e,i){var c,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=arguments.length>3?arguments[3]:void 0;return s(this,r),u(y(c=n.call(this)),"logger",void 0),u(y(c),"speedAdjustment",0),u(y(c),"adjustSpeed",function(){var e=o(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c.speedAdjustment!==n){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.getPlaybackRate();case 4:return e.t0=e.sent,e.t1=c.speedAdjustment,e.t2=e.t0-e.t1,e.t3=n,r=e.t2+e.t3,c.log("New playbackRate: ".concat(r)),e.next=12,t.setPlaybackRate(r);case 12:c.speedAdjustment=n;case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),c.logger=d,c.init(i,e,t(t({},te),l)),c}return l(r,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:function(){var e=o(a().mark((function e(t,n,r){var i,o,s,c=this;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForTOReadyState(t,"open");case 2:if("viewer"!==r.role){e.next=10;break}return e.next=5,this.updatePlayer(t,n,r);case 5:i=D(t,"change",(function(){return c.updatePlayer(t,n,r)})),o=this.maintainPlaybackPosition(t,n,r),this.addEventListener("disconnect",(function(){o.cancel(),i.cancel()})),e.next=14;break;case 10:return e.next=12,this.updateTimingObject(t,n);case 12:s=D(n,["seeked","play","pause","ratechange"],(function(){return c.updateTimingObject(t,n)}),"on","off"),this.addEventListener("disconnect",(function(){return s.cancel()}));case 14:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"updateTimingObject",value:function(){var e=o(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,n.getCurrentTime();case 3:return e.t1=e.sent,e.next=6,n.getPaused();case 6:if(!e.sent){e.next=10;break}e.t2=0,e.next=13;break;case 10:return e.next=12,n.getPlaybackRate();case 12:e.t2=e.sent;case 13:e.t3=e.t2,e.t4={position:e.t1,velocity:e.t3},e.t0.update.call(e.t0,e.t4);case 16:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"updatePlayer",value:function(){var e=o(a().mark((function e(t,n,r){var i,s,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.query(),s=i.position,c=i.velocity,"number"==typeof s&&n.setCurrentTime(s),"number"!=typeof c){e.next=25;break}if(0!==c){e.next=11;break}return e.next=6,n.getPaused();case 6:if(e.t0=e.sent,!1!==e.t0){e.next=9;break}n.pause();case 9:e.next=25;break;case 11:if(!(c>0)){e.next=25;break}return e.next=14,n.getPaused();case 14:if(e.t1=e.sent,!0!==e.t1){e.next=19;break}return e.next=18,n.play().catch(function(){var e=o(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("NotAllowedError"!==t.name||!r.autoPlayMuted){e.next=5;break}return e.next=3,n.setMuted(!0);case 3:return e.next=5,n.play().catch((function(e){return console.error("Couldn't play the video from TimingSrcConnector. Error:",e)}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 18:this.updatePlayer(t,n,r);case 19:return e.next=21,n.getPlaybackRate();case 21:if(e.t2=e.sent,e.t3=c,e.t2===e.t3){e.next=25;break}n.setPlaybackRate(c);case 25:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"maintainPlaybackPosition",value:function(e,t,n){var r=this,i=n.allowedDrift,s=n.maxAllowedDrift,c=n.minCheckInterval,l=n.maxRateAdjustment,u=n.maxTimeToCatchUp,d=1e3*Math.min(u,Math.max(c,s)),h=function(){var n=o(a().mark((function n(){var o,c,d,h,p;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=0===e.query().velocity,n.t0){n.next=6;break}return n.next=4,t.getPaused();case 4:n.t1=n.sent,n.t0=!0===n.t1;case 6:if(!n.t0){n.next=8;break}return n.abrupt("return");case 8:return n.t2=e.query().position,n.next=11,t.getCurrentTime();case 11:if(n.t3=n.sent,o=n.t2-n.t3,c=Math.abs(o),r.log("Drift: ".concat(o)),!(c>s)){n.next=22;break}return n.next=18,r.adjustSpeed(t,0);case 18:t.setCurrentTime(e.query().position),r.log("Resync by currentTime"),n.next=29;break;case 22:if(!(c>i)){n.next=29;break}return p=(d=c/u)<(h=l)?(h-d)/2:h,n.next=28,r.adjustSpeed(t,p*Math.sign(o));case 28:r.log("Resync by playbackRate");case 29:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),p=setInterval((function(){return h()}),d);return{cancel:function(){return clearInterval(p)}}}},{key:"log",value:function(e){var t;null===(t=this.logger)||void 0===t||t.call(this,"TimingSrcConnector: ".concat(e))}},{key:"waitForTOReadyState",value:function(e,t){return new Promise((function(n){!function r(){e.readyState===t?n():e.addEventListener("readystatechange",r,{once:!0})}()}))}}]),r}(g(EventTarget)),re=new WeakMap,ae=new WeakMap,ie={},oe=function(){function e(t){var n=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s(this,e),window.jQuery&&t instanceof r&&(t.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),t=t[0]),"undefined"!=typeof document&&"string"==typeof t&&(t=document.getElementById(t)),!x(t))throw new TypeError("You must pass either a valid element or a valid id.");
6if("IFRAME"!==t.nodeName){var i=t.querySelector("iframe");i&&(t=i)}if("IFRAME"===t.nodeName&&!k(t.getAttribute("src")||""))throw new Error("The player element passed isnât a Vimeo embed.");if(re.has(t))return re.get(t);this._window=t.ownerDocument.defaultView,this.element=t,this.origin="*";var o=new q((function(e,r){if(n._onMessage=function(t){if(k(t.origin)&&n.element.contentWindow===t.source){"*"===n.origin&&(n.origin=t.origin);var a=G(t.data);if(a&&"error"===a.event&&a.data&&"ready"===a.data.method){var i=new Error(a.data.message);return i.name=a.data.name,void r(i)}var o=a&&"ready"===a.event,s=a&&"ping"===a.method;if(o||s)return n.element.setAttribute("data-ready","true"),void e();W(n,a)}},n._window.addEventListener("message",n._onMessage),"IFRAME"!==n.element.nodeName){var i=$(t,a);Z(I(i),i,t).then((function(e){var r=Y(e,t);return n.element=r,n._originalElement=t,H(t,r),re.set(n.element,n),e})).catch(r)}}));if(ae.set(this,o),re.set(this.element,this),"IFRAME"===this.element.nodeName&&U(this,"ping"),ie.isEnabled){var c=function(){return ie.exit()};this.fullscreenchangeHandler=function(){ie.isFullscreen?V(n,"event:exitFullscreen",c):B(n,"event:exitFullscreen",c),n.ready().then((function(){U(n,"fullscreenchange",ie.isFullscreen)}))},ie.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return l(e,[{key:"callMethod",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];if(null==e)throw new TypeError("You must pass a method name.");return new q((function(n,a){return t.ready().then((function(){V(t,e,{resolve:n,reject:a}),U(t,e,r)})).catch(a)}))}},{key:"get",value:function(e){var t=this;return new q((function(n,r){return e=E(e,"get"),t.ready().then((function(){V(t,e,{resolve:n,reject:r}),U(t,e)}
6)).catch(r)}))}},{key:"set",value:function(e,t){var n=this;return new q((function(r,a){if(e=E(e,"set"),null==t)throw new TypeError("There must be a value to set.");return n.ready().then((function(){V(n,e,{resolve:r,reject:a}),U(n,e,t)})).catch(a)}))}},{key:"on",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===F(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch((function(){})),V(this,"event:".concat(e),t)}},{key:"off",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");B(this,"event:".concat(e),t)&&this.callMethod("removeEventListener",e).catch((function(e){}))}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=ae.get(this)||new q((function(e,t){t(new Error("Unknown player. Probably unloaded."))}));return q.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return ie.isEnabled?ie.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return ie.isEnabled?ie.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return ie.isEnabled?q.resolve(ie.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var e=this;return new q((function(t){if(ae.delete(e),re.delete(e.element),e._originalElement&&(re.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&"IFRAME"===e.element.nodeName&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&"DIV"===e.element.nodeName&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var n=e.element.querySelector("iframe");n&&n.parentNode&&(n.parentNode.parentNode&&e._originalElement&&e._originalElement!==n.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n))}e._window.removeEventListener("message",e._onMessage),ie.isEnabled&&ie.off("fullscreenchange",e.fullscreenchangeHandler),t()}))}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(e){return this.set("cameraProps",e)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return q.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"setColors",value:function(e){if(!Array.isArray(e))return new q((function(e,t){return t(new TypeError("Argument must be an array."))}));var t=new q((function(e){return e(null)})),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return q.all(n)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}
6},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"setMuted",value:function(e){return this.set("muted",e)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(e){return this.set("quality",e)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}},{key:"setTimingSrc",value:function(){var e=o(a().mark((function e(t,n){var r,i=this;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return e.next=4,this.ready();case 4:return r=new ne(this,t,n),U(this,"notifyTimingObjectConnect"),r.addEventListener("disconnect",(function(){return U(i,"notifyTimingObjectDisconnect")})),e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),e}();return C||(ie=ee(),K(),X(),J(),Q()),oe}()},85761:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lastValueFrom=void 0;var r=n(59328);t.lastValueFrom=function(e,t){var n="object"==typeof t;return new Promise((function(a,i){var o,s=!1;e.subscribe({next:function(e){o=e,s=!0},error:i,complete:function(){s?a(o):n?a(t.defaultValue):i(new r.EmptyError)}})}))}},85934:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;var r=n(65212),a=n(17214);t.filter=function(e,t){return r.operate((function(n,r){var i=0;n.subscribe(a.createOperatorSubscriber(r,(function(n){return e.call(t,n,i++)&&r.next(n)})))}))}},85972:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(98800),a=n(34703);class i extends a.W{agentIdentifier=(0,r.LA)(16)}},86297:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInvalidObservableTypeError=void 0,t.createInvalidObservableTypeError=function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},86632:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;var r=n(26872),a=n(19724),i=n(65212),o=n(17214);t.exhaustMap=function e(t,n){return n?function(i){return i.pipe(e((function(e,i){return a.innerFrom(t(e,i)).pipe(r.map((function(t,r){return n(e,t,i,r)})))})))}:i.operate((function(e,n){var r=0,i=null,s=!1;e.subscribe(o.createOperatorSubscriber(n,(function(e){i||(i=o.createOperatorSubscriber(n,void 0,(function(){i=null,s&&n.complete()})),a.innerFrom(t(e,r++)).subscribe(i))}
vendor: 1,521 bytes, line 6
6),(function(){s=!0,!i&&n.complete()})))}))}},87281:function(e,t,n){"use strict";var r=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.generate=void 0;var a=n(87699),i=n(68596),o=n(35884),s=n(36805);t.generate=function(e,t,n,c,l){var u,d,h,p;function f(){var e;return r(this,(function(r){switch(r.label){case 0:e=p,r.label=1;case 1:return t&&!t(e)?[3,4]:[4,h(e)];case 2:r.sent(),r.label=3;case 3:return e=n(e),[3,1];case 4:return[2]}}
6))}return 1===arguments.length?(p=(u=e).initialState,t=u.condition,n=u.iterate,d=u.resultSelector,h=void 0===d?a.identity:d,l=u.scheduler):(p=e,!c||i.isScheduler(c)?(h=a.identity,l=c):h=c),o.defer(l?function(){return s.scheduleIterable(f(),l)}:f)}},87688:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(96657);class a{constructor(e,t){this.agentRef=e,this.ee=e?.ee,this.featureName=t,this.blocked=!1}deregisterDrain(){(0,r.x3)(this.agentRef,this.featureName)}}},87699:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},88246:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;var r=n(48051),a=n(50439),i=n(47058),o=n(87699),s=n(13916),c=n(26404),l=n(15810),u=n(17214),d=n(28619);function h(e,t,n){return void 0===n&&(n=o.identity),function(r){p(t,(function(){for(var a=e.length,o=new Array(a),s=a,c=a,l=function(a){p(t,(function(){var l=i.from(e[a],t),d=!1;l.subscribe(u.createOperatorSubscriber(r,(function(e){o[a]=e,d||(d=!0,c--),c||r.next(n(o.slice()))}),(function(){--s||r.complete()})))}),r)},d=0;d<a;d++)l(d)}),r)}}function p(e,t,n){e?d.executeSchedule(n,e,t):t()}t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=c.popScheduler(e),u=c.popResultSelector(e),d=a.argsArgArrayOrObject(e),p=d.args,f=d.keys;if(0===p.length)return i.from([],n);var m=new r.Observable(h(p,n,f?function(e){return l.createObject(f,e)}:o.identity));return u?m.pipe(s.mapOneOrManyArgs(u)):m},t.combineLatestInit=h},88269:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairs=void 0;var r=n(47058);t.pairs=function(e,t){return r.from(Object.entries(e),t)}},88589:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;var r=n(92070);t.count=function(e){return r.reduce((function(t,n,r){return!e||e(n,r)?t+1:t}),0)}},88616:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0}),t.fromEvent=void 0;var a=n(19724),i=n(48051),o=n(67478),s=n(94975),c=n(10281),l=n(13916),u=["addListener","removeListener"],d=["addEventListener","removeEventListener"],h=["on","off"];function p(e,t){return function(n){return function(r){return e[n](t,r)}}}t.fromEvent=function e(t,n,f,m){if(c.isFunction(f)&&(m=f,f=void 0),m)return e(t,n,f).pipe(l.mapOneOrManyArgs(m));var v=r(function(e){return c.isFunction(e.addEventListener)&&c.isFunction(e.removeEventListener)}(t)?d.map((function(e){return function(r){return t[e](n,r,f)}})):function(e){return c.isFunction(e.addListener)&&c.isFunction(e.removeListener)}(t)?u.map(p(t,n)):function(e){return c.isFunction(e.on)&&c.isFunction(e.off)}(t)?h.map(p(t,n)):[],2),g=v[0],y=v[1];if(!g&&s.isArrayLike(t))return o.mergeMap((function(t){return e(t,n,f)}))(a.innerFrom(t));if(!g)throw new TypeError("Invalid event target");return new i.Observable((function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return g(t),function(){return y(t)}}))}},88877:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;var r=n(65212),a=n(19724),i=n(17214);t.audit=function(e){return r.operate((function(t,n){var r=!1,o=null,s=null,c=!1,l=function(){if(null==s||s.unsubscribe(),s=null,r){r=!1;var e=o;o=null,n.next(e)}c&&n.complete()},u=function(){s=null,c&&n.complete()};t.subscribe(i.createOperatorSubscriber(n,(function(t){r=!0,o=t,s||a.innerFrom(e(t)).subscribe(s=i.createOperatorSubscriber(n,l,u))}),(function(){c=!0,(!r||!s||s.closed)&&n.complete()})))}))}},89244:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineAll=void 0;var r=n(67933);t.combineAll=r.combineLatestAll},89334:function(e,t,n){var r=n(74692);r(document).ready((function(){if(document.querySelector(".amag-tabsWrapper")){var e=function(e){var t=r(e).closest(".amag-tabsWrapper");return r(t).attr("id")}
6,t=function(e,t){for(var n=r(t),a=r(e),i=n.width(),o=a.outerWidth(!0),s=a.index(),c=0,l=n.find("li"),u=0;u<=s;u++)c+=r(l[u]).outerWidth(!0);n.scrollLeft(Math.max(0,c-(i-o)/2))},n=r(document).find(".amag-tabsWrapper");if(r(n).each((function(){var e="amag-tabs-"+r("div").index(this);r(this).attr("id",e);var t=r("#"+e+" .amag-tabsWrapper__tabs.cmp-tabs .amag-tabsWrapper__tabcontent.cmp-tabs__tabpanel").length;r("#"+e).find(".amag-tabsWrapper__arrow--count").html(t),t<=1&&(r("#"+e).find(".amag-tabsWrapper__arrow").removeClass("d-sm-inline-flex"),r("#"+e).find(".amag-tabsWrapper__arrow").addClass("d-sm-none"))})),r(".btnNext").click((function(){var n=e(this),a=r("#"+n+" .amag-tabsWrapper__tabs.cmp-tabs .amag-tabsWrapper__tabcontent.cmp-tabs__tabpanel").length,i=r("#"+n+" .amag-tabsWrapper__tabs.cmp-tabs .amag-tabsWrapper__tabcontent.cmp-tabs__tabpanel--active").index();if(i!=a){r("#"+n+" .amag-tabsWrapper__tab.cmp-tabs__tab--active").next()[0].click(),r("#"+n+" .amag-tabsWrapper__arrow--current").html(i+1);var o=r(".amag-tabsWrapper__tablist.text-center.cmp-tabs__tablist"),s=o.find(".cmp-tabs__tab.amag-tabsWrapper__tab.cmp-tabs__tab--active");t(s,o)}})),r(".btnPrev").click((function(){var n=e(this),a=r("#"+n+" .amag-tabsWrapper__tabs.cmp-tabs .amag-tabsWrapper__tabcontent.cmp-tabs__tabpanel--active").index();if(1!=a){r("#"+n+" .amag-tabsWrapper__tab.cmp-tabs__tab--active").prev()[0].click(),r("#"+n+" .amag-tabsWrapper__arrow--current").html(a-1);var i=r(".amag-tabsWrapper__tablist.text-center.cmp-tabs__tablist"),o=i.find(".cmp-tabs__tab.amag-tabsWrapper__tab.cmp-tabs__tab--active");t(o,i)}})),r(".amag-tabsWrapper__tab").click((function(){var t=e(this);window.setTimeout((function(){var e=r("#"+t+" .amag-tabsWrapper__tabs.cmp-tabs .amag-tabsWrapper__tabcontent.cmp-tabs__tabpanel--active").index();r("#"+t+" .amag-tabsWrapper__arrow--current").html(e)}
6),100)})),r(".amag-tabsWrapper__tabcontent .amag-contactPersonWrapper .amag-ctaWrapper__button").length){var a=r(document).find(".amag-tabsWrapper__tabcontent .amag-contactPersonWrapper .amag-ctaWrapper__button");r(a).each((function(){var e=r(this).closest(".amag-tabsWrapper__tabcontent"),t=r(this).attr("href"),n=r(e).attr("data-brandselector"),a=t.concat("?filter="+n);r(this).attr("href",a)}))}}}))},89394:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(64243),a=n(73893),i=n(27800),o=n(60519);function s(e){return(0,r.A)(e)||(0,a.A)(e)||(0,i.A)(e)||(0,o.A)()}},89795:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;var r=n(48051),a=n(19724),i=n(7652),o=n(17214);function s(e){return function(t){for(var n=[],r=function(r){n.push(a.innerFrom(e[r]).subscribe(o.createOperatorSubscriber(t,(function(e){if(n){for(var a=0;a<n.length;a++)a!==r&&n[a].unsubscribe();n=null}t.next(e)}))))},i=0;n&&!t.closed&&i<e.length;i++)r(i)}}t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=i.argsOrArgArray(e)).length?a.innerFrom(e[0]):new r.Observable(s(e))},t.raceInit=s},90037:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;var r=n(76808),a=n(62326),i=n(69879),o=n(65212),s=n(17214),c=n(54830),l=n(26404),u=n(28619);t.windowTime=function(e){for(var t,n,d=[],h=1;h<arguments.length;h++)d[h-1]=arguments[h];var p=null!==(t=l.popScheduler(d))&&void 0!==t?t:a.asyncScheduler,f=null!==(n=d[0])&&void 0!==n?n:null,m=d[1]||1/0;return o.operate((function(t,n){var a=[],o=!1,l=function(e){var t=e.window,n=e.subs;t.complete(),n.unsubscribe(),c.arrRemove(a,e),o&&d()},d=function(){if(a){var t=new i.Subscription;n.add(t);var o=new r.Subject,s={window:o,subs:t,seen:0};a.push(s),n.next(o.asObservable()),u.executeSchedule(t,p,(function(){return l(s)}),e)}};null!==f&&f>=0?u.executeSchedule(n,p,d,f,!0):o=!0,d();var h=function(e){return a.slice().forEach(e)},v=function(e){h((function(t){var n=t.window;return e(n)})),e(n),n.unsubscribe()};return t.subscribe(s.createOperatorSubscriber(n,(function(e){h((function(t){t.window.next(e),m<=++t.seen&&l(t)}))}),(function(){return v((function(e){return e.complete()}))}),(function(e){return v((function(t){return t.error(e)}))}))),function(){a=null}}))}},90168:function(e,t,n){n(74692)((function(){if(document.querySelector(".amag-socialFeed")){var e=!1,t="",n="",r=!1,a="",i="",o=!1,s="",c="",l=!1,u="",d="",h=!1,p="",f="",m=!1,v="",g="",y=function(e,t,n){var r=document.querySelector("#".concat(e)),a=r.getAttribute("data-instagram"),i=r.getAttribute("data-twitter"),o=r.getAttribute("data-facebook"),s=r.getAttribute("data-linkedin"),c=r.getAttribute("data-youtube"),l=r.getAttribute("data-amagblog"),u='\n <svg xmlns="http://www.w3.org/2000/svg" height=24 width=24 viewBox="0 0 30 30" fill="#6f6c66">\n <path d="M7.34,7.12c0-2.15,1.14-3.29,8.3-3.29C23.47,3.83,26,5.21,26,11.7v9c0,6.3-3.15,7.44-10.36,7.44S6,27,6,20.58c0-5.3,1.62-7.44,9.36-7.44h4.77v-1c0-2.34-.91-2.91-3.82-2.91s-5.06.57-6.44.57C8,9.84,7.34,8.79,7.34,7.12ZM20.13,18H15c-2.62,0-3.24.57-3.24,2.43S12.49,23,15.83,23s4.3-.48,4.3-1.82Z"/>\n </svg>\n ';return"instagram"===t&&null!==a?u='<img src="'.concat(a,'" alt="').concat(n,'" title="').concat(n,'">'):"twitter"===t&&null!==i?u='<img src="'.concat(i,'" alt="').concat(n,'" title="').concat(n,'">'):"facebook"===t&&null!==o?u='<img src="'.concat(o,'" alt="').concat(n,'" title="').concat(n,'">'):"linkedin"===t&&null!==s?u='<img src="'.concat(s,'" alt="').concat(n,'" title="').concat(n,'">'):"youtube"===t&&null!==c?u='<img src="'.concat(c,'" alt="').concat(n,'" title="').concat(n,'">'):"rss"===t&&null!==l&&(u='<img src="'.concat(l,'" alt="').concat(n,'" title="').concat(n,'">')),u},_=function(_,b,w){var S,C=b.source,E="rss"==C,x=void 0!==b.description,A=void 0!==b.title,k=x?b.description:"",T=x?(S=b.description).length<280?S:S.substr(0,280)+" ...":"",L=A?b.title:"",I=A?L:x?k:"",D=""!==b.posted_at?function(e){return((e=new Date(e)).getDate().toString().length>1?e.getDate().toString():"0"+e.getDate().toString())+"."+((e.getMonth()+1).toString().length>1?(e.getMonth()+1).toString():"0"+(e.getMonth()+1).toString())+"."+e.getFullYear()}(b.posted_at):"",P=b.connection?b.connection.name.replace(/^@/,""):b.user_name?b.user_name:"",O=!!b.connection&&null!==b.connection.link,R=O?b.connection.link:E?b.link:b.user_link,M=b.media_type,q="image"===M||"video"===M?b.image:"",N="video"===M?"amag-socialFeed__isVideo":"",V=b.link,F="";"image"===M?F='\n <a href="'.concat(V,'" title="').concat(I,'">\n <div class="amag-socialFeed__imageContainer">\n <img src="').concat(q,'" alt="').concat(I,'" title="').concat(I,'">\n </div>\n </a>\n '):"video"===M&&(F='\n <a href="'.concat(V,'" title="').concat(I,'">\n <div class="amag-socialFeed__imageContainer">\n <img src="').concat(q,'" alt="').concat(I,'" title="').concat(I,'">\n <div class="amag-socialFeed__playButton">\n <div class="amag-socialFeed__playButton--darken">\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 477.886 477.886">\n <path d="M476.091,231.332c-1.654-3.318-4.343-6.008-7.662-7.662L24.695,1.804C16.264-2.41,6.013,1.01,1.8,9.442\n c-1.185,2.371-1.801,4.986-1.8,7.637v443.733c-0.004,9.426,7.633,17.07,17.059,17.075c2.651,0.001,5.266-0.
6615,7.637-1.8\n L468.429,254.22C476.865,250.015,480.295,239.768,476.091,231.332z"/>\n </svg>\n </div>\n </div>\n </div>\n </a>\n '));var B="";if(!0===A?B='\n <div class="amag-socialFeed__headline">\n <h4>'.concat(L,"</h4>\n </div>\n "):!0===x&&(B='\n <div class="amag-socialFeed__text">\n <p>'.concat(T,"</p>\n </div>\n ")),"rss"==C&&!O){var j=new URL(R);R=j.pathname.startsWith("/fr/")?j.origin+"/fr/":j.pathname.startsWith("/it/")?j.origin+"/it/":j.pathname.startsWith("/en/")?j.origin+"/en/":j.pathname.startsWith("/de/")?j.origin+"/de/":j.origin}!function(y,_,b){if(/[a,A][m,M][a,A][g,G]/g.test(b))switch(y){case"instagram":!1===e&&(e=!0),""===t&&(t=_),""===n&&(n=b);break;case"twitter":!1===r&&(r=!0),""===a&&(a=_),""===i&&(i=b);break;case"facebook":!1===o&&(o=!0),""===s&&(s=_),""===c&&(c=b);break;case"linkedin":!1===l&&(l=!0),""===u&&(u=_),""===d&&(d=b);break;case"youtube":!1===h&&(h=!0),""===p&&(p=_),""===f&&(f=b);break;case"rss":!1===m&&(m=!0),""===v&&(v=_),""===g&&(g=b)}}(C,R,P);var H=y(_,C,I);return'\n <div class="col-12 amag-socialFeed__feed" id="'.concat(_,"-").concat(w,'">\n <div class="amag-socialFeed__feedInner">\n <div class="amag-socialFeed__feedImage ').concat(N,'">\n ').concat(F,'\n </div>\n <div class="amag-socialFeed__feedContent">\n <div class="amag-socialFeed__feedText">\n <a href="').concat(V,'" title="').concat(I,'">\n ').concat(B,'\n </a>\n </div>\n <div class="amag-socialFeed__feedInfo">\n <div class="amag-socialFeed__dateChannel">\n <div class="amag-socialFeed__date">\n ').concat(D,'\n </div>\n <div class="amag-socialFeed__channel">\n <a href="').concat(R,'" title="').concat(P,'">\n @').concat(P,'\n </a>\n </div>\n </div>\n <div class="amag-socialFeed__socialIcon amag-socialFeed__socialIcon--').concat(C,'">\n <a href="').concat(V,'" title="').concat(I,'">\n ').concat(H,"\n </a>\n </div>\n </div>\n </div>\n </div>\n </div> \n ")},b=function(){return document.documentElement.clientWidth<=767?"mobile":document.documentElement.clientWidth<=1199?"tablet":"desktop"},w=function(e,t){var n,r=function(e,t){var n=document.querySelector("#".concat(e," .amag-socialFeed__feedView--col1 > .row")).offsetHeight,r=document.querySelector("#".concat(e," .amag-socialFeed__feedView--col2 > .row")).offsetHeight,a=document.querySelector("#".concat(e," .amag-socialFeed__feedView--col3 > .row")).offsetHeight;if(3===t){var i=[n,r,a];return i.sort((function(e,t){return e-t})),i[0]===n?1:i[0]===r?2:3}if(2===t){var o=[n,r];return o.sort((function(e,t){return e-t})),o[0]===n?1:2}return 1}(e,"desktop"===(n=b())?3:"tablet"===n?2:1),a=document.querySelector("#".concat(e," .amag-socialFeed__feedView--col1 > .row")),i=document.querySelector("#".concat(e," .amag-socialFeed__feedView--col2 > .row")),o=document.querySelector("#".concat(e," .amag-socialFeed__feedView--col3 > .row"));3===r?o.insertAdjacentHTML("beforeend",t):2===r?i.insertAdjacentHTML("beforeend",t):a.insertAdjacentHTML("beforeend",t)};(function(){document.querySelectorAll(".amag-socialFeed").forEach((function(S){var C=S.querySelector(".amag-socialFeed__componentWrapper"),E=C.getAttribute("id"),x=JSON.parse(C.getAttribute("data-feed")).data,A=0;e=!1,t="",n="",r=!1,a="",i="",o=!1,s="",c="",l=!1,u="",d="",h=!1,p="",f="",m=!1,v="",g="",x.forEach((function(e){var t=_(E,e,A);w(E,t),A++})),function(e){var t=document.querySelector("#".concat(e)),n=b(),r=parseInt(t.getAttribute("data-initial-desktop")),a=parseInt(t.getAttribute("data-initial-tablet")),i=parseInt(t.getAttribute("data-initial-mobile")),o=t.querySelector(".amag-socialFeed__moreButton"),s=t.querySelector(".amag-socialFeed__moreButton a"),c=t.querySelectorAll(".amag-socialFeed__feed"),l="desktop"===n?r:"tablet"===n?a:i,u=l;
6c.forEach((function(t){var n=t.getAttribute("id");parseInt(n.replace(e+"-",""))>=l&&t.classList.add("d-none")})),s.addEventListener("click",(function(t){t.preventDefault();var r="desktop"===n?6:"tablet"===n?4:2;u+r>80?(u=80,o.classList.add("d-none")):80===(u+=r)&&o.classList.add("d-none"),c.forEach((function(t){var n=t.getAttribute("id");parseInt(n.replace(e+"-",""))<u&&t.classList.remove("d-none")}))}))}(E),function(_){var b=document.querySelector("#".concat(_)),w=b.querySelector(".amag-socialFeed__iconInstagram.amag-socialFeed__socialIcon--gray"),S=b.querySelector(".amag-socialFeed__iconTwitter.amag-socialFeed__socialIcon--gray"),C=b.querySelector(".amag-socialFeed__iconFacebook.amag-socialFeed__socialIcon--gray"),E=b.querySelector(".amag-socialFeed__iconLinkedIn.amag-socialFeed__socialIcon--gray"),x=b.querySelector(".amag-socialFeed__iconYouTube.amag-socialFeed__socialIcon--gray"),A=b.querySelector(".amag-socialFeed__iconRss.amag-socialFeed__socialIcon--gray"),k="",T="";e&&(n="Instagram - ".concat(n),T=y(_,"instagram",n),k='\n <a href="'.concat(t,'" title="').concat(n,'">\n ').concat(T,"\n </a>\n "),w.insertAdjacentHTML("beforeend",k),w.classList.remove("d-none")),r&&(i="Twitter - ".concat(i),T=y(_,"twitter",i),k='\n <a href="'.concat(a,'" title="').concat(i,'">\n ').concat(T,"\n </a>\n "),S.insertAdjacentHTML("beforeend",k),S.classList.remove("d-none")),o&&(c="Facebook - ".concat(c),T=y(_,"facebook",c),k='\n <a href="'.concat(s,'" title="').concat(c,'">\n ').concat(T,"\n </a>\n "),C.insertAdjacentHTML("beforeend",k),C.classList.remove("d-none")),l&&(d="LinkedIn - ".concat(d),T=y(_,"linkedin",d),k='\n <a href="'.concat(u,'" title="').concat(d,'">\n ').concat(T,"\n </a>\n "),E.insertAdjacentHTML("beforeend",k),E.classList.remove("d-none")),h&&(f="YouTube - ".concat(f),T=y(_,"youtube",f),k='\n <a href="'.concat(p,'" title="').concat(f,'">\n ').concat(T,"\n </a>\n "),x.insertAdjacentHTML("beforeend",k),x.classList.remove("d-none")),m&&(g="Blog - ".concat(g),T=y(_,"rss",g),k='\n <a href="'.concat(v,'" title="').concat(g,'">\n ').concat(T,"\n </a>\n "),A.insertAdjacentHTML("beforeend",k),A.classList.remove("d-none"))}(E)}))})()}}))},90680:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;var r=n(19724),a=n(65212),i=n(17214);t.switchMap=function(e,t){return a.operate((function(n,a){var o=null,s=0,c=!1,l=function(){return c&&!o&&a.complete()};n.subscribe(i.createOperatorSubscriber(a,(function(n){null==o||o.unsubscribe();var c=0,u=s++;r.innerFrom(e(n,u)).subscribe(o=i.createOperatorSubscriber(a,(function(e){return a.next(t?t(n,e,u,c++):e)}),(function(){o=null,l()})))}),(function(){c=!0,l()})))}))}},91757:function(e,t,n){"use strict";function r(e,t,n,r){var a=window.dataLayer;void 0!==a&&a.push({event:"ga4Event",eventName:e,eventParameter1:"interaction_item",fieldValue1:t,eventParameter2:"interaction_label",fieldValue2:n,eventParameter3:"interaction_content",fieldValue3:r})}n.d(t,{A:function(){return r}})},92052:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestTools=t.Immediate=void 0;var n,r=1,a={};function i(e){return e in a&&(delete a[e],!0)}t.Immediate={setImmediate:function(e){var t=r++;return a[t]=!0,n||(n=Promise.resolve()),n.then((function(){return i(t)&&e()})),t},clearImmediate:function(e){i(e)}},t.TestTools={pending:function(){return Object.keys(a).length}}},92070:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var r=n(78531),a=n(65212);t.reduce=function(e,t){return a.operate(r.scanInternals(e,t,arguments.length>=2,!1,!0))}},92327:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(82284);function a(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=(0,r.A)(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},92359:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;var r=n(87699),a=n(65212),i=n(17214);t.skipLast=function(e){return e<=0?r.identity:a.operate((function(t,n){var r=new Array(e),a=0;return t.subscribe(i.createOperatorSubscriber(n,(function(t){var i=a++;if(i<e)r[i]=t;else{var o=i%e,s=r[o];r[o]=t,n.next(s)}}))),function(){r=null}}))}},92901:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(49922);function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(0,r.A)(a.key),a)}}function i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},92919:function(e,t,n){"use strict";n.d(t,{GG:function(){return o},Qr:function(){return c},sB:function(){return s}});var r=n(17508),a=n(55239);function i(){return"undefined"==typeof document||"complete"===document.readyState}function o(e,t){if(i())return e();const n=(0,a.J)(e),o=setInterval((()=>{i()&&(clearInterval(o),n())}),500);(0,r.sp)("load",n,t)}function s(e){if(i())return e();(0,r.DD)("DOMContentLoaded",e)}function c(e){if(i())return e();(0,r.sp)("popstate",e)}},93275:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimestampProvider=void 0,t.dateTimestampProvider={now:function(){return(t.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},93405:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.share=void 0;var i=n(19724),o=n(76808),s=n(2708),c=n(65212);function l(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if(!0!==t){if(!1!==t){var c=new s.SafeSubscriber({next:function(){c.unsubscribe(),e()}});return i.innerFrom(t.apply(void 0,a([],r(n)))).subscribe(c)}}else e()}t.share=function(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new o.Subject}:t,r=e.resetOnError,a=void 0===r||r,u=e.resetOnComplete,d=void 0===u||u,h=e.resetOnRefCountZero,p=void 0===h||h;return function(e){var t,r,o,u=0,h=!1,f=!1,m=function(){null==r||r.unsubscribe(),r=void 0},v=function(){m(),t=o=void 0,h=f=!1},g=function(){var e=t;v(),null==e||e.unsubscribe()};return c.operate((function(e,c){u++,f||h||m();var y=o=null!=o?o:n();c.add((function(){0!==--u||f||h||(r=l(g,p))})),y.subscribe(c),!t&&u>0&&(t=new s.SafeSubscriber({next:function(e){return y.next(e)},error:function(e){f=!0,m(),r=l(v,a,e),y.error(e)},complete:function(){h=!0,m(),r=l(v,d),y.complete()}}),i.innerFrom(e).subscribe(t))}))(e)}}},93728:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0,t.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},94044:function(e,t,n){"use strict";n.d(t,{K:function(){return a}});var r=Symbol(),a=function(e){return new Proxy(e,{construct:function(e,t,n){return e.prototype!==n.prototype?Reflect.construct(e,t,n):(e[r]||(e[r]=Reflect.construct(e,t,n)),e[r])}})}},94708:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;var r=n(9619);t.SequenceError=r.createErrorClass((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}))}
6,94808:function(e,t){"use strict";var n=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},r=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutProvider=void 0,t.timeoutProvider={setTimeout:function(e,a){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var s=t.timeoutProvider.delegate;return(null==s?void 0:s.setTimeout)?s.setTimeout.apply(s,r([e,a],n(i))):setTimeout.apply(void 0,r([e,a],n(i)))},clearTimeout:function(e){var n=t.timeoutProvider.delegate;return((null==n?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0}},94975:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayLike=void 0,t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},95018:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(39335);function a(e){return a="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},a(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function o(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var c=function(){return e=function e(t,n){var a=this,i=n.onStart,s=n.onMove,c=n.onEnd,l=n.isSliderEnabled;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,"startHandler",(function(e){if(a.isSliderEnabled()){a.removeListeners(),e.preventDefault();var t=a.moveHandler,n=a.endHandler,r=a.onStart,i="touchstart"===e.type||"touchend"===e.type;a.touchMoveEvent=i?"touchmove":"mousemove",a.touchEndEvent=i?"touchend":"mouseup",a.sx=i?e.touches[0].clientX:e.clientX,a.sy=i?e.touches[0].clientY:e.clientY,r(e,{x:a.sx,y:a.sy}),document.addEventListener(a.touchMoveEvent,t),document.addEventListener(a.touchEndEvent,n),document.addEventListener("contextmenu",n)}})),o(this,"moveHandler",(function(e){if(a.isSliderEnabled()){e.preventDefault();var t=a.sx,n=a.sy,r=a.onMove,i="touchmove"===a.touchMoveEvent,o=i?e.touches[0].clientX:e.clientX,s=i?e.touches[0].clientY:e.clientY;r(e,{dx:o-t,dy:s-n,mx:o,my:s})}})),o(this,"endHandler",(function(){a.isSliderEnabled()&&(a.removeListeners(),a.onEnd())})),this.container=t,this.isSliderEnabled=l,this.onStart=i||r.noop,this.onMove=s||r.noop,this.onEnd=c||r.noop},(t=[{key:"removeListeners",value:function(){this.touchMoveEvent&&(document.removeEventListener(this.touchMoveEvent,this.moveHandler),document.removeEventListener(this.touchEndEvent,this.endHandler),document.removeEventListener("contextmenu",this.endHandler))}},{key:"init",value:function(){var e=this;["touchstart","mousedown"].forEach((function(t){e.container.addEventListener(t,e.startHandler)}))}},{key:"destroy",value:function(){var e=this;["touchstart","mousedown"].forEach((function(t){e.container.removeEventListener(t,e.startHandler)})),this.removeListeners()}}])&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();t.default=c},95462:function(e,t,n){"use strict";var r=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}
vendor: 1,563 bytes, line 6
6if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=this&&this.__await||function(e){return this instanceof a?(this.v=e,this):new a(e)},i=this&&this.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||c(e,t)}))})}function c(e,t){try{(n=i[e](t)).value instanceof a?Promise.resolve(n.value.v).then(l,u):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function l(e){c("next",e)}function u(e){c("throw",e)}function d(e,t){e(t),o.shift(),o.length&&c(o[0][0],o[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var o=n(10281);t.readableStreamLikeToAsyncGenerator=function(e){return i(this,arguments,(function(){var t,n,i;return r(this,(function(r){switch(r.label){case 0:t=e.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,a(t.read())];case 3:return n=r.sent(),i=n.value,n.done?[4,a(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,a(i)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}
6))}))},t.isReadableStreamLike=function(e){return o.isFunction(null==e?void 0:e.getReader)}},95513:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=t.onErrorResumeNextWith=void 0;var i=n(7652),o=n(1903);function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=i.argsOrArgArray(e);return function(e){return o.onErrorResumeNext.apply(void 0,a([e],r(n)))}}t.onErrorResumeNextWith=s,t.onErrorResumeNext=s},95707:function(e,t,n){"use strict";n.d(t,{d:function(){return l},$:function(){return u}});var r=n(89394),a=n(96369),i=n(73893),o=n(27800),s=n(76562);function c(e){return(0,a.A)(e)||(0,i.A)(e)||(0,o.A)(e)||(0,s.A)()}function l(){for(var e=window.location.pathname,t=c((e=e.replace(/\.(?:\w|\.|-)+\.html/,".html")).split(".")),n=t[0],a=t.slice(1),i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return[n].concat(o,(0,r.A)(a)).join(".")}function u(){for(var e=window.location.pathname,t=c((e=(e=e.replace(/\.(?:\w|\.|-)+\.html/,".json")).replace(".html",".json")).split(".")),n=t[0],a=t.slice(1),i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return[n].concat(o,(0,r.A)(a)).join(".")}},95936:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var r=n(68087),a=n(19724),i=n(44885),o=n(26404),s=n(47058);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o.popScheduler(e),c=o.popNumber(e,1/0),l=e;return l.length?1===l.length?a.innerFrom(l[0]):r.mergeAll(c)(s.from(l,n)):i.EMPTY}},96153:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},96328:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var i=n(65212),o=n(70201),s=n(26404),c=n(47058);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=s.popScheduler(e);return i.operate((function(t,i){o.concatAll()(c.from(a([t],r(e)),n)).subscribe(i)}))}},96369:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:function(){return r}})},96657:function(e,t,n){"use strict";n.d(t,{Ak:function(){return s},Ze:function(){return l},x3:function(){return c}});var r=n(71999),a=n(72024),i=n(19470),o=n(81752);function s(e,t){if(!e)return;const n={staged:!1,priority:i.P3[t]||0};e.runtime.drainRegistry.get(t)||e.runtime.drainRegistry.set(t,n)}function c(e,t){if(!e)return;const n=e.runtime.drainRegistry;n&&(n.get(t)&&n.delete(t),d(e,t,!1),n.size&&u(e))}function l(e,t="feature",n=!1){if(e){if(!e.runtime.drainRegistry.get(t)||n)return d(e,t);e.runtime.drainRegistry.get(t).staged=!0,u(e)}}function u(e){if(!e)return;const t=Array.from(e.runtime.drainRegistry);t.every((([e,t])=>t.staged))&&(t.sort(((e,t)=>e[1].priority-t[1].priority)),t.forEach((([t])=>{e.runtime.drainRegistry.delete(t),d(e,t)})))}function d(e,t,n=!0){if(!e)return;const i=e.ee,s=a.i.handlers;if(i&&!i.aborted&&i.backlog&&s){if((0,r.W)({type:"lifecycle",name:"drain",feature:t}),n){const e=i.backlog[t],n=s[t];if(n){for(let t=0;e&&t<e.length;++t)h(e[t],n);Object.entries(n).forEach((([e,t])=>{Object.values(t||{}).forEach((t=>{t[0]?.on&&t[0].context()instanceof o.y&&!t[0].listeners(e).includes(t[1])&&t[0].on(e,t[1])}))}))}}i.isolatedBacklog||delete s[t],i.backlog[t]=null,i.emit("drain-"+t,[])}}function h(e,t){var n=e[1];Object.values(t[n]||{}
6).forEach((t=>{var n=e[0];if(t[0]===n){var r=t[1],a=e[3],i=e[2];r.apply(a,i)}}))}},97314: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)});Object.defineProperty(t,"__esModule",{value:!0}),t.BehaviorSubject=void 0;var i=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return a(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(n(76808).Subject);t.BehaviorSubject=i},97517:function(e,t,n){"use strict";n.d(t,{It:function(){return i},KC:function(){return s},No:function(){return a},qh:function(){return o}});var r=n(19470);const a=16e3,i=1e6,o="SESSION_ERROR",s={[r.K7.logging]:!0,[r.K7.genericEvents]:!0,[r.K7.jserrors]:!0,[r.K7.ajax]:!0}},97783:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;var r=n(65212),a=n(17214),i=n(19724),o=n(5717);t.skipUntil=function(e){return r.operate((function(t,n){var r=!1,s=a.createOperatorSubscriber(n,(function(){null==s||s.unsubscribe(),r=!0}),o.noop);i.innerFrom(e).subscribe(s),t.subscribe(a.createOperatorSubscriber(n,(function(e){return r&&n.next(e)})))}))}},98032:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concatWith=void 0;var i=n(96328);t.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.concat.apply(void 0,a([],r(e)))}},98183:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;var r=n(65212),a=n(17214);function i(e,t,n){var r="index"===n;return function(n,i){var o=0;n.subscribe(a.createOperatorSubscriber(i,(function(a){var s=o++;e.call(t,a,s,n)&&(i.next(r?s:a),i.complete())}),(function(){i.next(r?-1:void 0),i.complete()})))}}t.find=function(e,t){return r.operate(i(e,t,"value"))},t.createFind=i},98335:function(e,t){"use strict";t.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=window.device,a={},i=[];window.device=a;var o=window.document.documentElement,s=window.navigator.userAgent.toLowerCase(),c=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","pov_tv","hbbtv","ce-html"];function l(e,t){return-1!==e.indexOf(t)}function u(e){return l(s,e)}function d(e){return o.className.match(new RegExp(e,"i"))}function h(e){var t=null;d(e)||(t=o.className.replace(/^\s+|\s+$/g,""),o.className=t+" "+e)}function p(e){d(e)&&(o.className=o.className.replace(" "+e,""))}function f(){a.landscape()?(p("portrait"),h("landscape"),m("landscape")):(p("landscape"),h("portrait"),m("portrait")),y()}function m(e){for(var t=0;t<i.length;t++)i[t](e)}a.macos=function(){return u("mac")},a.ios=function(){return a.iphone()||a.ipod()||a.ipad()},a.iphone=function(){return!a.windows()&&u("iphone")},a.ipod=function(){return u("ipod")},a.ipad=function(){var e="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;return u("ipad")||e},a.android=function(){return!a.windows()&&u("android")},a.androidPhone=function(){return a.android()&&u("mobile")},a.androidTablet=function(){return a.android()&&!u("mobile")},a.blackberry=function(){return u("blackberry")||u("bb10")},a.blackberryPhone=function(){return a.blackberry()&&!u("tablet")},a.blackberryTablet=function(){return a.blackberry()&&u("tablet")},a.windows=function(){return u("windows")},a.windowsPhone=function(){return a.windows()&&u("phone")},a.windowsTablet=function(){return a.windows()&&u("touch")&&!a.windowsPhone()},a.fxos=function(){return(u("(mobile")||u("(tablet"))&&u(" rv:")},a.fxosPhone=function(){return a.fxos()&&u("mobile")},a.fxosTablet=function(){return a.fxos()&&u("tablet")},a.meego=function(){return u("meego")},a.cordova=function(){return window.cordova&&"file:"===location.protocol},a.nodeWebkit=function(){return"object"===n(window.process)},a.mobile=function(){return a.androidPhone()||a.iphone()||a.ipod()||a.windowsPhone()||a.blackberryPhone()||a.fxosPhone()||a.meego()},a.tablet=function(){return a.ipad()||a.androidTablet()||a.blackberryTablet()||a.windowsTablet()||a.fxosTablet()},a.desktop=function(){return!a.tablet()&&!a.mobile()},a.television=function(){for(var e=0;e<c.length;){if(u(c[e]))return!0;e++}return!1},a.portrait=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?l(screen.orientation.type,"portrait"):a.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?90!==Math.abs(window.orientation):window.innerHeight/window.innerWidth>1},a.landscape=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?l(screen.orientation.type,"landscape"):a.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?90===Math.abs(window.orientation):window.innerHeight/window.innerWidth<1}
6,a.noConflict=function(){return window.device=r,this},a.ios()?a.ipad()?h("ios ipad tablet"):a.iphone()?h("ios iphone mobile"):a.ipod()&&h("ios ipod mobile"):a.macos()?h("macos desktop"):a.android()?a.androidTablet()?h("android tablet"):h("android mobile"):a.blackberry()?a.blackberryTablet()?h("blackberry tablet"):h("blackberry mobile"):a.windows()?a.windowsTablet()?h("windows tablet"):a.windowsPhone()?h("windows mobile"):h("windows desktop"):a.fxos()?a.fxosTablet()?h("fxos tablet"):h("fxos mobile"):a.meego()?h("meego mobile"):a.nodeWebkit()?h("node-webkit"):a.television()?h("television"):a.desktop()&&h("desktop"),a.cordova()&&h("cordova"),a.onChangeOrientation=function(e){"function"==typeof e&&i.push(e)};var v="resize";function g(e){for(var t=0;t<e.length;t++)if(a[e[t]]())return e[t];return"unknown"}function y(){a.orientation=g(["portrait","landscape"])}Object.prototype.hasOwnProperty.call(window,"onorientationchange")&&(v="orientationchange"),window.addEventListener?window.addEventListener(v,f,!1):window.attachEvent?window.attachEvent(v,f):window[v]=f,f(),a.type=g(["mobile","tablet","desktop"]),a.os=g(["ios","iphone","ipad","ipod","android","blackberry","macos","windows","fxos","meego","television"]),y(),t.default=a,e.exports=t.default},98590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectable=void 0;var r=n(76808),a=n(48051),i=n(35884),o={connector:function(){return new r.Subject},resetOnDisconnect:!0};t.connectable=function(e,t){void 0===t&&(t=o);var n=null,r=t.connector,s=t.resetOnDisconnect,c=void 0===s||s,l=r(),u=new a.Observable((function(e){return l.subscribe(e)}));return u.connect=function(){return n&&!n.closed||(n=i.defer((function(){return e})).subscribe(l),c&&n.add((function(){return l=r()}))),n},u}},98800:function(e,t,n){"use strict";n.d(t,{LA:function(){return s},ZF:function(){return c},bz:function(){return o},el:function(){return l}});var r=n(58740);const a="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";function i(e,t){return e?15&e[t]:16*Math.random()|0}function o(){const e=r.gm?.crypto||r.gm?.msCrypto;let t,n=0;return e&&e.getRandomValues&&(t=e.getRandomValues(new Uint8Array(30))),a.split("").map((e=>"x"===e?i(t,n++).toString(16):"y"===e?(3&i()|8).toString(16):e)).join("")}function s(e){const t=r.gm?.crypto||r.gm?.msCrypto;let n,a=0;t&&t.getRandomValues&&(n=t.getRandomValues(new Uint8Array(e)));const o=[];for(var s=0;s<e;s++)o.push(i(n,a++).toString(16));return o.join("")}function c(){return s(16)}function l(){return s(32)}},99054:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var r=n(39546),a=n(26404),i=n(65212);t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a.popScheduler(e);return i.operate((function(t,a){(n?r.concat(e,t,n):r.concat(e,t)).subscribe(a)}))}},99245:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.queue=t.queueScheduler=void 0;var r=n(31983),a=n(32036);t.queueScheduler=new a.QueueScheduler(r.QueueAction),t.queue=t.queueScheduler},99380:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iif=void 0;var r=n(35884);t.iif=function(e,t,n){return r.defer((function(){return e()?t:n}))}},99517:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeFromArray=t.pipe=void 0;var r=n(87699);function a(e){return 0===e.length?r.identity:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a(e)},t.pipeFromArray=a},99608:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=n(39335),i=(r=n(95018))&&r.__esModule?r:{default:r};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,a=e}
6finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function h(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var f=function(){return function(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,"zoom",(function(e,t){var r=n._options,i=n._elements,o=n._state,s=o.zoomValue,c=o.imageDim,l=o.containerDim,u=o.zoomSliderLength,d=i.image,h=i.zoomHandle,p=r.maxZoom;e=Math.round(Math.max(100,e)),e=Math.min(p,e),t=t||{x:l.w/2,y:l.h/2};var f=parseFloat((0,a.css)(d,"left")),m=parseFloat((0,a.css)(d,"top"));n._clearFrames();var v=0,g=(l.w-c.w)/2,y=(l.h-c.h)/2,_=l.w-g,b=l.h-y;!function r(){++v<16&&(n._frames.zoomFrame=requestAnimationFrame(r));var i=(0,a.easeOutQuart)(v,s,e-s,16);Math.abs(e-i)<1&&(i=e);var o=i/s,l=c.w*i/100,w=c.h*i/100,S=-((t.x-f)*o-t.x),C=-((t.y-m)*o-t.y);S=Math.min(S,g),C=Math.min(C,y),S+l<_&&(S=_-l),C+w<b&&(C=b-w),(0,a.css)(d,{height:"".concat(w,"px"),width:"".concat(l,"px"),left:"".concat(S,"px"),top:"".concat(C,"px")}),n._state.zoomValue=i,n._resizeSnapHandle(l,w,S,C),(0,a.css)(h,{left:"".concat((i-100)*u/(p-100),"px")}),n._listeners.onZoomChange&&n._listeners.onZoomChange(n._callbackData)}()})),h(this,"_clearFrames",(function(){var e=n._frames,t=e.slideMomentumCheck,r=e.sliderMomentumFrame,a=e.zoomFrame;clearInterval(t),cancelAnimationFrame(r),cancelAnimationFrame(a)})),h(this,"_resizeSnapHandle",(function(e,t,r,i){var o=n._elements,s=n._state,c=o.snapHandle,l=o.image,u=s.imageDim,d=s.containerDim,h=s.zoomValue,p=s.snapImageDim,f=e||u.w*h/100,m=t||u.h*h/100,v=r||parseFloat((0,a.css)(l,"left")),g=i||parseFloat((0,a.css)(l,"top")),y=-v*p.w/f,_=-g*p.h/m,b=d.w*p.w/f,w=d.h*p.h/m;(0,a.css)(c,{top:"".concat(_,"px"),left:"".concat(y,"px"),width:"".concat(b,"px"),height:"".concat(w,"px")}),n._state.snapHandleDim={w:b,h:w}})),h(this,"showSnapView",(function(e){var t=n._state,r=t.snapViewVisible,i=t.zoomValue,o=t.loaded,s=n._elements.snapView;n._options.snapView&&(r||i<=100||!o||(clearTimeout(n._frames.snapViewTimeout),n._state.snapViewVisible=!0,(0,a.css)(s,{opacity:1,pointerEvents:"inherit"}),e||(n._frames.snapViewTimeout=setTimeout(n.hideSnapView,1500))))})),h(this,"hideSnapView",(function(){var e=n._elements.snapView;(0,a.css)(e,{opacity:0,pointerEvents:"none"}),n._state.snapViewVisible=!1})),h(this,"refresh",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];n._calculateDimensions(),n.resetZoom(e)}));var i=this._findContainerAndImageSrc(t,r),o=i.container,s=i.domElement,c=i.imageSrc,l=i.hiResImageSrc;this._elements={container:o,domElement:s},this._options=u(u({},e.defaults),r),this._events={},this._listeners=this._options.listeners||{},this._frames={},this._sliders={},this._state={zoomValue:this._options.zoomValue},this._images={imageSrc:c,hiResImageSrc:l},this._init(),c&&this._loadImages(),s._imageViewer=this}),[{key:"zoomInButton",get:function(){return this._options.hasZoomButtons?'<div class="iv-button-zoom--in" role="button"></div>':""}}
6,{key:"zoomOutButton",get:function(){return this._options.hasZoomButtons?'<div class="iv-button-zoom--out" role="button"></div>':""}},{key:"imageViewHtml",get:function(){return'\n <div class="iv-loader"></div>\n <div class="iv-snap-view">\n <div class="iv-snap-image-wrap">\n <div class="iv-snap-handle"></div>\n </div>\n <div class="iv-zoom-actions '.concat(this._options.hasZoomButtons?"iv-zoom-actions--has-buttons":"",'">\n ').concat(this.zoomInButton,'\n <div class="iv-zoom-slider">\n <div class="iv-zoom-handle"></div>\n </div>\n ').concat(this.zoomOutButton,'\n </div>\n </div>\n <div class="iv-image-view" >\n <div class="iv-image-wrap" ></div>\n </div>\n ')}},{key:"_findContainerAndImageSrc",value:function(e){var t,n,r=e;if("string"==typeof e&&(r=document.querySelector(e)),r._imageViewer)throw new Error("An image viewer is already being initiated on the element.");var i=e;return"IMG"===r.tagName?(t=r.src,n=r.getAttribute("high-res-src")||r.getAttribute("data-high-res-src"),i=(0,a.wrap)(r,{className:"iv-container iv-image-mode",style:{display:"inline-block",overflow:"hidden"}}),(0,a.css)(r,{opacity:0,position:"relative",zIndex:-1})):(t=r.getAttribute("src")||r.getAttribute("data-src"),n=r.getAttribute("high-res-src")||r.getAttribute("data-high-res-src")),{container:i,domElement:r,imageSrc:t,hiResImageSrc:n}}},{key:"_init",value:function(){this._initDom(),this._initImageSlider(),this._initSnapSlider(),this._initZoomSlider(),this._pinchAndZoom(),this._scrollZoom(),this._doubleTapToZoom(),this._initEvents()}},{key:"_initDom",value:function(){var e=this._elements.container;(0,a.createElement)({tagName:"div",className:"iv-wrap",html:this.imageViewHtml,parent:e}),(0,a.addClass)(e,"iv-container"),"static"===(0,a.css)(e,"position")&&(0,a.css)(e,{position:"relative"}),this._elements=u(u({},this._elements),{},{snapView:e.querySelector(".iv-snap-view"),snapImageWrap:e.querySelector(".iv-snap-image-wrap"),imageWrap:e.querySelector(".iv-image-wrap"),snapHandle:e.querySelector(".iv-snap-handle"),zoomHandle:e.querySelector(".iv-zoom-handle"),zoomIn:e.querySelector(".iv-button-zoom--in"),zoomOut:e.querySelector(".iv-button-zoom--out")}),this._listeners.onInit&&this._listeners.onInit(this._callbackData)}},{key:"_initImageSlider",value:function(){var e,t,n=this,r=this._elements.imageWrap,o=new i.default(r,{isSliderEnabled:function(){var e=n._state,t=e.loaded,r=e.zooming,a=e.zoomValue;return t&&!r&&a>100},onStart:function(r,a){var i=n._sliders.snapSlider;n._clearFrames(),i.onStart(),e=[a,a],t=void 0,n._frames.slideMomentumCheck=setInterval((function(){t&&(e.shift(),e.push({x:t.mx,y:t.my}))}),50)},onMove:function(e,r){var a=n._state.snapImageDim,i=n._sliders.snapSlider,o=n._getImageCurrentDim();t=r,i.onMove(e,{dx:-r.dx*a.w/o.w,dy:-r.dy*a.h/o.h})},onEnd:function(){var r,i,o,s=n._state.snapImageDim,c=n._sliders.snapSlider,l=n._getImageCurrentDim();n._clearFrames();var u=e[1].x-e[0].x,d=e[1].y-e[0].y;(Math.abs(u)>30||Math.abs(d)>30)&&(r=1,i=t.dx,o=t.dy,function e(){r<=60&&(n._frames.sliderMomentumFrame=requestAnimationFrame(e)),i+=(0,a.easeOutQuart)(r,u/3,-u/3,60),o+=(0,a.easeOutQuart)(r,d/3,-d/3,60),c.onMove(null,{dx:-i*s.w/l.w,dy:-o*s.h/l.h}),r++}())}});o.init(),this._sliders.imageSlider=o}},{key:"_initSnapSlider",value:function(){var e,t,n=this,r=this._elements.snapHandle,o=new i.default(r,{isSliderEnabled:function(){return n._state.loaded},onStart:function(){var i=n._frames,o=i.slideMomentumCheck,s=i.sliderMomentumFrame;e=parseFloat((0,a.css)(r,"top")),t=parseFloat((0,a.css)(r,"left")),clearInterval(o),cancelAnimationFrame(s)},onMove:function(i,o){var s=n._state,c=s.snapHandleDim,l=s.snapImageDim,u=n._elements.image,d=n._getImageCurrentDim(),h=Math.max(l.w-c.w,t),p=Math.max(l.h-c.h,e),f=Math.min(0,t),m=Math.min(0,e),v=(0,a.clamp)(t+o.dx,f,h),g=(0,a.clamp)(e+o.dy,m,p),y=-v*d.w/l.w,_=-g*d.h/l.h;(0,a.css)(r,{left:"".concat(v,"px"),top:"".concat(g,"px")}),(0,a.css)(u,{left:"".concat(y,"px"),top:"".concat(_,"px")})}});o.init(),this._sliders.snapSlider=o}},{key:"_initZoomSlider",value:function(){var e,t,n=this,r=this._elements,o=r.snapView,s=r.zoomHandle,c=o.querySelector(".iv-zoom-slider"),l=new i.default(c,{isSliderEnabled:function(){return n._state.loaded},onStart:function(r){var i=n._sliders.zoomSlider;e=c.getBoundingClientRect().left,t=parseInt((0,a.css)(s,"width"),10),i.onMove(r)},onMove:function(r){var i=n._options.maxZoom,o=n._state.zoomSliderLength,s=void 0!==r.clientX?r.clientX:r.touches[0].clientX,c=100+(i-100)*(0,a.clamp)(s-e-t/2,0,o)/o;n.zoom(c)}});l.init(),this._sliders.zoomSlider=l}},{key:"_initEvents",value:function(){this._snapViewEvents(),this._options.refreshOnResize&&(this._events.onWindowResize=(0,a.assignEvent)(window,"resize",this.refresh)),this._events.onDragStart=(0,a.assignEvent)(this._elements.container,"dragstart",a.preventDefault)}},{key:"_snapViewEvents",value:function(){var e=this,t=this._elements,n=t.imageWrap,r=t.snapView;if(this._events.snapViewOnMouseMove=(0,a.assignEvent)(n,["touchmove","mousemove"],(function(){e.showSnapView()})),this._events.mouseEnterSnapView=(0,a.assignEvent)(r,["mouseenter","touchstart"],(function(){e._state.snapViewVisible=!1,e.showSnapView(!0)})),this._events.mouseLeaveSnapView=(0,a.assignEvent)(r,["mouseleave","touchend"],(function(){e._state.snapViewVisible=!1,e.showSnapView()})),this._options.hasZoomButtons){var i=this._elements,o=i.zoomOut,s=i.zoomIn;this._events.zoomInClick=(0,a.assignEvent)(s,["click"],(function(){e.zoom(e._state.zoomValue+e._options.zoomStep||50)})),this._events.zoomOutClick=(0,a.assignEvent)(o,["click"],(function(){e.zoom(e._state.zoomValue-e._options.zoomStep||50)}))}}},{key:"_pinchAndZoom",value:function(){var e=this,t=this._elements,n=t.imageWrap,r=t.container;this._events.pinchStart=(0,a.assignEvent)(n,"touchstart",(function(t){var n=e._state,i=n.loaded,o=n.zoomValue,s=e._events;if(i){var c=t.touches[0],l=t.touches[1];if(c&&l){e._state.zooming=!0;var u=r.getBoundingClientRect(),d=(0,a.getTouchPointsDistance)(t.touches),h={x:(l.clientX+c.clientX)/2-u.left,y:(l.clientY+c.clientY)/2-u.top};s.pinchMove&&s.pinchMove(),s.pinchEnd&&s.pinchEnd(),s.pinchMove=(0,a.assignEvent)(document,"touchmove",(function(t){var n=(0,a.getTouchPointsDistance)(t.touches),r=o+(n-d)/2;e.zoom(r,h)})),s.pinchEnd=(0,a.assignEvent)(document,"touchend",(function(t){s.pinchMove(),s.pinchEnd(),e._state.zooming=!1,1===t.touches.length&&e._sliders.imageSlider.startHandler(t)}))}}}))}},{key:"_scrollZoom",value:function(){var e=this,t=this._options,n=this._elements,r=n.container,i=n.imageWrap,o=0;this._events.scrollZoom=(0,a.assignEvent)(i,"wheel",(function(n){var i=e._state,s=i.loaded,c=i.zoomValue;if(t.zoomOnMouseWheel&&s){e._clearFrames();var l=Math.max(-1,Math.min(1,n.wheelDelta||-n.detail||-n.deltaY)),u=c*(100+l*a.ZOOM_CONSTANT)/100;if(u>=100&&u<=t.maxZoom?o=0:o+=Math.abs(l),n.preventDefault(),!(o>a.MOUSE_WHEEL_COUNT)){var d=r.getBoundingClientRect(),h=n.clientX-d.left,p=n.clientY-d.top;e.zoom(u,{x:h,y:p}),e.showSnapView()}}}))}},{key:"_doubleTapToZoom",value:function(){var e,t=this,n=this._elements.imageWrap,r=0;this._events.doubleTapToZoom=(0,a.assignEvent)(n,"click",(function(n){0===r?(r=Date.now(),e={x:n.clientX,y:n.clientY}):Date.now()-r<500&&Math.abs(n.clientX-e.x)<50&&Math.abs(n.clientY-e.y)<50?(t._state.zoomValue===t._options.zoomValue?t.zoom(200):t.resetZoom(),r
6=0):r=0}))}},{key:"_getImageCurrentDim",value:function(){var e=this._state,t=e.zoomValue,n=e.imageDim;return{w:n.w*(t/100),h:n.h*(t/100)}}},{key:"_loadImages",value:function(){var e=this,t=this._images,n=this._elements,r=t.imageSrc,i=t.hiResImageSrc,o=n.container,s=n.snapImageWrap,c=n.imageWrap,l=o.querySelector(".iv-loader");(0,a.remove)(o.querySelectorAll(".iv-snap-image, .iv-image"));var u=(0,a.createElement)({tagName:"img",className:"iv-snap-image",src:r,insertBefore:s.firstChild,parent:s}),d=(0,a.createElement)({tagName:"img",className:"iv-image iv-small-image",src:r,parent:c});this._state.loaded=!1,this._elements.image=d,this._elements.snapImage=u,(0,a.css)(l,{display:"block"}),(0,a.css)(d,{visibility:"hidden"}),this.hideSnapView();var h=function(){(0,a.css)(l,{display:"none"}),(0,a.css)(d,{visibility:"visible"}),i&&e._loadHighResImage(i),e._state.loaded=!0,e._calculateDimensions(),e._listeners.onImageLoaded&&e._listeners.onImageLoaded(e._callbackData),e.resetZoom()};(0,a.imageLoaded)(d)?h():("function"==typeof this._events.imageLoad&&this._events.imageLoad(),this._events.imageLoad=(0,a.assignEvent)(d,"load",h))}},{key:"_loadHighResImage",value:function(e){var t=this,n=this._elements,r=n.imageWrap,i=n.container,o=this._elements.image,s=(0,a.createElement)({tagName:"img",className:"iv-image iv-large-image",src:e,parent:r,style:o.style.cssText});s.style.cssText=o.style.cssText,this._elements.image=i.querySelectorAll(".iv-image");var c=function(){(0,a.remove)(o),t._elements.image=s};(0,a.imageLoaded)(s)?c():("function"==typeof this._events.hiResImageLoad&&this._events.hiResImageLoad(),this._events.hiResImageLoad=(0,a.assignEvent)(s,"load",c))}},{key:"_calculateDimensions",value:function(){var e,t,n=this._elements,r=n.image,i=n.container,o=n.snapView,s=n.snapImage,c=n.zoomHandle,l=parseInt((0,a.css)(r,"width"),10),u=parseInt((0,a.css)(r,"height"),10),d=parseInt((0,a.css)(i,"width"),10),h=parseInt((0,a.css)(i,"height"),10),p=o.clientWidth,f=o.clientHeight;this._state.containerDim={w:d,h:h};var m=l/u;t=(e=l>u&&h>=d||m*h>d?d:m*h)/m,this._state.imageDim={w:e,h:t},(0,a.css)(r,{width:"".concat(e,"px"),height:"".concat(t,"px"),left:"".concat((d-e)/2,"px"),top:"".concat((h-t)/2,"px"),maxWidth:"none",maxHeight:"none"});var v=e>t?p:e*f/t,g=t>e?f:t*p/e;this._state.snapImageDim={w:v,h:g},(0,a.css)(s,{width:"".concat(v,"px"),height:"".concat(g,"px")});var y=o.querySelector(".iv-zoom-slider").clientWidth;this._state.zoomSliderLength=y-c.offsetWidth}},{key:"resetZoom",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this._options.zoomValue;e||(this._state.zoomValue=t),this.zoom(t)}},{key:"load",value:function(e,t){this._images={imageSrc:e,hiResImageSrc:t},this._loadImages()}},{key:"destroy",value:function(){var e=this._elements,t=e.container,n=e.domElement;Object.entries(this._sliders).forEach((function(e){var t=s(e,2);t[0];t[1].destroy()})),Object.entries(this._events).forEach((function(e){var t=s(e,2);t[0];(0,t[1])()})),this._clearFrames(),(0,a.remove)(t.querySelector(".iv-wrap")),(0,a.removeClass)(t,"iv-container"),(0,a.removeCss)(document.querySelector("html"),"relative"),n!==t&&(0,a.unwrap)(n),n._imageViewer=null,this._listeners.onDestroy&&this._listeners.onDestroy()}},{key:"_callbackData",get:function(){return{container:this._elements.container,snapView:this._elements.snapView,zoomValue:this._state.zoomValue,reachedMin:Math.abs(this._state.zoomValue-100)<1,reachedMax:Math.abs(this._state.zoomValue-this._options.maxZoom)<1,instance:this}}}])}();f.defaults={zoomValue:100,snapView:!0,maxZoom:500,refreshOnResize:!0,zoomOnMouseWheel:!0,hasZoomButtons:!1,zoomStep:50,listeners:{onInit:null,onDestroy:null,onImageLoaded:null,onZoomChange:null}};t.default=f}},__webpack_module_cache__={},leafPrototypes,getProto,inProgress,dataWebpackPrefix;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={}
vendor: 4,434 bytes, line 6
6,__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);__webpack_require__.r(n);var r={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var a=2&t&&e;"object"==typeof a&&!~leafPrototypes.indexOf(a);a=getProto(a))Object.getOwnPropertyNames(a).forEach((function(t){r[t]=function(){return e[t]}}));return r.default=function(){return e},__webpack_require__.d(n,r),n},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(t,n){return __webpack_require__.f[n](e,t),t}),[]))},__webpack_require__.u=function(e){return"clientlib-amagch/"+({60:"compressor",100:"logging-aggregate",189:"session_trace-aggregate",211:"ajax-aggregate",297:"jserrors-aggregate",368:"generic_events-aggregate",452:"metrics-aggregate",617:"page_view_timing-aggregate",677:"page_view_event-aggregate",769:"soft_navigations-aggregate",777:"recorder",815:"session_replay-aggregate",967:"session-manager"}[e]||e)+".js"},__webpack_require__.miniCssF=function(e){},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},inProgress={},dataWebpackPrefix="amagch:",__webpack_require__.l=function(e,t,n,r){if(inProgress[e])inProgress[e].push(t);else{var a,i;if(void 0!==n)for(var o=document.getElementsByTagName("script"),s=0;s<o.length;s++){var c=o[s];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==dataWebpackPrefix+n){a=c;break}}a||(i=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,__webpack_require__.nc&&a.setAttribute("nonce",__webpack_require__.nc),a.setAttribute("data-webpack",dataWebpackPrefix+n),a.src=e),inProgress[e]=[t];var l=function(t,n){a.onerror=a.onload=null,clearTimeout(u);var r=inProgress[e];if(delete inProgress[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((function(e){return e(n)})),t)return t(n)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=l.bind(null,a.onerror),a.onload=l.bind(null,a.onload),i&&document.head.appendChild(a)}},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e+"../"}(),function(){var e={112:0};__webpack_require__.f.j=function(t,n){var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var a=new Promise((function(n,a){r=e[t]=[n,a]}));n.push(r[2]=a);var i=__webpack_require__.p+__webpack_require__.u(t),o=new Error;__webpack_require__.l(i,(function(n){if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",o.name="ChunkLoadError",o.type=a,o.request=i,r[1](o)}}),"chunk-"+t,t)}};var t=function(t,n){var r,a,i=n[0],o=n[1],s=n[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(r in o)__webpack_require__.o(o,r)&&(__webpack_require__.m[r]=o[r]);if(s)s(__webpack_require__)}for(t&&t(n);c<i.length;c++)a=i[c],__webpack_require__.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=self.webpackChunkamagch=self.webpackChunkamagch||[];
6n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var __webpack_exports__={};!function(){"use strict";var e=__webpack_require__(85972),t=__webpack_require__(19470);const n=Object.values(t.K7);var r=__webpack_require__(18795);var a=__webpack_require__(34842),i=__webpack_require__(31609),o=__webpack_require__(38839),s=__webpack_require__(52428);var c=__webpack_require__(96657),l=__webpack_require__(87688),u=__webpack_require__(92919),d=__webpack_require__(58740),h=__webpack_require__(49674),p=__webpack_require__(71736),f=__webpack_require__(17305),m=__webpack_require__(55239),v=__webpack_require__(97517);class g extends l.W{constructor(e,t){super(e,t),this.abortHandler=void 0,this.featAggregate=void 0,this.loadedSuccessfully=void 0,this.onAggregateImported=new Promise((e=>{this.loadedSuccessfully=e})),this.deferred=Promise.resolve(),!1===e.init[this.featureName].autoStart?this.deferred=new Promise(((t,n)=>{this.ee.on("manual-start-all",(0,m.J)((()=>{(0,c.Ak)(e,this.featureName),t()})))})):(0,c.Ak)(e,t)}importAggregator(e,t,n={}){if(this.featAggregate)return;const r=async()=>{let r;await this.deferred;try{if((0,f.V)(e.init)){const{setupAgentSession:t}=await __webpack_require__.e(967).then(__webpack_require__.bind(__webpack_require__,64128));r=t(e)}}catch(e){(0,h.R)(20,e),this.ee.emit("internal-error",[e]),(0,a.p)(v.qh,[e],void 0,this.featureName,this.ee)}try{if(!this.#t(this.featureName,r,e.init))return(0,c.Ze)(this.agentRef,this.featureName),void this.loadedSuccessfully(!1);const{Aggregate:a}=await t();this.featAggregate=new a(e,n),e.runtime.harvester.initializedAggregates.push(this.featAggregate),this.loadedSuccessfully(!0)}catch(e){(0,h.R)(34,e),this.abortHandler?.(),(0,c.Ze)(this.agentRef,this.featureName,!0),this.loadedSuccessfully(!1),this.ee&&this.ee.abort()}};d.RI?(0,u.GG)((()=>r()),!0):r()}#t(e,n,r){if(this.blocked)return!1;switch(e){case t.K7.sessionReplay:return(0,p.SR)(r)&&!!n;case t.K7.sessionTrace:return!!n;default:return!0}}}var y=__webpack_require__(47200),_=__webpack_require__(79324),b=__webpack_require__(71999);class w extends g{static featureName=y.T;constructor(e){var t;super(e,y.T),this.setupInspectionEvents(),t=e,(0,s.Y)(o.Fw,(function(e,n){"string"==typeof e&&("/"!==e.charAt(0)&&(e="/"+e),t.runtime.customTransaction=(n||"http://custom.transaction")+e,(0,a.p)(o.Pl+o.Fw,[(0,i.t)()],void 0,void 0,t.ee))}),t),this.importAggregator(e,(()=>Promise.all([__webpack_require__.e(901),__webpack_require__.e(828),__webpack_require__.e(677)]).then(__webpack_require__.bind(__webpack_require__,42388))))}setupInspectionEvents(){const e=(e,t)=>{e&&(0,b.W)({timeStamp:e.timeStamp,loaded:"complete"===e.target.readyState,type:"window",name:t,data:e.target.location+""})};(0,u.sB)((t=>{e(t,"DOMContentLoaded")})),(0,u.GG)((t=>{e(t,"load")})),(0,u.Qr)((t=>{e(t,"navigate")})),this.ee.on(_.tS.UPDATE,((e,t)=>{(0,b.W)({type:"lifecycle",name:"session",data:t})}))}}var S=__webpack_require__(21966);class C extends e.d{constructor(e){var t;(super(),d.gm)?(this.features={},(0,S.bQ)(this.agentIdentifier,this),this.desiredFeatures=new Set(e.features||[]),this.desiredFeatures.add(w),(0,r.j)(this,e,e.loaderType||"agent"),t=this,(0,s.Y)(o.cD,(function(e,n,r=!1){if("string"==typeof e){if(["string","number","boolean"].includes(typeof n)||null===n)return(0,s.U)(t,e,n,o.cD,r);(0,h.R)(40,typeof n)}else(0,h.R)(39,typeof e)}),t),function(e){(0,s.Y)(o.Dl,(function(t,n=!1){if("string"!=typeof t&&null!==t)return void(0,h.R)(41,typeof t);const r=e.info.jsAttributes["enduser.id"];n&&null!=r&&r!==t?(0,a.p)(o.Pl+"setUserIdAndResetSession",[t],void 0,"session",e.ee):(0,s.U)(e,"enduser.id",t,o.Dl,!0)}),e)}(this),function(e){(0,s.Y)(o.nb,(function(t){if("string"==typeof t||null===t)return(0,s.U)(e,"application.version",t,o.nb,!1);(0,h.R)(42,typeof t)}),e)}(this),function(e){(0,s.Y)(o.d3,(function(){e.ee.emit("manual-start-all")}),e)}(this),function(e){(0,s.Y)(o.Pv,(function(t=!0){if("boolean"==typeof t){if((0,a.p)(o.Pl+o.Pv,[t],void 0,"session",e.ee),e.runtime.consented=t,t){const t=e.features.page_view_event;t.onAggregateImported.then((e=>{const n=t.featAggregate;e&&!n.sentRum&&n.sendRum()}))}}else(0,h.R)(65,typeof t)}),e)}(this),this.run()):(0,h.R)(21)}get config(){return{info:this.info,init:this.init,loader_config:this.loader_config,runtime:this.runtime}}get api(){return this}run(){try{const e=function(e){const t={};
6return n.forEach((n=>{t[n]=!!e[n]?.enabled})),t}(this.init),r=[...this.desiredFeatures];r.sort(((e,n)=>t.P3[e.featureName]-t.P3[n.featureName])),r.forEach((n=>{if(!e[n.featureName]&&n.featureName!==t.K7.pageViewEvent)return;const r=function(e){switch(e){case t.K7.ajax:return[t.K7.jserrors];case t.K7.sessionTrace:return[t.K7.ajax,t.K7.pageViewEvent];case t.K7.sessionReplay:return[t.K7.sessionTrace];case t.K7.pageViewTiming:return[t.K7.pageViewEvent];default:return[]}}(n.featureName).filter((e=>!(e in this.features)));r.length>0&&(0,h.R)(36,{targetFeature:n.featureName,missingDependencies:r}),this.features[n.featureName]=new n(this)}))}catch(e){(0,h.R)(22,e);for(const e in this.features)this.features[e].abortHandler?.();const t=(0,S.Zm)();delete t.initializedAgents[this.agentIdentifier]?.features,delete this.sharedAggregator;return t.ee.get(this.agentIdentifier).abort(),!1}}}var E=__webpack_require__(62449),x=__webpack_require__(41172);class A extends g{static featureName=x.T;constructor(e){super(e,x.T),d.RI&&((0,E.u)((()=>(0,a.p)("docHidden",[(0,i.t)()],void 0,x.T,this.ee)),!0),(0,E.G)((()=>(0,a.p)("winPagehide",[(0,i.t)()],void 0,x.T,this.ee))),this.importAggregator(e,(()=>Promise.all([__webpack_require__.e(901),__webpack_require__.e(617)]).then(__webpack_require__.bind(__webpack_require__,87154)))))}}var k=__webpack_require__(7187);class T extends g{static featureName=k.TZ;constructor(e){super(e,k.TZ),this.importAggregator(e,(()=>Promise.all([__webpack_require__.e(901),__webpack_require__.e(452)]).then(__webpack_require__.bind(__webpack_require__,57050))))}}var L=__webpack_require__(13884),I=__webpack_require__(17508),D=__webpack_require__(21690);class P{constructor(e,t,n,r,a){this.name="UncaughtError",this.message="string"==typeof e?e:(0,D.A)(e),this.sourceURL=t,this.line=n,this.column=r,this.__newrelic=a}}function O(e){return q(e)?e:new P(void 0!==e?.message?e.message:e,e?.filename||e?.sourceURL,e?.lineno||e?.line,e?.colno||e?.col,e?.__newrelic,e?.cause)}function R(e){const t="Unhandled Promise Rejection: ";if(!e?.reason)return;if(q(e.reason)){try{e.reason.message.startsWith(t)||(e.reason.message=t+e.reason.message)}catch(e){}return O(e.reason)}const n=O(e.reason);return(n.message||"").startsWith(t)||(n.message=t+n.message),n}function M(e){if(e.error instanceof SyntaxError&&!/:\d+$/.test(e.error.stack?.trim())){const t=new P(e.message,e.filename,e.lineno,e.colno,e.error.__newrelic,e.cause);return t.name=SyntaxError.name,t}return q(e.error)?e.error:O(e)}function q(e){return e instanceof Error&&!!e.stack}function N(e,n,r,o,s=(0,i.t)()){"string"==typeof e&&(e=new Error(e)),(0,a.p)("err",[e,s,!1,n,r.runtime.isRecording,void 0,o],void 0,t.K7.jserrors,r.ee),(0,a.p)("uaErr",[],void 0,t.K7.genericEvents,r.ee)}var V=__webpack_require__(2822),F=__webpack_require__(61059),B=__webpack_require__(47415);function j(e,{customAttributes:t={},level:n=F.p_.INFO}={},r,a,o=(0,i.t)()){(0,B.R)(r.ee,e,t,n,!1,a,o)}function H(e,n,r,s,c=(0,i.t)()){(0,a.p)(o.Pl+o.hG,[c,e,n,s],void 0,t.K7.genericEvents,r.ee)}function G(e,n,r,s,c=(0,i.t)()){const{start:l,end:u,customAttributes:d}=n||{},p={customAttributes:d||{}};if("object"!=typeof p.customAttributes||"string"!=typeof e||0===e.length)return void(0,h.R)(57);const f=(e,t)=>null==e?t:"number"==typeof e?e:e instanceof PerformanceMark?e.startTime:Number.NaN;if(p.start=f(l,0),p.end=f(u,c),Number.isNaN(p.start)||Number.isNaN(p.end))(0,h.R)(57);else{if(p.duration=p.end-p.start,!(p.duration<0))return(0,a.p)(o.Pl+o.V1,[p,e,s],void 0,t.K7.genericEvents,r.ee),p;(0,h.R)(58)}}function U(e,n={},r,s,c=(0,i.t)()){(0,a.p)(o.Pl+o.fF,[c,e,n,s],void 0,t.K7.genericEvents,r.ee)}var W=__webpack_require__(9639),z=__webpack_require__(98800);const $=["name","id","type"],Y={experimental:(0,m.J)((()=>(0,h.R)(54,"newrelic.register"))),disabled:(0,m.J)((()=>(0,h.R)(55))),invalidTarget:(0,m.J)((e=>(0,h.R)(48,e))),deregistered:(0,m.J)((()=>(0,h.R)(68)))};function Z(e){(0,s.Y)(o.eY,(function(t){return K(e,t)}),e)}function K(e,n){Y.experimental(),n||={},n.instance=(0,z.LA)(8),n.type=V.fQ.MFE,n.licenseKey||=e.info.licenseKey,n.blocked=!1,("object"!=typeof n.tags||null===n.tags||Array.isArray(n.tags))&&(n.tags={}),n.parent??={get id(){return e.runtime.appMetadata.agents[0].entityGuid},type:V.fQ.BA};const r=(0,W.Qr)(),o={};Object.prototype.hasOwnProperty.call(n,"attributes")||Object.defineProperty(n,"attributes",{get(){return{...o,"source.id":n.id,"source.name":n.name,"source.type":n.type,"parent.type":n.parent?.type||V.fQ.BA,"parent.id":n.parent?.id}}}
6),Object.entries(n.tags).forEach((([e,t])=>{$.includes(e)||(o["source.".concat(e)]=t)}));let s=()=>{};const c=e.runtime.registeredEntities,l=e=>{n.blocked=!0,s=e};function u(e){return"string"==typeof e&&!!e.trim()&&e.trim().length<501}e.init.api.register.enabled||l(Y.disabled),u(n.id)&&u(n.name)||l((()=>Y.invalidTarget(n)));const d={addPageAction:(t,r={})=>v(H,[t,{...o,...r},e],n),deregister:()=>{f(),l(Y.deregistered)},log:(t,r={})=>v(j,[t,{...r,customAttributes:{...o,...r.customAttributes||{}}},e],n),measure:(t,r={})=>v(G,[t,{...r,customAttributes:{...o,...r.customAttributes||{}}},e],n),noticeError:(t,r={})=>v(N,[t,{...o,...r},e],n),recordCustomEvent:(t,r={})=>v(U,[t,{...o,...r},e],n),setApplicationVersion:e=>m("application.version",e),setCustomAttribute:(e,t)=>m(e,t),setUserId:e=>m("enduser.id",e),metadata:{get customAttributes(){return o},target:n,timings:r}},p=()=>(n.blocked&&s(),n.blocked);function f(){if(r.reportedAt)return;r.reportedAt=(0,i.t)();const e=r.fetchEnd-r.fetchStart,t=r.scriptEnd-r.scriptStart;d.recordCustomEvent("MicroFrontEndTiming",{assetUrl:r.asset,assetType:r.type,timeAlive:r.reportedAt-r.registeredAt,timeToBeRequested:r.fetchStart,timeToExecute:t,timeToFetch:e,timeToLoad:e+t,t
6imeToRegister:r.registeredAt})}p()||(c.push(d),(0,E.G)(f));const m=(e,t)=>{p()||(o[e]=t)},v=(n,r,o)=>{if(p()&&n!==K)return;const s=(0,i.t)();(0,a.p)(k.xV,["API/register/".concat(n.name,"/called")],void 0,t.K7.metrics,e.ee);try{return n(...r,o,s)}catch(e){(0,h.R)(50,e)}};return d}class X extends g{static featureName=L.T;constructor(e){var t;super(e,L.T),t=e,(0,s.Y)(o.o5,((e,n)=>N(e,n,t)),t),function(e){(0,s.Y)(o.bt,(function(t){e.runtime.onerror=t}),e)}(e),function(e){let t=0;(0,s.Y)(o.k6,(function(e,n){++t>10||(this.runtime.releaseIds[e.slice(-200)]=(""+n).slice(-200))}),e)}(e),Z(e);try{this.removeOnAbort=new AbortController}catch(e){}this.ee.on("internal-error",((t,n)=>{this.abortHandler&&(0,a.p)("ierr",[O(t),(0,i.t)(),!0,{},e.runtime.isRecording,n],void 0,this.featureName,this.ee)})),d.gm.addEventListener("unhandledrejection",(t=>{this.abortHandler&&(0,a.p)("err",[R(t),(0,i.t)(),!1,{unhandledPromiseRejection:1},e.runtime.isRecording],void 0,this.featureName,this.ee)}),(0,I.jT)(!1,this.removeOnAbort?.signal)),d.gm.addEventListener("error",(t=>{this.abortHandler&&(0,a.p)("err",[M(t),(0,i.t)(),!1,{},e.runtime.isRecording],void 0,this.featureName,this.ee)}),(0,I.jT)(!1,this.removeOnAbort?.signal)),this.abortHandler=this.#n,this.importAggregator(e,(()=>Promise.all([__webpack_require__.e(901),__webpack_require__.e(297)]).then(__webpack_require__.bind(__webpack_require__,18780))))}#n(){this.removeOnAbort?.abort(),this.abortHandler=void 0}}var J=__webpack_require__(29176);let Q=1;function ee(e){const t=typeof e;return!e||"object"!==t&&"function"!==t?-1:e===d.gm?0:(0,J.I)(e,"nr@id",(function(){return Q++}))}function te(e){if("string"==typeof e&&e.length)return e.length;if("object"==typeof e){if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&e.byteLength)return e.byteLength;if("undefined"!=typeof Blob&&e instanceof Blob&&e.size)return e.size;if(!("undefined"!=typeof FormData&&e instanceof FormData))try{return(0,D.A)(e).length}catch(e){return}}}var ne=__webpack_require__(23941),re=__webpack_require__(68126),ae=__webpack_require__(77340);const ie={},oe=["open","send"];function se(e,t){var n=e||re.ee;const r=function(e){return(e||re.ee).get("xhr")}(n);if(void 0===d.gm.XMLHttpRequest)return r;if(ie[r.debugId]++)return r;ie[r.debugId]=1,(0,ne.u)(n);var a=(0,ae.YM)(r),i=d.gm.XMLHttpRequest,o=d.gm.MutationObserver,s=d.gm.Promise,c=d.gm.setInterval,l="readystatechange",u=["onload","onerror","onabort","onloadstart","onloadend","onprogress","ontimeout"],p=[],f=d.gm.XMLHttpRequest=function(e){const n=new i(e),o=r.context(n);o.targets=(0,V.$5)(t);try{r.emit("new-xhr",[n],o),n.addEventListener(l,(s=o,function(){var e=this;e.readyState>3&&!s.resolved&&(s.resolved=!0,r.emit("xhr-resolved",[],e)),a.inPlace(e,u,"fn-",b)}),(0,I.jT)(!1))}catch(e){(0,h.R)(15,e);try{r.emit("internal-error",[e])}catch(e){}}var s;return n};function m(e,t){a.inPlace(t,["onreadystatechange"],"fn-",b)}if(function(e,t){for(var n in e)t[n]=e[n]}(i,f),f.prototype=i.prototype,a.inPlace(f.prototype,oe,"-xhr-",b),r.on("send-xhr-start",(function(e,t){m(e,t),function(e){p.push(e),o&&(v?v.then(_):c?c(_):(g=-g,y.data=g))}(t)})),r.on("open-xhr-start",m),o){var v=s&&s.resolve();if(!c&&!s){var g=1,y=document.createTextNode(g);new o(_).observe(y,{characterData:!0})}}else n.on("fn-end",(function(e){e[0]&&e[0].type===l||_()}));function _(){for(var e=0;e<p.length;e++)m(0,p[e]);p.length&&(p=[])}function b(e,t){return t}return r}var ce="fetch-",le=ce+"body-",ue=["arrayBuffer","blob","json","text","formData"],de=d.gm.Request,he=d.gm.Response,pe="prototype";const fe={};function me(e,t){const n=function(e){return(e||re.ee).get("fetch")}(e);if(!(de&&he&&d.gm.fetch))return n;if(fe[n.debugId]++)return n;function r(e,r,a){var i=e[r];"function"==typeof i&&(e[r]=function(){var e=[...arguments];const r={},o=(0,V.$5)(t);var s;n.emit(a+"before-start",[e],r),r[re.P]&&r[re.P].dt&&(s=r[re.P].dt);var c=i.apply(this,e);return n.emit(a+"start",[e,s],c),c.then((function(e){return n.emit(a+"end",[null,e,o],c),e}),(function(e){throw n.emit(a+"end",[e,void 0,o],c),e}))})}return fe[n.debugId]=1,ue.forEach((e=>{r(de[pe],e,le),r(he[pe],e,le)})),r(d.gm,"fetch",ce),n.on(ce+"end",(function(e,t,r){var a=this;if(a.targets=r||[void 0],t){var i=t.headers.get("content-length");null!==i&&(a.rxSize=i),n.emit(ce+"done",[null,t],a)}else n.emit(ce+"done",[e],a)})),n}var ve=__webpack_require__(21375);class ge{constructor(e){this.agentRef=e}generateTracePayload(e){const t=this.agentRef.loader_config;if(!this.shouldGenerateTrace(e)||!t)return null;var n=(t.accountID||"").toString()||null,r=(t.agentID||"").toString()||null,a=(t.trustKey||"").toString()||null;if(!n||!r)return null;var i=(0,z.ZF)(),o=(0,z.el)(),s=Date.now(),c={spanId:i,traceId:o,timestamp:s};return(e.sameOrigin||this.isAllowedOrigin(e)&&this.useTraceContextHeadersForCors())&&(c.traceContextParentHeader=this.generateTraceContextParentHeader(i,o),c.traceContextStateHeader=this.generateTraceContextStateHeader(i,s,n,r,a)),(e.sameOrigin&&!this.excludeNewrelicHeader()||!e.sameOrigin&&this.isAllowedOrigin(e)&&this.useNewrelicHeaderForCors())&&(c.newrelicHeader=this.generateTraceHeader(i,o,s,n,r,a)),c}generateTraceContextParentHeader(e,t){return"00-"+t+"-"+e+"-01"}generateTraceContextStateHeader(e,t,n,r,a){return a+"@nr=0-1-"+n+"-"+r+"-"+e+"----"+t}
6generateTraceHeader(e,t,n,r,a,i){if(!("function"==typeof d.gm?.btoa))return null;var o={v:[0,1],d:{ty:"Browser",ac:r,ap:a,id:e,tr:t,ti:n}};return i&&r!==i&&(o.d.tk=i),btoa((0,D.A)(o))}shouldGenerateTrace(e){return this.agentRef.init?.distributed_tracing?.enabled&&this.isAllowedOrigin(e)}isAllowedOrigin(e){var t=!1;const n=this.agentRef.init?.distributed_tracing;if(e.sameOrigin)t=!0;else if(n?.allowed_origins instanceof Array)for(var r=0;r<n.allowed_origins.length;r++){var a=(0,ve.D)(n.allowed_origins[r]);if(e.hostname===a.hostname&&e.protocol===a.protocol&&e.port===a.port){t=!0;break}}return t}excludeNewrelicHeader(){var e=this.agentRef.init?.distributed_tracing;return!!e&&!!e.exclude_newrelic_header}useNewrelicHeaderForCors(){var e=this.agentRef.init?.distributed_tracing;return!!e&&!1!==e.cors_use_newrelic_header}useTraceContextHeadersForCors(){var e=this.agentRef.init?.distributed_tracing;return!!e&&!!e.cors_use_tracecontext_headers}}var ye=__webpack_require__(51914),_e=__webpack_require__(44897);function be(e){return"string"==typeof e?e:e instanceof(0,S.dV)().o.REQ?e.url:d.gm?.URL&&e instanceof URL?e.href:void 0}var we=["load","error","abort","timeout"],Se=we.length,Ce=(0,S.dV)().o.REQ,Ee=(0,S.dV)().o.XHR;
6const xe="X-NewRelic-App-Data";class Ae extends g{static featureName=ye.T;constructor(e){super(e,ye.T),this.dt=new ge(e),this.handler=(e,t,n,r)=>(0,a.p)(e,t,n,r,this.ee);try{const e={xmlhttprequest:"xhr",fetch:"fetch",beacon:"beacon"};d.gm?.performance?.getEntriesByType("resource").forEach((n=>{if(n.initiatorType in e&&0!==n.responseStatus){const r={status:n.responseStatus},a={rxSize:n.transferSize,duration:Math.floor(n.duration),cbTime:0};ke(r,n.name),this.handler("xhr",[r,a,n.startTime,n.responseEnd,e[n.initiatorType]],void 0,t.K7.ajax)}}))}catch(e){}me(this.ee,e),se(this.ee,e),function(e,n,r,o){function s(e){var t=this;t.totalCbs=0,t.called=0,t.cbTime=0,t.end=C,t.ended=!1,t.xhrGuids={},t.lastSize=null,t.loadCaptureCalled=!1,t.params=this.params||{},t.metrics=this.metrics||{},t.latestLongtaskEnd=0,e.addEventListener("load",(function(n){x(t,e)}),(0,I.jT)(!1)),d.lR||e.addEventListener("progress",(function(e){t.lastSize=e.loaded}),(0,I.jT)(!1))}function c(e){this.params={method:e[0]},ke(this,e[1]),this.metrics={}}function l(t,n){e.loader_config.xpid&&this.sameOrigin&&n.setRequestHeader("X-NewRelic-ID",e.loader_config.xpid);var r=o.generateTracePayload(this.parsedOrigin);if(r){var a=!1;r.newrelicHeader&&(n.setRequestHeader("newrelic",r.newrelicHeader),a=!0),r.traceContextParentHeader&&(n.setRequestHeader("traceparent",r.traceContextParentHeader),r.traceContextStateHeader&&n.setRequestHeader("tracestate",r.traceContextStateHeader),a=!0),a&&(this.dt=r)}}function u(e,t){var r=this.metrics,a=e[0],o=this;if(r&&a){var s=te(a);s&&(r.txSize=s)}this.startTime=(0,i.t)(),this.body=a,this.listener=function(e){try{"abort"!==e.type||o.loadCaptureCalled||(o.params.aborted=!0),("load"!==e.type||o.called===o.totalCbs&&(o.onloadCalled||"function"!=typeof t.onload)&&"function"==typeof o.end)&&o.end(t)}catch(e){try{n.emit("internal-error",[e])}catch(e){}}};for(var c=0;c<Se;c++)t.addEventListener(we[c],this.listener,(0,I.jT)(!1))}function h(e,t,n){this.cbTime+=e,t?this.onloadCalled=!0:this.called+=1,this.called!==this.totalCbs||!this.onloadCalled&&"function"==typeof n.onload||"function"!=typeof this.end||this.end(n)}function p(e,t){var n=""+ee(e)+!!t;this.xhrGuids&&!this.xhrGuids[n]&&(this.xhrGuids[n]=!0,this.totalCbs+=1)}function f(e,t){var n=""+ee(e)+!!t;this.xhrGuids&&this.xhrGuids[n]&&(delete this.xhrGuids[n],this.totalCbs-=1)}function m(){this.endTime=(0,i.t)()}function v(e,t){t instanceof Ee&&"load"===e[0]&&n.emit("xhr-load-added",[e[1],e[2]],t)}function g(e,t){t instanceof Ee&&"load"===e[0]&&n.emit("xhr-load-removed",[e[1],e[2]],t)}function y(e,t,n){t instanceof Ee&&("onload"===n&&(this.onload=!0),("load"===(e[0]&&e[0].type)||this.onload)&&(this.xhrCbStart=(0,i.t)()))}function _(e,t){this.xhrCbStart&&n.emit("xhr-cb-time",[(0,i.t)()-this.xhrCbStart,this.onload,t],t)}function b(e){var t,n=e[1]||{};if("string"==typeof e[0]?0===(t=e[0]).length&&d.RI&&(t=""+d.gm.location.href):e[0]&&e[0].url?t=e[0].url:d.gm?.URL&&e[0]&&e[0]instanceof URL?t=e[0].href:"function"==typeof e[0].toString&&(t=e[0].toString()),"string"==typeof t&&0!==t.length){t&&(this.parsedOrigin=(0,ve.D)(t),this.sameOrigin=this.parsedOrigin.sameOrigin);var r=o.generateTracePayload(this.parsedOrigin);if(r&&(r.newrelicHeader||r.traceContextParentHeader))if(e[0]&&e[0].headers)s(e[0].headers,r)&&(this.dt=r);else{var a={};for(var i in n)a[i]=n[i];a.headers=new Headers(n.headers||{}),s(a.headers,r)&&(this.dt=r),e.length>1?e[1]=a:e.push(a)}}function s(e,t){var n=!1;return t.newrelicHeader&&(e.set("newrelic",t.newrelicHeader),n=!0),t.traceContextParentHeader&&(e.set("traceparent",t.traceContextParentHeader),t.traceContextStateHeader&&e.set("tracestate",t.traceContextStateHeader),n=!0),n}}function w(e,t){this.params={},this.metrics={},this.startTime=(0,i.t)(),this.dt=t;let[n,r={}]=e;ke(this,be(n));const a=(""+(n&&n instanceof Ce&&n.method||r.method||"GET")).toUpperCase();this.params.method=a,this.body=r.body,this.txSize=te(r.body)||0}function S(e,t){if(this.endTime=(0,i.t)(),this.params||(this.params={}),(0,_e.iW)(this.params))return;let n;this.params.status=t?t.status:0,"string"==typeof this.rxSize&&this.rxSize.length>0&&(n=+this.rxSize);const r={txSize:this.txSize,rxSize:n,duration:(0,i.t)()-this.startTime},a=[this.params,r,this.startTime,this.endTime,"fetch"];
6this.targets.forEach((e=>E(a,this,e)))}function C(e){const t=this.params,n=this.metrics;if(this.ended)return;this.ended=!0;for(let t=0;t<Se;t++)e.removeEventListener(we[t],this.listener,!1);if(t.aborted)return;if((0,_e.iW)(t))return;n.duration=(0,i.t)()-this.startTime,this.loadCaptureCalled||4!==e.readyState?null==t.status&&(t.status=0):x(this,e),n.cbTime=this.cbTime;const r=[t,n,this.startTime,this.endTime,"xhr"];this.targets.forEach((e=>E(r,this,e)))}function E(e,n,a){r("xhr",[...e,a],n,t.K7.ajax)}function x(e,r){e.params.status=r.status;var i=function(e,t){var n=e.responseType;return"json"===n&&null!==t?t:"arraybuffer"===n||"blob"===n||"json"===n?te(e.response):"text"===n||""===n||void 0===n?te(e.responseText):void 0}(r,e.lastSize);if(i&&(e.metrics.rxSize=i),e.sameOrigin&&r.getAllResponseHeaders().indexOf(xe)>=0){var o=r.getResponseHeader(xe);o&&((0,a.p)(k.rs,["Ajax/CrossApplicationTracing/Header/Seen"],void 0,t.K7.metrics,n),e.params.cat=o.split(", ").pop())}e.loadCaptureCalled=!0}n.on("new-xhr",s),n.on("open-xhr-start",c),n.on("open-xhr-end",l),n.on("send-xhr-start",u),n.on("xhr-cb-time",h),n.on("xhr-load-added",p),n.on("xhr-load-removed",f),n.on("xhr-resolved",m),n.on("addEventListener-end",v),n.on("removeEventListener-end",g),n.on("fn-end",_),n.on("fetch-before-start",b),n.on("fetch-start",w),n.on("fn-start",y),n.on("fetch-done",S)}(e,this.ee,this.handler,this.dt),this.importAggregator(e,(()=>Promise.all([__webpack_require__.e(901),__webpack_require__.e(211)]).then(__webpack_require__.bind(__webpack_require__,53200))))}}function ke(e,t){var n=(0,ve.D)(t),r=e.params||e;r.hostname=n.hostname,r.port=n.port,r.protocol=n.protocol,r.host=n.hostname+":"+n.port,r.pathname=n.pathname,e.parsedOrigin=n,e.sameOrigin=n.sameOrigin}const Te={},Le=["pushState","replaceState"];function Ie(e){const t=function(e){return(e||re.ee).get("history")}(e);return!d.RI||Te[t.debugId]++||(Te[t.debugId]=1,(0,ae.YM)(t).inPlace(window.history,Le,"-")),t}var De=__webpack_require__(22752);function Pe(e){(0,s.Y)(o.BL,(function(n=Date.now()){const r=n-d.WN;r<0&&(0,h.R)(62,n),(0,a.p)(k.XG,[o.BL,{time:r}],void 0,t.K7.metrics,e.ee),e.addToTrace({name:o.BL,start:n,origin:"nr"}),(0,a.p)(o.Pl+o.hG,[r,o.BL],void 0,t.K7.genericEvents,e.ee)}),e)}const{He:Oe,bD:Re,d3:Me,Kp:qe,TZ:Ne,Lc:Ve,uP:Fe,Rz:Be}=De;class je extends g{static featureName=Ne;constructor(e){var n;super(e,Ne),n=e,(0,s.Y)(o.U2,(function(e){if(!(e&&"object"==typeof e&&e.name&&e.start))return;const r={n:e.name,s:e.start-d.WN,e:(e.end||e.start)-d.WN,o:e.origin||"",t:"api"};r.s<0||r.e<0||r.e<r.s?(0,h.R)(61,{start:r.s,end:r.e}):(0,a.p)("bstApi",[r],void 0,t.K7.sessionTrace,n.ee)}),n),Pe(e);if(!(0,f.V)(e.init))return void this.deregisterDrain();const r=this.ee;let c;Ie(r),this.eventsEE=(0,ne.u)(r),this.eventsEE.on(Fe,(function(e,t){this.bstStart=(0,i.t)()})),this.eventsEE.on(Ve,(function(e,n){(0,a.p)("bst",[e[0],n,this.bstStart,(0,i.t)()],void 0,t.K7.sessionTrace,r)})),r.on(Be+Me,(function(e){this.time=(0,i.t)(),this.startPath=location.pathname+location.hash})),r.on(Be+qe,(function(e){(0,a.p)("bstHist",[location.pathname+location.hash,this.startPath,this.time],void 0,t.K7.sessionTrace,r)}));try{c=new PerformanceObserver((e=>{const n=e.getEntries();(0,a.p)(Oe,[n],void 0,t.K7.sessionTrace,r)})),c.observe({type:Re,buffered:!0})}catch(e){}this.importAggregator(e,(()=>Promise.all([__webpack_require__.e(901),__webpack_require__.e(189)]).then(__webpack_require__.bind(__webpack_require__,45942))),{resourceObserver:c})}}var He=__webpack_require__(55590);class Ge extends g{static featureName=He.TZ;#r;recorder;constructor(e){var n;let r;super(e,He.TZ),n=e,(0,s.Y)(o.CH,(function(){(0,a.p)(o.CH,[],void 0,t.K7.sessionReplay,n.ee)}),n),function(e){(0,s.Y)(o.Tb,(function(){(0,a.p)(o.Tb,[],void 0,t.K7.sessionReplay,e.ee)}),e)}(e);try{r=JSON.parse(localStorage.getItem("".concat(_.H3,"_").concat(_.uh)))}catch(e){}(0,p.SR)(e.init)&&this.ee.on(o.CH,(()=>this.#a())),this.#i(r)&&this.importRecorder().then((e=>{e.startRecording(He.Qb.PRELOAD,r?.sessionReplayMode)})),this.importAggregator(this.agentRef,(()=>Promise.all([__webpack_require__.e(901),__webpack_require__.e(815)]).then(__webpack_require__.bind(__webpack_require__,31076))),this),this.ee.on("err",(e=>{this.blocked||this.agentRef.runtime.isRecording&&(this.errorNoticed=!0,(0,a.p)(He.Vh,[e],void 0,this.featureName,this.ee))}))}#i(e){return e&&(e.sessionReplayMode===_.g.FULL||e.sessionReplayMode===_.g.ERROR)||(0,p.Aw)(this.agentRef.init)}importRecorder(){return this.recorder?Promise.resolve(this.recorder):(this.#r??=__webpack_require__.e(777).then(__webpack_require__.bind(__webpack_require__,36344)).then((({Recorder:e})=>(this.recorder=new e(this),this.recorder))).catch((e=>{throw this.ee.emit("internal-error",[e]),this.blocked=!0,e})),this.#r)}#a(){this.blocked||(this.featAggregate?this.featAggregate.mode!==_.g.FULL&&this.featAggregate.initializeRecording(_.g.FULL,!0,He.Qb.API):this.importRecorder().then((()=>{this.recorder.startRecording(He.Qb.API,_.g.FULL)})))}}var Ue=__webpack_require__(17023),We=__webpack_require__(18897);const ze={},$e=new Set;function Ye(e){return"string"==typeof e?{type:"string",size:(new TextEncoder).encode(e).length}:e instanceof ArrayBuffer?{type:"ArrayBuffer",size:e.byteLength}:e instanceof Blob?{type:"Blob",size:e.size}:e instanceof DataView?{type:"DataView",size:e.byteLength}:ArrayBuffer.isView(e)?{type:"TypedArray",size:e.byteLength}:{type:"unknown",size:0}}class Ze{constructor(e,t){this.timestamp=(0,i.t)(),this.currentUrl=(0,We.L)(window.location.href),this.socketId=(0,z.LA)(8),this.requestedUrl=(0,We.L)(e),this.requestedProtocols=Array.isArray(t)?t.join(","):t||"",this.openedAt=void 0,this.protocol=void 0,this.extensions=void 0,this.binaryType=void 0,this.messageOrigin=void 0,this.messageCount=0,this.messageBytes=0,this.messageBytesMin=0,this.messageBytesMax=0,this.messageTypes=void 0,this.sendCount=0,this.sendBytes=0,this.sendBytesMin=0,this.sendBytesMax=0,this.sendTypes=void 0,this.closedAt=void 0,this.closeCode=void 0,this.closeReason="unknown",this.closeWasClean=void 0,this.connectedDuration=0,this.hasErrors=void 0}}class Ke extends g{static featureName=Ue.TZ;constructor(e){super(e,Ue.TZ);const n=e.init.feature_flags.includes("websockets"),r=!e.init.feature_flags.includes("no_spv"),c=[e.init.page_action.enabled,e.init.performance.capture_marks,e.init.performance.capture_measures,e.init.performance.resources.enabled,e.init.user_actions.enabled,n,r];var l;let u;if(l=e,(0,s.Y)(o.hG,((e,t)=>
6H(e,t,l)),l),function(e){(0,s.Y)(o.fF,((t,n)=>U(t,n,e)),e)}(e),Pe(e),Z(e),function(e){(0,s.Y)(o.V1,((t,n)=>G(t,n,e)),e)}(e),this.removeOnAbort=new AbortController,this.abortHandler=()=>{this.removeOnAbort.abort(),this.abortHandler=void 0},n){const h=function(e){if(!(0,S.dV)().o.WS)return e;const t=e.get("websockets");if(ze[t.debugId]++)return t;ze[t.debugId]=1,(0,E.G)((()=>{const e=(0,i.t)();$e.forEach((n=>{n.nrData.closedAt=e,n.nrData.closeCode=1001,n.nrData.closeReason="Page navigating away",n.nrData.closeWasClean=!1,n.nrData.openedAt&&(n.nrData.connectedDuration=e-n.nrData.openedAt),t.emit("ws",[n.nrData],n)}))}));class n extends WebSocket{static name="WebSocket";static toString(){return"function WebSocket() { [native code] }"}toString(){return"[object WebSocket]"}get[Symbol.toStringTag](){return n.name}#o(e){(e.__newrelic??={}).socketId=this.nrData.socketId,this.nrData.hasErrors??=!0}constructor(...e){super(...e),this.nrData=new Ze(e[0],e[1]),this.addEventListener("open",(()=>{this.nrData.openedAt=(0,i.t)(),["protocol","extensions","binaryType"].forEach((e=>{this.nrData[e]=this[e]})),$e.add(this)})),this.addEventListener("message",(e=>{const{type:t,size:n}=Ye(e.data);this.nrData.messageOrigin??=(0,We.L)(e.origin),this.nrData.messageCount++,this.nrData.messageBytes+=n,this.nrData.messageBytesMin=Math.min(this.nrData.messageBytesMin||1/0,n),this.nrData.messageBytesMax=Math.max(this.nrData.messageBytesMax,n),(this.nrData.messageTypes??"").includes(t)||(this.nrData.messageTypes=this.nrData.messageTypes?"".concat(this.nrData.messageTypes,",").concat(t):t)})),this.addEventListener("close",(e=>{this.nrData.closedAt=(0,i.t)(),this.nrData.closeCode=e.code,e.reason&&(this.nrData.closeReason=e.reason),this.nrData.closeWasClean=e.wasClean,this.nrData.connectedDuration=this.nrData.closedAt-this.nrData.openedAt,$e.delete(this),t.emit("ws",[this.nrData],this)}))}addEventListener(e,t,...n){const r=this,a="function"==typeof t?function(...e){try{return t.apply(this,e)}catch(e){throw r.#o(e),e}}:t?.handleEvent?{handleEvent:function(...e){try{return t.handleEvent.apply(t,e)}catch(e){throw r.#o(e),e}}}:t;return super.addEventListener(e,a,...n)}send(e){if(this.readyState===WebSocket.OPEN){const{type:t,size:n}=Ye(e);this.nrData.sendCount++,this.nrData.sendBytes+=n,this.nrData.sendBytesMin=Math.min(this.nrData.sendBytesMin||1/0,n),this.nrData.sendBytesMax=Math.max(this.nrData.sendBytesMax,n),(this.nrData.sendTypes??"").includes(t)||(this.nrData.sendTypes=this.nrData.sendTypes?"".concat(this.nrData.sendTypes,",").concat(t):t)}try{return super.send(e)}catch(e){throw this.#o(e),e}}close(...e){try{super.close(...e)}catch(e){throw this.#o(e),e}}}return d.gm.WebSocket=n,t}(this.ee);h.on("ws",(e=>{(0,a.p)("ws-complete",[e],void 0,this.featureName,this.ee)}))}if(r&&d.gm.addEventListener("securitypolicyviolation",(e=>{(0,a.p)("spv",[e],void 0,t.K7.genericEvents,this.ee)}),(0,I.jT)(!1,this.removeOnAbort.signal)),d.RI){if(me(this.ee,e),se(this.ee,e),u=Ie(this.ee),e.init.user_actions.enabled){function p(t){const n=(0,ve.D)(t);return e.beacons.includes(n.hostname+":"+n.port)}function f(){u.emit("navChange")}Ue.Zp.forEach((e=>(0,I.sp)(e,(e=>(0,a.p)("ua",[e],void 0,this.featureName,this.ee)),!0))),Ue.qN.forEach((e=>{const t=(0,m.s)((e=>{(0,a.p)("ua",[e],void 0,this.featureName,this.ee)}),500,{leading:!0});(0,I.sp)(e,t)})),d.gm.addEventListener("error",(()=>{(0,a.p)("uaErr",[],void 0,t.K7.genericEvents,this.ee)}),(0,I.jT)(!1,this.removeOnAbort.signal)),this.ee.on("open-xhr-start",((e,n)=>{p(e[1])||n.addEventListener("readystatechange",(()=>{2===n.readyState&&(0,a.p)("uaXhr",[],void 0,t.K7.genericEvents,this.ee)}),(0,I.jT)(void 0,this.removeOnAbort.signal))})),this.ee.on("fetch-start",(e=>{e.length>=1&&!p(be(e[0]))&&(0,a.p)("uaXhr",[],void 0,t.K7.genericEvents,this.ee)})),u.on("pushState-end",f),u.on("replaceState-end",f),window.addEventListener("hashchange",f,(0,I.jT)(!0,this.removeOnAbort.signal)),window.addEventListener("popstate",f,(0,I.jT)(!0,this.removeOnAbort.signal))}if(e.init.performance.resources.enabled&&d.gm.PerformanceObserver?.supportedEntryTypes.includes("resource")){new PerformanceObserver((e=>
6{e.getEntries().forEach((e=>{(0,a.p)("browserPerformance.resource",[e],void 0,this.featureName,this.ee)}))})).observe({type:"resource",buffered:!0})}}c.some((e=>e))?this.importAggregator(e,(()=>Promise.all([__webpack_require__.e(901),__webpack_require__.e(368)]).then(__webpack_require__.bind(__webpack_require__,90872)))):this.deregisterDrain()}}var Xe=__webpack_require__(81752);const Je=new Map;function Qe(e,t,n,r,a=!0,i){if("object"!=typeof t||!t||"string"!=typeof n||!n||"function"!=typeof t[n])return(0,h.R)(29);const o=function(e){return(e||re.ee).get("logger")}(e),s=(0,ae.YM)(o,void 0,i),c=new Xe.y(re.P);c.level=r.level,c.customAttributes=r.customAttributes,c.autoCaptured=a;const l=t[n]?.[ae.Jt]||t[n];return Je.set(l,c),s.inPlace(t,[n],"wrap-logger-",(()=>Je.get(l)),void 0,!0),o}var et=__webpack_require__(53720);class tt extends g{static featureName=F.TZ;constructor(e){var t;super(e,F.TZ),t=e,(0,s.Y)(o.$9,((e,n)=>j(e,n,t)),t),function(e){(0,s.Y)(o.Wb,((t,n,{customAttributes:r={},level:a=F.p_.INFO}={})=>{Qe(e.ee,t,n,{customAttributes:r,level:a},!1,e)}),e)}(e),Z(e);const n=this.ee;["log","error","warn","info","debug","trace"].forEach((t=>{(0,et.i)(d.gm.console[t]),Qe(n,d.gm.console,t,{level:"log"===t?"info":t},void 0,e)})),this.ee.on("wrap-logger-end",(function([e],t,r,a=[]){const{level:i,customAttributes:o,autoCaptured:s}=this;a.forEach((t=>{(0,B.R)(n,e,o,i,s,t)}))})),this.importAggregator(e,(()=>Promise.all([__webpack_require__.e(901),__webpack_require__.e(100)]).then(__webpack_require__.bind(__webpack_require__,87777))))}}var nt=__webpack_require__(276);class rt extends g{static featureName=nt.TZ;constructor(e){if(super(e,nt.TZ),function(e){const n=e.ee.get("tracer");function r(){}(0,s.Y)(o.dT,(function(e){return(new r).get("object"==typeof e?e:{})}),e);const c=r.prototype={createTracer:function(r,o){var s={},c=this,l="function"==typeof o;return(0,a.p)(k.xV,["API/createTracer/called"],void 0,t.K7.metrics,e.ee),function(){if(n.emit((l?"":"no-")+"fn-start",[(0,i.t)(),c,l],s),l)try{return o.apply(this,arguments)}catch(e){const t="string"==typeof e?new Error(e):e;throw n.emit("fn-err",[arguments,this,t],s),t}finally{n.emit("fn-end",[(0,i.t)()],s)}}}};["actionText","setName","setAttribute","save","ignore","onEnd","getContext","end","get"].forEach((n=>{s.Y.apply(this,[n,function(){return(0,a.p)(o.hw+n,[performance.now(),...arguments],this,t.K7.softNav,e.ee),this},e,c])})),(0,s.Y)(o.PA,(function(){(0,a.p)(o.hw+"routeName",[performance.now(),...arguments],void 0,t.K7.softNav,e.ee)}),e)}(e),!d.RI||!(0,S.dV)().o.MO)return;const n=Ie(this.ee);try{this.removeOnAbort=new AbortController}catch(e){}nt.tC.forEach((e=>{(0,I.sp)(e,(e=>{u(e)}),!0,this.removeOnAbort?.signal)}
6));const r=()=>(0,a.p)("newURL",[(0,i.t)(),""+window.location],void 0,this.featureName,this.ee);n.on("pushState-end",r),n.on("replaceState-end",r),(0,I.sp)(nt.OV,(e=>{u(e),(0,a.p)("newURL",[e.timeStamp,""+window.location],void 0,this.featureName,this.ee)}),!0,this.removeOnAbort?.signal);let c=!1;const l=new((0,S.dV)().o.MO)(((e,t)=>{c||(c=!0,requestAnimationFrame((()=>{(0,a.p)("newDom",[(0,i.t)()],void 0,this.featureName,this.ee),c=!1})))})),u=(0,m.s)((e=>{"loading"!==document.readyState&&((0,a.p)("newUIEvent",[e],void 0,this.featureName,this.ee),l.observe(document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}))}),100,{leading:!0});this.abortHandler=function(){this.removeOnAbort?.abort(),l.disconnect(),this.abortHandler=void 0},this.importAggregator(e,(()=>Promise.all([__webpack_require__.e(901),__webpack_require__.e(828),__webpack_require__.e(769)]).then(__webpack_require__.bind(__webpack_require__,63312))),{domObserver:l})}}class at extends C{constructor(e){super({...e,features:[Ae,w,A,je,T,X,rt,Ge,Ke,tt],loaderType:"browser-agent"})}}var it=__webpack_require__(69267),ot=!1,st="bam.eu01.nr-data.net";function ct(){var e=document.getElementById("amag-infrastructure-info");return e instanceof HTMLElement?{environment:e.dataset.environment,publisher:e.dataset.publisher}:{}}!function(){if(!ot&&"undefined"!=typeof window&&"true"===ct().publisher){var e=function(){var e=ct().environment,t=(null==e?void 0:e.toLowerCase())||"";return t.includes("prod")?"prod":t.includes("stage")?"stage":null}();if(e&&function(e){var t=(0,it.PA)("stage,prod").map((function(e){return e.toLowerCase()})).filter(Boolean);return 0!==t.length&&t.includes(e)}(e)){var t=function(e){var t="prod"===e?"538854442":"538848359",n="NRJS-f9581b55a288c743721";return{init:{distributed_tracing:{enabled:!0},privacy:{cookies_enabled:!0},ajax:{deny_list:[st]},browser_consent_mode:{enabled:!1},performance:{capture_detail:!1,capture_marks:!1,capture_measures:!0},logging:{enabled:!0,autoStart:!0}},info:{applicationID:t||"",licenseKey:n||"",beacon:st||"",errorBeacon:st||"",sa:1},loader_config:{accountID:"3142010",trustKey:"3142010",agentID:t||"",licenseKey:n||"",applicationID:t||""}}}(e);(function(e){return Boolean(e.info.applicationID&&e.info.licenseKey&&e.info.beacon&&e.info.errorBeacon&&e.loader_config.accountID&&e.loader_config.trustKey&&e.loader_config.agentID)})(t)&&(new at({init:t.init,info:t.info,loader_config:t.loader_config}).setCustomAttribute("identifier","AMAGCH_LOG"),ot=!0)}}}();__webpack_require__(52043);var lt=__webpack_require__(10467),ut=__webpack_require__(89394),dt=__webpack_require__(54756),ht=__webpack_require__.n(dt),pt=__webpack_require__(23029),ft=__webpack_require__(92901),mt=function(){function e(t,n){(0,pt.A)(this,e),this._elementSelector=t,this._element=document.querySelector(t),this._currentPage=n.page||1,this._pageSize=n.pageSize||10,this._totalPages=0,this._currentlyDisplayedItemsCount=0,this._dataSource=n.dataSource,this._drawComplete=n.drawComplete,this._indicatorContainer=document.createElement("div"),this._indicatorContainer.classList.add("page-counter"),this._previousButton=document.createElement("button"),this._previousButton.classList.add("previous-page","order-first","order-md-0"),this._previousButton.innerHTML='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M16.9907 31.3334C16.828 31.3334 16.672 31.2747 16.5507 31.168L1.02538 17.5C0.962712 17.444 0.902712 17.384 0.846712 17.3214C0.556046 16.992 0.388046 16.5814 0.360046 16.1307C0.352046 16.096 0.342712 16.052 0.342712 16C0.342712 15.9654 0.346712 15.936 0.352046 15.912C0.352046 15.9 0.352046 15.8854 0.352046 15.872C0.385379 15.34 0.624046 14.852 1.02538 14.4987L16.5494 0.833354C16.672 0.725354 16.828 0.666687 16.9907 0.666687C17.1827 0.666687 17.364 0.749354 17.4907 0.89202C17.7334 1.16802 17.7067 1.59069 17.4307 1.83335L2.09471 15.3334L30.9894 15.3334C31.3574 15.3334 31.656 15.632 31.656 16C31.656 16.368 31.3574 16.6667 30.9894 16.6667L2.09871 16.6667L17.432 30.1667C17.708 30.4094 17.7347 30.832 17.492 31.108C17.364 31.2507 17.1814 31.3334 16.9907 31.3334Z" fill="#222222"/>
6\n </svg>',this._nextButton=document.createElement("button"),this._nextButton.classList.add("next-page"),this._nextButton.innerHTML='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M15.0093 31.3334C14.8173 31.3334 14.6347 31.2507 14.5093 31.108C14.2667 30.832 14.2933 30.4094 14.5693 30.1667L29.904 16.6667L1.00933 16.6667C0.641333 16.6667 0.342667 16.368 0.342667 16C0.342667 15.632 0.641333 15.3334 1.00933 15.3334L29.9013 15.3334L14.568 1.83335C14.4347 1.71602 14.3547 1.55335 14.3427 1.37602C14.332 1.19869 14.3907 1.02669 14.508 0.893354C14.6347 0.749354 14.8173 0.666687 15.008 0.666687C15.1707 0.666687 15.3267 0.725354 15.448 0.833354L30.9733 14.5014C31.036 14.5574 31.096 14.616 31.152 14.68C31.4427 15.0094 31.6107 15.42 31.6387 15.8707C31.648 15.9054 31.656 15.948 31.656 16C31.656 16.0347 31.652 16.064 31.6467 16.0867C31.6467 16.0987 31.6467 16.1107 31.6467 16.124C31.6133 16.66 31.3733 17.148 30.9733 17.5014L15.4493 31.168C15.328 31.2747 15.1707 31.3334 15.0093 31.3334Z" fill="#222222"/>\n </svg>',this._indicators={currentPage:document.createElement("span"),totalPages:document.createElement("span")},this._indicators.totalPages.classList.add("totalPages"),this._indicators.currentPage.classList.add("currentPage"),this._indicatorContainer.append(this._indicators.currentPage," / ",this._indicators.totalPages),this._response=[],this._bindEventListeners()}return(0,ft.A)(e,[{key:"_bindEventListeners",value:function(){var e=this;this._nextButton.addEventListener("click",(0,lt.A)(ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.next();case 2:case"end":return t.stop()}}),t)})))),this._previousButton.addEventListener("click",(0,lt.A)(ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.previous();case 2:case"end":return t.stop()}}),t)}))))}},{key:"_fetch",value:(a=(0,lt.A)(ht().mark((function e(t){var n;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._currentPage=t,n={pageSize:this._pageSize,page:t,offset:this._offset(t)},e.next=4,this._dataSource(n);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"isLastPage",value:function(){return this._currentPage===this._totalPages}},{key:"isFirstPage",value:function(){return 1===this._currentPage}},{key:"next",value:(r=(0,lt.A)(ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isLastPage()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this._fetch(this._currentPage+1);case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"previous",value:(n=(0,lt.A)(ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isFirstPage()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this._fetch(this._currentPage-1);case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"reload",value:(t=(0,lt.A)(ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._fetch(this._currentPage);case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_offset",value:function(e){return(e||this._currentPage-1)*this._pageSize}},{key:"currentPage",get:function(){return this._currentPage},set:function(e){this._currentPage=e||1}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=e}},{key:"totalPages",get:function(){return this._totalPages},set:function(e){this._totalPages=e}},{key:"results",get:function(){return this._response}},{key:"render",value:function(){this._indicators.totalPages.innerText=this._totalPages,this._indicators.currentPage.innerText=this._currentPage,this._nextButton.disabled=this.isLastPage(),this._previousButton.disabled=this.isFirstPage(),document.body.contains(this._element)||(this._element=document.querySelector(this._elementSelector)),this._element&&(this._element.innerHTML="",this._element.append(this._indicatorContainer,this._previousButton,this._nextButton),this._drawComplete&&this._drawComplete())}}],[{key:"lastState",get:function(){return e._lastState}}]);var t,n,r,a}();function vt(e){return new Promise((function(t){var n,r=(null===(n=document.querySelector("header#header > .amag-header"))||void 0===n?void 0:n.offsetHeight)||0;window.scrollY>e.offsetTop?gt(e.offsetTop-r,(function(){return t()})):gt(e.offsetTop,(function(){return t()}))}))}function gt(e,t){var n=(e=Math.max(e,0)).toFixed(),r=function(){window.pageYOffset.toFixed()===n&&(window.removeEventListener("scroll",r),t&&t())};window.addEventListener("scroll",r),r(),window.scrollTo({top:e,behavior:"smooth"})}function yt(e){document.getElementsByTagName("html")[0].style.scrollBehavior=e?"smooth":"auto"}mt._lastState={};var _t,bt=__webpack_require__(3653),wt=__webpack_require__(95707),St=__webpack_require__(74692);St((function(){if(document.querySelector(".amag-dspSearchPage")){var e,t,n="amagch-search-dsp",r="amagch-search",a="searchQueries",i=document.querySelector("html").getAttribute("lang"),o="EN"===(i||"").toUpperCase()?"DE":(i||"").toUpperCase(),s=document.querySelector("#amag-dspSearchPageInput"),c=document.querySelector(".amag-dspSearchPage__inputLabel"),l=document.querySelector(".amag-dspSearchPage__content"),u=document.querySelector("#amag-dspSearchPage__deleteSearch"),d=document.querySelectorAll(".amag-header__listItem a"),h=document.querySelector(".amag-dspSearchPage__lastSearchQueriesOverlay"),p=/(\b)(on\S+)(\s*)=|javascript|<(|\/|[^\/>
6][^>]+|\/[^>][^>]+)>/gi,f=1,m=!1,v=!1,g=function(){return s.value.replace(p,"").toLowerCase()},y=function(e){var t=document.cookie.match("(^|;) ?".concat(e,"=([^;]*)(;|$)"));return t?t[2]:null},_=function(){var e=(0,lt.A)(ht().mark((function e(t,n,r,a){var i,o;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,(i=new URL(window.location.origin+(0,wt.d)(n))).searchParams.append("q",encodeURI(t)),a&&i.searchParams.append("p",encodeURI(a)),!r){e.next=10;break}return e.next=7,fetch("".concat(r));case 7:e.t0=e.sent,e.next=13;break;case 10:return e.next=12,fetch(i.href);case 12:e.t0=e.sent;case 13:if(!(o=e.t0).ok){e.next=18;break}return e.next=17,o.json();case 17:return e.abrupt("return",e.sent);case 18:throw new Error("Something went wrong with the search request: SEARCHTERM-".concat(t,", SELECTOR-").concat(n));case 21:e.prev=21,e.t1=e.catch(0),console.error("Failed ".concat(e.t1));case 24:case"end":return e.stop()}}),e,null,[[0,21]])})));return function(t,n,r,a){return e.apply(this,arguments)}}(),b=function(e){return!!(e&&e.length>0)},w=function(e){document.querySelectorAll(e)&&document.querySelectorAll(e).forEach((function(e){for(var t=e.innerHTML.split(" ");e.scrollHeight>e.offsetHeight;)t.pop(),e.innerHTML="".concat(t.join(" "),"...")}))},S=function(e,t,n){var r='<div class="amag-dspSearchPage__result">\n <h3 class="amag-dspSearchPage__resultText"><span class="amag-dspSearchPage__resultTextCounter">'.concat(e,"</span> ").concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.searchResultText"),' "<span class="amag-dspSearch__searchTerm">').concat(g(),'</span>"</h3>\n <div class="amag-dspSearchPage__sectionResultWrapper">\n ').concat(t,"\n ").concat(n,"\n </div>\n </div>");St(".amag-dspSearchPage__header").append(r)},C=function(e,t){return 1===t&&(t=f%2,f+=1),e.map((function(n){return'<div class="amag-searchResultCard '.concat(e.indexOf(n)%2===t?"amag-searchResultCard--bgColorGrey":"",'">\n <div class="amag-searchResultCard__content">\n <div class="amag-searchResultCard__header">\n <p class="amag-searchResultCard__breadcrumbLink">').concat(n.fields.meta_breadcrumb,'</p>\n </div>\n <div class="amag-searchResultCard__body">\n <a class="amag-searchResultCard__title text-decoration-none" href="').concat(n.target,'">').concat(n.fields.page_title,'</a>\n <a class="amag-searchResultCard__text col-lg-9 col-md-12 col-sm-12 text-decoration-none" href="').concat(n.target,'">').concat(n.fields.meta_description,"</a>\n </div>\n </div>\n </div>")})).join("")},E=function(){var t=(0,lt.A)(ht().mark((function t(){var n;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_(g(),r,e);case 2:n=t.sent,St(".amag-dspContentWrapper__searchResultWrapper").append("".concat(C(n.results,1))),w(".amag-searchResultCard__text"),0!==n.nextResultsCount?(document.querySelector(".amag-dspContentWrapper__showMoreCounter").innerHTML="".concat(n.nextResultsCount),e=n.next):document.querySelector(".amag-dspContentWrapper__showMoreWrapper").remove();case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),x=function(t){if(b(t.results)){m=!0;var n='\n <div class="amag-dspSearchPage__contentSectionResult">\n <a class="amag-dspSearchPage__contentSectionResultLink text-decoration-none" href="#amag-dspContentSection">\n <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M16 31.652C15.9573 31.652 15.9147 31.6507 15.872 31.648C15.3387 31.6147 14.8507 31.3747 14.4973 30.9747L0.83199 15.4493C0.714656 15.316 0.65599 15.144 0.666656 14.9667C0.678656 14.7893 0.757323 14.6267 0.89199 14.508C1.01332 14.4013 1.16932 14.3413 1.33199 14.3413C1.52399 14.3413 1.70666 14.424 1.83199 14.568L15.332 29.904V1.00932C15.332 0.641318 15.6307 0.342651 15.9987 0.342651C16.3667 0.342651 16.6653 0.641318 16.6653 1.00932V29.9013L30.1653 14.5693C30.2933 14.4253 30.4747 14.3427 30.6653 14.3427C30.828 14.3427 30.984 14.4013 31.1053 14.5093C31.3813 14.752 31.408 15.1747 31.1653 15.4507L17.4987 30.9747C17.4427 31.0373 17.3827 31.0987 17.3187 31.1547C16.9547 31.4747 16.4867 31.652 16 31.652Z" fill="#801977"/>\n </svg>\n '.concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.content"),' (<span class="amag-dspSearchPage__contentSectionCounter">').concat(t.totalResultsCount,"</span>)\n </a>\n </div>");S(t.totalResultsCount,n,""),St(l).append('<div id="amag-dspContentSection" class="amag-dspContentWrapper">\n <h2 class="amag-dspContentWrapper__headline">'.concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.content"),' (<span class="amag-dspContentWrapper__headlineCounter">').concat(t.totalResultsCount,'</span>)</h2>\n <div class="amag-dspContentWrapper__searchResultWrapper">\n ').concat(C(t.results,0),"\n </div>\n ").concat(t.nextResultsCount>0?'<div class="amag-dspContentWrapper__showMoreWrapper">\n <button class="amag-dspContentWrapper__showMoreBtn d-flex justify-content-center align-items-center text-decoration-none" role="button">\n <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M15.3043 32C14.5363 32 13.913 31.3767 13.913 30.6087V18.087H1.3913C0.623304 18.087 0 17.4637 0 16.6957C0 15.9277 0.623304 15.3043 1.3913 15.3043H13.913V1.3913C13.913 0.623304 14.5363
60 15.3043 0C16.0723 0 16.6957 0.623304 16.6957 1.3913V15.3043H30.6087C31.3767 15.3043 32 15.9277 32 16.6957C32 17.4637 31.3767 18.087 30.6087 18.087H16.6957V30.6087C16.6957 31.3739 16.0723 32 15.3043 32Z" fill="white"></path>\n </svg>\n <span class="amag-dspContentWrapper__showMoreCounter">'.concat(t.nextResultsCount,"</span>").concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.showMore"),"\n </button>\n </div>"):"","\n </div>")),w(".amag-searchResultCard__text"),e=t.next,document.querySelector(".amag-dspContentWrapper__showMoreBtn")&&document.querySelector(".amag-dspContentWrapper__showMoreBtn").addEventListener("click",(0,lt.A)(ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.scrollY,e.next=3,E();case 3:yt(!1),St([document.documentElement,document.body]).scrollTop(t),yt(!0);case 6:case"end":return e.stop()}}),e)}))))}else m=!1},A=function(e){if(b(e.results)){v=!0;var t='<div class="amag-dspSearchPage__carOfferSectionResult">\n <a class="amag-dspSearchPage__carOfferSectionResultLink text-decoration-none" href="#amag-dspCarOfferSection">\n <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M16 31.652C15.9573 31.652 15.9147 31.6507 15.872 31.648C15.3387 31.6147 14.8507 31.3747 14.4973 30.9747L0.83199 15.4493C0.714656 15.316 0.65599 15.144 0.666656 14.9667C0.678656 14.7893 0.757323 14.6267 0.89199 14.508C1.01332 14.4013 1.16932 14.3413 1.33199 14.3413C1.52399 14.3413 1.70666 14.424 1.83199 14.568L15.332 29.904V1.00932C15.332 0.641318 15.6307 0.342651 15.9987 0.342651C16.3667 0.342651 16.6653 0.641318 16.6653 1.00932V29.9013L30.1653 14.5693C30.2933 14.4253 30.4747 14.3427 30.6653 14.3427C30.828 14.3427 30.984 14.4013 31.1053 14.5093C31.3813 14.752 31.408 15.1747 31.1653 15.4507L17.4987 30.9747C17.4427 31.0373 17.3827 31.0987 17.3187 31.1547C16.9547 31.4747 16.4867 31.652 16 31.652Z" fill="#801977"/>\n </svg>\n '.concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.carOffer"),' (<span class="amag-dspSearchPage__carOfferSectionCounter">').concat(e.totalResultsCount,"</span>)\n </a>\n </div>");if(document.querySelector(".amag-dspSearchPage__result")){St(".amag-dspSearchPage__sectionResultWrapper").prepend(t);var r=document.querySelector(".amag-dspSearchPage__resultTextCounter");r.innerHTML=parseInt(r.innerHTML,10)+e.totalResultsCount}else S(e.totalResultsCount,"",t);St(l).prepend('<div id="amag-dspCarOfferSection" class="amag-dspCarOfferWrapper">\n <div class="amag-dspCarOfferWrapper__header">\n <h2 class="amag-dspCarOfferWrapper__headline">'.concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.carOffer"),' (<span class="amag-dspCarOfferWrapper__headlineCounter">').concat(e.totalResultsCount,'</span>)</h2>\n </div>\n <div class="amag-dspCarOfferWrapper__searchResultWrapper row">\n ').concat((i=e.results,i.map((function(e){return'<a class="amag-searchResultCarOffer col-lg-4 col-md-6 col-sm-12 text-decoration-none" href="'.concat(e.fields.url[o],'">\n <div class="amag-searchResultCarOffer__content amag-searchResultCarOffer__content--bgColorGrey">\n <div class="row mx-0">\n \t<div class="col-6 pl-0">\n\t <div class="amag-searchResultCarOffer__imgWrapper">\n\t <img src="').concat(e.fields.image_url,'" class="amag-searchResultCarOffer__image">\n\t </div>\n\t </div>\n <div class="amag-searchResultCarOffer__body col-6">\n <p class="amag-searchResultCarOffer__brand">').concat(e.fields.manufacturer_name," ").concat(e.fields.base_model_name,'</p>\n \x3c!-- <p class="amag-searchResultCarOffer__brandDescription">Quattro Tiptronic</p> --\x3e\n <p class="amag-searchResultCarOffer__priceLabel">CHF <span class="amag-searchResultCarOffer__priceValue">').concat(e.fields.price_customer,"</span>.-</p>\n </div>\n </div>\n </div>\n </a>")})).join("")),'\n </div>\n <div class="amag-dspCarOfferWrapper__showAllWrapper d-flex flex-column flex-md-row">\n <a href="').concat(e.dspThreeSixtySearchUrl,'" class="amag-dspCarOfferWrapper__showAllBtn d-flex justify-content-center align-items-center text-decoration-none" role="button">\n <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M3.33366 20.6667C2.59899 20.6667 2.00033 20.0693 2.00033 19.3333V18C1.26566 18 0.666992 17.4027 0.666992 16.6667V12.276C0.666992 11.92 0.805659 11.5867 1.05633 11.3347L3.43233 8.95867L5.88033 2.83733C6.08433 2.32933 6.56966 2 7.11766 2H20.8817C21.431 2 21.9163 2.328 22.1203 2.83733L24.5683 8.95867L27.1377 11.528C27.2643 11.6547 27.3337 11.8213 27.3337 12C27.3337 12.1787 27.2643 12.3453 27.139 12.472C27.0137 12.5987 26.8457 12.6667 26.667 12.6667C26.4883 12.6667 26.3217 12.5973 26.195 12.472L23.7243 10H4.27633L2.00033 12.2773V14H7.33366C7.70166 14 8.00033 14.2987 8.00033 14.6667C8.00033 15.0347 7.70166 15.3333 7.33366 15.3333H2.00033V16.6667H12.607C12.975 16.6667 13.2737 16.9653 13.2737 17.3333C13.2737 17.7013 12.975 18 12.607 18H7.33366V19.3333C7.33366 20.0693 6.73499 20.6667 6.00033 20.6667H3.33366ZM3.33366 19.3333H6.00033V18H3.33366V19.3333ZM23.015 8.66667L20.8817 3.33333H7.11633L4.98433 8.66667H23.015Z" fill="white"/>\n <path d="M30.6696 30C30.491 30 30.3243 29.9307 30.1976 29.8053L26.2803 25.888C25.0803 26.872 23.587 27.4107 22.0403 27.4107C18.343 27.4107 15.335 24.4027 15.335 20.7053C15.335 17.008 18.343 14 22.0403 14C25.7376 14 28.7456 17.008 28.7456 20.7053C28.7456 22.252 28.207 23.7453 27.223 24.9453L31.1403 28.8627C31.2656 28.988 31.335 29.156 31.335 29.3347C31.335 29.5133 31.2656 29.68 31.1403 29.8067C31.015 29.9333 30.847 30 30.6696 30ZM22.0416 15.3333C19.079 15.3333 16.6696 17.7427 16.6696 20.7053C16.6696 23.668 19.079 26.0773 22.0416 26.0773C25.0043 26.0773 27.4136 23.668 27.4136 20.7053C27.4136 17.7427 25.0043 15.3333 22.0416 15.3333Z" fill="white"/>\n </svg>\n ').concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.showAllResults"),'\n </a>\n <div id="amag-dspCarOfferPagination" class="order-first order-md-0">\n </div>\n\t </div>\n </div>')),w(".amag-searchResultCarOffer__brand");var a=window.location.pathname.split(".html")[0];"".concat(a,".").concat(n,".html");_t||(_t=new mt("#amag-dspCarOfferPagination",{pageSize:12,dataSource:function(e){k(e.page)},drawComplete:function(){vt(document.getElementById("amag-dspCarOfferSection"))}})),_t.totalPages=Math.ceil(e.totalResultsCount/12),_t.render()}else v=!1;var i},k=function(){var e=(0,lt.A)(ht().mark((function e(t){var i,o;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t&&_t&&(_t.currentPage=1),yt(!0),""===g()){e.next=17;break}return localStorage.setItem("inputValue",g()),u=void 0,u=(u=y(a))?"".concat(g(),"|").concat(u):"".concat(g()),document.cookie="".concat(a,"=").concat(u),e.next=7,_(g(),r,"");case 7:return i=e.sent,e.next=10,_(g(),n,"",t);case 10:o=e.sent,document.querySelector(".amag-dspContentWrapper")&&document.querySelector(".amag-dspContentWrapper").remove(),document.querySelector(".amag-dspCarOfferWrapper")&&document.querySelector(".amag-dspCarOfferWrapper").remove(),document.querySelector(".amag-dspSearchPage__result")&&document.querySelector(".amag-dspSearchPage__result").remove(),document.querySelector(".amag-dspSearchPage__noResult")&&document.querySelector(".amag-dspSearchPage__noResult").remove(),f=1,x(i),A(o),m||v||(l=void 0,l='\n <div class="amag-dspSearchPage__noResult">\n <div class="amag-dspSearchPage__noResultWrapper">\n <h3 class="amag-dspSearchPage__noResultHeadline">'.concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.noResults"),' "<span class="amag-dspSearch__searchTerm">
6').concat(g(),'</span>"</h3>\n <p class="amag-dspSearchPage__noResultText col-lg-9 col-md-12 col-sm-12 px-0">').concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.noResultsText"),'</p>\n </div>\n <div class="amag-dspSearchPage__suggestion">\n <h3 class="amag-dspSearchPage__suggestionHeadline">').concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.suggestionPages"),'</h3>\n <div class="amag-dspSearchPage__suggestionLinkWrapper">\n <a class="amag-dspSearchPage__suggestionLink text-decoration-none" href="').concat(d[0].getAttribute("href"),'">').concat(d[0].innerHTML,'</a>\n <a class="amag-dspSearchPage__suggestionLink text-decoration-none" href="').concat(d[1].getAttribute("href"),'">').concat(d[1].innerHTML,'</a>\n <a class="amag-dspSearchPage__suggestionLink text-decoration-none" href="').concat(d[2].getAttribute("href"),'">').concat(d[2].innerHTML,"</a>\n </div>\n </div>\n </div>"),St(".amag-dspSearchPage__header").append(l)),s=g(),c=document.querySelector(".amag-dspSearchPage__resultTextCounter"),"undefined"!=typeof dataLayer&&dataLayer.push({event:"gaEvent",eventCategory:"Suche",eventAction:s,eventLabel:c?c.innerHTML:"0"});case 17:case"end":return e.stop()}var s,c,l,u}),e)})));return function(t){return e.apply(this,arguments)}}(),T=function(){s.addEventListener("focusout",(function(){setTimeout((function(){h.classList.remove("d-block"),h.innerHTML=""}),200)})),s.addEventListener("focus",(function(){!function(){var e=y(a);if(e){var t=e.split("|"),n=(0,ut.A)(new Set(t)).slice(0,5);if(document.cookie="".concat(a,"=").concat(n.join("|")),0!==n.length){var r='<p class="amag-dspSearchPage__lastSearchTitle">'.concat(Granite.I18n.get("apps.amag-ch.structure.editorial.searchPage.lastSearchQueriesText"),'</p>\n\t \t <ul class="amag-dspSearchPage__lastSearchList">\n\t \t ').concat(n.map((function(e){return'<li class="amag-dspSearchPage__lastSearchListItem">'.concat(e,"</li>")})).join(""),"\n\t \t </ul>");St(h).append(r),h.classList.add("d-block"),document.querySelectorAll(".amag-dspSearchPage__lastSearchListItem").forEach((function(e){e.addEventListener("click",(function(){s.value=e.innerText,c.click()}))}))}}}()})),c.addEventListener("click",(function(){k()})),u.addEventListener("click",(function(){s.value="",s.focus()})),s.onkeyup=function(e){clearTimeout(t),s.value.length>2&&(t=setTimeout(k,700)),13===e.keyCode&&(s.cleanValue=s.value,s.blur(),clearTimeout(t),k()),s.dirty=s.cleanValue===s.value}};window.addEventListener("beforeunload",(function(){window.scrollTo(0,0)})),Granite.I18n.setLocale(i),window.performance&&window.performance.navigation.type===window.performance.navigation.TYPE_BACK_FORWARD&&(s.value=localStorage.getItem(bt.H.INPUT_VALUE)),T(),it.lp.isTouchNew()||s.focus(),(L=new URLSearchParams(window.location.search).get("q"))&&(s.value=decodeURI(L),k())}var L}));var Ct=__webpack_require__(78781),Et=__webpack_require__(74692);!function(){if(document.querySelector(".amag-header")){var e=document.querySelector(".amag-header"),t=document.querySelector(".amag-stageHomepage, .amagCh-stageCarousel"),n=document.querySelector("body"),r=document.querySelector("#header").offsetHeight,a=0,i=document.querySelector(".bbp-notification"),o=e.querySelector(".amag-pop-up__wrapper--desktop"),s=e.querySelector(".amag-pop-up__wrapper-before"),c=e.querySelector(".amag-pop-up__wrapper--mobile"),l=c?c.offsetHeight:0,u=r+l,d=function(e,t){document.querySelector(e).classList.add(t)},h=function(e,t){document.querySelector(e).classList.remove(t)};window.addEventListener("scroll",(function(){var o=document.querySelectorAll(".toast:not(#amag-version__content)"),s=window.scrollY;s-a<50&&a-s<50||(s>a&&s>r?(it.lp.isMobile()||it.lp.isTablet()?!c||c.classList.contains("d-none")?(e.style.top="".concat(-r,"px"),o.forEach((function(e){(0,Ct.nQ)(e,0)}))):(e.style.top="".concat(-u,"px"),o.forEach((function(e){(0,Ct.nQ)(e,0)}))):(e.style.top="".concat(-r,"px"),o.forEach((function(e){(0,Ct.nQ)(e,0)}))),i&&i.classList.add("bbp-notification--top-0"),p()):a===s||(e.style.top="0",o.forEach((function(e){(0,Ct.nQ)(e,r)})),i&&i.classList.remove("bbp-notification--top-0"),t&&s>t.clientHeight-100?(h(".amag-header__navbar","amag-header__navbar--transparent"),h(".amag-header__beforeDivWhite","amag-header__beforeDivWhite--transparent"),h(".amag-header__afterDivWhite","amag-header__afterDivWhite--transparent")):t&&s<t.clientHeight-100&&!n.classList.contains("no-scroll")&&(d(".amag-header__navbar","amag-header__navbar--transparent"),d(".amag-header__beforeDivWhite","amag-header__beforeDivWhite--transparent"),d(".amag-header__afterDivWhite","amag-header__afterDivWhite--transparent")),f()),a=s)}));var p=function(){it.lp.isDesktop()&&o&&!o.classList.contains("amag-pop-up__unseen")&&(o.style.transition="top 0.35s ease",o.style.top="-".concat(r,"px"),s.style.transition="top 0.35s ease",s.style.top="-".concat(r,"px")),(it.lp.isMobile()||it.lp.isTablet())&&c&&!c.classList.contains("d-none")&&(c.style.top="-".concat(l,"px"))},f=function(){(0,it.I$)()||(it.lp.isDesktop()&&o&&!o.classList.contains("amag-pop-up__unseen")&&(o.style.transition="top 0.35s ease",o.style.top="0",s.style.transition="top 0.35s ease",s.style.top="0"),(it.lp.isMobile()||it.lp.isTablet())&&c&&!c.classList.contains("d-none")&&(c.style.top="0"))}}Et(".amag-header__garageFlyout.noFavorite").on("mouseenter",(function(){Et(".amag-header__garageFlyout.noFavorite").addClass("show"),Et(".amag-header__garageFlyout.noFavorite .dropdown-noFav").addClass("show")})).on("mouseleave",(function(){Et(".amag-header__garageFlyout.noFavorite").removeClass("show"),Et(".amag-header__garageFlyout.noFavorite .dropdown-noFav").removeClass("show")}))}();__webpack_require__(79528),__webpack_require__(80751),__webpack_require__(60708);var xt=__webpack_require__(82284),At=__webpack_require__(78674),kt=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Tt=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Lt=(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this._dropdownButton=this._element.querySelector(".generic-dropdown-button"),this._dropdownMenu=this._element.querySelector(".generic-dropdown-menu"),this._dropdownItems=this._element.querySelectorAll(".generic-dropdown-item"),this._nativeSelect=this._element.querySelector(".generic-dropdown-native"),this._dropdownLabel=this._element.querySelector(".generic-dropdown-label"),this._dropdownChevron=this._element.querySelector(".generic-dropdown-chevron"),this._allOtherDropdowns=Array.from(document.querySelectorAll(".generic-dropdown-wrapper")).filter((function(e){return e!==n._element})),this.currentFocusIndex=-1,this.initEvents=function(){n._dropdownButton.addEventListener("click",n.toggleDropdown),n._dropdownButton.addEventListener("keydown",n.handleKeydown),n._dropdownItems.forEac
6h((function(e){return e.addEventListener("click",n.selectItem)}))},this.toggleDropdown=function(e){if(n.closeAllOtherDropdowns(),document.addEventListener("click",n.closeDropdown),e.stopPropagation(),n.adjustDropdownPosition(),n._dropdownMenu.classList.toggle("show"),n._dropdownChevron.classList.toggle("show"),n._nativeSelect.value||n._dropdownLabel.classList.toggle("active"),!n._nativeSelect.value&&n._dropdownMenu.classList.contains("show"))n._dropdownButton.textContent=n._dropdownItems[0].textContent;else{if(n._nativeSelect.value)return;n._dropdownButton.textContent=""}},this.adjustDropdownPosition=function(){if(!n._dropdownMenu.classList.contains("show")){n._dropdownMenu.style.visibility="hidden",n._dropdownMenu.classList.add("show");var e=n._dropdownButton.getBoundingClientRect(),t=n._dropdownMenu.getBoundingClientRect();window.innerHeight-e.bottom>=t.height?n._element.classList.remove("upwards"):n._element.classList.add("upwards"),n._dropdownMenu.classList.remove("show"),n._dropdownMenu.style.visibility=""}},this.selectItem=function(e){var t=e.target,r=t.getAttribute("data-value");n._dropdownButton.textContent=t.textContent,n._nativeSelect.value=r;var a=new Event("change",{bubbles:!0});n._nativeSelect.dispatchEvent(a),n._dropdownMenu.classList.remove("show"),n._dropdownChevron.classList.remove("show"),r?n._dropdownLabel.classList.add("active"):n._dropdownLabel.classList.remove("active")},this.handleKeydown=function(e){switch(e.key){case"ArrowDown":e.preventDefault(),n.navigateItems(1);break;case"ArrowUp":e.preventDefault(),n.navigateItems(-1);break;case"Enter":e.preventDefault(),n.currentFocusIndex>=0&&n._dropdownMenu.classList.contains("show")?n.selectItem({target:n._dropdownItems[n.currentFocusIndex]}):n.toggleDropdown(e);break;case"Escape":e.preventDefault(),n.closeDropdown(e)}},this.navigateItems=function(e){n._dropdownMenu.classList.contains("show")||n.toggleDropdown(new KeyboardEvent("keydown",{key:"Enter"})),n.currentFocusIndex=(n.currentFocusIndex+e+n._dropdownItems.length)%n._dropdownItems.length,n._dropdownItems.forEach((function(e,t){t===n.currentFocusIndex?(e.classList.add("focused"),e.scrollIntoView({block:"nearest"})):e.classList.remove("focused")}))},this.closeDropdown=function(e){n._dropdownButton.contains(e.target)||(n._dropdownMenu.classList.remove("show"),n._dropdownChevron.classList.remove("show"),n._nativeSelect.value||(n._dropdownButton.textContent="",n._dropdownLabel.classList.remove("active")),document.removeEventListener("click",n.closeDropdown))},this.closeAllOtherDropdowns=function(){n._allOtherDropdowns.forEach((function(e){e.querySelector(".generic-dropdown-menu").classList.remove("show"),e.querySelector(".generic-dropdown-chevron").classList.remove("show"),e.querySelector(".generic-dropdown-native").value||(e.querySelector(".generic-dropdown-button").textContent="",e.querySelector(".generic-dropdown-label").classList.remove("active"))}))},this.initEvents()}));Lt=kt([(0,At.d)({selector:".generic-dropdown-wrapper",onDomLoaded:!0}),Tt("design:paramtypes",[HTMLDivElement])],Lt);var It=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Dt=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Pt=(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this.init=function(){n.setEventListeners()},this.setEventListeners=function(){n._element.querySelectorAll(".integrated-accordion__button").forEach((function(e){e.addEventListener("click",n.setActive(e))}))},this.setActive=function(e){return function(){var t=e.closest(".integrated-accordion__item");t.classList.contains("integrated-accordion__item--active")?t.classList.remove("integrated-accordion__item--active"):t.classList.add("integrated-accordion__item--active")}},this.init()}));Pt=It([(0,At.d)({selector:".integrated-accordion",onDomLoaded:!0}),Dt("design:paramtypes",[HTMLDivElement])],Pt);new(function(){return(0,ft.A)((function e(){(0,pt.A)(this,e);try{if(!(0,it.HY)())return;if(this.advisor=window.aiAdvisor,!this.advisor)return void this.startObserver();this.startReadinessCheck()}catch(e){console.error("Error occurred during construction of AiAdvisorFrontNowApp:",e)}}),[{key:"startObserver",value:function(){var e=this;try{var t=new MutationObserver((function(){e.advisor=window.aiAdvisor,e.advisor&&(e.startReadinessCheck(),t.disconnect())}
6));t.observe(document.body,{childList:!0})}catch(e){console.error("Error occurred during starting observer for FrontNow AI-Advisor:",e)}}},{key:"startReadinessCheck",value:function(){var e=this;try{if(this.advisor.isReady())return void this.init()}catch(n){var t=setTimeout((function(){console.error("Timeout occurred. Waited 10s for FrontNow AI-Advisor readiness:",n)}),1e4);this.advisor.on("ready",(function(){clearTimeout(t),e.init()}))}}},{key:"init",value:function(){this.addBackDropClickEventListener(),this.checkDirectLink()}},{key:"addBackDropClickEventListener",value:function(){var e=this;try{var t=document.querySelector("body"),n=document.createDocumentFragment(),r=document.createElement("div");r.classList.add("frontnow__backdrop"),r.addEventListener("click",(function(){e.advisor.close()})),n.appendChild(r),t.appendChild(n)}catch(e){console.error("Error occurred during adding backdrop click event listener for FrontNow AI-Advisor:",e)}}},{key:"checkDirectLink",value:function(){try{var e,t=new URL(window.location.href).searchParams.get("advisor");if(!t)return;if(!this.advisor)return;if("1"===t)return void this.advisor.open();try{e=decodeURIComponent(t)}catch(t){if(console.error("Error occurred while decoding question string for Frontnow AI Advisor:",t),!e||"string"!=typeof e)return void this.advisor.open()}this.advisor.sendMessage(t),this.advisor.open()}catch(e){console.error("Error occurred during checking direct link for AI-Advisor:",e)}}}])}());var Ot,Rt=function(){return(0,ft.A)((function e(t,n,r,a,i,o,s,c){(0,pt.A)(this,e),this._id=parseInt(t),this._garageName=n,this._city=r,this._zip=a,this._brands=i,this._html=o,this._position=s,this._keywords=c}),[{key:"getId",value:function(){return this._id}},{key:"getGarageName",value:function(){return this._garageName}},{key:"getCity",value:function(){return this._city}},{key:"getZip",value:function(){return this._zip}},{key:"getBrands",value:function(){return this._brands}},{key:"getHTML",value:function(){return this._html}},{key:"getPosition",value:function(){return this._position}},{key:"getLat",value:function(){return this._position.lat}},{key:"getLng",value:function(){return this._position.lng}},{key:"getKeyWords",value:function(){return this._keywords}},{key:"matchSearch",value:function(e){var t;return t=isNaN(e)?new RegExp("".concat(e.replace(/(?=[() ])/g,"\\")),"gi"):new RegExp("^".concat(e),"gi"),[this._garageName,this._city,this._zip].some((function(e){return t.test(e)}))}},{key:"matchBrands",value:function(e){return this._brands.some((function(t){return e.includes(t)}))}},{key:"matchKeywords",value:function(e){return this._keywords.some((function(t){return e.includes(t)}))}}])}(),Mt=function(){function e(){(0,pt.A)(this,e)}return(0,ft.A)(e,null,[{key:"setAlertMessage",value:function(t,n){e.headline=t,e.messageText=n}},{key:"setRecomendedText",value:function(t){e.recomendedText=t}},{key:"setDelay",value:function(t){e.delayTime=1e3*t}},{key:"setDoubleRender",value:function(t){e.isDouble=t}},{key:"removeRecomendedText",value:function(){e.recomendedText=null}},{key:"removeAlertMessage",value:function(){e.headline=null,e.messageText=null}},{key:"removeAlertMessageAfterTimeOut",value:function(){setTimeout((function(){document.querySelector(".storelocator__garagenContainer").previousElementSibling.remove()}),e.delayTime)}},{key:"removeAllAlerts",value:function(){document.querySelectorAll(".storelocator__notification").forEach((function(e){e.remove()})),document.querySelector(".storelocator__alternativeGarages").classList.add("d-none")}},{key:"getNotificationHTML",value:function(e,t,n,r){return'\n <div class="storelocator__notification '.concat(r?"storelocator__notification--isDouble":"",'">\n <svg class="storelocator__notificationIcon ').concat(n?"":"d-none",'" width="26" height="32" viewBox="0 0 26 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M12.9999 31.916C12.7066 31.916 12.4186 31.8173 12.1866 31.6387C10.2066 30.1147 0.333252 22.0747 0.333252 13.4173C0.333252 5.81598 5.77858 0.0839844 12.9999 0.0839844C20.2213 0.0839844 25.6666 5.81598 25.6666 13.4173C25.6666 22.076 15.7919 30.1147 13.8133 31.6387C13.5813 31.8173 13.2919 31.916 12.9999 31.916ZM12.9999 1.41732C6.53858 1.41732 1.66659 6.57598 1.66659 13.4173C1.66659 21.4493 11.1079 29.1253 12.9999 30.5827C14.8919 29.1253 24.3333 21.452 24.3333 13.4173C24.3333 6.57598 19.4613 1.41732 12.9999 1.41732Z" fill="white"/>\n <path d="M10.3332 20.084C9.96517 20.084 9.6665 19.7853 9.6665 19.4173C9.6665 19.0493 9.96517 18.7506 10.3332 18.7506H12.3332V11.4173C12.3332
611.0493 12.0345 10.7506 11.6665 10.7506H10.3332C9.96517 10.7506 9.6665 10.452 9.6665 10.084C9.6665 9.71596 9.96517 9.4173 10.3332 9.4173H11.6665C12.7692 9.4173 13.6665 10.3146 13.6665 11.4173V18.7506H15.6665C16.0345 18.7506 16.3332 19.0493 16.3332 19.4173C16.3332 19.7853 16.0345 20.084 15.6665 20.084H10.3332Z" fill="white"/>\n <path d="M13 8.08398C13.5523 8.08398 14 7.63627 14 7.08398C14 6.5317 13.5523 6.08398 13 6.08398C12.4477 6.08398 12 6.5317 12 7.08398C12 7.63627 12.4477 8.08398 13 8.08398Z" fill="white"/>\n </svg>\n <div class="storelocator__notificationInfo">\n <p class="storelocator__notificationHeadline">').concat(e,'</p>\n <p class="storelocator__notificationText ').concat(t?"":"d-none",'">').concat(t||"","</p>\n </div>\n </div>\n ")}},{key:"renderAlertMessage",value:function(){if(e.headline){if(window.matchMedia("(max-width: 767.98px)").matches){var t=e.getNotificationHTML(e.headline,e.messageText,!0);document.querySelector(".storelocator__garagenContainer").insertAdjacentHTML("beforebegin",t),e.removeAlertMessageAfterTimeOut(),e.isDouble&&(t=e.getNotificationHTML(e.headline,e.messageText,!1,!0),document.querySelector(".storelocator__garagenContainer").insertAdjacentHTML("afterbegin",t))}else{var n=e.getNotificationHTML(e.headline,e.messageText,!1);document.querySelector(".storelocator__garagenContainer").insertAdjacentHTML("beforebegin",n)}e.recomendedText?(document.querySelector(".storelocator__alternativeGaragesText").innerText=e.recomendedText,document.querySelector(".storelocator__alternativeGarages").classList.remove("d-none")):document.querySelector(".storelocator__alternativeGarages").classList.add("d-none")}}}])}(),qt="https://api.amag.ch:443/v1/wds/geolocation/v1/post/zip-cities",Nt=function(){function e(){(0,pt.A)(this,e)}return(0,ft.A)(e,null,[{key:"_getServletData",value:(n=(0,lt.A)(ht().mark((function t(n){var r;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._data[n]){t.next=5;break}return t.next=3,fetch("".concat(n));case 3:(r=t.sent).ok?e._data[n]=r.json():console.error("Something went wrong by getting the data from URL: ".concat(n));case 5:return t.abrupt("return",e._data[n]);case 6:case"end":return t.stop()}}),t)}))),function(e){return n.apply(this,arguments)})},{key:"_generateJsonString",value:function(e,t){var n={zipCity:{},limitationOfReturnedItems:6};return n.zipCity[e]=t,JSON.stringify(n)}},{key:"getZipOrCity",value:(t=(0,lt.A)(ht().mark((function t(n,r){var a;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(qt,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",ApiKey:"".concat("BsxwcpEFAVlpNmehe2rxeeijCiMqoQeF")},body:e._generateJsonString(n,r)});case 3:if(!(a=t.sent).ok){t.next=6;break}return t.abrupt("return",a.json());case 6:throw new Error("Something went wrong by getting the data from URL: ".concat(qt));case 9:t.prev=9,t.t0=t.catch(0),console.error("Failed ".concat(t.t0));case 12:case"end":return t.stop()}}),t,null,[[0,9]])}))),function(e,n){return t.apply(this,arguments)})},{key:"getGarages",value:function(t){return t=null!=t?t:"/bin/amagch/storelocator.stores.json",e._getServletData(t)}},{key:"getSynonyms",value:function(){return e._getServletData("/bin/amagch/storelocator.synonyms.json")}}]);var t,n}();function Vt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ft(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Bt(e,t){var n=t&&t.filteredDealers||Bn(),r=[];if(n.forEach((function(t){var n=google.maps.geometry.spherical.computeDistanceBetween(new google.maps.LatLng(t.getPosition()),e);r.push({distanceBetween:n,dealer:t})})),r=r.sort((function(e,t){return parseFloat(e.distanceBetween)-parseFloat(t.distanceBetween)})),t){var a,i={},o=Vt(t.activeFilters);try{for(o.s();!(a=o.n()).done;){var s=a.value;i[s]=0}}catch(e){o.e(e)}finally{o.f()}var c=r.filter((function(e){for(var t=e.dealer,n=!1,r=0,a=(0,ut.A)(new Set(t.getBrands()));r<a.length;r++){var o=a[r];void 0!==(0,xt.A)(i[o])&&i[o]<5&&(i[o]++,n=!0)}return n}));return c.map((function(e){return e.dealer}))}return r.slice(0,5).map((function(e){return e.dealer}))}function jt(e){var t={address:e,region:"CH",componentRestrictions:{country:"CH"}};return new Promise((function(e,n){Ot.geocode(t,(function(t,r){"O
6K"===r?e(t[0]):n(t,r)}))}))}Nt._data={};var Ht=function(){var e=(0,lt.A)(ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.google&&window.google.maps){e.next=3;break}return console.error("Google Maps API not loaded yet!"),e.abrupt("return");case 3:Ot=new google.maps.Geocoder;case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Gt=Object.freeze({car:{brand:"carSelection.brand",brandId:"carSelection.brandId",model:"carSelection.model",modelId:"carSelection.modelId",vehicleUID:"carSelection.vehicleUID",vehicleNumber:"carSelection.vehicleNumber",vehicleObjectNumber:"carSelection.vehicleObjectNumber",vehicleObjectType:"carSelection.vehicleObjectType",vin:"carSelection.vin"},appVehicle:{fromApp:"carSelection.app.vehicle.fromApp",fromSRS:"carSelection.app.vehicle.fromSRS",appOrigin:"carSelection.app.origin",carAdapterTimeStamp:"carSelection.app.carAdapterTimeStamp"},garage:{garageSelection:"garage.garageSelection",replacementCar:"garage.replacementCar",SRSid:"garage.SRSid",headerquarterId:"garage.headerquarterId",allGaragesData:"garage.allGaragesData"},service:{presetKeyValid:"service.presetKeyValid",selectedServices:"service.selected",fastlane:"service.fastlaneActivated",note:"service.note",wasServiceLane:"service.wasServiceLane",complaintImage:"service.complaintImage",complaintImageBase64:"service.complaintImageBase64"},appointment:{obj:"appointment",date:"appointment.date",time:"appointment.time",day:"appointment.dayName",object:"appointment.object",validation:"appointment.validation"},data:{licensePlate:"data.licensePlate",initialRegistration:"data.initialRegistration",chassisNumber:"data.chassisNumber",mileage:"data.mileage",vehicleHolder:{self:"data.vehicleHolder.self",salutation:"data.vehicleHolder.salutation",salutationText:"data.vehicleHolder.salutationText",holder:"data.vehicleHolder.holder",name:"data.vehicleHolder.name"},documentImage:"data.documentImage",carSelection:"data.carSelection",salutation:"profile.gender",firstName:"data.firstName",lastName:"data.lastName",mailAddress:"data.mailAddress",country:"data.country",canton:"data.canton",postCode:"data.postCode",city:"data.city",street:"data.street",houseNumber:"data.houseNumber",phoneNumber:"data.phoneNumber",isGuest:"data.isGuest"},booking:{noteImage:"booking.noteImage",callback:"callBack",message:"booking.message"},bookingSessionStorage:"bookingInformation",waitingService:"waiting.service",waitingServiceObj:{garageId:"waiting.garageId",garageTeamPageLink:"waiting.garageTeamPageLink",garageSellingBrandIds:"waiting.garageSellingBrandIds"},autoAbo:{obj:"autoabo.obj",page:"autoAboPage",lastPageLogin:"lastPageLogin"},otv:{presetServices:"otv.presetServices",hash:"otv.hash"}}),Ut={};function Wt(e,t){Ut[e]={meta:{appendable:!1},value:t}}function zt(e,t){Ut[e]?Ut[e].meta.appendable?Ut[e].value.push(t):(Ut[e].value=[Ut[e].value,t],Ut[e].meta.appendable=!0):Ut[e]={meta:{appendable:!0},value:[t]}}function $t(e){delete Ut[e]}function Yt(e){return e?Ut[e]&&Ut[e].value:Object.entries(Ut).reduce((function(e,t,n){return e[t[0]]=t[1].value,e}),{})}function Zt(e,t,n){var r={garageId:Yt(Gt.garage.garageSelection),brand:Yt(Gt.car.brand),model:Yt(Gt.car.model),licensePlate:Yt(Gt.data.licensePlate),replacementCar:Yt(Gt.garage.replacementCar),appointment:{date:Yt(Gt.appointment.date),time:Yt(Gt.appointment.time),day:Yt(Gt.appointment.day),iso:Yt(Gt.appointment.object)},services:Yt(Gt.service.selectedServices).map((function(e){return e.serviceNames})),salutation:e,lastname:t,timeDesc:n,message:Yt(Gt.booking.message)||"",fastLane:!!Yt(Gt.service.fastlane)};window.sessionStorage.setItem(Gt.bookingSessionStorage,JSON.stringify(r))}var Kt={store:Wt,append:zt,remove:$t,get:Yt,storeIntoSession:Zt},Xt={store:Wt,append:zt,remove:$t,get:Yt,storeIntoSession:Zt};function Jt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Qt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}window.storageService=Xt;var en={isFastLaneActivated:function(){return!!Xt.get(Gt.service.fastlane)||!1},serviceArrayMatch:function(e,t){return e.length===t.length&&e.every((function(e){return t.includes(e)}))},flattenChildrenArray:function(e){var t=[];if(!e)return t;var n,r=Jt(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.push(a.service.name),a.children&&(t=[].concat((0,ut.A)(t),(0,ut.A)(this.flattenChildrenArray(a.children))))}}catch(e){r.e(e)}finally{r.f()}return t},flattenServiceNodeNames:function(e){var t=[];if(!e)return t;var n,r=Jt(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.push(a.name),a.children&&(t=[].concat((0,ut.A)(t),(0,ut.A)(this.flattenServiceNodeNames(a.children))))}}catch(e){r.e(e)}finally{r.f()}return t},getServicesFromServiceStorage:function(e){var t=this;if(e.hasChildren()){var n=[];
6return e.children.forEach((function(e){e.hasChildren()?n.push.apply(n,(0,ut.A)(t.getServicesFromServiceStorage(e))):n.push(e.service)})),n}return[e.service]}},tn=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this.brandMapping={AUDI:{id:"A"},VW_PKW:{id:"V"},SEAT:{id:"S"},SKODA:{id:"C"},VW_NZ:{id:"N"},BENTLEY:{id:"B"},MICRO:{id:"MICRO"}},this._searchField=document.getElementById("storelocator__searchField"),this._autoSuggestContainer=document.querySelector(".storelocator__autosuggestContainer"),this._searchIcon=document.querySelector(".storelocator__searchIcon"),this._searchDeleteBtn=document.querySelector(".storelocator__searchDelete"),this.autoSuggestUlClass="storelocator__autosuggestList",this.autoSuggestLiClass="storelocator__autosuggestListItem",this._bindEventListener()}),[{key:"_bindEventListener",value:function(){var e=this;this._searchIcon&&this._searchField&&this._autoSuggestContainer&&this._searchDeleteBtn&&(this._searchIcon.addEventListener("click",(function(){Hn()})),this._searchField.addEventListener("keydown",(function(t){13===t.keyCode&&""!==e._getSearchText()&&(Hn(),t.target.blur())})),this._searchField.addEventListener("input",(function(){e._searchDeleteBtn.classList.remove("d-none"),e._getAutoSuggest(null),""===e._getSearchText()&&(e._searchDeleteBtn.classList.add("d-none"),Hn())})),this._searchDeleteBtn.addEventListener("click",(function(){e._searchField.value="",e._searchDeleteBtn.classList.add("d-none"),Hn()})))}},{key:"_replaceSearchTextWithSynonym",value:(n=(0,lt.A)(ht().mark((function e(t){var n,r,a,i,o;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Nt.getSynonyms();case 2:return n=e.sent,r=t,a=new Set([r]),n&&!n.status&&(o=Object.keys(n)).length&&o.forEach((function(e){n[e].forEach((function(t){var n=new RegExp((0,it.$f)(t),"gi");n.test(r)&&(i=r.replace(n,e),a.add(i),a.add(e))}))})),e.abrupt("return",{textValue:i||r,regexSource:Array.from(a).filter(Boolean).map((function(e){return(0,it.$f)(e)})).join("|")});case 7:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"_getSearchText",value:function(){return this._searchField.value}},{key:"_renameObjKey",value:function(e,t,n){return e.map((function(e){return e[t]=e[n],delete e[n],e}))}},{key:"_getAutoSuggest",value:(t=(0,lt.A)(ht().mark((function e(t){var n,r,a,i,o,s,c,l,u,d,h,p,f,m,v=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=en.isFastLaneActivated(),a=null==Xt?void 0:Xt.get(Gt.car.brandId),i=null===(n=this.brandMapping[a])||void 0===n?void 0:n.id,o=document.querySelector(".garage-selection__filterCheckbox"),s=!!o&&!!o.checked,e.next=7,this._replaceSearchTextWithSynonym(this._getSearchText());case 7:return u=e.sent,e.next=10,Nt.getGarages(t);case 10:if(d=e.sent,h=u.textValue,p=u.regexSource,!isNaN(h)){e.next=20;break}return c=new RegExp(p,"gi"),e.next=16,Nt.getZipOrCity("city",h.toLowerCase());case 16:l=e.sent,l=this._renameObjKey(l,"name","city"),e.next=25;break;case 20:return c=new RegExp(p,"gi"),e.next=23,Nt.getZipOrCity("zip",h.toLowerCase());case 23:l=e.sent,l=this._renameObjKey(l,"name","zip");case 25:f=d.filter((function(e){if(r||null===e.brands||!s)return e.name.match(c);var t=e.brands.split(",");return!(!e.name.match(c)||!t.includes(i))})),(f=[].concat((0,ut.A)(f),(0,ut.A)(l))).sort((function(e,t){return e.name.localeCompare(t.name)})),f=(f=(0,ut.A)(new Set(f.map((function(e){return e.name.toLowerCase().replace("amag","AMAG").replace("vw","VW")}))))).slice(0,6),h.length&&f.length||(f=[],this._autoSuggestContainer.classList.add("d-none"),this._autoSuggestContainer.innerHTML=""),f.length&&(this._autoSuggestContainer.classList.remove("d-none"),m='\n <ul class="'.concat(this.autoSuggestUlClass,'">\n ').concat(f.map((function(e){return'<li class="'.concat(v.autoSuggestLiClass,'">').concat(e,"</li>")})).join(""),"\n </ul>"),this._autoSuggestContainer.innerHTML=m,document.querySelectorAll(".".concat(this.autoSuggestLiClass)).forEach((function(e){e.addEventListener("click",(function(){return v._autosuggestClickListener(e)}))})));case 32:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"_autosuggestClickListener",value:function(e){this._searchField.value=e.innerHTML,Hn()}},{key:"startSearch",value:(e=(0,lt.A)(ht().mark((function e(){var t,n,r,a;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._replaceSearchTextWithSynonym(this._getSearchText());case 2:if(t=e.sent,n=t.textValue,this._autoSuggestContainer.classList.add("d-none"),""===n){e.next=17;break}if((r=Bn().filter((function(e){return e.matchSearch(n)}))).length){e.next=14;break}return e.next=10,jt(n).catch((function(e,t){console.log(e,t)}));case 10:return a=e.sent,e.abrupt("return",{searchPosition:a,isGoogleMapLocation:!0}
6);case 14:return e.abrupt("return",{searchResults:r,isGoogleMapLocation:!1});case 15:e.next=18;break;case 17:return e.abrupt("return",{searchResults:Bn(),isGoogleMapLocation:!1});case 18:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e,t,n}(),nn=__webpack_require__(94044),rn={self:".off-canvas__wrapper",backdrop:".off-canvas__backdrop",canvas:".off-canvas__canvas-box",closeButton:".off-canvas__close-btn",closeButtonIconDefault:".off-canvas__close-btn-icon",closeButtonIconBackChevron:".off-canvas__back-btn-icon",cancelButton:".off-canvas__cancel-button",innerContainer:".off-canvas__inner-container",confirmButton:".off-canvas__confirm-button",footer:".off-canvas__canvas-box-lower"},an=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},on=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},sn=function(){return(0,ft.A)((function e(){var t=this;(0,pt.A)(this,e),this.body=document.querySelector("body"),this.offCanvasContainer=this.body.querySelector(rn.self),this.backdrop=this.offCanvasContainer.querySelector(rn.backdrop),this.canvas=this.offCanvasContainer.querySelector(rn.canvas),this.closeButton=this.offCanvasContainer.querySelector(rn.closeButton),this.cancelButton=this.offCanvasContainer.querySelector(rn.cancelButton),this.confirmButton=this.offCanvasContainer.querySelector(rn.confirmButton),this.footer=this.offCanvasContainer.querySelector(rn.footer),this.stickyClass="is-sticky",this.resetOffCanvas=function(){t.confirmButton.removeEventListener("click",t.currentConfirmMethod),t.confirmButton.addEventListener("click",t.initialConfirmMethod),t.currentConfirmMethod=t.initialConfirmMethod,t.cancelButton.removeEventListener("click",t.currentCancelMethod),t.cancelButton.addEventListener("click",t.closeOffCanvas),t.currentCancelMethod=t.closeOffCanvas,t.closeButton.removeEventListener("click",t.currentCloseMethod),t.closeButton.addEventListener("click",t.closeOffCanvas),t.currentCloseMethod=t.closeOffCanvas,t.closeButton.querySelector(rn.closeButtonIconBackChevron).classList.add("d-none"),t.closeButton.querySelector(rn.closeButtonIconDefault).classList.remove("d-none"),t.footer.classList.remove("d-none")},this.addInitialEventListener=function(){t.confirmButton.addEventListener("click",t.initialConfirmMethod),t.currentConfirmMethod=t.initialConfirmMethod,t.backdrop.addEventListener("click",t.closeOffCanvas),t.closeButton.addEventListener("click",t.closeOffCanvas),t.cancelButton.addEventListener("click",t.closeOffCanvas)},this.initialConfirmMethod=function(){console.error("--- NO CORRECT EVENTLISTENER EMPLOYED YET ---")},this.setConfirmMethod=function(e){t.confirmButton.removeEventListener("click",t.currentConfirmMethod),t.confirmButton.addEventListener("click",e),t.currentConfirmMethod=e},this.setCancelMethod=function(e){t.cancelButton.removeEventListener("click",t.currentCancelMethod),t.cancelButton.addEventListener("click",e),t.currentCancelMethod=e},this.setCloseMethod=function(e){t.closeButton.removeEventListener("click",t.currentCloseMethod),t.closeButton.addEventListener("click",e),t.currentCloseMethod=e},this.showOffCanvasById=function(e){document.querySelector("body").classList.add("no-scroll"),t.canvas.querySelectorAll(rn.innerContainer).forEach((function(e){Array.from(e.children).forEach((function(e){e.classList.add("d-none")}))})),t.canvas.querySelector("#".concat(e)).classList.remove("d-none"),t.backdrop.classList.remove("d-none"),t.canvas.classList.add("is-shown")},this.closeOffCanvas=function(){document.querySelector("body").classList.remove("no-scroll"),document.querySelector(rn.backdrop).classList.add("d-none"),document.querySelector(rn.canvas).classList.remove("is-shown"),t.resetOffCanvas()},this.addInitialEventListener()}),[{key:"getOffCanvasBox",value:function(){return this.canvas}},{key:"resetOffCanvasButtonLabels",value:function(){this.confirmButton.textContent=Granite.I18n.get("apps.amag-ch.project.global.offCanvas.continue.buttons.cta"),this.cancelButton.textContent=Granite.I18n.get("apps.amag-ch.project.global.offCanvas.cancel.label")}},{key:"getConfirmBtn",value:function(){return this.confirmButton}},{key:"getCancelBtn",value:function(){return this.cancelButton}},{key:"getCloseBtn",value:function(){return this.closeButton}},{key:"getFooter",value:function(){return this.footer}},{key:"setButtonsSticky",value:function(){this.footer.classList.add(this.stickyClass)}},{key:"resetButtonSticky",value:function(){this.footer.classList.remove(this.stickyClass)}}])}();function cn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ln(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ln(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}sn=an([nn.K,on("design:paramtypes",[])],sn);var un=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},dn=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this.offCanvasService=new sn,this.selectedKeywordsElement=document.querySelector("#selected-keywords"),this.garageOverlayElement=document.querySelector(".storelocator__garagenOverlay"),this.offCanvasElement=document.querySelector("#storelocator__brand-filter-off-canvas"),this.resetAllFiltersBtn=this.offCanvasElement.querySelector(".amag-filterModal__resetButton"),this.filters=this.offCanvasElement.querySelectorAll('input[type="checkbox"]'),this.filterOpenBtn=this.garageOverlayElement.querySelector(".storelocator__filterButton"),this.filterCounter=this.offCanvasElement.querySelector(".storelocator__filterCounter"),this.activeFiltersContainer=this.offCanvasElement.querySelector(".storelocator__overflowWrapper"),this.brandTypeSaleBtn=this.offCanvasElement.querySelector("#brand-type-sale"),this.brandTypeServiceBtn=this.offCanvasElement.querySelector("#brand-type-service"),this.brandsCheckboxSales=this.offCanvasElement.querySelector(".sales"),this.brandsCheckboxService=this.offCanvasElement.querySelector(".service"),this.previousSelectedArray=[],this.init()}),[{key:"init",value:function(){this.setOffCanvasBtn(),this.setEventListeners(),this._setFiltersFromURL(),this._setKeywordsFiltersFromURL(),this._setActiveFilterLabels()}},{key:"setEventListeners",value:function(){var e=this;this.resetAllFiltersBtn.addEventListener("click",(function(){e.previousSelectedArray=[],e._resetFilters(),Hn()})),this.filters.forEach((function(t){t.addEventListener("click",(function(){e._handleCheckboxes()}))})),this.filterOpenBtn.addEventListener("click",(function(){if(e.previousSelectedArray.length>0){var t=void 0;e.filters.forEach((function(t){t.checked=e.previousSelectedArray.includes(t.getAttribute("data-brand"))})),e.offCanvasElement.querySelectorAll("input[type='checkbox']:checked").forEach((function(e){e.getAttribute("data-brand").includes("v")&&!e.getAttribute("data-brand").includes("s")?t=!0:e.getAttribute("data-brand").includes("s")&&!e.getAttribute("data-brand").includes("v")&&(t=!1)})),null!=t&&t?(e.brandTypeSaleBtn.classList.add("is-active"),e.brandsCheckboxSales.classList.remove("d-none"),e.brandTypeServiceBtn.classList.remove("is-active"),e.brandsCheckboxService.classList.add("d-none")):null==t||t||(e.brandTypeSaleBtn.classList.remove("is-active"),e.brandsCheckboxSales.classList.add("d-none"),e.brandTypeServiceBtn.classList.add("is-active"),e.brandsCheckboxService.classList.remove("d-none"))}e._handleCheckboxes().then((function(){e.setOffCanvasBtn(),e.offCanvasService.showOffCanvasById("storelocator__brand-filter-off-canvas")}))})),this.brandTypeSaleBtn.addEventListener("click",(function(){e.brandTypeSaleBtn.classList.contains("is-active")||(e.brandTypeSaleBtn.classList.add("is-active"),e.brandsCheckboxSales.classList.remove("d-none"),e.brandTypeServiceBtn.classList.remove("is-active"),e.brandsCheckboxService.classList.add("d-none"),e._resetFilters())})),this.brandTypeServiceBtn.addEventListener("click",(function(){e.brandTypeServiceBtn.classList.contains("is-active")||(e.brandTypeSaleBtn.classList.remove("is-active"),e.brandsCheckboxSales.classList.add("d-none"),e.brandTypeServiceBtn.classList.add("is-active"),e.brandsCheckboxService.classList.remove("d-none"),e._resetFilters())}))}},{key:"setOffCanvasBtn",value:function(){var e=this;this.offCanvasService.getCancelBtn().parentElement.classList.add("d-none");var t=this.offCanvasService.getConfirmBtn();t.textContent="",t.classList.remove("amag-ctaWrapper__button--bgColor-amagViolet"),t.classList.add("amag-ctaWrapper__button--bgColor-amagDark-blue");var n=document.createElement("span");n.classList.add("amag-filterModal__garagenCounter"),n.dataset.allLabel=Granite.I18n.get("apps.amag-ch.components.c
6ontent.storelocator.allLabel"),n.innerHTML=Granite.I18n.get("apps.amag-ch.components.content.storelocator.allLabel"),t.appendChild(n),t.appendChild(document.createTextNode(Granite.I18n.get("apps.amag-ch.components.content.storelocator.showGaragesLabel"))),this.searchResultsNumber=t.querySelector(".amag-filterModal__garagenCounter"),t.parentElement.classList.remove("d-none"),this.offCanvasService.setConfirmMethod((function(){e.offCanvasService.closeOffCanvas();var t=e.offCanvasElement.querySelectorAll("input[type='checkbox']:checked");e.previousSelectedArray=[],t.forEach((function(t){e.previousSelectedArray.push(t.getAttribute("data-brand"))})),Hn()}))}},{key:"_resetFilters",value:function(){var e=this.searchResultsNumber.getAttribute("data-allLabel");this.resetAllFiltersBtn.classList.remove("visible"),this.filters.forEach((function(e){e.checked=!1})),this.selectedKeywordsElement.dataset.selected="",this._setSearchResultsNumber(e),this._setFilterCounter(0),this._removeAllActiveFilterLabels()}},{key:"_setSearchResultsNumber",value:function(e){this.searchResultsNumber.innerHTML=e}},{key:"_setFilterCounter",value:function(e){e>0?(this.filterOpenBtn.classList.add("is-active"),this.filterCounter.innerHTML="(".concat(e,")"),this.filterOpenBtn.querySelector("span").textContent="(".concat(e,")")):(this.filterOpenBtn.classList.remove("is-active"),this.filterOpenBtn.querySelector("span").textContent="",this.filterCounter.innerHTML="")}},{key:"_handleCheckboxes",value:function(){return un(this,void 0,void 0,ht().mark((function e(){var t,n,r;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.offCanvasElement.querySelectorAll("input[type='checkbox']:checked"),n=this.selectedKeywordsElement.dataset.selected.split(","),!((null==t?void 0:t.length)||n.length>0)){e.next=11;break}return this.resetAllFiltersBtn.classList.add("visible"),e.next=6,Hn(!0);case 6:r=e.sent,this._setSearchResultsNumber(r.length),this._setActiveFilterLabels(),e.next=15;break;case 11:this.resetAllFiltersBtn.classList.remove("visible"),this._setSearchResultsNumber(this.searchResultsNumber.getAttribute("data-allLabel")),this._setFilterCounter(0),this._removeAllActiveFilterLabels();case 15:case"end":return e.stop()}}),e,this)})))}},{key:"_setFiltersFromURL",value:function(){var e=window.location.href,t=new URL(e).searchParams.get("filters"),n=!1;if(t){t.match("s")?(this.brandTypeServiceBtn.classList.add("is-active"),this.brandTypeSaleBtn.classList.remove("is-active")):t.match("v")?(this.brandTypeSaleBtn.classList.add("is-active"),this.brandTypeServiceBtn.classList.remove("is-active")):(this.brandTypeSaleBtn.classList.add("is-active"),this.brandTypeServiceBtn.classList.remove("is-active"),n=!0);var r,a=cn(t.split(","));try{for(a.s();!(r=a.n()).done;){var i=r.value;document.querySelector('input[data-brand="'.concat(n?"v".concat(i):"".concat(i),'"]')).checked=!0}}catch(e){a.e(e)}finally{a.f()}}}},{key:"_setKeywordsFiltersFromURL",value:function(){var e=window.location.href,t=new URL(e).searchParams.get("keywords");t&&(this.selectedKeywordsElement.dataset.selected=t)}},{key:"_setActiveFilterLabels",value:function(){var e,t=this.offCanvasElement.querySelectorAll("input[type='checkbox']:checked");this.activeFiltersContainer.innerHTML="";var n=[];((null==t?void 0:t.length)&&(0,ut.A)(t).forEach((function(e){var t=e.id.includes("sale")?e.parentElement.textContent:e.nextElementSibling.textContent;n.push('<div class="storelocator__activeFilter">\n <span>'.concat(t,'</span>\n <svg class="storelocator__activeFilterBtn" data-id="').concat(e.getAttribute("id"),'" width="12" height="12" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M23.4999 23.9988C23.3659 23.9988 23.2409 23.9468 23.1459 23.8528L11.9999 12.7058L0.853945 23.8528C0.759945 23.9468 0.633945 23.9988 0.499945 23.9988C0.365945 23.9988 0.240945 23.9468 0.145945 23.8528C-0.0490552 23.6578 -0.0490552 23.3408 0.145945 23.1458L11.2919 11.9998L0.146945 0.852779C-0.0480552 0.657779 -0.0480552 0.340779 0.146945 0.145779C0.240945 0.0507793 0.366945 -0.
60012207 0.499945 -0.0012207C0.632945 -0.0012207 0.758945 0.0507793 0.853945 0.144779L11.9999 11.2918L23.1469 0.145779C23.2409 0.0517793 23.3669 -0.000220703 23.5009 -0.000220703C23.6349 -0.000220703 23.7599 0.0517793 23.8549 0.145779C24.0499 0.340779 24.0499 0.657779 23.8549 0.852779L12.7069 11.9988L23.8529 23.1448C24.0479 23.3398 24.0479 23.6568 23.8529 23.8518C23.7589 23.9468 23.6339 23.9988 23.4999 23.9988Z"/>\n </svg>\n </div>'))})),null===(e=this.selectedKeywordsElement)||void 0===e?void 0:e.dataset.selected)&&this.selectedKeywordsElement.dataset.selected.split(",").forEach((function(e){n.push('<div class="storelocator__activeFilter">\n <span>'.concat(e,'</span>\n <svg class="storelocator__activeFilterBtn" data-keyword="').concat(e,'" width="12" height="12" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M23.4999 23.9988C23.3659 23.9988 23.2409 23.9468 23.1459 23.8528L11.9999 12.7058L0.853945 23.8528C0.759945 23.9468 0.633945 23.9988 0.499945 23.9988C0.365945 23.9988 0.240945 23.9468 0.145945 23.8528C-0.0490552 23.6578 -0.0490552 23.3408 0.145945 23.1458L11.2919 11.9998L0.146945 0.852779C-0.0480552 0.657779 -0.0480552 0.340779 0.146945 0.145779C0.240945 0.0507793 0.366945 -0.0012207 0.499945 -0.0012207C0.632945 -0.0012207 0.758945 0.0507793 0.853945 0.144779L11.9999 11.2918L23.1469 0.145779C23.2409 0.0517793 23.3669 -0.000220703 23.5009 -0.000220703C23.6349 -0.000220703 23.7599 0.0517793 23.8549 0.145779C24.0499 0.340779 24.0499 0.657779 23.8549 0.852779L12.7069 11.9988L23.8529 23.1448C24.0479 23.3398 24.0479 23.6568 23.8529 23.8518C23.7589 23.9468 23.6339 23.9988 23.4999 23.9988Z"/>\n </svg>\n </div>'))}));(null==n?void 0:n.length)&&(this.activeFiltersContainer.parentElement.hidden=!1,this.activeFiltersContainer.innerHTML=n.join(""),this._setEventListenerOnActiveFilter()),this._setFilterCounter(n.length)}},{key:"_setEventListenerOnActiveFilter",value:function(){var e,t=this,n=cn(this.activeFiltersContainer.querySelectorAll(".storelocator__activeFilterBtn"));try{var r=function(){var n=e.value;n.addEventListener("click",(function(){if(n.dataset.keyword){var e=t.selectedKeywordsElement.dataset.selected.split(",");e.forEach((function(r,a){r.includes(n.dataset.keyword)&&(e.splice(a,1),t.selectedKeywordsElement.dataset.selected=e.join(","),t.previousSelectedArray=e)})),Hn(),t._setActiveFilterLabels()}else{var r=n.getAttribute("data-id"),a=t.previousSelectedArray.indexOf(r);t.previousSelectedArray.splice(a,1),Hn(),t.offCanvasElement.querySelector("#".concat(r)).click()}}))};for(n.s();!(e=n.n()).done;)r()}catch(e){n.e(e)}finally{n.f()}}},{key:"_removeAllActiveFilterLabels",value:function(){this.activeFiltersContainer.parentElement.hidden=!0,this.activeFiltersContainer.innerHTML=""}},{key:"getFilteredResults",value:function(){var e=this.offCanvasElement.querySelectorAll("input[type='checkbox']:checked"),t=[],n=[],r=[],a=window.location.href,i=new URL(a).searchParams.get("garages"),o=[];return i&&(o=i.split(",")),this.selectedKeywordsElement.dataset.selected&&(r=this.selectedKeywordsElement.dataset.selected.split(",")),e.length||o.length||r.length?(e.forEach((function(e){t.push(e.getAttribute("data-brand"))})),Bn().forEach((function(e){o&&o.forEach((function(t){e._id===parseInt(t)&&n.push(e)})),r&&e.matchKeywords(r)&&n.push(e),e.matchBrands(t)&&n.push(e)})),{filteredDealers:n,activeFilters:t}):null}}])}(),hn=__webpack_require__(74692);function pn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return fn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var mn,vn,gn,yn,_n,bn,wn,Sn,Cn=document.querySelector(".storelocator-component"),En=document.querySelector(".storelocator-inner"),xn=document.querySelector(".storelocator__map"),An=document.querySelector(".storelocator__searchAndFilterContainer"),kn=document.querySelector(".storelocator__garageContainer"),Tn=[],Ln="scrolled-position",In=null,Dn=0,Pn=0,On=0,Rn=window.matchMedia("(max-width: 767.98px)"),Mn=window.matchMedia("(min-width:768px) and (max-width: 1199.98px)"),qn=function(e){Cn.querySelectorAll(".storelocator__garage").forEach((function(e){e.classList.add("storelocator__garage--hide"),e.querySelector(".storelocator__distance").innerText=""}));var t,n=pn(e);try{for(n.s();!(t=n.n()).done;){t.value.getHTML().classList.remove("storelocator__garage--hide")}}catch(e){n.e(e)}finally{n.f()}},Nn=function(){for(var e=Cn.querySelectorAll(".storelocator__garage:not(.storelocator__garage--hide)"),t=0;t<e.length;t+=2)e[t].style.backgroundColor="#F5F5F5";for(var n=1;n<e.length;n+=2)e[n].style.backgroundColor="#fff"},Vn=function(e){if(e){var t=e.dataset.garageId,n=e.dataset.target,r=Cn.querySelectorAll(".amag-garageModal"),a=Cn.querySelector(n),i=or(t);rr(),i&&(i.setIcon(sr()),ar(i)),r.forEach((function(e){e.hidden=!0})),Gn(),a.hidden=!1,Rn.matches&&(jn("#id".concat(t)),window.scrollTo(0,On)),"undefined"!=typeof dataLayer&&(dataLayer.push({event:"gaEvent",eventCategory:"Store Locator",eventAction:"Garage auswählen",eventLabel:a.dataset.garagename}),dataLayer.push({event:"ga4Event",eventName:"garage_selected",eventParameter1:"interaction_item",fieldValue1:"Store Locator",eventParameter2:"interaction_label",fieldValue2:a.dataset.garagename}))}},Fn=function(e){var t=hn(kn);t.find(".storelocator__garage:not(.storelocator__garage--hide)").sort((function(t,n){return t=t.querySelector("".concat(e)).innerText,n=n.querySelector("".concat(e)).innerText,isNaN(t.split(" ")[0])?t.localeCompare(n):+parseFloat(t,10)-+parseFloat(n,10)})).appendTo(t)},Bn=function(){return Tn},jn=function(e){if(Rn.matches&&e){var t=Cn.querySelector(e).querySelector(".amag-garageModal__container").scrollHeight+Pn;Cn.style.height="".concat(t,"px"),En.style.height="".concat(t,"px")}},Hn=function(){var e=(0,lt.A)(ht().mark((function e(t){var n,r,a,i,o,s,c,l,u,d,h;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Mt.removeAllAlerts(),Mt.removeAlertMessage(),Mt.removeRecomendedText(),Mt.setDoubleRender(!1),e.next=6,mn.startSearch();case 6:if(n=e.sent,r=n.searchPosition,a=n.searchResults,i=n.isGoogleMapLocation,In||(In=new dn),c=In.getFilteredResults(),!i){e.next=16;break}r||c?!r&&c?(o=c.filteredDealers,Mt.setAlertMessage(Granite.I18n.get("apps.amag-ch.components.c
6ontent.storelocator.noResultsTextOne"),Granite.I18n.get("apps.amag-ch.components.content.storelocator.noResultsTextTwo")),Mt.setRecomendedText(Granite.I18n.get("apps.amag-ch.components.content.storelocator.recommendedGaragesText")),Mt.setDelay(6)):(o=Bt(r.geometry.location,c),s=r):(Mt.setAlertMessage(Granite.I18n.get("apps.amag-ch.components.content.storelocator.noResultsTextOne"),Granite.I18n.get("apps.amag-ch.components.content.storelocator.noResultsTextTwo")),Mt.setDelay(6),Mt.setDoubleRender(!0),o=[]),e.next=30;break;case 16:if(!c){e.next=29;break}if((o=a.filter((function(e){return c.filteredDealers.includes(e)}))).length){e.next=27;break}return e.next=21,jt(a[0].getZip()).catch((function(e,t){}));case 21:l=e.sent,o=Bt(l.geometry.location,c),s=l,Mt.setAlertMessage(Granite.I18n.get("apps.amag-ch.components.content.storelocator.noResultsTextOne")),Mt.setRecomendedText(Granite.I18n.get("apps.amag-ch.components.content.storelocator.alternativeGaragesText")),Mt.setDelay(3);case 27:e.next=30;break;case 29:o=a;case 30:if(!t){e.next=32;break}return e.abrupt("return",o);case 32:if(Mt.renderAlertMessage(),tr(),qn(o),s){er(s),u=pn(o);try{for(u.s();!(d=u.n()).done;)(h=d.value).getHTML().querySelector(".storelocator__distance").innerText="".concat((p=h.getPosition(),f=s.geometry.location,m=void 0,m=google.maps.geometry.spherical.computeDistanceBetween(new google.maps.LatLng(p),f),m/=1e3,m=Math.round(10*m)/10)," km")}catch(e){u.e(e)}finally{u.f()}Fn(".storelocator__distance")}else Fn(".storelocator__garageName");kn.scrollTo(0,0),nr(o),ir(),Nn();case 40:case"end":return e.stop()}var p,f,m}),e)})));return function(t){return e.apply(this,arguments)}}(),Gn=function(){An.hidden=!0,kn.hidden=!0},Un=function(){if(Rn.matches){var e=0,t=0,n=document.querySelector("header");Dn=n.getBoundingClientRect().height,Pn=xn.getBoundingClientRect().height,On=Dn+Pn,En.addEventListener("scroll",(function(){!0!==kn.hidden&&(e-En.scrollTop<50&&En.scrollTop-e<50||(En.scrollTop-Pn<=0?En.classList.remove(Ln):En.classList.add(Ln),e=window.scrollY))})),window.addEventListener("scroll",(function(){if(!1!==kn.hidden&&!(t-window.scrollY<50&&window.scrollY-t<50)){var e=window.scrollY;e-(On-1)<=0?En.classList.remove(Ln):En.classList.add(Ln),t=e}}))}},Wn=function(){var e=(0,lt.A)(ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.google&&window.google.maps){e.next=3;break}return console.error("Google Maps API not loaded yet!"),e.abrupt("return");case 3:mn=new tn,document.querySelector("body").classList.add("amag-overrideBootstrapModal"),Cn.querySelectorAll(".storelocator__garage:not(.storelocator__garage--hide)").forEach((function(e){var t=e.dataset.garageId,n=e.querySelector(".storelocator__garageName").innerText.trim(),r=e.querySelector(".storelocator__garageCity").innerText.trim(),a=e.querySelector(".storelocator__garageZip").innerText.split(" ")[0].trim(),i={lat:parseFloat(e.getAttribute("data-lat")),lng:parseFloat(e.getAttribute("data-lng"))},o=[];e.getAttribute("data-brands")&&(o=e.getAttribute("data-brands").split(","));var s=[];e.getAttribute("data-keywords")&&(s=e.getAttribute("data-keywords").split(",")),Tn.push(new Rt(t,n,r,a,o,e,i,s))})),Hn(),Cn.querySelectorAll(".amag-garageModal__closeButton").forEach((function(e){e.addEventListener("click",(function(){var t=e.closest(".amag-garageModal");1!==Yn.length&&ir(),rr(),Rn.matches&&(Cn.style.height="",En.style.height=""),t.hidden=!0,An.hidden=!1,kn.hidden=!1,Rn.matches&&(window.scrollTo(0,0),En.classList.contains(Ln)&&En.scrollTo(0,On))}))})),Cn.querySelectorAll(".storelocator__garage").forEach((function(e){var t=e.dataset.garageId;e.addEventListener("click",(function(){Vn(e)})),e.addEventListener("mouseover",(function(){var e=or(t);e&&e.getIcon().url!==sr().url&&e.setIcon(gn)})),e.addEventListener("mouseout",(function(){var e=or(t);e&&e.getIcon().url!==sr().url&&e.setIcon(yn)}))})),Un();case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),zn="0px 0px 28px 0px rgba(0,0,0,0.48)",$n="30",Yn=[],Zn=100,Kn={top:70,bottom:70,left:210,right:680},Xn={top:70,bottom:70,left:70,right:480},Jn={top:70,bottom:70,left:70,right:70};function Qn(e,t,n,r){var a=new google.maps.Marker({position:new google.maps.LatLng(e,t),map:Sn,title:r,icon:yn,storeId:n});Yn.push(a),google.maps.event.addListener(a,"click",(function(){ar(a),document.querySelectorAll(".amag-garagenModal").forEach((function(e){e.hidden=!0})),rr();var e=document.querySelector("#id".concat(a.storeId));jn("#id".concat(a.storeId)),e.hidden=!1,a.setIcon(_n)})),google.maps.event.addListener(a,"mouseover",(function(){var e=document.querySelector("[data-garage-id='".concat(a.storeId,"']"));e.style.boxShadow=zn,e.style.zIndex=$n,a.getIcon().url!==_n.url&&a.setIcon(gn)})),google.maps.event.addListener(a,"mouseout",(function(){var e=document.querySelector("[data-garage-id='".concat(a.storeId,"']"));e.style.boxShadow="none",e.style.zIndex="0",a.getIcon().url!==_n.url&&a.setIcon(yn)}))}function er(e){var t=new google.maps.InfoWindow({content:e.formatted_address}),n=new google.maps.Marker({map:Sn,position:e.geometry.location,icon:bn});Yn.push(n),t.open(Sn,n)}
6function tr(){Yn.forEach((function(e){e.setMap(null)})),Yn=[]}function nr(e){e.forEach((function(e){Qn(e.getLat(),e.getLng(),e.getId(),e.getGarageName())}))}function rr(){Yn.forEach((function(e){e.getIcon().url!==bn.url&&e.setIcon(yn)}))}function ar(e){Sn.panTo(e.getPosition()),Sn.setZoom(10),Rn.matches||(Mn.matches,Sn.panBy(Zn,0))}function ir(){var e=new google.maps.LatLngBounds(null);if(Yn.forEach((function(t){e.extend(t.position)})),!Yn.length)return Sn.setZoom(8),void Sn.setCenter({lat:46.8127598,lng:7.6638335});Sn.panBy(Zn,0),Rn.matches?Sn.fitBounds(e,Jn):Mn.matches?Sn.fitBounds(e,Xn):Sn.fitBounds(e,Kn)}function or(e){return Yn.find((function(t){return t.storeId==e}))}function sr(){return _n}var cr=function(){var e=(0,lt.A)(ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.google&&window.google.maps){e.next=3;break}return console.error("Google Maps API not loaded yet!"),e.abrupt("return");case 3:vn=new google.maps.StyledMapType([{featureType:"all",elementType:"all",stylers:[{hue:"#e7ecf0"}]},{featureType:"landscape.natural",elementType:"geometry.fill",stylers:[{saturation:"0"}]},{featureType:"landscape.natural",elementType:"geometry.stroke",stylers:[{saturation:"0"},{lightness:"0"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"all",stylers:[{saturation:-70}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{visibility:"simplified"},{saturation:-60}]},{featureType:"water",elementType:"geometry.fill",stylers:[{saturation:"74"},{lightness:"-3"}]}],{name:"AMAG MAP"}),yn={url:"/etc.clientlibs/amag-ch/clientlibs/themes/clientlib-amagch/resources/img/googleMapsImg/amagMarkerBlack.png",scaledSize:new google.maps.Size(41,49)},gn={url:"/etc.clientlibs/amag-ch/clientlibs/themes/clientlib-amagch/resources/img/googleMapsImg/amagMarkerViolet.png",scaledSize:new google.maps.Size(51,59)},_n={url:"/etc.clientlibs/amag-ch/clientlibs/themes/clientlib-amagch/resources/img/googleMapsImg/amagMarkerBlue.png",scaledSize:new google.maps.Size(51,59)},bn={url:"/etc.clientlibs/amag-ch/clientlibs/themes/clientlib-amagch/resources/img/googleMapsImg/amagMarkerSearch.png",anchor:new google.maps.Point(50,50),scaledSize:new google.maps.Size(170,170)},wn={center:{lat:46.8127598,lng:7.6638335},zoom:8,streetViewControl:!1,fullscreenControl:!1,mapTypeControl:!1,zoomControl:!0,zoomControlOptions:{position:google.maps.ControlPosition.LEFT_BOTTOM},mapTypeControlOptions:{mapTypeIds:["styled_map"]}},t=document.getElementById("storelocator__map"),(Sn=new google.maps.Map(t,wn)).mapTypes.set("styled_map",vn),Sn.setMapTypeId("styled_map");case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),lr=__webpack_require__(31080),ur=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},dr=function(){function e(){var t,n=this;(0,pt.A)(this,e),this.isApiLoaded=null!==(t=window.googleMapsApiLoadingComplete)&&void 0!==t&&t,this.isComponentMapsLoaded=!1,this.callbacks=[],window.google&&window.google.maps&&"function"==typeof window.google.maps.StyledMapType?this.isApiLoaded=!0:window.googleMapsLoaded=function(){window.googleMapsApiLoadingComplete=!0,n.isApiLoaded=!0,n.callbacks.forEach((function(e){return e()})),n.callbacks=[]}}return(0,ft.A)(e,[{key:"wait",value:function(){var e=this;return new Promise((function(t){e.isApiLoaded&&window.google&&window.google.maps&&"function"==typeof window.google.maps.StyledMapType?t():e.callbacks.push(t)}))}},{key:"initializeMaps",value:function(){return ur(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.wait();case 2:if(!this.isComponentMapsLoaded){e.next=4;break}return e.abrupt("return");case 4:if(!document.querySelector(".storelocator")){e.next=11;break}return e.next=7,cr();case 7:return e.next=9,Ht();case 9:return e.next=11,Wn();case 11:if(!document.querySelector("#garageFooter")){e.next=14;break}return e.next=14,(0,lr.B)();case 14:this.isComponentMapsLoaded=!0;case 15:case"end":return e.stop()}}),e,this)})))}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}])}().getInstance(),hr=dr;dr.wait().then((function(){dr.initializeMaps().then((function(){console.info("amag.ch: All main component maps have been initialized.")}))})),__webpack_require__(74692)((function(){if(document.querySelector(".amag-angeboteReco")){document.querySelectorAll(".amag-angeboteReco__showMoreBtn").forEach((function(e){e.addEventListener("click",(function(){var t=e.innerText,n=e.getAttribute("data-lessText"),r=e.getAttribute("data-moreText");
6t===r?e.innerText=n:t===n&&(e.innerText=r)}))})),function(){if(document.querySelector(".amagCh-carousel")){var e,t=document.querySelectorAll(".amagCh-carousel"),n=new Set;t.forEach((function(t){t.querySelector(".amag-angeboteReco")&&(t.querySelectorAll(".amag-angeboteReco .amag-angeboteReco__body").forEach((function(e){n.add(e.clientHeight)})),e=Math.max.apply(Math,(0,ut.A)(n)),t.querySelectorAll(".amag-angeboteReco .amag-angeboteReco__body").forEach((function(t){e=Math.max.apply(Math,(0,ut.A)(n)),t.style.minHeight="".concat(e,"px")})))}))}}()}}));var pr,fr=__webpack_require__(40596);!function(e){e.MS="0001",e.MR="0002",e.COMPANY="0003"}(pr||(pr={}));var mr=[{id:"",text:""},{id:pr.MR,text:Granite.I18n.get("apps.amag-ch.components.content.otv.guestRegistrationPane.salutation.male")},{id:pr.MS,text:Granite.I18n.get("apps.amag-ch.components.content.otv.guestRegistrationPane.salutation.female")}],vr=[{id:"",text:""},{id:pr.MR,text:Granite.I18n.get("apps.amag-ch.components.content.otv.guestRegistrationPane.salutation.male")},{id:pr.MS,text:Granite.I18n.get("apps.amag-ch.components.content.otv.guestRegistrationPane.salutation.female")},{id:pr.COMPANY,text:Granite.I18n.get("apps.amag-ch.components.content.otv.guestRegistrationPane.salutation.company")}];function gr(e){var t;return null!==(t=vr.filter((function(t){return t.id===e})).map((function(e){return e.text}))[0])&&void 0!==t?t:"invalid"}var yr=__webpack_require__(67443),_r=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},br={getJwtToken:function(){return _r(this,void 0,void 0,ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.gigya,e.abrupt("return",new Promise((function(e,n){t.accounts.getJWT({expiration:86400,fields:"data.damageReports",callback:function(t){e(t.id_token)}})})));case 2:case"end":return e.stop()}}),e)})))}},wr=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e)}),null,[{key:"getUrl",value:function(){var e=document.getElementById("amag-infrastructure-info");return e?e.getAttribute("data-isvurl")+"/amag/rest/isv/data/":(console.error("Path to ISV is null"),null)}}])}(),Sr=__webpack_require__(74692),Cr=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Er={editProfileButton:".js-editprofile",headingH3:"h3",loginflyout:".js-amag-header__loginFlyout"},xr=window.gigya;function Ar(e){return Sr(".amag-cdcbox")[0].id===e}function kr(e){var t=new URLSearchParams(window.location.search).get(e);return""===t||t}function Tr(e,t,n){if("okay"===t||"error"===t){var r=document.querySelector(".js-cdc-notification-container-flyout"),a=document.querySelector("body"),i=document.querySelector(".js-amag-header__loginFlyout");if(r.innerHTML='\n <div class="cdc-notification-flyout__closebtn">\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M23.4998 23.9988C23.3658 23.9988 23.2408 23.9468 23.1458 23.8528L11.9998 12.7058L0.853762 23.8528C0.759762 23.9468 0.633762 23.9988 0.499762 23.9988C0.365762 23.9988 0.240762 23.9468 0.145762 23.8528C-0.0492383 23.6578 -0.0492383 23.3408 0.145762 23.1458L11.2918 11.9998L0.146762 0.852779C-0.0482383 0.657779 -0.0482383 0.340779 0.146762 0.145779C0.240762 0.0507793 0.366762 -0.0012207 0.499762 -0.0012207C0.632762 -0.0012207 0.758762 0.0507793 0.853762 0.144779L11.9998 11.2918L23.1468 0.145779C23.2408 0.0517793 23.3668 -0.000220703 23.5008 -0.000220703C23.6348 -0.000220703 23.7598 0.0517793 23.8548 0.145779C24.0498 0.340779 24.0498 0.657779 23.8548 0.852779L12.7068 11.9988L23.8528 23.1448C24.0478 23.3398 24.0478 23.6568 23.8528 23.8518C23.7588 23.9468 23.6338 23.9988 23.4998 23.9988Z"/>\n </svg>\n </div>\n <div class="cdc-notification-flyout__icon">\n <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M9.33464 31.9987C9.15864 31.9987 8.98664 31.928 8.86264 31.8027L0.195977 23.136C-0.0640234 22.876 -0.0640234 22.4533 0.195977 22.1933C0.32131 22.068 0.48931 21.9987 0.667976 21.9987C0.846643 21.9987 1.01331 22.068 1.13998 22.1933L9.25064 30.304L30.792 0.277333C30.9173 0.104 31.12 0 31.3333 0C31.4733 0 31.608 0.0426667 31.7213 0.125333C31.8666 0.229333 31.9613 0.382667 31.9906 0.558667C32.02 0.734667 31.9786 0.910667 31.8746 1.056L9.87464 31.7227C9.75998 31.8813 9.58264 31.9827 9.38797 31.9987C9.37998 31.9973 9.34398 31.9987 9.33464 31.9987Z"/>\n </svg>\n </div>\n <div class="cdc-notification-flyout__text '.concat("touch"==n?"cdc-notification-flyout__text--text-white":"",'">\n ').concat(e,"\n </div>\n "),r.classList.add("show"),r.classList.add(t),"touch"==n){var o=document.querySelector(".js-cdc-notification-container-flyout"),s=30,c=null,l=null;o.addEventListener("touchstart",(function(e){c=e.changedTouches[0].clientY,a.setAttribute("style","overflow:hidden;"),e.preventDefault()}),!1),o.addEventListener("touchend",(function(e){var t=e.target.closest(".cdc-notification-flyout__closebtn");a.removeAttribute("style"),null!==t?(Sr(".js-cdc-notification-container-flyout").fadeOut("slow"),window.setTimeout((function(){r.classList.remove("show")}),100),r.innerHTML=""):(l=e.changedTouches[0].clientY,c-l>
6s&&(Sr(".js-cdc-notification-container-flyout").fadeOut("slow"),window.setTimeout((function(){r.classList.remove("show")}),100),r.innerHTML=""))}),!1),window.setTimeout((function(){r.innerHTML="",r.classList.remove("show"),a.removeAttribute("style")}),5e3)}"desktop"==n&&(a.removeAttribute("style"),i.classList.add("amag-header__loginFlyout--notification"),window.setTimeout((function(){r.innerHTML="",r.classList.remove("show"),i.classList.remove("amag-header__loginFlyout--notification")}),3e3)),window.scrollTo({top:0,behavior:"smooth"})}}function Lr(){var e=localStorage.amaguser?JSON.parse(localStorage.amaguser):null,t=document.querySelector(".amag-header__login");t&&(e?(t.classList.add("m--state-loggedin"),t.removeAttribute("href"),Sr(Er.loginflyout).data("overview")?t.setAttribute("href",Sr(Er.loginflyout).data("overview")):console.log("User Overview Page not exist"),Sr(".amag-header__loginFlyout.noFavorite").hover((function(){Sr(".amag-header__loginFlyout.noFavorite").addClass("show"),Sr(".amag-header__loginFlyout.noFavorite .dropdown-noFav").addClass("show")}),(function(){Sr(".amag-header__loginFlyout.noFavorite").removeClass("show"),Sr(".amag-header__loginFlyout.noFavorite .dropdown-noFav").removeClass("show")}))):t.classList.remove("m--state-loggedin"))}function Ir(e){var t,n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b;if("FAIL"===e.status)console.log("Leider konnte keine Verbingung zu GIGYA hergestellt werden.");else{var w="";"f"===e.profile.gender?w="0001":"m"===e.profile.gender&&(w="0002");var S=e.profile.locale;"en"===S&&(S="de"),S=S.toUpperCase();var C={USERID:"",CDC_TOKEN:"",ProfileNav:{TITLE:w,NAME1:e.profile.firstName,NAME2:e.profile.lastName,CITY:(null===(n=null===(t=e.addresses)||void 0===t?void 0:t.private)||void 0===n?void 0:n.city)||"",POST_CODE:null!==(i=null===(a=null===(r=e.addresses)||void 0===r?void 0:r.private)||void 0===a?void 0:a.zipCode)&&void 0!==i?i:"",STREET:null!==(c=null===(s=null===(o=e.addresses)||void 0===o?void 0:o.private)||void 0===s?void 0:s.street)&&void 0!==c?c:"",HOUSE_NUM:null!==(d=null===(u=null===(l=e.addresses)||void 0===l?void 0:l.private)||void 0===u?void 0:u.houseNumber)&&void 0!==d?d:"",COUNTRY:null!==(f=null===(p=null===(h=e.addresses)||void 0===h?void 0:h.private)||void 0===p?void 0:p.countryISOCode3)&&void 0!==f?f:"",REGION:null!==(g=null===(v=null===(m=e.addresses)||void 0===m?void 0:m.private)||void 0===v?void 0:v.neighborhood)&&void 0!==g?g:"",MOB_NUMBER:null!==(b=null===(_=null===(y=e.profile.phones)||void 0===y?void 0:y.find((function(e){return"mobile"===e.type})))||void 0===_?void 0:_.number)&&void 0!==b?b:"",EMAIL_ADDR:e.profile.email,COMM_LANGU_ISO:S,USERID:"",TITLE_DESC:gr(w),COUNTRY_ISO:S.toLowerCase()}};!function(){Cr(this,void 0,void 0,ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,br.getJwtToken();case 2:return C.CDC_TOKEN=e.sent,e.next=5,qr(C);case 5:t={selectors:{loginflyout:".js-amag-header__loginFlyout"},queryStringObj:{errorCode:"errorCode"}},Sr(".cdcboxModalSection").length?(Sr("body").removeClass("modal-open"),Sr(".amag-cdc__modal").removeClass("show").css("display",""),Sr(".modal-backdrop").hide(),Sr("body").trigger("cdc.logIn")):window.location.hash.substring(1).startsWith("ey")||"undefined"!==kr(t.queryStringObj.errorCode)&&null!=kr(t.queryStringObj.errorCode)||Sr(t.selectors.loginflyout).data("overview")&&(window.location.href=Sr(t.selectors.loginflyout).data("overview"));case 7:case"end":return e.stop()}}),e)})))}()}}function Dr(e){return Cr(this,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Or(["profile","data","subscriptions","preferences","addresses"],["phones","locale"],e));case 1:case"end":return t.stop()}}),t)})))}function Pr(e){return Cr(this,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Or(["profile","data","subscriptions","preferences","addresses"],["*"],e));case 1:case"end":return t.stop()}}),t)})))}function Or(e,t,n){return Cr(this,void 0,void 0,ht().mark((function r(){return ht().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",xr.accounts.getAccountInfo({include:e.join(","),extraProfileFields:t.join(","),callback:n}));case 1:case"end":return r.stop()}}),r)})))}function Rr(e){return Cr(this,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",xr.accounts.setAccountInfo({addresses:{private:e}}));case 1:case"end":return t.stop()}}),t)})))}function Mr(e){return Cr(this,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Pr((function(t){var n=t.profile.phones;return n.map((function(t){return"mobile"===t.type&&(t.number=e),t})),xr.accounts.setAccountInfo({profile:{phones:n}})})));case 1:case"end":return t.stop()}}),t)})))}var qr=function(e){return Cr(void 0,void 0,void 0,ht().mark((function t(){var n,r;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="".concat(wr.getUrl(),"updateUser.json"),t.next=3,(0,yr.eT)(n,e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})))},Nr=__webpack_require__(74692);function Vr(e,t,n,r){e.nodeName&&"SELECT"===e.nodeName&&(e=Nr(e));var a=e,i="";i+=r?"m--hideFirstOption":"";var o=function(e){e.currentTarget.value.length>0?e.currentTarget.parentElement.classList.add("state--labelTop"):e.currentTarget.parentElement.classList.remove("state--labelTop")};t?(Fr(a[0]),it.lp.isMobile()?Br({id:a[0].id,options:t,placeholder:n,dropdownCssClass:i}):a.select2({minimumResultsForSearch:-1,width:"100%",placeholder:n,data:t,dropdownCssClass:i})):it.lp.isMobile()||a.select2({minimumResultsForSearch:-1,width:"100%",dropdownCssClass:i}),a.parent().addClass("select2-wrapper--no-styles"),it.lp.isMobile()?(a.on("change",(function(e){o(e),a.parent().removeClass("select2-wrapper--open")})),a.on("click",(function(e){a.parent().addClass("select2-wrapper--open")})),a.on("blur",(function(e){a.parent().removeClass("select2-wrapper--open")}))):a.on("select2:select",(function(e){o(e)})),a.on("change",(function(){var e=new Event("change",{bubbles:!0});a.parent()[0].dispatchEvent(e)}))}var Fr=function(e){if(void 0!==e)for(var t=e.length-1;t>=0;t--)e.remove(t)},Br=function(e){var t=document.getElementById(e.id);for(var n in e.options){var r=e.options[n].id,a=e.options[n].text,i=new Option(a,r);i.disabled=e.options[n].disabled||!1,i.selected=e.options[n].selected||!1,t.add(i,void 0)}},jr=__webpack_require__(74692);jr((function(){if("yes"===kr("appointmentsSaved")?Tr(Granite.I18n.get("apps.amag-ch.components.c
6ontent.appointmentNotification.saved.success"),"okay",it.lp.isMobile()?"touch":"desktop"):"no"===kr("appointmentsSaved")&&Tr(Granite.I18n.get("apps.amag-ch.components.content.appointmentNotification.saved.failure"),"error",it.lp.isMobile()?"touch":"desktop"),document.querySelector(".amag-appointmentNotification")){var e={selectors:{contentScrollView:"#ContentScrollView",componentWrapper:".amag-appointmentNotification",innerWrapper:"#appointmentNotificationWrapper",checkbox_email:"#email1",checkbox_sms:"#sms1",emailInput:"#form-text-email",phonePrefix:"#phone_prefix",phoneInput:"#form-text-phone",smsBoxWrapper:"#smsBox",emailBoxWrapper:"#emailBox",messagingText:"#messagingText",infoWrapper:"#infoWrapper",backBtn:"#backBtn",saveBtn:"#saveBtn"},queryStrings:{saved:"appointmentsSaved"},i18n:{savingSuccess:Granite.I18n.get("apps.amag-ch.components.content.appointmentNotification.saved.success"),savingFailure:Granite.I18n.get("apps.amag-ch.components.content.appointmentNotification.saved.failure")}},t=parent.document.querySelector(e.selectors.contentScrollView),n=!1,r=!1,a=document.querySelector(e.selectors.innerWrapper).getAttribute("data-isauthormode"),i=jr(e.selectors.phonePrefix),o=new fr.y;if("true"!==a&&!localStorage.getItem(bt.H.AMAG_USER)){var s=jr(".js-amag-header__loginFlyout").data("login");window.location.href=s}var c=function(t){if("FAIL"!==t.status){var n,r=t.data.preferredContactChannel,a=t.profile.email,i=t.profile.phones?null===(n=t.profile.phones)||void 0===n?void 0:n.find((function(e){return"mobile"===e.type})).number:"";void 0!==a&&""!==a&&(document.querySelector(e.selectors.emailInput).value=a),d(i),u(r)}},l=function(t){if("FAIL"!==t.status){var n="?"+e.queryStrings.saved+"=yes",r=document.getElementById("backBtn").href+n;window.location.href=r}else Tr(e.i18n.savingFailure,"error",it.lp.isTouchNew()?"touch":"desktop");o.remove()},u=function(t){void 0!==t&&""!==t?t.split(",").forEach((function(t){"email"===t?(document.querySelector(e.selectors.checkbox_email).checked=!0,n=!0,jr(e.selectors.messagingText).removeClass("d-none"),jr(e.selectors.emailBoxWrapper).removeClass("d-none"),jr(e.selectors.infoWrapper).removeClass("d-none")):"sms"===t&&(document.querySelector(e.selectors.checkbox_sms).checked=!0,r=!0,jr(e.selectors.messagingText).removeClass("d-none"),jr(e.selectors.infoWrapper).removeClass("d-none"),jr(e.selectors.smsBoxWrapper).removeClass("d-none"))})):(jr(e.selectors.messagingText).addClass("d-none"),jr(e.selectors.infoWrapper).addClass("d-none"),jr(e.selectors.emailBoxWrapper).addClass("d-none"),jr(e.selectors.smsBoxWrapper).addClass("d-none"))},d=function(t){if(void 0!==t&&""!==t){var n="",r="";t.startsWith("+41")?(n="+41",jr(e.selectors.phonePrefix).val(n).trigger("change").trigger("select2:select"),r=t.replace(n,"")):t.startsWith("+49")?(n="+49",jr(e.selectors.phonePrefix).val(n).trigger("change").trigger("select2:select"),r=t.replace(n,"")):t.startsWith("+33")?(n="+33",jr(e.selectors.phonePrefix).val(n).trigger("change").trigger("select2:select"),r=t.replace(n,"")):t.startsWith("+39")?(n="+39",jr(e.selectors.phonePrefix).val(n).trigger("change").trigger("select2:select"),r=t.replace(n,"")):t.startsWith("+423")?(n="+423",jr(e.selectors.phonePrefix).val(n).trigger("change").trigger("select2:select"),r=t.replace(n,"")):t.startsWith("+43")?(n="+43",jr(e.selectors.phonePrefix).val(n).trigger("change").trigger("select2:select"),r=t.replace(n,"")):(n="",jr(e.selectors.phonePrefix).val(n).trigger("change").trigger("select2:select"),r=t),document.querySelector(e.selectors.phoneInput).value=r}},h=function(){document.querySelector(e.selectors.saveBtn).addEventListener("click",(function(t){t.preventDefault();var n=document.querySelector(e.selectors.checkbox_email).checked,r=document.querySelector(e.selectors.checkbox_sms).checked,a={};n&&r?a.preferredContactChannel="email,sms":n&&!r?a.preferredContactChannel="email":!n&&r?a.preferredContactChannel="sms":n||r||(a.preferredContactChannel=""),function(t){"undefined"!=typeof gigya&&(o.show(jr(e.selectors.componentWrapper)),p(),gigya.accounts.setAccountInfo({data:t,callback:l}))}(a)}))},p=function(){null!=t?t.scrollTo(0,0):(document.body.scrollTop=0,document.documentElement.scrollTop=0)};(function(){"undefined"!=typeof gigya&&Dr(c),Vr(i,null,"",!1),h(),jr(e.selectors.checkbox_email).on("change",(function(){n=document.querySelector(e.selectors.checkbox_email).checked,jr(e.selectors.checkbox_email).is(":checked")?(jr(e.selectors.messagingText).removeClass("d-none"),jr(e.selectors.emailBoxWrapper).removeClass("d-none"),jr(e.selectors.infoWrapper).removeClass("d-none")):jr(e.selectors.checkbox_email).is(":not(:checked)")&&(jr(e.selectors.emailBoxWrapper).addClass("d-none"),jr(e.selectors.checkbox_sms).is(":not(:checked)")&&(jr(e.selectors.messagingText).addClass("d-none"),jr(e.selectors.infoWrapper).addClass("d-none")))})),jr(e.selectors.checkbox_sms).on("change",(function(){r=document.querySelector(e.selectors.checkbox_sms).checked,jr(e.selectors.checkbox_sms).is(":checked")?(jr(e.selectors.messagingText).removeClass("d-none"),jr(e.selectors.infoWrapper).removeClass("d-none"),jr(e.selectors.smsBoxWrapper).removeClass("d-none")):jr(e.selectors.checkbox_sms).is(":not(:checked)")&&(jr(e.selectors.smsBoxWrapper).addClass("d-none"),jr(e.selectors.checkbox_email).is(":not(:checked)")&&(jr(e.selectors.messagingText).addClass("d-none"),jr(e.selectors.infoWrapper).addClass("d-none")))}));var t=jr(".amag-appointmentNotification__bookingAdvanced");t.on("click",(function(){t.toggleClass("amag-appointmentNotification__bookingAdvanced--checked",t.find("input[type=checkbox]:checked").length>0)})),enableBackBtn(),a||(n&&r?(jr(e.selectors.messagingText).removeClass("d-none"),jr(e.selectors.infoWrapper).removeClass("d-none"),jr(e.selectors.emailBoxWrapper).removeClass("d-none"),jr(e.selectors.smsBoxWrapper).removeClass("d-none")):!n&&r?(jr(e.selectors.messagingText).removeClass("d-none"),jr(e.selectors.infoWrapper).removeClass("d-none"),jr(e.selectors.smsBoxWrapper).removeClass("d-none")):n&&!r?(jr(e.selectors.messagingText).removeClass("d-none"),jr(e.selectors.infoWrapper).removeClass("d-none"),jr(e.selectors.emailBoxWrapper).removeClass("d-none")):(jr(e.selectors.messagingText).addClass("d-none"),jr(e.selectors.infoWrapper).addClass("d-none"),jr(e.selectors.emailBoxWrapper).addClass("d-none"),jr(e.selectors.smsBoxWrapper).addClass("d-none")))})()}}));var Hr,Gr,Ur=(Hr=function(e){var t=e.target;t.parentNode.classList.add("active"),t.setAttribute("placeholder",t.getAttribute("data-placeholder")||"")},Gr=function(e){var t=e.target;t.value||t.parentNode.classList.remove("active"),t.removeAttribute("placeholder")},{init:function(e){document.querySelectorAll(e).forEach((function(e){e.querySelector("input").value.length>0&&e.classList.add("active"),function(e){var t=e.querySelector("input");t.addEventListener("focus",Hr),t.addEventListener("blur",Gr)}(e)}))}});function Wr(e){var t=e;Ur.init(t)}var zr=__webpack_require__(74692),$r={selectors:{changePasswordLink:".js-changePassword",showConsentLink:".js-showConsent",cdcContainerID:"cdccontainer",cdcContainerModal:".amag-cdcboxmodalsection__container",loginflyout:".js-amag-header__loginFlyout",innerWrapper:".amag-cdcbox"},queryStringObj:{errorCode:"errorCode",pwrt:"pwrt",lang:"lang",logout:"logout",login:"login"},dataScreenObj:{registration:"registration",registrationflyout:"registrationflyout",notification:"notification",editemail:"editemail",editpassword:"editpassword",renewpassword:"renewpassword",editprofile:"editprofile",marketingconsent:"marketingConsent",delectionaccount:"delectionaccount"},i18n:{registrationOkay:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.registrationOkay"),activationlinkExpired:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.activationlinkExpired"),profileSaveSuccessMessage:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.i18nProfileSaveSuccessMessage"),accountNotFound:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.accountnotfound"),logoutOkay:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.logoutOkay"),pwValidationLength:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.passwordValidationLength"),pwValidationLetter:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.passwordValidationLetter"),pwValidationNumber:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.passwordValidationNumber"),pwValidationSpecial:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.passwordValidationSpecial"),noentry:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.noentry")}},Yr=!1,Zr=!1,Kr=!1,Xr=!1,Jr=!1,Qr=!1,ea=!1,ta=!1,na=!1;function ra(){var e=aa()?"AMAGFirst-ProfileUpdate":"Retail-ProfileUpdate";gigya.accounts.showScreenSet({screenSet:e,startScreen:"amag-change-password-screen",containerID:$r.selectors.cdcContainerID})}
6function aa(){var e=document.getElementById("amag-infrastructure-info");return"theme.amag.noncaptive"===e.dataset.theme&&"porsche"===e.dataset.project}function ia(e){if(e){var t=e.profile;localStorage.setItem("amaguser",JSON.stringify(t)),na=!0,document.querySelector("body").dispatchEvent(new CustomEvent("amagUserLogin"))}else localStorage.removeItem("amaguser"),localStorage.removeItem("amagAppVehicle"),na=!1}function oa(){gigya.accounts.logout(),ia(!1),Lr(),"yes"===kr($r.queryStringObj.logout)&&Tr($r.i18n.logoutOkay,"okay",it.lp.isMobile()?"touch":"desktop")}function sa(e){"FAIL"===e.status||e.profile.email!==JSON.parse(localStorage.amaguser).email?oa():Lr()}function ca(e){e?gigya.accounts.getAccountInfo({include:"profile",callback:sa}):gigya.accounts.getAccountInfo({include:"profile,data,subscriptions,preferences,addresses",callback:Dr})}function la(e){}function ua(e){return da.apply(this,arguments)}function da(){return(da=(0,lt.A)(ht().mark((function e(t){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"otv"!==t.context&&gigya.accounts.hideScreenSet({containerID:$r.selectors.cdcContainerID}),ia(t),Lr(),Dr(Ir),"undefined"!=typeof dataLayer&&(dataLayer.push({event:"ga4Event",eventName:"user_login",eventParameter2:"interaction_label",fieldValue2:"Erfolgreich"}),dataLayer.push({event:"ga4Event",eventName:"amagid_uploaded",userParameter1:"amag_id",userValue1:t.UID}));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ha(e){zr(e).find(".gigya-composite-control-password").find("input").after('<div class="pw-field-showhide show-password">show</div><div class="pw-field-showhide hide-password">hide</div>'),zr(".show-password").on("click",(function(){zr(this).hide(),zr(this).parent().find(".hide-password").show(),zr(this).parent().find("input").attr("type","text")})),zr(".hide-password").on("click",(function(){zr(this).hide(),zr(this).parent().find(".show-password").show(),zr(this).parent().find("input").attr("type","password")}))}function pa(e,t,n){t&&e.find("option:first-child").empty(),n&&e.find("option:first-child").text($r.i18n.noentry),e.wrap("<div class='select2-wrapper'></div>");var r=e.parents(".gigya-composite-control-dropdown").find(".gigya-label-text").text();r+=" ".concat(e.parents(".gigya-composite-control-dropdown").find(".gigya-required-display:not(.gigya-hidden)").text()),e.after("<label>"+r+"</label>"),e.parents(".gigya-composite-control-dropdown").find(".gigya-label").hide(),zr(e.parents(".gigya-composite-control-dropdown").find("select option")).is(":selected")&&(zr(e.parents(".gigya-composite-control-dropdown").find("select option")[0]).is(":selected")?zr(e).parents(".select2-wrapper").removeClass("state--labelTop"):zr(e).parents(".select2-wrapper").addClass("state--labelTop")),Vr(e,null,!1,t)}function fa(e){var t=zr(e).find(".gigya-composite-control-password").not(".control-oldpassword");function n(){var e=[{Pattern:"[a-zA-Z]",Target:"pwLetters"},{Pattern:"[?=*\\d]",Target:"pwNumbers"},{Pattern:"[?=.*\\W_]",Target:"pwSpecialCharacter"}],t=zr(this).val();zr(".pwLength").removeClass(t.length>11?"error":"success"),zr(".pwLength").addClass(t.length>11?"success":"error");for(var n=0;n<e.length;n++)zr("."+e[n].Target).removeClass(new RegExp(e[n].Pattern).test(t)?"error":"success"),zr("."+e[n].Target).addClass(new RegExp(e[n].Pattern).test(t)?"success":"error")}t.after('<div class="amag-cdcbox__passwordvalidation"><div class="pwLength">'+$r.i18n.pwValidationLength+'</div><div class="pwLetters">'+$r.i18n.pwValidationLetter+'</div><div class="pwNumbers">'+$r.i18n.pwValidationNumber+'</div><div class="pwSpecialCharacter">'+$r.i18n.pwValidationSpecial+"</div></div>"),zr((function(){zr(t).find(".gigya-input-password").on("keyup",n)}))}function ma(e,t){var n=document.getElementById(e),r=new MutationObserver((function(e){!function(e,t){var n=null;for(var r in e){var a=e[r],i=t.join(",");if(a.target.querySelector(i)&&1===a.addedNodes.length)for(var o=0;o<a.addedNodes.length;o++)"cdccontainer_content"!==a.addedNodes[o].id&&"cdccontainer_child_content"!==a.addedNodes[o].id||(n=a.target.querySelector(i))}if(n)if("amag-pre-auth-screen"===n.dataset.screensetElementId){var s=JSON.parse(sessionStorage.getItem(Gt.autoAbo.obj));s&&(s[Gt.autoAbo.lastPageLogin]=!0,sessionStorage.setItem(Gt.autoAbo.obj,JSON.stringify(s)));var c="#"+n.dataset.screensetElementId;if(zr(".cdcBox").find(".amag-cdcLoadSpinner").fadeOut(),zr(".cdcBox").parents(".amagCh-section__container").find(".accordion").show(),zr(c).find(".gigya-composite-control-loginID").addClass("floatinglabel"),zr(c).find("input[name=username]").attr("placeholder",""),Wr(".floatinglabel"),zr("".concat(c," input")).on("focus",(function(){zr(this).attr("placeholder","")})),"true"!==document.querySelector($r.selectors.innerWrapper).getAttribute("data-isauthormode")&&localStorage.getItem(bt.H.AMAG_USER)&&!document.querySelector($r.selectors.cdcContainerModal)){var l=zr($r.selectors.loginflyout).data("overview");window.location.href=l}}else if("amag-register-screen"===n.dataset.screensetElementId){var u="#"+n.dataset.screensetElementId;zr(".cdcBox").find(".amag-cdcLoadSpinner").fadeOut();var d=zr(n).find("select").eq(0),h=d.find("option")[0].text;d.wrap("<div class='select2-wrapper'></div>"),d.after("<label>"+h+"</label>"),Vr(d,null,!1,!1),fa(n),ha(n),zr(u).find(".email-field-area").find("input").attr("disabled","disabled"),zr(u).find(".gigya-composite-control-password").addClass("floatinglabel"),zr(u).find(".gigya-composite-control-textbox").addClass("floatinglabel"),zr(u).find("input").attr("placeholder",""),Wr(".floatinglabel"),zr("".concat(u," input")).on("focus",(function(){zr(this).attr("placeholder","")})),zr(u).find(".gigya-composite-control-dropdown").find(".gigya-label").hide()}else if("amag-password-auth-method-screen"===n.dataset.screensetElementId){var p="#"+n.dataset.screensetElementId;zr(".cdcBox").find(".amag-cdcLoadSpinner").fadeOut(),ha(n),zr(p).find(".gigya-composite-control.gigya-composite-control-textbox.gigya-composite-control-loginID").addClass("floatinglabel"),zr(p).find(".gigya-composite-control-password").addClass("floatinglabel"),zr(p).find("input[name=password]").attr("placeholder",""),Wr(".floatinglabel"),zr("".concat(p," input")).on("focus",(function(){zr(this).attr("placeholder","")}))}else if("amag-forgot-password-screen"===n.dataset.screensetElementId)zr(".cdcBox").find(".amag-cdcLoadSpinner").fadeOut();else if("gigya-link-account-screen"===n.dataset.screensetElementId)zr(n).find(".gigya-composite-control-textbox, .gigya-composite-control-password").addClass("floatinglabel"),Wr(".floatinglabel"),zr(".cdcBox").find(".amag-cdcLoadSpinner").fadeOut(),ha(n);else if("amag-update-profile-screen"===n.dataset.screensetElementId){var f="#"+n.dataset.screensetElementId;zr(".cdcBox").find(".amag-cdcLoadSpinner").fadeOut();var m=zr(n).find('select[name="profile.gender"]'),v=zr(n).find('select[name="data.title"]'),g=zr(n).find('select[name="profile.birthDay"]'),y=zr(n).find('select[name="profile.birthMonth"]'),_=zr(n).find('select[name="profile.birthYear"]'),b=zr(n).find('select[name="addresses.private.countryISOCode3"]'),w=zr(n).find('select[name="addresses.private.neighborhood"]'),S=zr(n).find('select[name="local.mobileCountryCode"]'),C=zr(n).find('select[name="data.nationality"]'),E=zr(n).find('select[name="data.residencePermitCategory"]'),x=zr(n).find(".residence-permit");"true"!==document.querySelector($r.selectors.innerWrapper).getAttribute("data-isauthormode")&&(localStorage.getItem(bt.H.AMAG_USER)||(window.location.href=zr($r.selectors.loginflyout).data("login"))),pa(m,!0,!1),pa(v,!1,!0),pa(g,!1,!0),pa(y,!1,!0),pa(_,!1,!0),pa(b,!1,!1),pa(w,!1,
6!1),pa(S,!0,!1),pa(C,!0,!1),pa(E,!0,!1);var A=C.val();"CHE"!==A&&""!==A||x.addClass("d-none"),"LIE"===b.val()&&w.parent().addClass("ddl-state--disabled"),C.on("select2:select",(function(e){["CHE","CH"].includes(C.val())||""===C.val()?x.addClass("d-none"):x.removeClass("d-none")})),b.on("select2:select",(function(e){var t=e.params.data.id;zr(b.parents(".gigya-composite-control-dropdown").find("select option")[0]).is(":selected")&&b.parents(".select2-wrapper").addClass("state--labelTop"),"CHE"!==t?(w.parent().addClass("ddl-state--disabled"),w.val(0).trigger("change"),w.parent().find(".select2-selection__rendered").text(w.find("option")[0].text),w.select2("enable")):(w.parent().removeClass("ddl-state--disabled"),w.parent().find(".select2-selection__rendered").text(w.find("option")[0].text),w.select2("enable"))})),w.on("select2:select",(function(e){zr(w.parents(".gigya-composite-control-dropdown").find("select option")[0]).is(":selected")&&w.parents(".select2-wrapper").addClass("state--labelTop")})),zr(f).find(".gigya-composite-control-textbox").addClass("floatinglabel"),zr(f).find("input").attr("placeholder",""),Wr(".floatinglabel"),zr("".concat(f," input")).on("focus",(function(){zr(this).attr("placeholder","")})),n.querySelector(".back-link").addEventListener("click",(function(){document.location.href=zr($r.selectors.loginflyout).data("profil")}))}else if("amag-change-email-screen"===n.dataset.screensetElementId){var k="#"+n.dataset.screensetElementId,T=document.querySelector($r.selectors.innerWrapper).getAttribute("data-isauthormode"),L=document.querySelector("#cdccontainer input[name=email]"),I=document.querySelector("#cdccontainer input[type=submit]");if(zr(".cdcBox").find(".amag-cdcLoadSpinner").fadeOut(),I.addEventListener("click",(function(){var e=L.value,t=JSON.parse(localStorage.getItem(bt.H.AMAG_USER));t.tempEmail=e,localStorage.setItem("amaguser",JSON.stringify(t))})),"true"!==T&&!localStorage.getItem(bt.H.AMAG_USER)){var D=zr($r.selectors.loginflyout).data("login");window.location.href=D}zr("input:text").val(""),zr(k).find(".gigya-composite-control-textbox").addClass("floatinglabel"),zr(k).find("input").attr("placeholder",""),Wr(".floatinglabel"),zr("".concat(k," input")).on("focus",(function(){zr(this).attr("placeholder","")})),n.querySelector(".back-link").addEventListener("click",(function(){document.location.href=zr($r.selectors.loginflyout).data("profil")}))}else if("amag-change-email-success-screen"===n.dataset.screensetElementId)zr(".cdcBox").find(".amag-cdcLoadSpinner").fadeOut(),n.querySelector(".back-link").addEventListener("click",(function(){document.location.href=zr($r.selectors.loginflyout).data("profil")}));else if("amag-change-password-screen"===n.dataset.screensetElementId){var P="#"+n.dataset.screensetElementId;if(zr(".cdcBox").find(".amag-cdcLoadSpinner").fadeOut(),"true"!==document.querySelector($r.selectors.innerWrapper).getAttribute("data-isauthormode")&&!localStorage.getItem(bt.H.AMAG_USER)){var O=zr($r.selectors.loginflyout).data("login");window.location.href=O}ha(n),fa(n),zr(P).find(".gigya-composite-control-password").addClass("floatinglabel"),zr(P).find("input").attr("placeholder",""),Wr(".floatinglabel"),zr("".concat(P," input")).on("focus",(function(){zr(this).attr("placeholder","")})),n.querySelector(".back-link").addEventListener("click",(function(){document.location.href=zr($r.selectors.loginflyout).data("profil")}))}else if("amag-reset-password-screen"===n.dataset.screensetElementId){var R="#"+n.dataset.screensetElementId;zr(".cdcBox").find(".amag-cdcLoadSpinner").fadeOut(),fa(n),ha(n),zr(R).find(".gigya-composite-control-password").addClass("floatinglabel"),zr(R).find("input").attr("placeholder",""),Wr(".floatinglabel"),zr("".concat(R," input")).on("focus",(function(){zr(this).attr("placeholder","")}))}else if("amag-reset-password-success-screen"===n.dataset.screensetElementId)zr(".cdcBox").find(".amag-cdcLoadSpinner").fadeOut(),n.querySelector(".back-link").addEventListener("click",(function(){document.location.href=zr($r.selectors.loginflyout).data("login")}));else if("gigya-complete-registration-screen"===n.dataset.screensetElementId)pa(zr(n).find("select[name='profile.gender']"),!0,!1),zr(n).find(".gigya-composite-control-textbox").addClass("floatinglabel"),Wr(".floatinglabel");else if("gigya-email-code-verification-screen"===n.dataset.screensetElementId){var M="#"+n.dataset.screensetElementId;zr(M).find(".gigya-composite-control-textbox").addClass("floatinglabel"),Wr(".floatinglabel")}else if("amag-forgot-password-request-screen"===n.dataset.screensetElementId){var q="#"+n.dataset.screensetElementId;zr(q).find(".gigya-composite-control-textbox").addClass("floatinglabel"),Wr(".floatinglabel")}else"amag-profile-update-retail"===n.dataset.screensetElementId||n.dataset.screensetElementId,zr(".cdcBox").find(".amag-cdcLoadSpinner").fadeOut()}(e,t)}));r.observe(n,{childList:!0,subtree:!0})}function va(){var e;(zr($r.selectors.changePasswordLink).click((function(e){e.preventDefault(),ra()})),zr($r.selectors.showConsentLink).click((function(e){var t;e.preventDefault(),t=aa()?"AMAGFirst-ProfileUpdate":"Retail-ProfileUpdate",gigya.accounts.showScreenSet({screenSet:t,startScreen:"amag-consents-screen",containerID:$r.selectors.cdcContainerID})})),gigya.accounts.addEventHandlers({onLogin:ua,onLogout:la}),Yr&&oa(),ca(!0),document.getElementById($r.selectors.cdcContainerID))&&(ma($r.selectors.cdcContainerID,["#amag-register-screen","#amag-pre-auth-screen","#amag-password-auth-method-screen","#amag-forgot-password-screen","#amag-update-profile-screen","#amag-change-email-screen","#amag-change-email-success-screen","#amag-change-password-screen","#amag-reset-password-screen","#amag-reset-password-success-screen","#amag-change-password-screen","#amag-change-password-success-screen","#gigya-link-account-screen","#gigya-complete-registration-screen","#gigya-email-code-verification-screen","#amag-forgot-password-request-screen","#amag-profile-update-retail","#amag-maintenance-screen"]),Zr&&(na?ca():(e=aa()?"AMAGFirst-RegistrationLogin":"Retail-RegistrationLogin",gigya.accounts.showScreenSet({screenSet:e,startScreen:"amag-pre-auth-screen",containerID:$r.selectors.cdcContainerID}))),Kr&&function(){var e=aa()?"AMAGFirst-ProfileUpdate":"Retail-ProfileUpdate";gigya.accounts.showScreenSet({screenSet:e,startScreen:"amag-update-profile-screen",containerID:$r.selectors.cdcContainerID})}(),Jr&&ra(),Xr&&function(){var e=aa()?"AMAGFirst-ProfileUpdate":"Retail-ProfileUpdate";gigya.accounts.showScreenSet({screenSet:e,startScreen:"amag-change-email-screen",containerID:$r.selectors.cdcContainerID})}(),Qr&&function(){var e=aa()?"AMAGFirst-RegistrationLogin":"Retail-RegistrationLogin";gigya.accounts.showScreenSet({screenSet:e,startScreen:"amag-reset-password-screen",containerID:$r.selectors.cdcContainerID})}(),ea&&function(){var e=aa()?"AMAGFirst-ProfileUpdate":"Retail-ProfileUpdate";gigya.accounts.showScreenSet({screenSet:e,startScreen:"amag-profile-update-retail",containerID:$r.selectors.cdcContainerID})}(),ta&&"true"!==document.querySelector($r.selectors.innerWrapper).getAttribute("data-isauthormode")&&function(){var e=aa()?"AMAGFirst-ProfileUpdate":"Retail-ProfileUpdate";gigya.accounts.showScreenSet({screenSet:e,startScreen:"amag-request-deletion-screen",containerID:$r.selectors.cdcContainerID})}())}document.getElementById($r.selectors.cdcContainerID)&&(!0===Ar($r.dataScreenObj.registration)&&(zr(".cdcBox").parents(".amagCh-section").find(".amagCh-section__stepswrapper-before").hide(),Zr=!0),!0===Ar($r.dataScreenObj.registrationflyout)&&(zr(".cdcBox").parents(".amagCh-section__container").addClass("amagCh-section__overlaycontainer"),Zr=!0),!0===Ar($r.dataScreenObj.renewpassword)&&(Qr=!0),!0===Ar($r.dataScreenObj.editprofile)&&(Kr=!0),!0===Ar($r.dataScreenObj.editemail)&&(Xr=!0),!0===Ar($r.dataScreenObj.editpassword)&&(Jr=!0),!0===Ar($r.dataScreenObj.marketingconsent)&&(ea=!0),!0===Ar($r.dataScreenObj.delectionaccount)&&(ta=!0),!0===Ar($r.dataScreenObj.notification)&&("206005"===kr($r.queryStringObj.errorCode)&&Tr($r.i18n.registrationOkay,"okay",it.lp.isMobile()?"touch":"desktop"),"403002"===kr($r.queryStringObj.errorCode)&&Tr($r.i18n.activationlinkExpired,"error",it.lp.isMobile()?"touch":"desktop"),"profileSaveSuccess"===kr($r.queryStringObj.errorCode)&&Tr($r.i18n.profileSaveSuccessMessage,"okay",it.lp.isMobile()?"touch":"desktop"),"404000"===kr($r.queryStringObj.errorCode)&&Tr($r.i18n.accountNotFound,"error",it.lp.isMobile()?"touch":"desktop"))),"yes"===kr($r.queryStringObj.logout)&&(Yr=!0),"undefined"!=typeof gigya?va():window.addEventListener("DOMContentLoaded",(function(){void 0!==window.gigya&&va()}));var ga=__webpack_require__(74692);window.amagPreAuthScreenLoaded=function(){document.querySelectorAll(".gigya-login-provider").forEach((function(e,t){"oidc-vwgroup"===e.dataset.gigyaProvider&&(e.classList.add("oidc-vwgroup"),e.innerHTML='<div class="gigya-provider__icons"><svg xmlns="http://www.w3.org/2000/svg" width="21" height="21" viewBox="0 0 48 48"><path fill="#FFF" fill-rule="nonzero" d="M24 45.171c-11.571 0-21.086-9.6-21.086-21.171 0-2.4.429-4.714 1.2-6.943l12.343 24c.172.343.343.6.772.6.428 0 .6-.257.771-.6l5.743-12.771c.086-.172.171-.257.257-.257.171 0 .171.171.257.257l5.829 12.771c.171.343.343.6.771.6.429 0 .6-.257.772-.6l12.342-24a20.36 20.36 0 0 1 1.2 6.943c-.085 11.571-9.6 21.171-21.171 21.171zm0-26.657c-.171 0-.171-.171-.257-.257l-6.6-14.228A20.234 20.234 0 0 1 24 2.829c2.4 0 4.714.428 6.857 1.2l-6.6 14.228c-.086.086-.086.257-.257.257zm-6.943 15.429c-.171 0-.171-.172-.257-.257L6 12.943c1.886-3.086 4.629-5.657 7.8-7.457l7.629 16.457c.171.343.342.428.6.428h3.942c.258 0 .429-.085.6-.428l7.543-16.457c3.172 1.8 5.915 4.371 7.8 7.457L31.2 33.686c-.086.171-.171.257-.257.257-.172 0-.172-.172-.257-.257L26.57 24.6c-.171-.343-.342-.429-.6-.429H22.03c-.258 0-.429.086-.6.429l-4.115 9.086c-.085.085-.085.257-.257.257zM24 48c13.286 0 24-10.714 24-24S37.286 0 24 0 0 10.714 0 24s10.714 24 24 24z"/></svg></div><div class="gigya-provider__text">Volkswagen ID</div>'),"linkedin"===e.dataset.gigyaProvider&&(e.classList.add("linkedin"),e.innerHTML='<div class="gigya-provider__icons">
6<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.1944 0H1.80556C0.833333 0 0 0.833333 0 1.80556V23.1944C0 24.1667 0.833333 25 1.80556 25H23.0556C24.0278 25 24.8611 24.1667 24.8611 23.1944V1.80556C25 0.833333 24.1667 0 23.1944 0ZM7.36111 21.25H3.75V9.30556H7.5V21.25H7.36111ZM5.55556 7.77778C4.30556 7.77778 3.47222 6.80556 3.47222 5.55556C3.47222 4.30556 4.30556 3.47222 5.55556 3.47222C6.80556 3.47222 7.63889 4.44444 7.63889 5.55556C7.63889 6.66667 6.80556 7.77778 5.55556 7.77778ZM21.25 21.25H17.5V15.4167C17.5 14.0278 17.5 12.2222 15.5556 12.2222C13.6111 12.2222 13.3333 13.75 13.3333 15.2778V21.1111H9.72222V9.30556H13.3333V10.9722C13.8889 10 15 9.02778 16.8056 9.02778C20.5556 9.02778 21.25 11.5278 21.25 14.7222V21.25Z" fill="white"/></svg></div><div class="gigya-provider__text">LinkedIn</div>'),"oidc-swissid"===e.dataset.gigyaProvider&&(e.classList.add("oidc-swissid"),e.innerHTML='<div class="gigya-provider__icons"><svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 50 50"><g fill="none" fill-rule="evenodd"><rect width="50" height="50" fill-opacity="0.0" rx="2"/><g fill="#FFF"><path d="M17.816 24.917a3.908 3.908 0 1 1-7.816 0 3.908 3.908 0 0 1 7.816 0M28.83 24.917a3.908 3.908 0 1 1-7.816 0 3.908 3.908 0 0 1 7.816 0M28.83 13.908a3.908 3.908 0 1 1-7.816 0 3.908 3.908 0 0 1 7.816 0M28.83 35.935a3.908 3.908 0 1 1-7.816 0 3.908 3.908 0 0 1 7.816 0M39.843 24.917a3.908 3.908 0 1 1-7.816 0 3.908 3.908 0 0 1 7.816 0"/></g></g></svg></div><div class="gigya-provider__text">SwissID</div>'),"oidc-postfinance"===e.dataset.gigyaProvider&&(e.classList.add("oidc-postfinance"),e.innerHTML='<div class="gigya-provider__icons"><img src="https://www.postfinance.ch/content/dam/pfch/image/about/logo/logo_pf_new_big.png" width="21" height="21"></img></div><div class="gigya-provider__text">PostFinance</div>')}))},void 0!==(0,xt.A)(localStorage.amaguser)&&(window.amagTriggerAfterProfileSaveSuccess=function(){},window.amagGigyaEvent=function(e){var t,n={loginflyout:".js-amag-header__loginFlyout"};switch(e){case"amag-update-profile-screen_finished":document.location.href=ga(n.loginflyout).data("profil")+"?errorCode=profileSaveSuccess";break;case"amag-change-password-screen_finished":document.location.href=ga(n.loginflyout).data("profil")+"?errorCode=passwordRenewSuccess";break;case"gigya-email-code-verification-screen_finished":var r=JSON.parse(localStorage.getItem(bt.H.AMAG_USER));r.email=r.tempEmail,delete r.tempEmail,localStorage.setItem("amaguser",JSON.stringify(r)),Dr((function(e){"FAIL"!==e.status&&("undefined"!=typeof dataLayer&&(dataLayer.push({event:"ga4Event",eventName:"user_register"}),dataLayer.push({event:"ga4Event",eventName:"amagid_uploaded",userParameter1:"amag_id",userValue1:e.UID})),document.location.href=ga(n.loginflyout).data("profil")+"?errorCode=profileSaveSuccess")}));break;case"amag-change-email-screen_finished":ga(".back-link").on("click",(function(e){document.location.href=ga(n.loginflyout).data("profil")}));break;case"amag-profile-update-retail_finished":document.location.href=ga(n.loginflyout).data("profil");break;case"account_marked_for_deletion":ga(".cdcBox").find(".amag-cdcLoadSpinner").fadeOut(),ga(".amag-cdcbox").find(".amag-cdcbox-message__deletion").show(),gigya.accounts.logout(),ia(!1),Lr();break;case"account_marked_for_deactivation":ga(".cdcBox").find(".amag-cdcLoadSpinner").fadeOut(),ga(".amag-cdcbox").find(".amag-cdcbox-message__deactivated").show(),gigya.accounts.logout(),ia(!1),Lr();break;default:t=e,ga("body").trigger("cdc-".concat(t))}});var ya,_a=__webpack_require__(74692);function ba(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return wa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wa(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function wa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}_a((function(){if(document.querySelector(".amag-garageOverlay")){_a(".amag-garageOverlay__garageList").prepend("<div class='amag-garageOverlay__autosuggest_container d-none'><ul class=\"amag-garageOverlay__autosuggest_list\"></ul></div>"),_a(".election_autosuggest__container").addClass("d-none");var e=_a(document).find(".amag-garageOverlay__garageList--garage"),t=_a(".garageOverlay__searchField"),n=function(e,t){if(""!==e){var n,r=ba(ya);try{for(r.s();!(n=r.n()).done;){var a=n.value;a.name.toLowerCase().includes(e.toLowerCase())&&t.append('<li class="amag-garageOverlay__autosuggest_listItem" data-garageId='.concat(a.storeId,">\n <p>").concat(a.name,"</p>\n </li>"))}}catch(e){r.e(e)}finally{r.f()}}},r=function(){var n=(0,lt.A)(ht().mark((function n(r,a){var i,o,s,c;return ht().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,document.querySelectorAll(".amag-garageOverlay__autosuggest_listItem");case 2:i=n.sent,o=ba(i),n.prev=4,c=ht().mark((function n(){var i;return ht().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:(i=s.value).addEventListener("click",(function(){t.val(i.children[0].innerText),a[0].innerHTML="",r.addClass("d-none"),e.addClass("amag-garageOverlay__garageList--garage-hide");var n,o=ba(i.getAttribute("data-garageId").split(","));try{for(o.s();!(n=o.n()).done;){var s=n.value;_a(document).find(".amag-garageOverlay__garageList--garage[data-garageId='".concat(s,"']")).removeClass("amag-garageOverlay__garageList--garage-hide")}}catch(e){o.e(e)}finally{o.f()}}));case 2:case"end":return n.stop()}}),n)})),o.s();case 7:if((s=o.n()).done){n.next=11;break}return n.delegateYield(c(),"t0",9);case 9:n.next=7;break;case 11:n.next=16;break;case 13:n.prev=13,n.t1=n.catch(4),o.e(n.t1);case 16:return n.prev=16,o.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[4,13,16,19]])})));return function(e,t){return n.apply(this,arguments)}}(),a=function(){e.removeClass("amag-garageOverlay__garageList--garage-hide")},i=_a(".garageOverlay__searchDelete"),o=_a(".amag-garageOverlay__autosuggest_container"),s=_a(".amag-garageOverlay__autosuggest_list");document.querySelector(".garageOverlay__searchField").addEventListener("input",function(){var e=(0,lt.A)(ht().mark((function e(c){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _a(".amag-garageOverlay__garageList").addClass("amag-garageOverlay__garageList--overflow-hidden"),i.removeClass("d-none"),o.removeClass("d-none"),s[0].innerHTML="",e.next=6,n(c.target.value,s);case 6:return e.next=8,r(o,s);case 8:""===t.val()&&(_a(".amag-garageOverlay__garageList").removeClass("amag-garageOverlay__garageList--overflow-hidden"),o.addClass("d-none"),i.addClass("d-none"),a());case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),i.on("click",(function(){_a(".amag-garageOverlay__autosuggest_container").addClass("d-none"),i.addClass("d-none"),t.val(""),a()}
6)),_a.ajax({url:"/bin/amagch/storelocator.stores.json",success:function(e){ya=e}}),function(){for(var e=document.querySelectorAll(".amag-garageOverlay__garageList--garage:not(.amag-garageOverlay__garageList--garage-hide"),t=0;t<e.length;t+=2)e[t].style.backgroundColor="#F5F5F5";for(var n=1;n<e.length;n+=2)e[n].style.backgroundColor="white"}()}_a(".amag-garageOverlay").on("hidden.bs.modal",(function(){_a(document).find(".amag-garageOverlay__garageList--garage").removeClass("amag-garageOverlay__garageList--garage-hide"),_a(".garageOverlay__searchField").val(""),_a(".garageOverlay__searchField").removeClass("garageOverlay__searchField--active"),setOddEvenBackgroundGarage()})),document.querySelectorAll(".garageOverlay__searchField").forEach((function(e){e.addEventListener("focusin",(function(){e.classList.add("garageOverlay__searchField--active")}))}))}));var Sa=__webpack_require__(3453);function Ca(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ea(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ea(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var xa="cmp-carousel__item--active",Aa=document.querySelector(".amag-introGarageWithSlider__carousel"),ka=Aa?Aa.querySelectorAll(".cmp-carousel__item"):null;ka&&(ka.active=function(){return(0,ut.A)(this).filter((function(e){return e.classList.contains(xa)}))[0]||!1},ka.activeIndex=function(){var e,t=Ca(this.entries());try{for(t.s();!(e=t.n()).done;){var n=(0,Sa.A)(e.value,2),r=n[0];if(n[1].classList.contains(xa))return r}}catch(e){t.e(e)}finally{t.f()}return console.error("No active tabPanel found"),!1},ka.next=function(){return!this.isLast()&&this[this.activeIndex()+1]},ka.previous=function(){return!this.isFirst()&&this[this.activeIndex()-1]},ka.get=function(e){return!(e<0||e>ka.length-1)&&ka[e]},ka.isFirst=function(){return this[0].classList.contains(xa)},ka.isLast=function(){return this[this.length-1].classList.contains(xa)});var Ta=Aa?Aa.querySelectorAll("button.cmp-carousel__action"):null,La=(Aa&&Aa.querySelector("button.cmp-carousel__action[data-cmp-hook-carousel=next]"),Aa&&Aa.querySelector("button.cmp-carousel__action[data-cmp-hook-carousel=previous]"),"previous"),Ia="next",Da="data-cmp-hook-carousel";function Pa(e){Ta.forEach((function(e){return e.disabled=!1}))}function Oa(e){switch(this.getAttribute(Da)){case La:0;break;case Ia:0;break;default:return void console.error("No hook attribute given in ".concat(Da," (Result: ").concat(this.getAttribute(Da),")"))}Pa(ka.activeIndex())}var Ra=__webpack_require__(74692);function Ma(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return qa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qa(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}if(Aa){Aa.ActivateSliderSwipeActions();var Na,Va=Ma(Ta);try{for(Va.s();!(Na=Va.n()).done;){Na.value.addEventListener("click",Oa)}}catch(e){Va.e(e)}finally{Va.f()}if(Pa(ka.activeIndex()),document.querySelector(".amag-introGarageWithSlider")){var Fa=document.querySelector(".amag-introGarageWithSlider"),Ba=Ra(Fa).parents(".amagCh-section__container");Ra(Ba).addClass("amagCh-section__container--halfmargin")}var ja,Ha=Ma(document.querySelectorAll(".cmp-carousel__indicator").entries());try{for(Ha.s();!(ja=Ha.n()).done;){(0,Sa.A)(ja.value,2)[1].addEventListener("click",(function(e){return e.stopImmediatePropagation()}))}}catch(e){Ha.e(e)}finally{Ha.f()}}Ra((function(){var e=document.querySelector(".amag-introGarageWithSlider__carousel"),t=!1;if(Ra(".amag-introGarageWithSliderImage__imgCaption").each((function(e){Ra(this).text().trim().length>1&&(t=!0)})),!it.lp.isMobile()&&!it.lp.isTablet()){var n=0;Ra(".amag-introGarageWithSliderImage").each((function(e){n=Ra(this).width()/4*3,Ra(this).css({height:n})}
6)),Ra(".amag-introGarageWithSliderVideo").css({height:n})}if(!0===t){var r=Ra(".amag-introGarageWithSliderImage__imgCaption",this);Ra(".amag-introGarageWithSliderImage__imgCaption").show();var a=Math.max.apply(Math,r.map((function(){return Ra(this).height()})).get());r.height(a);var i=document.querySelector(".amag-introGarageWithSliderImage__imgCaption").clientHeight,o=Ra(".amag-introGarageWithSlider__carousel"),s=Ra(".cmp-carousel__actions");if(it.lp.isMobile())if(it.lp.isLandscape()){var c=384+i,l=i;Ra(o).css("min-height",c),Ra(s).css("bottom",l)}else{var u=350+i,d=103+i,h=81+i,p=81+i;Ra(o).css("min-height",u),Ra(".amag-introGarageWithSlider__carousel .cmp-carousel__indicator-container").css("bottom",d),Ra(".amag-introGarageWithSlider__carousel .cmp-carousel__button-container").css("bottom",h),Ra(".amag-introGarageWithSlider__carousel .amag-action-shadow-mobile").css("bottom",p)}else if(it.lp.isTablet())if(it.lp.isLandscape())Ra(s).css("bottom",i);else{var f=384+i,m=i;Ra(o).css("min-height",f),Ra(s).css("bottom",m)}else Ra(s).css("bottom",i)}if(e&&e.querySelector(".is-author"))return}));var Ga=__webpack_require__(74692);function Ua(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Wa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wa(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Wa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Ga((function(){!function(){var e=document.getElementById("anchor-link-container");if(e){var t,n=e.closest(".amag-introTabModul"),r=n.querySelectorAll("li.cmp-tabs__tab[data-anchor-bind]"),a=n.querySelectorAll("#anchor-link-container .alc-link"),i=Ua(r);try{for(i.s();!(t=i.n()).done;){t.value.addEventListener("click",(function(e){var t,n=e.target.getAttribute("data-anchor-bind"),r=Ua(a);try{for(r.s();!(t=r.n()).done;){t.value.style.display="flex"}}catch(e){r.e(e)}finally{r.f()}var i=(0,ut.A)(a).filter((function(e){return e.getAttribute("data-tab-bind")===n}))[0];i.style.display="none"}))}}catch(e){i.e(e)}finally{i.f()}Ga(n).offset().top,Ga("header#header > .amag-header").height(),Ga("html, body");var o,s=Ua(a);try{for(s.s();!(o=s.n()).done;){o.value.addEventListener("click",(function(){var e=this;vt(n).then((function(){return c(e.getAttribute("data-tab-bind")).click()}))}))}}catch(e){s.e(e)}finally{s.f()}r.forEach((function(e){e.classList.contains("cmp-tabs__tab--active")&&e.click()}))}function c(e){var t,n=Ua(r);try{for(n.s();!(t=n.n()).done;){var a=t.value;if(a.getAttribute("data-anchor-bind")===e)return a}}catch(e){n.e(e)}finally{n.f()}}}()}));var za=__webpack_require__(74692);za((function(){if(document.querySelector(".amag-loggedInPage")){var e="$[name]",t=document.querySelector(".amag-loggedInPage__headline"),n=JSON.parse(localStorage.getItem(bt.H.AMAG_USER)),r=n?"".concat(n.firstName," ").concat(n.lastName):"";if("true"!==document.querySelector(".amag-cdcbox").getAttribute("data-isauthormode")){if("206005"===kr("errorCode")||"403002"===kr("errorCode"))setTimeout((function(){if(!localStorage.getItem(bt.H.AMAG_USER)){var e=za(".js-amag-header__loginFlyout").data("login");window.location.href=e}}),7e3);else if(!localStorage.getItem(bt.H.AMAG_USER)){var a=za(".js-amag-header__loginFlyout").data("login");window.location.href=a}var i=document.querySelectorAll(".amag-navigation-tile.col-12.col-lg-6");
6i.forEach((function(e,t){if(!e.querySelector(".amag-navigation-tile__link"))switch(t){case 0:i[1].classList.remove("col-lg-6"),e.classList.add("d-none");break;case 1:i[0].classList.remove("col-lg-6"),e.classList.add("d-none");break;case 2:i[3].classList.remove("col-lg-6"),e.classList.add("d-none");break;case 3:i[2].classList.remove("col-lg-6"),e.classList.add("d-none")}}))}!function(){if(t.getAttribute("data-headline").includes(e)&&r){var n="<div data-hj-suppress>"+r+"</div>";t.innerHTML=t.getAttribute("data-headline").replace(e,n),t.style.opacity="1"}}()}}));var $a=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e)}),null,[{key:"generateFile",value:function(e,t,n){var r={title1:Granite.I18n.get("apps.amag-ch.components.content.otv-bookingconfirmation.calendar.insert.title.part1"),yourAppointment:Granite.I18n.get("apps.amag-ch.structure.page.global.ics.desc.yourAppointment.text"),at:Granite.I18n.get("apps.amag-ch.structure.page.global.ics.desc.at.text"),waitingTime_normal:Granite.I18n.get("apps.amag-ch.structure.page.global.ics.desc.earliestPickup.text"),waitingTime_fast:Granite.I18n.get("apps.amag-ch.structure.page.global.ics.desc.watingTime.text"),uhr:Granite.I18n.get("apps.amag-ch.structure.page.global.ics.desc.uhr.text"),servicesOverview:Granite.I18n.get("apps.amag-ch.structure.page.global.ics.desc.servicesOverview.text"),yourVehicle:Granite.I18n.get("apps.amag-ch.structure.page.global.ics.desc.yourVehicle.text"),licensePlate:Granite.I18n.get("apps.amag-ch.structure.page.global.ics.desc.licensePlate.text"),yourMessage:Granite.I18n.get("apps.amag-ch.structure.page.global.ics.desc.yourMessage.text"),yourReplacementVehicle:Granite.I18n.get("apps.amag-ch.structure.page.global.ics.desc.yourReplacementVehicle.text"),yesReplacementVehicle:Granite.I18n.get("apps.amag-ch.structure.page.global.ics.desc.replacementVehicle.yes.text"),bringDriversLicense:Granite.I18n.get("apps.amag-ch.structure.page.global.ics.desc.bringDriversLicense.text"),sunday:Granite.I18n.get("apps.amag-ch.structure.page.garage.garagedetail.garagefooter.weekdays.sunday"),monday:Granite.I18n.get("apps.amag-ch.structure.page.garage.garagedetail.garagefooter.weekdays.monday"),tuesday:Granite.I18n.get("apps.amag-ch.structure.page.garage.garagedetail.garagefooter.weekdays.tuesday"),wednesday:Granite.I18n.get("apps.amag-ch.structure.page.garage.garagedetail.garagefooter.weekdays.wednesday"),thursday:Granite.I18n.get("apps.amag-ch.structure.page.garage.garagedetail.garagefooter.weekdays.thursday"),friday:Granite.I18n.get("apps.amag-ch.structure.page.garage.garagedetail.garagefooter.weekdays.friday"),saturday:Granite.I18n.get("apps.amag-ch.structure.page.garage.garagedetail.garagefooter.weekdays.saturday")},a=new Date(e.appointment.iso.VISIT_DATETIME),i=new Date(a.getTime()+9e5),o=a.getTime(),s=i.getTime(),c=a.toLocaleDateString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"}),l=a.toLocaleTimeString("de-DE",{hour:"2-digit",minute:"2-digit"}),u=a.getDay(),d="Europe/Bern",h=0===u?r.sunday:1===u?r.monday:2===u?r.tuesday:3===u?r.wednesday:4===u?r.thursday:5===u?r.friday:r.saturday,p="".concat(r.title1," ").concat(c," ").concat(r.at," ").concat(l).concat(" "+r.uhr),f=e.fastLane?"".concat(r.waitingTime_fast):"".concat(r.waitingTime_normal),m="".concat(r.yourMessage,":\\n").concat(e.message,"\\n\\n"),v="".concat(r.yourReplacementVehicle,":\\n").concat(r.yesReplacementVehicle,"\\n\\n").concat(r.bringDriversLicense),g=e.services,y="";y=(y=e.fastLane?this._extractFastLaneServiceNames(g,y):this._extractNormalLaneServiceNames(g,y)).replace(/"/g,'\\"');var _="".concat(r.yourAppointment,":\\n").concat(c,", ").concat(h," ").concat(r.at," ").concat(l," ").concat(r.uhr,"\\n(").concat(f,")\\n\\n").concat(r.servicesOverview,":\\n").concat(y,"\\n\\n").concat(r.yourVehicle,":\\n").concat(n.brand," ").concat(n.model,"\\n").concat(r.licensePlate,": ").concat(n.licensePlate,"\\n\\n").concat(e.message?m:"").concat(n.replacement?v:"");_=_.replaceAll(",","\\,");var b="BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:AmagCalendar\nCALSCALE:GREGORIAN\nMETHOD:PUBLISH\nBEGIN:VTIMEZONE\nTZID:Europe/Bern\nBEGIN:DAYLIGHT\nTZOFFSETFROM:+0100\nTZOFFSETTO:+0200\nTZNAME:CEST\nDTSTART:19700329T020000\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\nEND:DAYLIGHT\nBEGIN:STANDARD\nTZOFFSETFROM:+0200\nTZOFFSETTO:+0100\nTZNAME:CET\nDTSTART:19701025T030000\nRRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\nEND:STANDARD\nEND:VTIMEZONE\nBEGIN:VEVENT\nSUMMARY:"+p+"\nUID:"+Date.now()+"@AMAG\nSEQUENCE:0\nSTATUS:CONFIRMED\nTRANSP:TRANSPARENT\nDTSTART;TZID="+d+":"+this._convertToICSDate(new Date(o))+"\nDTEND;TZID="+d+":"+this._convertToICSDate(new Date(s))+"\nDTSTAMP:"+this._convertToICSDate(new Date)+"\
6nLOCATION:"+t.name+", "+t.street+", "+t.postcode+" "+t.city+"\nDESCRIPTION:"+_+"\nEND:VEVENT\nEND:VCALENDAR\n";this._download(p+".ics",b)}},{key:"_extractFastLaneServiceNames",value:function(e,t){var n=this;return e&&0!==e.length?(e.forEach((function(e){e.name&&(t.length>0&&(t+=", "),t+="".concat(e.name)),e.children&&e.children.length>0&&(t=n._extractFastLaneServiceNames(e.children,t))})),t):null!=t?t:""}},{key:"_extractNormalLaneServiceNames",value:function(e,t){var n=this;if(e&&0!==e.length)return e.forEach((function(e){e.name&&(t.length>0&&(t+=", "),t+="".concat(e.name)),e.children&&e.children.length>=0&&(t.length>0&&(t+=": "),e.children.forEach((function(r,a){t=n._extractNormalLaneServiceNamesOfChildren(r,t),a<e.children.length-1&&(t+=", ")})))})),t}},{key:"_extractNormalLaneServiceNamesOfChildren",value:function(e,t){var n=this;return t+="".concat(e.name),e.children&&e.children.length>0&&(t.length>0&&(t+=", "),e.children.forEach((function(r,a){t=n._extractNormalLaneServiceNamesOfChildren(r,t),a<e.children.length-1&&(t+=", ")}))),t}},{key:"_convertToICSDate",value:function(e){return e.getFullYear().toString()+(e.getMonth()+1<10?"0"+(e.getMonth()+1).toString():(e.getMonth()+1).toString())+(e.getDate()<10?"0"+e.getDate().toString():e.getDate().toString())+"T"+(e.getHours()<10?"0"+e.getHours().toString():e.getHours().toString())+(e.getMinutes()<10?"0"+e.getMinutes().toString():e.getMinutes().toString())+"00"}},{key:"_download",value:function(e,t){var n=document.createElement("a");n.setAttribute("href","data:text/calendar;charset=utf-8,"+encodeURIComponent(t)),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}}])}();function Ya(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Za(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Za(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Za(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ka(e,t){var n=e.match(/\$\[([^\]]+)\]/g);if(!n)return e;var r,a=Ya(n);try{for(a.s();!(r=a.n()).done;){var i=r.value,o=i.replaceAll(/[$\[\]]/g,"");e=e.replaceAll(i,t[o]||"")}}catch(e){a.e(e)}finally{a.f()}return e}var Xa=__webpack_require__(56822),Ja=__webpack_require__(53954),Qa=__webpack_require__(85501);function ei(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ei=function(){return!!e})()}var ti=function(e){function t(e,n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y){var _,b,w,S;return(0,pt.A)(this,t),b=this,w=t,S=[e,n,r,a,c,"",l],w=(0,Ja.A)(w),(_=(0,Xa.A)(b,ei()?Reflect.construct(w,S||[],(0,Ja.A)(b).constructor):w.apply(b,S)))._street=i,_._serviceBrands=o.map((function(e){return Granite.I18n.get(e)})),_._route=s,_._phoneNumber=u,_._email=d,_._headerquarterId=h,_._path=p,_._ratingWidgetIds=f,_._offCanvasLink=m,_._hideWaitingTimeService=v,_._teamPageLink=g,_._sellingBrandIds=y,_}return(0,Qa.A)(t,e),(0,ft.A)(t,[{key:"getStreet",value:function(){return this._street}},{key:"getServiceBrands",value:function(){return this._serviceBrands}},{key:"getRoute",value:function(){return this._route}},{key:"getPhoneNumber",value:function(){return this._phoneNumber}},{key:"getEmail",value:function(){return this._email}},{key:"getHeaderquarterId",value:function(){return this._headerquarterId}},{key:"getPath",value:function(){return this._path}},{key:"getOffCanvasLink",value:function(){return this._offCanvasLink}},{key:"getHTML",value:function(){var e=this,t=document.querySelector(".amag-otv-canvas");this._html='<label class="garage-selection__garage" for="rb-'+this.getId()+'">';
6var n=document.getElementById("amag-infrastructure-info");!this.remembered||"theme.amag.noncaptive"===n.dataset.theme&&"porsche"===n.dataset.project||(this._html+='<div class="garage-selection__favourite-garage">'+Granite.I18n.get("apps.amag-ch.components.content.otv.garage-selectionPane.favouriteGarageText")+"</div>"),this._html+='<div class="garage-selection__garage-content">',this._html+='<input type="radio" name="'+Gt.garage.garageSelection+'" data-headquarter="'+this.getHeaderquarterId()+'" value="'+this.getId()+'" id="rb-'+this.getId()+'" data-validation="garageValid" />',this._html+='<div class="garage-selection__garage-info">',this._html+='<p class="garage-selection__garage-name">'+this.getGarageName()+' <span class="garage-selection__garage-distance">',this.distance&&(this._html+=this.getDistanceInKm()+" km"),this._html+="</span></p>",this.getServiceBrands().forEach((function(t){e._html+='<p class="garage-selection__garage-service-brands">'+t+"</p>"})),this._html+='<p class="garage-selection__garage-street">'+this.getStreet()+"</p>",this._html+='<p class="garage-selection__garage-city">',this._html+='<span class="garage-selection__garage-zip">'+this.getZip()+" </span>"+this.getCity()+"</p>";var r=this.getOffCanvasLink();return r&&null!=t&&t.dataset.hintIcon&&null!=t&&t.dataset.hintText&&(r.includes("/content")&&(r=window.location.origin+"/content"+r.split("/content")[1]),this._html+='<span class ="garage-selection__garage-businessZone" data-canvas-link="'+r+'">',this._html+='<img src="'+t.dataset.hintIcon+'">',this._html+=t.dataset.hintText+"</span>"),this._html+='<a class="garage-selection__garage-route" target="_blank" href="https://www.google.com/maps/dir/?api=1&destination='+this.getRoute()+'">',this._html+='<svg class="garage-selection__garage-route-icon size-l" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">',this._html+='<path d="M1.10809 23.6331C0.557093 23.6331 0.108093 23.1851 0.108093 22.6331V4.63314C0.108093 4.08214 0.557093 3.63314 1.10809 3.63314H16.1081V1.13314C16.1081 0.638141 16.4211 0.463141 16.5171 0.421141C16.5711 0.398141 16.6591 0.369141 16.7701 0.369141C16.9031 0.369141 17.1051 0.410141 17.3161 0.607141L23.5821 6.42614C23.6011 6.44314 23.6251 6.46714 23.6481 6.49314C23.8191 6.68314 23.9051 6.92914 23.8911 7.18414C23.8771 7.43914 23.7651 7.67414 23.5751 7.84514L17.3151 13.6591C17.1041 13.8551 16.9021 13.8961 16.7701 13.8961C16.6601 13.8961 16.5721 13.8681 16.5181 13.8451C16.4211 13.8031 16.1091 13.6281 16.1091 13.1331V10.6331H7.10909V22.6331C7.10909 23.1851 6.66009 23.6331 6.10909 23.6331H1.10809ZM1.10809 22.6331H6.10809V10.6331C6.10809 10.0821 6.55709 9.63314 7.10809 9.63314H16.6081C16.8841 9.63314 17.1081 9.85714 17.1081 10.1331V12.4871L22.8721 7.13414L17.1081 1.78014V4.13314C17.1081 4.40914 16.8841 4.63314 16.6081 4.63314H1.10809V22.6331Z"/>',this._html+="</svg>",this._html+="Route</a>",this._html+="</div>",this._html+="</div>",this._html+="</label>",this._html}},{key:"getNewRatingWidgetHTML",value:function(){var e='<div class="amag-rating__container amag-rating__container--otv-garage-selection">\n <iframe src="https://tool.webbosaurus.de/badge/413f5a1155e96f58443a7711990fbada/rating/'.concat(this.getHeaderquarterId(),'.php"></iframe>\n </div>');return e=e.replace("true","")}},{key:"distance",get:function(){return this._distance},set:function(e){this._distance=e}},{key:"getDistanceInKm",value:function(){var e=this.distance/1e3;return e=Math.round(10*e)/10}},{key:"remembered",get:function(){return this._remembered},set:function(e){this._remembered=e}},{key:"getHideWaitingTimeService",value:function(){return this._hideWaitingTimeService}},{key:"getTeamPageLink",value:function(){return this._teamPageLink}},{key:"getSellingBrandIds",value:function(){return this._sellingBrandIds}}])}(Rt),ni=__webpack_require__(26474),ri=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},ai=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e)}),null,[{key:"getFavoriteGarageId",value:function(){return ri(this,void 0,void 0,ht().mark((function e(){var t,n,r,a;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=window.gigya,n="",this.isUserLoggedIn()){e.
6next=5;break}return(0,ni.Ri)("garage")&&(n=(0,ni.Ri)("garage")),e.abrupt("return",n);case 5:return e.next=7,new Promise((function(e,n){t.accounts.getAccountInfo({include:"data",callback:function(t){e(t)}})}));case 7:if((r=e.sent).data){e.next=11;break}return(0,ni.Ri)("garage")&&(n=(0,ni.Ri)("garage")),e.abrupt("return",n);case 11:if(r.data.preferredGarage){e.next=13;break}return e.abrupt("return",n);case 13:return n=r.data.preferredGarage,(a=new Date).setTime(a.getTime()+2592e6),(0,ni.TV)("garage",n,a),e.abrupt("return",n);case 18:case"end":return e.stop()}}),e,this)})))}},{key:"setFavoriteGarage",value:function(e,t){var n=new Date;(n.setTime(n.getTime()+2592e6),(0,ni.TV)("garage",e,n),this.isUserLoggedIn())?window.gigya.accounts.setAccountInfo({data:{preferredGarage:e},callback:t}):t({status:"OK"})}},{key:"isUserLoggedIn",value:function(){return!!localStorage.getItem("amaguser")}}])}(),ii="Ãà ÃâÃçÃèÃéÃêÃëÃîÃïÃôÃùÃûÃüŸÿÃæÅÅ",oi="Ãà ÃèÃéÃìÃÃÃïÃòÃóÃùÃú",si="a-zA-ZÃöÃäÃüÃ0-9-,.!?();:§\"'&=\\n\\r ",ci=new RegExp("[^".concat(si+oi+ii,"]"),"gm"),li="".concat(si,"/"),ui=new RegExp("[^".concat(li+oi+ii,"]"),"gm"),di=function(e){return e.replace(/[<>%$:;^{}?#]/g,"")},hi=function(e){return e.replace(ci,"")},pi=function(e){return e.replaceAll(/<[^>]*>/g,"")},fi=function(e){return e.replaceAll(/\\[0abtnvfr'"?\\]/g,"")},mi=function(e){return e.replaceAll(/<script[^>]*>.*?<\/script>/g,"")},vi=__webpack_require__(74692),gi=__webpack_require__(74692),yi=192;vi.fn.extend({autoHeight:function(){function e(e){return vi(e).css({height:yi+"px","overflow-y":"hidden"}).css({height:e.scrollHeight>yi?e.scrollHeight+"px":yi+"px"})}return this.each((function(){e(this).on("input",(function(){e(this)}))}))}});var _i=500;function bi(e){var t=_i-e.value.length,n=document.createElement("div");n.classList.add("form-field__container"),n.style.width="100%";var r=document.createElement("div");r.classList.add("form-field","form-field--textarea");var a=document.createElement("span");return a.classList.add("textarea-word-counter"),a.textContent="".concat(t,"/").concat(_i),e.style.padding="20px",e.addEventListener("input",(function(){e.value=hi(e.value),t=_i-e.value.length,a.textContent="".concat(t,"/").concat(_i);var n=new CustomEvent("wasSanatized",{detail:"textarea value has been sanitized"});e.dispatchEvent(n),Si(e)})),Si(e),e.maxLength=_i,r.appendChild(e),r.appendChild(a),n.appendChild(r),n}function wi(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e instanceof HTMLElement?gi(e):e,r=gi('<div class="form-field__container"></div>'),a=gi('<div class="form-field form-field--textarea"></div>');n.css({padding:"20px"}),n.on("input",(function(){t?n.val(Ci(n).replace(ui,"")):n.val(hi(Ci(n))
6),n.trigger("wasSanatized",["textarea value has been sanatized"])})),n.autoHeight(),n.wrap(a),a.wrap(r)}function Si(e){e.style.height=yi+"px",e.style.overflowY="hidden",e.style.height=e.scrollHeight>yi?e.scrollHeight+"px":yi+"px"}function Ci(e){var t=e.val();return"string"==typeof t?t:Array.isArray(t)?t.join(""):"number"==typeof t?String(t):""}function Ei(e){var t=document.createElement("div");t.classList.add("form-field","form-field--text");var n=document.createElement("div");n.classList.add("form-field__container");var r=document.createElement("label");return r.classList.add("form-field__label"),r.textContent=pi(e.placeholder||""),r.style.left="15px",e.classList.add("form-field__input"),e.required=!0,e.removeAttribute("placeholder"),t.appendChild(e),t.appendChild(r),n.appendChild(t),n}var xi=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Ai=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e)}),null,[{key:"getData",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=JSON.stringify(n);return this._promises||(this._promises={}),this._promises[a]&&e||(this._promises[a]=this._fetch.apply(this,n)),this._promises[a]}},{key:"deleteData",value:function(){if(this._promises){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=JSON.stringify(t);delete this._promises[r]}}},{key:"clearData",value:function(){this._promises={}}},{key:"_fetch",value:function(){return xi(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("The _fetch method has not been implemented");case 1:case"end":return e.stop()}}),e)})))}}])}();Ai._promises={};var ki=function(){function e(t,n,r,a){(0,pt.A)(this,e),this._makeCode=t,this._modelCode=n,this._modelDesc=r,this._inactive=a}return(0,ft.A)(e,[{key:"makeCode",get:function(){return this._makeCode}},{key:"modelCode",get:function(){return this._modelCode}},{key:"modelDesc",get:function(){return this._modelDesc}},{key:"inactive",get:function(){return this._inactive}},{key:"getBrand",value:function(){var e=(0,lt.A)(ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ui.getBrand(this.makeCode);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAsDdlOption",value:function(){return{id:this.modelCode,text:this.modelDesc}}}],[{key:"construct",value:function(t){return new e(t.MAKE_CODE,t.MODEL_CODE,t.MODEL_DESC,t.INACTIVE)}}])}(),Ti=function(e){return e.sort((function(e,t){return e.text.localeCompare(t.text)}))};function Li(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ii(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ii(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Ii(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Di(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Di=function(){return!!e})()}var Pi=function(e){function t(){return(0,pt.A)(this,t),e=this,n=t,r=
6arguments,n=(0,Ja.A)(n),(0,Xa.A)(e,Di()?Reflect.construct(n,r||[],(0,Ja.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,Qa.A)(t,e),(0,ft.A)(t,null,[{key:"_fetch",value:(a=(0,lt.A)(ht().mark((function e(t){var n,r,a,i,o,s;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=wr.getUrl()+"getBrandModels.json",e.next=3,(0,yr.eJ)(n+"?brand=".concat(t));case 3:r=e.sent,a=[],i=Li(r.d.results);try{for(i.s();!(o=i.n()).done;)s=o.value,a.push(ki.construct(s))}catch(e){i.e(e)}finally{i.f()}return window.MODELS=a,e.abrupt("return",a);case 9:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"getModelsForBrand",value:(r=(0,lt.A)(ht().mark((function e(t){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getData(!0,t);case 3:return e.abrupt("return",e.sent.filter((function(e){return e.makeCode===t})));case 6:e.prev=6,e.t0=e.catch(0),document.querySelector(".vehicle__error-msg").classList.remove("d-none");case 9:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(e){return r.apply(this,arguments)})},{key:"getModelsForBrandAsDdlOptions",value:(n=(0,lt.A)(ht().mark((function e(t,n){var r;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getModelsForBrand(t);case 2:return r=e.sent.map((function(e){return e.getAsDdlOption()})),e.abrupt("return",[{id:"",text:Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.model")}].concat((0,ut.A)(Ti(r).map((function(e){return e.selected=n===e.id,e})))));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})}]);var n,r,a}(Ai),Oi=["AUDI","PORSCHE","SEAT","SKODA","VW_PKW","VW_NZ"],Ri="FREMD",Mi={FREMD:Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.otherBrand"),VW_PKW:Granite.I18n.get("apps.amag-ch.brandVolkswagen"),VW_NZ:Granite.I18n.get("apps.amag-ch.brandVWNutzfahrzeuge"),SKODA:Granite.I18n.get("apps.amag-ch.brandSkoda")},qi=function(){function e(t,n,r,a){(0,pt.A)(this,e),this._makeCode=t,this._makeDesc=Mi[this._makeCode]||n,this._ownGroup=r,this._inactive=a}return(0,ft.A)(e,[{key:"makeCode",get:function(){return this._makeCode}},{key:"makeDesc",get:function(){return this._makeDesc}},{key:"ownGroup",get:function(){return this._ownGroup}},{key:"inactive",get:function(){return this._inactive}},{key:"getModels",value:(n=(0,lt.A)(ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Pi.getModelsForBrand(this.makeCode);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"getModel",value:(t=(0,lt.A)(ht().mark((function t(n){var r,a;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this.getModels();case 4:return r=t.sent,a=e.normalizeModelValue(n),t.abrupt("return",r.find((function(e){return e.modelCode===n}))||r.find((function(t){return e.normalizeModelValue(t.modelCode)===a}))||r.find((function(t){return e.normalizeModelValue(t.modelDesc)===a}))||null);case 7:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"isAmagBrand",value:function(){return Oi.includes(this.makeCode)}},{key:"isUnknownBrand",value:function(){return this.makeCode===Ri}},{key:"getAsDdlOption",value:function(){return{id:this.makeCode,text:this.makeDesc}}},{key:"isActive",value:function(){return!this._inactive}}],[{key:"construct",value:function(t){return new e(t.MAKE_CODE,t.MAKE_DESC,t.OWN_GROUP,t.INACTIVE)}},{key:"normalizeModelValue",value:function(e){return(e||"").trim().replace(/\s+/g," ").toUpperCase()}},{key:"FREMD_MAKE_CODE",get:function(){return Ri}}]);var t,n}();function Ni(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Vi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fi=function(){return!!e})()}var Bi,ji,Hi,Gi,Ui=function(e){function t(){return(0,pt.A)(this,t),e=this,n=t,r=
6arguments,n=(0,Ja.A)(n),(0,Xa.A)(e,Fi()?Reflect.construct(n,r||[],(0,Ja.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,Qa.A)(t,e),(0,ft.A)(t,null,[{key:"_fetch",value:(r=(0,lt.A)(ht().mark((function e(){var t,n,r,a,i,o;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=wr.getUrl()+"getBrands.json",e.next=3,(0,yr.eJ)(t);case 3:n=e.sent,r=[],a=Ni(n.d.results);try{for(a.s();!(i=a.n()).done;)o=i.value,r.push(qi.construct(o))}catch(e){a.e(e)}finally{a.f()}return window.BRANDS=r,e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"getBrand",value:function(){var e=(0,lt.A)(ht().mark((function e(t){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getData(!0,"brands");case 2:return e.abrupt("return",e.sent.find((function(e){return e.makeCode===t})));case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getBrandListForDdl",value:(n=(0,lt.A)(ht().mark((function e(t){var n,r,a;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getData(!0,"brands");case 2:return n=e.sent,r=n.filter((function(e){return e.isAmagBrand()&&e.isActive()})).map((function(e){return e.getAsDdlOption()})),a=n.filter((function(e){return!e.isAmagBrand()&&e.isActive()})).map((function(e){return e.getAsDdlOption()})),e.abrupt("return",[{id:"",text:Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.brand")}].concat((0,ut.A)(Ti(r).map((function(e){return e.selected=t===e.id,e}))),[{text:"âââââââââ",disabled:!0}],(0,ut.A)(Ti(a).sort((function(e){return e.id===qi.FREMD_MAKE_CODE?-1:0})).map((function(e){return e.selected=t===e.id,e})))));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}]);var n,r}(Ai),Wi=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},zi=function(){function e(t,n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_){(0,pt.A)(this,e),this.makeCode=t,this.modelCode=n,this.vin=r,this.licensePlate=a,this.registrationDate=i,this.mileage=o,this.mileageUnit=s,this.mileageUnitIso=c,this.vehicleNumber=l,this.vhObjectType=u,this.vhObjectNumber=d,this.userId=h,this.vehicleUID=p,this.vehicleHolderSalutation=!m||" "!==f&&""!==f?f:"0003",this.vehicleHolderName=m,this.vehicleHolderFirstName=v,this.vehicleHolderSalutationDescription="0003"===this.vehicleHolderSalutation?Granite.I18n.get("apps.amag-ch.components.content.otv.guestRegistrationPane.salutation.company"):g,this.metadata=null,this.touched=!1,this.appOrigin=y||!1,this.carAdapterTimeStamp=_||null}return(0,ft.A)(e,[{key:"vin",get:function(){return this._vin},set:function(e){this._vin=e,this.touched=!0}},{key:"displayVin",get:function(){return this.vin?this.vin:Granite.I18n.get("apps.amag-ch.components.content.vehicle-overview.vehicles-list.noInformation")}},{key:"licensePlate",get:function(){return this._licensePlate},set:function(e){this._licensePlate=e,this.touched=!0}},{key:"registrationDate",get:function(){return this._registrationDate},set:function(e){this._registrationDate=e,this.touched=!0}},{key:"editableRegistrationDate",get:function(){var e=new Date(this.registrationDate).toLocaleString("de",{year:"numeric",month:"2-digit",day:"2-digit"}).split(",")[0];return"Invalid Date"!==e&&this.registrationDate?e:""}},{key:"displayRegistrationDate",get:function(){return this.editableRegistrationDate?this.editableRegistrationDate:Granite.I18n.get("apps.amag-ch.components.content.vehicle-overview.vehicles-list.noInformation")}},{key:"displayMileage",get:function(){return this.mileage?"".concat(this.mileage," ").concat(this.mileageUnit):Granite.I18n.get("apps.amag-ch.components.content.vehicle-overview.vehicles-list.noInformation")}},{key:"brandName",get:function(){return this.brand.makeDesc}},{key:"modelName",get:function(){var e,t;return null!==(t=null===(e=this.model)||void 0===e?void 0:e.modelDesc)&&void 0!==t?t:this.modelCode}},{key:"vehicleHolderSalutation",get:function(){return this._vehicleHolderSalutation},set:function(e){this._vehicleHolderSalutation=e,this.touched=!0}},{key:"vehicleHolderName",get:function(){return this._vehicleHolderName},set:function(e){this._vehicleHolderName=e,this.touched=!0}},{key:"vehicleHolderFirstName",get:function(){return this._vehicleHolderFirstName},set:function(e){this._vehicleHolderFirstName=e,this.touched=!0}},{key:"vehicleHolderSalutationDescription",get:function(){return this._vehicleHolderSalutationDescription},set:function(e){this._vehicleHolderSalutationDescription=e,this.touched=!0}},{key:"displayVehicleHolder",get:function(){var e;return this.vehicleHolderSalutation?(e=this.vehicleHolderSalutationDescription+" "+this.vehicleHolderName,this.vehicleHolderFirstName&&(e=e+" "+this.vehicleHolderFirstName)):e=Granite.I18n.get("apps.amag-ch.components.c
6ontent.vehicle-overview.vehicles-list.noInformation"),e}},{key:"setMakeCode",value:function(e){return Wi(this,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.makeCode=e,this.modelCode=null,t.next=4,Ui.getBrand(e);case 4:this.brand=t.sent,this.touched=!0;case 6:case"end":return t.stop()}}),t,this)})))}},{key:"setModelCode",value:function(e){return Wi(this,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.modelCode=e,!e){t.next=8;break}return t.next=4,this.brand.getModel(e);case 4:this.model=t.sent,this.model&&(this.modelCode=this.model.modelCode),t.next=9;break;case 8:this.model=null;case 9:this.touched=!0;case 10:case"end":return t.stop()}}),t,this)})))}},{key:"serialize",value:function(){return{USERID:"",VHGUID:"",MAKE_CODE:this.makeCode,MODEL_CODE:this.modelCode,VIN:this.vin,LIC_PLATE:this.licensePlate,REG_DATE:this.registrationDate,VEH_NO:this.vehicleNumber,VH_OBJ_TYPE:this.vhObjectType,VH_OBJ_NUMBER:this.vhObjectNumber,MILEAGE:this.mileage||null,MILEAGE_UOM:this.mileageUnit||"km",MILEAGE_UOMISO:null,ZZVO_TITLE:"0003"===this.vehicleHolderSalutation?" ":this.vehicleHolderSalutation,ZZVO_NAME1:this.vehicleHolderName,ZZVO_NAME2:this.vehicleHolderFirstName,ZZVO_TITLE_DESC:this.vehicleHolderSalutationDescription,APPORIGIN:this.appOrigin,CARADAPTERTIMESTAMP:this.carAdapterTimeStamp||null}}},{key:"isTouched",value:function(){return this.touched}},{key:"touch",value:function(){this.touched=!0}},{key:"unTouch",value:function(){this.touched=!1}}],[{key:"construct",value:function(t){return Wi(this,void 0,void 0,ht().mark((function n(){var r;return ht().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=new e(t.MAKE_CODE,t.MODEL_CODE,t.VIN,t.LIC_PLATE,t.REG_DATE,t.MILEAGE,t.MILEAGE_UOM,t.MILEAGE_UOMISO,t.VEH_NO,t.VH_OBJ_TYPE,t.VH_OBJ_NUMBER,t.USERID,t.VHGUID,t.ZZVO_TITLE,t.ZZVO_NAME1,t.ZZVO_NAME2,t.ZZVO_TITLE_DESC,t.APPORIGIN,t.CARADAPTERTIMESTAMP),n.next=3,Ui.getBrand(r.makeCode);case 3:return r.brand=n.sent,n.next=6,r.brand.getModel(r.modelCode);case 6:return r.model=n.sent,r.model&&(r.modelCode=r.model.modelCode),t.__metadata&&(r.metadata=t.__metadata),n.abrupt("return",r);case 10:case"end":return n.stop()}}),n)})))}},{key:"getRegistrationIsoDateFromUserInput",value:function(e){if(!e)return"";var t=e.split("."),n=t[0],r=t[1],a=t[2];return"".concat(a,"-").concat(r,"-").concat(n,"T00:00:00")}}])}(),$i=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Yi=function(){return $i(void 0,void 0,void 0,ht().mark((function e(){var t,n,r,a,i;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=JSON.parse(localStorage.getItem(bt.H.AMAG_APP_VEHICLE))){e.next=3;break}return e.abrupt("return",null);case 3:return i={MAKE_CODE:a.brandId,MODEL_CODE:a.modelName,LIC_PLATE:null!==(t=a.licensePlate)&&void 0!==t?t:"",REG_DATE:"",VIN:null!==(n=a.vin)&&void 0!==n?n:"",MILEAGE:a.mileage?parseInt(a.mileage):null,MILEAGE_UOM:null,MILEAGE_UOMISO:null,VEH_NO:"",VH_OBJ_TYPE:"",VH_OBJ_NUMBER:"",USERID:"",VHGUID:"",ZZVO_TITLE:"",ZZVO_NAME1:"",ZZVO_NAME2:"",ZZVO_TITLE_DESC:"",APPORIGIN:!0,CARADAPTERTIMESTAMP:null!==(r=a.lastRecordedAt)&&void 0!==r?r:null},e.next=6,zi.construct(i);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})))};!function(e){e.ONLY_UPPER_CASE="^[A-ZÃÃÃ]{1,2}[ -][A-Z0-9ÃÃà -]*[A-Z0-9ÃÃÃ]$",e.UNALLOWED_CHARACTERS="[^A-Za-zÃöÃäÃü0-9- ]"}(Bi||(Bi={})),function(e){e.VALIDATION_REGEX="^[A-Za-z0-9.!#$%&'*+-/=?^_`{|}~]{1,}[@][A-Za-z0-9.-]{1,}[.][A-Za-z]{2,}$",e[e.EMAIL_LENGTH=254]="EMAIL_LENGTH"}(ji||(ji={})),function(e){e.OTV_ONLY_TEXT_SERVICE="OTV_ONLY_TEXT_SERVICE",e.COMPLAINT="AMAG_OTV_06 14000",e.RECALL="AMAG_OTV_06 15500"}(Hi||(Hi={})),function(e){e.BENTLEY="bentleyGarageServiceId",e.SMALL_GARAGE="smallGarageServiceId",e.MICRO="microlinoGarageServiceId"}(Gi||(Gi={}));var Zi=__webpack_require__(74692);function Ki(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Xi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ji=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Qi=function(){function e(t,n,r,a,i){var o=this;(0,pt.A)(this,e),this.container=null,this.textContainer=null,this.textWrapper=null,this.imageElement=null,this.input=null,this.textarea=null,this.seasonalOfferContainerInput=null,this.label=null,this.copy=null,this.categoryContainer=null,this.iconWrapper=null,this.textCategoryContainer=null,this.text=null,this.subText=null,this.seasonalOfferContainer=null,this.chevronContainer=null,this.chevronRight=null,this.onClick=null,this.fileSizeLimit=5242880,this.totalFileSizeBytesLimit=26214400,this.isAvailableForBrand=function(e){return"PORSCHE"===e&&(e="FREMD"),0===o.availableForBrands.length||o.availableForBrands.includes(e)},this.id=t,this.smallGarageServiceId="",this.bentleyGarageServiceId="",this.microlinoGarageServiceId="",this.cantBeBookedAlone=!1,this.path=n,this.name=r,this.children=[],this.parent=null,this.selectionType="none",this.isSeasonalOffer=!1,this.headline="",this.subline="",this.smallFooter="",this.selectedAsSeasonalOffer=!1,this.selectedAsLinkedService=!1,this.serviceStorage=null,this.optionCopy="",this.srsName="",this.requiresMileage=!1,this.linkedServiceIds=[],this.availableForBrands=[],this.isHidden=a,this.hiddenServiceId=i,this.serviceSubline="",this.linkUrl="",this.linkTarget="",this.alternateHeadline="",this.alternateText="",this.offCanvasLink="",this.additionalServices=[],this.image="",this.textVal="",this.textareaVal="",this.complaintDate="",this.complaintFrequency="",this.complaintSpecialTextarea="",this.complaintImageList=[],this.currentImageListFileSize=0,this.isShownAsLinkedService=!1,this.iconData=Promise.resolve(""),this.minMileageRestriction=null,this.maxMileageRestriction=null}return(0,ft.A)(e,[{key:"appendChild",value:function(e){e.parent=this,this.children.push(e)}},{key:"autoAppendChildren",value:function(t){var n,r=Ki(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;a.id||console.error("Element has no ID",a);var i=new e(a.id,a.path,a.authorLbrValDesc,a.hiddenService,a.hiddenServiceId);this.appendChild(e.initValues(i,a))}}catch(e){r.e(e)}finally{r.f()}}},{key:"link",value:function(e){this.linkedServiceIds.push(e)}},{key:"renderAs",value:function(e){return Ji(this,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s,c,l=this;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=document.createElement("div"),!this.input||"radio"!==e&&"checkbox"!==e||(this.input.checked=!1),this.isAvailableForBrand(Xt.get(Gt.car.brandId))){t.next=4;break}return t.abrupt("return",n);case 4:if(!Xt.get(Gt.appVehicle.fromApp)){t.next=24;break}return t.next=8,Yi();case 8:if(r=t.sent){t.next=11;break}return t.abrupt("return",n);case 11:if(!this.minMileageRestriction||!this.maxMileageRestriction){t.next=16;break}if(!(this.minMileageRestriction>r.mileage||this.maxMileageRestriction<r.mileage)){t.next=14;break}return t.abrupt("return",n);case 14:case 19:t.next=24;break;case 16:if(!this.minMileageRestriction){t.next=21;break}if(!(this.minMileageRestriction>r.mileage)){t.next=19;break}return t.abrupt("return",n);case 21:if(!this.maxMileageRestriction){t.next=24;break}if(!(this.maxMileageRestriction<r.mileage)){t.next=24;break}return t.abrupt("return",n);
6case 24:return a="service-option-".concat(this.id),i=this.parent?"children-selection-of-".concat(this.parent.id):"selection-of-".concat(this.id),this.container=document.createElement("div"),this.container.className="service-option__container service-option__container--".concat(e," ").concat(this.isHidden?"d-none":""," ").concat(this.isSeasonalOffer?"service-option__container--seasonal":""),this.textContainer=document.createElement("div"),this.textContainer.className="service-option__text-container",this.textWrapper=document.createElement("div"),this.textWrapper.className="service-option__text-wrapper",this.imageElement=document.createElement("img"),this.imageElement.className="service-option__image",this.imageElement.src=this.image,this.imageElement.loading="lazy",this.input=document.createElement("input"),this.input.id=a,this.input.type=e,this.input.name=i,this.input.placeholder="".concat(this.optionCopy,"*"),this.textarea=document.createElement("textarea"),this.textarea.id=a,this.textarea.name=i,this.textarea.className="service-option__textarea",this.textarea.placeholder=pi(this.optionCopy),this.textarea.required=!0,this.textarea.inputMode="text",this.seasonalOfferContainerInput=document.createElement("span"),this.seasonalOfferContainerInput.className="service-option__seasonalOffer",this.seasonalOfferContainerInput.textContent=Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSelection.seasonalOfferLabel"),this.label=document.createElement("label"),this.label.className="service-option__label",this.label.htmlFor=a,this.label.textContent=pi(this.name),this.copy=document.createElement("span"),this.copy.className="service-option__copy ".concat(this.optionCopy?"":"d-none"),this.copy.innerHTML=this.optionCopy,this.input.addEventListener("change",(function(){document.querySelectorAll("input[name='".concat(i,"']")).forEach((function(t){var n=t.closest(".service-option__container");n&&(["radio","checkbox"].includes(e)?n.classList.toggle("service-option__container--active",t.checked):n.classList.toggle("service-option__container--active",""!==t.value))}))})),this.container.addEventListener("click",(function(e){var t,n=l.container.closest(".all-services__wrapper");n&&n.classList.remove("all-services__wrapper--err-no-selection","all-services__wrapper--err-no-input");var r=e.target,a=e.currentTarget;r.closest(".".concat(Array.from(a.classList).join(".")))&&!r.matches("input,label")&&(null===(t=l.input)||void 0===t||t.click())})),this.input.addEventListener("keyup",(function(){var e;e=l.input,"object"===(0,xt.A)(e)&&e instanceof HTMLElement&&l.input.type.match("text")&&(l.textVal=di(l.input.value))})),this.textarea.addEventListener("wasSanatized",(function(){l.textareaVal=l.textarea.value})),this.isShownAsLinkedService&&(o=document.createTextNode(this.offCanvasLink),this.copy.appendChild(o)),e.match("textarea")?((s=bi(this.textarea)).appendChild(this.createFileUpload(!1)),s.appendChild(this.createDateInput()),s.appendChild(this.createFrequencyInput()),s.appendChild(this.createSpecialTextarea()),this.container.appendChild(s)):e.match("formShort")?((c=bi(this.textarea)).appendChild(this.createFileUpload(!0)),this.container.appendChild(c)):(this.textContainer.appendChild(this.seasonalOfferContainerInput),this.textContainer.appendChild(this.label),this.textContainer.appendChild(this.copy),e.match("text")?(this.textWrapper.appendChild(Ei(this.input)),this.input.value=this.getInitialTextValue()):this.textWrapper.appendChild(this.input),this.textWrapper.appendChild(this.textContainer),this.isShownAsLinkedService||!this.image?this.container.appendChild(this.textWrapper):(this.container.appendChild(this.textWrapper),this.container.appendChild(this.imageElement))),this.input.checked=!!this.serviceStorage,setTimeout((function(){l.input.dispatchEvent(new Event("change")),l.input.dispatchEvent(new Event("keyup"))})),t.abrupt("return",this.container);case 67:case"end":return t.stop()}}),t,this)})))}},{key:"isSelectedAsSeasonalOffer",value:function(){return this.selectedAsSeasonalOffer}},{key:"getSeasonalChildren",value:function(){return this.children.reduce((function(e,t){return[].concat((0,ut.A)(e),(0,ut.A)(t.getSeasonalChildren()))}),this.isSeasonalOffer?[this]:[])}},{key:"selected",get:function(){return this.children.filter((function(e){return e.isSelected()}))}},{key:"isSelected",value:function(){var e;return(null===(e=this.input)||void 0===e?void 0:e.checked)||!1}},{key:"hasChildren",value:function(){return this.children.length>0}},{key:"ServiceCategory",get:function(){for(var e=this;null!==e&&!(e instanceof to);)e=e.parent;return e}},{key:"setTextProperties",value:function(e){e.authorText1&&(this.subline=e.authorText1),e.authorText2&&(this.smallFooter=e.authorText2),e.authorLbrVgrDesc&&(this.headline=e.authorLbrVgrDesc),e.authorText3&&(this.optionCopy=e.authorText3),e.lbrValDe
6sc&&(this.srsName=e.lbrValDesc),e.serviceSubline&&(this.serviceSubline=e.serviceSubline),e.linkUrl&&(this.linkUrl=e.linkUrl),e.linkTarget&&(this.linkTarget=e.linkTarget)}},{key:"getInitialTextValue",value:function(){return this.id===Hi.RECALL?Xt.get(Gt.car.vin)||"":this.textVal||""}},{key:"createComponentStructure",value:function(){this.categoryContainer=document.createElement("div"),this.categoryContainer.className="service-category__container",this.iconWrapper=document.createElement("div"),this.iconWrapper.className="service-category__icon-wrapper",this.textCategoryContainer=document.createElement("div"),this.textCategoryContainer.className="service-category__text-container",this.text=document.createElement("span"),this.text.className="service-category__text",this.text.innerHTML=this.name,this.subText=document.createElement("span"),this.subText.className="service-category__subtext",this.subText.textContent=this.serviceSubline,this.seasonalOfferContainer=document.createElement("span"),this.seasonalOfferContainer.className="service-category__seasonalOffer",this.seasonalOfferContainer.textContent=Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSelection.seasonalOfferLabel"),this.chevronContainer=document.createElement("div"),this.chevronContainer.style.marginLeft="auto",this.chevronRight=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.chevronRight.classList.add("service-category__chevron"),this.chevronRight.innerHTML='\n <path d="M0.649245 24C0.506245 24 0.370245 23.939 0.275245 23.832C0.0922448 23.625 0.112245 23.308 0.318245 23.126L12.8932 12L0.318245 0.875C0.111245 0.692 0.0922449 0.375 0.274245 0.169C0.370245 0.062 0.506245 0 0.649245 0C0.771245 0 0.889245 0.045 0.980245 0.125L13.5562 11.251C13.5852 11.277 13.6122 11.303 13.6372 11.331C14.0062 11.747 13.9692 12.382 13.5572 12.747L0.980245 23.875C0.888245 23.956 0.771245 24 0.649245 24Z"/>\n ',this.chevronContainer.append(this.chevronRight),this.textCategoryContainer.append(this.text,this.seasonalOfferContainer,this.subText),this.categoryContainer.append(this.iconWrapper,this.textCategoryContainer,this.chevronContainer)}},{key:"createFileUpload",value:function(e){var t=this,n=document.querySelector(".service-categories__wrapper"),r=document.createDocumentFragment(),a=document.createElement("div");a.classList.add("cmp-form-file"),a.setAttribute("data-cmp-is","formFile");var i=document.createElement("input");i.id="input-file",i.type="file",i.name="files[]",i.multiple=!0,i.accept=".jpg, .jpeg, .png, .JPG, .JPEG, .PNG",i.classList.add("complaint-input__file-upload");var o=document.createElement("div");o.classList.add("ts-complaint-input-wrapper");var s=document.createElement("label");s.classList.add("complaint-input__file-upload-custom-button-wrapper"),s.htmlFor="input-file";var c=document.createElementNS("http://www.w3.org/2000/svg","svg");c.setAttribute("width","24"),c.setAttribute("height","24"),c.setAttribute("viewBox","0 0 24 24"),c.setAttribute("fill","none");var l=document.createElementNS("http://www.w3.org/2000/svg","g");l.setAttribute("clip-path","url(#clip0_1519_34091)"),c.append(l);var u=document.createElementNS("http://www.w3.org/2000/svg","path");u.setAttribute("d","M6.5 9.99994C5.121 9.99994 4 8.87894 4 7.49994C4 6.12094 5.121 4.99994 6.5 4.99994C7.879 4.99994 9 6.12094 9 7.49994C9 8.87894 7.879 9.99994 6.5 9.99994ZM6.5 5.99994C5.673 5.99994 5 6.67294 5 7.49994C5 8.32694 5.673 8.99994 6.5 8.99994C7.327 8.99994 8 8.32694 8 7.49994C8 6.67294 7.327 5.99994 6.5 5.99994Z"),u.setAttribute("fill","#801977");var d=document.createElementNS("http://www.w3.org/2000/svg","path");d.setAttribute("d","M3.49967 18.0002C3.31767 18.0002 3.15067 17.9012 3.06267 17.7422C2.97467 17.5842 2.97967 17.3892 3.07567 17.2352L6.08967 12.4132C6.16967 12.2862 6.27867 12.1762 6.40767 12.0952C6.56767 11.9952 6.75066 11.9432 6.93666 11.9432C7.01266 11.9432 7.08867 11.9522 7.16267 11.9692C7.42367 12.0292 7.64467 12.1872 7.78567 12.4132L8.43667 13.4562L10.6517 9.91321C10.7317 9.78521 10.8417 9.67521 10.9697 9.59521C11.1287 9.49621 11.3117 9.44421 11.4977 9.44421C11.8457 9.44421 12.1627 9.61921 12.3467 9.91321L12.9667 10.9052C13.1127 11.1382 13.0417 11.4472 12.8
6087 11.5942C12.7287 11.6442 12.6377 11.6702 12.5437 11.6702C12.3697 11.6702 12.2117 11.5822 12.1197 11.4352L11.4997 10.4432L8.86067 14.6652C8.76867 14.8122 8.60967 14.9002 8.43667 14.9002C8.26267 14.9002 8.10466 14.8122 8.01266 14.6652L6.93767 12.9432L4.40167 17.0002H8.49967C8.77567 17.0002 8.99967 17.2242 8.99967 17.5002C8.99967 17.7762 8.77567 18.0002 8.49967 18.0002H3.49967Z"),d.setAttribute("fill","#801977");var h=document.createElementNS("http://www.w3.org/2000/svg","path");h.setAttribute("d","M1.5 24C0.673 24 0 23.327 0 22.5V1.5C0 0.673 0.673 0 1.5 0H14.793C15.194 0 15.57 0.156 15.854 0.439L19.561 4.146C19.844 4.43 20 4.807 20 5.207V9.5C20 9.776 19.776 10 19.5 10C19.224 10 19 9.776 19 9.5V5.207C19 5.074 18.948 4.948 18.854 4.853L15.147 1.146C15.053 1.053 14.925 1 14.793 1H1.5C1.224 1 1 1.224 1 1.5V22.5C1 22.776 1.224 23 1.5 23H10.5C10.776 23 11 23.224 11 23.5C11 23.776 10.776 24 10.5 24H1.5Z"),h.setAttribute("fill","#801977");var p=document.createElementNS("http://www.w3.org/2000/svg","path");p.setAttribute("d","M17.5 23.9999C13.916 23.9999 11 21.0839 11 17.4999C11 13.9159 13.916 10.9999 17.5 10.9999C21.084 10.9999 24 13.9159 24 17.4999C24 21.0839 21.084 23.9999 17.5 23.9999ZM17.5 11.9999C14.467 11.9999 12 14.4669 12 17.4999C12 20.5329 14.467 22.9999 17.5 22.9999C20.533 22.9999 23 20.5329 23 17.4999C23 14.4669 20.533 11.9999 17.5 11.9999Z"),p.setAttribute("fill","#801977");var f=document.createElementNS("http://www.w3.org/2000/svg","path");f.setAttribute("d","M17.5 20.9999C17.224 20.9999 17 20.7759 17 20.4999V17.9999H14.5C14.224 17.9999 14 17.7759 14 17.4999C14 17.2239 14.224 16.9999 14.5 16.9999H17V14.4999C17 14.2239 17.224 13.9999 17.5 13.9999C17.7
676 13.9999 18 14.2239 18 14.4999V16.9999H20.5C20.776 16.9999 21 17.2239 21 17.4999C21 17.7759 20.776 17.9999 20.5 17.9999H18V20.4999C18 20.7759 17.776 20.9999 17.5 20.9999Z"),f.setAttribute("fill","#801977"),l.append(u),l.append(d),l.append(h),l.append(p),l.append(f),c.append(l);var m=document.createElementNS("http://www.w3.org/2000/svg","defs"),v=document.createElementNS("http://www.w3.org/2000/svg","clipPath");v.id="clip0_1519_34091";var g=document.createElementNS("http://www.w3.org/2000/svg","rect");g.setAttribute("width","24"),g.setAttribute("height","24"),g.setAttribute("fill","white"),v.append(g),m.append(v),c.append(m);var y=document.createElement("span");y.classList.add("complaint-input__file-upload-custom-button-text","complaint-input__file-upload-custom-button-text--small"),y.textContent=e?(null==n?void 0:n.dataset.complaintimageshort)||"":(null==n?void 0:n.dataset.complaintimage)||"",s.append(c),s.append(y);var _=document.createElement("div");_.classList.add("complaint-input__file-upload-exceeds-limit","d-none"),_.innerHTML=(null==n?void 0:n.dataset.complaintimageuploadsinglefilesizeexceedederrortext)||"";var b=document.createElement("div");b.classList.add("complaint-input__file-upload-exceeds-total","d-none"),b.innerHTML=(null==n?void 0:n.dataset.complaintimageuploadtotalfilesizeexceedederrortext)||"";var w=document.createElement("div");w.classList.add("complaint-input__file-upload-wrong-fileType","d-none"),w.innerHTML=(null==n?void 0:n.dataset.complaintimageuploadtypeunacceptederrortext)||"",a.append(i),a.append(s),a.append(o),a.append(_),a.append(b),a.append(w),r.append(a);return i.addEventListener("change",(function(e){for(var n=Array.from(e.target.files||[]),r=t.currentImageListFileSize,a=!1,o=function(){var n=c[s];if(a)return 1;var o,l,u=(o=n.name,"."+(l=o.split("."))[l.length-1]),d=new FileReader;d.addEventListener("load",(function(){t.complaintImageList.push(n),r+=n.size,t.currentImageListFileSize=r,t.updatePreviewImageList()})),function(e,t){var n,r=null===(n=null==e?void 0:e.getAttribute("accept"))||void 0===n?void 0:n.split(", ");return(null==r?void 0:r.includes(t))||!1}(i,u)||(e.target.value="",w.classList.remove("d-none"),a=!0),n.size>t.fileSizeLimit&&(e.target.value="",_.classList.remove("d-none"),a=!0),r+n.size>t.fileSizeLimit&&(e.target.value="",b.classList.remove("d-none"),a=!0),a||(_.classList.add("d-none"),b.classList.add("d-none"),w.classList.add("d-none"),d.readAsDataURL(n))},s=0,c=n;s<c.length&&!o();s++);})),r}},{key:"updatePreviewImageList",value:function(){var e=this,t=document.querySelector(".ts-complaint-input-wrapper");t.innerHTML="";var n=0;this.complaintImageList.forEach((function(r,a){t.append(e.createImagePreview(URL.createObjectURL(r),a)),n+=r.size})),this.currentImageListFileSize=n,Xt.store(Gt.service.complaintImage,this.complaintImageList)}},{key:"createImagePreview",value:function(e,t){var n=this,r=document.createDocumentFragment(),a=document.createElement("div");a.classList.add("complaint-input__file-upload-picture-positioning"),a.classList.add("complaint-input__file-upload-picture-positioning--noGap");var i=document.createElement("img");i.classList.add("complaint-input__file-upload-preview-picture"),i.src=e,i.loading="eager";var o=document.createElement("button");return o.classList.add("complaint-input__file-upload-preview-delete"),o.dataset.index=t.toString(),o.textContent="".concat(Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSelection.remove")),o.addEventListener("click",(function(e){var t=e.target;t.classList.contains("complaint-input__file-upload-preview-delete")&&n.removeImageFile(Number(t.dataset.index))})),a.append(i),a.append(o),r.append(a),r}},{key:"removeImageFile",value:function(e){var t=this.complaintImageList.length-1;e<0||e>t||(this.complaintImageList.splice(e,1),this.updatePreviewImageList())}},{key:"createDateInput",value:function(){var e=this,t=document.querySelector(".service-categories__wrapper"),n=document.createDocumentFragment(),r=document.createElement("div");r.classList.add("service-option__container","service-option__container--text"),r.style.position="relative";var a=document.createElement("input");a.id="input-date",a.type="text",a.placeholder=t.dataset.complaintdate,a.dataset.validation="dateValid",a.classList.add("form-field__input"),r.append(Ei(a));var i=a.parentElement;i.querySelector(".form-field__label").style.left="";var o=document.createElement("span");return o.classList.add("validation-error-msg"),o.textContent=Granite.I18n.get("apps.amag-ch.components.c
6ontent.otv.carDataInputPane.errorMsg.invalidDate"),i.append(o),a.addEventListener("keyup",(function(){e.complaintDate=di(a.value)})),n.append(r),n}},{key:"createFrequencyInput",value:function(){var e=this,t=document.querySelector(".service-categories__wrapper"),n=document.createDocumentFragment(),r=[t.dataset.complaintfrequencyalways,t.dataset.complaintfrequencysome,t.dataset.complaintfrequencydriving,t.dataset.complaintfrequencyspeed,t.dataset.complaintfrequencyother],a=document.createElement("p");return a.classList.add("service-option__complaint-frequency-subtitle"),a.textContent=t.dataset.complaintfrequency,n.append(a),r.forEach((function(t,r){var a=document.createElement("div");a.className="service-option__container service-option__container--radio ";var i=document.createElement("div");i.classList.add("service-option__text-wrapper");var o=document.createElement("input");o.id="frequency-".concat(r),o.type="radio",o.name="frequency",o.checked=!1;var s=document.createElement("div");s.classList.add("service-option__text-container");var c=document.createElement("label");c.classList.add("service-option__label"),c.textContent=t,c.htmlFor="frequency-".concat(r),s.append(c),i.append(o),i.append(s),a.append(i),a.addEventListener("click",(function(){o.checked=!0;var t=a.querySelector(".service-option__label").textContent;e.complaintFrequency=t,document.querySelectorAll("input[name='frequency']").forEach((function(e){var t=e.closest(".service-option__container");t&&t.classList.toggle("service-option__container--active",e.checked),e.checked&&"frequency-4"===e.id?document.querySelector("#special-case-frequency-textarea").closest(".form-field__container").hidden=!1:document.querySelector("#special-case-frequency-textarea").closest(".form-field__container").hidden=!0}))})),n.append(a)})),n}},{key:"createSpecialTextarea",value:function(){var e=this,t=document.querySelector(".service-categories__wrapper"),n=document.createDocumentFragment(),r=document.createElement("textarea");r.id="special-case-frequency-textarea",r.name="special-case-frequency-textarea",r.className="service-option__textarea",r.placeholder=pi(t.dataset.complaintspecialcase),r.inputMode="text";var a=function(e){var t=document.createElement("div");t.classList.add("form-field__container"),t.style.width="100%";var n=document.createElement("div");return n.classList.add("form-field","form-field--textarea"),e.style.padding="20px",e.addEventListener("input",(function(){e.value=hi(e.value);var t=new CustomEvent("wasSanatized",{detail:"textarea value has been sanitized"});e.dispatchEvent(t),Si(e)})),Si(e),e.maxLength=_i,n.appendChild(e),t.appendChild(n),t}(r);return a.hidden=!0,r.addEventListener("wasSanatized",(function(){e.complaintSpecialTextarea=r.value})),n.append(a),n}},{key:"categoryElement",get:function(){return this.categoryContainer||this.createComponentStructure(),this.isHidden?this.categoryContainer.classList.add("d-none"):this.categoryContainer.classList.remove("d-none"),this.categoryContainer.removeEventListener("click",this.clickHandlerFactory()),this.categoryContainer.addEventListener("click",this.clickHandlerFactory()),this.isSeasonalOffer?this.categoryContainer.classList.add("service-category__container--seasonal"):this.categoryContainer.classList.remove("service-category__container--seasonal"),this.categoryContainer}},{key:"icon",set:function(e){var t=this;this.categoryContainer||this.createComponentStructure(),this.iconData=fetch(e).then((function(e){return e.text().then((function(e){return e}))})),this.iconData.then((function(e){t.iconImg=Zi(e),t.iconImg.appendTo(t.iconWrapper)}))}},{key:"depth",get:function(){for(var e=0,t=this;t.parent;)e++,t=t.parent;return e}},{key:"setSelectedAsLinkedService",value:function(e){this.serviceStorage&&(this.serviceStorage.complete=!0),this.selectedAsLinkedService=e}},{key:"setShownAsLinkedService",value:function(e){this.isShownAsLinkedService=e}},{key:"isSelectedAsLinkedService",value:function(){return this.selectedAsLinkedService}},{key:"isStored",value:function(){return!!this.serviceStorage}},{key:"clickHandlerFactory",value:function(){var e=this;return function(){e.onClick&&e.onClick(e)}}},{key:"runRecursive",value:function(){var e,t=[this],n=Ki(this.children);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push.apply(t,(0,ut.A)(r.runRecursive()))}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"getParents",value:function(){var e=[];return this.parent&&e.push.apply(e,(0,ut.A)(this.parent.getParents())),e.push(this),e}}])}();function eo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eo=function(){return!!e})()}Qi.initValues=function(e,t){e.setTextProperties(t),e.selectionType=t.childrenType,e.isSeasonalOffer=!!t.seasonalOffer,e.requiresMileage=!!t.mileageRequired,t.authorLbrVgrUiIcon&&(e.icon=t.authorLbrVgrUiIcon),t.otvChildren&&e.autoAppendChildren(t.otvChildren),e.additionalServices=t.additionalServices;var n,r=Ki(t.additionalServices);try{for(r.s();!(n=r.n()).done;){var a=n.value,i=new Date(a.startDate),o=new Date(a.endDate),s=new Date;(!a.startDate||s.getTime()>i.getTime())&&s.getTime()<o.getTime()&&e.link(a.id)}}catch(e){r.e(e)}finally{r.f()}return e.availableForBrands=t.checkedBrands,t.smallGarageServiceId&&(e.smallGarageServiceId=t.smallGarageServiceId),t.bentleyGarageServiceId&&(e.bentleyGarageServiceId=t.bentleyGarageServiceId),t.microlinoGarageServiceId&&(e.microlinoGarageServiceId=t.microlinoGarageServiceId),t.cantBeBookedAlone&&(e.cantBeBookedAlone=t.cantBeBookedAlone),t.image&&(e.image=t.image),t.minMileageRestriction&&(e.minMileageRestriction=parseInt(t.minMileageRestriction)),t.maxMileageRestriction&&(e.maxMileageRestriction=parseInt(t.max
6MileageRestriction)),t.hiddenServiceId&&(e.hiddenServiceId=t.hiddenServiceId),e};var to=function(e){function t(e,n,r,a,i){return(0,pt.A)(this,t),o=this,s=t,c=[e,n,r,a,i],s=(0,Ja.A)(s),(0,Xa.A)(o,eo()?Reflect.construct(s,c||[],(0,Ja.A)(o).constructor):s.apply(o,c));var o,s,c}return(0,Qa.A)(t,e),(0,ft.A)(t)}(Qi);function no(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(no=function(){return!!e})()}var ro=function(e){function t(e,n,r,a,i){return(0,pt.A)(this,t),o=this,s=t,c=[e,n,r,a,i],s=(0,Ja.A)(s),(0,Xa.A)(o,no()?Reflect.construct(s,c||[],(0,Ja.A)(o).constructor):s.apply(o,c));var o,s,c}return(0,Qa.A)(t,e),(0,ft.A)(t)}(Qi);function ao(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return io(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?io(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function io(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oo(e){var t=e.map((function(e){if(!e.id)return console.error("Element has no ID",e),{};var t=new to(e.id,e.path,e.authorLbrValDesc,e.hiddenService,e.hiddenServiceId);t.setTextProperties(e),t.isSeasonalOffer=!!e.seasonalOffer,t.cantBeBookedAlone=!!e.cantBeBookedAlone,t.availableForBrands=e.checkedBrands,e.authorLbrVgrUiIcon&&(t.icon=e.authorLbrVgrUiIcon),t.selectionType=e.childrenType;var n,r=ao(e.otvChildren);try{for(r.s();!(n=r.n()).done;){var a=n.value;a.id||console.error("Element has no ID",a);var i=new ro(a.id,a.path,a.authorLbrValDesc,a.hiddenService,a.hiddenServiceId);t.appendChild(Qi.initValues(i,a))}}catch(e){r.e(e)}finally{r.f()}return t}));return t=t.filter((function(e){return Object.keys(e).length>0}))}function so(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return co(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?co(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function co(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lo=function(){return!!e})()}var uo=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},ho=function(e){function t(){return(0,pt.A)(this,t),e=this,n=t,r=arguments,n=(0,Ja.A)(n),(0,Xa.A)(e,lo()?Reflect.construct(n,r||[],(0,Ja.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,Qa.A)(t,e),(0,ft.A)(t,null,[{key:"_fetch",value:function(){return uo(this,void 0,void 0,ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,yr.N$)(this.selector);case 2:return t=e.sent,e.abrupt("return",oo(t));case 4:case"end":return e.stop()}}),e,this)})))}},{key:"getService",value:function(e){return uo(this,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s,c;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getData(!1);case 2:n=t.sent,r=so(n),t.prev=4,r.s();case 6:if((a=r.n()).done){t.next=27;break}i=a.value,o=so(i.runRecursive()),t.prev=9,o.s();case 11:if((s=o.n()).done){t.next=17;break}if((c=s.value).id!==e){t.next=15;break}return t.abrupt("return",c);case 15:t.next=11;break;case 17:t.next=22;break;case 19:t.prev=19,t.t0=t.catch(9),o.e(t.t0);case 22:return t.prev=22,o.f(),t.finish(22);case 25:t.next=6;break;case 27:t.next=32;break;case 29:t.prev=29,t.t1=t.catch(4),r.e(t.t1);case 32:return t.prev=32,r.f(),t.finish(32);case 35:case"end":return t.stop()}}),t,this,[[4,29,32,35],[9,19,22,25]])})))}}])}(Ai);ho.selector="otv-get-tire-service";var po=__webpack_require__(74692),fo={required:function(e){return"radio"===e.attr("type")?po("input[name='".concat(e.attr("name"),"']")).filter((function(e,t){return po(t).is(":checked")})).length>0:e.val().length>0},requiredTab:function(e){return!e.closest(".cmp-tabs__tabpanel").is(".cmp-tabs__tabpanel--active")||fo.required(e)},requiredIfGuest:function(e){return!Xt.get(Gt.data.isGuest)||e.val().replaceAll(" ","").length>0&&fo.required(e)},requiredGuestMail:function(e){if(Xt.get(Gt.data.isGuest)){var t=new RegExp(ji.VALIDATION_REGEX,"g");return"string"==typeof e.val()&&t.test(e.val())&&e.val().length<=ji.EMAIL_LENGTH}return!0},hasServiceSelected:function(){var e;return(null===(e=Xt.get(Gt.service.selectedServices))||void 0===e?void 0:e.filter((function(e){return e.isComplete()}
6)).length)>0||!1},hasBookableServices:function(){var e;return(null===(e=Xt.get(Gt.service.selectedServices))||void 0===e?void 0:e.filter((function(e){return!e.service.cantBeBookedAlone})).length)>0||!1},removeUnsafeChars:function(e){return e.val(di(e.val().trim())),!0},appointmentValid:function(){var e=Xt.get(Gt.appointment.validation),t=Xt.get(Gt.service.selectedServices).reduce((function(e,t){return[].concat((0,ut.A)(e),(0,ut.A)(t.serviceIds))}),[]);return!e||0===function(e,t){for(var n=[],r=[],a=0;a<e.length;a++)n[e[a]]=!0;for(a=0;a<t.length;a++)n[t[a]]?delete n[t[a]]:n[t[a]]=!0;for(var i in n)r.push(i);return r}(t,e).length},licensePlateValid:function(e){var t=e.closest(".cmp-tabs__tabpanel"),n=!0,r=e.val()?e.val().toString().trim():"";t.is(".cmp-tabs__tabpanel--active")&&(n=new RegExp(Bi.ONLY_UPPER_CASE).test(r)&&r.length>0);return n},passwordValid:function(e){e.closest(".cmp-tabs__tabpanel");var t=e.val();return!new RegExp("^(?=.*d)(?=.*[A-Z])(?=.*[a-z])(?=.*[^wds:])([^s]){12,}$").test(t)},garageValid:function(e){return!(!window.sessionStorage.getItem("garage.presetGarage")&&!Xt.get("garage.presetGarage"))||fo.required(e)},requiredIfNotVehicleHolder:function(e){var t=e[0];return!!po("#vehicle-holder__radiobutton__self")[0].checked||("SELECT"===t.nodeName?t.value===pr.MS||t.value===pr.MR||t.value===pr.COMPANY:"INPUT"===t.nodeName&&t.value.length>0)},dateValid:function(e){var t=e[0];if(t.value.length>0&&t.value.includes(".")){var n=t.value.split("."),r=parseInt(n[0]),a=parseInt(n[1]),i=parseInt(n[2]),o=(new Date).getFullYear();return!(i<2e3||i>o)&&(!(a<1||a>12)&&(!(r<1)&&r<=new Date(i,a,0).getDate()))}return!(t.value.length>0)}},mo=fo;function vo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return go(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?go(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function go(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yo(e){var t=e.data("validation");if(!t)return!0;var n,r=!0,a=vo(t.split(","));try{for(a.s();!(n=a.n()).done;){var i=n.value;if(!mo[i])return console.error("Invalid validation type defined '".concat(i,"' in "),e[0]),!0;var o=(0,mo[i])(e);e.toggleClass("invalid--".concat(i),!o),r=r&&o}}catch(e){a.e(e)}finally{a.f()}return e.toggleClass("invalid",!r),r}var _o=__webpack_require__(74692),bo=[];window.HIS=bo;var wo=null;function So(){var e=dc.getInstance();e.contentComponent.find(".tab-pane__navigation-backwards").toggleClass("d-none",0===bo.length&&"services"!==e.activeTab.name||e.activeTab.getActivePane().hideBackwardButton)}function Co(e){bo[bo.length-1]!==e&&e&&(bo.push(e),So())}function Eo(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=dc.getInstance(),r=e.split(","),a=r[0].split(".")[0],i=r[0].split(".")[1];t||n.activeTab.getActivePane().disableHistory||(n.activeTab.hasPanes()?Co("".concat(n.activeTab.name,".").concat(n.activeTab.getActivePane().name)):Co(n.activeTab.name));var o=n.getTabByName(a);if(o){var s=o.getPane(i);r.length>1?o.getPaneNavigation().data("targetTabAndPane",r.slice(1).join(",")):o.getPaneNavigation().removeData("targetTabAndPane"),n.selectTab(o),s.tab.tabContent.content[0].querySelectorAll(".otv-service__report-link").length>0?"services-overview"===i?o.getPaneNavigation().find(".tab-pane__navigation-forwards").text(Granite.I18n.get("apps.amag-ch.components.c
6ontent.otv.serviceSummary.reportDamage")):"services-summary"===i&&o.getPaneNavigation().find(".tab-pane__navigation-forwards").text(Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSummary.continueToGarageSelection")):o.setForwardsBtnText(s),o.getActivePane().name!==i?o.selectPane(i,!0):(yt(!1),window.scrollTo(0,0),yt(!0)),So()}}function xo(){var e=bo.pop();return So(),e}function Ao(){return bo}function ko(){dc.getInstance().contentComponent.find('a[href^="#"]').on("click",(function(e){var t=_o(e.currentTarget).attr("href");wo=e.currentTarget,Eo(t.replace("#",""))})),So()}function To(e){dc.getInstance().contentComponent.find(".tab-pane__navigation-forwards").toggleClass("d-none",!e)}function Lo(){To(!0)}function Io(e,t){t.tab.getPaneNavigation().find(".tab-pane__navigation-forwards").text(e)}var Do=__webpack_require__(74692);function Po(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Oo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ro=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._$element=t.find("> *"),this._name=t.attr("name"),this._hideForwardNavigation=void 0!==t.attr("hide-forward-navigation"),this._hideBackwardNavigation=void 0!==t.attr("hide-backward-navigation"),this._disableHistory=void 0!==t.attr("disable-history"),this._$container=Do("<div></div>"),this._$container.append(this._$element),this._active=!0,this._forwardBtnText=t.attr("forwards-btn-text"),this._tab=void 0,Do.each(t.prop("attributes"),(function(e,t){n._$container.attr(t.name,t.value)}))}),[{key:"name",get:function(){return this._name}},{key:"element",get:function(){return this._$container}},{key:"isActive",get:function(){return this._active}},{key:"disableHistory",get:function(){return this._disableHistory}},{key:"forwardBtnText",get:function(){return this._forwardBtnText||Granite.I18n.get("apps.amag-ch.components.content.otv.paneNavigation.forwards")}},{key:"hideForwardButton",get:function(){return this._hideForwardNavigation}},{key:"hideBackwardButton",get:function(){return this._hideBackwardNavigation}},{key:"isValid",get:function(){var e,t=!0,n=Po(this._$container.find("input[data-validation], select, textarea[data-validation]"));try{for(n.s();!(e=n.n()).done;){var r=e.value,a=Do(r),i=yo(a);a.toggleClass("invalid",!i),t=t&&i}}catch(e){n.e(e)}finally{n.f()}return this._$container.toggleClass("invalid",!t),t}},{key:"tab",get:function(){return this._tab},set:function(e){this._tab=e}},{key:"hide",value:function(){this._$container.hide(),this._active=!1,this._$container.toggleClass("active",this._active)}},{key:"show",value:function(){yt(!1),window.scrollTo(0,0),yt(!0),this._$container.show(),this._active=!0,this._$container.toggleClass("active",this._active),this._$container.trigger("otv.activate",{referrer:wo})}},{key:"uri",get:function(){return this.tab?this.tab.name+"."+this.name:""}}])}(),Mo=__webpack_require__(49922);function qo(e,t,n){return(t=(0,Mo.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function No(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Vo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}
6function Fo(e,t,n){var r=document.createDocumentFragment(),a=document.createElement("div");a.classList.add("text-box");var i=document.createElement("p");if(i.classList.add("text-box__headline"),i.textContent=e,a.appendChild(i),n&&n.length>0){var o,s=No(n);try{for(s.s();!(o=s.n()).done;){var c=o.value,l=document.createElement("p");l.classList.add("text-box__description"),l.textContent=c,a.appendChild(l)}}catch(e){s.e(e)}finally{s.f()}}if(t){var u=document.createElement("img");u.classList.add("text-box__image"),u.src=t,u.alt=e,a.appendChild(u)}return r.appendChild(a),r}function Bo(e,t,n,r,a,i){var o=document.createDocumentFragment(),s=document.createElement("div");s.classList.add("chosen-garage");var c=document.createElement("p");c.classList.add("chosen-garage__name"),c.textContent=e,s.appendChild(c);var l=document.createElement("p");l.classList.add("chosen-garage__street"),l.textContent=t,s.appendChild(l);var u=document.createElement("p");u.classList.add("chosen-garage__city-zip");var d=document.createElement("span");d.classList.add("chosen-garage__zip");var h=document.createElement("span");h.classList.add("chosen-garage__city"),d.textContent=n+" ",h.textContent=r,u.appendChild(d),u.appendChild(h),s.appendChild(u);var p=document.createElement("p");p.classList.add("chosen-garage__service-brands"),p.textContent=a,s.appendChild(p);var f=document.createElement("a");return f.classList.add("chosen-garage__route"),f.href="https://www.google.com/maps/dir/?api=1&destination="+i,f.innerHTML='<svg class="chosen-garage__route-icon size-l" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M1.10809 23.6331C0.557093 23.6331 0.108093 23.1851 0.108093 22.6331V4.63314C0.108093 4.08214 0.557093 3.63314 1.10809 3.63314H16.1081V1.13314C16.1081 0.638141 16.4211 0.463141 16.5171 0.421141C16.5711 0.398141 16.6591 0.369141 16.7701 0.369141C16.9031 0.369141 17.1051 0.410141 17.3161 0.607141L23.5821 6.42614C23.6011 6.44314 23.6251 6.46714 23.6481 6.49314C23.8191 6.68314 23.9051 6.92914 23.8911 7.18414C23.8771 7.43914 23.7651 7.67414 23.5751 7.84514L17.3151 13.6591C17.1041 13.8551 16.9021 13.8961 16.7701 13.8961C16.6601 13.8961 16.5721 13.8681 16.5181 13.8451C16.4211 13.8031 16.1091 13.6281 16.1091 13.1331V10.6331H7.10909V22.6331C7.10909 23.1851 6.66009 23.6331 6.10909 23.6331H1.10809ZM1.10809 22.6331H6.10809V10.6331C6.10809 10.0821 6.55709 9.63314 7.10809 9.63314H16.6081C16.8841 9.63314 17.1081 9.85714 17.1081 10.1331V12.4871L22.8721 7.13414L17.1081 1.78014V4.13314C17.1081 4.40914 16.8841 4.63314 16.6081 4.63314H1.10809V22.6331Z"/>\n</svg>'+Granite.I18n.get("apps.amag-ch.components.content.otv.routeLabel"),s.appendChild(f),o.appendChild(s),o}function jo(e,t){return Ho.apply(this,arguments)}function Ho(){return(Ho=(0,lt.A)(ht().mark((function e(t,n){var r,a;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n?"".concat(wr.getUrl()).concat("captchaBookGuestAppointment.json"):"".concat(wr.getUrl()).concat("bookAppointment.json"),e.next=3,fetch(a,{method:"POST",body:JSON.stringify(t)});case 3:if(!(r=e.sent).ok){e.next=8;break}return e.next=7,r.json();case 7:return e.abrupt("return",e.sent);case 8:throw r;case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Go(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Go=function(){return!!e})()}var Uo=function(e){function t(){return(0,pt.A)(this,t),e=this,n=t,r=arguments,n=(0,Ja.A)(n),(0,Xa.A)(e,Go()?Reflect.construct(n,r||[],(0,Ja.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,Qa.A)(t,e),(0,ft.A)(t,null,[{key:"_fetch",value:function(){return new Promise((function(e,t){"undefined"!=typeof gigya?Dr((function(n){"FAIL"===n.status?t():e(n)})):t()}))}}])}(Ai);function Wo(e){return Object.entries(e).map((function(e){return e.join("=")})).join("&")}function zo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return $o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function $o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Yo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yo=function(){return!!e})()}var Zo=function(e){function t(){return(0,pt.A)(this,t),e=this,n=t,r=
6arguments,n=(0,Ja.A)(n),(0,Xa.A)(e,Yo()?Reflect.construct(n,r||[],(0,Ja.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,Qa.A)(t,e),(0,ft.A)(t,null,[{key:"_fetch",value:(i=(0,lt.A)(ht().mark((function e(){var t,n,r,a,i;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=yr.eJ,e.t1="".concat(wr.getUrl(),"getAllVehicles.json?CDC_TOKEN="),e.next=5,br.getJwtToken();case 5:return e.t2=e.sent,e.t3=e.t1.concat.call(e.t1,e.t2),e.next=9,(0,e.t0)(e.t3);case 9:t=e.sent,e.next=16;break;case 12:return e.prev=12,e.t4=e.catch(0),document.querySelector(".myVehicle__error-msg").classList.remove("d-none"),e.abrupt("return",!1);case 16:if(t){e.next=18;break}return e.abrupt("return",!1);case 18:n=[],r=zo(t.d.results),e.prev=20,r.s();case 22:if((a=r.n()).done){e.next=31;break}return i=a.value,e.t5=n,e.next=27,zi.construct(i);case 27:e.t6=e.sent,e.t5.push.call(e.t5,e.t6);case 29:e.next=22;break;case 31:e.next=36;break;case 33:e.prev=33,e.t7=e.catch(20),r.e(e.t7);case 36:return e.prev=36,r.f(),e.finish(36);case 39:return e.abrupt("return",Promise.all(n));case 40:case"end":return e.stop()}}),e,null,[[0,12],[20,33,36,39]])}))),function(){return i.apply(this,arguments)})},{key:"storeTouchedObjects",value:(a=(0,lt.A)(ht().mark((function e(){var t,n,r,a;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getData(!0,"userVehicleList");case 2:return t=e.sent,n=t.filter((function(e){return e.isTouched()})),e.next=6,br.getJwtToken();case 6:return r=e.sent,a=[],n.forEach((function(e){var t=e.serialize();t.CDC_TOKEN=r,a.push(fetch("".concat(wr.getUrl(),"createVehicle.json"),{method:"POST",body:JSON.stringify(t)}).then((function(e){return e.json()})))})),n.forEach((function(e){e.unTouch()})),e.abrupt("return",Promise.all(a));case 11:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"createVehicle",value:(r=(0,lt.A)(ht().mark((function e(t){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.touch(),e.next=3,this.getData(!1,"userVehicleList");case 3:return e.sent.push(t),e.abrupt("return",this.storeTouchedObjects());case 5:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"deleteVehicle",value:(n=(0,lt.A)(ht().mark((function e(t){var n,r,a,i,o;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.vehicleUID,r=t.userId,e.next=4,br.getJwtToken();case 4:return a=e.sent,i="".concat(wr.getUrl(),"deleteVehicle.json?").concat(Wo({userId:r,vehicleId:n,CDC_TOKEN:a})),e.next=8,fetch(i);case 8:if(!((o=e.sent).status>300)){e.next=11;break}throw o;case 11:return e.t0=function(e){var n=e.filter((function(e){return t.vehicleUID!==e.vehicleUID}));e.length=0,e.push.apply(e,(0,ut.A)(n))},e.next=14,this.getData(!0,"userVehicleList");case 14:e.t1=e.sent,(0,e.t0)(e.t1);case 16:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}]);var n,r,a,i}(Ai);function Ko(){var e=document.getElementById("amag-infrastructure-info");return"theme.amag.noncaptive"===e.dataset.theme&&"porsche"===e.dataset.project?"AMAG_OTV_08 21000":"AMAG_OTV_08 20000"}function Xo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Jo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Jo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Qo,es,ts,ns,rs,as,is,os,ss,cs,ls=document.querySelector(".otv-available-cars"),us='<span class="app-vehicle__connected-icon-placeholder">\n <svg class="app-vehicle__connected-icon" width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M7.17784 13.8426C7.07517 13.8374 6.97974 13.7827 6.92248 13.6978L5.08823 10.9665C5.03952 10.8935 5.02175 10.8059 5.03821 10.7197C5.05532 10.6335 5.10468 10.5591 5.17773 10.5098C5.23236 10.4729 5.29554 10.4538 5.3607 10.4538C5.47061 10.4538 5.57262 10.5085 5.63383 10.5993L6.69739 12.1828C6.65264 9.35802 8.56982 6.8123 11.3623 6.11599L11.4235 6.10085C11.8737 5.99489 12.3344 5.94092 12.7945 5.94092C14.4872 5.94092 16.103 6.67014 17.2264 7.94234C17.3469 8.07858 17.3337 8.28655 17.1975 8.40699C17.1369 8.4603 17.0599 8.48926 16.9796 8.48926C16.8855 8.48926 16.7953 8.44846 16.7328 8.37804C15.7344 7.24734 14.299 6.59906 12.7945 6.59906C12.3858 6.59906 11.9764 6.64711 11.5769 6.74188L11.521 6.7557C8.81136 7.43096 7.05608 10.0274 7.39569 12.762L9.05224 10.7783C9.11477 10.7033 9.20691 10.6605 9.30497 10.6605C9.38197 10.6605 9.457 10.6875 9.51558 10.7368C9.65511 10.8533 9.67353 11.0613 9.55704 11.2002L7.44768 13.7261C7.38516 13.7998 7.18047 13.8426 7.17784 13.8426Z" fill="#172983"/>\n <path d="M12.7701 17.7915C11.2129 17.7915 9.74066 17.1834 8.62378 16.079C8.56126 16.0171 8.52638 15.9349 8.52638 15.8467C8.52572 15.7585 8.55994 15.6756 8.62181 15.6137C8.68367 15.5505 8.7666 15.5156 8.85545 15.5156C8.94298 15.5156 9.02525 15.5498 9.08712 15.6111C10.0796 16.5924 11.3887 17.1327 12.7721 17.1327C13.1828 17.1327 13.5954 17.084 13.9989 16.9886C16.4169 16.41 18.1176 14.1947 18.0971 11.7372L16.5255 13.6188C16.463 13.6939 16.3708 13.7367 16.2728 13.7367C16.1958 13.7367 16.1214 13.7097 16.0622 13.6603C15.9233 13.5438 15.9042 13.3365 16.0207 13.197L18.0912 10.7184C18.1004 10.7052 18.111 10.6934 18.1222 10.6815L18.1314 10.6697C18.1939 10.5947 18.286 10.5519 18.3834 10.5519C18.3867 10.5519 18.3992 10.5519 18.4025 10.5525C18.5052 10.5578 18.6006 10.6124 18.6579 10.698L20.4908 13.4306C20.5395 13.5037 20.5573 13.5912 20.5402 13.6774C20.5231 13.7636 20.4737 13.838 20.4007 13.8874C20.3467 13.9236 20.2835 13.9433 20.2177 13.9433C20.1078 13.9433 20.0051 13.8887 19.9439 13.7972L18.7527 12.0215C18.65 14.689 16.7881 16.9984 14.1522 17.6289C13.6974 17.7369 13.2328 17.7915 12.7701 17.7915Z" fill="#172983"/>\n </svg>\n </span>
6',ds=Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.noVehiclesText"),hs=Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.vehicleText"),ps=Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.vehicleNotIncludedText"),fs=Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.licensePlate"),ms=Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.mileage.fieldLabel"),vs=Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistration"),gs=Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.carSerialNumber.fieldLabel"),ys=Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.vehicleHolder.fieldLabel"),_s=Granite.I18n.get("apps.amag-ch.components.content.otv.notSpecified"),bs=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.vehicleUID||e.vin||(e.brandName+e.modelName).toLowerCase().replaceAll(/[\s\W]/g,""),a=!!is&&is===e.vin,i=document.createElement("label");i.classList.add("vehicle-available__saved-car-label","vehicle-available__label"),i.setAttribute("for","id-".concat(r));var o=document.createElement("div");o.classList.add("vehicle-available__content");var s=document.createElement("input");s.classList.add("vehicle-available__input"),e.appOrigin&&s.classList.add("app-vehicle__input"),a&&s.classList.add("abo-vehicle__input"),s.name="carSelection.vehicleUID",s.value=r,s.type="radio",s.id="id-".concat(r),s.dataset.brandId=e.makeCode,s.dataset.brandName=e.brandName,s.dataset.modelId=e.modelCode,s.dataset.modelName=e.modelName,s.dataset.vehicleUid=e.vehicleUID,s.dataset.vin=e.vin,s.dataset.vehicleNumber=e.vehicleNumber,s.dataset.vehicleObjectType=e.vhObjectType,s.dataset.vehicleObjectNumber=e.vhObjectNumber,s.dataset.vehicleHolderSelf="".concat(!e.vehicleHolderSalutation),s.dataset.vehicleHolderSalutation=e.vehicleHolderSalutation,s.dataset.vehicleHolderName=e.vehicleHolderName,s.dataset.vehicleHolderFirstName=e.vehicleHolderFirstName,s.dataset.vehicleHolderSalutationDescription=e.vehicleHolderSalutationDescription,s.dataset.lastRecordedAt=e.carAdapterTimeStamp,s.dataset.mileage="".concat(e.mileage),s.dataset.match="".concat(!!n&&!!t),s.dataset.appOrigin="".concat(!!e.appOrigin||!!n),s.dataset.dataFromApp="".concat(!!n),s.dataset.dataFromSrs="".concat(!!t);var c=document.createElement("div");c.classList.add("vehicle-available__info");var l=document.createElement("p");l.classList.add("vehicle-available__saved-car-name"),l.innerText="".concat(e.brandName," ").concat(e.modelName);var u=document.createElement("span");u.classList.add("app-vehicle__name-app-label"),u.innerText=" (".concat(Qo,")"),e.appOrigin&&l.appendChild(u);var d=document.createElement("p");d.classList.add("vehicle-available__saved-car-license-plate"),d.innerText="".concat(fs,": ").concat(e.licensePlate||_s),e.appOrigin&&(d.innerHTML+="".concat(us));var h=document.createElement("p");h.classList.add("vehicle-available__app-vehicle-mileage"),h.innerText="".concat(ms,": ").concat(e.mileage?e.mileage+" km":_s),h.innerHTML+="".concat(us);var p=document.createElement("p");p.classList.add("vehicle-available__saved-car-initial-registration"),p.innerText="".concat(vs,": ").concat(e.displayRegistrationDate||_s);var f=document.createElement("p");f.classList.add("vehicle-available__saved-car-chassis-number"),f.innerText="".concat(gs,": ").concat(e.vin||_s);var m=document.createElement("p");m.classList.add("vehicle-available__saved-car-vehicle-holder"),m.innerText="".concat(ys,": ").concat(e.displayVehicleHolder);var v=document.createElement("span");v.classList.add("app-vehicle__info-last-recorded-value"),v.innerText="".concat(e.carAdapterTimeStamp||"-");var g=document.createElement("p");g.classList.add("app-vehicle__info-last-recorded"),g.innerText="".concat(es,": "),g.appendChild(v);var y=document.createElement("span");y.classList.add("app-vehicle__info-amag-app"),y.innerText=Qo;var _=document.createElement("p");_.classList.add("app-vehicle__info-connected-with"),_.innerText="".concat(ts," "),_.appendChild(y);var b=document.createElement("div");return b.classList.add("app-vehicle__info"),b.appendChild(g),b.appendChild(_),c.appendChild(l),c.appendChild(d),e.appOrigin&&c.appendChild(h),c.appendChild(p),c.appendChild(f),e.vehicleHolderSalutation&&e.vehicleHolderName&&c.appendChild(m),e.appOrigin&&c.appendChild(b),o.appendChild(s),o.appendChild(c),i.appendChild(o),i},ws=function(){ls.addEventListener("change",(function(e){var t=e.target;if(t.classList.contains("vehicle-available__input")){var n=t;if(ls.querySelectorAll(".vehicle-available__label").forEach((function(e){e.classList.remove("is-active")})),n.closest("label").classList.add("is-active"),function(e){var t=e.classList.contains("app-vehicle__input");Kt.store(Gt.car.brand,e.dataset.brandName),Kt.store(Gt.car.brandId,e.dataset.brandId),Kt.store(Gt.car.model,e.dataset.modelName),Kt.store(Gt.car.modelId,e.dataset.modelId),Kt.store(Gt.car.vehicleNumber,e.dataset.vehicleNumber),Kt.store(Gt.car.vehicleObjectType,e.dataset.vehicleObjectType),Kt.store(Gt.car.vehicleObjectNumber,e.dataset.vehicleObjectNumber),Kt.store(Gt.car.vehicleUID,e.value),Kt.store(Gt.car.vin,e.dataset.vin),Kt.store(Gt.data.vehicleHolder.self,"true"===e.dataset.vehicleHolderSelf),Kt.store(Gt.appVehicle.appOrigin,!!t),Kt.store(Gt.appVehicle.carAdapterTimeStamp,e.dataset.lastRecordedAt||null),t&&e.dataset.mileage&&Kt.store(Gt.data.mileage,e.dataset.mileage),Kt.get(Gt.data.vehicleHolder.self)||(Kt.store(Gt.data.vehicleHolder.salutation,e.dataset.vehicleHolderSalutation),Kt.
6store(Gt.data.vehicleHolder.holder,e.dataset.vehicleHolderName),Kt.store(Gt.data.vehicleHolder.name,e.dataset.vehicleHolderFirstName),Kt.store(Gt.data.vehicleHolder.salutationText,e.dataset.vehicleHolderSalutationDescription)),t?(Kt.store(Gt.appVehicle.fromApp,"true"===e.dataset.dataFromApp),Kt.store(Gt.appVehicle.fromSRS,"true"===e.dataset.dataFromSrs)):(Kt.remove(Gt.appVehicle.fromApp),Kt.remove(Gt.appVehicle.fromSRS))}(n),n.classList.contains("abo-vehicle__input")){var r={event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_report_damages",eventParameter2:"interaction_label",fieldValue2:"open report damages",eventParameter10:"carBrand",fieldValue10:"".concat(Kt.get(Gt.car.brand)),eventParameter11:"carModel",fieldValue11:"".concat(Kt.get(Gt.car.model))};(0,it.eo)(r)}}}))},Ss=function(){return localStorage.getItem(bt.H.AMAG_APP_VEHICLE)?JSON.parse(localStorage.getItem(bt.H.AMAG_APP_VEHICLE)):null},Cs=function(e){if(e){var t=document.querySelector('.vehicle-available__input[data-vin="'.concat(e,'"]'));t&&t.click()}},Es=function(e,t){var n=e.vin?t.find((function(t){return t.vin===e.vin})):null;return n?(n.appOrigin=!0,n):null},xs=function(){var e=document.querySelectorAll(".app-vehicle__info");document.querySelectorAll(".app-vehicle__info-last-recorded-value").forEach((function(e){return e.innerHTML=ss.lastRecordedAt})),e.forEach((function(e){return e.classList.remove("d-none")}))},As=function(){var e=(0,lt.A)(ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(cs){e.next=6;break}return e.next=3,Yi();case 3:case 8:return e.abrupt("return",e.sent);case 6:return e.next=8,zi.construct({MAKE_CODE:ss.brandId||cs.makeCode,MODEL_CODE:cs.modelCode,VIN:ss.vin||cs.vin,LIC_PLATE:ss.licensePlate||cs.licensePlate,REG_DATE:cs.registrationDate,MILEAGE:ss.mileage?parseInt(ss.mileage):cs.mileage,MILEAGE_UOM:cs.mileageUnit,MILEAGE_UOMISO:cs.mileageUnitIso,VEH_NO:cs.vehicleNumber,VH_OBJ_TYPE:cs.vhObjectType,VH_OBJ_NUMBER:cs.vhObjectNumber,USERID:cs.userId,VHGUID:cs.vehicleUID,ZZVO_TITLE:cs.vehicleHolderSalutation,ZZVO_NAME1:cs.vehicleHolderName,ZZVO_NAME2:cs.vehicleHolderFirstName,ZZVO_TITLE_DESC:cs.vehicleHolderSalutationDescription,APPORIGIN:!0,CARADAPTERTIMESTAMP:ss.lastRecordedAt||cs.carAdapterTimeStamp});case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function ks(){return Ts.apply(this,arguments)}function Ts(){return Ts=(0,lt.A)(ht().mark((function e(){var t,n,r,a,i,o,s,c,l,u,d,h;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=document.getElementById("amag-infrastructure-info"),ls=document.querySelector(".otv-available-cars"),Qo=ls.getAttribute("data-amagapp"),es=ls.getAttribute("data-lastupdated"),ts=ls.getAttribute("data-connectedwith"),e.next=7,Zo.getData(!1,"userVehicleList");case 7:if(ns=e.sent,m=void 0,m=new URL(window.location.href),is=new URLSearchParams(m.search).get("vin"),ss=Ss(),"theme.amag.noncaptive"===t.dataset.theme&&"porsche"===t.dataset.project&&(ns=ns.filter((function(e){return"PORSCHE"===e.makeCode})),ss&&"PORSCHE"!=ss.makeCode&&(ss=null)),f=void 0,f=document.querySelectorAll(".app-vehicle__info"),document.querySelectorAll(".app-vehicle__info-last-recorded-value").forEach((function(e){return e.innerHTML=""})),f.forEach((function(e){return e.classList.add("d-none")})),ns||ss){e.next=14;break}return e.abrupt("return",Promise.resolve());case 14:if(0!==ns.length||ss){e.next=17;break}return document.querySelector(".otv-text").innerText=ds,e.abrupt("return",Promise.resolve());case 17:if(document.querySelector(".otv-text").innerText=hs,is&&((os=ns.find((function(e){return e.vin===is})))&&(ns=ns.filter((function(e){return e.vin!==is}))),p=void 0,(p=document.querySelector(".tab-pane__sub-page-navigation-backwards"))&&p.classList.remove("d-none")),!os){e.next=24;break}n=bs(os,!0,!1),ls.appendChild(n),e.next=32;break;case 24:if(!ss){e.next=32;break}return xs(),(cs=Es(ss,ns))&&(ns=ns.filter((function(e){return e.vin!==cs.vin}))),e.next=29,As();case 29:r=e.sent,a=bs(r,!!cs,!0),ls.appendChild(a);case 32:if(rs=ns.filter((function(e){return!!e.appOrigin})),as=ns.filter((function(e){return!e.appOrigin})),rs.length>0){i=Xo(rs);try{for(i.s();!(o=i.n()).done;)s=o.value,c=bs(s,!0,!1),ls.appendChild(c)}catch(e){i.e(e)}finally{i.f()}}
6if(as.length>0){l=Xo(as);try{for(l.s();!(u=l.n()).done;)d=u.value,h=bs(d,!0,!1),ls.appendChild(h)}catch(e){l.e(e)}finally{l.f()}}return(ss&&!os||rs.length>0)&&ls.querySelector(".app-vehicle__notification").classList.remove("d-none"),ws(),ls.innerHTML+='<p class="otv-vehicle-not-included">'.concat(ps,"</p>"),os?Cs(is):ss&&Cs(ss.vin),ls.classList.remove("d-none"),e.abrupt("return",Promise.resolve());case 42:case"end":return e.stop()}var p,f,m}),e)}))),Ts.apply(this,arguments)}var Ls=__webpack_require__(74692),Is=__webpack_require__.n(Ls);function Ds(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ps(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ps(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Ps(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Os,Rs,Ms,qs,Ns,Vs,Fs,Bs,js,Hs=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Gs={selectors:{carsWrapper:".otv-available-cars"},i18n:{notSpecifiedLabel:Granite.I18n.get("apps.amag-ch.components.content.otv.notSpecified"),mileageLabel:Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.mileage.fieldLabel"),licensePlateLabel:Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.licensePlate"),initialRegistrationLabel:Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistration"),serialNumberLabel:Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.carSerialNumber.fieldLabel"),vehicleHolderLabel:Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.vehicleHolder.fieldLabel")}};function Us(e){var t,n;if(!document.querySelector(".booking__phone-number-container")){if(!Ns){var r=null===(n=null===(t=null==Vs?void 0:Vs.profile)||void 0===t?void 0:t.phones)||void 0===n?void 0:n.find((function(e){return"mobile"===e.type}));Ns='<div class="booking__phone-number-field">\n <div class="booking__phone-number-container">\n <input type="text" value="'.concat((null==r?void 0:r.number)||"",'" class="booking__phone-number-input" name="booking.phoneNumber" data-validation="required" required/>\n <label class="booking__phone-number-label">').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.booking.phoneNumberPlaceholder"),'</label>\n </div>\n <span class="booking__phone-number-error">').concat(Granite.I18n.get("apps.amag-ch.error.required.fieldLabel"),"</span>\n </div>")}"mainSms"===e.attr("id")&&e.siblings(".booking__appointments-notification-label-info-container").append(Ns),e.attr("id").startsWith("sms")&&e.closest(".booking__appointments-notification-advanced").append(Ns)}}function Ws(){var e=Kt.get(Gt.data.documentImage),t=new FileReader,n=document.querySelector(".text-box__image");t.addEventListener("load",(function(){Fs=t.result,n.src=t.result.toString()})),t.readAsDataURL(e)}function zs(e,t){var n=document.createDocumentFragment(),r=document.createElement("p");r.classList.add("booking__err-message"),r.innerHTML=e,n.appendChild(r),t instanceof HTMLElement?t.after(n):document.querySelector(".".concat(t)).after(n),vt(document.querySelector(".booking__err
6-message"))}function $s(){Is()(".booking__err-message").remove()}var Ys,Zs=(Ys=!1,function(e){if(!Ys){if(Ys=!0,!e||0===e.split(",").length)return void document.getElementById("mainEmail").click();var t,n=Ds(e.split(","));try{for(n.s();!(t=n.n()).done;){var r=t.value;document.querySelector("input[name='booking.main.".concat(r.trim(),"']")).click()}}catch(e){n.e(e)}finally{n.f()}}});function Ks(){var e=[];return document.querySelectorAll('input[name^="booking.main"]').forEach((function(t){t.checked&&e.push(t.getAttribute("data-shorthand"))})),e}function Xs(){var e=[];if(Kt.get(Gt.data.documentImage)){var t=Kt.get(Gt.data.documentImage).name,n=Kt.get(Gt.data.documentImage).type,r=Fs.split(";base64,")[1];e.push({FILENAME:t,MIMETYPE:n,CONTENT_BASE64:r})}if(Kt.get(Gt.booking.noteImage)){var a=Kt.get(Gt.booking.noteImage).name,i=Kt.get(Gt.booking.noteImage).type,o=Bs.split(";base64,")[1];e.push({FILENAME:a,MIMETYPE:i,CONTENT_BASE64:o})}return Kt.get(Gt.service.complaintImage)&&js.forEach((function(t,n){var r=Kt.get(Gt.service.complaintImage)[n].name,a=Kt.get(Gt.service.complaintImage)[n].type,i=t.split(";base64,")[1];e.push({FILENAME:r,MIMETYPE:a,CONTENT_BASE64:i})})),e}function Js(e){var t="";return"m"===e?t="0002":"f"===e&&(t="0001"),t}var Qs=function(e,t){return e.getAttribute("accept").split(", ").includes(t)};function ec(){var e=document.querySelector("#notes-document-photo"),t=document.querySelector("#notes-document-preview"),n=document.querySelector("#notes-document-preview-wrapper"),r=document.querySelector(".notes-input__file-upload-custom-button-wrapper"),a=document.querySelector(".notes-input__file-upload-exceeds-limit");e.addEventListener("change",(function(i){var o,s,c=i.target.files[0],l=(o=c.name,"."+(s=o.split("."))[s.length-1]),u=new FileReader;u.addEventListener("load",(function(){t.src=u.result.toString(),Qs(e,l)&&(Bs=u.result,n.classList.remove("d-none"),r.classList.add("d-none"))})),c.size>5242880||!Qs(e,l)?(i.target.value="",r.classList.remove("d-none"),n.classList.add("d-none"),a.classList.remove("d-none")):(a.classList.add("d-none"),u.readAsDataURL(c))})),document.querySelector("#notes-upload-preview-delete").addEventListener("click",(function(a){n.classList.add("d-none"),r.classList.remove("d-none"),t.src="",e.value=""}))}function tc(){var e,t,n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b,w,S,C,E,x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Hs(this,void 0,void 0,ht().mark((function A(){var k,T,L,I,D,P,O,R,M,q,N,V,F,B,j,H,G,U,W,z,$,Y,Z,K,X,J,Q,ee,te,ne,re,ae,ie,oe,se,ce,le,ue,de,he,pe,fe,me;return ht().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return k=new fr.y,"theme.amag.noncaptive"===(T=document.getElementById("amag-infrastructure-info")).dataset.theme&&"porsche"===T.dataset.project&&(k.textColor="#000000",k.color="var(--componentIconColor)"),k.$.css("top","-10px"),k.show(Is()("#booking__confirmation-page").closest(".tab-pane")),A.next=7,vt(document.querySelector(".booking__headline"));case 7:if(L=document.querySelector("#booking__confirmation-page").getAttribute("href"),I=[],D=[],P=[],O=[],R=[],M=[],q=[],!((N=Ks()).length>0)){A.next=109;break}A.prev=17,V=Ds(Kt.get(Gt.service.selectedServices));try{for(V.s();!(F=V.n()).done;)(B=F.value).service.id!==Hi.OTV_ONLY_TEXT_SERVICE&&(M=[].concat((0,ut.A)(M),(0,ut.A)(B.serviceBookingObject))),I.push.apply(I,(0,ut.A)(B.serviceTextFields)),B.serviceTextareaFields&&D.push.apply(D,(0,ut.A)(B.serviceTextareaFields)),B.serviceComplaintDate&&P.push.apply(P,(0,ut.A)(B.serviceComplaintDate)),B.serviceComplaintFrequency&&O.push.apply(O,(0,ut.A)(B.serviceComplaintFrequency)),B.serviceComplaintSpecialTextarea&&R.push.apply(R,(0,ut.A)(B.serviceComplaintSpecialTextarea))}catch(e){V.e(e)}finally{V.f()}j=I.map((function(e){return e.join(": ")})).join("; "),"true"===Kt.get(Gt.garage.replacementCar)&&(H=document.getElementById("amag-infrastructure-info"),G="theme.amag.noncaptive"===H.dataset.theme&&"porsche"===H.dataset.project?Granite.I18n.get("apps.amag-ch.components.content.otv.booking.porsche.replacementCarLbrValDesc"):Granite.I18n.get("apps.amag-ch.components.c
6ontent.otv.booking.replacementCarLbrValDesc"),M.push({LBRVAL_ID:Ko(),LBRVAL_DESC:G})),D&&(U=D.map((function(e){return e.join(" + ")})).join(" + ").replace(/(?:\r\n|\r|\n)/g,""),P&&P[0]&&P[0][1].length>0&&(U=U.concat(" + ","".concat(P.map((function(e){return e.join(" + ")})).join(" + ").replace(/(?:\r\n|\r|\n)/g,"")))),O&&O[0]&&O[0][1].length>0&&(U=U.concat(" + ","".concat(O.map((function(e){return e.join(" + ")})).join(" + ").replace(/(?:\r\n|\r|\n)/g,"")))),R&&R[0]&&R[0][1].length>0&&(U=U.concat(" + ","".concat(R.map((function(e){return e.join(" + ")})).join(" + ").replace(/(?:\r\n|\r|\n)/g,"")))),W=null!==(e=M.findIndex((function(e){return Hi.COMPLAINT===e.LBRVAL_ID})))&&void 0!==e?e:0,M[W]=Object.assign(Object.assign({},M[W]),{REMARKS_TEXT:U})),z=document.querySelector("html").getAttribute("lang"),Kt.store(Gt.booking.message,Kt.get(Gt.service.note)||""),$="".concat(Kt.get(Gt.service.note)?"Service note: ".concat(Kt.get(Gt.service.note),"; "):"").concat(j),Y=Ds(Kt.get(Gt.service.selectedServices));try{for(Y.s();!(Z=Y.n()).done;)(K=Z.value).service.id===Hi.OTV_ONLY_TEXT_SERVICE&&q.push("".concat(K.service.name,": ").concat(K.service.subline))}catch(e){Y.e(e)}finally{Y.f()}return q.length>0&&($="".concat($?$+" | ":"","Additional Services: ").concat(q.join(" | "))),$=pi(fi($)),A.next=32,br.getJwtToken();case 32:if(A.t0=A.sent,A.t1=Kt.get(Gt.appointment.object).VISIT_DATETIME,A.t2=Kt.get(Gt.car.brandId),A.t3=Kt.get(Gt.car.modelId),A.t4=Kt.get(Gt.data.chassisNumber),A.t5=Kt.get(Gt.data.licensePlate),A.t6=zi.getRegistrationIsoDateFromUserInput(Kt.get(Gt.data.initialRegistration)),A.t7=parseInt(Kt.get(Gt.data.mileage)),A.t8=M,A.t9=[Kt.get(Gt.appointment.object)],A.t10=$,A.t11=N.join(","),A.t12=Xs(),J={CDC_TOKEN:A.t0,VISIT_DATETIME:A.t1,MAKE_CODE:A.t2,MODEL_CODE:A.t3,VIN:A.t4,LIC_PLATE:A.t5,REG_DATE:A.t6,MILEAGE:A.t7,LaboursNav:A.t8,LocationsNav:A.t9,REMARKS:A.t10,PREFERRED_COMM:A.t11,AttachmentNav:A.t12,ZZVO_TITLE:"",ZZVO_NAME1:"",ZZVO_NAME2:"",ZZVO_TITLE_DESC:""},Q={VISIT_DATETIME:Kt.get(Gt.appointment.object).VISIT_DATETIME,MAKE_CODE:Kt.get(Gt.car.brandId),MODEL_CODE:Kt.get(Gt.car.modelId),VIN:Kt.get(Gt.data.chassisNumber),LIC_PLATE:Kt.get(Gt.data.licensePlate),REG_DATE:zi.getRegistrationIsoDateFromUserInput(Kt.get(Gt.data.initialRegistration)),MILEAGE:parseInt(Kt.get(Gt.data.mileage)),LaboursNav:M,LocationsNav:[Kt.get(Gt.appointment.object)],REMARKS:$,PREFERRED_COMM:N.join(","),AttachmentNav:Xs(),CAPTCHA_TOKEN:x,ZZVO_TITLE:"",ZZVO_NAME1:"",ZZVO_NAME2:"",ZZVO_TITLE_DESC:""},ee={MAKE_CODE:Kt.get(Gt.car.brandId),MODEL_CODE:Kt.get(Gt.car.modelId),LIC_PLATE:Kt.get(Gt.data.licensePlate),REG_DATE:zi.getRegistrationIsoDateFromUserInput(Kt.get(Gt.data.initialRegistration)),VIN:Kt.get(Gt.data.chassisNumber),MILEAGE:Kt.get(Gt.data.mileage)?parseInt(Kt.get(Gt.data.mileage)):null,MILEAGE_UOM:null,MILEAGE_UOMISO:null,VEH_NO:Kt.get(Gt.car.vehicleNumber),VH_OBJ_TYPE:Kt.get(Gt.car.vehicleObjectType),VH_OBJ_NUMBER:Kt.get(Gt.car.vehicleObjectNumber),USERID:"",VHGUID:"",ZZVO_TITLE:"",ZZVO_NAME1:"",ZZVO_NAME2:"",ZZVO_TITLE_DESC:"",APPORIGIN:!!Kt.get(Gt.appVehicle.fromApp)||!!Kt.get(Gt.appVehicle.fromSRS),CARADAPTERTIMESTAMP:Kt.get(Gt.appVehicle.carAdapterTimeStamp)},Kt.get(Gt.data.vehicleHolder.self)||(J.ZZVO_TITLE=null!==(t=Kt.get(Gt.data.vehicleHolder.salutation))&&void 0!==t?t:"",J.ZZVO_NAME1=null!==(n=Kt.get(Gt.data.vehicleHolder.holder))&&void 0!==n?n:"",J.ZZVO_NAME2=null!==(r=Kt.get(Gt.data.vehicleHolder.name))&&void 0!==r?r:"",J.ZZVO_TITLE_DESC=null!==(a=Kt.get(Gt.data.vehicleHolder.salutationText))&&void 0!==a?a:"",Q.ZZVO_TITLE=null!==(i=Kt.get(Gt.data.vehicleHolder.salutation))&&void 0!==i?i:"",Q.ZZVO_NAME1=null!==(o=Kt.get(Gt.data.vehicleHolder.holder))&&void 0!==o?o:"",Q.ZZVO_NAME2=null!==(s=Kt.get(Gt.data.vehicleHolder.name))&&void 0!==s?s:"",Q.ZZVO_TITLE_DESC=null!==(c=Kt.get(Gt.data.vehicleHolder.salutationText))&&void 0!==c?c:"",ee.ZZVO_TITLE=null!==(l=Kt.get(Gt.data.vehicleHolder.salutation))&&void 0!==l?l:"",ee.ZZVO_NAME1=null!==(u=Kt.get(Gt.data.vehicleHolder.holder))&&void 0!==u?u:"",ee.ZZVO_NAME2=null!==(d=Kt.get(Gt.data.vehicleHolder.name))&&void 0!==d?d:"",ee.ZZVO_TITLE_DESC=null!==(h=Kt.get(Gt.data.vehicleHolder.salutationText))&&void 0!==h?h:""),ne=Kt.get(Gt.data.isGuest)){A.next=56;break}return A.next=53,br.getJwtToken();case 53:A.t13=A.sent,A.t14={USERID:"",COUNTRY:"",REGION:"",MOB_NUMBER:"",TITLE_DESC:"",COUNTRY_ISO:"de",TITLE:"0002",NAME1:"",NAME2:"",EMAIL_ADDR:"",C
6ITY:"",POST_CODE:"",STREET:"",HOUSE_NUM:"",COMM_LANGU_ISO:"DE"},te={USERID:"",CDC_TOKEN:A.t13,ProfileNav:A.t14};case 56:return re=Kt.get(Gt.service.fastlane)?{ACTION:"X",USER_PROFILE_UPD:!1,COUNTRY_ISO:null,ParameterNav:[{APARAM_ID:"CBCK",STATE:!1},{APARAM_ID:"ZWAI",STATE:!0},{APARAM_ID:"INFO",STATE:!1},{APARAM_ID:"REMA",STATE:!1},{APARAM_ID:"ZCC1",STATE:!1},{APARAM_ID:"ZCC2",STATE:!1},{APARAM_ID:"WAIT",STATE:!0}]}:{ACTION:"X",USER_PROFILE_UPD:!1,COUNTRY_ISO:null,ParameterNav:[{APARAM_ID:"CBCK",STATE:!1},{APARAM_ID:"INFO",STATE:!1},{APARAM_ID:"REMA",STATE:!1},{APARAM_ID:"ZCC1",STATE:!1},{APARAM_ID:"ZCC2",STATE:!1},{APARAM_ID:"WAIT",STATE:!0},{APARAM_ID:"SAD1",STATE:!0},{APARAM_ID:"SAD2",STATE:!0}]},N.includes("E")&&(re.ParameterNav.find((function(e){return"ZCC1"===e.APARAM_ID})).STATE=!0),N.includes("S")&&(re.ParameterNav.find((function(e){return"ZCC2"===e.APARAM_ID})).STATE=!0),(N.includes("S")||N.includes("E"))&&(ae=re.ParameterNav.find((function(e){return"INFO"===e.APARAM_ID})),ie=re.ParameterNav.find((function(e){return"REMA"===e.APARAM_ID})),ae.STATE=!0,ie.STATE=!0),ve=void 0,(ve=document.querySelector("#callBack-checkbox"))&&ve.checked&&(re.ParameterNav.find((function(e){return"CBCK"===e.APARAM_ID})).STATE=!0),ne?(oe={TITLE:Js(Kt.get(Gt.data.salutation)),NAME1:Kt.get(Gt.data.firstName),NAME2:Kt.get(Gt.data.lastName),CITY:Kt.get(Gt.data.city),POST_CODE:Kt.get(Gt.data.postCode),STREET:Kt.get(Gt.data.street),HOUSE_NUM:Kt.get(Gt.data.houseNumber),COUNTRY_ISO:Kt.get(Gt.data.country),REGION:Kt.get(Gt.data.canton)||"",EMAIL_ADDR:Kt.get(Gt.data.mailAddress),MOB_NUMBER:Kt.get(Gt.data.phoneNumber),COMM_LANGU_ISO:z},Q=Object.assign(Object.assign(Object.assign({},re),Q),oe)):(se={TITLE:Js(null===(p=Vs.profile)||void 0===p?void 0:p.gender),NAME1:Vs.profile.firstName,NAME2:Vs.profile.lastName,CITY:(null===(m=null===(f=Vs.addresses)||void 0===f?void 0:f.private)||void 0===m?void 0:m.city)||"",POST_CODE:(null===(g=null===(v=Vs.addresses)||void 0===v?void 0:v.private)||void 0===g?void 0:g.zipCode)||"",STREET:(null===(_=null===(y=Vs.addresses)||void 0===y?void 0:y.private)||void 0===_?void 0:_.street)||"",HOUSE_NUM:(null===(w=null===(b=Vs.addresses)||void 0===b?void 0:b.private)||void 0===w?void 0:w.houseNumber)||"",EMAIL_ADDR:Vs.profile.email,MOB_NUMBER:document.querySelector(".booking__phone-number-input")?document.querySelector(".booking__phone-number-input").value:(null===(C=null===(S=Vs.profile)||void 0===S?void 0:S.phones)||void 0===C?void 0:C[0].number)||"",COMM_LANGU_ISO:z},J=Object.assign(Object.assign(Object.assign({},re),J),se),te.ProfileNav=Object.assign(Object.assign({},te.ProfileNav),se)),$s(),A.prev=63,ce={event:"ga4Event",eventName:"OTV_booking_request",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 8 - Termin erfolgreich gebucht",eventParameter3:"carBrand",fieldValue3:Kt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Kt.get(Gt.car.model)},(0,it.eo)(ce,7.1),A.next=68,jo(ne?Q:J,ne);case 68:X=A.sent,A.next=76;break;case 71:return A.prev=71,A.t15=A.catch(63),k.remove(),zs("".concat(Granite.I18n.get("apps.amag-ch.components.content.otv.booking.submitBookingErr")),"booking__agb-container"),A.abrupt("return");case 76:if(""===X.d.APPOINTMENT_ID){A.next=98;break}if(le=document.querySelector(".choose-date__time.is-active").getAttribute("data-appointment-desc"),ne){A.next=89;break}return A.next=81,zi.construct(ee);case 81:return ue=A.sent,A.next=84,Zo.createVehicle(ue).catch((function(e){return null}));case 84:return A.next=86,qr(te).catch((function(e){return null}));case 86:Kt.storeIntoSession(null===(E=Vs.profile)||void 0===E?void 0:E.gender,Vs.profile.lastName,le),A.next=90;break;case 89:Kt.storeIntoSession(Kt.get(Gt.data.salutation),Kt.get(Gt.data.lastName),le);case 90:de=1*Kt.get(Gt.garage.garageSelection),he=Kt.get(Gt.garage.allGaragesData),pe=he.find((function(e){return e._id===de})),fe=qo(qo(qo({},Gt.waitingServiceObj.garageId,pe._id),Gt.waitingServiceObj.garageTeamPageLink,pe._teamPageLink?pe._teamPageLink:""),Gt.waitingServiceObj.garageSellingBrandIds,pe._sellingBrandIds?pe._sellingBrandIds:""),sessionStorage.setItem(Gt.waitingService,JSON.stringify(fe)),window.location.href="".concat(L),A.next=100;break;case 98:k.remove(),zs("".concat(Granite.I18n.get("apps.amag-ch.components.c
6ontent.otv.booking.appointmentNotAvailableErrMessage")),"booking__section-garage");case 100:A.next=107;break;case 102:A.prev=102,A.t16=A.catch(17),k.remove(),console.error(A.t16),zs("".concat(Granite.I18n.get("apps.amag-ch.components.content.otv.booking.submitBookingErr")),"booking__agb-container");case 107:A.next=113;break;case 109:$s(),k.remove(),me=document.querySelectorAll(".booking__appointments-notification-label"),zs("".concat(Granite.I18n.get("apps.amag-ch.components.content.otv.booking.notificationErr")),me[1]);case 113:case"end":return A.stop()}var ve}),A,null,[[17,102],[63,71]])})))}function nc(e){var t=e.id,n=e.onCompleted;if(!t)throw new Error("Captcha id is not defined");if(n||console.warn("No oncomplete callback defined"),window.onCompleted)throw new Error("onCompleted callback already defined on window");var r=document.getElementById(t);if(!r)throw new Error("Captcha element with id ".concat(t," not found on page"));var a=null,i=new Promise((function(e){a=e}));r.dataset.callback="onCompleted",window.onCompleted=function(e){n(e),a()};return{isCompleted:i,execute:function(){return grecaptcha.execute()}}}var rc=__webpack_require__(74692);function ac(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ic(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ic(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function ic(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var oc=function(){return(0,ft.A)((function e(t,n,r){var a=r.entryTab,i=r.name;(0,pt.A)(this,e),this._name=i,this._tabIndex=a?-1:e._tabsCounter++,this._contentHtmlId="otv-tab-".concat(this._tabIndex,"-content"),this._headerHtmlId="otv-tab-".concat(this._tabIndex,"-header"),this._title=t,this._content=n,this._entryTab=a,this._$header=rc('\n <li class="nav-item '.concat(a?"d-none":"",'" role="presentation">\n <a class="nav-link" id="').concat(this._headerHtmlId,'"\n data-toggle="tab"\n href="#').concat(this._contentHtmlId,'"\n role="tab"\n aria-controls="').concat(this._contentHtmlId,'"\n aria-selected="false"\n data-tab-index="').concat(this._tabIndex,'"\n data-tab-number="').concat(this._tabIndex+1,'">').concat(this._title,"</a>\n </li>")),this._$headerNavLink=this._$header.find("a.nav-link"),this._$headerNavLink.data("tab",this),this._$checkedIcon=rc('<svg class="checked-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M7.00123 23.999C6.86923 23.999 6.74023 23.946 6.64723 23.852L0.147227 17.352C-0.0477734 17.157 -0.0477734 16.84 0.147227 16.645C0.241227 16.551 0.367227 16.499 0.501226 16.499C0.635226 16.499 0.760227 16.551 0.855227 16.645L6.93823 22.728L23.0942 0.208C23.1882 0.078 23.3402 0 23.5002 0C23.6052 0 23.7062 0.032 23.7912 0.094C23.9002 0.172 23.9712 0.287 23.9932 0.419C24.0152 0.551 23.9842 0.683 23.9062 0.792L7.40623 23.792C7.32023 23.911 7.18723 23.987 7.04123 23.999C7.03523 23.998 7.00823 23.999 7.00123 23.999Z" fill="#006431" stroke="#006431" stroke-width="0.5"/>\n </svg>'),this._$headerNavLink.prepend(this._$checkedIcon),this._panes=[],this._$content=rc('<div class="tab-pane" id="'.concat(this._contentHtmlId,'" role="tabpanel" aria-labelledby="').concat(this._headerHtmlId,'"></div>')),this._$content.append(this._content),this.initPanes()}),[{key:"isValid",get:function(){var e=!0,t=this._$content.find("input[data-validation], select, textarea[data-validation]");if(this._entryTab&&!this.active)return e;var n,r=ac(t);try{for(r.s();!(n=r.n()).done;){var a=n.value,i=yo(rc(a));i?"SELECT"===a.nodeName?a.parentNode.classList.remove("state--invalid"):a.classList.remove("state--invalid"):"SELECT"===a.nodeName?a.parentNode.classList.add("state--invalid"):a.classList.add("state--invalid"),e=e&&i}}catch(e){r.e(e)}finally{r.f()}return this._$content.toggleClass("invalid",!e),e}},{key:"initPanes",value:function(){var e=this,t=this._$content.find("pane");if(t.length){var n=this.getPaneNavigation();t.each((function(t,n){var r=new Ro(rc(n));r.tab=e,0===t&&e.setForwardsBtnText(r),e._panes.push(r)})),this._$content.html(""),this._$content.append(this._panes.map((function(e){return e.element})),n),this.selectPane(this._panes[0].name,!0)}}},{key:"getPaneNavigation",value:function(){var e=this;
6return this._$navigationContainer||(this._$forwardButton=rc('<button class="tab-pane__navigation-forwards">'.concat(Granite.I18n.get("apps.amag-ch.components.content.otv.paneNavigation.forwards"),"</button>")),this._$backwardButton=rc('<button class="tab-pane__navigation-backwards">'.concat(Granite.I18n.get("apps.amag-ch.components.content.otv.paneNavigation.backwards"),"</button>")),this._$navigationContainer=rc('<div class="tab-pane__navigation-container"></div>'),this._$navigationContainer.append(this._$forwardButton,this._$backwardButton),this._$forwardButton.on("click",(function(){return e.selectNextPane()})),this._$backwardButton.on("click",(function(){return e.selectPreviousPane()}))),this._$navigationContainer}},{key:"storePaneContent",value:function(e){e.element.find("input[name][type=text], input[name][type=number], input[name][type=file], input[name][type=radio]:checked, input[name][type=checkbox]:checked, textarea[name]").each((function(e,t){var n=rc(t);if("file"===n.attr("type"))Kt.store(n.attr("name"),t.files[0]);else Kt.store(n.attr("name"),di(n.val()))}))}},{key:"selectNextPane",value:(e=(0,lt.A)(ht().mark((function e(){var t,n,r,a,i;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t={preventDefault:!1},n=this._getActivePaneIndex(),(r=this.getActivePane()).isValid){e.next=6;break}return document.querySelectorAll("select.invalid, input.invalid")[0].scrollIntoView({behavior:"smooth",block:"center"}),this.triggerSideEffectsForInvalidPanes(),e.abrupt("return");case 6:if(rc(".tab-pane__navigation-error-msg").length>0&&rc(".tab-pane__navigation-error-msg").remove(),this.storePaneContent(r),dc.getInstance().contentComponent.trigger("otv.navigateForward",[t]),!t.preventDefault){e.next=11;break}return e.abrupt("return");case 11:if(a=this._panes[n+1],!this._$navigationContainer.data("targetTabAndPane")){e.next=15;break}return Eo(this._$navigationContainer.data("targetTabAndPane")),e.abrupt("return");case 15:if(a){e.next=28;break}if(i=dc.getInstance().selectTab(this.tabIndex+1)){e.next=26;break}if(!Kt.get(Gt.data.isGuest)){e.next=22;break}this.executeCaptcha(),e.next=24;break;case 22:return e.next=24,tc();case 24:return window.sessionStorage.getItem("garage.presetGarage")&&window.sessionStorage.removeItem("garage.presetGarage"),e.abrupt("return");case 26:return i.hasPanes()&&(yt(!1),window.scrollTo(0,0),yt(!0)),e.abrupt("return");case 28:this.setForwardsBtnText(a),this.selectPane(a.name);case 30:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"executeCaptcha",value:function(){return this._captcha||(this._captcha=nc({id:"recaptcha",onCompleted:function(e){tc(e)}})),this._captcha.execute()}},{key:"selectPreviousPane",value:function(){if("services-overview"===this.getActivePane().name){var e=this.tabContent.content;rc(".all-services__wrapper--serviceCategories").length>0&&(e.removeClass("active"),rc("#otv-tab--1-content").addClass("active"),rc("#otv-tab-0-header").removeClass("active"),rc("#otv-tab--1-header").addClass("active"),rc(".active-tab-border").css({left:0,width:0}),yt(!1),window.scrollTo(0,0),yt(!0))}!function(){var e={valid:!0};if(dc.getInstance().contentComponent.trigger("otv.navigateBack",[e]),!e.valid)return!0;var t=1===bo.length;0!==bo.length&&(Eo(bo.pop()),bo.pop(),t&&(bo=[]),So())}()}},{key:"_getActivePaneIndex",value:function(){var e;return this._panes.forEach((function(t,n){t.isActive&&(e=n)})),e}},{key:"setForwardsBtnText",value:function(e){this._$forwardButton.text(e.forwardBtnText)}},{key:"getActivePane",value:function(){return this._panes.filter((function(e){return e.isActive}))[0]}},{key:"getPane",value:function(e){return this._panes.filter((function(t){return t.name===e}))[0]}},{key:"tabContent",get:function(){return{header:this._$header,content:this._$content}}},{key:"hasPanes",value:function(){return this._panes.length>0}},{key:"tabIndex",get:function(){return this._tabIndex}},{key:"name",get:function(){return this._name}},{key:"active",get:function(){return this._$headerNavLink.hasClass("active")},set:function(e){this._$header.find("a").toggleClass("active",e).attr("aria-selected",e),this._$content.toggleClass("show active",e)}},{key:"selectPane",value:function(e,t){t||Co("".concat(this.name,".").concat(this.getActivePane().name)),this._panes.forEac
6h((function(e){return e.hide()}));var n=this.getPane(e);n.show(),this._$forwardButton.toggleClass("d-none",n.hideForwardButton)}},{key:"checked",set:function(e){this._$headerNavLink.toggleClass("checked",e)}},{key:"panes",get:function(){return this._panes}},{key:"triggerSideEffectsForInvalidPanes",value:function(){if(0===rc(".tab-pane__navigation-error-msg").length){var e=rc(".tab-pane__navigation-container"),t=rc(".services-summary__wrapper .invalid").toArray().map((function(e){return e.classList}));t[0]&&t[0].contains("invalid--hasBookableServices")&&rc('<div class="tab-pane__navigation-error-msg coupon-error-message"><span>'.concat(Granite.I18n.get("apps.amag-ch.components.content.otv.paneNavigation.errorMessage.couponValidation"),"</span></div>")).insertBefore(e)}}}]);var e}();oc._tabsCounter=0;var sc=__webpack_require__(74692);function cc(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return lc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function lc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var uc="amag-component-tab",dc=function(){function e(t){var n=this;(0,pt.A)(this,e),this._$element=t,this._$target=this._$element.parent(),this._tabs=[],t.find("> tab").each((function(e,t){var r=t.hasAttribute("entry"),a=new oc(t.getAttribute("data-title"),t.innerHTML,{entryTab:r,name:t.getAttribute("name")});a.active=n.hasCarSelected?1===e:0===e,n._tabs.push(a)})),this._createComponentStructure(),e._instance=this,window.addEventListener("resize",(function(){return n._updateActiveTabBorder()})),window.addEventListener("scroll",(function(){var e=document.getElementById("amag-infrastructure-info"),t=n._$tabHeaderNavigationContainer.height(),r=n._$tabHeaderFixedContainer.hasClass("nav-open"),a=document.querySelector("theme.amag.noncaptive"===e.dataset.theme&&"porsche"===e.dataset.project?".generic-header":".amag-header"),i=n._$carSelectionContainer.outerHeight();a&&(n._$tabHeaderFixedContainer.toggleClass("nav-open","0px"===a.style.top),r&&(i+=a.offsetHeight)),n._$tabHeaderFixedContainer.offset().top+window.scrollY>i?(window.innerWidth<=1200&&n._$tabHeaderFixedContainer.css("padding-bottom","".concat(t,"px")),n._$tabHeaderNavigationContainer.css({position:window.innerWidth>1200?"relative":"fixed",top:"",width:"100%"}),it.lp.isMobile()||it.lp.isTablet()?n._$tabHeaderNavigationContainer.css({transition:"top 350ms ease"}):setTimeout((function(){return n._$tabHeaderNavigationContainer.css({transition:"top 350ms ease"})}))):(n._$tabHeaderFixedContainer.css("padding-bottom","0px"),n._$tabHeaderNavigationContainer.css({position:"relative",top:0,transition:""}))}))}return(0,ft.A)(e,[{key:"currentTab",get:function(){return this._tabs.filter((function(e){return e.tabContent.header.find("a.nav-link.active").length}))[0]}},{key:"contentComponent",get:function(){return this._$tabContent}},{key:"_updateActiveTabBorder",value:function(e){var t=e||this._$target.find("li.nav-item a.nav-link.active");this._$activeTabBorder.css({left:t.offset().left+this._tabHeader.scrollLeft(),width:t.outerWidth()})}},{key:"_createComponentStructure",value:function(){var e=this;this._tabHeader=sc('<ul class="nav nav-fill amag-otv-tab-header" id="'.concat(uc,'_tab-header" role="tablist"></ul>')),this._$tabHeaderContainer=sc('<div class="tab-header-container"></div>'),this._$tabHeaderFixedContainer=sc('<div class="sticky-anchor"></div>'),this._tabHeader.on("scroll",(function(){return e._updateNavigationButtons()})),this._$tabContent=sc('<div class="tab-content" id="'.concat(uc,'_tab-content"></div>')),this._$activeTabBorder=sc('<div class="active-tab-border"></div>'),this._$tabHeaderNavigationContainer=sc('<div class="tab-header-navigation-container"></div>
6'),this._$navigateLeftBtn=sc('<div class="scroll-left"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.867 11.9603C18.867 12.2463 18.744 12.5193 18.531 12.7093L5.95698 23.8333C5.75098 24.0163 5.43398 23.9973 5.25198 23.7903C5.17098 23.6983 5.12598 23.5813 5.12598 23.4593C5.12598 23.3163 5.18798 23.1793 5.29498 23.0843L17.868 11.9593L5.29498 0.833311C5.18798 0.738312 5.12598 0.60231 5.12598 0.458311C5.12598 0.336311 5.17098 0.218311 5.25098 0.127312C5.43398 -0.079689 5.75098 -0.0986901 5.95698 0.0843105L18.531 11.2103C18.561 11.2363 18.588 11.2643 18.614 11.2933C18.778 11.4793 18.867 11.7153 18.867 11.9603Z" fill="#172983"></path></svg></div>'),this._$navigateRightBtn=sc('<div class="scroll-right"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.867 11.9603C18.867 12.2463 18.744 12.5193 18.531 12.7093L5.95698 23.8333C5.75098 24.0163 5.43398 23.9973 5.25198 23.7903C5.17098 23.6983 5.12598 23.5813 5.12598 23.4593C5.12598 23.3163 5.18798 23.1793 5.29498 23.0843L17.868 11.9593L5.29498 0.833311C5.18798 0.738312 5.12598 0.60231 5.12598 0.458311C5.12598 0.336311 5.17098 0.218311 5.25098 0.127312C5.43398 -0.079689 5.75098 -0.0986901 5.95698 0.0843105L18.531 11.2103C18.561 11.2363 18.588 11.2643 18.614 11.2933C18.778 11.4793 18.867 11.7153 18.867 11.9603Z" fill="#172983"></path></svg></div>'),this._$navigateLeftBtn.click((function(){return e._scrollLeft()}
6)),this._$navigateRightBtn.click((function(){return e._scrollRight()})),this._$carSelectionContainer=sc('<div class="car-selection-container"></div>'),this._$carSelectionIcon=sc('<svg class="car-selection-icon" width="32" height="26" viewBox="0 0 32 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M26 25.6667C24.8973 25.6667 24 24.7693 24 23.6667V23H8V23.6667C8 24.7693 7.10267 25.6667 6 25.6667H3.33333C2.23067 25.6667 1.33333 24.7693 1.33333 23.6667V22.8853C0.546667 22.6067 0 21.8533 0 21V14.3333C0 14.2893 0.00266667 14.2453 0.00533333 14.2027L0.008 14.1613C-0.00133333 14.0813 0.00266667 14.0053 0.02 13.9307C0.044 13.5707 0.101333 13.212 0.188 12.8653C0.189333 12.8507 0.197333 12.8053 0.217333 12.752C0.552 11.5333 1.26667 10.4533 2.23733 9.66667H1.33333C0.598667 9.66667 0 9.06801 0 8.33334V7.00001C0 6.26534 0.598667 5.66668 1.33333 5.66668H3.33333C3.54267 5.66668 3.74133 5.76668 3.86667 5.93334L4.932 7.35334L5.63733 3.11868C5.90667 1.50534 7.28933 0.333344 8.92533 0.333344H23.0747C24.7107 0.333344 26.0933 1.50401 26.3627 3.11868L27.068 7.35334L28.1333 5.93334C28.2587 5.76668 28.4573 5.66668 28.6667 5.66668H30.6667C31.4027 5.66668 32 6.26534 32 7.00001V8.33334C32 9.06801 31.4027 9.66667 30.6667 9.66667H29.7627C30.7333 10.4533 31.448 11.5333 31.7813 12.752C31.8027 12.808 31.8107 12.8587 31.8173 12.8947C31.9 13.2133 31.956 13.5707 31.98 13.9307C31.9973 14.004 32.0013 14.0813 31.992 14.1613L31.9947 14.2027C31.9973 14.2467 32 14.2893 32 14.3333V21C32 21.8533 31.4533 22.6067 30.6667 22.8853V23.6667C30.6667 24.7693 29.7693 25.6667 28.6667 25.6667H26ZM25.3333 23.6667C25.3333 24.0347 25.632 24.3333 26 24.3333H28.6667C29.0347 24.3333 29.3333 24.0347 29.3333 23.6667V23H25.3333V23.6667ZM2.66667 23.6667C2.66667 24.0347 2.96533 24.3333 3.33333 24.3333H6C6.368 24.3333 6.66667 24.0347 6.66667 23.6667V23H2.66667V23.6667ZM30 21.6667C30.368 21.6667 30.6667 21.368 30.6667 21V15.7493C30.0773 16.1293 29.3933 16.3333 28.684 16.3333H24.7947L22.1907 17.372C21.6947 17.552 21.188 17.6493 20.6773 17.6653L10.6667 17.6667C10.12 17.6467 9.60533 17.5253 9.12667 17.308L7.176 16.3333H3.33333C2.60667 16.3333 1.92 16.1307 1.33333 15.752V21C1.33333 21.368 1.632 21.6667 2 21.6667H6.25467L6.92133 20.3333H3.33333C2.96533 20.3333 2.66667 20.0347 2.66667 19.6667C2.66667 19.2987 2.96533 19 3.33333 19H28.6667C29.0347 19 29.3333 19.2987 29.3333 19.6667C29.3333 20.0347 29.0347 20.3333 28.6667 20.3333H25.0787L25.7453 21.6667H30ZM24.2547 21.6667L23.588 20.3333H8.412L7.74533 21.6667H24.2547ZM9.70133 16.1053C10.004 16.2427 10.3413 16.3213 10.692 16.3347H20.6573C21.0093 16.324 21.3693 16.2533 21.7173 16.128L24.104 15.176L24.48 13.6693H7.52L7.90533 15.2107L9.70133 16.1053ZM28.6667 15C29.4813 15 30.208 14.604 30.644 13.9333C30.636 13.8373 30.628 13.7493 30.616 13.6667H25.8533L25.52 15H28.6667ZM1.356 13.9347C1.788 14.604 2.512 15 3.30933 15H6.48L6.14667 13.6667H1.38267C1.372 13.7507 1.364 13.84 1.356 13.9347ZM30.2093 12.3333C29.4413 10.7213 27.8053 9.66667 26 9.66667H6C4.19467 9.66667 2.55733 10.72 1.79067 12.3333H30.2093ZM30.6667 8.33334V7.00001H29L28 8.33334H30.6667ZM25.88 8.33334L25.048 3.33734C24.8867 2.36934 24.056 1.66668 23.0747 1.66668H8.92533C7.944 1.66668 7.11333 2.36934 6.952 3.33734L6.12 8.33334H25.88ZM1.33333 8.33334H4L3 7.00001H1.33333V8.33334Z" fill="#222222"/></svg>'),this._$carSelectionTextContainer=sc('<p class="car-selection-text">'.concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.title"),'<span class="car-text"></span></p>')),this._$carSelectionText=this._$carSelectionTextContainer.find("span.car-text")}},{key:"render",value:function(){var e=this;this._$target.html(""),this._$target.append(this._$tabHeaderContainer.append(this._$tabHeaderFixedContainer.append(this._$carSelectionContainer.append(this._$carSelectionIcon,this._$carSelectionTextContainer),this._$tabHeaderNavigationContainer.append(this._tabHeader.append(this._tabs.map((function(e){return e.tabContent.header})),this._$activeTabBorder),this._$navigateLeftBtn,this._$navigateRightBtn))),this._$tabContent.append(this._tabs.map((function(e){return e.tabContent.content}
6)))),ko(),this._tabs.forEach((function(t){var n=function(t){return e._onTabShow(t)},r=function(t){return e._onAfterTabShow(t)},a=t.tabContent.header.find("> a");a.off("show.bs.tab",n),a.on("show.bs.tab",n),a.off("shown.bs.tab",r),a.on("shown.bs.tab",r)})),this._updateActiveTabBorder(),this._updateNavigationButtons(),this.refreshCarSelection()}},{key:"_onTabShow",value:function(e){var t=sc(e.relatedTarget),n=sc(e.target),r=t.data("tab"),a=n.data("tab");if(r.tabIndex>a.tabIndex)Co(this.getNavigationLink(r));else{if(-1===r.tabIndex){if(!(Kt.get(Gt.car.model)&&Kt.get(Gt.car.brand)))return void e.preventDefault();this.refreshCarSelection()}var i,o=cc(this._tabs);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s===a){Co(this.getNavigationLink(r));var c,l=cc(r.panes);try{for(l.s();!(c=l.n()).done;){var u=c.value;r.storePaneContent(u)}}catch(e){l.e(e)}finally{l.f()}return}if(!s.isValid)return void e.preventDefault()}}catch(e){o.e(e)}finally{o.f()}}}},{key:"getNavigationLink",value:function(e){return e||(e=this.activeTab),e.hasPanes()?e.name+"."+e.getActivePane().name:e.name}},{key:"activeTab",get:function(){return this._tabs.filter((function(e){return e.active}))[0]}},{key:"_updateNavigationButtons",value:function(){var e=this._tabHeader.scrollLeft(),t=this._tabHeader[0].scrollWidth-this._tabHeader.width()-this._tabHeader.scrollLeft();this._$navigateLeftBtn.toggleClass("d-none",!e),this._$navigateRightBtn.toggleClass("d-none",!t)}},{key:"_onAfterTabShow",value:function(e){this._updateCheckedTabsHeader(),this._updateActiveTabBorder(sc(e.currentTarget)),this.activeTab.getActivePane().element.trigger("otv.activate");var t=0;this.activeTab.tabIndex>0&&(t=25),this._tabHeader.scrollLeft(this.activeTab.tabContent.header.offset().left+this._tabHeader.scrollLeft()-t)}},{key:"_scrollLeft",value:function(){var e=this._tabHeader.scrollLeft(),t=this._tabs.filter((function(t){return t.tabContent.header.offset().left+t.tabContent.header.width()+e>e}))[0],n=0;t.tabIndex>0&&(n=25),this._tabHeader[0].scrollLeft=t.tabContent.header.offset().left+e-n}},{key:"_scrollRight",value:function(){var e=this._tabHeader.scrollLeft(),t=this._tabs.filter((function(t){return Math.floor(t.tabContent.header.offset().left+t.tabContent.header.width()+e)>e+25}))[0],n=this.getTab(t.tabIndex+1);n&&(this._tabHeader[0].scrollLeft=n.tabContent.header.offset().left+e-25)}},{key:"getTab",value:function(e){return this._tabs.filter((function(t){return t.tabIndex===e}))[0]}},{key:"selectTab",value:function(e){var t;if(e.constructor===oc)t=e;else{var n=this._tabs.filter((function(t){return t.tabIndex===e}))[0];if(!n)return void(5===e?console.warn("No Tab at index ".concat(e)):console.error("No Tab at index ".concat(e)));t=n}return t.tabContent.header.find("a.nav-link").click(),t}},{key:"_updateCheckedTabsHeader",value:function(){this._tabHeader.find("a.nav-link").removeClass("checked-tab");var e,t=cc(this._tabs);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.checked=n.tabIndex<this.activeTab.tabIndex}}catch(e){t.e(e)}finally{t.f()}}},{key:"enterSelectedCar",value:function(e){Kt.store(Gt.car.brand,e.brand),Kt.store(Gt.car.brandId,e.brandId),Kt.store(Gt.car.model,e.model),Kt.store(Gt.car.modelId,e.modelId)}},{key:"hasCarSelected",get:function(){var e=Kt.get(Gt.car.brand),t=Kt.get(Gt.car.model);return!!e&&!!t}},{key:"refreshCarSelection",value:function(){var e=Kt.get(Gt.car.brand),t=Kt.get(Gt.car.model);this._$carSelectionContainer.toggleClass("d-none",!e||!t),this._$carSelectionText.text("".concat(e," ").concat(t))}},{key:"getTabByName",value:function(e){return this._tabs.find((function(t){return t.name===e}))}}],[{key:"getInstance",value:function(t){return this._instance||(this._instance=new e(t)),this._instance}}])}();dc._instance=null,window.OTV_TABS=dc;var hc=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=document.getElementById(t)}),[{key:"toggle",value:function(){this.element.hidden=!this.element.hidden}},{key:"hide",value:function(){this.element.hidden=!0}},{key:"show",value:function(){this.element.hidden=!1}}])}();function pc(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return fc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function fc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mc=function(){return!!e})()}var vc=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},gc=function(e){function t(){return(0,pt.A)(this,t),e=this,n=t,r=arguments,n=(0,Ja.A)(n),(0,Xa.A)(e,mc()?Reflect.construct(n,r||[],(0,Ja.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,Qa.A)(t,e),(0,ft.A)(t,null,[{key:"_fetch",value:function(){return vc(this,void 0,void 0,ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,yr.Db)("otv-get-all-services");case 2:return t=e.sent,e.abrupt("return",oo(t));case 4:case"end":return e.stop()}}),e)})))}},{key:"getService",value:function(e){return vc(this,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s,c;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getData(!1);case 2:n=t.sent,r=pc(n),t.prev=4,r.s();case 6:if((a=r.n()).done){t.next=27;break}i=a.value,o=pc(i.runRecursive()),t.prev=9,o.s();case 11:if((s=o.n()).done){t.next=17;break}if((c=s.value).id!==e){t.next=15;break}return t.abrupt("return",c);case 15:t.next=11;break;case 17:t.next=22;break;case 19:t.prev=19,t.t0=t.catch(9),o.e(t.t0);case 22:return t.prev=22,o.f(),t.finish(22);case 25:t.next=6;break;case 27:t.next=32;break;case 29:t.prev=29,t.t1=t.catch(4),r.e(t.t1);case 32:return t.prev=32,r.f(),t.finish(32);case 35:case"end":return t.stop()}}),t,this,[[4,29,32,35],[9,19,22,25]])})))}},{key:"getHiddenService",value:function(e){return vc(this,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s,c;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getData(!1);case 2:n=t.sent,r=pc(n),t.prev=4,r.s();case 6:if((a=r.n()).done){t.next=27;break}i=a.value,o=pc(i.runRecursive()),t.prev=9,o.s();case 11:if((s=o.n()).done){t.next=17;break}if((c=s.value).hiddenServiceId!==e){t.next=15;break}return t.abrupt("return",c);case 15:t.next=11;break;case 17:t.next=22;break;case 19:t.prev=19,t.t0=t.catch(9),o.e(t.t0);case 22:return t.prev=22,o.f(),t.finish(22);case 25:t.next=6;break;case 27:t.next=32;break;case 29:t.prev=29,t.t1=t.catch(4),r.e(t.t1);case 32:return t.prev=32,r.f(),t.finish(32);case 35:case"end":return t.stop()}}),t,this,[[4,29,32,35],[9,19,22,25]])})))}}])}(Ai);window.ALL_SERVICES_SERVICE=gc;var yc=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},_c=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},bc=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this.promises={}}),[{key:"getData",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=JSON.stringify(t);return this.promises[r]||(this.promises[r]=this.fetch.apply(this,t)),this.promises[r]}},{key:"deleteData",value:function(){if(this.promises){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=JSON.stringify(t);delete this.promises[r]}}},{key:"clearData",value:function(){this.promises={}}},{key:"fetch",value:function(){return _c(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw{e:"The _fetch method has not been implemented"};case 1:case"end":return e.stop()}}),e)})))}}])}();function wc(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Sc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Sc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children";return ht().mark((function n(){var r,a,i;return ht().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return");case 2:return n.next=4,e;case 4:r=wc(e[t]),n.prev=5,r.s();case 7:if((a=r.n()).done){n.next=12;break}return i=a.value,n.delegateYield(Cc(i,t),"t0",10);case 10:n.next=7;break;case 12:n.next=17;break;case 14:n.prev=14,n.t1=n.catch(5),r.e(n.t1);case 17:return n.prev=17,r.f(),n.finish(17);case 20:case"end":return n.stop()}}),n,null,[[5,14,17,20]])}))()}function Ec(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return xc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function xc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ac(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ac=function(){return!!e})()}bc=yc([nn.K],bc);var kc=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Tc=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Lc=function(e){function t(){return(0,pt.A)(this,t),e=this,n=t,r=arguments,n=(0,Ja.A)(n),(0,Xa.A)(e,Ac()?Reflect.construct(n,r||[],(0,Ja.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,Qa.A)(t,e),(0,ft.A)(t,[{key:"fetch",value:function(){return Tc(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,yr.N$)("otv-get-entire-service-list");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}},{key:"isFastlaneService",value:function(e){return Tc(this,void 0,void 0,ht().mark((function t(){var n,r,a;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getData();case 2:n=t.sent,r=Ec(Cc(n[0],"otvChildren")),t.prev=4,r.s();case 6:if((a=r.n()).done){t.next=12;break}if(a.value.id!==e){t.next=10;break}return t.abrupt("return",!0);case 10:t.next=6;break;case 12:t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),r.e(t.t0);case 17:return t.prev=17,r.f(),t.finish(17);case 20:return t.abrupt("return",!1);case 21:case"end":return t.stop()}}),t,this,[[4,14,17,20]])})))}}])}(bc);function Ic(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Dc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Dc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Lc=kc([nn.K],Lc);var Pc=function(){function e(t){(0,pt.A)(this,e),this.nestedSet=t}return(0,ft.A)(e,[{key:"getParents",value:function(e){return this.nestedSet.filter((function(t){return t.lft<e.lft&&t.rgt>e.rgt})).sort((function(e,t){return e.lft>t.lft?1:-1}))}}],[{key:"fromRecursive",value:function(t,n){return new e((r=function(e,t){var n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=[],o=Ic(e);try{for(o.s();!(n=o.n()).done;){var s=n.value,c=Object.assign({},s);if(i.push(c),c.lft=a++,c[t]){var l=r(c[t],t,a),u=(0,Sa.A)(l,2),d=u[0],h=u[1];delete c[t],a=h,i.push.apply(i,(0,ut.A)(d))}c.rgt=a++}}catch(e){o.e(e)}finally{o.f()}return[i,a]},r(t,n)[0]));var r}}])}(),Oc=__webpack_require__(18282);function Rc(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Mc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Mc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qc(e,t){var n,r=Rc(t);try{var a=function(){var t=n.value,r=t.selector,a=t.value,i=e.querySelectorAll(r);if(!i)return 1;i.forEach((function(e){var t;e.innerText=null!==(t=null==a?void 0:a.toString())&&void 0!==t?t:""}))};for(r.s();!(n=r.n()).done;)a()}catch(e){r.e(e)}finally{r.f()}return e}var Nc=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))};function Vc(e){return e.toString().padStart(2,"0")}var Fc=function(e){var t=null;return Object.assign(Object.assign({},e),{getBrand:function(){return Nc(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t||null!=t||(t=Ui.getBrand(this.srsAppointment.MAKE_CODE)),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e,this)})))},getModel:function(){var e,t;return Nc(this,void 0,void 0,ht().mark((function n(){return ht().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getBrand();case 2:if(n.t2=e=n.sent,n.t1=null===n.t2,n.t1){n.next=6;break}n.t1=void 0===e;case 6:if(!n.t1){n.next=10;break}n.t3=void 0,n.next=11;break;case 10:n.t3=e.getModel(this.srsAppointment.MODEL_CODE);case 11:if(n.t4=t=n.t3,n.t0=null!==n.t4,!n.t0){n.next=15;break}n.t0=void 0!==t;case 15:if(!n.t0){n.next=19;break}n.t5=t,n.next=20;break;case 19:n.t5="";case 20:return n.abrupt("return",n.t5);case 21:case"end":return n.stop()}}),n,this)})))},renderOverviewMarkup:function(e){return Nc(this,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.querySelector(".appointment__date").innerText=this.getDateString(),t.next=3,this.getPickupTime();case 3:return e.querySelector(".appointment__pickup-time").innerText=t.sent,t.t0=pi,t.next=7,this.get
6Services();case 7:return t.t1=t.sent.join(", "),e.querySelector(".appointment__services").innerText=(0,t.t0)(t.t1),e.querySelector(".appointment__garage").innerText=this.srsAppointment.LOCATION_DESC,this.markup=e,t.abrupt("return",e);case 12:case"end":return t.stop()}}),t,this)})))},getVehicleDisplayName:function(){return Nc(this,void 0,void 0,ht().mark((function e(){var t,n;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getBrand();case 2:return t=e.sent,e.next=5,this.getModel();case 5:return n=e.sent,e.abrupt("return","".concat(t.makeDesc," ").concat(n.modelDesc));case 7:case"end":return e.stop()}}),e,this)})))},getVehicleIdentifier:function(){return"".concat(this.srsAppointment.MAKE_CODE," ").concat(this.srsAppointment.MODEL_CODE)},getDateString:function(){var e=new Date(this.srsAppointment.VISIT_DATETIME);return"".concat(Vc(e.getHours()),":").concat(Vc(e.getMinutes())," ").concat(Granite.I18n.get("apps.amag-ch.components.content.otv.choose-date.timeShort"),", ").concat(e.toLocaleString(document.documentElement.lang,{weekday:"long"}),", ").concat(e.toLocaleDateString("de-DE",{day:"numeric",month:"numeric",year:"numeric"}))},getPickupTime:function(){var e,t;return Nc(this,void 0,void 0,ht().mark((function n(){var r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_;return ht().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=new Date(this.srsAppointment.PICKUP_DATETIME||"1970-01-01T17:00:00"),a=new Lc,i=null===(t=null===(e=this.srsAppointment.LaboursNav)||void 0===e?void 0:e.results)||void 0===t?void 0:t.map((function(e){return e.LabourValueNav.LBRCAT+" "+e.LabourValueNav.LBRVAL}))[0],o="".concat(Granite.I18n.get("apps.amag-ch.components.content.appointmentOverview.earliestPickupString")," ").concat(r.getHours(),":").concat(r.getMinutes().toString().padStart(2,"0")," ").concat(Granite.I18n.get("apps.amag-ch.components.content.otv.choose-date.timeShort")),n.next=6,a.isFastlaneService(i);case 6:if(!n.sent){n.next=9;break}(s=document.querySelector(".waiting-appointment-label"))&&(o=s.innerText);case 9:if(!i.includes("AMAG_OTV_08 11000")){n.next=28;break}return c=document.querySelector(".amag-appointment-overview__overview-wrapper").getAttribute("data-description-mfk-text"),n.next=13,this.getGarage();case 13:return l=n.sent,n.next=16,jc(l._id.toString());case 16:return u=n.sent,n.next=19,Bc();case 19:for(d=n.sent,h=new Date(this.srsAppointment.VISIT_DATETIME),p=!1;!p;)h.setDate(h.getDate()+1),f=h.toISOString().split("T")[0].split("-"),m="".concat(f[2],"-").concat(f[1],"-").concat(f[0]),0!==h.getDay()&&6!==h.getDay()&&-1===d.indexOf(m)&&-1===u.indexOf(m)&&(p=!0);v=(0,it.Z0)(),g=h.toLocaleDateString(v,{weekday:"long"}),y="".concat(h.getHours(),":").concat(h.getMinutes().toString().padStart(2,"0")),_=c.replace("{{Day}}",g).replace("{{Time}}",y),o=_;case 28:return n.abrupt("return",o);case 29:case"end":return n.stop()}}),n,this)})))},getTemplateMap:function(){var e,t,n;return Nc(this,void 0,void 0,ht().mark((function r(){var a,i,o;return ht().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=Granite.I18n.get("apps.amag-ch.components.content.appointmentOverview.noInformation"),i="",this.srsAppointment.REG_DATE&&(o=(o=(o=this.srsAppointment.REG_DATE).split("T")[0]).split("-"),i=o[1]+"."+o[0]),r.t0={selector:".appointment-detail__date, .appointment-cancellation__date",value:this.getDateString()},r.next=6,this.getPickupTime();case 6:return r.t1=r.sent,r.t2={selector:".appointment-detail__pickup-time",value:r.t1},r.t3={selector:".appointment-detail__garage-name",value:this.srsAppointment.LocationsNav.results[0].HIERARCHY_DESC},r.next=11,this.getBrand();case 11:if(r.t5=e=r.sent,r.t4=null===r.t5,r.t4){r.next=15;break}r.t4=void 0===e;case 15:if(!r.t4){r.next=19;break}r.t6=void 0,r.next=20;break;case 19:r.t6=e.makeDesc;case 20:return r.t7=r.t6,r.t8={selector:".appointment-detail__vehicle-brand",value:r.t7},r.t9={selector:".appointment-detail__license-plate",value:this.srsAppointment.LIC_PLATE||a},r.t10={selector:".appointment-detail__mileage",value:this.srsAppointment.MILEAGE?"".concat(this.srsAppointment.MILEAGE," ").concat(this.srsAppointment.MILEAGE_UOM):a},r.t11={selector:".appointment-detail__registration-date",value:i||a},r.t12={selector:".appointment-detail__vin",value:this.srsAppointment.VIN||a},r.next=28,this.getBrand();case 28:if(r.t15=t=r.sent,r.t14=null===r.t15,r.t14){r.next=32;break}r.t14=void 0===t;case 32:if(!r.t14){r.next=36;break}r.t16=void 0,r.next=37;break;case 36:r.t16=t.makeDesc;case 37:return r.t17=r.t16,r.t18=r.t17+" ",r.next=41,this.getModel();case 41:if(r.t20=n=r.sent,r.t19=null===r.t20,r.t19){r.next=45;break}r.t19=void 0===n;case 45:if(!r.t19){r.next=49;break}r.t21=void 0,r.next=50;break;case 49:r.t21=n.modelDesc;case 50:if(r.t22=r.t21,r.t13=r.t18+r.t22,r.t13){r.next=54;break}r.t13=this.srsAppointment.MODEL_CODE;case 54:return r.t23=r.t13,r.t24={selector:".appointment-detail__vehicle-name",value:r.t23},r.abrupt("return",[r.t0,r.t2,r.t3,r.t8,r.t9,r.t10,r.t11,r.t12,r.t24]);case 57:case"end":return r.stop()}}),r,this)})))},getServices:function(){return Nc(this,void 0,void 0,ht().mark((function e(){var t,n,r;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Lc,e.next=3,t.getData();case 3:return n=e.sent,r=Pc.fromRecursive(n,"otvChildren"),e.abrupt("return",this.srsAppointment.LaboursNav.results.map((function(e){var t=e.LabourValueNav.LBRCAT+" "+e.LabourValueNav.LBRVAL,n=r.nestedSet.find((function(e){return e.id===t}));
6if("AMAG_OTV_08 20000"!==e.LBRVAL_ID){if(null==n?void 0:n.isFastLane){var a=r.getParents(n);return[].concat((0,ut.A)(a.reduce((function(e,t,n){return n>0?[].concat((0,ut.A)(e),[t.authorLbrValDesc||t.lbrValDesc]):e}),[])),[(null==n?void 0:n.authorLbrValDesc)||e.LBRVAL_DESC]).join(", ")}return(null==n?void 0:n.authorLbrValDesc)||e.LBRVAL_DESC}})).filter((function(e){return e})));case 6:case"end":return e.stop()}}),e,this)})))},getGarageInformationMarkup:function(){var e;return Nc(this,void 0,void 0,ht().mark((function t(){var n,r,a,i;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,Oc.C)(document.getElementById("amag-appointment-overview__detail__garage")),t.next=3,this.getGarage();case 3:return r=t.sent,t.t0={selector:".appointment-detail__garage-name",value:r.getGarageName()},t.t1={selector:".appointment-detail__garage-address",value:"".concat(r.getStreet(),",\n").concat(r.getZip()," ").concat(r.getCity())},t.next=8,this.getBrand();case 8:if(t.t3=e=t.sent,t.t2=null===t.t3,t.t2){t.next=12;break}t.t2=void 0===e;case 12:if(!t.t2){t.next=16;break}t.t4=void 0,t.next=17;break;case 16:t.t4=e.makeDesc;case 17:return t.t5=t.t4,t.t6={selector:".appointment-detail__vehicle-brand",value:t.t5},t.t7={selector:".appointment-detail__garage-caption--phone",value:r.getPhoneNumber()},t.t8={selector:".appointment-detail__garage-caption--mail",value:r.getEmail()},a=[t.t0,t.t1,t.t6,t.t7,t.t8],i=encodeURIComponent("".concat(r.getStreet(),", ").concat(r.getZip()," ").concat(r.getCity())),n.querySelector(".appointment-detail__garage-link--route-link").setAttribute("href","https://www.google.com/maps/dir/?api=1&destination=".concat(i)),n.querySelector(".appointment-detail__garage-link--phone-link").setAttribute("href","phone:".concat(r.getPhoneNumber())),n.querySelector(".appointment-detail__garage-link--mail-link").setAttribute("href","mailto:".concat(r.getEmail())),t.abrupt("return",qc(n,a));case 27:case"end":return t.stop()}}),t,this)})))},getVehicleInformationMarkup:function(){return Nc(this,void 0,void 0,ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,Oc.C)(document.getElementById("amag-appointment-overview__detail__vehicle-information")),e.t0=qc,e.t1=t,e.next=5,this.getTemplateMap();case 5:return e.t2=e.sent,e.abrupt("return",(0,e.t0)(e.t1,e.t2));case 7:case"end":return e.stop()}}),e,this)})))},getGarage:function(){return Nc(this,void 0,void 0,ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this.srsAppointment.LocationsNav.results[0].HIERARCHY_ID.substr(0,4);t.startsWith("0");)t=t.substr(1,t.length);return t*=1,e.next=5,Ll(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})))}})},Bc=function(){return Nc(void 0,void 0,void 0,ht().mark((function e(){var t,n;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch((0,wt.d)("amagch-get-public-holidays"));case 2:if(t=e.sent,n=[],!t.ok){e.next=11;break}return e.next=7,t.json();case 7:e.sent.data.forEach((function(e){var t=e.split("T")[0].split("-"),r="".concat(t[2],"-").concat(t[1],"-").concat(t[0]);n.push(r)})),e.next=12;break;case 11:console.error("Failed to fetch public holidays in function getPublicHolidays.");case 12:return e.abrupt("return",n);case 13:case"end":return e.stop()}}),e)})))},jc=function(e){return Nc(void 0,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,it.AQ)(new Date,0),r=(0,it.M7)(n),a=(0,it.AQ)(new Date,6),i=(0,it.M7)(a),t.next=6,(0,it.A$)(e,r,i);case 6:return o=t.sent,s=[],o.forEach((function(e){var t=e.split("T")[0].split("-"),n="".concat(t[2],"-").concat(t[1],"-").concat(t[0]);s.push(n)})),t.abrupt("return",s);case 10:case"end":return t.stop()}}),t)})))};function Hc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hc=function(){return!!e})()}var Gc=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Uc=function(e){function t(){return(0,pt.A)(this,t),e=this,n=t,r=
6arguments,n=(0,Ja.A)(n),(0,Xa.A)(e,Hc()?Reflect.construct(n,r||[],(0,Ja.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,Qa.A)(t,e),(0,ft.A)(t,[{key:"fetch",value:function(){return Gc(this,void 0,void 0,ht().mark((function e(){var t,n;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,br.getJwtToken();case 2:return e.t0=e.sent,e.t1=(new Date).toISOString().substr(0,19),t={CDC_TOKEN:e.t0,visitTime:e.t1},e.next=7,(0,yr.eJ)("".concat(wr.getUrl(),"getAllAppointments.json?").concat(Wo(t)));case 7:return n=e.sent,e.abrupt("return",n.d.results.map((function(e){return Fc({srsAppointment:e})})));case 9:case"end":return e.stop()}}),e)})))}},{key:"getAppointmentsGroupedByVehicle",value:function(){return Gc(this,void 0,void 0,ht().mark((function e(){var t,n;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getData();case 2:return t=e.sent,n=[],t.forEach((function(e){n.find((function(t){return t.vehicleName===e.getVehicleIdentifier()}))||n.push({vehicleName:e.getVehicleIdentifier(),appointments:[]}),n.find((function(t){return t.vehicleName===e.getVehicleIdentifier()})).appointments.push(e)})),e.abrupt("return",n.map((function(e){return e.appointments=e.appointments.sort((function(e,t){return new Date(e.srsAppointment.VISIT_DATETIME).getTime()>new Date(t.srsAppointment.VISIT_DATETIME).getTime()?1:-1})),e})).sort((function(e,t){return e.vehicleName.localeCompare(t.vehicleName)})));case 6:case"end":return e.stop()}}),e,this)})))}}])}(bc);function Wc(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return zc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function zc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var $c=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Yc=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Zc=(0,ft.A)((function e(){var t=this;(0,pt.A)(this,e),this.offCanvasService=new sn,this.genericSpinner=new hc("service"),this.renderedFrameIsString=function(){return"string"==typeof t.renderedFrame},this.renderedFrameIsServiceOption=function(){return t.renderedFrame instanceof Qi},this.renderedFrameIsServiceCategory=function(){return t.renderedFrame instanceof to},this.clearCurrentStoredService=function(){t.currentStoredService=null},this.clickServiceCategory=function(e){t.renderedFrame=e,t.renderCurrentFrameChildren()},this.clickSeasonalOffer=function(e){e.selectedAsSeasonalOffer=!0,t.clickServiceCategory(e)},this.emptyWrapper=function(e){var t=e.querySelectorAll(":scope > .no-override");e.innerHTML="",Array.from(t).forEach((function(t){return e.appendChild(t)}))},this.renderServiceCategories=function(e){return Yc(t,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b,w,S,C,E,x,A,k,T,L,I,D,P,O=this;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.genericSpinner.show(),n=dc.getInstance(),r=n.getTabByName(tl),a=r.getPane(nl.servicesOverview).element[0],i=new Uc,o=a.querySelector(".all-services__wrapper"),s=a.querySelectorAll(".notification"),c=o.closest(".service-categories__wrapper"),l=c.querySelector(".services__headline--top"),u=c.querySelector(".services__subline"),(d=document.createElement("h2")).classList.add("services__headline--regular"),l.textContent=l.dataset.text,u.textContent=u.dataset.text||"",d.textContent=l.dataset.regular,(h=document.createElement("div")).classList.add("service-category__top-categories-wrapper"),(p=document.createElement("div")).classList.add("service-category__regular-categories-wrapper"),p.append(d),e?o=e:(o.classList.remove("all-services__wrapper--serviceSelection"),o.classList.add("all-services__wrapper--serviceCategories")),t.next=20,br.getJwtToken();case 20:if(!t.sent){t.next=37;break}return t.next=24,i.getAppointmentsGroupedByVehicle();case 24:f=t.sent,m=a.querySelector(".service-category__notification"),g=!1,y=0;case 28:if(!(y<=f.length-1)){t.next=36;break}return t.next=31,f[y].appointments[0].getModel();case 31:t.sent.modelCode===Xt.get(Gt.car.modelId)&&(g=!0,v=y);case 33:y++,t.next=28;break;
6case 36:g&&(_=m.dataset.replacementtext,b=f[v].appointments[0].getDateString().split(","),w={date:b[2],time:b[0]},m.querySelector(".notification").classList.add("d-flex"),m.querySelector(".notification__text").textContent=Ka(_,w));case 37:return s.length>1&&(s[1].style.display="flex"),t.next=40,gc.getData();case 40:S=(S=t.sent).filter((function(e){return e.isAvailableForBrand(Xt.get(Gt.car.brandId))})),this.emptyWrapper(o),this.toggleSeasonalOfferHeadline(!1),C=[],E=0,x=S.filter((function(e){return e.getSeasonalChildren().length>0})).flatMap((function(e){return e.getSeasonalChildren()})),A=function(e){E<=3?(h.appendChild(e.categoryElement),E++):p.appendChild(e.categoryElement)},k=Wc(x),t.prev=49,L=ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=T.value,!C.find((function(e){return e.id===t.id}))&&t.isAvailableForBrand(Xt.get(Gt.car.brandId))){e.next=3;break}return e.abrupt("return",1);case 3:C.push(t),t.onClick=O.clickSeasonalOffer,A(t);case 6:case"end":return e.stop()}}),e)})),k.s();case 52:if((T=k.n()).done){t.next=58;break}return t.delegateYield(L(),"t0",54);case 54:if(!t.t0){t.next=56;break}return t.abrupt("continue",56);case 56:t.next=52;break;case 58:t.next=63;break;case 60:t.prev=60,t.t1=t.catch(49),k.e(t.t1);case 63:return t.prev=63,k.f(),t.finish(63);case 66:I=Wc(S);try{for(I.s();!(D=I.n()).done;)(P=D.value).onClick=this.clickServiceCategory,A(P)}catch(e){I.e(e)}finally{I.f()}o.append(h,p),this.renderedFrame=rl,To(!1),this.genericSpinner.hide();case 72:case"end":return t.stop()}}),t,this,[[49,60,63,66]])})))},this.toggleSeasonalOfferHeadline=function(e){var t=dc.getInstance().getTabByName(tl).getPane(nl.servicesOverview).element[0];e?t.querySelector(".seasonal-offer__headline").classList.add("seasonal-offer__headline--active"):t.querySelector(".seasonal-offer__headline").classList.remove("seasonal-offer__headline--active")},this.createAppVehicleMileageInformation=function(e){if(!e)return null;var n=document.createDocumentFragment(),r=dc.getInstance().getTabByName(tl).getPane(nl.servicesOverview).element[0],a=document.createElement("div");a.classList.add("service-category__app-vehicle__mileage-container");var i=document.createElement("span");i.classList.add("service-category__app-vehicle__mileage-container__disclaimer"),i.textContent="Welcher Disclaimer?";var o=document.createElement("div");o.classList.add("service-category__app-vehicle__mileage-container__header");var s=document.createElement("span");s.classList.add("service-category__app-vehicle__mileage-container__header-headline"),s.textContent=r.dataset.currentmileagetext;var c=document.createElement("button");c.classList.add("service-category__app-vehicle__mileage-container__header-button"),c.textContent=Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSelection.changeMileage"),o.appendChild(s),o.appendChild(c);var l=document.createElement("div");l.classList.add("service-category__app-vehicle__mileage-container__information");var u=document.createElement("span");u.classList.add("service-category__app-vehicle__mileage-container__information-mileage"),u.textContent="".concat(e.mileage," KM");var d=document.createElement("span");d.classList.add("service-category__app-vehicle__mileage-container__information-transfer");var h=document.createElement("span");h.classList.add("service-category__app-vehicle__mileage-container__information-transfer-text"),h.textContent=r.dataset.transferdatetext;var p=document.createElement("span");p.classList.add("service-category__app-vehicle__mileage-container__information-transfer-date"),p.textContent=" ".concat(e.lastRecordedAt," ").concat(Granite.I18n.get("apps.amag-ch.components.content.otv.choose-date.timeShort")),d.appendChild(h),l.appendChild(u),d.appendChild(p),l.appendChild(d);var f=document.createElement("span");return f.classList.add("service-category__app-vehicle__mileage-container__appropriate-services-disclaimer"),f.textContent=r.dataset.curratedservicestext,t.addEventListenerForMileageOffCanvas(e,c,u),a.appendChild(o),a.appendChild(l),a.appendChild(f),n.appendChild(a),n},this.addEventListenerForMileageOffCanvas=function(e,n,r){var a=document.querySelector(rn.self),i=a.querySelector(".amag-app-vehicle-off-canvas-container__input");n.addEventListener("click",(function(){t.offCanvasService.showOffCanvasById("mileageOffCanvas"),i.click(),i.focus()})),i.addEventListener("input",(function(){i.value=i.value.replaceAll(/[^0-9,.']/g,""),new RegExp("^\\d{1,3}('?\\d{3})*(,|.)?\\d{0,2}$").test(i.value)?i.classList.remove("invalid"):i.classList.add("invalid")})),t.updateAppVehicleAndRebuildServices=function(){if(new RegExp("^\\d{1,3}('?\\d{3})*(,|.)?\\d{0,2}$").test(i.value)){var n=parseInt(i.value.replaceAll(/[']/g,"").replaceAll(",",".")).toFixed();r.textContent="".concat(n," KM"),t.updateAppVehicleAndServices(n,e),t.offCanvasService.closeOffCanvas()}else i.classList.add("invalid")};var o=t.offCanvasService.getConfirmBtn();
6o.textContent=Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSelection.changeMileage"),t.offCanvasService.setConfirmMethod(t.updateAppVehicleAndRebuildServices),o.parentElement.classList.remove("d-none"),a.querySelector(".amag-app-vehicle-off-canvas-container__input").value=e.mileage},this.updateAppVehicleAndServices=function(e,n){return Yc(t,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.mileage=e,Xt.store(Gt.appVehicle.fromApp,n),localStorage.setItem(bt.H.AMAG_APP_VEHICLE,JSON.stringify(n)),t.next=5,this.renderCurrentFrameChildren();case 5:case"end":return t.stop()}}),t,this)})))},this.renderCurrentFrameChildren=function(){return Yc(t,void 0,void 0,ht().mark((function e(){var t,n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b,w,S,C,E,x,A,k,T,L,I,D,P,O,R,M,q,N,V,F,B,j,H,G,U,W,z,$,Y,Z,K,X,J,Q,ee,te,ne,re,ae,ie,oe,se,ce=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.genericSpinner.show(),ul=!1,a=dc.getInstance(),i=a.getTabByName(tl),o=i.getPane(nl.servicesOverview).element[0],s=o.querySelector(".all-services__wrapper"),c=o.dataset[ll.key],l=s.querySelector(".service-category__no-service-found-question"),(u=o.querySelectorAll(".notification")).length>1?(u[0].classList.remove("d-flex"),u[1].style.display="none"):u[0].classList.remove("d-flex"),gt(0),this.renderedFrameIsServiceCategory()?(this.renderedFrame=this.renderedFrame,c===ll.services||(null===(t=Xt.get(Gt.service.selectedServices))||void 0===t?void 0:t.find((function(e){return e.service.id===ce.renderedFrame.id})))?(h=Xt.get(Gt.service.selectedServices).find((function(e){var t;return e.uid===(null===(t=ce.renderedFrame.serviceStorage)||void 0===t?void 0:t.uid)})),h?this.currentStoredService=h:(this.currentStoredService=this.renderedFrame.serviceStorage,this.currentStoredService||(p=new yl(this.renderedFrame),Xt.append(Gt.service.selectedServices,p),this.currentStoredService=p))):"link"!==this.renderedFrame.selectionType&&(d=new yl(this.renderedFrame),Xt.append(Gt.service.selectedServices,d),this.currentStoredService=d)):this.currentStoredService&&(this.renderedFrame=this.renderedFrame,en.isFastLaneActivated()&&c===ll.services?this.currentStoredService=this.currentStoredService.replaceChild([new yl(this.renderedFrame)]):c||((null===(n=this.currentStoredService.parent)||void 0===n?void 0:n.service)===this.renderedFrame?this.currentStoredService=this.renderedFrame.serviceStorage:this.renderedFrame.serviceStorage||(this.renderedFrame.isSelectedAsSeasonalOffer()?(f=new yl(this.renderedFrame),Xt.append(Gt.service.selectedServices,f),this.currentStoredService=f):this.currentStoredService=this.currentStoredService.child=new yl(this.renderedFrame)))),this.renderedFrame=this.renderedFrame,!en.isFastLaneActivated()||c!==ll.services||2!==this.renderedFrame.depth){e.next=11;break}return this.renderedFrame.serviceStorage.children.length>0&&(this.renderedFrame.serviceStorage.removeChildren(),this.renderedFrame.serviceStorage.child=new yl(this.renderedFrame.children[0])),Eo("".concat(tl,".").concat(nl.servicesSummary)),e.abrupt("return");case 11:if(this.emptyWrapper(s),en.isFastLaneActivated()||Co("".concat(tl,".").concat(nl.servicesSummary)),Lo(),dc.getInstance().contentComponent.find(".tab-pane__navigation-backwards").removeClass("d-none"),a.contentComponent.off("otv.navigateBack",this.navigateBackInServiceSelection),a.contentComponent.on("otv.navigateBack",this.navigateBackInServiceSelection),s.classList.add("all-services__wrapper--serviceSelection"),s.classList.remove("all-services__wrapper--serviceCategories"),this.toggleSeasonalOfferHeadline(this.renderedFrame.isSelectedAsSeasonalOffer()||this.renderedFrame.ServiceCategory.isSeasonalOffer),m=s.closest(".service-categories__wrapper"),v=this.renderedFrame.isSelectedAsSeasonalOffer()?this.renderedFrame:this.renderedFrame.ServiceCategory,m.querySelector(".services__headline--top").textContent=pi(this.renderedFrame.headline)||pi(v.name),(g=m.querySelector(".services__subline")).innerHTML=mi(this.renderedFrame.subline),g.classList.toggle("d-none",!this.renderedFrame.subline),(y=m.querySelector(".footer-small"))&&(y.innerHTML=mi(this.renderedFrame.smallFooter),y.classList.toggle("d-none",!this.renderedFrame.smallFooter)),_=!1,"text"!==this.renderedFrame.selectionType){e.next=37;break}return e.t0=s,e.next=33,this.renderedFrame.renderAs("text");
6case 33:e.t1=e.sent,e.t0.append.call(e.t0,e.t1),e.next=64;break;case 37:if("textarea"!==this.renderedFrame.selectionType){e.next=45;break}return e.t2=s,e.next=41,this.renderedFrame.renderAs("textarea");case 41:e.t3=e.sent,e.t2.append.call(e.t2,e.t3),e.next=64;break;case 45:if("formShort"!==this.renderedFrame.selectionType){e.next=53;break}return e.t4=s,e.next=49,this.renderedFrame.renderAs("formShort");case 49:e.t5=e.sent,e.t4.append.call(e.t4,e.t5),e.next=64;break;case 53:b=0,w=Object.entries(this.renderedFrame.children);case 54:if(!(b<w.length)){e.next=64;break}return S=(0,Sa.A)(w[b],2),C=S[0],E=S[1],e.next=58,E.renderAs(this.renderedFrame.selectionType);case 58:x=e.sent,E.isSeasonalOffer?(s.prepend(x),A=parseInt(C),x.style.order=(-1*(this.renderedFrame.children.length-A)).toString()):s.append(x),_=_||E.hasChildren();case 61:b++,e.next=54;break;case 64:if(k=i.getPane(nl.servicesOverview),_){e.next=113;break}if((T=JSON.parse(localStorage.getItem(bt.H.AMAG_APP_VEHICLE)))&&T.mileage&&(L=this.createAppVehicleMileageInformation(T),o.querySelector(".service-category__header").firstElementChild.appendChild(L),I=this.renderedFrame.children.find((function(e){return!(!e.minMileageRestriction&&!e.maxMileageRestriction)&&(e.minMileageRestriction?e.maxMileageRestriction?e.minMileageRestriction<=T.mileage&&e.maxMileageRestriction>=T.mileage:e.minMileageRestriction<=T.mileage:e.maxMileageRestriction>=T.mileage)})),I&&(null===(r=document.querySelector("#service-option-".concat(I.id.replaceAll(" ","\\ "))))||void 0===r||r.click())),Io(Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSummary.addService"),k),"link"!==this.renderedFrame.selectionType){e.next=112;break}return Io(Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSummary.reportDamage"),k),l.classList.add("d-none"),D=document.createElement("div"),(P=document.createElement("div")).className="otv-service__report-vehicle-box",(O=document.createElement("div")).className="otv-service__report-topline",O.textContent=Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSummary.vehicle"),(R=document.createElement("a")).className="otv-service__report-link",R.href=this.renderedFrame.linkUrl,R.setAttribute("x-cq-linkchecker","skip"),R.target=this.renderedFrame.linkTarget,R.rel="follow",M=Xt.get(Gt.car.brandId),q=Xt.get(Gt.car.modelId),N=Xt.get(Gt.car.vehicleUID),e.next=89,Zo.getData(!1,"userVehicleList");case 89:V=e.sent,F=document.querySelector("html").getAttribute("lang"),B={FREMD:Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.otherBrand"),VW_PKW:Granite.I18n.get("apps.amag-ch.brandVolkswagen"),VW_NZ:Granite.I18n.get("apps.amag-ch.brandVWNutzfahrzeuge")},e.t6=F,e.next="de"===e.t6?96:"it"===e.t6?98:"en"===e.t6?100:"fr"===e.t6?102:104;break;case 96:return e.abrupt("break",104);case 98:return e.abrupt("break",104);case 100:return e.abrupt("break",104);case 102:return e.abrupt("break",104);case 104:N&&(U=V.find((function(e){return e.vehicleUID===N})),G=U.licensePlate,H=U.editableRegistrationDate,j=U.vin),M&&((W=document.createElement("div")).classList.add("otv-service__report-vehicle-box-item"),(z=document.createElement("div")).classList.add("otv-service__report-vehicle-box-item-type"),z.textContent=Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSummary.vehicleBrand"),($=document.createElement("div")).classList.add("otv-service__report-vehicle-box-item-value"),$.textContent=B[M]||M,W.appendChild(z),W.appendChild($),P.appendChild(W)),q&&((Y=document.createElement("div")).classList.add("otv-service__report-vehicle-box-item"),(Z=document.createElement("div")).classList.add("otv-service__report-vehicle-box-item-type"),Z.textContent=Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSummary.vehicleModel"),(K=document.createElement("div")).classList.add("otv-service__report-vehicle-box-item-value"),K.textContent=q,Y.appendChild(Z),Y.appendChild(K),P.appendChild(Y)),j&&((X=document.createElement("div")).classList.add("otv-service__report-vehicle-box-item"),(J=document.createElement("div")).classList.add("otv-service__report-vehicle-box-item-type"),J.textContent=Granite.I18n.get("apps.amag-ch.components.c
6ontent.otv.serviceSummary.vehicleVIN"),(Q=document.createElement("div")).classList.add("otv-service__report-vehicle-box-item-value"),Q.textContent=j,X.appendChild(J),X.appendChild(Q),P.appendChild(X)),H&&((ee=document.createElement("div")).classList.add("otv-service__report-vehicle-box-item"),(te=document.createElement("div")).classList.add("otv-service__report-vehicle-box-item-type"),te.textContent=Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSummary.vehicleRegistration"),(ne=document.createElement("div")).classList.add("otv-service__report-vehicle-box-item-value"),ne.textContent=H,ee.appendChild(te),ee.appendChild(ne),P.appendChild(ee)),G&&((re=document.createElement("div")).classList.add("otv-service__report-vehicle-box-item"),(ae=document.createElement("div")).classList.add("otv-service__report-vehicle-box-item-type"),ae.textContent=Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSummary.vehicleLicensePlate"),(ie=document.createElement("div")).classList.add("otv-service__report-vehicle-box-item-value"),ie.textContent=G,re.appendChild(ae),re.appendChild(ie),P.appendChild(re)),D.append(O,P,R),s.appendChild(D);case 112:en.isFastLaneActivated()&&2===this.renderedFrame.depth&&(oe=Array.from(o.querySelectorAll("input")),se=function(){return oe.filter((function(e,t){return e.checked=!0}))},oe.forEach((function(e){return e.addEventListener("change",(function(){se().length>0?Io(Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSummary.addService"),k):Io(Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSelection.jumpSelection"),k)}))})),oe.forEach((function(e){return e.dispatchEvent(new Event("change"))})));case 113:this.genericSpinner.hide();case 114:case"end":return e.stop()}}),e,this)})))},this.navigateBackInServiceSelection=function(e,n){var r,a=dc.getInstance();if(a.activeTab.getActivePane().uri==="".concat(tl,".").concat(nl.servicesOverview))if(document.querySelector(".all-services__wrapper").classList.remove("all-services__wrapper--err-no-selection"),document.querySelector(".service-category__app-vehicle__mileage-container")&&document.querySelector(".service-category__app-vehicle__mileage-container").remove(),n.valid=!1,t.renderedFrame!==rl||Xt.get(Gt.service.selectedServices))if(t.renderedFrameIsServiceCategory||(null===(r=t.renderedFrame)||void 0===r?void 0:r.isSelectedAsSeasonalOffer())){if(en.isFastLaneActivated()&&!t.currentStoredService.root.isComplete())return n.valid=!0,t.currentStoredService=null,t.renderedFrame=null,void a.contentComponent.off("otv.navigateBack",t.navigateBackInServiceSelection);Eo("".concat(tl,".").concat(nl.servicesSummary))}else t.renderedFrame=t.renderedFrame.parent,t.renderCurrentFrameChildren(),Io(Granite.I18n.get("apps.amag-ch.components.content.otv.paneNavigation.forwards"),a.activeTab.getActivePane()),t.currentStoredService.root.isComplete()||t.currentStoredService.removeChildren();else Eo("".concat(tl,".").concat(nl.servicesSwitch))}}));function Kc(){var e=window.location.hash.substring(1),t=["AUDI","BENTLEY","PORSCHE","SEAT","SKODA","VW_PKW","VW_NZ","FREMD"];if(!e||e.startsWith("ey"))return{brand:void 0,model:void 0,garageId:void 0,services:[]};var n,r,a,i=decodeURIComponent(e).split("/").filter(Boolean),o=i.find((function(e){return e.includes("AMAG_OTV")})),s=o?o.split(",").filter(Boolean):[],c=i.filter((function(e){return!e.includes("AMAG_OTV")})),l=c.find((function(e){return t.includes(e)})),u=c.filter((function(e){return!t.includes(e)})),d=u.filter((function(e){return function(e){return/^\d+$/.test(e)}(e)})),h=void 0!==l&&1===u.length&&1===d.length&&d[0].length<4;if(d.length>0&&!h&&(n=d.reduce((function(e,t){return t.length>e.length?t:t.length<e.length?e:Number.parseInt(t,10)>Number.parseInt(e,10)?t:e})),r=Number.parseInt(n,10)),void 0!==l){var p=u.find((function(e){return e!==n}));void 0!==p&&(a=p.replaceAll("_","/"))}return{brand:l,model:a,garageId:r,services:s}}function Xc(e){var t=[];void 0!==e.brand&&t.push(e.brand),void 0!==e.model&&t.push(e.model.replaceAll("/","_")),void 0!==e.garageId&&t.push(e.garageId.toString()),e.services.length>0&&t.push(e.services.join(",")),window.location.hash=t.join("/")}Zc=$c([nn.K],Zc);var Jc=__webpack_require__(74692);function Qc(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return el(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?el(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function el(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var tl="services",nl={servicesOverview:"services-overview",servicesSummary:"services-summary"},rl="serviceCategories";function al(){return al=(0,lt.A)(ht().mark((function e(){var t,n,r,a,i,o,s;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=dc.getInstance(),n=t.getTabByName(tl),r=n.getPane(nl.servicesOverview),a=n.getPane(nl.servicesSummary),i=new Zc,o="",s=!1,t.contentComponent.on("otv.navigateForward",function(){var e=(0,lt.A)(ht().mark((function e(r,a){var o,s,c,l,u,d,h,p,f,m,v,g,y,_,b,w,S,C,E,x,A,k,T,L,I,D,P,O,R,M,q;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.activeTab===n){e.next=2;break}return e.abrupt("return");case 2:if(t.activeTab.getActivePane().uri!=="".concat(tl,".").concat(nl.servicesSummary)){e.next=47;break}return a.preventDefault=!0,e.next=6,Pl();case 6:s=e.sent,c=(c=Xt.get(Gt.service.selectedServices).reduce((function(e,t){return[].concat((0,ut.A)(e),(0,ut.A)(t.serviceIds))}),[])).filter((function(e){return e!==Hi.OTV_ONLY_TEXT_SERVICE})),l=Qc(s),e.prev=10,l.s();case 12:if((u=l.n()).done){e.next=31;break}if(d=u.value,h=d.serviceLaneId.split(","),c.length===h.length){e.next=17;break}return e.abrupt("continue",29);case 17:if(!(c.length>=2)){e.next=25;break}if(p=JSON.stringify(c),f=JSON.stringify(h),p!==f){e.next=24;break}return e.next=23,_l(d);case 23:return e.abrupt("break",31);case 24:return e.abrupt("continue",29);case 25:if(c[0]!==h[0]){e.next=29;break}return e.next=28,_l(d);case 28:return e.abrupt("break",31);case 29:e.next=12;break;case 31:e.next=36;break;case 33:e.prev=33,e.t0=e.catch(10),l.e(e.t0);case 36:return e.prev=36,l.f(),e.finish(36);case 39:return"undefined"!=typeof dataLayer&&(m={event:"ga4Event",eventName:"click_nextStep",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 3 - Leistung ausgewählt",eventParameter3:"carBrand",fieldValue3:Xt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Xt.get(Gt.car.model),eventParameter5:"interaction_content",fieldValue5:Xt.get(Gt.service.selectedServices).reduce((function(e,t){return[].concat((0,ut.A)(e),(0,ut.A)(t.serviceIds))}),[]).join(" | ")},(0,it.eo)(m,3.1)),v=(null!==(o=Xt.get(Gt.service.selectedServices))&&void 0!==o?o:[]).flatMap((function(e){return e.serviceIds})),(g=Xt.get(Gt.otv.hash)).services=v,Xc(g),Xt.store(Gt.otv.hash,g),Eo("garages.garage-selection"),e.abrupt("return");case 47:if(a.preventDefault=!0,0!==i.renderedFrame.selected.length){e.next=129;break}y=Jc(".all-services__wrapper"),_=Qc(i.renderedFrame.children),e.prev=51,_.s();case 53:if((b=_.n()).done){e.next=73;break}if(b.value,en.isFastLaneActivated()){e.next=62;break}return y.addClass("all-services__wrapper--err-no-selection"),vt(document.getElementById("amag-component-tab_tab-content")),i.currentStoredService.root.complete=!1,e.abrupt("return");case 62:if(2===i.renderedFrame.depth){e.next=70;break}return y.addClass("all-services__wrapper--err-no-selection"),y.find("input").one("click",(function(){y.removeClass("all-services__wrapper--err-no-selection")})),vt(document.getElementById("amag-component-tab_tab-content")),i.currentStoredService.root.complete=!1,e.abrupt("return");case 70:i.currentStoredService.root.complete=!0;case 71:e.next=53;break;case 73:e.next=78;break;case 75:e.prev=75,e.t1=e.catch(51),_.e(e.t1);case 78:return e.prev=78,_.f(),e.finish(78);case 81:if(i.renderedFrame.hasChildren()){e.next=110;break}if("text"!==i.renderedFrame.selectionType||i.renderedFrame.textVal){e.next=87;break}return y.addClass("all-services__wrapper--err-no-input"),vt(document.getElementById("amag-component-tab_tab-content")),i.currentStoredService.root.complete=!1,e.abrupt("return");case 87:if(!("text"===i.renderedFrame.selectionType&&!i.renderedFrame.textVal||"textarea"===i.renderedFrame.selectionType&&!i.renderedFrame.textareaVal||"formShort"===i.renderedFrame.selectionType&&!i.renderedFrame.textareaVal)){e.next=92;break}return y.addClass("all-services__wrapper--err-no-input"),vt(document.getElementById("amag-component-tab_tab-content")),i.currentStoredService.root.complete=!1,e.abrupt("return");case 92:if(i.renderedFrame.serviceStorage){e.next=107;break}if("link"!==i.renderedFrame.selectionType){e.next=98;break}return document.querySelector(".otv-service__report-link").click(),e.abrupt("return");case 98:w=Xt.get(Gt.service.selectedServices),S=!1,C=new yl(i.renderedFrame),E=en.getServicesFromServiceStorage(C),x=new Set(E.map((function(e){return e.id}
6))),void 0!==w&&w.forEach((function(e){en.getServicesFromServiceStorage(e).some((function(e){return x.has(e.id)}))&&(S=!0)})),S||(C.complete=!0,Xt.append(Gt.service.selectedServices,C));case 105:e.next=108;break;case 107:("text"===i.renderedFrame.selectionType||i.renderedFrame.constructor===to||i.renderedFrame.isSelectedAsSeasonalOffer())&&(A=Xt.get(Gt.service.selectedServices),!i.renderedFrame.isSelectedAsSeasonalOffer()||-1!==(null==A?void 0:A.reduce((function(e,t){return e.push.apply(e,(0,ut.A)(t.serviceIds))&&e}),[]).indexOf(i.renderedFrame.id))&&A||Xt.append(Gt.service.selectedServices,i.currentStoredService),i.renderedFrame.serviceStorage.complete=!0);case 108:e.next=127;break;case 110:k=Qc(i.renderedFrame.children),e.prev=111,L=ht().mark((function e(){var t,n,r,a,i,o;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t=T.value).serviceStorage)if(t.serviceStorage.parent)t.serviceStorage.parent.removeChildren();else{n=Xt.get(Gt.service.selectedServices),r=n.filter((function(e){return e.service.id!==t.id})),Xt.remove(Gt.service.selectedServices),a=Qc(r);try{for(a.s();!(i=a.n()).done;)o=i.value,Xt.append(Gt.service.selectedServices,o)}catch(e){a.e(e)}finally{a.f()}}case 2:case"end":return e.stop()}}),e)})),k.s();case 114:if((T=k.n()).done){e.next=118;break}return e.delegateYield(L(),"t2",116);case 116:e.next=114;break;case 118:e.next=123;break;case 120:e.prev=120,e.t3=e.catch(111),k.e(e.t3);case 123:return e.prev=123,k.f(),e.finish(123);case 126:i.currentStoredService.removeChildren();case 127:return Eo("".concat(tl,".").concat(nl.servicesSummary)),e.abrupt("return");case 129:if(!(i.renderedFrame.selected.length>1)){e.next=136;break}i.currentStoredService.removeChildren(),I=Qc(i.renderedFrame.selected);try{for(I.s();!(D=I.n()).done;)(P=D.value).serviceStorage||(i.currentStoredService.child=new yl(P))}catch(e){I.e(e)}finally{I.f()}return i.currentStoredService.root.complete=!0,Eo("".concat(tl,".").concat(nl.servicesSummary)),e.abrupt("return");case 136:if(i.renderedFrame=i.renderedFrame.selected[0],i.renderedFrame.hasChildren()){e.next=143;break}if(i.renderedFrame.serviceStorage||(i.currentStoredService.removeChildren(),i.currentStoredService.child=new yl(i.renderedFrame)),i.renderedFrame.isSelectedAsLinkedService()){O=Xt.get(Gt.service.selectedServices),Xt.remove(Gt.service.selectedServices),R=Qc(O.filter((function(e){return e.service.id!==i.renderedFrame.id})));try{for(R.s();!(M=R.n()).done;)q=M.value,Xt.append(Gt.service.selectedServices,q)}catch(e){R.e(e)}finally{R.f()}i.currentStoredService.child=i.renderedFrame.serviceStorage,i.renderedFrame.setSelectedAsLinkedService(!1)}return i.currentStoredService.root.complete=!0,Eo("".concat(tl,".").concat(nl.servicesSummary)),e.abrupt("return");case 143:i.renderCurrentFrameChildren();case 144:case"end":return e.stop()}}),e,null,[[10,33,36,39],[51,75,78,81],[111,120,123,126]])})));return function(t,n){return e.apply(this,arguments)}}()),a.element.on("otv.activate",(function(){pl();var e=Ao();e[e.length-1]==="".concat(tl,".").concat(nl.servicesSummary)&&xo(),Jc(".tab-pane__navigation-forwards").removeClass("d-none")})),r.element.on("otv.activate",function(){var e=(0,lt.A)(ht().mark((function e(t,n){var a,c,l,u,d,h,p,f;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Jc(".tab-pane__navigation-error-msg").remove(),(a=Jc(".all-services__wrapper")).removeClass("all-services__wrapper--err-no-input"),a.removeClass("all-services__wrapper--err-no-selection"),!r.element.data(ll.key)){e.next=20;break}c=r.element.data(ll.key),e.t0=c,e.next=e.t0===ll.services?9:e.t0===ll.additionalServices?11:18;break;case 9:return ho.getData().then((function(e){i.renderedFrame=e[0],i.renderCurrentFrameChildren()})),e.abrupt("break",18);case 11:for(l=Xt.get(Gt.service.selectedServices),u=l[0];u.service.depth<2;)u=u.children[0];return i.renderedFrame=u.service,i.renderCurrentFrameChildren(),i.currentStoredService=u,e.abrupt("break",18);case 18:e.next=26;break;case 20:if(i.renderedFrame&&(!i.renderedFrame||o===Xt.get(Gt.car.brandId))){e.next=26;break}return o=Xt.get(Gt.car.brandId),e.next=24,i.renderServiceCategories();case 24:d={event:"ga4Event",eventName:"user_landed",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 3 - Leistung ausgewählt",eventParameter3:"carBrand",fieldValue3:Xt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Xt.get(Gt.car.model)},(0,it.eo)(d,3);case 26:if(Jc(".tab-pane__navigation-backwards").removeClass("d-none"),h=Xt.get(Gt.service.selectedServices),(window.location.hash||sessionStorage.getItem(Gt.otv.presetServices))&&h&&h.length>0&&!s){for(s=!0,p=Xt.get(Gt.service.selectedServices),f=p[0];f.service.depth<1;)f=f.children[0];i.renderedFrame=f.service,i.renderCurrentFrameChildren(),i.currentStoredService=f,Eo("".concat(tl,".").concat(nl.servicesSummary)),Lo()}case 29:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());case 6:case"end":return e.stop()}}),e)}))),al.apply(this,arguments)}function il(e){return(0,ut.A)(new Set(e))}function ol(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return sl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function sl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var cl=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},ll={key:"service-change",services:"services",additionalServices:"additionalServices"},ul=!1,dl=null,hl=!0;function pl(){var e;return cl(this,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b,w,S,C,E,x,A,k,T,L,I,D,P,O,R,M,q,N,V,F,B,j,H=this;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=new Zc).renderedFrame=null,dl?((r=document.querySelector(".services-summary__add-service"))&&(r.innerHTML="",r.appendChild(dl)),Array.from(document.querySelectorAll(".services-summary__wrapper .service-category__header")).forEach((function(e){return e.remove()}))):dl=document.querySelector(".services-summary__add-service-container"),Xt.get(Gt.service.presetKeyValid)&&(null==(a=document.querySelector(".services-summary__add-service"))||a.classList.add("d-none")),i=dc.getInstance(),o=i.getTabByName(tl),s=o.getPane(nl.servicesSummary).element[0],c=o.getPane(nl.servicesOverview),l=Xt.get(Gt.service.selectedServices)){t.next=13;break}return Eo("".concat(tl,".").concat(nl.servicesOverview)),xo(),t.abrupt("return");case 13:if(Xt.get(Gt.service.wasServiceLane)&&(Xt.store(Gt.service.fastlane,!1),Xt.store(Gt.service.selectedServices,Xt.get(Gt.service.wasServiceLane)),Xt.remove(Gt.service.wasServiceLane),l=Xt.get(Gt.service.selectedServices)),u=l.filter((function(e){return e.isComplete()})),u=ml(u),Xt.remove(Gt.service.selectedServices),0!==u.length){t.next=21;break}return Eo("".concat(tl,".").concat(nl.servicesOverview)),xo(),t.abrupt("return");case 21:d=ol(u);try{for(d.s();!(h=d.n()).done;)p=h.value,Xt.append(Gt.service.selectedServices,p)}catch(e){d.e(e)}finally{d.f()}if((f=s.querySelector(".services-summary__selection-container")).innerHTML="",!en.isFastLaneActivated()){t.next=76;break}for(m=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],a=ol(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;n<1&&r.push(i.service.name),i.children&&i.children.length>0&&(r=[].concat((0,ut.A)(r),(0,ut.A)(m(i.children,n+1))))}}catch(e){a.e(e)}finally{a.f()}return r},s.classList.add("services-summary__wrapper--fastlane"),v=u[0],g=v.children[0],y=m(g.children),_=v,b=0;_.children&&_.children.length>0;)_=_.children[0],b++;_=_.parent,w=_.children.map((function(e){return e.service.name})),(S=document.createElement("div")).classList.add("services-summary__fastlane-service"),(C=document.createElement("div")).classList.add("services-summary__fastlane-service-top-container"),S.appendChild(C),(E=document.createElement("div")).classList.add("services-summary__fastlane-service-title"),E.textContent=g.service.name,C.appendChild(E),(x=document.createElement("span")).classList.add("services-summary__fastlane-service-change","services-summary__fastlane-service-change--service"),x.textContent=Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSummary.change"),C.appendChild(x),(A=document.createElement("div")).classList.add("services-summary__fastlane-service-text"),A.textContent=y.join(", "),S.appendChild(A),(k=document.createElement("div")).classList.add("services-summary__fastlane-service"),(T=document.createElement("div")).classList.add("services-summary__fastlane-service-top-container"),k.appendChild(T),(L=document.createElement("div")).classList.add("services-summary__fastlane-service-title"),L.textContent=Granite.I18n.get("apps.amag-ch.components.c
6ontent.otv.serviceSummary.additionalService"),T.appendChild(L),(I=document.createElement("span")).classList.add("services-summary__fastlane-service-change","services-summary__fastlane-service-change--additional-service"),I.textContent=Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSummary.change"),T.appendChild(I),(D=document.createElement("div")).classList.add("services-summary__fastlane-service-text"),D.textContent=w.length>0&&3===b?w.join(", "):Granite.I18n.get("apps.amag-ch.components.content.otv.serviceSummary.none"),k.appendChild(D),f.appendChild(S),f.appendChild(k),f.querySelectorAll(".services-summary__fastlane-service-change").forEach((function(e){e.addEventListener("click",(function(e){var t=e.currentTarget;t.classList.contains("services-summary__fastlane-service-change--service")?c.element.dataset[ll.key]=JSON.stringify(ll.services):t.classList.contains("services-summary__fastlane-service-change--additional-service")&&(c.element.dataset[ll.key]=JSON.stringify(ll.additionalServices)),Eo("".concat(tl,".").concat(nl.servicesOverview))}))})),t.next=104;break;case 76:P=u.every((function(e){return!!e.service.cantBeBookedAlone})),O=null===(e=document.querySelector(".services-summary_coupon_error"))||void 0===e?void 0:e.parentElement,P&&(null==O?void 0:O.classList.contains("d-none"))&&O.classList.remove("d-none"),P||(null==O?void 0:O.classList.contains("d-none"))||O.classList.add("d-none"),R=ol(u),t.prev=81,R.s();case 83:if((M=R.n()).done){t.next=90;break}if(!(q=M.value).service.isSelectedAsLinkedService()){t.next=87;break}return t.abrupt("continue",88);case 87:Array.isArray(q.summaryObject)?q.summaryObject.forEach((function(e){return f.appendChild(e)})):f.appendChild(q.summaryObject);case 88:t.next=83;break;case 90:t.next=95;break;case 92:t.prev=92,t.t0=t.catch(81),R.e(t.t0);case 95:return t.prev=95,R.f(),t.finish(95);case 98:s.classList.remove("services-summary__wrapper--fastlane"),N=s.querySelector(".services-summary__add-service-container"),V=function(){return cl(H,void 0,void 0,ht().mark((function e(){var t,r,a,i;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ul=!0,(t=document.createElement("div")).className="col-12 services-summary__add-service-flexbox",(r=document.querySelector(".services-summary__add-service"))&&(r.innerHTML="",r.appendChild(t)),e.next=7,n.renderServiceCategories(t);case 7:a=document.querySelector(".service-category__header"),i=document.querySelector(".services-summary__wrapper"),a&&!i.querySelector(".service-category__header")&&(null==r||r.insertAdjacentHTML("beforebegin",a.outerHTML)),document.querySelectorAll("tab-pane__navigation-error-msg, coupon-error-message").forEach((function(e){return e.remove()})),Lo(),t.querySelectorAll(".service-category__container:not(.service-category__container--show-all)").forEach((function(e){e.addEventListener("click",(function(){document.querySelector(".tab-pane__navigation-error-msg")&&document.querySelector(".tab-pane__navigation-error-msg").remove(),Eo("".concat(tl,".").concat(nl.servicesOverview))}),{once:!0})}));case 13:case"end":return e.stop()}}),e)})))},null==N||N.removeEventListener("click",V),null==N||N.addEventListener("click",V),hl&&(hl=!1,o._$backwardButton.on("click",(function(){"services-summary"===o.getActivePane().name&&Eo("".concat(tl,".").concat(nl.servicesOverview))})));case 104:F=il((G=Xt.get(Gt.service.selectedServices).filter((function(e){return!e.service.isSelectedAsLinkedService()})).map((function(e){return e.getLinkedServiceIds()})),G.reduce((function(e,t){return[].concat((0,ut.A)(e),(0,ut.A)(t))}),[]))),(B=document.querySelector(".services-summary__linked-services"))&&(B.innerHTML=""),j=[],Xt.get(Gt.service.selectedServices).forEach((function(e){e.children.length>0?e.children.forEach((function(e){return j.push(e)})):j.push(e.service)})),Promise.all(F.map((function(e){return cl(H,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,gc.getService(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))}
6))).then((function(e){var t=document.querySelector(".services-summary__linked-services__headline");e.length>0?null==t||t.classList.remove("d-none"):null==t||t.classList.add("d-none"),e.forEach((function(e){return cl(H,void 0,void 0,ht().mark((function t(){var n,r,a,i,o;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=Xt.get(Gt.service.selectedServices),r=!1,n.forEach((function(t){en.getServicesFromServiceStorage(t).forEach((function(t){t.id===e.id&&(r=!0)}))})),!(e.isStored()&&!e.isSelectedAsLinkedService()||r)){t.next=5;break}return t.abrupt("return");case 5:return e.setShownAsLinkedService(!0),t.next=8,e.renderAs("checkbox");case 8:a=t.sent,"theme.amag.noncaptive"===(i=document.getElementById("amag-infrastructure-info")).dataset.theme&&"porsche"===i.dataset.project||fl(a,e.id,j),null==B||B.appendChild(a),(o=a.querySelector("input"))&&(o.checked=e.isSelectedAsLinkedService()),a.addEventListener("change",(function(){if(a.classList.contains("service-option__container--active")){if(r)return;if(e.isSelectedAsLinkedService())return;Xt.append(Gt.service.selectedServices,new yl(e)),e.setSelectedAsLinkedService(!0)}else{if(!e.serviceStorage)return;Xt.remove(Gt.service.selectedServices),n.filter((function(t){return t.uid!==e.serviceStorage.uid})).forEach((function(e){return Xt.append(Gt.service.selectedServices,e)})),e.serviceStorage=null}}));case 15:case"end":return t.stop()}}),t)})))}))}));case 111:case"end":return t.stop()}var G}),t,null,[[81,92,95,98]])}
6)))}function fl(e,t,n){return cl(this,void 0,void 0,ht().mark((function r(){var a,i,o,s,c,l,u,d,h,p,f,m,v=this;return ht().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=document.querySelector(".amag-otv-canvas"),i=a.dataset.serviceHintText,o=a.dataset.serviceHintIcon,n.forEach((function(n){void 0!==n.service&&n.service.additionalServices.forEach((function(n){return cl(v,void 0,void 0,ht().mark((function r(){var a,i;return ht().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n.id===t&&(n.alternateHeadline&&((a=e.querySelector(".service-option__label")).innerHTML=n.alternateHeadline,a.classList.remove("d-none")),n.alternateText&&((i=e.querySelector(".service-option__copy")).innerHTML=n.alternateText,i.classList.remove("d-none")),n.offCanvasLink&&(s=n.offCanvasLink));case 1:case"end":return r.stop()}}),r)})))}))})),r.prev=4,!s){r.next=16;break}return r.next=8,fetch(s);case 8:return c=r.sent,r.next=11,c.text();case 11:l=r.sent,u=new DOMParser,d=u.parseFromString(l,"text/html"),(h=d.querySelector(".amag-otv-canvas__canvas-content"))&&h.children.length>0&&((p=document.createElement("div")).className="service-option__off-canvas-link__container",(f=document.createElement("img")).className="service-option__off-canvas-link__icon",f.src=o,p.appendChild(f),(m=document.createElement("span")).className="service-option__off-canvas-link__link",m.dataset.offCanvas=s,m.textContent=i,p.appendChild(m),e.querySelector(".service-option__text-container").appendChild(p),p.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation();var t=document.querySelector("body"),n=document.querySelector(".amag-otv-canvas");n.innerHTML=l,n.classList.remove("d-none"),t.classList.add("no-scroll");var r=document.querySelector(".amag-otv-canvas__backdrop"),a=document.querySelector(".amag-otv-canvas__canvas-close-btn");r.addEventListener("click",(function(){n.classList.add("d-none"),t.classList.remove("no-scroll")})),a.addEventListener("click",(function(){n.classList.add("d-none"),t.classList.remove("no-scroll")}))})));case 16:r.next=21;break;case 18:r.prev=18,r.t0=r.catch(4),console.error(r.t0);case 21:case"end":return r.stop()}}),r,null,[[4,18]])})))}function ml(e){var t=[],n=[];return e.forEach((function(e){var r=!0,a=[];if(en.getServicesFromServiceStorage(e).forEach((function(e){n.some((function(t){return t.id===e.id}))?(a.push(e),r=!1):n.push(e)})),r)t.push(e);else{var i=e.children.filter((function(e){return!a.some((function(t){return t.id===e.service.id}))}));i.length>0&&(e.replaceChild(i),t.push(e))}})),t}function vl(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return gl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function gl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var yl=function(){function e(t){(0,pt.A)(this,e),this.complete=!1,this.parent=null,this.children=[],this.uid=e.getUniqueId(),this.service=t,t.serviceStorage=this}return(0,ft.A)(e,[{key:"child",set:function(e){if(e instanceof Array){this.children=e;var t,n=vl(e);try{for(n.s();!(t=n.n()).done;){t.value.parent=this}}catch(e){n.e(e)}finally{n.f()}}else this.children.push(e),e.parent=this}},{key:"firstChild",get:function(){return this.children[0]||null}},{key:"summaryObject",get:function(){if(!this.hasChildren())return e.generateSummaryTile(this);if("checkbox"===this.service.selectionType)return this.children.map((function(t){return e.generateSummaryTile(t)}));for(var t=this,n=[];t.hasChildren();)t=t.children[0],n.push(t.service.name);return e.generateSummaryTile(this,n.join(", "))},set:function(e){this.summaryObject=e}},{key:"root",get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},{key:"isComplete",value:function(){return this.complete}},{key:"hasChildren",value:function(){return!!this.children&&this.children.length>0}},{key:"serviceIds",get:function(){for(var e=this;e.hasChildren();)e=e.children[0];return e.parent?e.parent.children.map((function(e){return e.service.id})):[e.service.id]}},{key:"setIdForSingleService",value:function(e){for(var t=this;t.hasChildren();)t=t.children[0];if(t.parent)t.parent.children=t.parent.children.map((function(t){var n;return e===Gi.BENTLEY||e===Gi.MICRO?t.service.id=t.service[e]?t.service[e]:t.service.id:t.service.id=null!==(n=t.service[e])&&void 0!==n?n:t.service.id,t}));else{if(!t.service[e])return[t.service.id];t.service.id=t.service[e]}}},{key:"serviceBookingObject",get:function(){for(var e=this,t=function(e){return e.srsName?{LBRVAL_ID:e.id,LBRVAL_DESC:e.srsName}:{LBRVAL_ID:e.id}};e.hasChildren();)e=e.children[0];return e.parent?e.parent.children.map((function(e){return t(e.service)})):[t(e.service)]}},{key:"requiresMileageRecursive",value:function(){var e,t=!1,n=vl(this.runRecursive());try{for(n.s();!(e=n.n()).done;){var r=e.value;t=t||r.service.requiresMileage}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"runRecursive",value:function(){var e,t=[this],n=vl(this.children);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push.apply(t,(0,ut.A)(r.runRecursive()))}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"serviceNames",get:function(){var t=function(e){return{name:e,children:[]}};return Xt.get(Gt.service.wasServiceLane)?Array.from(this.service.getParents()).reduce((function(n,r){var a=r instanceof e?r.service.name:r.name,i=t(a);return n.pointer?(n.pointer.push(i),n.pointer=i.children):(n.name=a,n.children=[],n.pointer=n.children),n}),t("")):this.children.reduce((function(t,n){return n instanceof e?Object.assign(Object.assign({},t),{children:t.children?[].concat((0,ut.A)(t.children),[n.serviceNames]):[n.serviceNames]}):Object.assign(Object.assign({},t),{name:n.name,children:[]})}),t(this.service.name))}},{key:"getLinkedServiceIds",value:function(){var e,t=[],n=vl(this.runRecursive());try{for(n.s();!(e=n.n()).done;){var r=e.value;r.hasChildren()||t.push.apply(t,(0,ut.A)(r.service.linkedServiceIds))}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"serviceTextFields",get:function(){var e=[];return this.service.textVal&&e.push([this.service.name,this.service.textVal]),this.children.reduce((function(e,t){return[].concat((0,ut.A)(e),(0,ut.A)(t.serviceTextFields))}),e)}},{key:"serviceTextareaFields",get:function(){var e=[];return this.service.textareaVal&&e.push([this.service.name,this.service.textareaVal]),this.children.reduce((function(e,t){return[].concat((0,ut.A)(e),(0,ut.A)(t.serviceTextareaFields))}),e)}},{key:"serviceComplaintDate",get:function(){var e=[];return this.service.complaintDate&&e.push(["Datum",this.service.complaintDate]),this.children.reduce((function(e,t){return[].concat((0,ut.A)(e),(0,ut.A)(t.serviceComplaintDate))}),e)}},{key:"serviceComplaintFrequency",get:function(){var e=[];return this.service.complaintFrequency&&e.push(["Häufigkeit",this.service.complaintFrequency]),this.children.reduce((function(e,t){return[].concat((0,ut.A)(e),(0,ut.A)(t.serviceComplaintFrequency))}),e)}},{key:"serviceComplaintSpecialTextarea",get:function(){var e=[];return this.service.complaintSpecialTextarea&&e.push(["Spezielle Bedingung",this.service.complaintSpecialTextarea]),this.children.reduce((function(e,t){return[].concat((0,ut.A)(e),(0,ut.A)(t.serviceComplaintSpecialTextarea))}),e)}},{key:"replaceChild",value:function(e){if(!this.hasChildren()){var t,n=vl(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.child=r}}catch(e){n.e(e)}finally{n.f()}return e.length>1?null:e[0]}if(this.children.length>1)return this.removeChildren(),this.child=e,null;var a,i=vl(this.children[0].children);try{for(i.s();!(a=i.n()).done;){var o=a.value;e[0].child=o}}catch(e){i.e(e)}finally{i.f()}return this.children[0].service.serviceStorage=null,this.children[0]=e[0],this.children[0].service.serviceStorage=e[0],e[0].parent=this,e[0]}},{key:"removeChildren",value:function(){var e,t=vl(this.children);try{for(t.s();!(e=t.n()).done;){e.value.service.serviceStorage=null}}catch(e){t.e(e)}finally{t.f()}this.children.length=0}},{key:"removeChildrenRecursive",value:function(){var e,t=vl(this.children);try{for(t.s();!(e=t.n()).done;){e.value.removeChildrenRecursive()}}catch(e){t.e(e)}finally{t.f()}this.removeChildren()}}],[{key:"getAllSelectedServiceIds",value:function(e){var t,n=[],r=vl(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;n=[].concat((0,ut.A)(n),(0,ut.A)(a.serviceIds))}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"getUniqueId",value:function(){return isNaN(this._uidCounter)&&(this._uidCounter=0),this._uidCounter++}},{key:"generateSummaryTile",value:function(e,t){var n=new Zc,r=document.createElement("div");r.className="summary__selected-service";var a=document.createElement("p");a.className="summary__selected-service-name",a.textContent=pi(t||e.service.name);var i=document.createElement("a");return i.className="summary__selected-service-remove ".concat(Xt.get(Gt.service.presetKeyValid)?"d-none":""),i.textContent=Granite.I18n.get("apps.amag-ch.components.c
6ontent.otv.serviceSelection.remove"),i.addEventListener("click",(function(){var t=null;e.parent&&(e.parent.children=e.parent.children.filter((function(t){return t.uid!==e.uid})),0===e.parent.children.length&&(t=e.parent.uid));var r=Xt.get(Gt.service.selectedServices).filter((function(n){return e.uid!==n.uid&&n.uid!==t})),a=ul;e.removeChildrenRecursive(),e.service.serviceStorage=null,Xt.remove(Gt.service.selectedServices),n.renderedFrame=null;var i,o=vl(r);try{for(o.s();!(i=o.n()).done;){var s=i.value;Xt.append(Gt.service.selectedServices,s)}}catch(e){o.e(e)}finally{o.f()}if(Xt.get(Gt.service.selectedServices)){var c,l=Xt.get(Gt.service.selectedServices).filter((function(e){return!e.service.isSelectedAsLinkedService()})),u=Xt.get(Gt.service.selectedServices).filter((function(e){return e.service.isSelectedAsLinkedService()})),d=l.reduce((function(e,t){return[].concat((0,ut.A)(e),(0,ut.A)(t.runRecursive()))}),[]).filter((function(e){return!e.hasChildren()})).reduce((function(e,t){return[].concat((0,ut.A)(e),(0,ut.A)(t.service.linkedServiceIds))}),[]),h=vl(u);try{for(h.s();!(c=h.n()).done;){var p=c.value;d.includes(p.service.id)||p.service.setSelectedAsLinkedService(!1)}}catch(e){h.e(e)}finally{h.f()}}pl(),a&&dc.getInstance().getTabByName(tl).getPane(nl.servicesSummary).element[0].querySelector(".services-summary__add-service-container").click()})),r.appendChild(a),r.appendChild(i),r}}])}();function _l(e){return bl.apply(this,arguments)}function bl(){return(bl=(0,lt.A)(ht().mark((function e(t){var n,r,a;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Kt.get(Gt.service.selectedServices).find((function(e){return e.service.id===Hi.OTV_ONLY_TEXT_SERVICE})),Kt.store(Gt.service.wasServiceLane,Kt.get(Gt.service.selectedServices)),Kt.remove(Gt.service.selectedServices),e.next=5,ho.getService(t.fastLaneId);case 5:r=e.sent,(a=new yl(r)).complete=!0,Kt.store(Gt.service.fastlane,!0),Kt.append(Gt.service.selectedServices,a),n&&Kt.append(Gt.service.selectedServices,n);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wl(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Sl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Sl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Cl,El,xl=null;function Al(e,t){console.error(e),console.log(t),document.querySelector(".vehicle__error-msg").classList.remove("d-none"),document.querySelector(".js-tab-zero-submit").classList.remove("d-flex"),document.querySelector(".js-tab-zero-submit").classList.add("d-none")}function kl(){return Tl.apply(this,arguments)}function Tl(){return Tl=(0,lt.A)(ht().mark((function e(){var t,n,r,a;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Cl){e.next=5;break}return e.next=3,ai.getFavoriteGarageId();case 3:(t=e.sent)!==xl&&(Cl.forEach((function(e){e.remembered&&e.getId()!==t?console.log("Garage with ID "+e.getId()+" is remembered but does not match saved favorite garage ID. Resetting remembered status."):e.remembered||e.getId()!==t||console.log("Garage with ID "+e.getId()+" is not remembered but matches saved favorite garage ID. Setting remembered status.")})),xl=t);case 5:if(Cl){e.next=22;break}return n=(0,wt.d)("otvgarages"),e.next=9,fetch(n);case 9:return r=e.sent,e.next=12,ai.getFavoriteGarageId();case 12:if(a=e.sent,xl=a,!r.ok){e.next=20;break}return e.next=17,r.json().catch((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Al(t,r)}));case 17:Cl=e.sent.garages.map((function(e){var t=new ti(e.id,e.name,e.city,e.zip,e.street,e.serviceBrands,e.route,e.filterIdString.split(","),{lat:parseFloat(e.latitude),lng:parseFloat(e.longitude)},e.phone,e.email,e.headerquarterId,e.path,e.ratingWidgetIds,e.offCanvasLink,e.hideWaitingTimeService,e.teamPageLink,e.sellingBrandIds);return t.remembered=!!a&&e.id===a,t})),e.next=22;break;case 20:return console.error("Something went wrong by getting the data from URL: ".concat(pagePath)),e.abrupt("return",[]);case 22:return Kt.store(Gt.garage.allGaragesData,Cl),e.abrupt("return",Cl);case 24:case"end":return e.stop()}}),e)}))),Tl.apply(this,arguments)}function Ll(e){return Il.apply(this,arguments)}function Il(){return Il=(0,lt.A)(ht().mark((function e(t){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kl();case 2:return e.abrupt("return",e.sent.filter((function(e){return e.getId()===t}))[0]);case 3:case"end":return e.stop()}}),e)}))),Il.apply(this,arguments)}function Dl(){return Dl=(0,lt.A)(ht().mark((function e(t){var n,r;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,wt.d)("amagch-getGarageData"),e.prev=1,e.next=4,fetch("".concat(n,"?garageId=").concat(t));case 4:if((r=e.sent).ok){e.next=7;break}throw new Error("HTTP error while fetching garage data! status: ".concat(r.status));case 7:return e.abrupt("return",r.json());case 10:e.prev=10,e.t0=e.catch(1),console.error("Error while fetching garage data",e.t0);case 13:case"end":return e.stop()}}),e,null,[[1,10]])}))),Dl.apply(this,arguments)}function Pl(){return Ol.apply(this,arguments)}function Ol(){return Ol=(0,lt.A)(ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return El||(t=(0,wt.$)("otv-service-id-mapping"),El=(0,lt.A)(ht().mark((function e(){var n,r;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:if((n=e.sent).ok){e.next=5;break}throw new Error("HTTP error while fetching fast lane services from ".concat(t,": ").concat(n.status));case 5:return e.next=7,n.json();case 7:if(r=e.sent,Array.isArray(r)){e.next=10;break}throw new Error("Fast lane services response is not an array");case 10:return e.abrupt("return",r);case 11:case"end":return e.stop()}}),e)})))().catch((function(e){throw El=null,e}))),e.abrupt("return",El);case 2:case"end":return e.stop()}}),e)}))),Ol.apply(this,arguments)}function Rl(){return Ml.apply(this,arguments)}
6function Ml(){return Ml=(0,lt.A)(ht().mark((function e(){var t,n,r,a,i,o;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Kt.get(Gt.service.fastlane)&&"true"!==Kt.get(Gt.garage.replacementCar)){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,Pl();case 5:t=e.sent,n=Kt.get(Gt.service.selectedServices).flatMap((function(e){return e.serviceIds})).filter((function(e){return e!==Hi.OTV_ONLY_TEXT_SERVICE})),r=wl(t),e.prev=8,r.s();case 10:if((a=r.n()).done){e.next=19;break}if(i=a.value,o=i.serviceLaneId.split(","),!en.serviceArrayMatch(n,o)){e.next=17;break}return e.next=16,_l(i);case 16:return e.abrupt("break",19);case 17:e.next=10;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(8),r.e(e.t0);case 24:return e.prev=24,r.f(),e.finish(24);case 27:e.next=32;break;case 29:e.prev=29,e.t1=e.catch(2),console.error("Error while checking if services are fast lane",e.t1);case 32:case"end":return e.stop()}}),e,null,[[2,29],[8,21,24,27]])}))),Ml.apply(this,arguments)}var ql,Nl,Vl=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e)}),null,[{key:"initGoogleMaps",value:(e=(0,lt.A)(ht().mark((function e(t,n){var r;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hr.wait();case 2:r=new google.maps.Map(t,{center:n,zoom:16,streetViewControl:!1,fullscreenControl:!1,mapTypeControl:!1,zoomControl:!0}),new google.maps.Marker({position:n,map:r});case 4:case"end":return e.stop()}}),e)}))),function(t,n){return e.apply(this,arguments)})}]);var e}();!function(e){e.GARAGE_SEARCH_EVENT="GARAGE_SEARCH_EVENT"}(ql||(ql={})),function(e){e.HIDE_GARAGE_INFO_NOTIFICATION="hideGarageInfoNotification"}(Nl||(Nl={}));var Fl=__webpack_require__(74692);function Bl(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return jl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function jl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}if(document.getElementById("otv-booking-confirmation")){var Hl,Gl=function(){var e=(0,lt.A)(ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ll(1*Wl.garageId);case 2:Hl=e.sent,t=Fl("#otv-booking-confirmation"),$l=Hl.getGarageName(),Yl=Hl.getStreet(),Zl=Hl.getZip(),Kl=Hl.getCity(),Fl(".confirmation-headline").text(Ka(Granite.I18n.get("apps.amag-ch.components.content.otv-bookingconfirmation.headline.copy"),{garageName:Hl.getGarageName()})),t.find(".booking-confirmation__garage-name").text(Hl.getGarageName()),t.find(".booking-confirmation__garage-address").html("".concat(Hl.getStreet(),"<br>").concat(Hl.getZip()," ").concat(Hl.getCity())),Jl(),Xl(Hl.getHideWaitingTimeService());case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ul=function(e){var t=document.querySelector(".otv-booking-confirmation__infotext").dataset.toastMessage;t=t.replaceAll("$[garageName]",e);var n=(0,Ct.ox)(t,3e3,["success-toast","otv-booking-confirmation-success-toast"],(0,Ct.l4)("copyToastClose"),(0,Ct.MM)("copyToastIcon"));document.body.appendChild(n),n.show()},Wl=JSON.parse(window.sessionStorage.getItem(Gt.bookingSessionStorage)),zl=document.getElementById("amag-infrastructure-info"),$l="",Yl="",Zl="",Kl="",Xl=function(e){var t=document.querySelector("#otv-booking-confirmation .w
6aitingTimeServiceTeaser");t&&e&&!Ql()&&t.classList.add("d-none")},Jl=function(){var e=document.querySelector("#otv-booking-confirmation .waitingTimeServiceTeaser");if(e){var t=e.querySelector(".amag-ctaWrapper__button");if(t){var n=t.href,r=Wl?Wl.garageId:"",a=new URL(n);a.searchParams.append("garageId",r),t.href=a.href}}},Ql=function(){return"true"===document.querySelector("#otv-booking-confirmation .waitingTimeServiceTeaser").getAttribute("data-edit-mode-enabled")};Fl((0,lt.A)(ht().mark((function e(){var t,n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b,w,S,C,E,x,A,k,T;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Fl("#otv-booking-confirmation"),n=t.find(".booking-confirmation__selected-services"),r=t.find(".booking-confirmation__services-note"),a=t.find(".booking-confirmation__appointment"),i=t.find(".booking-confirmation__download-ics-link"),o=t.find(".link-detail"),s=t.find(".map"),c=t.find(".map-button"),l=t.find(".link-phone"),u=t.find(".link-email"),d=Wl.services,h=t.find(".followupText-container"),p={event:"ga4Event",eventName:"OTV_booked",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 8 - Termin erfolgreich gebucht",eventParameter3:"carBrand",fieldValue3:Wl.brand,eventParameter4:"carModel",fieldValue4:Wl.model},(0,it.eo)(p,7.2),"theme.amag.noncaptive"!==zl.dataset.theme?h.find(".followupText.amagFirst")[0].hidden=!0:h.find(".followupText.amagRetail")[0].hidden=!0,localStorage.removeItem(Nl.HIDE_GARAGE_INFO_NOTIFICATION),e.next=18,Gl();case 18:if("theme.amag.noncaptive"===zl.dataset.theme){e.next=23;break}return e.next=21,ai.getFavoriteGarageId();case 21:(f=e.sent)&&f===Wl.garageId||(m=t.find(".otv-booking-confirmation__infotext-favourite"),v=t.find(".otv-booking-confirmation__infotext"),(g=t[0].querySelector(".otv-booking-confirmation__infotext-inner")).innerHTML=g.innerHTML.replaceAll("$[garageName]",Hl.getGarageName()),v[0].hidden=!1,m[0].addEventListener("click",(function(){ai.setFavoriteGarage(Wl.garageId,(function(e){"OK"===e.status&&(v[0].hidden=!0,Ul(Hl.getGarageName()),(0,it.yZ)(Hl))}))})));case 23:return e.next=25,Vl.initGoogleMaps(s[0],Hl.getPosition());case 25:navigator.userAgent.match("CriOS")&&i.addClass("d-none"),void 0!==Wl.salutation&&("m"===Wl.salutation||"Mr"===Wl.salutation||"0002"===Wl.salutation?Wl.salutation=Granite.I18n.get("apps.amag-ch.components.content.profileoverview.salutation.manLabel"):"f"!==Wl.salutation&&"Ms"!==Wl.salutation&&"0001"!==Wl.salutation||(Wl.salutation=Granite.I18n.get("apps.amag-ch.components.content.profileoverview.salutation.womanLabel"))),t.find("[data-placeholder-text]").each((function(e,t){var n=Fl(t);if(n.hasClass("confirmation-text")&&Wl.brand.includes(Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.otherBrand"))){var r=n.data("placeholderText").split("$[brand]"),a=r[0]+r[1];n.text(Ka(a,Wl))}else n.text(Ka(n.data("placeholderText"),Wl))})),y=Bl(d);try{for(y.s();!(_=y.n()).done;)b=_.value,0===(w=en.flattenServiceNodeNames(b.children)).length&&(w=[b.name]),S=w.join(", "),C=","===S.charAt(0)?S.substring(1):S,E=" "===C.charAt(0)?C.substring(1):C,x='<p class="confirmation-box_text confirmation-text_bold margin-bottom_0">'.concat(E,"</p>"),n.append(x)}catch(e){y.e(e)}finally{y.f()}"true"===Wl.replacementCar&&n.append('<p class="confirmation-box_text confirmation-text_bold margin-bottom_0">'.concat(Granite.I18n.get("apps.amag-ch.components.content.otv-bookingconfirmation.replacementCar"),"</p>")),Wl.servicesNote||r.addClass("d-none"),a.find(".booking-confirmation__appointment-text").text(Ka(Granite.I18n.get("apps.amag-ch.components.content.otv-bookingconfirmation.appointment.text"),Wl.appointment)),a.find(".booking-confirmation__appointment-description").text(Wl.timeDesc),t.find(".booking-confirmation__download-ics-link").on("click",(function(){var e={name:$l,street:Yl,postcode:Zl,city:Kl},t={brand:Wl.brand,model:Wl.model,licensePlate:Wl.licensePlate,replacement:"true"===Wl.replacementCar};$a.generateFile(Wl,e,t)})),A="https://www.google.com/maps/dir/?api=1&destination=".concat(Hl.getRoute()),k=Hl.getPhoneNumber(),T=Hl.getEmail(),c.attr("href",A),l.attr("href","tel:".concat(k)),l.find("p").first().text((0,it.g_)(k)),u.attr("href","mailto:".concat(T)),u.find("p").first().text(T),o.attr("href",Hl.getPath());case 44:case"end":return e.stop()}}),e)}))))}var eu=__webpack_require__(74692);function tu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tu=function(){return!!e})()}var nu,ru,au=function(e){function t(){var e,n,r,a;return(0,pt.A)(this,t),n=this,r=t,r=(0,Ja.A)(r),(e=(0,Xa.A)(n,tu
6()?Reflect.construct(r,a||[],(0,Ja.A)(n).constructor):r.apply(n,a)))._searchContainer=document.querySelector(".garage-selection__search-container"),e._searchField=document.getElementById("garage-selection__search"),e._autoSuggestContainer=document.querySelector(".garage-selection__autosuggest-container"),e._searchIcon=document.querySelector(".garage-selection__search-icon"),e._searchDeleteBtn=document.querySelector(".garage-selection__delete-search-icon"),e.autoSuggestUlClass="garage-selection__autosuggest-list",e.autoSuggestLiClass="garage-selection__autosuggest-list-item",e._bindEventListener(),e}return(0,Qa.A)(t,e),(0,ft.A)(t,[{key:"_bindEventListener",value:function(){var e=this;if(this._searchIcon&&this._searchField&&this._autoSuggestContainer&&this._searchDeleteBtn){this._searchIcon.addEventListener("click",(function(){_u()})),this._searchField.addEventListener("keydown",(function(t){13===t.keyCode&&""!==e._getSearchText()&&(_u(),t.target.blur())}));var t=this._getOtvServletPath();this._searchField.addEventListener("input",(function(){e._searchContainer.classList.add("is-active"),e._getAutoSuggest(t),""===e._getSearchText()&&(e._searchContainer.classList.remove("is-active"),_u())})),this._searchDeleteBtn.addEventListener("click",(function(){e._searchField.value="",e._searchContainer.classList.remove("is-active"),_u()}))}}},{key:"_getOtvServletPath",value:function(){var e=window.location.pathname;return(e=e.replace(/\.(?:\w|\.|-)+\.html/,".html")).replace(".html",".otv-stores.html")}},{key:"_autosuggestClickListener",value:function(e){this._searchField.value=e.innerText,_u()}},{key:"findNearestGarages",value:(r=(0,lt.A)(ht().mark((function e(t,n){var r,a;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=n,e.t0){e.next=5;break}return e.next=4,kl();case 4:e.t0=e.sent;case 5:return r=e.t0,a=[],e.next=9,hr.wait();case 9:return r.forEach((function(e){e.distance=google.maps.geometry.spherical.computeDistanceBetween(new google.maps.LatLng(e.getPosition()),t),a.push(e)})),a=a.sort((function(e,t){return parseFloat(e.distance)-parseFloat(t.distance)})),e.abrupt("return",a.slice(0,5));case 12:case"end":return e.stop()}}),e)}))),function(e,t){return r.apply(this,arguments)})},{key:"startSearch",value:(n=(0,lt.A)(ht().mark((function e(){var t,n,r,a,i;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kl();case 2:return t=e.sent,n=this._getSearchText(),e.next=6,this._replaceSearchTextWithSynonym(n);case 6:if(n=e.sent,r=n.textValue,eu(".garage-selection").removeClass("invalid"),t.forEach((function(e){e.distance=void 0})),this._autoSuggestContainer.classList.add("d-none"),""===r){e.next=23;break}if(a=t.filter((function(e){return e.matchSearch(r)})),a.length){e.next=20;break}return e.next=16,jt(r).catch((function(e,t){console.log(e,t)}));case 16:return i=e.sent,e.abrupt("return",{searchPosition:i,isGoogleMapLocation:!0});case 20:return e.abrupt("return",{searchResults:a,isGoogleMapLocation:!1});case 21:e.next=24;break;case 23:return e.abrupt("return",{searchResults:t,isGoogleMapLocation:!1});case 24:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]);var n,r}(tn),iu=__webpack_require__(74692),ou={AUDI:{name:"".concat(Granite.I18n.get("apps.amag-ch.brandAudi")),id:"A"},VW_PKW:{name:"".concat(Granite.I18n.get("apps.amag-ch.brandVolkswagen")),id:"V"},SEAT:{name:"".concat(Granite.I18n.get("apps.amag-ch.brandSeatCupra")),id:"S"},SKODA:{name:"".concat(Granite.I18n.get("apps.amag-ch.brandSkoda")),id:"C"},VW_NZ:{name:"".concat(Granite.I18n.get("apps.amag-ch.brandVWNutzfahrzeuge")),id:"N"},BENTLEY:{name:"".concat(Granite.I18n.get("apps.amag-ch.brandBentley")),id:"B"},MICRO:{name:"".concat(Granite.I18n.get("apps.amag-ch.brandMicro")),id:"MICRO"}},su=iu('\n <label class="garage-selection__filterLabel">\n <input class="garage-selection__filterCheckbox" type="checkbox">\n <p class="garage-selection__filterText" data-text="'.concat(Granite.I18n.get("apps.amag-ch.components.content.otv.garage-selectionPane.filterCheckboxText"),'"></p>\n </label>'));function cu(){return lu.apply(this,arguments)}function lu(){return lu=(0,lt.A)(ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kl();case 2:return t=e.sent,e.abrupt("return",t.filter((function(e){return e.getBrands().indexOf(ou[nu].id)>-1})));case 5:case"end":return e.stop()}}),e)}))),lu.apply(this,arguments)}
6var uu,du,hu,pu=__webpack_require__(74692),fu=__webpack_require__(74692),mu=document.querySelector(".amag-otv-canvas"),vu=document.getElementById("amag-infrastructure-info"),gu=!1,yu="",_u=function(){var e=(0,lt.A)(ht().mark((function e(){var t,n,r,a,i;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return uu=uu||new au,e.next=3,uu.startSearch();case 3:if(n=e.sent,r=n.searchPosition,a=n.searchResults,!n.isGoogleMapLocation){e.next=17;break}if(r){e.next=12;break}t=[],e.next=15;break;case 12:return e.next=14,uu.findNearestGarages(r.geometry.location,du);case 14:t=e.sent;case 15:e.next=18;break;case 17:t=a.reduce((function(e,t){return du.find((function(e){return e._id==t._id}))&&e.push(t),e}),[]);case 18:hu.html(""),hu.append(t.map((function(e){return e.getHTML()}))),0==hu.contents().length?(document.querySelector(".garagelist__error-msg").classList.remove("d-none"),pu(".tab-pane__navigation-forwards").addClass("d-none")):(document.querySelector(".garagelist__error-msg").classList.add("d-none"),pu(".tab-pane__navigation-forwards").removeClass("d-none")),i=hu.find("input"),dc.getInstance().activeTab.getPaneNavigation().removeClass("is-sticky"),pu("#otv-tab-1-content .tab-pane__navigation-forwards").on("click",(function(){yt(!1),window.scrollTo(0,0),yt(!0)})),i.on("change",(function(){Kt.store(Gt.garage.headerquarterId,pu(this).attr("data-headquarter")),pu(".garage-selection").removeClass("invalid"),i.each((function(e,t){(t=pu(t)).closest("label").toggleClass("is-active",t.prop("checked")),dc.getInstance().activeTab.getPaneNavigation().addClass("is-sticky")})),Ao().includes("booking.booking-summary")&&this.value!==Kt.get(Gt.garage.garageSelection)&&(bo.length=0,So(),pu('input[name="appointment.validation"]').removeAttr("value"))})),hu.find("input[value='".concat(Kt.get(Gt.garage.garageSelection),"']")).click(),pu(".garage-selection__search-container").hasClass("is-active")||bu(hu,Kt.get(Gt.garage.garageSelection)),pu(".garage-selection__garage-businessZone").each(function(){var e=(0,lt.A)(ht().mark((function e(t,n){var r,a,i;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=pu(n),e.next=3,fetch(n.dataset.canvasLink);case 3:return a=e.sent,e.prev=4,e.next=7,a.text();case 7:i=e.sent,pu(fu.parseHTML(i)).find(".amag-otv-canvas__canvas-content")[0].children.length>0?r.on("click",(function(e){e.preventDefault();var t=document.querySelector("body");mu.innerHTML=i,mu.classList.remove("d-none"),t.classList.add("no-scroll"),pu(".amag-otv-canvas__backdrop").on("click",(function(){mu.classList.add("d-none"),t.classList.remove("no-scroll")})),pu(".amag-otv-canvas__canvas-close-btn").on("click",(function(){mu.classList.add("d-none"),t.classList.remove("no-scroll")}))})):r.addClass("garage-selection__garage-businessZone--onlyInfo"),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),console.error(e.t0);case 15:case"end":return e.stop()}}),e,null,[[4,12]])})));return function(t,n){return e.apply(this,arguments)}}());case 28:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function bu(e,t){pu('input[value="'.concat(t,'"]')).closest("label").prependTo(e)}function wu(){return Su.apply(this,arguments)}function Su(){return(Su=(0,lt.A)(ht().mark((function e(){var t,n;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"==typeof dataLayer){e.next=8;break}return e.t0=Kt.get(Gt.car.brand),e.t1=Kt.get(Gt.car.model),e.next=5,Ll(parseInt(Kt.get(Gt.garage.garageSelection)));case 5:e.t2=e.sent.getGarageName(),t={event:"ga4Event",eventName:"click_nextStep",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 4 - Garage ausgewählt",eventParameter3:"carBrand",fieldValue3:e.t0,eventParameter4:"carModel",fieldValue4:e.t1,eventParameter5:"interaction_content",fieldValue5:e.t2},(0,it.eo)(t,4.1);case 8:(n=Kt.get(Gt.otv.hash)).garageId=Kt.get(Gt.garage.garageSelection),Xc(n),Kt.store(Gt.otv.hash,n),Eo("appointment.choose-date");case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Cu(){return Eu.apply(this,arguments)}function Eu(){return(Eu=(0,lt.A)(ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"theme.amag.noncaptive"===vu.dataset.theme&&"porsche"===vu.dataset.project||(document.querySelector(".garage-selection__filterCheckbox").checked=!1),e.next=3,kl();
6case 3:return du=e.sent,e.next=6,_u();case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xu(){return Au.apply(this,arguments)}function Au(){return(Au=(0,lt.A)(ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!document.querySelector(".garage-selection__filterCheckbox").checked){e.next=7;break}return e.next=4,cu();case 4:du=e.sent,e.next=10;break;case 7:return e.next=9,kl();case 9:du=e.sent;case 10:_u();case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ku(){return ku=(0,lt.A)(ht().mark((function e(){var t,n;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=dc.getInstance(),du){e.next=5;break}return e.next=4,kl();case 4:du=e.sent;case 5:return hu=pu(".garage-selection__garages"),e.next=8,_u();case 8:t.getTabByName("garages").getPane("garage-selection").element.on("otv.activate",function(){var e=(0,lt.A)(ht().mark((function e(n){var r,a,i,o,s,c,l,u;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return pu(".tab-pane__navigation-backwards").removeClass("d-none"),r={event:"ga4Event",eventName:"user_landed",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 4 - Garage ausgewählt",eventParameter3:"carBrand",fieldValue3:Kt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Kt.get(Gt.car.model)},(0,it.eo)(r,4),window.sessionStorage.getItem("garage.presetGarage")?a=window.sessionStorage.getItem("garage.presetGarage"):Kt.get("garage.presetGarage")&&(a=Kt.get("garage.presetGarage")),i=Kt.get(Gt.garage.garageSelection),o="garage-summary__selection--default",e.next=8,Ll(parseInt(a));case 8:if(s=!!e.sent,c=(0,ni.Ri)("garage"),l="",!(0,it.EW)()){e.next=18;break}return e.next=14,ai.getFavoriteGarageId();case 14:(u=e.sent)?l=u:c&&(l=c,ai.setFavoriteGarage(c)),e.next=19;break;case 18:c&&(l=c);case 19:if(i){e.next=50;break}if(e.t0=!!a&&s,!e.t0){e.next=25;break}return e.next=24,Iu(a);case 24:e.t0=e.sent;case 25:if(!e.t0){e.next=36;break}return e.next=28,Cu();case 28:Kt.store(Gt.garage.garageSelection,a),Kt.store(Gt.garage.replacementCar,"false"),hu.find("input[value='".concat(Kt.get(Gt.garage.garageSelection),"']")).click(),o="garage-summary__selection--garageDetail",Eo("garages.summary",!0),e.next=50;break;case 36:if(e.t1=!!l,!e.t1){e.next=41;break}return e.next=40,Iu(l);case 40:e.t1=e.sent;case 41:if(!e.t1){e.next=50;break}return e.next=44,Cu();case 44:Kt.store(Gt.garage.garageSelection,l),Kt.store(Gt.garage.replacementCar,"false"),hu.find("input[value='".concat(Kt.get(Gt.garage.garageSelection),"']")).click(),o="garage-summary__selection--remembered",Eo("garages.summary",!0);case 50:if(t.getTabByName("garages").getPane("summary").element.removeClass("garage-summary__selection--default garage-summary__selection--garageDetail garage-summary__selection--remembered").addClass(o),!i){e.next=57;break}return document.getElementById("garage-selection__search").value="",document.querySelector(".garage-selection__search-container").classList.remove("is-active"),e.next=56,_u();case 56:bu(hu,i);case 57:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t.getTabByName("garages").getPane("garage-selection").element.find(".garage-selection__search-field").on({focus:function(){(window.device.mobile()||window.device.tablet())&&t.getTabByName("garages").getPaneNavigation().addClass("no-sticky")},blur:function(){t.getTabByName("garages").getPaneNavigation().removeClass("no-sticky")}}),t.getTabByName("garages").getPane("garage-selection").element.on("otv.activate",function(){var e=(0,lt.A)(ht().mark((function e(t){var n,r,a,i,o,s;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(pu(".tab-pane__navigation-forwards").removeClass("d-none"),r=Kt.get(Gt.car.brand),gu&&yu===r||(yu=r,nu=Kt.get(Gt.car.brandId),ru=Kt.get(Gt.car.modelId),"FREMD"===nu&&"MICRO"===ru&&(nu="MICRO"),nu in ou&&(iu(".garage-selection__search-container").after(su),su.find(".garage-selection__filterText").text(su.find(".garage-selection__filterText").data("text").replace("$[brand]",ou[nu].name)))),a=Kt.get(Gt.service.fastlane),i=document.querySelector(".garage-selection__filterLabel"),o=document.querySelector(".garage-selection__filterCheckbox"),s=null===(n=document.querySelector(".garage-selection__filterText"))||void 0===n?void 0:n.textContent.includes("".concat(Granite.I18n.get("apps.amag-ch.brandMicro"))),o){e.next=9;break}return e.abrupt("return");case 9:return o.addEventListener("click",(0,lt.A)(ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xu();case 2:case"end":return e.stop()}}),e)})))),a?a&&(o.disabled=!1,i.hidden=!1,gu||o.checked||(o.click(),gu=!0)):(o.checked=!0,o.disabled=!0,i.hidden=!0),s&&(o.checked=!0,o.disabled=!0),e.next=14,xu();case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(n=pu(".replacement-car").find("input")).on("change",(function(){n.each((function(e,t){(t=pu(t)).closest("label").toggleClass("is-active",t.prop("checked"))}))})),t.getTabByName("garages").getPane("replacement-car").element.on("otv.activate",(function(){pu(".tab-pane__navigation-backwards").removeClass("d-none"),t.getTabByName("garages").getPane("summary").element.find("a.summary__change-garage-btn").attr("href","#garages.garage-selection,garages.summary")}
6)),t.getTabByName("garages").getPane("summary").element.on("otv.activate",function(){var e=(0,lt.A)(ht().mark((function e(t){var n,r,a,i,o;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Kt.get(Gt.garage.garageSelection),r="true"===Kt.get(Gt.garage.replacementCar),e.next=3,Ll(parseInt(n));case 3:a=e.sent,pu(".summary__garage-name").text(a.getGarageName()),pu(".summary__garage-street").text(a.getStreet()),pu(".summary__garage-zip").text(a.getZip()),pu(".summary__garage-city").text(a.getCity()),i=a.getServiceBrands(),o="",i.forEach((function(e){o+='<p class="summary__garage-service-brand">'+e+"</p>"})),pu(".summary__garage-service-brands").html(o),pu(".summary__garage-route").attr("href","https://www.google.com/maps/dir/?api=1&destination=".concat(a.getRoute())),pu(".summary__garage-body .amag-rating__container").html(a.getNewRatingWidgetHTML()),Kt.get(Gt.service.presetKeyValid)&&pu(".summary__change-garage-btn").html(""),r?(pu(".summary__replacement-car-text").text("".concat(Granite.I18n.get("apps.amag-ch.components.content.otv.summaryPane.YesReplacementCarText"))),pu(".summary__replacement-car-change-btn").text("".concat(Granite.I18n.get("apps.amag-ch.components.content.otv.summaryPane.changeLinkText")))):(pu(".summary__replacement-car-text").text("".concat(Granite.I18n.get("apps.amag-ch.components.content.otv.summaryPane.NoReplacementCarText"))),pu(".summary__replacement-car-change-btn").text("".concat(Granite.I18n.get("apps.amag-ch.components.content.otv.summaryPane.changeLinkTextReplacementCar")))),pu(".tab-pane__navigation-backwards").removeClass("d-none"),pu(".tab-pane__navigation-forwards").removeClass("d-none");case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t.contentComponent.on("otv.navigateForward",function(){var e=(0,lt.A)(ht().mark((function e(n,r){var a,i;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("garages.summary"!==t.activeTab.getActivePane().uri){e.next=32;break}if(r.preventDefault=!0,a=Kt.get(Gt.service.fastlane),i=Kt.get(Gt.garage.replacementCar),e.prev=4,!a){e.next=19;break}if(null!=i){e.next=9;break}return Eo("garage.replacement-car"),e.abrupt("return");case 9:if("true"!==i){e.next=15;break}return e.next=12,Tu();case 12:return e.next=14,wu();case 14:return e.abrupt("return");case 15:if("false"!==i){e.next=19;break}return e.next=18,wu();case 18:return e.abrupt("return");case 19:if("true"!==i){e.next=23;break}return e.next=22,wu();case 22:return e.abrupt("return");case 23:return e.next=25,Rl();case 25:return e.next=27,wu();case 27:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(4),console.error("Error while checking if services are fast lane",e.t0);case 32:case"end":return e.stop()}}),e,null,[[4,29]])})));return function(t,n){return e.apply(this,arguments)}}());case 16:case"end":return e.stop()}}),e)}))),ku.apply(this,arguments)}function Tu(){return Lu.apply(this,arguments)}function Lu(){return(Lu=(0,lt.A)(ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Kt.store(Gt.service.selectedServices,Kt.get(Gt.service.wasServiceLane)),Kt.store(Gt.service.fastlane,!1);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Iu(e){return Du.apply(this,arguments)}function Du(){return Du=(0,lt.A)(ht().mark((function e(t){var n,r;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ll(parseInt(t));case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:if(r=n.getServiceBrands(),"theme.amag.noncaptive"!==vu.dataset.theme||"porsche"!==vu.dataset.project){e.next=8;break}return e.abrupt("return",!0);case 8:return e.abrupt("return",r.includes(Kt.get(Gt.car.brand))||r.includes(Kt.get(Gt.car.brandId)));case 9:case"end":return e.stop()}}),e)}))),Du.apply(this,arguments)}var Pu,Ou=__webpack_require__(45703),Ru=__webpack_require__.n(Ou),Mu=__webpack_require__(29987),qu=__webpack_require__.n(Mu),Nu=__webpack_require__(14985),Vu=__webpack_require__.n(Nu),Fu=__webpack_require__(42797),Bu=__webpack_require__.n(Fu),ju=__webpack_require__(25096),Hu=__webpack_require__.n(ju);!function(e){e.BENTLEY="BENTLEY",e.AUDI="AUDI",e.PORSCHE="Porsche",e.SEAT_CUPRA="SEAT/CUPRA",e["Å KODA"]="Å KODA",e.VOLKSWAGEN="VOLKSWAGEN",e.VW_NUTZ
6FAHRZEUGE="VW Nutzfahrzeuge",e.OTHER="FREMD"}(Pu||(Pu={}));function Gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gu(Object(n),!0).forEach((function(t){qo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wu(e,t,n){return t=(0,Ja.A)(t),(0,Xa.A)(e,zu()?Reflect.construct(t,n||[],(0,Ja.A)(e).constructor):t.apply(e,n))}function zu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zu=function(){return!!e})()}function $u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Yu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yu(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Yu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Zu=function(e,t,n){var r=Qu().map((function(e){return e.LBRVAL_ID})).join(","),a="getHierarchyId.json?garageId=".concat(e,"&model=").concat(n,"&brand=").concat(t,"&services=").concat(r);return"".concat(wr.getUrl()).concat(a)},Ku=function(){return"".concat(wr.getUrl()).concat("getAvailableAppointments.json")},Xu=function(e,t){var n="getLeadTime.json?hierarchyId=".concat(e,"&isFastLane=").concat(t);return"".concat(wr.getUrl()).concat(n)},Ju=function(e){return e?{ACTION:"T",ParameterNav:[{APARAM_ID:"CBCK",STATE:!1},{APARAM_ID:"INFO",STATE:!0},{APARAM_ID:"WAIT",STATE:!0}]}:{ACTION:"T",ParameterNav:[{APARAM_ID:"CBCK",STATE:!1},{APARAM_ID:"INFO",STATE:!0},{APARAM_ID:"WAIT",STATE:!0},{APARAM_ID:"SAD1",STATE:!0},{APARAM_ID:"SAD2",STATE:!0}],TimeslotsNav:[{START_TIME:"17:00:00",END_TIME:"22:00:00",APARAM_ID:"SAD2"}]}};function Qu(){var e,t=[],n=$u(Kt.get(Gt.service.selectedServices));try{for(n.s();!(e=n.n()).done;){var r=e.value;t=[].concat((0,ut.A)(t),(0,ut.A)(r.serviceIds))}}catch(e){n.e(e)}finally{n.f()}var a=t.map((function(e){return{LBRVAL_ID:e}}));return a=a.filter((function(e){return e.LBRVAL_ID!==Hi.OTV_ONLY_TEXT_SERVICE})),"true"===Kt.get(Gt.garage.replacementCar)&&a.push({LBRVAL_ID:Ko()}),a}function ed(e,t){try{Kt.remove(Gt.service.selectedServices);var n=e.map((function(e){return e.setIdForSingleService(t),e}));Kt.store(Gt.service.selectedServices,n)}catch(t){Kt.store(Gt.service.selectedServices,e),console.error(t)}}var td=function(e){function t(){return(0,pt.A)(this,t),Wu(this,t,arguments)}return(0,Qa.A)(t,e),(0,ft.A)(t,null,[{key:"_fetch",value:(n=(0,lt.A)(ht().mark((function e(t,n){var r,a,i,o,s,c;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Kt.get(Gt.garage.garageSelection).padStart(4,"0"),a=Kt.get(Gt.garage.headerquarterId).padStart(4,"0"),this._lastGarageId!==r&&this.deleteData(),this._lastGarageId=r,i=Kt.get(Gt.car.brandId),o=Kt.get(Gt.car.modelId),i!==Pu.BENTLEY){e.next=11;break}return e.next=9,(0,yr.N$)("otv-bentley-garages");case 9:s=e.sent.map((function(e){return e.padStart(4,"0")})),s.includes(r)&&ed(Kt.get(Gt.service.selectedServices),Gi.BENTLEY);case 11:if(i!==Pu.OTHER||"MICRO"!==o){e.next=16;break}return e.next=14,(0,yr.N$)("otv-microlino-garages");case 14:c=e.sent.map((function(e){return e.padStart(4,"0")})),c.includes(r)&&ed(Kt.get(Gt.service.selectedServices),Gi.MICRO);case 16:return e.abrupt("return",new Promise((function(e,r){(0,yr.eJ)(Zu(a,i,o)).then((function(e){var t;if((null===(t=e.d)||void 0===t||null===(t=t.results)||void 0===t||null===(t=t[0].LocationNav)||void 0===t||null===(t=t.results)||void 0===t?void 0:t.length)>0){var n,r=null===(n=e.d.results[0].LocationNav)||void 0===n||null===(n=n.results)||void 0===n?void 0:n[0].HIERARCHY_ID;Kt.store(Gt.garage.SRSid,r)}else Kt.store(Gt.garage.SRSid,"")})).catch((function(){Kt.store(Gt.garage.SRSid,"")})).finally((function(){var a;a={MAKE_CODE:i,LaboursNav:Qu(),VISIT_DATETIME:t,PICKUP_DATETIME:n,LocationsNav:[{HIERARCHY_ID:Kt.get(Gt.garage.SRSid)}]},a=Uu(Uu({},Ju(!1)),a),(0,yr.eT)(Ku(),a).then((function(t){e(t.d.LocationsNav.results)})).catch((function(e){r(e)}))}))})));case 17:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})}]);var n}(Ai),nd=function(e){function t(){return(0,pt.A)(this,t),Wu(this,t,arguments)}return(0,Qa.A)(t,e),(0,ft.A)(t,null,[{key:"_fetch",value:(n=(0,lt.A)(ht().mark((function e(t){var n,r,a,i,o,s,c;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Kt.get(Gt.garage.garageSelection).padStart(4,"0"),r=Kt.get(Gt.garage.headerquarterId).padStart(4,"0"),Kt.get(Gt.service.selectedServices),a=Kt.get(Gt.car.modelId),this._lastGarageId!==n&&this.deleteData(),this._lastGarageId=n,e.next=8,(0,yr.N$)("otv-small-garages");case 8:if(i=e.sent.map((function(e){return e.padStart(4,"0")})),i.includes(n)&&ed(Kt.get(Gt.service.selectedServices),Gi.SMALL_GARAGE),(o=Kt.get(Gt.car.brandId))!==Pu.BENTLEY){e.next=16;break}return e.next=14,(0,yr.N$)("otv-bentley-garages");case 14:s=e.sent.map((function(e){return e.padStart(4,"0")})),s.includes(n)&&ed(Kt.get(Gt.service.selectedServices),Gi.BENTLEY);case 16:if(o!==Pu.OTHER||"MICRO"!==a){e.next=21;break}return e.next=19,(0,yr.N$)("otv-microlino-garages");case 19:c=e.sent.map((function(e){return e.padStart(4,"0")})),c.includes(n)&&ed(Kt.get(Gt.service.selectedServices),Gi.MICRO);case 21:return e.abrupt("return",new Promise((function(e,n){(0,yr.eJ)(Zu(r,o,a)).then((function(e){var t;if((null===(t=e.d)||void 0===t||null===(t=t.results)||void 0===t||null===(t=t[0].LocationNav)||void 0===t||null===(t=t.results)||void 0===t?void 0:t.length)>0){var n,r=null===(n=e.d.results[0].LocationNav)||void 0===n||null===(n=n.results)||void 0===n?void 0:n[0].HIERARCHY_ID;Kt.store(Gt.garage.SRSid,r)}else Kt.store(Gt.garage.SRSid,"")})).catch((function(){Kt.store(Gt.garage.SRSid,"")})).finally((function(){var r;r={MAKE_CODE:o,LaboursNav:Qu(),VISIT_DATETIME:t,LocationsNav:[{HIERARCHY_ID:Kt.get(Gt.garage.SRSid)}]},r=Uu(Uu({},Ju(!0)),r),(0,yr.eT)(Ku(),r).then((function(t){e(t.d.LocationsNav.results)})).catch((function(e){n(e)}))}))})));case 22:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}]);var n}(Ai);function rd(){return ad.apply(this,arguments)}function ad(){return ad=(0,lt.A)(ht().mark((function e(){var t,n,r,a,i,o,s;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Kt.get(Gt.garage.headerquarterId).padStart(4,"0"),n=Kt.get(Gt.car.brandId),r=Kt.get(Gt.car.modelId),e.next=5,(0,yr.eJ)(Zu(t,n,r)).then((function(e){var t;if((null===(t=e.d)||void 0===t||null===(t=t.results)||void 0===t||null===(t=t[0].LocationNav)||void 0===t||null===(t=t.results)||void 0===t?void 0:t.length)>0){var n,r=null===(n=e.d.results[0].LocationNav)||void 0===n||null===(n=n.results)||void 0===n?void 0:n[0].HIERARCHY_ID;Kt.store(Gt.garage.SRSid,r)}else Kt.store(Gt.garage.SRSid,"")})).catch((function(){Kt.store(Gt.garage.SRSid,"")}));case 5:return a=Kt.get(Gt.garage.SRSid),i=!!Kt.get(Gt.service.fastlane),o=Xu(a,i),e.next=10,fetch(o);case 10:if(!(s=e.sent).ok){e.next=17;break}return e.next=14,s.json();case 14:return e.abrupt("return",e.sent);case 17:return console.error("Something went wrong by getting the data from URL: ".concat(o)),e.abrupt("return");case 19:case"end":return e.stop()}}),e)}))),ad.apply(this,arguments)}function id(e,t){return Math.round(Math.abs((e-t)/864e5))}var od,sd,cd,ld,ud,dd,hd,pd,fd,md,vd,gd,yd,_d,bd=__webpack_require__(74692),wd=__webpack_require__(74692),Sd=[{id:"",text:""},{id:"07:00",text:"07:00"},{id:"08:00",text:"08:00"},{id:"09:00",text:"09:00"},{id:"10:00",text:"10:00"},{id:"11:00",text:"11:00"},{id:"12:00",text:"12:00"},{id:"13:00",text:"13:00"},{id:"14:00",text:"14:00"},{id:"15:00",text:"15:00"},{id:"16:00",text:"16:00"},{id:"17:00",text:"17:00"}
6],Cd=document.getElementById("amag-infrastructure-info"),Ed=[],xd=[],Ad='\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M13.4009 24C13.2789 24 13.1609 23.956 13.0699 23.875L0.494919 12.748C0.464919 12.721 0.436919 12.693 0.410919 12.664C0.0449191 12.251 0.0819193 11.617 0.493919 11.252L13.0689 0.125C13.1609 0.044 13.2789 0 13.4009 0C13.5439 0 13.6809 0.062 13.7759 0.169C13.9579 0.375 13.9389 0.692 13.7329 0.874L1.15692 12L13.7319 23.125C13.9379 23.308 13.9579 23.625 13.7749 23.831C13.6799 23.939 13.5439 24 13.4009 24Z"/>\n </svg>',kd=function(e,t){document.querySelectorAll(".choose-date__description, .choose-date-summary__description").forEach((function(n){var r=n.getAttribute("data-description-text");r.includes(e)&&(n.innerText=r.replace(e,t))}))},Td=function(){return bd(".choose-date__datepicker").datepicker("getDate")};var Ld=function(){var e=(0,lt.A)(ht().mark((function e(){var t,n,r,a,i,o,s;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=document.querySelector(".choose-date")).classList.add("choose-date--error"),e.next=4,Ll(parseInt(Kt.get(Gt.garage.garageSelection)));case 4:(n=e.sent)&&(r=bd(".garage-phone-link"),a=bd(".garage-email-link"),i="",n.getServiceBrands().forEach((function(e){i+='<p class="garage-service-brand">'+e+"</p>"})),bd(".garage-name").text(n.getGarageName()),bd(".garage-service-brands").html(i),bd(".garage-street").text(n.getStreet()),bd(".garage-zip").text(n.getZip()),bd(".garage-city").text(n.getCity()),r.attr("href","tel:".concat(n.getPhoneNumber())),r.text(n.getPhoneNumber()),a.attr("href","mailto:".concat(n.getEmail())),a.text(n.getEmail())),o=t.querySelector(".error-msg-box__msg").innerText,s={event:"ga4Event",eventName:"click_nextStep_failed",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 5 - Termin abgewählt",eventParameter3:"carBrand",fieldValue3:Kt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Kt.get(Gt.car.model),eventParameter5:"interaction_content",fieldValue5:o},(0,it.eo)(s,4.3);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Id=function(){var e=bd(".choose-date__times > .choose-date__time.is-active").length>0;if(ld){if(e){var t=document.querySelector(".choose-date__time.is-active");cd=t.children[0].children[0].getAttribute("data-date");var n=t.children[0].children[1].children[0].innerHTML.split(",");pd=n[1],Kt.store(Gt.appointment.date,cd),Kt.store(Gt.appointment.time,ld),Kt.store(Gt.appointment.day,pd),Kt.store(Gt.appointment.object,function(){var e=cd,t=e.split(".");e=t[2]+"-"+t[1]+"-"+t[0]+"T"+ld+":00";var n=new Date(e),r=new Date(n.getTime()-6e4*n.getTimezoneOffset()).toISOString().split("T")[0];return od.find((function(e){return e.VISIT_DATETIME.includes(r)&&e.VISIT_DATETIME.includes(ld)}))}()),bd('input[name="appointment.validation"]').attr("value",!0)}}else bd('input[name="appointment.validation"]').removeAttr("value")},Dd=function(e,t){bd(".tab-pane__navigation-forwards").addClass("d-none");var n=parseInt(document.querySelector(".js-amag-otv-delay-days").getAttribute("data-days")),r=document.querySelector(".choose-date__notification");r.hidden=!0,sd.innerHTML="";var a=e[0];if(e[0]=e[2],e[2]=a,e.length){e=e.sort((function(e,t){return new Date(e.VISIT_DATETIME)-new Date(t.VISIT_DATETIME)}));var i=!1,o=!1;e.forEach((function(e,r){if(e||void 0!==e){var a=new Date(e.VISIT_DATETIME);Pd(e,r),id(new Date(t),a)>=n&&(o=!0)}else i=!0})),i&&Ld(),o&&(r.hidden=!1),bd("body,html").animate({scrollTop:bd("#chooseDateDropdown").offset().top},10);var s=bd(".choose-date__time");s.on("click",(function(){var e=bd(this);s.removeClass("is-active"),document.getElementsByName("rbtn").forEach((function(e){e.checked&&(e.checked=!1)})),e.addClass("is-active"),document.getElementById(e[0].htmlFor).checked=!0,ld=e[0].children[0].children[0].value;var t=bd(".tab-pane__navigation-forwards");(t.hasClass("d-none")||ld)&&(t.removeClass("d-none"),bd(".tab-pane__navigation-container").addClass("is-sticky")),Id()}))}else ld=void 0,sd.insertAdjacentHTML("beforeend",'<div class="choose-date__noAvailableAppointments">
6'.concat(Granite.I18n.get("apps.amag-ch.components.content.otv.choose-date.noAvailableAppointments"),"</div>"))},Pd=function(e,t){var n=new Date(e.VISIT_DATETIME),r=new Date(e.END_DATETIME),a=(0,it.Z0)(),i="".concat(Granite.I18n.get("apps.amag-ch.components.content.otv.choose-date.pickUpTimeText"),"\n ").concat(r.toLocaleTimeString(a,{hour:"2-digit",minute:"2-digit"}),"\n ").concat(Granite.I18n.get("apps.amag-ch.components.content.otv.choose-date.pickUpTimeTime")),o=document.querySelector(".choose-date__times"),s=o.getAttribute("data-description-fastlane-text"),c=o.getAttribute("data-description-mfk-text"),l=o.getAttribute("data-hint-text"),u=o.getAttribute("data-hint-fastlane-text"),d=new Date(e.END_DATETIME),h=d.toLocaleDateString(a,{weekday:"long"}),p=d.toLocaleTimeString(a,{hour:"2-digit",minute:"2-digit"}),f=i;fd?f=s:md&&(f=c.replace("$[Day]",h).replace("$[Time]",p));var m=document.createDocumentFragment(),v=document.createElement("label");v.classList.add("choose-date__time"),v.setAttribute("for","rt-".concat(t)),v.setAttribute("data-appointment-desc","".concat(f));var g=document.createElement("div");g.classList.add("choose-date__time-content");var y=document.createElement("input");y.setAttribute("type","radio"),y.setAttribute("name","appointment"),y.setAttribute("value",n.toLocaleTimeString(a,{hour:"2-digit",minute:"2-digit"})),y.setAttribute("id","rt-".concat(t)),y.dataset.date=n.toLocaleDateString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"}),y.dataset.validation="required",g.appendChild(y);var _=document.createElement("div");_.classList.add("choose-date__time-info");var b=document.createElement("p");b.classList.add("choose-date__time-time","amag-copy--smallBold"),b.textContent="".concat(n.toLocaleDateString(a,{year:"numeric",month:"numeric",day:"numeric"}),",\n ").concat(n.toLocaleDateString(a,{weekday:"long"})," ").concat(Granite.I18n.get("apps.amag-ch.components.content.otv.choose-date.appointmentFiller"),"\n ").concat(n.toLocaleTimeString(a,{hour:"numeric",minute:"2-digit"})," ").concat(Granite.I18n.get("apps.amag-ch.components.content.otv.choose-date.appointmentTime")),_.appendChild(b);var w=document.createElement("p");w.classList.add("choose-date__time-text"),w.textContent=f,_.appendChild(w);var S=document.createElement("div");S.classList.add("choose-date__time-hint"),S.innerHTML=fd?u:l,Array.from(S.getElementsByTagName("a")).forEach((function(e){e.addEventListener("click",(function(e){e.stopPropagation()}))})),_.appendChild(S),g.appendChild(_),v.appendChild(g),m.appendChild(v),sd.appendChild(m)},Od=function(e){var t=bd("#appointments-time-dropdown").find("option:selected").val(),n=new Date(e),r=new Date(e);return cd=bd.datepicker.formatDate("dd.mm.yy",new Date(e)),n=bd.datepicker.formatDate("yy-mm-dd",n),n="".concat(n,"T").concat(t,":00"),r=bd.datepicker.formatDate("yy-mm-dd",r),{isoVisitDateString:n,isoPickUpDateString:r="".concat(r,"T17:00")}},Rd=function(){var e=(0,lt.A)(ht().mark((function e(t){var n,r,a,i,o,s,c,l,u,d,h;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=new fr.y).text=Granite.I18n.get("apps.amag-ch.components.content.otv.choose-date.appointmentSpinnerText"),"theme.amag.noncaptive"===Cd.dataset.theme&&"porsche"===Cd.dataset.project&&(n.color="var(--componentIconColor)",n.textColor="#000000"),r=Od(t),a=r.isoVisitDateString,i=r.isoPickUpDateString,n.show(bd(sd).closest(".tab-pane")),bd("body, html").animate({scrollTop:0},10),o=bd(".choose-date"),s=o.attr("data-informationTextAfter5s"),c=o.attr("data-informationTextAfter10s"),l=setTimeout((function(){n.text=s,n.show(bd(sd).closest(".tab-pane"))}),5e3),u=setTimeout((function(){n.text=c,n.show(bd(sd).closest(".tab-pane"))}),1e4),e.prev=11,!fd){e.next=18;break}return e.next=15,nd.getData(!1,a,i);case 15:e.t0=e.sent,e.next=21;break;case 18:return e.next=20,td.getData(!1,a);case 20:e.t0=e.sent;case 21:od=e.t0,e.next=29;break;case 24:e.prev=24,e.t1=e.catch(11),console.error(e.t1),Ld(),od=!1;case 29:return e.prev=29,clearTimeout(l),clearTimeout(u),e.finish(29);case 33:od&&(md=!1,Kt.get(Gt.appointment.validation).includes("AMAG_OTV_08 11000")&&(md=!0),md&&od.forEac
6h((function(e){for(var t=!1,n=new Date(e.END_DATETIME),r="";!t;)n.setDate(n.getDate()+1),t=qd(r="".concat(n.toISOString().split("T")[0],"T").concat(n.toLocaleTimeString("de-DE")));e.END_DATETIME=r})),d=bd(".choose-date__times"),it.lp.isMobile()?(h=bd("#appointments-time-dropdown")[0],d.hasClass("d-none")&&h.options[h.selectedIndex].text!==document.getElementById("appointments-time-dropdown-label").innerHTML&&(d.removeClass("d-none"),bd(".choose-date__select-garage-text").removeClass("d-none"),bd(".choose-date__select-garage").removeClass("d-none"))):d.hasClass("d-none")&&bd("#select2-appointments-time-dropdown-container")[0].innerHTML!==document.getElementById("appointments-time-dropdown-label").innerHTML&&(d.removeClass("d-none"),bd(".choose-date__select-garage-text").removeClass("d-none"),bd(".choose-date__select-garage").removeClass("d-none")),Dd(od,t),Id()),n.remove();case 35:case"end":return e.stop()}}),e,null,[[11,24,29,33]])})));return function(t){return e.apply(this,arguments)}}();function Md(e){var t=wd.datepicker.formatDate("dd-mm-yy",e);return 0!==e.getDay()&&-1===xd.indexOf(t)&&-1===_d.indexOf(t)?[!0]:[!1]}function qd(e){var t=new Date(e),n=e.split("T")[0].split("-"),r="".concat(n[2],"-").concat(n[1],"-").concat(n[0]),a=!1;return 0!==t.getDay()&&6!==t.getDay()&&-1===xd.indexOf(r)&&-1===_d.indexOf(r)&&(a=!0),a}Ru()(bd),qu()(bd),Vu()(bd),Bu()(bd),Hu()(bd);var Nd=function(){var e=(0,lt.A)(ht().mark((function e(){var t,n,r,a,i,o,s,c,l,u,d,h,p,f,m,v;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,it.AQ)(new Date,0),n=(0,it.M7)(t),r=(0,it.AQ)(new Date,6),a=(0,it.M7)(r),i=4===Kt.get(Gt.garage.garageSelection).length?Kt.get(Gt.garage.garageSelection):"0".concat(Kt.get(Gt.garage.garageSelection)),e.next=7,(0,it.A$)(i,n,a);case 7:return o=e.sent,_d=o.length>0?o.map((function(e){return wd.datepicker.formatDate("dd-mm-yy",new Date(e))})):[],(yd=bd(".choose-date__datepicker")).datepicker("destroy"),e.next=13,rd();case 13:for(s=e.sent,c=3,s&&0!==s.d.LEAD_TIME&&(c=s.d.LEAD_TIME),l=Granite.I18n.get("apps.amag-ch.components.content.otv.choose-date.noterminexistText"),bd("html").on("mouseenter",".ui-state-disabled .ui-state-default",(function(){var e=bd(this);setTimeout((function(){bd(".datapickertooltip").remove(),bd(e).append('<div class="datapickertooltip">'+l+"</div>");var t=bd(".choose-date").width(),n=bd(e).first().position();n.left/t<.4?bd(e).addClass("tooltip__left"):n.left/t<.55?bd(e).addClass("tooltip__center"):n.left/t>.55&&bd(e).addClass("tooltip__right")}),200)})),bd("html").on("mouseleave",".ui-state-disabled .ui-state-default",(function(){bd(".datapickertooltip").remove()})),bd("html").on("mouseleave",".ui-datepicker-calendar td",(function(){bd(".datapickertooltip").remove()})),u=0,d=new Date,h=0;h<c;h++)d.setDate(d.getDate()+1),p=wd.datepicker.formatDate("dd-mm-yy",d),0!==(f=d.getDay())&&-1!==xd.indexOf(p)&&(u+=1),0===f&&(u+=1);5===(new Date).getDay()&&c<5&&(u+=1),m=c+u,(v=new Date).setDate(v.getDate()+m),0===v.getDay()&&(m+=1),yd.datepicker({dateFormat:"yy-mm-dd",firstDay:1,minDate:m,maxDate:"+6m",prevText:Ad,nextText:Ad,beforeShowDay:Md,onSelect:function(){var e=bd(".choose-date__time-dropdown");void 0!==ld?(Rd(Td()),e.removeClass("d-none"),bd(".choose-date__select-garage-text").removeClass("d-none"),bd(".choose-date__select-garage").removeClass("d-none"),bd(".choose-date__times").removeClass("d-none"),bd(".tab-pane__navigation-forwards").addClass("d-none")):bd(".choose-date__times").hasClass("d-none")||Rd(Td())},onChangeMonthYear:function(){bd(".choose-date__times").hasClass("d-none")&&(Td()||setTimeout((function(){bd(".ui-state-active").removeClass("ui-state-active ui-state-hover")})))}});case 31:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Vd=function(){var e=(0,lt.A)(ht().mark((function e(){var t,n;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch((0,wt.d)("amagch-get-public-holidays"));case 2:if(!(t=e.sent).ok){e.next=8;break}return e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n.data);case 8:console.error("Failed to fetch public holidays in function getPublicHolidays.");case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function Fd(){return(Fd=(0,lt.A)(ht().mark((function e(){var t,n,r,a;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=dc.getInstance(),n=t.getTabByName("appointment"),r=document.querySelector("html").getAttribute("lang"),a=bd("#appointments-time-dropdown"),e.next=6,Vd();case 6:Ed=e.sent,xd=Ed.map((function(e){return wd.datepicker.formatDate("dd-mm-yy",new Date(e))})),Sd[0].text=document.getElementById("appointments-time-dropdown-label").innerHTML,Vr(a,Sd,null,null),bd.datepicker.setDefaults(bd.datepicker.regional[r]),sd=document.querySelector(".choose-date__times"),it.lp.isMobile()?a.on("change",(function(){ld=a.val(),Rd(Td())})):a.on("select2:select",(function(){ld=a.val(),Rd(Td())})),t.getTabByName("appointment").getPane("choose-date").element.on("otv.activate",(0,lt.A)(ht().mark((function e(){var t,n,r,a,i,o,s;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return document.querySelector(".choose-date").classList.remove("choose-date--error"),e.next=3,Rl();case 3:return gd=vd,vd=Kt.get(Gt.service.selectedServices).reduce((function(e,t){return[].concat((0,ut.A)(e),(0,ut.A)(t.serviceIds))}),[]),t=!1,hd=dd,dd=Kt.get(Gt.garage.garageSelection),gd&&(gd.length===vd.length?(n=JSON.stringify(gd),r=J
6SON.stringify(vd),t=!(r===n)):t=!0),(hd&&hd!==dd||gd&&t)&&(cd=void 0,ld=void 0,fd?nd.clearData():td.clearData(),a=bd("#appointments-time-dropdown"),bd("#chooseDateDropdown").removeClass("state--labelTop"),Sd[0].text=document.getElementById("appointments-time-dropdown-label").innerHTML,Vr(a,Sd,null,null)),Kt.store(Gt.appointment.validation,vd),fd=!!Kt.get(Gt.service.fastlane),(i=new fr.y).text=Granite.I18n.get("apps.amag-ch.components.content.otv.choose-date.appointmentSpinnerText"),"theme.amag.noncaptive"===Cd.dataset.theme&&"porsche"===Cd.dataset.project&&(i.textColor="#000000",i.color="var(--componentIconColor)"),i.show(bd(sd).closest(".tab-pane")),ld&&cd?(bd(".choose-date__select-garage-text").removeClass("d-none"),bd(".choose-date__times").removeClass("d-none"),bd(".tab-pane__navigation-forwards").removeClass("d-none")):(bd(".choose-date__select-garage-text").addClass("d-none"),bd(".choose-date__times").addClass("d-none"),bd(".tab-pane__navigation-forwards").addClass("d-none")),bd(".choose-date__select-garage").addClass("d-none"),e.next=20,Ll(parseInt(dd));case 20:return ud=e.sent,kd("$[garageName]",ud.getGarageName()),e.next=24,Nd();case 24:i.remove(),cd?(o=cd.split("."),s=new Date(o[2],o[1]-1,o[0]),yd.datepicker("setDate",s)):(yd.datepicker("setDate",null),bd(".ui-state-active").removeClass("ui-state-active ui-state-hover"));case 26:case"end":return e.stop()}}),e)})))),t.contentComponent.on("otv.navigateForward",(function(){if(t.activeTab===n){var e={event:"ga4Event",eventName:"click_nextStep",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 5 - Termin ausgewählt",eventParameter3:"carBrand",fieldValue3:Kt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Kt.get(Gt.car.model),eventParameter5:"interaction_content",fieldValue5:id(new Date,Td())};(0,it.eo)(e,4.2)}}));case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bd(){return jd.apply(this,arguments)}function jd(){return(jd=(0,lt.A)(ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,yr.N$)("get-overview-brands"));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Hd(){return Hd=(0,lt.A)(ht().mark((function e(t){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Bd();case 2:return e.abrupt("return",e.sent.find((function(e){return e.id===t})));case 3:case"end":return e.stop()}}),e)}))),Hd.apply(this,arguments)}function Gd(){return(Gd=(0,lt.A)(ht().mark((function e(t){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Bd();case 2:return e.abrupt("return",e.sent.find((function(e){return e.name===t})));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ud={getBrands:Bd,getBrand:function(e){return Hd.apply(this,arguments)},getBrandByName:function(e){return Gd.apply(this,arguments)}},Wd=[{id:"",text:""},{id:"CH",text:Granite.I18n.get("apps.amag-ch.country.ch.Label")},{id:"LI",text:Granite.I18n.get("apps.amag-ch.country.li.Label")}],zd=[{id:"",text:""},{id:"CHE",text:Granite.I18n.get("apps.amag-ch.country.ch.Label")},{id:"LIE",text:Granite.I18n.get("apps.amag-ch.country.li.Label")}],$d=[{id:"",text:""},{id:"AG",text:Granite.I18n.get("apps.amag-ch.canton.ag.Label")},{id:"AR",text:Granite.I18n.get("apps.amag-ch.canton.ar.Label")},{id:"AI",text:Granite.I18n.get("apps.amag-ch.canton.ai.Label")},{id:"BL",text:Granite.I18n.get("apps.amag-ch.canton.bl.Label")},{id:"BS",text:Granite.I18n.get("apps.amag-ch.canton.bs.Label")},{id:"BE",text:Granite.I18n.get("apps.amag-ch.canton.be.Label")},{id:"FR",text:Granite.I18n.get("apps.amag-ch.canton.fr.Label")},{id:"GE",text:Granite.I18n.get("apps.amag-ch.canton.ge.Label")},{id:"GL",text:Granite.I18n.get("apps.amag-ch.canton.gl.Label")},{id:"GR",text:Granite.I18n.get("apps.amag-ch.canton.gr.Label")},{id:"JU",text:Granite.I18n.get("apps.amag-ch.canton.ju.Label")},{id:"LU",text:Granite.I18n.get("apps.amag-ch.canton.lu.Label")},{id:"NE",text:Granite.I18n.get("apps.amag-ch.canton.ne.Label")},{id:"NW",text:Granite.I18n.get("apps.amag-ch.canton.nw.Label")},{id:"OW",text:Granite.I18n.get("apps.amag-ch.canton.ow.Label")},{id:"SH",text:Granite.I18n.get("apps.amag-ch.canton.sh.Label")},{id:"SZ",text:Granite.I18n.get("apps.amag-ch.canton.sz.Label")},{id:"SO",text:Granite.I18n.get("apps.amag-ch.canton.so.Label")},{id:"SG",text:Granite.I18n.get("apps.amag-ch.canton.sg.Label")},{id:"TI",text:Granite.I18n.get("apps.amag-ch.canton.ti.Label")},{id:"TG",text:Granite.I18n.get("apps.amag-ch.canton.tg.Label")},{id:"UR",text:Granite.I18n.get("apps.amag-ch.canton.ur.Label")},{id:"VD",text:Granite.I18n.get("apps.amag-ch.canton.vd.Label")},{id:"VS",text:Granite.I18n.get("apps.amag-ch.canton.vs.Label")},{id:"ZG",text:Granite.I18n.get("apps.amag-ch.canton.zg.Label")},{id:"ZH",text:Granite.I18n.get("apps.amag-ch.canton.zh.Label")}],Yd=[{id:"EGY",text:Granite.I18n.get("apps.amag-ch.country.eg.L
6abel")},{id:"GNQ",text:Granite.I18n.get("apps.amag-ch.country.gq.Label")},{id:"ETH",text:Granite.I18n.get("apps.amag-ch.country.et.Label")},{id:"AFG",text:Granite.I18n.get("apps.amag-ch.country.af.Label")},{id:"ALA",text:Granite.I18n.get("apps.amag-ch.country.ax.Label")},{id:"ALB",text:Granite.I18n.get("apps.amag-ch.country.al.Label")},{id:"DZA",text:Granite.I18n.get("apps.amag-ch.country.dz.Label")},{id:"ASM",text:Granite.I18n.get("apps.amag-ch.country.as.Label")},{id:"VIR",text:Granite.I18n.get("apps.amag-ch.country.vi.Label")},{id:"AND",text:Granite.I18n.get("apps.amag-ch.country.ad.Label")},{id:"AGO",text:Granite.I18n.get("apps.amag-ch.country.ao.Label")},{id:"AIA",text:Granite.I18n.get("apps.amag-ch.country.ai.Label")},{id:"ATA",text:Granite.I18n.get("apps.amag-ch.country.aq.Label")},{id:"ATG",text:Granite.I18n.get("apps.amag-ch.country.ag.Label")},{id:"SYR",text:Granite.I18n.get("apps.amag-ch.country.sy.Label")},{id:"ARG",text:Granite.I18n.get("apps.amag-ch.country.ar.Label")},{id:"ARM",text:Granite.I18n.get("apps.amag-ch.country.am.Label")},{id:"ABW",text:Granite.I18n.get("apps.amag-ch.country.aw.Label")},{id:"AZE",text:Granite.I18n.get("apps.amag-ch.country.az.Label")},{id:"AUS",text:Granite.I18n.get("apps.amag-ch.country.au.Label")},{id:"BHS",text:Granite.I18n.get("apps.amag-ch.country.bs.Label")},{id:"BHR",text:Granite.I18n.get("apps.amag-ch.country.bh.Label")},{id:"BGD",text:Granite.I18n.get("apps.amag-ch.country.bd.Label")},{id:"BRB",text:Granite.I18n.get("apps.amag-ch.country.bb.Label")},{id:"BEL",text:Granite.I18n.get("apps.amag-ch.country.be.Label")},{id:"BLZ",text:Granite.I18n.get("apps.amag-ch.country.bz.Label")},{id:"BEN",text:Granite.I18n.get("apps.amag-ch.country.bj.Label")},{id:"BMU",text:Granite.I18n.get("apps.amag-ch.country.bm.Label")},{id:"BTN",text:Granite.I18n.get("apps.amag-ch.country.bt.Label")},{id:"BOL",text:Granite.I18n.get("apps.amag-ch.country.bo.Label")},{id:"BES",text:Granite.I18n.get("apps.amag-ch.country.bq.Label")},{id:"BIH",text:Granite.I18n.get("apps.amag-ch.country.ba.Label")},{id:"BWA",text:Granite.I18n.get("apps.amag-ch.country.bw.Label")},{id:"BVT",text:Granite.I18n.get("apps.amag-ch.country.bv.Label")},{id:"BRA",text:Granite.I18n.get("apps.amag-ch.country.br.Label")},{id:"VGB",text:Granite.I18n.get("apps.amag-ch.country.vg.Label")},{id:"IOT",text:Granite.I18n.get("apps.amag-ch.country.io.Label")},{id:"BRN",text:Granite.I18n.get("apps.amag-ch.country.bn.Label")},{id:"BGR",text:Granite.I18n.get("apps.amag-ch.country.bg.Label")},{id:"BFA",text:Granite.I18n.get("apps.amag-ch.country.bf.Label")},{id:"BDI",text:Granite.I18n.get("apps.amag-ch.country.bi.Label")},{id:"CHL",text:Granite.I18n.get("apps.amag-ch.country.cl.Label")},{id:"CHN",text:Granite.I18n.get("apps.amag-ch.country.cn.Label")},{id:"COK",text:Granite.I18n.get("apps.amag-ch.country.ck.Label")},{id:"CRI",text:Granite.I18n.get("apps.amag-ch.country.cr.Label")},{id:"CUW",text:Granite.I18n.get("apps.amag-ch.country.cw.Label")},{id:"DNK",text:Granite.I18n.get("apps.amag-ch.country.dk.Label")},{id:"COD",text:Granite.I18n.get("apps.amag-ch.country.cd.Label")},{id:"PRK",text:Granite.I18n.get("apps.amag-ch.country.kp.Label")},{id:"LAO",text:Granite.I18n.get("apps.amag-ch.country.la.Label")},{id:"DEU",text:Granite.I18n.get("apps.amag-ch.country.de.Label")},{id:"DMA",text:Granite.I18n.get("apps.amag-ch.country.dm.Label")},{id:"DOM",text:Granite.I18n.get("apps.amag-ch.country.do.Label")},{id:"DJI",text:Granite.I18n.get("apps.amag-ch.country.dj.Label")},{id:"ECU",text:Granite.I18n.get("apps.amag-ch.country.ec.Label")},{id:"SLV",text:Granite.I18n.get("apps.amag-ch.country.sv.Label")},{id:"CIV",text:Granite.I18n.get("apps.amag-ch.country.ci.Label")},{id:"ERI",text:Granite.I18n.get("apps.amag-ch.country.er.Label")},{id:"EST",text:Granite.I18n.get("apps.amag-ch.country.ee.Label")},{id:"FRO",text:Granite.I18n.get("apps.amag-ch.country.fo.Label")},{id:"FLK",text:Granite.I18n.get("apps.amag-ch.country.fk.Label")},{id:"FJI",text:Granite.I18n.get("apps.amag-ch.country.fj.Label")},{id:"FIN",text:Granite.I18n.get("apps.amag-ch.country.fi.Label")},{id:"FSM",text:Granite.I18n.get("apps.amag-ch.country.fm.Label")},{id:"FRA",text:Granite.I18n.get("apps.amag-ch.country.fr.Label")},{id:"GUF",text:Granite.I18n.get("apps.amag-ch.country.gf.Label")},{id:"PYF",text:Granite.I18n.get("apps.amag-ch.country.pf.Label")},{id:"ATF",text:Granite.I18n.get("apps.amag-ch.country.tf.Label")},{id:"GAB",text:Granite.I18n.get("apps.amag-ch.country.ga.Label")},{id:"GMB",text:Granite.I18n.get("apps.amag-ch.country.gm.Label")},{id:"GEO",text:Granite.I18n.get("apps.amag-ch.country.ge.Label")},{id:"GHA",text:Granite.I18n.get("apps.amag-ch.country.gh.Label")},{id:"GIB",text:Granite.I18n.get("apps.amag-ch.country.gi.Label")},{id:"GRD",text:Granite.I18n.get("apps.amag-ch.country.gd.Label")},{id:"GRC",text:Granite.I18n.get("apps.amag-ch.country.gr.Label")},{id:"GRL",text:Granite.I18n.get("apps.amag-ch.country.gl.Label")},{id:"GLP",text:Granite.I18n.get("apps.amag-ch.country.gp.Label")},{id:"GUM",text:Granite.I18n.get("apps.amag-ch.country.gu.Label")},{id:"GTM",text:Granite.I18n.get("apps.amag-ch.country.gt.Label")},{id:"GGY",text:Granite.I18n.get("apps.amag-ch.country.gg.Label")},{id:"GIN",text:Granite.I18n.get("apps.amag-ch.country.gn.Label")},{id:"GNB",text:Granite.I18n.get("apps.amag-ch.country.gw.Label")},{id:"GUY",text:Granite.I18n.get("apps.amag-ch.country.gy.Label")},{id:"HTI",text:Granite.I18n.get("apps.amag-ch.country.ht.Label")},{id:"HMD",text:Granite.I18n.get("apps.amag-ch.country.hm.Label")},{id:"VAT",text:Granite.I18n.get("apps.amag-ch.country.va.Label")},{id:"HND",text:Granite.I18n.get("apps.amag-ch.country.hn.Label")},{id:"HKG",text:Granite.I18n.get("apps.amag-ch.country.hk.Label")},{id:"IND",text:Granite.I18n.get("apps.amag-ch.country.in.Label")},{id:"IDN",text:Granite.I18n.get("apps.amag-ch.country.id.Label")},{id:"IRQ",text:Granite.I18n.get("apps.amag-ch.country.iq.Label")},{id:"IRN",text:Granite.I18n.get("apps.amag-ch.country.ir.Label")},{id:"IRL",text:Granite.I18n.get("apps.amag-ch.country.ie.Label")},{id:"ISL",text:Granite.I18n.get("apps.amag-ch.country.is.Label")},{id:"IMN",text:Granite.I18n.get("apps.amag-ch.country.im.Label")}
6,{id:"ISR",text:Granite.I18n.get("apps.amag-ch.country.il.Label")},{id:"ITA",text:Granite.I18n.get("apps.amag-ch.country.it.Label")},{id:"JAM",text:Granite.I18n.get("apps.amag-ch.country.jm.Label")},{id:"JPN",text:Granite.I18n.get("apps.amag-ch.country.jp.Label")},{id:"YEM",text:Granite.I18n.get("apps.amag-ch.country.ye.Label")},{id:"JEY",text:Granite.I18n.get("apps.amag-ch.country.je.Label")},{id:"JOR",text:Granite.I18n.get("apps.amag-ch.country.jo.Label")},{id:"CYM",text:Granite.I18n.get("apps.amag-ch.country.ky.Label")},{id:"KHM",text:Granite.I18n.get("apps.amag-ch.country.kh.Label")},{id:"CMR",text:Granite.I18n.get("apps.amag-ch.country.cm.Label")},{id:"CAN",text:Granite.I18n.get("apps.amag-ch.country.ca.Label")},{id:"CPV",text:Granite.I18n.get("apps.amag-ch.country.cv.Label")},{id:"KAZ",text:Granite.I18n.get("apps.amag-ch.country.kz.Label")},{id:"QAT",text:Granite.I18n.get("apps.amag-ch.country.qa.Label")},{id:"KEN",text:Granite.I18n.get("apps.amag-ch.country.ke.Label")},{id:"KGZ",text:Granite.I18n.get("apps.amag-ch.country.kg.Label")},{id:"KIR",text:Granite.I18n.get("apps.amag-ch.country.ki.Label")},{id:"CCK",text:Granite.I18n.get("apps.amag-ch.country.cc.Label")},{id:"COL",text:Granite.I18n.get("apps.amag-ch.country.co.Label")},{id:"COM",text:Granite.I18n.get("apps.amag-ch.country.km.Label")},{id:"COG",text:Granite.I18n.get("apps.amag-ch.country.cd.Label")},{id:"XKX",text:Granite.I18n.get("apps.amag-ch.country.ko.Label")},{id:"HRV",text:Granite.I18n.get("apps.amag-ch.country.hr.Label")},{id:"CUB",text:Granite.I18n.get("apps.amag-ch.country.cu.Label")},{id:"KWT",text:Granite.I18n.get("apps.amag-ch.country.kw.Label")},{id:"LSO",text:Granite.I18n.get("apps.amag-ch.country.ls.Label")},{id:"LVA",text:Granite.I18n.get("apps.amag-ch.country.lv.Label")},{id:"LBN",text:Granite.I18n.get("apps.amag-ch.country.lb.Label")},{id:"LBR",text:Granite.I18n.get("apps.amag-ch.country.lr.Label")},{id:"LBY",text:Granite.I18n.get("apps.amag-ch.country.ly.Label")},{id:"LIE",text:Granite.I18n.get("apps.amag-ch.country.li.Label")},{id:"LTU",text:Granite.I18n.get("apps.amag-ch.country.lt.Label")},{id:"LUX",text:Granite.I18n.get("apps.amag-ch.country.lu.Label")},{id:"MAC",text:Granite.I18n.get("apps.amag-ch.country.mo.Label")},{id:"MDG",text:Granite.I18n.get("apps.amag-ch.country.mg.Label")},{id:"MWI",text:Granite.I18n.get("apps.amag-ch.country.mw.Label")},{id:"MYS",text:Granite.I18n.get("apps.amag-ch.country.my.Label")},{id:"MDV",text:Granite.I18n.get("apps.amag-ch.country.mv.Label")},{id:"MLI",text:Granite.I18n.get("apps.amag-ch.country.ml.Label")},{id:"MLT",text:Granite.I18n.get("apps.amag-ch.country.mt.Label")},{id:"MAR",text:Granite.I18n.get("apps.amag-ch.country.ma.Label")},{id:"MHL",text:Granite.I18n.get("apps.amag-ch.country.mh.Label")},{id:"MTQ",text:Granite.I18n.get("apps.amag-ch.country.mq.Label")},{id:"MRT",text:Granite.I18n.get("apps.amag-ch.country.mr.Label")},{id:"MUS",text:Granite.I18n.get("apps.amag-ch.country.mu.Label")},{id:"MYT",text:Granite.I18n.get("apps.amag-ch.country.yt.Label")},{id:"MKD",text:Granite.I18n.get("apps.amag-ch.country.mk.Label")},{id:"MEX",text:Granite.I18n.get("apps.amag-ch.country.mx.Label")},{id:"MDA",text:Granite.I18n.get("apps.amag-ch.country.md.Label")},{id:"MCO",text:Granite.I18n.get("apps.amag-ch.country.mc.Label")},{id:"MNG",text:Granite.I18n.get("apps.amag-ch.country.mn.Label")},{id:"MNE",text:Granite.I18n.get("apps.amag-ch.country.me.Label")},{id:"MSR",text:Granite.I18n.get("apps.amag-ch.country.ms.Label")},{id:"MOZ",text:Granite.I18n.get("apps.amag-ch.country.mz.Label")},{id:"MMR",text:Granite.I18n.get("apps.amag-ch.country.mm.Label")},{id:"NAM",text:Granite.I18n.get("apps.amag-ch.country.na.Label")},{id:"NRU",text:Granite.I18n.get("apps.amag-ch.country.nr.Label")},{id:"NPL",text:Granite.I18n.get("apps.amag-ch.country.np.Label")},{id:"NCL",text:Granite.I18n.get("apps.amag-ch.country.nc.Label")},{id:"NZL",text:Granite.I18n.get("apps.amag-ch.country.nz.Label")},{id:"NIC",text:Granite.I18n.get("apps.amag-ch.country.ni.Label")},{id:"NLD",text:Granite.I18n.get("apps.amag-ch.country.nl.Label")},{id:"NER",text:Granite.I18n.get("apps.amag-ch.country.ne.Label")},{id:"NGA",text:Granite.I18n.get("apps.amag-ch.country.ng.Label")},{id:"NIU",text:Granite.I18n.get("apps.amag-ch.country.nu.Label")},{id:"MNP",text:Granite.I18n.get("apps.amag-ch.country.mp.Label")},{id:"NFK",text:Granite.I18n.get("apps.amag-ch.country.nf.Label")},{id:"NOR",text:Granite.I18n.get("apps.amag-ch.country.no.Label")},{id:"MKD",text:Granite.I18n.get("apps.amag-ch.country.nm.Label")},{id:"AUT",text:Granite.I18n.get("apps.amag-ch.country.at.Label")},{id:"OMN",text:Granite.I18n.get("apps.amag-ch.country.om.Label")},{id:"TLS",text:Granite.I18n.get("apps.amag-ch.country.tp.Label")},{id:"PAK",text:Granite.I18n.get("apps.amag-ch.country.pk.Label")},{id:"PLW",text:Granite.I18n.get("apps.amag-ch.country.pw.Label")},{id:"PSE",text:Granite.I18n.get("apps.amag-ch.country.ps.Label")},{id:"PAN",text:Granite.I18n.get("apps.amag-ch.country.pa.Label")},{id:"PNG",text:Granite.I18n.get("apps.amag-ch.country.pg.Label")},{id:"PRY",text:Granite.I18n.get("apps.amag-ch.country.py.Label")},{id:"PER",text:Granite.I18n.get("apps.amag-ch.country.pe.Label")},{id:"PHL",text:Granite.I18n.get("apps.amag-ch.country.ph.Label")},{id:"PCN",text:Granite.I18n.get("apps.amag-ch.country.pn.Label")},{id:"POL",text:Granite.I18n.get("apps.amag-ch.country.pl.Label")},{id:"PRT",text:Granite.I18n.get("apps.amag-ch.country.pt.Label")}
6,{id:"PRI",text:Granite.I18n.get("apps.amag-ch.country.pr.Label")},{id:"KOR",text:Granite.I18n.get("apps.amag-ch.country.kr.Label")},{id:"REU",text:Granite.I18n.get("apps.amag-ch.country.re.Label")},{id:"RWA",text:Granite.I18n.get("apps.amag-ch.country.rw.Label")},{id:"ROU",text:Granite.I18n.get("apps.amag-ch.country.ro.Label")},{id:"RUS",text:Granite.I18n.get("apps.amag-ch.country.ru.Label")},{id:"VCT",text:Granite.I18n.get("apps.amag-ch.country.vc.Label")},{id:"SPM",text:Granite.I18n.get("apps.amag-ch.country.pm.Label")},{id:"SLB",text:Granite.I18n.get("apps.amag-ch.country.sb.Label")},{id:"ZMB",text:Granite.I18n.get("apps.amag-ch.country.zm.Label")},{id:"WSM",text:Granite.I18n.get("apps.amag-ch.country.ws.Label")},{id:"SMR",text:Granite.I18n.get("apps.amag-ch.country.sm.Label")},{id:"STP",text:Granite.I18n.get("apps.amag-ch.country.st.Label")},{id:"SAU",text:Granite.I18n.get("apps.amag-ch.country.sa.Label")},{id:"SWE",text:Granite.I18n.get("apps.amag-ch.country.se.Label")},{id:"CHE",text:Granite.I18n.get("apps.amag-ch.country.ch.Label")},{id:"SEN",text:Granite.I18n.get("apps.amag-ch.country.sn.Label")},{id:"SRB",text:Granite.I18n.get("apps.amag-ch.country.rs.Label")},{id:"SYC",text:Granite.I18n.get("apps.amag-ch.country.sc.Label")},{id:"SLE",text:Granite.I18n.get("apps.amag-ch.country.sl.Label")},{id:"ZWE",text:Granite.I18n.get("apps.amag-ch.country.zw.Label")},{id:"SGP",text:Granite.I18n.get("apps.amag-ch.country.sg.Label")},{id:"MAF",text:Granite.I18n.get("apps.amag-ch.country.mf.Label")},{id:"SVK",text:Granite.I18n.get("apps.amag-ch.country.sk.Label")},{id:"SVN",text:Granite.I18n.get("apps.amag-ch.country.si.Label")},{id:"SOM",text:Granite.I18n.get("apps.amag-ch.country.so.Label")},{id:"ESP",text:Granite.I18n.get("apps.amag-ch.country.es.Label")},{id:"LKA",text:Granite.I18n.get("apps.amag-ch.country.lk.Label")},{id:"BLM",text:Granite.I18n.get("apps.amag-ch.country.bl.Label")},{id:"SHN",text:Granite.I18n.get("apps.amag-ch.country.sh.Label")},{id:"KNA",text:Granite.I18n.get("apps.amag-ch.country.kn.Label")},{id:"LCA",text:Granite.I18n.get("apps.amag-ch.country.lc.Label")},{id:"MAF",text:Granite.I18n.get("apps.amag-ch.country.mf.Label")},{id:"SDN",text:Granite.I18n.get("apps.amag-ch.country.sd.Label")},{id:"ZAF",text:Granite.I18n.get("apps.amag-ch.country.za.Label")},{id:"SGS",text:Granite.I18n.get("apps.amag-ch.country.gs.Label")},{id:"SSD",text:Granite.I18n.get("apps.amag-ch.country.ss.Label")},{id:"SUR",text:Granite.I18n.get("apps.amag-ch.country.sr.Label")},{id:"SJM",text:Granite.I18n.get("apps.amag-ch.country.sj.Label")},{id:"SWZ",text:Granite.I18n.get("apps.amag-ch.country.sz.Label")},{id:"TJK",text:Granite.I18n.get("apps.amag-ch.country.tj.Label")},{id:"TWN",text:Granite.I18n.get("apps.amag-ch.country.tw.Label")},{id:"TZA",text:Granite.I18n.get("apps.amag-ch.country.tz.Label")},{id:"THA",text:Granite.I18n.get("apps.amag-ch.country.th.Label")},{id:"TGO",text:Granite.I18n.get("apps.amag-ch.country.tg.Label")},{id:"TKL",text:Granite.I18n.get("apps.amag-ch.country.tk.Label")},{id:"TON",text:Granite.I18n.get("apps.amag-ch.country.to.Label")},{id:"TTO",text:Granite.I18n.get("apps.amag-ch.country.tt.Label")},{id:"TCD",text:Granite.I18n.get("apps.amag-ch.country.td.Label")},{id:"CZE",text:Granite.I18n.get("apps.amag-ch.country.cz.Label")},{id:"TUN",text:Granite.I18n.get("apps.amag-ch.country.tn.Label")},{id:"TKM",text:Granite.I18n.get("apps.amag-ch.country.tm.Label")},{id:"TCA",text:Granite.I18n.get("apps.amag-ch.country.tc.Label")},{id:"TUV",text:Granite.I18n.get("apps.amag-ch.country.tv.Label")},{id:"TUR",text:Granite.I18n.get("apps.amag-ch.country.tr.Label")},{id:"UGA",text:Granite.I18n.get("apps.amag-ch.country.ug.Label")},{id:"UKR",text:Granite.I18n.get("apps.amag-ch.country.ua.Label")},{id:"HUN",text:Granite.I18n.get("apps.amag-ch.country.hu.Label")},{id:"URY",text:Granite.I18n.get("apps.amag-ch.country.uy.Label")},{id:"UZB",text:Granite.I18n.get("apps.amag-ch.country.uz.Label")},{id:"VUT",text:Granite.I18n.get("apps.amag-ch.country.vu.Label")},{id:"VEN",text:Granite.I18n.get("apps.amag-ch.country.ve.Label")},{id:"ARE",text:Granite.I18n.get("apps.amag-ch.country.ae.Label")},{id:"USA",text:Granite.I18n.get("apps.amag-ch.country.us.Label")},{id:"UMI",text:Granite.I18n.get("apps.amag-ch.country.um.Label")},{id:"GBR",text:Granite.I18n.get("apps.amag-ch.country.gb.Label")},{id:"VNM",text:Granite.I18n.get("apps.amag-ch.country.vn.Label")},{id:"WLF",text:Granite.I18n.get("apps.amag-ch.country.wf.Label")},{id:"CXR",text:Granite.I18n.get("apps.amag-ch.country.cx.Label")},{id:"BLR",text:Granite.I18n.get("apps.amag-ch.country.by.Label")},{id:"ESH",text:Granite.I18n.get("apps.amag-ch.country.eh.Label")},{id:"CAF",text:Granite.I18n.get("apps.amag-ch.country.cf.Label")},{id:"CYP",text:Granite.I18n.get("apps.amag-ch.country.cy.Label")}],Zd=[{id:"",text:""},{id:"+41",text:"CH (+41)"},{id:"+49",text:"DE (+49)"},{id:"+33",text:"FR (+33)"},{id:"+39",text:"IT (+39)"},{id:"+423",text:"LI (+423)"},{id:"+43",text:"AT (+43)"}],Kd=[{id:"",text:""},{id:"01",text:"01"},{id:"02",text:"02"},{id:"03",text:"03"},{id:"04",text:"04"},{id:"05",text:"05"},{id:"06",text:"06"},{id:"07",text:"07"},{id:"08",text:"08"},{id:"09",text:"09"},{id:"10",text:"10"},{id:"11",text:"11"},{id:"12",text:"12"},{id:"13",text:"13"},{id:"14",text:"14"},{id:"15",text:"15"},{id:"16",text:"16"},{id:"17",text:"17"},{id:"18",text:"18"},{id:"19",text:"19"},{id:"20",text:"20"},{id:"21",text:"21"},{id:"22",text:"22"},{id:"23",text:"23"},{id:"24",text:"24"},{id:"25",text:"25"},{id:"26",text:"26"},{id:"27",text:"27"},{id:"28",text:"28"},{id:"29",text:"29"},{id:"30",text:"30"},{id:"31",text:"31"}],Xd=[{id:"",text:""},{id:"01",text:"01"},{id:"02",text:"02"},{id:"03",text:"03"},{id:"04",text:"04"},{id:"05",text:"05"},{id:"06",text:"06"},{id:"07",text:"07"},{id:"08",text:"08"},{id:"09",text:"09"},{id:"10",text:"10"},{id:"11",text:"11"},{id:"12",text:"12"}],Jd=__webpack_require__(74692);function Qd(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return eh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eh(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function eh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function th(){var e,t,n,r,a,i,o,s,c,l,u,d,h,p=dc.getInstance(),f=[];f.VW_PKW="V",f.AUDI="A",f.SEAT="S",f.SKODA="C",f.VW_NZ="N",f.BENTLEY="B";var m="";window.processContext="otv";var v={i18n:{registrationOkay:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.registrationOkay"),activationlinkExpired:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.activationlinkExpired"),profileSaveSuccessMessage:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.i18nProfileSaveSuccessMessage"),accountNotFound:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.accountnotfound"),logoutOkay:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.logoutOkay"),pwValidationLength:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.passwordValidationLength"),pwValidationLetter:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.passwordValidationLetter"),pwValidationNumber:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.passwordValidationNumber"),pwValidationSpecial:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.passwordValidationSpecial"),noentry:Granite.I18n.get("apps.amag-ch.components.cdcbox.text.noentry")}},g=document.getElementById("amag-infrastructure-info");function y(e){var t=e;function n(){var e=[{Pattern:"[a-zA-Z]",Target:"pwLetters"},{Pattern:"[?=*\\d]",Target:"pwNumbers"},{Pattern:"[?=.*\\W_]",Target:"pwSpecialCharacter"}],t=Jd(this).val(),n=Jd(".pwLength");n.removeClass(t.length>11?"error":"success"),n.addClass(t.length>11?"success":"error");for(var r=0;r<e.length;r++){var a=Jd("."+e[r].Target);a.removeClass(new RegExp(e[r].Pattern).test(t)?"error":"success"),a.addClass(new RegExp(e[r].Pattern).test(t)?"success":"error")}}document.querySelector(".amag-cdcbox__passwordvalidation")||t.after('<div class="amag-cdcbox__passwordvalidation"><div class="pwLength">'+v.i18n.pwValidationLength+'</div><div class="pwLetters">'+v.i18n.pwValidationLetter+'</div><div class="pwNumbers">'+v.i18n.pwValidationNumber+'</div><div class="pwSpecialCharacter">'+v.i18n.pwValidationSpecial+"</div></div>"),Jd((function(){Jd(t).find(".gigya-input-password").on("keyup",n)}))}var _,b,w,S,C,E,x=p.getTabByName("data").getPane("login-registration").element;function A(e,t,n){t&&e.find("option:first-child").empty(),n&&e.find("option:first-child").text(v.i18n.noentry),e.wrap("<div class='select2-wrapper'></div>");var r=e.parents(".gigya-composite-control-dropdown").find(".gigya-label-text").text();r+=" ".concat(e.parents(".gigya-composite-control-dropdown").find(".gigya-required-display:not(.gigya-hidden)").text()),e.after("<label>"+r+"</label>"),e.parents(".gigya-composite-control-dropdown").find(".gigya-label").hide(),Jd(e.parents(".gigya-composite-control-dropdown").find("select option")).is(":selected")&&(Jd(e.parents(".gigya-composite-control-dropdown").find("select option")[0]).is(":selected")?Jd(e).parents(".select2-wrapper").removeClass("state--labelTop"):Jd(e).parents(".select2-wrapper").addClass("state--labelTop")),Vr(e,null,!1,t)}w="login-registration__teaser",S=["#amag-register-screen","#amag-pre-auth-screen","#amag-password-auth-method-screen","#amag-forgot-password-screen","#amag-update-profile-screen","#amag-change-email-screen","#amag-change-email-success-screen","#amag-change-password-screen","#amag-reset-password-screen","#amag-reset-password-success-screen","#amag-change-password-screen","#amag-change-password-success-screen","#gigya-link-account-screen","#amag-update-profile-otv-screen","#amag-register-otv-screen","#gigya-passwordless-login-form","#gigya-complete-registration-screen","#gigya-email-code-verification-screen","#amag-forgot-password-request-screen"],C=document.getElementById(w),E=new MutationObserver((function(e){!function(e,t){var n=null;for(var r in e){var a=e[r],i=t.join(",");if(a.target.querySelector(i)&&1===a.addedNodes.length)for(var o=0;o<a.addedNodes.length;o++)"login-registration__teaser_content"!==a.addedNodes[o].id&&"login-registration__teaser_child_content"!==a.addedNodes[o].id||(n=a.target.querySelector(i))}if(n){if("amag-update-profile-otv-screen"===n.dataset.screensetElementId){var s=Jd(n).find("select[name='local.mobileCountryCode']"),c=Jd(n).find("select[name='profile.gender']");Jd(n).find(".gigya-composite-control-textbox").addClass("floatinglabel"),Wr(".floatinglabel"),A(s,!0,
6!1),A(c,!0,!1),Jd(".back-link").on("click",(function(e){e.preventDefault(),Jd("#otv-tab-2-content").addClass("active"),Jd("#otv-tab-3-content").removeClass("active"),Jd("#otv-tab-2-header").addClass("active"),Jd("#otv-tab-3-header").removeClass("active"),yt(!1),window.scrollTo(0,0),yt(!0)}));var l={event:"ga4Event",eventName:"user_landed",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 7 - Kontaktdaten eingegeben",eventParameter3:"carBrand",fieldValue3:Kt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Kt.get(Gt.car.model),eventParameter5:"interaction_content",fieldValue5:"Kontaktdaten-Eingabe - Gigya Screen - Login"};(0,it.eo)(l,"6 (Part 1)")}if("amag-register-otv-screen"===n.dataset.screensetElementId){var u=Jd(n).find("select[name='local.mobileCountryCode']"),d=Jd(n).find("select[name='profile.gender']");Jd(n).find(".gigya-composite-control-textbox, .gigya-composite-control-password").addClass("floatinglabel"),Wr(".floatinglabel"),A(u,!0,!1),A(d,!0,!1);var h={event:"ga4Event",eventName:"user_landed",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 7 - Kontaktdaten eingegeben",eventParameter3:"carBrand",fieldValue3:Kt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Kt.get(Gt.car.model),eventParameter5:"interaction_content",fieldValue5:"Kontaktdaten-Eingabe - Gigya Screen - Register"};(0,it.eo)(h,"6 (Part 2)")}"gigya-passwordless-login-form"===n.dataset.screensetElementId&&(Jd(n).find(".gigya-composite-control-textbox").addClass("floatinglabel"),Wr(".floatinglabel")),"gigya-complete-registration-screen"===n.dataset.screensetElementId&&(A(Jd(n).find("select[name='profile.gender']"),!0,!1),Jd(n).find(".gigya-composite-control-textbox").addClass("floatinglabel"),Wr(".floatinglabel")),"gigya-email-code-verification-screen"===n.dataset.screensetElementId&&(Jd(n).find(".gigya-composite-control-textbox").addClass("floatinglabel"),Wr(".floatinglabel")),"amag-pre-auth-screen"===n.dataset.screensetElementId&&(Jd(n).find(".gigya-composite-control-textbox").addClass("floatinglabel"),Wr(".floatinglabel")),"amag-password-auth-method-screen"===n.dataset.screensetElementId&&(Jd(n).find(".gigya-composite-control-textbox, .gigya-composite-control-password").addClass("floatinglabel"),Wr(".floatinglabel")),"amag-forgot-password-request-screen"===n.dataset.screensetElementId&&(Jd(n).find(".gigya-composite-control-textbox").addClass("floatinglabel"),Wr(".floatinglabel"))}}(e,S)})),E.observe(C,{childList:!0,subtree:!0}),x.on("otv.activate",(0,lt.A)(ht().mark((function e(){var t,n;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:_=p.activeTab.getPaneNavigation().find(".tab-pane__navigation-forwards"),b=p.activeTab.getPaneNavigation().find(".tab-pane__navigation-backwards"),_.hide(),b.hide(),t="theme.amag.noncaptive"===g.dataset.theme&&"porsche"===g.dataset.project,n={screenSet:t?"AMAGFirst-RegistrationLogin":"Retail-RegistrationLogin",startScreen:"amag-pre-auth-screen",containerID:"login-registration__teaser",context:"otv"},gigya.accounts.showScreenSet(n),Jd(".gigya-register-form .gigya-input-password").on("click",(function(){y(Jd("#gigya-register-form > div:nth-child(1) > div.gigya-composite-control.gigya-composite-control-password"))}));case 9:case"end":return e.stop()}}),e)}))));var k=Jd("body");k.on("cdc-amag-update-profile-otv-screen_finished cdc-otv-registration_finished",(function(){_.trigger("click")})),k.on("cdc-amag-pre-auth-screen_back",(function(){-1===p.activeTab.tabIndex?Jd("#cdcModal").modal("hide"):b.trigger("click")})),k.on("cdc-amag-update-profile-otv-screen_back",(function(){b.trigger("click")})),k.on("cdc-amag-password-auth-method-screen_guest",(function(){Eo("data.guest-registration"),Kt.store(Gt.data.isGuest,!0)}));var T=new MutationObserver((function(e){var t,n=Qd(e);try{for(n.s();!(t=n.n()).done;){var r;if("amag-register-otv-screen"===(null===(r=t.value.target.querySelector(".gigya-screen"))||void 0===r?void 0:r.dataset.screensetElementId)){var a=Jd(".gigya-register-form .gigya-input-password");a.off("click"),a.one("click",(function(){y(Jd("#gigya-register-form >
6 div:nth-child(1) > div.gigya-composite-control.gigya-composite-control-password"))}))}}}catch(e){n.e(e)}finally{n.f()}}));T.observe(document.getElementById("login-registration__teaser"),{childList:!0,subtree:!0});var L=Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.licensePlate"),I=Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistration"),D=Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.carSerialNumber.fieldLabel"),P=Granite.I18n.get("apps.amag-ch.components.content.vehicle-overview.vehicles-list.vehicleHolderInfo"),O=Granite.I18n.get("apps.amag-ch.components.content.otv.notSpecified"),R=document.querySelector(".vehicle-available__saved-car-container");p.getTabByName("services").getPane("services-overview").element.on("otv.activate",(0,lt.A)(ht().mark((function a(){var i,o;return ht().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(e=Kt.get(Gt.car.brand),t=Kt.get(Gt.car.brandId),n=Kt.get(Gt.car.model),r=Kt.get(Gt.car.modelId),document.querySelectorAll(".car-data-input__brand-name").forEach((function(t){t.innerHTML=e})),document.querySelectorAll(".car-data-input__model-name").forEach((function(e){e.innerHTML=n})),"FREMD"===t||"MASERATI"===t||"HYUNDAI"===t||"PORSCHE"===t){a.next=14;break}return a.next=9,Ud.getBrand(f[t]);case 9:i=a.sent,""!==(o=i?i.icon:"")&&(document.querySelectorAll(".car-data-input__selected-brand-icon").forEach((function(t){t.src=o,t.alt=e})),document.querySelectorAll(".car-data-input__others-brand-icon").forEach((function(e){e.classList.add("d-none")}))),a.next=16;break;case 14:document.querySelectorAll(".car-data-input__selected-brand-icon").forEach((function(e){e.classList.add("d-none")})),document.querySelector(".car-data-input__others-brand-icon")||Jd(".car-data-input__brand-icon-positioning").hide();case 16:case"end":return a.stop()}}),a)})))),p.getTabByName("data").getPane("vehicle-available").element.on("otv.activate",(0,lt.A)(ht().mark((function e(){var n,l,u,d,h,f,v,g,y,_,b,w,S,C,E,x,A,k,T,M,q,N,V,F;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Jd(".tab-pane__navigation-backwards").removeClass("d-none"),p.activeTab.getPaneNavigation().find(".tab-pane__navigation-forwards").show(),p.activeTab.getPaneNavigation().find(".tab-pane__navigation-backwards").show(),p.activeTab.getPaneNavigation().removeClass("align-items-start"),Kt.get(Gt.data.isGuest)){e.next=8;break}return e.next=7,Zo.getData(!0,"userVehicleList");case 7:m=e.sent;case 8:if(!Kt.get(Gt.car.vehicleUID)){e.next=19;break}return l=!!Kt.get(Gt.appVehicle.fromApp)||!!Kt.get(Gt.appVehicle.fromSRS),u=!!Kt.get(Gt.appVehicle.fromSRS),l&&!u?(h=Ss(),f=null!=h&&h.licensePlate?h.licensePlate:"",v=null!=h&&h.vin?h.vin:"",g=null!=h&&h.mileage?h.mileage:"",d={licensePlate:f,editableRegistrationDate:"",vin:v,mileage:g,vehicleHolderSalutation:"",vehicleHolderName:"",vehicleHolderFirstName:""}):d=m.find((function(e){return e.vehicleUID===Kt.get(Gt.car.vehicleUID)})),a=d.licensePlate,i=d.editableRegistrationDate,o=d.vin,s=d.mileage||"",c={self:!d.vehicleHolderSalutation,vhSalutation:d.vehicleHolderSalutation,vhName:d.vehicleHolderName,vhFirstName:d.vehicleHolderFirstName},Eo("data.car-data-input",!0),e.abrupt("return");case 19:if(!Kt.get(Gt.data.carSelection)){e.next=21;break}return e.abrupt("return");case 21:if(n=m?m.filter((function(e){return e.makeCode===t&&e.modelCode===r})):[],n.length>0){y=0,R.innerHTML="",_=Qd(n);try{for(_.s();!(b=_.n()).done;)w=b.value,S=w.brandName,C=w.modelName,E=w.licensePlate,x=w.vin,A=w.mileage,k=w.displayRegistrationDate,T=w.vehicleUID,M=w.vehicleHolderSalutation,q=w.vehicleHolderName,N=w.vehicleHolderFirstName,V=w.displayVehicleHolder,F='\n <label class="vehicle-available__saved-car-label vehicle-available__label"\n for="saved-car-'.concat(y,'"\n data-lp="').concat(E,'"\n data-ir="').concat(k===Granite.I18n.get("apps.amag-ch.components.content.vehicle-overview.vehicles-list.noInformation")?"":k,'"\n data-cn="').concat(x,'"\n data-ml="').
6concat(A||"",'"\n data-vhSalutation="').concat(M,'"\n data-vhName="').concat(q,'"\n data-vhFirstName="').concat(N,'">\n <div class="vehicle-available__content">\n <input class="vehicle-available__input"\n data-vehicleUID="').concat(T,'"\n name="data.carSelection"\n value="saved-car-').concat(y,'"\n type="radio"\n id="saved-car-').concat(y,'"\n data-validation="required">\n <div class="vehicle-available__info">\n <p class="vehicle-available__saved-car-name">').concat(S," ").concat(C,'</p>\n <p class="vehicle-available__saved-car-license-plate">').concat(L,": ").concat(E||O,'</p>\n <p class="vehicle-available__saved-car-initial-registration">').concat(I,": ").concat(k||O,'</p>\n <p class="vehicle-available__saved-car-chassis-number">').concat(D,": ").concat(x||O,"</p>\n ").concat(M&&q?'<p class="vehicle-available__saved-car-vehicle-holder-info">'.concat(P,": ").concat(V,"</p>"):"","\n </div>\n </div>\n </label>\n "),R.insertAdjacentHTML("beforeend",F),y++}catch(e){_.e(e)}finally{_.f()}document.querySelectorAll(".vehicle-available__input").forEach((function(e){e.addEventListener("change",(function(){var t=e.closest("label");a=t.dataset.lp,i=t.dataset.ir,o=t.dataset.cn,s=t.dataset.ml,c={self:!t.dataset.vhSalutation,vhSalutation:t.dataset.vhSalutation,vhName:t.dataset.vhName,vhFirstName:t.dataset.vhFirstName},Jd(".vehicle-available__label").removeClass("is-active"),t.classList.add("is-active")}))})),R.firstElementChild.click()}else a="",i="",o="",s="",c={self:!0,vhSalutation:"",vhName:"",vhFirstName:""},Kt.store(Gt.data.vehicleHolder.self,!0),Eo("data.car-data-input",!0);case 23:case"end":return e.stop()}}),e)})))),document.querySelectorAll(".car-data-input__overview-tab").forEach((function(e){e.addEventListener("click",(function(){var t=e.getAttribute("data-tab-id"),n=document.querySelectorAll(".car-data-input__pane.invalid"),r=document.querySelector(".car-data-input__pane input.invalid");null!==n&&n.length>0&&document.querySelector(".car-data-input__pane.invalid").classList.remove("invalid"),null!==r&&r.length>0&&document.querySelectorAll(".car-data-input__pane input.invalid").forEach((function(e){e.classList.remove("invalid")})),document.querySelectorAll(".car-data-input__overview-tab").forEach((function(e){e.classList.remove("cmp-tabs__tab--active"),e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1")})),e.classList.add("cmp-tabs__tab--active"),e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0"),document.querySelectorAll(".car-data-input__overview-tabpanel").forEach((function(e){var n=e.getAttribute("id");e.classList.remove("cmp-tabs__tabpanel--active"),e.setAttribute("aria-hidden","true"),n===t&&(e.classList.add("cmp-tabs__tabpanel--active"),e.removeAttribute("aria-hidden"))}))}))}));var M=Jd("#car-data-input-initial-registration-day");Kd[0].text=Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistrationDay"),Vr(M,Kd,null,null);var q=Jd("#car-data-input-initial-registration-month");Xd[0].text=Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistrationMonth"),Vr(q,Xd,null,null);var N=Jd("#car-data-input-initial-registration-year"),V=new Date,F=[];F.push({id:"",text:Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistrationYear")});for(var B=V.getFullYear();B>=1900;B--)F.push({id:B,text:B});Vr(N,F,null,null);var j=document.querySelector(".validation-error-msg__licensePlateValid"),H=j.innerHTML;switch(H=H.replace("«",'<span class="nowrap">«').replace("»","»</span>"),j.innerHTML=H,document.querySelector("#form-text-license-plate").addEventListener("input",(function(e){var t=e.target.value,n=new RegExp(Bi.UNALLOWED_CHARACTERS,"g");t&&"string"==typeof t&&(t=t.replace(n,"").toUpperCase(),e.target.value=t,a=t),e.preventDefault()})),document.querySelector("html").getAttribute("lang")){case"en":0;break;case"fr":case"it":0;break;default:0}document.querySelector("#form-text-chassisNumber").addEventListener("keypress",(function(e){var t=new RegExp("^[a-zA-Z0-9]+$"),n=String.fromCharCode(e.charCode?e.charCode:e.which),r=e.target.value.length;return t.test(n)?r>=17?(e.preventDefault(),!1):(o=e.target.value+e.key,!0):(e.preventDefault(),!1)})),document.querySelectorAll(".car-data-input__mileage").forEach((function(e){e.addEventListener("keyup",(function(e){var t=e.target.value;s=t,document.querySelectorAll(".car-data-input__mileage").forEach((function(e){e.value=t}))})),e.addEventListener("change",(function(e){var t=e.target.value;s=t,document.querySelectorAll(".car-data-input__mileage").forEach((function(e){e.value=t}))}))}));var G=p.getTabByName("data").getPane("car-data-input").element;G.on("otv.activate",(0,lt.A)(ht().mark((function e(){var t,n,r,l,u,d,h,f,m,v,g,y,_,b,w,S,C,E,x;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={event:"ga4Event",eventName:"click_nextStep",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 7 - Kontaktdaten eingegeben",eventParameter3:"carBrand",fieldValue3:Kt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Kt.get(Gt.car.model)},(0,it.eo)(n,"Step 7 - Kontaktdaten eingegeben"),Jd(".tab-pane__navigation-backwards").removeClass("d-none"),p.activeTab.getPaneNavigation().find(".tab-pane__navigation-forwards").show(),p.activeTab.getPaneNavigation().find(".tab-pane__navigation-backwards").show(),document.querySelector("#form-text-license-plate").value=Kt.get(Gt.data.licensePlate)||a,!(r=Kt.get(Gt.data.initialRegistration)||i)){e.next=59;break}if(3!==(l=r.split(".")).length){e.next=39;break}u=0;case 11:if(!(u<=M[0].options.length)){e.next=19;break}if(M[0].options[u].value!==l[0]){e.next=16;break}return M.val(l[0]),M.trigger("select2:select").trigger("change"),e.abrupt("break",19);case 16:u++,e.next=11;break;case 19:d=0;case 20:if(!(d<=q[0].options.length)){e.next=28;break}if(q[0].options[d].value!==l[1]){e.next=25;break}return q.val(l[1]),q.trigger("select2:select").trigger("change"),e.abrupt("break",28);case 25:d++,e.next=20;break;case 28:h=0;case 29:if(!(h<=N[0].options.length)){e.next=37;break}if(N[0].options[h].value!==l[2]){e.next=34;break}return N.val(l[2]),N.trigger("select2:select").trigger("change"),e.abrupt("break",37);case 34:h++,e.next=29;break;case 37:e.next=57;break;case 39:f=0;case 40:if(!(f<=q[0].options.length)){e.next=48;break}if(q[0].options[f].value!==l[0]){e.next=45;break}return q.val(l[0]),q.trigger("select2:select").trigger("change"),e.abrupt("break",48);case 45:f++,e.next=40;break;case 48:m=0;case 49:if(!(m<=N[0].options.length)){e.next=57;break}if(N[0].options[m].value!==l[1]){e.next=54;break}return N.val(l[1]),N.trigger("select2:select").trigger("change"),e.abrupt("break",57);case 54:m++,e.next=49;break;case 57:e.next=65;break;case 59:M.val(M[0].options[0].value),q.val(q[0].options[0].value),N.val(N[0].options[0].value),M.trigger("select2:select").trigger("change"),q.trigger("select2:select").trigger("change"),N.trigger("select2:select").trigger("change");case 65:document.querySelector("#form-text-chassisNumber").value=Kt.get(Gt.data.chassisNumber)||o,document.querySelectorAll(".car-data-input__mileage").forEach((function(e){e.value=Kt.get(Gt.data.mileage)||s})),v=Kt.get(Gt.service.selectedServices).reduce((function(e,t){return e||t.requiresMileageRecursive()}
6),!1),g=G.find(".car-data-input__mileage"),v?g.attr("data-validation","required"):(g.removeClass("invalid invalid--required"),g.removeAttr("data-validation")),G.find(".cmp-form-text__label[for=form-text-mileage-manual], .cmp-form-text__label[for=form-text-mileage-photo]").toggleClass("d-none",v),G.find(".cmp-form-text__label--required[for=form-text-mileage-manual], .cmp-form-text__label--required[for=form-text-mileage-photo]").toggleClass("d-none",!v),y=Jd(".vehicle-holder__radiobutton-input"),_=Jd("#vehicle-holder__radiobutton__other")[0],b=Jd("#vehicle-holder__radiobutton__self")[0],w=Jd("#vehicleHolderInputFieldset")[0],S=Jd("#car-data-input__vehicleHolder-salutation"),C=Jd("#vehicleHolderInputFieldset").find("input.cmp-form-text__text.form-text-vehicle-holder-input[type=text]"),E=Jd(".car-data-input__vehicle-holder__info-text")[0],x=Jd(".car-data-input__vehicle-holder__disclaimer")[0],Kt.store(Gt.data.vehicleHolder.self,!!c.self),y.toArray().forEach((function(e){return e.addEventListener("change",(function(e){var t=e.target.parentElement.parentElement;"vehicle-holder__radiobutton__self"===e.target.id?(Kt.store(Gt.data.vehicleHolder.self,!0),c.self=!0,t.parentElement.nextElementSibling.firstElementChild.classList.remove("checked"),t.classList.add("checked"),C.toArray().forEach((function(e){return e.classList.remove("invalid")})),S[0].classList.remove("invalid"),w.classList.contains("d-none")||(w.classList.add("d-none"),E.classList.add("d-none"),x.classList.add("d-none"))):(Kt.store(Gt.data.vehicleHolder.self,!1),c.self=!1,t.parentElement.previousElementSibling.firstElementChild.classList.remove("checked"),t.classList.add("checked"),w.classList.contains("d-none")&&(w.classList.remove("d-none"),E.classList.remove("d-none"),x.classList.remove("d-none")))}))})),Kt.get(Gt.data.vehicleHolder.self)?(b.checked=!0,b.parentElement.parentElement.classList.add("checked")):(_.checked=!0,_.parentElement.parentElement.classList.add("checked"),w.classList.contains("d-none")&&(w.classList.remove("d-none"),E.classList.remove("d-none"),x.classList.remove("d-none"))),document.querySelector("#form-text-license-plate").value=Kt.get(Gt.data.licensePlate)||a,vr[0].text=document.getElementById("car-data-input__vehicleHolder-salutation-label").innerHTML,Vr(S,vr,null,null),Jd(S).val(null!==(t=Kt.get(Gt.data.vehicleHolder.salutation))&&void 0!==t?t:c.vhSalutation),S.trigger("select2:select").trigger("change"),S.on("change",(function(e){e.target.value.length>0&&(e.target.classList.contains("invalid")&&e.target.classList.remove("invalid"),Kt.store(Gt.data.vehicleHolder.salutation,e.target.value),Kt.store(Gt.data.vehicleHolder.salutationText,gr(Kt.get(Gt.data.vehicleHolder.salutation))))})),C.toArray().forEach((function(e){var t,n;"holder"===e.name&&Jd(e).val(null!==(t=Kt.get(Gt.data.vehicleHolder.holder))&&void 0!==t?t:c.vhName);"name"===e.name&&Jd(e).val(null!==(n=Kt.get(Gt.data.vehicleHolder.name))&&void 0!==n?n:c.vhFirstName);Jd(e).on("input",(function(t){Jd(e).val(hi(Jd(e).val())),Kt.store(Gt.data.vehicleHolder["".concat(t.target.name)],Jd(e).val().trim())}))}));case 90:case"end":return e.stop()}}),e)})))),p.contentComponent.on("otv.navigateForward",(function(e,t){if("data"===p.currentTab.name&&"car-data-input"===p.currentTab.getActivePane().name){t.preventDefault=!0;var n=M.val(),r=q.val(),a=N.val(),i=!0;if(""===n&&""===r&&""===a)Kt.store(Gt.data.initialRegistration,""),Eo("booking.booking-summary");else if(""!==n&&""!==r&&""!==a){switch(r){case"02":var o;o=parseInt(a)%4==0?parseInt(a)%100==0?parseInt(a)%400==0?29:28:29:28,parseInt(n)<=o||(i=!1);break;case"04":case"06":case"09":case"11":parseInt(n)<=30||(i=!1)}if(i){var s=n+"."+r+"."+a;Kt.store(Gt.data.initialRegistration,s),Jd(".car-data-input__initialRegistrationError").removeClass("car-data-input__initialRegistrationError--visible"),Eo("booking.booking-summary")}else Jd(".vehicle-detail__first-registration-day").addClass("invalid"),Jd(".vehicle-detail__first-registration-month").addClass("invalid"),Jd(".vehicle-detail__first-registration-year").addClass("invalid"),Jd(".car-data-input__initialRegistrationError").addClass("car-data-input__initialRegistrationError--visible")}else p.currentTab.getActivePane().element.addClass("invalid"),""===n?(M.addClass("invalid"),Jd("#dayDropdown").addClass("state--invalid")):(M.removeClass("invalid"),Jd("#dayDropdown").removeClass("state--invalid")),""===r?(q.addClass("invalid"),Jd("#monthDropdown").addClass("state--invalid")):(q.removeClass("invalid"),Jd("#monthDropdown").removeClass("state--invalid")),""===a?(N.addClass("invalid"),Jd("#yearDropdown").addClass("state--invalid")):(N.removeClass("invalid"),Jd("#yearDropdown").removeClass("state--invalid"))}})),k.on("cdc.logIn",(0,lt.A)(ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(-1!==p.activeTab.tabIndex&&"data.login-registration"===p.activeTab.getActivePane().uri){e.next=3;break}e.next=8;break;case 3:return t={event:"ga4Event",eventName:"user_login",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 6 - Einloggen",eventParameter3:"carBrand",fieldValue3:Kt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Kt.get(Gt.car.model),eventParameter5:"interaction_content",fieldValue5:"undefined"!=typeof loginDataLayer&&"Register"===loginDataLayer?"Register":"Login"},(0,it.eo)(t,5.1),e.next=7,Zo.getData(!0,"userVehicleList");case 7:m=e.sent;case 8:case"end":return e.stop()}}),e)}))));var U=document.querySelector("#car-document-photo"),W=document.querySelector("#car-document-preview"),z=document.querySelector("#car-document-preview-wrapper"),$=document.querySelector(".car-data-input__file-upload-custom-button-wrapper"),Y=document.querySelector(".car-data-input__file-upload-exceeds-limit"),Z=U.getAttribute("accept").split(", "),K=function(e){return Z.includes(e)};U.addEventListener("change",(function(e){var t,n,r=e.target.files[0],a=(t=r.name,"."+(n=t.split("."))[n.length-1]),i=new FileReader;i.addEventListener("load",(function(){W.src=i.result,K(a)&&(z.classList.remove("d-none"),$.classList.add("d-none"))}),!1),r.size>5242880||!K(a)?(e.target.value="",$.classList.remove("d-none"),z.classList.add("d-none"),Y.classList.remove("d-none")):(Y.classList.add("d-none"),i.readAsDataURL(r))})),document.querySelector("#file-upload-preview-delete").addEventListener("click",(function(){z.classList.add("d-none"),$.classList.remove("d-none"),W.src="",U.value=""})),p.getTabByName("data").getPane("guest-access").element.on("otv.activate",(0,lt.A)(ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:_=p.activeTab.getPaneNavigation().find(".tab-pane__navigation-forwards"),(b=p.activeTab.getPaneNavigation().find(".tab-pane__navigation-backwards")).hide(),_.hide(),t={event:"ga4Event",eventName:"user_landed",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 6 - Login Overview",eventParameter3:"carBrand",fieldValue3:Kt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Kt.get(Gt.car.model)},(0,it.eo)(t,5),window.localStorage.getItem(bt.H.AMAG_USER)?p.currentTab.selectPane("login-registration",!1):b.show();case 7:case"end":return e.stop()}}),e)})))),document.querySelector(".guest-access__button--primary").addEventListener("click",(function(){Eo("data.login-registration"),Kt.store(Gt.data.isGuest,!1)})),document.querySelector(".guest-access__button--secondary").addEventListener("click",(function(){Eo("data.guest-registration"),Kt.store(Gt.data.isGuest,!0)})),p.getTabByName("data").getPane("guest-registration").element.on("otv.activate",(0,lt.A)(ht().mark((function e(){var t,n,r,a,i,o,s,c,f,m;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={event:"ga4Event",eventName:"user_landed",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 7 - Kontaktdaten eingegeben",eventParameter3:"carBrand",fieldValue3:Kt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Kt.get(Gt.car.model),eventParameter5:"interaction_content",fieldValue5:"Kontaktdaten-Eingabe - Guest Registration"},(0,it.eo)(t,"6 (Part 3)"),_=p.activeTab.getPaneNavigation().find(".tab-pane__navigation-forwards"),b=p.activeTab.getPaneNavigation().find(".tab-pane__navigation-backwards"),_.show(),b.show(),p.activeTab.getPaneNavigation().data("targetTabAndPane","data.vehicle-available"),n=Jd("#guest-registration-dropdown-salutation"),mr[0].text=document.getElementById("guest-registration-dropdown-salutation-label").innerHTML,Vr(n,mr,null,null),Vr(r=Jd("#guest-registration-dropdown-country-code"),Zd,null,null),a=Jd("#guest-registration-dropdown-country"),Wd[0].text=document.getElementById("guest-registration-dropdown-country-label").innerHTML,Vr(a,Wd,null,null),i=Jd("#guest-registration-dropdown-canton"),o=document.getElementById("guest-registration-dropdown-canton-label"),$d[0].text=o.innerHTML,Vr(i,$d,null,null),s=Jd("#form-text-phone-number"),Ao().includes("data.login-registration")&&(f=document.getElementById("form-text-mail-adress"),m=document.getElementById("gigya-loginID-15997072522870680"),f.value=null!==(c=null==m?void 0:m.value)&&void 0!==c?c:""),l&&(n.val(l),n.trigger("select2:select"),n.trigger("change")),u&&(r.val(u),r.trigger("select2:select"),r.trigger("change"),document.getElementById("countryCodeDropdown").classList.add("state--labelTop")),d&&(a.val(d),a.trigger("select2:select"),a.trigger("change")),h&&(i.val(h),i.trigger("select2:select"),i.trigger("change")),p.contentComponent.on("otv.navigateForward",(function(e,t){if("data"===p.currentTab.name&&"guest-registration"===p.currentTab.getActivePane().name){t.preventDefault=!0;var o=s.val();o=o.replace(/^0/,"");var c=r.val()+o,l=n.val(),u=a.val(),d=i.val();
6Kt.store(Gt.data.phoneNumber,c),Kt.store(Gt.data.canton,d),Kt.store(Gt.data.country,u),Kt.store(Gt.data.salutation,l);var h={event:"ga4Event",eventName:"guest_login",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 6 - guest_login",eventParameter3:"carBrand",fieldValue3:Kt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Kt.get(Gt.car.model),eventParameter5:"interaction_content",fieldValue5:"Guest Login"};(0,it.eo)(h,5.2),Eo("data.vehicle-available")}})),it.lp.isMobile()?(a.on("change",(function(){["CHE","CH"].includes(a.val())?i.attr("disabled",null):(i.attr("disabled",!0),document.getElementById("cantonDropdown").classList.remove("state--labelTop"),Vr(i,$d,null,null)),d=a.val()})),i.on("change",(function(){h=i.val()})),n.on("change",(function(){l=n.val()})),r.on("change",(function(){u=r.val()}))):(a.on("select2:select",(function(){["CHE","CH"].includes(a.val())?i.attr("disabled",null):(i.attr("disabled",!0),document.getElementById("cantonDropdown").classList.remove("state--labelTop"),Vr(i,$d,null,null)),d=a.val()})),i.on("select2:select",(function(){h=i.val()})),n.on("select2:select",(function(){l=n.val()})),r.on("select2:select",(function(){u=r.val()})));case 27:case"end":return e.stop()}}),e)}))))}var nh=__webpack_require__(58501),rh=__webpack_require__(74692),ah={btnSearch:".js-tab-zero-submit",loginWrapper:".otv-login-wrapper",carsWrapper:".otv-available-cars",loginBox:".otv-login-info-box"},ih=(Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.model"),"HDN_");rh((function(){if(document.getElementById("amag-otv")){var e=document.getElementById("amag-infrastructure-info"),t=rh("#otv-tab-component"),n=dc.getInstance(t);n.render(),function(){al.apply(this,arguments)}(),function(){ku.apply(this,arguments)}(),function(){Hs(this,void 0,void 0,ht().mark((function e(){var t,n,r=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=dc.getInstance(),Os=document.querySelector(".booking__section-services"),Rs=document.querySelector(".booking__section-garage"),Ms=document.querySelector(".booking__section-appointment"),qs=document.querySelector(".booking__section-data"),Is()('input[name^="booking.main"]').on("change",(function(){Is()(this).parent().toggleClass("is-active",this.checked),Is()(this).prop("checked")?Us(Is()(this)):"mainSms"===Is()(this).attr("id")&&document.querySelector(".booking__phone-number-field")&&(Ns=document.querySelector(".booking__phone-number-field")).remove()})),n=t.getTabByName("booking").getPane("booking-summary"),Is()(n.element).on("otv.activate",(function(e){return Hs(r,void 0,void 0,ht().mark((function e(){var t,n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b,w,S,C,E,x,A,k,T,L,I,D,P,O,R,M,q,N,V,F;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={event:"ga4Event",eventName:"user_landed",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 8 - Termin erfolgreich gebucht",eventParameter3:"carBrand",fieldValue3:Kt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Kt.get(Gt.car.model)},(0,it.eo)(n,7),r=Kt.get(Gt.garage.garageSelection),a="true"===Kt.get(Gt.garage.replacementCar),e.next=6,Ll(parseInt(r));case 6:if(i=e.sent,Os.innerHTML="",Rs.innerHTML="",Ms.innerHTML="",qs.innerHTML="",$s(),Kt.get(Gt.data.isGuest)){e.next=14;break}return e.next=12,Uo.getData();case 12:for(o in Vs=e.sent)(0,it.RI)(Vs[o])?delete Vs[o]:(0,it.kS)(Vs[o]);case 14:if(Kt.get(Gt.service.complaintImage)&&Kt.get(Gt.service.complaintImage).forEach((function(e){var t=new FileReader;js=[],t.addEventListener("load",(function(){js.push(t.result)})),t.readAsDataURL(e)})),Kt.get(Gt.service.presetKeyValid)){s=document.querySelectorAll(".booking__section-changeBtn"),c=Ds(s);try{for(c.s();!(l=c.n()).done;)("#services.services-summary"===(u=l.value).getAttribute("href")||"#garages.summary"===u.getAttribute("href"))&&u.classList.add("d-none")}catch(e){c.e(e)}finally{c.f()}}d=Ds(Kt.get(Gt.service.selectedServices)),e.prev=17,d.s();case 19:if((h=d.n()).done){e.next=29;break}if(p=h.value,(f=p.serviceNames).children&&0!==f.children.length){e.next=25;break}
6return Os.appendChild(Fo(pi(f.name),null,null)),e.abrupt("continue",27);case 25:m=Ds(f.children);try{for(m.s();!(v=m.n()).done;){for(g=v.value,y=[pi(g.name)],_=g;(null===(t=_.children)||void 0===t?void 0:t.length)>0;)_=_.children[0],y.push(pi(_.name));Os.appendChild(Fo(y.join(", "),null,null))}}catch(e){m.e(e)}finally{m.f()}case 27:e.next=19;break;case 29:e.next=34;break;case 31:e.prev=31,e.t0=e.catch(17),d.e(e.t0);case 34:return e.prev=34,d.f(),e.finish(34);case 37:Rs.appendChild(Bo(i.getGarageName(),i.getStreet(),i.getZip(),i.getCity(),i.getServiceBrands(),i.getRoute())),a&&Rs.appendChild(Fo("".concat(Granite.I18n.get("apps.amag-ch.components.content.otv.booking.replacementCar")),null,["".concat(Granite.I18n.get("apps.amag-ch.components.content.otv.summaryPane.YesReplacementCarText"))])),b=document.querySelector(".choose-date__time.is-active").getAttribute("data-appointment-desc"),Ms.appendChild(Fo("".concat(Kt.get(Gt.appointment.date),", ").concat(Kt.get(Gt.appointment.day)),null,[b])),w=document.querySelector(Gs.selectors.carsWrapper),S=w.getAttribute("data-amagapp"),C=w.getAttribute("data-lastupdated"),E=w.getAttribute("data-connectedwith"),x=!!Kt.get(Gt.appVehicle.fromApp)||!!Kt.get(Gt.appVehicle.fromSRS),A=Ss(),Kt.get(Gt.data.documentImage)?(k="".concat(Kt.get(Gt.car.brand)," ").concat(Kt.get(Gt.car.model)),T="".concat(Kt.get(Gt.data.mileage)?Kt.get(Gt.data.mileage)+" km":Gs.i18n.notSpecifiedLabel),L='<div class="text-box">\n <p class="text-box__headline">'.concat(k," ").concat(x?"(".concat(S,")"):"",'</p>\n <p class="text-box__description">').concat(Gs.i18n.mileageLabel,": ").concat(T).concat(x?'<span class="app-vehicle__connected-icon-placeholder">'.concat('<svg class="app-vehicle__connected-icon" width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M7.17784 13.8426C7.07517 13.8374 6.97974 13.7827 6.92248 13.6978L5.08823 10.9665C5.03952 10.8935 5.02175 10.8059 5.03821 10.7197C5.05532 10.6335 5.10468 10.5591 5.17773 10.5098C5.23236 10.4729 5.29554 10.4538 5.3607 10.4538C5.47061 10.4538 5.57262 10.5085 5.63383 10.5993L6.69739 12.1828C6.65264 9.35802 8.56982 6.8123 11.3623 6.11599L11.4235 6.10085C11.8737 5.99489 12.3344 5.94092 12.7945 5.94092C14.4872 5.94092 16.103 6.67014 17.2264 7.94234C17.3469 8.07858 17.3337 8.28655 17.1975 8.40699C17.1369 8.4603 17.0599 8.48926 16.9796 8.48926C16.8855 8.48926 16.7953 8.44846 16.7328 8.37804C15.7344 7.24734 14.299 6.59906 12.7945 6.59906C12.3858 6.59906 11.9764 6.64711 11.5769 6.74188L11.521 6.7557C8.81136 7.43096 7.05608 10.0274 7.39569 12.762L9.05224 10.7783C9.11477 10.7033 9.20691 10.6605 9.30497 10.6605C9.38197 10.6605 9.457 10.6875 9.51558 10.7368C9.65511 10.8533 9.67353 11.0613 9.55704 11.2002L7.44768 13.7261C7.38516 13.7998 7.18047 13.8426 7.17784 13.8426Z" fill="#172983"/>\n <path d="M12.7701 17.7915C11.2129 17.7915 9.74066 17.1834 8.62378 16.079C8.56126 16.0171 8.52638 15.9349 8.52638 15.8467C8.52572 15.7585 8.55994 15.6756 8.62181 15.6137C8.68367 15.5505 8.7666 15.5156 8.85545 15.5156C8.94298 15.5156 9.02525 15.5498 9.08712 15.6111C10.0796 16.5924 11.3887 17.1327 12.7721 17.1327C13.1828 17.1327 13.5954 17.084 13.9989 16.9886C16.4169 16.41 18.1176 14.1947 18.0971 11.7372L16.5255 13.6188C16.463 13.6939 16.3708 13.7367 16.2728 13.7367C16.1958 13.7367 16.1214 13.7097 16.0622 13.6603C15.9233 13.5438 15.9042 13.3365 16.0207 13.197L18.0912 10.7184C18.1004 10.7052 18.111 10.6934 18.1222 10.6815L18.1314 10.6697C18.1939 10.5947 18.286 10.5519 18.3834 10.5519C18.3867 10.5519 18.3992 10.5519 18.4025 10.5525C18.5052 10.5578 18.6006 10.6124 18.6579 10.698L20.4908 13.4306C20.5395 13.5037 20.5573 13.5912 20.5402 13.6774C20.5231 13.7636 20.4737 13.838 20.4007 13.8874C20.3467 13.9236 20.2835 13.9433 20.2177 13.9433C20.1078 13.9433 20.0051 13.8887 19.9439 13.7972L18.7527 12.0215C18.65 14.689 16.7881 16.9984 14.1522 17.6289C13.6974 17.7369 13.2328 17.7915 12.7701 17.7915Z" fill="#172983"/>\n </svg>',"</span>"):"",'</p>\n <img src="" alt="').concat(k,'" class="text-box__image">\n \n ').concat(x?'<div class="app-vehicle__info">\n <div class="app-vehicle__info-last-recorded">'.concat(C,': <span class="app-vehicle__info-last-recorded-value">').concat((null==A?void 0:A.lastRecordedAt)||"-",'</span></div>\n <div class="app-vehicle__info-connected-with">').concat(E,' <span class="app-vehicle__info-amag-app">').concat(S,"</span></>\n </div>"):"","\n </div>"),qs.insertAdjacentHTML("beforeend",L),Ws()):(I="".concat(Kt.get(Gt.car.brand)," ").concat(Kt.get(Gt.car.model)),D="".concat(Kt.get(Gt.data.mileage)?Kt.get(Gt.data.mileage)+" km":Gs.i18n.notSpecifiedLabel),P="".concat(Kt.get(Gt.data.licensePlate)),O="".concat(Kt.get(Gt.data.initialRegistration)||Gs.i18n.notSpecifiedLabel),R="".concat(Kt.get(Gt.data.chassisNumber)||Gs.i18n.notSpecifiedLabel),M=!!Kt.get(Gt.data.vehicleHolder.self),q="".concat(Kt.get(Gt.data.vehicleHolder.salutationText)," ").concat(Kt.get(Gt.data.vehicleHolder.holder)),N=Kt.get(Gt.data.vehicleHolder.name)?Kt.get(Gt.data.vehicleHolder.name):"",V='<div class="text-box">\n <p class="text-box__headline">'.concat(I," ").concat(x?"(".concat(S,")"):"",'</p>\n <p class="text-box__description">').concat(Gs.i18n.licensePlateLabel,": ").concat(P,'</p>\n <p class="text-box__description">').concat(Gs.i18n.mileageLabel,": ").concat(D,'</p>\n <p class="text-box__description">').concat(Gs.i18n.initialRegistrationLabel,": ").concat(O,'</p>\n <p class="text-box__description">').concat(Gs.i18n.serialNumberLabel,": ").concat(R,"</p>\n ").concat(M?"":'<p class="text-box__description">'.concat(Gs.i18n.vehicleHolderLabel,": ").concat(q," ").concat(N,"</p>"),"\n \n ").concat(x?'<div class="app-vehicle__info">\n <div class="app-vehicle__info-last-recorded">'.concat(C,': <span class="app-vehicle__info-last-recorded-value">').concat((null==A?void 0:A.lastRecordedAt)||"-",'</span></div>\n <div class="app-vehicle__info-connected-with">').concat(E,' <span class="app-vehicle__info-amag-app">').concat(S,"</span></div>\n </div>"):"","\n </div>"),qs.insertAdjacentHTML("beforeend",V)),(F=document.querySelector(".booking__appointments-callback-label-description")).innerHTML=Ka(F.textContent,{garageName:i.getGarageName()}),ec(),Kt.get(Gt.data.isGuest)||Zs(Vs.data.preferredContactChannel);case 53:case"end":return e.stop()}}),e,null,[[17,31,34,37]])})))}));case 9:case"end":return e.stop()}}),e)})))}(),function(){Fd.apply(this,arguments)}(),th();var r=function(){var e=(0,lt.A)(ht().mark((function e(t,n){var r,a,i,o,s,c,l,d,h,p,f,m;return ht().wrap((function(e){for(;;
6)switch(e.prev=e.next){case 0:if(o=Kc(),Kt.store(Gt.otv.hash,o),s=null!==(r=null==o?void 0:o.garageId)&&void 0!==r?r:"",c=o.services,l=null!==(a=null==o?void 0:o.brand)&&void 0!==a?a:"",d=null!==(i=null==o?void 0:o.model)&&void 0!==i?i:"",h=""!==l&&""!==d,p=""!==s&&c.length>0,!s){e.next=14;break}return e.next=11,Ll(Number(s));case 11:e.t0=!!e.sent,e.next=15;break;case 14:e.t0=!1;case 15:return f=e.t0,e.next=18,Promise.all(c.map((function(e){return e.startsWith(ih)?gc.getHiddenService(e):gc.getService(e)})));case 18:if(e.sent.filter(Boolean).forEach((function(e){var t=new yl(e);t.complete=!0,Kt.append(Gt.service.selectedServices,t)})),!p||Kt.get(Gt.service.selectedServices)&&f){e.next=24;break}return Kt.remove(Gt.service.selectedServices),null===(m=document.querySelector(".preSelection__error-msg"))||void 0===m||m.classList.remove("d-none"),e.abrupt("return");case 24:if(!h){e.next=29;break}return n.setSelectedItem(l),e.next=28,u(l);case 28:t.setSelectedItem(d);case 29:f&&(Kt.append(Gt.service.presetKeyValid,!0),Kt.append("garage.presetGarage",s));case 30:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),a=function(){var e=(0,lt.A)(ht().mark((function e(){var t,n;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=sessionStorage.getItem(Gt.otv.presetServices))||Kt.get(Gt.service.selectedServices)){e.next=7;break}return n=t.split(","),e.next=5,Promise.all(n.map((function(e){return e.startsWith(ih)?gc.getHiddenService(e):gc.getService(e)})));case 5:e.sent.filter(Boolean).forEach((function(e){var t=new yl(e);t.complete=!0,Kt.append(Gt.service.selectedServices,t)}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();a();var i=new nh.e("model"),o=new nh.e("brand"),s=[{value:"",label:Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.brand")}],c=[{value:"AUDI",label:Granite.I18n.get("apps.amag-ch.brandAudi")},{value:"BENTLEY",label:Granite.I18n.get("apps.amag-ch.brandBentley")},{value:"PORSCHE",label:Granite.I18n.get("apps.amag-ch.brandPorsche")},{value:"SEAT",label:Granite.I18n.get("apps.amag-ch.brandSeatCupra")},{value:"SKODA",label:Granite.I18n.get("apps.amag-ch.brandSkoda")},{value:"VW_PKW",label:Granite.I18n.get("apps.amag-ch.brandVolkswagen")},{value:"VW_NZ",label:Granite.I18n.get("apps.amag-ch.brandVWNutzfahrzeuge")},{value:"FREMD",label:Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.otherBrand")}],l=[{value:"PORSCHE",label:Granite.I18n.get("apps.amag-ch.brandPorsche")}];"theme.amag.noncaptive"===e.dataset.theme&&"porsche"===e.dataset.project?s.push.apply(s,l):s.push.apply(s,c),o.setOptions(s),r(i,o);var u=function(){var e=(0,lt.A)(ht().mark((function e(t){var n,r;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Pi.getModelsForBrandAsDdlOptions(t);case 2:return n=e.sent,r=[],n.forEach((function(e){r.push({value:e.id,label:e.text})})),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=(0,lt.A)(ht().mark((function e(t){var n;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.currentTarget.value,i.setOptions([]),""!==n){e.next=6;break}i.hide(),e.next=15;break;case 6:return rh(ah.carsWrapper).find(".vehicle-available__label").removeClass("is-active"),rh(ah.carsWrapper).find(".vehicle-available__input").prop("checked",!1),Kt.remove(Gt.car.brand),Kt.remove(Gt.car.brandId),Kt.remove(Gt.car.model),Kt.remove(Gt.car.modelId),Kt.remove(Gt.car.vehicleUID),i.show(),e.t0=i,e.next=13,u(n);case 13:e.t1=e.sent,e.t0.setOptions.call(e.t0,e.t1);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){return o.getSelectedOptionText()},p=function(){return i.getSelectedOptionText()},f=function(){var e=(0,lt.A)(ht().mark((function e(){var t,n,r,a;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=parseInt((0,ni.Ri)("garage")),e.t0=parseInt,e.next=4,ai.getFavoriteGarageId();case 4:return e.t1=e.sent,n=(0,e.t0)(e.t1),r=isNaN(n)?t:n,e.next=9,Ll(r);case 9:void 0!==(a=e.sent)&&(0,it.yZ)(a);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();rh(ah.btnSearch).on("click",(function(e){if(e.preventDefault(),!Kt.get(Gt.car.vehicleUID)&&o.validateDropdown()&&i.validateDropdown()){var t={event:"ga4Event",eventName:"click_nextStep",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 2 - Fahrzeug ausgewählt",eventParameter3:"carBrand",fieldValue3:h(),eventParameter4:"carModel",fieldValue4:p(),eventParameter5:"login_status",fieldValue5:localStorage.getItem(bt.H.AMAG_USER)?"logged in":"not logged in"};(0,it.eo)(t,2.1),Kt.get(Gt.car.vehicleUID)||n.enterSelectedCar({brand:o.getSelectedOptionText(),brandId:o.getSelectedOptionValue(),model:i.getSelectedOptionText(),modelId:i.getSelectedOptionValue()});var r=Kt.get(Gt.otv.hash);r.brand=o.getSelectedOptionValue(),r.model=i.getSelectedOptionValue(),Xc(r),Kt.store(Gt.otv.hash,r),n.selectTab(0),n.refreshCarSelection(),rh("body,html").animate({scrollTop:0},10)}else if(Kt.get(Gt.car.vehicleUID)){var a={event:"ga4Event",eventName:"click_nextStep",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 2 - Fahrzeug ausgewählt",eventParameter3:"carBrand",fieldValue3:Kt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Kt.get(Gt.car.model),eventParameter5:"login_status",fieldValue5:localStorage.getItem(bt.H.AMAG_USER)?"logged in":"not logged in"};(0,it.eo)(a,2.1);var s=Kt.get(Gt.otv.hash);s.brand=Kt.get(Gt.car.brandId),s.model=Kt.get(Gt.car.modelId),Xc(s),Kt.store(Gt.otv.hash,s),n.selectTab(0),n.refreshCarSelection(),rh("body,html").animate({scrollTop:0},10)}else if(Kt.get(Gt.car.vehicleUID)){var c={event:"ga4Event",eventName:"click_nextStep",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 2 - Fahrzeug ausgewählt",eventParameter3:"carBrand",fieldValue3:Kt.get(Gt.car.brand),eventParameter4:"carModel",fieldValue4:Kt.get(Gt.car.model),eventParameter5:"login_status",fieldValue5:localStorage.getItem(bt.H.AMAG_USER)?"logged in":"not logged in"};(0,it.eo)(c,2.1),n.selectTab(0),n.refreshCarSelection()}})),o.getNativeSelect().addEventListener("change",(function(e){d(e)})),i.getNativeSelect().addEventListener("change",(function(e){!function(){var e={event:"ga4Event",eventName:"user_landed",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 2 - Fahrzeug ausgewählt",eventParameter3:"carBrand",fieldValue3:h(),eventParameter4:"carModel",fieldValue4:p(),eventParameter5:"login_status",fieldValue5:localStorage.getItem(bt.H.AMAG_USER)?"logged in":"not logged in"};(0,it.eo)(e,2)}()})),"theme.amag.noncaptive"===e.dataset.theme&&"porsche"===e.dataset.project&&o.setSelectedItem("PORSCHE"),localStorage.getItem(bt.H.AMAG_USER)&&(0,lt.A)(ht().mark((function t(){var n;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return rh(ah.loginWrapper).hide(),n=new fr.y,"theme.amag.noncaptive"===e.dataset.theme&&"porsche"===e.dataset.project&&(n.color="var(--componentIconColor)",n.textColor="#000000"),n.show(rh(ah.carsWrapper).closest(".tab-pane")),t.next=6,ks();case 6:return document.querySelector(ah.loginBox).hidden=!0,t.next=9,f();case 9:n.remove();case 10:case"end":return t.stop()}}),t)})))(),rh(".js-otv-login-link").on("click",(function(){rh("body,html").animate({scrollTop:0},10),rh("#cdcModal").modal("show")})),rh("body").on("cdc.logIn",(0,lt.A)(ht().mark((function t(){var n;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!rh(ah.loginWrapper).length){t.next=11;break}return rh(ah.loginWrapper).hide(),n=new fr.y,"theme.amag.noncaptive"===e.dataset.theme&&"porsche"===e.dataset.project&&(n.color="var(--componentIconColor)",n.textColor="#000000"),n.show(rh(ah.carsWrapper).closest(".tab-pane")),t.next=7,ks();case 7:return t.next=9,f();case 9:document.querySelector(ah.loginBox).hidden=!0,n.remove();case 11:case"end":return t.stop()}}),t)})))),document.querySelector("body").addEventListener("amagUserLogin",(function(){localStorage.getItem("amaguser")&&(window.loginDataLayer="Register",rh("#cdcModal").modal("hide"),Lr())}));var m={event:"ga4Event",eventName:"OTV_opened",eventParameter1:"interaction_item",fieldValue1:"OTV",eventParameter2:"interaction_label",fieldValue2:"Step 1 - Start OTV",eventParameter3:"login_status",fieldValue3:localStorage.getItem(bt.H.AMAG_USER)?"logged in":"not logged in"};(0,it.eo)(m,1)}}));var oh=__webpack_require__(74692),sh={selectors:{containerID:"gigy_accountdata_container",nameField:"#gigya_username",birthdayField:"#gigya_birthday",addressField:"#gigya_address",phoneField:"#gigya_phone",accountCopytext:".amag-profileoverview__accountcopytext",emailaddressField:"#gigya_emailaddress",passwordField:"#gigya_password",loginPath:".amag-header__login",loginflyout:".js-amag-header__loginFlyout",innerWrapper:".amag-cdcbox",nationalityField:"#gigya_nationality"},queryStringObj:{errorCode:"errorCode"},i18n:{salutationMan:Granite.I18n.get("apps.amag-ch.components.c
6ontent.profileoverview.salutation.manLabel"),salutationWoman:Granite.I18n.get("apps.amag-ch.components.content.profileoverview.salutation.womanLabel"),identityProvider:Granite.I18n.get("apps.amag-ch.components.content.profileoverview.accountdataTab.identityproviderText"),monthName1:Granite.I18n.get("apps.amag-ch.month.1.Label"),monthName2:Granite.I18n.get("apps.amag-ch.month.2.Label"),monthName3:Granite.I18n.get("apps.amag-ch.month.3.Label"),monthName4:Granite.I18n.get("apps.amag-ch.month.4.Label"),monthName5:Granite.I18n.get("apps.amag-ch.month.5.Label"),monthName6:Granite.I18n.get("apps.amag-ch.month.6.Label"),monthName7:Granite.I18n.get("apps.amag-ch.month.7.Label"),monthName8:Granite.I18n.get("apps.amag-ch.month.8.Label"),monthName9:Granite.I18n.get("apps.amag-ch.month.9.Label"),monthName10:Granite.I18n.get("apps.amag-ch.month.10.Label"),monthName11:Granite.I18n.get("apps.amag-ch.month.11.Label"),monthName12:Granite.I18n.get("apps.amag-ch.month.12.Label")}};if(document.querySelector(".amag-profileoverview")&&("true"!==document.querySelector(sh.selectors.innerWrapper).getAttribute("data-isauthormode")&&!localStorage.getItem(bt.H.AMAG_USER))){var ch=oh(sh.selectors.loginflyout).data("login");window.location.href=ch}var lh=function(e){var t;return null!==(t=zd.find((function(t){return t.id===e})).text)&&void 0!==t?t:""},uh=function(e){var t;return null!==(t=$d.find((function(t){return t.id===e})).text)&&void 0!==t?t:""},dh=function(e){var t="";return["CHE","CH"].includes(e)?t=Yd.find((function(e){return"CHE"===e.id})).text:["LIE","LI"].includes(e)?t=Yd.find((function(e){return"LIE"===e.id})).text:Yd.find((function(n){n.id===e&&(t=n.text)})),t},hh=function(e){var t="";switch(e){case 1:t=sh.i18n.monthName1;break;case 2:t=sh.i18n.monthName2;break;case 3:t=sh.i18n.monthName3;break;case 4:t=sh.i18n.monthName4;break;case 5:t=sh.i18n.monthName5;break;case 6:t=sh.i18n.monthName6;break;case 7:t=sh.i18n.monthName7;break;case 8:t=sh.i18n.monthName8;break;case 9:t=sh.i18n.monthName9;break;case 10:t=sh.i18n.monthName10;break;case 11:t=sh.i18n.monthName11;break;case 12:t=sh.i18n.monthName12;break;default:console.log("No canton name exists")}return t};"undefined"!=typeof gigya&&document.getElementById(sh.selectors.containerID)&&Dr((function(e){var t=e.data;for(var n in t)(0,it.RI)(t[n])?delete t[n]:(0,it.kS)(t[n]);try{if("FAIL"!==e.status){var r,a,i=Granite.I18n.get("apps.amag-ch.components.cdcbox.text.passwordRenewSuccess");"passwordRenewSuccess"===kr(sh.queryStringObj.errorCode)&&Tr(i,"okay",it.lp.isMobile()?"touch":"desktop");var o="";void 0!==e.profile.gender&&("m"==e.profile.gender?o=sh.i18n.salutationMan:"f"==e.profile.gender&&(o=sh.i18n.salutationWoman));var s,c=di(e.profile.firstName),l=di(e.profile.lastName);if(void 0!==e.data.title?void 0!==e.profile.gender?oh(sh.selectors.nameField).find(".amag-profileoverview__data").html("<div data-hj-suppress>"+o+" "+e.data.title+" "+c+" "+l+"</div>"):oh(sh.selectors.nameField).find(".amag-profileoverview__data").html("<div data-hj-suppress>"+e.data.title+" "+e.profile.firstName+" "+l+"</div>"):void 0!==e.profile.gender?oh(sh.selectors.nameField).find(".amag-profileoverview__data").html("<div data-hj-suppress>"+o+" "+c+" "+l+"</div>"):oh(sh.selectors.nameField).find(".amag-profileoverview__data").html("<div data-hj-suppress>"+c+" "+l+"</div>"),void 0!==e.profile.birthDay&&void 0!==e.profile.birthMonth&&void 0!==e.profile.birthYear)s=hh(e.profile.birthMonth),oh(sh.selectors.birthdayField).find(".amag-profileoverview__data").html(e.profile.birthDay+". "+s+" "+e.profile.birthYear),oh(sh.selectors.birthdayField).show();if(void 0!==e.profile.phones&&!(0,it.RI)(e.profile)){var u=e.profile.phones.find((function(e){return"mobile"===e.type}));u&&(u=di(u.number),oh(sh.selectors.phoneField).find(".amag-profileoverview__data").html(u))}if(null!==(r=e.addresses)&&void 0!==r&&r.private&&!(0,it.RI)(null===(a=e.addresses)||void 0===a?void 0:a.private)){var d="",h="",p=di(e.addresses.private.street||""),f=di(e.addresses.private.houseNumber||""),m=di(e.addresses.private.zipCode||""),v=di(e.addresses.private.city||""),g=e.addresses.private.countryISOCode3||"",y=e.addresses.private.neighborhood||"",_=!1;null!==p&&(_=!0,null!==f?d=d+p+" "+f:d+=p),null!==m&&null!==v&&(_=!0,d=""===d?d+m+" "+v:d+"<br/>"+m+" "+v),null!==g&&(_=!0,h=lh(g),"CHE"===g?""===d?null!=y&&""!==y?d=d+uh(y)+", "+h:d+=
6h:d=null!=y&&""!==y?d+"<br/>"+uh(y)+", "+h:d+"<br/>"+h:""===d?d+=h:d=d+"<br/>"+h),_&&oh(sh.selectors.addressField).find(".amag-profileoverview__data").html(d)}var b=e.data.nationality;if(b){var w=e.data.residencePermitCategory,S="";S=["CHE","CH"].includes(b)?dh(b):"".concat(dh(b)," (").concat(Granite.I18n.get("apps.amag-ch.components.content.profileoverview.permit")," ").concat(w,")"),oh(sh.selectors.nationalityField).find(".amag-profileoverview__data").html(S)}var C="$[provider]",E="$[providerlink]";if("site"==e.loginProvider)oh(sh.selectors.emailaddressField).find(".amag-profileoverview__data").html("<div data-hj-suppress>"+e.profile.email+"</div>"),oh(sh.selectors.emailaddressField).show(),oh(sh.selectors.passwordField).show();else if("oidc-vwgroup"==e.loginProvider){var x=sh.i18n.identityProvider.replace(C,"<b>VW ID</b>");x=x.replace(E,'<a class="providerlink" href="#">VW ID</a>'),oh(sh.selectors.accountCopytext).html(x),oh(".providerlink").on("click",(function(e){e.stopPropagation(),window.open("https://id.vwgroup.io/landing-page","mywindow","width=960,height=680")}))}else if("oidc-swissid"==e.loginProvider){var A=sh.i18n.identityProvider.replace(C,"<b>SwissID</b>");A=A.replace(E,'<a class="providerlink" href="#">Swiss ID</a>'),oh(sh.selectors.accountCopytext).html(A),oh(".providerlink").on("click",(function(e){e.stopPropagation(),window.open("https://login.swissid.ch/idp/XUI/#login/","mywindow","width=960,height=680")}))}}}catch(e){console.error(e)}}));__webpack_require__(9254);var ph=__webpack_require__(74692);function fh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return mh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mh(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function mh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vh(){return vh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=(0,Ja.A)(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(arguments.length<3?e:n):a.value}},vh.apply(null,arguments)}!function(){var e=ph("#teamContainerBrand"),t=ph("#teamContainerDepartment");if(document.querySelector(".teamContainer")&&(document.querySelectorAll(".amag-garageTabModul__team").forEach((function(e){e.innerHTML="",e.classList.remove("amag-garageTabModul__team")})),document.querySelectorAll(".amag-ctaWrapper--team").forEach((function(e){e.innerHTML="",e.classList.remove("amag-ctaWrapper--team")}))),document.querySelector(".amag-abbildungTeamsWrapper")&&(document.querySelector(".amag-abbildungTeams")||document.querySelector(".amag-teamMember-small"))){var n=function(e){var t=document.querySelectorAll(".amag-abbildungTeamsWrapper__departments");if(""!==e){var n,r=fh(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.getAttribute("id")===e?i.style.display="block":i.style.display="none"}}catch(e){r.e(e)}finally{r.f()}}else{var o,s=fh(t);try{for(s.s();!(o=s.n()).done;){o.value.style.display="block"}}catch(e){s.e(e)}finally{s.f()}}a()},r=function(e){var t=document.querySelectorAll(".amag-abbildungTeamMember, .amag-teamMember-small");
6if(""!==e){var n,r=fh(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.childNodes[1].getAttribute("data-brands");if(null!=o)o.split(",").includes(e)?i.style.display="block":i.style.display="none";else i.style.display="none"}}catch(e){r.e(e)}finally{r.f()}}else{var s,c=fh(t);try{for(c.s();!(s=c.n()).done;){s.value.style.display="block"}}catch(e){c.e(e)}finally{c.f()}}a()},a=function(){var e={department:".amag-abbildungTeamsWrapper__departments",teammember:".amag-abbildungTeamMember"},t=!1;ph(".amag-abbildungTeams_NoMembers").hide(),ph(e.department).each((function(){"block"===ph(this)[0].style.display&&ph(this).find(ph(e.teammember)).each((function(){"block"===ph(this)[0].style.display&&(t=!0)}))})),!1===t&&ph(".amag-abbildungTeams_NoMembers").show()};if(n(t.val()),r(e.val()),a(),Vr(e,null,null,!1),Vr(t,null,null,!1),e.data("filter")){var i="";switch(e.data("brandfilter").trim()){case"VW":i="apps.amag-ch.components.content.teamContainer.brandVW";break;case"Audi":i="apps.amag-ch.components.content.teamContainer.brandAudi";break;case"Škoda":i="apps.amag-ch.components.content.teamContainer.brandSkoda";break;case"VW Nutzfahrzeuge":case"VW Véhicules Utilitaires":case"VW Veicoli Commerciali":case"VW Commercial Vehicles":i="apps.amag-ch.components.content.teamContainer.brandVWNutzfahrzeuge";break;case"SEAT":i="apps.amag-ch.components.content.teamContainer.brandSeat";break;case"CUPRA":i="apps.amag-ch.components.content.teamContainer.brandCupra";break;case"Bentley":i="apps.amag-ch.components.content.teamContainer.brandBentley";break;case"Occasion":case"Occasions":case"Occasioni":case"Used Car":i="apps.amag-ch.components.content.teamContainer.brandOccasion";break;case"AMAG Karosserie & Lack":case"AMAG Carrosserie & Peinture":case"AMAG Carrozzeria e verniciatura":case"AMAG Body & Paint Shop":i="apps.amag-ch.components.content.teamContainer.brandKarosserieLack";break;default:console.log("no exist")}e.val(i).trigger("change"),e.parents(".select2-wrapper").addClass("state--labelTop"),r(i)}it.lp.isMobile()?e.on("change",(function(e){r(e.currentTarget.value)})):e.on("select2:select",(function(e){r(e.currentTarget.value)})),it.lp.isMobile()?t.on("change",(function(e){n(e.currentTarget.value)})):t.on("select2:select",(function(e){n(e.currentTarget.value)}))}}();var gh=function(e){Jh.find(".vehicle-pane").addClass("d-none"),Jh.find(".".concat(e)).removeClass("d-none")},yh=function(e,t){return Tr(t?Ka(e,t):e,"okay",it.lp.isMobile()?"touch":"desktop")},_h=__webpack_require__(74692),bh=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this._template=null,this._compiledObject=null,this._data=t,this._isCompiled=!1,this._$eventContainer=_h("<div></div>")}),[{key:"template",set:function(e){this._template=e}},{key:"_compileTemplate",value:function(){if(!this._template)throw new Error("UndefinedTemplateError: No template defined for ".concat(this.constructor.name));this._compiledObject=_h(Ka(this._template,this._data||{})),this._isCompiled=!0,this._$eventContainer.trigger("compile",this)}},{key:"$",get:function(){return this._isCompiled||this._compileTemplate(),this._compiledObject}},{key:"place",value:function(e){e.append(this.$)}},{key:"on",value:function(e,t){this._$eventContainer.on(e,t)}},{key:"data",get:function(){return this._data}}])}();function wh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wh=function(){return!!e})()}bh.events={compile:"compile"};var Sh=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Ch=function(e){function t(){return(0,pt.A)(this,t),e=this,n=t,r=arguments,n=(0,Ja.A)(n),(0,Xa.A)(e,wh()?Reflect.construct(n,r||[],(0,Ja.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,Qa.A)(t,e),(0,ft.A)(t,[{key:"fetch",value:function(e,t,n){return Sh(this,void 0,void 0,ht().mark((function r(){var a,i;return ht().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,br.getJwtToken();case 2:return r.t0=r.sent,r.t1=(new Date).toISOString().substr(0,19),r.t2=e,r.t3=t,r.t4=n,a={CDC_TOKEN:r.t0,visitTime:r.t1,make:r.t2,model:r.t3,licplate:r.t4},r.next=10,(0,yr.eJ)("".concat(wr.getUrl(),"getAllAppointmentsForCar.json?").concat(Wo(a)));case 10:return i=r.sent,r.abrupt("return",i.d.results.map((function(e){return Fc({srsAppointment:e})})));case 12:case"end":return r.stop()}}),r)})))}}])}(bc);function Eh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Eh=function(){return!!e})()}
6var xh=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Ah=function(e){function t(){return(0,pt.A)(this,t),e=this,n=t,r=arguments,n=(0,Ja.A)(n),(0,Xa.A)(e,Eh()?Reflect.construct(n,r||[],(0,Ja.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,Qa.A)(t,e),(0,ft.A)(t,[{key:"fetch",value:function(e){return xh(this,void 0,void 0,ht().mark((function t(){var n,r;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,br.getJwtToken();case 2:return t.t0=t.sent,t.t1=e,n={CDC_TOKEN:t.t0,appointmentId:t.t1},t.next=7,(0,yr.eJ)("".concat(wr.getUrl(),"getAppointmentDetails.json?").concat(Wo(n)));case 7:return r=t.sent,t.abrupt("return",Fc({srsAppointment:r.d.results[0]}));case 9:case"end":return t.stop()}}),t)})))}}])}(bc);function kh(e,t){var n;Object.defineProperty(e,t,{get:function(){return(0,ut.A)(n.content.cloneNode(!0).childNodes).find((function(e){return e.constructor!==Text}))},set:function(e){n=e}})}var Th=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Lh=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ih=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Dh=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.cancellationTemplate=t}),[{key:"render",value:function(e){return Ih(this,void 0,void 0,ht().mark((function t(){var n;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=qc,t.t1=this.cancellationTemplate,t.next=4,e.getTemplateMap();case 4:return t.t2=t.sent,(n=(0,t.t0)(t.t1,t.t2)).querySelector(".appointment-cancellation__date").innerText=e.getDateString(),t.next=9,e.getPickupTime();case 9:return n.querySelector(".appointment-cancellation__pickup-time").innerText=t.sent,t.t3=pi,t.next=13,e.getServices();case 13:return t.t4=t.sent.join(", "),n.querySelector(".appointment-cancellation__services").innerText=(0,t.t3)(t.t4),t.t5=n.querySelector(".appointment-cancellation__garage"),t.next=18,e.getGarageInformationMarkup();case 18:return t.t6=t.sent,t.t5.append.call(t.t5,t.t6),t.t7=n.querySelector(".appointment-cancellation__vehicle"),t.next=23,e.getVehicleInformationMarkup();case 23:return t.t8=t.sent,t.t7.append.call(t.t7,t.t8),t.abrupt("return",n);case 26:case"end":return t.stop()}}),t,this)})))}}])}();function Ph(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Oh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oh(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Oh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Th([kh,Lh("design:type",HTMLElement)],Dh.prototype,"cancellationTemplate",void 0);var Rh=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Mh=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}
6,qh=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Nh=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.detailTemplate=t}),[{key:"render",value:function(e){return qh(this,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s,c,l;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=qc,t.t1=this.detailTemplate,t.next=4,e.getTemplateMap();case 4:return t.t2=t.sent,n=(0,t.t0)(t.t1,t.t2),t.t3=Ph,t.next=9,e.getServices();case 9:t.t4=t.sent,r=(0,t.t3)(t.t4);try{for(r.s();!(a=r.n()).done;)i=a.value,(o=(0,Oc.C)(document.querySelector("#amag-appointment-overview__detail__service"))).querySelector(".appointment-detail__service-description").innerText=pi(i),n.querySelector(".appointment-detail__services-wrapper").append(o)}catch(e){r.e(e)}finally{r.f()}return t.t5=n.querySelector(".appointment-detail__vehicle-information-wrapper"),t.next=15,e.getVehicleInformationMarkup();case 15:return t.t6=t.sent,t.t5.append.call(t.t5,t.t6),t.t7=n.querySelector(".appointment-detail__garage-wrapper"),t.next=20,e.getGarageInformationMarkup();case 20:return t.t8=t.sent,t.t7.append.call(t.t7,t.t8),t.next=24,e.getGarage();case 24:return s=t.sent,c=n.querySelector(".appointment-detail__garage-detail-link"),s.getPath()&&(c.setAttribute("href",s.getPath()),c.classList.remove("d-none")),e.srsAppointment.REMARKS&&((l=(0,Oc.C)(document.querySelector("template#amag-appointment-overview__detail__remark"))).querySelector(".appointment-detail__remark").innerText=this.removedFormattingText(e.srsAppointment.REMARKS),n.querySelector(".appointment-detail__services-wrapper").append(l)),e.srsAppointment.LaboursNav.results.find((function(e){return"AMAG_OTV_08 20000"===e.LBRVAL_ID}))&&n.querySelector(".appointment-detail__tile--replacement-car").classList.remove("d-none"),t.abrupt("return",n);case 30:case"end":return t.stop()}}),t,this)})))}},{key:"removedFormattingText",value:function(e){var t=e.indexOf("Additional services: ");return t>-1&&(e=e.substring(0,t)),(e=e.replace("Service note: ","")).substring(0,e.length-1)}}])}();Rh([kh,Mh("design:type",HTMLElement)],Nh.prototype,"detailTemplate",void 0);var Vh=__webpack_require__(74692);function Fh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fh=function(){return!!e})()}var Bh=function(e){function t(e){var n,r,a,i;(0,pt.A)(this,t),r=this,a=t,i=[e],a=(0,Ja.A)(a),n=(0,Xa.A)(r,Fh()?Reflect.construct(a,i||[],(0,Ja.A)(r).constructor):a.apply(r,i));var o=document.querySelector("#vehicle-overview-component .vehicle-detail-properties"),s=document.querySelector("#vehicle-overview-component .vehicle-detail-properties-link");return n.vehicle=e,e?(n.componentHeadline=o.getAttribute("data-vehicleDetail-headline"),n.componentCopy=o.getAttribute("data-vehicleDetail-deleteCopy"),n.noAppointmentCopy=o.getAttribute("data-vehicleDetail-noAppointmentCopy"),n.prohibitedDeleteCopy=o.getAttribute("data-vehicleDetail-prohibitedDeleteCopy"),n.appointmentPath=s.getAttribute("href"),n.template=n._vehicleTemplate(),n._initEvents(),n._defineVariables(),n._initAppointmentTile(),n.checkVIN()):(n.componentHeadline=o.getAttribute("data-newVehicle-headline"),n.componentCopy=o.getAttribute("data-newVehicle-copy"),n.template=n._noVehicleTemplate(),n._initEvents()),n}return(0,Qa.A)(t,e),(0,ft.A)(t,[{key:"_defineVariables",value:function(){this.allAppointmentsForCarService=new Ch,this.appointmentDetailService=new Ah,this.cancellationRenderService=new Dh(document.querySelector("template#amag-appointment-overview__cancellation")),this.detailRendererService=new Nh(document.querySelector("template#amag-appointment-overview__detail")),this.noAppointmentContainer=this.$.find(".vehicle-detail__no-appointment-copy")[0],this.appointmentContainer=this.$.find(".vehicle-detail__appointment")[0],this.vehicleDetailContainer=document.querySelector(".vehicle-detail"),this.appointmentDetailWrapper=document.querySelector(".amag-appointment-overview__detail-wrapper"),this.appointmentCancellationWrapper=document.querySelector(".amag-appointment-overview__cancellation-wrapper"),this.appointmentDetailContent=document.querySelector(".amag-appointment-overview__detail-content"),this.appointmentCancellationContent=document.querySelector(".amag-appointment-overview__cancellation-content"),this.spinner=this.$.find(".vehicle-detail__appointment-spinner")[0],this.spinnerContainer=this.$.find(".vehicle-detail__appointment-spinner-container")[0],this.deleteVehicleC
6ontainer=document.querySelector(".vehicle-delete")}},{key:"place",value:function(e){var n,r,a,i,o;e.html(""),(n=t,r="place",a=this,i=3,o=vh((0,Ja.A)(1&i?n.prototype:n),r,a),2&i&&"function"==typeof o?function(e){return o.apply(a,e)}:o)([e])}},{key:"checkChangeInput",value:function(e){var t=this,n=this.$.find(e).val();this.$.find(e).on("input change",(function(r){t.$.find(e).val()!==n||"change"===r.type?(Vh(".vehicle-detail__navigation-buttons").addClass("is-sticky"),Vh(".vehicle-detail__navigation-buttons-container").addClass("is-sticky"),t.$.find(".save-vehicle-link").removeClass("d-none")):r.target!==Vh(".vehicle-holder__radiobutton__other")&&(Vh(".vehicle-detail__navigation-buttons").removeClass("is-sticky"),Vh(".vehicle-detail__navigation-buttons-container").removeClass("is-sticky"),t.$.find(".save-vehicle-link").addClass("d-none"))}))}},{key:"_initEvents",value:function(){var e=this;this.on(bh.events.compile,(0,lt.A)(ht().mark((function t(){var n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b,w,S,C,E,x,A,k,T;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.$.find("#vehicle-detail-brand"),t.next=3,Ui.getBrandListForDdl(null===(n=e.data)||void 0===n?void 0:n.makeCode);case 3:for(s=t.sent,"theme.amag.noncaptive"===(c=document.getElementById("amag-infrastructure-info")).dataset.theme&&"porsche"===c.dataset.project&&(s=s.filter((function(e){return"PORSCHE"===e.id||""===e.id}))),Vr(o,s,Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.brand"),null),o.on("change",e._changeBrandHandlerFactory(o)),s.find((function(e){return e.selected}))&&o.trigger("select2:select").trigger("change"),l=null===(r=e.data)||void 0===r?void 0:r.editableRegistrationDate,u=e.$.find("#vehicle-detail-day"),Kd[0].text=Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistrationDay"),Vr(u,Kd,null,null),d=e.$.find("#vehicle-detail-month"),Xd[0].text=Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistrationMonth"),Vr(d,Xd,null,null),h=e.$.find("#vehicle-detail-year"),p=new Date,(f=[]).push({id:"",text:Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistrationYear")}),m=p.getFullYear();m>=1900;m--)f.push({id:m,text:m});if(Vr(h,f,null,null),!l){t.next=72;break}if(3!==(v=l.split(".")).length){t.next=54;break}g=0;case 26:if(!(g<=u[0].options.length)){t.next=34;break}if(u[0].options[g].value!==v[0]){t.next=31;break}return u.val(v[0]),u.trigger("select2:select").trigger("change"),t.abrupt("break",34);case 31:g++,t.next=26;break;case 34:y=0;case 35:if(!(y<=d[0].options.length)){t.next=43;break}if(d[0].options[y].value!==v[1]){t.next=40;break}return d.val(v[1]),d.trigger("select2:select").trigger("change"),t.abrupt("break",43);case 40:y++,t.next=35;break;case 43:_=0;case 44:if(!(_<=h[0].options.length)){t.next=52;break}if(h[0].options[_].value!==v[2]){t.next=49;break}return h.val(v[2]),h.trigger("select2:select").trigger("change"),t.abrupt("break",52);case 49:_++,t.next=44;break;case 52:t.next=72;break;case 54:b=0;case 55:if(!(b<=d[0].options.length)){t.next=63;break}if(d[0].options[b].value!==v[0]){t.next=60;break}return d.val(v[0]),d.trigger("select2:select").trigger("change"),t.abrupt("break",63);case 60:b++,t.next=55;break;case 63:w=0;case 64:if(!(w<=h[0].options.length)){t.next=72;break}if(h[0].options[w].value!==v[1]){t.next=69;break}return h.val(v[1]),h.trigger("select2:select").trigger("change"),t.abrupt("break",72);case 69:w++,t.next=64;break;case 72:e.$.find(".vehicle-overview-link,#backToOverview").on("click",(function(){gh("vehicle-overview")})),e.$.find(".save-vehicle-link").on("click",(0,lt.A)(ht().mark((function t(){var n;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._saveVehicle();case 3:t.next=9;break;case 5:return t.prev=5,t.t0=t.catch(0),console.error(t.t0),t.abrupt("return");case 9:gh("vehicle-overview"),(n=Jh.find(".vehicle-list")).html(""),zh(n);case 13:case"end":return t.stop()}}),t,null,[[0,5]])})))),e.$.find("#vehicle-detail-licensePlate").on("input",(function(e){var t=e.target.value,n=new RegExp(Bi.UNALLOWED_CHARACTERS,"g");t&&"string"==typeof t&&(t=t.replace(n,""),e.target.value=t.toUpperCase()),e.preventDefault()})),e.vehicle&&(e.checkChangeInput("#vehicle-detail-day"),e.checkChangeInput("#vehicle-detail-month"),e.checkChangeInput("#vehicle-detail-year"),e.checkChangeInput("#vehicle-detail-vin"),e.checkChangeInput("#vehicle-detail-licensePlate"),e.checkChangeInput("#vehicle-holder__radiobutton__self"),e.checkChangeInput("#vehicle-holder__radiobutton__other"),e.checkChangeInput("#vehicle-detail-vehicleHolder-salutation"),e.checkChangeInput("#vehicle-detail-vehicleHolder-name"),e.checkChangeInput("#vehicle-detail-vehicleHolder-firstname")),S=Vh(".vehicle-holder__container"),C=Vh("#vehicleHolderInputFieldset")[0],E=Vh(".car-d
6ata-input__vehicle-holder__info-text")[0],x=Vh(".car-data-input__vehicle-holder__disclaimer")[0],S.toArray().forEach((function(e){e.addEventListener("click",(function(t){var n=e.querySelector(".vehicle-holder__radiobutton-input");"vehicle-holder__radiobutton__self"===n.id?(n.checked=!0,e.nextElementSibling.classList.remove("checked"),e.nextElementSibling.querySelector(".vehicle-holder__radiobutton-input").checked=!1,e.classList.add("checked"),C.classList.contains("d-none")||(C.classList.add("d-none"),E.classList.add("d-none"),x.classList.add("d-none"))):(n.checked=!0,e.previousElementSibling.classList.remove("checked"),e.previousElementSibling.querySelector(".vehicle-holder__radiobutton-input").checked=!1,e.classList.add("checked"),C.classList.contains("d-none")&&(C.classList.remove("d-none"),E.classList.remove("d-none"),x.classList.remove("d-none")))}))})),A=Vh("#vehicle-holder__radiobutton__self")[0],k=Vh("#vehicle-holder__radiobutton__other")[0],null!==(a=e.data)&&void 0!==a&&a.vehicleHolderSalutation?(k.checked=!0,k.parentElement.parentElement.classList.add("checked"),A.checked=!1,A.parentElement.parentElement.classList.remove("checked")):(k.checked=!1,k.parentElement.parentElement.classList.remove("checked"),A.checked=!0,A.parentElement.parentElement.classList.add("checked")),k.checked&&C.classList.contains("d-none")&&C.classList.remove("d-none"),T=Vh("#vehicle-detail-vehicleHolder-salutation"),vr[0].text=document.getElementById("vehicle-detail-vehicleHolder-salutation-label").innerHTML,Vr(T,vr,null,null),null!==(i=e.data)&&void 0!==i&&i.vehicleHolderSalutation&&(T.val(e.data.vehicleHolderSalutation),T.trigger("select2:select").trigger("change")),Vh(C).find("input.form-field__input").toArray().forEach((function(e){return Vh(e).on("input",(function(){return Vh(e).val(hi(Vh(e).val()))}))}));case 90:case"end":return t.stop()}}),t)}))))}},{key:"_saveVehicle",value:(o=(0,lt.A)(ht().mark((function e(){var t,n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=document.querySelector(".vehicle-detail__headline"),c={MAKE_CODE:di(this.$.find("#vehicle-detail-brand").val()),MODEL_CODE:di(this.$.find("#vehicle-detail-model").val()),LIC_PLATE:di(this.$.find("#vehicle-detail-licensePlate").val().trim()),REG_DATE_DAY:this.$.find("#vehicle-detail-day").val(),REG_DATE_MONTH:this.$.find("#vehicle-detail-month").val(),REG_DATE_YEAR:this.$.find("#vehicle-detail-year").val(),VIN:di(this.$.find("#vehicle-detail-vin").val()),MILEAGE:null,VEH_NO:s.getAttribute("data-vehicleNumber"),VH_OBJ_TYPE:s.getAttribute("data-vehicleObjectType"),VH_OBJ_NUMBER:s.getAttribute("data-vehicleObjectNumber"),USERID:"",VHGUID:"",ZZVO_TITLE:di(this.$.find("#vehicle-detail-vehicleHolder-salutation").val()),ZZVO_NAME1:null!==(t=di(this.$.find("#vehicle-detail-vehicleHolder-name").val()))&&void 0!==t?t:"",ZZVO_NAME2:null!==(n=di(this.$.find("#vehicle-detail-vehicleHolder-firstname").val()))&&void 0!==n?n:"",ZZVO_TITLE_DESC:null!==(r=gr(this.$.find("#vehicle-detail-vehicleHolder-salutation").val()))&&void 0!==r?r:"",APPORIGIN:(null===(a=this.vehicle)||void 0===a?void 0:a.appOrigin)||!1,CARADAPTERTIMESTAMP:(null===(i=this.vehicle)||void 0===i?void 0:i.carAdapterTimeStamp)||null},l=this.$.find("#vehicle-detail-day"),u=this.$.find("#vehicle-detail-month"),d=this.$.find("#vehicle-detail-year"),this.$.find(".invalid").removeClass("invalid"),c.MAKE_CODE||this.$.find("#vehicle-detail-brand").addClass("invalid"),c.MODEL_CODE||this.$.find("#vehicle-detail-model").addClass("invalid"),h=new RegExp(Bi.ONLY_UPPER_CASE),(!c.LIC_PLATE||!h.test(c.LIC_PLATE)&&c.LIC_PLATE.length>0)&&(this.$.find("#vehicle-detail-licensePlate").addClass("invalid"),this.$.find("#vehicle_license_plate_err").addClass("invalid")),p=30,f=28,m=29,o=!(""===c.REG_DATE_DAY&&""===c.REG_DATE_MONTH&&""===c.REG_DATE_YEAR),""===c.REG_DATE_DAY||""===c.REG_DATE_MONTH||""===c.REG_DATE_YEAR){e.next=31;break}v=!0,e.t0=c.REG_DATE_MONTH,e.next="02"===e.t0?17:"04"===e.t0?20:"06"===e.t0?22:"09"===e.t0?24:"11"===e.t0?26:28;break;case 17:return g=parseInt(c.REG_DATE_YEAR)%4==0?parseInt(c.REG_DATE_YEAR)%100==0?parseInt(c.REG_DATE_YEAR)%400==0?m:f:m:f,parseInt(c.REG_DATE_DAY)<=g||(v=!1),e.abrupt("break",28);case 20:case 22:case 24:case 26:return parseInt(c.REG_DATE_DAY)<=p||(v=!1),e.abrupt("break",28);case 28:v||(Vh(".vehicle-detail__first-registration-day").addClass("invalid"),Vh(".vehicle-detail__first-registration-month").addClass("invalid"),Vh(".vehicle-detail__first-registration-year").addClass("invalid"),Vh(".vehicle-detail__first-registration-error").addClass("vehicle-detail__first-registration-error--visible")),e.next=32;break;case 31:o&&(""===c.REG_DATE_DAY?l.addClass("invalid"):l.removeClass("invalid"),""===c.REG_DATE_MONTH?u.addClass("invalid"):u.removeClass("invalid"),""===c.REG_DATE_YEAR?d.addClass("invalid"):d.removeClass("invalid"));case 32:if(Vh("#vehicle-holder__radiobutton__other")[0].checked&&(0===c.ZZVO_TITLE.length&&Vh("#vehicleHolderSalutationError").addClass("invalid"),0===c.ZZVO_NAME1.length&&Vh("#vehicleHolderNameError").addClass("invalid")),!(this.$.find(".
6invalid").length>0)){e.next=36;break}throw"Invalid form";case 36:if(e.t1=this.data,e.t1){e.next=41;break}return e.next=40,zi.construct(c);case 40:e.t1=e.sent;case 41:return y=e.t1,e.next=44,y.setMakeCode(c.MAKE_CODE);case 44:return e.next=46,y.setModelCode(c.MODEL_CODE);case 46:if(y.licensePlate=c.LIC_PLATE.trim(),_=c.REG_DATE_DAY+"."+c.REG_DATE_MONTH+"."+c.REG_DATE_YEAR,y.registrationDate=zi.getRegistrationIsoDateFromUserInput(o?_:""),y.vin=c.VIN,this.$.find("input#vehicle-holder__radiobutton__other[type=radio]")[0].checked?(y.vehicleHolderSalutation=c.ZZVO_TITLE,y.vehicleHolderName=c.ZZVO_NAME1,y.vehicleHolderFirstName=c.ZZVO_NAME2,y.vehicleHolderSalutationDescription=c.ZZVO_TITLE_DESC):(y.vehicleHolderSalutation=null,y.vehicleHolderName=null,y.vehicleHolderFirstName=null,y.vehicleHolderSalutationDescription=null),this.data){e.next=57;break}return e.next=54,Zo.createVehicle(y);case 54:yh(Granite.I18n.get("apps.amag-ch.components.content.vehicleOverview.notifications.vehicleCreated"),y),e.next=60;break;case 57:return e.next=59,Zo.storeTouchedObjects();case 59:yh(Granite.I18n.get("apps.amag-ch.components.content.vehicleOverview.notifications.vehicleUpdated"),y);case 60:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"_changeBrandHandlerFactory",value:function(e){var t=this;return(0,lt.A)(ht().mark((function n(){var r,a,i,o;return ht().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.val(),(a=t.$.find("#vehicle-detail-model")).parent().addClass("ddl-state--disabled"),""!==r){n.next=6;break}Vr(a,[{id:"",text:""}],Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.model")+"*",null),n.next=12;break;case 6:return n.next=8,Pi.getModelsForBrandAsDdlOptions(r,null===(i=t.data)||void 0===i?void 0:i.modelCode);case 8:o=n.sent,Vr(a,o,Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.model")+"*",null),a.parent().removeClass("ddl-state--disabled"),o.find((function(e){return e.selected}))&&a.trigger("select2:select").trigger("change");case 12:case"end":return n.stop()}}),n)})))}},{key:"_initDeleteVehicle",value:function(){var e=this;this.$.find(".delete-vehicle").on("click",(0,lt.A)(ht().mark((function t(){var n,r,a;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=(0,ut.A)(document.querySelector("template#vehicle-delete-template").content.childNodes).find((function(e){return e.constructor!==Text})),r=n.cloneNode(!0),t.next=5,e._fillDeleteContent(r);
6case 5:a=t.sent,e.deleteVehicleContainer.appendChild(a),gh("vehicle-delete"),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),console.error("Error in the Delete-Pane: "+t.t0);case 13:case"end":return t.stop()}}),t,null,[[0,10]])}))))}},{key:"_fillDeleteContent",value:(i=(0,lt.A)(ht().mark((function e(t){var n=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.querySelector(".vehicle-delete__navigation-text").innerHTML="".concat(Ka(Granite.I18n.get("apps.amag-ch.components.content.vehicleDelete.backToDetail"),{brandName:this.vehicle.brandName,modelName:this.vehicle.modelName})),t.querySelector("#vehicle-delete-model").innerHTML="".concat(this.vehicle.brandName," ").concat(this.vehicle.modelName),t.querySelector("#vehicle-delete-license").innerHTML="".concat(Granite.I18n.get("apps.amag-ch.components.content.vehicle-overview.vehicles-list.lincenseplate"),": ").concat(this.vehicle.licensePlate),t.querySelector("#vehicle-delete-mileage").innerHTML="".concat(Granite.I18n.get("apps.amag-ch.components.content.appointmentOverview.vehicleInformation.mileage"),": ").concat(this.vehicle.mileage?"".concat(this.vehicle.mileage,"km"):Granite.I18n.get("apps.amag-ch.components.content.appointmentOverview.noInformation")),t.querySelector("#vehicle-delete-registration").innerHTML="".concat(Granite.I18n.get("apps.amag-ch.components.content.vehicle-overview.vehicles-list.registrationDate"),": ").concat(this.vehicle.displayRegistrationDate),t.querySelector("#vehicle-delete-fin").innerHTML="".concat(Granite.I18n.get("apps.amag-ch.components.content.vehicle-overview.vehicles-list.vin"),": ").concat(this.vehicle.displayVin),t.querySelector("#vehicle-delete-vehicle-holder").innerHTML="".concat(Granite.I18n.get("apps.amag-ch.components.content.vehicle-overview.vehicles-list.vehicleHolderInfo"),": ").concat(this.vehicle.displayVehicleHolder),t.querySelector(".vehicle-delete__button").addEventListener("click",(0,lt.A)(ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Zo.deleteVehicle(n.data);case 3:yh(Granite.I18n.get("apps.amag-ch.components.content.vehicleOverview.notifications.vehicleDeleted")),gh("vehicle-overview"),(t=Jh.find(".vehicle-list")[0]).innerHTML="",n.deleteVehicleC
6ontainer.innerHTML="",zh(Vh(t)),e.next=18;break;case 11:e.prev=11,e.t0=e.catch(0),console.error("Error while deleting Vehicle: "+e.t0),n.$.find(".vehicle-detail__error")[0].classList.remove("d-none"),gh("vehicle-detail"),n.deleteVehicleContainer.innerHTML="";case 18:case"end":return e.stop()}}),e,null,[[0,11]])})))),t.querySelectorAll(".vehicle-delete__cancel,.vehicle-delete__navigation").forEach((function(e){e.addEventListener("click",(0,lt.A)(ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:gh("vehicle-detail"),n.deleteVehicleContainer.innerHTML="";case 2:case"end":return e.stop()}}),e)}))))})),e.abrupt("return",t);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"_replaceRemoveLink",value:function(e){return e.replace("{",'<a href="#" class="delete-vehicle">').replace("}","</a>")}},{key:"_initAppointmentTile",value:(a=(0,lt.A)(ht().mark((function e(){var t,n,r,a,i,o,s=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new fr.y,"theme.amag.noncaptive"===(n=document.getElementById("amag-infrastructure-info")).dataset.theme&&"porsche"===n.dataset.project&&(t.textColor="#000000",t.color="var(--componentFontColor)"),t.show(Vh(this.spinnerContainer)),this.spinner.classList.remove("d-none"),this.spinnerContainer.classList.remove("d-none"),this.appointmentContainer.classList.add("d-none"),r=this.vehicle.licensePlate.substring(3),e.next=10,this.allAppointmentsForCarService.getData(this.vehicle.makeCode,this.vehicle.modelCode,r);case 10:if(a=e.sent,i=(0,ut.A)(document.querySelector("template#appointment-tile").content.childNodes).find((function(e){return e.constructor!==Text})),o=this.$.find(".vehicle-detail__delete-copy")[0],!(a.length>0)){e.next=23;break}return a.forEach(function(){var e=(0,lt.A)(ht().mark((function e(t){var n,r;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.cloneNode(!0),e.next=3,t.renderOverviewMarkup(n);case 3:r=e.sent,s.appointmentContainer.appendChild(r),r.addEventListener("click",(function(){s.clickAppointment(t)}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),o.innerHTML=this.prohibitedDeleteCopy,e.next=18,t.remove();case 18:this.spinner.classList.add("d-none"),this.spinnerContainer.classList.add("d-none"),this.appointmentContainer.classList.remove("d-none"),e.next=30;break;case 23:return o.innerHTML=this._replaceRemoveLink(this.componentCopy),this._initDeleteVehicle(),e.next=27,t.remove();case 27:this.spinner.classList.add("d-none"),this.spinnerContainer.classList.add("d-none"),this.noAppointmentContainer.classList.remove("d-none");case 30:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"clickAppointment",value:(r=(0,lt.A)(ht().mark((function e(t){var n,r,a,i,o,s,c,l,u,d,h,p=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.appointmentDetailService.getData(t.srsAppointment.APPOINTMENT_ID);case 2:return n=e.sent,e.next=5,this.detailRendererService.render(n);case 5:return r=e.sent,e.next=8,this.cancellationRenderService.render(n);case 8:a=e.sent,i=document.querySelector(".appointment-properties"),o=i.getAttribute("data-cancel-headline"),s=i.getAttribute("data-cancel-copy"),c=i.getAttribute("data-cancellation-headline"),l=i.getAttribute("data-cancellation-copy"),u=i.getAttribute("data-cancellation-info"),d=i.getAttribute("data-detail-headline"),h=i.getAttribute("data-detail-copy"),r.querySelector(".back-navigation-link__text").innerHTML="".concat(Ka(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.appointment.backToDetail"),{brandName:this.vehicle.brandName,modelName:this.vehicle.modelName})),r.querySelectorAll(".appointment-detail-headline").forEach((function(e){e.innerHTML=d})),r.querySelectorAll(".appointment-detail-copy").forEach((function(e){e.innerHTML=h})),r.querySelectorAll(".appointment-cancel-headline").forEach((function(e){e.innerHTML=o})),r.querySelectorAll(".appointment-cancel-copy").forEach((function(e){e.innerHTML=s})),a.querySelectorAll(".appointment-cancellation-headline").forEach((function(e){e.innerHTML=c})),a.querySelectorAll(".appointment-cancellation-copy").forEach((function(e){e.innerHTML=l})),a.querySelectorAll(".appointment-cancellation-info").forEach((function(e){e.innerHTML=u})),r.querySelector(".back-navigation-link").addEventListener("click",(function(){return p.navigateBackToOverview()})),r.querySelector(".amag-appointment-overview__cancel-appointment-button").addEventListener("click",(function(){return p.navigateToCancellation()})),a.querySelector(".back-navigation-link").addEventListener("click",(function(){return p.navigateBackToDetail()})),a.querySelector(".appointment-cancellation__navigation-backwards").addEventListener("click",(function(){return p.navigateBackToDetail()})),a.querySelector(".appointment-cancellation__button").addEventListener("click",(function(){return p.cancelAppointment(t)})),this.appointmentDetailContent.innerHTML="",this.appointmentDetailContent.append(r),this.appointmentCancellationContent.innerHTML="",this.appointmentCancellationContent.append(a),yt(!1),window.scrollTo(0,0),yt(!0),this.vehicleDetailContainer.classList.add("d-none"),this.appointmentDetailWrapper.classList.remove("d-none");case 39:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"navigateBackToOverview",value:function(){yt(!1),window.scrollTo(0,0),yt(!0),this.vehicleDetailContainer.classList.remove("d-none"),this.appointmentDetailWrapper.classList.add("d-none")}},{key:"navigateToCancellation",value:function(){this.appointmentCancellationWrapper.classList.remove("d-none"),this.appointmentDetailWrapper.classList.add("d-none")}},{key:"navigateBackToDetail",value:function(){this.appointmentCancellationWrapper.classList.add("d-none"),this.appointmentDetailWrapper.classList.remove("d-none")}},{key:"cancelAppointment",value:(n=(0,lt.A)(ht().mark((function e(t){var n,r,a,i,o;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=document.querySelector(".amag-appointment-cancellation__spinner-container"),r=new fr.y,"theme.amag.noncaptive"===(a=document.getElementById("amag-infrastru
6cture-info")).dataset.theme&&"porsche"===a.dataset.project&&(r.color="var(--componentIconColor)",r.textColor="#000000"),r.show(Vh(n)),n.classList.remove("d-none"),e.prev=6,i=wr.getUrl()+"deleteAppointment.json",e.t0=yr.Hx,e.t1=i,e.next=12,br.getJwtToken();case 12:return e.t2=e.sent,e.t3=t.srsAppointment.APPOINTMENT_ID,e.t4={ACTION:"C",CDC_TOKEN:e.t2,APPOINTMENT_ID:e.t3},e.next=17,(0,e.t0)(e.t1,e.t4);case 17:if(!("ok"in(o=e.sent))||o.ok){e.next=27;break}return window.scrollTo({top:0,behavior:"smooth"}),e.next=22,r.remove();case 22:case 46:return n.classList.add("d-none"),Vh(".appointment-cancellation__infoBox").removeClass("d-none"),e.abrupt("return");case 27:return this.appointmentContainer.innerHTML="",this.allAppointmentsForCarService.clearData(),this.appointmentCancellationWrapper.classList.add("d-none"),this.vehicleDetailContainer.classList.remove("d-none"),e.next=33,this._initAppointmentTile();case 33:return window.scrollTo({top:0,behavior:"smooth"}),e.next=36,r.remove();case 36:return n.classList.add("d-none"),e.abrupt("return",Tr(Granite.I18n.get("apps.amag-ch.components.content.appointmentOverview.cancellation.infoBoxSuccess"),"okay",it.lp.isMobile()?"touch":"desktop"));case 38:e.next=49;break;case 40:return e.prev=40,e.t5=e.catch(6),window.scrollTo({top:0,behavior:"smooth"}),console.error("Error occured:",e.t5),e.next=46,r.remove();case 49:case"end":return e.stop()}}),e,this,[[6,40]])}))),function(e){return n.apply(this,arguments)})},{key:"checkVIN",value:function(){this.$.find("#vehicle-detail-vin").val()&&this.$.find("#vehicle-detail-licensePlate").attr("disabled",!1)}},{key:"_noVehicleTemplate",value:function(){return'<div class="row">\n <div class="col-12 d-lg-none">\n <a href="#" id="backToOverview" class="vehicle-detail__navigation">\n <svg class="vehicle-detail__navigation-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M18.4012 24C18.2792 24 18.1612 23.956 18.0702 23.875L5.49516 12.748C5.46516 12.721 5.43716 12.693 5.41116 12.664C5.04516 12.251 5.08216 11.617 5.49416 11.252L18.0692 0.125C18.1612 0.044 18.2792 0 18.4012 0C18.5442 0 18.6812 0.062 18.7762 0.169C18.9582 0.375 18.9392 0.692 18.7332 0.874L6.15716 12L18.7322 23.125C18.9382 23.308 18.9582 23.625 18.7752 23.831C18.6802 23.939 18.5442 24 18.4012 24Z" fill="black"/>\n </svg>\n <span class="vehicle-detail__navigation-text">'.concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.backToOverview"),'</span>\n </a>\n </div>\n <div class="col-12">\n <div class="vehicle-detail__headline">\n ').concat(this.componentHeadline,'\n </div>\n <div class="vehicle-detail__copy">\n ').concat(this.componentCopy,'\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col">\n <div class="vehicle__error-msg error-msg-box d-none">\n <div class="error-msg-box__icon">\n <svg class="otv-error-type-icon" width="32" height="28" viewBox="0 0 32 28" fill="none"\n xmlns="http://www.w3.org/2000/svg">\n <path d="M2.91699 27.9466C1.81433 27.9466 0.916992 27.0493 0.916992 25.9466C0.916992 25.612 1.00233 25.28 1.16233 24.9866L14.245 1.09598C14.5957 0.455979 15.269 0.057312 16.0023 0.057312C16.3357 0.057312 16.6663 0.142645 16.961 0.302645C17.297 0.486645 17.5717 0.761312 17.7543 1.09598L30.837 24.9866C31.093 25.4546 31.1517 25.9946 31.001 26.508C30.8503 27.0213 30.5103 27.4453 30.0423 27.7013C29.749 27.8613 29.417 27.9466 29.0837 27.9466H2.91699ZM16.0023 1.39065C15.757 1.39065 15.533 1.52265 15.4157 1.73731L2.33299 25.6266C2.27966 25.724 2.25166 25.8346 2.25166 25.9453C2.25166 26.3133 2.55033 26.612 2.91833 26.612H29.0837C29.1957 26.612 29.3063 26.584 29.4037 26.5306C29.5597 26.4453 29.673 26.304 29.7237 26.1333C29.7743 25.9626 29.7543 25.7826 29.669 25.6266L16.585 1.73598C16.5237 1.62398 16.4317 1.53331 16.321 1.47198C16.221 1.41731 16.1143 1.39065 16.0023 1.39065Z" fill="black"/>\n <path d="M15.9997 19.9467C15.6317 19.9467 15.333 19.648 15.333 19.28V10.6133C15.333 10.2453 15.6317 9.94666 15.9997 9.94666C16.3677 9.94666 16.6663 10.2453 16.6663 10.6133V19.28C16.6663 19.648 16.3677 19.9467 15.9997 19.9467Z" fill="black"/>\n <path d="M16 23.6133C15.448 23.6133 15 23.1653
615 22.6133C15 22.0613 15.448 21.6133 16 21.6133C16.552 21.6133 17 22.0613 17 22.6133C17 23.1653 16.552 23.6133 16 23.6133Z"/>\n </svg>\n </div>\n <div class="error-msg-box__msg">').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.generalErrorMessage"),'</div>\n </div>\n \n <div class="infotext-requiredfield">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.forms.requiredFields"),'\n </div>\n \n <div class="vehicle-detail__brand select2-wrapper visible-label">\n <select class="js-select2" id="vehicle-detail-brand" data-validation="required" required>\n </select>\n <p class="otv-dropdown__error-msg">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.chooseBrand"),'\n </p>\n <label class="amag-copy--smallLight" for="vehicle-detail-brand">').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.brand"),'*</label>\n </div>\n <div class="vehicle-detail__model select2-wrapper visible-label ddl-state--disabled">\n <select class="js-select2 js-model" id="vehicle-detail-model" data-validation="required" required>\n </select>\n <p class="otv-dropdown__error-msg">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.chooseModel"),'\n </p>\n <label class="amag-copy--smallLight" for="vehicle-detail-model">').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.model"),'*</label>\n </div>\n <div class="form-field form-field--text">\n <div class="form-field__container vehicle-detail__license-plate">\n <input type="text" id="vehicle-detail-licensePlate" value="$[licensePlate]" class="form-field__input" required>\n <label class="form-field__label">').concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.licensePlate"),'</label>\n </div >\n <span id="vehicle_license_plate_err" class="">\n ').concat(Granite.I18n.get("apps.amag-ch.error.licensePlateValidMessage.fieldLabel"),'\n </span>\n </div >\n <div class="form-field form-field--text ">\n <div class="form-field__container">\n <input type="text" id="vehicle-detail-vin" value="$[vin]" class="form-field__input" required>\n <label class="form-field__label">').concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.vin"),'</label>\n </div>\n <p class="vehicle-detail__vin-info form-field__copy-text">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.vin.copyText"),'\n </p>\n </div>\n <div class="form-field form-field--text vehicle-detail__first-registration-headline">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.registrationDate"),'\n </div>\n <div class="vehicle-detail__first-registration">\n <div class="vehicle-detail__first-registration-day select2-wrapper visible-label">\n <select class="js-select2 " id="vehicle-detail-day">\n </select>\n <span class="otv-dropdown__error-msg">\n ').concat(Granite.I18n.get("apps.amag-ch.components.c
6ontent.otv.carDataInputPane.initialRegistration.errorMsg.missingValue"),'\n </span>\n <label class="amag-copy--smallLight amag-copy--smallLight" for="vehicle-detail-day">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistrationDay"),'\n </label>\n </div>\n <div class="vehicle-detail__first-registration-month select2-wrapper visible-label">\n <select class="js-select2 " id="vehicle-detail-month">\n </select>\n <span class="otv-dropdown__error-msg">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistration.errorMsg.missingValue"),'\n </span>\n <label class="amag-copy--smallLight amag-copy--smallLight" for="vehicle-detail-day">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistrationMonth"),'\n </label>\n </div>\n <div class="vehicle-detail__first-registration-year select2-wrapper visible-label">\n <select class="js-select2 " id="vehicle-detail-year">\n </select>\n <span class="otv-dropdown__error-msg">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistration.errorMsg.missingValue"),'\n </span>\n <label class="amag-copy--smallLight amag-copy--smallLight" for="vehicle-detail-year">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistrationYear"),'\n </label>\n </div>\n </div>\n <div class="otv-dropdown__error-msg vehicle-detail__first-registration-error">\n <span class="validation-error-msg__invalidDate">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.errorMsg.invalidDate"),'\n </span>\n </div>\n <div\n class="car-data-input__data-save-text aem-GridColumn aem-GridColumn--default--12 amag-copy--smallLight">\n <span>\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.guestRegistrationPane.dataSave"),'\n </span>\n </div>\n \n <div class="vehicle-holder__container">\n <div class="vehicle-holder__radiobutton">\n <input type="radio" id="vehicle-holder__radiobutton__self"\n class="vehicle-holder__radiobutton-input" name="vehicleHolderRadioBtn">\n <label for="vehicle-holder__radiobutton__self">').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.vehicleHolder.self"),'</label>\n </div>\n </div>\n <div class="vehicle-holder__container">\n <div class="vehicle-holder__radiobutton">\n <input type="radio" id="vehicle-holder__radiobutton__other"\n class="vehicle-holder__radiobutton-input" name="vehicleHolderRadioBtn">\n <label for="vehicle-holder__radiobutton__other">').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.vehicleHolder.other"),'</label>\n </div>\n </div>\n\n <span class="car-data-input__vehicle-holder__info-text aem-GridColumn aem-GridColumn--default--12 d-none amag-copy--smallLight">\n ').concat(Granite.I18n.get("apps.amag-ch.components.c
6ontent.otv.guestRegistrationPane.vehicleHolder.infoText"),'\n </span>\n\n <fieldset class="col d-none" id="vehicleHolderInputFieldset">\n <div class="vehicle-holder-first-row-container">\n <div class="select2-wrapper visible-label">\n <select class="js-select2 js-vehicleHolder-salutation" id="vehicle-detail-vehicleHolder-salutation" data-validation="required" required>\n </select>\n <span id="vehicleHolderSalutationError">\n ').concat(Granite.I18n.get("apps.amag-ch.error.required.fieldLabel"),'\n </span >\n <label class="amag-copy--smallLight" id="vehicle-detail-vehicleHolder-salutation-label" for="vehicle-detail-vehicleHolder-salutation">').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.guestRegistrationPane.salutationPlaceholder"),' *</label>\n </div>\n <div class="form-field form-field--text">\n <div class="form-field__container">\n <input type="text" id="vehicle-detail-vehicleHolder-name" class="form-field__input cmp-form-text__text.form-text-vehicle-holder-input" required>\n <label class="form-field__label" for="vehicle-detail-vehicleHolder-name">').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.vehicleHolder.name"),' *</label>\n </div >\n <span id="vehicleHolderNameError">\n ').concat(Granite.I18n.get("apps.amag-ch.error.required.fieldLabel"),'\n </span >\n </div >\n </div>\n <div class="form-field form-field--text">\n <div class="form-field__container">\n <input type="text" id="vehicle-detail-vehicleHolder-firstname" class="form-field__input" required>\n <label class="form-field__label" for="vehicle-detail-vehicleHolder-firstname">').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.vehicleHolder.firstName"),'</label>\n </div >\n </div >\n </fieldset>\n <div class="car-data-input__vehicle-holder__disclaimer aem-GridColumn aem-GridColumn--default--12 d-none amag-copy--smallLight">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.guestRegistrationPane.vehicleHolder.disclaimer"),'\n </div>\n </div >\n </div >\n <div class="row vehicle-detail__navigation-buttons">\n <div class="col-12 col-lg-10">\n <a href="#" class="save-vehicle-link">').concat(this.vehicle?Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.updateVehicle"):Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.createVehicle"),'</a>\n </div>\n <div class="col-12 col-lg-2 order-lg-first vehicle-overview-link-container">\n <a href="#" class="vehicle-overview-link">').concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.backButtonLabel"),"</a>\n\n </div>\n </div>\n")}},{key:"_vehicleTemplate",value:function(){return'<div class="row">\n <div class="col-12 d-lg-none">\n <a href="#" id="backToOverview" class="vehicle-detail__navigation">\n <svg class="vehicle-detail__navigation-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M18.4012 24C18.2792 24 18.1612 23.956 18.0702 23.875L5.49516 12.748C5.46516 12.721 5.43716 12.693 5.41116 12.664C5.04516 12.251 5.08216 11.617 5.49416 11.252L18.0692 0.125C18.1612 0.044 18.2792 0 18.4012 0C18.5442 0 18.6812 0.062 18.7762 0.169C18.9582 0.375 18.9392 0.692 18.7332 0.874L6.15716 12L18.7322 23.125C18.9382 23.308 18.9582 23.625 18.7752 23.831C18.6802 23.939 18.5442 24 18.4012 24Z" fill="black"/>\n </svg>
6\n <span class="vehicle-detail__navigation-text">'.concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.backToOverview"),'</span>\n </a>\n </div>\n <div class="col-12">\n <div class="vehicle-detail__headline">\n ').concat(this.componentHeadline,'\n </div>\n <div class="vehicle-detail__error d-none">\n <div class="vehicle-detail__error-icon">\n <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M15.9997 31.916C15.7063 31.916 15.4183 31.8173 15.1863 31.6387C13.2063 30.1147 3.33301 22.0747 3.33301 13.4173C3.33301 5.81598 8.77834 0.0839844 15.9997 0.0839844C23.221 0.0839844 28.6663 5.81598 28.6663 13.4173C28.6663 22.076 18.7917 30.1147 16.813 31.6387C16.581 31.8173 16.2917 31.916 15.9997 31.916ZM15.9997 1.41732C9.53834 1.41732 4.66634 6.57598 4.66634 13.4173C4.66634 21.4493 14.1077 29.1253 15.9997 30.5827C17.8917 29.1253 27.333 21.452 27.333 13.4173C27.333 6.57598 22.461 1.41732 15.9997 1.41732Z" fill="#801977"/>\n <path d="M13.3327 20.0841C12.9647 20.0841 12.666 19.7855 12.666 19.4175C12.666 19.0495 12.9647 18.7508 13.3327 18.7508H15.3327V11.4175C15.3327 11.0495 15.034 10.7508 14.666 10.7508H13.3327C12.9647 10.7508 12.666 10.4521 12.666 10.0841C12.666 9.71615 12.9647 9.41748 13.3327 9.41748H14.666C15.7687 9.41748 16.666 10.3148 16.666 11.4175V18.7508H18.666C19.034 18.7508 19.3327 19.0495 19.3327 19.4175C19.3327 19.7855 19.034 20.0841 18.666 20.0841H13.3327Z" fill="#801977"/>\n <path d="M16 8.08398C16.5523 8.08398 17 7.63627 17 7.08398C17 6.5317 16.5523 6.08398 16 6.08398C15.4477 6.08398 15 6.5317 15 7.08398C15 7.63627 15.4477 8.08398 16 8.08398Z" fill="#801977"/>\n </svg>\n </div>\n <div class="vehicle-detail__error-textarea">\n <div class="vehicle-detail__error-headline">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.error.headline"),'\n </div>\n <div class="vehicle-detail__error-text">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.error.text"),'\n </div>\n </div>\n </div>\n <div class="amag-copy--bigLight vehicle-detail__no-appointment-copy d-none">\n ').concat(this.noAppointmentCopy,'\n </div>\n <div class="vehicle-detail__appointment-spinner-container d-none">\n <div>\n <div class="vehicle-detail__appointment-spinner d-none"></div>\n </div>\n </div>\n <div class="vehicle-detail__appointment d-none">\n <div class="vehicle-detail__appointment-copy">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.appointmentTopline"),'\n </div>\n </div>\n <div class="vehicle-detail__makeAppointment">\n <a class="amag-copy--bigLight" href="').concat(this.appointmentPath,'">').concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.makeAppointment"),'</a>\n </div>\n </div>\n </div >\n <div class="row">\n <div class="col">\n <div class="vehicle-detail__vehicleDataHeadline">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.vehicleDataTopline"),'\n </div>\n <div class="select2-wrapper visible-label select2-wrapper--disabled">\n <select class="js-select2 " id="vehicle-detail-brand" data-validation="required" required disabled>\n </select>\n <p class="otv-dropdown__error-msg">\n ').concat(Granite.I18n.get("apps.amag-ch.components.c
6ontent.otv.carSelection.chooseBrand"),'\n </p>\n <label class="amag-copy--smallLight amag-copy--smallLight-disabled" for="vehicle-detail-brand">').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.brand"),'*</label>\n </div>\n <div class="vehicle-detail__model select2-wrapper visible-label select2-wrapper--disabled">\n <select class="js-select2 js-model" id="vehicle-detail-model" data-validation="required" required disabled>\n </select>\n <p class="otv-dropdown__error-msg">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.chooseModel"),'\n </p>\n <label class="amag-copy--smallLight amag-copy--smallLight-disabled" for="vehicle-detail-model">').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carSelection.model"),'*</label>\n </div>\n <div class="form-field form-field--text">\n <div class="form-field__container">\n <input type="text" id="vehicle-detail-licensePlate" value="$[licensePlate]" class="form-field__input form-field__input--disabled" required disabled>\n <label class="form-field__label form-field__label--disabled">').concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.licensePlate"),'</label>\n </div>\n <span id="vehicle_license_plate_err" class="">\n ').concat(Granite.I18n.get("apps.amag-ch.error.licensePlateValidMessage.fieldLabel"),'\n </span>\n </div>\n <div class="form-field form-field--text">\n <div class="form-field__container">\n <input type="text" id="vehicle-detail-vin" value="$[vin]" class="form-field__input" required>\n <label class="form-field__label">').concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.vin"),'</label>\n </div>\n <p class="vehicle-detail__vin-info form-field__copy-text">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.vin.copyText"),'\n </p>\n </div>\n <div class="form-field form-field--text vehicle-detail__first-registration-headline">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.registrationDate"),'\n </div>\n <div class="vehicle-detail__first-registration">\n <div class="vehicle-detail__first-registration-day select2-wrapper visible-label">\n <select class="js-select2 " id="vehicle-detail-day">\n </select>\n <p class="otv-dropdown__error-msg">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistration.errorMsg.missingValue"),'\n </p>\n <label class="amag-copy--smallLight amag-copy--smallLight" for="vehicle-detail-day">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistrationDay"),'\n </label>\n </div>\n <div class="vehicle-detail__first-registration-month select2-wrapper visible-label">\n <select class="js-select2 " id="vehicle-detail-month">\n </select>\n <p class="otv-dropdown__error-msg">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistration.errorMsg.missingValue"),'\n </p>\n <label class="amag-copy--smallLight amag-copy--smallLight" for="vehicle-detail-day">\n ').concat(Granite.I18n.get("apps.amag-ch.components.c
6ontent.otv.carDataInputPane.initialRegistrationMonth"),'\n </label>\n </div>\n <div class="vehicle-detail__first-registration-year select2-wrapper visible-label">\n <select class="js-select2 " id="vehicle-detail-year">\n </select>\n <p class="otv-dropdown__error-msg">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistration.errorMsg.missingValue"),'\n </p>\n <label class="amag-copy--smallLight amag-copy--smallLight" for="vehicle-detail-year">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistrationYear"),'\n </label>\n </div>\n </div>\n <div class="otv-dropdown__error-msg vehicle-detail__first-registration-error">\n <span class="validation-error-msg__invalidDate">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.errorMsg.invalidDate"),'\n </span>\n </div>\n\n <div class="car-data-input__data-save-text aem-GridColumn aem-GridColumn--default--12 amag-copy--smallLight">\n <span>\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.guestRegistrationPane.dataSave"),'\n </span>\n </div>\n\n <div class="vehicle-holder__container">\n <div class="vehicle-holder__radiobutton">\n <input type="radio" id="vehicle-holder__radiobutton__self"\n class="vehicle-holder__radiobutton-input" name="vehicleHolderRadioBtn">\n <label for="vehicle-holder__radiobutton__self">').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.vehicleHolder.self"),'</label>\n </div>\n </div>\n <div class="vehicle-holder__container">\n <div class="vehicle-holder__radiobutton">\n <input type="radio" id="vehicle-holder__radiobutton__other"\n class="vehicle-holder__radiobutton-input" name="vehicleHolderRadioBtn">\n <label for="vehicle-holder__radiobutton__other">').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.vehicleHolder.other"),'</label>\n </div>\n </div>\n\n <span class="car-data-input__vehicle-holder__info-text aem-GridColumn aem-GridColumn--default--12 d-none amag-copy--smallLight">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.guestRegistrationPane.vehicleHolder.infoText"),'\n </span>\n\n <fieldset class="col d-none" id="vehicleHolderInputFieldset">\n <div class="vehicle-holder-first-row-container">\n <div class="select2-wrapper visible-label">\n <select class="js-select2 js-vehicleHolder-salutation" value="$[vehicleHolderSalutation]" id="vehicle-detail-vehicleHolder-salutation" data-validation="required" required>\n </select>\n <span id="vehicleHolderSalutationError">\n ').concat(Granite.I18n.get("apps.amag-ch.error.required.fieldLabel"),'\n </span >\n <label class="amag-copy--smallLight" id="vehicle-detail-vehicleHolder-salutation-label" for="vehicle-detail-vehicleHolder-salutation">').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.guestRegistrationPane.salutationPlaceholder"),'*</label>\n </div>\n <div class="form-field form-field--text">\n <div class="form-field__container">\n <input type="text" id="vehicle-detail-vehicleHolder-name" value="$[vehicleHolderName]" class="form-field__input cmp-form-text__text.form-text-vehicle-holder-input" required >\n <label class="form-field__label" for="vehicle-detail-vehicleHolder-name">
6').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.vehicleHolder.name"),'</label>\n </div >\n <span id="vehicleHolderNameError">\n ').concat(Granite.I18n.get("apps.amag-ch.error.required.fieldLabel"),'\n </span >\n </div>\n </div>\n\n <div class="form-field form-field--text">\n <div class="form-field__container">\n <input type="text" id="vehicle-detail-vehicleHolder-firstname" value="$[vehicleHolderFirstName]" class="form-field__input" required>\n <label class="form-field__label" for="vehicle-detail-vehicleHolder-firstname">').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.vehicleHolder.firstName"),'</label>\n </div >\n </div >\n </fieldset>\n <div class="car-data-input__vehicle-holder__disclaimer aem-GridColumn aem-GridColumn--default--12 d-none amag-copy--smallLight">\n ').concat(Granite.I18n.get("apps.amag-ch.components.content.otv.guestRegistrationPane.vehicleHolder.disclaimer"),'\n </div>\n </div>\n </div>\n <div class="row vehicle-detail__navigation-buttons">\n <div class="col-12 col-lg-10">\n <a href="#" class="save-vehicle-link d-none">').concat(this.vehicle?Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.updateVehicle"):Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.createVehicle"),'</a>\n </div>\n <div class="col-12 col-lg-2 order-lg-first vehicle-overview-link-container">\n <a href="#" class="vehicle-overview-link">').concat(Granite.I18n.get("apps.amag-ch.components.content.vehicleDetail.backButtonLabel"),'</a>\n </div>\n </div>\n <div class="row">\n <div class="col-12">\n <div class="vehicle-detail__delete">\n <svg class="vehicle-detail__delete--icon" width="32" height="33" viewBox="0 0 32 33" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10.6668 2.52091C10.6668 2.15272 10.9653 1.85425 11.3335 1.85425H19.3335C19.7017 1.85425 20.0002 2.15272 20.0002 2.52091C20.0002 2.8891 19.7017 3.18758 19.3335 3.18758H11.3335C10.9653 3.18758 10.6668 2.8891 10.6668 2.52091ZM1.3335 6.52091C1.3335 6.15272 1.63197 5.85425 2.00016 5.85425H6.00016H24.6668H28.6668C29.035 5.85425 29.3335 6.15272 29.3335 6.52091C29.3335 6.8891 29.035 7.18758 28.6668 7.18758H25.3335V29.1876C25.3335 30.2922 24.4381 31.1876 23.3335 31.1876H7.3335C6.22893 31.1876 5.3335 30.2921 5.3335 29.1876V7.18758H2.00016C1.63197 7.18758 1.3335 6.8891 1.3335 6.52091ZM6.66683 7.18758V29.1876C6.66683 29.5558 6.96531 29.8542 7.3335 29.8542H23.3335C23.7017 29.8542 24.0002 29.5558 24.0002 29.1876V7.18758H6.66683ZM12.6668 12.5209C13.035 12.5209 13.3335 12.8194 13.3335 13.1876V23.8542C13.3335 24.2224 13.035 24.5209 12.6668 24.5209C12.2986 24.5209 12.0002 24.2224 12.0002 23.8542V13.1876C12.0002 12.8194 12.2986 12.5209 12.6668 12.5209ZM18.6668 13.1876C18.6668 12.8194 18.3684 12.5209 18.0002 12.5209C17.632 12.5209 17.3335 12.8194 17.3335 13.1876V23.8542C17.3335 24.2224 17.632 24.5209 18.0002 24.5209C18.3684 24.5209 18.6668 24.2224 18.6668 23.8542V13.1876Z" fill="#172983"/>\n </svg>\n <p class="amag-copy--bigLight vehicle-detail__delete-copy"></p>\n </div>\n </div>\n </div>')}}]);var n,r,a,i,o}(bh),jh=(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this.appProperties=document.querySelector(".app-vehicle-properties"),this.getVehicle=function(){return n._vehicle},this.getTileFragment=function(){var e=document.createDocumentFragment(),t=document.createElement("div");t.classList.add("vehicle-link__wrapper");var r=document.createElement("div");r.classList.add("row");var a=n.addFavouriteCol();r.appendChild(a);var i=document.createElement("div");i.classList.add("col");var o="".concat(n._vehicle.brandName," ").concat(n._vehicle.modelName," ").concat(n._vehicle.appOrigin?"("+n.appProperties.dataset.app+")":""),s=n.addVehicleContent(!0,o,!1);i.appendChild(s);
6var c="".concat(Granite.I18n.get("apps.amag-ch.components.content.vehicle-overview.vehicles-list.lincenseplate"),": ").concat(n._vehicle.licensePlate),l=n.addVehicleContent(!1,c,!!n._vehicle.appOrigin);if(i.appendChild(l),n._vehicle.appOrigin){var u="".concat(Granite.I18n.get("apps.amag-ch.components.content.vehicle-overview.vehicles-list.mileage"),": ").concat(n._vehicle.displayMileage),d=n.addVehicleContent(!1,u,!!n._vehicle.appOrigin);i.appendChild(d)}var h="".concat(Granite.I18n.get("apps.amag-ch.components.content.vehicle-overview.vehicles-list.registrationDate"),": ").concat(n._vehicle.displayRegistrationDate),p=n.addVehicleContent(!1,h,!1);i.appendChild(p);var f="".concat(Granite.I18n.get("apps.amag-ch.components.content.vehicle-overview.vehicles-list.vin"),": ").concat(n._vehicle.displayVin),m=n.addVehicleContent(!1,f,!1);if(i.appendChild(m),n._vehicle.vehicleHolderSalutation){var v="".concat(Granite.I18n.get("apps.amag-ch.components.content.vehicle-overview.vehicles-list.vehicleHolderInfo"),": ").concat(n._vehicle.displayVehicleHolder),g=n.addVehicleContent(!1,v,!1);i.appendChild(g)}if(n._vehicle.appOrigin){var y=document.createElement("div");y.classList.add("app-vehicle__info");var _=n.addAppVehicleInformationContent("app-vehicle__info-last-recorded","".concat(n.appProperties.dataset.update,": "),"app-vehicle__info-last-recorded-value",n._vehicle.carAdapterTimeStamp||"-");y.appendChild(_);var b=n.addAppVehicleInformationContent("app-vehicle__info-connected-with","".concat(n.appProperties.dataset.connect,": "),"app-vehicle__info-amag-app",n.appProperties.dataset.app);y.appendChild(b),i.appendChild(y)}var w=document.createElement("div");w.className="col-auto vehicle-link__icon-wrapper";var S=document.createElementNS("http://www.w3.org/2000/svg","svg");S.setAttribute("class","vehicle-link__icon");var C=document.createElementNS("http://www.w3.org/2000/svg","path");return C.setAttribute("d","M0.649245 24C0.506245 24 0.370245 23.939 0.275245 23.832C0.0922448 23.625 0.112245 23.308 0.318245 23.126L12.8932 12L0.318245 0.875C0.111245 0.692 0.0922449 0.375 0.274245 0.169C0.370245 0.062 0.506245 0 0.649245 0C0.771245 0 0.889245 0.045 0.980245 0.125L13.5562 11.251C13.5852 11.277 13.6122 11.303 13.6372 11.331C14.0062 11.747 13.9692 12.382 13.5572 12.747L0.980245 23.875C0.888245 23.956 0.771245 24 0.649245 24Z"),S.appendChild(C),w.appendChild(S),r.appendChild(i),r.appendChild(w),t.appendChild(r),e.appendChild(t),e},this.addFavouriteCol=function(){var e=document.createElement("div");e.classList.add("col-12","vehicle-link__favourite-wrapper"),e.hidden=!0;var t=document.createElement("div");return t.classList.add("vehicle-link__favourite","amag-copy--smallLight"),t.textContent=Granite.I18n.get("apps.amag-ch.components.content.vehicle-overview.vehicles-list.favourite"),e.appendChild(t),e},this.addVehicleContent=function(e,t,r){var a=document.createElement("div"),i=document.createElement("span"),o=e?"amag-copy--smallBold":"amag-copy--smallLight";return i.classList.add(o),i.textContent=t,a.appendChild(i),r&&a.appendChild(n.createConnectIconFragment()),a},this.addAppVehicleInformationContent=function(e,t,n,r){var a=document.createElement("p");a.classList.add(e),a.textContent=t;var i=document.createElement("span");return i.classList.add(n),i.textContent=r,a.appendChild(i),a},this.createConnectIconFragment=function(){var e=document.createDocumentFragment(),t=document.createElement("span");t.classList.add("app-vehicle__connected-icon-placeholder");var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.classList.add("vehicle-link__connect-icon"),n.setAttribute("viewBox","0 0 25 24"),n.setAttribute("fill","none"),n.setAttribute("width","25"),n.setAttribute("height","24");var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d","M7.17784 13.8426C7.07517 13.8374 6.97974 13.7827 6.92248 13.6978L5.08823 10.9665C5.03952 10.8935 5.02175 10.8059 5.03821 10.7197C5.05532 10.6335 5.10468 10.5591 5.17773 10.5098C5.23236 10.4729 5.29554 10.4538 5.3607 10.4538C5.47061 10.4538 5.57262 10.5085 5.63383 10.5993L6.69739 12.1828C6.65264 9.35802 8.56982 6.8123 11.3623 6.11599L11.4235 6.10085C11.8737 5.99489 12.3344 5.94092 12.7945 5.94092C14.4872 5.94092 16.103 6.67014 17.2264 7.94234C17.3469 8.07858 17.3337 8.28655 17.1975 8.40699C17.1369 8.4603 17.0599 8.48926 16.9796 8.48926C16.8855 8.48926 16.7953 8.44846 16.7328 8.37804C15.7344 7.24734 14.299 6.59906 12.7945 6.59906C12.3858 6.59906 11.9764 6.64711 11.5769 6.74188L11.521 6.7557C8.81136 7.43096 7.05608 10.0274 7.39569 12.762L9.05224 10.7783C9.11477 10.7033 9.20691 10.6605 9.30497 10.6605C9.38197 10.6605 9.457 10.6875 9.51558 10.7368C9.65511 10.8533 9.67353 11.0613 9.55704 11.2002L7.44768 13.7261C7.38516 13.7998 7.18047 13.8426 7.17784 13.8426Z"),r.setAttribute("fill","#172983"),n.appendChild(r);var a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("d","M12.7701 17.7915C11.2129 17.7915 9.74066 17.1834 8.62378 16.079C8.56126 16.0171 8.52638 15.9349 8.52638 15.8467C8.52572 15.7585 8.55994 15.6756 8.62181 15.6137C8.68367 15.5505 8.7666 15.5156 8.85545 15.5156C8.94298 15.5156 9.02525 15.5498 9.08712 15.6111C10.0796 16.5924 11.3887 17.1327 12.7721 17.1327C13.1828 17.1327 13.5954 17.084 13.9989 16.9886C16.4169 16.41 18.1176 14.1947 18.0971 11.7372L16.5255 13.6188C16.463 13.6939 16.3708 13.7367 16.2728 13.7367C16.1958 13.7367 16.1214 13.7097 16.0622 13.6603C15.9233 13.5438 15.9042 13.3365 16.0207 13.197L18.0912 10.7184C18.1004 10.7052 18.111 10.6934 18.1222 10.6815L18.1314 10.6697C18.1939 10.5947 18.286 10.5519 18.3834 10.5519C18.3867 10.5519 18.3992 10.5519 18.4025 10.5525C18.5052 10.5578 18.6006 10.6124 18.6579 10.698L20.4908 13.4306C20.5395 13.5037 20.5573 13.5912 20.5402 13.6774C20.5231 13.7636 20.4737 13.838 20.4007 13.8874C20.3467 13.9236 20.2835 13.9433 20.2177 13.9433C20.1078 13.9433 20.0051 13.8887 19.9439 13.7972L18.7527 12.0215C18.65 14.689 16.7881 16.9984 14.1522 17.6289C13.6974 17.7369 13.2328 17.7915 12.7701 17.7915Z"),a.setAttribute("fill","#172983"),n.appendChild(a),t.appendChild(n),e.appendChild(t),e},this._vehicle=t})),Hh=__webpack_require__(74692);function Gh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Uh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uh(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Uh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wh(e){return function(){var t=Jh.find(".vehicle-detail");new Bh(e).place(t),gh("vehicle-detail"),Hh("body,html").animate({scrollTop:0},10)}}function zh(e){return $h.apply(this,arguments)}function $h(){return $h=(0,lt.A)(ht().mark((function e(t){var n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b,w,S,C,E,x;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=document.createDocumentFragment(),e.next=3,Zo.getData(!1,"userVehicleList");case 3:if(a=e.sent,i=JSON.parse(localStorage.getItem(bt.H.AMAG_APP_VEHICLE)),o=null!==(n=i)&&void 0!==n&&n.vin?a.find((function(e){return e.vin===i.vin})):null,s=o?a.filter((function(e){return!!e.appOrigin&&e.vin!==o.vin})):a.filter((function(e){return!!e.appOrigin})),c=o?a.filter((function(e){return!e.appOrigin&&e.vin!==o.vin})):a.filter((function(e){return!e.appOrigin})),"theme.amag.noncaptive"===(l=document.getElementById("amag-infrastructure-info")).dataset.theme&&"porsche"===l.dataset.project&&(i="PORSCHE"===(null===(u=i)||void 0===u?void 0:u.brandId)?i:null,s=s.filter((function(e){return"PORSCHE"===e.makeCode})),c=c.filter((function(e){return"PORSCHE"===e.makeCode}))),a||i){e.next=12;break}return e.abrupt("return");case 12:if(!i){e.next=20;break}return e.next=15,Yh(i,o);case 15:d=e.sent,h=new jh(d),(p=h.getTileFragment()).querySelector(".vehicle-link__wrapper").addEventListener("click",Wh(h.getVehicle())),r.append(p);case 20:f=s.map((function(e){return new jh(e)})),m=Gh(f);try{for(m.s();!(v=m.n()).done;)g=v.value,y=g.getVehicle(),(_=g.getTileFragment()).querySelector(".vehicle-link__wrapper").addEventListener("click",Wh(y)),r.append(_)}catch(e){m.e(e)}finally{m.f()}b=c.map((function(e){return new jh(e)})),w=Gh(b);try{for(w.s();!(S=w.n()).done;)C=S.value,E=C.getVehicle(),(x=C.getTileFragment()).querySelector(".vehicle-link__wrapper").addEventListener("click",Wh(E)),r.append(x)}catch(e){w.e(e)}finally{w.f()}t.append(r);case 27:case"end":return e.stop()}}),e)}))),$h.apply(this,arguments)}function Yh(e,t){return Zh.apply(this,arguments)}function Zh(){return Zh=(0,lt.A)(ht().mark((function e(t,n){var r,a,i,o,s;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Pi._fetch(t.brandId);case 2:return r=e.sent,a="",!(i=t.modelName.toUpperCase().replace(/\s/g," ").split(" ")[0]).includes("ID")&&i.includes(".")&&(i=i.split(".")[0]),r.forEach((function(e){(e.modelCode===i||e.modelDesc.toUpperCase().includes(i))&&(a=e.modelCode)})),o=n?{__metadata:n.metadata,MAKE_CODE:t.brandId,MODEL_CODE:a,VIN:t.vin||(null==n?void 0:n.vin)||"",LIC_PLATE:t.licensePlate||(null==n?void 0:n.licensePlate)||"",REG_DATE:n.registrationDate,MILEAGE:t.mileage||(null==n?void 0:n.mileage)||"",MILEAGE_UOM:n.mileageUnit,MILEAGE_UOMISO:n.mileageUnitIso,VEH_NO:n.vehicleNumber,VH_OBJ_TYPE:n.vhObjectType,VH_OBJ_NUMBER:n.vhObjectNumber,USERID:n.userId,VHGUID:n.vehicleUID,ZZVO_TITLE:n.vehicleHolderSalutation,ZZVO_NAME1:n.vehicleHolderFirstName,ZZVO_NAME2:n.vehicleHolderName,ZZVO_TITLE_DESC:n.vehicleHolderSalutationDescription,APPORIGIN:!0,CARADAPTERTIMESTAMP:t.lastRecordedAt||(null==n?void 0:n.carAdapterTimeStamp)||null}:{__metadata:{id:"",uri:"",type:""},MAKE_CODE:t.brandId,MODEL_CODE:a,VIN:null!==(s=t.vin)&&void 0!==s?s:"",LIC_PLATE:t.licensePlate,REG_DATE:"",MILEAGE:t.mileage,MILEAGE_UOM:"
6km",MILEAGE_UOMISO:"KMT",VEH_NO:"",VH_OBJ_TYPE:"",VH_OBJ_NUMBER:"",USERID:"",VHGUID:"",ZZVO_TITLE:"",ZZVO_NAME1:"",ZZVO_NAME2:"",ZZVO_TITLE_DESC:"",APPORIGIN:!0,CARADAPTERTIMESTAMP:t.lastRecordedAt},e.next=10,zi.construct(o);case 10:return e.abrupt("return",e.sent);case 11:case"end":return e.stop()}}),e)}))),Zh.apply(this,arguments)}var Kh=__webpack_require__(74692);if(document.querySelector(".vehicle-overview")&&("true"!==document.querySelector(".vehicle-overview").getAttribute("data-isauthormode")&&!localStorage.getItem(bt.H.AMAG_USER))){var Xh=Kh(".js-amag-header__loginFlyout").data("login");window.location.href=Xh}var Jh=Kh("#vehicle-overview-component");Kh((function(){var e=Jh.find(".vehicle-overview__otv-entry"),t=Kh(".amag-garageElectionOverlay__button"),n=Jh.find(".vehicle-overview__remembered-garage"),r=Jh.find(".vehicle-overview");if(0!==Jh.length&&0!==r.length){t.length||console.warn("Garage overlay component missing on page");var a=[];a.push(zh(Jh.find(".vehicle-list")));var i=(0,ni.Ri)(ni.AZ.GARAGE);i?a.push((0,lt.A)(ht().mark((function e(){var r;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ll(parseInt(i));case 2:r=e.sent,n.text(r.getGarageName()),Jh.find(".vehicle-overview__change-remembered-garage").on("click",(function(){t.find("a").click()}));case 5:case"end":return e.stop()}}),e)})))()):(Jh.find(".vehicle-overview__remembered-garage-wrapper").addClass("d-none"),e.on("click",(function(e){e.preventDefault(),t.find("a").click()}))),Promise.all(a).finally((function(){Jh.removeClass("vehicle-overview-component--hidden"),gh("vehicle-overview")})),Jh.find(".vehicle-overview__create-vehicle").on("click",Wh())}}));var Qh=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},ep=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},tp=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=t,this.init()}),[{key:"init",value:function(){this.setEventListener()}},{key:"setEventListener",value:function(){var e=this;this.element.querySelectorAll(".cmp-accordion__button").forEach((function(t){return t.addEventListener("click",(function(){var n=t.querySelector(".cmp-accordion__title").textContent;if("58"===e.element.dataset.identifier){var r=e.element.querySelector(".cmp-accordion__headline").textContent,a={event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_FAQ",eventParameter2:"interaction_label",fieldValue2:"".concat(r),eventParameter5:"interaction_content",fieldValue5:"".concat(n)};(0,it.eo)(a,"abo_dashboard_FAQ")}else if("50"===e.element.dataset.identifier){var i=window.location.pathname.split("/"),o=i[i.length-1].split(".")[0].replace("-","_").toLocaleLowerCase(),s={event:"ga4Event",eventName:"".concat(o,"_faq_interaction"),eventParameter1:"interaction_item",fieldValue1:"entry_page",eventParameter2:"interaction_label",fieldValue2:"".concat(n)};(0,it.eo)(s,"FAQ Accordion Event")}}))}))}}])}();tp=Qh([(0,At.d)({selector:".cmp-accordion",onDomLoaded:!0}),ep("design:paramtypes",[HTMLElement])],tp);var np=__webpack_require__(65561),rp=__webpack_require__(74692);function ap(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ip(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ip(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function ip(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var op=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},sp=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},cp=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=t,this.carouselItems=this.element.getElementsByClassName("amag-angeboteRecoContainer__reco--body"),this.carouselElements=this.element.getElementsByClassName("cmp-carousel__item"),this.init()}),[{key:"init",value:function(){this.setLastTileColor(),(0,np.A)(this.carouselItems),this.carouselFunction(),this.addClickEventToTile(),this.checkCarouselCount()}},{key:"carouselFunction",value:function(){var e=this.carouselElements.length;if(e>1){this.element.querySelector(".cmp-carousel__itemsLength").innerText=e+"";var t=this.element.querySelectorAll(".cmp-carousel__action"),n=!0,r=!1,a=0,i=this.carouselElements[0].classList.contains("threeCol");a=i?it.lp.isMobile()||it.lp.isTablet()?rp(this.carouselElements[0]).width()+15:rp(this.carouselElements[0]).width()+45:rp(this.carouselElements[0]).width()+30;var o,s=ap(t);try{for(s.s();!(o=s.n()).done;){o.value.addEventListener("click",(function(){var t=this.closest(".cmp-carousel__content"),i=t.querySelector(".cmp-carousel__indicator.cmp-carousel__indicator--active").getAttribute("aria-label"),o=t.querySelector(".cmp-carousel__items"),s=t.querySelector(".cmp-carousel__item--active");if(t.querySelector(".cmp-carousel__activeItemIndex").innerText=i,t.querySelector(".cmp-carousel__item.prev")&&t.querySelector(".cmp-carousel__item.prev").classList.remove("prev"),null!=t.querySelector(".cmp-carousel__item--active").previousElementSibling&&t.querySelector(".cmp-carousel__item--active").previousElementSibling.classList.add("prev"),this.classList.contains("cmp-carousel__action--next"))n=!1,r?rp(o).stop(!1,!0).animate({left:"0px"}):rp(o).stop(!1,!0).animate({left:"-="+a});else if(this.classList.contains("cmp-carousel__action--previous"))if(n){var c=a*(e-1);rp(o).stop(!1,!0).animate({left:"-="+c})}else rp(o).stop(!1,!0).animate({left:"+="+a});n=rp(s).is(":first-child"),r=rp(s).is(":last-child")}))}}catch(e){s.e(e)}finally{s.f()}}else this.element.querySelector(".cmp-carousel__actions").style.display="none"}},{key:"addClickEventToTile",value:function(){document.querySelectorAll(".amag-angeboteRecoContainer__reco").forEach((function(e){e.addEventListener("click",(function(){e.querySelector("a").click();var t=document.querySelector(".autoabo-overview"),n=window.dataLayer;void 0!==n&&null!==t&&n.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"auto_abo_dashboard",eventParameter2:"interaction_label",fieldValue2:"view car details",eventParameter3:"interaction_content",fieldValue3:"TAB NAME",eventParameter10:"carBrand",fieldValue10:"".concat(e.dataset.brand),eventParameter11:"carModel",fieldValue11:"MODEL"})}))}))}},{key:"checkCarouselCount",value:function(){1==this.carouselElements.length?(this.carouselElements[0].classList.remove("threeCol"),this.carouselElements[0].classList.remove("twoCol"),this.carouselElements[0].classList.add("oneCol")):2==this.carouselElements.length&&Array.from(this.carouselElements).forEac
6h((function(e){e.classList.remove("threeCol"),e.classList.add("twoCol")}))}},{key:"setLastTileColor",value:function(){var e=this.element.querySelector(".amag-angeboteRecoContainer__reco--lastContent");if(e){var t=e.querySelector("p");e.style.backgroundColor=e.dataset.style,t.style.color=t.dataset.style}}}])}();cp=op([(0,At.d)({selector:".amag-angeboteRecoContainer",onDomLoaded:!0}),sp("design:paramtypes",[HTMLElement])],cp);var lp=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},up=(0,ft.A)((function e(){var t=this;(0,pt.A)(this,e),this._body=document.querySelector("body"),this._modalList=document.querySelectorAll("#spinnerModal"),this.openSpinnerModal=function(e){var n=Array.from(t._modalList).find((function(t){return t.classList.contains(e)}));n&&(t._body.classList.add("no-scroll"),n.querySelector(".amagch-spinner-modal__close-btn").addEventListener("click",(function(){return t.closeSpinnerModal(e)})),n.showModal());var r=n.querySelector(".amagch-spinner-modal-error");r&&setTimeout((function(){r.hidden&&t.showInformation(e)}),5e3)},this.closeSpinnerModal=function(e){var n=Array.from(t._modalList).find((function(t){return t.classList.contains(e)}));n&&(n.close(),t._body.classList.remove("no-scroll"))},this.showInformation=function(e){var n=Array.from(t._modalList).find((function(t){return t.classList.contains(e)}));n&&(n.querySelector(".amagch-spinner-modal-text").hidden=!1)},this.showError=function(e){var n=Array.from(t._modalList).find((function(t){return t.classList.contains(e)}));if(n){var r=n.querySelector(".amagch-spinner-modal-text"),a=n.querySelector(".amagch-spinner-modal-error"),i=n.querySelector(".amagch-spinner-modal__close-btn");a&&(r.hidden=!0,a.hidden=!1,i.hidden=!1)}},this.setErrorMSG=function(e,n){var r=Array.from(t._modalList).find((function(t){return t.classList.contains(e)}));if(r){var a=r.querySelector(".amagch-spinner-modal-error");a&&(a.textContent=n)}}}));up=lp([nn.K],up);var dp=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this.listeners={}}),[{key:"on",value:function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}},{key:"emit",value:function(e,t){var n;null===(n=this.listeners[e])||void 0===n||n.forEach((function(e){return e(t)}))}},{key:"removeListener",value:function(e,t){this.listeners[e]&&(this.listeners[e]=this.listeners[e].filter((function(e){return e!==t})))}}])}(),hp=function(){return(0,ft.A)((function e(t,n,r,a){(0,pt.A)(this,e),this.list=t,this.searchParams=n,this.eventEmitter=new dp,this.eventKey=r,this.element=document.getElementById(a),this.inputElement=this.element.querySelector("input"),this.autosuggestElement=this.element.querySelector(".search-bar__autosuggest-container"),this.deleteElement=this.element.querySelector(".search-bar__icon--delete"),this.init()}),[{key:"init",value:function(){this.setEventListener()}},{key:"setEventListener",value:function(){var e=this;this.inputElement.addEventListener("change",(function(t){return e.changeEventListener(t)})),this.inputElement.addEventListener("keyup",(function(t){return e.changeEventListener(t)})),this.deleteElement.addEventListener("click",(function(){e.inputElement.value="",e.inputElement.dispatchEvent(new Event("change"))}))}},{key:"changeEventListener",value:function(e){if(this.element.classList.add("is-active"),""===this.inputElement.value)return this.eventEmitter.emit(this.eventKey,this.list),this.element.classList.remove("is-active"),this.deleteElement.style.display="",void(this.autosuggestElement.innerHTML="");if(e instanceof KeyboardEvent)if(e.key.includes("Enter"))this.autosuggestElement.innerHTML="";else{var t=this.search(this.inputElement.value);this.buildAutosuggest(t)}else this.deleteElement.style.display="block",this.search(this.inputElement.value)}},{key:"search",value:function(e){var t=this,n=[],r=this.list.filter((function(r){return t.searchParams&&t.searchParams.length>0?t.searchParams.some((function(t){if(String(r[t]).toLowerCase().includes(e.toLowerCase()))return n.length<6&&n.push(String(r[t])),!0})):r.includes(e)}));return this.eventEmitter.emit(this.eventKey,r),n}},{key:"buildAutosuggest",value:function(e){var t=this;this.autosuggestElement.innerHTML="",this.deleteElement.style.display="block";var n=document.createDocumentFragment(),r=document.createElement("ul");r.classList.add("search-bar__autosuggest-list"),e.forEach((function(e,n){var a=document.createElement("li");a.classList.add("search-bar__autosuggest-list-item"),a.textContent=e,a.tabIndex=n,a.addEventListener("click",(function(){t.inputElement.value=e,t.inputElement.dispatchEvent(new Event("change")),t.autosuggestElement.innerHTML="",t.deleteElement.style.display=""})),r.appendChild(a)})),n.appendChild(r),this.autosuggestElement.appendChild(n)}},{key:"getEventEmitter",value:function(){return this.eventEmitter}},{key:"setList",value:function(e){this.list=e}},{key:"getSearchString",value:function(){return this.inputElement.value}}])}();function pp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pp=function(){return!!e})()}var fp=function(e){function t(e,n,r,a){return(0,pt.A)(this,t),i=this,o=t,s=[e,n,r,a],o=(0,Ja.A)(o),(0,Xa.A)(i,pp()?Reflect.construct(o,s||[],(0,Ja.A)(i).constructor):o.apply(i,s));var i,o,s}return(0,Qa.A)(t,e),(0,ft.A)(t)}(hp),mp=__webpack_require__(74692);function vp(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return gp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gp(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function gp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var yp,_p,bp,wp,Sp,Cp,Ep,xp,Ap,kp,Tp,Lp,Ip,Dp=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Pp=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Op=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Rp=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=t,this.allAppointmentsService=new Uc,this.appointmentDetailService=new Ah,this.detailRendererService=new Nh(this.element.querySelector("template#amag-appointment-overview__detail")),this.cancellationRenderService=new Dh(this.element.querySelector("template#amag-appointment-overview__cancellation")),this.overviewWrapper=this.element.querySelector(".amag-appointment-overview__overview-wrapper"),this.detailWrapper=this.element.querySelector(".amag-appointment-overview__detail-wrapper"),this.cancellationWrapper=this.element.querySelector(".amag-appointment-overview__cancellation-wrapper"),this.detailContentWrapper=this.detailWrapper.querySelector(".amag-appointment-overview__detail-content"),this.cancellationContentWrapper=this.cancellationWrapper.querySelector(".amag-appointment-overview__cancellation-content"),this.noAppointmentsText=this.element.querySelector(".amag-appointment-overview__appointment-list--no-appointments"),this.appointmentList=this.element.querySelector(".amag-appointment-overview__appointment-list"),this.rememberedGarageWrapper=this.element.querySelector(".amag-appointment-overview__remembered-garage-map-info-wrapper"),this.cancelNotification=this.element.querySelector(".amag-appointment-overview__notification"),this.garageListWrapper=this.element.querySelector(".amag-appointment-overview__garage-selection-garage-list"),this.garageSelectionOffCanvasErrorMessage=this.element.querySelector(".amag-appointment-overview__garage-selection-error-msg"),this.spinnerModalServiceOld=new up,this.appointmentListLoadingSpinner=new hc("amag-appointment-overview__spinner"),this.garageSelectionOffCanvasLoadingSpinner=new hc("garage-selection-off-canvas-loading-spinner"),this.hasGarageSection=this.element.querySelector(".amag-appointment-overview__remembered-garage--has-garage"),this.noGarageSection=this.element.querySelector(".amag-appointment-overview__remembered-garage--no-garage"),this.garageInfoText=this.element.querySelector(".amag-appointment-overview__remembered-garage-notification"),this.appointmentTemplate=this.element.querySelector("template#amag-appointment-overview__appointment"),this.garageInfoWithMapTemplate=this.element.querySelector("template#amag-appointment-overview__remembered-garage"),this.vehicleTemplate=this.element.querySelector("template#amag-appointment-overview__vehicle"),this.google=window.google&&window.google.maps?window.google:void 0,this.activeClass="is-active",this.favoriteClass="favorite",this.offCanvasService=new sn,this.isNonCaptiveTheme=this.isNonCaptiveThemeActive(),this.init()}),[{key:"init",value:function(){return Op(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fillAppointmentInfo();case 2:if(!this.isNonCaptiveTheme){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,this.setGoogle();case 6:return e.next=8,this.checkFavoriteGarageAvailability();case 8:return e.next=10,this.initEventListeners();case 10:this.checkGarageSelectionValidity=this.checkGarageSelectionValidity.bind(this),this.saveGarageAsFavourite=this.saveGarageAsFavourite.bind(this),this.initGarageSelectionOffCanvas();case 13:case"end":return e.stop()}}),e,this)})))}},{key:"isNonCaptiveThemeActive",value:function(){var e=document.getElementById("amag-infrastru
6cture-info");return"theme.amag.noncaptive"===(null==e?void 0:e.dataset.theme)}},{key:"fillAppointmentInfo",value:function(){return Op(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.allAppointmentsService.getData();case 3:if(this.appointments=e.sent,0!==this.appointments.length){e.next=9;break}this.noAppointmentsText.hidden=!1,this.appointmentList.hidden=!0,e.next=16;break;case 9:return e.next=11,this.prepareAppointmentList();case 11:return this.bindEventListenerOnOverviewTiles(),e.next=14,this.storeLastAppointmentGarageInfo();case 14:this.noAppointmentsText.hidden=!0,this.appointmentList.hidden=!1;case 16:return e.next=18,this.updateGarageInfoWithMap();case 18:this.appointmentListLoadingSpinner.hide(),e.next=25;break;case 21:e.prev=21,e.t0=e.catch(0),console.error("Error occurred during initializing appointment overview (potentially user logged out):",e.t0),this.appointmentListLoadingSpinner.hide();case 25:case"end":return e.stop()}}),e,this,[[0,21]])})))}},{key:"setGoogle",value:function(){return Op(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hr.wait();case 2:this.google=window.google;case 3:case"end":return e.stop()}}),e,this)})))}},{key:"prepareAppointmentList",value:function(){return Op(this,void 0,void 0,ht().mark((function e(){var t,n,r,a,i,o,s,c,l;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.allAppointmentsService.getAppointmentsGroupedByVehicle();case 2:t=e.sent,n=vp(t),e.prev=4,n.s();case 6:if((r=n.n()).done){e.next=33;break}return a=r.value,e.next=10,this.renderVehicleTemplate(a.appointments[0]);case 10:i=e.sent,o=vp(a.appointments),e.prev=12,o.s();case 14:if((s=o.n()).done){e.next=22;break}return c=s.value,e.next=18,c.renderOverviewMarkup(this.appointmentTemplate);case 18:l=e.sent,i.appendChild(l);case 20:e.next=14;break;case 22:e.next=27;break;case 24:e.prev=24,e.t0=e.catch(12),o.e(e.t0);case 27:return e.prev=27,o.f(),e.finish(27);case 30:this.appointmentList.appendChild(i);case 31:e.next=6;break;case 33:e.next=38;break;case 35:e.prev=35,e.t1=e.catch(4),n.e(e.t1);case 38:return e.prev=38,n.f(),e.finish(38);case 41:case"end":return e.stop()}}),e,this,[[4,35,38,41],[12,24,27,30]])})))}},{key:"renderVehicleTemplate",value:function(e){return Op(this,void 0,void 0,ht().mark((function t(){var n,r,a;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.vehicleTemplate,t.next=3,e.getModel();case 3:if(r=t.sent){t.next=12;break}return t.t0="",t.next=8,e.getBrand();case 8:t.t1=t.sent.makeDesc,a=t.t0.concat.call(t.t0,t.t1," ").concat(e.srsAppointment.MODEL_CODE),t.next=17;break;case 12:return t.t2="",t.next=15,r.getBrand();case 15:t.t3=t.sent.makeDesc,a=t.t2.concat.call(t.t2,t.t3," ").concat(r.modelDesc);case 17:return n.querySelector(".appointment-vehicle__caption").innerText=a,t.abrupt("return",n);case 19:case"end":return t.stop()}}),t,this)})))}},{key:"bindEventListenerOnOverviewTiles",value:function(){var e,t=this,n=vp(this.appointments);try{var r=function(){var n=e.value;n.markup.addEventListener("click",(function(){t.clickAppointment(n)}))};for(n.s();!(e=n.n()).done;)r()}catch(e){n.e(e)}finally{n.f()}}},{key:"navigateBackToOverview",value:function(){yt(!1),window.scrollTo(0,0),yt(!0),this.overviewWrapper.classList.remove("d-none"),this.detailWrapper.classList.add("d-none"),this.cancelNotification.classList.add("d-none")}},{key:"navigateToCancellation",value:function(){this.cancellationWrapper.classList.remove("d-none"),this.detailWrapper.classList.add("d-none")}},{key:"navigateBackToDetail",value:function(){this.cancellationWrapper.classList.add("d-none"),this.detailWrapper.classList.remove("d-none")}},{key:"cancelAppointment",value:function(e){return Op(this,void 0,void 0,ht().mark((function t(){var n,r,a;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.element.querySelector(".amag-appointment-cancellation__spinner-container"),this.spinnerModalServiceOld.openSpinnerModal("amag-appointment-overview__spinner--old"),n.classList.remove("d-none"),t.prev=3,r=wr.getUrl()+"deleteAppointment.json",t.t0=yr.Hx,t.t1=r,t.next=9,br.getJwtToken();case 9:return t.t2=t.sent,t.t3=e.srsAppointment.APPOINTMENT_ID,t.t4={ACTION:"C",CDC_TOKEN:t.t2,APPOINTMENT_ID:t.t3},t.next=14,(0,t.t0)(t.t1,t.t4);case 14:return"ok"in(a=t.sent)&&!a.ok?(this.cancellationContentWrapper.querySelector(".appointment-cancellation__button").setAttribute("disabled","disabled"),mp(".a
6ppointment-cancellation__infoBox").removeClass("d-none")):(this.appointmentList.innerHTML="",this.allAppointmentsService.deleteData(),this.init(),this.cancellationWrapper.classList.add("d-none"),this.overviewWrapper.classList.remove("d-none"),this.displayCancelNotification(e.getDateString())),window.scrollTo({top:0,behavior:"smooth"}),this.spinnerModalServiceOld.closeSpinnerModal("amag-appointment-overview__spinner--old"),n.classList.add("d-none"),t.abrupt("return");case 22:return t.prev=22,t.t5=t.catch(3),this.cancellationContentWrapper.querySelector(".appointment-cancellation__button").setAttribute("disabled","disabled"),window.scrollTo({top:0,behavior:"smooth"}),console.error("Error occurred:",t.t5),this.spinnerModalServiceOld.closeSpinnerModal("amag-appointment-overview__spinner--old"),n.classList.add("d-none"),mp(".appointment-cancellation__infoBox").removeClass("d-none"),t.abrupt("return");case 31:case"end":return t.stop()}}),t,this,[[3,22]])})))}},{key:"clickAppointment",value:function(e){return Op(this,void 0,void 0,ht().mark((function t(){var n,r,a,i=this;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.appointmentListLoadingSpinner.show(),t.next=3,this.appointmentDetailService.getData(e.srsAppointment.APPOINTMENT_ID);case 3:return n=t.sent,t.next=6,this.detailRendererService.render(n);case 6:return r=t.sent,t.next=9,this.cancellationRenderService.render(n);case 9:a=t.sent,r.querySelector(".back-navigation-link").addEventListener("click",(function(){return i.navigateBackToOverview()})),r.querySelector(".amag-appointment-overview__cancel-appointment-button").addEventListener("click",(function(){return i.navigateToCancellation()})),a.querySelector(".back-navigation-link").addEventListener("click",(function(){return i.navigateBackToDetail()})),a.querySelector(".appointment-cancellation__navigation-backwards").addEventListener("click",(function(){return i.navigateBackToDetail()})),a.querySelector(".appointment-cancellation__button").addEventListener("click",(function(){return i.cancelAppointment(e)})),this.detailContentWrapper.innerHTML="",this.detailContentWrapper.append(r),this.cancellationContentWrapper.innerHTML="",this.cancellationContentWrapper.append(a),yt(!1),window.scrollTo(0,0),yt(!0),this.overviewWrapper.classList.add("d-none"),this.detailWrapper.classList.remove("d-none"),this.appointmentListLoadingSpinner.hide();case 25:case"end":return t.stop()}}),t,this)})))}},{key:"checkFavoriteGarageAvailability",value:function(){return Op(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ai.getFavoriteGarageId();case 2:if(this.favoriteGarageId=e.sent,this.favoriteGarageId){e.next=6;break}return this.hideGarageMapSection(),e.abrupt("return");case 6:this.showGarageMapSection();case 7:case"end":return e.stop()}}),e,this)})))}},{key:"showGarageMapSection",value:function(){this.noGarageSection.hidden=!0,this.hasGarageSection.hidden=!1}},{key:"hideGarageMapSection",value:function(){this.noGarageSection.hidden=!1,this.hasGarageSection.hidden=!0}},{key:"updateGarageInfoWithMap",value:function(){return Op(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isNonCaptiveTheme){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.createGarageInfoWithMapHTML();case 4:if(this.mapHTML=e.sent,this.mapHTML){e.next=7;break}return e.abrupt("return");case 7:return this.rememberedGarageWrapper.innerHTML="",this.rememberedGarageWrapper.append(this.mapHTML),e.next=11,Vl.initGoogleMaps(this.element.querySelector(".amag-appointment-overview__map-container"),this.favoriteGarageObj.position);case 11:this.isLastAppointmentGarageSameAsFavorite()||"true"===localStorage.getItem(Nl.HIDE_GARAGE_INFO_NOTIFICATION)||(this.setGarageInfoNotification(this.lastBookedAppointmentGarage),this.showGarageInfoNotification()),this.showGarageMapSection();case 13:case"end":return e.stop()}}),e,this)})))}},{key:"createGarageInfoWithMapHTML",value:function(){return Op(this,void 0,void 0,ht().mark((function e(){var t,n,r,a,i;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(0,ni.Ri)("garage"),this.favoriteGarageId||t){e.next=3;break}return e.abrupt("return");case 3:return n=this.favoriteGarageId||t,e.next=6,Ll(parseInt(n));case 6:if(r=e.sent,this.allGarages&&0!==this.allGarages.length){e.next=11;break}return e.next=10,this.getAllGarages();case 10:this.allGarages=e.sent;
6case 11:return this.favoriteGarageObj=this.allGarages.find((function(e){return e.id===n})),a=[{selector:".amag-appointment-overview__remembered-garage-data-name",value:r.getGarageName()},{selector:".amag-appointment-overview__remembered-garage-data-address",value:"".concat(r.getStreet(),"\n").concat(r.getZip()," ").concat(r.getCity())},{selector:".amag-appointment-overview__remembered-garage-data--phone",value:r.getPhoneNumber()},{selector:".amag-appointment-overview__remembered-garage-data--mail",value:r.getEmail()}],(i=qc(this.garageInfoWithMapTemplate,a)).querySelectorAll(".amag-appointment-overview__remembered-garage-route-link").forEach((function(e){var t;e.setAttribute("href",(t="".concat(r.getStreet()," ").concat(r.getZip()," ").concat(r.getCity()),"https://www.google.com/maps/dir/?api=1&destination=".concat(encodeURIComponent(t))))})),i.querySelectorAll(".amag-appointment-overview__remembered-garage-contact-link--phone").forEach((function(e){var t=e.querySelector(".amag-appointment-overview__remembered-garage-data--phone");e.setAttribute("href","tel:".concat(r.getPhoneNumber())),t.innerText=(0,it.g_)(r.getPhoneNumber())})),i.querySelectorAll(".amag-appointment-overview__remembered-garage-contact-link--mail").forEach((function(e){var t=e.querySelector(".amag-appointment-overview__remembered-garage-data--mail");e.setAttribute("href","mailto:".concat(r.getEmail())),t.innerText=r.getEmail()})),i.querySelectorAll(".amag-appointment-overview__remembered-garage-contact-link--garage").forEach((function(e){e.setAttribute("href","".concat(r.getPath()))})),e.abrupt("return",i);case 19:case"end":return e.stop()}}),e,this)})))}},{key:"storeLastAppointmentGarageInfo",value:function(){return Op(this,void 0,void 0,ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.appointments&&0!==this.appointments.length){e.next=2;break}return e.abrupt("return");case 2:return t=this.appointments[this.appointments.length-1],e.next=5,t.getGarage();case 5:this.lastBookedAppointmentGarage=e.sent;case 6:case"end":return e.stop()}}),e,this)})))}},{key:"isLastAppointmentGarageSameAsFavorite",value:function(){return!this.lastBookedAppointmentGarage||!this.favoriteGarageId||this.lastBookedAppointmentGarage._id===parseInt(this.favoriteGarageId)}},{key:"showGarageInfoNotification",value:function(){this.garageInfoText.hidden=!1}},{key:"hideGarageInfoNotification",value:function(){this.garageInfoText.hidden=!0}},{key:"setGarageInfoNotification",value:function(e){var t=this.element.querySelector(".amag-appointment-overview__remembered-garage-notification-text"),n=t.innerHTML,r='<span class="amag-appointment-overview__remembered-garage-notification-text--garage">'.concat(e.getGarageName(),"</span>");t.innerHTML=n.replace("$[garageName]",r)}},{key:"setGarageInfoNotificationClosed",value:function(){localStorage.setItem(Nl.HIDE_GARAGE_INFO_NOTIFICATION,"true")}},{key:"displayCancelNotification",value:function(e){var t="";switch(document.querySelector("html").getAttribute("lang")){case"de":t="de-DE";break;case"it":t="it-IT";break;case"en":t="en-GB";break;case"fr":t="fr-FR"}var n=e.split(","),r=n[2].trim().split("."),a=new Date("".concat(r[2],"-").concat(r[1],"-").concat(r[0])),i="".concat(n[1],", ").concat(a.toLocaleDateString(t,{year:"numeric",month:"numeric",day:"numeric"}),", ").concat(n[0].split(" ")[0]).concat(Granite.I18n.get("apps.amag-ch.components.content.otv.choose-date.appointmentTime")),o=this.cancelNotification.querySelector(".amag-appointment-overview__notification-text--bold").dataset.text;this.cancelNotification.querySelector(".amag-appointment-overview__notification-text--bold").textContent=Ka(o,{dateContent:i}),this.cancelNotification.classList.remove("d-none")}},{key:"changeRadioStatus",value:function(e){var t=this;this.garageSelectionOffCanvasErrorMessage.classList.remove("show"),this.element.querySelectorAll('input[type="radio"][name="garageSelection"]').forEach((function(e){e.closest(".amag-appointment-overview__garage").classList.remove(t.activeClass)})),e.classList.add(this.activeClass)}},{key:"createGarageTile",value:function(e,t){var n=this,r=document.createDocumentFragment(),a=document.createElement("label");a.classList.add("amag-appointment-overview__garage"),a.tabIndex=t,a.htmlFor="rb-".concat(e.id);var i=document.createElement("div");i.classList.add("amag-appointment-overview__garage-content");var o=document.createElement("input");o.type="radio",o.name="garageSelection",o.value=e.id,o.id="rb-".concat(e.id),i.appendChild(o);var s=document.createElement("div");s.classList.add("amag-appointment-overview__garage-info");var c=document.createElement("label");if(c.classList.add("amag-appointment-overview__garage-name"),c.textContent=e.name,c.htmlFor="rb-".concat(e.id),e.distance){var l=document.createElement("span");l.classList.add("amag-appointment-overview__garage-distance"),l.textContent=e.distance.toFixed(2)+" km",c.appendChild(l)}s.appendChild(c);var u,d=vp(e.serviceBrands);try{for(d.s();!(u=d.n()).done;){var h=u.value,p=document.createElement("span");p.classList.add("amag-appointment-overview__garage-brands"),p.textContent=Granite.I18n.get(h),s.appendChild(p)}}catch(e){d.e(e)}finally{d.f()}var f=document.createElement("span");f.classList.add("amag-appointment-overview__garage-street"),f.textContent=e.street,s.appendChild(f);var m=document.createElement("span");m.classList.add("amag-appointment-overview__garage-city"),m.textContent="".concat(e.zip," ").concat(e.city),s.appendChild(m);var v=document.createElement("div");v.classList.add("amag-appointment-overview__garage-bottom");var g=document.createElement("a");g.classList.add("amag-appointment-overview__garage-route"),g.target="_blank",g.href="https://www.google.com/maps/dir/?api=1&destination=".concat(e.route),g.innerHTML='<svg class="amag-appointment-overview__garage-route-icon size-l" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M1.10809 23.6331C0.557093 23.6331 0.108093 23.1851 0.108093 22.6331V4.63314C0.108093 4.08214 0.557093 3.63314 1.10809 3.63314H16.1081V1.13314C16.1081 0.638141 16.4211 0.463141 16.5171 0.421141C16.5711 0.398141 16.6591 0.369141 16.7701 0.369141C16.9031 0.369141 17.1051 0.410141 17.3161 0.60714
61L23.5821 6.42614C23.6011 6.44314 23.6251 6.46714 23.6481 6.49314C23.8191 6.68314 23.9051 6.92914 23.8911 7.18414C23.8771 7.43914 23.7651 7.67414 23.5751 7.84514L17.3151 13.6591C17.1041 13.8551 16.9021 13.8961 16.7701 13.8961C16.6601 13.8961 16.5721 13.8681 16.5181 13.8451C16.4211 13.8031 16.1091 13.6281 16.1091 13.1331V10.6331H7.10909V22.6331C7.10909 23.1851 6.66009 23.6331 6.10909 23.6331H1.10809ZM1.10809 22.6331H6.10809V10.6331C6.10809 10.0821 6.55709 9.63314 7.10809 9.63314H16.6081C16.8841 9.63314 17.1081 9.85714 17.1081 10.1331V12.4871L22.8721 7.13414L17.1081 1.78014V4.13314C17.1081 4.40914 16.8841 4.63314 16.6081 4.63314H1.10809V22.6331Z"/></svg>';var y=document.createElement("span");y.textContent=Granite.I18n.get("apps.amag-ch.components.content.damageReport.step3.a.routeLabel"),g.appendChild(y);var _=document.createElement("a");_.classList.add("amag-appointment-overview__garage-detail"),_.target="_blank",_.href="".concat(e.path),_.innerHTML='<svg class="amag-appointment-overview__garage-detail-icon size-l" width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">\n <path d="M15.0094 31.3334C14.8174 31.3334 14.6348 31.2507 14.5094 31.108C14.2668 30.832 14.2934 30.4094 14.5694 30.1667L29.9041 16.6667H1.00944C0.64144 16.6667 0.342773 16.368 0.342773 16C0.342773 15.632 0.64144 15.3334 1.00944 15.3334H29.9014L14.5681 1.83335C14.4348 1.71602 14.3548 1.55335 14.3428 1.37602C14.3321 1.19869 14.3908 1.02669 14.5081 0.893354C14.6348 0.749354 14.8174 0.666687 15.0081 0.666687C15.1708 0.666687 15.3268 0.725354 15.4481 0.833354L30.9734 14.5014C31.0361 14.5574 31.0961 14.616 31.1521 14.68C31.4428 15.0094 31.6108 15.42 31.6388 15.8707C31.6481 15.9054 31.6561 15.948 31.6561 16C31.6561 16.0347 31.6521 16.064 31.6468 16.0867C31.6468 16.0987 31.6468 16.1107 31.6468 16.124C31.6134 16.66 31.3734 17.148 30.9734 17.5014L15.4494 31.168C15.3281 31.2747 15.1708 31.3334 15.0094 31.3334Z" />\n </svg>';var b=document.createElement("span");if(b.textContent=Granite.I18n.get("apps.amag-ch.components.content.storelocator.toGarageDetailPageLabel"),_.appendChild(b),v.appendChild(g),v.appendChild(_),s.appendChild(v),e.rememberedGarage){var w=document.createElement("div");w.classList.add("amag-appointment-overview__garage-remembered-wrapper");var S=document.createElement("div");S.classList.add("amag-appointment-overview__garage-remembered"),S.textContent=Granite.I18n.get("apps.amag-ch.components.content.otv.garage-selectionPane.favouriteGarageText"),w.appendChild(S),s.prepend(w),a.classList.add(this.favoriteClass),a.classList.add(this.activeClass),o.checked=!0}return i.appendChild(s),a.appendChild(i),a.addEventListener("click",(function(){return n.changeRadioStatus(a)})),r.appendChild(a),r}},{key:"addToast",value:function(e){var t=this.overviewWrapper.dataset.garageSavedSuccessfullyMessage;if(t){t=t.replace("$[garageName]",e);var n=(0,Ct.ox)(t,3e3,["success-toast","appointment-overview-success-toast"],(0,Ct.l4)("copyToastClose"),(0,Ct.MM)("copyToastIcon"));document.body.appendChild(n),n.show()}}},{key:"getAllGarages",value:function(){return Op(this,void 0,void 0,ht().mark((function e(){var t,n,r,a=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,wt.d)("otvgarages"),e.next=3,fetch(t);case 3:return n=e.sent,e.next=6,ai.getFavoriteGarageId();case 6:if(this.favoriteGarageId=e.sent,!n.ok){e.next=13;break}return e.next=10,n.json().catch((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,it.h0)(t,n)}));case 10:r=e.sent.garages.map((function(e){return{id:e.id,city:e.city,ec2Id:e.ec2ID,name:e.name,route:e.route,serviceBrands:e.serviceBrands,brandIds:e.filterIdString,street:e.street,zip:e.zip,rememberedGarage:!!a.favoriteGarageId&&e.id===a.favoriteGarageId,phone:e.phone,mail:e.email,position:{lat:parseFloat(e.latitude),lng:parseFloat(e.longitude)},isDriveIn:!1,path:e.path}})),e.next=15;break;case 13:return console.error("Something went wrong by getting the data from URL: ".concat(t)),e.abrupt("return",[]);case 15:return e.abrupt("return",r);case 16:case"end":return e.stop()}}),e,this)})))}},{key:"fillGarageList",value:function(){return Op(this,void 0,void 0,ht().mark((function e(){var t,n,r,a=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.allGarages&&0!==this.allGarages.length){e.next=4;break}return e.next=3,this.getAllGarages();case 3:this.allGarages=e.sent;case 4:return t=document.createDocumentFragment(),this.favoriteGarageOb
6j=this.allGarages.find((function(e){return e.rememberedGarage})),this.favoriteGarageObj&&(n=this.allGarages.filter((function(e){return!e.rememberedGarage})),this.allGarages=[this.favoriteGarageObj].concat((0,ut.A)(n))),r=["name","city"],this.garageSearchService=new fp(this.allGarages,r,ql.GARAGE_SEARCH_EVENT,"garageSelectionSearchBar"),this.allGarages.forEach((function(e,n){t.appendChild(a.createGarageTile(e,n))})),this.garageListWrapper.innerHTML="",this.garageListWrapper.appendChild(t),e.next=14,this.initGarageSearchListener();case 14:case"end":return e.stop()}}),e,this)})))}},{key:"initGarageSelectionOffCanvas",value:function(){var e=this.offCanvasService.getConfirmBtn();e.classList.remove("amag-ctaWrapper__button--bgColor-amagViolet"),e.classList.add("amag-ctaWrapper__button--bgColor-amagDark-blue"),this.offCanvasService.setButtonsSticky(),this.offCanvasService.getConfirmBtn().parentElement.classList.remove("d-none")}},{key:"openGarageSelectionOffCanvas",value:function(){return Op(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.garageSelectionOffCanvasErrorMessage.classList.remove("show"),this.offCanvasService.getOffCanvasBox().scrollTop=0,this.offCanvasService.getConfirmBtn().innerText=this.overviewWrapper.dataset.offCanvasConfirmButtonLabel,this.offCanvasService.getCancelBtn().innerText=this.overviewWrapper.dataset.offCanvasCancelButtonLabel,this.offCanvasService.showOffCanvasById("amag-appointment-overview__garage-selection-off-canvas"),e.next=9,this.fillGarageList();case 9:this.offCanvasService.setConfirmMethod(this.checkGarageSelectionValidity),this.garageSelectionOffCanvasLoadingSpinner.hide();case 11:case"end":return e.stop()}}),e,this)})))}},{key:"findNearestGarages",value:function(){return Op(this,void 0,void 0,ht().mark((function e(){var t,n,r,a,i=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.garageSearchService.getSearchString(),e.next=3,this.getGeocode(t);case 3:return n=e.sent,r=n.geometry.location,a=[],this.allGarages.forEac
6h((function(e){var t=i.google.maps.geometry.spherical.computeDistanceBetween(new i.google.maps.LatLng(e.position.lat,e.position.lng),r);e.distance=t/1e3,a.push(e)})),a=a.sort((function(e,t){return e.distance-t.distance})),e.abrupt("return",a.slice(0,5));case 9:case"end":return e.stop()}}),e,this)})))}},{key:"getGeocode",value:function(e){var t=new this.google.maps.Geocoder,n={address:e,region:"CH",componentRestrictions:{country:"CH"}};return new Promise((function(e,r){t.geocode(n,(function(t,n){"OK"===n?e(t[0]):r({result:t,status:n})}))}))}},{key:"checkGarageSelectionValidity",value:function(){return Op(this,void 0,void 0,ht().mark((function e(){var t,n,r=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.garageListWrapper.querySelectorAll(".amag-appointment-overview__garage input"),this.garageSelectionOffCanvasErrorMessage.classList.remove("show"),t.forEach((function(e){e.checked&&(n=r.allGarages.find((function(t){return t.id===e.value})))})),n){e.next=7;break}return this.garageSelectionOffCanvasErrorMessage.classList.add("show"),this.offCanvasService.getOffCanvasBox().scrollTop=0,e.abrupt("return");case 7:return e.next=9,this.saveGarageAsFavourite(n);case 9:case"end":return e.stop()}}),e,this)})))}},{key:"saveGarageAsFavourite",value:function(e){return Op(this,void 0,void 0,ht().mark((function t(){var n=this;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.garageSelectionOffCanvasLoadingSpinner.show(),ai.setFavoriteGarage(e.id,(function(t){"OK"===t.status?((0,it.yZ)(e),n.favoriteGarageObj=e,n.favoriteGarageId=e.id,n.allGarages.forEac
6h((function(t){t.id===e.id?t.rememberedGarage=!0:t.rememberedGarage=!1})),n.updateGarageInfoWithMap().then((function(){n.isLastAppointmentGarageSameAsFavorite()&&n.hideGarageInfoNotification(),n.garageSelectionOffCanvasLoadingSpinner.hide(),n.offCanvasService.closeOffCanvas(),n.addToast(e.name)}))):(console.error("Error saving garage as favorite:",t),n.garageSelectionOffCanvasLoadingSpinner.hide())}));case 2:case"end":return t.stop()}}),t,this)})))}},{key:"initEventListeners",value:function(){return Op(this,void 0,void 0,ht().mark((function e(){var t,n,r,a,i=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.element.querySelector(".amag-appointment-overview__remembered-garage-button"),n=this.element.querySelector(".amag-appointment-overview__remembered-garage-title-change-garage-link"),r=this.element.querySelector(".amag-appointment-overview__remembered-garage-notification-icon--close"),a=this.element.querySelector(".amag-appointment-overview__remembered-garage-notification-link"),t.addEventListener("click",(function(){i.openGarageSelectionOffCanvas()})),n.addEventListener("click",(function(e){i.openGarageSelectionOffCanvas(),e.preventDefault()})),r.addEventListener("click",(function(e){i.setGarageInfoNotificationClosed(),i.hideGarageInfoNotification(),e.preventDefault()})),a.addEventListener("click",(function(e){i.saveGarageAsFavourite(i.allGarages.find((function(e){return e.id==="".concat(i.lastBookedAppointmentGarage._id)}))),i.setGarageInfoNotificationClosed(),i.hideGarageInfoNotification(),e.preventDefault()}));case 8:case"end":return e.stop()}}),e,this)})))}},{key:"initGarageSearchListener",value:function(){return Op(this,void 0,void 0,ht().mark((function e(){var t=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.garageSearchService.getEventEmitter().on(ql.GARAGE_SEARCH_EVENT,(function(e){return Op(t,void 0,void 0,ht().mark((function t(){var n,r=this;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=document.createDocumentFragment(),!(e.length>0)){t.next=5;break}e.forEach((function(e,t){n.appendChild(r.createGarageTile(e,t))})),t.next=9;break;case 5:return t.next=7,this.findNearestGarages();case 7:t.sent.forEach((function(e,t){n.appendChild(r.createGarageTile(e,t))}));case 9:this.garageListWrapper.innerHTML="",this.garageListWrapper.appendChild(n);case 11:case"end":return t.stop()}}),t,this)})))}));case 1:case"end":return e.stop()}}),e,this)})))}}])}();Dp([kh,Pp("design:type",HTMLElement)],Rp.prototype,"appointmentTemplate",void 0),Dp([kh,Pp("design:type",HTMLElement)],Rp.prototype,"garageInfoWithMapTemplate",void 0),Dp([kh,Pp("design:type",HTMLElement)],Rp.prototype,"vehicleTemplate",void 0),Rp=Dp([(0,At.d)({selector:".amag-appointment-overview"}),Pp("design:paramtypes",[HTMLElement])],Rp),function(e){e.DASHBOARD="DASHBOARD",e.CONTRACT_AND_OPTIONS="CONTRACT_AND_OPTIONS",e.DAMAGE="DAMAGE",e.CUSTOMER_SERVICE="CUSTOMER_SERVICE"}(yp||(yp={})),function(e){e.SUBMITTED="SUBMITTED",e.PROCESSING="PROCESSING",e.DENIED="DENIED",e.ACTIVE="ACTIVE",e.CANCELLED="CANCELLED",e.RETURNED="RETURNED",e.FINISHED="FINISHED"}(_p||(_p={})),function(e){e.PETROL="petrol",e.ELECTRIC="electric",e.GAS="gas",e.DIESEL="diesel",e.HYBRID="hybrid"}(bp||(bp={})),function(e){e.PENDING="PENDING",e.DENIED="DENIED",e.ACCEPTED="ACCEPTED"}(wp||(wp={})),function(e){e.VEHICLE_DETAILS="#vehicleDetailsOffCanvas",e.DATATRANS="#datatransOffCanvas",e.DOCUMENTS="#documentsOffCanvas",e.MILEAGE_PACKAGES="#mileagePackageOffCanvas",e.PROFILE="#profileOffCanvas",e.CANCEL="#cancelOffCanvas"}(Sp||(Sp={})),function(e){e.SCREEN_ONE="#autoAboOffCanvasScreenOne",e.SCREEN_TWO="#autoAboOffCanvasScreenTwo",e.SCREEN_THREE="#autoAboOffCanvasScreenThree",e.SCREEN_FOUR="#autoAboOffCanvasScreenFour"}(Cp||(Cp={})),function(e){e.CLOSE_CANVAS="customAutoAboCloseOffCanvas"}(Ep||(Ep={})),function(e){e.API_DATA="autoabo-api-data",e.MAIL="autoabo-send-mail",e.SUMMARY="autoabo-summary-api",e.VEHICLE_POOL="autoabo-vehiclepool-api",e.CANCEL="autoabo-summary-api-cancel",e.DOCUMENTS="autoabo-summary-api-documents",e.CREDITCARD_UPDATE="autoabo-summary-api-creditcard-update",e.RECALCULATE="autoabo-summary-api-recalculate",e.MILEAGE_UPDATE="autoabo-summary-api-mileage-update"}(xp||(xp={})),function(e){e.DATATRANS_3D_SECURE="from3DSecure",e.SUBSCRIPTION_NO="subscriptionNo",e.UPP_TRANSACTION_ID="uppTransactionId",e.DATATRANS_3D_SECURE_STATUS="status_3d",e.DATATRANS_CARD_ERROR="card_error"}(Ap||(Ap={})),function(e){e.SERVER_ERROR="SERVER_ERROR",e.CONNECTION_ERROR="CONNECTION_ERROR"}(kp||(kp={})),function(e){e.AUTOABO_SUMMARY_API_URL="autoaboSummaryApiUrl",e.AUTOABO_SUMMARY_API_KEY="autoaboSummaryApiKey",e.AUTOABO_VEHICLE_POOL_API_URL="vehiclePoolApiUrl",e.AUTOABO_VEHICLE_POOL_API_KEY="vehiclePoolApiKey"}(Tp||(Tp={})),function(e){e.MASTERCARD="ECA",e.VISA="VIS",e["AMERICAN EXPRESS"]="AMX",e["DINERS CLUB"]="DIN",e.JCB="JCB"}(Lp||(Lp={})),function(e){e.ECA="MasterCard",e.VIS="VISA",e.AMX="American Express",e.DIN="Diners Club",e.JCB="JCB"}(Ip||(Ip={}));_p.ACTIVE,Lp.MASTERCARD,new Date("2023-03-31"),new Date("2023-01-31"),new Date("2022-09-29"),new Date("2022-12-31"),_p.FINISHED,Lp.MASTERCARD,new Date("2023-03-31"),new Date("2023-01-31"),new Date("2022-09-29"),new Date("2022-12-31"),_p.CANCELLED,wp.PENDING,Lp.MASTERCARD,new Date("2023-03-31"),new Date("2023-01-31"),new Date("2022-09-29"),new Date("2022-12-31"),_p.PROCESSING,Lp.MASTERCARD,new Date("2023-03-31"),new Date("2023-01-31"),new Date("2022-09-29"),new Date("2022-12-31"),_p.RETURNED,Lp.MASTERCARD,new Date("2023-03-31"),new Date("2023-01-31"),new Date("2022-09-29"),new Date("2022-12-31"),_p.SUBMITTED,Lp.MASTERCARD,new Date("2023-03-31"),new Date("2023-01-31"),new Date("2022-09-29"),new Date("2022-12-31"),_p.ACTIVE,Lp.MASTERCARD,new Date("2023-03-31"),new Date("2023-01-31"),new Date("2022-09-29"),new Date("2022-12-31"),_p.PROCESSING,Lp.MASTERCARD,new Date("2023-03-31"),new Date("2023-01-31"),new Date("2022-09-29"),new Date("2022-12-31"),_p.FINISHED,Lp.MASTERCARD,new Date("2023-03-31"),new Date("2023-01-31"),new Date("2022-09-29"),new Date("2022-12-31"),_p.SUBMITTED,Lp.MASTERCARD,new Date("2023-03-31"),new Date("2023-01-31"),new Date("2022-09-29"),new Date("2022-12-31"),_p.ACTIVE,Lp.MASTERCARD,new Date("2023-03-31"),new Date("2023-01-31"),new Date("2022-09-29"),new Date("2022-12-31"),_p.CANCELLED,wp.ACCEPTED,Lp.MASTERCARD,new Date("2023-03-31"),new Date("2023-01-31"),new Date("2022-09-29"),new Date("2022-12-31"),_p.CANCELLED,wp.DENIED,Lp.MASTERCARD,new Date("2023-03-31"),new Date("2023-01-31"),new Date("2022-09-29"),new Date("2022-12-31"),_p.DENIED,Lp.MASTERCARD,new Date("2023-03-31"),new Date("2023-01-31"),new Date("2022-09-29"),new Date("2022-12-31");var Mp=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},qp=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Np=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this.initComponent()}),[{key:"initComponent",value:function(){this.checkAutoAboLoginRedirect()}},{key:"checkAutoAboLoginRedirect",value:function(){var e=JSON.parse(sessionStorage.getItem(Gt.autoAbo.obj));if(e){var t=e[Gt.autoAbo.lastPageLogin],n=(0,it.EW)();if(n||!t){if(n&&t){var r=e[Gt.autoAbo.page];return sessionStorage.removeItem(Gt.autoAbo.obj),void(window.location.href=r)}}else sessionStorage.removeItem(Gt.autoAbo.obj)}}}])}();Np=Mp([(0,At.d)({selector:"body",onDomLoaded:!0}),qp("design:paramtypes",[])],Np);var Vp=__webpack_require__(79364),Fp=__webpack_require__(63662);function Bp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bp=function(){return!!e})()}function jp(e){var t="function"==typeof Map?new Map:void 0;return jp=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Bp())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&(0,Fp.A)(a,n.prototype),a}(e,arguments,(0,Ja.A)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,Fp.A)(n,e)},jp(e)}var Hp=__webpack_require__(15893),Gp=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Up={main:".autoabo-error-container.main",offCanvas:".autoabo-error-container.off-canvas",messages:{serverError:".autoabo-error-message-server",connectionError:".autoabo-error-message-connection",datatransError:".autoabo-error-message-datatrans"},code:".autoabo-error-code",link:".autoabo-error-link"},Wp=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this.errorContainerMain=document.querySelector(Up.main),this.errorContainerOffCanvas=document.querySelector(Up.offCanvas)}),[{key:"scrollToErrorContainer",value:function(){this.errorContainerOffCanvas.scrollIntoView({behavior:"smooth"})}},{key:"showError",value:function(e,t,n,r){var a=r?this.errorContainerMain:this.errorContainerOffCanvas,i=a.querySelector(Up.messages.serverError),o=a.querySelector(Up.messages.connectionError),s=a.querySelector(Up.code),c=a.querySelector(Up.link);e?(n===kp.SERVER_ERROR?(i.classList.remove("d-none"),o.classList.add("d-none"),s.textContent="[CODE: ".concat(t.httpResponse.status,"]"),s.classList.remove("d-none"),c.classList.add("d-none")):n===kp.CONNECTION_ERROR&&(i.classList.add("d-none"),o.classList.remove("d-none"),s.classList.add("d-none"),c.classList.remove("d-none")),a.classList.remove("d-none"),this.scrollToErrorContainer()):a.classList.add("d-none")}},{key:"showDatatransError",value:function(e,t){var n=this.errorContainerOffCanvas,r=n.querySelector(Up.messages.datatransError),a=n.querySelector(Up.code),i=n.querySelector(Up.link);e&&t?(r.textContent='During action "'.concat(t.action,'" we encountered the following error: "').concat(t.error,'" '),r.classList.remove("d-none"),a.classList.add("d-none"),i.classList.add("d-none"),n.classList.remove("d-none"),this.scrollToErrorContainer()):n.classList.add("d-none")}}])}();Wp=Gp([nn.K],Wp);var zp=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},$p=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Yp=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this.spinnerModal=document.getElementById("amagAutoaboModal"),this.cardInformationModal=document.getElementById("cardInformationModal")}),[{key:"isAuthorMode",value:function(){return"true"===document.querySelector(".autoabo-overview__container").getAttribute("data-isauthormode")}},{key:"getHeaderLoginElem",value:function(){return document.querySelector(".amag-header__loginFlyout")}},{key:"getLanguage",value:function(){return document.querySelector("html").getAttribute("lang")}},{key:"getLanguageLocale",value:function(){return(0,it.Z0)()}}
6,{key:"dateToLocaleString",value:function(e){return e.toLocaleDateString("de-CH",{year:"numeric",month:"2-digit",day:"2-digit"})}},{key:"timeToLocaleString",value:function(e,t){return e.toLocaleTimeString(t||"de-CH",{hour:"2-digit",minute:"2-digit"})}},{key:"addSeperators",value:function(e,t){var n=e.toLocaleString("de-CH",{maximumFractionDigits:2}),r=n.split(".");return(0===parseInt(r[1])||Number.isNaN(parseInt(r[1])))&&t&&(n=r[0]+".-"),n}},{key:"getLocalDateStringFormated",value:function(e){return this.dateToLocaleString(new Date(e))}},{key:"getDayDifference",value:function(e,t){return Math.round(Math.abs(Number(t)-Number(e))/864e5)}},{key:"formatUIDToDkiID",value:function(e){var t=e.substring(0,8),n=e.substring(8,12),r=e.substring(12,16),a=e.substring(16,20),i=e.substring(20,32);return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(a,"-").concat(i)}},{key:"openOrCloseSpinner",value:function(e){e?(document.querySelector("body").classList.add("no-scroll"),this.spinnerModal.showModal()):(document.querySelector("body").classList.remove("no-scroll"),this.spinnerModal.close())}},{key:"openOrCloseCardInformationModal",value:function(e){e?(document.querySelector("body").classList.add("no-scroll"),this.cardInformationModal.showModal()):(document.querySelector("body").classList.remove("no-scroll"),this.cardInformationModal.close())}},{key:"mapCardBrandForSRS",value:function(e){return Ip[e]}},{key:"mapCardBrandForDatatrans",value:function(e){return Lp[e.toUpperCase()]}},{key:"startHttpCallWithSpinner",value:function(e){var t=this;return(0,Vp.of)(!0).pipe((0,Vp.tap)((function(){return t.openOrCloseSpinner(!0)})),(0,Vp.switchMap)((function(){return e})),(0,Vp.tap)((function(){return t.openOrCloseSpinner(!1)})))}},{key:"removeHtmlFromMask",value:function(e){return e=(e=e.replaceAll('<span class="autoabo-password-spaces"></span>',"")).replaceAll('<span class="autoabo-password-dots"></span>',"x")}},{key:"mapCardInformation",value:function(e){return e.maskedNumber=e.maskedNumber.match(/[\s\S]{1,4}/g).join('<span class="autoabo-password-spaces"></span>'),e.maskedNumber=e.maskedNumber.replaceAll(/[\+\*xX]/gim,'<span class="autoabo-password-dots"></span>'),e.brand=this.mapCardBrandForDatatrans(e.brand),e}},{key:"getUserMobilePhoneNumber",value:function(e){var t={countryCode:"",phoneNumber:""},n=e.phones.find((function(e){return"mobile"===e.type})).number;return n.startsWith("+41")?(t.countryCode="+41",t.phoneNumber=n.replace("+41","")):n.startsWith("+49")?(t.countryCode="+49",t.phoneNumber=n.replace("+49","")):n.startsWith("+33")?(t.countryCode="+33",t.phoneNumber=n.replace("+33","")):n.startsWith("+39")?(t.countryCode="+39",t.phoneNumber=n.replace("+39","")):n.startsWith("+423")?(t.countryCode="+423",t.phoneNumber=n.replace("+423","")):n.startsWith("+43")&&(t.countryCode="+43",t.phoneNumber=n.replace("+43","")),t}}])}();function Zp(e,t,n){return t=(0,Ja.A)(t),(0,Xa.A)(e,Kp()?Reflect.construct(t,n||[],(0,Ja.A)(e).constructor):t.apply(e,n))}function Kp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kp=function(){return!!e})()}Yp=zp([nn.K,$p("design:paramtypes",[])],Yp);var Xp=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Jp=function(e){function t(e,n){var r;return(0,pt.A)(this,t),(r=Zp(this,t,[n])).name="CustomServerError",r.httpResponse=e,r}return(0,Qa.A)(t,e),(0,ft.A)(t,[{key:"httpResponse",get:function(){return this.httpResponse},set:function(e){this.httpResponse=e}}])}(jp(Error)),Qp=function(e){function t(e){var n;return(0,pt.A)(this,t),(n=Zp(this,t,[e])).name="CustomTimeoutError",n}return(0,Qa.A)(t,e),(0,ft.A)(t)}(jp(Error)),ef={each:3e4,with:function(){return(0,Vp.throwError)((function(){return new Qp("A timeout occured")}))}},tf=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this._http=new Hp.RxJSHttpClient,this._errorService=new Wp,this._utilService=new Yp,this.initialSummaryHttpConfig={},this.initialVehicleHttpConfig={}}),[{key:"getSummary",value:function(e,t){var n={headers:Object.assign({},this.initialSummaryHttpConfig.headers),body:{dkiId:e,pid:t}},r={body:JSON.stringify(n.body)};return Object.assign(r,this.initialSummaryHttpConfig.headers),(0,Vp.from)((0,yr.KA)(xp.SUMMARY,"json",r)).pipe((0,Vp.map)((function(e){var t;return(null===(t=e.data)||void 0===t?void 0:t.length)>0?JSON.parse(e.data):(0,Vp.throwError)((function(){return new Error(e.data)}))})),(0,Vp.take)(1),(0,Vp.timeout)(ef),this.handleError([]))}},{key:"getVehicleInformation",value:function(e){var t={VIN:e,expand:"brand($expand=texts),exterior
6Color($expand=texts),interiorColor($expand=texts),roofColor($expand=texts),certificate,equipments($expand=texts),images($expand=media),modelType($expand=bodyType($expand=texts),engine($expand=primaryFuel($expand=texts),secondaryFuel($expand=texts),primaryAverageConsumptionUnit($expand=texts),secondaryAverageConsumptionUnit($expand=texts),capacityUnit($expand=texts)),transmission($expand=driveType($expand=texts),shiftType($expand=texts)))"};return Object.assign(t,this.initialVehicleHttpConfig.headers),(0,Vp.from)((0,yr.KA)(xp.VEHICLE_POOL,"json",t)).pipe((0,Vp.map)((function(e){var t;return(null===(t=e.data)||void 0===t?void 0:t.length)>0?JSON.parse(e.data):(0,Vp.throwError)((function(){return new Error(e.data)}))})),(0,Vp.take)(1),(0,Vp.timeout)(ef),this.handleError([]))}},{key:"getGarageData",value:function(e){return(0,Vp.from)(function(e){return Dl.apply(this,arguments)}(e)).pipe((0,Vp.take)(1),(0,Vp.timeout)(ef),this.handleError(!1))}},{key:"getKilometerRecalculation",value:function(e,t,n,r){var a={headers:Object.assign({},this.initialSummaryHttpConfig.headers),body:{mileage:t,pid:r,dkiId:n}},i={body:JSON.stringify(a.body),subscriptionId:e};return(0,Vp.from)((0,yr.KA)(xp.RECALCULATE,"json",i)).pipe((0,Vp.map)((function(e){var t;return(null===(t=e.data)||void 0===t?void 0:t.length)>0?JSON.parse(e.data):(0,Vp.throwError)((function(){return new Error(e.data)}))})),(0,Vp.take)(1),(0,Vp.timeout)(ef),this.handleError([]))}},{key:"getDocumentLink",value:function(e,t){var n={subscriptionNo:e,documentType:t};return(0,Vp.from)((0,yr.KA)(xp.DOCUMENTS,"json",n,!0)).pipe((0,Vp.map)((function(e){return e.size>0?e:(0,Vp.throwError)((function(){return new Error("Error creating a Document Blob")}))})),(0,Vp.take)(1),(0,Vp.timeout)(ef),this.handleError(!1))}},{key:"updateCardInformation",value:function(e){var t,n={headers:Object.assign({},this.initialSummaryHttpConfig.headers),body:{name:e.cardInformation.name,maskedNumber:this._utilService.removeHtmlFromMask(e.cardInformation.maskedNumber),expirationDate:e.cardInformation.expirationDate,token:e.cardInformation.token,brand:this._utilService.mapCardBrandForSRS(e.cardInformation.brand.toUpperCase()),applyToAllSubscriptions:null!==(t=e.cardInformation.applyToAllSubscriptions)&&void 0!==t&&t,subscriptionNo:e.subscriptionNo,dkiId:e.userData.UID,pid:e.userData.data.PID}},r={body:JSON.stringify(n.body)};return(0,Vp.from)((0,yr.KA)(xp.CREDITCARD_UPDATE,"json",r)).pipe((0,Vp.map)((function(e){var t;return(null===(t=e.data)||void 0===t?void 0:t.length)>0?JSON.parse(e.data):(0,Vp.throwError)((function(){return new Error(e.data)}))})),(0,Vp.take)(1),(0,Vp.timeout)(ef),this.handleError(null))}},{key:"cancleSubscriptions",value:function(e,t){var n={headers:Object.assign({},this.initialSummaryHttpConfig.headers),body:{dkiId:t.dkiId,pid:t.pid,nextPossibleCancellationDate:t.nextPossibleCancellationDate,returnDate:t.returnDate,returnTime:t.returnTime,returnDealerId:t.returnDealerId}},r={body:JSON.stringify(n.body),subscriptionId:e};return this._utilService.startHttpCallWithSpinner((0,Vp.from)((0,yr.KA)(xp.CANCEL,"json",r)).pipe((0,Vp.map)((function(e){return 204===e.status||(0,Vp.throwError)((function(){return new Error(e.data)}))})),(0,Vp.take)(1),(0,Vp.timeout)(ef),this.handleError(!1)))}},{key:"updateMileage",value:function(e,t,n,r){var a={headers:Object.assign({},this.initialSummaryHttpConfig.headers),body:{mileage:t,pid:r,dkiId:n}},i={body:JSON.stringify(a.body),subscriptionId:e};return this._utilService.startHttpCallWithSpinner((0,Vp.from)((0,yr.KA)(xp.MILEAGE_UPDATE,"json",i)).pipe((0,Vp.map)((function(e){return 204===e.status||(0,Vp.throwError)((function(){return new Error(e.data)}))})),(0,Vp.take)(1),(0,Vp.timeout)(ef),this.handleError(!1)))}},{key:"setUpSecureFields",value:function(e,t){return this._http.post(e,t).pipe((0,Vp.switchMap)((function(e){return e.ok?e.json():(0,Vp.throwError)((function(){return new Jp(e)}))})),(0,Vp.take)(1),(0,Vp.timeout)(ef),this.handleError(!1))}},{key:"getTransactionStatus",value:function(e,t){return this._http.get("".concat(e,"?transactionId=").concat(t)).pipe((0,Vp.switchMap)((function(e){return e.ok?e.json():(0,Vp.throwError)((function(){return new Jp(e)}))})),(0,Vp.take)(1),(0,Vp.timeout)(ef),this.handleError(!1))}},{key:"getDatatransAuthorization",value:function(e,t){return this._http.post("".concat(e,"?transactionId=").concat(t),{body:{currency:"CHF",refno:"1100033049"}}).pipe((0,Vp.switchMap)((function(e){return e.json()})),(0,Vp.switchMap)((function(e){return(0,Vp.of)(!!e.acquirerAuthorizationCode)})),(0,Vp.take)(1),(0,Vp.timeout)(ef),this.handleError(!1))}},{key:"sendMail",value:function(e){var t=e;return(0,Vp.from)((0,yr.O)(xp.MAIL,"json",t)).pipe((0,Vp.take)(1),(0,Vp.timeout)(ef),this.handleError(null))}},{key:"handleError",value:function(e){var t=this;return function(n){return n.pipe((0,Vp.catchError)((function(n){return console.error("ERROR: ",n),t._errorService.showError(!0,n,kp.CONNECTION_ERROR,!0),(0,Vp.of)(e)})),(0,Vp.catchError)((function(n){return console.error("ERROR: ",n),t._errorService.showError(!0,n,kp.SERVER_ERROR,!0),(0,Vp.of)(e)})),(0,Vp.catchError)((function(e){throw console.error("ERROR: ",e),t._errorService.showError(!0,e,kp.SERVER_ERROR,!0),e})))}}}])}();tf=Xp([nn.K],tf);var nf={"@font-face":{"*":{fontFamily:"amag_textlight",fontStyle:"normal",fontWeight:"300",fontSize:"20px",lineHeight:"30px",src:"url('amag_text-light-webfont.woff') format('woff')"}},"*":{fontFamily:"amag_textlight",fontStyle:"normal",fontWeight:"300",fontSize:"20px",lineHeight:"30px"},cardNumber:{height:"45px",width:"100%",borderBottom:"1px solid #bdbdbd"},cvv:{height:"45px",width:"100%",borderBottom:"1px solid #bdbdbd"}},rf={selectors:{self:".autoabo-overview__offcanvas__wrapper",backdrop:".autoabo-off-canvas__backdrop",canvas:".autoabo-off-canvas__canvas-box",closeButton:".autoabo-off-canvas__close-btn",closeButtonIconDefault:".autoabo-off-canvas__close-btn-icon",closeButtonIconBackChevron:".autoabo-off-canvas__back-btn-icon",cancelButton:".autoabo-off-canvas__cancel-button",innerContainer:".autoabo-off-canvas__inner-container",confirmButton:".autoabo-off-canvas__confirm-button",footer
6:".autoabo-off-canvas__canvas-box-lower",mileagePackageView:".autoabo-off-canvas__inner-container#mileagePackageOffCanvas"}},af=".autoabo-off-canvas__inner-container#cancelOffCanvas",of=".cancel-offCanvas",sf={header:".cancel-offCanvas__data-header",self:".cancel-offCanvas__data",row:{self:".cancel-offCanvas__data-row",name:".cancel-offCanvas__data-name",value:".cancel-offCanvas__data-value"}},cf={subscription:"#autoaboCancelOffCanvasSubscriptionContainer",car:"#autoaboCancelOffCanvasCarContainer",garage:{self:"#autoaboCancelOffCanvasGarageContainer",name:".cancel-offCanvas__garage-name",address:".cancel-offCanvas__garage-address",city:".cancel-offCanvas__garage-city",unknown:".cancel-offCanvas__garage-unknown"}},lf={datePicker:".cancel-offCanvas__datepicker",datePickerError:".cancel-offCanvas__datepicker--error",holidayElement:".cancel-offCanvas__js-holidays",dropdown:{container:"#offCanvas-time-dropdown",select:"#cancel-offCanvas-time-dropdown",label:"#cancel-offCanvas-time-dropdown-label"}},uf={date:".cancel-offCanvas-three__date",garage:{name:".cancel-offCanvas-three__garage-name",street:".cancel-offCanvas-three__garage-street",city:".cancel-offCanvas-three__garage-city",unknown:".cancel-offCanvas-three__garage-unknown"}},df={selectors:{container:".autoabo-off-canvas__inner-container#mileagePackageOffCanvas",box:".mileage-package__off-canvas-box",mileageSelectionContainer:".mileage-package__selection",radioSelectLabel:".mileage-package__selection-radio-btn-label",radioSelectInput:".mileage-package__selection-radio-btn-input",priceNewContainer:".mileage-package__price-info-new",priceNewDate:".mileage-package__price-info-new-label-date",priceNew:".mileage-package__price-info-new-amount",priceCurrent:".mileage-package__price-info-current-amount",checkboxConfirmLabel:".mileage-package__checkbox-label",checkboxConfirmInput:".mileage-package__checkbox-input",confirmBtn:".autoabo-off-canvas__confirm-button",invalidMileage:".mileage-package__selection-container .validation-error-msg.mileage",invalidConsent:".mileage-package__checkbox-container .validation-error-msg.consent",headerDescription:".mileage-package__header-description"},classes:{mileageSelectionLabel:"mileage-package__selection-radio-btn-label",mileageSelectionInput:"mileage-package__selection-radio-btn-input",mileageSelectionText:"mileage-package__selection-radio-btn-km",mileageNowActiveLabel:"mileage-package__selection-radio-btn-current-active",selected:"selected",active:"active",disabled:"disabled",show:"show",invalid:"invalid"},i18n:{km:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.tab.contract.offCanvas.km.label"),nowActive:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.tab.contract.offCanvas.nowActive.label")}},hf={container:".autoabo-off-canvas__inner-container#documentsOffCanvas",box:".autoabo-documents-canvas-box",documentsContainer:".autoabo-documents__documents-container",yearContainer:".autoabo-documents__document-year-container",yearTitle:".autoabo-documents__document-title",document:".autoabo-documents__document-element",documentName:".autoabo-documents__document-name",documentDownloadIconContainer:".autoabo-documents__document-download-icon-container"},pf={yearContainer:"autoabo-documents__document-year-container",yearTitle:"autoabo-documents__document-title",document:"autoabo-documents__document-element",documentName:"autoabo-documents__document-name",documentSvg:"autoabo-documents__document-svg",downloadIconContainer:"autoabo-documents__document-download-icon-container",downloading:"downloading"},ff={header:{self:".autoabo-offcanvas__vehicle-details__header",name:".autoabo-offcanvas__vehicle-details__header-text__main",description:".autoabo-offcanvas__vehicle-details__header-text__specifics",image:"#vehicleDetailsHeaderImage"},carData:{self:".autoabo-offcanvas__vehicle-details__data#carData",dataRow:".autoabo-offcanvas__vehicle-details__data-row",rowName:".autoabo-offcanvas__vehicle-details__data-row-field#name",rowValue:".autoabo-offcanvas__vehicle-details__data-row-field#value"},tabs:".autoabo-offcanvas__vehicle-details__tabs-tab",additionalInformation:".autoabo-offcanvas__vehicle-details__data-row__additional-information",equipmentData:".autoabo-offcanvas__vehicle-details__data#equipment",specialEquipment:".autoabo-offcanvas__vehicle-details__data#specialEquipment"},mf={self:".autoabo__off-canvas__datatrans",allContractsCheckbox:"#autoaboDatatransAllContractsCheckBox",viewDialog:{self:".autoabo__off-canvas__datatrans__view-dialog",logo:".autoabo__off-canvas__datatrans__view-dialog__container__data__image",cardNumber:".autoabo__off-canvas__datatrans__view-dialog__container__data__card__cardnumber",cardOwner:".autoabo__off-canvas__datatrans__view-dialog__container__data__card__owner-data__name",expiryDate:".autoabo__off-canvas__datatrans__view-dialog__container__data__card__owner-data__expiry-date",allContractsCheckbox:{label:".autoabo__off-canvas__datatrans__view-dialog__custom-checkbox__label.all-contracts",checkbox:".autoabo__off-canvas__datatrans__view-dialog__custom-checkbox__checkbox.all-contracts",input:".autoabo__off-canvas__datatrans__view-dialog__custom-checkbox__input.all-contracts"},buttons:{closeButton:".autoabo__off-canvas__datatrans__view-dialog__close-btn",showReplaceDialog:".autoabo__off-canvas__datatrans__view-dialog__container__data__replace",save:".autoabo__off-canvas__datatrans__buttons-cta__save"}},replaceDialog:{self:".autoabo__off-canvas__datatrans__replace-dialog",form:{self:".autoabo__off-canvas__datatrans__replace-dialog__form",cardNumber:{cardNumberLabel:".autoabo__off-canvas__datatrans__replace-dialog__form__credit-number-label",cardNumberPlaceholder:"#cardNumberPlaceholder"},dropdowns:{self:".autoabo__off-canvas__datatrans__replace-dialog__form__dropdowns",month:{self:".autoabo__off-canvas__datatrans__replace-dialog__form__dropdowns__month",wrapper:"div#monthDropdown.select2-wrapper",select:"#datatransOffCanvasMonthDropdown",label:"#datatransOffCanvasMonthDropdownLabel",value:"#select2-datatransOffCanvasMonthDropdown-container"},year:{self:".autoabo__off-canvas__datatrans__replace-dialog__form__dropdowns__year",wrapper:"div#yearDropdown.select2-wrapper",select:"#datatransOffCanvasYearDropdown",label:"#datatransOffCanvasYearDropdownLabel",value:"#select2-datatransOffCanvasYearDropdown-container"}},securityCode:{securityCodeLabel:".autoabo__off-canvas__datatrans__replace-dialog__form__cvv-label",securityCodePlaceholder:"#cvvPlaceholder"},creditCardOwner:{self:".autoabo__off-canvas__datatrans__replace-dialog__form__c
6ard-owner",input:"#datatransOffCanvasCardOwnerInput"},allContractsCheckbox:{label:".autoabo__off-canvas__datatrans__replace-dialog__custom-checkbox__label.all-contracts",checkbox:".autoabo__off-canvas__datatrans__replace-dialog__custom-checkbox__checkbox.all-contracts",input:".autoabo__off-canvas__datatrans__replace-dialog__custom-checkbox__input.all-contracts"},consentCheckbox:{label:".autoabo__off-canvas__datatrans__replace-dialog__custom-checkbox__label.consent",checkbox:".autoabo__off-canvas__datatrans__replace-dialog__custom-checkbox__checkbox.consent",input:".autoabo__off-canvas__datatrans__replace-dialog__custom-checkbox__input.consent"},errors:{all:".validation-error-msg",cardNumber:".validation-error-msg.card-number",monthDropdown:".validation-error-msg.month",yearDropdown:".validation-error-msg.year",securityCode:".validation-error-msg.cvv",creditCardOwner:".validation-error-msg.card-owner",consent:".validation-error-msg.consent.datatrans"}},prepaidCardError:{self:".autoabo__off-canvas__datatrans__replace-dialog__prepaid-card-error",text:".autoabo__off-canvas__datatrans__replace-dialog__prepaid-card-error__text"},"3DSecureError":{self:".autoabo__off-canvas__datatrans__replace-dialog__3d-secure-error",text:".autoabo__off-canvas__datatrans__replace-dialog__3d-secure-error__header-text",span:".autoabo__off-canvas__datatrans__replace-dialog__3d-secure-error__header-text__span",noSpan:".autoabo__off-canvas__datatrans__replace-dialog__3d-secure-error__header-text__span-no"},buttons:{back:".autoabo__off-canvas__datatrans__replace-dialog__back-btn",cta:".autoabo__off-canvas__datatrans__buttons-cta__replace"}}},vf="#autoaboContractContainer",gf={card:".autoabo-contract__return",date:".autoabo-contract__return-date",status:".autoabo-contract__return-date-status",link:".autoabo-contract__card-content--link",garage:{name:".autoabo-contract__return-garage",street:".autoabo-contract__return-street",city:".autoabo-contract__return-city"}},yf={value:".autoabo-contract__options-value",addition:".autoabo-contract__options-addition",card:".autoabo-contract__options",editButton:".autoabo-contract__card-headline-edit.edit-option"},_f={replaceButton:".autoabo-contract__card-headline-edit.replace-payment",number:".autoabo-contract__payment-number",owner:".autoabo-contract__payment__card-data__owner",card:".autoabo-contract__payment",date:".autoabo-contract__payment__card-data__date",image:".autoabo-contract__payment-image"},bf={contract:{number:".autoabo-contract__contract-number",entry:".autoabo-contract__contract-entry",start:".autoabo-contract__contract-start",duration:".autoabo-contract__contract-duration",prolongination:".autoabo-contract__contract-prolongination",prolonginationRow:".autoabo-contract__card-row-prolongination",end:".autoabo-contract__contract-end",endRow:".autoabo-contract__card-row-end",return:".autoabo-contract__contract-return",returnRow:".autoabo-contract__card-row-return"},rate:{hasCurrent:".autoabo-contract__contract-has-current-rate",hasNew:".autoabo-contract__contract-has-new-rate",newRate:".autoabo-contract__rate-new-value",currentRate:".autoabo-contract__rate-current-value",delivery:".autoabo-contract__contract-rate-delivery",newRateDate:".autoabo-contract__contract-new-rate"},caution:{value:".autoabo-contract__caution"},documents:".autoabo-contract__footer-documents"},wf={self:"#autoaboContractViewCancelBox",text:".autoabo-contract__cancel-text",link:".autoabo-contract__cancel-text__link"},Sf={self:"autoabo-customer-service__container",service:{dropdown1:{id:"#autoabo-customer-service-dropdown-1",label:"autoabo-customer-service-dropdown-1-label"},dropdown2:{id:"#autoabo-customer-service-dropdown-2",label:"autoabo-customer-service-dropdown-2-label"},clickElements:{address:".autoabo-customer-service__ts-address",phone:".autoabo-customer-service__ts-phone",send:".autoabo-customer-service__controls-continue"},view:{main:".autoabo-customer-service__main-view",thankYou:".autoabo-customer-service__thank-you"},contract:{number:".autoabo-customer-service__contract-number",entry:".autoabo-customer-service__contract-entry",start:".autoabo-customer-service__contract-start",duration:".autoabo-customer-service__contract-duration",prolongination:".autoabo-customer-service__contract-prolongination",end:".autoabo-customer-service__contract-end",card:".autoabo-customer-service__contract",endRow:".autoabo-customer-service__contract-prolongination-row",prolonginationRow:".autoabo-customer-service__contract-prolongination-row"},user:{name:".autoabo-customer-service__personal-information-name",street:".autoabo-customer-service__personal-information-street",city:".autoabo-customer-service__personal-information-city",country:".autoabo-customer-service__personal-information-country",phone:".autoabo-customer-service__personal-information-phone",mail:".autoabo-customer-service__personal-information-mail"},textarea:{self:".autoabo-customer-service__service-textarea"}},offcanvas:{closeBtn:".autoabo-customer-service-off-canvas__canvas-box-top-icon",box:".autoabo-customer-service-off-canvas__canvas-box",backdrop:".autoabo-customer-service-off-canvas__backdrop",link:".autoabo-customer-service-off-canvas__footer-link-cancel",content:{error:".validation-error-msg",address:{canvas:".autoabo-customer-service-off-canvas__address",country:"#form-text-country",postCode:"#formTextPostCo
6de",city:"#form-text-city",street:"#form-text-street",number:"#form-text-house-number",head:".autoabo-customer-service-off-canvas__headline--address"},phone:{canvas:".autoabo-customer-service-off-canvas__phone",head:".autoabo-customer-service-off-canvas__headline--phone",number:"#formTextMobileNumber",phoneDropdown:{self:"#guest-registration-dropdown-country-code",id:"#guest-registration-dropdown-country-code",label:"guest-registration-dropdown-country-code-label"}}}}},Cf=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Ef=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},xf=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this._utilService=new Yp}),[{key:"updateCreditCardInformationElements",value:function(e){var t,n=document.querySelector(vf),r=document.querySelector(rf.selectors.self);n.querySelector(_f.number).innerHTML=e.cardInformation.maskedNumber,n.querySelector(_f.owner).textContent=e.cardInformation.name,n.querySelector(_f.date).textContent=e.cardInformation.expirationDate,r.querySelector(mf.viewDialog.cardNumber).innerHTML=e.cardInformation.maskedNumber,r.querySelector(mf.viewDialog.cardOwner).textContent=e.cardInformation.name,r.querySelector(mf.viewDialog.expiryDate).textContent=e.cardInformation.expirationDate;var a=e.cardInformation.brand,i=document.querySelector(".autoabo-overview__container").dataset["".concat(null!==(t=a.toLowerCase())&&void 0!==t?t:"default","link")];n.querySelector(_f.image).src=i,um.allSummaries$.pipe((0,Vp.map)((function(t){return t.map((function(t){return(e.cardInformation.applyToAllSubscriptions||t.subscriptionNo===e.subscriptionNo)&&(t.cardInformation=e.cardInformation),t}))})),(0,Vp.take)(1)).subscribe(),this._utilService.openOrCloseSpinner(!1)}},{key:"updateMileagePackageElements",value:function(e){var t=document.querySelector(vf),n={packageKM:"".concat(e.upcomingMileage," KM"),newPackageDate:"".concat(this._utilService.dateToLocaleString(new Date(e.nextBillingCycleDate)))};t.querySelector(yf.addition).textContent="".concat(Ka(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.option.newPackage"),n));var r=document.querySelector("#subscriptionNo-".concat(e.subscriptionNo)),a="".concat(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.carProfile.monthlyKMpackageRenewalDate")," ").concat(this._utilService.dateToLocaleString(new Date(e.nextBillingCycleDate)));a=a.replace("[VARIABLE]","".concat(e.upcomingMileage.toLocaleString("de-CH")," KM")),r.querySelector("#nextMileagePackage").textContent=a,r.querySelector("#nextMileagePackageRow").classList.remove("d-none"),um.allSummaries$.pipe((0,Vp.map)((function(t){return t.map((function(t){return t.subscriptionNo===e.subscriptionNo&&(t.upcomingMileage=e.upcomingMileage),t}))})),(0,Vp.take)(1)).subscribe()}},{key:"updateCustomerViewElements",value:function(e){var t,n,r,a,i,o,s,c;document.querySelector(Sf.service.user.city).textContent="".concat(null===(n=null===(t=e.userData.addresses)||void 0===t?void 0:t.private)||void 0===n?void 0:n.zipCode," ").concat(null===(a=null===(r=e.userData.addresses)||void 0===r?void 0:r.private)||void 0===a?void 0:a.city),document.querySelector(Sf.service.user.country).textContent="".concat(Yd.find((function(t){var n,r;return t.id===(null===(r=null===(n=e.userData.addresses)||void 0===n?void 0:n.private)||void 0===r?void 0:r.countryISOCode3)})).text),document.querySelector(Sf.service.user.street).textContent="".concat(null===(o=null===(i=e.userData.addresses)||void 0===i?void 0:i.private)||void 0===o?void 0:o.street," ").concat(null===(c=null===(s=e.userData.addresses)||void 0===s?void 0:s.private)||void 0===c?void 0:c.houseNumber),document.querySelector(Sf.service.user.mail).textContent="".concat(e.userData.profile.email),document.querySelector(Sf.service.user.phone).textContent="".concat(e.userData.profile.phones.find((function(e){return"mobile"===e.type})).number);var l="";switch(e.userData.profile.gender){case"m":l="".concat(Granite.I18n.get("apps.amag-ch.components.c
6ontent.profileoverview.salutation.manLabel"));break;case"f":l="".concat(Granite.I18n.get("apps.amag-ch.components.content.profileoverview.salutation.womanLabel"))}l+=" ".concat(e.userData.profile.firstName," ").concat(e.userData.profile.lastName),document.querySelector(Sf.service.user.name).textContent=l}}])}();xf=Cf([nn.K,Ef("design:paramtypes",[])],xf);var Af=__webpack_require__(91757),kf=__webpack_require__(74692),Tf=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Lf=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},If=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Df=function(){return(0,ft.A)((function e(){var t=this;(0,pt.A)(this,e),this._utilService=new Yp,this._httpService=new tf,this._htmlContainer=document.querySelector(af),this._language=document.querySelector("html").getAttribute("lang"),this._offCanvasContainerStatics=rf,this._offCanvasContainer=document.querySelector(this._offCanvasContainerStatics.selectors.self),this._closeBtnIcon=this._offCanvasContainer.querySelector(this._offCanvasContainerStatics.selectors.closeButtonIconDefault),this._confirmBtn=this._offCanvasContainer.querySelector(this._offCanvasContainerStatics.selectors.confirmButton),this._closeBtn=this._offCanvasContainer.querySelector(this._offCanvasContainerStatics.selectors.closeButton),this._cancelButton=this._offCanvasContainer.querySelector(rf.selectors.cancelButton),this.getPublicHolidays=function(){return If(t,void 0,void 0,ht().mark((function e(){var t,n;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch((0,wt.d)("amagch-get-public-holidays"));case 2:if(!(t=e.sent).ok){e.next=8;break}return e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n.data);case 8:console.error("Failed to fetch public holidays in function getPublicHolidays.");case 9:case"end":return e.stop()}}),e)})))},this.initViewStateSubscription()}),[{key:"initCancelOffCanvas",value:function(e){return If(this,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s,c,l,u,d,h,p=this;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getPublicHolidays();case 2:return n=t.sent,r=n.map((function(e){return Is().datepicker.formatDate("dd-mm-yy",new Date(e))})),a=(0,it.AQ)(new Date,0),i=(0,it.M7)(a),o=(0,it.AQ)(new Date(e.nextPossibleCancellationDate),0),s=(0,it.M7)(o),c=4===e.garageData.id.length?e.garageData.id:"0".concat(e.garageData.id),t.next=11,(0,it.A$)(c,i,s);case 11:l=t.sent,u=l.length>0?l.map((function(e){return Is().datepicker.formatDate("dd-mm-yy",new Date(e))})):[],(d=kf(lf.datePicker)).attr("data-public-holidays",r.join(",")),d.attr("data-non-work-day",u.join(",")),h=document.querySelector(this._offCanvasContainerStatics.selectors.self),h.querySelector(this._offCanvasContainerStatics.selectors.confirmButton).onclick=function(){p._confirmButtonClickHandler&&p._confirmButtonClickHandler()},this._confirmBtn.textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.view.off-canvas.cancel.buttons.cta"),h.querySelector(this._offCanvasContainerStatics.selectors.closeButton).onclick=function(){p._closeButtonClickHandler&&p._closeButtonClickHandler()},this._offCanvasContainer.querySelector(rf.selectors.cancelButton).textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.view.off-canvas.cancel.buttons.back"),this._subscription=e,this.fillScreenOne(),this.initViewStateSubscription(),this._viewState$.next(Cp.SCREEN_ONE);case 28:case"end":return t.stop()}}),t,this)})))}},{key:"initViewStateSubscription",value:function(){var e=this;this._destroy$=new Vp.Subject,this._viewState$=new Vp.Subject,this._viewState$.pipe((0,Vp.tap)((function(t){e.switchView(t)})),(0,Vp.takeUntil)(this._destroy$)).subscribe()}},{key:"switchView",value:function(e){this._htmlContainer.querySelectorAll(
6of).forEach((function(e){e.classList.add("d-none")})),this._htmlContainer.querySelector(e).classList.remove("d-none");var t=this._offCanvasContainer.querySelector(this._offCanvasContainerStatics.selectors.closeButtonIconDefault),n=this._offCanvasContainer.querySelector(this._offCanvasContainerStatics.selectors.closeButtonIconBackChevron);switch(e){case Cp.SCREEN_ONE:this.changeToScreenOne(t,n);break;case Cp.SCREEN_TWO:this.changeToScreenTwo(t,n);break;case Cp.SCREEN_THREE:this.changeToScreenThree(t,n);break;case Cp.SCREEN_FOUR:this.changeToScreenFour(t,n)}}},{key:"changeToScreenOne",value:function(e,t){var n=this;this._confirmButtonClickHandler=function(){e.classList.add("d-none"),t.classList.remove("d-none"),n.fillScreenTwo(!1),n._viewState$.next(Cp.SCREEN_TWO);var r=window.dataLayer;void 0!==r&&r.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_contract",eventParameter2:"interaction_label",fieldValue2:"step 1 - overview - click next",eventParameter10:"carBrand",fieldValue10:"".concat(n._subscription.vehicleData.brand.code),eventParameter11:"carModel",fieldValue11:"".concat(n._subscription.vehicleData.modelType.code)})},this._closeButtonClickHandler=function(){Wf.closeOffCanvas(),n._destroy$.next(),n._destroy$.complete()}}},{key:"changeToScreenTwo",value:function(e,t){var n=this;this._confirmButtonClickHandler=function(){if(kf(lf.dropdown.select).val()&&kf(lf.datePicker).datepicker("getDate")){e.classList.add("d-none"),t.classList.remove("d-none"),n._cancelationRequest=n.setCancelationRequest(),n.fillScreenThree(),n._viewState$.next(Cp.SCREEN_THREE);var r=window.dataLayer;void 0!==r&&r.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_contract",eventParameter2:"interaction_label",fieldValue2:"step 2 - return date - click next",eventParameter5:"interaction_content",fieldValue5:"".concat(kf(".cancel-offCanvas__datepicker").datepicker("getDate")),eventParameter10:"carBrand",fieldValue10:"".concat(n._subscription.vehicleData.brand.code),eventParameter11:"carModel",fieldValue11:"".concat(n._subscription.vehicleData.modelType.code)})}else kf(lf.dropdown.select).val()||n._htmlContainer.querySelector(lf.dropdown.container).classList.add("invalid"),kf(lf.datePicker).datepicker("getDate")||n._htmlContainer.querySelector(lf.datePicker).classList.add("invalid")},this._closeButtonClickHandler=function(){e.classList.remove("d-none"),t.classList.add("d-none"),n._viewState$.next(Cp.SCREEN_ONE)}}},{key:"changeToScreenThree",value:function(e,t){var n=this;this._confirmButtonClickHandler=function(){n._httpService.cancleSubscriptions(n._subscription.subscriptionNo,n._cancelationRequest).pipe((0,Vp.tap)((function(r){if(r){e.classList.remove("d-none"),t.classList.add("d-none"),n._viewState$.next(Cp.SCREEN_FOUR);var a=window.dataLayer;void 0!==a&&a.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_contract",eventParameter2:"interaction_label",fieldValue2:"step 3 - confirm - click next",eventParameter10:"carBrand",fieldValue10:"".concat(n._subscription.vehicleData.brand.code),eventParameter11:"carModel",fieldValue11:"".concat(n._subscription.vehicleData.modelType.code)})}}))).subscribe()},this._closeButtonClickHandler=function(){n.fillScreenTwo(!0),n._viewState$.next(Cp.SCREEN_TWO)}}},{key:"changeToScreenFour",value:function(e,t){var n=this;this._confirmBtn.textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.view.off-canvas.cancel.buttons.cta.screenFour"),this._confirmButtonClickHandler=function(){e.classList.remove("d-none"),t.classList.add("d-none"),Wf.closeOffCanvas(),n._destroy$.next(),n._destroy$.complete();var r=window.dataLayer;void 0!==r&&r.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_contract",eventParameter2:"interaction_label",fieldValue2:"step 4 - summary - finish",eventParameter10:"carBrand",fieldValue10:"".concat(n._subscription.vehicleData.brand.code),eventParameter11:"carModel",fieldValue11:"".concat(n._subscription.vehicleData.modelType.code)})},this._closeButtonClickHandler=function(){Wf.closeOffCanvas(),n._destroy$.next(),n._destroy$.complete()}}},{key:"fillScreenOne",value:function(){var e=this,t=this._htmlContainer.querySelector(cf.subscription),n=t.querySelectorAll(sf.row.value);n[0].textContent=this._subscription.subscriptionNo,n[1].textContent=this._utilService.getLocalDateStringFormated(this._subscription.submissionDate),n[2].textContent=this._utilService.getLocalDateStringFormated(this._subscription.activationDate),n[3].textContent="".concat(this._subscription.duration," ").concat(Granite.I18n.get("apps.amag-ch.components.c
6ontent.autoAbo.overview.carProfile.aboDuration.months")),n[4].textContent=this._utilService.getLocalDateStringFormated(this._subscription.nextPossibleCancellationDate),this._subscription.oneTimePaymentTotalGross&&0!==this._subscription.oneTimePaymentTotalGross?t.querySelector("".concat(sf.row.self,":last-child")).classList.add("d-none"):n[5].textContent="CHF ".concat(this._utilService.addSeperators(this._subscription.oneTimePaymentTotalGross,!0)),(n=this._htmlContainer.querySelector(cf.car).querySelectorAll(sf.row.value))[0].textContent=this._subscription.vehicleData.brand.texts.find((function(t){return t.locale===e._language})).name,n[1].textContent=this._subscription.vehicleData.modelType.name;var r=this._htmlContainer.querySelector(cf.garage.self);r.querySelector(cf.garage.name).classList.remove("d-none"),r.querySelector(cf.garage.city).classList.remove("d-none"),r.querySelector(cf.garage.address).classList.remove("d-none"),r.querySelector(cf.garage.unknown).classList.add("d-none"),null!=this._subscription.garageData?(r.querySelector(cf.garage.name).textContent=this._subscription.garageData.fullname,r.querySelector(cf.garage.address).textContent="".concat(this._subscription.garageData.street),r.querySelector(cf.garage.city).textContent="".concat(this._subscription.garageData.zipCode," ").concat(this._subscription.garageData.city)):(r.querySelector(cf.garage.name).classList.add("d-none"),r.querySelector(cf.garage.city).classList.add("d-none"),r.querySelector(cf.garage.address).classList.add("d-none"),r.querySelector(cf.garage.unknown).classList.remove("d-none"))}},{key:"fillScreenTwo",value:function(e){if(e)return this._htmlContainer.querySelector(lf.dropdown.container).classList.remove("invalid"),void this._htmlContainer.querySelector(lf.datePicker).classList.remove("invalid");var t='\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M13.4009 24C13.2789 24 13.1609 23.956 13.0699 23.875L0.494919 12.748C0.464919 12.721 0.436919 12.693 0.410919 12.664C0.0449191 12.251 0.0819193 11.617 0.493919 11.252L13.0689 0.125C13.1609 0.044 13.2789 0 13.4009 0C13.5439 0 13.6809 0.062 13.7759 0.169C13.9579 0.375 13.9389 0.692 13.7329 0.874L1.15692 12L13.7319 23.125C13.9379 23.308 13.9579 23.625 13.7749 23.831C13.6799 23.939 13.5439 24 13.4009 24Z"/>\n </svg>',n=[{id:"",text:""},{id:"08:00",text:"08:00"},{id:"09:00",text:"09:00"},{id:"10:00",text:"10:00"},{id:"11:00",text:"11:00"},{id:"12:00",text:"12:00"},{id:"13:00",text:"13:00"},{id:"14:00",text:"14:00"},{id:"15:00",text:"15:00"},{id:"16:00",text:"16:00"},{id:"17:00",text:"17:00"}];this._htmlContainer.querySelector(lf.dropdown.container).classList.remove("invalid"),this._htmlContainer.querySelector(lf.datePicker).classList.remove("invalid");var r=this._htmlContainer.querySelector(lf.dropdown.select);n[0].text=this._htmlContainer.querySelector(lf.dropdown.label).innerHTML,Vr(r,n,null,null);var a=kf(lf.datePicker),i=this._htmlContainer.querySelector(".cancel-offCanvas__notification-first").querySelector(".amag-autoabo-notification__text");i.textContent=i.textContent.replace("%NEXT_BILLING_CYCLE_DATE%",this._utilService.getLocalDateStringFormated(this._subscription.nextPossibleCancellationDate)),kf.datepicker.setDefaults(kf.datepicker.regional[document.querySelector("html").getAttribute("lang")]),a.datepicker("destroy");var o=new Date(this._subscription.nextPossibleCancellationDate),s=new Date(this._subscription.nextPossibleCancellationDate);s.setMonth(o.getMonth()-1,1),a.datepicker({dateFormat:"yy-mm-dd",minDate:s,firstDay:1,maxDate:o,prevText:t,nextText:t,beforeShowDay:this.validateDate,onSelect:this.checkDate}),a.datepicker("setDate",o)}},{key:"fillScreenThree",value:function(){this._htmlContainer.querySelector(uf.garage.city).classList.remove("d-none"),this._htmlContainer.querySelector(uf.garage.name).classList.remove("d-none"),this._htmlContainer.querySelector(uf.garage.street).classList.remove("d-none"),this._htmlContainer.querySelector(uf.garage.unknown).classList.add("d-none");var e=new Date(this._cancelationRequest.returnDate),t=this._utilService.getLanguageLocale();this._htmlContainer.querySelector(uf.date).innerHTML="".concat(e.toLocaleDateString(t,{weekday:"long"}
6),", ").concat(this._utilService.dateToLocaleString(e),", ").concat(this._cancelationRequest.returnTime," ").concat(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.view.off-canvas.cancel.screen-three.time")),null!=this._subscription.garageData?(this._htmlContainer.querySelector(uf.garage.city).innerHTML="".concat(this._subscription.garageData.zipCode," ").concat(this._subscription.garageData.city),this._htmlContainer.querySelector(uf.garage.street).innerHTML="".concat(this._subscription.garageData.street),this._htmlContainer.querySelector(uf.garage.name).innerHTML="".concat(this._subscription.garageData.shortname)):(this._htmlContainer.querySelector(uf.garage.city).classList.add("d-none"),this._htmlContainer.querySelector(uf.garage.name).classList.add("d-none"),this._htmlContainer.querySelector(uf.garage.street).classList.add("d-none"),this._htmlContainer.querySelector(uf.garage.unknown).classList.remove("d-none"))}},{key:"validateDate",value:function(e){var t=Is().datepicker.formatDate("dd-mm-yy",e),n=kf(lf.datePicker),r=n.attr("data-public-holidays").split(","),a=n.attr("data-non-work-day").split(","),i=[!1];(0!==e.getDay()&&6!==e.getDay()&&-1===r.indexOf(t)&&-1===a.indexOf(t)&&(i=[!0]),document.querySelector(lf.holidayElement))&&document.querySelector(lf.holidayElement).querySelectorAll("span").forEach((function(t){0===Math.round(Math.abs(Number(new Date(t.dataset.holiday))-Number(e))/864e5)&&(i=[!1])}));return i}},{key:"checkDate",value:function(){var e=kf(".cancel-offCanvas__datepicker").datepicker("option","maxDate"),t=kf(".cancel-offCanvas__datepicker").datepicker("getDate");e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()===t.getTime()||document.querySelector(".cancel-offCanvas__notification-second").classList.remove("d-none")}},{key:"setCancelationRequest",value:function(){return{dkiId:this._subscription.userData.UID,pid:this._subscription.userData.data.PID,nextPossibleCancellationDate:new Date(this._subscription.nextPossibleCancellationDate).toLocaleDateString("fr-CA"),returnDate:"".concat(kf(".cancel-offCanvas__datepicker").datepicker("getDate").toLocaleDateString("fr-CA")," "),returnDealerId:this._subscription.returnDealerId,returnTime:"".concat(kf(lf.dropdown.select).val()," ")}}}])}();Df=Tf([nn.K,Lf("design:paramtypes",[])],Df);var Pf=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Of=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Rf=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this._autoAboUtilService=new Yp,this._autoAboHttpService=new tf,this._viewUpdateService=new xf,this.offCanvasContainer=document.querySelector(rf.selectors.self),this.offCanvasContinueBtn=this.offCanvasContainer.querySelector(rf.selectors.confirmButton),this.mileageSelectionContainer=this.offCanvasContainer.querySelector(df.selectors.container),this.setGeneralEventListeners()}),[{key:"initMileagePackageCanvas",value:function(e){this.subscription=e,this.createMileageSelectionHTML(),this.fillInfoBoxData()}},{key:"hideAllInvalidMessages",value:function(){var e=this.mileageSelectionContainer.querySelector(df.selectors.invalidMileage),t=this.mileageSelectionContainer.querySelector(df.selectors.invalidConsent),n=this.mileageSelectionContainer.querySelector(df.selectors.checkboxConfirmLabel);e.classList.remove(df.classes.show),n.classList.remove(df.classes.invalid),t.classList.remove(df.classes.show)}},{key:"hideInvalidMessageNo",value:function(e){var t=this.mileageSelectionContainer.querySelector(df.selectors.invalidMileage),n=this.mileageSelectionContainer.querySelector(df.selectors.invalidConsent),r=this.mileageSelectionContainer.querySelector(df.selectors.checkboxConfirmLabel);1===e&&t.classList.remove(df.classes.show),2===e&&(r.classList.remove(df.classes.invalid),n.classList.remove(df.classes.show))}},{key:"showInvalidMessageNo",value:function(e){var t=this.mileageSelectionContainer.querySelector(df.selectors.invalidMileage),n=this.mileageSelectionContainer.querySelector(df.selectors.invalidConsent),r=this.mileageSelectionContainer.querySelector(df.selectors.checkboxConfirmLabel);1===e&&t.classList.add(df.classes.show),2===e&&(r.classList.add(df.classes.invalid),n.classList.add(df.classes.show),r.scrollIntoView())}},{key:"checkValidity",value:function(){var e=this.mileageSelectionContainer.querySelector(df.selectors.checkboxConfirmInput).checked,t=this.mileageSelectionContainer.querySelectorAll(df.selectors.radioSelectInput),n=!1,r=!1;return this.hideAllInvalidMessages(),t.forEach((function(e){e.checked&&(e.parentElement.classList.contains(df.classes.active)||(n=!0))})),n||this.showInvalidMessageNo(1),e||this.showInvalidMessageNo(2),n&&e&&(r=!0),r}},{key:"setConfirmEventListener",value:function(){var e=this;this.offCanvasContainer.querySelector(rf.selectors.confirmButton).onclick=function(){e.triggerConfirmBtnEvent()}}},{key:"triggerConfirmBtnEvent",value:function(){var e=this;if(this.checkValidity()){this._autoAboHttpService.updateMileage(this.subscription.subscriptionNo,this.selectedMileageValueNum,this.subscription.userData.UID,this.subscription.userData.data.PID).pipe((0,Vp.tap)((function(){e.subscription.upcomingMileage=e.selectedMileageValueNum,e._viewUpdateService.updateMileagePackageElements(e.subscription),Wf.closeOffCanvas()}))).subscribe();var t=window.dataLayer;void 0!==t&&t.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_contract",eventParameter2:"interaction_label",fieldValue2:"confirm change options",eventParameter3:"interaction_content",fieldValue3:"EFFECT",eventParameter10:"carBrand",fieldValue10:"".concat(this.subscription.vehicleData.brand.code),eventParameter11:"carModel",fieldValue11:"".concat(this.subscription.vehicleData.modelType.code)})}}},{key:"resetMileageSelectionView",value:function(){var e=this.mileageSelectionContainer.querySelector(df.selectors.checkboxConfirmInput),t=this.mileageSelectionContainer.querySelector(df.selectors.checkboxConfirmLabel);e.checked=!1,t.classList.remove(df.classes.active),t.classList.remove(df.classes.selected),this.mileageSelectionContainer.querySelector(df.selectors.priceNewContainer).classList.add("d-none"),this.hideAllInvalidMessages()}},{key:"setGeneralEventListeners",value:function(){var e=this;this.mileageSelectionContainer.querySelector(df.selectors.checkboxConfirmInput).addEventListener("change",(function(){e.hideInvalidMessageNo(2)})),this.offCanvasContainer.addEventListener(Ep.CLOSE_CANVAS,(function(){return e.resetMileageSelectionView()}))}},{key:"activateMileageRadioSelectEventListeners",value:function(){var e=this,t=this.mileageSelectionContainer.querySelectorAll(df.selectors.radioSelectInput);t.forEach((function(n){n.addEventListener("change",(function(){var r=parseInt(n.value.replace(/\D/g,""));r!==e.subscription.activeMileage&&(e.hideInvalidMessageNo(1),t.forEach((function(e){return e.parentElement.classList.remove(df.classes.selected)})),n.checked&&(n.parentElement.classList.add(df.classes.selected),e.selectedMileageValueNum=r,e.updateNewInfoBoxData()))}))}))}},{key:"createMileageSelectionHTML",value:function(){var e=this.offCanvasContainer.querySelector(df.selectors.headerDescription);e.textContent=e.textContent.replace("%NEXT_BILLING_CYCLE_DATE%",this._autoAboUtilService.getLocalDateStringFormated(this.subscription.nextBilling
6CycleDate)),this.offCanvasContinueBtn.textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.view.contract-and-options.off-canvas.view.mileage.confirmBtn");var t=this.subscription.activeMileage,n=this.subscription.mileageRestrictions,r=this.mileageSelectionContainer.querySelector(df.selectors.mileageSelectionContainer),a=df.i18n.km;r.textContent="",n&&0===(null==n?void 0:n.length)||(n.forEach((function(e){var n=document.createElement("label"),i=document.createElement("input"),o=document.createElement("span"),s=document.createElement("span"),c=t===e;n.classList.add(df.classes.mileageSelectionLabel),n.setAttribute("for","".concat(e,"km")),c&&(n.classList.add(df.classes.selected),n.classList.add(df.classes.active),i.disabled=!0),i.classList.add(df.classes.mileageSelectionInput),i.id="".concat(e,"km"),i.setAttribute("type","radio"),i.setAttribute("name","mileagepackage"),i.value="".concat(e),c&&i.setAttribute("checked",""),o.classList.add(df.classes.mileageSelectionText),o.textContent="".concat(e," ").concat(a),s.classList.add(df.classes.mileageNowActiveLabel),s.textContent="".concat(df.i18n.nowActive),n.append(i,o,s),r.append(n)})),this.activateMileageRadioSelectEventListeners())}},{key:"updateNewInfoBoxData",value:function(){var e=this,t=this.mileageSelectionContainer.querySelector(df.selectors.priceNew);this._autoAboHttpService.getKilometerRecalculation(this.subscription.subscriptionNo,this.selectedMileageValueNum,this.subscription.userData.UID,this.subscription.userData.data.PID).pipe((0,Vp.tap)((function(n){t.textContent=e._autoAboUtilService.addSeperators(n.monthlyRateGrossTotal,!0),e.mileageSelectionContainer.querySelector(df.selectors.priceNewContainer).classList.remove("d-none")}))).subscribe()}},{key:"fillInfoBoxData",value:function(){var e=this.mileageSelectionContainer.querySelector(df.selectors.priceNew),t=this.mileageSelectionContainer.querySelector(df.selectors.priceCurrent),n=this.mileageSelectionContainer.querySelector(df.selectors.priceNewDate);this.subscription.upcomingMonthlyRateTotalGross&&this.subscription.nextBillingCycleDate&&(e.textContent=this._autoAboUtilService.addSeperators(this.subscription.upcomingMonthlyRateTotalGross,!0),n.textContent=this._autoAboUtilService.dateToLocaleString(new Date(this.subscription.nextBillingCycleDate)),this.mileageSelectionContainer.querySelector(df.selectors.priceNewContainer).classList.remove("d-none")),t.textContent=this._autoAboUtilService.addSeperators(this.subscription.activeMonthlyRateTotalGross,!0)}}])}();Rf=Pf([nn.K,Of("design:paramtypes",[])],Rf);var Mf=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},qf=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this._autoAboUtilService=new Yp,this._autoAboHttpService=new tf,this.offCanvasContainer=document.querySelector(hf.container),this.documentsContainer=this.offCanvasContainer.querySelector(hf.documentsContainer),this.isBase64=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}),[{key:"initDocumentsCanvas",value:function(e){var t=document.querySelector(rf.selectors.confirmButton),n=document.querySelector(rf.selectors.cancelButton);t.classList.add("d-none"),n.classList.add("d-none"),this.subscription=e,this.createDocumentsHTML()}},{key:"activateDocumentEventListeners",value:function(){var e=this;this.documentsContainer.querySelectorAll(hf.document).forEach((function(t){t.addEventListener("click",(function(){var n=t.getAttribute("data-document-name"),r=t.getAttribute("data-document-type"),a=(new Date(t.getAttribute("data-document-date")),t.querySelector(hf.documentDownloadIconContainer));a.classList.add(pf.downloading),e._autoAboHttpService.getDocumentLink(e.subscription.subscriptionNo,r).pipe((0,Vp.tap)((function(t){var r=new File([t],n,{t
6ype:"application/pdf"}),i=window.URL.createObjectURL(r),o=document.createElement("a");o.style.display="none",o.href=i,o.download=r.name,document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(i),document.body.removeChild(o),a.classList.remove(pf.downloading);var s=window.dataLayer;void 0!==s&&s.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_contract",eventParameter2:"interaction_label",fieldValue2:"download",eventParameter3:"interaction_content",fieldValue3:"download",eventParameter10:"carBrand",fieldValue10:"".concat(e.subscription.vehicleData.brand.code),eventParameter11:"carModel",fieldValue11:"".concat(e.subscription.vehicleData.modelType.code)})}))).subscribe()}))}))}},{key:"createDocumentsHTML",value:function(){var e=this,t=this.subscription.documents,n=new Set(t.map((function(e){return e.creationDate.getFullYear()})));this.documentsContainer.textContent="",n.forEach((function(n){var r=document.createElement("div"),a=document.createElement("div"),i=t.filter((function(e){return e.creationDate.getFullYear()===n})).sort((function(e,t){return t.creationDate.getTime()-e.creationDate.getTime()}));r.classList.add(pf.yearContainer),a.classList.add(pf.yearTitle),a.innerText="".concat(n),r.append(a),i.forEac
6h((function(e){var t=document.createElement("div"),n=document.createElement("div"),a=document.createElement("div"),i=document.createElement("div");t.classList.add(pf.document),t.setAttribute("data-document-name",e.name),t.setAttribute("data-document-date","".concat(e.creationDate)),t.setAttribute("data-document-type",e.type),a.innerHTML='<svg class="autoabo-documents__document-pdf-icon-svg" width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M4.66699 32C3.56433 32 2.66699 31.1027 2.66699 30V2C2.66699 0.897333 3.56433 0 4.66699 0H20.7003C25.459 0 29.3323 3.872 29.3337 8.63067V30C29.3337 31.1027 28.4363 32 27.3337 32H4.66699ZM4.66699 1.33333C4.29899 1.33333 4.00033 1.632 4.00033 2V30C4.00033 30.368 4.29899 30.6667 4.66699 30.6667H27.3337C27.7017 30.6667 28.0003 30.368 28.0003 30V8.63067C28.0003 8.42667 27.991 8.21467 27.971 8H23.3337C22.231 8 21.3337 7.10267 21.3337 6V1.36267C21.1177 1.34267 20.9083 1.33333 20.7003 1.33333H4.66699ZM22.667 6C22.667 6.368 22.9657 6.66667 23.3337 6.66667H27.7297C27.043 4.21867 25.115 2.28933 22.667 1.604V6Z" fill="black"/>\n <path d="M7.30534 26.6655C6.93734 26.6655 6.63867 26.3668 6.63867 25.9988V18.0002C6.63867 17.6322 6.93734 17.3335 7.30534 17.3335H9.30534C10.776 17.3335 11.972 18.5295 11.972 20.0002C11.972 21.4708 10.776 22.6668 9.30534 22.6668H7.97201V25.9988C7.97201 26.3668 7.67334 26.6655 7.30534 26.6655ZM9.30534 21.3335C10.04 21.3335 10.6387 20.7362 10.6387 20.0002C10.6387 19.2642 10.04 18.6668 9.30534 18.6668H7.97201V21.3335H9.30534Z" fill="black"/>\n <path d="M13.9723 26.6668C13.6043 26.6668 13.3057 26.3682 13.3057 26.0002V18.0002C13.3057 17.6322 13.6043 17.3335 13.9723 17.3335C16.5457 17.3335 18.639 19.4268 18.639 22.0002C18.639 24.5735 16.5457 26.6668 13.9723 26.6668ZM14.639 25.2655C16.1603 24.9522 17.3057 23.5842 17.3057 22.0002C17.3057 20.4162 16.1603 19.0468 14.639 18.7348V25.2655Z" fill="black"/>\n <path d="M20.6393 26.6668C20.2713 26.6668 19.9727 26.3682 19.9727 26.0002V19.3335C19.9727 18.2308 20.87 17.3335 21.9727 17.3335H24.6393C25.0073 17.3335 25.306 17.6322 25.306 18.0002C25.306 18.3682 25.0073 18.6668 24.6393 18.6668H21.9727C21.6047 18.6668 21.306 18.9655 21.306 19.3335V21.3322H23.306C23.674 21.3322 23.9727 21.6308 23.9727 21.9988C23.9727 22.3668 23.674 22.6655 23.306 22.6655H21.306V26.0002C21.306 26.3682 21.0073 26.6668 20.6393 26.6668Z" fill="black"/>\n </svg>',a.classList.add(pf.documentSvg),i.innerHTML='<svg class="autoabo-documents__document-download-icon-svg" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M12.0007 18C11.9765 18 11.9524 17.9992 11.9282 17.9977C11.6259 17.9788 11.3494 17.8428 11.1492 17.6162L3.40494 8.81786C3.33845 8.7423 3.3052 8.64483 3.31125 8.54433C3.31805 8.44384 3.36263 8.35165 3.43894 8.2844C3.5077 8.22396 3.59611 8.18995 3.6883 8.18995C3.7971 8.18995 3.90062 8.2368 3.97165 8.31841L11.6222 17.0094V0.634639C11.6222 0.426092 11.7914 0.256836 12 0.256836C12.2085 0.256836 12.3778 0.426092 12.3778 0.634639V17.0079L20.0283 8.31916C20.1008 8.23756 20.2036 8.19071 20.3117 8.19071C20.4038 8.19071 20.4922 8.22396 20.561 8.28516C20.7174 8.42268 20.7325 8.66221 20.595 8.81862L12.85 17.6162C12.8183 17.6517 12.7843 17.6864 12.748 17.7182C12.5417 17.8995 12.2765 18 12.0007 18Z" fill="black"/>\n <path d="M1.5 18V23.5H22.5V18" stroke="black" stroke-width="0.8" stroke-linecap="round"/>\n </svg>\n <div class="amag-autoabo__spinner autoabo-documents__document-download-icon-loading-spinner">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>',i.classList.add(pf.documentSvg),i.classList.add(pf.downloadIconContainer),n.classList.add(pf.documentName),n.innerText=e.name,t.append(a,n,i),r.append(t)})),e.documentsContainer.append(r)})),this.activateDocumentEventListeners()}}])}();function Nf(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vf(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Vf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}qf=Mf([nn.K],qf);var Ff=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Bf=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this.CAR_DATA_TAB_IDENTIFIER="carData",this.EQUIPMENT_TAB_IDENTIFIER="equipment",this.SPECIAL_EQUIPMENT_TAB_IDENTIFIER="specialEquipment",this._utilService=new Yp,this.offCanvasContainer=document.querySelector(rf.selectors.self),this.backdrop=this.offCanvasContainer.querySelector(rf.selectors.backdrop),this.closeButton=this.offCanvasContainer.querySelector(rf.selectors.closeButton),this.headerDataPart=this.offCanvasContainer.querySelector(ff.header.self),this.carDataPart=this.offCanvasContainer.querySelector(ff.carData.self),this.equipmentDataPart=this.offCanvasContainer.querySelector(ff.equipmentData),this.specialEquipmentDataPart=this.offCanvasContainer.querySelector(ff.specialEquipment),this.tabs=Array.from(this.offCanvasContainer.querySelectorAll(ff.tabs)),this.currentLanguage=this._utilService.getLanguage()}),[{key:"initVehicleDetailsOffCanvas",value:function(e){this.addAdditionalEffectOnCloseEvents(e),this.createAndFillOffCanvas(e)}},{key:"addAdditionalEffectOnCloseEvents",value:function(e){var t=this;this.backdrop.addEventListener("click",(function(){return t.resetVehicleDetailOffCanvas()})),this.closeButton.addEventListener("click",(function(){return t.resetVehicleDetailOffCanvas()}
6)),this.tabs.forEach((function(n){n.addEventListener("click",(function(){t.tabs.forEach((function(e){return e.classList.remove("selected")})),n.classList.add("selected"),n.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});var r=t.offCanvasContainer.querySelector(ff.additionalInformation);n.id===t.CAR_DATA_TAB_IDENTIFIER?(t.carDataPart.classList.remove("d-none"),e.vehicleData.showAdditionalInformation&&r.classList.remove("d-none"),t.equipmentDataPart.classList.add("d-none"),t.specialEquipmentDataPart.classList.add("d-none")):n.id===t.EQUIPMENT_TAB_IDENTIFIER?(t.carDataPart.classList.add("d-none"),r.classList.add("d-none"),t.equipmentDataPart.classList.remove("d-none"),t.specialEquipmentDataPart.classList.add("d-none")):n.id===t.SPECIAL_EQUIPMENT_TAB_IDENTIFIER?(t.carDataPart.classList.add("d-none"),r.classList.add("d-none"),t.equipmentDataPart.classList.add("d-none"),t.specialEquipmentDataPart.classList.remove("d-none")):(t.carDataPart.classList.remove("d-none"),e.vehicleData.showAdditionalInformation&&r.classList.remove("d-none"),t.equipmentDataPart.classList.add("d-none"),t.specialEquipmentDataPart.classList.add("d-none"));var a=window.dataLayer;void 0!==a&&a.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"auto_abo_dashboard",eventParameter2:"interaction_label",fieldValue2:"view car details",eventParameter3:"interaction_content",fieldValue3:"".concat(n.id),eventParameter10:"carBrand",fieldValue10:"".concat(e.vehicleData.brand.name),eventParameter11:"carModel",fieldValue11:"".concat(e.vehicleData.modelType.description)})}))}))}},{key:"resetVehicleDetailOffCanvas",value:function(){var e=this;
6this.tabs.forEach((function(t){t.id===e.CAR_DATA_TAB_IDENTIFIER?t.classList.add("selected"):t.classList.remove("selected")})),this.carDataPart.replaceChildren(),this.equipmentDataPart.replaceChildren(),this.specialEquipmentDataPart.replaceChildren(),this.backdrop.removeEventListener("click",this.resetVehicleDetailOffCanvas),this.closeButton.removeEventListener("click",this.resetVehicleDetailOffCanvas)}},{key:"createAndFillOffCanvas",value:function(e){this.fillHeader(e),this.fillVehicleDataTab(e),this.carDataPart.classList.remove("d-none"),e.vehicleData.showAdditionalInformation&&this.offCanvasContainer.querySelector(ff.additionalInformation).classList.remove("d-none"),this.fillVehicleEquipmentTab(e),this.fillVehicleSpecialEquipmentTab(e)}},{key:"fillHeader",value:function(e){var t;this.headerDataPart.querySelector(ff.header.name).textContent=e.vehicleData.modelType.description,this.headerDataPart.querySelector(ff.header.description).textContent="".concat(e.vehicleData.brand.name," ").concat(e.vehicleData.modelType.name);var n=null===(t=e.vehicleData.images.find((function(e){return 1===e.sortOrder})))||void 0===t?void 0:t.media.link;n&&(this.headerDataPart.querySelector(ff.header.image).src=n)}},{key:"fillVehicleDataTab",value:function(e){var t,n=this,r=document.createDocumentFragment();if(e.vehicleData.firstRegistration&&(t=this.createVehicleDetailsDataNode(),r.append(t),r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.first-registration"),r.lastElementChild.querySelector("#value").textContent=this._utilService.getLocalDateStringFormated(e.vehicleData.firstRegistration)),e.vehicleData.modelType.engine.powerPS){t=this.createVehicleDetailsDataNode(),r.append(t),r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.engine-power");var a="".concat(e.vehicleData.modelType.engine.powerPS+" PS").concat(e.vehicleData.modelType.engine.powerKW?" / "+e.vehicleData.modelType.engine.powerKW+" KW":"").concat(e.vehicleData.modelType.engine.capacity?", "+this._utilService.addSeperators(e.vehicleData.modelType.engine.capacity,!1)+"cm³":"");r.lastElementChild.querySelector("#value").textContent=a}if(e.vehicleData.modelType.engine.primaryFuel){var i=this.createVehicleDetailsDataNode();r.append(i),r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.fuel-type");var o="".concat(e.vehicleData.modelType.engine.primaryFuel.texts.find((function(e){return e.locale===n.currentLanguage})).name).concat(e.vehicleData.modelType.engine.secondaryFuel?" / "+e.vehicleData.modelType.engine.secondaryFuel.texts.find((function(e){return e.locale===n.currentLanguage})).name:"");r.lastElementChild.querySelector("#value").textContent=o}if(e.vehicleData.primaryAverageConsumption&&e.vehicleData.secondaryAverageConsumption&&(t=this.createVehicleDetailsDataNode(),r.append(t),"KWH"===e.vehicleData.primaryAverageConsumptionUnit||"KWH"===e.vehicleData.secondaryAverageConsumptionUnit?r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.combined-electricityusage"):r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.combined-fuelusage"),r.lastElementChild.querySelector("#value").textContent="".concat(e.vehicleData.primaryAverageConsumption," ").concat(e.vehicleData.primaryAverageConsumptionUnit," / ").concat(e.vehicleData.secondaryAverageConsumption," ").concat(e.vehicleData.secondaryAverageConsumptionUnit)),e.vehicleData.electricRangeCity&&(t=this.createVehicleDetailsDataNode(),r.append(t),r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.cruising-range-electricity"),r.lastElementChild.querySelector("#value").textContent="".concat(e.vehicleData.electricRangeCity," km")),e.vehicleData.modelType.transmission.shiftType.name){t=this.createVehicleDetailsDataNode(),r.append(t),r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.c
6ontent.autoAbo.overview.car-item.off-canvas.shift-type");var s=e.vehicleData.modelType.transmission.shiftType.texts.find((function(e){return e.locale===n.currentLanguage})).name;r.lastElementChild.querySelector("#value").textContent=s}if(e.vehicleData.modelType.transmission.driveType.name){t=this.createVehicleDetailsDataNode(),r.append(t),r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.drive-type");var c=e.vehicleData.modelType.transmission.driveType.texts.find((function(e){return e.locale===n.currentLanguage})).name;r.lastElementChild.querySelector("#value").textContent=c}if(e.vehicleData.modelType.bodyType.name){t=this.createVehicleDetailsDataNode(),r.append(t),r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.body-type");var l=e.vehicleData.modelType.bodyType.texts.find((function(e){return e.locale===n.currentLanguage})).name;r.lastElementChild.querySelector("#value").textContent=l}if(e.vehicleData.exteriorColor){t=this.createVehicleDetailsDataNode(),r.append(t),r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.outer-color");var u=e.vehicleData.exteriorColor.texts.find((function(e){return e.locale===n.currentLanguage})).description;r.lastElementChild.querySelector("#value").textContent=u}if(e.vehicleData.interiorColor){t=this.createVehicleDetailsDataNode(),r.append(t),r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.inner-color");var d=e.vehicleData.interiorColor.texts.find((function(e){return e.locale===n.currentLanguage})).description;r.lastElementChild.querySelector("#value").textContent=d}var h=document.createElement("div");h.classList.add("row");var p=document.createElement("span");if(p.textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.core-data-header"),p.classList.add("autoabo-offcanvas__vehicle-details__data-row-header","col-12"),h.appendChild(p),r.appendChild(h),e.vehicleData.vin&&(t=this.createVehicleDetailsDataNode(),r.append(t),r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.vin"),r.lastElementChild.querySelector("#value").textContent=e.vehicleData.vin),e.vehicleData.modelType.bodyType){t=this.createVehicleDetailsDataNode(),r.append(t),r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.vehicle-type");var f="".concat(e.vehicleData.modelType.bodyType.texts.find((function(e){return e.locale===n.currentLanguage})).name);r.lastElementChild.querySelector("#value").textContent=f}if(e.vehicleData.isImported){t=this.createVehicleDetailsDataNode(),r.append(t),r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.import");var m="".concat(e.vehicleData.isImported?Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.import.yes"):Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.import.no"));r.lastElementChild.querySelector("#value").textContent=m}e.vehicleData.efficiencyCategory&&(t=this.createVehicleDetailsDataNode(),r.append(t),r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.efficiency-class"),r.lastElementChild.querySelector("#value").textContent=e.vehicleData.efficiencyCategory),e.vehicleData.co2Consumption&&(t=this.createVehicleDetailsDataNode(),r.append(t),r.lastElementChild.querySelector("#name").textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.car-item.off-canvas.combined-emissions"),r.lastElementChild.querySelector("#value").textContent="".concat(e.vehicleData.co2Consumption," g/km"));var v=this.createVehicleDataAdditionalInfo();r.appendChild(v),this.carDataPart.append(r)}},{key:"fillVehicleEquipmentTab",value:function(e){var t,n=this,r=document.createDocumentFragment(),a=e.vehicleData.equipments.filter((function(e){return!!e.isIncluded})),i=Nf(a);try{for(i.s();!(t=i.n()).done;){var o=t.value,s=document.createElement("div");s.classList.add("row","autoabo-offcanvas__vehicle-details__data-row");var c=document.createElement("span");c.classList.add("col-12","autoabo-offcanvas__vehicle-details__data-row-field"),c.id="name",c.textContent=o.texts.find((function(e){return e.locale===n.currentLanguage})).name,s.appendChild(c),r.appendChild(s)}}catch(e){i.e(e)}finally{i.f()}this.equipmentDataPart.appendChild(r)}},{key:"createVehicleDataAdditionalInfo",value:function(){var e=document.createElement("div");e.classList.add("autoabo-offcanvas__vehicle-details__data-row__additional-information","d-none");var t=document.createElement("div");t.classList.add("row");var n=document.createElement("span");n.classList.add("col-12","autoabo-offcanvas__vehicle-details__data-row__additional-information-header"),n.textContent=Granite.I18n.get("apps.amag-ch.components.c
6ontent.autoAbo.overview.car-item.off-canvas.additional-info-header"),t.appendChild(n),e.appendChild(t);var r=document.createElement("div");r.classList.add("row");var a=document.createElement("span");return a.classList.add("col-12","autoabo-offcanvas__vehicle-details__data-row__additional-information-text"),a.textContent="requested new field by vehiclePool",r.appendChild(a),e.appendChild(r),e}},{key:"fillVehicleSpecialEquipmentTab",value:function(e){var t,n=this,r=document.createDocumentFragment(),a=e.vehicleData.equipments.filter((function(e){return!!e.isPackage})),i=Nf(a);try{for(i.s();!(t=i.n()).done;){var o=t.value,s=document.createElement("div");s.classList.add("row","autoabo-offcanvas__vehicle-details__data-row");var c=document.createElement("span");c.classList.add("col-12","autoabo-offcanvas__vehicle-details__data-row-field"),c.id="name",c.textContent=o.texts.find((function(e){return e.locale===n.currentLanguage})).name,s.appendChild(c),r.appendChild(s)}}catch(e){i.e(e)}finally{i.f()}this.specialEquipmentDataPart.appendChild(r)}},{key:"createVehicleDetailsDataNode",value:function(){var e=document.createElement("div");e.classList.add("row","autoabo-offcanvas__vehicle-details__data-row");var t=document.createElement("span");t.classList.add("col-6","autoabo-offcanvas__vehicle-details__data-row-field"),t.id="name";var n=document.createElement("span");return n.classList.add("col-6","autoabo-offcanvas__vehicle-details__data-row-field"),n.id="value",e.appendChild(t),e.appendChild(n),e}}])}();Bf=Ff([nn.K],Bf);var jf,Hf=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Gf=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Uf=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Wf=jf=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this._body=document.querySelector("body"),this.offCanvasContainer=this._body.querySelector(rf.selectors.self),this._backdrop=this.offCanvasContainer.querySelector(rf.selectors.backdrop),this._canvas=this.offCanvasContainer.querySelector(rf.selectors.canvas),this._closeButton=this.offCanvasContainer.querySelector(rf.selectors.closeButton),this._cancelButton=this.offCanvasContainer.querySelector(rf.selectors.cancelButton),this._footer=this.offCanvasContainer.querySelector(rf.selectors.footer),this._autoAboVehicleDetailService=new Bf,this._autoaboDatatransService=new Yf,this._autoAboCancelService=new Df,this._autoAboContractMileageServiceApp=new Rf,this._autoAboDocumentsServiceApp=new qf,this._utilService=new Yp,this._dataLayer=window.dataLayer,this.addInitialEventListener()}),[{key:"addInitialEventListener",value:function(){this._backdrop.onclick=function(){jf.closeOffCanvas()},this._closeButton.onclick=function(){jf.closeOffCanvas()},this._cancelButton.onclick=function(){jf.closeOffCanvas()}}},{key:"showOffCanvasById",value:function(e){document.querySelector("body").classList.add("no-scroll"),this._canvas.querySelectorAll(rf.selectors.innerContainer).forEach((function(e){return e.classList.add("d-none")})),this._canvas.querySelector(e).classList.remove("d-none"),this._backdrop.classList.remove("d-none"),this._canvas.classList.add("is-shown")}},{key:"showVehicleDetailsOffCanvas",value:function(e){this._autoAboVehicleDetailService.initVehicleDetailsOffCanvas(e),this._footer.classList.add("d-none"),this.showOffCanvasById(Sp.VEHICLE_DETAILS),void 0!==this._dataLayer&&this._dataLayer.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"auto_abo_dashboard",eventParameter2:"interaction_label",fieldValue2:"click car details button",eventParameter10:"carBrand",fieldValue10:"".concat(e.vehicleData.brand.code),eventParameter11:"carModel",fieldValue11:"".concat(e.vehicleData.modelType.code)})}},{key:"showDatatransOffCanvas",value:function(e){this._autoaboDatatransService.triggerDataTransOffCanvas(e.cardInformation),this.showOffCanvasById(Sp.DATATRANS),void 0!==this._dataLayer&&this._dataLayer.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_contract",eventParameter2:"interaction_label",fieldValue2:"click change payment method",eventParameter10:"carBrand",fieldValue10:"".concat(e.vehicleData.brand.code),eventParameter11:"carModel",fieldValue11:"".concat(e.vehicleData.modelType.code)})}},{key:"showCancelOffCanvas",value:function(e){return Uf(this,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._autoAboCancelService.initCancelOffCanvas(e);case 2:this.showOffCanvasById(Sp.CANCEL),void 0!==this._dataLayer&&this._dataLayer.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_contract",eventParameter2:"interaction_label",fieldValue2:"click cancel subscription",eventParameter10:"carBrand",fieldValue10:"".concat(e.vehicleData.brand.code),eventParameter11:"carModel",fieldValue11:"".concat(e.vehicleData.modelType.code)});case 4:case"end":return t.stop()}}),t,this)})))}},{key:"showMileagePackageOffCanvas",value:function(e){this.showOffCanvasById(Sp.MILEAGE_PACKAGES),this._autoAboContractMileageServiceApp.initMileagePackageCanvas(e),this._autoAboContractMileageServiceApp.setConfirmEventListener(),void 0!==this._dataLayer&&this._dataLayer.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_contract",eventParameter2:"interaction_label",fieldValue2:"click change options",eventParameter10:"carBrand",fieldValue10:"".concat(e.vehicleData.brand.code),eventParameter11:"carModel",fieldValue11:"".concat(e.vehicleData.modelType.code)})}},{key:"showDocumentsOffCanvas",value:function(e){this.showOffCanvasById(Sp.DOCUMENTS),this._autoAboDocumentsServiceApp.initDocumentsCanvas(e),void 0!==this._dataLayer&&this._dataLayer.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_contract",eventParameter2:"interaction_label",fieldValue2:"click open documents",eventParameter10:"carBrand",fieldValue10:"".concat(e.vehicleData.brand.code),eventParameter11:"carModel",fieldValue11:"".concat(e.vehicleData.modelType.code)})}},{key:"showProfileOffCanvas",value:function(e){this.showOffCanvasById(Sp.PROFILE),void 0!==this._dataLayer&&this._dataLayer.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_contract",eventParameter2:"interaction_label",fieldValue2:"click open profile",eventParameter10:"carBrand",fieldValue10:"".concat(e.vehicleData?e.vehicleData.brand.code:"no subscription"),eventParameter11:"carModel",fieldValue11:"".concat(e.vehicleData?e.vehicleData.modelType.code:"no subscription")})}}],[{key:"resetOffCanvas",value:function(){document.querySelector(Up.offCanvas).classList.add("d-none"),document.querySelector(rf.selectors.backdrop).onclick=function(){jf.closeOffCanvas()};var e=document.querySelector(rf.selectors.confirmButton);e.classList.remove("d-none"),e.onclick=function(){console.error("--- NO CORRECT EVENTLISTENER EMPLOYED YET ---")}
6,e.textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.view.off-canvas.cancel.buttons.cta");var t=document.querySelector(rf.selectors.cancelButton);t.classList.remove("d-none"),t.onclick=function(){return jf.closeOffCanvas()},t.textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.view.off-canvas.cancel.buttons.back");var n=document.querySelector(rf.selectors.closeButton);n.onclick=function(){return jf.closeOffCanvas()},n.querySelector(rf.selectors.closeButtonIconBackChevron).classList.add("d-none"),n.querySelector(rf.selectors.closeButtonIconDefault).classList.remove("d-none"),document.querySelector(rf.selectors.footer).classList.remove("d-none");var r=new Yp;r.openOrCloseSpinner(!1),r.openOrCloseCardInformationModal(!1)}},{key:"closeOffCanvas",value:function(){var e=new CustomEvent(Ep.CLOSE_CANVAS,{detail:{}});document.querySelector("body").classList.remove("no-scroll"),document.querySelector(rf.selectors.backdrop).classList.add("d-none"),document.querySelector(rf.selectors.canvas).classList.remove("is-shown"),document.querySelector(rf.selectors.self).dispatchEvent(e),jf.resetOffCanvas(),document.getElementById("amagAutoaboModal").close()}}])}();Wf=jf=Hf([nn.K,Gf("design:paramtypes",[])],Wf);var zf=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},$f=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Yf=function(){return(0,ft.A)((function e(){var t=this;(0,pt.A)(this,e),this._httpService=new tf,this._viewUpdateService=new xf,this._datatransIsvEndpoint="".concat(wr.getUrl(),"secureFieldsInit.json"),this._datatransTransactionStatusIsvEndpoint="".concat(wr.getUrl(),"datatransTransactionStatus.json"),this._utilityService=new Yp,this._errorService=new Wp,this._canvas=document.querySelector(rf.selectors.self),this._backdrop=this._canvas.querySelector(rf.selectors.backdrop),this._closeButton=this._canvas.querySelector(rf.selectors.closeButton),this._backButton=this._canvas.querySelector(rf.selectors.cancelButton),this._showReplaceDialogButton=this._canvas.querySelector(mf.viewDialog.buttons.showReplaceDialog),this._saveButton=this._canvas.querySelector(rf.selectors.confirmButton),this._viewDialog=this._canvas.querySelector(mf.viewDialog.self),this._replaceDialog=this._canvas.querySelector(mf.replaceDialog.self),this._monthsDropdown=this._canvas.querySelector(mf.replaceDialog.form.dropdowns.month.select),this._yearsDropdown=this._canvas.querySelector(mf.replaceDialog.form.dropdowns.year.select),this._creditCardOwner=this._canvas.querySelector(mf.replaceDialog.form.creditCardOwner.input),this._constenCheckbox=this._canvas.querySelector(mf.replaceDialog.form.consentCheckbox.input),this._applyToAllSubscriptionsCheckbox=this._canvas.querySelector(mf.replaceDialog.form.allContractsCheckbox.input),this._cardOwner=this._canvas.querySelector(mf.replaceDialog.form.creditCardOwner.input),this._prepaidError=this._canvas.querySelector(mf.replaceDialog.prepaidCardError.self),this._3DSecureError=this._canvas.querySelector(mf.replaceDialog["3DSecureError"].self),this._3DSecureErrorSpanText=this._canvas.querySelector(mf.replaceDialog["3DSecureError"].span),this._3DSecureErrorNoSpanText=this._canvas.querySelector(mf.replaceDialog["3DSecureError"].noSpan),this._secureFields=new window.SecureFields,this.secureFieldsHttpConfig={body:{currency:"CHF",returnUrl:"".concat(wr.getUrl(),"validateCreditCardChange.json?autoaboPath=").concat(window.location.origin).concat(window.location.pathname),"3D":{cardholder:{cardholderName:"",email:""},threeDSRequestor:{threeDSRequestorChallengeInd:"04"}}}},this._errorStates={cardNumber:!1,month:!1,year:!1,cvv:!1,cardOwner:!1,consent:!1},this._chevronIconIsShown=!1,this.subscription$=new Vp.ReplaySubject(1),this.updatedSubscription$=new Vp.ReplaySubject(1),this.showReplaceDialog=function(){t._saveButton.textContent=Granite.I18n.get("apps.amag-ch.components.c
6ontent.autoAbo.view.contract-and-options.off-canvas.buttons.cta.replace"),t._saveButton.classList.remove("d-none"),t._backButton.classList.remove("d-none"),t._closeButton.querySelector(rf.selectors.closeButtonIconDefault).classList.add("d-none"),t._closeButton.querySelector(rf.selectors.closeButtonIconBackChevron).classList.remove("d-none"),(0,Af.A)("auto_abo_interaction","abo_dashboard_payment_method","step 1 - click show replace-dialog button",""),t._saveButton.onclick=function(){t.submitDataTransForm()},t._closeButton.onclick=function(){t.showViewDialog(),t.clearAllFields()},t._backdrop.onclick=function(){t.clearAllFields(),Wf.closeOffCanvas()},t.switchCloseButtonIcon(),t._viewDialog.classList.remove("show"),t._replaceDialog.classList.add("show")},this.submitDataTransForm=function(){var e=t._canvas.querySelector(mf.replaceDialog.form.dropdowns.month.select).value,n=t._canvas.querySelector(mf.replaceDialog.form.dropdowns.year.select),r=n[n.selectedIndex].textContent.slice(2,4);t._secureFields.submit({expm:parseInt(e),expy:parseInt(r)})},this.showViewDialog=function(){t.switchCloseButtonIcon(),t._saveButton.classList.add("d-none"),t._backButton.classList.add("d-none"),t._backButton.onclick=function(){t.clearAllFields(),Wf.closeOffCanvas()},t._backdrop.onclick=function(){t.clearAllFields(),Wf.closeOffCanvas()},t._replaceDialog.classList.remove("show"),t._viewDialog.classList.add("show"),t._closeButton.onclick=function(){t.clearAllFields(),Wf.closeOffCanvas()}},this.checkForPrepaidPipe=function(){return function(e){return e.pipe((0,Vp.switchMap)((function(e){return"prepaid"===e[0].card.info.type?(0,Vp.throwError)((function(){return new Error("Prepaid card detected")})):(0,Vp.of)(e)})),(0,Vp.catchError)((function(e){return t._prepaidError.hidden=!1,t._prepaidError.scrollIntoView({behavior:"smooth"}),t._utilityService.openOrCloseCardInformationModal(!1),(0,Vp.throwError)((function(){return e}))})))}},this.checkFor3dSecureError=function(e){return function(n){return n.pipe((0,Vp.switchMap)((function(t){var n,r,a,i,o,s;return e&&"Y"!==(null===(n=t[0].card["3D"])||void 0===n?void 0:n.authenticationResponse)?(0,Vp.throwError)((function(){return new Error("3D-Secure Error")})):"A"===(null===(r=t[0].card["3D"])||void 0===r?void 0:r.authenticationResponse)||"C"===(null===(a=t[0].card["3D"])||void 0===a?void 0:a.authenticationResponse)||"R"===(null===(i=t[0].card["3D"])||void 0===i?void 0:i.authenticationResponse)?(0,Vp.throwError)((function(){return new Error("No-3D-Secure Error")})):"N"===(null===(o=t[0].card["3D"])||void 0===o?void 0:o.authenticationResponse)||"U"===(null===(s=t[0].card["3D"])||void 0===s?void 0:s.authenticationResponse)?(0,Vp.throwError)((function(){return new Error("3D-Secure Error")})):(0,Vp.of)(t)})),(0,Vp.catchError)((function(e){return t._3DSecureError.hidden=!1,t._3DSecureError.scrollIntoView({behavior:"smooth"}),"No-3D-Secure Error"===e.message?t._3DSecureErrorNoSpanText.hidden=!1:"3D-Secure Error"===e.message&&(t._3DSecureErrorSpanText.hidden=!1),t._utilityService.openOrCloseCardInformationModal(!1),(0,Vp.throwError)((function(){return e}))})))}},this.checkAuthorization=function(){return function(e){return e.pipe((0,Vp.switchMap)((function(e){var n="".concat(wr.getUrl(),"datatransAuthorize.json");return t._httpService.getDatatransAuthorization(n,e[0].transactionId).pipe((0,Vp.switchMap)((function(t){return t?(0,Vp.of)([].concat((0,ut.A)(e),[t])):(0,Vp.throwError)((function(){return new Error("Authorization failed")}))})),(0,Vp.catchError)((function(e){return t._errorService.showDatatransError(!0,{error:"Authorization failed",action:"Authorizing"}),t._utilityService.openOrCloseCardInformationModal(!1),(0,Vp.throwError)((function(){return e}))})))})),(0,Vp.catchError)((function(e){return(0,Vp.throwError)((function(){return e}))})))}},this.subscription$.pipe((0,Vp.tap)((function(e){t.secureFieldsHttpConfig.body.returnUrl=t.secureFieldsHttpConfig.body.returnUrl.concat("&subscriptionNo=".concat(e.subscriptionNo)),t.secureFieldsHttpConfig.body["3D"].cardholder.cardholderName="".concat(e.userData.profile.firstName," ").concat(e.userData.profile.lastName),t.secureFieldsHttpConfig.body["3D"].cardholder.email=e.userData.profile.email}))).subscribe(),this.setupDatatransEventListeners(),this.updatedSubscription$.pipe((0,Vp.tap)((function(e){return t.subscription$.next(e.subscription)})),(0,Vp.tap)((function(e){return t.triggerCreditCardUpdate(e.fromRedirect,e.message)}))).subscribe()}),[{key:"setupDatatransEventListeners",value:function(){var e=this;this._secureFields.on("ready",(function(t){var n=sessionStorage.getItem(Ap.DATATRANS_CARD_ERROR),r=sessionStorage.getItem(Ap.DATATRANS_3D_SECURE_STATUS);r&&"Y"!==r||n?(e.switchCloseButtonIcon(),e.showReplaceDialog(),e._3DSecureError.hidden=!1,e._3DSecureErrorSpanText.hidden=!1,sessionStorage.removeItem(Ap.DATATRANS_3D_SECURE_STATUS),sessionStorage.removeItem(Ap.DATATRANS_CARD_ERROR)):e.showViewDialog()})),this._secureFields.on("validate",(function(t){e.triggerErrorFieldsStateChange(t),t.hasErrors&&e._errorService.showDatatransError(!0,Object.assign(Object.assign({},t),{error:"Validation-Error",action:"Validating"}))})),this._secureFields.on("success",(function(t){e.triggerCreditCardUpdate(!1,t)})),this._secureFields.on("change",(function(t){e.triggerFieldLabelStateChange(t)}
6)),this._secureFields.on("error",(function(t){e._errorService.showDatatransError(!0,t),sessionStorage.setItem(Ap.DATATRANS_CARD_ERROR,t.error),e.setUpSecureFields().pipe((0,Vp.tap)((function(t){e.initSecureFields(t.transactionId)})),(0,Vp.take)(1)).subscribe(),(0,Af.A)("auto_abo_interaction","abo_dashboard_payment_method","step 2 - error message","")}))}},{key:"setUpSecureFields",value:function(){return this._httpService.setUpSecureFields(this._datatransIsvEndpoint,this.secureFieldsHttpConfig)}},{key:"getTransactionStatus",value:function(e){return this._httpService.getTransactionStatus(this._datatransTransactionStatusIsvEndpoint,e)}},{key:"initSecureFields",value:function(e){this._secureFields.init(e,{cardNumber:{placeholderElementId:"cardNumberPlaceholder",inputType:"tel"},cvv:{placeholderElementId:"cvvPlaceholder",inputType:"tel"}},{styles:nf,paymentMethods:[Lp.MASTERCARD,Lp.VISA,Lp.JCB,Lp["DINERS CLUB"]]})}},{key:"triggerDataTransOffCanvas",value:function(e){var t=this;this.fillOffCanvas(e),Object.keys(this._errorStates).forEach((function(e){return t._errorStates[e]=!1})),this._canvas.querySelectorAll(mf.replaceDialog.form.errors.all).forEach((function(e){e.classList.remove("show")})),this._showReplaceDialogButton.addEventListener("click",this.showReplaceDialog),this.setUpSecureFields().pipe((0,Vp.tap)((function(e){t.initSecureFields(e.transactionId)})),(0,Vp.take)(1)).subscribe()}},{key:"initDropdowns",value:function(){Xd[0].text=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.view.contract-and-options.off-canvas.input-form.dropdowns.month.label"),Vr(this._monthsDropdown,Xd,null,null);var e=new Date,t=[];t.push({id:"",text:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.view.contract-and-options.off-canvas.input-form.dropdowns.year.label")});for(var n=e.getFullYear();n<=e.getFullYear()+40;n++)t.push({id:n-e.getFullYear(),text:n});Vr(this._yearsDropdown,t,null,null)}},{key:"switchCloseButtonIcon",value:function(){this._chevronIconIsShown?(this._closeButton.querySelector(rf.selectors.closeButtonIconBackChevron).classList.remove("d-none"),this._closeButton.querySelector(rf.selectors.closeButtonIconDefault).classList.add("d-none")):(this._closeButton.querySelector(rf.selectors.closeButtonIconBackChevron).classList.add("d-none"),this._closeButton.querySelector(rf.selectors.closeButtonIconDefault).classList.remove("d-none")),this._chevronIconIsShown=!this._chevronIconIsShown}},{key:"triggerCreditCardUpdate",value:function(e,t){var n=this;if(e||!this.triggerErrorFieldsStateChange()){if(this._utilityService.openOrCloseCardInformationModal(!0),null===t)return(0,Af.A)("auto_abo_interaction","abo_dashboard_payment_method","step 2 - error message",""),void this._errorService.showDatatransError(!0,null);var r=new Vp.Subject;(0,Vp.combineLatest)([this.getTransactionStatus(t.transactionId),this.subscription$]).pipe(this.checkForPrepaidPipe(),this.checkFor3dSecureError(e),(0,Vp.map)((function(a){var i=(0,Sa.A)(a,3),o=i[0],s=i[1],c=(i[2],n.updateCardInformation(s,o));return sessionStorage.setItem("autoaboNewCardInformation",JSON.stringify(c.cardInformation)),t.redirect&&!e?(sessionStorage.setItem("autoaboDatatransMessage",JSON.stringify(t)),r.next(),r.complete(),void(window.location.href=t.redirect)):c})),(0,Vp.takeUntil)(r),(0,Vp.switchMap)((function(e){return n._httpService.updateCardInformation(e).pipe((0,Vp.tap)((function(e){e&&(sessionStorage.removeItem("autoaboDatatransMessage"),sessionStorage.removeItem("autoaboNewCardInformation"),window.history.replaceState(null,"",window.location.pathname))})),(0,Vp.map)((function(){return e})))})),(0,Vp.tap)((function(e){(0,Af.A)("auto_abo_interaction","abo_dashboard_payment_method","step 2 - update payment method",""),n._viewUpdateService.updateCreditCardInformationElements(e),n._utilityService.openOrCloseCardInformationModal(!1),Wf.closeOffCanvas(),n.clearAllFields(),sessionStorage.removeItem("autoaboDatatransMessage"),sessionStorage.removeItem("autoaboNewCardInformation")})),(0,Vp.take)(1),(0,Vp.catchError)((function(e){throw Error(e)}))).subscribe(),r.complete()}}},{key:"clearAllFields",value:function(){this._secureFields.clear("cardNumber"),this._secureFields.clear("cvv"),this._cardOwner.value="",this._constenCheckbox.checked=!1,this.initDropdowns(),this._monthsDropdown.parentElement.classList.remove("state--labelTop"),this._yearsDropdown.parentElement.classList.remove("state--labelTop"),this._prepaidError.hidden=!0,this._3DSecureError.hidden=!0,this._3DSecureErrorSpanText.hidden=!0,this._3DSecureErrorNoSpanText.hidden=!0,this._applyToAllSubscriptionsCheckbox.checked=!1}
6},{key:"fillOffCanvas",value:function(e){this.fillViewDialog(e),this.fillReplaceDialog()}},{key:"fillViewDialog",value:function(e){this.updateLogoComponent(e.brand),this._canvas.querySelector(mf.viewDialog.cardNumber).innerHTML=e.maskedNumber,this._canvas.querySelector(mf.viewDialog.cardOwner).textContent=e.name,this._canvas.querySelector(mf.viewDialog.expiryDate).textContent=e.expirationDate}},{key:"fillReplaceDialog",value:function(){this.initDropdowns()}},{key:"updateLogoComponent",value:function(e){var t,n=document.querySelector(".autoabo-overview__container").dataset["".concat(null!==(t=null==e?void 0:e.toLowerCase())&&void 0!==t?t:"default","link")];document.querySelector(mf.viewDialog.logo).firstElementChild.src=n}},{key:"updateCardInformationObject",value:function(e,t){return t&&(e.maskedNumber=this.mapMaskedCardForHtml(t.card.masked),e.expirationDate="".concat(t.card.expiryMonth,"/20").concat(t.card.expiryYear),e.brand=t.paymentMethod,e.name=this._cardOwner.value,e.token=t.card.alias,e.applyToAllSubscriptions=this._applyToAllSubscriptionsCheckbox.checked),sessionStorage.setItem("autoaboNewCardInformation",JSON.stringify(e)),e}},{key:"updateCardInformation",value:function(e,t){var n=JSON.parse(sessionStorage.getItem("autoaboNewCardInformation"));return e.cardInformation=n||this.updateCardInformationObject(e.cardInformation,t),e}},{key:"mapMaskedCardForHtml",value:function(e){return e=(e=e.match(/[\s\S]{1,4}/g).join('<span class="autoabo-password-spaces"></span>')).replaceAll(/[\+\*xX]/gim,'<span class="autoabo-password-dots"></span>')}},{key:"triggerErrorFieldsStateChange",value:function(e){var t=this;this._errorService.showDatatransError(!1),Object.keys(this._errorStates).forEach((function(e){return t._errorStates[e]=!1})),this._canvas.querySelectorAll(mf.replaceDialog.form.errors.all).forEach((function(e){e.classList.remove("show")})),this._prepaidError.hidden=!0,this._3DSecureError.hidden=!0,this._3DSecureErrorSpanText.hidden=!0,this._3DSecureErrorNoSpanText.hidden=!0,this._canvas.querySelector(mf.replaceDialog.form.consentCheckbox.label).classList.remove("invalid");var n=this._canvas.querySelector(mf.replaceDialog.form.dropdowns.month.select),r=this._canvas.querySelector(mf.replaceDialog.form.dropdowns.year.select);e&&e.hasErrors&&(e.fields.cardNumber.valid||(this._errorStates.cardNumber=!0,this._canvas.querySelector(mf.replaceDialog.form.errors.cardNumber).classList.add("show")),e.fields.cvv.valid||(this._errorStates.cvv=!0,this._canvas.querySelector(mf.replaceDialog.form.errors.securityCode).classList.add("show")));var a=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.view.contract-and-options.off-canvas.input-form.dropdowns.month.label");n[n.selectedIndex].textContent===a&&(this._errorStates.month=!0,this._canvas.querySelector(mf.replaceDialog.form.errors.monthDropdown).classList.add("show"));var i=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.view.contract-and-options.off-canvas.input-form.dropdowns.year.label");return r[r.selectedIndex].textContent===i&&(this._errorStates.year=!0,this._canvas.querySelector(mf.replaceDialog.form.errors.yearDropdown).classList.add("show")),0===this._creditCardOwner.value.length&&(this._errorStates.cardOwner=!0,this._canvas.querySelector(mf.replaceDialog.form.errors.creditCardOwner).classList.add("show")),this._constenCheckbox.checked||(this._errorStates.consent=!0,this._canvas.querySelector(mf.replaceDialog.form.consentCheckbox.label).classList.add("invalid"),this._canvas.querySelector(mf.replaceDialog.form.errors.consent).classList.add("show")),Object.keys(this._errorStates).some((function(e){return!0===t._errorStates[e]}))}},{key:"triggerFieldLabelStateChange",value:function(e){if("cardNumber"===e.event.field){var t=this._canvas.querySelector(mf.replaceDialog.form.cardNumber.cardNumberLabel);"focus"===e.event.type&&t.classList.add("is-focused"),"blur"===e.event.type&&t.classList.remove("is-focused"),e.fields.cardNumber.length>0?t.classList.add("is-filled"):t.classList.remove("is-filled")}if("cvv"===e.event.field){var n=this._canvas.querySelector(mf.replaceDialog.form.securityCode.securityCodeLabel);"focus"===e.event.type&&n.classList.add("is-focused"),"blur"===e.event.type&&n.classList.remove("is-focused"),e.fields.cvv.length>0?n.classList.add("is-filled"):n.classList.remove("is-filled")}}}])}();Yf=zf([nn.K,$f("design:paramtypes",[])],Yf);var Zf=[{id:"",text:"",correspondingEmail:""}
6,{id:"1",text:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.customerService.topics.first"),correspondingEmail:"[email protected]"},{id:"2",text:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.customerService.topics.second"),correspondingEmail:"[email protected]"},{id:"3",text:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.customerService.topics.third"),correspondingEmail:"[email protected]"},{id:"4",text:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.customerService.topics.fourth"),correspondingEmail:"[email protected]"},{id:"5",text:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.customerService.topics.fifth"),correspondingEmail:"[email protected]"},{id:"6",text:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.customerService.topics.sixth"),correspondingEmail:"[email protected]"},{id:"7",text:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.customerService.topics.seventh"),correspondingEmail:""},{id:"8",text:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.customerService.topics.eighth"),correspondingEmail:"[email protected]"},{id:"9",text:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.customerService.topics.ninth"),correspondingEmail:"[email protected]"}],Kf=[{id:"",text:"",correspondingEmail:""},{id:"1",text:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.customerService.topics.seventh.subTopic.first"),correspondingEmail:"[email protected]"},{id:"2",text:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.customerService.topics.seventh.subTopic.second"),correspondingEmail:"[email protected]"},{id:"3",text:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.customerService.topics.seventh.subTopic.third"),correspondingEmail:"[email protected]"},{id:"4",text:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.customerService.topics.seventh.subTopic.fourth"),correspondingEmail:"[email protected]"}],Xf=__webpack_require__(74692),Jf=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Qf=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},em=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this.mainTopicDropdown=Xf(Sf.service.dropdown1.id),this.subTopicDropdown=Xf(Sf.service.dropdown2.id),this.offCanvasContainer=document.querySelector(rf.selectors.self),this.backdrop=this.offCanvasContainer.querySelector(rf.selectors.backdrop),this.offCanvasCloseButton=this.offCanvasContainer.querySelector(rf.selectors.closeButton),this.offCanvasCancelButton=this.offCanvasContainer.querySelector(rf.selectors.cancelButton),this.offCanvasContinueBtn=this.offCanvasContainer.querySelector(rf.selectors.confirmButton),this._http=new tf,this._utilService=new Yp,this._autoAboOffCanvasService=new Wf,this._viewUpdateService=new xf}),[{key:"fillContent",value:function(e,t){var n=document.querySelector(Sf.service.contract.card);document.querySelector(Sf.service.view.main).classList.remove("d-none"),document.querySelector(Sf.service.view.thankYou).classList.add("d-none"),document.querySelector("#autoabo-customer-service-2").classList.add("d-none"),this.setEventListener(e),Zf[0].text=document.getElementById(Sf.service.dropdown1.label).textContent,Vr(this.mainTopicDropdown,Zf,null,null),Kf[0].text=document.getElementById(Sf.service.dropdown2.label).textContent,Vr(this.subTopicDropdown,Kf,null,null),t&&this.fillContractCard(e,n),this.offCanvasCancelButton.textContent=Granite.I18n.get("apps.amag-ch.components.c
6ontent.autoAbo.overview.customerService.offCanvas.cancel"),this.offCanvasContinueBtn.textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.view.off-canvas.customer-service.submit-btn"),document.querySelector(Sf.service.user.city).textContent="".concat(e.userData.addresses.private.zipCode," ").concat(e.userData.addresses.private.city),document.querySelector(Sf.service.user.country).textContent="".concat(Yd.find((function(t){return t.id===e.userData.addresses.private.countryISOCode3})).text),document.querySelector(Sf.service.user.street).textContent="".concat(e.userData.addresses.private.street," ").concat(e.userData.addresses.private.houseNumber),document.querySelector(Sf.service.user.mail).textContent="".concat(e.userData.profile.email),document.querySelector(Sf.service.user.phone).textContent="".concat(e.userData.profile.phones.find((function(e){return"mobile"===e.type})).number);var r="";switch(e.userData.profile.gender){case"m":r="".concat(Granite.I18n.get("apps.amag-ch.components.content.profileoverview.salutation.manLabel"));break;case"f":r="".concat(Granite.I18n.get("apps.amag-ch.components.content.profileoverview.salutation.womanLabel"))}r+=" ".concat(e.userData.profile.firstName," ").concat(e.userData.profile.lastName),document.querySelector(Sf.service.user.name).textContent=r}},{key:"fillContractCard",value:function(e,t){var n;t.querySelector(Sf.service.contract.number).textContent="".concat(null!==(n=e.subscriptionNo)&&void 0!==n?n:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.contract.unknown")),t.querySelector(Sf.service.contract.entry).textContent="".concat(this._utilService.dateToLocaleString(new Date(e.submissionDate))),t.querySelector(Sf.service.contract.start).textContent="".concat(this._utilService.dateToLocaleString(new Date(e.activationDate))),t.querySelector(Sf.service.contract.duration).textContent="".concat(e.duration," ").concat(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.carProfile.aboDuration.months")),e.returnDateTime||(t.querySelector(Sf.service.contract.prolongination).textContent="".concat(this._utilService.dateToLocaleString(new Date(e.prolongationDate))),t.querySelector(Sf.service.contract.prolonginationRow).classList.remove("d-none")),e.returnDateTime&&(t.querySelector(Sf.service.contract.end).textContent="".concat(this._utilService.dateToLocaleString(new Date(e.nextPossibleCancellationDate))),t.querySelector(Sf.service.contract.endRow).classList.remove("d-none")),t.classList.remove("d-none")}},{key:"setEventListener",value:function(e){var t=this,n=document.querySelector(Sf.service.clickElements.address),r=document.querySelector(Sf.service.clickElements.phone),a=document.querySelector(Sf.service.view.main).querySelector(Sf.service.clickElements.send);n.addEventListener("click",(function(){t._autoAboOffCanvasService.showProfileOffCanvas(e),document.querySelector(Sf.offcanvas.content.address.canvas).classList.remove("d-none"),document.querySelector(Sf.offcanvas.content.address.head).classList.remove("d-none"),t.fillOffCanvas(e,!1)})),r.addEventListener("click",(function(){t._autoAboOffCanvasService.showProfileOffCanvas(e),document.querySelector(Sf.offcanvas.content.phone.canvas).classList.remove("d-none"),document.querySelector(Sf.offcanvas.content.phone.head).classList.remove("d-none");var n=Xf(Sf.offcanvas.content.phone.phoneDropdown.id);Zd[0].text=document.getElementById(Sf.offcanvas.content.phone.phoneDropdown.label).textContent,Vr(n,Zd,null,null),t.fillOffCanvas(e,!0)})),this.offCanvasCloseButton.addEventListener("click",(function(){return t.closeCustomerServiceOffCanvas(e)})),this.offCanvasCancelButton.onclick=function(){return t.closeCustomerServiceOffCanvas(e)},a.onclick=function(){if(document.querySelector(".autoabo-customer-service__service-checkbox-box").checked){var n=document.querySelector(Sf.service.textarea.self).value,r="7"===t.mainTopicDropdown.val()?Kf[t.subTopicDropdown.val()].text:Zf[t.mainTopicDropdown.val()].text,a="7"===t.mainTopicDropdown.val()?Kf[t.subTopicDropdown.val()].correspondingEmail:Zf[t.mainTopicDropdown.val()].correspondingEmail,i=e.subscriptionNo?e.subscriptionNo:"",o=e.userData.profile.email?e.userData.profile.email:"",s=e.userData.profile.firstName&&e.userData.profile.lastName?e.userData.profile.firstName+" "+e.userData.profile.lastName:"";n=n.concat("\n\n","emailadress: ",o,"\n","name: ",s,"\n","subscriptionNr: ",i);var c=new FormData;c.append("recipients",a),c.append("subject",r),c.append("message",n),t._http.sendMail(c).pipe((0,Vp.tap)((function(e){if(200===e.status){document.querySelector(Sf.service.view.main).classList.add("d-none"),document.querySelector(Sf.service.view.thankYou).classList.remove("d-none");var n=window.dataLayer;void 0!==n&&n.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_customer_service",eventParameter2:"interaction_label",fieldValue2:"submit",eventParameter5:"interaction_content",fieldValue5:"".concat(t.mainTopicDropdown.val())})}})),(0,Vp.take)(1)).subscribe()}},this.offCanvasContinueBtn.onclick=function(){return t.updateUser(e)},this.backdrop.addEventListener("click",(function(){return t.closeCustomerServiceOffCanvas(e)})),it.lp.isMobile()?this.mainTopicDropdown.on("change",(function(){"7"===t.mainTopicDropdown.val()?document.querySelector("#autoabo-customer-service-2").classList.remove("d-none"):document.querySelector("#autoabo-customer-service-2").classList.add("d-none")})):this.mainTopicDropdown.on("select2:select",(function(){"7"===t.mainTopicDropdown.val()?document.querySelector("#autoabo-customer-service-2").classList.remove("d-none"):document.querySelector("#autoabo-customer-service-2").classList.add("d-none")}))}},{key:"fillOffCanvas",value:function(e,t){var n=document.querySelector(Sf.offcanvas.box);if(t){var r=this._utilService.getUserMobilePhoneNumber(e.userData.profile),a=Xf(Sf.offcanvas.content.phone.phoneDropdown.id);a.val(r.countryCode),a.trigger("select2:select").trigger("change"),n.querySelector(Sf.offcanvas.content.phone.number).value="".concat(r.phoneNumber)}else n.querySelector(Sf.offcanvas.content.address.city).value="".concat(e.userData.addresses.private.city),n.querySelector(Sf.offcanvas.content.address.country).value="".concat(Yd.find((function(t){return t.id===e.userData.addresses.private.countryISOCode3})).text),n.querySelector(Sf.offcanvas.content.address.postCode).value="".concat(e.userData.addresses.private.zipCode),n.querySelector(Sf.offcanvas.content.address.number).value="".concat(e.userData.addresses.private.houseNumber),n.querySelector(Sf.offcanvas.content.address.street).value="".concat(e.userData.addresses.private.street)}},{key:"updateUser",value:function(e){return Qf(this,void 0,void 0,ht().mark((function t(){var n,r,a,i,o=this;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=this.offCanvasContainer.querySelector(Sf.offcanvas.content.address.canvas).classList.contains("d-none"))){t.next=10;break}if(a=this.offCanvasContainer.querySelector(Sf.offcanvas.content.phone.phoneDropdown.self).value+this.offCanvasContainer.querySelector(Sf.offcanvas.content.phone.number).value,!(n=this.validateUserUpdateForms(r,a,null))){t.next=8;break}return t.next=7,Mr(a);case 7:e.userData.profile.phones.map((function(e){"mobile"===e.type&&(e.number=a)}));case 8:t.next=16;break;case 10:if(i={zipCode:this.offCanvasContainer.querySelector(Sf.offcanvas.content.address.postCode).value,countryISOCode3:Yd.find((function(e){return e.text===o.offCanvasContainer.querySelector(Sf.offcanvas.content.address.country).value})).id,neighborhood:"",city:this.offCanvasContainer.querySelector(Sf.offcanvas.content.address.city).value,street:this.offCanvasContainer.querySelector(Sf.offcanvas.content.address.street).value,houseNumber:this.offCanvasContainer.querySelector(Sf.offcanvas.content.address.number).value},!(n=this.validateUserUpdateForms(r,null,i))){t.next=16;break}return t.next=15,Rr(i);case 15:e.userData.addresses={private:i};case 16:n&&((0,Af.A)("auto_abo_interaction","abo_dashboard_customer_service",r?"change contact number":"change address",null),this._viewUpdateService.updateCustomerViewElements(e),this.closeCustomerServiceOffCanvas(e));case 17:case"end":return t.stop()}}),t,this)})))}},{key:"closeCustomerServiceOffCanvas",value:function(e){document.querySelector(Sf.offcanvas.box).classList.remove("is-shown"),document.querySelector(Sf.offcanvas.content.address.canvas).classList.add("d-none"),document.querySelector(Sf.offcanvas.content.address.head).classList.add("d-none"),document.querySelector(Sf.offcanvas.content.phone.canvas).classList.add("d-none"),document.querySelector(Sf.offcanvas.content.phone.head).classList.add("d-none"),Wf.closeOffCanvas(),this.setOffCanvasListener(e)}},{key:"setOffCanvasListener",value:function(e){var t=this;this.offCanvasCloseButton.addEventListener("click",(function(){return t.closeCustomerServiceOffCanvas(e)})),this.offCanvasCancelButton.onclick=function(){return t.closeCustomerServiceOffCanvas(e)},this.offCanvasContinueBtn.onclick=function(){return t.updateUser(e)}}},{key:"validateUserUpdateForms",value:function(e,t,n){var r=this;if(this.offCanvasContainer.querySelectorAll(Sf.offcanvas.content.error).forEach((function(e){return e.style.display="none"})),e){var a=new RegExp("^\\+[1-9]{1,2}[0-9]{3,14}$");return this.offCanvasContainer.querySelector(Sf.offcanvas.content.phone.phoneDropdown.self).value.startsWith("+"),this.offCanvasContainer.querySelector(Sf.offcanvas.content.phone.phoneDropdown.self).parentElement.querySelector(Sf.offcanvas.content.error).style.display="none",this.offCanvasContainer.querySelector(Sf.offcanvas.content.phone.number).value.length,this.offCanvasContainer.querySelector(Sf.offcanvas.content.phone.number).parentElement.querySelector(Sf.offcanvas.content.error).style.display="none",a.test(t)}var i=new RegExp("^[0-9]{4,5}$"),o=new RegExp("^[a-zA-ZäöüÃÃÃéèà ÃÃÃ\\s\\-',()\\d]+$"),s=new RegExp("^[a-zA-ZäöüÃÃÃéèà ÃÃÃ\\s\\-',()\\d]+$"),c=new RegExp("^[a-zA-ZäöüÃÃÃéèà ÃÃÃ\\s\\-',()\\d]+$"),l={country:!!Yd.find((function(e){return e.text.toLowerCase()===r.offCanvasContainer.querySelector(Sf.offcanvas.content.address.country).value.toLowerCase()})),postCode:i.test(n.zipCode),city:o.test(n.city),street:s.test(n.street),number:c.test(n.houseNumber)};if(Object.keys(l).some((function(e){return!l[e]}))){for(var u in l)if(!l[u]){var d=this.offCanvasContainer.querySelector(Sf.offcanvas.content.address[u]).parentElement.querySelector(Sf.offcanvas.content.error);d&&(d.style.display="flex")}return!1}for(var h in l)this.offCanvasContainer.querySelector(Sf.offcanvas.content.address[h]).parentElement.querySelector(Sf.offcanvas.content.error).style.display="none";return!0}}])}();em=Jf([nn.K],em);var tm=__webpack_require__(74692),nm=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},rm=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this.autoAboOverviewContainer=document.querySelector(".autoabo-overview__container"),this.autoAboAngeboteRecoContainer=document.querySelector(".amag-angeboteRecoContainer"),this.autoAboDamageViewContainer=document.querySelector(".autoabo-damage__container"),this.autoAboContractAndOptions=document.querySelector(".autoabo-contract__container"),this.autoAboCustomerServiceViewContainer=document.querySelector(".autoabo-customer-service__container")}),[{key:"changeView",value:function(e){switch(this.hideAllViews(),Wf.resetOffCanvas(),tm("body,html").animate({scrollTop:0},100),e){case yp.DASHBOARD:this.autoAboOverviewContainer.classList.remove("d-none"),this.removeAngeboteRecoContainerIfAvailable(!1);break;
6case yp.CONTRACT_AND_OPTIONS:this.autoAboContractAndOptions.classList.remove("d-none");break;case yp.DAMAGE:this.autoAboDamageViewContainer.classList.remove("d-none");break;case yp.CUSTOMER_SERVICE:this.autoAboCustomerServiceViewContainer.classList.remove("d-none");break;default:this.autoAboOverviewContainer.classList.remove("d-none"),this.removeAngeboteRecoContainerIfAvailable(!1)}}},{key:"hideAllViews",value:function(){this.autoAboOverviewContainer.classList.add("d-none"),this.removeAngeboteRecoContainerIfAvailable(!0),this.autoAboDamageViewContainer.classList.add("d-none"),this.autoAboContractAndOptions.classList.add("d-none"),this.autoAboCustomerServiceViewContainer.classList.add("d-none")}},{key:"removeAngeboteRecoContainerIfAvailable",value:function(e){this.autoAboAngeboteRecoContainer&&(e?this.autoAboAngeboteRecoContainer.classList.add("d-none"):this.autoAboAngeboteRecoContainer.classList.remove("d-none"))}}])}();rm=nm([nn.K],rm);var am=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},im=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this._autoAboDataTransService=new Yf,this._utilService=new Yp,this._autoAboCustomerServiceService=new em,this._autoAboViewControllerService=new rm,this._autoAboOffCanvasService=new Wf,this._autoAboViewUpdateService=new xf,this._containerElement=document.querySelector(vf),this._dataLayer=window.dataLayer,this.subscription$=new Vp.ReplaySubject(1)}),[{key:"fillContent",value:function(e){var t,n=this._containerElement.querySelector(gf.card),r=this._containerElement.querySelector(_f.card),a=this._containerElement.querySelector(bf.rate.hasNew),i=this._containerElement.querySelector(bf.rate.hasCurrent),o=this._containerElement.querySelector(bf.contract.endRow),s=this._containerElement.querySelector(bf.contract.returnRow),c=this._containerElement.querySelector(bf.contract.prolonginationRow),l=this._containerElement.querySelector(yf.card);n.classList.add("d-none"),a.classList.add("d-none"),i.classList.add("d-none"),o.classList.add("d-none"),c.classList.add("d-none"),this.subscription$.next(e);var u=new sm,d=this._utilService.getLanguageLocale();if(e.status===_p.CANCELLED){n.classList.remove("d-none"),u.fillContent(n,e);var h=new Date(e.returnDateTime);this._containerElement.querySelector(gf.date).textContent="".concat(h.toLocaleDateString(d,{weekday:"long"}),", ").concat(this._utilService.dateToLocaleString(h),", ").concat(this._utilService.timeToLocaleString(h,d));var p=this._containerElement.querySelector(gf.status);switch(e.returnStatus){case wp.ACCEPTED:p.innerHTML=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.returnDate.status.accepted");break;case wp.DENIED:p.innerHTML=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.returnDate.status.denied");break;case wp.PENDING:p.innerHTML=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.returnDate.status.pending");break;default:p.innerHTML=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.contract.follows")}null!=e.returnDealerId?(this._containerElement.querySelector(gf.garage.city).textContent="".concat(e.garageData.zipCode," ").concat(e.garageData.city),this._containerElement.querySelector(gf.garage.street).textContent="".concat(e.garageData.street),this._containerElement.querySelector(gf.garage.name).textContent="".concat(e.garageData.shortname)):(this._containerElement.querySelector(gf.garage.city).classList.add("d-none"),this._containerElement.querySelector(gf.garage.street).classList.add("d-none"),this._containerElement.querySelector(gf.garage.name).classList.add("d-none"))}u.fillContent(l,e);var f=new Date(e.activationDate),m=new Date,v=this._containerElement.querySelector(yf.editButton);e.status===_p.ACTIVE&&(this._containerElement.querySelector(_f.replaceButton).classList.remove("d-none"),v.classList.remove("d-none"));if(this._containerElement.querySelector(yf.value).textContent="".concat(this._utilService.addSeperators(e.activeMileage,!1)," km"),!e.activationDate||this.monthDiff(f,m)<=3)this._containerElement.querySelector(yf.addition).textContent="".concat(Granite.I18n.get("apps.amag-ch.components.c
6ontent.autoAbo.overview.contract.contract.withinThreeMonth")),v.disabled=!0,v.title=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.contract.withinThreeMonth");else if(e.upcomingMileage){var g={packageKM:"".concat(e.upcomingMileage),newPackageDate:"".concat(this._utilService.dateToLocaleString(new Date(e.nextBillingCycleDate)))};this._containerElement.querySelector(yf.addition).textContent="".concat(Ka(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.option.newPackage"),g))}else this._containerElement.querySelector(yf.addition).classList.add("d-none");this._autoAboViewUpdateService.updateCreditCardInformationElements(e),u.fillContent(r,e),this._containerElement.querySelector(bf.contract.number).textContent="".concat(null!==(t=e.subscriptionNo)&&void 0!==t?t:Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.contract.unknown"));var y=new Date(e.submissionDate);if(this._containerElement.querySelector(bf.contract.entry).textContent="".concat(this._utilService.dateToLocaleString(y)),e.activationDate){var _=new Date(e.activationDate);this._containerElement.querySelector(bf.contract.start).textContent="".concat(this._utilService.dateToLocaleString(_))}else this._containerElement.querySelector(bf.contract.start).textContent="".concat(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.contract.follows"));this._containerElement.querySelector(bf.contract.duration).textContent="".concat(e.duration," ").concat(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.carProfile.aboDuration.months"));var b=new Date(e.prolongationDate),w=new Date(e.returnDateTime);e.returnDateTime?(o.classList.remove("d-none"),this._containerElement.querySelector(bf.contract.end).textContent="".concat(this._utilService.dateToLocaleString(b)),s.classList.remove("d-none"),this._containerElement.querySelector(bf.contract.return).textContent="".concat(this._utilService.dateToLocaleString(w))):(c.classList.remove("d-none"),this._containerElement.querySelector(bf.contract.prolongination).textContent="".concat(this._utilService.dateToLocaleString(b))),e.upcomingMonthlyRateTotalGross?(a.classList.remove("d-none"),this._containerElement.querySelector(bf.rate.newRateDate).innerHTML="".concat(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.contract.newRate")," ").concat(this._utilService.dateToLocaleString(new Date(e.nextBillingCycleDate))),a.querySelector(bf.rate.newRate).innerHTML="\n ".concat(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.chfText")," ").concat(this._utilService.addSeperators(e.upcomingMonthlyRateTotalGross,!0)),a.querySelector(bf.rate.currentRate).innerHTML="".concat(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.chfText")," ").concat(this._utilService.addSeperators(e.activeMonthlyRateTotalGross,!0)),e.homeDelivery&&(a.querySelector(bf.rate.delivery).textContent="".concat(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.contract.includeHomeDelivery")))):(i.classList.remove("d-none"),e.homeDelivery&&(i.querySelector(bf.rate.delivery).textContent="".concat(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.contract.includeHomeDelivery"))),i.querySelector(bf.rate.currentRate).innerHTML="".concat(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.chfText")," ").concat(this._utilService.addSeperators(e.activeMonthlyRateTotalGross,!0))),this._containerElement.querySelector(bf.caution.value).innerHTML="".concat(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.chfText")," ").concat(this._utilService.addSeperators(e.oneTimePaymentTotalGross,!0)),e.status===_p.ACTIVE&&this._containerElement.querySelector(wf.self).classList.remove("d-none"),this.addEventListeners(e)}},{key:"addEventListeners",value:function(e){var t=this,n=this._containerElement.querySelector(".autoabo-overview__customer-service");this._containerElement.querySelector(_f.replaceButton).addEventListener("click",(function(){document.querySelector(rf.selectors.confirmButton).classList.add("d-none"),document.querySelector(rf.selectors.cancelButton).classList.add("d-none"),t._autoAboDataTransService.subscription$.next(e),t._autoAboOffCanvasService.showDatatransOffCanvas(e)})),void 0!==this._dataLayer&&this._dataLayer.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_contract",eventParameter2:"interaction_label",fieldValue2:"click change payment method",eventParameter10:"carBrand",fieldValue10:"".concat(e.vehicleData.brand.code),eventParameter11:"carModel",fieldValue11:"".concat(e.vehicleData.modelType.code)});n.onclick=function(n){return t.setCustomerService(!0,e,n,!0)},this._containerElement.querySelector(yf.editButton).addEventListener("click",(function(){return t._autoAboOffCanvasService.showMileagePackageOffCanvas(e)})),document.querySelector(bf.documents).addEventListener("click",(function(){return t._autoAboOffCanvasService.showDocumentsOffCanvas(e)})),this._containerElement.querySelector(wf.link).addEventListener("click",(function(){return t._autoAboOffCanvasService.showCancelOffCanvas(e)})),this._containerElement.querySelector(gf.link).addEventListener("click",(function(){void 0!==t._dataLayer&&t._dataLayer.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_contract",eventParameter2:"interaction_label",fieldValue2:"click more return information",eventParameter10:"carBrand",fieldValue10:"".concat(e.vehicleData.brand.code),eventParameter11:"carModel",fieldValue11:"".concat(e.vehicleData.modelType.code)})}))}},{key:"monthDiff",value:function(e,t){var n;return n=12*(t.getFullYear()-e.getFullYear()),n-=e.getMonth(),(n+=t.getMonth())<=0?0:n}},{key:"triggerCreditCardUpdate",value:function(e,t,n){var r={subscription:n,message:t,fromRedirect:e};this._autoAboDataTransService.updatedSubscription$.next(r)}},{key:"setCustomerService",value:function(e,t,n,r){var a=this;um.userData$.pipe((0,Vp.map)((function(e){if(t)return t;var n={userData:{}};return n.userData=e,n})),(0,Vp.tap)((function(t){e?(n.preventDefault(),a._autoAboCustomerServiceService.fillContent(t,!1),a._autoAboViewControllerService.changeView(yp.CUSTOMER_SERVICE)):(a._autoAboViewControllerService.changeView(yp.CUSTOMER_SERVICE),a._autoAboCustomerServiceService.fillContent(t,r),(0,Af.A)("auto_abo_interaction","auto_abo_dashboard","click link button","customer service"))})),(0,Vp.take)(1)).subscribe()}}])}();im=am([nn.K],im);var om=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},sm=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this.autoAboViewControllerService=new rm,this._utilService=new Yp,this.AutoAboCustomerServiceService=new em}),[{key:"fillContent",value:function(e,t){var n,r,a,i,o,s,c,l,u,d,h,p,f=e.querySelector(".amag-autoabo-notification"),m=f.querySelector(".amag-autoabo__spinner"),v=this._utilService.getLanguageLocale(),g=new Date,y={};try{if("4"!=f.dataset.position){var _=f.querySelector(".amag-autoabo-notification__text");switch(t.status){case _p.PROCESSING:case _p.SUBMITTED:if(t.handoverDate&&t.activationDate)if(t.homeDelivery){var b="".concat((null===(a=null===(r=null===(n=t.userData)||void 0===n?void 0:n.addresses)||void 0===r?void 0:r.private)||void 0===a?void 0:a.street)||""," ").concat((null===(s=null===(o=null===(i=t.userData)||void 0===i?void 0:i.addresses)||void 0===o?void 0:o.private)||void 0===s?void 0:s.houseNumber)||""),w="".concat((null===(u=null===(l=null===(c=t.userData)||void 0===c?void 0:c.addresses)||void 0===l?void 0:l.private)||void 0===u?void 0:u.zipCode)||""," ").concat((null===(p=null===(h=null===(d=t.userData)||void 0===d?void 0:d.addresses)||void 0===h?void 0:h.private)||void 0===p?void 0:p.city)||""),S=new Date(t.handoverDate),C="".concat(t.userData.profile.firstName," ").concat(t.userData.profile.lastName,", ").concat(b,", ").concat(w);y={longDate:"".concat(S.toLocaleDateString(v,{weekday:"long"}
6),", ").concat(this._utilService.dateToLocaleString(S)),addressHome:C},_.classList.add("data-hj-suppress"),_.innerHTML="".concat(Ka(f.dataset.textStatus2a,y))}else{var E=new Date(t.handoverDate),x="".concat(t.garageData.shortname,", ").concat(t.garageData.street,", \n ").concat(t.garageData.zipCode," ").concat(t.garageData.city);y={longDate:"".concat(E.toLocaleDateString(v,{weekday:"long"}),", ").concat(this._utilService.dateToLocaleString(E)),addressGarage:x},_.classList.add("data-hj-suppress"),_.innerHTML="".concat(Ka(f.dataset.textStatus2b,y))}else _.innerHTML="".concat(f.dataset.textStatus1);break;case _p.ACTIVE:"1"===f.dataset.position&&this.showLink(f,t);var A=this._utilService.getDayDifference(g,new Date(t.prolongationDate));if(A<40&&A>30){y={days:"".concat(A)},_.innerHTML="".concat(Ka(f.dataset.textStatus5,y));break}if(t.upcomingMonthlyRateTotalGross){var k=new Date(t.nextBillingCycleDate);y={shortDate:"".concat(k.toLocaleDateString(v,{weekday:"long"}),", ").concat(this._utilService.dateToLocaleString(k))},_.innerHTML="".concat(Ka(f.dataset.textStatus6,y));break}f.classList.add("d-none");break;case _p.CANCELLED:if("1"===f.dataset.position||"2"===f.dataset.position){"1"===f.dataset.position&&this.showLink(f,t),_.innerHTML="".concat(Ka(f.dataset.textStatus4,y));break}f.classList.add("d-none");break;case _p.DENIED:"1"===f.dataset.position&&this.showLink(f,t),_.innerHTML="".concat(Ka(f.dataset.textStatus3,y)),f.classList.add("d-none");break;default:f.classList.add("d-none")}}else f.classList.add("d-none")}catch(e){console.error("Something went wrong when filling content for AutoAboNotificationService:",e)}this.checkCardExpiration(t.cardInformation.expirationDate)&&"3"!=f.dataset.position&&"2"!=f.dataset.position&&this.addCreditCardExpiredNotification(e,t),m.classList.add("d-none");var T=f.querySelector(".amag-autoabo-notification__text").textContent,L=f.querySelector(".amag-autoabo-notification__text").classList.contains("d-none")?"EMPTY":f.querySelector(".amag-autoabo-notification__text").textContent,I=window.dataLayer;void 0!==I&&""!=T&&I.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_notification",eventParameter2:"interaction_label",fieldValue2:"shown",eventParameter5:"interaction_content",fieldValue5:"".concat(T," | ").concat(L)})}},{key:"showLink",value:function(e,t){var n=this,r=new im,a=e.querySelector(".amag-autoabo-notification__link");switch(t.status){case _p.DENIED:a.innerHTML=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.tab.notification.link.customerService"),a.addEventListener("click",(function(){n.AutoAboCustomerServiceService.fillContent(t,!1),n.autoAboViewControllerService.changeView(yp.CUSTOMER_SERVICE),n.addTrackingEvent(e)})),a.classList.remove("d-none");break;case _p.CANCELLED:a.innerHTML=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.tab.notification.link.returnDate"),a.addEventListener("click",(function(){r.fillContent(t),n.autoAboViewControllerService.changeView(yp.CONTRACT_AND_OPTIONS),n.addTrackingEvent(e)})),a.classList.remove("d-none");break;case _p.ACTIVE:a.innerHTML=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.tab.notification.link.contract"),a.addEventListener("click",(function(){r.fillContent(t),n.autoAboViewControllerService.changeView(yp.CONTRACT_AND_OPTIONS),n.addTrackingEvent(e)})),a.classList.remove("d-none")}}},{key:"addTrackingEvent",value:function(e){var t=e.querySelector(".amag-autoabo-notification__text").textContent,n=e.querySelector(".amag-autoabo-notification__text").classList.contains("d-none")?"EMPTY":e.querySelector(".amag-autoabo-notification__text").textContent,r=window.dataLayer;void 0!==r&&""!=t&&r.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_notification",eventParameter2:"interaction_label",fieldValue2:"click",eventParameter5:"interaction_content",fieldValue5:"".concat(t," | ").concat(n)})}},{key:"addCreditCardExpiredNotification",value:function(e,t){var n=e.querySelector(".amag-autoabo-notification");if(n.classList.contains("d-none"))n.querySelector(".amag-autoabo-notification__text").innerHTML="".concat(n.dataset.textStatus7),n.querySelector(".amag-autoabo__spinner").classList.add("d-none"),n.classList.remove("d-none"),"1"===n.dataset.position&&this.showLink(n,t);else{var r=e.querySelector(".amag-autoabo-notification").cloneNode(!0);e.querySelector(".amag-autoabo-notification").insertAdjacentElement("beforebegin",r),r.querySelector(".amag-autoabo__spinner").classList.add("d-none"),r.querySelector(".amag-autoabo-notification__text").innerHTML="".concat(n.dataset.textStatus7),"1"===r.dataset.position&&this.showLink(r,t)}}},{key:"checkCardExpiration",value:function(e){var t,n=new Date,r=new Date(e.replace("/","/01/"));return t=12*(r.getFullYear()-n.getFullYear()),t-=n.getMonth(),0>(t+=r.getMonth())}}])}();sm=om([nn.K],sm);var cm,lm=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},um=cm=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this._autoAboOffCanvasService=new Wf,this._utilService=new Yp,this.autoAboViewControllerService=new rm,this.autoAboHttpService=new tf,this.autoAboNotificationService=new sm,this.autoAboContractAndOptionService=new im,this.language=this._utilService.getLanguage()}),[{key:"initSubscriptionsData",value:function(){var e=this;Pr((function(e){cm.userData$.next(e)})),cm.userData$.pipe((0,Vp.switchMap)((function(t){var n=e._utilService.formatUIDToDkiID(t.UID);return e.autoAboHttpService.getSummary(n,t.data.PID).pipe((0,Vp.map)((function(n){return n.map((function(n){try{n.cardInformation=e._utilService.mapCardInformation(n.cardInformation),n=e.mapUserDataToSummary(t,n)}catch(e){throw new Error("Error occurred in AutoAboService on initSubscriptionsData. User is not logged in or user address might be incomplete")}return n}))})),(0,Vp.catchError)((function(e){throw e})))})),(0,Vp.tap)((function(e){return cm.allSummaries$.next(e)})),(0,Vp.take)(1),(0,Vp.catchError)((function(e){throw cm.allSummaries$.next([]),e}))).subscribe()}},{key:"initVehiclesData",value:function(e){var t=this,n=e.querySelectorAll(".amag-autoabo__spinner.overview");return cm.allSummaries$.pipe((0,Vp.switchMap)((function(e){var n=e.map((function(e){return t.autoAboHttpService.getVehicleInformation(e.vehicle.vin).pipe((0,Vp.map)((function(t){var n;if(!t)throw new Error("Error occurred in AutoAboService on initVehiclesData. Vehicle data could not be fetched");return e.vehicleData=t,(null===(n=e.vehicleData.equipments)||void 0===n?void 0:n.length)>0&&e.vehicleData.equipments.map((function(e){return e.name&&(e.name=e.name.replaceAll(",",",â")),e.description&&(e.description=e.description.replaceAll(",",",â")),e})),e})),(0,Vp.catchError)((function(e){throw console.error(e),e})))}));return Vp.concat.apply(void 0,(0,ut.A)(n)).pipe((0,Vp.toArray)())})),(0,Vp.switchMap)((function(e){var t=e.map((function(e){return(0,Vp.from)(Zo.getData(!0,"userVehicleList")).pipe((0,Vp.map)((function(t){return e.vehicleData.licensePlate=t.licensePlate,e})))}));return Vp.concat.apply(void 0,(0,ut.A)(t)).pipe((0,Vp.toArray)())})),(0,Vp.switchMap)((function(e){var n=e.map((function(e){return t.autoAboHttpService.getGarageData(e.returnDealerId).pipe((0,Vp.map)((function(t){return e.garageData=t,e})))}));return Vp.concat.apply(void 0,(0,ut.A)(n)).pipe((0,Vp.toArray)())})),(0,Vp.map)((function(e){return e.map((function(e){return e.documents.map((function(e){return e.creationDate=new Date(e.creationDate),e})),e})),e})),(0,Vp.tap)((function(e){var r=(e=t.sortByProlongationDate(e)).filter((function(e){return e.status!==_p.FINISHED&&e.status!==_p.DENIED})),a=e.filter((function(e){return e.status===_p.FINISHED||e.status===_p.DENIED}));r.length>0&&(t.createSubscriptionNode(!0,r),t.fillCarItem(!0,r),t.setEventListenersForActiveSubscriptions(r),document.querySelector(".autoabo-overview__active-subscriptions").classList.remove("d-none")),a.length>0&&(t.createSubscriptionNode(!1,a),t.fillCarItem(!1,a),t.setEventListenersForExpiredSubscriptions(),document.querySelector(".autoabo-overview__expired-subscriptions").classList.remove("d-none")),n.forEac
6h((function(e){return e.classList.add("d-none")})),t.setGeneralEventListener(r[0],r.length>1),t.addUpdateListeners()})),(0,Vp.take)(1))}},{key:"sortByProlongationDate",value:function(e){return e.sort((function(e,t){return new Date(e.prolongationDate).getTime()-new Date(t.prolongationDate).getTime()}))}},{key:"createSubscriptionNode",value:function(e,t){var n=e?"active":"expired",r=document.querySelector(".autoabo-overview__".concat(n,"-subscriptions__item")),a=document.querySelector(".autoabo-overview__".concat(n,"-subscriptions__carlist")),i=a.firstElementChild;i.id="subscriptionNo-".concat(t[0].subscriptionNo);var o=document.createDocumentFragment();if(0!==t.length){for(var s=0;s<t.length-1;s++){var c=r.cloneNode(!0);if(c.id="subscriptionNo-".concat(t[s+1].subscriptionNo),!e)if(t[s+1].status===_p.DENIED){var l=c.querySelector(".autoabo-overview__expired-subscriptions-car-options-ts-selector");l.parentElement.removeChild(l)}else c.removeChild(c.querySelector(".above-car-item"));o.appendChild(c)}if(!e)if(t[0].status===_p.DENIED){var u=i.querySelector(".autoabo-overview__expired-subscriptions-car-options-ts-selector");u.parentElement.removeChild(u)}else i.removeChild(i.querySelector(".above-car-item"));a.append(o),a.classList.remove("d-none")}else document.querySelector(".autoabo-overview__".concat(n,"-subscriptions")).remove()}},{key:"fillCarItem",value:function(e,t){var n=this,r=e?"active":"expired",a=Array.from(document.getElementsByClassName("autoabo-overview__".concat(r,"-subscriptions__item"))),i=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.contract.follows"),o=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.contract.contract.end");a.forEach((function(a,s){var c,l,u,d,h,p,f,m,v,g=t[s],y=g.status,_=a.querySelectorAll(".autoabo-overview__car-option"),b=a.querySelector(".autoabos-car-".concat(r,"-item__header")),w=a.querySelector(".autoabos-car-".concat(r,"-item__details")),S=null===(l=null===(c=g.vehicleData.images)||void 0===c?void 0:c.find((function(e){return 1===e.sortOrder})))||void 0===l?void 0:l.media.link,C=w.querySelector("#activationDate"),E=g.activationDate,x=w.querySelector("#prolongationOrEndDateKey"),A=w.querySelector("#prolongationOrEndDateValue"),k=g.prolongationDate,T=g.nextPossibleCancellationDate,L=w.querySelector("#returnDateValue");y!=_p.FINISHED&&n.autoAboNotificationService.fillContent(a,g);var I=b.querySelector(".autoabos-car-".concat(r,"-item__header__headline"));if(g.vehicleData.brand&&(null===(u=g.vehicleData.modelType)||void 0===u?void 0:u.name)?I.textContent="".concat(null===(d=g.vehicleData.brand)||void 0===d?void 0:d.texts.find((function(e){return e.locale===n.language})).name.toUpperCase()," ").concat(null===(h=g.vehicleData.modelType)||void 0===h?void 0:h.name):g.vehicleData.brand&&!(null===(p=g.vehicleData.modelType)||void 0===p?void 0:p.name)?I.textContent="".concat(null===(f=g.vehicleData.brand)||void 0===f?void 0:f.texts.find((function(e){return e.locale===n.language})).name.toUpperCase()):!g.vehicleData.brand&&(null===(m=g.vehicleData.modelType)||void 0===m?void 0:m.name)?I.textContent="".concat(null===(v=g.vehicleData.modelType)||void 0===v?void 0:v.name):I.textContent="N/A",b.querySelector(".autoabos-car-".concat(r,"-item__header__tag")).textContent=n.getTranslatedTagByStatusEnum(g.status),b.querySelector(".autoabos-car-".concat(r,"-item__header__tag")).style.setProperty("--tag-color",n.getTagColorBySubscriptionState(g.status)),S&&(a.querySelector("#vehicleImage").src=S),w.querySelector("#contractNumber").textContent="".concat(g.subscriptionNo),w.querySelector("#submissionDate").textContent="".concat(n._utilService.dateToLocaleString(new Date(g.submissionDate))),y===_p.DENIED?C.parentElement.classList.add("d-none"):y===_p.FINISHED?C.textContent=E?"".concat(n._utilService.dateToLocaleString(new Date(E))):"not provided":C.textContent="".concat(E?n._utilService.dateToLocaleString(new Date(E)):i),w.querySelector("#duration").textContent="".concat(g.duration," ").concat(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.carProfile.aboDuration.months")),y===_p.DENIED?A.parentElement.classList.add("d-none"):y===_p.FINISHED?(x.textContent="".concat(o),A.textContent=T?"".concat(n._utilService.dateToLocaleStr
6ing(new Date(T))):"not provided"):y===_p.CANCELLED?(L.textContent="".concat(n._utilService.dateToLocaleString(new Date(g.returnDateTime))),L.parentElement.hidden=!1,T?(x.textContent="".concat(o),A.textContent="".concat(n._utilService.dateToLocaleString(new Date(T)))):A.textContent="".concat(k?n._utilService.dateToLocaleString(new Date(k)):i)):T?(x.textContent="".concat(o),A.textContent="".concat(n._utilService.dateToLocaleString(new Date(T)))):A.textContent="".concat(k?n._utilService.dateToLocaleString(new Date(k)):i),w.querySelector("#mileage").textContent="".concat(t[s].activeMileage.toLocaleString("de-CH")," KM"),g.upcomingMileage){var D="".concat(Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.carProfile.monthlyKMpackageRenewalDate")," ").concat(n._utilService.dateToLocaleString(new Date(g.nextBillingCycleDate)));D=D.replace("[VARIABLE]","".concat(g.upcomingMileage.toLocaleString("de-CH")," KM")),w.querySelector("#nextMileagePackage").textContent=D,w.querySelector("#nextMileagePackageRow").classList.remove("d-none")}w.querySelector("#monthlyRateTotalGross").textContent="CHF ".concat(n._utilService.addSeperators(g.activeMonthlyRateTotalGross,!0)),e?(_.forEach((function(e,t){n.checkOptionFieldSubscriptionStatus(g,0===t)||e.classList.add("d-none")})),4===a.querySelector(".autoabo-overview__car-options").querySelectorAll(".d-none").length?a.querySelector(".autoabo-overview__active-subscriptions-overview").classList.remove("col-md-7"):_.forEach((function(e,t){n.setOptionsEventListener(e,t,g)}))):_.forEach((function(e){n.setOptionsEventListener(e,3,g)})),a.classList.remove("d-none")}))}},{key:"setEventListenersForActiveSubscriptions",value:function(e){var t=this;Array.from(document.getElementsByClassName("autoabo-overview__active-subscriptions__item")).forEach((function(n,r){n.querySelector(".autoabos-car-active-item__header__sub").addEventListener("click",(function(){t._autoAboOffCanvasService.showVehicleDetailsOffCanvas(e[r])}))}))}},{key:"setEventListenersForExpiredSubscriptions",value:function(){var e=this,t=Array.from(document.getElementsByClassName("autoabo-overview__expired-subscriptions__item"));t.forEach((function(n){n.querySelectorAll(".autoabos-car-expired-item__header__expanding-link__button").forEach((function(r){return r.addEventListener("click",(function(){var a=n.querySelector(".autoabos-car-expired-item__header"),i=n.querySelector(".autoabos-car-expired-item__inner-container");i.classList.contains("expanded")?(a.classList.remove("expanded"),i.classList.remove("expanded"),n.querySelector(".amag-autoabo-notification")&&n.querySelector(".amag-autoabo-notification").classList.add("d-none"),r.textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.carProfile.showMoreButton")):(e.closeAllOtherExpiredSubscriptions(t),n.querySelector(".amag-autoabo-notification")&&n.querySelector(".amag-autoabo-notification").classList.remove("d-none"),a.classList.add("expanded"),i.classList.add("expanded"),r.textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.carProfile.showLessButton"),i.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))}))}))}))}},{key:"setGeneralEventListener",value:function(e,t){var n=this;document.querySelectorAll(".autoabo-back-button").forEach((function(e){return e.addEventListener("click",(function(){return n.changeView(yp.DASHBOARD)}))}));var r=window.dataLayer,a=document.querySelectorAll(".autoabo-overview__customer-service"),i=function(r){return n.autoAboContractAndOptionService.setCustomerService(!1,e,r,t)};a.forEach((function(e){return e.onclick=i})),document.querySelectorAll(".autoabo-overview__discoverAboVehicles").forEach((function(e){return e.addEventListener("click",(function(){void 0!==r&&r.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"auto_abo_dashboard",eventParameter2:"interaction_label",fieldValue2:"click link button",eventParameter3:"interaction_content",fieldValue3:"discover more vehicle"})}))})),document.querySelectorAll(".autoabo-overview__infoAndFaq").forEach((function(e){return e.addEventListener("click",(function(){void 0!==r&&r.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"auto_abo_dashboard",eventParameter2:"interaction_label",fieldValue2:"click link button",eventParameter3:"interaction_content",fieldValue3:"FAQ's and information"})}))}))}}
6,{key:"showNoSubscriptionsElements",value:function(e){e.querySelectorAll(".amag-autoabo__spinner.overview").forEach((function(e){return e.classList.add("d-none")})),document.querySelectorAll(".autoabo-overview__no-subscriptions-container").forEach((function(e){return e.classList.add("show")})),document.querySelector(".autoabo-overview__active-subscriptions").classList.remove("d-none"),document.querySelector(".amag-angeboteRecoContainer").style.display="initial"}},{key:"changeView",value:function(e){this.autoAboViewControllerService.changeView(e)}},{key:"closeAllOtherExpiredSubscriptions",value:function(e){e.forEach((function(e){var t=e.querySelector(".autoabos-car-expired-item__header"),n=e.querySelector(".autoabos-car-expired-item__inner-container"),r=e.querySelector(".autoabos-car-expired-item__header__expanding-link__button");t.classList.remove("expanded"),n.classList.remove("expanded"),e.querySelector(".amag-autoabo-notification")&&e.querySelector(".amag-autoabo-notification").classList.add("d-none"),r.textContent=Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.carProfile.showMoreButton")}))}},{key:"getTranslatedTagByStatusEnum",value:function(e){return Granite.I18n.get("apps.amag-ch.components.content.autoAbo.overview.carProfile.state.".concat(e))}},{key:"getTagColorBySubscriptionState",value:function(e){switch(e){case _p.ACTIVE:return"#006431";case _p.CANCELLED:return"#48141D";case _p.PROCESSING:return"#009EE0";case _p.DENIED:return"#E2001A";case _p.SUBMITTED:return"#F39400";case _p.RETURNED:return"#000000";case _p.FINISHED:return"#6D6D6D"}}},{key:"mapUserDataToSummary",value:function(e,t){return t.userData={UID:this._utilService.formatUIDToDkiID(e.UID),profile:e.profile,addresses:e.addresses,data:{PID:e.data.PID}},t}},{key:"fillDamageView",value:function(e){var t=document.querySelector(".autoabo-damage__vehicle");t.querySelector(".autoabo-damage-vehicle-value--brand").textContent=e.vehicleData.brand.name,t.querySelector(".autoabo-damage-vehicle-value--model").textContent=e.vehicleData.modelType.description,t.querySelector(".autoabo-damage__vehicle-type .autoabo-damage__vehicle-value").textContent=e.vehicleData.modelType.name,t.querySelector(".autoabo-damage__vehicle-licensePlate .autoabo-damage__vehicle-value").textContent=e.vehicleData.licensePlate,t.querySelector(".autoabo-damage__vehicle-contractNo .autoabo-damage__vehicle-value").textContent=e.subscriptionNo,document.querySelector(".autoabo-damage__controls-continue").addEventListener("click",(function(){var t,n,r=window.dataLayer;void 0!==r&&r.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"abo_dashboard_report_damages",eventParameter2:"interaction_label",fieldValue2:"open report damages",eventParameter10:"carBrand",fieldValue10:"".concat(null===(t=e.vehicleData.brand)||void 0===t?void 0:t.code),eventParameter11:"carModel",fieldValue11:"".concat(null===(n=e.vehicleData.modelType)||void 0===n?void 0:n.code)})}))}},{key:"setOptionsEventListener",value:function(e,t,n){var r,a,i=this,o=window.dataLayer;if(0===t&&e.addEventListener("click",(function(e){var t,r;e.preventDefault(),i.autoAboContractAndOptionService.fillContent(n),i.changeView(yp.CONTRACT_AND_OPTIONS),void 0!==o&&o.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"auto_abo_dashboard",eventParameter2:"interaction_label",fieldValue2:"click subscription option",eventParameter3:"interaction_content",fldValue3:"vertrag & optionen",fieldValue10:"".concat(null===(t=n.vehicleData.brand)||void 0===t?void 0:t.code),eventParameter11:"carModel",fieldValue11:"".concat(null===(r=n.vehicleData.modelType)||void 0===r?void 0:r.code)})})),1===t){var s=e.querySelector(".autoabo-overview__car-option-link");s.setAttribute("href","".concat(s.getAttribute("href"),"?vin=").concat(n.vehicle.vin)),void 0!==o&&o.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"auto_abo_dashboard",eventParameter2:"interaction_label",fieldValue2:"click subscription option",eventParameter3:"interaction_content",fldValue3:"servicetermin buchen",fieldValue10:"".concat(null===(r=n.vehicleData.brand)||void 0===r?void 0:r.code),eventParameter11:"carModel",fieldValue11:"".concat(null===(a=n.vehicleData.modelType)||void 0===a?void 0:a.code)})}2===t&&e.addEventListener("click",(function(e){var t,r;e.preventDefault(),i.fillDamageView(n),i.changeView(yp.DAMAGE),void 0!==o&&o.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"auto_abo_dashboard",eventParameter2:"interaction_label",fieldValue2:"click subscription option",eventParameter3:"interaction_content",fldValue3:"schaden melden",fieldValue10:"".concat(null===(t=n.vehicleData.brand)||void 0===t?void 0:t.code),eventParameter11:"carModel",fieldValue11:"".concat(null===(r=n.vehicleData.modelType)||void 0===r?void 0:r.code)})})),3===t&&e.addEventListener("click",(function(e){var t,r;e.preventDefault(),i._autoAboOffCanvasService.showDocumentsOffCanvas(n),void 0!==o&&o.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"auto_abo_dashboard",eventParameter2:"interaction_label",fieldValue2:"click subscription option",eventParameter3:"interaction_content",fldValue3:"dokumente anzeigen",fieldValue10:"".concat(null===(t=n.vehicleData.brand)||void 0===t?void 0:t.code),eventParameter11:"carModel",fieldValue11:"".concat(null===(r=n.vehicleData.modelType)||void 0===r?void 0:r.code)})}))}},{key:"addUpdateListeners",value:function(){(0,Vp.combineLatest)([this.autoAboContractAndOptionService.subscription$.pipe((0,Vp.skip)(1)),cm.allSummaries$]).pipe((0,Vp.map)((function(e){var t=(0,Sa.A)(e,2),n=t[0];return t[1].map((function(e){return e.subscriptionNo===n.subscriptionNo?n:e}))}))).subscribe()}},{key:"checkOptionFieldSubscriptionStatus",value:function(e,t){return t?e.status===_p.RETURNED||e.status===_p.ACTIVE||e.status===_p.CANCELLED:e.status===_p.RETURNED||e.status===_p.ACTIVE||e.status===_p.CANCELLED||e.status===_p.DENIED}}])}();um.userData$=new Vp.ReplaySubject(1),um.allSummaries$=new Vp.ReplaySubject(1),um=cm=lm([nn.K],um);var dm=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},hm=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},pm=function(){return(0,ft.A)((function e(t){if((0,pt.A)(this,e),this.element=t,this.overallSection=this.element.parentElement,this.backToOverview=this.element.querySelector(".autoabo-overview__back-to-login-overview"),this._autoAboService=new um,this._autoAboContractService=new im,this._utilService=new Yp,this._autoAboOffCanvasService=new Wf,this.headerLoginElem=this._utilService.getHeaderLoginElem(),!(0,it.EW)()&&
6!this._utilService.isAuthorMode()){var n=this.headerLoginElem.getAttribute("data-login"),r=qo(qo({},Gt.autoAbo.page,window.location.href),Gt.autoAbo.lastPageLogin,!1);return sessionStorage.setItem(Gt.autoAbo.obj,JSON.stringify(r)),void(window.location.href=window.location.origin+n)}!(0,it.EW)()&&this._utilService.isAuthorMode()?console.error('AutoAbo Overview page is not available on author mode! At least parameter "wcmmode=disabled" is required to trigger usual behaviour (i. e. redirect to login page)'):(this.overallSection.classList.add("autoabo-overview-section"),this.overallSection.classList.remove("row"),this.backToOverview.setAttribute("href",this.headerLoginElem.getAttribute("data-overview")),this.initComponent())}),[{key:"initComponent",value:function(){var e=this;this._autoAboService.initSubscriptionsData(),um.allSummaries$.pipe((0,Vp.switchMap)((function(){return e._autoAboService.initVehiclesData(e.element)})),(0,Vp.tap)((function(t){if(0!==t.length){var n=new URLSearchParams(location.search);if(n.has(Ap.DATATRANS_3D_SECURE)||sessionStorage.getItem(Ap.DATATRANS_3D_SECURE_STATUS)){if(sessionStorage.getItem(Ap.DATATRANS_3D_SECURE_STATUS)){var r=t.find((function(e){return e.subscriptionNo===sessionStorage.getItem(Ap.SUBSCRIPTION_NO)}));return sessionStorage.removeItem(Ap.SUBSCRIPTION_NO),e._autoAboContractService.fillContent(r),e._autoAboService.changeView(yp.CONTRACT_AND_OPTIONS),void e.element.querySelector(_f.replaceButton).click()}var a=n.get(Ap.SUBSCRIPTION_NO),i=t.find((function(e){return e.subscriptionNo===a})),o=n.get(Ap.DATATRANS_3D_SECURE_STATUS);if("N"===o&&(sessionStorage.setItem(Ap.DATATRANS_3D_SECURE_STATUS,o),sessionStorage.setItem(Ap.SUBSCRIPTION_NO,i.subscriptionNo),sessionStorage.removeItem("autoaboDatatransMessage"),sessionStorage.removeItem("autoaboNewCardInformation"),location.search=""),"Y"===o){e._autoAboContractService.fillContent(i),e._autoAboService.changeView(yp.CONTRACT_AND_OPTIONS);var s=sessionStorage.getItem("autoaboDatatransMessage")?JSON.parse(sessionStorage.getItem("autoaboDatatransMessage")):null,c=n.get(Ap.UPP_TRANSACTION_ID);c&&(s.transactionId=c),e._autoAboOffCanvasService.showDatatransOffCanvas(i),e._autoAboContractService.triggerCreditCardUpdate(!0,s,i)}}else e._autoAboService.changeView(yp.DASHBOARD)}else e._autoAboService.showNoSubscriptionsElements(e.element)}))).subscribe()}}])}();pm=dm([(0,At.d)({selector:".autoabo-overview",onDomLoaded:!0}),hm("design:paramtypes",[HTMLElement])],pm);var fm=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},mm=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},vm=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=t,this.statics={selectors:{content:".amag-autoKachel-M__content"},params:{garageId:"partner"}},this.waitingServiceInfo=null,this.isEditMode=!1,this.init()}),[{key:"init",value:function(){this.isEditMode=this.checkEditMode(),this.getWaitingServiceData(),this.checkBrandCoherence(),this.enrichLink()}},{key:"checkEditMode",value:function(){return"true"===this.element.querySelector(this.statics.selectors.content).getAttribute("data-is-edit-mode")}},{key:"getWaitingServiceData",value:function(){this.waitingServiceInfo=JSON.parse(sessionStorage.getItem(Gt.waitingService))}},{key:"checkBrandCoherence",value:function(){if(!this.isEditMode&&this.waitingServiceInfo){var e=this.element.querySelector(this.statics.selectors.content).getAttribute("data-brand-id");if(e&&"disabled"!==e)this.waitingServiceInfo[Gt.waitingServiceObj.garageSellingBrandIds].split(",").includes(e)||this.element.classList.add("d-none")}}},{key:"enrichLink",value:function(){if(this.waitingServiceInfo){var e=this.element.querySelector("a"),t=new URL(e.href);t.searchParams.append(this.statics.params.garageId,this.waitingServiceInfo[Gt.waitingServiceObj.garageId]),e.href=t.href}}}])}();vm=fm([(0,At.d)({selector:".amag-autoKachel-M",onDomLoaded:!0}),mm("design:paramtypes",[HTMLElement])],vm);var gm,ym,_m=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},bm=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},wm=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this.element=t,this.statics={selectors:{container:".amag-countdown__container",label:".amag-countdown__label",labelAnnouncement:".amag-countdown__textAnnouncement",labelActive:".amag-countdown__textActive",labelFinal:".amag-countdown__textFinal",labelEnded:".amag-countdown__textEnded",countdownActive:".amag-countdown__countdown--active",countdownEnded:".amag-countdown__countdown--ended",counterDays:".amag-countdown__days .amag-countdown__amount",counterHours:".amag-countdown__hours .amag-countdown__amount",counterMinutes:".amag-countdown__minutes .amag-countdown__amount",counterSeconds:".amag-countdown__seconds .amag-countdown__amount"},states:{awaiting:"AWAITING",active:"ACTIVE",final:"FINAL",ended:"ENDED"}},this.setCountdownInterval=function(){n.countdownInterval=setInterval((function(){n.updateView()}),1e3)},this.updateView=function(){var e=new Date,t=n.element.querySelector(n.statics.selectors.container),r=new Date(t.dataset.startdate),a=new Date(t.dataset.enddate),i=+t.dataset.f
6inalPhaseHours,o=new Date(a.getTime()-60*i*60*1e3);r?r.getTime()>e.getTime()?(n.displayCountdown(e,r),n.displayText(n.statics.states.awaiting)):a.getTime()>e.getTime()?(n.displayCountdown(e,a),0===i?n.displayText(n.statics.states.active):e.getTime()>=o.getTime()?n.displayText(n.statics.states.final):n.displayText(n.statics.states.active)):(n.displayCountdown(e,a),n.displayText(n.statics.states.ended),clearInterval(n.countdownInterval)):clearInterval(n.countdownInterval)},this.displayText=function(e){var t=n.element.querySelectorAll(n.statics.selectors.label),r=n.element.querySelectorAll(n.statics.selectors.labelAnnouncement),a=n.element.querySelectorAll(n.statics.selectors.labelActive),i=n.element.querySelectorAll(n.statics.selectors.labelFinal),o=n.element.querySelectorAll(n.statics.selectors.labelEnded);t.forEach((function(e){e.classList.add("d-none")})),e===n.statics.states.awaiting?r.forEach((function(e){e.classList.remove("d-none")})):e===n.statics.states.active?a.forEach((function(e){e.classList.remove("d-none")})):e===n.statics.states.final?i.forEach((function(e){e.classList.remove("d-none")})):e===n.statics.states.ended&&o.forEach((function(e){e.classList.remove("d-none")}))},this.displayCountdown=function(e,t){var r=n.element.querySelector(n.statics.selectors.countdownActive),a=n.element.querySelector(n.statics.selectors.countdownEnded);if(t.getTime()<e.getTime())return r.classList.add("d-none"),void a.classList.remove("d-none");a.classList.add("d-none"),r.classList.remove("d-none");var i=t.getTime()-e.getTime(),o=Math.floor(i/864e5).toString(10),s=Math.floor(i%864e5/36e5).toString(10),c=Math.floor(i%36e5/6e4).toString(10),l=Math.floor(i%6e4/1e3).toString(10);1===o.length&&(o="0"+o),1===s.length&&(s="0"+s),1===c.length&&(c="0"+c),1===l.length&&(l="0"+l),n.element.querySelector(n.statics.selectors.counterDays).innerText=o,n.element.querySelector(n.statics.selectors.counterHours).innerText=s,n.element.querySelector(n.statics.selectors.counterMinutes).innerText=c,n.element.querySelector(n.statics.selectors.counterSeconds).innerText=l},this.init()}),[{key:"init",value:function(){this.setCountdownInterval()}}])}();wm=_m([(0,At.d)({selector:".amag-countdown",onDomLoaded:!0}),bm("design:paramtypes",[HTMLElement])],wm),function(e){e.COUNTDOWN_SECONDS="countdown_seconds",e.COUNTDOWN_DAYS="countdown_days",e.COUNTDOWN_CARS="countdown_cars",e.COUNTDOWN_DEACTIVATED="countdown_deactivated"}(gm||(gm={})),function(e){e.ANNOUNCEMENT="ANNOUNCEMENT",e.ACTIVE="ACTIVE",e.ENDING="ENDING",e.FINISHED="FINISHED"}(ym||(ym={}));var Sm=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Cm=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Em=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this.TIMEOUT_FOR_CACHE_REFRESH=3e5,this.allowCacheRefresh=!0}),[{key:"provideAllPromotionsData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Cm(this,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,(!this.allPromotionData||e&&this.allowCacheRefresh)&&(this.allPromotionData=(0,yr.ee)("carmato-promotions","json?"),this.setTimeoutForCacheRefresh()),t.abrupt("return",this.allPromotionData);case 5:t.prev=5,t.t0=t.catch(0),console.error("Error occurred while fetching promotions data for countdown teaser(s) in function <provideAllPromotionsData>: ".concat(t.t0));case 8:case"end":return t.stop()}}),t,this,[[0,5]])})))}},{key:"setTimeoutForCacheRefresh",value:function(){var e=this;this.allowCacheRefresh=!1,setTimeout((function(){e.allowCacheRefresh=!0}),this.TIMEOUT_FOR_CACHE_REFRESH)}}])}();Em=Sm([nn.K],Em);var xm,Am,km,Tm,Lm,Im,Dm,Pm,Om,Rm,Mm,qm,Nm,Vm,Fm,Bm,jm,Hm,Gm,Um,Wm=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},zm=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}
6,$m=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Ym=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=t,this.statics={selectors:{container:".amag-countdownTeaser__container",message:".amag-countdownTeaser__message",imagePart:".amag-countdownTeaser__imagePart",bubbleCircle:".amag-countdownTeaser__bubble-circle",bubbleText:".amag-countdownTeaser__bubble-text",contentPart:".amag-countdownTeaser__contentPart",ticker:".amag-countdownTeaser__ticker",blinker:".amag-countdownTeaser__blinker",promotionName:".amag-countdownTeaser__offerName",headlineWrapper:".amag-countdownTeaser__headlineWrapper",headline:".amag-countdownTeaser__headline",banderole:".amag-countdownTeaser__banderole",banderoleDecorated:".amag-countdownTeaser__banderole--decorated",banderolePlain:".amag-countdownTeaser__banderole--plain",banderoleLabel:".amag-countdownTeaser__label",banderoleLabelAnnouncement:".amag-countdownTeaser__textAnnouncement",banderoleLabelActive:".amag-countdownTeaser__textActive",banderoleLabelEnding:".amag-countdownTeaser__textEnding",banderoleLabelFinished:".amag-countdownTeaser__textFinished",variantsContainer:".amag-countdownTeaser__variantsContainer",variant:".amag-countdownTeaser__variant",positioning:".amag-countdownTeaser__positioning",disclaimerText:".amag-countdownTeaser__disclaimerText",ctaWrapper:".amag-countdownTeaser__ctaWrapper",ctaLink:".amag-countdownTeaser__ctaButton",ctaIconWrapper:".amag-countdownTeaser__ctaIcon",ctaIcon:".amag-countdownTeaser__ctaIcon img",ctaText:".amag-countdownTeaser__ctaText",variant_countdown:".amag-countdownTeaser__countdown",countdown_active:".amag-countdownTeaser__countdown--active",countdown_counterDays:".amag-countdownTeaser__days .amag-countdownTeaser__amount",countdown_counterHours:".amag-countdownTeaser__hours .amag-countdownTeaser__amount",countdown_counterMinutes:".amag-countdownTeaser__minutes .amag-countdownTeaser__amount",countdown_counterSeconds:".amag-countdownTeaser__seconds .amag-countdownTeaser__amount",countdown_ended:".amag-countdownTeaser__countdown--ended",countdown_endedText:".amag-countdownTeaser__countdown-endedText",variant_countdownDays:".amag-countdownTeaser__countdownDays",countdownDays_active:".amag-countdownTeaser__countdownDays--active",countdownDays_counterDaysInner:".amag-countdownTeaser__counterDaysInner",countdownDays_counterDays:".amag-countdownTeaser__amountDays",countdownDays_unitDays:".amag-countdownTeaser__unitDays",countdownDays_todayLabel:".amag-countdownTeaser__todayFinal",countdownDays_ended:".amag-countdownTeaser__countdownDays--ended",countdownDays_endedText:".amag-countdownTeaser__countdownDays-endedText",variant_countdownCars:".amag-countdownTeaser__countdownCars",countdownCars_counterVehiclesCurrent:".amag-countdownTeaser__countdownCars-labelCounterCars-actual",countdownCars_vehiclesAvailableLabel:".amag-countdownTeaser__countdownCars-labelText",countdownCars_counterVehiclesTotal:".amag-countdownTeaser__countdownCars-labelCounterCars-total",countdownCars_progressBar:".amag-countdownTeaser__countdownCars-progressBar"},classes:{blink:"blink",logo:"logo",singular:"singular",noData:"no-data",deactivated:"deactivated"},servletSelectors:{carmatoPromotions:"carmato-promotions"},extensions:{json:"json"},i18n:{vehicleAvailable:Granite.I18n.get("apps.amag-ch.components.content.countdownTeaser.label.vehiclesAvailable.singular")}},this.CountdownTeaserService=new Em,this.refreshPromotionDataIntervalMs=9e5,this.lang=(0,it.Xo)(),this.init().catch()}),[{key:"init",value:function(){return $m(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchPromotionData();case 2:this.allPromotionsData=e.sent,this.countdownTeaserSetup();case 4:case"end":return e.stop()}}),e,this)})))}},{key:"fetchPromotionData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return $m(this,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.CountdownTeaserService.provideAllPromotionsData(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"countdownTeaserSetup",value:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=this.element.querySelector(this.statics.selectors.container),i=a.dataset.promotionId;this.isEditMode="true"===a.dataset.isEditMode,this.isHomepage="true"===a.dataset.isHomepage;var o=null===(e=this.allPromotionsData)||void 0===e?void 0:e.find((function(e){return e.promotion_id===i}));return o?(this.variant=null!==(n=gm[null===(t=o.promotion_variant)||void 0===t?void 0:t.toUpperCase()])&&void 0!==n?n:gm.COUNTDOWN_DEACTIVATED,this.variant===gm.COUNTDOWN_DEACTIVATED?(this.hideCountdownTeaser(!0),void this.showMessageDeactivated()):(this.setGeneralData(o),this.setLanguageSpecificData(o),void(r||(this.activateGeneralDisplay(),this.activateVariantDisplay())))):(this.hideCountdownTeaser(!0),void this.showMessageNoData())}},{key:"setGeneralData",value:function(e){this.startDate=new Date(1e3*+e.promotion_start),this.endDate=new Date(1e3*+e.promotion_stop),this.ctaLink=new URL(e["promotion_url_".concat((0,it.Xo)())]),this.ctaIcon=e.promotion_cta_icon&&"false"!==e.promotion_cta_icon?new URL(e.promotion_cta_icon_url):null,this.promotionAccentColor=e.promotion_background_color,this.promotionSpecialFontColor=e.promotion_color,this.promotionImage=new URL(e.promotion_background_image_url),this.hasBubble="true"===e.promotion_bubble,this.useBubbleLogo="true"===e.promotion_icon,this.bubbleLogoUrl=e.promotion_icon_url?new URL(e.promotion_icon_url):null,this.durationEndPhaseHours="0"===e.promotion_end_phase_hours?0:e.promotion_end_phase_hours?+e.promotion_end_phase_hours:24,this.availableCarsInitial=e.promotion_counter_initial?+e.promotion_counter_initial:null,this.availableCarsCurrent=+e.promotion_counter_available}},{key:"setLanguageSpecificData",value:function(e){this.ctaLabel=e["promotion_cta_label_".concat(this.lang)],this.promotionName=e["promotion_name_".concat(this.lang)],this.headline=e["promotion_headline_".concat(this.lang)],this.subHeadline=e["promotion_label_2_".concat(this.lang)],this.banderoleTextAnnouncement=e["promotion_coming_up_label_".concat(this.lang)],this.banderoleTextActive=e["promotion_active_label_".concat(this.lang)],this.banderoleTextEnding=e["promotion_ending_soon_label_".concat(this.lang)],this.banderoleTextFinished=e["promotion_finished_label_".concat(this.lang)],this.countdownTextFinished=e["promotion_expired_label_".concat(this.lang)],this.disclaimerText=e["promotion_legal_".concat(this.lang)],this.bubbleText=e["promotion_bubble_".concat(this.lang)]}},{key:"activateGeneralDisplay",value:function(){var e=this,t=this.element.querySelector(this.statics.selectors.imagePart),n=this.element.querySelector(this.statics.selectors.bubbleCircle),r=this.element.querySelector(this.statics.selectors.bubbleText),a=this.element.querySelector(this.statics.selectors.promotionName),i=this.element.querySelector(this.statics.selectors.headline),o=this.element.querySelectorAll(this.statics.selectors.disclaimerText),s=this.element.querySelectorAll(this.statics.selectors.ctaWrapper);t.style.backgroundImage="url('".concat(this.promotionImage,"')"),a.innerText=this.promotionName,i.innerText=this.headline,o.forEach((function(t){return t.innerText=e.disclaimerText})),this.bringColorsIntoTeaser(),this.hasBubble&&(n.classList.remove("d-none"),this.useBubbleLogo?(n.classList.add(this.statics.classes.logo),n.style.backgroundImage="url('".concat(this.bubbleLogoUrl.href,"')")):r.innerText=this.bubbleText),s.forEac
6h((function(t){var n=t.querySelector(e.statics.selectors.ctaLink),r=t.querySelector(e.statics.selectors.ctaIconWrapper),a=t.querySelector(e.statics.selectors.ctaIcon),i=t.querySelector(e.statics.selectors.ctaText);n.href=e.ctaLink.href,i.innerText=e.ctaLabel,e.ctaIcon&&(a.src=e.ctaIcon.href,a.alt=e.ctaLabel,r.classList.remove("d-none")),t.classList.remove("d-none")}))}},{key:"activateVariantDisplay",value:function(){var e=this,t=this.element.querySelector(this.statics.selectors.banderoleDecorated),n=this.element.querySelector(this.statics.selectors.banderolePlain),r=this.element.querySelectorAll(this.statics.selectors.banderoleLabelAnnouncement),a=this.element.querySelectorAll(this.statics.selectors.banderoleLabelActive),i=this.element.querySelectorAll(this.statics.selectors.banderoleLabelEnding),o=this.element.querySelectorAll(this.statics.selectors.banderoleLabelFinished),s=this.element.querySelector(this.statics.selectors.variant_countdown),c=this.element.querySelector(this.statics.selectors.variant_countdownDays),l=this.element.querySelector(this.statics.selectors.variant_countdownCars),u=this.element.querySelector(this.statics.selectors.countdown_endedText),d=this.element.querySelector(this.statics.selectors.countdownDays_endedText);r.forEach((function(t){t.innerText=e.banderoleTextAnnouncement})),a.forEach((function(t){t.innerText=e.banderoleTextActive}
6)),i.forEach((function(t){t.innerText=e.banderoleTextEnding})),o.forEach((function(t){t.innerText=e.banderoleTextFinished})),this.variant===gm.COUNTDOWN_SECONDS?(u.innerText=this.countdownTextFinished,this.initCountdownNormal(),t.classList.remove("d-none"),s.classList.remove("d-none")):this.variant===gm.COUNTDOWN_DAYS?(d.innerText=this.countdownTextFinished,this.initCountdownDays(),t.classList.remove("d-none"),c.classList.remove("d-none")):this.variant===gm.COUNTDOWN_CARS&&(this.initCountdownCars(),n.classList.remove("d-none"),l.classList.remove("d-none"))}},{key:"initCountdownNormal",value:function(){this.setCountdownInterval()}},{key:"initCountdownDays",value:function(){this.setCountdownDaysInterval()}},{key:"initCountdownCars",value:function(){this.setCountdownCarsInterval(),this.refreshPromotionDataPeriodically()}},{key:"setCountdownInterval",value:function(){var e=this;this.countdownInterval=setInterval((function(){e.blinkTicker(),e.updateCountdownView()}),1e3)}},{key:"setCountdownDaysInterval",value:function(){var e=this;this.countdownInterval=setInterval((function(){e.blinkTicker(),e.updateCountdownDaysView()}),1e3)}},{key:"setCountdownCarsInterval",value:function(){var e=this;this.countdownInterval=setInterval((function(){e.blinkTicker(),e.updateCountdownCarsView()}),1e3)}},{key:"refreshPromotionDataPeriodically",value:function(){return $m(this,void 0,void 0,ht().mark((function e(){var t=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.refreshPromotionDataInterval=setInterval((function(){return $m(t,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchPromotionData(!0);case 2:this.allPromotionsData=e.sent,this.countdownTeaserSetup(!0);case 4:case"end":return e.stop()}}),e,this)})))}),this.refreshPromotionDataIntervalMs);case 1:case"end":return e.stop()}}),e,this)})))}},{key:"isAnnouncementPhase",value:function(e){return e.getTime()<this.startDate.getTime()}},{key:"isActivePhase",value:function(e){return e.getTime()<this.endDate.getTime()}},{key:"isFinished",value:function(e){return this.endDate.getTime()<=e.getTime()}},{key:"updateCountdownView",value:function(){if(this.startDate&&this.endDate){var e=new Date,t=this.durationEndPhaseHours,n=new Date(this.endDate.getTime()-60*t*60*1e3);this.showCountdownTeaser(),this.isAnnouncementPhase(e)?(this.displayCountdown(e,this.startDate),this.displayBanderoleText(ym.ANNOUNCEMENT)):this.isActivePhase(e)?(this.displayCountdown(e,this.endDate),0===t?this.displayBanderoleText(ym.ACTIVE):n.getTime()<e.getTime()?this.displayBanderoleText(ym.ENDING):this.displayBanderoleText(ym.ACTIVE)):(this.displayCountdown(e,this.endDate),this.displayBanderoleText(ym.FINISHED),clearInterval(this.countdownInterval),this.showStaticBlink(),this.hideCtaButton())}else clearInterval(this.countdownInterval)}},{key:"updateCountdownDaysView",value:function(){if(this.startDate&&this.endDate){var e=new Date,t=this.endDate.getFullYear()===e.getFullYear()&&this.endDate.getMonth()===e.getMonth()&&this.endDate.getDate()===e.getDate(),n=new Date(this.endDate.getMonth()+1+"/"+this.endDate.getDate()+"/"+this.endDate.getFullYear()),r=this.element.querySelector(this.statics.selectors.countdownDays_counterDaysInner),a=this.element.querySelector(this.statics.selectors.countdownDays_todayLabel);this.showCountdownTeaser(),this.isAnnouncementPhase(e)?(this.displayCountdownDays(e,this.startDate),this.displayBanderoleText(ym.ANNOUNCEMENT)):this.isActivePhase(e)?(this.displayCountdownDays(e,this.endDate),t&&n.getTime()<e.getTime()?(this.displayBanderoleText(ym.ENDING),r.classList.add("d-none"),a.classList.remove("d-none")):this.displayBanderoleText(ym.ACTIVE)):(this.displayCountdownDays(e,this.endDate),this.displayBanderoleText(ym.FINISHED),clearInterval(this.countdownInterval),this.showStaticBlink(),this.hideCtaButton())}else clearInterval(this.countdownInterval)}},{key:"updateCountdownCarsView",value:function(){if(this.startDate&&this.endDate){var e=new Date,t=this.durationEndPhaseHours,n=new Date(this.endDate.getTime()-60*t*60*1e3);this.isAnnouncementPhase(e)?this.hideCountdownTeaser():this.showCountdownTeaser(),this.isAnnouncementPhase(e)?this.displayBanderoleText(ym.ANNOUNCEMENT):this.isActivePhase(e)?(this.displayCountdownCars(e),0===t?this.displayBanderoleText(ym.ACTIVE):n.getTime()<e.getTime()?this.displayBanderoleText(ym.ENDING):this.displayBanderoleText(ym.ACTIVE)):(this.displayCountdownCars(e),this.displayBanderoleText(ym.FINISHED),clearInterval(this.countdownInterval),this.showStaticBlink(),this.hideCtaButton())}else clearInterval(this.countdownInterval)}},{key:"displayCountdown",value:function(e,t){var n=this.element.querySelector(this.statics.selectors.countdown_active),r=this.element.querySelector(this.statics.selectors.countdown_ended);if(this.isFinished(e))return n.classList.add("d-none"),void r.classList.remove("d-none");r.classList.add("d-none"),n.classList.remove("d-none");var a=t.getTime()-e.getTime(),i=Math.floor(a/864e5).toString(10),o=Math.floor(a%864e5/36e5).toString(10),s=Math.floor(a%36e5/6e4).toString(10),c=Math.floor(a%6e4/1e3).toString(10);1===i.length&&(i="0"+i),1===o.length&&(o="0"+o),1===s.length&&(s="0"+s),1===c.length&&(c="0"+c),this.element.querySelector(this.statics.selectors.countdown_counterDays).innerText=i,this.element.querySelector(this.statics.selectors.countdown_counterHours).innerText=o,this.element.querySelector(this.statics.selectors.countdown_counterMinutes).innerText=s,this.element.querySelector(this.statics.selectors.countdown_counterSeconds).innerText=c}},{key:"displayCountdownDays",value:function(e,t){var n=this.element.querySelector(this.statics.selectors.countdownDays_active),r=this.element.querySelector(this.statics.selectors.countdownDays_ended),a=this.element.querySelector(this.statics.selectors.countdownDays_unitDays);if(this.isFinished(e))return n.classList.add("d-none"),void r.classList.remove("d-none");r.classList.add("d-none"),n.classList.remove("d-none");var i=t.getTime()-e.getTime(),o=Math.floor(i/864e5);o<=1?(a.classList.add(this.statics.classes.singular),o=1):a.classList.remove(this.statics.classes.singular),this.element.querySelector(this.statics.selectors.countdownDays_counterDays).innerText=o.toString(10)}},{key:"displayCountdownCars",value:function(e){var t=this.element.querySelector(this.statics.selectors.banderolePlain),n=this.element.querySelector(this.statics.selectors.countdownCars_counterVehiclesCurrent),r=this.element.querySelector(this.statics.selectors.countdownCars_vehiclesAvailableLabel),a=this.element.querySelector(this.statics.selectors.countdownCars_counterVehiclesTotal),i=this.element.querySelector(this.statics.selectors.countdownCars_progressBar);n.innerText="".concat(this.availableCarsCurrent),!this.availableCarsInitial||this.availableCarsInitial<this.availableCarsCurrent?(a.classList.add("d-none"),i.classList.add("d-none")):(a.innerText="".concat(this.availableCarsInitial),i.style.setProperty("--progressBarWidth","".concat(this.availableCarsCurrent/(this.availableCarsInitial/100),"%")),a.classList.remove("d-none"),i.classList.remove("d-none")),0===this.availableCarsCurrent||this.isFinished(e)?(t.classList.add("d-none"),n.innerText="0",i.style.setProperty("--progressBarWidth","0%"),this.displayBanderoleText(ym.FINISHED),clearInterval(this.countdownInterval),this.showStaticBlink(),this.hideCtaButton()):(t.classList.remove("d-none"),1===this.availableCarsCurrent&&(r.innerText="".concat(this.statics.i18n.vehicleAvailable)))}},{key:"displayBanderoleText",value:function(e){var t=this.element.querySelectorAll(this.statics.selectors.banderoleLabel),n=this.element.querySelectorAll(this.statics.selectors.banderoleLabelAnnouncement),r=this.element.querySelectorAll(this.statics.selectors.banderoleLabelActive),a=this.element.querySelectorAll(this.statics.selectors.banderoleLabelEnding),i=this.element.querySelectorAll(this.statics.selectors.banderoleLabelFinished);switch(t.forEach((function(e){e.classList.add("d-none")})),e){case ym.ANNOUNCEMENT:n.forEach((function(e){e.classList.remove("d-none")}));break;case ym.ACTIVE:r.forEach((function(e){e.classList.remove("d-none")}));break;
6case ym.ENDING:a.forEach((function(e){e.classList.remove("d-none")}));break;case ym.FINISHED:default:i.forEach((function(e){e.classList.remove("d-none")}))}}},{key:"blinkTicker",value:function(){var e=this,t=this.element.querySelectorAll(this.statics.selectors.blinker);this.endDate.getTime()>(new Date).getTime()&&t.forEach((function(t){t.classList.contains(e.statics.classes.blink)?t.classList.remove(e.statics.classes.blink):t.classList.add(e.statics.classes.blink)}))}},{key:"showStaticBlink",value:function(){var e=this;this.element.querySelectorAll(this.statics.selectors.blinker).forEach((function(t){t.classList.add(e.statics.classes.blink)}))}},{key:"bringColorsIntoTeaser",value:function(){this.element.style.setProperty("--countdownTeaserAccentColor",this.promotionAccentColor),this.element.style.setProperty("--countdownTeaserSpecialFontColor",this.promotionSpecialFontColor)}},{key:"hideCtaButton",value:function(){this.element.querySelector(this.statics.selectors.ctaWrapper).classList.add("d-none")}},{key:"hideCountdownTeaser",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element.querySelector(this.statics.selectors.container);this.isEditMode&&!e||t.classList.add("d-none")}},{key:"showCountdownTeaser",value:function(){this.element.querySelector(this.statics.selectors.container).classList.remove("d-none")}},{key:"showMessageNoData",value:function(){this.isEditMode&&this.element.querySelector(this.statics.selectors.message).classList.add(this.statics.classes.noData)}},{key:"showMessageDeactivated",value:function(){this.isEditMode&&this.element.querySelector(this.statics.selectors.message).classList.add(this.statics.classes.deactivated)}}])}();function Zm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zm=function(){return!!e})()}Ym=Wm([(0,At.d)({selector:".amag-countdownTeaser",onDomLoaded:!0}),zm("design:paramtypes",[HTMLElement])],Ym),function(e){e.STEP_1A="STEP_1A",e.STEP_1B="STEP_1B",e.STEP_1C="STEP_1C",e.STEP_1D="STEP_1D",e.STEP_1E="STEP_1E",e.STEP_2="STEP_2",e.STEP_3A="STEP_3A",e.STEP_3B="STEP_3B",e.STEP_3C="STEP_3C",e.STEP_4="STEP_4",e.STEP_5="STEP_5",e.NOT_FOUND="NOT_FOUND",e.SUCCESS="SUCCESS"}(xm||(xm={})),function(e){e.HAIL_DAMAGE="HAIL_DAMAGE",e.COLLISION_DAMAGE="COLLISION_DAMAGE",e.PARKED_DAMAGE="PARKED_DAMAGE",e.GLASS_DAMAGE="GLASS_DAMAGE",e.MECHANIC_DAMAGE="MECHANIC_DAMAGE"}(Am||(Am={})),function(e){e.CHOSEN_DAMAGE_CATEGORY="CHOSEN_DAMAGE_CATEGORY",e.REFRESH="REFRESH",e.SET_BRAND="SET_BRAND",e.STEP="STEP",e.SUCCESS="SUCCESS",e.ERROR="ERROR",e.DRIVE_IN_ERROR="DRIVE_IN_ERROR",e.SET_HOLDER="SET_HOLDER",e.STEP_LOADED="STEP_LOADED"}(km||(km={})),function(e){e.FORM="#form1c",e.INPUT_OUTER=".form-field",e.INPUT_CONTAINER=".form-field__container",e.INPUT_LOCATION="#text-input-1c",e.TEXTAREA="#textArea-1c",e.DROPDOWN_DAY="#damage-report-day-dropdown",e.DROPDOWN_MONTH="#damage-report-month-dropdown",e.DROPDOWN_YEAR="#damage-report-year-dropdown",e.DATE_RESULT="dateResult",e.INPUT_INSURANCE_OTHER="#insurance-other-name",e.INSURANCE_DROPDOWN_WRAPPER="insurance",e.INSURANCE_DROPDOWN="#dropdown-insurance",e.INSURANCE_BUTTON="#insurance .generic-dynamic-dropdown-button",e.INSURANCE_LIST=".ts-insurance-list",e.BTN_CONTINUE="#step1c-forward",e.BTN_BACK="#step1c-backward"}(Tm||(Tm={})),function(e){e.BTN_LOGIN=".damage-report__step-1d__btn-login",e.BTN_FORWARD=".damage-report__step-1d__btn-forward",e.BTN_BACK="#step1dBackwardButton"}(Lm||(Lm={})),function(e){e.BTN_CONTINUE="#step1e-forward",e.BTN_BACK="#step1e-backward",e.CHB_DRIVER="#damage-report-checkbox",e.CHB_DRIVER_BOX="#damage-report__otherdriver",e.FORM_CHANGE="#damage-report-form-ownerchange",e.FORM_NEW="#damage-report-form-ownernew",e.FORM_DRIVER="#damage-report-form-driver"}(Im||(Im={})),function(e){e.COMPANY="#company",e.SALUTATION="#damage-report-salutation-ownerchange",e.FIRSTNAME="#firstname",e.LASTNAME="#lastname",e.EMAIL="#email",e.STREET="#street",e.HOUSE_NR="#housenr",e.ZIP="#zip",e.CITY="#city",e.COUNTRY="#damage-report-country-ownerchange",e.PREFIX="#damage-report-countryPrefix-ownerchange",e.PHONE="#phone"}(Dm||(Dm={})),function(e){e.COMPANY="#company",e.SALUTATION="#damage-report-salutation-ownernew",e.FIRSTNAME="#firstname",e.LASTNAME="#lastname",e.EMAIL="#email",e.STREET="#street",e.HOUSE_NR="#housenr",e.ZIP="#zip",e.CITY="#city",e.COUNTRY="#damage-report-country-ownernew",e.PREFIX="#damage-report-countryPrefix-ownernew",e.PHONE="#phone"}(Pm||(Pm={})),function(e){e.COMPANY="#company",e.SALUTATION="#damage-report-salutation-driver",e.FIRSTNAME="#firstname",e.LASTNAME="#lastname",e.STREET="#street",e.HOUSE_NR="#housenr",e.ZIP="#zip",e.CITY="#city",e.COUNTRY="#damage-report-country-driver"}(Om||(Om={})),function(e){e.CREATE_VEHICLE="#createVehicleForm",e.SELECT_VEHICLE="#selectVehicleForm",e.ADD_VEHICLE="#addVehicleForm",e.SPINNER=".damage-report__step-2__spinner"}(Rm||(Rm={}
6)),function(e){e.BRAND="#cBrandDropdown",e.MODEL="#cModelDropdown",e.LICENSE_PLATE="#licensePlate",e.VIN="#vinNumber",e.MILEAGE="#mileage",e.DAY="#cDayDropdown",e.MONTH="#cMonthDropdown",e.YEAR="#cYearDropdown",e.DATE_RESULT="dateResult",e.LEASING="#createDamageReportIsLeasingVehicle",e.ABO="#createDamageReportIsAboVehicle"}(Mm||(Mm={})),function(e){e.BRAND="#nBrandDropdown",e.MODEL="#nModelDropdown",e.LICENSE_PLATE="#licensePlate",e.VIN="#vinNumber",e.MILEAGE="#mileage",e.DAY="#nDayDropdown",e.MONTH="#nMonthDropdown",e.YEAR="#nYearDropdown",e.DATE_RESULT="dateResult",e.DATE_CONTAINER=".damage-report__date",e.LEASING="#createDamageReportIsLeasingVehicle",e.ABO="#createDamageReportIsAboVehicle"}(qm||(qm={})),function(e){e.RADIOBUTTON=".damage-report__step-2-vehicle-input",e.LEASING="#selectedDamageReportIsLeasingVehicle",e.ABO="#selectedDamageReportIsAboVehicle"}(Nm||(Nm={})),function(e){e.CURRENT_STEP="CURRENT_STEP",e.IMAGE_FILES="IMAGE_FILES",e.OWNER_STEP="OWNER_STEP",e.DRIVER_STEP="DRIVER_STEP",e.GARAGE_SELECTION_STEP="GARAGE_SELECTION_STEP",e.REPLACEMENT_SERVICE_STEP="REPLACEMENT_SERVICE_STEP",e.INSURANCE_TAKER_STEP="INSURANCE_TAKER_STEP",e.CASE_OBJECT="CASE_OBJECT",e.INSURANCE_OBJECT="INSURANCE_OBJECT",e.VEHICLE_OBJECT="VEHICLE_OBJECT",e.POLICYHOLDER_OBJECT="POLICYHOLDER_OBJECT",e.DOCUMENTS_ARRAY="DOCUMENTS_ARRAY",e.CASE_ID="CASE_ID",e.DAMAGE_DESCRIPTION="DAMAGE_DESCRIPTION",e.VEHICLE_DATA="VEHICLE_DATA",e.CASE_TYPE="CASE_TYPE",e.DRIVE_IN_APPOINTMENT="DRIVE_IN_APPOINTMENT"}(Vm||(Vm={})),function(e){e.SERVICE_TILE=".damage-report__step-3-b__additionalService-tile",e.REPLACEMENT_TILE=".damage-report__step-3-b__replacement-tile",e.REPLACEMENT_WRAPPER=".damage-report__step-3-b__replacement-wrapper",e.YES_INPUT="replacementOne",e.NO_INPUT="#replacementTwo"}(Fm||(Fm={})),function(e){e.EC2_REFERENCE="ec2reference"}(Bm||(Bm={})),function(e){e.INPUT_COMPANY="#company",e.INPUT_FIRSTNAME="#firstname",e.INPUT_LASTNAME="#lastname",e.INPUT_MAIL="#email",e.INPUT_STREET="#street",e.INPUT_HOUSENR="#housenr",e.INPUT_ZIP="#zip",e.INPUT_CITY="#city",e.INPUT_PHONE="#phone",e.DROPDOWN_SALUTATION="#damage-report__step-4__form-salutation",e.DROPDOWN_COUNTRY="#damage-report__step-4__form-country",e.DROPDOWN_COUNTRY_PREFIX="#damage-report__step-4__form-countryPrefix"}(jm||(jm={})),function(e){e.SELECTED_NAME=".damage-report__step-3a__garage-selected-name",e.SELECTED_BRANDS_WRAPPER=".damage-report__step-3a__garage-selected-brands-wrapper",e.SELECTED_STREET=".damage-report__step-3a__garage-selected-street",e.SELECTED_CITY=".damage-report__step-3a__garage-selected-city",e.SELECTED_ROUTE=".damage-report__step-3a__garage-selected-route",e.SELECTED_BUTTON=".damage-report__step-3a__garage-selected-change",e.SUMMARY=".damage-report__step-3a__summary",e.GARAGE_SELECTION=".damage-report__step-3a__selection",e.FORWARD_BUTTON="#step3a-forward",e.BACKWARD_BUTTON="#step3a-backward",e.BRAND_CHECKBOX_LABEL=".damage-report__step-3a__filterText",e.BRAND_CHECKBOX=".damage-report__step-3a__filterCheckbox",e.BRAND_CHECKBOX_WRAPPER=".damage-report__step-3a__filterSpan",e.GARAGE_WRAPPER=".damage-report__step-3a__garage-wrapper",e.IS_ACTIVE="is-active"}(Hm||(Hm={})),function(e){e.SEARCH_EVENT="SEARCH_EVENT"}(Gm||(Gm={})),function(e){e.TILE_CONTENT=".damage-report__step-5__tile-content",e.TILE_CONTENT_VALUE=".damage-report__step-5__tile-content-value",e.TILE_HEADLINE=".damage-report__step-5__tile-headline",e.PART=".damage-report__step-5__part"}(Um||(Um={}));var Km=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Xm=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Jm=function(e){function t(){return(0,pt.A)(this,t),e=this,n=t,n=(0,Ja.A)(n),(0,Xa.A)(e,Zm()?Reflect.construct(n,r||[],(0,Ja.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,Qa.A)(t,e),(0,ft.A)(t)}(dp);Jm=Km([nn.K,Xm("design:paramtypes",[])],Jm);var Qm=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},ev=function(){return(0,ft.A)((function e(){var t=this;(0,pt.A)(this,e),this.journeyId=Math.floor(9e5*Math.random())+1e5,this.step1StartDamageClaimTypeEvent=function(e,n){var r={event:"ga4Event",eventName:"damage_claim_interaction",eventParameter1:"interaction_item",fieldValue1:"step 1 - start - damage claim type",eventParameter2:"login_status",fieldValue2:"".concat(t.checkIfUserIsLoggedIn()),eventParameter3:"JourneyID",fieldValue3:"".concat(t.journeyId),eventParameter4:"interaction_content",fieldValue4:"".concat(e),eventParameter5:"interaction_label",fieldValue5:"click - start damage claim",eventParameter6:"option_1",fieldValue6:"".concat(n)};(0,it.eo)(r,"step 1 - start - damage claim type")},this.step2PhotoUploadEvent=function(e,n){var r={event:"ga4Event",eventName:"damage_claim_interaction",eventParameter1:"interaction_item",fieldValue1:"step 2 - photo upload",eventParameter2:"login_status",fieldValue2:"".concat(t.checkIfUserIsLoggedIn()),eventParameter3:"JourneyID",fieldValue3:"".concat(t.journeyId),eventParameter4:"interaction_content",fieldValue4:"".concat(n),eventParameter5:"interaction_label",fieldValue5:"click next button",eventParameter6:"option_1",fieldValue6:"".concat(e)};(0,it.eo)(r,"step 2 - photo upload")},this.step3DamageClaimEvent=function(e){t.simpleDataLayerPush("step 3 - damage claim",e,!0)},this.step4UserLoginChoiceEvent=function(e){var n={event:"ga4Event",eventName:"damage_claim_interaction",eventParameter1:"interaction_item",fieldValue1:"step 4 - user login choice",eventParameter2:"login_status",fieldValue2:"".concat(t.checkIfUserIsLoggedIn()),eventParameter3:"JourneyID",fieldValue3:"".concat(t.journeyId),eventParameter4:"interaction_content",fieldValue4:"".concat(e),eventParameter5:"interaction_label",fieldValue5:"click next button"};(0,it.eo)(n,"step 4 - user login choice")},this.step5VehicleDriverDataEvent=function(e){t.simpleDataLayerPush("step 5 - vehicle driver data",e,!0)},this.step6RecordVehicleData=function(e,n,r,a){var i={event:"ga4Event",eventName:"damage_claim_interaction",eventParameter1:"interaction_item",fieldValue1:"step 6 - record vehicle data",eventParameter2:"login_status",fieldValue2:"".concat(t.checkIfUserIsLoggedIn()),eventParameter3:"JourneyID",fieldValue3:"".concat(t.journeyId),eventParameter4:"carBrand",fieldValue4:"".concat(n),eventParameter5:"carModel",fieldValue5:"".concat(r),eventParameter6:"interaction_content",fieldValue6:"".concat(e),eventParameter7:"interaction_label",fieldValue7:"click next button",eventParameter8:"option_1",fieldValue8:"".concat(a)};(0,it.eo)(i,"step 6 - record vehicle data")},this.step7GarageSelectionEvent=function(e,n){var r={event:"ga4Event",eventName:"damage_claim_interaction",eventParameter1:"interaction_item",fieldValue1:"step 7 - garage selection",eventParameter2:"login_status",fieldValue2:"".concat(t.checkIfUserIsLoggedIn()),eventParameter3:"JourneyID",fieldValue3:"".concat(t.journeyId),eventParameter4:"interaction_content",fieldValue4:"".concat(e),eventParameter5:"interaction_label",fieldValue5:"click next button",eventParameter6:"option_1",fieldValue6:"".concat(n)};(0,it.eo)(r,"damage_claim_interaction")},this.step8ServiceSelectionEvent=function(e,n){var r={event:"ga4Event",eventName:"damage_claim_interaction",eventParameter1:"interaction_item",fieldValue1:"step 8 - service selection",eventParameter2:"login_status",fieldValue2:"".concat(t.checkIfUserIsLoggedIn()),eventParameter3:"JourneyID",fieldValue3:"".concat(t.journeyId),eventParameter4:"interaction_content",fieldValue4:"".concat(e),eventParameter5:"interaction_label",fieldValue5:"click next button",eventParameter6:"option_1",fieldValue6:"".concat(n)};(0,it.eo)(r,"step 8 - service selection")},this.step9PersonalDataEvent=function(e){t.simpleDataLayerPush("step 9 - personal data",e,!0)},this.step10OverviewEvent=function(e){t.simpleDataLayerPush("step 10 - overview",e,!0)},this.step11EndDamageClaimEvent=function(){var e={event:"ga4Event",eventName:"damage_claim_interaction",eventParameter1:"interaction_item",fieldValue1:"step 11 - end damage claim",eventParameter2:"login_status",fieldValue2:"".concat(t.checkIfUserIsLoggedIn()),eventParameter3:"JourneyID",fieldValue3:"".concat(t.journeyId),eventParameter4:"interaction_label",fieldValue4:"view success page"};(0,it.eo)(e,"step 11 - end damage claim")},this.step12UserInteractionAfterJourneyCompletionEvent=function(e){var n={event:"ga4Event",eventName:"damage_claim_interaction",eventParameter1:"interaction_item",fieldValue1:"step 12 - user interaction after journey completion",eventParameter2:"login_status",fieldValue2:"".concat(t.checkIfUserIsLoggedIn()),eventParameter3:"JourneyID",fieldValue3:"".concat(t.journeyId),eventParameter4:"interaction_content",fieldValue4:"".concat(e)};(0,it.eo)(n,"step 12 - user interaction after journey completion")},this.backEvent=function(e,n){t.simpleDataLayerPush(e,n,!1)},this.checkIfUserIsLoggedIn=function(){return(localStorage.amaguser?JSON.parse(localStorage.amaguser):null)?"logged in":"not logged in"}}),[{key:"simpleDataLayerPush",value:function(e,t,n){var r={event:"ga4Event",eventName:"damage_claim_interaction",eventParameter1:"interaction_item",fieldValue1:"".concat(e),eventParameter2:"login_status",fieldValue2:"".concat(this.checkIfUserIsLoggedIn()),eventParameter3:"JourneyID",fieldValue3:"".concat(this.journeyId),eventParameter4:"interaction_content",fieldValue4:"".concat(t),eventParameter5:"interaction_label",fieldValue5:"".concat(n?"click next button":"click previous button")};(0,it.eo)(r,e)}}])}();ev=Qm([nn.K],ev);var tv=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},nv=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},rv=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this._viewContainer=document.querySelector(".damage-report"),this._viewProcessContainer=document.querySelector(".process-container__process"),this._viewConfirmationContainer=document.querySelector(".process-container__confirmation"),this._offCanvasContainer=this._viewContainer.querySelector(".offcanvas-container"),this._googleAnalyticsService=new ev,this._stateService=new Jm}),[{key:"changeView",value:function(e){switch(this.hideAllViews(),this.resetOffCanvas(),e){case xm.STEP_1A:this.showView(xm.STEP_1A);break;case xm.STEP_1B:this.showView(xm.STEP_1B);break;case xm.STEP_1C:this.showView(xm.STEP_1C);break;case xm.STEP_1D:this.showView(xm.STEP_1D);break;case xm.STEP_1E:this.showView(xm.STEP_1E);break;case xm.STEP_2:this.showView(xm.STEP_2);break;case xm.STEP_3A:this.showView(xm.STEP_3A);break;case xm.STEP_3B:this.showView(xm.STEP_3B);break;case xm.STEP_3C:this.showView(xm.STEP_3C);break;case xm.STEP_4:this.showView(xm.STEP_4);break;case xm.STEP_5:this.showView(xm.STEP_5);break;case xm.SUCCESS:this.showView(xm.SUCCESS);break;default:this.showView(xm.NOT_FOUND)}window.scrollTo({top:0,behavior:"smooth"})}},{key:"showProcessView",value:function(){this._viewProcessContainer.hidden=!1,this._viewConfirmationContainer.hidden=!0}},{key:"showConfirmationView",value:function(){this._viewProcessContainer.hidden=!0,this._viewConfirmationContainer.hidden=!1,this._googleAnalyticsService.step11EndDamageClaimEvent()}},{key:"hideAllViews",value:function(){for(var e=0,t=Object.keys(xm);e<t.length;e++){var n=t[e];this.viewContainer.querySelector('[data-view-state="'.concat(n,'"]')).hidden=!0}}},{key:"resetOffCanvas",value:function(){}},{key:"showView",value:function(e){e===xm.SUCCESS?this.showConfirmationView():this.showProcessView(),this._viewContainer.querySelector('[data-view-state="'.concat(e,'"]')).hidden=!1,this._stateService.emit(km.STEP,e)}},{key:"viewContainer",get:function(){return this._viewContainer},set:function(e){this._viewContainer=e}},{key:"offCanvasContainer",get:function(){return this._offCanvasContainer},set:function(e){this._offCanvasContainer=e}}])}();rv=tv([nn.K,nv("design:paramtypes",[])],rv);var av=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},iv=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ov=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e)}),[{key:"validateStep1c",value:function(e){var t=new Map,n=e.querySelector(Tm.DROPDOWN_DAY),r=e.querySelector(Tm.DROPDOWN_MONTH),a=e.querySelector(Tm.DROPDOWN_YEAR),i="".concat(a.value,"-",r.value,"-",n.value,"T00:00:00"),o=new Date(i),s=new Date,c=!0,l=!0;return t.set(Tm.INPUT_LOCATION,this.requiredInputValidation(e.querySelector(Tm.INPUT_LOCATION))),t.set(Tm.TEXTAREA,e.querySelector(Tm.TEXTAREA).value.length>0),s.setHours(0,0,0,0),(o>s||o.getDate()!==parseInt(n.value))&&(c=!1),t.set(Tm.DATE_RESULT,c),e.querySelector(Tm.INSURANCE_DROPDOWN).value||(l=!1),t.set(Tm.INSURANCE_BUTTON,l),t.set(Tm.INPUT_INSURANCE_OTHER,this.requiredInputValidation(e.querySelector(Tm.INPUT_INSURANCE_OTHER))),t}},{key:"validateStep1dOwnerChange",value:function(e){var t=new Map;return t.set(Dm.SALUTATION,this.requiredDropdownValidation(e.querySelector(Dm.SALUTATION))),t.set(Dm.FIRSTNAME,this.requiredInputValidation(e.querySelector(Dm.FIRSTNAME))),t.set(Dm.LASTNAME,this.requiredInputValidation(e.querySelector(Dm.LASTNAME))),t.set(Dm.EMAIL,this.requiredEmailValidation(e.querySelector(Dm.EMAIL))),t.set(Dm.STREET,this.requiredInputValidation(e.querySelector(Dm.STREET))),t.set(Dm.HOUSE_NR,this.requiredInputValidation(e.querySelector(Dm.HOUSE_NR))),t.set(Dm.ZIP,this.requiredZipValidation(e.querySelector(Dm.ZIP))),t.set(Dm.CITY,this.requiredInputValidation(e.querySelector(Dm.CITY))),t.set(Dm.COUNTRY,this.requiredDropdownValidation(e.querySelector(Dm.COUNTRY))),t.set(Dm.PREFIX,this.requiredDropdownValidation(e.querySelector(Dm.PREFIX))),t.set(Dm.PHONE,this.requiredPhoneValidation(e.querySelector(Dm.PHONE))),t}},{key:"validateStep1dOwnerNew",value:function(e){var t=new Map;return t.set(Pm.SALUTATION,this.requiredDropdownValidation(e.querySelector(Pm.SALUTATION))),t.set(Pm.FIRSTNAME,this.requiredInputValidation(e.querySelector(Pm.FIRSTNAME))),t.set(Pm.LASTNAME,this.requiredInputValidation(e.querySelector(Pm.LASTNAME))),t.set(Pm.EMAIL,this.requiredEmailValidation(e.querySelector(Pm.EMAIL))),t.set(Pm.STREET,this.requiredInputValidation(e.querySelector(Pm.STREET))),t.set(Pm.HOUSE_NR,this.requiredInputValidation(e.querySelector(Pm.HOUSE_NR))),t.set(Pm.ZIP,this.requiredZipValidation(e.querySelector(Pm.ZIP))),t.set(Pm.CITY,this.requiredInputValidation(e.querySelector(Pm.CITY))),t.set(Pm.COUNTRY,this.requiredDropdownValidation(e.querySelector(Pm.COUNTRY))),t.set(Pm.PREFIX,this.requiredDropdownValidation(e.querySelector(Pm.PREFIX))),t.set(Pm.PHONE,this.requiredPhoneValidation(e.querySelector(Pm.PHONE))),t}},{key:"validateStep1dDriver",value:function(e){var t=new Map;return t.set(Om.SALUTATION,this.requiredDropdownValidation(e.querySelector(Om.SALUTATION))),t.set(Om.FIRSTNAME,this.requiredInputValidation(e.querySelector(Om.FIRSTNAME))),t.set(Om.LASTNAME,this.requiredInputValidation(e.querySelector(Om.LASTNAME))),t.set(Om.STREET,this.requiredInputValidation(e.querySelector(Om.S
6TREET))),t.set(Om.HOUSE_NR,this.requiredInputValidation(e.querySelector(Om.HOUSE_NR))),t.set(Om.CITY,this.requiredInputValidation(e.querySelector(Om.CITY))),t.set(Om.COUNTRY,this.requiredDropdownValidation(e.querySelector(Om.COUNTRY))),"OT"===e.querySelector(Om.COUNTRY).value?t.set(Om.ZIP,this.requiredZipValidationOther(e.querySelector(Om.ZIP))):t.set(Om.ZIP,this.requiredZipValidation(e.querySelector(Om.ZIP))),t}},{key:"validateStep2Vehicle",value:function(e){var t=new Map;t.set(Mm.BRAND,this.requiredDropdownValidation(e.querySelector(Mm.BRAND))),t.set(Mm.MODEL,this.requiredDropdownValidation(e.querySelector(Mm.MODEL))),t.set(Mm.LICENSE_PLATE,this.requiredLicensePlatetValidation(e.querySelector(Mm.LICENSE_PLATE))),t.set(Mm.VIN,this.requiredVINValidation(e.querySelector(Mm.VIN)));var n=e.querySelector(Mm.DAY),r=e.querySelector(Mm.MONTH),a=e.querySelector(Mm.YEAR),i="".concat(a.value,"-",r.value,"-",n.value,"T00:00:00"),o=new Date(i),s=new Date;s.setHours(0,0,0,0);var c=!0;return(o>s||o.getDate()!==parseInt(n.value))&&(c=!1),0===a.value.length&&0===r.value.length&&0===n.value.length&&(c=!0),t.set(Mm.DATE_RESULT,c),t}},{key:"validateStep2VehicleNew",value:function(e){var t=new Map;t.set(qm.BRAND,this.requiredDropdownValidation(e.querySelector(qm.BRAND))),t.set(qm.MODEL,this.requiredDropdownValidation(e.querySelector(qm.MODEL))),t.set(qm.LICENSE_PLATE,this.requiredLicensePlatetValidation(e.querySelector(qm.LICENSE_PLATE))),t.set(qm.VIN,this.requiredVINValidation(e.querySelector(qm.VIN)));var n=e.querySelector(qm.DAY),r=e.querySelector(qm.MONTH),a=e.querySelector(qm.YEAR),i="".concat(a.value,"-",r.value,"-",n.value,"T00:00:00"),o=new Date(i),s=new Date;s.setHours(0,0,0,0);var c=!0;return(o>s||o.getDate()!==parseInt(n.value))&&(c=!1),0===a.value.length&&0===r.value.length&&0===n.value.length&&(c=!0),t.set(qm.DATE_RESULT,c),t}},{key:"validateStep4",value:function(e){var t=new Map;return t.set(jm.DROPDOWN_SALUTATION,this.requiredDropdownValidation(e.querySelector(jm.DROPDOWN_SALUTATION))),t.set(jm.INPUT_FIRSTNAME,this.requiredInputValidation(e.querySelector(jm.INPUT_FIRSTNAME))),t.set(jm.INPUT_LASTNAME,this.requiredInputValidation(e.querySelector(jm.INPUT_LASTNAME))),t.set(jm.INPUT_MAIL,this.requiredEmailValidation(e.querySelector(jm.INPUT_MAIL))),t.set(jm.INPUT_STREET,this.requiredInputValidation(e.querySelector(jm.INPUT_STREET))),t.set(jm.INPUT_HOUSENR,this.requiredInputValidation(e.querySelector(jm.INPUT_HOUSENR))),t.set(jm.INPUT_ZIP,this.requiredZipValidation(e.querySelector(jm.INPUT_ZIP))),t.set(jm.INPUT_CITY,this.requiredInputValidation(e.querySelector(jm.INPUT_CITY))),t.set(jm.DROPDOWN_COUNTRY,this.requiredDropdownValidation(e.querySelector(jm.DROPDOWN_COUNTRY))),t.set(jm.DROPDOWN_COUNTRY_PREFIX,this.requiredDropdownValidation(e.querySelector(jm.DROPDOWN_COUNTRY_PREFIX))),t.set(jm.INPUT_PHONE,this.requiredPhoneValidation(e.querySelector(jm.INPUT_PHONE))),t}},{key:"validateStep3b",value:function(e){var t=this,n=new Map,r=!1;return e.querySelectorAll("input").forEach((function(e){t.requiredInputValidation(e)&&(r=!0)})),n.set(Fm.REPLACEMENT_WRAPPER,r),n}},{key:"requiredInputValidation",value:function(e){var t=e.attributes.getNamedItem("type").value;return"checkbox"===t||"radio"===t?e.checked:e.value.length>0}},{key:"requiredLicensePlatetValidation",value:function(e){var t=!1,n=e.value.trim();return new RegExp("^[A-ZÃÃÃ]{1,2}([ ][0-9]+)+([ ][A-ZÃÃÃ]+|)$").test(n)&&n.length>0&&(t=!0),t}},{key:"requiredVINValidation",value:function(e){var t=!1,n=e.value.trim();return(new RegExp("[A-Z0-9]+").test(n)&&17===n.length||0===n.length)&&(t=!0),t}},{key:"requiredDropdownValidation",value:function(e){return e.value.length>0}},{key:"requiredEmailValidation",value:function(e){return new RegExp(ji.VALIDATION_REGEX,"g").test(e.value)}},{key:"requiredZipValidation",value:function(e){return e.value.length>3&&e.value.length<5}},{key:"requiredZipValidationOther",value:function(e){return e.value.length>3&&e.value.length<7}},{key:"requiredPhoneValidation",value:function(e){return e.value.length>5&&e.value.length<15}}])}();function sv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sv=function(){return!!e})()}ov=av([nn.K,iv("design:paramtypes",[])],ov);var cv=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},lv=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},uv=function(e){function t(){return(0,pt.A)(this,t),e=this,n=t,n=(0,Ja.A)(n),(0,Xa.A)(e,sv()?Reflect.construct(n,r||[],(0,Ja.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,Qa.A)(t,e),(0,ft.A)(t,[{key:"setImageList",value:function(e){this.setItem(Vm.IMAGE_FILES,e)}},{key:"getImageList",value:function(){return this.getItem(Vm.IMAGE_FILES)}},{key:"setDamageDescription",value:function(e){this.setItem(Vm.DAMAGE_DESCRIPTION,e)}},{key:"getDamageDescription",value:function(){return this.getItem(Vm.DAMAGE_DESCRIPTION)}},{key:"setVehicleHolder",value:function(e){this.setItem(Vm.OWNER_STEP,e)}},{key:"getVehicleHolder",value:function(){return this.getItem(Vm.OWNER_STEP)}},{key:"setDriver",value:function(e){this.setItem(Vm.DRIVER_STEP,e)}},{key:"getDriver",value:function(){return this.getItem(Vm.DRIVER_STEP)}},{key:"deleteDriver",value:function(){this.delete(Vm.DRIVER_STEP)}},{key:"setVehicleData",value:function(e){this.setItem(Vm.VEHICLE_DATA,e)}},{key:"getVehicleData",value:function(){return this.getItem(Vm.VEHICLE_DATA)}},{key:"setGaragesData",value:function(e){this.setItem(Vm.GARAGE_SELECTION_STEP,e)}},{key:"getGaragesData",value:function(){return this.getItem(Vm.GARAGE_SELECTION_STEP)}},{key:"setAdditionalServices",value:function(e){this.setItem(Vm.REPLACEMENT_SERVICE_STEP,e)}},{key:"getAdditionalServices",value:function(){return this.getItem(Vm.REPLACEMENT_SERVICE_STEP)}},{key:"setDriveInAppointment",value:function(e){this.setItem(Vm.DRIVE_IN_APPOINTMENT,e)}},{key:"getDriveInAppointment",value:function(){return this.getItem(Vm.DRIVE_IN_APPOINTMENT)}},{key:"setPolicyHolder",value:function(e){this.setItem(Vm.INSURANCE_TAKER_STEP,e)}},{key:"getPolicyHolder",value:function(){return this.getItem(Vm.INSURANCE_TAKER_STEP)}},{key:"getEC2Case",value:function(){return this.getItem(Vm.CASE_OBJECT)}},{key:"setEC2Case",value:function(e){this.setItem(Vm.CASE_OBJECT,e)}},{key:"getEC2Insurance",value:function(){return this.getItem(Vm.INSURANCE_OBJECT)}},{key:"setEC2Insurance",value:function(e){this.setItem(Vm.INSURANCE_OBJECT,e)}},{key:"getEC2Vehicle",value:function(){return this.getItem(Vm.VEHICLE_OBJECT)}},{key:"setEC2Vehicle",value:function(e){this.setItem(Vm.VEHICLE_OBJECT,e)}},{key:"getEC2PolicyHolder",value:function(){return this.getItem(Vm.POLICYHOLDER_OBJECT)}},{key:"setEC2PolicyHolder",value:function(e){this.setItem(Vm.POLICYHOLDER_OBJECT,e)}},{key:"getEC2Documents",value:function(){return this.getItem(Vm.DOCUMENTS_ARRAY)}},{key:"setEC2Documents",value:function(e){this.setItem(Vm.DOCUMENTS_ARRAY,e)}},{key:"getEC2CaseId",value:function(){return this.getItem(Vm.CASE_ID)}},{key:"setEC2CaseId",value:function(e){this.setItem(Vm.CASE_ID,e)}},{key:"setCaseType",value:function(e){this.setItem(Vm.CASE_TYPE,e)}},{key:"getCaseType",value:function(){return this.getItem(Vm.CASE_TYPE)}}])}(function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this.storage=new Map}),[{key:"setItem",value:function(e,t){return this.storage.set(e,t)}},{key:"getItem",value:function(e){return this.storage.get(e)}},{key:"delete",value:function(e){return this.storage.delete(e)}},{key:"getAllItems",value:function(){return this.storage}}])}());uv=cv([nn.K,lv("design:paramtypes",[])],uv);var dv=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},hv=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},pv=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this._viewController=new rv,this._offCanvasService=new sn,this._stateService=new Jm,this._infoCanvasOpenButtons=this._element.querySelectorAll(".damage-report__open-info-canvas-button"),this._val
6idationService=new ov,this._storage=new uv,this._googleAnalyticsService=new ev,this.initAllInfoCanvasButtonEventListeners=function(){n._infoCanvasOpenButtons.forEach((function(e){var t=e.dataset.for;e.addEventListener("click",(function(){n._offCanvasService.showOffCanvasById(t),e.dataset.isClicked="true"}))}))},this.init()}),[{key:"init",value:function(){this.initAllInfoCanvasButtonEventListeners(),this.hideAllContinueButtonsForInfoCanvas(),this._viewController.changeView(xm.STEP_1A),this.initAllListeners()}},{key:"initAllListeners",value:function(){var e=this;this._stateService.on(km.REFRESH,(function(){e._infoCanvasOpenButtons.forEach((function(e){e.dataset.isClicked=""}))})),this._stateService.on(km.SUCCESS,(function(){e._viewController.changeView(xm.SUCCESS)})),this._element.querySelectorAll("input,textarea").forEach((function(e){"file"!==e.type&&e.addEventListener("change",(function(e){var t=e.target;t.value=di(pi(t.value))}))})),this._element.querySelectorAll(".select2-wrapper").forEach((function(e){e.addEventListener("change",(function(e){var t=e.target.querySelector("select");t.value=di(pi(t.value))}))}))}},{key:"hideAllContinueButtonsForInfoCanvas",value:function(){this._element.querySelectorAll(".damage-report__info-canvas").forEach((function(e){e.closest(".off-canvas__wrapper").querySelector(".off-canvas__confirm-button").classList.add("d-none")}))}}])}();function fv(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return mv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mv(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function mv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}pv=dv([(0,At.d)({selector:".damage-report",onDomLoaded:!0}),hv("design:paramtypes",[HTMLElement])],pv);var vv=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},gv=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},yv=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this.validationService=new ov,this.viewController=new rv,this.customEventListener=new Jm,this._storage=new uv,this._googleAnalyticsService=new ev,this.formChange=this._element.querySelector(Im.FORM_CHANGE),this.formNew=this._element.querySelector(Im.FORM_NEW),this.formDriver=this._element.querySelector(Im.FORM_DRIVER),this.ownerDriverBox=this._element.querySelector(Im.CHB_DRIVER_BOX),this._userLoggedIn=!1,this._ownerChange=!1,this._driverDifferent=!1,this._userHasAddressData=!0,this.buttonLabel1=this._element.dataset.buttonforward1,this.buttonLabel2=this._element.dataset.buttonforward2,this.buttonLabel3=this._element.dataset.buttonforward3,this.buttonLabel4=this._element.dataset.buttonforward4,this.buttonLabel5=this._element.dataset.buttonforward5,this.buttonLabel6=this._element.dataset.buttonforward6,this.forwardButton=this._element.querySelector(Im.BTN_CONTINUE),this.backwardButton=this._element.querySelector(Im.BTN_BACK),this.differentDriverCheckbox=this._element.querySelector(Im.CHB_DRIVER),this.forwardButtonSetLabel=function(){n._userLoggedIn?n._ownerChange?n._driverDifferent?n.forwardButton.textContent=n.buttonLabel4:n.forwardButton.textContent=n.buttonLabel3:n._driverDifferent?n.forwardButton.textContent=n.buttonLabel2:n.forwardButton.textContent=n.buttonLabel1:n._driverDifferent?n.forwardButton.textContent=n.buttonLabel6:n.forwardButton.textContent=n.buttonLabel5},this.ownerExistChangeButtonEventListener=function(){var e=n._element.querySelector("#damage-report__Box-buttonchangeUser"),t=n._element.querySelector(".damage-report-ownerexist"),r=n._element.querySelector(".damage-report-ownerchange");e.addEventListener("click",(function(){n._ownerChange=!0,n.forwardButtonSetLabel(),t.classList.add("d-none"),r.classList.remove("d-none")}))},this.ownerDriverDiffCheckboxEventListener=function(){var e=n._element.querySelector(".damage-report-form__otherdriver"),t=n._element.querySelector(".damage-report__existUser");n.differentDriverCheckbox.addEventListener("change",(function(){n.differentDriverCheckbox.checked?(n._driverDifferent=!0,n.resetValidationFormDriver(),n.forwardButtonSetLabel(),n.differentDriverCheckbox.closest(".damage-report__Box--colored").classList.remove("damage-report__Box--coloredGray"),n.differentDriverCheckbox.closest(".damage-report__Box--colored").classList.add("damage-report__Box--coloredBlue"),t.classList.remove("damage-report__Box--coloredBlue"),t.classList.add("damage-report__Box--coloredGray"),e.classList.remove("d-none")):(n.clearDriverForm(),n._driverDifferent=!1,n.forwardButtonSetLabel(),n.differentDriverCheckbox.closest(".damage-report__Box--colored").classList.add("damage-report__Box--coloredGray"),n.differentDriverCheckbox.closest(".damage-report__Box--colored").classList.remove("damage-report__Box--coloredBlue"),t.classList.add("damage-report__Box--coloredBlue"),t.classList.remove("damage-report__Box--coloredGray"),e.classList.add("d-none"))}))},this.checkUserLoggedin=function(){(localStorage.amaguser?JSON.parse(localStorage.amaguser):null)?(n._userLoggedIn=!0,n.forwardButtonSetLabel(),Dr(n.checkUserStatus)):(n._userLoggedIn=!1,n.forwardButtonSetLabel(),n.showNewOwnerView())},this.showNewOwnerView=function(){n._element.querySelector(".damage-report-ownernew").classList.remove("d-none")},this.showExistingOwnerView=function(){n._element.querySelector(".damage-report-ownerexist").classList.remove("d-none")},this.checkUserStatus=function(e){var t;if("FAIL"!==e.status){if(!(null===(t=e.addresses)||void 0===t?void 0:t.private))return n._userHasAddressData=!1,void n.showNewOwnerView();n._userHasAddressData=!0,n.showExistingOwnerView(),n.fillUserDateBlueBox(e),n.prefillingChangeOwnerForm(e)}else console.log("FEHLER CDC")},this.fillUserDateBlueBox=function(e){var t,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y=n._element.querySelector(".damage-report__Box-userdata");y.innerHTML="";var _="",b="";void 0!==e.profile.gender?("m"==e.profile.gender?_=Granite.I18n.get("apps.amag-ch.components.c
6ontent.damageReport.screen-1e.form.salutation.male"):"f"==e.profile.gender&&(_=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.female")),b=_+" "+e.profile.firstName+" "+e.profile.lastName):b=e.profile.firstName+" "+e.profile.lastName;var w="".concat((null===(r=null===(t=e.addresses)||void 0===t?void 0:t.private)||void 0===r?void 0:r.street)||""," ").concat((null===(i=null===(a=e.addresses)||void 0===a?void 0:a.private)||void 0===i?void 0:i.houseNumber)||"").trim(),S="".concat((null===(s=null===(o=e.addresses)||void 0===o?void 0:o.private)||void 0===s?void 0:s.zipCode)||""," ").concat((null===(l=null===(c=e.addresses)||void 0===c?void 0:c.private)||void 0===l?void 0:l.city)||"").trim(),C="";void 0!==(null===(d=null===(u=e.addresses)||void 0===u?void 0:u.private)||void 0===d?void 0:d.countryISOCode3)&&(["CHE","CH"].includes(null===(p=null===(h=e.addresses)||void 0===h?void 0:h.private)||void 0===p?void 0:p.countryISOCode3)?C=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.ch"):["LIE","LI"].includes(null===(m=null===(f=e.addresses)||void 0===f?void 0:f.private)||void 0===m?void 0:m.countryISOCode3)&&(C=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.li")));var E=document.createDocumentFragment(),x=document.createElement("div");x.textContent=b;var A=document.createElement("div");A.textContent=w;var k=document.createElement("div");k.textContent=S;var T=document.createElement("div");T.textContent=C;var L=document.createElement("div");L.textContent=e.profile.email||"";var I=document.createElement("div");I.textContent=(null===(g=null===(v=e.profile.phones)||void 0===v?void 0:v[0])||void 0===g?void 0:g.number)||"",E.appendChild(x),E.appendChild(A),E.appendChild(k),E.appendChild(T),E.appendChild(L),E.appendChild(I),y.appendChild(E)},this.prefillingChangeOwnerForm=function(e){var t,r,a,i,o,s,c,l,u,d,h,p,f,m=fv(e.profile.phones);try{for(m.s();!(f=m.n()).done;){var v=f.value;"mobile"==v.type&&(h=v.number.substring(0,3),p=v.number.substring(3,20),n.formChange.querySelector(Dm.PREFIX).value=h,n.formChange.querySelector(Dm.PHONE).value=p,n.formChange.querySelector(Dm.PREFIX).dispatchEvent(new Event("select2:select")),n.formChange.querySelector(Dm.PREFIX).dispatchEvent(new Event("change")))}}catch(e){m.e(e)}finally{m.f()}n.formChange.querySelector(Dm.SALUTATION).value=e.profile.gender,n.formChange.querySelector(Dm.FIRSTNAME).value=e.profile.firstName,n.formChange.querySelector(Dm.LASTNAME).value=e.profile.lastName,n.formChange.querySelector(Dm.EMAIL).value=e.profile.email||"",n.formChange.querySelector(Dm.STREET).value=(null===(r=null===(t=e.addresses)||void 0===t?void 0:t.private)||void 0===r?void 0:r.street)||"",n.formChange.querySelector(Dm.HOUSE_NR).value=(null===(i=null===(a=e.addresses)||void 0===a?void 0:a.private)||void 0===i?void 0:i.houseNumber)||"",n.formChange.querySelector(Dm.ZIP).value=(null===(s=null===(o=e.addresses)||void 0===o?void 0:o.private)||void 0===s?void 0:s.zipCode)||"",n.formChange.querySelector(Dm.CITY).value=(null===(l=null===(c=e.addresses)||void 0===c?void 0:c.private)||void 0===l?void 0:l.city)||"",n.formChange.querySelector(Dm.COUNTRY).value=null===(d=null===(u=e.addresses)||void 0===u?void 0:u.private)||void 0===d?void 0:d.countryISOCode3,n.formChange.querySelector(Dm.SALUTATION).dispatchEvent(new Event("select2:select")),n.formChange.querySelector(Dm.SALUTATION).dispatchEvent(new Event("change")),n.formChange.querySelector(Dm.COUNTRY).dispatchEvent(new Event("select2:select")),n.formChange.querySelector(Dm.COUNTRY).dispatchEvent(new Event("change"))},this.setDropdownSalutation=function(){var e=[{id:"",text:""},{id:"m",text:Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.male")},{id:"f",text:Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.female")}],t=n._element.querySelector("#damage-report-salutation-ownerchange"),r=n._element.querySelector("#damage-report-salutation-ownernew"),a=n._element.querySelector("#damage-report-salutation-driver");Vr(t,e,null,null),Vr(r,e,null,null),Vr(a,e,null,null)},this.setDropdownCountry=function(){var e=[{id:"",text:Granite.I18n.get("apps.amag-ch.components.c
6ontent.damageReport.screen-1e.form.countryselect")},{id:"CHE",text:Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.ch")},{id:"LIE",text:Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.li")}],t=[{id:"",text:Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.countryselect")},{id:"CHE",text:Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.ch")},{id:"OT",text:Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.other")}],r=n._element.querySelector("#damage-report-country-ownerchange"),a=n._element.querySelector("#damage-report-country-ownernew"),i=n._element.querySelector("#damage-report-country-driver");Vr(r,e,null,null),Vr(a,e,null,null),Vr(i,t,null,null)},this.setDropdownPrefixMobile=function(){var e=[{id:"",text:""},{id:"+41",text:"CH (+41)"},{id:"+49",text:"DE (+49)"},{id:"+33",text:"FR (+33)"},{id:"+39",text:"IT (+39)"},{id:"+423",text:"LI (+423)"},{id:"+43",text:"AT (+43)"}],t=n._element.querySelector("#damage-report-countryPrefix-ownerchange"),r=n._element.querySelector("#damage-report-countryPrefix-ownernew");Vr(t,e,null,null),Vr(r,e,null,null)},this.init()}),[{key:"init",value:function(){this.checkUserLoggedin(),this.setDropdownSalutation(),this.setDropdownCountry(),this.setDropdownPrefixMobile(),this.ownerExistChangeButtonEventListener(),this.ownerDriverDiffCheckboxEventListener(),this.setEventListener()}},{key:"setEventListener",value:function(){var e=this;this.forwardButton.addEventListener("click",(function(){var t=e.validationService.validateStep1dOwnerChange(e.formChange),n=e.validationService.validateStep1dOwnerNew(e.formNew),r=e.validationService.validateStep1dDriver(e.formDriver),a=e._element.querySelector("#damage-report-checkbox"),i=e._element.querySelector(".damage-report-ownerchange"),o=e._element.querySelector(".damage-report-ownernew"),s=!0;e.formChange.classList.remove("invalid"),e.formNew.classList.remove("invalid"),e.formDriver.classList.remove("invalid"),e.resetValidationOwnerNew(),e.resetValidationOwnerChange(),e.resetValidationFormDriver(),o.classList.contains("d-none")||n&&(e.formNew.classList.add("invalid"),s=e.goThroughValidationResult(n,e.formNew)),i.classList.contains("d-none")||t&&(e.formChange.classList.add("invalid"),s=e.goThroughValidationResult(t,e.formChange)),a.checked&&r&&(e.formDriver.classList.add("invalid"),s=e.goThroughValidationResult(r,e.formDriver)),s&&(e.giveDataToStorage(),e.viewController.changeView(xm.STEP_2),e._googleAnalyticsService.step5VehicleDriverDataEvent(e.forwardButton.textContent.trim()))})),this.backwardButton.addEventListener("click",(function(){(localStorage.amaguser?JSON.parse(localStorage.amaguser):null)?e.viewController.changeView(xm.STEP_1C):e.viewController.changeView(xm.STEP_1D),e._googleAnalyticsService.backEvent("step 5 - vehicle driver data",e.backwardButton.textContent.trim())})),this.customEventListener.on(km.REFRESH,(function(t){e.toggleOtherDriver(!0)})),this.customEventListener.on(km.CHOSEN_DAMAGE_CATEGORY,(function(t){e.toggleOtherDriver(t.name!==Am.HAIL_DAMAGE)})),document.querySelector("body").addEventListener("amagUserLogin",(function(t){e._element.querySelector(".damage-report-ownerexist").classList.add("d-none"),e._element.querySelector(".damage-report-ownerchange").classList.add("d-none"),e._element.querySelector(".damage-report-ownernew").classList.add("d-none"),e.checkUserLoggedin()}))}},{key:"goThroughValidationResult",value:function(e,t){var n=!0,r="";return e.forEach((function(e,a){if(!e){n=!1;var i=t.querySelector(a);"SELECT"===i.tagName?i.classList.add("invalid--required"):i.closest(".form-field__container").classList.add("invalid--required"),""===r&&(r=a)}})),n||this._element.querySelector(r).scrollIntoView({behavior:"smooth",block:"center"}),n}},{key:"giveDataToStorage",value:function(){var e;e=this._userLoggedIn&&this._userHasAddressData?{company:this.formChange.querySelector(Dm.COMPANY).value,salutation:this.formChange.querySelector(Dm.SALUTATION).value,firstname:this.formChange.querySelector(Dm.FIRSTNAME).value,lastname:this.formChange.querySelector(Dm.LASTNAME).value,street:this.formChange.querySelector(Dm.STREET).value,housenr:this.formChange.querySelector(Dm.HOUSE_NR).value,zip:this.formChange.querySelector(Dm.ZIP).value,city:this.formChange.querySelector(Dm.CITY).value,country:this.formChange.querySelector(Dm.COUNTRY).value,email:this.formChange.querySelector(Dm.EMAIL).value,prefix:this.formChange.querySelector(Dm.PREFIX).value,phone:this.formChange.querySelector(Dm.PHONE).value}:{company:this.formNew.querySelector(Pm.COMPANY).value,salutation:this.formNew.querySelector(Pm.SALUTATION).value,firstname:this.formNew.querySelector(Pm.FIRSTNAME).value,lastname:this.formNew.querySelector(Pm.LASTNAME).value,street:this.formNew.querySelector(Pm.STREET).value,housenr:this.formNew.querySelector(Pm.HOUSE_NR).value,zip:this.formNew.querySelector(Pm.ZIP).value,city:this.formNew.querySelector(Pm.CITY).value,country:this.formNew.querySelector(Pm.COUNTRY).value,email:this.formNew.querySelector(Pm.EMAIL).value,prefix:this.formNew.querySelector(Pm.PREFIX).value,phone:this.formNew.querySelector(Pm.PHONE).value},this._storage.setVehicleHolder(e),this.customEventListener.emit(km.SET_HOLDER,null);var t="";Object.keys(e).forEach((function(n){n&&(t+="".concat(n,": ").concat(e[n],", "))}));var n={insuranceRemarksInternal:t},r=this._storage.getEC2Insurance(),a=Object.assign(Object.assign({},r),n);if(this._storage.setEC2Insurance(a),this.differentDriverCheckbox.checked){var i={company:this.formDriver.querySelector(Om.COMPANY).value,salutation:this.formDriver.querySelector(Om.SALUTATION).value,firstname:this.formDriver.querySelector(Om.FIRSTNAME).value,lastname:this.formDriver.querySelector(Om.LASTNAME).value,street:this.formDriver.querySelector(Om.STREET).value,housenr:this.formDriver.querySelector(Om.HOUSE_NR).value,zip:this.formDriver.querySelector(Om.ZIP).value,city:this.formDriver.querySelector(Om.CITY).value,country:this.formDriver.querySelector(Om.COUNTRY).value};this._storage.setDriver(i);var o="";
6Object.keys(i).forEach((function(e){o+="".concat(e,": ").concat(i[e],", ")}));var s=this._storage.getEC2Insurance(),c={insuranceRemarksInternal:"".concat(s.insuranceRemarksInternal," | Different Driver: ").concat(o,",")},l=Object.assign(Object.assign({},s),c);this._storage.setEC2Insurance(l)}else{this._storage.deleteDriver();var u=this._storage.getEC2Insurance(),d=Object.assign(Object.assign({},u),{insuranceRemarksInternal:"".concat(u.insuranceRemarksInternal.split("|")[0])});this._storage.setEC2Insurance(d)}}},{key:"toggleOtherDriver",value:function(e){e?this.ownerDriverBox.classList.remove("d-none"):this.ownerDriverBox.classList.add("d-none")}},{key:"clearDriverForm",value:function(){this.formDriver.querySelector(Om.COMPANY).value="",this.formDriver.querySelector(Om.SALUTATION).value="",this.formDriver.querySelector(Om.SALUTATION).dispatchEvent(new Event("select2:select")),this.formDriver.querySelector(Om.SALUTATION).dispatchEvent(new Event("change")),this.formDriver.querySelector(Om.FIRSTNAME).value="",this.formDriver.querySelector(Om.LASTNAME).value="",this.formDriver.querySelector(Om.STREET).value="",this.formDriver.querySelector(Om.HOUSE_NR).value="",this.formDriver.querySelector(Om.ZIP).value="",this.formDriver.querySelector(Om.CITY).value="",this.formDriver.querySelector(Om.COUNTRY).value="",this.formDriver.querySelector(Om.COUNTRY).dispatchEvent(new Event("select2:select")),this.formDriver.querySelector(Om.COUNTRY).dispatchEvent(new Event("change"))}},{key:"resetValidationOwnerNew",value:function(){this.formNew.classList.remove("invalid"),this.formNew.querySelector(Pm.SALUTATION).classList.remove("invalid--required"),this.formNew.querySelector(Pm.FIRSTNAME).closest(".form-field__container").classList.remove("invalid--required"),this.formNew.querySelector(Pm.LASTNAME).closest(".form-field__container").classList.remove("invalid--required"),this.formNew.querySelector(Pm.EMAIL).closest(".form-field__container").classList.remove("invalid--required"),this.formNew.querySelector(Pm.STREET).closest(".form-field__container").classList.remove("invalid--required"),this.formNew.querySelector(Pm.HOUSE_NR).closest(".form-field__container").classList.remove("invalid--required"),this.formNew.querySelector(Pm.ZIP).closest(".form-field__container").classList.remove("invalid--required"),this.formNew.querySelector(Pm.CITY).closest(".form-field__container").classList.remove("invalid--required"),this.formNew.querySelector(Pm.COUNTRY).classList.remove("invalid--required"),this.formNew.querySelector(Pm.PREFIX).classList.remove("invalid--required"),this.formNew.querySelector(Pm.PHONE).closest(".form-field__container").classList.remove("invalid--required")}},{key:"resetValidationOwnerChange",value:function(){this.formChange.classList.remove("invalid"),this.formChange.querySelector(Dm.SALUTATION).classList.remove("invalid--required"),this.formChange.querySelector(Dm.FIRSTNAME).closest(".form-field__container").classList.remove("invalid--required"),this.formChange.querySelector(Dm.LASTNAME).closest(".form-field__container").classList.remove("invalid--required"),this.formChange.querySelector(Dm.EMAIL).closest(".form-field__container").classList.remove("invalid--required"),this.formChange.querySelector(Dm.STREET).closest(".form-field__container").classList.remove("invalid--required"),this.formChange.querySelector(Dm.HOUSE_NR).closest(".form-field__container").classList.remove("invalid--required"),this.formChange.querySelector(Dm.ZIP).closest(".form-field__container").classList.remove("invalid--required"),this.formChange.querySelector(Dm.CITY).closest(".form-field__container").classList.remove("invalid--required"),this.formChange.querySelector(Dm.COUNTRY).classList.remove("invalid--required"),this.formChange.querySelector(Dm.PREFIX).classList.remove("invalid--required"),this.formChange.querySelector(Dm.PHONE).closest(".form-field__container").classList.remove("invalid--required")}},{key:"resetValidationFormDriver",value:function(){this.formDriver.classList.remove("invalid"),this.formDriver.querySelector(Om.SALUTATION).classList.remove("invalid--required"),this.formDriver.querySelector(Om.FIRSTNAME).closest(".form-field__container").classList.remove("invalid--required"),this.formDriver.querySelector(Om.LASTNAME).closest(".form-field__container").classList.remove("invalid--required"),this.formDriver.querySelector(Om.STREET).closest(".form-field__container").classList.remove("invalid--required"),this.formDriver.querySelector(Om.HOUSE_NR).closest(".form-field__container").classList.remove("invalid--required"),this.formDriver.querySelector(Om.ZIP).closest(".form-field__container").classList.remove("invalid--required"),this.formDriver.querySelector(Om.CITY).closest(".form-field__container").classList.remove("invalid--required"),this.formDriver.querySelector(Om.COUNTRY).classList.remove("invalid--required")}}])}();yv=vv([(0,At.d)({selector:".damage-report__step-1e",onDomLoaded:!0}),gv("design:paramtypes",[HTMLElement])],yv);var _v=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},bv=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},wv=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this.validationService=new ov,this.viewController=new rv,this.customEventListener=new Jm,this.storage=new uv,this.googleAnalyticsService=new ev,this.form=this._element.querySelector(Tm.FORM),this.damageDescriptionTextarea=this._element.querySelector(Tm.TEXTAREA),this.dayDropdown=this._element.querySelector(Tm.DROPDOWN_DAY),this.monthDropdown=this._element.querySelector(Tm.DROPDOWN_MONTH),this.yearDropdown=this._element.querySelector(Tm.DROPDOWN_YEAR),this.locationInput=this._element.querySelector(Tm.INPUT_LOCATION),this.locationInputWrapper=this.locationInput.closest(Tm.INPUT_CONTAINER),this.insuranceDropdown=new nh.e(Tm.INSURANCE_DROPDOWN_WRAPPER),this.insuranceDropdownSelect=this.insuranceDropdown.getNativeSelect(),this.insuranceOtherInput=this._element.querySelector(Tm.INPUT_INSURANCE_OTHER),this.insuranceOtherInputOuter=this.insuranceOtherInput.closest(Tm.INPUT_OUTER),this.insuranceOtherInputContainer=this.insuranceOtherInput.closest(Tm.INPUT_CONTAINER),this.isParkedDamage=!1,this.insurers=[],this.insuranceList=[],this.setContinueButtonEventListener=function(){var e=n._element.querySelector(Tm.BTN_CONTINUE);e.addEventListener("click",(function(t){var r;t.preventDefault();var a=n.validationService.validateStep1c(n.form),i=n._element.querySelector(".form-field--textarea"),o=!0,s="";(n.form.classList.remove("invalid"),n.form.classList.remove("invalidDate"),n.form.classList.remove("invalidInsurance"),n.locationInputWrapper.classList.remove("invalid--required"),i.classList.remove("invalid--required"),n.insuranceDropdownSelect.classList.remove("invalid--required"),n.insuranceOtherInputContainer.classList.remove("invalid--required"),a.get(Tm.INPUT_LOCATION)||(o=!1,n.locationInputWrapper.classList.add("invalid--required"),s=Tm.INPUT_LOCATION),n.damageDescriptionTextarea.hidden||a.get(Tm.TEXTAREA)||(o=!1,i.classList.add("invalid--required"),""===s&&(s=Tm.TEXTAREA)),a.get(Tm.DATE_RESULT)||(o=!1,n.form.classList.add("invalidDate"),""===s&&(s=Tm.DATE_RESULT)),a.get(Tm.INSURANCE_BUTTON)||(o=!1,n.form.classList.add("invalidInsurance"),""===s&&(s=Tm.INSURANCE_BUTTON)),n.getInsuranceOtherState()&&!a.get(Tm.INPUT_INSURANCE_OTHER)&&(o=!1,n.insuranceOtherInputContainer.classList.add("invalid--required"),""===s&&(s=Tm.INPUT_INSURANCE_OTHER)),o)?n.giveDataToStorage()&&((localStorage.amaguser?JSON.parse(localStorage.amaguser):null)?n.viewController.changeView(xm.STEP_1E):n.viewController.changeView(xm.STEP_1D),n.googleAnalyticsService.step3DamageClaimEvent(e.textContent.trim())):(n.form.classList.add("invalid"),null===(r=n._element.querySelector(s))||void 0===r||r.scrollIntoView({behavior:"smooth",block:"center"}))}))},this.setBackButtonEventListener=function(){var e=n._element.querySelector(Tm.BTN_BACK);e.addEventListener("click",(function(){n.viewController.changeView(xm.STEP_1B),n.googleAnalyticsService.backEvent("step 3 - damage claim",e.textContent.trim())}))},this.setRefreshEventListener=function(){n.customEventListener.on(km.REFRESH,(function(e){n.refreshStep(),n.toggleDescriptionOfDamage(!1)}))},this.setChosenDamageCategoryEventListener=function(){n.customEventListener.on(km.CHOSEN_DAMAGE_CATEGORY,(function(e){n.toggleDescriptionOfDamage(e.name===Am.HAIL_DAMAGE),n.isParkedDamage=e.name===Am.PARKED_DAMAGE}))},this.setInsuranceSelectionEventListener=function(){n.insuranceDropdownSelect.addEventListener("change",(function(){n.insuranceOtherInputOuter.hidden=!("Other"===n.insuranceDropdownSelect.value)}))},this.fillDateDropdown=function(){Kd[0].text=Granite.I18n.get("apps.amag-ch.components.project.global.dropdown.day.label"),Vr(n.dayDropdown,Kd,void 0,void 0),Xd[
60].text=Granite.I18n.get("apps.amag-ch.components.project.global.dropdown.month.label"),Vr(n.monthDropdown,Xd,void 0,void 0);var e=new Date,t=[];t.push({id:"",text:Granite.I18n.get("apps.amag-ch.components.project.global.dropdown.year.label")});for(var r=e.getFullYear();r>=e.getFullYear()-2;r--)t.push({id:r,text:r});Vr(n.yearDropdown,t,void 0,void 0)},this.fillInsuranceDropdown=function(){var e,t,r=n._element.querySelector(Tm.INSURANCE_LIST).children,a={value:"",label:Granite.I18n.get("apps.amag-ch.components.content.damageReport.step1.c.dropdown.insurance.default.fieldLabel")},i={value:"Other",label:Granite.I18n.get("apps.amag-ch.components.content.damageReport.step1.c.dropdown.insurance.other.label")};n.insuranceList=[],n.insuranceList.push(a);for(var o=0;o<r.length;o++){var s=null!==(e=r[o].dataset.insuranceCode)&&void 0!==e?e:"",c=null!==(t=r[o].dataset.insuranceName)&&void 0!==t?t:"";n.insuranceList.push({value:s,label:c}),n.insurers.push({code:s,name:c})}n.insuranceList.push(i),n.insuranceDropdown.setOptions(n.insuranceList)},this.mapInsurerToClientId=function(e){switch(e.code){case"1006":return 35538;case"1028":return 35143;case"25871":return 33002;case"20038":return 27055;case"1056":return 28982;case"1105":return 33387;case"27133":return 41270;case"23748":var t=(0,it.Xo)();return"fr"===t?32185:"it"===t?32186:32184;case"27688":return 35420;case"":return 0;default:throw new Error("Unknown id for insurer: ".concat(JSON.stringify(e)))}},this.getInsuranceOtherState=function(){return"Other"===n.insuranceDropdownSelect.value},this.init()}),[{key:"init",value:function(){wi(this.damageDescriptionTextarea,!0),this.setDropdowns(),this.setInitialDate(),this.setEventListeners()}},{key:"setEventListeners",value:function(){this.setContinueButtonEventListener(),this.setBackButtonEventListener(),this.setRefreshEventListener(),this.setChosenDamageCategoryEventListener(),this.setInsuranceSelectionEventListener()}},{key:"setDropdowns",value:function(){this.fillDateDropdown(),this.fillInsuranceDropdown()}},{key:"setInitialDate",value:function(){for(var e=(new Date).toLocaleDateString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"}).split("."),t=0;t<=this.dayDropdown.options.length;t++)if(this.dayDropdown.options[t].value===e[0]){this.dayDropdown.value=e[0],this.dayDropdown.dispatchEvent(new Event("select2:select")),this.dayDropdown.dispatchEvent(new Event("change"));break}for(var n=0;n<=this.monthDropdown.options.length;n++)if(this.monthDropdown.options[n].value===e[1]){this.monthDropdown.value=e[1],this.monthDropdown.dispatchEvent(new Event("select2:select")),this.monthDropdown.dispatchEvent(new Event("change"));break}for(var r=0;r<=this.yearDropdown.options.length;r++)if(this.yearDropdown.options[r].value===e[2]){this.yearDropdown.value=e[2],this.yearDropdown.dispatchEvent(new Event("select2:select")),this.yearDropdown.dispatchEvent(new Event("change"));break}}},{key:"giveDataToStorage",value:function(){var e,t,n=this.locationInput.value,r=this.damageDescriptionTextarea.value,a="".concat(this.yearDropdown.value,"-").concat(this.monthDropdown.value,"-").concat(this.dayDropdown.value),i=this.insuranceDropdownSelect.value,o={code:"",name:""},s=null,c=null!==(e=this.insurers.find((function(e){return e.code===i})))&&void 0!==e?e:o;i?i.includes("Other")&&(c=o,s=hi(this.insuranceOtherInput.value)):c=o;try{var l={selectedInsurer:c,insuranceOtherName:s,selectedDate:new Date(a),place:n,description:r,id:Number(c.code)||0,clientId:this.mapInsurerToClientId(c)};this.storage.setDamageDescription(l);var u=this.storage.getCaseType(),d=null;if(58===u?d=301:50===u&&this.isParkedDamage?d=307:50===u?d=201:55===u&&(d=308),null===d)throw new Error("Unknown insurance branch for case type: ".concat(u));return this.storage.setEC2Insurance({insuranceDamageDate:l.selectedDate.toLocaleDateString("de-de",{year:"numeric",month:"2-digit",day:"2-digit"}),insuranceBranch:d,insuranceRemarksInternal:l.description}),!0}catch(e){return e instanceof Error?console.error(e.message):console.error("An unknown error occurred",e),null===(t=this._element.querySelector("#savingError"))||void 0===t||t.classList.add("invalid"),!1}}},{key:"toggleDescriptionOfDamage",value:function(e){this.damageDescriptionTextarea.hidden=e}},{key:"refreshStep",value:function(){this.setInitialDate(),this.damageDescriptionTextarea.value="",this.locationInput.value="",this.insuranceDropdownSelect.value=this.insuranceList[0].value,this.insuranceOtherInput.value=""}}])}();wv=_v([(0,At.d)({selector:".damage-report__step-1c",onDomLoaded:!0}),bv("design:paramtypes",[HTMLElement])],wv);var Sv=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Cv=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}
6,Ev=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},xv=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this._viewController=new rv,this._offCanvasService=new sn,this._storage=new uv,this._stateService=new Jm,this._googleAnalyticsService=new ev,this.fileSizeLimit=5242880,this.totalFileSizeBytesLimit=26214400,this.imageList={DamageReportImageFiles:[],currentTotalFileSizeBytes:0},this._notification=this._element.querySelector(".damage-report__step-1-image-upload-damage-notification-infotext"),this._spinner=this._element.querySelector(".damage-report__step-1-image-upload__spinner"),this.listenToStates=function(){n._stateService.on(km.CHOSEN_DAMAGE_CATEGORY,(function(e){n.fillDynamicSubHeadline(e.headline),n.showSpecificNotification(e.name)}))},this.fillDynamicSubHeadline=function(e){n._element.querySelector(".damage-report__step-1-image-upload-subheadline").textContent=e},this.showSpecificNotification=function(e){n._notification.querySelector(".text").innerHTML=n._notification.dataset[e.toLowerCase()]},this.showDamageReportImageFileErrors=function(e){"unacceptedtype"===e&&n._element.querySelector(".damage-report__step-1-image-upload-error.type-unaccepted").classList.remove("d-none");"exceededsingle"===e&&n._element.querySelector(".damage-report__step-1-image-upload-error.exceeds-limit-single").classList.remove("d-none");"exceededtotal"===e&&n._element.querySelector(".damage-report__step-1-image-upload-error.exceeds-limit-total").classList.remove("d-none")},this.hideFileLimitExceededError=function(e){var t=n._element.querySelector(".damage-report__step-1-image-upload-error.type-unaccepted"),r=n._element.querySelector(".damage-report__step-1-image-upload-error.exceeds-limit-single"),a=n._element.querySelector(".damage-report__step-1-image-upload-error.exceeds-limit-total");"unacceptedtype"!==e?"exceededsingle"!==e?"exceededtotal"!==e?(t.classList.add("d-none"),a.classList.add("d-none"),r.classList.add("d-none")):a.classList.add("d-none"):r.classList.add("d-none"):t.classList.add("d-none")},this.getExtension=function(e){var t=e.split("/");return t[t.length-1]},this.createImageDisplayName=function(e){return e.replaceAll(/[_-]/g," ").replace(/\.[^/.]+$/,"")},this.initFileUploadEventListener=function(){n._element.querySelector("#damage-report-upload-image-input").addEventListener("change",(function(e){return Ev(n,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s,c,l,u=this;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this._spinner.hidden=!1,this.hideFileLimitExceededError("all"),n=e.target,r=Array.from(n.files),a=this.imageList.currentTotalFileSizeBytes,i=!1,o=ht().mark((function e(){var t,r,o;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l[c],!i){e.next=3;break}return e.abrupt("return",0);case 3:return r=u.createImageDisplayName(t.name),(o=new FileReader).addEventListener("load",(function(){u.addDamageReportImageFile(o.result,t.size,t.name,r),u.updateImageListDisplay(),n.value=""}),!1),e.next=8,u.isValidFile(t);case 8:if(e.sent){e.next=12;break}return n.value="",u.showDamageReportImageFileErrors("unacceptedtype"),e.abrupt("return",1);case 12:if(!(a+t.size>u.totalFileSizeBytesLimit)){e.next=17;break}return i=!0,n.value="",u.showDamageReportImageFileErrors("exceededtotal"),e.abrupt("return",0);case 17:if(a+=t.size,!(t.size>u.fileSizeLimit)){e.next=22;break}return n.value="",u.showDamageReportImageFileErrors("exceededsingle"),e.abrupt("return",1);case 22:o.readAsDataURL(t);case 23:case"end":return e.stop()}}),e)})),c=0,l=r;case 8:if(!(c<l.length)){t.next=18;break}return t.delegateYield(o(),"t0",10);case 10:if(0!==(s=t.t0)){t.next=13;break}return t.abrupt("break",18);case 13:if(1!==s){t.next=15;break}return t.abrupt("continue",15);case 15:c++,t.next=8;break;case 18:this._spinner.hidden=!0;case 19:case"end":return t.stop()}}),t,this)})))}))},this.initImageRemoveEventListener=function(){n._element.querySelector(".damage-report__step-1-image-upload-image-container").addEventListener("click",(function(e){var t=e.target;t.classList.contains("damage-report__step-1-image-upload-remove-image-button")&&n.removeDamageReportImageFile(Number(t.dataset.index))}))},this.updateImageListDisplay=function(){var e=n._element.querySelector(".damage-report__step-1-image-upload-image-container");
6e.innerHTML="",n.imageList.DamageReportImageFiles.forEach((function(t){e.insertAdjacentElement("afterbegin",n.createImageElement(t,n.imageList.DamageReportImageFiles.indexOf(t)))})),n._spinner.hidden=!0},this.createImageElement=function(e,t){var n=Granite.I18n.get("apps.amag-ch.components.content.damageReport.general.remove.label"),r=document.createElement("div");r.classList.add("damage-report__step-1-image-upload-image-wrapper"),r.id="damage-report-image-".concat(t+1);var a=document.createElement("img");a.classList.add("damage-report__step-1-image-upload-image"),a.src=e.file,a.alt=e.displayName,a.loading="eager";var i=document.createElement("button");return i.classList.add("damage-report__step-1-image-upload-remove-image-button"),i.textContent=n,i.dataset.index="".concat(t),r.appendChild(a),r.appendChild(i),r},this.updateTotalFileSize=function(){var e=0;n.imageList.DamageReportImageFiles.forEach((function(t){e+=t.sizeBytes})),n.imageList.currentTotalFileSizeBytes=e},this.addDamageReportImageFile=function(e,t,r,a){var i={name:r,displayName:a,file:e,sizeBytes:t};n.imageList.DamageReportImageFiles.push(i),n.updateTotalFileSize()},this.removeDamageReportImageFile=function(e){var t=n.imageList.DamageReportImageFiles.length-1;n.hideFileLimitExceededError("all"),e<0||e>t||(n.imageList.DamageReportImageFiles=0===e?n.imageList.DamageReportImageFiles.slice(1):e===t?n.imageList.DamageReportImageFiles.slice(0,t):[].concat((0,ut.A)(n.imageList.DamageReportImageFiles.slice(0,e)),(0,ut.A)(n.imageList.DamageReportImageFiles.slice(e+1,t+1))),n.updateTotalFileSize(),n.updateImageListDisplay())},this.initNavigationEventListeners=function(){var e=n._element.querySelector("#step1b-backward"),t=n._element.querySelector("#step1b-forward");e.addEventListener("click",(function(){n._viewController.changeView(xm.STEP_1A),n._googleAnalyticsService.backEvent("step 2 - photo upload",e.textContent.trim())})),t.addEventListener("click",(function(){var e={document:[]},t=n._element.querySelector(".damage-report__open-info-canvas-button"),r="",a="";t&&(r=t.querySelector(".label").textContent,a="true"===t.dataset.isClicked?r:""),n._storage.setImageList(n.imageList),n._googleAnalyticsService.step2PhotoUploadEvent(n.imageList.DamageReportImageFiles.length,a);var i=/data:image\/[^;]+;base64,/;n.imageList.DamageReportImageFiles.forEach((function(t){var n={code:"60",useInReport:1,name:t.name,text:t.displayName,binary:t.file.replace(i,"")};e.document.push(n)})),n._storage.setEC2Documents(e),n._viewController.changeView(xm.STEP_1C)}))},this.init()}),[{key:"init",value:function(){this.initFileUploadEventListener(),this.initImageRemoveEventListener(),this.initNavigationEventListeners(),this.listenToStates()}},{key:"isValidFile",value:function(e){return Ev(this,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={jpg:"ff d8 ff",jpeg:"ff d8 ff",png:"89 50 4e 47 0d 0a 1a 0a",gif:"47 49 46 38"},r={jpg:3,jpeg:3,png:8,gif:4},a={jpeg:"image/jpeg",jpg:"image/jpg",png:"image/png",gif:"image/gif"},i=this.getExtension(e.type),o=e.type,t.next=7,this.getMagicNumbers(e,r[i]);case 7:if(s=t.sent,a[i]!==o||!s.startsWith(n[i])){t.next=12;break}return t.abrupt("return",!0);case 12:return t.abrupt("return",!1);case 13:case"end":return t.stop()}}),t,this)})))}},{key:"getMagicNumbers",value:function(e,t){return new Promise((function(n,r){var a=new FileReader;a.onloadend=function(e){var r=a.result,i=new Uint8Array(r,0,t),o=Array.from(i).map((function(e){return e.toString(16).padStart(2,"0")})).join(" ");n(o)},a.onerror=r,a.readAsArrayBuffer(e.slice(0,t))}))}}])}();xv=Sv([(0,At.d)({selector:".damage-report__step-1-image-upload",onDomLoaded:!0}),Cv("design:paramtypes",[HTMLElement])],xv);var Av,kv,Tv=__webpack_require__(74692),Lv=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Iv=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Dv=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this._element=t,this.viewController=new rv,this._stateService=new Jm,this._googleAnalyticsService=new ev,this.init()}),[{key:"init",value:function(){this.setEventListener()}},{key:"setEventListener",value:function(){var e=this,t=document.querySelector("body"),n=this._element.querySelector(Lm.BTN_BACK);this._element.querySelector(Lm.BTN_LOGIN).addEventListener("click",(function(){Tv("#cdcModal").modal("show"),e._googleAnalyticsService.step4UserLoginChoiceEvent("Bei AMAG anmelden")})),this._element.querySelector(Lm.BTN_FORWARD).addEventListener("click",(function(){e.viewController.changeView(xm.STEP_1E),e._googleAnalyticsService.step4UserLoginChoiceEvent("Weiter ohne Anmeldung")})),n.addEventListener("click",(function(){e.viewController.changeView(xm.STEP_1C),e._googleAnalyticsService.backEvent("step 4 - personal data",n.textContent.trim())})),t.addEventListener("amagUserLogin",(function(){localStorage.getItem("amaguser")&&(Tv("#cdcModal").modal("hide"),Lr(),e._stateService.emit(km.REFRESH,null),e.viewController.changeView(xm.STEP_1E))}))}}])}();Dv=Lv([(0,At.d)({selector:".damage-report__step-1d",onDomLoaded:!0}),Iv("design:paramtypes",[HTMLElement])],Dv),function(e){e[e.NEW_STANDARD=0]="NEW_STANDARD",e[e.NEW_BLUE_PORTAL_AMAG=1]="NEW_BLUE_PORTAL_AMAG",e[e.NEW_YELLOW_PORTAL_GARAGE=2]="NEW_YELLOW_PORTAL_GARAGE"}(Av||(Av={})),function(e){e[e.ARBEITSSTAND_1=11]="ARBEITSSTAND_1",e[e.ARBEITSSTAND_2=12]="ARBEITSSTAND_2",e[e.ARBEITSSTAND_3=13]="ARBEITSSTAND_3",e[e.ARBEITSSTAND_4=14]="ARBEITSSTAND_4",e[e.ARBEITSSTAND_5=15]="ARBEITSSTAND_5",e[e.ARBEITSSTAND_6=16]="ARBEITSSTAND_6",e[e.ARBEITSSTAND_7=17]="ARBEITSSTAND_7",e[e.ARBEITSSTAND_8=18]="ARBEITSSTAND_8",e[e.ARBEITSSTAND_9=19]="ARBEITSSTAND_9"}(kv||(kv={}));var Pv=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Ov=(0,ft.A)((function e(){var t=this;(0,pt.A)(this,e),this._storage=new uv,this.createEC2CaseObject=function(e,n,r,a){var i,o={caseType:e,caseStatus:Av.NEW_BLUE_PORTAL_AMAG,caseExpertId:r,caseRepairerId:n};a&&(o.caseClientId=a);t._storage.getGaragesData().garage.isDriveIn;
6var s=null===(i=t._storage.getImageList())||void 0===i?void 0:i.DamageReportImageFiles;null==s||s.length;return o},this.getCaseType=function(e){switch(e){case Am.HAIL_DAMAGE:return 58;case Am.COLLISION_DAMAGE:case Am.PARKED_DAMAGE:return 50;case Am.GLASS_DAMAGE:return 55}}}));Ov=Pv([nn.K],Ov);var Rv=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Mv=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this._damageReportContainer=document.querySelector(".damage-report"),this._allContentHailDamage=this._damageReportContainer.querySelectorAll(".damage-type-hail"),this._allContentCollisionDamage=this._damageReportContainer.querySelectorAll(".damage-type-collision"),this._allContentParkedDamage=this._damageReportContainer.querySelectorAll(".damage-type-parked"),this._allContentGlassDamage=this._damageReportContainer.querySelectorAll(".damage-type-glass")}),[{key:"deactivateInfoCanvasContentsAllDamageTypes",value:function(){this._allContentHailDamage.forEach((function(e){e.classList.add("d-none")})),this._allContentCollisionDamage.forEach((function(e){e.classList.add("d-none")})),this._allContentParkedDamage.forEach((function(e){e.classList.add("d-none")})),this._allContentGlassDamage.forEach((function(e){e.classList.add("d-none")}))}},{key:"activateInfoCanvasContentsHailDamage",value:function(){this.deactivateInfoCanvasContentsAllDamageTypes(),this._allContentHailDamage.forEach((function(e){e.classList.remove("d-none")}))}},{key:"activateInfoCanvasContentsCollisionDamage",value:function(){this.deactivateInfoCanvasContentsAllDamageTypes(),this._allContentCollisionDamage.forEach((function(e){e.classList.remove("d-none")}))}},{key:"activateInfoCanvasContentsParkedDamage",value:function(){this.deactivateInfoCanvasContentsAllDamageTypes(),this._allContentParkedDamage.forEach((function(e){e.classList.remove("d-none")}))}},{key:"activateInfoCanvasContentsGlassDamage",value:function(){this.deactivateInfoCanvasContentsAllDamageTypes(),this._allContentGlassDamage.forEach((function(e){e.classList.remove("d-none")}))}}])}();Mv=Rv([nn.K],Mv);var qv=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Nv=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Vv=(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this._viewStateService=new Jm,this._viewController=new rv,this._offCanvasService=new Mv,this._storage=new uv,this._ec2Service=new Ov,this._googleAnalyticsService=new ev,this._spinner=new hc("step1aSpinner"),this._hailDamageButton=this._element.querySelector("#".concat(Am.HAIL_DAMAGE)),this._collisionDamageButton=this._element.querySelector("#".concat(Am.COLLISION_DAMAGE)),this._parkedDamageButton=this._element.querySelector("#".concat(Am.PARKED_DAMAGE)),this._glassDamageButton=this._element.querySelector("#".concat(Am.GLASS_DAMAGE)),this._mechanicDamageButton=this._element.querySelector("#".concat(Am.MECHANIC_DAMAGE)),this._listOfButtons=Array.from(this._element.querySelectorAll(".damage-report__step-1A-card")),this._backButton=this._element.querySelector("#step1aBackwardButton"),this._dataLayer=window.dataLayer,this.init=function(){n.setEventListeners(),n.checkUrlExtension()},this.setEventListeners=function(){var e=n._element.querySelector(".damage-report__open-info-canvas-button"),t=e.querySelector(".label").textContent;n._hailDamageButton.addEventListener("click",(function(){n._viewStateService.emit(km.CHOSEN_DAMAGE_CATEGORY,{name:Am.HAIL_DAMAGE,headline:n._hailDamageButton.getAttribute("data-headline")}),n._offCanvasService.activateInfoCanvasContentsHailDamage(),n._googleAnalyticsService.step1StartDamageClaimTypeEvent("true"===e.dataset.isClicked?t:"",n._hailDamageButton.getAttribute("aria-label"))})),n._collisionDamageButton.addEventListener("click",(function(){n._viewStateService.emit(km.CHOSEN_DAMAGE_CATEGORY,{name:Am.COLLISION_DAMAGE,headline:n._collisionDamageButton.getAttribute("data-headline")}),n._offCanvasService.activateInfoCanvasContentsCollisionDamage(),n._googleAnalyticsService.step1StartDamageClaimTypeEvent("true"===e.dataset.isClicked?t:"",n._collisionDamageButton.getAttribute("aria-label"))})),n._parkedDamageButton.addEventListener("click",(function(){n._viewStateService.emit(km.CHOSEN_DAMAGE_CATEGORY,{name:Am.PARKED_DAMAGE,headline:n._parkedDamageButton.getAttribute("data-headline")}),n._offCanvasService.activateInfoCanvasContentsParkedDamage(),n._googleAnalyticsService.step1StartDamageClaimTypeEvent("true"===e.dataset.isClicked?t:"",n._parkedDamageButton.getAttribute("aria-label"))})),n._glassDamageButton.addEventListener("click",(function(){n._viewStateService.emit(km.CHOSEN_DAMAGE_CATEGORY,{name:Am.GLASS_DAMAGE,headline:n._glassDamageButton.getAttribute("data-headline")}),n._offCanvasService.activateInfoCanvasContentsGlassDamage(),n._googleAnalyticsService.step1StartDamageClaimTypeEvent("true"===e.dataset.isClicked?t:"",n._glassDamageButton.getAttribute("aria-label"))})),n._mechanicDamageButton.addEventListener("click",(function(){window.location.href="".concat(n._element.getAttribute("data-otvlink"))})),n._listOfButtons.forEach((function(e){return e.id.includes(Am.MECHANIC_DAMAGE)?null:e.addEventListener("click",n.changeView)})),n._backButton.addEventListener("click",(function(){n._googleAnalyticsService.backEvent("step 1 - start - damage claim type",n._backButton.textContent.trim()),window.location.href="".concat(n._element.getAttribute("data-backurl"))})),n._viewStateService.on(km.CHOSEN_DAMAGE_CATEGORY,(function(e){var t=n._ec2Service.getCaseType(e.name);n._storage.setCaseType(t)})),n._viewStateService.on(km.STEP_LOADED,(function(){n._spinner.hide()}))},this.changeView=function(){n._viewController.changeView(xm.STEP_1B)},this.checkUrlExtension=function(){var e=window.location.href.split("."),t=e[e.length-2],r=n._listOfButtons.find((function(e){return e.getAttribute("data-extension")===t}));r&&r.click()},this.init()}));function Fv(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Bv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bv(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Bv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Vv=qv([(0,At.d)({selector:".damage-report__step-1A",onDomLoaded:!0}),Nv("design:paramtypes",[HTMLElement])],Vv);var jv,Hv=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Gv=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Uv=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Wv=jv=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this._stateService=new Jm,this._googleAnalyticsService=new ev,this._viewController=new rv,this._OffCanvasService=new sn,this._storage=new uv,this.validationService=new ov,this.formCreate=this._element.querySelector(Rm.CREATE_VEHICLE),this.formSelect=this._element.querySelector(Rm.SELECT_VEHICLE),this.formAdd=document.querySelector(Rm.ADD_VEHICLE),this._spinner=this._element.querySelector(Rm.SPINNER),this.loggedInContainer=this._element.querySelector(".damage-report__step-2-screen-loggedIn"),this.backBtn=this._element.querySelector("#step2-backward"),this.forwardBtn=this._element.querySelector("#step2-forward"),this.addEventListeners=function(){n.initVehicleSelectEventListener(),n.initOffCanvasButtonEventListener(),n.initNavigationEventListeners(),n.initAboLeasingCheckboxListener(),n._stateService.on(km.REFRESH,(function(){return n.loadVehicleObjects()}))},this.loadVehicleObjects=function(){n.checkUserLoggedin(),n.fillingDropdowns()},this.checkUserStatus=function(e){"FAIL"!==e.status?n.initVehicleList():console.log("FEHLER CDC")},this.initVehicleList=function(){return Uv(n,void 0,void 0,ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Zo.getData(!1,"userVehicleList");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return");case 5:this.allUserVehicles=t,this.updateVehicleListDisplay();case 7:case"end":return e.stop()}}),e,this)})))},this.updateVehicleListDisplay=function(){return Uv(n,void 0,void 0,ht().mark((function e(){var t,n,r,a,i=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t=this._element.querySelector(".damage-report__step-2-vehicle-container")).innerHTML="",this._spinner.hidden=!1,n=document.createDocumentFragment(),this.allUserVehicles.forEach((function(e){n.appendChild(i.createVehicleElement(e))})),this._spinner.hidden=!0,t.appendChild(n),!JSON.parse(localStorage.getItem(bt.H.AMAG_APP_VEHICLE))){e.next=13;break}return e.next=11,Yi();case 11:(r=e.sent)&&(a=this.createVehicleElement(r),t.prepend(a),a.click());case 13:case"end":return e.stop()}}),e,this)})))},this.continueWhileLoggedIn=function(){var e=!1;n.removeFormSelectInvalidMarking();var t=n.formSelect.querySelectorAll(Nm.RADIOBUTTON);if(t.length){var r,a="",i="",o="",s="",c="",l="",u=0,d="",h=Fv(t);try{for(h.s();!(r=h.n()).done;){var p=r.value;if(p.checked){var f=+p.getAttribute("data-mileage"),m=p.getAttribute("id").replace("id-","");a=p.getAttribute("data-brandname"),i=p.getAttribute("data-brandcode"),o=p.getAttribute("data-modelname"),s=p.getAttribute("data-vin"),c=p.getAttribute("data-licenseplate"),l=p.getAttribute("data-registrationdate"),u=f,d=s?"":m,e=!0;break}}}catch(e){h.e(e)}finally{h.f()}if(e){var v={vehicleUID:"",brandName:a,makeCode:i,modelName:o,modelCode:o,vin:s,licensePlate:c,registrationDate:l,mileage:u,leasingVehicle:n.formSelect.querySelector(Nm.LEASING).checked,aboVehicle:n.formSelect.querySelector(Nm.ABO).checked,temporaryId:d};n.removeFormSelectInvalidMarking(),n.storeAndChangeView(v)}else n.markFormSelectInvalid()}else n.markFormSelectInvalid()},this.markFormSelectInvalid=function(){n.formSelect.classList.add("invalid"),n.formSelect.querySelector(".validation-selected-vehicle").classList.remove("d-none"),n.formSelect.scrollIntoView()},this.removeFormSelectInvalidMarking=function(){n.formSelect.classList.remove("invalid"),n.formSelect.querySelector(".validation-selected-vehicle").classList.add("d-none")},this.continueWhileLoggedOut=function(){var e=n.validationService.validateStep2Vehicle(n.formCreate),t=!0;if(n.removeFormCreateAllFieldsInvalidMarkings(),e.get(Mm.BRAND)||(t=!1,n.formCreate.querySelector(Mm.BRAND).classList.add("invalid--required")),e.get(Mm.MODEL)||(t=!1,n.formCreate.querySelector(Mm.MODEL).classList.add("invalid--required")),e.get(Mm.LICENSE_PLATE)||
6(t=!1,n.formCreate.querySelector(Mm.LICENSE_PLATE).closest(".form-field").classList.add("invalid--required")),e.get(Mm.VIN)||(t=!1,n.formCreate.querySelector(Mm.VIN).closest(".form-field").classList.add("invalid--required")),e.get(Mm.DATE_RESULT)||(t=!1,n.formCreate.classList.add("invalidDate"),n.formCreate.querySelector(qm.DATE_CONTAINER).classList.add("invalid--required")),""!==n.formCreate.querySelector(qm.MILEAGE).value){var r=+n.formCreate.querySelector(qm.MILEAGE).value;(r<0||0===r)&&(t=!1,n.formCreate.querySelector(qm.MILEAGE).closest(".form-field").classList.add("invalid--required"))}if(t){var a=n.formCreate.querySelector(Mm.DAY),i=n.formCreate.querySelector(Mm.MONTH),o=n.formCreate.querySelector(Mm.YEAR),s="".concat(o.value,"-",i.value,"-",a.value,"T00:00:00"),c=Math.random().toString(16).slice(2),l={vehicleUID:"",brandName:n.formCreate.querySelector(Mm.BRAND).value.trim(),makeCode:n.formCreate.querySelector(Mm.BRAND).value,modelName:n.formCreate.querySelector(Mm.MODEL).value,modelCode:n.formCreate.querySelector(Mm.MODEL).value,vin:n.formCreate.querySelector(Mm.VIN).value,licensePlate:n.formCreate.querySelector(Mm.LICENSE_PLATE).value,registrationDate:s,mileage:+n.formCreate.querySelector(Mm.MILEAGE).value,leasingVehicle:n.formCreate.querySelector(Mm.LEASING).checked,aboVehicle:n.formCreate.querySelector(Mm.ABO).checked,temporaryId:c};n.storeAndChangeView(l)}else n.markFormCreateInvalid()},this.markFormCreateInvalid=function(){n.formCreate.classList.add("invalid"),jv.scrollToFirstInvalidControl(n.formCreate),window.scrollBy(0,-240)},this.removeFormCreateAllFieldsInvalidMarkings=function(){n.formCreate.classList.remove("invalid");var e,t=Fv(n.formCreate.querySelectorAll(".form-field"));try{for(t.s();!(e=t.n()).done;){e.value.classList.remove("invalid--required")}}catch(e){t.e(e)}finally{t.f()}n.formCreate.querySelector(Mm.BRAND).classList.remove("invalid--required"),n.formCreate.querySelector(Mm.MODEL).classList.remove("invalid--required"),n.formCreate.classList.remove("invalidDate"),n.formCreate.querySelector(qm.DATE_CONTAINER).classList.remove("invalid--required")},this.storeAndChangeView=function(e){n._storage.setVehicleData(e);var t=new Date(e.registrationDate),r={vehicleMake:e.makeCode,vehicleModel:e.modelName,vehiclePlate:e.licensePlate,vehicleChassis:e.vin,vehicleKm:e.mileage,vehicleFirstUse:isNaN(t.getTime())?"":t.toLocaleDateString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"}),vehicleLeasing:!0===e.leasingVehicle?1:0,vehicleSubscription:!0===e.aboVehicle?1:0};n._storage.setEC2Vehicle(r),n._viewController.changeView(xm.STEP_3A);var a="";!0===e.leasingVehicle?a="leasing fahrzeug":!0===e.aboVehicle&&(a="abo fahrzeug"),n._googleAnalyticsService.step6RecordVehicleData(n.forwardBtn.textContent.trim(),e.brandName,e.modelName,a)},this.initAboLeasingCheckboxListener=function(){var e=n._element.querySelectorAll("input[type=checkbox]"),t=n._element.querySelector(Nm.ABO),r=n._element.querySelector(Nm.LEASING),a=n._element.querySelector(qm.ABO),i=n._element.querySelector(qm.LEASING),o=Nm.ABO.replace("#",""),s=Nm.LEASING.replace("#",""),c=qm.ABO.replace("#",""),l=qm.LEASING.replace("#","");e.forEach((function(e){e.addEventListener("change",(function(e){var n=e.currentTarget;n.checked&&(n.id===o?(r.checked=!1,a.checked=!1,i.checked=!1):n.id===s?(t.checked=!1,a.checked=!1,i.checked=!1):n.id===c?(t.checked=!1,r.checked=!1,i.checked=!1):n.id===l&&(t.checked=!1,r.checked=!1,a.checked=!1))}))}))},this.init()}),[{key:"init",value:function(){this.loadVehicleObjects(),this.addEventListeners()}},{key:"checkUserLoggedin",value:function(){var e=this._element.querySelector(".damage-report__step-2-screen-loggedIn"),t=this._element.querySelector(".damage-report__step-2-screen-loggedOut"),n=localStorage.amaguser?JSON.parse(localStorage.amaguser):null;e.classList.add("d-none"),t.classList.add("d-none"),n?(e.classList.remove("d-none"),Dr(this.checkUserStatus)):t.classList.remove("d-none")}},{key:"fillingDropdowns",value:function(){return Uv(this,void 0,void 0,ht().mark((function e(){var t,n,r,a,i,o,s,c,l,u,d,h,p,f,m=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this._element.querySelector("#createVehicleForm #cBrandDropdown"),n=this._element.querySelector("#createVehicleForm #cModelDropdown"),r=document.querySelector("#addVehicleForm #nBrandDropdown"),a=document.querySelector("#addVehicleForm #nModelDropdown"),i=this._element.querySelector("#createVehicleForm #cDayDropdown"),o=this._element.querySelector("#createVehicleForm #cMonthDropdown"),s=this._element.querySelector("#createVehicleForm #cYearDropdown"),c=document.querySelector("#addVehicleForm #nDayDropdown"),l=d
6ocument.querySelector("#addVehicleForm #nMonthDropdown"),u=document.querySelector("#addVehicleForm #nYearDropdown"),Kd[0].text=Granite.I18n.get("apps.amag-ch.components.project.global.dropdown.day.label"),Vr(i,Kd,null,null),Vr(c,Kd,null,null),Xd[0].text=Granite.I18n.get("apps.amag-ch.components.project.global.dropdown.month.label"),Vr(o,Xd,null,null),Vr(l,Xd,null,null),d=new Date,(h=[]).push({id:"",text:Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistrationYear")}),p=d.getFullYear();p>=1900;p--)h.push({id:p,text:p});return Vr(s,h,null,null),Vr(u,h,null,null),e.next=24,Ui.getBrandListForDdl("");case 24:f=e.sent,Vr(t,f,null,null),Vr(r,f,null,null),Vr(n,[{id:"",text:""}],null,null),Vr(a,[{id:"",text:""}],null,null),t.onchange=function(){m.fillingModelsDropdown(t,"create")},r.onchange=function(){m.fillingModelsDropdown(r,"new")};case 31:case"end":return e.stop()}}),e,this)})))}},{key:"initVehicleSelectEventListener",value:function(){var e=this,t=this._element.querySelector(".damage-report__step-2-vehicle-container"),n=function(t){var n=t.target;n.classList.contains("damage-report__step-2-vehicle-label")&&(e._element.querySelectorAll(".damage-report__step-2-vehicle-label").forEach((function(e){e.classList.remove("is-active"),e.querySelector("input").checked=!1})),n.classList.add("is-active"),n.querySelector("input").checked=!0)};t.removeEventListener("click",n),t.addEventListener("click",(function(e){return n(e)}))}},{key:"createVehicleElement",value:function(e){var t,n,r=this._storage.getVehicleData(),a="",i=!1;r&&(r.vin?a=r.vin:r.temporaryId&&(a=r.temporaryId),a===(e.vin||e.temporaryId)&&(i=!0));var o=Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.licensePlate"),s=Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.initialRegistration"),c=Granite.I18n.get("apps.amag-ch.components.content.otv.carDataInputPane.carSerialNumber.fieldLabel"),l=e.vehicleUID||e.vin||e.temporaryId||Math.random().toString(16).slice(2),u="id-".concat(l),d=new Date(e.registrationDate).toLocaleDateString("de-CH");"Invalid Date"===d&&(d=" ");var h=null!==(n=null===(t=e.mileage)||void 0===t?void 0:t.toString())&&void 0!==n?n:"",p=document.createElement("label");p.classList.add("damage-report__radio-label"),p.classList.add("damage-report__step-2-vehicle-label"),i&&p.classList.add("is-active"),p.htmlFor=u;var f=document.createElement("input");i&&(f.checked=!0),f.classList.add("damage-report__radio-input"),f.classList.add("damage-report__step-2-vehicle-input"),f.id=u,f.name="addVehicle.vehicleUID",f.value=e.vehicleUID,f.type="radio",f.dataset.brandname=e.brandName,f.dataset.brandcode=e.makeCode,f.dataset.modelname=e.modelCode,f.dataset.vin=e.vin,f.dataset.vehicleuid=e.vehicleUID,f.dataset.registrationdate=d,f.dataset.licenseplate=e.licensePlate,f.dataset.mileage=h;var m=document.createElement("span");m.classList.add("damage-report__radio-content"),m.classList.add("damage-report__step-2-vehicle-info");var v=document.createElement("span");v.classList.add("damage-report__step-2-vehicle-name"),v.innerText="".concat(e.brandName," ").concat(e.modelName);var g=document.createElement("span");g.classList.add("damage-report__step-2-vehicle-license-plate"),g.innerText="".concat(o,": ").concat(e.licensePlate);var y=document.createElement("span");y.classList.add("damage-report__step-2-vehicle-initial-registration"),y.innerText="".concat(s,": ").concat(d);var _=document.createElement("span");return _.classList.add("damage-report__step-2-vehicle-chassis-number"),_.innerText="".concat(c,": ").concat(e.vin),p.appendChild(f),p.appendChild(m),m.appendChild(v),m.appendChild(g),m.appendChild(y),m.appendChild(_),p}},{key:"initOffCanvasButtonEventListener",value:function(){var e=this,t=this._element.querySelector(".damage-report__step-2-add-vehicle-button"),n=document.querySelector("#vehicleOffcanvas");t.addEventListener("click",(function(){e._OffCanvasService.showOffCanvasById("canvas_2_vehicle_selection")})),n.addEventListener("click",(function(t){t.preventDefault();var n=!0,r=e.validationService.validateStep2VehicleNew(e.formAdd);e.formAdd.classList.remove("invalid");var a,i=Fv(e.formAdd.querySelectorAll(".form-field"));try{for(i.s();!(a=i.n()).done;){a.value.classList.remove("invalid--required")}}catch(e){i.e(e)}finally{i.f()}if(e.formAdd.querySelector(qm.BRAND).classList.remove("invalid--required"),e.formAdd.querySelector(qm.MODEL).classList.remove("invalid--required"),e.formAdd.classList.remove("invalidDate"),r&&e.formAdd.classList.add("invalid"),r.get(qm.BRAND)||(n=!1,e.formAdd.querySelector(qm.BRAND).classList.add("invalid--required")),r.get(qm.MODEL)||(n=!1,e.formAdd.querySelector(qm.MODEL).classList.add("invalid--required")),r.get(qm.LICENSE_PLATE)||
6(n=!1,e.formAdd.querySelector(qm.LICENSE_PLATE).closest(".form-field").classList.add("invalid--required")),r.get(qm.VIN)||(n=!1,e.formAdd.querySelector(qm.VIN).closest(".form-field").classList.add("invalid--required")),r.get(qm.DATE_RESULT)||(n=!1,e.formAdd.classList.add("invalidDate")),""!==e.formAdd.querySelector(qm.MILEAGE).value){var o=+e.formAdd.querySelector(qm.MILEAGE).value;(o<0||0===o)&&(n=!1,e.formAdd.querySelector(qm.MILEAGE).closest(".form-field").classList.add("invalid--required"))}if(n){var s=+e.formAdd.querySelector(qm.MILEAGE).value,c=e.formAdd.querySelector(qm.DAY),l=e.formAdd.querySelector(qm.MONTH),u=e.formAdd.querySelector(qm.YEAR),d="".concat(u.value,"-",l.value,"-",c.value,"T00:00:00"),h={MAKE_CODE:e.formAdd.querySelector(qm.BRAND).value,MODEL_CODE:e.formAdd.querySelector(qm.MODEL).value,LIC_PLATE:e.formAdd.querySelector(qm.LICENSE_PLATE).value,REG_DATE_DAY:e.formAdd.querySelector(qm.DAY).value,REG_DATE_MONTH:e.formAdd.querySelector(qm.MONTH).value,REG_DATE_YEAR:e.formAdd.querySelector(qm.YEAR).value,REG_DATE:d,VIN:e.formAdd.querySelector(qm.VIN).value,MILEAGE:s,VEH_NO:"",VH_OBJ_TYPE:"",VH_OBJ_NUMBER:"",USERID:"",VHGUID:"",ZZVO_TITLE:"",ZZVO_NAME1:"",ZZVO_NAME2:"",ZZVO_TITLE_DESC:"",APPORIGIN:!1,CARADAPTERTIMESTAMP:null};jv.savingVehicle(h).then((function(){e.formAdd.reset();var t=e.formAdd.querySelector(qm.BRAND),n=e.formAdd.querySelector(qm.MODEL),r=e.formAdd.querySelector(qm.DAY),a=e.formAdd.querySelector(qm.MONTH),i=e.formAdd.querySelector(qm.YEAR);e.resetDropdown(t),e.resetDropdown(n),e.resetDropdown(r),e.resetDropdown(a),e.resetDropdown(i),Dr(e.checkUserStatus)}))}else jv.scrollToFirstInvalidControl(e.formAdd)}))}},{key:"resetDropdown",value:function(e){e.value="",e.dispatchEvent(new Event("select2:select")),e.dispatchEvent(new Event("change"))}},{key:"initNavigationEventListeners",value:function(){var e=this;this.backBtn.addEventListener("click",(function(){e._viewController.changeView(xm.STEP_1E),e._googleAnalyticsService.backEvent("step 6 - record vehicle data",e.backBtn.textContent.trim())})),this.forwardBtn.addEventListener("click",(function(){!e.loggedInContainer.classList.contains("d-none")?e.continueWhileLoggedIn():e.continueWhileLoggedOut()}))}},{key:"fillingModelsDropdown",value:function(e,t){return Uv(this,void 0,void 0,ht().mark((function n(){var r,a,i,o;return ht().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.value,a=this._element.querySelector("#createVehicleForm #cModelDropdown"),i=document.querySelector("#addVehicleForm #nModelDropdown"),""===r){n.next=8;break}return n.next=6,Pi.getModelsForBrandAsDdlOptions(r);case 6:o=n.sent,"create"===t?(Vr(a,o,null,null),a.closest("#selectModelDropdownWrapper").classList.remove("ddl-state--disabled")):(Vr(i,o,null,null),i.closest("#selectModelDropdownWrapper").classList.remove("ddl-state--disabled"));case 8:case"end":return n.stop()}}),n,this)})))}}],[{key:"savingVehicle",value:function(e){return Uv(this,void 0,void 0,ht().mark((function t(){var n;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,zi.construct(e);case 2:return n=t.sent,t.next=5,Zo.createVehicle(n);case 5:return document.querySelector("body").classList.remove("no-scroll"),document.querySelector(".off-canvas__canvas-box").classList.remove("is-shown"),document.querySelector(".off-canvas__backdrop").classList.add("d-none"),document.querySelector("#canvas_2_vehicle_selection").classList.add("d-none"),t.abrupt("return",n);case 10:case"end":return t.stop()}}),t)})))}},{key:"scrollToFirstInvalidControl",value:function(e){e.querySelector(".invalid--required").scrollIntoView()}}])}();Wv=jv=Hv([(0,At.d)({selector:".damage-report__step-2",onDomLoaded:!0}),Gv("design:paramtypes",[HTMLElement])],Wv);var zv=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},$v=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Yv=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this._element=t,this.viewController=new rv,this.customEventListener=new Jm,this._storage=new uv,this.googleAnalyticsService=new ev,this.validationService=new ov,this.noInput=this._element.querySelector(Fm.NO_INPUT),this.yesInput=this._element.querySelector("#".concat(Fm.YES_INPUT)),this.updateElementState=function(e,t){t.checked?e.classList.add("is-active"):e.classList.remove("is-active")},this.init()}),[{key:"init",value:function(){this.setEventListener()}},{key:"setEventListener",value:function(){var e=this,t=this._element.querySelectorAll(Fm.REPLACEMENT_TILE),n=this._element.querySelectorAll(Fm.SERVICE_TILE),r=this._element.querySelector(Fm.REPLACEMENT_WRAPPER),a=this._element.querySelector("#step3b-backward");t.forEach((function(t){t.addEventListener("click",(function(){var n=t.querySelector("input");n.checked||(n.id===Fm.YES_INPUT?(e.noInput.checked=!1,e.noInput.parentElement.classList.remove("is-active")):(e.yesInput.checked=!1,e.yesInput.parentElement.classList.remove("is-active")),t.classList.add("is-active"),n.checked=!0)}))}
6)),n.forEach((function(t){var n=t.querySelector("input");t.addEventListener("click",(function(r){r.target!==n&&(n.checked=!n.checked),e.updateElementState(t,n)})),n.addEventListener("click",(function(){e.updateElementState(t,n)}))})),a.addEventListener("click",(function(){e.viewController.changeView(xm.STEP_3A),e.googleAnalyticsService.backEvent("step 8 - service selection",a.textContent.trim())})),this._element.querySelector("#step3b-forward").addEventListener("click",(function(){var t=e.validationService.validateStep3b(r).get(Fm.REPLACEMENT_WRAPPER),a=[];if(t){r.classList.remove("is-invalid");var i=!0;e._element.querySelector(Fm.NO_INPUT).checked&&(i=!1),n.forEach((function(e){if(e.querySelector("input").checked){var t={headline:e.querySelector("label").textContent,content:e.querySelector("span").innerHTML};a.push(t)}}));var o={replacementCar:i,additionalServices:a};e._storage.setAdditionalServices(o),e.viewController.changeView(xm.STEP_4);var s=i?"".concat(Granite.I18n.get("apps.amag-ch.components.content.otv.booking.replacementCar"),"|"):"";a.forEach((function(e){s+="".concat(e.headline,"|")})),e.googleAnalyticsService.step8ServiceSelectionEvent(e._element.querySelector("#step3b-forward").textContent.trim(),s)}else r.classList.add("is-invalid"),r.scrollIntoView({behavior:"smooth",block:"center"})})),this.customEventListener.on(km.REFRESH,(function(e){r.classList.remove("is-invalid"),t.forEach((function(e){e.querySelector("input").checked=!1,e.classList.remove("is-active")})),n.forEach((function(e){e.querySelector("input").checked=!1,e.classList.remove("is-active")}))}))}}])}();function Zv(e,t,n){return t=(0,Ja.A)(t),(0,Xa.A)(e,Kv()?Reflect.construct(t,n||[],(0,Ja.A)(e).constructor):t.apply(e,n))}function Kv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kv=function(){return!!e})()}Yv=zv([(0,At.d)({selector:".damage-report__step-3-b",onDomLoaded:!0}),$v("design:paramtypes",[HTMLElement])],Yv);var Xv=function(e){function t(e){var n;return(0,pt.A)(this,t),(n=Zv(this,t,[e])).name="ClientError",n}return(0,Qa.A)(t,e),(0,ft.A)(t)}(jp(Error)),Jv=function(e){function t(e){var n;return(0,pt.A)(this,t),(n=Zv(this,t,[e])).name="ServerError",n}return(0,Qa.A)(t,e),(0,ft.A)(t)}(jp(Error)),Qv=function(e){function t(e){var n;return(0,pt.A)(this,t),(n=Zv(this,t,[e])).name="NetworkError",n}return(0,Qa.A)(t,e),(0,ft.A)(t)}(jp(Error)),eg=function(e){return e instanceof Xv?console.error("Caught a client error:",e.message):e instanceof Jv?console.error("Caught a server error:",e.message):e instanceof Qv?console.error("Caught a network error:",e.message):console.error("Caught an unexpected error:",e),Promise.resolve(e)},tg=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},ng=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},rg=(0,ft.A)((function e(){var t=this;(0,pt.A)(this,e),this._storage=new uv,this.createEC2AddRequest=function(e,n){return ng(t,void 0,void 0,ht().mark((function t(){var r,a,i,o,s,c,l;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,br.getJwtToken();case 2:if(t.t0=t.sent,t.t1=n,t.t2={ec2Method:"ec2CaseAdd",ec2ApiId:"#EC2APIID#",ec2ApiKey:"#EC2APIKEY#",ec2SendUploadLinkToMobile:"",case:e},i={CDC_TOKEN:t.t0,CAPTCHA_TOKEN:t.t1,ec2CaseAddRequest:t.t2},o=this._storage.getPolicyHolder(),s=o.prefix&&o.phone?o.prefix.replace("+","00")+o.phone.replace(/^0/,""):null,c=this._storage.getVehicleHolder(),l=c.prefix&&c.phone?(null===(r=c.prefix)||void 0===r?void 0:r.replace("+","00"))+(null===(a=c.phone)||void 0===a?void 0:a.replace(/^0/,"")):null,s||l){t.next=12;break}return t.abrupt("return",i);
6case 12:return i.ec2CaseAddRequest.ec2SendUploadLinkToMobile=s||l,t.abrupt("return",i);case 14:case"end":return t.stop()}}),t,this)})))},this.createEC2CaseImportRequestWithoutImages=function(e,n,r,a,i,o,s,c,l,u){return ng(t,void 0,void 0,ht().mark((function t(){var d;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d={document:[]},t.next=3,br.getJwtToken();case 3:return t.t0=t.sent,t.t1={ec2Method:"ec2CaseImport",ec2ApiId:"#EC2APIID#",ec2ApiKey:"#EC2APIKEY#",ec2Id:e,case:n,insurance:r,visit:o,vehicle:a,report:s,policyHolder:i,aggrievedPerson:c,handling:l,documents:d,invoice:u},t.abrupt("return",{CDC_TOKEN:t.t0,ec2CaseImportRequest:t.t1});case 6:case"end":return t.stop()}}),t)})))},this.createEC2CaseImportRequestOnlyImages=function(e,n){return ng(t,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,br.getJwtToken();case 2:return t.t0=t.sent,t.t1={ec2Method:"ec2CaseImport",ec2ApiId:"#EC2APIID#",ec2ApiKey:"#EC2APIKEY#",ec2Id:e,documents:n},t.abrupt("return",{CDC_TOKEN:t.t0,ec2CaseImportRequest:t.t1});case 5:case"end":return t.stop()}}),t)})))},this.createEC2CaseObjectForImport=function(e,t,n,r){return{caseType:e,caseClientId:t,caseExpertId:n,caseRepairerId:r}},this.createEC2InsuranceObjectForImport=function(e,t){return{insuranceDamageDate:new Date(e).toLocaleDateString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"}),insuranceRemarksInternal:t}},this.createEC2VehicleObjectForImport=function(e,t,n,r,a,i,o,s){return{vehicleMake:e,vehicleModel:t,vehiclePlate:n,vehicleChassis:r,vehicleKm:a,vehicleFirstUse:i.toLocaleDateString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"}),vehicleLeasing:o?1:0,vehicleSubscription:s?1:0}},this.createPolicyHolderObjectForImport=function(e,t,n,r,a){return{policyHolderTitle:e,policyHolderLastName:t,policyHolderPhoneM:n,policyHolderEmail:r,policyHolderLanguage:(0,it.Xo)(),policyHolderRemarksInternal:a}},this.createEC2InnerDocumentObjectForImport=function(e,t){if(!(0,it.Q2)(t))throw new Error("The binary data is not a valid base64 string");return{code:"60",name:e,useInReport:1,binary:t.replace("data:application/pdf;base64,","")}},this.createEC2DocumentForImport=function(e){return{document:e}},this.createEC2CaseUpdateStatusRequest=function(e){return ng(t,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,br.getJwtToken();case 2:return t.t0=t.sent,t.t1={ec2Method:"ec2CaseUpdateStatus",ec2ApiId:"#EC2APIID#",ec2ApiKey:"#EC2APIKEY#",ec2Id:e,ec2NewStatus:kv.ARBEITSSTAND_1},t.abrupt("return",{CDC_TOKEN:t.t0,ec2CaseUpdateStatusRequest:t.t1});case 5:case"end":return t.stop()}}),t)})))},this.createEC2MessageRequest=function(e,n,r,a){return ng(t,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,br.getJwtToken();case 2:return t.t0=t.sent,t.t1={ec2Method:"ec2MessageSend",ec2ApiId:"#EC2APIID#",ec2ApiKey:"#EC2APIKEY#",ec2Id:e,ec2MessageToId:"",ec2MessageToRole:n,ec2MessageSubject:r,ec2MessageText:a},t.abrupt("return",{CDC_TOKEN:t.t0,ec2MessageSendRequest:t.t1});case 5:case"end":return t.stop()}}),t)})))},this.createEC2ExportRequest=function(e){return ng(t,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,br.getJwtToken();case 2:return t.t0=t.sent,t.t1={ec2Method:"ec2CaseExport",ec2ApiId:"#EC2APIID#",ec2ApiKey:"#EC2APIKEY#",ec2Id:e,ec2ExportData:"All",ec2ExportDocuments:"Photos",ec2ExportDocumentBinary:!0},t.abrupt("return",{CDC_TOKEN:t.t0,ec2CaseExportRequest:t.t1});case 5:case"end":return t.stop()}}),t)})))},this.createEC2CaseListRequest=function(e,n){return ng(t,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,br.getJwtToken();case 2:return t.t0=t.sent,t.t1={ec2Method:"ec2CaseList",ec2ApiId:"#EC2APIID#",ec2ApiKey:"#EC2APIKEY#",ec2FilterDateFrom:e,ec2FilterDateTo:n},t.abrupt("return",{CDC_TOKEN:t.t0,ec2CaseListRequest:t.t1});case 5:case"end":return t.stop()}}),t)})))}}));rg=tg([nn.K],rg);var ag=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}
6,ig=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},og=(0,ft.A)((function e(){var t=this;(0,pt.A)(this,e),this._ec2ObjectCreationService=new Ov,this._ec2RequestCreationService=new rg,this._apiUrl="".concat(wr.getUrl(),"ec2Connector.json"),this.sendEC2CaseAddRequestWithCaseObject=function(e,n){return ig(t,void 0,void 0,ht().mark((function t(){var r;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ec2RequestCreationService.createEC2AddRequest(e,n);case 2:return r=t.sent,t.abrupt("return",this.sendEC2CaseAddRequest(r));case 4:case"end":return t.stop()}}),t,this)})))},this.sendEC2CaseAddRequest=function(e){return ig(t,void 0,void 0,ht().mark((function t(){var n;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(this._apiUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});case 3:return(n=t.sent).ok||this.handleErrorResponse(n),t.next=7,n.json();case 7:return t.abrupt("return",t.sent);case 10:return t.prev=10,t.t0=t.catch(0),t.abrupt("return",eg(t.t0));case 13:case"end":return t.stop()}}),t,this,[[0,10]])})))},this.updateDamageReportWithAdditionalData=function(e,n,r,a,i,o,s,c,l,u){return ig(t,void 0,void 0,ht().mark((function t(){var d,h;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ec2RequestCreationService.createEC2CaseImportRequestWithoutImages(e,n,r,a,i,o,s,c,l,u);case 2:return d=t.sent,t.prev=3,t.next=6,fetch(this._apiUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)});case 6:return(h=t.sent).ok||this.handleErrorResponse(h),t.next=10,h.json();case 10:return t.abrupt("return",t.sent);case 13:return t.prev=13,t.t0=t.catch(3),t.abrupt("return",eg(t.t0));case 16:case"end":return t.stop()}}),t,this,[[3,13]])})))},this.updateDamageReportWithOnlyImageData=function(e,n){return ig(t,void 0,void 0,ht().mark((function t(){var r,a;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ec2RequestCreationService.createEC2CaseImportRequestOnlyImages(e,n);case 2:return r=t.sent,t.prev=3,t.next=6,fetch(this._apiUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});case 6:return(a=t.sent).ok||this.handleErrorResponse(a),t.next=10,a.json();case 10:return t.abrupt("return",t.sent);case 13:return t.prev=13,t.t0=t.catch(3),t.abrupt("return",eg(t.t0));case 16:case"end":return t.stop()}}),t,this,[[3,13]])})))},this.updateDamageReportCaseStatus=function(e){return ig(t,void 0,void 0,ht().mark((function t(){var n,r;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ec2RequestCreationService.createEC2CaseUpdateStatusRequest(e);case 2:return n=t.sent,t.prev=3,t.next=6,fetch(this._apiUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});case 6:return(r=t.sent).ok||this.handleErrorResponse(r),t.next=10,r.json();case 10:return t.abrupt("return",t.sent);case 13:return t.prev=13,t.t0=t.catch(3),t.abrupt("return",eg(t.t0));case 16:case"end":return t.stop()}}),t,this,[[3,13]])})))},this.sendEC2Message=function(e,n,r,a){return ig(t,void 0,void 0,ht().mark((function t(){var i,o;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ec2RequestCreationService.createEC2MessageRequest(e,n,r,a);case 2:return i=t.sent,t.prev=3,t.next=6,fetch(this._apiUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});case 6:return(o=t.sent).ok||this.handleErrorResponse(o),t.next=10,o.json();case 10:return t.abrupt("return",t.sent);case 13:return t.prev=13,t.t0=t.catch(3),t.abrupt("return",eg(t.t0));case 16:case"end":return t.stop()}}),t,this,[[3,13]])})))},this.sendEc2ExportCaseRequest=function(e){return ig(t,void 0,void 0,ht().mark((function t(){var n,r;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ec2RequestCreationService.createEC2ExportRequest
6(e);case 2:return n=t.sent,t.prev=3,t.next=6,fetch(this._apiUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});case 6:return(r=t.sent).ok||this.handleErrorResponse(r),t.next=10,r.json();case 10:return t.abrupt("return",t.sent);case 13:return t.prev=13,t.t0=t.catch(3),t.abrupt("return",eg(t.t0));case 16:case"end":return t.stop()}}),t,this,[[3,13]])})))},this.sendDamageReportConfirmationMailRequest=function(e){return ig(t,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,yr.O)("amagch-send-damagereport-mail","json",JSON.stringify(e));case 3:return t.sent,t.abrupt("return",Promise.resolve());case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",eg(t.t0));case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))},this.getCaseList=function(e,n){return ig(t,void 0,void 0,ht().mark((function t(){var r,a;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ec2RequestCreationService.createEC2CaseListRequest(e,n);case 2:return r=t.sent,t.prev=3,t.next=6,fetch(this._apiUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});case 6:return(a=t.sent).ok||this.handleErrorResponse(a),t.next=10,a.json();case 10:return t.abrupt("return",t.sent);case 13:return t.prev=13,t.t0=t.catch(3),t.abrupt("return",eg(t.t0));case 16:case"end":return t.stop()}}),t,this,[[3,13]])})))},this.driveInPost=function(e){return ig(t,void 0,void 0,ht().mark((function t(){var n;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("".concat(wr.getUrl(),"getDriveIns.json"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});case 3:return(n=t.sent).ok||this.handleErrorResponse(n),t.next=7,n.json();case 7:return t.abrupt("return",t.sent);case 10:t.prev=10,t.t0=t.catch(0),eg(t.t0);case 13:case"end":return t.stop()}}),t,this,[[0,10]])})))},this.handleErrorResponse=function(e){throw e.status>=400&&e.status<500?new Xv("Client error: ".concat(e.status)):e.status>=500?new Jv("Server error: ".concat(e.status)):new Error("Unexpected error: ".concat(e.status))}}));og=ag([nn.K],og);var sg=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},cg=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},lg=(0,ft.A)((function e(){var t=this;(0,pt.A)(this,e),this.ec2ApiService=new og,this.getDriveInList=function(){return cg(t,void 0,void 0,ht().mark((function e(){var t,n,r;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={header:{action:"drivein_list",apiid:"#EC2APIID#",apikey:"#EC2APIKEY#"},appointment:{},lane:{},drivein:{},customer:{},vehicle:{}},e.next=3,this.ec2ApiService.driveInPost(t);case 3:if(n=e.sent,r=[],!n||!n.driveins){e.next=8;break}return n.driveins.forEach((function(e){var t=e.drivein,n="".concat(t.location.name," ,").concat(t.location.street,", ").concat(t.location.zip,", ").concat(t.location.city);r.push({id:t.id,city:t.location.city,ec2Id:t.location.id,name:t.location.name,route:n,serviceBrands:[],brandIds:"",street:t.location.street,zip:t.location.zip,rememberedGarage:!1,position:{lat:parseFloat(t.location.lat),lng:parseFloat(t.location.lng)},distance:0,mappedId:0,isDriveIn:!0,phone:"",mail:"",path:""})})),e.abrupt("return",r);case 8:return e.abrupt("return",[]);case 9:case"end":return e.stop()}}),e,this)})))},this.getAvailableAppointmentsForDriveIn=function(e){return cg(t,void 0,void 0,ht().mark((function t(){var n,r,a,i;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new Date,r={header:{action:"appointment_list",apiid:"#EC2APIID#",apikey:"#EC2APIKEY#"},appointment:{status:"available"},lane:{status:"active"},drivein:{id:e},customer:{},vehicle:{}},t.next=4,this.ec2ApiService.driveInPost(r);case 4:return a=t.sent,i=(i=a.appointments).filter((function(e){return new Date(e.appointment.date).getTime()>n.getTime()})),t.abrupt("return",i);case 8:case"end":return t.stop()}}),t,this)})))},this.checkAvailabilityOfAppointment=function(e){return cg(t,void 0,void 0,ht().mark((function t(){var n,r,a;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={header:{action:"appointment_list",apiid:"#EC2APIID#",apikey:"#EC2APIKEY#"},appointment:{id:e,status:"available"},lane:{},drivein:{},customer:{},vehicle:{}},t.next=3,this.ec2ApiService.driveInPost(n);case 3:return r=t.sent,a=r.appointments,t.abrupt("return",a.length>0);case 6:case"end":return t.stop()}}),t,this)})))},this.assignAppointment=function(e,n,r,a,i,o,s){return cg(t,void 0,void 0,ht().mark((function t(){var c,l;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={header:{action:"appointment_assign",apiid:"#EC2APIID#",apikey:"#EC2APIKEY#"},appointment:{id:e,status:"available"},lane:{},drivein:{},customer:{gender:s.policyHolderTitle,lastname:s.policyHolderLastName,firstname:s.policyHolderFirstName,street:s.policyHolderStreet,zip:s.policyHolderZip,city:s.policyHolderCity,phone_m:s.policyHolderPhoneM,email:s.policyHolderEmail,ec2id:"".concat(n)},vehicle:{make:a,model:i,plate:o,damagedate:r,remarks:""}},t.next=3,this.ec2ApiService.driveInPost(c);
6case 3:return l=t.sent,t.abrupt("return",l);case 5:case"end":return t.stop()}}),t,this)})))}}));lg=sg([nn.K],lg);var ug=__webpack_require__(74692),dg=__webpack_require__(74692),hg=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},pg=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},fg=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},mg=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this.element=t,this.customEventListener=new Jm,this.offCanvasService=new sn,this.viewController=new rv,this.storage=new uv,this.driveInService=new lg,this.datepickerElement=this.element.querySelector(".damage-report__step-3-c__datepicker"),this.spinner=new hc("step3cSpinner"),this.init=function(){n.changePlaceholder(),n.setEventListeners()},this.setDatepicker=function(){return fg(n,void 0,void 0,ht().mark((function e(){var t,n,r,a,i;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.driveInService.getAvailableAppointmentsForDriveIn(this.selectedGarage.id);case 2:return t=e.sent,n='<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n <path d="M13.4009 24C13.2789 24 13.1609 23.956 13.0699 23.875L0.494919 12.748C0.464919 12.721 0.436919 12.693 0.410919 12.664C0.0449191 12.251 0.0819193 11.617 0.493919 11.252L13.0689 0.125C13.1609 0.044 13.2789 0 13.4009 0C13.5439 0 13.6809 0.062 13.7759 0.169C13.9579 0.375 13.9389 0.692 13.7329 0.874L1.15692 12L13.7319 23.125C13.9379 23.308 13.9579 23.625 13.7749 23.831C13.6799 23.939 13.5439 24 13.4009 24Z"/>\n </svg>',r=ug(this.datepickerElement),a=new Date,this.appointmentList=t.filter((function(e){return new Date(e.appointment.date).getTime()>=a.getTime()})),ug.datepicker.setDefaults(ug.datepicker.regional[document.querySelector("html").getAttribute("lang")]),r.datepicker("destroy"),r.datepicker({dateFormat:"yy-mm-dd",minDate:this.appointmentList[0].appointment.date,firstDay:1,maxDate:this.appointmentList[this.appointmentList.length-1].appointment.date,prevText:n,nextText:n,beforeShowDay:this.validateDate,onSelect:this.showAppointmentTime}),(i=this.datepickerElement.querySelector(".ui-state-active"))&&i.classList.remove("ui-state-active","ui-state-hover"),e.abrupt("return",new Promise((function(e){e()})));case 13:case"end":return e.stop()}}),e,this)})))},this.validateDate=function(e){var t=dg.datepicker.formatDate("yy-mm-dd",e),r=n.appointmentList.filter((function(e){return e.appointment.date.includes(t)})),a=[!1];return 0!==e.getDay()&&6!==e.getDay()&&r.length>0&&(a=[!0]),a},this.showAppointmentTime=function(){var e=ug(n.datepickerElement).datepicker("getDate"),t=n.offCanvasService.getCancelBtn(),r=n.offCanvasService.getConfirmBtn(),a=n.offCanvasService.getFooter().parentElement,i=a.querySelector(".damage-report__step-3-c__date"),o=a.querySelector(".damage-report__step-3-c__appointment"),s=a.querySelector(".damage-report__step-3-c__error-msg");s.hidden=!0,s.textContent=n.element.dataset.offCanvasError,o.innerHTML="",n.selectedAppointment=null;var c=e.getFullYear(),l=e.getMonth()+1,u=e.getDate(),d="".concat(c,"-").concat(l<10?"0"+l:l,"-").concat(u<10?"0"+u:u),h=(0,it.Z0)(),p="".concat(e.toLocaleDateString(h,{weekday:"long"}),", ").concat(u,".").concat(l<10?"0"+l:l,".").concat(c);i.textContent=p,r.classList.add("amag-ctaWrapper__button--bgColor-amagDark-blue"),r.classList.remove("amag-ctaWrapper__button--bgColor-amagViolet","d-none"),r.parentElement.classList.remove("d-none"),r.textContent=n.element.dataset.offCanvasCta,t.classList.add("d-none"),o.appendChild(n.getChips(d)),n.offCanvasService.setConfirmMethod((function(){if(n.selectedAppointment){n.offCanvasService.closeOffCanvas(),r.classList.remove("amag-ctaWrapper__button--bgColor-amagDark-blue"),r.classList.add("amag-ctaWrapper__button--bgColor-amagViolet","d-none"),r.parentElement.classList.add("d-none"),t.classList.remove("d-none");var e={appointment:n.selectedAppointment};n.storage.setDriveInAppointment(e),n.viewController.changeView(xm.STEP_4)}else s.hidden=!1})),n.offCanvasService.showOffCanvasById("damage-report__info-canvas-step-3-c")},this.changePlaceholder=function(){var e=n.element.querySelector(".ts-bottom-descritpion"),t=e.innerHTML.match(/\{\{(.*)\}\}/);t&&(e.innerHTML=e.innerHTML.replace(t[0],'<a class="damage-report__step-3-c__back-link">'.concat(t[1],"</a>")))},this.getChips=function(e){var t=n.appointmentList.filter((function(t){return t.appointment.date.includes(e)})),r=[];return t.forEach((function(e,t){0!==t?r.some((function(t){return t.appointment.time===e.appointment.time}))||r.push(e):r.push(e)})),n.createChips(r)},this.createChips=function(e){var t=document.createDocumentFragment();return e.forEach((function(e){var r=document.createElement("div");r.classList.add("damage-report__step-3-c__chip");var a=e.appointment.time.split(":"),i=parseInt(a[1])+30,o=parseInt(a[0]);i>59&&(i-=60,o+=1),r.textContent="".concat(e.appointment.time," - ").concat(o.toString().padStart(2,"0"),":").concat(i.toString().padStart(2,"0")),r.addEventListener("click",(function(){n.selectedAppointment=e;var t=r.parentElement.querySelector(".is-active");t&&t.classList.remove("is-active"),r.classList.add("is-active")})),t.appendChild(r)})),t},this.init()}),[{key:"setEventListeners",value:function(){var e=this,t=this.element.querySelector("#step3c-backward"),n=this.element.querySelector(".damage-report__step-3-c__back-link");this.customEventListener.on(km.STEP,(function(t){t===xm.STEP_3C&&
6(e.selectedGarage=e.storage.getGaragesData().garage,e.element.querySelector(".process-container__subheadline").textContent=e.selectedGarage.name,e.spinner.show(),e.setDatepicker().then((function(){e.spinner.hide()})))})),t.addEventListener("click",(function(){e.viewController.changeView(xm.STEP_3A)})),null==n||n.addEventListener("click",(function(){e.viewController.changeView(xm.STEP_3A)}))}}])}();function vg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vg=function(){return!!e})()}mg=hg([(0,At.d)({selector:".damage-report__step-3-c",onDomLoaded:!0}),pg("design:paramtypes",[HTMLElement])],mg);var gg=function(e){function t(e,n,r,a){return(0,pt.A)(this,t),i=this,o=t,s=[e,n,r,a],o=(0,Ja.A)(o),(0,Xa.A)(i,vg()?Reflect.construct(o,s||[],(0,Ja.A)(i).constructor):o.apply(i,s));var i,o,s}return(0,Qa.A)(t,e),(0,ft.A)(t)}(hp);function yg(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_g(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function _g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var bg=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},wg=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Sg=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Cg=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,a){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,a,(t=e[n](t)).done,t.value)}))}}},Eg=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=t,this.viewController=new rv,this.storage=new uv,this.offCanvasService=new sn,this.customEventListener=new Jm,this.googleAnalyticsService=new ev,this.driveInService=new lg,this.brands=new Map,this.brandsCheckbox=this.element.querySelector(Hm.BRAND_CHECKBOX),this.garageWrapperElement=this.element.querySelector(Hm.GARAGE_WRAPPER),this.brandCheckboxWrapper=this.element.querySelector(Hm.BRAND_CHECKBOX_WRAPPER),this.garages=[],this.filteredGarages=[],this.rememberedGarage=[],this.preSelectedGarage=[],this.driveIns=[],this.isHailDamage=!1,this.brandList=[],this.google=window.google&&window.google.maps?window.google:void 0,this.userInteractionOccurred=!1,this.isLoggedIn=!1,this.init().catch((function(e){return console.error("Init failed for damage report - garage selection:",e)}))}),[{key:"init",value:function(){return Sg(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fillContent();case 2:return e.next=4,Ui.getBrandListForDdl("");case 4:return this.brandList=e.sent,e.next=7,this.setGoogle();case 7:return e.next=9,this.setEventListeners();case 9:this.brands.set("AUDI",{name:"".concat(Granite.I18n.get("apps.amag-ch.brandAudi")),id:"A"}),this.brands.set("VW_PKW",{name:"".concat(Granite.I18n.get("apps.amag-ch.brandVolkswagen")),id:"V"}),this.brands.set("SEAT",{name:"".concat(Granite.I18n.get("apps.amag-ch.brandSeatCupra")),id:"S"}),this.brands.set("SKODA",{name:"".concat(Granite.I18n.get("apps.amag-ch.brandSkoda")),id:"C"}),this.brands.set("VW_NZ",{name:"".concat(Granite.I18n.get("apps.amag-ch.brandVWNutzfahrzeuge")),id:"N"}),this.brands.set("BENTLEY",{name:"".concat(Granite.I18n.get("apps.amag-ch.brandBentley")),id:"B"}),this.brands.set("MICRO",{name:"".concat(Granite.I18n.get("apps.amag-ch.brandMicro")),id:"MICRO"}),this.customEventListener.emit(km.STEP_LOADED,null);case 17:case"end":return e.stop()}}),e,this)})))}},{key:"setGoogle",value:function(){return Sg(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hr.wait();case 2:this.google=window.google;case 3:case"end":return e.stop()}}),e,this)})))}},{key:"createGarageTile",value:function(e,t){var n=this,r=document.createDocumentFragment(),a=document.createElement("div");a.classList.add("damage-report__step-3a__garage"),a.tabIndex=t;var i=document.createElement("div");i.classList.add("damage-report__step-3a__garage-content");var o=document.createElement("input");o.type="radio",o.name="garageSelection",o.value=e.id,o.id="rb-".concat(e.id),i.appendChild(o);var s=document.createElement("div");s.classList.add("damage-report__step-3a__garage-info");var c=document.createElement("label");if(c.classList.add("damage-report__step-3a__garage-name"),c.textContent=e.name,c.htmlFor="rb-".concat(e.id),e.distance){var l=document.createElement("span");l.classList.add("damage-report__step-3a__garage-distance"),l.textContent=e.distance.toFixed(2)+" km",c.appendChild(l)}s.appendChild(c);var u,d=yg(e.serviceBrands);try{for(d.s();!(u=d.n()).done;){var h=u.value,p=document.createElement("span");p.classList.add("damage-report__step-3a__garage-brands"),p.textContent=Granite.I18n.get(h),s.appendChild(p)}}catch(e){d.e(e)}finally{d.f()}var f=document.createElement("span");f.classList.add("damage-report__step-3a__garage-street"),f.textContent=e.street,s.appendChild(f);var m=document.createElement("span");m.classList.add("damage-report__step-3a__garage-city"),m.textContent="".concat(e.zip," ").concat(e.city),s.appendChild(m);var v=document.createElement("a");v.classList.add("damage-report__step-3a__garage-route"),v.target="_blank",v.href="https://www.google.com/maps/dir/?api=1&destination=".concat(e.route),v.innerHTML='<svg class="damage-report__step-3a__garage-route-icon size-l" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.10809 23.6331C0.557093 23.6331 0.108093 23.1851 0.108093 22.6331V4.63314C0.108093 4.08214 0.557093 3.63314 1.10809 3.63314H16.1081V1.13314C16.1081 0.638141 16.4211 0.463141 16.5171 0.421141C16.5711 0.398141 16.6591 0.369141 16.7701 0.369141C16.9031 0.369141 17.1051 0.410141 17.3161 0.60714
61L23.5821 6.42614C23.6011 6.44314 23.6251 6.46714 23.6481 6.49314C23.8191 6.68314 23.9051 6.92914 23.8911 7.18414C23.8771 7.43914 23.7651 7.67414 23.5751 7.84514L17.3151 13.6591C17.1041 13.8551 16.9021 13.8961 16.7701 13.8961C16.6601 13.8961 16.5721 13.8681 16.5181 13.8451C16.4211 13.8031 16.1091 13.6281 16.1091 13.1331V10.6331H7.10909V22.6331C7.10909 23.1851 6.66009 23.6331 6.10909 23.6331H1.10809ZM1.10809 22.6331H6.10809V10.6331C6.10809 10.0821 6.55709 9.63314 7.10809 9.63314H16.6081C16.8841 9.63314 17.1081 9.85714 17.1081 10.1331V12.4871L22.8721 7.13414L17.1081 1.78014V4.13314C17.1081 4.40914 16.8841 4.63314 16.6081 4.63314H1.10809V22.6331Z"/>< /svg>';var g=document.createElement("span");if(g.textContent=Granite.I18n.get("apps.amag-ch.components.content.damageReport.step3.a.routeLabel"),v.appendChild(g),s.appendChild(v),i.appendChild(s),a.appendChild(i),e.rememberedGarage){var y=document.createElement("div");y.classList.add("damage-report__step-3a__garage-remembered"),y.textContent=Granite.I18n.get("apps.amag-ch.components.content.otv.garage-selectionPane.favouriteGarageText"),a.appendChild(y),a.classList.add(Hm.IS_ACTIVE)}return(this.preSelectedGarage.length>0&&e.id===this.preSelectedGarage[0].id||e.rememberedGarage&&0===this.preSelectedGarage.length)&&(o.checked=!0),a.addEventListener("click",(function(){return n.changeRadioStatus(a)})),r.appendChild(a),r}},{key:"createDriveInTile",value:function(e,t,n){var r,a,i,o;return Sg(this,void 0,void 0,ht().mark((function s(){var c,l,u,d,h,p,f,m,v,g,y,_,b,w,S,C,E,x,A,k,T,L,I=this;return ht().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return c=document.createDocumentFragment(),(l=document.createElement("div")).classList.add("damage-report__step-3a__garage__drive-in"),l.tabIndex=t,(u=document.createElement("div")).classList.add("damage-report__step-3a__garage__drive-in__banner"),(d=document.createElement("img")).src=null!==(r=this.element.dataset.bannerIcon)&&void 0!==r?r:"",d.loading="eager",d.classList.add("damage-report__step-3a__garage__drive-in__Icon"),u.appendChild(d),(h=document.createElement("div")).classList.add("damage-report__step-3a__garage__drive-in__info"),(p=document.createElement("span")).classList.add("damage-report__step-3a__garage__drive-in__info-text"),p.textContent=null!==(a=this.element.dataset.bannerText)&&void 0!==a?a:"",h.appendChild(p),(f=document.createElement("div")).classList.add("damage-report__step-3a__garage__drive-in__info-icon"),f.innerHTML='<svg fill="none" xmlns="http://www.w3.org/2000/svg"><path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M12.75 23.0005C18.8251 23.0005 23.75 18.0756 23.75 12.0005C23.75 5.92536 18.8251 1.00049 12.75 1.00049C6.67487 1.00049 1.75 5.92536 1.75 12.0005C1.75 18.0756 6.67487 23.0005 12.75 23.0005ZM12.75 24.0005C19.3774 24.0005 24.75 18.6279 24.75 12.0005C24.75 5.37307 19.3774 0.000488281 12.75 0.000488281C6.12258 0.000488281 0.75 5.37307 0.75 12.0005C0.75 18.6279 6.12258 24.0005 12.75 24.0005ZM10.75 16.5005C10.474 16.5005 10.25 16.2765 10.25 16.0005C10.25 15.7245 10.474 15.5005 10.75 15.5005H12.25V10.0005C12.25 9.72449 12.026 9.50049 11.75 9.50049H10.75C10.474 9.50049 10.25 9.27649 10.25 9.00049C10.25 8.72449 10.474 8.50049 10.75 8.50049H11.75C12.577 8.50049 13.25 9.17349 13.25 10.0005V15.5005H14.75C15.026 15.5005 15.25 15.7245 15.25 16.0005C15.25 16.2765 15.026 16.5005 14.75 16.5005H10.75ZM13.5 6.75049C13.5 7.1647 13.1642 7.50049 12.75 7.50049C12.3358 7.50049 12 7.1647 12 6.75049C12 6.33627 12.3358 6.00049 12.75 6.00049C13.1642 6.00049 13.5 6.33627 13.5 6.75049Z" fill="white"/>',h.appendChild(f),f.addEventListener("click",(function(){var e,t=I.offCanvasService.getCancelBtn(),n=I.offCanvasService.getConfirmBtn();n.classList.add("amag-ctaWrapper__button--bgColor-amagDark-blue"),n.classList.remove("amag-ctaWrapper__button--bgColor-amagViolet","d-none"),n.parentElement.classList.remove("d-none"),n.textContent=null!==(e=I.element.dataset.offcanvasCta)&&void 0!==e?e:"",t.classList.add("d-none"),I.offCanvasService.setConfirmMethod((function(){I.offCanvasService.closeOffCanvas(),n.classList.remove("amag-ctaWrapper__button--bgColor-amagDark-blue"),n.classList.add("amag-ctaWrapper__button--bgColor-amagViolet","d-none"),n.parentElement.classList.add("d-none"),t.classList.remove("d-none")})),I.offCanvasService.showOffCanvasById("damage-report__info-canvas-step-3-a")})),u.appendChild(h),l.appendChild(u),(m=document.createElement("div")).classList.add("damage-report__step-3a__garage__drive-in-content"),(v=document.createElement("input")).type="radio",v.name="garageSelection",v.value=e.id,v.id="rb-".concat(e.id),m.appendChild(v),(g=document.createElement("div")).classList.add("damage-report__step-3a__garage__drive-in-info"),(y=document.createElement("label")).classList.add("damage-report__step-3a__garage__drive-in-name"),y.textContent="".concat(Granite.I18n.get("apps.amag-ch.components.c
6ontent.damageReport.confirmation.garage.driveInGaragePrefix")," ").concat(e.name),y.htmlFor="rb-".concat(e.id),g.appendChild(y),(_=document.createElement("span")).classList.add("damage-report__step-3a__garage__drive-in-street"),_.textContent=e.street,g.appendChild(_),(b=document.createElement("span")).classList.add("damage-report__step-3a__garage__drive-in-city"),b.textContent="".concat(e.zip," ").concat(e.city),g.appendChild(b),(w=document.createElement("div")).classList.add("damage-report__step-3a__garage__drive-in-date"),(S=document.createElement("img")).src=null!==(i=this.element.dataset.dateIcon)&&void 0!==i?i:"",S.classList.add("damage-report__step-3a__garage__drive-in-date-icon"),w.appendChild(S),(C=document.createElement("div")).classList.add("damage-report__step-3a__garage__drive-in-date__textwrapper"),E=n[0].appointment.date.split("-"),x=n[n.length-1].appointment.date.split("-"),(A=document.createElement("span")).classList.add("damage-report__step-3a__garage__drive-in-date-range"),A.textContent="".concat(E[2],".").concat(E[1],".").concat(E[0],"\n - ").concat(x[2],".").concat(x[1],".").concat(x[0]),C.appendChild(A),(k=document.createElement("span")).classList.add("damage-report__step-3a__garage__drive-in-date-text"),k.textContent=null!==(o=this.element.dataset.dateText)&&void 0!==o?o:"",C.appendChild(k),w.appendChild(C),g.appendChild(w),(T=document.createElement("a")).classList.add("damage-report__step-3a__garage__drive-in-route"),T.target="_blank",T.href="https://www.google.com/maps/dir/?api=1&destination=".concat(e.route),T.innerHTML='<svg class="damage-report__step-3a__garage-route-icon size-l" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.10809 23.6331C0.557093 23.6331 0.108093 23.1851 0.108093 22.6331V4.63314C0.108093 4.08214 0.557093 3.63314 1.10809 3.63314H16.1081V1.13314C16.1081 0.638141 16.4211 0.463141 16.5171 0.421141C16.5711 0.398141 16.6591 0.369141 16.7701 0.369141C16.9031 0.369141 17.1051 0.410141 17.3161 0.607141L23.5821 6.42614C23.6011 6.44314 23.6251 6.46714 23.6481 6.49314C23.8191 6.68314 23.9051 6.92914 23.8911 7.18414C23.8771 7.43914 23.7651 7.67414 23.5751 7.84514L17.3151 13.6591C17.1041 13.8551 16.9021 13.8961 16.7701 13.8961C16.6601 13.8961 16.5721 13.8681 16.5181 13.8451C16.4211 13.8031 16.1091 13.6281 16.1091 13.1331V10.6331H7.10909V22.6331C7.10909 23.1851 6.66009 23.6331 6.10909 23.6331H1.10809ZM1.10809 22.6331H6.10809V10.6331C6.10809 10.0821 6.55709 9.63314 7.10809 9.63314H16.6081C16.8841 9.63314 17.1081 9.85714 17.1081 10.1331V12.4871L22.8721 7.13414L17.1081 1.78014V4.13314C17.1081 4.40914 16.8841 4.63314 16.6081 4.63314H1.10809V22.6331Z"/>< /svg>',(L=document.createElement("span")).textContent=Granite.I18n.get("apps.amag-ch.components.content.damageReport.step3.a.routeLabel"),T.appendChild(L),g.appendChild(T),m.appendChild(g),l.appendChild(m),m.addEventListener("click",(function(){return I.changeRadioStatus(l)})),c.appendChild(l),s.abrupt("return",c);case 82:case"end":return s.stop()}}),s,this)})))}},{key:"setSelectedGarage",value:function(e){this.element.querySelector(Hm.SELECTED_NAME).textContent=e.name,this.element.querySelector(Hm.SELECTED_STREET).textContent=e.street,this.element.querySelector(Hm.SELECTED_CITY).textContent="".concat(e.zip," ").concat(e.city),this.element.querySelector(Hm.SELECTED_ROUTE).href="https://www.google.com/maps/dir/?api=1&destination=".concat(e.route);var t,n=document.createDocumentFragment(),r=this.element.querySelector(Hm.SELECTED_BRANDS_WRAPPER),a=yg(e.serviceBrands);try{for(a.s();!(t=a.n()).done;){var i=t.value,o=document.createElement("span");o.classList.add("damage-report__step-3a__garage-selected-brands"),o.textContent=Granite.I18n.get(i),n.appendChild(o)}}catch(e){a.e(e)}finally{a.f()}r.appendChild(n)}},{key:"fillContent",value:function(){var e,t,n;return Sg(this,void 0,void 0,ht().mark((function r(){var a,i,o,s,c,l,u,d=this;return ht().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this.isLoggedIn=!!localStorage.getItem("amaguser"),r.next=3,this.getGarages();case 3:this.garages=r.sent,a=document.createDocumentFragment(),this.rememberedGarage=this.garages.filter((function(e){return e.rememberedGarage})),i=Kc(),o=null!==(n=null!==(t=null===(e=i.garageId)||void 0===e?void 0:e.toString())&&void 0!==t?t:window.sessionStorage.getItem("garage.presetGarage"))&&void 0!==n?n:"",this.preSelectedGarage=this.garages.filter((function(e){return e.id===o})),this.preSelectedGarage.length>0?(this.setSelectedGarage(this.preSelectedGarage[0]),s=[],c=this.garages.filter((function(e){return!e.rememberedGarage&&e.id!==o})),s=this.preSelectedGarage.concat(c),s=this.rememberedGarage.length>0?this.rememberedGarage.concat(s):s,this.garages=s,this.element.querySelector(Hm.SUMMARY).classList.remove("d-none")):this.rememberedGarage.length>0?(this.setSelectedGarage(this.rememberedGarage[0]),l=this.garages.filter((function(e){return!e.rememberedGarage})),this.garages=this.rememberedGarage.concat(l),this.element.querySelector(Hm.SUMMARY).classList.remove("d-none")):this.element.querySelector(Hm.GARAGE_SELECTION).classList.remove("d-none"),u=["name","city"],this.garageSearchService=new gg(this.garages,u,Gm.SEARCH_EVENT,"step3aSearch"),this.garages.forEac
6h((function(e,t){a.appendChild(d.createGarageTile(e,t))})),this.garageWrapperElement.appendChild(a);case 14:case"end":return r.stop()}}),r,this)})))}},{key:"setupGarageWithBrand",value:function(){return Sg(this,void 0,void 0,ht().mark((function e(){var t,n;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.storage.getVehicleData(),n=this.brandList.filter((function(e){return e.id===t.makeCode})),this.selectedBrand=this.brands.get(n[0].id),!(!this.selectedBrand||!this.userInteractionOccurred&&this.rememberedGarage.length>0)){e.next=8;break}return this.brandCheckboxWrapper.hidden=!0,e.next=7,this.resetGarageLists();case 7:return e.abrupt("return");case 8:return this.brandCheckboxWrapper.hidden=!1,this.setCheckbox(this.selectedBrand),e.next=12,this.setFilteredGarages(this.selectedBrand);case 12:case"end":return e.stop()}}),e,this)})))}},{key:"getGarages",value:function(){return Sg(this,void 0,void 0,ht().mark((function e(){var t,n,r,a;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,wt.$)("damagereportgarages"),e.next=4,fetch(t);case 4:return n=e.sent,e.next=7,ai.getFavoriteGarageId();case 7:if(r=e.sent,!n.ok){e.next=14;break}return e.next=11,n.json().catch((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,it.h0)(t,n)}));case 11:a=e.sent.garages.map((function(e){return{id:e.id,city:e.city,ec2Id:e.ec2ID,name:e.name,route:e.route,serviceBrands:e.serviceBrands,brandIds:e.filterIdString,street:e.street,zip:e.zip,rememberedGarage:!!r&&e.id===r,phone:e.phone,mail:e.email,position:{lat:parseFloat(e.latitude),lng:parseFloat(e.longitude)},isDriveIn:!1,path:e.path}})),e.next=16;break;case 14:return console.error("Something went wrong by getting the data from URL: ".concat(t)),e.abrupt("return",[]);case 16:return e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)})))}},{key:"adjustRememberedOrPreselectedGarageDisplay",value:function(){this.rememberedGarage.length>0||this.preSelectedGarage.length>0?(this.element.querySelector(Hm.SUMMARY).classList.remove("d-none"),this.element.querySelector(Hm.GARAGE_SELECTION).classList.add("d-none")):(this.element.querySelector(Hm.SUMMARY).classList.add("d-none"),this.element.querySelector(Hm.GARAGE_SELECTION).classList.remove("d-none"))}},{key:"setEventListeners",value:function(){return Sg(this,void 0,void 0,ht().mark((function e(){var t,n,r=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.element.querySelector(Hm.FORWARD_BUTTON),n=this.element.querySelector(Hm.BACKWARD_BUTTON),this.element.querySelector(Hm.SELECTED_BUTTON).addEventListener("click",(function(){r.element.querySelector(Hm.SUMMARY).classList.add("d-none"),r.element.querySelector(Hm.GARAGE_SELECTION).classList.remove("d-none")})),t.addEventListener("click",(function(){var e=r.garageWrapperElement.querySelector("input:checked");if(e){var n=r.garages.filter((function(t){return t.id===e.value}))[0];r.isHailDamage&&(n=r.driveIns.filter((function(t){return t.id===e.value}))[0]||r.garages.filter((function(t){return t.id===e.value}))[0]);var a={garage:n};r.storage.setGaragesData(a),r.element.classList.remove("invalid"),r.googleAnalyticsService.step7GarageSelectionEvent(t.textContent.trim(),n.name),r.isHailDamage&&n.isDriveIn?r.viewController.changeView(xm.STEP_3C):r.viewController.changeView(xm.STEP_3B)}else r.element.classList.add("invalid")})),n.addEventListener("click",(function(){r.viewController.changeView(xm.STEP_2),r.adjustRememberedOrPreselectedGarageDisplay(),r.googleAnalyticsService.backEvent("step 7 - garage selection",n.textContent.trim())})),this.brandsCheckbox.addEventListener("change",(function(){r.brandsCheckbox.checked?r.setFilteredGarages(r.selectedBrand):r.resetGarageLists()})),this.customEventListener.on(km.REFRESH,(function(e){r.refreshStep()})),this.customEventListener.on(km.CHOSEN_DAMAGE_CATEGORY,(function(e){return Sg(r,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.name!==Am.HAIL_DAMAGE){t.next=7;break}return t.next=3,this.driveInService.getDriveInList();case 3:this.driveIns=t.sent,this.isHailDamage=!0,t.next=8;break;case 7:this.isHailDamage=!1;case 8:case"end":return t.stop()}}),t,this)})))})),this.garageSearchService.getEventEmitter().on(Gm.SEARCH_EVENT,(function(e){return Sg(r,void 0,void 0,ht().mark((function t(){var n,r,a,i=this;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=document.createDocumentFragment(),!(e.length>0)){t.next=5;break}e.forEach((function(e,t){n.appendChild(i.createGarageTile(e,t))})),t.next=14;break;case 5:return t.next=7,this.findNearestGarages();case 7:if(r=t.sent,!(this.isHailDamage&&this.driveIns.length>0&&localStorage.getItem("amaguser"))){t.next=13;break}return t.next=11,this.getDriveInGarageTiles();case 11:a=t.sent,n.appendChild(a);case 13:r.forEach((function(e,t){n.appendChild(i.createGarageTile(e,t))}));case 14:this.garageWrapperElement.innerHTML="",this.garageWrapperElement.appendChild(n);case 16:case"end":return t.stop()}}),t,this)})))})),this.customEventListener.on(km.STEP,(function(e){e===xm.STEP_3A&&r.setupGarageWithBrand()}));case 10:case"end":return e.stop()}}),e,this)})))}},{key:"refreshStep",value:function(){return Sg(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isLoggedIn===!!localStorage.getItem("amaguser")){e.next=8;break}return this.isLoggedIn=!!localStorage.getItem("amaguser"),e.next=4,this.getGarages();case 4:this.garages=e.sent,this.rememberedGarage=this.garages.filter((function(e){return e.rememberedGarage})),this.setSelectedGarage(this.rememberedGarage[0]),(0,it.yZ)(this.rememberedGarage[0]);case 8:return this.adjustRememberedOrPreselectedGarageDisplay(),e.next=11,this.refreshGarageTiles(this.garages);case 11:case"end":return e.stop()}}),e,this)})))}},{key:"changeRadioStatus",value:function(e){var t=this.element.querySelectorAll('input[type="radio"][name="garageSelection"]'),n=e.querySelector("input");this.userInteractionOccurred=!0,t.forEach((function(e){(e.closest(".damage-report__step-3a__garage")||e.closest(".damage-report__step-3a__garage__drive-in")).classList.remove(Hm.IS_ACTIVE),e.checked=!1}
6)),e.classList.add(Hm.IS_ACTIVE),n.checked=!0}},{key:"refreshGarageTiles",value:function(e){var t;return Sg(this,void 0,void 0,ht().mark((function n(){var r,a,i,o=this;return ht().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=document.createDocumentFragment(),this.garageWrapperElement.innerHTML="",!(this.isHailDamage&&this.driveIns.length>0)){n.next=7;break}return n.next=5,this.getDriveInGarageTiles();case 5:a=n.sent,r.appendChild(a);case 7:e.forEach((function(e,t){r.appendChild(o.createGarageTile(e,t))})),this.garageWrapperElement.appendChild(r),(i=null!==(t=this.storage.getGaragesData())&&void 0!==t?t:null)&&(this.garageWrapperElement.querySelector("#rb-".concat(i.garage.id)).checked=!0);case 11:case"end":return n.stop()}}),n,this)})))}},{key:"getDriveInGarageTiles",value:function(){var e,t,n,r;return Sg(this,void 0,void 0,ht().mark((function a(){var i,o,s,c,l,u,d,h;return ht().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.driveInService.getDriveInList();case 2:this.driveIns=a.sent,i=document.createDocumentFragment(),o=0,a.prev=5,s=!0,c=Cg(this.driveIns);case 7:return a.next=9,c.next();case 9:if(l=a.sent,e=l.done){a.next=29;break}return r=l.value,s=!1,a.prev=14,u=r,a.next=18,this.driveInService.getAvailableAppointmentsForDriveIn(u.id);case 18:if(!((d=a.sent).length>0)){a.next=24;break}return a.next=22,this.createDriveInTile(u,o++,d);case 22:h=a.sent,i.appendChild(h);case 24:return a.prev=24,s=!0,a.finish(24);case 27:a.next=7;break;case 29:a.next=34;break;case 31:a.prev=31,a.t0=a.catch(5),t={error:a.t0};case 34:if(a.prev=34,a.prev=35,s||e||!(n=c.return)){a.next=39;break}return a.next=39,n.call(c);case 39:if(a.prev=39,!t){a.next=42;break}throw t.error;case 42:return a.finish(39);case 43:return a.finish(34);case 44:return a.abrupt("return",i);case 45:case"end":return a.stop()}}),a,this,[[5,31,34,44],[14,,24,27],[35,,39,43]])})))}},{key:"findNearestGarages",value:function(){return Sg(this,void 0,void 0,ht().mark((function e(){var t,n,r,a,i=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],n=this.garageSearchService.getSearchString(),e.next=4,this.getGeocode(n);case 4:return r=e.sent,a=r.geometry.location,this.garages.forEac
6h((function(e){var n=i.google.maps.geometry.spherical.computeDistanceBetween(new i.google.maps.LatLng(e.position.lat,e.position.lng),a);e.distance=n/1e3,t.push(e)})),t=t.sort((function(e,t){return e.distance-t.distance})),e.abrupt("return",t.slice(0,5));case 9:case"end":return e.stop()}}),e,this)})))}},{key:"setCheckbox",value:function(e){var t=this.element.querySelector(Hm.BRAND_CHECKBOX_LABEL);this.brandsCheckbox.checked=!0,t.textContent=Granite.I18n.get("apps.amag-ch.components.content.otv.garage-selectionPane.filterCheckboxText").replace("$[brand]",e.name)}},{key:"setFilteredGarages",value:function(e){return Sg(this,void 0,void 0,ht().mark((function t(){var n=this;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.filteredGarages=[],this.garages.forEach((function(t){t.brandIds.split(",").forEach((function(r){e&&r===e.id&&n.filteredGarages.push(t)}))})),t.next=4,this.refreshGarageTiles(this.filteredGarages);case 4:this.garageSearchService.setList(this.filteredGarages);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getGeocode",value:function(e){var t=new this.google.maps.Geocoder,n={address:e,region:"CH",componentRestrictions:{country:"CH"}};return new Promise((function(e,r){t.geocode(n,(function(t,n){"OK"===n?e(t[0]):r({result:t,status:n})}))}))}},{key:"resetGarageLists",value:function(){return Sg(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.filteredGarages=this.garages,e.next=3,this.refreshGarageTiles(this.filteredGarages);case 3:this.garageSearchService.setList(this.filteredGarages);case 4:case"end":return e.stop()}}),e,this)})))}}])}();function xg(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ag(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ag(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Ag(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Eg=bg([(0,At.d)({selector:".damage-report__step-3a",onDomLoaded:!0}),wg("design:paramtypes",[HTMLElement])],Eg);var kg=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Tg=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Lg=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this.validationService=new ov,this.viewController=new rv,this.customEventListener=new Jm,this.googleAnalyticsService=new ev,this._storage=new uv,this._form=this._element.querySelector("form"),this.isValid=!0,this.showNewSelectionView=function(){n._element.querySelector(".damage-report__step-4__selection").hidden=!1,n._element.querySelector(".damage-report__step-4__pre-selected").hidden=!0},this.showPreSelectedView=function(){n._element.querySelector(".damage-report__step-4__pre-selected").hidden=!1,n._element.querySelector(".damage-report__step-4__selection").hidden=!0},this.checkUserStatus=function(e){var t;"FAIL"!==e.status?(null===(t=e.addresses)||void 0===t?void 0:t.private)?(n.showPreSelectedView(),n.fillTile(e),n.prefillingForm(e)):n.showNewSelectionView():console.log("FEHLER CDC")},this.validateForm=function(){n.isValid=!0;var e=n.validationService.validateStep4(n._form);
6n.resetValidation(),n.toggleValidationClasses(e)},this.toggleValidationClasses=function(e){var t="";if(e){if(n.isValid=!Array.from(e.values()).some((function(e){return!1===e})),!n.isValid){n._form.classList.add("invalid");var r,a=xg(e.keys());try{for(a.s();!(r=a.n()).done;){var i=r.value;e.get(i)||(n.getValidationContainerElement(i).classList.add("invalid--required"),""===t&&(t=i))}}catch(e){a.e(e)}finally{a.f()}}t.length>0&&n._element.querySelector(t).scrollIntoView({behavior:"smooth",block:"center"})}},this.resetValidation=function(){n.isValid=!0;for(var e=0,t=Object.keys(jm);e<t.length;e++){var r=t[e],a=jm[r];n.getValidationContainerElement(a).classList.remove("invalid--required")}n._form.classList.remove("invalid")},this.getValidationContainerElement=function(e){switch(e){case jm.DROPDOWN_SALUTATION:return n._form.querySelector(jm.DROPDOWN_SALUTATION);case jm.INPUT_FIRSTNAME:return n._form.querySelector(jm.INPUT_FIRSTNAME).closest(".form-field__container");case jm.INPUT_LASTNAME:return n._form.querySelector(jm.INPUT_LASTNAME).closest(".form-field__container");case jm.INPUT_MAIL:return n._form.querySelector(jm.INPUT_MAIL).closest(".form-field__container");case jm.INPUT_STREET:return n._form.querySelector(jm.INPUT_STREET).closest(".form-field__container");case jm.INPUT_HOUSENR:return n._form.querySelector(jm.INPUT_HOUSENR).closest(".form-field__container");case jm.INPUT_ZIP:return n._form.querySelector(jm.INPUT_ZIP).closest(".form-field__container");case jm.INPUT_CITY:return n._form.querySelector(jm.INPUT_CITY).closest(".form-field__container");case jm.DROPDOWN_COUNTRY:return n._form.querySelector(jm.DROPDOWN_COUNTRY);case jm.DROPDOWN_COUNTRY_PREFIX:return n._form.querySelector(jm.DROPDOWN_COUNTRY_PREFIX);case jm.INPUT_PHONE:return n._form.querySelector(jm.INPUT_PHONE).closest(".form-field__container");case jm.INPUT_COMPANY:return n._form.querySelector(jm.INPUT_COMPANY).closest(".form-field__container");default:throw new Error("getValidationContainerElement: Invalid identifier")}},this._userLoggedin=!1,this.init()}),[{key:"init",value:function(){this.setEventListener(),this.setDropdowns(),this.checkUserLoggedin()}},{key:"setEventListener",value:function(){var e=this,t=this._element.querySelector("#step4-forward"),n=this._element.querySelector("#step4Change-forward"),r=this._element.querySelector("#step4-backward"),a=this._element.querySelector("#step4Change-backward"),i=this._element.querySelector("#cb-diffrent-taker");r.addEventListener("click",(function(){e._storage.getGaragesData().garage.isDriveIn?e.viewController.changeView(xm.STEP_3C):e.viewController.changeView(xm.STEP_3B),e.googleAnalyticsService.backEvent("step 9 - personal data",r.textContent.trim())})),t.addEventListener("click",(function(){e.giveDataIntoStorage(),e.viewController.changeView(xm.STEP_5),e.googleAnalyticsService.step9PersonalDataEvent(t.textContent.trim())})),a.addEventListener("click",(function(){e._storage.getGaragesData().garage.isDriveIn?e.viewController.changeView(xm.STEP_3C):e.viewController.changeView(xm.STEP_3B),e.googleAnalyticsService.backEvent("step 9 - personal data",a.textContent.trim())})),n.addEventListener("click",(function(){e.validateForm(),e.isValid&&(e.giveDataIntoStorage(),e.viewController.changeView(xm.STEP_5),e.googleAnalyticsService.step9PersonalDataEvent(n.textContent.trim()))})),this._element.querySelector(".damage-report__step-4__user-tile-change-btn").addEventListener("click",(function(){e._element.querySelector(".damage-report__step-4__pre-selected").hidden=!0,e._element.querySelector(".damage-report__step-4__selection").hidden=!1})),this._element.querySelector(".process-container__no-login-checkbox").addEventListener("click",(function(){return e.toggleCheckbox(i)})),i.addEventListener("click",(function(){return e.toggleCheckbox(i)})),this.customEventListener.on(km.REFRESH,(function(t){e._element.querySelector("#cb-diffrent-taker").checked=!1,e.checkUserLoggedin()})),this.customEventListener.on(km.SET_HOLDER,(function(){e.prepareSelections()}))}},{key:"checkUserLoggedin",value:function(){var e=localStorage.amaguser?JSON.parse(localStorage.amaguser):null;this.clearForm(),e?(this._userLoggedin=!0,Dr(this.checkUserStatus)):(this._userLoggedin=!1,this.showNewSelectionView())}},{key:"fillTile",value:function(e){var t,n,r,a,i,o,s,c,l,u,d,h,p="",f="";void 0!==e.profile.gender?("m"==e.profile.gender?p=Granite.I18n.get("apps.amag-ch.components.c
6ontent.damageReport.screen-1e.form.salutation.male"):"f"==e.profile.gender&&(p=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.female")),f=p+" "+e.profile.firstName+" "+e.profile.lastName):f=e.profile.firstName+" "+e.profile.lastName;var m="".concat((null===(n=null===(t=e.addresses)||void 0===t?void 0:t.private)||void 0===n?void 0:n.street)||""," ").concat((null===(a=null===(r=e.addresses)||void 0===r?void 0:r.private)||void 0===a?void 0:a.houseNumber)||"").trim(),v="".concat((null===(o=null===(i=e.addresses)||void 0===i?void 0:i.private)||void 0===o?void 0:o.zipCode)||""," ").concat((null===(c=null===(s=e.addresses)||void 0===s?void 0:s.private)||void 0===c?void 0:c.city)||"").trim(),g="";(null===(u=null===(l=e.addresses)||void 0===l?void 0:l.private)||void 0===u?void 0:u.countryISOCode3)&&(["CHE","CH"].includes(e.addresses.private.countryISOCode3)?g=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.ch"):["LIE","LI"].includes(e.addresses.private.countryISOCode3)&&(g=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.li"))),this._element.querySelector(".damage-report__step-4__user-tile-name").textContent=f,this._element.querySelector(".damage-report__step-4__user-tile-street").textContent=m,this._element.querySelector(".damage-report__step-4__user-tile-place").textContent=v,this._element.querySelector(".damage-report__step-4__user-tile-country").textContent=g,this._element.querySelector(".damage-report__step-4__user-tile-mail").textContent=e.profile.email||"",this._element.querySelector(".damage-report__step-4__user-tile-phone").textContent=(null===(h=null===(d=e.profile.phones)||void 0===d?void 0:d[0])||void 0===h?void 0:h.number)||""}},{key:"setDropdowns",value:function(){var e=[{id:"",text:""},{id:"m",text:Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.male")},{id:"f",text:Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.female")}],t=[{id:"",text:Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.countryselect")},{id:"CHE",text:Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.ch")},{id:"LIE",text:Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.li")}];Vr(this._element.querySelector("#damage-report__step-4__form-country"),t,null,null),Vr(this._element.querySelector("#damage-report__step-4__form-salutation"),e,null,null),Vr(this._element.querySelector("#damage-report__step-4__form-countryPrefix"),[{id:"",text:""},{id:"+41",text:"CH (+41)"},{id:"+49",text:"DE (+49)"},{id:"+33",text:"FR (+33)"},{id:"+39",text:"IT (+39)"},{id:"+423",text:"LI (+423)"},{id:"+43",text:"AT (+43)"}],null,null)}},{key:"prefillingForm",value:function(e){var t,n,r,a,i,o,s,c,l,u,d,h=this._form.querySelector(jm.DROPDOWN_COUNTRY),p=this._form.querySelector(jm.DROPDOWN_SALUTATION),f=xg(e.profile.phones);try{for(f.s();!(d=f.n()).done;){var m=d.value;if("mobile"==m.type){var v=this._form.querySelector(jm.DROPDOWN_COUNTRY_PREFIX),g=m.number.substring(0,3),y=m.number.substring(3,20);v.value=g,this._form.querySelector(jm.INPUT_PHONE).value=y,v.dispatchEvent(new Event("select2:select")),v.dispatchEvent(new Event("change"))}}}catch(e){f.e(e)}finally{f.f()}this._form.querySelector(jm.INPUT_CITY).value=(null===(n=null===(t=e.addresses)||void 0===t?void 0:t.private)||void 0===n?void 0:n.city)||"",this._form.querySelector(jm.INPUT_FIRSTNAME).value=e.profile.firstName,this._form.querySelector(jm.INPUT_HOUSENR).value=(null===(a=null===(r=e.addresses)||void 0===r?void 0:r.private)||void 0===a?void 0:a.houseNumber)||"",this._form.querySelector(jm.INPUT_LASTNAME).value=e.profile.lastName,this._form.querySelector(jm.INPUT_MAIL).value=e.profile.email||"",this._form.querySelector(jm.INPUT_STREET).value=(null===(o=null===(i=e.addresses)||void 0===i?void 0:i.private)||void 0===o?void 0:o.street)||"",this._form.querySelector(jm.INPUT_ZIP).value=(null===(c=null===(s=e.addresses)||void 0===s?void 0:s.private)||void 0===c?void 0:c.zipCode)||"",h.value=null===(u=null===(l=e.addresses)||void 0===l?void 0:l.private)||void 0===u?void 0:u.countryISOCode3,h.dispatchEvent(new Event("select2:select")),h.dispatchEvent(new Event("change")),p.value=e.profile.gender,p.dispatchEvent(new Event("select2:select")),p.dispatchEvent(new Event("change"))}},{key:"clearForm",value:function(){this._form.querySelector(jm.INPUT_CITY).value="",this._form.querySelector(jm.INPUT_COMPANY).value="",this._form.querySelector(jm.INPUT_FIRSTNAME).value="",this._form.querySelector(jm.INPUT_HOUSENR).value="",this._form.querySelector(jm.INPUT_LASTNAME).value="",this._form.querySelector(jm.INPUT_MAIL).value="",this._form.querySelector(jm.INPUT_PHONE).value="",this._form.querySelector(jm.INPUT_STREET).value="",this._form.querySelector(jm.INPUT_ZIP).value="";var e=this._form.querySelector(jm.DROPDOWN_COUNTRY);e.value="",e.dispatchEvent(new Event("select2:select")),e.dispatchEvent(new Event("change"));var t=this._form.querySelector(jm.DROPDOWN_COUNTRY_PREFIX);t.value="",t.dispatchEvent(new Event("select2:select")),t.dispatchEvent(new Event("change"));var n=this._form.querySelector(jm.DROPDOWN_SALUTATION);n.value="",n.dispatchEvent(new Event("select2:select")),n.dispatchEvent(new Event("change"))}},{key:"giveDataIntoStorage",value:function(){var e={company:this._form.querySelector(jm.INPUT_COMPANY).value,salutation:this._form.querySelector(jm.DROPDOWN_SALUTATION).value,firstname:this._form.querySelector(jm.INPUT_FIRSTNAME).value,lastname:this._form.querySelector(jm.INPUT_LASTNAME).value,street:this._form.querySelector(jm.INPUT_STREET).value,housenr:this._form.querySelector(jm.INPUT_HOUSENR).value,zip:this._form.querySelector(jm.INPUT_ZIP).value,city:this._form.querySelector(jm.INPUT_CITY).value,country:this._form.querySelector(jm.DROPDOWN_COUNTRY).value,email:this._form.querySelector(jm.INPUT_MAIL).value,prefix:this._form.querySelector(jm.DROPDOWN_COUNTRY_PREFIX).value,phone:this._form.querySelector(jm.INPUT_PHONE).value};this._storage.setPolicyHolder(e);var t=this._storage.getPolicyHolder(),n=this._storage.getGaragesData().garage.isDriveIn?null:this._storage.getAdditionalServices(),r=this._storage.getDamageDescription(),a="".concat(Granite.I18n.get("apps.amag-ch.components.c
6ontent.damageReport.srs.policyholder.company"),":").concat(t.company," |\n");a+="".concat(Granite.I18n.get("apps.amag-ch.components.content.damageReport.srs.damage.type"),": ").concat(r.description," |\n"),a+="".concat(Granite.I18n.get("apps.amag-ch.components.content.damageReport.srs.damage.place"),": ").concat(r.place," |\n"),a+="".concat((null==n?void 0:n.replacementCar)?Granite.I18n.get("apps.amag-ch.components.content.damageReport.srs.replacement.vehicle.yes"):Granite.I18n.get("apps.amag-ch.components.content.damageReport.srs.replacement.vehicle.no")," |\n"),a+="".concat(Granite.I18n.get("apps.amag-ch.components.content.damageReport.srs.services"),": "),n&&n.additionalServices.length>0&&n.additionalServices.forEach((function(e,t){a+=0===t?"".concat(e.headline,";"):"\n".concat(e.headline,";")})),r.insuranceOtherName&&(a+="|\n".concat(Granite.I18n.get("apps.amag-ch.components.content.damageReport.srs.insurances"),": ").concat(r.insuranceOtherName));var i={policyHolderTitle:t.salutation,policyHolderLastName:t.lastname,policyHolderFirstName:t.firstname,policyHolderStreet:"".concat(t.street," ").concat(t.housenr),policyHolderZip:t.zip,policyHolderCity:t.city,policyHolderCountry:t.country,policyHolderPhoneM:t.prefix+t.phone,policyHolderEmail:t.email,policyHolderLanguage:(0,it.Xo)(),policyHolderRemarksInternal:a};this._storage.setEC2PolicyHolder(i)}},{key:"prepareSelections",value:function(){if(!(localStorage.amaguser?JSON.parse(localStorage.amaguser):null)){var e=this._storage.getVehicleHolder(),t=this._form.querySelector(jm.DROPDOWN_COUNTRY),n=this._form.querySelector(jm.DROPDOWN_SALUTATION),r=this._form.querySelector(jm.DROPDOWN_COUNTRY_PREFIX),a=e.prefix,i=e.phone;this.fillNotLoggedInTile(e),this._element.querySelector("#cb-diffrent-taker").checked=!1,this._element.querySelector(".process-container__no-login-wrapper").hidden=!1,this._element.querySelector(".process-container__content").hidden=!0,r.value=a,this._form.querySelector(jm.INPUT_PHONE).value=i,r.dispatchEvent(new Event("select2:select")),r.dispatchEvent(new Event("change")),this._form.querySelector(jm.INPUT_COMPANY).value=e.company,this._form.querySelector(jm.INPUT_CITY).value=e.city,this._form.querySelector(jm.INPUT_FIRSTNAME).value=e.firstname,this._form.querySelector(jm.INPUT_HOUSENR).value=e.housenr,this._form.querySelector(jm.INPUT_LASTNAME).value=e.lastname,this._form.querySelector(jm.INPUT_MAIL).value=e.email,this._form.querySelector(jm.INPUT_STREET).value=e.street,this._form.querySelector(jm.INPUT_ZIP).value=e.zip,t.value=e.country,t.dispatchEvent(new Event("select2:select")),t.dispatchEvent(new Event("change")),n.value=e.salutation,n.dispatchEvent(new Event("select2:select")),n.dispatchEvent(new Event("change"))}}},{key:"fillNotLoggedInTile",value:function(e){var t,n="";"m"==e.salutation?n=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.male"):"f"==e.salutation&&(n=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.female")),t=n+" "+e.firstname+" "+e.lastname;var r="".concat(e.street," ").concat(e.housenr).trim(),a="".concat(e.zip," ").concat(e.city).trim(),i="";["CHE","CH"].includes(e.country)?i=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.ch"):["LIE","LI"].includes(e.country)&&(i=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.li"));var o="".concat(e.prefix," ").concat(e.phone).trim();this._element.querySelector(".process-container__no-login-tile-company").textContent=e.company,this._element.querySelector(".process-container__no-login-tile-name").textContent=t,this._element.querySelector(".process-container__no-login-tile-street").textContent=r,this._element.querySelector(".process-container__no-login-tile-place").textContent=a,this._element.querySelector(".process-container__no-login-tile-country").textContent=i,this._element.querySelector(".process-container__no-login-tile-mail").textContent=e.email,this._element.querySelector(".process-container__no-login-tile-phone").textContent=o}},{key:"toggleCheckbox",value:function(e){e.checked?(e.checked=!1,this._element.querySelector(".process-container__content").hidden=!0):(e.checked=!0,this._element.querySelector(".process-container__content").hidden=!1)}}])}();Lg=kg([(0,At.d)({selector:".damage-report__step-4",onDomLoaded:!0}),Tg("design:paramtypes",[HTMLElement])],Lg);var Ig=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}
6,Dg=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Pg=(0,ft.A)((function e(){var t=this;(0,pt.A)(this,e),this._storageService=new uv,this._stateService=new Jm,this._ec2ApiService=new og,this._ec2ObjectService=new Ov,this._modalService=new up,this._driveInService=new lg,this._damageReportCaseID="",this._caseCreated=!1,this._caseUpdatedWithoutImages=!1,this._caseUpdatedOnlyImages=!1,this._messageSent=!1,this.addCaseToEC2=function(e){return Dg(t,void 0,void 0,ht().mark((function t(){var n,r,a,i;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._storageService.getCaseType(),r=this._storageService.getDamageDescription().id,a=+this._storageService.getGaragesData().garage.ec2Id,i=r?this._ec2ObjectService.createEC2CaseObject(n,a,20553,r):this._ec2ObjectService.createEC2CaseObject(n,a,20553),this._storageService.setEC2Case(i),t.next=8,this._ec2ApiService.sendEC2CaseAddRequestWithCaseObject(i,e);case 8:return t.abrupt("return",t.sent);case 9:case"end":return t.stop()}}),t,this)})))},this.updateCaseInEC2WithoutImages=function(e){return Dg(t,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b,w,S,C,E,x;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(n=this._storageService.getEC2Case(),r=this._storageService.getEC2Insurance(),a=this._storageService.getEC2Vehicle(),i=this._storageService.getEC2PolicyHolder(),o=0,s=Object.entries(n);o<s.length;o++)c=(0,Sa.A)(s[o],2),l=c[0],"string"==typeof(u=c[1])&&(n[l]=fi(pi(u)));for(d=0,h=Object.entries(r);d<h.length;d++)p=(0,Sa.A)(h[d],2),f=p[0],"string"==typeof(m=p[1])&&(r[f]=fi(pi(m)));for(v=0,g=Object.entries(a);v<g.length;v++)y=(0,Sa.A)(g[v],2),_=y[0],"string"==typeof(b=y[1])&&(a[_]=fi(pi(b)));for(w=0,S=Object.entries(i);w<S.length;w++)C=(0,Sa.A)(S[w],2),E=C[0],"string"==typeof(x=C[1])&&(i[E]=fi(pi(x)));return t.next=10,this._ec2ApiService.updateDamageReportWithAdditionalData(e,n,r,a,i);case 10:return t.abrupt("return",t.sent);case 11:case"end":return t.stop()}}),t,this)})))},this.updateCaseInEC2OnlyImages=function(e){return Dg(t,void 0,void 0,ht().mark((function t(){var n;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._storageService.getEC2Documents(),t.next=3,this._ec2ApiService.updateDamageReportWithOnlyImageData(e,n);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))},this.updateCaseStatusInEC2=function(e){return Dg(t,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ec2ApiService.updateDamageReportCaseStatus(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})))},this.sendEC2Message=function(e){return Dg(t,void 0,void 0,ht().mark((function t(){var n,r;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._storageService.getEC2PolicyHolder(),r=n.policyHolderRemarksInternal,t.next=6,this._ec2ApiService.sendEC2Message(e,"expert","Schadenmeldung",r);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t,this)})))},this.sendDamageReport=function(e){return Dg(t,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s,c,l,u,d,h,p,f,m,v;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this._storageService.getGaragesData().garage,r=n.isDriveIn,a=this._storageService.getImageList(),i=a.DamageReportImageFiles,o=i.length>0,this._modalService.openSpinnerModal("damageReport-ec2-spinner"),t.prev=6,!r){t.next=15;break}return s=this._storageService.getDriveInAppointment().appointment,t.next=11,this._driveInService.checkAvailabilityOfAppointment(s.appointment.id);case 11:if(t.sent){t.next=15;break}return this._stateService.emit(km.DRIVE_IN_ERROR,null),t.abrupt("return");case 15:if(this._damageReportCaseID=this._storageService.getEC2CaseId(),this._caseCreated||this._damageReportCaseID){t.next=26;break}return t.next=19,this.addCaseToEC2(e);case 19:if(!((c=t.sent)instanceof Error)){t.next=23;break}return this._stateService.emit(km.ERROR,null),t.abrupt("return");case 23:this._damageReportCaseID=c.ec2CaseAddResponse.ec2NewId,this._storageService.setEC2CaseId(this._damageReportCaseID),this._caseCreated=!0;case 26:if(this._caseUpdatedWithoutImages){t.next=38;break}return t.next=30,this.updateCaseInEC2WithoutImages(this._damageReportCaseID);case 30:if(t.sent){t.next=34;break}return this._stateService.emit(km.ERROR,null),t.abrupt("return");case 34:if(this._caseUpdatedWithoutImages=!0,!(0,it.EW)()){t.next=38;break}return t.next=38,Dr(this.updateDamageReportList);case 38:if(this._messageSent){t.next=62;break}if(!(this._storageService.getEC2PolicyHolder().policyHolderRemarksInternal.length>0)){t.next=46;break}return t.next=42,this.sendEC2Message(this._damageReportCaseID);case 42:if(t.sent){t.next=46;break}return this._stateService.emit(km.ERROR,null),t.abrupt("return");case 46:if(!r){t.next=61;break}return l=this._storageService.getEC2Vehicle(),u=this._storageService.getDamageDescription(),d=this._storageService.getEC2PolicyHolder(),h=u.selectedDate,p=h.getFullYear(),f=h.getMonth()+1,m=h.getDate(),v="".concat(p,"-").concat(f<10?"0"+f:f,"-").concat(m<10?"0"+m:m),t.next=57,this._driveInService.assignAppointment(s.appointment.i
6d,this._damageReportCaseID,v,l.vehicleMake,l.vehicleModel,l.vehiclePlate,d);case 57:if(t.sent){t.next=61;break}return this._stateService.emit(km.DRIVE_IN_ERROR,null),t.abrupt("return");case 61:this._messageSent=!0;case 62:return t.next=64,this.sendDamageReportConfirmationMail();case 64:if(!o){t.next=74;break}if(this._caseUpdatedOnlyImages){t.next=74;break}return t.next=69,this.updateCaseInEC2OnlyImages(this._damageReportCaseID);case 69:if(t.sent){t.next=73;break}return this._stateService.emit(km.ERROR,null),t.abrupt("return");case 73:this._caseUpdatedOnlyImages=!0;case 74:return this._stateService.emit(km.SUCCESS,null),this._modalService.closeSpinnerModal("damageReport-ec2-spinner"),t.abrupt("return",!0);case 79:t.prev=79,t.t0=t.catch(6),console.error("Error occurred while sending the damage report:",t.t0),this._stateService.emit(km.ERROR,null),this._modalService.closeSpinnerModal("damageReport-ec2-spinner");case 84:case"end":return t.stop()}}),t,this,[[6,79]])})))},this.sendDamageReportConfirmationMail=function(){return Dg(t,void 0,void 0,ht().mark((function e(){var t,n,r,a,i,o,s,c;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=this._storageService.getEC2Vehicle(),n=this._storageService.getEC2Insurance(),r=(0,it.gL)(),a=this._storageService.getPolicyHolder(),i=this._storageService.getVehicleHolder(),o=(null==r?void 0:r.email)?r.email:(null==a?void 0:a.email)?a.email:i.email,s={recipientMail:o,vehicleBrand:t.vehicleMake,vehicleModel:t.vehicleModel,vehiclePlate:t.vehiclePlate,insurance:"",damageDate:n.insuranceDamageDate,ec2CaseId:this._damageReportCaseID},e.next=10,this._ec2ApiService.sendDamageReportConfirmationMailRequest(s);case 10:if(!((c=e.sent)instanceof Error)){e.next=13;break}throw Error("".concat(c.name,": ").concat(c.message));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),console.error("Error occurred while sending the damage report customer confirmation mail:",e.t0);case 18:case"end":return e.stop()}}),e,this,[[0,15]])})))},this.updateDamageReportList=function(e){if("FAIL"!==e.status){var n=window.gigya,r=[];e.data.damageReports&&(r=e.data.damageReports),r.push({caseId:t._damageReportCaseID.toString(),creationDate:(new Date).toISOString()}),n.accounts.setAccountInfo({data:{damageReports:r}})}else console.error("FEHLER CDC: ",e.errorMessage)}}));function Og(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Rg(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rg(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Rg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Pg=Ig([nn.K],Pg);var Mg=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},qg=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ng=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Vg=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this._apiService=new Pg,this._storageService=new uv,this._stateService=new Jm,this._viewController=new rv,this._spinnerModalService=new up,this._googleAnalyticsService=new ev,this._continueButton=this._element.querySelector("#step5-finish"),this.addEventListeners=function(){var e=n._element.querySelector("#damageReportSummaryPart1").querySelector(Um.PART).querySelector("button"),t=n._element.querySelector("#damageReportSummaryPart2").querySelector(Um.PART).querySelector("button"),r=n._element.querySelector("#damageReportSummaryPart3").querySelector(Um.PART).querySelector("button"),a=n._element.querySelector("#damageReportSummaryPart4").querySelector(Um.PART).querySelector("button"),i=n._element.querySelector("#damageReportSummaryVehicleInsurerTile").querySelector("button"),o=n._element.querySelector("#damageReportSummaryVehicleHolderTile").querySelector("button"),s=n._element.querySelector("#damageReportSummaryVehicleDriverTile").querySelector("button"),c=n._element.querySelector("#driveInAppointment").querySelector("button"),l=n._element.querySelector("#driveInGarage").querySelector("button");e.addEventListener("click",(function(){n._viewController.changeView(xm.STEP_1B),n._googleAnalyticsService.backEvent("step 10 - overview",e.textContent.trim())})),t.addEventListener("click",(function(){n._viewController.changeView(xm.STEP_2),n._googleAnalyticsService.backEvent("step 10 - overview",t.textContent.trim())})),r.addEventListener("click",(function(){n._viewController.changeView(xm.STEP_3A),n._googleAnalyticsService.backEvent("step 10 - overview",r.textContent.trim())})),a.addEventListener("click",(function(){n._viewController.changeView(xm.STEP_3B),n._googleAnalyticsService.backEvent("step 10 - overview",a.textContent.trim())})),i.addEventListener("click",(function(){n._viewController.changeView(xm.STEP_4),n._googleAnalyticsService.backEvent("step 10 - overview",i.textContent.trim())})),o.addEventListener("click",(function(){n._viewController.changeView(xm.STEP_1E),n._googleAnalyticsService.backEvent("step 10 - overview",o.textContent.trim())})),s.addEventListener("click",(function(){n._viewController.changeView(xm.STEP_1E),n._googleAnalyticsService.backEvent("step 10 - overview",s.textContent.trim())})),c.addEventListener("click",(function(){n._viewController.changeView(xm.STEP_3C),n._googleAnalyticsService.backEvent("step 10 - overview",c.textContent.trim())})),l.addEventListener("click",(function(){n._viewController.changeView(xm.STEP_3A),n._googleAnalyticsService.backEvent("step 10 - overview",l.textContent.trim())}));var u=n._apiService.sendDamageReport,d=nc({id:"recaptcha",onCompleted:function(e){return Ng(this,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u(e);case 2:window.sessionStorage.getItem("garage.presetGarage")&&window.sessionStorage.removeItem("garage.presetGarage");case 3:case"end":return t.stop()}}),t)})))}});n._continueButton.addEventListener("click",(function(){return Ng(n,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._googleAnalyticsService.step10OverviewEvent(this._continueButton.textContent.trim()),e.next=3,d.execute();case 3:case"end":return e.stop()}}),e,this)})))})),n._stateService.on(km.STEP,(function(e){e===xm.STEP_5&&n.loadSummaryObjects()})),n._stateService.on(km.CHOSEN_DAMAGE_CATEGORY,(function(e){n.damageTypeString=e.headline})),n._stateService.on(km.DRIVE_IN_ERROR,(function(){n._spinnerModalService.setErrorMSG("damageReport-ec2-spinner",n._element.dataset.driveinError),n._spinnerModalService.showError("damageReport-ec2-spinner")})),n._stateService.on(km.ERROR,(function(){n._spinnerModalService.setErrorMSG("damageReport-ec2-spinner",n._element.dataset.normalError),n._spinnerModalService.showError("damageReport-ec2-spinner")}))},this.loadSummaryObjects=function(){var e=n._storageService.getImageList(
6);e&&n.setUpDamageImgTile(e);var t=n._storageService.getDamageDescription();t&&n.setUpDescriptionAndDamageTile(t);var r=n._storageService.getEC2Vehicle();r&&n.setUpVehicleTile(r);var a=n._storageService.getGaragesData();a&&!a.garage.isDriveIn&&n.setUpGarageTile(a.garage);var i=n._storageService.getAdditionalServices();i&&!a.garage.isDriveIn&&n.setUpServiceTile(i);var o=n._storageService.getDriveInAppointment();o&&a.garage.isDriveIn&&n.setUpDriveInTile(o,a);var s=n._storageService.getVehicleHolder();s&&n.setUpVehicleHolderTile(s);var c=n._storageService.getDriver();c&&n.setUpDriverTile(c);var l=n._storageService.getPolicyHolder();l&&n.setUpInsurerTile(l)},this.init()}),[{key:"init",value:function(){this.addEventListeners()}},{key:"setUpDamageImgTile",value:function(e){var t=this._element.querySelector("#damageReportSummaryImgTile"),n=t.querySelector(".damage-report__step-5__tile-img--image-list"),r=t.querySelector(".damage-report__step-5__tile-img--no-img"),a=e.DamageReportImageFiles;a.length>0?(n.innerHTML="",n.hidden=!1,r.hidden=!0,a.forEach((function(e,t){var r=document.createElement("div");r.classList.add("damage-report__step-5__tile-img-wrapper"),r.id="damage-report-image-".concat(t+1);var a=document.createElement("img");a.classList.add("damage-report__step-5__tile-img"),a.src=e.file,a.alt=e.displayName,a.loading="eager";var i=document.createElement("div");i.classList.add("damage-report__step-5__tile-img-container"),i.appendChild(a),r.appendChild(i);var o=document.createElement("div");o.classList.add("damage-report__step-5__tile-img-text");var s=document.createElement("span");s.classList.add("damage-report__step-5__tile-img-text-name"),s.textContent=e.name,o.appendChild(s);var c=document.createElement("span");c.classList.add("damage-report__step-5__tile-img-text-size");var l=e.sizeBytes/1048576;c.textContent="("+l.toLocaleString("de-DE",{maximumFractionDigits:2})+" MB)",o.appendChild(c),r.appendChild(o),n.appendChild(r)}))):(n.hidden=!0,r.hidden=!1)}},{key:"setUpDescriptionAndDamageTile",value:function(e){var t=this._element.querySelector("#damageReportSummaryDescriptionTile"),n=this._element.querySelector("#damageReportSummaryDamageTile"),r=n.querySelector(Um.TILE_CONTENT);e.description.length>0?t.querySelector(".damage-report__step-5__tile-content-wrapper").textContent=e.description:t.hidden=!0,n.querySelector(Um.TILE_HEADLINE).textContent=this.damageTypeString,r.querySelector(".damage-report__step-5__tile-content-location-value").textContent=e.place,r.querySelector(".damage-report__step-5__tile-content-date-value").textContent=e.selectedDate.toLocaleDateString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"}),e.insuranceOtherName?r.querySelector(".damage-report__step-5__tile-content-insurance-value").textContent=e.insuranceOtherName:r.querySelector(".damage-report__step-5__tile-content-insurance-value").textContent=e.selectedInsurer.name}},{key:"setUpVehicleTile",value:function(e){var t=this._storageService.getVehicleData(),n=this._element.querySelector("#damageReportSummaryVehicleTile"),r=n.querySelector(Um.TILE_CONTENT),a=r.querySelector(".damage-report__step-5__tile-content-licence"),i=r.querySelector(".damage-report__step-5__tile-content-registration"),o=r.querySelector(".damage-report__step-5__tile-content-chassis");n.querySelector(Um.TILE_HEADLINE).textContent=t.brandName.toUpperCase()+" "+e.vehicleModel,o.querySelector(Um.TILE_CONTENT_VALUE).textContent=e.vehicleChassis,a.querySelector(Um.TILE_CONTENT_VALUE).textContent=e.vehiclePlate,i.querySelector(Um.TILE_CONTENT_VALUE).textContent=e.vehicleFirstUse,r.querySelector(".damage-report__step-5__tile-content-leasing").hidden=0===e.vehicleLeasing,r.querySelector(".damage-report__step-5__tile-content-abo").hidden=0===e.vehicleSubscription}},{key:"setUpServiceTile",value:function(e){this._element.querySelector("#damageReportSummaryPart4").hidden=!1;var t=this._element.querySelector("#damageReportSummaryServiceTile").querySelector(".damage-report__step-5__tile-content-wrapper");t.innerHTML="";var n=document.createDocumentFragment();if(e.replacementCar){var r=document.createElement("div");r.classList.add("damage-report__step-5__tile-content-wrapper-value");var a=document.createElement("span");
6a.textContent=Granite.I18n.get("apps.amag-ch.components.content.otv.booking.replacementCar"),r.appendChild(a),n.appendChild(r)}if(0===e.additionalServices.length&&!e.replacementCar){var i=document.createElement("div");i.classList.add("damage-report__step-5__tile-content-wrapper-value");var o=document.createElement("span");o.textContent=Granite.I18n.get("apps.amag-ch.components.content.damageReport.step3B.additionalServices.noAdditionalServices"),i.appendChild(o),n.appendChild(i)}e.additionalServices.length>0&&e.additionalServices.forEach((function(e){var t=document.createElement("div");t.classList.add("damage-report__step-5__tile-content-wrapper-value");var r=document.createElement("span");r.textContent=e.headline,t.appendChild(r);var a=document.createElement("div");a.innerHTML=e.content,t.appendChild(a),n.appendChild(t)})),t.appendChild(n)}},{key:"setUpGarageTile",value:function(e){this._element.querySelector("#damageReportSummaryPart3").hidden=!1,this._element.querySelector("#damageReportSummaryDriveInPart").hidden=!0;var t=this._element.querySelector("#damageReportSummaryGarageTile"),n=t.querySelector(Um.TILE_CONTENT),r=n.querySelector(".damage-report__step-5__garage-brands-wrapper");t.querySelector(Um.TILE_HEADLINE).textContent=e.name,r.innerHTML="";var a,i=Og(e.serviceBrands);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=document.createElement("span");s.classList.add("damage-report__step-3a__garage-selected-brands"),s.textContent=Granite.I18n.get(o),r.appendChild(s)}}catch(e){i.e(e)}finally{i.f()}n.querySelector(".damage-report__step-5__garage-street").textContent=e.street,n.querySelector(".damage-report__step-5__garage-city").textContent="".concat(e.zip," ").concat(e.city),n.querySelector(".damage-report__step-5__garage-route").href="https://www.google.com/maps/dir/?api=1&destination=".concat(e.route)}},{key:"setUpVehicleHolderTile",value:function(e){var t=this._element.querySelector("#damageReportSummaryVehicleHolderTile").querySelector(Um.TILE_CONTENT),n="CHE"===e.country?Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.ch"):Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.li"),r="m"===e.salutation?Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.male"):Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.female");t.querySelector(".damage-report__step-5__tile-content-holder-company").textContent=e.company,t.querySelector(".damage-report__step-5__tile-content-holder-name").textContent="".concat(r," ").concat(e.firstname," ").concat(e.lastname),t.querySelector(".damage-report__step-5__tile-content-holder-street").textContent="".concat(e.street," ").concat(e.housenr),t.querySelector(".damage-report__step-5__tile-content-holder-place").textContent="".concat(e.zip," ").concat(e.city),t.querySelector(".damage-report__step-5__tile-content-holder-country").textContent=n,t.querySelector(".damage-report__step-5__tile-content-holder-mail").textContent=e.email,t.querySelector(".damage-report__step-5__tile-content-holder-phone").textContent="".concat(e.prefix," ").concat(e.phone)}},{key:"setUpDriverTile",value:function(e){var t=this._element.querySelector("#damageReportSummaryVehicleDriverTile"),n=t.querySelector(Um.TILE_CONTENT),r=["CHE","CH"].includes(e.country)?Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.ch"):Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.li"),a="m"===e.salutation?Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.male"):Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.female");n.querySelector(".damage-report__step-5__tile-content-driver-name").textContent="".concat(a," ").concat(e.firstname," ").concat(e.lastname),n.querySelector(".damage-report__step-5__tile-content-driver-street").textContent="".concat(e.street," ").concat(e.housenr),n.querySelector(".damage-report__step-5__tile-content-driver-place").textContent="".concat(e.zip," ").concat(e.city),n.querySelector(".damage-report__step-5__tile-content-driver-country").textContent=r,t.hidden=!1}},{key:"setUpInsurerTile",value:function(e){var t=this._element.querySelector("#damageReportSummaryVehicleInsurerTile").querySelector(Um.TILE_CONTENT),n="",r="";["CHE","CH"].includes(e.country)&&(r=Granite.I18n.get("apps.amag-ch.components.c
6ontent.damageReport.screen-1e.form.country.ch")),["LIE","LI"].includes(e.country)&&(r=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.li")),"m"==e.salutation?n=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.male"):"f"==e.salutation&&(n=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.female")),t.querySelector(".damage-report__step-5__tile-content-insurer-company").textContent=e.company,t.querySelector(".damage-report__step-5__tile-content-insurer-name").textContent="".concat(n," ").concat(e.firstname," ").concat(e.lastname),t.querySelector(".damage-report__step-5__tile-content-insurer-street").textContent="".concat(e.street," ").concat(e.housenr),t.querySelector(".damage-report__step-5__tile-content-insurer-place").textContent="".concat(e.zip," ").concat(e.city),t.querySelector(".damage-report__step-5__tile-content-insurer-country").textContent=r,t.querySelector(".damage-report__step-5__tile-content-insurer-mail").textContent=e.email,t.querySelector(".damage-report__step-5__tile-content-insurer-phone").textContent="".concat(e.prefix," ").concat(e.phone)}},{key:"setUpDriveInTile",value:function(e,t){this._element.querySelector("#damageReportSummaryPart3").hidden=!0,this._element.querySelector("#damageReportSummaryPart4").hidden=!0;var n=this._element.querySelector("#damageReportSummaryDriveInPart");n.hidden=!1;var r=n.querySelector("#driveInGarage");r.querySelector(Um.TILE_HEADLINE).textContent=Granite.I18n.get("apps.amag-ch.components.content.damageReport.confirmation.garage.driveInGaragePrefix")+" ".concat(t.garage.name),r.querySelector(".damage-report__step-5__garage-street").textContent=t.garage.street,r.querySelector(".damage-report__step-5__garage-city").textContent="".concat(t.garage.zip," ").concat(t.garage.city),r.querySelector(".damage-report__step-5__garage-route").href="https://www.google.com/maps/dir/?api=1&destination=".concat(t.garage.route);var a=n.querySelector("#driveInAppointment"),i=new Date(e.appointment.appointment.date),o=i.getFullYear(),s=i.getMonth()+1,c=i.getDate(),l="".concat(c<10?"0"+c:c,".").concat(s<10?"0"+s:s,".").concat(o);a.querySelector("#date").textContent=l;var u,d=e.appointment.appointment.time.split(":"),h=parseInt(d[0]);u=parseInt(d[1])<60?"".concat(d[0],":").concat(d[1]," "):"".concat(h+1,":","00"," "),u+=(0,it.Xo)().includes("de")?Granite.I18n.get("apps.amag-ch.components.content.damageReport.step.5.time"):"",a.querySelector("#time").textContent=u}}])}();Vg=Mg([(0,At.d)({selector:".damage-report__step-5",onDomLoaded:!0}),qg("design:paramtypes",[HTMLElement])],Vg);var Fg=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Bg=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},jg=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Hg=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this._stateService=new Jm,this._googleAnalyticsService=new ev,this.ec2CaseId=void 0,this.adjustDriveInVisibility=function(){var e=n._storage.getGaragesData().garage,t=n._element.querySelector(".damage-report__confirmation__drive-in"),r=n._element.querySelector(".damage-report__confirmation-drive-in-further-steps");if(t.hidden=!e.isDriveIn,r.hidden=!e.isDriveIn,n._element.querySelector(".further-steps").hidden=e.isDriveIn,e.isDriveIn){var a=n._storage.getDriveInAppointment(),i=t.querySelector("#damageReportAppointment"),o=i.querySelector("#appointmentDate"),s=i.querySelector("#appointmentTime"),c=new Date(a.appointment.appointment.date);o.querySelector(".damage-report__confirmation__tile-headline").textContent=c.toLocaleDateString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"});var l="";l+="".concat(a.appointment.appointment.time," "),l+=(0,it.Xo)().includes("de")?Granite.I18n.get("apps.amag-ch.components.c
6ontent.damageReport.step.5.time"):"",s.querySelector(".damage-report__confirmation__tile-headline").textContent=l}},this.fillGarageData=function(){return jg(n,void 0,void 0,ht().mark((function e(){var t,n,r,a,i,o,s,c,l,u=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._storage.getGaragesData().garage,e.next=3,ai.getFavoriteGarageId();case 3:n=e.sent,r=this._element.querySelector("#damageReportGarage"),(a=r.querySelector(".damage-report__confirmation__tile-headline")).querySelector("span").textContent=t.isDriveIn?Granite.I18n.get("apps.amag-ch.components.content.damageReport.confirmation.garage.driveInGaragePrefix")+" ".concat(t.name):t.name,t.isDriveIn?a.querySelector(".damage-report__confirmation__garage-type-icon-driveIn").hidden=!1:a.querySelector(".damage-report__confirmation__garage-type-icon").hidden=!1,r.querySelector(".damage-report__confirmation__garage-street").textContent=t.street,r.querySelector(".damage-report__confirmation__garage-city").textContent="".concat(t.zip," ").concat(t.city),r.querySelector(".damage-report__confirmation__garage-route").href="https://www.google.com/maps/dir/?api=1&destination=".concat(t.route),r.querySelector(".damage-report__confirmation__garage-detail").href=t.path,(i=r.querySelector(".damage-report__confirmation__garage-phone")).href="tel:".concat(t.phone),i.querySelector("span").textContent=(0,it.g_)(t.phone),(o=r.querySelector(".damage-report__confirmation__garage-mail")).href="mailto:".concat(t.mail),o.querySelector("span").textContent=t.mail,!t.isDriveIn&&n&&t.id!==n&&(s=this._element.querySelector("#garageFavouriteInfo"),c=s.querySelector(".damage-report__confirmation__infotext-inner"),l=this._element.querySelector(".damage-report__confirmation__garage-favourite"),c.innerHTML=c.innerHTML.replaceAll("$[garageName]",t.name),s.hidden=!1,l.addEventListener("click",(function(){ai.setFavoriteGarage(t.id,(function(e){"OK"===e.status&&(s.hidden=!0,u.addToast(t.name),(0,it.yZ)(t))}))}))),it.lp.isMobile()||Vl.initGoogleMaps(r.querySelector(".damage-report__confirmation__maps"),t.position),this._element.querySelector("#confirmationSpinner").hidden=!0;case 21:case"end":return e.stop()}}),e,this)})))},this._storage=new uv,this.init()}),[{key:"init",value:function(){this.initListener(),this.adjustStaticLinksVisibility()}},{key:"initListener",value:function(){var e=this,t=this._element.querySelector(".damage-report__confirmation-link--report"),n=this._element.querySelector(".damage-report__confirmation-link--profile");this._stateService.on(km.SUCCESS,(function(){e.ec2CaseId=e._storage.getEC2CaseId(),e.fillEc2ReferenceNumber(),e.fillGarageData(),e.updateDamageReportDetailPageLink(),e.adjustDriveInVisibility()})),t.addEventListener("click",(function(){return e._googleAnalyticsService.step12UserInteractionAfterJourneyCompletionEvent(t.querySelector("a").textContent.trim())})),n.addEventListener("click",(function(){return e._googleAnalyticsService.step12UserInteractionAfterJourneyCompletionEvent(n.querySelector("a").textContent.trim())})),this._stateService.on(km.REFRESH,(function(t){e.adjustStaticLinksVisibility()}))}},{key:"fillEc2ReferenceNumber",value:function(){this._element.querySelector(".damage-report__confirmation-reference-number").innerText=this.ec2CaseId}},{key:"updateDamageReportDetailPageLink",value:function(){var e=this._element.querySelector(".damage-report__confirmation-detail-page-link"),t=new URL(e.href);t.searchParams.set(Bm.EC2_REFERENCE,this.ec2CaseId),e.href=t.href}},{key:"adjustStaticLinksVisibility",value:function(){var e=this._element.querySelector(".damage-report__confirmation-link--profile"),t=this._element.querySelector(".damage-report__confirmation-link--report");(0,it.EW)()||(e.hidden=!0,t.hidden=!0)}},{key:"addToast",value:function(e){var t=this._element.dataset.toastMessage;t=t.replace("$[garageName]",e);var n=(0,Ct.ox)(t,3e3,["success-toast","damage-report-confirmation-success-toast"],(0,Ct.l4)("copyToastClose"),(0,Ct.MM)("copyToastIcon"));document.body.appendChild(n),n.show()}}])}();Hg=Fg([(0,At.d)({selector:".damage-report__confirmation",onDomLoaded:!0}),Bg("design:paramtypes",[HTMLElement])],Hg);var Gg,Ug=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Wg=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},zg=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this._viewController=new rv,this._stateService=new Jm,this._steps=this._element.querySelectorAll(".damageReport-nav__list .nav-link"),this._mobileLeft=this._element.querySelector(".scroll-left"),this._mobileRight=this._element.querySelector(".scroll-right"),this._showableStepStates=[xm.STEP_1A,xm.STEP_2,xm.STEP_3A,xm.STEP_4,xm.STEP_5],this._currentIndex=0,this.addEventListeners=function(){n._mobileLeft.addEventListener("click",n.scrollLeft),n._mobileRight.addEventListener("click",n.scrollRight)},this.listenToStateChange=function(){n._stateService.on(km.STEP,(function(e){var t="";switch(e){case xm.STEP_1B:case xm.STEP_1C:case xm.STEP_1D:case xm.STEP_1E:t=xm.STEP_1A;break;case xm.STEP_3B:case xm.STEP_3C:t=xm.STEP_3A;break;default:t=e}n._steps.forEach((function(e){e.classList.remove("active")})),n._steps.forEach((function(e){e.getAttribute("data-tab-event")===t&&(e.classList.add("active"),n.scrollToButton(e))})),n.showAsChecked(t),n._steps.forEach((function(e){e.removeEventListener("click",n.changeView),e.classList.contains("checked")&&e.addEventListener("click",n.changeView)})),n.checkButtonVisibility()}))},this.showAsChecked=function(e){var t=Array.from(n._steps);t.forEach((function(e){return e.classList.remove("checked")}));var r=t.find((function(t){return t.getAttribute("data-tab-event")===e}));
6t.slice(0,t.indexOf(r)).forEach((function(e){return e.classList.add("checked")}))},this.scrollLeft=function(){n._currentIndex>0&&(n._currentIndex--,n.scrollToButton(n._steps[n._currentIndex]),n.checkButtonVisibility())},this.scrollRight=function(){n._currentIndex<4&&(n._currentIndex++,n.scrollToButton(n._steps[n._currentIndex]),n.checkButtonVisibility())},this.scrollToButton=function(e){var t=e.parentElement.parentElement,n=e.offsetLeft-t.offsetWidth/2+e.offsetWidth/2;t.scrollLeft=n},this.checkButtonVisibility=function(){4===n._currentIndex?n._mobileRight.classList.add("d-none"):n._mobileRight.classList.remove("d-none"),0===n._currentIndex?n._mobileLeft.classList.add("d-none"):n._mobileLeft.classList.remove("d-none")},this.changeView=function(e){var t=e.currentTarget;n.scrollToButton(t),n._steps.forEach((function(e){e.classList.remove("active")}));var r=t.getAttribute("data-tab-event");t.classList.add("active");var a=xm[r];n._viewController.changeView(a)},this.init()}),[{key:"init",value:function(){this.addEventListeners(),this.listenToStateChange(),this.checkButtonVisibility()}}])}();function $g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($g=function(){return!!e})()}zg=Ug([(0,At.d)({selector:".damageReport-nav",onDomLoaded:!0}),Wg("design:paramtypes",[HTMLElement])],zg),function(e){e.CDC_LOADING="CDC_LOADING",e.CDC_LOADED="CDC_LOADED",e.EC2_LOADING="EC2_LOADING",e.EC2_LOADED="EC2_LOADED",e.SHOW_LIST_VIEW="SHOW_LIST_VIEW",e.RE_RENDER_LIST_VIEW="RE_RENDER_LIST_VIEW",e.SHOW_DETAIL_VIEW="SHOW_DETAIL_VIEW",e.SHOW_CHANGE_VIEW="SHOW_CHANGE_VIEW",e.SHOW_SUMMARY_VIEW="SHOW_SUMMARY_VIEW",e.CDC_ERROR="CDC_ERROR",e.EC2_ERROR="RC2_ERROR",e.SHOW_CONFIRMATION_VIEW_EDIT="SHOW_CONFIRMATION_VIEW_EDIT",e.SHOW_CONFIRMATION_VIEW_CANCEL="SHOW_CONFIRMATION_VIEW_CANCEL"}(Gg||(Gg={}));var Yg=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Zg=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Kg=function(e){function t(){return(0,pt.A)(this,t),e=this,n=t,n=(0,Ja.A)(n),(0,Xa.A)(e,$g()?Reflect.construct(n,r||[],(0,Ja.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,Qa.A)(t,e),(0,ft.A)(t)}(dp);Kg=Yg([nn.K,Zg("design:paramtypes",[])],Kg);var Xg={i18nTitleState1:Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.overview.state.1.title.labelText"),i18nTitleState2:Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.overview.state.2.title.labelText"),i18nTextState2:Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.overview.state.2.text.labelText"),i18nTitleState3:Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.overview.state.3.title.labelText"),arrowRightSvg:'<svg class="size-l damage-report-overview__tile-detail-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M18.867 11.9603C18.867 12.2463 18.744 12.5193 18.531 12.7093L5.95698 23.8333C5.75098 24.0163 5.43398 23.9973 5.25198 23.7903C5.17098 23.6983 5.12598 23.5813 5.12598 23.4593C5.12598 23.3163 5.18798 23.1793 5.29498 23.0843L17.868 11.9593L5.29498 0.833311C5.18798 0.738312 5.12598 0.60231 5.12598 0.458311C5.12598 0.336311 5.17098 0.218311 5.25098 0.127312C5.43398 -0.079689 5.75098 -0.0986901 5.95698 0.0843105L18.531 11.2103C18.561 11.2363 18.588 11.2643 18.614 11.2933C18.778 11.4793 18.867 11.7153 18.867 11.9603Z" fill="#172983" />\n </svg>',svgState1:'<svg class="damage-report-overview__tile-status-icon" width="47" height="47" viewBox="0 0 47 47" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M27.4007 0.863354C26.584 0.724188 25.8092 1.2734 25.67 2.09006C25.5308 2.90671 26.08 3.68156 26.8967 3.82072C29.7989 4.31528 32.5561 5.44446 34.9715 7.12765C37.3869 8.81083 39.4009
611.0065 40.8698 13.5579C42.3387 16.1093 43.2261 18.9536 43.4688 21.8876C43.7116 24.8216 43.3036 27.773 42.2739 30.5311C41.9842 31.3072 42.3785 32.1713 43.1546 32.461C43.9307 32.7507 44.7948 32.3564 45.0845 31.5803C46.2686 28.4085 46.7378 25.0144 46.4586 21.6403C46.1795 18.2661 45.1589 14.9953 43.4697 12.0611C41.7805 9.12701 39.4644 6.60198 36.6867 4.66632C33.909 2.73065 30.7382 1.4321 27.4007 0.863354ZM18.6289 29.8945C18.7773 29.9648 18.9609 30 19.1797 30H27.2656C27.4844 30 27.668 29.9648 27.8164 29.8945C27.9727 29.8164 28.0977 29.7148 28.1914 29.5898C28.2852 29.4648 28.3516 29.3203 28.3906 29.1562C28.4375 28.9844 28.4609 28.8008 28.4609 28.6055C28.4609 28.418 28.4375 28.2383 28.3906 28.0664C28.3516 27.8945 28.2852 27.7461 28.1914 27.6211C28.0977 27.4961 27.9727 27.3984 27.8164 27.3281C27.668 27.25 27.4844 27.2109 27.2656 27.2109H24.6992V15.8203C24.6992 15.625 24.6758 15.4414 24.6289 15.2695C24.5898 15.0977 24.5195 14.9492 24.418 14.8242C24.3242 14.6914 24.2031 14.5898 24.0547 14.5195C23.9062 14.4414 23.7266 14.4023 23.5156 14.4023H19.1797C18.9609 14.4023 18.7773 14.4414 18.6289 14.5195C18.4805 14.5898 18.3594 14.6914 18.2656 14.8242C18.1719 14.9492 18.1016 15.0977 18.0547 15.2695C18.0156 15.4414 17.9961 15.625 17.9961 15.8203C17.9961 16.0078 18.0156 16.1875 18.0547 16.3594C18.1016 16.5234 18.1719 16.668 18.2656 16.793C18.3594 16.918 18.4805 17.0195 18.6289 17.0977C18.7773 17.168 18.9609 17.2031 19.1797 17.2031H21.7461V27.2109H19.1797C18.9609 27.2109 18.7773 27.25 18.6289 27.3281C18.4805 27.3984 18.3594 27.4961 18.2656 27.6211C18.1719 27.7461 18.1016 27.8945 18.0547 28.0664C18.0156 28.2383 17.9961 28.418 17.9961 28.6055C17.9961 28.8008 18.0156 28.9844 18.0547 29.1562C18.1016 29.3203 18.1719 29.4648 18.2656 29.5898C18.3594 29.7148 18.4805 29.8164 18.6289 29.8945Z" fill="#801977"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M20.9027 1.69594C20.9941 2.2406 20.6267 2.75626 20.0821 2.84769C17.0335 3.35944 14.1355 4.53791 11.5949 6.29898C9.05441 8.06004 6.93399 10.3603 5.38506 13.0354C3.83614 15.7106 2.89691 18.6947 2.63444 21.7748C2.37196 24.8549 2.79271 27.9549 3.86664 30.8536C4.05851 31.3715 3.79422 31.9468 3.27634 32.1387C2.75845 32.3306 2.18308 32.0663 1.99121 31.5484C0.815002 28.3737 0.354184 24.9784 0.641658 21.605C0.929133 18.2316 1.95781 14.9632 3.65425 12.0333C5.35069 9.10335 7.67305 6.58406 10.4556 4.65527C13.238 2.72648 16.412 1.43577 19.751 0.875284C20.2956 0.783854 20.8113 1.15127 20.9027 1.69594ZM5.7819 36.6174C6.20788 36.2659 6.83816 36.3263 7.18967 36.7522C9.15715 39.1365 11.6267 41.057 14.4221 42.3767C17.2175 43.6963 20.2698 44.3825 23.361 44.3863C26.4522 44.3902 29.5062 43.7115 32.3049 42.3988C35.1035 41.086 37.5778 39.1717 39.5512 36.7923C39.9038 36.3672 40.5342 36.3083 40.9593 36.6609C41.3844 37.0135 41.4432 37.6439 41.0907 38.069C38.9293 40.675 36.2194 42.7717 33.1542 44.2095C30.089 45.6472 26.7442 46.3905 23.3585 46.3863C19.9729 46.3822 16.63 45.6306 13.5683 44.1853C10.5067 42.7399 7.80193 40.6365 5.64707 38.0252C5.29556 37.5992 5.35592 36.9689 5.7819 36.6174Z" fill="#B3B3B3"/>\n </svg>',svgState2:'<svg class="damage-report-overview__tile-status-icon" width="47" height="47" viewBox="0 0 47 47" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M20.9027 1.69594C20.9941 2.2406 20.6267 2.75626 20.0821 2.84769C17.0335 3.35944 14.1355 4.53791 11.5949 6.29898C9.05441 8.06004 6.93399 10.3603 5.38506 13.0354C3.83614 15.7106 2.89691 18.6947 2.63444 21.7748C2.37196 24.8549 2.79271 27.9549 3.86664 30.8536C4.05851 31.3715 3.79422 31.9468 3.27634 32.1387C2.75845 32.3306 2.18308 32.0663 1.99121 31.5484C0.815002 28.3737 0.354184 24.9784 0.641658 21.605C0.929133 18.2316 1.95781 14.9632 3.65425 12.0333C5.35069 9.10335 7.67305 6.58406 10.4556 4.65527C13.238 2.72648 16.412 1.43577 19.751 0.875284C20.2956 0.783854 20.8113 1.15127 20.9027 1.69594Z" fill="#B3B3B3"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M27.4021 0.863354C26.5854 0.724188 25.8106 1.2734 25.6714 2.09006C25.5322 2.90671 26.0814 3.68156 26.8981 3.82072C29.8003 4.31528 32.5575 5.44446 34.9729 7.12765C37.3883 8.81083 39.4023 11.0065 40.8712 13.5579C42.34 16.1093 43.2275 18.9536 43.4702 21.8876C43.713 24.8216 43.3049 27.773 42.2753 30.5311C41.9856 31.3072 42.3799 32.1713 43.156 32.461C43.9321 32.7507 44.7962 32.3564 45.0859 31.5803C46.2699 28.4085 46.7392 25.0144 46.46 21.6403C46.1809 18.2661 45.1603 14.9953 43.4711 12.0611C41.7819 9.12701 39.4658 6.60198 36.6881 4.66632C33.9104 2.73065 30.7396 1.4321 27.4021 0.863354ZM7.96168 36.1153C7.43441 35.4764 6.48899 35.3858 5.85002 35.9131C5.21106 36.4404 5.12051 37.3858 5.64778 38.0248C7.80263 40.6361 10.5074 42.7395 13.569 44.1848C16.6307 45.6301 19.9736 46.3817 23.3593 46.3859C26.7449 46.3901 30.0897 45.6468 33.1549 44.209C36.2201 42.7713 38.9301 40.6746 41.0914 38.0686C41.6202 37.4309 41.532 36.4853 40.8943 35.9564C40.2567 35.4276 39.311 35.5158 38.7822 36.1535C36.9028 38.4195 34.5463 40.2428 31.8809 41.493C29.2155 42.7432 26.307 43.3896 23.363 43.3859C20.4189 43.3823 17.512 42.7287 14.8497 41.4719C12.1875 40.2151 9.83547 38.3861 7.96168 36.1153ZM21.4883 16.8984C21.7617 16.8672 22.0469 16.8516 22.3438 16.8516C22.7891 16.8516 23.1641 16.8906 23.4688 16.9688C23.7734 17.0469 24.0195 17.1758 24.207 17.3555C24.4023 17.5352 24.5391 17.7695 24.6172 18.0586C24.7031 18.3398 24.7461 18.6875 24.7461 19.1016C24.7461 19.4766 24.7148 19.8008 24.6523 20.0742C24.5977 20.3477 24.4961 20.5898 24.3477 20.8008C24.1992 21.0117 24.0039 21.2031 23.7617 21.375C23.5195 21.5469 23.2148 21.7188 22.8477 21.8906L20.6914 22.875C20.1758 23.1172 19.7344 23.3711 19.3672 23.6367C19 23.9023 18.6992 24.2031 18.4648 24.5391C18.2305 24.8672 18.0586 25.2422 17.9492 25.6641C17.8398 26.0781 17.7852 26.5547 17.7852 27.0938V28.7578C17.7852 29.1953 17.9258 29.5117 18.207 29.707C18.4883 29.9023 18.8359 30 19.25 30H26.9023C27.332 30 27.6406 29.8672 27.8281 29.6016C28.0156 29.3281 28.1094 28.99
661 28.1094 28.6055C28.1094 28.2227 28.0156 27.8945 27.8281 27.6211C27.6406 27.3477 27.332 27.2109 26.9023 27.2109H20.7852V26.8594C20.7852 26.7109 20.8047 26.5742 20.8438 26.4492C20.8906 26.3242 20.9727 26.1992 21.0898 26.0742C21.2148 25.9414 21.3867 25.8086 21.6055 25.6758C21.832 25.5352 22.125 25.375 22.4844 25.1953L24.1953 24.3867C24.8125 24.0898 25.3477 23.7969 25.8008 23.5078C26.2617 23.2109 26.6406 22.8672 26.9375 22.4766C27.2422 22.0781 27.4688 21.6133 27.6172 21.082C27.7656 20.543 27.8398 19.8828 27.8398 19.1016C27.8398 18.1328 27.7383 17.332 27.5352 16.6992C27.3398 16.0586 27.0273 15.5508 26.5977 15.1758C26.168 14.8008 25.6133 14.5391 24.9336 14.3906C24.2617 14.2344 23.4531 14.1562 22.5078 14.1562C21.9297 14.1562 21.4297 14.168 21.0078 14.1914C20.5938 14.2148 20.2383 14.2422 19.9414 14.2734C19.6523 14.3047 19.4141 14.3398 19.2266 14.3789C19.0469 14.4102 18.9102 14.4414 18.8164 14.4727C18.4883 14.5664 18.2344 14.7305 18.0547 14.9648C17.875 15.1992 17.7852 15.4922 17.7852 15.8438C17.7852 16.2266 17.8711 16.5352 18.043 16.7695C18.2227 16.9961 18.5273 17.1094 18.957 17.1094C19.2773 17.1094 19.5781 17.0977 19.8594 17.0742C20.1406 17.043 20.4141 17.0117 20.6797 16.9805C20.9531 16.9492 21.2227 16.9219 21.4883 16.8984Z" fill="#801977"/>\n </svg>',svgState3:'<svg class="damage-report-overview__tile-status-icon" width="47" height="47" viewBox="0 0 47 47" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M27.4013 0.863354C26.5847 0.724188 25.8098 1.2734 25.6707 2.09006C25.5315 2.90671 26.0807 3.68156 26.8974 3.82072C29.7996 4.31528 32.5568 5.44446 34.9722 7.12765C37.3876 8.81083 39.4016 11.0065 40.8705 13.5579C42.3393 16.1093 43.2268 18.9536 43.4695 21.8876C43.7123 24.8216 43.3042 27.773 42.2746 30.5311C41.9849 31.3072 42.3792 32.1713 43.1553 32.461C43.9314 32.7507 44.7954 32.3564 45.0852 31.5803C46.2692 28.4085 46.7384 25.0144 46.4593 21.6403C46.1802 18.2661 45.1596 14.9953 43.4704 12.0611C41.7812 9.12701 39.4651 6.60198 36.6874 4.66632C33.9097 2.73065 30.7389 1.4321 27.4013 0.863354ZM20.2476 3.83346C21.0646 3.69632 21.6157 2.92283 21.4786 2.10583C21.3414 1.28884 20.568 0.73771 19.751 0.874856C16.412 1.43534 13.238 2.72605 10.4555 4.65484C7.67305 6.58363 5.35069 9.10292 3.65425 12.0329C1.95781 14.9628 0.929133 18.2312 0.641658 21.6046C0.354184 24.978 0.815002 28.3732 1.99121 31.548C2.27902 32.3248 3.14207 32.7212 3.9189 32.4334C4.69573 32.1456 5.09216 31.2826 4.80435 30.5057C3.78156 27.7451 3.38085 24.7927 3.63082 21.8593C3.8808 18.9259 4.7753 16.0839 6.25047 13.5361C7.72563 10.9883 9.74508 8.79761 12.1646 7.1204C14.5842 5.4432 17.3442 4.32084 20.2476 3.83346ZM7.96097 36.1153C7.4337 35.4764 6.48828 35.3858 5.84932 35.9131C5.21035 36.4404 5.1198 37.3858 5.64707 38.0248C7.80192 40.6361 10.5067 42.7395 13.5683 44.1848C16.63 45.6301 19.9729 46.3817 23.3585 46.3859C26.7442 46.3901 30.089 45.6468 33.1542 44.209C36.2194 42.7713 38.9293 40.6746 41.0907 38.0686C41.6195 37.4309 41.5313 36.4853 40.8936 35.9564C40.256 35.4276 39.3103 35.5158 38.7815 36.1535C36.9021 38.4195 34.5456 40.2428 31.8802 41.493C29.2148 42.7432 26.3063 43.3896 23.3623 43.3859C20.4182 43.3823 17.5113 42.7287 14.849 41.4719C12.1867 40.2151 9.83476 38.3861 7.96097 36.1153ZM19.3435 29.1784C19.8466 29.5569 20.4466 29.7577 21.0766 29.7577C21.9812 29.7577 22.8466 29.3284 23.3935 28.6038L30.0974 19.6684C30.282 19.4215 30.3605 19.1169 30.3166 18.8123C30.2728 18.5077 30.1136 18.2377 29.8666 18.053C29.6659 17.903 29.4259 17.8223 29.1743 17.8223C28.812 17.8223 28.4682 17.9953 28.2512 18.2838L21.5474 27.2192C21.4366 27.3646 21.2682 27.45 21.0812 27.45C20.9543 27.45 20.8343 27.4107 20.7374 27.3369C20.7143 27.3207 20.6935 27.3023 20.6751 27.2838L17.2135 23.8223C16.9943 23.6054 16.7058 23.4854 16.3966 23.4854C16.0874 23.4854 15.7966 23.6054 15.5797 23.8223C15.1297 24.2723 15.1297 25.0038 15.5797 25.4538L19.0412 28.9154C19.1358 29.01 19.2351 29.0977 19.3435 29.1784Z" fill="#801977"/>\n </svg>',svgPencil:'<svg class="size-l damage-report-overview__tile-edit-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_12758_9727)">\n <path\n d="M0.498047 24.0019C0.364047 24.0019 0.239047 23.9499 0.144047 23.8559C0.0490469 23.7619 -0.00195312 23.6359 -0.00195312 23.5019C-0.00195312 23.3679 0.0500469 23.2429 0.144047 23.1479L0.878047 22.4139C0.566047 21.8819 0.517047 21.2439 0.754047 20.6669L2.37505 16.7279C2.39505 16.6799 2.42205 16.6369 2.45805 16.5949C2.46705 16.5819 2.47805 16.5699 2.48905 16.5599L3.89905 15.1499C3.90505 15.1439 3.91105 15.1389 3.91705 15.1339L17.255 1.79393C17.261 1.78793 17.267 1.78293 17.274 1.77693L18.317 0.73393C18.788 0.26193 19.416 0.00292969 20.085 0.00292969C20.754 0.00292969 21.381 0.26293 21.853 0.73393L23.267 2.14793C24.242 3.12293 24.242 4.70893 23.267 5.68393L20.807 8.14293C20.802 8.14893 20.797 8.15393 20.792 8.15893L7.43605 21.5139C7.42805 21.5229 7.41705 21.5309 7.40705 21.5389C7.36605 21.5749 7.32105 21.6029 7.27305 21.6229L3.33305 23.2449C3.09205 23.3439 2.84005 23.3939 2.58205 23.3939C2.32405 23.3939 2.07205 23.3439 1.83105 23.2449C1.74805 23.2109 1.66505 23.1699 1.58505 23.1219L0.852047 23.8549C0.757047 23.9499 0.632047 24.0019 0.498047 24.0019ZM1.68005 21.0479C1.47605 21.5449 1.71405 22.1159 2.21105 22.3199C2.33005 22.3689 2.45405 22.3929 2.58105 22.3929C2.70805 22.3929 2.83305 22.3679 2.95305 22.3189L6.19905 20.9829L3.01705 17.8009L1.68005 21.0479ZM7.08205 20.4539L7.78905 19.7469L4.25305 16.2109L3.54605 16.9179L7.08205 20.4539ZM8.49605 19.0399L19.731 7.80493L16.195 4.26993L4.96105 15.5039L8.49605 19.0399ZM20.437 7.09793L21.145 6.39093L17.609 2.85493L16.902 3.56293L20.437 7.09793ZM21.852 5.68393L22.559 4.97693C23.144 4.39193 23.144 3.43993 22.559 2.85593L21.145 1.44193C20.862 1.15893 20.486 1.00393 20.084 1.00393C19.683 1.00393 19.306 1.15993 19.023 1.44193L18.316 2.14893L21.852 5.68393Z"\n fill="#172983"\n />\n </g>\n <defs>\n <clipPath id="clip0_12758_9727">\n <rect width="24" height="24" fill="white" />\n </clipPath>\n </defs>\n </svg>',svgInfo:' <svg class="size-l damage-report-overview__tile-icon-info" viewB
6ox="0 0 32 33" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M16.0002 31.958C15.7068 31.958 15.4188 31.8593 15.1868 31.6806C13.2068 30.1566 3.3335 22.1166 3.3335 13.4593C3.3335 5.85798 8.77883 0.125977 16.0002 0.125977C23.2215 0.125977 28.6668 5.85798 28.6668 13.4593C28.6668 22.118 18.7922 30.1566 16.8135 31.6806C16.5815 31.8593 16.2922 31.958 16.0002 31.958ZM16.0002 1.45931C9.53883 1.45931 4.66683 6.61798 4.66683 13.4593C4.66683 21.4913 14.1082 29.1673 16.0002 30.6246C17.8922 29.1673 27.3335 21.494 27.3335 13.4593C27.3335 6.61798 22.4615 1.45931 16.0002 1.45931Z"\n fill="#801977"\n />\n <path\n d="M13.3337 20.1259C12.9657 20.1259 12.667 19.8272 12.667 19.4592C12.667 19.0912 12.9657 18.7926 13.3337 18.7926H15.3337V11.4592C15.3337 11.0912 15.035 10.7926 14.667 10.7926H13.3337C12.9657 10.7926 12.667 10.4939 12.667 10.1259C12.667 9.7579 12.9657 9.45923 13.3337 9.45923H14.667C15.7697 9.45923 16.667 10.3566 16.667 11.4592V18.7926H18.667C19.035 18.7926 19.3337 19.0912 19.3337 19.4592C19.3337 19.8272 19.035 20.1259 18.667 20.1259H13.3337Z"\n fill="#801977"\n />\n <path\n d="M16 8.12598C16.5523 8.12598 17 7.67826 17 7.12598C17 6.57369 16.5523 6.12598 16 6.12598C15.4477 6.12598 15 6.57369 15 7.12598C15 7.67826 15.4477 8.12598 16 8.12598Z"\n fill="#801977"\n />\n </svg>'};function Jg(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Qg(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qg(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Qg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ey=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},ty=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ny=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},ry=function(){return(0,ft.A)((function e(){var t=this;(0,pt.A)(this,e),this._ec2APIService=new og,this._damageReportOverviewStateService=new Kg,this._damageReportDataCDC=[],this._damageReportDataEC2=[],this._vehicleBrands=[],this.initDamageReportData=function(){return ny(t,void 0,void 0,ht().mark((function e(){var t=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initDamageReportDataCDC();case 2:this._damageReportOverviewStateService.on(Gg.CDC_LOADED,(function(){t.initDamageReportDataEC2()}));case 3:case"end":return e.stop()}}),e,this)})))},this.listenToViewChanges=function(){t._damageReportOverviewStateService.on(Gg.SHOW_LIST_VIEW,(function(){t.showListOverview()})),t._damageReportOverviewStateService.on(Gg.SHOW_DETAIL_VIEW,(function(){t.showDetailVie
6w()})),t._damageReportOverviewStateService.on(Gg.SHOW_CHANGE_VIEW,(function(){t.showChangeView()})),t._damageReportOverviewStateService.on(Gg.SHOW_SUMMARY_VIEW,(function(){t.showSummaryView()})),t._damageReportOverviewStateService.on(Gg.SHOW_CONFIRMATION_VIEW_EDIT,(function(){t.showConfirmationView()})),t._damageReportOverviewStateService.on(Gg.SHOW_CONFIRMATION_VIEW_CANCEL,(function(){t.showConfirmationView()}))},this.createStatusTile=function(e){var n=t.getStatusNumber(e),r=document.createElement("span");r.classList.add("damage-report-overview__tile-status");var a=document.createElement("span");a.classList.add("damage-report-overview__tile-status-icon-wrapper");var i=document.createElement("span");i.classList.add("damage-report-overview__tile-label");var o=document.createElement("span");o.classList.add("damage-report-overview__tile-title");var s=document.createElement("span");return s.classList.add("damage-report-overview__tile-text"),s.innerText=Xg.i18nTextState2,1===n?(r.classList.add("damage-report-overview__tile-status--1"),a.innerHTML=Xg.svgState1,o.innerText=Xg.i18nTitleState1):2===n||2.1===n?(r.classList.add("damage-report-overview__tile-status--2"),a.innerHTML=Xg.svgState2,o.innerText=Xg.i18nTitleState2):3===n&&(r.classList.add("damage-report-overview__tile-status--3"),a.innerHTML=Xg.svgState3,o.innerText=Xg.i18nTitleState3),r.insertAdjacentElement("beforeend",a),i.insertAdjacentElement("beforeend",o),2.1===n&&i.insertAdjacentElement("beforeend",s),r.insertAdjacentElement("beforeend",i),r},this.showSpinner=function(){t._overviewSpinner.hidden=!1},this.hideSpinner=function(){t._overviewSpinner.hidden=!0},this.getStatusNumber=function(e){return-1!==[0,1].indexOf(e)?1:-1!==[11,12,13,14,15,16,17,18,19,41,43,45,47,49,71,100,200,300,400,500].indexOf(e)?-1!==[15,71].indexOf(e)?2.1:2:-1!==[600,900].indexOf(e)?3:void 0},this.showChangeView=function(){t.toggleListView(!0),t.toggleDetailView(!0),t.toggleChangeView(!1),t.toggleSummaryView(!0)},this.showSummaryView=function(){t.toggleListView(!0),t.toggleDetailView(!0),t.toggleChangeView(!0),t.toggleSummaryView(!1)},this.showConfirmationView=function(){t.toggleListView(!0),t.toggleDetailView(!0),t.toggleChangeView(!0),t.toggleSummaryView(!0),t.toggleNavPart(2)},this.toggleListView=function(e){t.overView_leftPart.hidden=e,t.overView_rightPart.hidden=e,e||t.toggleNavPart(1)},this.toggleDetailView=function(e){t.detailView_rightPart.hidden=e,e||t.toggleNavPart(2)},this.toggleChangeView=function(e){t.changeView_rightPart.hidden=e,e||t.originView!==Gg.SHOW_LIST_VIEW?e||t.originView!==Gg.SHOW_DETAIL_VIEW||t.toggleNavPart(3):t.toggleNavPart(2)},this.toggleSummaryView=function(e){t.summaryView_rightPart.hidden=e,e||t.toggleNavPart(3)},this.toggleNavPart=function(e){1===e?(t.toMenu_navPart.hidden=!1,t.toList_navPart.hidden=!0,t.toDetail_navPart.hidden=!0,t.quicklink_navPart.hidden=!1):2===e?(t.toMenu_navPart.hidden=!0,t.toList_navPart.hidden=!1,t.toDetail_navPart.hidden=!0,t.quicklink_navPart.hidden=!0):(t.toMenu_navPart.hidden=!0,t.toList_navPart.hidden=!0,t.toDetail_navPart.hidden=!1,t.quicklink_navPart.hidden=!0)},this.initDamageReportDataCDC=function(){return ny(t,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._damageReportOverviewStateService.emit(Gg.CDC_LOADING,null),e.next=3,Dr(this.fillDamageReportCDCArray);case 3:case"end":return e.stop()}}),e,this)})))},this.fillDamageReportCDCArray=function(e){return ny(t,void 0,void 0,ht().mark((function t(){var n,r,a;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("FAIL"!==e.status){t.next=3;break}return this._damageReportOverviewStateService.emit(Gg.CDC_ERROR,null),t.abrupt("return");case 3:if(e.data.damageReports){n=Jg(e.data.damageReports);try{for(n.s();!(r=n.n()).done;)a=r.value,this._damageReportDataCDC.push(a)}catch(e){n.e(e)}finally{n.f()}this._damageReportOverviewStateService.emit(Gg.CDC_LOADED,this.damageReportDataCDC)}else this.hideSpinner();case 4:case"end":return t.stop()}}),t,this)})))},this.initDamageReportDataEC2=function(){return ny(t,void 0,void 0,ht().mark((function e(){var t,n,r,a,i=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._damageReportOverviewStateService.emit(Gg.EC2_LOADING,null),t=Jg(this._damageReportDataCDC),e.prev=2,t.s();case 4:if((n=t.n()).done){e.next=15;break}return r=n.value,e.next=8,this._ec2APIService.sendEc2ExportCaseRequest
6(r.caseId);case 8:if(!((a=e.sent)instanceof Error)){e.next=12;break}return this._damageReportOverviewStateService.emit(Gg.EC2_ERROR,r.caseId),e.abrupt("return");case 12:this._damageReportDataEC2.push(a);case 13:e.next=4;break;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(2),t.e(e.t0);case 20:return e.prev=20,t.f(),e.finish(20);case 23:return e.next=25,Ui.getData();case 25:e.sent.forEach((function(e){i._vehicleBrands.push(e)})),this._damageReportOverviewStateService.emit(Gg.EC2_LOADED,this.damageReportDataEC2);case 28:case"end":return e.stop()}}),e,this,[[2,17,20,23]])})))},this.getDriveInGarages=function(){return ny(t,void 0,void 0,ht().mark((function e(){var t,n,r;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={header:{action:"drivein_list",apiid:"#EC2APIID#",apikey:"#EC2APIKEY#"},appointment:{},lane:{},drivein:{},customer:{},vehicle:{}},e.next=3,this._ec2APIService.driveInPost(t);case 3:if(n=e.sent,r=[],n&&n.driveins){e.next=7;break}return e.abrupt("return",r);case 7:return n.driveins.forEach((function(e){var t=e.drivein,n="".concat(t.location.name," ,").concat(t.location.street,", ").concat(t.location.zip,", ").concat(t.location.city);r.push({id:t.id,city:t.location.city,ec2Id:t.location.id,name:t.location.name,route:n,serviceBrands:[],brandIds:"",street:t.location.street,zip:t.location.zip,rememberedGarage:!1,position:{lat:parseFloat(t.location.lat),lng:parseFloat(t.location.lng)},distance:0,mappedId:0,isDriveIn:!0,phone:"",mail:"",path:""})})),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e,this)})))},this.getAvailableAppointmentsForDriveIn=function(e){return ny(t,void 0,void 0,ht().mark((function t(){var n,r,a,i;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new Date,r={header:{action:"appointment_list",apiid:"#EC2APIID#",apikey:"#EC2APIKEY#"},appointment:{status:"available"},lane:{status:"active"},drivein:{id:e},customer:{},vehicle:{}},t.next=4,this._ec2APIService.driveInPost(r);case 4:return a=t.sent,i=(i=a.appointments).filter((function(e){return new Date(e.appointment.date).getTime()>n.getTime()})),t.abrupt("return",i);case 8:case"end":return t.stop()}}),t,this)})))},this.checkAvailabilityOfAppointment=function(e){return ny(t,void 0,void 0,ht().mark((function t(){var n,r,a;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={header:{action:"appointment_list",apiid:"#EC2APIID#",apikey:"#EC2APIKEY#"},appointment:{id:e,status:"available"},lane:{},drivein:{},customer:{},vehicle:{}},t.next=3,this._ec2APIService.driveInPost(n);case 3:return r=t.sent,a=r.appointments,t.abrupt("return",a.length>0);case 6:case"end":return t.stop()}}),t,this)})))},this.assignAppointment=function(e,n,r,a,i,o,s){return ny(t,void 0,void 0,ht().mark((function t(){var c;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={header:{action:"appointment_assign",apiid:"#EC2APIID#",apikey:"#EC2APIKEY#"},appointment:{id:e,status:"available"},lane:{},drivein:{},customer:{gender:s.policyHolderTitle,lastname:s.policyHolderLastName,firstname:s.policyHolderFirstName,street:s.policyHolderStreet,zip:s.policyHolderZip,city:s.policyHolderCity,phone_m:s.policyHolderPhoneM,email:s.policyHolderEmail,ec2id:"".concat(n)},vehicle:{make:a,model:i,plate:o,damagedate:r,remarks:""}},t.next=3,this._ec2APIService.driveInPost(c);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))},this.releaseAppointment=function(e){return ny(t,void 0,void 0,ht().mark((function t(){var n,r;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={header:{action:"appointment_release",apiid:"#EC2APIID#",apikey:"#EC2APIKEY#"},appointment:{id:e},lane:{},drivein:{},customer:{},vehicle:{}},t.next=3,this._ec2APIService.driveInPost(n);case 3:return r=t.sent,t.abrupt("return",200===r.status);case 5:case"end":return t.stop()}}),t,this)})))},this.getMappedBrand=function(e){var n=t._vehicleBrands.filter((function(t){return t.makeCode===e}))[0].makeDesc.toUpperCase();return"FREMD"===e?"":"".concat(n," ")},this._overviewElement=document.querySelector(".damage-report-overview"),this._overviewPane=this._overviewElement.querySelector(".damage-report-overview-pane"),this.toMenu_navPart=this._overviewElement.querySelector(".damage-report-overview__back-link-overview"),this.toList_navPart=this._overviewElement.querySelector(".damage-report-overview__detail-view-back-link"),this.toDetail_navPart=this._overviewElement.querySelector(".damage-report-overview__change-view-back-link"),this.quicklink_navPart=this._overviewElement.querySelector(".amag-loggedInPage__quicklinks"),this.overView_leftPart=this._overviewElement.querySelector(".damage-report-overview__headline-wrapper--overview"),this.overView_rightPart=this._overviewElement.querySelector(".damage-report-overview__list-view"),this.detailVie
6w_rightPart=this._overviewElement.querySelector(".damage-report-overview__detail-view"),this.changeView_rightPart=this._overviewElement.querySelector(".damage-report-overview__change-view"),this.summaryView_rightPart=this._overviewElement.querySelector(".damage-report-overview__summary-view"),this._overviewSpinner=this._overviewElement.querySelector(".damage-report-overview__spinner"),this._iconHailPath=this._overviewPane.dataset.iconHailPath,this._iconCollisionPath=this._overviewPane.dataset.iconCollisionPath,this._iconParkingPath=this._overviewPane.dataset.iconParkingPath,this._iconGlassPath=this._overviewPane.dataset.iconGlassPath,this._listTextDate=this._overviewPane.dataset.listTextDate,this._editLinkText=this._overviewPane.dataset.editLink,this._detailLinkText=this._overviewPane.dataset.detailLink,this.originView=Gg.SHOW_LIST_VIEW}),[{key:"showListOverview",value:function(){this.toggleListView(!1),this.toggleDetailView(!0),this.toggleChangeView(!0),this.toggleSummaryView(!0)}},{key:"showDetailView",value:function(){this.toggleListView(!0),this.toggleDetailView(!1),this.toggleChangeView(!0),this.toggleSummaryView(!0)}},{key:"getDriveInAppointmentData",value:function(e){return ny(this,void 0,void 0,ht().mark((function t(){var n,r;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,br.getJwtToken();case 2:return t.t0=t.sent,t.t1={action:"appointment_list",apiid:"#EC2APIID#",apikey:"#EC2APIKEY#"},t.t2={},t.t3={},t.t4={},t.t5={ec2id:"".concat(e)},t.t6={},n={CDC_TOKEN:t.t0,header:t.t1,appointment:t.t2,lane:t.t3,drivein:t.t4,customer:t.t5,vehicle:t.t6},t.next=12,this._ec2APIService.driveInPost(n);case 12:return r=t.sent,t.abrupt("return",r.appointments);case 14:case"end":return t.stop()}}),t,this)})))}},{key:"selectedDamageReport",get:function(){return this._selectedDamageReport},set:function(e){this._selectedDamageReport=e}},{key:"selectedDriveIn",get:function(){return this._selectedDriveIn},set:function(e){this._selectedDriveIn=e}},{key:"selectedDriveInGarage",get:function(){return this._selectedDriveInGarage},set:function(e){this._selectedDriveInGarage=e}},{key:"newAppointment",get:function(){return this._newAppointment},set:function(e){this._newAppointment=e}},{key:"damageReportDataCDC",get:function(){return this._damageReportDataCDC}},{key:"damageReportDataEC2",get:function(){return this._damageReportDataEC2}},{key:"iconHailPath",get:function(){return this._iconHailPath}},{key:"iconCollisionPath",get:function(){return this._iconCollisionPath}},{key:"iconParkingPath",get:function(){return this._iconParkingPath}},{key:"iconGlassPath",get:function(){return this._iconGlassPath}},{key:"listTextDate",get:function(){return this._listTextDate}},{key:"editLinkText",get:function(){return this._editLinkText}},{key:"detailLinkText",get:function(){return this._detailLinkText}},{key:"getGarages",value:function(){return ny(this,void 0,void 0,ht().mark((function e(){var t,n,r,a,i=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=17;break}return n=(0,wt.$)("damagereportgarages"),e.next=5,fetch(n);case 5:return r=e.sent,e.next=8,ai.getFavoriteGarageId();case 8:if(a=e.sent,!r.ok){e.next=15;break}return e.next=12,r.json().catch((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.catchJsonParseError(t)}));case 12:t=e.sent.garages.map((function(e){return{id:e.id,city:e.city,ec2Id:e.ec2ID,name:e.name,route:e.route,serviceBrands:e.serviceBrands,brandIds:e.filterIdString,street:e.street,zip:e.zip,rememberedGarage:e.id===a,position:{lat:parseFloat(e.latitude),lng:parseFloat(e.longitude)},isDriveIn:!1,phone:e.phone,mail:e.email}})),e.next=17;break;case 15:return console.error("Something went wrong by getting the data from URL: ".concat(n)),e.abrupt("return",[]);case 17:return e.abrupt("return",t);case 18:case"end":return e.stop()}}),e)})))}},{key:"catchJsonParseError",value:function(e){console.error(e)}}])}();ry=ey([nn.K,ty("design:paramtypes",[])],ry);var ay=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},iy=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},oy=function(){return(0,ft.A)((function e(){(0,pt.A)(this,e),this._damageReportOverviewStateService=new Kg,this._damageReportOverviewService=new ry,this._overviewElement=document.querySelector(".damage-report-overview"),this._cancelModalElement=this._overviewElement.querySelector(".damage-report-overview__cancel-modal"),this._cancelModalBodyElement=this._cancelModalElement.querySelector(".damage-report-overview__cancel-modal-body"),this._cancelBackdropElement=this._cancelModalElement.querySelector(".damage-report-overview__cancel-modal-backdrop"),this._cancelModalCloseButtonElement=this._cancelModalBodyElement.querySelector(".damage-report-overview__cancel-modal-close"),this._cancelModalReturnButtonElement=this._cancelModalBodyElement.querySelector(".damage-report-overview__cancel-modal-btn--keep-editing"),this._cancelModalCancelButtonElement=this._cancelModalBodyElement.querySelector(".damage-report-overview__cancel-modal-btn--cancel-editing"),this.setEventListeners()}),[{key:"setEventListeners",value:function(){var e=this;this._cancelModalCloseButtonElement.addEventListener("click",(function(){return e.hideModal()})),this._cancelModalReturnButtonElement.addEventListener("click",(function(){e.hideModal()})),this._cancelModalCancelButtonElement.addEventListener("click",(function(){e._damageReportOverviewService.newAppointment=null,e.cancelParameter===Gg.SHOW_LIST_VIEW?e._damageReportOverviewStateService.emit(Gg.SHOW_LIST_VIEW,null):e._damageReportOverviewStateService.emit(Gg.SHOW_DETAIL_VIEW,null),e.hideModal()}))}},{key:"showModal",value:function(e){this._cancelModalElement.classList.add("is-open"),document.body.classList.add("no-scroll"),this.cancelParameter=e;var t=this._cancelModalBodyElement.offsetWidth,n=(this._cancelBackdropElement.offsetWidth-t)/2;this._cancelModalBodyElement.style.left="".concat(n,"px");var r=this._cancelModalBodyElement.offsetHeight,a=(this._cancelBackdropElement.offsetHeight-r)/2;this._cancelModalBodyElement.style.top="".concat(a,"px")}},{key:"hideModal",value:function(){this._cancelModalElement.classList.remove("is-open"),document.body.classList.remove("no-scroll")}}])}();oy=ay([nn.K,iy("design:paramtypes",[])],oy);var sy=__webpack_require__(74692);function cy(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ly(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ly(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function ly(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var uy=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},dy=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},hy=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},py=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this.overviewPane=this._element.querySelector(".damage-report-overview-pane"),this._cdcErrorMessage=this._element.querySelector(".damage-report-overview__cdc-error-message"),this._ec2ErrorMessage=this._element.querySelector(".damage-report-overview__ec2-error-message"),this._damageReportOverviewService=new ry,this._damageReportOverviewStateService=new Kg,this._modalService=new oy,this.preventLeavingEditViewWithChanges=function(){window.addEventListener("beforeunload",(function(e){n._damageReportOverviewService.newAppointment&&e.preventDefault()}))},this.initDetailPageBackButtonListener=function(){var e=n._element.querySelector(".damage-report-overview__detail-view-back-link-button"),t=n._element.querySelector(".damage-report-overview__change-view-back-link-button");e.addEventListener("click",(function(){n.showProcessContainerView(),n._damageReportOverviewStateService.emit(Gg.SHOW_LIST_VIEW,null)})),t.addEventListener("click",(function(){n._damageReportOverviewService.newAppointment?n._modalService.showModal(Gg.SHOW_DETAIL_VIEW):n._damageReportOverviewService.originView===Gg.SHOW_LIST_VIEW?n._damageReportOverviewStateService.emit(Gg.SHOW_LIST_VIEW,null):n._damageReportOverviewService.originView===Gg.SHOW_DETAIL_VIEW&&n._damageReportOverviewStateService.emit(Gg.SHOW_DETAIL_VIEW,null)}))},this.init()}),[{key:"init",value:function(){return hy(this,void 0,void 0,ht().mark((function e(){var t=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.checkUserLoggedIn();case 2:return e.next=4,this._damageReportOverviewService.initDamageReportData();case 4:this._damageReportOverviewService.listenToViewChanges(),this._damageReportOverviewStateService.on(Gg.EC2_LOADED,(function(e){t.checkForEc2ID()})),this._damageReportOverviewStateService.on(Gg.CDC_ERROR,(function(){t._cdcErrorMessage.hidden=!1})),this._damageReportOverviewStateService.on(Gg.EC2_ERROR,(function(e){t._ec2ErrorMessage.innerText=t._ec2ErrorMessage.innerText.replace("$EC2_CASE_ID$",e),t._ec2ErrorMessage.hidden=!1})),this.initDetailPageBackButtonListener(),this.preventLeavingEditViewWithChanges();case 10:case"end":return e.stop()}}),e,this)})))}},{key:"checkUserLoggedIn",value:function(){return hy(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("false"!==this.overviewPane.dataset.editMode){e.next=5;break}
6if((0,it.EW)()){e.next=5;break}return window.location.href=sy(".js-amag-header__loginFlyout").data("login"),e.abrupt("return");case 5:case"end":return e.stop()}}),e,this)})))}},{key:"checkForEc2ID",value:function(){return hy(this,void 0,void 0,ht().mark((function e(){var t,n,r,a,i,o;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=new URL(window.location.href),!(n=parseInt(t.searchParams.get(Bm.EC2_REFERENCE)))){e.next=24;break}r=this._damageReportOverviewService.damageReportDataEC2,a=cy(r),e.prev=5,a.s();case 7:if((i=a.n()).done){e.next=16;break}if((o=i.value).ec2CaseExportResponse.ec2Id!==n){e.next=14;break}return this._damageReportOverviewService.selectedDamageReport=o,this._damageReportOverviewService.originView=Gg.SHOW_LIST_VIEW,this._damageReportOverviewStateService.emit(Gg.SHOW_DETAIL_VIEW,null),e.abrupt("break",16);case 14:e.next=7;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(5),a.e(e.t0);case 21:return e.prev=21,a.f(),e.finish(21);case 24:case"end":return e.stop()}}),e,this,[[5,18,21,24]])})))}},{key:"showProcessContainerView",value:function(){var e=this._element.querySelector(".damage-report-overview__container-content"),t=this._element.querySelector(".damage-report-overview__container-confirmation"),n=this._element.querySelector(".damage-report-overview__confirmation");t.hidden=!0,n.hidden=!0,e.hidden=!1}}])}();py=uy([(0,At.d)({selector:".damage-report-overview",onDomLoaded:!0}),dy("design:paramtypes",[HTMLElement])],py);var fy=__webpack_require__(74692),my=__webpack_require__(74692),vy=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},gy=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},yy=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},_y=(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this._stateService=new Kg,this._damageReportOverviewService=new ry,this._modalService=new oy,this.offCanvasService=new sn,this.overview_spinner=this._element.querySelector(".damage-report-overview__spinner"),this.content=this._element.querySelector(".damage-report-overview__change-view-container"),this.datepickerElement=this._element.querySelector(".damage-report-overview__change-view__datepicker"),this.init=function(){n.initEventListeners()},this.initEventListeners=function(){n._stateService.on(Gg.SHOW_CHANGE_VIEW,(function(){n.showView()})),n._element.querySelector(".damage-report-overview__change-view__cancel-link").addEventListener("click",(function(){n._damageReportOverviewService.newAppointment?n._modalService.showModal(n._damageReportOverviewService.originView):n._damageReportOverviewService.originView===Gg.SHOW_LIST_VIEW?n._stateService.emit(Gg.SHOW_LIST_VIEW,null):n._damageReportOverviewService.originView===Gg.SHOW_DETAIL_VIEW&&n._stateService.emit(Gg.SHOW_DETAIL_VIEW,null)})),n._element.querySelector(".damage-report-overview__change-view__cancellation-link").addEventListener("click",(function(){n.cancelAppointment(),n._stateService.emit(Gg.RE_RENDER_LIST_VIEW,null)}))},this.showView=function(){return yy(n,void 0,void 0,ht().mark((function e(){var t;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.content.hidden=!0,this.overview_spinner.hidden=!1,null!==this._damageReportOverviewService.selectedDriveIn){e.next=7;break}return e.next=5,this._damageReportOverviewService.getDriveInAppointmentData(this._damageReportOverviewService.selectedDamageReport.ec2CaseExportResponse.ec2Id);case 5:t=e.sent,this._damageReportOverviewService.selectedDriveIn=t[0];case 7:return e.next=9,this.fillGarageContent();case 9:return e.next=11,this.setDatepicker();case 11:this.fillAppointmentContent(),window.scrollTo({top:0,behavior:"smooth"}),this.content.hidden=!1,this.overview_spinner.hidden=!0;case 15:case"end":return e.stop()}}),e,this)})))},this.fillAppointmentContent=function(){var e=n._damageReportOverviewService.selectedDriveIn,t=n._element.querySelector("#damageReportOverviewChangePartDriveIn").querySelector("#damageReportOverviewChangeDriveInAppointment"),r=t.querySelector("#damageReportOverviewChangeAppointmentDate"),a=t.querySelector("#damageReportOverviewChangeAppointmentTime");r.querySelector(".damage-report-overview__change-view-tile-headline").textContent=new Date(e.appointment.date).toLocaleDateString("de-CH"),a.querySelector(".damage-report-overview__change-view-tile-headline").textContent="".concat(e.appointment.time," ").concat(Granite.I18n.get("apps.amag-ch.components.c
6ontent.damageReportOverview.detail.time"))},this.fillGarageContent=function(){return yy(n,void 0,void 0,ht().mark((function e(){var t,n,r,a,i,o,s,c,l,u,d,h,p,f,m,v=this;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._damageReportOverviewService.selectedDamageReport.ec2CaseExportResponse.case,n=this._element.querySelector("#damageReportOverviewChangeGarage"),r=n.querySelector(".damage-report-overview__change-view-tile-content"),a=n.querySelector(".damage-report-overview__change-view-tile-headline"),i=r.querySelector(".damage-report-overview__change-view-tile-garage-street"),o=r.querySelector(".damage-report-overview__change-view-tile-garage-city"),s=r.querySelector(".damage-report-overview__change-view-tile-garage-route"),c=r.querySelector(".damage-report-overview__change-view-tile-garage-mail"),l=r.querySelector(".damage-report-overview__change-view-tile-garage-phone"),u=t.caseRepairerId.toString(),e.next=12,this._damageReportOverviewService.getDriveInGarages();case 12:return d=e.sent,e.next=15,this._damageReportOverviewService.getGarages();case 15:h=e.sent,p="",f="",m="",d.forEach((function(e){e.ec2Id===u&&(v.selectedGarage=e)})),h.forEach((function(e){if(e.ec2Id===u){p=e.name,f=e.street,m=e.zip+" "+e.city;var t=document.createElement("a");t.classList.add("damage-report-overview__change-view-tile-garage-link"),t.target="_blank",t.href="https://www.google.com/maps/dir/?api=1&destination=".concat(e.route),t.innerHTML='<svg class="damage-report-overview__change-view-tile-garage-link-icon size-l" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.10809 23.6331C0.557093 23.6331 0.108093 23.1851 0.108093 22.6331V4.63314C0.108093 4.08214 0.557093 3.63314 1.10809 3.63314H16.1081V1.13314C16.1081 0.638141 16.4211 0.463141 16.5171 0.421141C16.5711 0.398141 16.6591 0.369141 16.7701 0.369141C16.9031 0.369141 17.1051 0.410141 17.3161 0.607141L23.5821 6.42614C23.6011 6.44314 23.6251 6.46714 23.6481 6.49314C23.8191 6.68314 23.9051 6.92914 23.8911 7.18414C23.8771 7.43914 23.7651 7.67414 23.5751 7.84514L17.3151 13.6591C17.1041 13.8551 16.9021 13.8961 16.7701 13.8961C16.6601 13.8961 16.5721 13.8681 16.5181 13.8451C16.4211 13.8031 16.1091 13.6281 16.1091 13.1331V10.6331H7.10909V22.6331C7.10909 23.1851 6.66009 23.6331 6.10909 23.6331H1.10809ZM1.10809 22.6331H6.10809V10.6331C6.10809 10.0821 6.55709 9.63314 7.10809 9.63314H16.6081C16.8841 9.63314 17.1081 9.85714 17.1081 10.1331V12.4871L22.8721 7.13414L17.1081 1.78014V4.13314C17.1081 4.40914 16.8841 4.63314 16.6081 4.63314H1.10809V22.6331Z"/>< /svg>';var n=document.createElement("span");n.textContent=Granite.I18n.get("apps.amag-ch.components.content.damageReport.step3.a.routeLabel"),t.appendChild(n),s.innerHTML="",s.appendChild(t);var r=document.createElement("a");r.classList.add("damage-report-overview__change-view-tile-garage-link"),r.target="_blank",r.href="mailto:".concat(e.mail),r.innerHTML='<svg class="damage-report-overview__change-view-tile-garage-link-icon size-l" viewBox="0 0 32 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.33333 23.2719C1.49467 23.2719 0 21.7759 0 19.9386V3.93856C0 3.07456 0.330667 2.25589 0.932 1.63189C0.933333 1.62922 0.934667 1.62789 0.936 1.62656C0.949333 1.61056 0.966667 1.59322 0.984 1.57856C1.62533 0.945225 2.45333 0.605225 3.33333 0.605225H28.6667C29.5573 0.605225 30.3933 0.953225 31.0253 1.58522C31.0373 1.59589 31.048 1.60656 31.0573 1.61722C31.0613 1.62122 31.0653 1.62656 31.0693 1.63189C31.6653 2.24656 32 3.06922 32 3.93856V19.9386C32 21.7759 30.504 23.2719 28.6667 23.2719H3.33333ZM1.568 3.00389C1.41333 3.29056 1.33333 3.60789 1.33333 3.93856V19.9386C1.33333 21.0412 2.23067 21.9386 3.33333 21.9386H28.6667C29.7693 21.9386 30.6667 21.0412 30.6667 19.9386V3.93856C30.6667 3.60789 30.5867 3.29056 30.432 3.00389L16.4213 14.4559C16.3027 14.5532 16.1533 14.6066 16 14.6066C15.8467 14.6066 15.6973 14.5532 15.5787 14.4559L1.568 3.00389ZM16 13.0772L29.4373 2.09456C29.1947 1.99189 28.9333 1.93856 28.6667 1.93856H3.33333C3.06667 1.93856 2.80533 1.99189 2.56267 2.09456L16 13.0772Z" />< /svg>';var i=document.createElement("span");i.textContent="".concat(e.mail),r.appendChild(i),c.innerHTML="",c.appendChild(r);var o=document.createElement("a");o.classList.add("damage-report-overview__change-view-tile-garage-link"),o.target="_blank",o.href="tel:".concat(e.phone),o.innerHTML='<svg class="damage-report-overview__change-view-tile-garage-link-icon size-l" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24.7 31.3241C23.6573 31.3241 22.648 31.0214 21.784 30.4494C13.7173 25.0894 6.91068 18.2827 1.55068 10.2174C0.165342 8.12806 0.446675 5.32673 2.22134 3.55606L4.01334 1.7614C4.72134 1.0534 5.66268 0.664062 6.66534 0.664062C7.66801 0.664062 8.60934 1.0534 9.31734 1.7614L12.5893 5.0294C14.0493 6.49206 14.0493 8.87073
612.5907 10.3334L11.928 10.9974C14.672 14.2761 17.7227 17.3281 21.0013 20.0734L21.6627 19.4121C22.3787 18.7001 23.3173 18.3134 24.3147 18.3134C25.3173 18.3134 26.2587 18.7041 26.9667 19.4121L30.2387 22.6841C31.7 24.1467 31.6987 26.5254 30.2373 27.9867L28.444 29.7814C27.448 30.7761 26.1187 31.3241 24.7 31.3241ZM6.66534 1.9974C6.01868 1.9974 5.41201 2.24806 4.95601 2.70406L3.16401 4.49873C1.83734 5.82273 1.62668 7.9174 2.66268 9.47873C7.92268 17.3961 14.604 24.0774 22.5213 29.3374C23.1667 29.7654 23.92 29.9907 24.7013 29.9907C25.7627 29.9907 26.7587 29.5814 27.504 28.8374L29.2973 27.0441C30.24 26.1014 30.24 24.5694 29.2987 23.6267L26.0267 20.3547C25.5707 19.8987 24.964 19.6467 24.3187 19.6467C23.6733 19.6467 23.0667 19.8974 22.6107 20.3534L21.5187 21.4454C21.3933 21.5707 21.2253 21.6401 21.0467 21.6401C20.8933 21.6401 20.7427 21.5867 20.624 21.4881C16.944 18.4601 13.544 15.0587 10.516 11.3774C10.2973 11.1107 10.316 10.7267 10.5587 10.4827L11.6493 9.3894C12.5907 8.44673 12.5907 6.91206 11.6493 5.9694L8.37601 2.70406C7.92001 2.24806 7.31201 1.9974 6.66534 1.9974Z" />< /svg>';var d=document.createElement("span");d.textContent="".concat(e.phone),o.appendChild(d),l.innerHTML="",l.appendChild(o),a.innerHTML='<svg class="damage-report-overview__change-view-tile-garage-link-icon size-l" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 16.0005C2.949 16.0005 2.5 15.5525 2.5 15.0005V14.0005C1.949 14.0005 1.5 13.5525 1.5 13.0005V9.70749C1.5 9.44049 1.604 9.19049 1.792 9.00149L3.574 7.21949L5.41 2.62849C5.563 2.24749 5.927 2.00049 6.338 2.00049H16.661C17.073 2.00049 17.437 2.24649 17.59 2.62849L19.426 7.21949L20.353 8.14649C20.448 8.24149 20.5 8.36649 20.5 8.50049C20.5 8.63449 20.448 8.75949 20.354 8.85449C20.26 8.94949 20.134 9.00049 20 9.00049C19.866 9.00049 19.741 8.94849 19.646 8.85449L18.793 8.00049H4.207L2.5 9.70849V11.0005H6.5C6.776 11.0005 7 11.2245 7 11.5005C7 11.7765 6.776 12.0005 6.5 12.0005H2.5V13.0005H9C9.276 13.0005 9.5 13.2245 9.5 13.5005C9.5 13.7765 9.276 14.0005 9 14.0005H6.5V15.0005C6.5 15.5525 6.051 16.0005 5.5 16.0005H3.5ZM3.5 15.0005H5.5V14.0005H3.5V15.0005ZM18.262 7.00049L16.662 3.00049H6.337L4.738 7.00049H18.262ZM17 22.0005C13.416 22.0005 10.5 19.0845 10.5 15.5005C10.5 11.9165 13.416 9.00049 17 9.00049C20.584 9.00049 23.5 11.9165 23.5 15.5005C23.5 19.0845 20.584 22.0005 17 22.0005ZM17 10.0005C13.967 10.0005 11.5 12.4675 11.5 15.5005C11.5 18.5335 13.967 21.0005 17 21.0005C20.033 21.0005 22.5 18.5335 22.5 15.5005C22.5 12.4675 20.033 10.0005 17 10.0005ZM17.5 13.4404C17.5 13.1643 17.2761 12.9404 17 12.9404C16.7239 12.9404 16.5 13.1643 16.5 13.4404V15.3539C16.5 15.7598 16.7287 16.1311 17.0912 16.3138L20.4529 18.0073C20.6995 18.1316 21.0001 18.0324 21.1244 17.7858C21.2486 17.5391 21.1494 17.2385 20.9028 17.1143L17.5411 15.4207C17.5159 15.408 17.5 15.3822 17.5 15.3539V13.4404Z"/></svg>';var h=document.createElement("span");return h.textContent=Granite.I18n.get("apps.amag-ch.components.content.damageReport.confirmation.garage.driveInGaragePrefix")+" ".concat(p),void a.appendChild(h)}})),i.textContent=f,o.textContent=m;case 23:case"end":return e.stop()}}),e,this)})))},this.setDatepicker=function(){return yy(n,void 0,void 0,ht().mark((function e(){var t,n,r;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M13.4009 24C13.2789 24 13.1609 23.956 13.0699 23.875L0.494919 12.748C0.464919 12.721 0.436919 12.693 0.410919 12.664C0.0449191 12.251 0.0819193 11.617 0.493919 11.252L13.0689 0.125C13.1609 0.044 13.2789 0 13.4009 0C13.5439 0 13.6809 0.062 13.7759 0.169C13.9579 0.375 13.9389 0.692 13.7329 0.874L1.15692 12L13.7319 23.125C13.9379 23.308 13.9579 23.625 13.7749 23.831C13.6799 23.939 13.5439 24 13.4009 24Z"/>\n </svg>',n=fy(this.datepickerElement),e.next=4,this._damageReportOverviewService.getAvailableAppointmentsForDriveIn(this.selectedGarage.id);case 4:this.appointmentList=e.sent,fy.datepicker.setDefaults(fy.datepicker.regional[document.querySelector("html").getAttribute("lang")]),n.datepicker("destroy"),n.datepicker({dateFormat:"yy-mm-dd",minDate:this.appointmentList[0].appointment.date,firstDay:1,maxDate:this.appointmentList[this.appointmentList.length-1].appointment.date,prevText:t,nextText:t,beforeShowDay:this.validateDate,onSelect:this.showAppointmentTime}),(r=this.datepickerElement.querySelector(".ui-state-active"))&&r.classList.remove("ui-state-active","ui-state-hover");case 10:case"end":return e.stop()}}),e,this)})))},this.validateDate=function(e){var t=my.datepicker.formatDate("yy-mm-dd",e),r=n.appointmentList.filter((function(e){return e.appointment.date.includes(t)})),a=[!1];return 0!==e.getDay()&&6!==e.getDay()&&r.length>0&&(a=[!0]),a},this.showAppointmentTime=function(){var e=fy(n.datepickerElement).datepicker("getDate"),t=n.offCanvasService.getCancelBtn(),r=n.offCanvasService.getConfirmBtn(),a=n.offCanvasService.getFooter().parentElement,i=a.querySelector(".damage-report-overview__change-view__date"),o=a.querySelector(".damage-report-overview__change-view__appointment"),s=a.querySelector(".damage-report-overview__change-view__error-msg");s.hidden=!0,o.innerHTML="",n._damageReportOverviewService.newAppointment=null;var c=e.getFullYear(),l=e.getMonth()+1,u=e.getDate(),d="".concat(c,"-").concat(l<10?"0"+l:l,"-").concat(u<10?"0"+u:u),h=(0,it.Z0)();i.textContent="".concat(e.toLocaleDateString(h,{weekday:"long"}),", ").concat(u,".").concat(l<10?"0"+l:l,".").concat(c),r.classList.add("amag-ctaWrapper__button--bgColor-amagDark-blue"),r.classList.remove("amag-ctaWrapper__button--bgColor-amagViolet","d-none"),r.parentElement.classList.remove("d-none"),r.textContent=n._element.dataset.offCanvasCta,t.classList.add("d-none"),o.appendChild(n.getChips(d)),n.offCanvasService.setConfirmMethod((function(){n._damageReportOverviewService.newAppointment?(n.offCanvasService.closeOffCanvas(),r.classList.remove("amag-ctaWrapper__button--bgColor-amagDark-blue"),r.classList.add("amag-ctaWrapper__button--bgColor-amagViolet","d-none"),r.parentElement.classList.add("d-none"),t.classList.remove("d-none"),n._damageReportOverviewService.selectedDriveInGarage=n.selectedGarage,n._stateService.emit(Gg.SHOW_SUMMARY_VIEW,null)):s.hidden=!1})),n.offCanvasService.showOffCanvasById("damage-report-overview__change-view-off-canvas")},this.getChips=function(e){var t=n.appointmentList.filter((function(t){return t.appointment.date.includes(e)})),r=[];return t.forEach((function(e,t){0!==t?r.some((function(t){return t.appointment.time===e.appointment.time}))||r.push(e):r.push(e)})),n.createChips(r)},this.createChips=function(e){var t=document.createDocumentFragment();return e.forEach((function(e){var r=document.createElement("div");r.classList.add("damage-report-overview__change-view__chip");var a=e.appointment.time.split(":"),i=parseInt(a[1])+30,o=parseInt(a[0]);i>59&&(i-=60,o+=1),r.textContent="".concat(e.appointment.time," - ").concat(o.toString().padStart(2,"0"),":").concat(i.toString().padStart(2,"0")),r.addEventListener("click",(function(){n._damageReportOverviewService.newAppointment=e;var t=r.parentElement.querySelector(".is-active");t&&t.classList.remove("is-active"),r.classList.add("is-active")})),t.appendChild(r)})),t},this.cancelAppointment=function(){return yy(n,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._damageReportOverviewService.releaseAppointment(this._damageReportOverviewService.selectedDriveIn.appointment.i
6d);case 2:this._damageReportOverviewService.newAppointment=null,this._stateService.emit(Gg.SHOW_CONFIRMATION_VIEW_CANCEL,null);case 4:case"end":return e.stop()}}),e,this)})))},this.init()}));_y=vy([(0,At.d)({selector:".damage-report-overview__change-view",onDomLoaded:!0}),gy("design:paramtypes",[HTMLElement])],_y);var by=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},wy=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Sy=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this._element=t,this._damageReportOverviewService=new ry,this._stateService=new Kg,this.ec2CaseId=void 0,this.init()}),[{key:"init",value:function(){this.initEventListeners()}},{key:"initEventListeners",value:function(){var e=this,t=this._element.querySelectorAll(".damage-report-overview__confirmation-drive-in .damage-report-overview__confirmation-part"),n=this._element.querySelector("#damageReportAppointment"),r=this._element.querySelector("#damageReportGarage");this._stateService.on(Gg.SHOW_CONFIRMATION_VIEW_EDIT,(function(){e.getDetailData(),e.fillEc2ReferenceNumber(),e.updateDamageReportDetailPageLink(),t.forEach((function(e){e.hidden=!1})),n.hidden=!1,r.hidden=!1,e.setDriveInDisplay(),e.showConfirmationPageView(!1)})),this._stateService.on(Gg.SHOW_CONFIRMATION_VIEW_CANCEL,(function(){e.getDetailData(),e.fillEc2ReferenceNumber(),e.updateDamageReportDetailPageLink(),t.forEach((function(e){e.hidden=!0})),n.hidden=!0,r.hidden=!0,e.showConfirmationPageView(!0)}))}},{key:"getDetailData",value:function(){var e=this._damageReportOverviewService.selectedDamageReport;this.ec2CaseId=e.ec2CaseExportResponse.ec2Id}},{key:"fillEc2ReferenceNumber",value:function(){this._element.querySelector(".damage-report-overview__confirmation-reference-number").innerText="".concat(this.ec2CaseId)}},{key:"updateDamageReportDetailPageLink",value:function(){var e=this._element.querySelector(".damage-report-overview__confirmation-detail-page-link"),t=new URL(e.href);t.searchParams.set(Bm.EC2_REFERENCE,"".concat(this.ec2CaseId)),e.href=t.href}},{key:"setDriveInDisplay",value:function(){var e=this._element.querySelector(".damage-report-overview__confirmation-drive-in"),t=e.querySelector("#damageReportAppointment"),n=t.querySelector("#appointmentDate"),r=t.querySelector("#appointmentTime"),a=(0,it.Xo)(),i=this._damageReportOverviewService.selectedDriveInGarage;if(i){var o=this._damageReportOverviewService.selectedDriveIn,s=new Date(o.appointment.date);n.querySelector(".damage-report-overview__confirmation-tile-headline").textContent=s.toLocaleDateString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"});var c="".concat(o.appointment.time);c+=a.includes("de")?" "+Granite.I18n.get("apps.amag-ch.components.content.damageReport.step.5.time"):"",r.querySelector(".damage-report-overview__confirmation-tile-headline").textContent=c;var l=e.querySelector("#damageReportGarage");l.querySelector(".damage-report-overview__confirmation-tile-headline").textContent=Granite.I18n.get("apps.amag-ch.components.content.damageReport.confirmation.garage.driveInGaragePrefix")+" ".concat(i.name),l.querySelector(".damage-report-overview__confirmation-garage-street").textContent=i.street,l.querySelector(".damage-report-overview__confirmation-garage-city").textContent="".concat(i.zip," ").concat(i.city),l.querySelector(".damage-report-overview__confirmation-garage-route").href="https://www.google.com/maps/dir/?api=1&destination=".concat(i.route),this._damageReportOverviewService.newAppointment=null}}},{key:"showConfirmationPageView",value:function(e){var t=this._element.closest(".damage-report-overview").querySelector(".damage-report-overview__container-content"),n=this._element.closest(".damage-report-overview__container-confirmation"),r=this._element.querySelector(".damage-report-overview__confirmation"),a=n.querySelector(".process-container__headline--cancel"),i=n.querySelector(".process-container__headline--change"),o=n.querySelector(".damage-report-overview__confirmation-drive-in-further-steps--cancel"),s=n.querySelector(".damage-report-overview__confirmation-drive-in-further-steps--edit");t.hidden=!0,e?(a.hidden=!1,i.hidden=!0,o.hidden=!1,s.hidden=!0):(a.hidden=!0,i.hidden=!1,o.hidden=!0,s.hidden=!1),n.hidden=!1,r.hidden=!1,window.scrollTo({top:0,behavior:"smooth"})}}])}();function Cy(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
6if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ey(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ey(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Ey(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Sy=by([(0,At.d)({selector:".damage-report-overview__container-confirmation",onDomLoaded:!0}),wy("design:paramtypes",[HTMLElement])],Sy);var xy=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Ay=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ky=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Ty=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this._damageReportOverviewService=new ry,this._damageReportOverviewStateService=new Kg,this.overview_spinner=this._element.querySelector(".damage-report-overview__spinner"),this.content=this._element.querySelector(".damage-report-overview__detail-view-container"),this.mailBtn=this._element.querySelector("#contact-send-btn"),this.getDetailContent=function(){return ky(n,void 0,void 0,ht().mark((function e(){var t,n,r,a,i,o,s;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._damageReportOverviewService.selectedDamageReport,this.mailCaseId=t.ec2CaseExportResponse.ec2Id,n=t.ec2CaseExportResponse.case,r=t.ec2CaseExportResponse.insurance,a=t.ec2CaseExportResponse.policyHolder,i=t.ec2CaseExportResponse.vehicle,o=a.policyHolderRemarksInternal.split("|"),s=r.insuranceRemarksInternal.split("|"),this.overview_spinner.hidden=!1,this.content.hidden=!0,this.setupStatusTile(t),this.setupImageTile(t.ec2CaseExportResponse.documents),e.next=14,this.setupDriveInPart(t);case 14:this.setupDamageTile(r,o,n),this.setupDescriptionTile(o),this.setupServiceTile(o),this.setupVehicleTile(i),this.setupVehicleHolderTile(s,o),this.setupDriverTile(s),this.setupPolicyHolderTile(a,o),this.overview_spinner.hidden=!0,this.content.hidden=!1,window.scrollTo({top:0,behavior:"smooth"});case 24:case"end":return e.stop()}}),e,this)})))},this.createImageElement=function(e,t){var n=document.createElement("div");n.classList.add("damage-report__step-5__tile-img-wrapper"),n.id="damage-report-image-".concat(t?t+1:1);var r=new Image;r.classList.add("damage-report__step-5__tile-img"),r.src="data:image/jpeg;base64,".concat(e.binary),r.alt=e.name,r.loading="eager";var a=document.createElement("div");a.classList.add("damage-report__step-5__tile-img-container"),a.appendChild(r),n.appendChild(a);var i=document.createElement("div");i.classList.add("damage-report__step-5__tile-img-text");var o=document.createElement("span");return o.classList.add("damage-report__step-5__tile-img-text-name"),o.textContent=e.name,i.appendChild(o),n.appendChild(i),n},this.setMailEvent=function(){var e=n._element.querySelector("#textArea-detail-view");n.mailBtn.addEventListener("click",(function(){return ky(n,void 0,void 0,ht().mark((function t(){var n,r=this;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=function(t){return ky(r,void 0,void 0,ht().mark((function n(){var r,a;return ht().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=(0,it.gL)(),a={recipientMail:this.mailBtn.dataset.targetAdress,senderMail:this.mailBtn.dataset.senderAdress,mailHeader:"".concat(this.mailBtn.dataset.mailHead," ").concat(this.mailCaseId," / ").concat(r.firstName," ").concat(r.lastName),mailText:e.value,captchaToken:t}
6,n.next=4,this.sendDamageReporOverviewMailRequest(a);case 4:n.sent;case 5:case"end":return n.stop()}}),n,this)})))},window.onCompleted=n,window.grecaptcha.execute();case 3:case"end":return t.stop()}}),t)})))}))},this.sendDamageReporOverviewMailRequest=function(e){return ky(n,void 0,void 0,ht().mark((function t(){return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,yr.O)("amagch-send-damagereportoverview-mail","json",JSON.stringify(e));case 3:return 200==t.sent.status&&(Tr(this.mailBtn.dataset.toastSuccess,"okay",it.lp.isMobile()?"touch":"desktop"),this._element.querySelector("#textArea-detail-view").value="",this._element.querySelector(".integrated-accordion__button").dispatchEvent(new Event("click"))),t.abrupt("return",Promise.resolve());case 8:return t.prev=8,t.t0=t.catch(0),Tr(this.mailBtn.dataset.toastError,"error",it.lp.isMobile()?"touch":"desktop"),t.abrupt("return",eg(t.t0));case 12:case"end":return t.stop()}}),t,this,[[0,8]])})))},this.init()}),[{key:"init",value:function(){this._damageReportOverviewStateService.on(Gg.SHOW_DETAIL_VIEW,this.getDetailContent),this.setMailEvent}},{key:"setupImageTile",value:function(e){var t=this,n=this._element.querySelector("#damageReportSummaryImgTile"),r=n.querySelector(".damage-report-overview__detail-view-tile-img--no-img"),a=n.querySelector(".damage-report-overview__detail-view-tile-img--image-list");if(!e.document)return r.hidden=!1,void(a.hidden=!0);if(a.innerHTML="",r.hidden=!0,e.document.length)return e.document.forEach((function(e,n){var r=t.createImageElement(e,n);a.appendChild(r)})),void(a.hidden=!1);var i=this.createImageElement(e.document);a.appendChild(i),a.hidden=!1}},{key:"setupStatusTile",value:function(e){var t=this._element.querySelector("#damageReportOverviewDetailStatusTile"),n=t.querySelector(".damage-report-overview__detail-view-tile-status-view"),r=t.querySelector(".damage-report-overview__detail-view-tile-vehicle"),a=t.querySelector(".damage-report-overview__detail-view-tile-status-caseType"),i=t.querySelector(".damage-report-overview__detail-view-tile-status-caseDate-icon");n.innerHTML="",n.prepend(this._damageReportOverviewService.createStatusTile(e.ec2CaseExportResponse.case.caseStatus));var o=document.createElement("span");o.classList.add("damage-report-overview__tile-vehicle");var s=this._damageReportOverviewService.getMappedBrand(e.ec2CaseExportResponse.vehicle.vehicleMake);o.innerText="".concat(s).concat(e.ec2CaseExportResponse.vehicle.vehicleModel),r.innerHTML="",r.appendChild(o),t.querySelector(".damage-report-overview__detail-view-tile-status-caseDate").textContent=new Date(e.ec2CaseExportResponse.case.caseDate).toLocaleDateString("de-CH"),t.querySelector(".damage-report-overview__detail-view-tile-status-caseId").textContent=e.ec2CaseExportResponse.ec2Id.toString();var c=e.ec2CaseExportResponse.insurance.insuranceBranch,l="",u="";301===c?(l=Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.damagetype.hail"),u=this._damageReportOverviewService.iconHailPath):201===c?(l=Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.damagetype.collision"),u=this._damageReportOverviewService.iconCollisionPath):307===c?(l=Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.damagetype.parked"),u=this._damageReportOverviewService.iconParkingPath):308===c&&(l=Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.damagetype.glass"),u=this._damageReportOverviewService.iconGlassPath);var d=document.createElement("img");d.classList.add("damage-report-overview__detail-view-tile-status-icon"),d.src=u,d.alt="Icon Damage Type",a.textContent=l,i.innerHTML="",i.appendChild(d)}},{key:"setupGarageTile",value:function(e){return ky(this,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s,c,l,u,d,h,p,f;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.ec2CaseExportResponse.case,r=this._element.querySelector("#damageReportSummaryGarageTile"),a=r.querySelector(".damage-report-overview__detail-view-tile-content"),i=r.querySelector(".damage-report-overview__detail-view-tile-headline"),o=a.querySelector(".damage-report-overview__detail-view-tile-garage-street"),s=a.querySelector(".damage-report-overview__detail-view-tile-garage-city"),c=a.querySelector(".damage-report-overview__detail-view-tile-garage-brands-wrapper"),l=a.querySelector(".damage-report-overview__detail-view-tile-garage-route"),u=n.caseRepairerId.toString(),t.next=11,this._damageReportOverviewService.getGarages();case 11:d=t.sent,h="",p="",f="",c.innerHTML="",d.forEach((function(e){if(e.ec2Id===u){h=e.name,p=e.street,f=e.zip+" "+e.city;var t,n=Cy(e.serviceBrands);try{for(n.s();!(t=n.n()).done;){var r=t.value,a=document.createElement("span");a.classList.add("damage-report__step-3a__garage-brands"),a.textContent=Granite.I18n.get(r),c.appendChild(a)}}catch(e){n.e(e)}finally{n.f()}var i=document.createElement("a");i.classList.add("damage-report-overview__detail-view-tile-garage-link"),i.target="_blank",i.href="https://www.google.com/maps/dir/?api=1&destination=".concat(e.route),i.innerHTML='<svg class="damage-report-overview__detail-view-tile-garage-link-icon size-l" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.10809 23.6331C0.557093 23.6331 0.108093 23.1851 0.108093 22.6331V4.63314C0.108093 4.08214 0.557093 3.63314 1.10809 3.63314H16.1081V1.13314C16.1081 0.638141 16.4211 0.463141 16.5171 0.421141C16.5711 0.398141 16.6591 0.369141 16.7701 0.369141C16.9031 0.369141 17.1051 0.410141 17.3161 0.60714
61L23.5821 6.42614C23.6011 6.44314 23.6251 6.46714 23.6481 6.49314C23.8191 6.68314 23.9051 6.92914 23.8911 7.18414C23.8771 7.43914 23.7651 7.67414 23.5751 7.84514L17.3151 13.6591C17.1041 13.8551 16.9021 13.8961 16.7701 13.8961C16.6601 13.8961 16.5721 13.8681 16.5181 13.8451C16.4211 13.8031 16.1091 13.6281 16.1091 13.1331V10.6331H7.10909V22.6331C7.10909 23.1851 6.66009 23.6331 6.10909 23.6331H1.10809ZM1.10809 22.6331H6.10809V10.6331C6.10809 10.0821 6.55709 9.63314 7.10809 9.63314H16.6081C16.8841 9.63314 17.1081 9.85714 17.1081 10.1331V12.4871L22.8721 7.13414L17.1081 1.78014V4.13314C17.1081 4.40914 16.8841 4.63314 16.6081 4.63314H1.10809V22.6331Z"/>< /svg>';var o=document.createElement("span");o.textContent=Granite.I18n.get("apps.amag-ch.components.content.damageReport.step3.a.routeLabel"),i.appendChild(o),l.innerHTML="",l.appendChild(i)}})),i.textContent=h,o.textContent=p,s.textContent=f;case 20:case"end":return t.stop()}}),t,this)})))}},{key:"setupDamageTile",value:function(e,t,n){var r=this._element.querySelector("#damageReportSummaryDamageTile"),a=r.querySelector(".damage-report-overview__detail-view-tile-content"),i=r.querySelector(".damage-report-overview__detail-view-tile-headline"),o=a.querySelector(".damage-report-overview__detail-view-tile-content-location"),s=a.querySelector(".damage-report-overview__detail-view-tile-content-date"),c=a.querySelector(".damage-report-overview__detail-view-tile-content-insurance").querySelector(".damage-report-overview__detail-view-tile-content-insurance-value"),l=e.insuranceBranch,u="";301===l?u=Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.damagetype.hail"):201===l?u=Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.damagetype.collision"):307===l?u=Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.damagetype.parked"):308===l&&(u=Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.damagetype.glass")),i.textContent=u,o.querySelector(".damage-report-overview__detail-view-tile-content-location-value").textContent=this.secureSplit(t,2,"Schadensort:",!1),s.querySelector(".damage-report-overview__detail-view-tile-content-date-value").textContent=new Date(e.insuranceDamageDate).toLocaleDateString("de-CH");for(var d=this._element.querySelector(".ts-insurance-list").children,h=[],p=0;p<d.length;p++)h.push({code:d[p].dataset.insuranceCode,name:d[p].dataset.insuranceName});var f=h.filter((function(e){return e.code===n.caseClientId.toString()}));f.length>0?c.textContent=f[0].name:c.textContent=Granite.I18n.get("apps.amag-ch.components.content.damageReport.step1.c.dropdown.insurance.other.label")}},{key:"setupDescriptionTile",value:function(e){var t=this._element.querySelector("#damageReportSummaryDescriptionTile"),n=this.secureSplit(e,1,"Schadenstyp:",!0);n.length>0?(t.hidden=!1,t.querySelector(".damage-report-overview__detail-view-tile-content-wrapper").textContent=n):t.hidden=!0}},{key:"setupServiceTile",value:function(e){var t=this._element.querySelector("#damageReportSummaryServiceTile").querySelector(".damage-report-overview__detail-view-tile-content-wrapper-value"),n=this.secureSplit(e,4,"Zusätzliche Services:",!0),r=document.createDocumentFragment();t.innerHTML="";var a,i=document.createElement("span");if(a="Ersatzfahrzeug: JA"===e[3]?Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.replacementVehicle.yes"):Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.replacementVehicle.no"),i.textContent=a,r.appendChild(i),n.length>0){var o=n.includes("//")?"//":";";n.split(o).forEach((function(e){var t=document.createElement("span"),n=e;if(o.includes("//")){var a=n.split(";");t.textContent=a[0]}else t.textContent=n;r.appendChild(t)}))}t.appendChild(r)}},{key:"setupVehicleTile",value:function(e){var t=this._element.querySelector("#damageReportSummaryVehicleTile"),n=t.querySelector(".damage-report-overview__detail-view-tile-content"),r=n.querySelector(".damage-report-overview__detail-view-tile-content-licence"),a=n.querySelector(".damage-report-overview__detail-view-tile-content-registration"),i=n.querySelector(".damage-report-overview__detail-view-tile-content-chassis"),o=this._damageReportOverviewService.getMappedBrand(e.vehicleMake);t.querySelector(".damage-report-overview__detail-view-tile-headline").textContent=o+e.vehicleModel,i.querySelector(".damage-report-overview__detail-view-tile-content-value").textContent=e.vehicleChassis,r.querySelector(".damage-report-overview__detail-view-tile-content-value").textContent=e.vehiclePlate,a.querySelector(".damage-report-overview__detail-view-tile-content-value").textContent=new Date(e.vehicleFirstUse).toLocaleDateString("de-CH"),1===e.vehicleLeasing&&n.querySelector(".damage-report-overview__detail-view-tile-content-leasing").removeAttribute("hidden"),1===e.vehicleSubscription&&n.querySelector(".damage-report-overview__detail-view-tile-content-abo").removeAttribute("hidden")}},{key:"setupVehicleHolderTile",value:function(e,t){var n=e[0].split(","),r=this._element.querySelector("#damageReportSummaryVehicleHolderTile").querySelector(".damage-report-overview__detail-view-tile-content"),a=r.querySelector(".damage-report-overview__detail-view-tile-content-holder-company"),i=r.querySelector(".damage-report-overview__detail-view-tile-content-holder-name"),o=r.querySelector(".damage-report-overview__detail-view-tile-content-holder-street"),s=r.querySelector(".damage-report-overview__detail-view-tile-content-holder-place"),c=r.querySelector(".damage-report-overview__detail-view-tile-content-holder-country"),l=r.querySelector(".damage-report-overview__detail-view-tile-content-holder-mail"),u=r.querySelector(".damage-report-overview__detail-view-tile-content-holder-phone"),d=this.secureSplit(n,1,":",!0),h=this.secureSplit(n,8,":",!0),p="",f="";
6"m"===d?p=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.male"):"f"===d&&(p=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.female")),["CHE","CH"].includes(h)?f=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.ch"):"LI"===h&&(f=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.li")),a.textContent=this.secureSplit(t,0,":",!0);var m="".concat(p," ").concat(this.secureSplit(n,2,":",!0)," ").concat(this.secureSplit(n,3,":",!0));i.textContent=m;var v="".concat(this.secureSplit(n,4,":",!0)," ").concat(this.secureSplit(n,5,":",!0));o.textContent=v;var g="".concat(this.secureSplit(n,6,":",!0)," ").concat(this.secureSplit(n,7,":",!0));s.textContent=g,c.textContent=f,l.textContent=this.secureSplit(n,9,":",!0);var y="".concat(this.secureSplit(n,10,":",!0)," ").concat(this.secureSplit(n,11,":",!0));u.textContent=y}},{key:"setupDriverTile",value:function(e){var t=this._element.querySelector("#damageReportSummaryVehicleDriverTile");if(e.length>1){t.hidden=!1;var n=e[1].split(","),r=t.querySelector(".damage-report-overview__detail-view-tile-content"),a=r.querySelector(".damage-report-overview__detail-view-tile-content-driver-name"),i=r.querySelector(".damage-report-overview__detail-view-tile-content-driver-street"),o=r.querySelector(".damage-report-overview__detail-view-tile-content-driver-place"),s=r.querySelector(".damage-report-overview__detail-view-tile-content-driver-country"),c=this.secureSplit(n,1,":",!0),l=this.secureSplit(n,8,":",!0),u="",d="";"m"===c?u=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.male"):"f"===c&&(u=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.female")),["CHE","CH"].includes(l)?d=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.ch"):"LI"===l&&(d=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.li"));var h="".concat(u," ").concat(this.secureSplit(n,2,":",!0)," ").concat(this.secureSplit(n,3,":",!0));a.textContent=h;var p="".concat(this.secureSplit(n,4,":",!0)," ").concat(this.secureSplit(n,5,":",!0));i.textContent=p;var f="".concat(this.secureSplit(n,6,":",!0)," ").concat(this.secureSplit(n,7,":",!0));o.textContent=f,s.textContent=d}else t.hidden=!0}},{key:"setupPolicyHolderTile",value:function(e,t){var n=this._element.querySelector("#damageReportSummaryVehicleInsurerTile").querySelector(".damage-report-overview__detail-view-tile-content"),r=n.querySelector(".damage-report-overview__detail-view-tile-content-insurer-company"),a=n.querySelector(".damage-report-overview__detail-view-tile-content-driver-name"),i=n.querySelector(".damage-report-overview__detail-view-tile-content-driver-street"),o=n.querySelector(".damage-report-overview__detail-view-tile-content-driver-place"),s=n.querySelector(".damage-report-overview__detail-view-tile-content-insurer-country"),c=n.querySelector(".damage-report-overview__detail-view-tile-content-insurer-mail"),l=n.querySelector(".damage-report-overview__detail-view-tile-content-insurer-phone"),u=e.policyHolderTitle,d=e.policyHolderCountry,h="",p="";"m"===u?h=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.male"):"f"===u&&(h=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.salutation.female")),["CHE","CH"].includes(d)?p=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.ch"):"LI"===d&&(p=Granite.I18n.get("apps.amag-ch.components.content.damageReport.screen-1e.form.country.li")),r.textContent=this.secureSplit(t,0,"Versicherungsnehmer Firma:",!1),a.textContent=h+" "+e.policyHolderFirstName+" "+e.policyHolderLastName,i.textContent=e.policyHolderStreet,o.textContent=e.policyHolderZip+" "+e.policyHolderCity,s.textContent=p,c.textContent=e.policyHolderEmail,l.textContent="".concat(e.policyHolderPhoneM)}},{key:"setupDriveInPart",value:function(e){return ky(this,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s,c,l=this;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.ec2CaseExportResponse.ec2Id.toString(),t.next=3,this.getDriveInData(n);case 3:if(r=t.sent,a=this._element.querySelector("#damageReportOverviewDetailPartDriveIn"),i=this._element.querySelector("#damageReportOverviewDetailPart4"),a.hidden=!0,i.hidden=!1,!(r.length>0)){t.next=21;break}return a.hidden=!1,i.hidden=!0,t.next=13,this.setupDriveInGarageTile(e);case 13:o=a.querySelector("#damageReportSummaryDriveInAppointment"),s=o.querySelector("#appointmentDate"),c=o.querySelector("#appointmentTime"),s.querySelector(".damage-report-overview__detail-view-tile-headline").textContent=new Date(r[0].appointment.date).toLocaleDateString("de-CH"),c.querySelector(".damage-report-overview__detail-view-tile-headline").textContent="".concat(r[0].appointment.time," ").concat(Granite.I18n.get("apps.amag-ch.components.c
6ontent.damageReportOverview.detail.time")),a.querySelector(".damage-report-overview__detail-view-edit").addEventListener("click",(function(){l._damageReportOverviewService.selectedDriveIn=r[0],l._damageReportOverviewService.originView=Gg.SHOW_DETAIL_VIEW,l._damageReportOverviewStateService.emit(Gg.SHOW_CHANGE_VIEW,null)})),t.next=23;break;case 21:return t.next=23,this.setupGarageTile(e);case 23:case"end":return t.stop()}}),t,this)})))}},{key:"setupDriveInGarageTile",value:function(e){return ky(this,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s,c,l,u,d,h,p,f,m;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.ec2CaseExportResponse.case,r=this._element.querySelector("#damageReportSummaryDriveInGarage"),a=r.querySelector(".damage-report-overview__detail-view-tile-content"),i=r.querySelector(".damage-report-overview__detail-view-tile-headline"),o=a.querySelector(".damage-report-overview__detail-view-tile-garage-street"),s=a.querySelector(".damage-report-overview__detail-view-tile-garage-city"),c=a.querySelector(".damage-report-overview__detail-view-tile-garage-route"),l=a.querySelector(".damage-report-overview__detail-view-tile-garage-mail"),u=a.querySelector(".damage-report-overview__detail-view-tile-garage-phone"),d=n.caseRepairerId.toString(),t.next=12,this._damageReportOverviewService.getGarages();case 12:h=t.sent,p="",f="",m="",h.forEach((function(e){if(e.ec2Id===d){p=e.name,f=e.street,m=e.zip+" "+e.city;var t=document.createElement("a");t.classList.add("damage-report-overview__detail-view-tile-garage-link"),t.target="_blank",t.href="https://www.google.com/maps/dir/?api=1&destination=".concat(e.route),t.innerHTML='<svg class="damage-report-overview__detail-view-tile-garage-link-icon size-l" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.10809 23.6331C0.557093 23.6331 0.108093 23.1851 0.108093 22.6331V4.63314C0.108093 4.08214 0.557093 3.63314 1.10809 3.63314H16.1081V1.13314C16.1081 0.638141 16.4211 0.463141 16.5171 0.421141C16.5711 0.398141 16.6591 0.369141 16.7701 0.369141C16.9031 0.369141 17.1051 0.410141 17.3161 0.607141L23.5821 6.42614C23.6011 6.44314 23.6251 6.46714 23.6481 6.49314C23.8191 6.68314 23.9051 6.92914 23.8911 7.18414C23.8771 7.43914 23.7651 7.67414 23.5751 7.84514L17.3151 13.6591C17.1041 13.8551 16.9021 13.8961 16.7701 13.8961C16.6601 13.8961 16.5721 13.8681 16.5181 13.8451C16.4211 13.8031 16.1091 13.6281 16.1091 13.1331V10.6331H7.10909V22.6331C7.10909 23.1851 6.66009 23.6331 6.10909 23.6331H1.10809ZM1.10809 22.6331H6.10809V10.6331C6.10809 10.0821 6.55709 9.63314 7.10809 9.63314H16.6081C16.8841 9.63314 17.1081 9.85714 17.1081 10.1331V12.4871L22.8721 7.13414L17.1081 1.78014V4.13314C17.1081 4.40914 16.8841 4.63314 16.6081 4.63314H1.10809V22.6331Z"/>< /svg>';var n=document.createElement("span");n.textContent=Granite.I18n.get("apps.amag-ch.components.content.damageReport.step3.a.routeLabel"),t.appendChild(n),c.innerHTML="",c.appendChild(t);var r=document.createElement("a");r.classList.add("damage-report-overview__detail-view-tile-garage-link"),r.target="_blank",r.href="mailto:".concat(e.mail),r.innerHTML='<svg class="damage-report-overview__detail-view-tile-garage-link-icon size-l" viewBox="0 0 32 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.33333 23.2719C1.49467 23.2719 0 21.7759 0 19.9386V3.93856C0 3.07456 0.330667 2.25589 0.932 1.63189C0.933333 1.62922 0.934667 1.62789 0.936 1.62656C0.949333 1.61056 0.966667 1.59322 0.984 1.57856C1.62533 0.945225 2.45333 0.605225 3.33333 0.605225H28.6667C29.5573 0.605225 30.3933 0.953225 31.0253 1.58522C31.0373 1.59589 31.048 1.60656 31.0573 1.61722C31.0613 1.62122 31.0653 1.62656 31.0693 1.63189C31.6653 2.24656 32 3.06922 32 3.93856V19.9386C32 21.7759 30.504 23.2719 28.6667 23.2719H3.33333ZM1.568 3.00389C1.41333 3.29056 1.33333 3.60789 1.33333 3.93856V19.9386C1.33333 21.0412 2.23067 21.9386 3.33333 21.9386H28.6667C29.7693 21.9386 30.6667 21.0412 30.6667 19.9386V3.93856C30.6667 3.60789 30.5867 3.29056 30.432 3.00389L16.4213 14.4559C16.3027 14.5532 16.1533 14.6066 16 14.6066C15.8467 14.6066 15.6973 14.5532 15.5787 14.4559L1.568 3.00389ZM16 13.0772L29.4373 2.09456C29.1947 1.99189 28.9333 1.93856 28.6667 1.93856H3.33333C3.06667 1.93856 2.80533 1.99189 2.56267 2.09456L16 13.0772Z" />< /svg>';var a=document.createElement("span");a.textContent="".concat(e.mail),r.appendChild(a),l.innerHTML="",l.appendChild(r);var o=document.createElement("a");o.classList.add("damage-report-overview__detail-view-tile-garage-link"),o.target="_blank",o.href="tel:".concat(e.phone),o.innerHTML='<svg class="damage-report-overview__detail-view-tile-garage-link-icon size-l" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24.7 31.3241C23.6573 31.3241 22.648 31.0214 21.784 30.4494C13.7173 25.0894 6.91068 18.2827 1.55068 10.2174C0.165342 8.12806 0.446675 5.32673 2.22134 3.55606L4.01334 1.7614C4.72134 1.0534 5.66268 0.664062 6.66534 0.664062C7.66801 0.664062 8.60934 1.0534 9.31734 1.7614L12.5893 5.0294C14.0493 6.49206 14.0493 8.87073
612.5907 10.3334L11.928 10.9974C14.672 14.2761 17.7227 17.3281 21.0013 20.0734L21.6627 19.4121C22.3787 18.7001 23.3173 18.3134 24.3147 18.3134C25.3173 18.3134 26.2587 18.7041 26.9667 19.4121L30.2387 22.6841C31.7 24.1467 31.6987 26.5254 30.2373 27.9867L28.444 29.7814C27.448 30.7761 26.1187 31.3241 24.7 31.3241ZM6.66534 1.9974C6.01868 1.9974 5.41201 2.24806 4.95601 2.70406L3.16401 4.49873C1.83734 5.82273 1.62668 7.9174 2.66268 9.47873C7.92268 17.3961 14.604 24.0774 22.5213 29.3374C23.1667 29.7654 23.92 29.9907 24.7013 29.9907C25.7627 29.9907 26.7587 29.5814 27.504 28.8374L29.2973 27.0441C30.24 26.1014 30.24 24.5694 29.2987 23.6267L26.0267 20.3547C25.5707 19.8987 24.964 19.6467 24.3187 19.6467C23.6733 19.6467 23.0667 19.8974 22.6107 20.3534L21.5187 21.4454C21.3933 21.5707 21.2253 21.6401 21.0467 21.6401C20.8933 21.6401 20.7427 21.5867 20.624 21.4881C16.944 18.4601 13.544 15.0587 10.516 11.3774C10.2973 11.1107 10.316 10.7267 10.5587 10.4827L11.6493 9.3894C12.5907 8.44673 12.5907 6.91206 11.6493 5.9694L8.37601 2.70406C7.92001 2.24806 7.31201 1.9974 6.66534 1.9974Z" />< /svg>';var s=document.createElement("span");s.textContent="".concat(e.phone),o.appendChild(s),u.innerHTML="",u.appendChild(o),i.innerHTML='<svg class="damage-report-overview__detail-view-tile-garage-link-icon size-l" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 16.0005C2.949 16.0005 2.5 15.5525 2.5 15.0005V14.0005C1.949 14.0005 1.5 13.5525 1.5 13.0005V9.70749C1.5 9.44049 1.604 9.19049 1.792 9.00149L3.574 7.21949L5.41 2.62849C5.563 2.24749 5.927 2.00049 6.338 2.00049H16.661C17.073 2.00049 17.437 2.24649 17.59 2.62849L19.426 7.21949L20.353 8.14649C20.448 8.24149 20.5 8.36649 20.5 8.50049C20.5 8.63449 20.448 8.75949 20.354 8.85449C20.26 8.94949 20.134 9.00049 20 9.00049C19.866 9.00049 19.741 8.94849 19.646 8.85449L18.793 8.00049H4.207L2.5 9.70849V11.0005H6.5C6.776 11.0005 7 11.2245 7 11.5005C7 11.7765 6.776 12.0005 6.5 12.0005H2.5V13.0005H9C9.276 13.0005 9.5 13.2245 9.5 13.5005C9.5 13.7765 9.276 14.0005 9 14.0005H6.5V15.0005C6.5 15.5525 6.051 16.0005 5.5 16.0005H3.5ZM3.5 15.0005H5.5V14.0005H3.5V15.0005ZM18.262 7.00049L16.662 3.00049H6.337L4.738 7.00049H18.262ZM17 22.0005C13.416 22.0005 10.5 19.0845 10.5 15.5005C10.5 11.9165 13.416 9.00049 17 9.00049C20.584 9.00049 23.5 11.9165 23.5 15.5005C23.5 19.0845 20.584 22.0005 17 22.0005ZM17 10.0005C13.967 10.0005 11.5 12.4675 11.5 15.5005C11.5 18.5335 13.967 21.0005 17 21.0005C20.033 21.0005 22.5 18.5335 22.5 15.5005C22.5 12.4675 20.033 10.0005 17 10.0005ZM17.5 13.4404C17.5 13.1643 17.2761 12.9404 17 12.9404C16.7239 12.9404 16.5 13.1643 16.5 13.4404V15.3539C16.5 15.7598 16.7287 16.1311 17.0912 16.3138L20.4529 18.0073C20.6995 18.1316 21.0001 18.0324 21.1244 17.7858C21.2486 17.5391 21.1494 17.2385 20.9028 17.1143L17.5411 15.4207C17.5159 15.408 17.5 15.3822 17.5 15.3539V13.4404Z"/></svg>';var h=document.createElement("span");return h.textContent=Granite.I18n.get("apps.amag-ch.components.content.damageReport.confirmation.garage.driveInGaragePrefix")+" ".concat(p),void i.appendChild(h)}})),o.textContent=f,s.textContent=m;case 19:case"end":return t.stop()}}),t,this)})))}},{key:"secureSplit",value:function(e,t,n,r){try{return r?e[t].split(n)[1].trim():e[t].split(n)[1]}catch(e){return console.error(e),"Corrupted Data"}}},{key:"getDriveInData",value:function(e){return ky(this,void 0,void 0,ht().mark((function t(){var n,r;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._damageReportOverviewService.getDriveInAppointmentData(e);case 2:return n=t.sent,r=n,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}}])}();function Ly(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Iy(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iy(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Iy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Ty=xy([(0,At.d)({selector:".damage-report-overview__detail-view",onDomLoaded:!0}),Ay("design:paramtypes",[HTMLElement])],Ty);var Dy=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Py=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}
6,Oy=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Ry=(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this._damageReportOverviewService=new ry,this._damageReportOverviewStateService=new Kg,this.init=function(){n.addTileClickEvent(),n._damageReportOverviewStateService.on(Gg.EC2_LOADED,n.createListView),n._damageReportOverviewStateService.on(Gg.RE_RENDER_LIST_VIEW,n.createListView)},this.createListView=function(){return Oy(n,void 0,void 0,ht().mark((function e(){var t,n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:m=this._element.querySelector(".damage-report-overview__list"),v=this._damageReportOverviewService.damageReportDataEC2,this._damageReportOverviewService.showSpinner(),m.innerHTML="",g=document.createDocumentFragment(),y=Ly(v),e.prev=6,y.s();case 8:if((_=y.n()).done){e.next=19;break}if(b=_.value,(null===(n=null===(t=null==b?void 0:b.ec2CaseExportResponse)||void 0===t?void 0:t.vehicle)||void 0===n?void 0:n.vehicleMake)&&(null===(a=null===(r=null==b?void 0:b.ec2CaseExportResponse)||void 0===r?void 0:r.vehicle)||void 0===a?void 0:a.vehicleModel)&&(null===(o=null===(i=null==b?void 0:b.ec2CaseExportResponse)||void 0===i?void 0:i.policyHolder)||void 0===o?void 0:o.policyHolderEmail)&&(null===(c=null===(s=null==b?void 0:b.ec2CaseExportResponse)||void 0===s?void 0:s.policyHolder)||void 0===c?void 0:c.policyHolderFirstName)&&(null===(u=null===(l=null==b?void 0:b.ec2CaseExportResponse)||void 0===l?void 0:l.policyHolder)||void 0===u?void 0:u.policyHolderLastName)&&(null===(h=null===(d=null==b?void 0:b.ec2CaseExportResponse)||void 0===d?void 0:d.insurance)||void 0===h?void 0:h.insuranceBranch)&&(null===(f=null===(p=null==b?void 0:b.ec2CaseExportResponse)||void 0===p?void 0:p.insurance)||void 0===f?void 0:f.insuranceDamageDate)){e.next=12;break}return e.abrupt("return");case 12:return e.t0=g,e.next=15,this.createDamageReportListElement(b);case 15:e.t1=e.sent,e.t0.prepend.call(e.t0,e.t1);case 17:e.next=8;break;case 19:e.next=24;break;case 21:e.prev=21,e.t2=e.catch(6),y.e(e.t2);case 24:return e.prev=24,y.f(),e.finish(24);case 27:m.appendChild(g),window.scrollTo({top:0,behavior:"smooth"}),this._damageReportOverviewService.hideSpinner();case 30:case"end":return e.stop()}}),e,this,[[6,21,24,27]])})))},this.createDamageReportListElement=function(e){return Oy(n,void 0,void 0,ht().mark((function t(){var n,r,a,i,o,s,c,l,u,d,h,p,f,m,v,g,y,_,b,w,S,C,E,x,A,k,T;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.ec2CaseExportResponse.ec2Id.toString(),t.next=3,this.getDriveInData(n);case 3:if(r=t.sent,(a=document.createElement("div")).classList.add("damage-report-overview__tile"),a.setAttribute("data-ec2-reference",e.ec2CaseExportResponse.ec2Id.toString()),(i=document.createElement("div")).classList.add("damage-report-overview__tile-left"),o=this._damageReportOverviewService.createStatusTile(e.ec2CaseExportResponse.case.caseStatus),(s=document.createElement("div")).classList.add("damage-report-overview__tile-right"),c=document.createElement("div"),l=e.ec2CaseExportResponse.insurance.insuranceBranch,u="",d="",301===l?(u=Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.damagetype.hail"),d=this._damageReportOverviewService.iconHailPath):201===l?(u=Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.damagetype.collision"),d=this._damageReportOverviewService.iconCollisionPath):307===l?(u=Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.damagetype.parked"),d=this._damageReportOverviewService.iconParkingPath):308===l&&(u=Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.damagetype.glass"),d=this._damageReportOverviewService.iconGlassPath),(h=document.createElement("div")).classList.add("damage-report-overview__tile-damage-wrapper"),(p=document.createElement("img")).classList.add("damage-report-overview__tile-damage-icon"),p.src=d,p.alt="Icon Damage Type",h.insertAdjacentElement("beforeend",p),(f=document.createElement("div")).classList.add("damage-report-overview__tile-label"),(m=document.createElement("span")).classList.add("damage-report-overview__tile-title"),m.innerText=u,(v=document.createElement("span")).classList.add("damage-report-overview__tile-subText"),v.innerText=this._damageReportOverviewService.listTextDate+" "+new Date(e.ec2CaseExportResponse.insurance.insuranceDamageDate).toLocaleDateString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"}),f.insertAdjacentElement("beforeend",m),f.insertAdjacentElement("beforeend",v),h.insertAdjacentElement("beforeend",f),g=document.createElement("span"),y=this._damageReportOverviewService.getMappedBrand(e.ec2CaseExportResponse.vehicle.vehicleMake),g.classList.add("damage-report-overview__tile-vehicle"),g.innerText="".concat(y).concat(e.ec2CaseExportResponse.vehicle.vehicleModel),i.insertAdjacentElement("beforeend",g),i.insertAdjacentElement("beforeend",h),!(r.length>0)){t.next=72;break}return t.next=44,this.getGarage(e.ec2CaseExportResponse.case.caseRepairerId.toString());case 44:_=t.sent,(b=document.createElement("div")).classList.add("damage-report-overview__tile-drivein-wrapper"),(w=document.createElement("span")).classList.add("damage-report-overview__tile-drivein-icon"),w.innerHTML='<svg class="damage-report-overview__summary-view-tile-garage-link-icon size-l" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 16.0005C2.949 16.0005 2.5 15.5525 2.5 15.0005V14.0005C1.949 14.0005 1.5 13.5525 1.5 13.0005V9.70749C1.5 9.44049 1.604 9.19049 1.792 9.00149L3.574 7.21949L5.41 2.62849C5.563 2.24749 5.927 2.00049 6.338 2.00049H16.661C17.073 2.00049 17.437 2.24649 17.59 2.62849L19.426 7.21949L20.353 8.14649C20.448 8.24149 20.5 8.36649 20.5 8.50049C20.5 8.63449 20.448 8.75949 20.354 8.85449C20.26 8.94949 20.134 9.00049 20 9.00049C19.866 9.00049 19.741 8.94849 19.646 8.85449L18.793 8.00049H4.207L2.5 9.70849V11.0005H6.5C6.776 11.0005 7 11.2245 7 11.5005C7 11.7765 6.776 12.0005 6.5 12.0005H2.5V13.0005H9C9.276 13.0005 9.5 13.2245 9.5 13.5005C9.5 13.7765 9.276 14.0005 9 14.0005H6.5V15.0005C6.5 15.5525 6.051 16.0005 5.5 16.0005H3.5ZM3.5 15.0005H5.5V14.0005H3.5V15.0005ZM18.262 7.00049L16.662 3.00049H6.337L4.738 7.00049H18.262ZM17 22.0005C13.416 22.0005 10.5 19.0845 10.5 15.5005C10.5 11.9165 13.416 9.00049 17 9.00049C20.584 9.00049 23.5 11.9165 23.5 15.5005C23.5 19.0845 20.584 22.000
65 17 22.0005ZM17 10.0005C13.967 10.0005 11.5 12.4675 11.5 15.5005C11.5 18.5335 13.967 21.0005 17 21.0005C20.033 21.0005 22.5 18.5335 22.5 15.5005C22.5 12.4675 20.033 10.0005 17 10.0005ZM17.5 13.4404C17.5 13.1643 17.2761 12.9404 17 12.9404C16.7239 12.9404 16.5 13.1643 16.5 13.4404V15.3539C16.5 15.7598 16.7287 16.1311 17.0912 16.3138L20.4529 18.0073C20.6995 18.1316 21.0001 18.0324 21.1244 17.7858C21.2486 17.5391 21.1494 17.2385 20.9028 17.1143L17.5411 15.4207C17.5159 15.408 17.5 15.3822 17.5 15.3539V13.4404Z"/></svg>',b.insertAdjacentElement("beforeend",w),(S=document.createElement("div")).classList.add("damage-report-overview__tile-label"),(C=document.createElement("span")).classList.add("damage-report-overview__tile-title"),C.innerText=Granite.I18n.get("apps.amag-ch.components.content.damageReport.confirmation.garage.driveInGaragePrefix")+" ".concat(null==_?void 0:_.name),(E=document.createElement("span")).classList.add("damage-report-overview__tile-subText"),E.innerText=new Date(r[0].appointment.date).toLocaleDateString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"})+", "+"".concat(r[0].appointment.time," ").concat(Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.time")),S.insertAdjacentElement("beforeend",C),S.insertAdjacentElement("beforeend",E),b.insertAdjacentElement("beforeend",S),i.insertAdjacentElement("beforeend",b),(x=document.createElement("span")).classList.add("damage-report-overview__tile-edit-wrapper"),x.setAttribute("data-ec2-reference",e.ec2CaseExportResponse.ec2Id.toString()),x.insertAdjacentHTML("beforeend",Xg.svgPencil),(A=document.createElement("span")).classList.add("damage-report-overview__tile-edit-link"),A.innerText=this._damageReportOverviewService.editLinkText,x.insertAdjacentElement("beforeend",A),c.insertAdjacentElement("beforeend",x);case 72:return i.insertAdjacentElement("beforeend",o),(k=document.createElement("div")).classList.add("damage-report-overview__tile-detail-wrapper"),k.setAttribute("data-ec2-reference",e.ec2CaseExportResponse.ec2Id.toString()),k.insertAdjacentHTML("beforeend",Xg.arrowRightSvg),(T=document.createElement("div")).classList.add("damage-report-overview__tile-detail-link"),T.innerText=this._damageReportOverviewService.detailLinkText,k.insertAdjacentElement("beforeend",T),c.insertAdjacentElement("beforeend",k),s.insertAdjacentElement("beforeend",c),a.insertAdjacentElement("beforeend",i),a.insertAdjacentElement("beforeend",s),t.abrupt("return",a);case 86:case"end":return t.stop()}}),t,this)})))},this.addTileClickEvent=function(){n._element.querySelector(".damage-report-overview__list").addEventListener("click",(function(e){var t=e.target;if(!t.classList.contains("damage-report-overview__create-new")||!t.classList.contains("damage-report-overview__infotext"))if(t.classList.contains("damage-report-overview__tile-detail-wrapper")){var r=parseInt(t.dataset.ec2Reference),a=n._damageReportOverviewService.damageReportDataEC2.find((function(e){return e.ec2CaseExportResponse.ec2Id===r}));n._damageReportOverviewService.selectedDamageReport=a,n._damageReportOverviewService.originView=Gg.SHOW_LIST_VIEW,n._damageReportOverviewStateService.emit(Gg.SHOW_DETAIL_VIEW,null)}else if(t.classList.contains("damage-report-overview__tile-edit-wrapper")){var i=parseInt(t.dataset.ec2Reference),o=n._damageReportOverviewService.damageReportDataEC2.find((function(e){return e.ec2CaseExportResponse.ec2Id===i}));n._damageReportOverviewService.selectedDamageReport=o,n._damageReportOverviewService.selectedDriveIn=null,n._damageReportOverviewService.originView=Gg.SHOW_LIST_VIEW,n._damageReportOverviewStateService.emit(Gg.SHOW_CHANGE_VIEW,null)}}))},this.getDriveInData=function(e){return Oy(n,void 0,void 0,ht().mark((function t(){var n,r;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._damageReportOverviewService.getDriveInAppointmentData(e);case 2:return n=t.sent,r=n,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))},this.getGarage=function(e){return Oy(n,void 0,void 0,ht().mark((function t(){var n,r,a,i,o;return ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._damageReportOverviewService.getGarages();case 2:n=t.sent,r=null,a=Ly(n),t.prev=5,a.s();case 7:if((i=a.n()).done){t.next=14;break}if((o=i.value).ec2Id!==e){t.next=12;break}return r=o,t.abrupt("break",14);case 12:t.next=7;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(5),a.e(t.t0);case 19:return t.prev=19,a.f(),t.finish(19);case 22:return t.abrupt("return",r);case 23:case"end":return t.stop()}}),t,this,[[5,16,19,22]])})))},this.init()}));Ry=Dy([(0,At.d)({selector:".damage-report-overview__list-view",onDomLoaded:!0}),Py("design:paramtypes",[HTMLElement])],Ry);var My=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},qy=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}
6,Ny=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Vy=(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this._stateService=new Kg,this._damageReportOverviewService=new ry,this._cancelModalService=new oy,this.content=this._element.querySelector(".damage-report-overview__summary-view-container"),this.overview_spinner=this._element.querySelector(".damage-report-overview__spinner"),this.appointmentTile=this.content.querySelector("#damageReportOverviewSummaryDriveInAppointment"),this.init=function(){n.initEventListeners()},this.initEventListeners=function(){n._stateService.on(Gg.SHOW_SUMMARY_VIEW,(function(){n.showView()})),n._element.querySelector(".damage-report-overview__summary-view-edit").addEventListener("click",(function(){n._stateService.emit(Gg.SHOW_CHANGE_VIEW,null)})),n._element.querySelector(".damage-report-overview__summary-view__cancel-btn").addEventListener("click",(function(){n._cancelModalService.showModal(n._damageReportOverviewService.originView)})),n._element.querySelector(".damage-report-overview__summary-view__confirm-btn").addEventListener("click",(function(){n.validateAppointment()}))},this.showView=function(){return Ny(n,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.content.hidden=!0,this.overview_spinner.hidden=!1,e.next=4,this.fillGarageContent();case 4:this.fillAppointmentContent(),window.scrollTo({top:0,behavior:"smooth"}),this.overview_spinner.hidden=!0,this.content.hidden=!1;case 8:case"end":return e.stop()}}),e,this)})))},this.fillAppointmentContent=function(){var e=n._damageReportOverviewService.newAppointment,t=n.appointmentTile.querySelector("#damageReportOverviewSummaryAppointmentDate"),r=n.appointmentTile.querySelector("#damageReportOverviewSummaryAppointmentTime");t.querySelector(".damage-report-overview__summary-view-tile-headline").textContent=new Date(e.appointment.date).toLocaleDateString("de-CH");var a=e.appointment.time.split(":"),i=parseInt(a[1])+30,o=parseInt(a[0]);i>59&&(i-=60,o+=1),r.querySelector(".damage-report-overview__summary-view-tile-headline").textContent="".concat(e.appointment.time," - ").concat(o,":").concat(i," ").concat(Granite.I18n.get("apps.amag-ch.components.content.damageReportOverview.detail.time"))},this.fillGarageContent=function(){return Ny(n,void 0,void 0,ht().mark((function e(){var t,n,r,a,i,o,s,c,l,u,d,h,p,f;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._damageReportOverviewService.selectedDamageReport.ec2CaseExportResponse.case,n=this._element.querySelector("#damageReportOverviewSummaryGarage"),r=n.querySelector(".damage-report-overview__summary-view-tile-content"),a=n.querySelector(".damage-report-overview__summary-view-tile-headline"),i=r.querySelector(".damage-report-overview__summary-view-tile-garage-street"),o=r.querySelector(".damage-report-overview__summary-view-tile-garage-city"),s=r.querySelector(".damage-report-overview__summary-view-tile-garage-route"),c=r.querySelector(".damage-report-overview__summary-view-tile-garage-mail"),l=r.querySelector(".damage-report-overview__summary-view-tile-garage-phone"),u=t.caseRepairerId.toString(),e.next=12,this._damageReportOverviewService.getGarages();case 12:d=e.sent,h="",p="",f="",d.forEach((function(e){if(e.ec2Id===u){h=e.name,p=e.street,f=e.zip+" "+e.city;var t=document.createElement("a");t.classList.add("damage-report-overview__summary-view-tile-garage-link"),t.target="_blank",t.href="https://www.google.com/maps/dir/?api=1&destination=".concat(e.route),t.innerHTML='<svg class="damage-report-overview__summary-view-tile-garage-link-icon size-l" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.10809 23.6331C0.557093 23.6331 0.108093 23.1851 0.108093 22.6331V4.63314C0.108093 4.08214 0.557093 3.63314 1.10809 3.63314H16.1081V1.13314C16.1081 0.638141 16.4211 0.463141 16.5171 0.421141C16.5711 0.398141 16.6591 0.369141 16.7701 0.369141C16.9031 0.369141 17.1051 0.410141 17.3161 0.60714
61L23.5821 6.42614C23.6011 6.44314 23.6251 6.46714 23.6481 6.49314C23.8191 6.68314 23.9051 6.92914 23.8911 7.18414C23.8771 7.43914 23.7651 7.67414 23.5751 7.84514L17.3151 13.6591C17.1041 13.8551 16.9021 13.8961 16.7701 13.8961C16.6601 13.8961 16.5721 13.8681 16.5181 13.8451C16.4211 13.8031 16.1091 13.6281 16.1091 13.1331V10.6331H7.10909V22.6331C7.10909 23.1851 6.66009 23.6331 6.10909 23.6331H1.10809ZM1.10809 22.6331H6.10809V10.6331C6.10809 10.0821 6.55709 9.63314 7.10809 9.63314H16.6081C16.8841 9.63314 17.1081 9.85714 17.1081 10.1331V12.4871L22.8721 7.13414L17.1081 1.78014V4.13314C17.1081 4.40914 16.8841 4.63314 16.6081 4.63314H1.10809V22.6331Z"/>< /svg>';var n=document.createElement("span");n.textContent=Granite.I18n.get("apps.amag-ch.components.content.damageReport.step3.a.routeLabel"),t.appendChild(n),s.innerHTML="",s.appendChild(t);var r=document.createElement("a");r.classList.add("damage-report-overview__summary-view-tile-garage-link"),r.target="_blank",r.href="mailto:".concat(e.mail),r.innerHTML='<svg class="damage-report-overview__summary-view-tile-garage-link-icon size-l" viewBox="0 0 32 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.33333 23.2719C1.49467 23.2719 0 21.7759 0 19.9386V3.93856C0 3.07456 0.330667 2.25589 0.932 1.63189C0.933333 1.62922 0.934667 1.62789 0.936 1.62656C0.949333 1.61056 0.966667 1.59322 0.984 1.57856C1.62533 0.945225 2.45333 0.605225 3.33333 0.605225H28.6667C29.5573 0.605225 30.3933 0.953225 31.0253 1.58522C31.0373 1.59589 31.048 1.60656 31.0573 1.61722C31.0613 1.62122 31.0653 1.62656 31.0693 1.63189C31.6653 2.24656 32 3.06922 32 3.93856V19.9386C32 21.7759 30.504 23.2719 28.6667 23.2719H3.33333ZM1.568 3.00389C1.41333 3.29056 1.33333 3.60789 1.33333 3.93856V19.9386C1.33333 21.0412 2.23067 21.9386 3.33333 21.9386H28.6667C29.7693 21.9386 30.6667 21.0412 30.6667 19.9386V3.93856C30.6667 3.60789 30.5867 3.29056 30.432 3.00389L16.4213 14.4559C16.3027 14.5532 16.1533 14.6066 16 14.6066C15.8467 14.6066 15.6973 14.5532 15.5787 14.4559L1.568 3.00389ZM16 13.0772L29.4373 2.09456C29.1947 1.99189 28.9333 1.93856 28.6667 1.93856H3.33333C3.06667 1.93856 2.80533 1.99189 2.56267 2.09456L16 13.0772Z" />< /svg>';var d=document.createElement("span");d.textContent="".concat(e.mail),r.appendChild(d),c.innerHTML="",c.appendChild(r);var m=document.createElement("a");m.classList.add("damage-report-overview__summary-view-tile-garage-link"),m.target="_blank",m.href="tel:".concat(e.phone),m.innerHTML='<svg class="damage-report-overview__summary-view-tile-garage-link-icon size-l" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24.7 31.3241C23.6573 31.3241 22.648 31.0214 21.784 30.4494C13.7173 25.0894 6.91068 18.2827 1.55068 10.2174C0.165342 8.12806 0.446675 5.32673 2.22134 3.55606L4.01334 1.7614C4.72134 1.0534 5.66268 0.664062 6.66534 0.664062C7.66801 0.664062 8.60934 1.0534 9.31734 1.7614L12.5893 5.0294C14.0493 6.49206 14.0493 8.87073
612.5907 10.3334L11.928 10.9974C14.672 14.2761 17.7227 17.3281 21.0013 20.0734L21.6627 19.4121C22.3787 18.7001 23.3173 18.3134 24.3147 18.3134C25.3173 18.3134 26.2587 18.7041 26.9667 19.4121L30.2387 22.6841C31.7 24.1467 31.6987 26.5254 30.2373 27.9867L28.444 29.7814C27.448 30.7761 26.1187 31.3241 24.7 31.3241ZM6.66534 1.9974C6.01868 1.9974 5.41201 2.24806 4.95601 2.70406L3.16401 4.49873C1.83734 5.82273 1.62668 7.9174 2.66268 9.47873C7.92268 17.3961 14.604 24.0774 22.5213 29.3374C23.1667 29.7654 23.92 29.9907 24.7013 29.9907C25.7627 29.9907 26.7587 29.5814 27.504 28.8374L29.2973 27.0441C30.24 26.1014 30.24 24.5694 29.2987 23.6267L26.0267 20.3547C25.5707 19.8987 24.964 19.6467 24.3187 19.6467C23.6733 19.6467 23.0667 19.8974 22.6107 20.3534L21.5187 21.4454C21.3933 21.5707 21.2253 21.6401 21.0467 21.6401C20.8933 21.6401 20.7427 21.5867 20.624 21.4881C16.944 18.4601 13.544 15.0587 10.516 11.3774C10.2973 11.1107 10.316 10.7267 10.5587 10.4827L11.6493 9.3894C12.5907 8.44673 12.5907 6.91206 11.6493 5.9694L8.37601 2.70406C7.92001 2.24806 7.31201 1.9974 6.66534 1.9974Z" />< /svg>';var v=document.createElement("span");v.textContent="".concat(e.phone),m.appendChild(v),l.innerHTML="",l.appendChild(m),a.innerHTML='<svg class="damage-report-overview__summary-view-tile-garage-link-icon size-l" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 16.0005C2.949 16.0005 2.5 15.5525 2.5 15.0005V14.0005C1.949 14.0005 1.5 13.5525 1.5 13.0005V9.70749C1.5 9.44049 1.604 9.19049 1.792 9.00149L3.574 7.21949L5.41 2.62849C5.563 2.24749 5.927 2.00049 6.338 2.00049H16.661C17.073 2.00049 17.437 2.24649 17.59 2.62849L19.426 7.21949L20.353 8.14649C20.448 8.24149 20.5 8.36649 20.5 8.50049C20.5 8.63449 20.448 8.75949 20.354 8.85449C20.26 8.94949 20.134 9.00049 20 9.00049C19.866 9.00049 19.741 8.94849 19.646 8.85449L18.793 8.00049H4.207L2.5 9.70849V11.0005H6.5C6.776 11.0005 7 11.2245 7 11.5005C7 11.7765 6.776 12.0005 6.5 12.0005H2.5V13.0005H9C9.276 13.0005 9.5 13.2245 9.5 13.5005C9.5 13.7765 9.276 14.0005 9 14.0005H6.5V15.0005C6.5 15.5525 6.051 16.0005 5.5 16.0005H3.5ZM3.5 15.0005H5.5V14.0005H3.5V15.0005ZM18.262 7.00049L16.662 3.00049H6.337L4.738 7.00049H18.262ZM17 22.0005C13.416 22.0005 10.5 19.0845 10.5 15.5005C10.5 11.9165 13.416 9.00049 17 9.00049C20.584 9.00049 23.5 11.9165 23.5 15.5005C23.5 19.0845 20.584 22.0005 17 22.0005ZM17 10.0005C13.967 10.0005 11.5 12.4675 11.5 15.5005C11.5 18.5335 13.967 21.0005 17 21.0005C20.033 21.0005 22.5 18.5335 22.5 15.5005C22.5 12.4675 20.033 10.0005 17 10.0005ZM17.5 13.4404C17.5 13.1643 17.2761 12.9404 17 12.9404C16.7239 12.9404 16.5 13.1643 16.5 13.4404V15.3539C16.5 15.7598 16.7287 16.1311 17.0912 16.3138L20.4529 18.0073C20.6995 18.1316 21.0001 18.0324 21.1244 17.7858C21.2486 17.5391 21.1494 17.2385 20.9028 17.1143L17.5411 15.4207C17.5159 15.408 17.5 15.3822 17.5 15.3539V13.4404Z"/></svg>';var g=document.createElement("span");g.textContent=Granite.I18n.get("apps.amag-ch.components.content.damageReport.confirmation.garage.driveInGaragePrefix")+" ".concat(h),a.appendChild(g),i.textContent=p,o.textContent=f}}));case 17:case"end":return e.stop()}}),e,this)})))},this.validateAppointment=function(){return Ny(n,void 0,void 0,ht().mark((function e(){var t,n;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.appointmentTile.querySelector(".damage-report-overview__infotext"),n=this.appointmentTile.querySelector(".damage-report-overview__errortext"),e.next=4,this._damageReportOverviewService.checkAvailabilityOfAppointment(this._damageReportOverviewService.newAppointment.appointment.id);case 4:if(e.sent){e.next=9;break}return t.hidden=!0,n.hidden=!1,e.abrupt("return");case 9:return e.next=11,this._damageReportOverviewService.assignAppointment(this._damageReportOverviewService.newAppointment.appointment.id,this._damageReportOverviewService.selectedDamageReport.ec2CaseExportResponse.ec2Id.toString(),this._damageReportOverviewService.newAppointment.appointment.date,this._damageReportOverviewService.selectedDamageReport.ec2CaseExportResponse.vehicle.vehicleMake,this._damageReportOverviewService.selectedDamageReport.ec2CaseExportResponse.vehicle.vehicleModel,this._damageReportOverviewService.selectedDamageReport.ec2CaseExportResponse.vehicle.vehiclePlate,this._damageReportOverviewService.selectedDamageReport.ec2CaseExportResponse.policyHolder);case 11:if(e.sent){e.next=16;break}return t.hidden=!0,n.hidden=!1,e.abrupt("return");case 16:return e.next=18,this._damageReportOverviewService.releaseAppointment(this._damageReportOverviewService.selectedDriveIn.appointment.i
6d);case 18:this._damageReportOverviewService.selectedDriveIn=this._damageReportOverviewService.newAppointment,this._damageReportOverviewService.newAppointment=null,this._stateService.emit(Gg.SHOW_CONFIRMATION_VIEW_EDIT,null),this._stateService.emit(Gg.RE_RENDER_LIST_VIEW,null);case 22:case"end":return e.stop()}}),e,this)})))},this.init()}));Vy=My([(0,At.d)({selector:".damage-report-overview__summary-view",onDomLoaded:!0}),qy("design:paramtypes",[HTMLElement])],Vy);var Fy=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},By=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},jy=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this._element=t,this.backdropElement=document.querySelector(".amag-direct-entry__backdrop"),this.popUpElement=document.querySelector(".amag-direct-entry__pop-up"),this.buttonElement=document.querySelector(".amag-direct-entry__button"),this.buttonOpenElement=document.querySelector(".amag-direct-entry__button--open"),this.buttonCloseElement=document.querySelector(".amag-direct-entry__button--close"),this.body=document.querySelector("body"),this.lastScrollPos=0,this.mobileStyleTimeOut=null,this.init()}),[{key:"init",value:function(){this.addClickEventListeners(),this.showButtonOnScrollPosition()}},{key:"manageMobileDisplay",value:function(){var e=this;it.lp.isMobile()&&null===this.mobileStyleTimeOut&&(this.mobileStyleTimeOut=setTimeout((function(){e.buttonElement.classList.add("amag-direct-entry__button--mobile"),clearTimeout(e.mobileStyleTimeOut)}),3e3))}},{key:"addMobileStyle",value:function(){it.lp.isMobile()&&this.buttonElement.classList.add("amag-direct-entry__button--mobile")}},{key:"removeMobileStyle",value:function(){it.lp.isMobile()&&(clearTimeout(this.mobileStyleTimeOut),this.buttonElement.classList.remove("amag-direct-entry__button--mobile"))}},{key:"toggleDisplay",value:function(){!1===this.buttonOpenElement.hidden?this.openDirectStartMenu():this.closeDirectStartMenu()}},{key:"closeDirectStartMenu",value:function(){this.buttonOpenElement.hidden=!1,this.buttonCloseElement.hidden=!0,this.popUpElement.classList.remove("show"),this.backdropElement.hidden=!0,this.body.classList.remove("no-scroll"),this.addMobileStyle()}},{key:"openDirectStartMenu",value:function(){this.buttonOpenElement.hidden=!0,this.buttonCloseElement.hidden=!1,this.popUpElement.classList.add("show"),this.backdropElement.hidden=!1,this.body.classList.add("no-scroll"),this.removeMobileStyle()}},{key:"addClickEventListeners",value:function(){var e=this;this.buttonElement.addEventListener("click",(function(){e.toggleDisplay()})),this.backdropElement.addEventListener("click",(function(){e.closeDirectStartMenu()}))}},{key:"showButtonOnScrollPosition",value:function(){var e=this;window.addEventListener("scroll",(function(){var t=window.scrollY;t-e.lastScrollPos<50&&e.lastScrollPos-t<50||(e.lastScrollPos=t,e.buttonElement.blur(),t>=300?(e.buttonElement.classList.add("show"),e.manageMobileDisplay()):e.buttonElement.classList.remove("show"))}))}}])}();jy=Fy([(0,At.d)({selector:".amag-direct-entry",onDomLoaded:!1}),By("design:paramtypes",[HTMLElement])],jy);var Hy=__webpack_require__(74692),Gy=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Uy=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Wy=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this.element=t,this.ddlBrand=this.element.querySelector("#dspSearchBrand"),this.ddlModel=this.element.querySelector("#dspSearchModel"),this.ddlBodyType=this.element.querySelector("#dspSearchBodyType"),this.ddlPrice=this.element.querySelector("#dspSearchPrice"),this.btnSearch=this.element.querySelector(".js-searchButton"),this.dropDownDisabledClass="ddl-state--disabled",this.placeHolderModelI18n=Granite.I18n.get("apps.amag-ch.components.c
6ontent.otv.carSelection.model"),this.placeHolderAllModelI18n=Granite.I18n.get("apps.amag-base.components.content.dspSearch.allModels"),this.prepareBrands=function(){for(var e in n.amagBrands)if(n.amagBrands.hasOwnProperty(e)){var t=n.amagBrands[e].modelsString.split(",");n.amagBrands[e].models=t.map((function(e){return{id:e,text:e}})),n.amagBrands[e].models.unshift({id:"all",text:n.placeHolderAllModelI18n})}},this.getModelsList=function(e){var t=!1,r=n.amagBrands;for(var a in r)r.hasOwnProperty(a)&&r[a].id===e&&(t=r[a].models);return t},this.initDopDowns=function(){Vr(n.ddlBrand,null,null),it.lp.isMobile()?n.ddlBrand.addEventListener("change",(function(e){n.brandDdlChangeHandler(e)})):Hy(n.ddlBrand).on("select2:select",(function(e){n.brandDdlChangeHandler(e)})),Vr(n.ddlModel,null,null),Vr(n.ddlBodyType,null,null),Vr(n.ddlPrice,null,null)},this.brandDdlChangeHandler=function(e){var t=e.currentTarget.value.toLowerCase();n.ddlModel.parentElement.classList.remove(n.dropDownDisabledClass),"all"===t?(Vr(n.ddlModel,[{id:"",text:""}],n.placeHolderModelI18n),n.ddlModel.parentElement.classList.add(n.dropDownDisabledClass)):Vr(n.ddlModel,n.getModelsList(t),null)},this.addSearchBtnEventListener=function(){n.btnSearch.addEventListener("click",(function(e){e.preventDefault();var t=n.ddlBrand.value||!1;t="all"!==t&&t,n.brandValue=!!t&&("Bentley"===t?t:t.toUpperCase()),n.modelValue=n.ddlModel.value||!1,n.modelValue="all"!==n.modelValue&&n.modelValue,n.bodyTypeValue=n.ddlBodyType.value||!1,n.bodyTypeValue="all"!==n.bodyTypeValue&&n.bodyTypeValue,n.priceValue=n.ddlPrice.value||!1,n.priceValue="all"!==n.priceValue&&n.priceValue,location.href=n.createUrlWithParameters()}))},this.createUrlWithParameters=function(){var e=new URL(n.btnSearch.getAttribute("href")),t="",r="",a="";return n.brandValue&&(t="/".concat(n.brandValue).toLowerCase().replace("vwnf","vw-nutzfahrzeuge")),n.modelValue&&(r="/".concat(n.modelValue).replace(".","").replace("!","").replace(" ","-").toLowerCase()),n.bodyTypeValue&&(a=n.bodyTypeValue.toString()),e.pathname=e.pathname+t+r,n.bodyTypeValue&&e.searchParams.set("vehicle_body_type",a),n.priceValue&&e.searchParams.set("price",n.priceValue.toString()),e.href},this.amagBrands=window.amagdspsearchbrandmodels,this.init()}),[{key:"init",value:function(){this.prepareBrands(),this.initDopDowns(),this.addSearchBtnEventListener()}}])}();Wy=Gy([(0,At.d)({selector:".amag-dspSearch"}),Uy("design:paramtypes",[HTMLDivElement])],Wy);var zy=__webpack_require__(52286),$y=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Yy=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Zy=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Ky={brandDropdown:".amag-employee-contact-overview__dropdown-brands",divisionDropdown:".amag-employee-contact-overview__dropdown-divisions",division:".amag-employee-contact-overview__division",employee:".amag-employee-contact-overview__employee",jumpToFooterLink:".amag-employee-contact-overview__jump-to-footer-link"},Xy=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this._brandDropdown=this._element.querySelector(Ky.brandDropdown),this._brandDropdownButton=this._brandDropdown.querySelector(".generic-dropdown-button"),this._brandDropdownLabel=this._brandDropdown.querySelector(".generic-dropdown-label"),this._brandDropdownSelect=this._brandDropdown.querySelector("select"),this._divisionDropdown=this._element.querySelector(Ky.divisionDropdown),this._divisionDropdownSelect=this._divisionDropdown.querySelector("select"),this._jumpToFooterLink=this._element.querySelector(Ky.jumpToFooterLink),this._employeeItems=this._element.querySelectorAll(Ky.employee),this._divisions=this._element.querySelectorAll(Ky.division),this._brandsPlaceholder=this._brandDropdownSelect.querySelector('option[value=""]'),this._divisionsPlaceholder=this._divisionDropdownSelect.querySelector('option[value=""]'),this.selectedBrand="",this.selectedDivision="",this.setEventListeners=function(){n._brandDropdownSelect.addEventListener("change",n.filterForBrands),n._divisionDropdownSelect.addEventListener("change",n.filterForDivisions),n._jumpToFooterLink.addEventListener("click",n.scrollToTarget),window.addEventListener("resize",(function(){(0,zy.n)(n._element)}))},this.filterForBrands=function(e){n.removeFilterSearchParam(),n.selectedBrand=e.target.value,n.filterEmployees(),n.hideEmptyDivisions()},this.filterForDivisions=function(e){n.selectedDivision=e.target.value,n.filterDivisions(),n.hideEmptyDivisions()},this.filterEmployees=function(){var e=n.selectedBrand===n._brandsPlaceholder.value;
6n._employeeItems.forEach((function(t){if(e)t.hidden=!1;else if(t.dataset.brands&&""!==t.dataset.brands){var r=t.dataset.brands.split(",").includes(n.selectedBrand);t.hidden=!r}else t.hidden=!0}))},this.filterDivisions=function(){var e=n.selectedDivision===n._divisionsPlaceholder.value;n._divisions.forEach((function(t){if(e)t.hidden=!1;else{var r=t.dataset.division===n.selectedDivision;t.hidden=!r}}))},this.hideEmptyDivisions=function(){var e=n.selectedDivision===n._divisionsPlaceholder.value;n._divisions.forEach((function(t){var r=t.dataset.division,a=t.querySelectorAll(Ky.employee),i=Array.from(a).filter((function(e){return!e.hidden}));"apps.base.employee.data.corporate_client"!==r&&(t.hidden=0===i.length||!e&&n.selectedDivision!==t.dataset.division)}))},this.preSelectBrand=function(){var e=new URL(window.location.href).searchParams.get("filter");if(e&&["v","a","s","c","cupra","n"].includes(e)){var t={v:"apps.base.employee.data.vw",a:"apps.base.employee.data.audi",c:"apps.base.employee.data.skoda",s:"apps.base.employee.data.seat",cupra:"apps.base.employee.data.cupra",n:"apps.base.employee.data.vwnf"}[e];n._brandDropdownButton.textContent=Granite.I18n.get(t),n._brandDropdownSelect.value=t,n._brandDropdownLabel.classList.add("active");var r=new Event("change",{bubbles:!0});n._brandDropdownSelect.dispatchEvent(r)}},this.removeFilterSearchParam=function(){var e=new URL(window.location.href);e.searchParams.delete("filter"),window.history.pushState({},"",e)},this.scrollToTarget=function(e){var t=new URL(n._jumpToFooterLink.href);if("object"===(0,xt.A)(t)&&t.hash){e.preventDefault();var r=document.getElementById(t.hash.replace("#","")).getBoundingClientRect().top;window.scrollTo({top:r,behavior:"smooth"})}},this.formatLanguageDisplay=function(){n._element.querySelectorAll(".amag-employee-contact-overview__employee-language").forEach((function(e){e.innerText=e.innerText.toUpperCase().split(",").sort().join(" / ")}))},this.init()}),[{key:"init",value:function(){return Zy(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.setEventListeners(),this.preSelectBrand(),(0,zy.n)(this._element),this.formatLanguageDisplay();case 4:case"end":return e.stop()}}),e,this)})))}}])}();Xy=$y([(0,At.d)({selector:".amag-employee-contact-overview",onDomLoaded:!0}),Yy("design:paramtypes",[HTMLElement])],Xy);var Jy=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Qy=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},e_=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this._element=t,this.init()}),[{key:"init",value:function(){this.addEventListeners()}},{key:"addEventListeners",value:function(){var e=this._element.querySelectorAll(".amag-faq-questions__question"),t=window.location.pathname.split("/"),n=t[t.length-1].split(".")[0].replace("-","_").toLocaleLowerCase();e.forEach((function(e){e.addEventListener("click",(function(){var t={event:"ga4Event",eventName:"".concat(n,"_faq_interaction"),eventParameter1:"interaction_item",fieldValue1:"entry_page",eventParameter2:"interaction_label",fieldValue2:"".concat(e.querySelector("span").textContent)};(0,it.eo)(t,"FAQ Additional Question")}))}))}}])}();e_=Jy([(0,At.d)({selector:".amag-faq-questions-additional",onDomLoaded:!0}),Qy("design:paramtypes",[HTMLDivElement])],e_);var t_=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},n_=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r_=(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this.linkElements=this._element.querySelectorAll(".amag-linkWrapper__link"),this.init=function(){n.addEventListeners()}
6,this.addEventListeners=function(){n.linkElements.forEach((function(e,t){e.addEventListener("click",(function(n){var r=window.location.pathname.split("/"),a=r[r.length-1].split(".")[0].replace("-","_").toLocaleLowerCase(),i={event:"ga4Event",eventName:"".concat(a,"_faq_interaction"),eventParameter1:"interaction_item",fieldValue1:"story_slide",eventParameter2:"interaction_label",fieldValue2:"textlink".concat(t+1,":-").concat(e.textContent.trim())};(0,it.eo)(i,"FAQ Answer")}))}))},this.init()}));function a_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a_=function(){return!!e})()}r_=t_([(0,At.d)({selector:".amag-faq-answer",onDomLoaded:!0}),n_("design:paramtypes",[HTMLDivElement])],r_);var i_,o_=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},s_=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};!function(e){e.ACTIVE_ANSWER_STEP="ACTIVE_ANSWER_STEP"}(i_||(i_={}));var c_=function(e){function t(){return(0,pt.A)(this,t),e=this,n=t,n=(0,Ja.A)(n),(0,Xa.A)(e,a_()?Reflect.construct(n,r||[],(0,Ja.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,Qa.A)(t,e),(0,ft.A)(t)}(dp);c_=o_([nn.K,s_("design:paramtypes",[])],c_);var l_=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this._stateService=t}),[{key:"init",value:function(e,t,n){var r=this;this._progessionBarElement=e,this._fragment=document.createDocumentFragment(),this._steps=[],t&&0!==t.length&&(this._stateService.on(n,(function(e){r.handleEvent(Object.assign({eventType:n},e))})),t.forEach((function(e){var t=r.createProgressionStep(e);r._steps.push(t)})),this.addProgressionBarToHtml())}},{key:"handleEvent",value:function(e){this._steps.forEach((function(e){e.classList.remove("active")})),this._steps[e.index].classList.add("active")}},{key:"createProgressionStep",value:function(e){var t=document.createElement("div");return t.classList.add("progression-bar","step"),t}},{key:"addProgressionBarToHtml",value:function(){var e=this;this._steps[0].classList.add("active"),this._steps.forEach((function(t){e._fragment.appendChild(t)})),this._progessionBarElement.appendChild(this._fragment)}}])}(),u_=__webpack_require__(1847),d_=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},h_=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p_=(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this._answerContainerStateService=new c_,this._progressionStepsService=new l_(this._answerContainerStateService),this._shareButtonService=new u_.R,this._children=this._element.querySelectorAll(".amag-faq-answer-container__item"),this._progessionBarElement=this._element.querySelector(".progression-bar"),this._lastPageElement=this._element.querySelector(".amag-faq-answer-container__last-page"),this._lastPageBtns=this._lastPageElement.querySelectorAll(".amag-faq-answer-container__last-page-btn"),this._backBtn=this._element.querySelector(".amag-faq-answer-container__buttons__back"),this._nextBtn=this._element.querySelector(".amag-faq-answer-container__buttons__next"),this._nextBtnText=this._element.querySelector(".amag-faq-answer-container__buttons__next-text"),this._nextBtnIcon=this._element.querySelector(".amag-faq-answer-next-button-icon"),this._toAllQuestionsAnchor=this._element.querySelector(".amag-faq-answer-container__buttons__allQuestions"),this._contentElement=this._element.querySelector(".amag-faq-answer-container__content"),this._spinnerElement=this._element.querySelector(".amag-faq-answer-container__spinner-wrapper"),this._shareButtonElement=this._element.querySelector(".amag-share-button"),this._i18nContinue="apps.amag-ch.project.global.offCanvas.continue.buttons.cta",this._i18nToAllQuestions="apps.amag-ch.components.c
6ontent.faq.answer.container.btn.toAllQuestions",this.init=function(){n._children&&(n._children.length>1?(n._progressionStepsService.init(n._progessionBarElement,n._children,i_.ACTIVE_ANSWER_STEP),n._lastPageElement.hidden=!0):(n._nextBtnText.textContent=Granite.I18n.get(n._i18nToAllQuestions),n._nextBtnIcon.classList.add("d-none")),n._children.forEach((function(e){e.hidden=!0})),n._children[0].hidden=!1,n.addEventListeners(),n._shareButtonService.init(n._element),n.showComponent())},this.addEventListeners=function(){n._backBtn.addEventListener("click",n.back),n._nextBtn.addEventListener("click",n.next),n._lastPageBtns[0].addEventListener("click",(function(){return n.fireAnalyticEvent("find_car")})),n._lastPageBtns[1].addEventListener("click",(function(){return n.fireAnalyticEvent("book_test_drive")})),n._lastPageBtns[2].addEventListener("click",(function(){return n.fireAnalyticEvent("search_garage")})),n._shareButtonElement.addEventListener("click",(function(){return n.fireAnalyticEvent("story_shared")}))},this.next=function(e){var t=n.getActiveIndex();t<n._children.length-1?(n.updateActiveClass(t+1),n._answerContainerStateService.emit(i_.ACTIVE_ANSWER_STEP,{element:n._children[t+1],index:t+1})):(n.fireAnalyticEvent("go_to_all_questions"),n._toAllQuestionsAnchor.click())},this.back=function(e){var t=n.getActiveIndex();t>0?(n.updateActiveClass(t-1),n._answerContainerStateService.emit(i_.ACTIVE_ANSWER_STEP,{element:n._children[t-1],index:t-1})):window.history.back()},this.updateActiveClass=function(e){n._children.forEach((function(e,t){e.hidden=!0,e.classList.remove("cmp-tabs__tab--active")})),n._children[e].hidden=!1,n._children[e].classList.add("cmp-tabs__tab--active"),n._children.length-1===e?(n._lastPageElement.hidden=!1,n._nextBtnIcon.classList.add("d-none"),n._nextBtnText.textContent=Granite.I18n.get(n._i18nToAllQuestions)):(n._lastPageElement.hidden=!0,n._nextBtnIcon.classList.remove("d-none"),n._nextBtnText.textContent=Granite.I18n.get(n._i18nContinue))},this.getActiveIndex=function(){return Array.from(n._children).findIndex((function(e){return!e.hidden}))},this.showComponent=function(){n._contentElement.hidden=!1,n._spinnerElement.hidden=!0},this.fireAnalyticEvent=function(e){var t=window.location.pathname.split("/"),n=t[t.length-1].split(".")[0].replace("-","_").toLocaleLowerCase(),r={event:"ga4Event",eventName:"".concat(n,"_faq_interaction"),eventParameter1:"interaction_item",fieldValue1:"story_slide",eventParameter2:"interaction_label",fieldValue2:"".concat(e)};(0,it.eo)(r,"FAQ Answer Container")},this.init()}));p_=d_([(0,At.d)({selector:".amag-faq-answer-container",onDomLoaded:!0}),h_("design:paramtypes",[HTMLDivElement])],p_);var f_=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},m_=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},v_=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this._element=t,this.init()}),[{key:"init",value:function(){this.addEventListeners()}},{key:"addEventListeners",value:function(){var e=this._element.querySelectorAll(".amag-faq-questions__question"),t=window.location.pathname.split("/"),n=t[t.length-1].split(".")[0].replace("-","_").toLocaleLowerCase();e.forEach((function(e){e.addEventListener("click",(function(){var t={event:"ga4Event",eventName:"".concat(n,"_faq_interaction"),eventParameter1:"interaction_item",fieldValue1:"topic_page",eventParameter2:"interaction_label",fieldValue2:"".concat(e.querySelector("span").textContent)};(0,it.eo)(t,"FAQ Favourite Question")}))}))}}])}();v_=f_([(0,At.d)({selector:".amag-faq-questions-favourite",onDomLoaded:!0}),m_("design:paramtypes",[HTMLDivElement])],v_);var g_=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},y_=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__=(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this.element=t,this.content=this.element.querySelector(".amag-faq-questions-list__content"),this.elementList=this.content.querySelectorAll(".amag-faq-questions-list__question"),this.btn=this.element.querySelector(".amag-faq-questions-list__button"),this.init=function(){n.setupQuestions(),n.setEventListener()},this.setupQuestions=function(){n.elementList.forEach((function(e,t){t<8&&(e.hidden=!1),(7==t&&n.elementList.length>8||t==n.elementList.length-1&&n.elementList.length<=8)&&e.classList.add("no-bottom")})),n.btn.hidden=n.elementList.length<=8},this.setEventListener=function(){var e=window.location.pathname.split("/"),t=e[e.length-1].split(".")[0].replace("-","_").toLocaleLowerCase();n.elementList.forEach((function(e){e.addEventListener("click",(function(){var n={event:"ga4Event",eventName:"".concat(t,"_faq_interaction"),eventParameter1:"interaction_item",fieldValue1:"story_slide",eventParameter2:"interaction_label",fieldValue2:"".concat(e.querySelector("span").textContent)};(0,it.eo)(n,"FAQ QuestionList")}))})),n.elementList.length<=8||n.btn.addEventListener("click",(function(){var e=n.content.querySelectorAll("[hidden]");if(n.content.querySelector(".no-bottom").classList.remove("no-bottom"),e.length>4)for(var t=0;t<4;t++)e[t].hidden=!1,3==t&&e[t].classList.add("no-bottom");else e.forEach((function(e){e.hidden=!1})),e[e.length-1].classList.add("no-bottom"),n.btn.hidden=!0}))},this.init()}));__=g_([(0,At.d)({selector:".amag-faq-questions-list",onDomLoaded:!0}),y_("design:paramtypes",[HTMLDivElement])],__);var b_=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},w_=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},S_=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=t,this.init()}),[{key:"init",value:function(){this.addEventListener()}},{key:"addEventListener",value:function(){var e=this.element.querySelectorAll(".top-topics__link-container"),t=this.element.querySelectorAll(".top-topics__additional__link-container"),n=window.location.pathname.split("/"),r=n[n.length-1].split(".")[0].replace("-","_").toLocaleLowerCase();e.forEach((function(e){e.addEventListener("click",(function(){var t={event:"ga4Event",eventName:"".concat(r,"_faq_interaction"),eventParameter1:"interaction_item",fieldValue1:"entry_page",eventParameter2:"interaction_label",fieldValue2:"".concat(e.querySelector(".amagch-card__link-text__headline").textContent)};(0,it.eo)(t,"FAQ TopTopic")}))})),t.forEach((function(e){e.addEventListener("click",(function(){var t={event:"ga4Event",eventName:"".concat(r,"_faq_interaction"),eventParameter1:"interaction_item",fieldValue1:"entry_page",eventParameter2:"interaction_label",fieldValue2:"".concat(e.querySelector(".amagch-card-small__link-text__headline").textContent)};(0,it.eo)(t,"FAQ TopTopic Additional")}))}))}}])}();
6S_=b_([(0,At.d)({selector:".top-topics",onDomLoaded:!0}),w_("design:paramtypes",[HTMLDivElement])],S_);var C_=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},E_=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},x_=function(){return(0,ft.A)((function e(t){var n;(0,pt.A)(this,e),this.element=t,this.sm=window.matchMedia("(max-width: 767.98px)"),this.md=window.matchMedia("(min-width:768px) and (max-width: 1199.98px)"),this.iframe=this.element.querySelector("iframe"),this.attributeContainer=this.element.firstElementChild,this.defaultHeight=null===(n=this.iframe)||void 0===n?void 0:n.clientHeight,this.iframe&&(this.init(),this.onResize())}),[{key:"init",value:function(){var e=this.getViewport(),t=+this.attributeContainer.dataset["".concat(e,"Height")];t>0?this.setHeight(t):this.setHeight(this.defaultHeight)}},{key:"setHeight",value:function(e){this.iframe.style.height="".concat(e,"px")}},{key:"getViewport",value:function(){return this.sm.matches?"mobile":this.md.matches?"tablet":"desktop"}},{key:"onResize",value:function(){var e=this;window.addEventListener("resize",(function(){e.init()}))}}])}();x_=C_([(0,At.d)({selector:".amag-htmlComponent",onDomLoaded:!0}),E_("design:paramtypes",[HTMLElement])],x_);var A_=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},k_=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},T_=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=t,this.iFrame=this.element.querySelector("iframe"),this.iFrameResizeMethod=window.iFrameResize,this.init()}),[{key:"init",value:function(){this.checkIfActive()&&(this.editIFrameSRC(),this.iFrameResizeMethod({initCallback:function(e){e.iFrameResizer.moveToAnchor(location.hash)}}))}},{key:"checkIfActive",value:function(){return JSON.parse(this.iFrame.dataset.isActive)}},{key:"editIFrameSRC",value:function(){this.iFrame.attributes.getNamedItem("src").nodeValue=this.iFrame.attributes.getNamedItem("src").nodeValue+window.location.search}}])}();T_=A_([(0,At.d)({selector:".amag-iframe",onDomLoaded:!0}),k_("design:paramtypes",[HTMLElement])],T_);var L_=__webpack_require__(47716),I_=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},D_=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},P_=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=t,this.imageElement=this.element.querySelector(".amag-image__content"),this.init()}),[{key:"init",value:function(){this.imageElement&&this.ivViewer()}},{key:"ivViewer",value:function(){var e;if(null===(e=this.imageElement)||void 0===e?void 0:e.classList.contains("dm-image")){var t=0;t=it.lp.isMobile()?2:it.lp.isTablet()?1:0;var n=this.element.querySelector(".amag-image__content"),r=this.element.querySelector(".amag-image__content picture").children[t].getAttribute("srcset").toString().trim().split("w,")[0].split(" ")[0];n.addEventListener("click",(function(e){var t=this.querySelector(".amag-image__image").currentSrc,n=new L_.WX({snapView:!1});n.show(t,r);var a=document.querySelector('div[class="iv-fullscreen"][style*="display: block;"]');if(a){var i=document.createElement("div");i.classList.add("amag-image__showZoomOutIcon"),i.innerHTML='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" rx="20" fill="#222222" fill-opacity="0.7"/><path d="M23.0362 12.2374C23.0694 12.2042 23.1153 12.1869 23.1616 12.1899C23.2513 12.1957 23.3197 12.2733 23.3139 12.363L22.9968 17.3477L29.2968 11.0477C29.3604 10.9841 29.4637 10.9841 29.5273 11.0477C29.5909 11.1113 29.5909 11.2146 29.5273 11.2782L23.2277 17.5777L28.2122 17.2608C28.2555 17.258 28.2975 17.2723 28.3302 17.3009C28.3627 17.3297 28.3823 17.3696 28.3851 17.4129C28.3881 17.4597 28.3708 17.50
656 28.3378 17.5386C28.3097 17.5667 28.2726 17.5835 28.2329 17.5858L23.1863 17.9069C23.1657 17.908 23.1452 17.9083 23.1245 17.9069C23.0173 17.9002 22.9173 17.8582 22.8345 17.7852C22.8269 17.7808 22.8182 17.7748 22.8092 17.7658C22.8032 17.7598 22.7988 17.7541 22.7958 17.7492C22.7937 17.7472 22.7916 17.7451 22.7893 17.7428C22.7024 17.6443 22.6596 17.5185 22.6676 17.3883L22.9887 12.342C22.9913 12.3026 23.0083 12.2653 23.0362 12.2374Z" fill="white" stroke="white" stroke-width="0.7"/><path d="M17.5385 28.3369C17.5053 28.3701 17.4595 28.3874 17.4131 28.3844C17.3235 28.3786 17.255 28.3009 17.2608 28.2113L17.5779 23.2268L11.2782 29.5265C11.2146 29.5901 11.1113 29.5901 11.0477 29.5265C10.9841 29.4629 10.9841 29.3596 11.0477 29.296L17.347 22.9968L12.3627 23.3137C12.3194 23.3164 12.2774 23.3021 12.2447 23.2736C12.2122 23.2448 12.1926 23.2049 12.1898 23.1616C12.1869 23.1148 12.2041 23.0689 12.2371 23.0359C12.2652 23.0078 12.3023 22.991 12.342 22.9887L17.3885 22.6676C17.409 22.6665 17.4295 22.6662 17.4502 22.6676C17.5574 22.6743 17.6574 22.7163 17.7402 22.7893C17.7478 22.7937 17.7566 22.7997 17.7655 22.8087C17.7715 22.8147 17.7759 22.8204 17.7789 22.8253C17.781 22.8273 17.7831 22.8294 17.7854 22.8317C17.8723 22.9301 17.9151 23.056 17.9071 23.1862L17.586 28.2322C17.5835 28.2717 17.5664 28.309 17.5385 28.3369Z" fill="white" stroke="white" stroke-width="0.7"/></svg>',i.onclick=function(){n.resetZoom()},a.appendChild(i),a.classList.add("iv-fullscreenupdated"),document.querySelector(".iv-fullscreen-close").addEventListener("click",(function(e){n.destroy()}))}}))}}}])}();P_=I_([(0,At.d)({selector:".amag-image"}),D_("design:paramtypes",[HTMLElement])],P_);__webpack_require__(19749);var O_=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},R_=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},M_=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this.element=t,this.showComparisonSlider=function(){var e=n.element.querySelector(".amag-imageComparisonSlider__element"),t=n.element.querySelector(".amag-imageComparisonSlider__spinner-wrapper");e.hidden=!1,t.hidden=!0},this.init()}),[{key:"init",value:function(){this.showComparisonSlider()}}])}();
6M_=O_([(0,At.d)({selector:".amag-imageComparisonSlider"}),R_("design:paramtypes",[HTMLElement])],M_);var q_=__webpack_require__(16359),N_=__webpack_require__(74692);function V_(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return F_(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F_(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function F_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var B_=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},j_=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},H_=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=t,this.thumbnailContentElement=this.element.querySelector(".amag-imageSliderGallery__modal-thumbnail"),this.zoomInContentElement=this.element.querySelector(".amag-imageSliderGallery__modal-zoom-layer"),this.headlineElement=this.element.querySelector(".amag-imageSliderGallery__modal-headline"),this.mainCarouselElement=this.element.querySelector(".cmp-carousel.amag-imageSliderGallery__main"),this.modalDialogCarouselElement=this.element.querySelector(".cmp-carousel.amag-imageSliderGallery__modal"),this.thumbnailBtn=this.element.querySelector(".cmp-carousel__thumbnailBtn"),this.thumbnailBtnModal=this.element.querySelector(".cmp-carousel__thumbnailBtn--modal"),this.init()}),[{key:"init",value:function(){this.carouselFunction(),this.addClickEvents(),this.zoomInCarouselFunction(),this.setKeyEvents()}},{key:"addClickEvents",value:function(){var e=this;this.element.querySelector(".cmp-carousel__cancel").addEventListener("click",(function(){e.toggleModal()})),this.element.querySelector(".cmp-carousel__return").addEventListener("click",(function(){if(e.wasZoom){var t=e.modalDialogCarouselElement.querySelector(".cmp-carousel__item--active");e.setZoomIn(t)}else e.toggleModal()})),this.thumbnailBtn.addEventListener("click",(function(){var t=e.element.querySelector(".cmp-carouselMain__item.cmp-carousel__item--active");e.toggleModal(),e.setThumbnail(t),e.wasZoom=!1})),this.thumbnailBtnModal.addEventListener("click",(function(){var t=e.modalDialogCarouselElement.querySelector(".cmp-carousel__item--active");e.setThumbnail(t),e.wasZoom=!0}));var t=this.mainCarouselElement.querySelectorAll(".cmp-carousel__item.cmp-carouselMain__item"),n=this.modalDialogCarouselElement.querySelectorAll(".cmp-carouselModal__item");t.forEach((function(t){t.addEventListener("click",(function(){e.toggleModal(),e.setZoomIn(t),n[parseInt(t.dataset.fieldIndex)-1].querySelector(".amag-imageSliderGallery__image--modal").click()}))}))}},{key:"toggleModal",value:function(){var e=document.querySelector("body");this.modalDialogCarouselElement.open?(this.modalDialogCarouselElement.close(),e.classList.remove("no-scroll"),this.thumbnailContentElement.classList.add("d-none"),this.headlineElement.classList.remove("amag-imageSliderGallery__modal-headline--thumbnail"),this.headlineElement.classList.remove("amag-imageSliderGallery__modal-headline--zoom")):(this.modalDialogCarouselElement.showModal(),e.classList.add("no-scroll"))}},{key:"setThumbnail",value:function(e){var t=this,n=parseInt(e.dataset.f
6ieldIndex),r=this.element.querySelector(".amag-imageSliderGallery__thumbnail.selected");r&&r.classList.remove("selected"),this.thumbnailElements||(this.thumbnailElements=this.element.querySelectorAll(".amag-imageSliderGallery__thumbnail"),this.thumbnailElements.forEach((function(e){e.addEventListener("click",(function(){t.setZoomIn(e)}))}))),this.thumbnailElements[n-1].classList.add("selected"),this.zoomInContentElement.classList.add("d-none"),this.headlineElement.classList.remove("amag-imageSliderGallery__modal-headline--zoom"),this.headlineElement.classList.add("amag-imageSliderGallery__modal-headline--thumbnail"),this.thumbnailContentElement.classList.remove("d-none")}},{key:"setZoomIn",value:function(e){var t=this.modalDialogCarouselElement.querySelector(".cmp-carouselModal__items"),n=t.querySelectorAll(".cmp-carouselModal__item"),r=this.modalDialogCarouselElement.querySelector(".amag-imageSliderGallery__imgCaption--modal"),a=this.modalDialogCarouselElement.querySelector(".cmp-carouselModal__item.prev"),i=this.modalDialogCarouselElement.querySelector(".cmp-carouselModal__item.next"),o=n.length>0?n[0].getBoundingClientRect().width*(parseInt(e.dataset.fieldIndex)-1):0,s=this.modalDialogCarouselElement.querySelector(".cmp-carousel__item--active");(this.thumbnailContentElement.classList.add("d-none"),this.headlineElement.classList.remove("amag-imageSliderGallery__modal-headline--thumbnail"),this.headlineElement.classList.add("amag-imageSliderGallery__modal-headline--zoom"),this.zoomInContentElement.classList.remove("d-none"),this.modalDialogCarouselElement.querySelector(".amag-imageSliderGallery__modal-zoom-activeItemIndex").innerText=e.dataset.fieldIndex+"",s.classList.remove("cmp-carousel__item--active"),n[parseInt(e.dataset.fieldIndex)-1].classList.add("cmp-carousel__item--active"),s=this.modalDialogCarouselElement.querySelector(".cmp-carousel__item--active"),a&&a.classList.remove("prev"),i&&i.classList.remove("next"),s.previousElementSibling)?s.previousElementSibling.classList.add("prev"):t.lastElementChild.classList.add("prev");s.nextElementSibling?s.nextElementSibling.classList.add("next"):t.firstElementChild.classList.add("next");null!=this.modalDialogCarouselElement.querySelector(".cmp-carousel__item--active").dataset.caption?(r.classList.remove("hide"),r.innerHTML=this.modalDialogCarouselElement.querySelector(".cmp-carousel__item--active").dataset.caption,s.querySelector(".amag-imageSliderGallery__image--modal").style.height="".concat(t.offsetHeight,"px")):r.classList.add("hide"),N_(t).stop(!1,!0).animate({left:"-"+o})}},{key:"carouselFunction",value:function(){var e=this.mainCarouselElement.querySelector(".cmp-carousel__items.cmp-carouselMain__items"),t=this.mainCarouselElement.querySelectorAll(".cmp-carousel__item.cmp-carouselMain__item"),n=t.length,r=e.querySelector(".cmp-carousel__item").dataset.caption,a=this.mainCarouselElement.querySelector(".amag-imageSliderGallery__imgCaption"),i=this.mainCarouselElement.querySelectorAll(".cmp-carousel__action"),o=n>0?t[0].getBoundingClientRect().width:0,s=!0,c=!1,l=!1;if(this.mainCarouselElement.querySelector(".cmp-carousel__itemsLength").innerText="".concat(n),t.forEach((function(e){return e.dataset.caption?l=!0:""})),l?l&&r?(a.classList.remove("hide"),a.innerHTML=r):a.classList.add("hide"):e.classList.add("noCaption"),n<9&&this.thumbnailBtn.classList.add("d-none"),n<2)this.element.querySelector(".cmp-carousel__actions").style.display="none";else{var u,d=V_(i);try{var h=function(){var t=u.value;t.addEventListener("click",(function(){var r=t.closest(".cmp-carousel__content"),i=r.querySelector(".cmp-carousel__indicator--active").getAttribute("aria-label"),l=r.querySelector(".cmp-carousel__item.prev"),u=r.querySelector(".cmp-carousel__item--active");if(r.querySelector(".cmp-carousel__activeItemIndex").innerText=i,l&&l.classList.remove("prev"),u.previousElementSibling&&u.previousElementSibling.classList.add("prev"),u.dataset.caption?(a.classList.remove("hide"),a.innerHTML=u.dataset.caption):a.classList.add("hide"),t.classList.contains("cmp-carousel__action--next"))s=!1,c?N_(e).stop(!1,!0).animate({left:"0px"}):N_(e).stop(!1,!0).animate({left:"-="+o});else if(t.classList.contains("cmp-carousel__action--previous"))if(s){var d=o*(n-1);N_(e).stop(!1,!0).animate({left:"-="+d})}else N_(e).stop(!1,!0).animate({left:"+="+o});s=N_(u).is(":first-child"),c=N_(u).is(":last-child")}))};for(d.s();!(u=d.n()).done;)h()}catch(e){d.e(e)}finally{d.f()}}}},{key:"zoomInCarouselFunction",value:function(){var e,t=this,n=this.modalDialogCarouselElement.querySelector(".cmp-carouselModal__items"),r=this.modalDialogCarouselElement.querySelectorAll(".cmp-carouselModal__item"),a=r.length,i=this.modalDialogCarouselElement.querySelector(".cmp-carouselModal__items"),o=i.querySelector(".cmp-carouselModal__item").dataset.caption,s=this.modalDialogCarouselElement.querySelector(".amag-imageSliderGallery__imgCaption--modal"),c=i.querySelector(".amag-imageSliderGallery__image--modal"),l=this.modalDialogCarouselElement.querySelector(".cmp-carousel__item--active"),u=!1,d=0;if(this.modalDialogCarouselElement.style.display="block",this.zoomInContentElement.classList.remove("d-none"),r.forEach((function(e){return e.dataset.caption?u=!0:""})),r.forEach((function(t,n){t.dataset.caption&&t.dataset.caption.length>d&&(d=t.dataset.caption.length,e=n)})),i.style.removeProperty("height"),c.style.height="".concat(i.offsetHeight,"px"),u&&(i.style.height="".concat(i.offsetHeight-s.offsetHeight,"px"),s.innerHTML=r[e].dataset.caption,o&&(s.innerHTML=o,s.classList.remove("hide"))),a<9&&this.thumbnailBtnModal.classList.add("d-none"),a<2)return this.element.querySelector(".amag-imageSliderGallery__modal-zoom-actions").style.display="none",r.forEach((function(e){return t.addZoomStartEvent(e)})),this.modalDialogCarouselElement.style.display="",void this.zoomInContentElement.classList.add("d-none");this.modalDialogCarouselElement.querySelector(".amag-imageSliderGallery__modal-zoom-itemsLength").innerText=a+"";var h=this.modalDialogCarouselElement.querySelectorAll(".amag-imageSliderGallery__modal-zoom-action"),p=!0,f=!1;l.previousElementSibling?l.previousElementSibling.classList.add("prev"):n.lastElementChild.classList.add("prev");l.nextElementSibling?l.nextElementSibling.classList.add("next"):n.firstElementChild.classList.add("next");var m,v=V_(h);try{var g=function(){var e=m.value;e.addEventListener("click",(function(){var t=e.classList.contains("amag-imageSliderGallery__modal-zoom-action--next"),o=e.classList.contains("amag-imageSliderGallery__modal-zoom-action--previous"),c=this.closest(".amag-imageSliderGallery__modal"),u=c.querySelector(".amag-imageSliderGallery__modal-headline").classList.contains("isZ
6oomed"),d=c.querySelector(".cmp-carouselModal__item.prev"),h=c.querySelector(".cmp-carouselModal__item.next"),m=c.querySelector(".amag-imageSliderGallery__modal-zoom-activeItemIndex"),v=a>0?r[0].getBoundingClientRect().width:0;if(l=c.querySelector(".cmp-carousel__item--active"),!u)if(p=N_(l).is(":first-child"),f=N_(l).is(":last-child"),l.classList.remove("cmp-carousel__item--active"),t?f?r[0].classList.add("cmp-carousel__item--active"):c.querySelector(".cmp-carouselModal__item.next").classList.add("cmp-carousel__item--active"):o&&(p?r[a-1].classList.add("cmp-carousel__item--active"):c.querySelector(".cmp-carouselModal__item.prev").classList.add("cmp-carousel__item--active")),l=c.querySelector(".cmp-carousel__item--active"),m.innerText=l.getAttribute("aria-label"),d&&d.classList.remove("prev"),h&&h.classList.remove("next"),l.previousElementSibling&&l.previousElementSibling.classList.add("prev"),l.nextElementSibling&&l.nextElementSibling.classList.add("next"),l.dataset.caption?(s.classList.remove("hide"),s.innerHTML=l.dataset.caption,l.querySelector(".amag-imageSliderGallery__image--modal").style.height="".concat(i.offsetHeight,"px")):(s.classList.add("hide"),l.querySelector(".amag-imageSliderGallery__image--modal").style.height="".concat(i.offsetHeight,"px")),t)p=!1,f?N_(n).stop(!1,!0).animate({left:"0px"}):N_(n).stop(!1,!0).animate({left:"-="+v});else if(o)if(p){var g=v*(a-1);N_(n).stop(!1,!0).animate({left:"-="+g})}else N_(n).stop(!1,!0).animate({left:"+="+v})}))};for(v.s();!(m=v.n()).done;)g()}catch(e){v.e(e)}finally{v.f()}r.forEach((function(e){return t.addZoomStartEvent(e)})),this.modalDialogCarouselElement.style.display="",this.zoomInContentElement.classList.add("d-none")}},{key:"ivViewer",value:function(e){var t=this;this.viewer=new q_.a(e,{snapView:!1});var n=0;n=it.lp.isMobile()?2:it.lp.isTablet()?1:0;var r=e.querySelector("picture"),a=r.children[n].getAttribute("srcset").toString().trim().split("w,")[0].split(" "),i=r.querySelector(".amag-imageSliderGallery__image--modal").currentSrc,o=a[0];this.viewer.load(i,o);var s=document.createElement("div");s.classList.add("amag-imageSliderGallery__modal-zoom-layer-icon","cmp-carousel__cancel","iv-icon"),s.innerHTML='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"> <path class="fill" d = "M39.1671 39.9987C38.9437 39.9987 38.7354 39.912 38.5771 39.7553L20.0004 21.177L1.42375 39.7553C1.26708 39.912 1.05708 39.9987 0.83375 39.9987C0.610417 39.9987 0.402083 39.912 0.24375 39.7553C-0.08125 39.4303 -0.08125 38.902 0.24375 38.577L18.8204 20.0003L0.245417 1.42199C-0.0795833 1.09699 -0.0795833 0.568657 0.245417 0.243657C0.402083 0.0853239 0.612083 -0.00134277 0.83375 -0.00134277C1.05542 -0.00134277 1.26542 0.0853239 1.42375 0.241991L20.0004 18.8203L38.5787 0.243657C38.7354 0.0869906 38.9454 0.000323893 39.1687 0.000323893C39.3921 0.000323893 39.6004 0.0869906 39.7587 0.243657C40.0837 0.568657 40.0837 1.09699 39.7587 1.42199L21.1787 19.9987L39.7554 38.5753C40.0804 38.9003 40.0804 39.4287 39.7554 39.7537C39.5988 39.912 39.3904 39.9987 39.1671 39.9987Z" fill = "black" /> </svg>',s.addEventListener("click",(function(){t.viewer.destroy(),t.headlineElement.classList.remove("isZoomed"),e.removeChild(s);var n,r=t.modalDialogCarouselElement.querySelector(".cmp-carouselModal__items"),a=t.modalDialogCarouselElement.querySelector(".amag-imageSliderGallery__imgCaption--modal"),i=(t.modalDialogCarouselElement.querySelector(".cmp-carousel__item--active"),t.modalDialogCarouselElement.querySelectorAll(".cmp-carouselModal__item")),o=!1,c=0;i.forEach((function(e){return e.dataset.caption?o=!0:""}
6)),i.forEach((function(e,t){null!=e.dataset.caption&&e.dataset.caption.length>c&&(c=e.dataset.caption.length,n=t)})),o?(r.style.removeProperty("height"),a.innerHTML=i[n].dataset.caption,r.style.height="".concat(r.offsetHeight-a.offsetHeight,"px"),e.querySelector(".amag-imageSliderGallery__image--modal").style.height="".concat(r.offsetHeight,"px")):(r.style.removeProperty("height"),e.querySelector(".amag-imageSliderGallery__image--modal").style.height="".concat(r.offsetHeight,"px")),null!=t.modalDialogCarouselElement.querySelector(".cmp-carousel__item--active").dataset.caption&&(a.classList.remove("hide"),a.innerHTML=t.modalDialogCarouselElement.querySelector(".cmp-carousel__item--active").dataset.caption,e.querySelector(".amag-imageSliderGallery__image--modal").style.height="".concat(r.offsetHeight,"px"))})),e.appendChild(s);var c,l=this.modalDialogCarouselElement.querySelector(".iv-image-view"),u=null,d=null,h=null;(c=l).addEventListener("touchstart",(function(e){var t;t=function(e){return e.touches||e.originalEvent.touches}(e)[0],u=t.clientY})),c.addEventListener("touchmove",(function(e){var t;t=e,u&&(d=t.touches[0].clientY,h=l.offsetHeight,d-u>h/2&&s.click())})),setTimeout((function(){return s.classList.add("show")}),100)}},{key:"addZoomStartEvent",value:function(e){var t=this,n=this.modalDialogCarouselElement.querySelector(".cmp-carouselModal__items");e.addEventListener("touchmove",(function(r){if(e.classList.contains("dm-image")&&e.classList.contains("cmp-carousel__item--active")&&!e.classList.contains("iv-container")){var a=r.target;r.preventDefault(),2===r.targetTouches.length&&a.classList.contains("amag-imageSliderGallery__image--modal")&&(t.headlineElement.classList.add("isZoomed"),n.style.removeProperty("height"),t.ivViewer(e))}})),e.querySelector(".amag-imageSliderGallery__image--modal").addEventListener("click",(function(){e.classList.contains("dm-image")&&e.classList.contains("cmp-carousel__item--active")&&!e.classList.contains("iv-container")&&(t.headlineElement.classList.add("isZoomed"),n.style.removeProperty("height"),t.ivViewer(e))}))}},{key:"setKeyEvents",value:function(){var e=this;addEventListener("keydown",(function(t){var n=e.modalDialogCarouselElement.open,r=e.headlineElement.classList.contains("amag-imageSliderGallery__modal-headline--zoom"),a=e.element.querySelector(".cmp-carousel__actions");switch(t.key){case"ArrowRight":n?r&&e.headlineElement.querySelector(".amag-imageSliderGallery__modal-zoom-action--next").click():a.querySelector(".cmp-carousel__action--next").click();break;case"ArrowLeft":n?r&&e.headlineElement.querySelector(".amag-imageSliderGallery__modal-zoom-action--previous").click():a.querySelector(".cmp-carousel__action--previous").click()}}))}}])}();H_=B_([(0,At.d)({selector:".amag-imageSliderGallery",onDomLoaded:!0}),j_("design:paramtypes",[HTMLElement])],H_);var G_=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},U_=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},W_=(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this._images=this._element.querySelectorAll(".amagch-image-slider-new__item"),this._prevButton=this._element.querySelector(".amagch-image-slider-new__buttons-prev"),this._nextButton=this._element.querySelector(".amagch-image-slider-new__buttons-next"),this._counterCurrent=this._element.querySelector(".amagch-image-slider-new__buttons-counter-current"),this._activeImageIndex=0,this.init=function(){n.addEventListeners()},this.addEventListeners=function(){n._prevButton&&n._nextButton&&(n._prevButton.addEventListener("click",n.onPrevButtonClick),n._nextButton.addEventListener("click",n.onNextButtonClick))},this.onPrevButtonClick=function(){0===n._activeImageIndex?n._activeImageIndex=n._images.length-1:n._activeImageIndex--,n.updateSlider()},this.onNextButtonClick=function(){console.log(n._images.length),n._activeImageIndex===n._images.length-1?n._activeImageIndex=0:n._activeImageIndex++,n.updateSlider()}
6,this.updateSlider=function(){n._images.forEach((function(e,t){e.classList.toggle("cmp-carousel__item--active",t===n._activeImageIndex),e.style.transform="translateX(".concat(100*(t-n._activeImageIndex),"%)")})),n._counterCurrent.textContent="".concat(n._activeImageIndex+1)},this.init()}));W_=G_([(0,At.d)({selector:".amagch-image-slider-new",onDomLoaded:!0}),U_("design:paramtypes",[HTMLDivElement])],W_);var z_=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},$_=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Y_=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=t,this.imageElement=this.element.querySelector(".amag-image-text-v2__image-container"),this.init()}),[{key:"init",value:function(){this.ivViewer()}},{key:"ivViewer",value:function(){var e;if(null===(e=this.imageElement)||void 0===e?void 0:e.classList.contains("dm-image")){var t=0;t=it.lp.isMobile()?2:it.lp.isTablet()?1:0;var n=this.element.querySelector(".amag-image-text-v2__image-container"),r=this.element.querySelector(".amag-image-text-v2__image-wrapper picture").children[t].getAttribute("srcset").toString().trim().split("w,")[0].split(" ")[0];n.addEventListener("click",(function(e){var t=this.querySelector(".amag-image-text-v2__image").currentSrc,n=new q_.WX({snapView:!1});n.show(t,r);var a=document.querySelector('div[class="iv-fullscreen"][style*="display: block;"]');if(a){var i=document.createElement("div");i.classList.add("amag-image-text-v2__showZoomOutIcon"),i.innerHTML='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" rx="20" fill="#222222" fill-opacity="0.7"/><path d="M23.0362 12.2374C23.0694 12.2042 23.1153 12.1869 23.1616 12.1899C23.2513 12.1957 23.3197 12.2733 23.3139 12.363L22.9968 17.3477L29.2968 11.0477C29.3604 10.9841 29.4637 10.9841 29.5273 11.0477C29.5909 11.1113 29.5909 11.2146 29.5273 11.2782L23.2277 17.5777L28.2122 17.2608C28.2555 17.258 28.2975 17.2723 28.3302 17.3009C28.3627 17.3297 28.3823 17.3696 28.3851 17.4129C28.3881 17.4597 28.3708 17.50
656 28.3378 17.5386C28.3097 17.5667 28.2726 17.5835 28.2329 17.5858L23.1863 17.9069C23.1657 17.908 23.1452 17.9083 23.1245 17.9069C23.0173 17.9002 22.9173 17.8582 22.8345 17.7852C22.8269 17.7808 22.8182 17.7748 22.8092 17.7658C22.8032 17.7598 22.7988 17.7541 22.7958 17.7492C22.7937 17.7472 22.7916 17.7451 22.7893 17.7428C22.7024 17.6443 22.6596 17.5185 22.6676 17.3883L22.9887 12.342C22.9913 12.3026 23.0083 12.2653 23.0362 12.2374Z" fill="white" stroke="white" stroke-width="0.7"/><path d="M17.5385 28.3369C17.5053 28.3701 17.4595 28.3874 17.4131 28.3844C17.3235 28.3786 17.255 28.3009 17.2608 28.2113L17.5779 23.2268L11.2782 29.5265C11.2146 29.5901 11.1113 29.5901 11.0477 29.5265C10.9841 29.4629 10.9841 29.3596 11.0477 29.296L17.347 22.9968L12.3627 23.3137C12.3194 23.3164 12.2774 23.3021 12.2447 23.2736C12.2122 23.2448 12.1926 23.2049 12.1898 23.1616C12.1869 23.1148 12.2041 23.0689 12.2371 23.0359C12.2652 23.0078 12.3023 22.991 12.342 22.9887L17.3885 22.6676C17.409 22.6665 17.4295 22.6662 17.4502 22.6676C17.5574 22.6743 17.6574 22.7163 17.7402 22.7893C17.7478 22.7937 17.7566 22.7997 17.7655 22.8087C17.7715 22.8147 17.7759 22.8204 17.7789 22.8253C17.781 22.8273 17.7831 22.8294 17.7854 22.8317C17.8723 22.9301 17.9151 23.056 17.9071 23.1862L17.586 28.2322C17.5835 28.2717 17.5664 28.309 17.5385 28.3369Z" fill="white" stroke="white" stroke-width="0.7"/></svg>',i.onclick=function(){n.resetZoom()},a.appendChild(i),a.classList.add("iv-fullscreenupdated"),document.querySelector(".iv-fullscreen-close").addEventListener("click",(function(e){n.destroy()}))}}))}}}])}();Y_=z_([(0,At.d)({selector:".amag-image-text-v2"}),$_("design:paramtypes",[HTMLElement])],Y_);var Z_=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},K_=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},X_=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this._element=t,this.init=function(){n.initHotspotFunctionality(),n.addEventListeners()},this.aspectRatioCalculator=function(){if(n.s7containerElement)if(it.lp.isMobile())n._element.scrollLeft=n.s7containerElement.getBoundingClientRect().width/2-n._element.getBoundingClientRect().width/2;else{var e=parseFloat(n.s7containerElement.style.width),t=parseFloat(n.s7containerElement.style.height),r=n._element.offsetWidth,a=t/e*r;n.s7containerElement.style.width=r.toString()+"px",n.s7containerElement.style.height=a.toString()+"px"}},this.setUpHotspots=function(){var e=n._element.querySelector(".s7dm-interactive-media");n._element.querySelector(".s7imagemapeffect").querySelectorAll(".s7mapoverlay").forEach((function(t){n.setHotspotEvents(t),e.dataset.customHotspotIcon&&(t.style.backgroundImage="url(".concat(e.dataset.customHotspotIcon,")")),e.dataset.mobileHotspotIcon&&(it.lp.isMobile()||it.lp.isTablet())&&(t.style.backgroundImage="url(".concat(e.dataset.mobileHotspotIcon,")"))}))},this.setHotspotEvents=function(e){e.addEventListener("touchend",(function(){n.generalHotspotLogic(e)})),e.addEventListener("click",(function(){n.generalHotspotLogic(e)}))},this.generalHotspotLogic=function(e){var t=n._element.querySelector(".s7container"),r=n._element.querySelector(".s7dm-interactive-media"),a=document.querySelector(".quickview_dialog"),i=a.querySelector(".add-to-cart-image-dialog-fragment"),o=a.querySelector(".ui-dialog-titlebar"),s=o.querySelector(".ui-dialog-titlebar-close"),c=parseFloat(e.style.left)>parseFloat(t.style.width)/2;a.classList.add("amag-interactivemedia__hotspot__dialog"),s.textContent="",s.innerHTML='<svg class="amag-interactivemedia__hotspot__dialog__close-icon" width="24" height="24" viewBox="0 0 24 24" fill="none"\n xmlns="http://www.w3.org/2000/svg">\n <path\n d="M23.4999 23.9988C23.3659 23.9988 23.2409 23.9468 23.1459 23.8528L11.9999 12.7058L0.853945 23.8528C0.759945 23.9468 0.633945\n 23.9988 0.499945 23.9988C0.365945 23.9988 0.240945 23.9468 0.145945 23.8528C-0.0490552 23.6578 -0.0490552 23.3408 0.145945\n 23.1458L11.2919 11.9998L0.146945 0.852779C-0.0480552 0.657779 -0.0480552 0.340779 0.146945 0.145779C0.240945 0.0507793 0.366945\n -0.0012207 0.499945 -0.0012207C0.632945 -0.0012207 0.758945 0.0507793 0.853945 0.144779L11.9999 11.2918L23.1469 0.145779C23.2409\n 0.0517793 23.3669 -0.000220703 23.5009 -0.000220703C23.6349 -0.000220703 23.7599 0.0517793 23.8549 0.145779C24.0499 0.340779 24.0499\n 0.657779 23.8549 0.852779L12.7069 11.9988L23.8529 23.1448C24.0479 23.3398 24.0479 23.6568 23.8529 23.8518C23.7589 23.9468 23.6339\n 23.9988 23.4999 23.9988Z" />\n </svg>',i.style.width="100%",it.lp.isMobile()||"hotspotLarge"!=r.dataset.hotspotType?it.lp.isMobile()?(i.style.height="".concat(t.offsetHeight-o.offsetHeight-2-60,"px"),n.hotspotLogicMobile(a)):(i.style.height="".concat(t.offsetHeight-o.offsetHeight-2-60,"px"),n.hotspotLogicDesktopSmall(a,e)):(i.style.height="".concat(t.offsetHeight-o.offsetHeight-2,"px"),n.hotspotLogicDesktopLarge(a,c))},this.hotspotLogicDesktopLarge=function(e,t){new MutationObserver((function(){var r=n._element.querySelector(".s7container"),a=r.style.height,i=e.offsetParent.getBoundingClientRect().bottom-r.getBoundingClientRect().bottom;
6e.style.width="445px",e.style.height=a+"px",e.style.top="-".concat(i,"px"),e.style.left=t?"".concat(r.offsetLeft+parseInt(r.style.width)-445,"px"):r.offsetLeft.toString()+"px"})).observe(e,{attributes:!0,attributeFilter:["style"]})},this.hotspotLogicDesktopSmall=function(e,t){new MutationObserver((function(){var r=n._element.querySelector(".s7container"),a=parseFloat(r.style.height)-60,i=t.getBoundingClientRect(),o=e.offsetParent.getBoundingClientRect().bottom-r.getBoundingClientRect().bottom+30,s=o+a+30,c=e.offsetParent.getBoundingClientRect().bottom-i.top-i.height/2-a/2,l=parseFloat(t.style.left)>parseFloat(r.style.width)/2;e.style.maxWidth="330px",e.style.maxHeight=a.toString()+"px";var u=c+e.getBoundingClientRect().height;u>s?c=c-(u-s)-30:c<o&&(c=o),e.style.top="-".concat(c,"px"),e.style.left="".concat(l?r.offsetLeft+parseFloat(t.style.left)-330-15:r.offsetLeft+parseFloat(t.style.left)+parseFloat(t.style.width)+15,"px");var d=e.querySelector(".amag-interactivemedia__hotspot__dialog-arrow");if(!d){var h=document.createElement("div");h.classList.add("amag-interactivemedia__hotspot__dialog-arrow"),e.appendChild(h)}if(d){var p=d.getBoundingClientRect().width;d.style.left=l?"".concat(332-p/2,"px"):"-".concat(p/2-2,"px"),d.style.top="".concat(parseFloat(t.style.top)-p/2,"px")}})).observe(e,{attributes:!0,attributeFilter:["style"]})},this.hotspotLogicMobile=function(e){new MutationObserver((function(){var t=n._element.querySelector(".s7container"),r=parseFloat(t.style.height),a=e.offsetParent.getBoundingClientRect().bottom-t.getBoundingClientRect().bottom,i=(document.querySelector("body").offsetWidth-290)/2;e.style.maxWidth="290px",e.style.height="".concat(r-60,"px"),e.style.top="-".concat(a+30,"px"),e.style.left="".concat(i,"px")})).observe(e,{attributes:!0,attributeFilter:["style"]})},this.s7containerElement=this._element.querySelector(".s7container"),this.init()}),[{key:"initHotspotFunctionality",value:function(){var e=this;this.s7containerElement=this._element.querySelector(".s7container");var t=this._element.querySelectorAll(".s7mapoverlay"),n=0,r=function(){e.s7containerElement=e._element.querySelector(".s7container"),t=e._element.querySelectorAll(".s7mapoverlay"),e.s7containerElement?(e.aspectRatioCalculator(),t.length&&(e.setUpHotspots(),e.aspectRatioCalculator())):a()},a=function(){++n>5?console.warn("Interactive Media: Hotspot elements could not be initialized."):setTimeout((function(){r()}),1e3)};r()}},{key:"addEventListeners",value:function(){var e=this;this._element.addEventListener("click",(function(e){e.currentTarget.classList.contains("amag-interactivemedia")&&document.querySelectorAll(".quickview_dialog.amag-interactivemedia__hotspot__dialog").forEach((function(e){var t=e.querySelector(".ui-dialog-titlebar-close");t&&t.click()}))})),window.addEventListener("resize",(function(){return e.aspectRatioCalculator()}))}}])}();X_=Z_([(0,At.d)({selector:".amag-interactivemedia"}),K_("design:paramtypes",[HTMLElement])],X_);var J_=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Q_=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},eb=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=t,this.imageElement=this.element.querySelector(".amag-introGarage__imgWrapper"),this.init()}),[{key:"init",value:function(){this.ivViewer()}},{key:"ivViewer",value:function(){var e;if(null===(e=this.imageElement)||void 0===e?void 0:e.classList.contains("dm-image")){var t=0;t=it.lp.isMobile()?2:it.lp.isTablet()?1:0;var n=this.element.querySelector(".amag-introGarage__img"),r=this.element.querySelector(".amag-introGarage__showZoomIcon"),a=this.element.querySelector(".amag-introGarage__imgWrapper picture").children[t].getAttribute("srcset").toString().trim().split("w,")[0].split(" ")[0];n.addEventListener("click",(function(e){var t=this.querySelector(".amag-introGarage__img").currentSrc,n=new q_.WX({snapView:!1});n.show(t,a);var r=document.querySelector('div[class="iv-fullscreen"][style*="display: block;"]');if(r){var i=document.createElement("div");i.classList.add("amag-introGarage__showZoomOutIcon"),i.innerHTML='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" rx="20" fill="#222222" fill-opacity="0.7"/><path d="M23.0362 12.2374C23.0694 12.2042 23.1153 12.1869 23.1616 12.1899C23.2513 12.1957 23.3197 12.2733 23.3139 12.363L22.9968 17.3477L29.2968 11.0477C29.3604 10.9841 29.4637 10.9841 29.5273 11.0477C29.5909 11.1113 29.5909 11.2146 29.5273 11.2782L23.2277 17.5777L28.2122 17.2608C28.2555 17.258 28.2975 17.2723 28.3302 17.3009C28.3627 17.3297 28.3823 17.3696 28.3851 17.4129C28.3881 17.4597 28.3708 17.50
656 28.3378 17.5386C28.3097 17.5667 28.2726 17.5835 28.2329 17.5858L23.1863 17.9069C23.1657 17.908 23.1452 17.9083 23.1245 17.9069C23.0173 17.9002 22.9173 17.8582 22.8345 17.7852C22.8269 17.7808 22.8182 17.7748 22.8092 17.7658C22.8032 17.7598 22.7988 17.7541 22.7958 17.7492C22.7937 17.7472 22.7916 17.7451 22.7893 17.7428C22.7024 17.6443 22.6596 17.5185 22.6676 17.3883L22.9887 12.342C22.9913 12.3026 23.0083 12.2653 23.0362 12.2374Z" fill="white" stroke="white" stroke-width="0.7"/><path d="M17.5385 28.3369C17.5053 28.3701 17.4595 28.3874 17.4131 28.3844C17.3235 28.3786 17.255 28.3009 17.2608 28.2113L17.5779 23.2268L11.2782 29.5265C11.2146 29.5901 11.1113 29.5901 11.0477 29.5265C10.9841 29.4629 10.9841 29.3596 11.0477 29.296L17.347 22.9968L12.3627 23.3137C12.3194 23.3164 12.2774 23.3021 12.2447 23.2736C12.2122 23.2448 12.1926 23.2049 12.1898 23.1616C12.1869 23.1148 12.2041 23.0689 12.2371 23.0359C12.2652 23.0078 12.3023 22.991 12.342 22.9887L17.3885 22.6676C17.409 22.6665 17.4295 22.6662 17.4502 22.6676C17.5574 22.6743 17.6574 22.7163 17.7402 22.7893C17.7478 22.7937 17.7566 22.7997 17.7655 22.8087C17.7715 22.8147 17.7759 22.8204 17.7789 22.8253C17.781 22.8273 17.7831 22.8294 17.7854 22.8317C17.8723 22.9301 17.9151 23.056 17.9071 23.1862L17.586 28.2322C17.5835 28.2717 17.5664 28.309 17.5385 28.3369Z" fill="white" stroke="white" stroke-width="0.7"/></svg>',i.onclick=function(){n.resetZoom()},r.appendChild(i),r.classList.add("iv-fullscreenupdated"),document.querySelector(".iv-fullscreen-close").addEventListener("click",(function(e){n.destroy()}))}})),r.addEventListener("click",(function(e){var t=this.querySelector(".amag-introGarage__img").currentSrc,n=new q_.WX({snapView:!1});n.show(t,a);var r=document.querySelector('div[class="iv-fullscreen"][style*="display: block;"]');if(r){var i=document.createElement("div");i.classList.add("amag-introGarage__showZoomOutIcon"),i.innerHTML='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" rx="20" fill="#222222" fill-opacity="0.7"/><path d="M23.0362 12.2374C23.0694 12.2042 23.1153 12.1869 23.1616 12.1899C23.2513 12.1957 23.3197 12.2733 23.3139 12.363L22.9968 17.3477L29.2968 11.0477C29.3604 10.9841 29.4637 10.9841 29.5273 11.0477C29.5909 11.1113 29.5909 11.2146 29.5273 11.2782L23.2277 17.5777L28.2122 17.2608C28.2555 17.258 28.2975 17.2723 28.3302 17.3009C28.3627 17.3297 28.3823 17.3696 28.3851 17.4129C28.3881 17.4597 28.3708 17.50
656 28.3378 17.5386C28.3097 17.5667 28.2726 17.5835 28.2329 17.5858L23.1863 17.9069C23.1657 17.908 23.1452 17.9083 23.1245 17.9069C23.0173 17.9002 22.9173 17.8582 22.8345 17.7852C22.8269 17.7808 22.8182 17.7748 22.8092 17.7658C22.8032 17.7598 22.7988 17.7541 22.7958 17.7492C22.7937 17.7472 22.7916 17.7451 22.7893 17.7428C22.7024 17.6443 22.6596 17.5185 22.6676 17.3883L22.9887 12.342C22.9913 12.3026 23.0083 12.2653 23.0362 12.2374Z" fill="white" stroke="white" stroke-width="0.7"/><path d="M17.5385 28.3369C17.5053 28.3701 17.4595 28.3874 17.4131 28.3844C17.3235 28.3786 17.255 28.3009 17.2608 28.2113L17.5779 23.2268L11.2782 29.5265C11.2146 29.5901 11.1113 29.5901 11.0477 29.5265C10.9841 29.4629 10.9841 29.3596 11.0477 29.296L17.347 22.9968L12.3627 23.3137C12.3194 23.3164 12.2774 23.3021 12.2447 23.2736C12.2122 23.2448 12.1926 23.2049 12.1898 23.1616C12.1869 23.1148 12.2041 23.0689 12.2371 23.0359C12.2652 23.0078 12.3023 22.991 12.342 22.9887L17.3885 22.6676C17.409 22.6665 17.4295 22.6662 17.4502 22.6676C17.5574 22.6743 17.6574 22.7163 17.7402 22.7893C17.7478 22.7937 17.7566 22.7997 17.7655 22.8087C17.7715 22.8147 17.7759 22.8204 17.7789 22.8253C17.781 22.8273 17.7831 22.8294 17.7854 22.8317C17.8723 22.9301 17.9151 23.056 17.9071 23.1862L17.586 28.2322C17.5835 28.2717 17.5664 28.309 17.5385 28.3369Z" fill="white" stroke="white" stroke-width="0.7"/></svg>',i.onclick=function(){n.resetZoom()},r.appendChild(i),r.classList.add("iv-fullscreenupdated"),document.querySelector(".iv-fullscreen-close").addEventListener("click",(function(e){n.destroy()}))}}))}}}])}();eb=J_([(0,At.d)({selector:".amag-introGarage"}),Q_("design:paramtypes",[HTMLElement])],eb);var tb=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},nb=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},rb=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=t,this.imageElement=this.element.querySelector(".amag-introGarageWithSliderImage-container"),this.init()}),[{key:"init",value:function(){this.ivViewer()}},{key:"ivViewer",value:function(){var e,t=this;if(null===(e=this.imageElement)||void 0===e?void 0:e.classList.contains("dm-image")){var n=0;n=it.lp.isMobile()?2:it.lp.isTablet()?1:0;this.element.querySelector(".amag-introGarageWithSliderImage__img");var r=this.element.querySelector(".amag-introGarageWithSliderImage picture").children[n].getAttribute("srcset"),a=this.element.querySelector(".amag-introGarageWithSliderImage__pictureShadow"),i=r.toString().trim().split("w,")[0].split(" ")[0];a.addEventListener("click",(function(e){var n=t.element.querySelector(".amag-introGarageWithSliderImage__img").currentSrc,r=new q_.WX({snapView:!1});r.show(n,i);var a=document.querySelector('div[class="iv-fullscreen"][style*="display: block;"]');if(a){var o=document.createElement("div");o.classList.add("amag-introGarageWithSliderImage__showZoomOutIcon"),o.innerHTML='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" rx="20" fill="#222222" fill-opacity="0.7"/><path d="M23.0362 12.2374C23.0694 12.2042 23.1153 12.1869 23.1616 12.1899C23.2513 12.1957 23.3197 12.2733 23.3139 12.363L22.9968 17.3477L29.2968 11.0477C29.3604 10.9841 29.4637 10.9841 29.5273 11.0477C29.5909 11.1113 29.5909 11.2146 29.5273 11.2782L23.2277 17.5777L28.2122 17.2608C28.2555 17.258 28.2975 17.2723 28.3302 17.3009C28.3627 17.3297 28.3823 17.3696 28.3851 17.4129C28.3881 17.4597 28.3708 17.50
656 28.3378 17.5386C28.3097 17.5667 28.2726 17.5835 28.2329 17.5858L23.1863 17.9069C23.1657 17.908 23.1452 17.9083 23.1245 17.9069C23.0173 17.9002 22.9173 17.8582 22.8345 17.7852C22.8269 17.7808 22.8182 17.7748 22.8092 17.7658C22.8032 17.7598 22.7988 17.7541 22.7958 17.7492C22.7937 17.7472 22.7916 17.7451 22.7893 17.7428C22.7024 17.6443 22.6596 17.5185 22.6676 17.3883L22.9887 12.342C22.9913 12.3026 23.0083 12.2653 23.0362 12.2374Z" fill="white" stroke="white" stroke-width="0.7"/><path d="M17.5385 28.3369C17.5053 28.3701 17.4595 28.3874 17.4131 28.3844C17.3235 28.3786 17.255 28.3009 17.2608 28.2113L17.5779 23.2268L11.2782 29.5265C11.2146 29.5901 11.1113 29.5901 11.0477 29.5265C10.9841 29.4629 10.9841 29.3596 11.0477 29.296L17.347 22.9968L12.3627 23.3137C12.3194 23.3164 12.2774 23.3021 12.2447 23.2736C12.2122 23.2448 12.1926 23.2049 12.1898 23.1616C12.1869 23.1148 12.2041 23.0689 12.2371 23.0359C12.2652 23.0078 12.3023 22.991 12.342 22.9887L17.3885 22.6676C17.409 22.6665 17.4295 22.6662 17.4502 22.6676C17.5574 22.6743 17.6574 22.7163 17.7402 22.7893C17.7478 22.7937 17.7566 22.7997 17.7655 22.8087C17.7715 22.8147 17.7759 22.8204 17.7789 22.8253C17.781 22.8273 17.7831 22.8294 17.7854 22.8317C17.8723 22.9301 17.9151 23.056 17.9071 23.1862L17.586 28.2322C17.5835 28.2717 17.5664 28.309 17.5385 28.3369Z" fill="white" stroke="white" stroke-width="0.7"/></svg>',o.onclick=function(){r.resetZoom()},a.appendChild(o),a.classList.add("iv-fullscreenupdated"),document.querySelector(".iv-fullscreen-close").addEventListener("click",(function(e){r.destroy()}))}}))}}}])}();rb=tb([(0,At.d)({selector:".amag-introGarageWithSliderImage"}),nb("design:paramtypes",[HTMLElement])],rb);var ab=__webpack_require__(33664),ib=__webpack_require__(3193),ob=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},sb=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},cb=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this.element=t,this.statics={selectors:{component:".amag-introGarageWithSliderVideo",vimeoPlayer:".amag-introGarageWithSliderVideo__player",overlay:".amag-introGarageWithSliderVideo__overlay"}},this.videosActivated=!1,this.introGarageWithSliderVideo_checkVideoCookieState_noReload=function(){n.videosActivated=(0,ab.XX)(n.components,ib.a9.INTRO_GARAGE_WITH_SLIDER_VIDEO,n.statics.selectors.vimeoPlayer,n.videosActivated,!1,n.statics.selectors.overlay)},this.introGarageWithSliderVideo_checkVideoCookieState_withReload=function(){n.videosActivated=(0,ab.XX)(n.components,ib.a9.INTRO_GARAGE_WITH_SLIDER_VIDEO,n.statics.selectors.vimeoPlayer,n.videosActivated,!0,n.statics.selectors.overlay)},this.init()}),[{key:"init",value:function(){this.components=document.querySelectorAll(this.statics.selectors.component),(0,ab.z9)()?(0,ab.EK)(this.introGarageWithSliderVideo_checkVideoCookieState_noReload,this.introGarageWithSliderVideo_checkVideoCookieState_withReload):(0,ib.Lt)(this.components,ib.a9.INTRO_GARAGE_WITH_SLIDER_VIDEO,this.statics.selectors.vimeoPlayer,this.videosActivated,this.statics.selectors.overlay)}}])}();cb=ob([(0,At.d)({selector:".amag-introGarageWithSliderVideo"}),sb("design:paramtypes",[HTMLElement])],cb);var lb=__webpack_require__(49891),ub=__webpack_require__.n(lb),db=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},hb=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},pb=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this.element=t,this.containerElement=document.querySelector("body"),this.pushContainerElement=this.element.querySelector(".amag-leads-push__container"),this.closeElement=this.element.querySelector(".amag-leads-push__closeBtn"),this.closeBtn=this.element.querySelector(".amag-leads-push__closebutton"),this.leadCtaBtn=this.element.querySelector(".amag-leads-push__ctaBtn"),this.lottieElement=this.element.querySelector(".amag-leads-push__lottie"),this.lottieContainerElement=this.element.querySelector(".amag-leads-push__lottie-container"),this.showLeadsPushWithDelay=function(){var e=1e3*n.activationDelaySeconds;setTimeout((function(){n.showLeadsPushRelativeToOneTrust()}),e)},this.activationDelaySeconds=Number(this.element.getAttribute("data-waitingtime")),this.scrollDistancePercent=Number(this.element.getAttribute("data-scrolldistancepercent"));var r=this.element.getAttribute("data-impressionunit");"day"===r?this.cookieDate=new Date(Date.now()+864e5):"week"===r&&(this.cookieDate=new Date(Date.now()+6048e5)),this.init()}),[{key:"init",value:function(){this.checkAuthorMode(),this.lottieAnimation()}},{key:"checkAuthorMode",value:function(){"true"!==document.querySelector(".amag-leads-push").getAttribute("data-isauthormode")&&this.initLeadsPush()}},{key:"initLeadsPush",value:function(){var e=(0,ni.Ri)("leadsPushCTA"),t=(0,ni.Ri)("leadsPushClose");e||t||this.checkUserLogInState()}},{key:"checkUserLogInState",value:function(){var e=this;if(!(localStorage.amaguser?JSON.parse(localStorage.amaguser):null))return this.userStatus="loggedOut",void this.checkUserDisplayState();Dr((function(t){var n,r;if("FAIL"!==t.status){var a=null===(n=t.subscriptions.retail)||void 0===n?void 0:n.email.isSubscribed,i=null===(r=t.subscriptions.retail)||void 0===r?void 0:r.email.doubleOptIn.status;return e.userStatus=!0===a&&"Confirmed"===i?"loggedInAbo":"loggedIn",void e.checkUserDisplayState()}console.error("Failed to retrieve user data for leads push.")}))}},{key:"checkUserDisplayState",value:function(){var e=this.element.getAttribute("data-userstatusleadspush").toLowerCase();this.userStatus=this.userStatus.toLowerCase(),("all"===e||e===this.userStatus||"loggedIn"===e&&"loggedInAbo"===this.userStatus)&&this.measureDelayAndScrollSettings()}},{key:"measureDelayAndScrollSettings",value:function(){this.updateScrollParameters(),0!==this.activationDelaySeconds||0!==this.activationScrollDistancePercent?0===this.activationDelaySeconds||0!==this.activationScrollDistancePercent?0!==this.activationDelaySeconds||0===this.activationScrollDistancePercent?this.showLeadsPushAfterDelayAndScroll():this.showLeadsPushAfterScroll():this.showLeadsPushWithDelay():this.showLeadsPushRelativeToOneTrust()}},{key:"updateScrollParameters",value:function(){this.activationScrollDistancePercent=this.scrollDistancePercent?this.scrollDistancePercent>100?100:this.scrollDistancePercent:0,this.totalAvailableScrollHeight=document.body.scrollHeight-window.innerHeight,this.isScrollable=this.totalAvailableScrollHeight>0,this.minScrollHeight=this.totalAvailableScrollHeight/100*this.activationScrollDistancePercent}},{key:"showLeadsPushAfterScroll",value:function(){var e=this,t=!1;this.isScrollable||(this.showLeadsPushRelativeToOneTrust(),t=!0),window.addEventListener("scroll",(function(){t||(e.updateScrollParameters(),window.scrollY>=e.minScrollHeight&&(e.showLeadsPushRelativeToOneTrust(),t=!0))}))}},{key:"showLeadsPushAfterDelayAndScroll",value:function(){var e=this,t=1e3*this.activationDelaySeconds,n=!1,r=!1,a=!1,i=function(){a||(a=!0,e.showLeadsPushRelativeToOneTrust())};setTimeout((function(){n=!0,r&&i()}),t),this.isScrollable||(r=!0,n&&i()),window.addEventListener("scroll",(function(){r||(e.updateScrollParameters(),window.scrollY<e.minScrollHeight||(r=!0,n&&i()))}))}},{key:"showLeadsPushRelativeToOneTrust",value:function(){var e=(0,ni.Ri)("OptanonConsent"),t=(0,ni.Ri)("OptanonAlertBoxClosed");e?t&&this.showLeadsPush():this.showLeadsPush()}}
6,{key:"showLeadsPush",value:function(){this.addDisplayClasses(),this.pushAnalyticsDataLayer("popup shown"),this.addEventListeners()}},{key:"addEventListeners",value:function(){this.addClickEventListeners(),this.addTouchEventListeners()}},{key:"addClickEventListeners",value:function(){var e=this;this.closeElement.addEventListener("click",(function(){e.resetDisplayClasses(),e.pushAnalyticsDataLayer("popup closed"),(0,ni.TV)("leadsPushClose","true",e.cookieDate)})),this.closeBtn.addEventListener("click",(function(){e.resetDisplayClasses(),e.pushAnalyticsDataLayer("popup closed"),(0,ni.TV)("leadsPushClose","true",e.cookieDate)})),this.leadCtaBtn.addEventListener("click",(function(){e.resetDisplayClasses(),e.pushAnalyticsDataLayer("popup CTA click"),(0,ni.TV)("leadsPushCTA","true",e.cookieDate)})),this.containerElement.addEventListener("keydown",(function(t){"Escape"==t.key&&e.element.classList.contains("pushOpen")&&(e.resetDisplayClasses(),e.pushAnalyticsDataLayer("popup closed"),(0,ni.TV)("leadsPushClose","true",e.cookieDate))}))}},{key:"addTouchEventListeners",value:function(){var e,t=this,n=null,r=null,a=null;e=0;var i;(i=this.pushContainerElement).addEventListener("touchstart",(function(e){var t;t=function(e){return e.touches||e.originalEvent.touches}(e)[0],n=t.clientY})),i.addEventListener("touchmove",(function(i){var o;o=i,n&&(r=o.touches[0].clientY,a=t.pushContainerElement.offsetHeight,r-n>a/2&&0==e&&(e+=1,t.resetDisplayClasses(),t.pushAnalyticsDataLayer("popup closed"),(0,ni.TV)("leadsPushClose","true",t.cookieDate)))}))}},{key:"addDisplayClasses",value:function(){document.querySelector("body").classList.add("no-scroll"),this.element.classList.remove("pushClose"),this.element.classList.add("pushOpen")}},{key:"resetDisplayClasses",value:function(){document.querySelector("body").classList.remove("no-scroll"),this.element.classList.remove("pushOpen"),this.element.classList.add("pushClose")}},{key:"lottieAnimation",value:function(){if(this.lottieElement){var e=this.lottieElement.getAttribute("data-lottie"),t=this.lottieContainerElement;e&&ub().loadAnimation({container:t,renderer:"svg",loop:!0,autoplay:!0,path:e})}}},{key:"pushAnalyticsDataLayer",value:function(e){var t={event:"ga4Event",eventName:"popup_layer_interaction",eventParameter1:"interaction_item",fieldValue1:document.querySelector('meta[name="templatename"]').getAttribute("content"),eventParameter2:"interaction_label",fieldValue2:e,eventParameter3:"interaction_content",fieldValue3:this.leadCtaBtn.getAttribute("href")};(0,it.eo)(t)}}])}();pb=db([(0,At.d)({selector:".amag-leads-push"}),hb("design:paramtypes",[HTMLElement])],pb);var fb=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},mb=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},vb=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this.element=t,this.bodyElement=this.element.querySelector(".amag-navigation-tile__body"),this.checkUserStatus=function(e){if("FAIL"!==e.status){if("damageReportTile"===n.bodyElement.id){var t=e.data.damageReports;if(t)n.element.querySelector(".amag-navigation-tile__headline").textContent+=" (".concat(t.length,")")}}else console.log("FEHLER CDC")},this.init()}),[{key:"init",value:function(){this.addEventListener(),Dr(this.checkUserStatus)}},{key:"addEventListener",value:function(){"31"===this.bodyElement.id&&this.element.addEventListener("click",(function(){var e=window.dataLayer;void 0!==e&&e.push({event:"ga4Event",eventName:"auto_abo_interaction",eventParameter1:"interaction_item",fieldValue1:"my_profile_overview",eventParameter2:"interaction_label",fieldValue2:"click my subscriptions"})}))}}])}();vb=fb([(0,At.d)({selector:".amag-navigation-tile",onDomLoaded:!0}),mb("design:paramtypes",[HTMLElement])],vb);var gb,yb=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},_b=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},bb=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this.element=t,this.statics={selectors:{button:".amag-maxiTeaserBild__btn",ctaText:".btn__text"}},this.waitingServiceInfo=null,this.addFrontNowAILogic=function(){if(n.element.querySelector(".amag-maxiTeaserBild__content").classList.contains("isFrontnow")){var e=window.aiAdvisor,t=
6document.querySelector(".frontnow-button"),r=document.querySelector(".amag-direct-entry");if(e&&t){var a=n.element.querySelector(".amag-maxiTeaserBild__btn");n.aiEventLogic(a,r,t,e)}else{var i=new MutationObserver((function(){var e=window.aiAdvisor,t=document.querySelector(".frontnow-button"),a=n.element.querySelector(".amag-maxiTeaserBild__btn");e&&t&&(n.aiEventLogic(a,r,t,e),i.disconnect())}));i.observe(document.body,{subtree:!0,childList:!0})}}},this.aiEventLogic=function(e,t,n,r){r.hideLauncher(),n.classList.add("no-show"),e.attributes.removeNamedItem("href"),e.addEventListener("click",(function(e){e.preventDefault(),r.open()}))},this.init()}),[{key:"init",value:function(){this.getWaitingServiceData(),this.changeLink(),this.addFrontNowAILogic()}},{key:"getWaitingServiceData",value:function(){this.waitingServiceInfo=JSON.parse(sessionStorage.getItem(Gt.waitingService))}},{key:"changeLink",value:function(){var e="true"===this.element.getAttribute("data-waiting-service-active");if(this.waitingServiceInfo&&e){var t=this.element.querySelector(this.statics.selectors.button),n=this.element.querySelector(this.statics.selectors.ctaText),r=new URL(this.waitingServiceInfo[Gt.waitingServiceObj.garageTeamPageLink]),a=this.element.getAttribute("data-waiting-service-cta-text");t.href=r.href,a&&(n.innerText=a)}}}])}();bb=yb([(0,At.d)({selector:".amag-maxiTeaserBild",onDomLoaded:!0}),_b("design:paramtypes",[HTMLElement])],bb),function(e){e.LEFT="left",e.RIGHT="right"}(gb||(gb={}));var wb=function(e){var t=null,n=null;e.addEventListener("touchstart",(function(e){t=e.changedTouches[0].screenX})),e.addEventListener("touchmove",(function(e){e.stopPropagation(),e.preventDefault(),n=e.changedTouches[0].screenX})),e.addEventListener("touchend",(function(r){var a,i;n=r.changedTouches[0].screenX,i=null,n<t&&(a=new CustomEvent("customSwipe",{detail:gb.LEFT}),i=Math.abs(t)-Math.abs(n)),n>t&&(a=new CustomEvent("customSwipe",{detail:gb.RIGHT}),i=Math.abs(n)-Math.abs(t)),i<50||e.dispatchEvent(a)}
6))},Sb=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Cb=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Eb=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=t,this.quotesContainer=this.element.querySelector(".amagch-quotes__outer-container"),this.allQuotes=this.element.querySelectorAll(".amagch-quotes__container"),this.quotesNavigation=this.element.querySelector(".amagch-quotes__carousel-nav"),this.quotesNavigationButtons=this.element.querySelectorAll(".amagch-quotes__carousel-nav__button"),this.quoteNavIndicators=this.element.querySelectorAll(".amagch-quotes__carousel-nav__indicator"),this.current=1,this.numberOfQuotes=this.allQuotes.length,this.init()}),[{key:"init",value:function(){this.allQuotes.item(0).classList.add("show"),this.allQuotes.length>1&&(this.quoteNavIndicators.item(2).textContent=this.allQuotes.length.toString(),this.quotesNavigation.classList.add("show"),this.allQuotes.forEac
6h((function(e,t){e.style.order=(t+1).toString()})),this.addEventListeners())}},{key:"addEventListeners",value:function(){var e=this;this.quotesContainer.addEventListener("transitionend",(function(){e.changeOrder()})),wb(this.quotesContainer),this.quotesContainer.addEventListener("customSwipe",(function(t){"left"===t.detail?e.goToNext():e.goToPrevious()})),this.quotesNavigationButtons[0].addEventListener("click",(function(t){e.goToPrevious()})),this.quotesNavigationButtons[1].addEventListener("click",(function(t){e.goToNext()}))}},{key:"changeOrder",value:function(){this.current>this.numberOfQuotes?this.current=1:0===this.current&&(this.current=this.numberOfQuotes);for(var e=1,t=this.current;t<=this.numberOfQuotes;t++)this.element.querySelector('.amagch-quotes__container[data-position="'.concat(t,'"]')).style.order=e.toString(),e++;for(var n=1;n<this.current;n++)this.element.querySelector('.amagch-quotes__container[data-position="'.concat(n,'"]')).style.order=e.toString(),e++;this.quotesContainer.classList.remove("transition"),this.quotesContainer.style.transform="translateX(0)",this.quoteNavIndicators.item(0).textContent=this.current.toString()}},{key:"goToNext",value:function(){this.current++,this.quotesContainer.classList.add("transition"),this.quotesContainer.style.transform="translateX(-100%)"}},{key:"goToPrevious",value:function(){this.current--,this.quotesContainer.classList.add("transition"),this.quotesContainer.style.transform="translateX(+100%)"}}])}();Eb=Sb([(0,At.d)({selector:".amagch-quotes",onDomLoaded:!0}),Cb("design:paramtypes",[HTMLElement])],Eb);var xb=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Ab=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},kb=function(){return(0,ft.A)((function e(t){var n=this;(0,pt.A)(this,e),this.element=t,this.isMobile=!1,this.MIN_TAB_NUMBER=1,this.MAX_TAB_NUMBER=3,this.setPrevNextClasses=function(e){for(var t=[],r=e-1;r>=n.MIN_TAB_NUMBER;r--)t.push(r);t.forEach((function(e){var t=e?n.element.querySelector(".amag-serviceBookingNew__tabpanel[data-tabpanel-count='".concat(e,"']")):null;null==t||t.classList.add("prev")}));for(var a=[],i=e+1;i<=n.MAX_TAB_NUMBER;i++)a.push(i);a.forEach((function(e){var t=e?n.element.querySelector(".amag-serviceBookingNew__tabpanel[data-tabpanel-count='".concat(e,"']")):null;null==t||t.classList.add("next")}))},this.removeAllPrevNextClasses=function(){n.element.querySelectorAll(".amag-serviceBookingNew__tabpanel").forEach((function(e){e.classList.remove("prev"),e.classList.remove("next")}))},this.setInitialClasses=function(){var e=n.element.querySelector(".amag-serviceBookingNew__tabpanel.cmp-tabs__tabpanel--active"),t=e?parseInt(e.getAttribute("data-tabpanel-count")):null;n.removeAllPrevNextClasses(),n.setPrevNextClasses(t)},this.setHeightToTabPanelContainer=function(){var e=n.element.querySelector(".amag-serviceBookingNew__tabpanelContainer"),t=n.element.querySelectorAll(".amag-serviceBookingNew__tabpanel"),r=0;t.forEach((function(e){e.classList.add("checkHeight");var t=e.offsetHeight;e.classList.remove("checkHeight"),t<r||(r=t)})),e.style.height="".concat(r,"px")},this.init()}),[{key:"init",value:function(){this.checkGarageId(),this.updateMobileState(),this.setHeightToTabPanelContainer(),this.setInitialClasses(),this.activateTouchListeners(),this.activateClickListeners()}},{key:"checkGarageId",value:function(){var e=Kc(),t=e.garageId,n=e.services;void 0===t&&0===n.length||(n.length>0&&window.sessionStorage.setItem(Gt.otv.presetServices,n.toString()),void 0!==t&&window.sessionStorage.setItem("garage.presetGarage",t.toString()))}},{key:"updateMobileState",value:function(){this.isMobile=it.lp.isMobile()||!1}},{key:"activateTouchListeners",value:function(){var e=this;this.isMobile&&this.element.querySelectorAll(".amag-serviceBookingNew__tabpanel").forEach((function(t){wb(t),t.addEventListener("customSwipe",(function(t){var n=parseInt(t.target.getAttribute("data-tabpanel-count"));"left"===t.detail?e.activateTabNext(n):e.activateTabPrev(n)}))}))}},{key:"activateClickListeners",value:function(){var e=this;this.isMobile&&this.element.querySelectorAll(".amag-serviceBookingNew__tab").forEach((function(t){t.addEventListener("click",(function(){var n=parseInt(t.getAttribute("data-tab-count"));e.removeAllPrevNextClasses(),e.setPrevNextClasses(n)}))}))}},{key:"activateTabPrev",value:function(e){var t=e-1;e<=this.MIN_TAB_NUMBER||this.activateTab(t)}},{key:"activateTabNext",value:function(e){var t=e+1;e>=this.MAX_TAB_NUMBER||this.activateTab(t)}},{key:"activateTab",value:function(e){this.removeAllPrevNextClasses(),this.setPrevNextClasses(e);var t=this.element.querySelector(".amag-serviceBookingNew__tab[data-tab-count='".concat(e,"']"));t.click(),t.blur()}}])}();kb=xb([(0,At.d)({selector:".amag-serviceBookingNew",onDomLoaded:!0}),Ab("design:paramtypes",[HTMLElement])],kb);var Tb=__webpack_require__(74692);
6function Lb(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ib(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ib(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Ib(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Db=function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Pb=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":(0,xt.A)(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ob=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Rb=function(){return(0,ft.A)((function e(t){(0,pt.A)(this,e),this.element=t,this.$ddlBrand=Tb(this.element.querySelector("#teamContainerBrand")),this.$ddlDept=Tb(this.element.querySelector("#teamContainerDepartment")),this.departmentsElement=this.element.querySelector(".amag-team-container__departments-wrapper"),this.$spinnerContainer=Tb(this.element.querySelector(".amag-team-container__spinner-container")),this.contentContainer=this.element.querySelector(".amag-team-container__content-container"),this.noMemberContainer=this.element.querySelector(".amag-abbildungTeams_NoMembers"),this.select2Departments=[],this.select2Brands=[],this.init()}),[{key:"init",value:function(){return Ob(this,void 0,void 0,ht().mark((function e(){return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadData();case 2:this.removeFooterLinks(),this.setDropdowns(),this.fillDepartments(),this.setEventListener(),this.hideShowDepartmets(this.$ddlDept.val().toString()),this.hideShowBrandTeamMembers(this.$ddlBrand.val().toString()),this.hideShowNoTeamMembers(),this.pageLoadFilter();case 10:case"end":return e.stop()}}),e,this)})))}},{key:"setDropdowns",value:function(){Vr(this.$ddlBrand,this.select2Brands,null,!1),Vr(this.$ddlDept,this.select2Departments,null,!1)}},{key:"loadData",value:function(){return Ob(this,void 0,void 0,ht().mark((function e(){var t,n,r,a;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,(t=new fr.y).show(this.$spinnerContainer),this.contentContainer.classList.add("d-none"),this.noMemberContainer.classList.add("d-none"),e.next=7,(0,yr.eJ)(this.createURL());case 7:return n=e.sent,this.brands=n.brands,this.departments=n.departments,this.users=n.users,this.select2Brands=this.brands.map((function(e){return{id:e.id,text:Granite.I18n.get(e.key)}})),r=this.departments.map((function(e){return{id:e.id,text:Granite.I18n.get(e.key)}})),a=this.element.querySelector(".amag-abbildungTeamsWrapper__filterDepartments").querySelector("label").textContent,this.select2Departments=[{id:"",text:a}],this.select2Departments=this.select2Departments.concat(r),this.contentContainer.classList.remove("d-none"),this.noMemberContainer.classList.remove("d-none"),e.next=20,t.remove();case 20:this.$spinnerContainer[0].classList.add("d-none"),e.next=25;break;case 23:e.prev=23,e.t0=e.catch(0);case 25:case"end":return e.stop()}}),e,this,[[0,23]])})))}},{key:"createURL",value:function(){return window.location.origin+window.location.pathname.split(".")[0]+".amagch-team-member.json?"}},{key:"fillDepartments",value:function(){var e,t=document.createDocumentFragment(),n=Lb(this.departments);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(""!=r.id){var a=document.createElement("div");a.classList.add("amag-abbildungTeamsWrapper__departments"),a.id=r.id;var i=document.createElement("h3");i.classList.add("amag-abbildungTeamsWrapper__departmentsHeadline"),i.classList.add("d-flex"),i.classList.add("align-items-center"),i.classList.add("n-hyphens"),i.textContent=Granite.I18n.get(r.key);var o=document.createElement("div");if(o.classList.add("row"),"id#firmenkunden"!=r.id)o.appendChild(this.fillTilesForDepartment(r.id));else{var s=document.createElement("div");s.classList.add("col-lg-4","col-md-6","col-sm-12");var c=document.createElement("a");switch(c.classList.add("amag-ctaWrapper__button","d-flex","justify-content-center","align-items-center","text-decoration-none","amag-ctaWrapper__button--bgColor-amagDark-blue"),c.textContent=Granite.I18n.get("apps.amag-ch.components.c
6ontent.teamContainerNew.cta"),document.querySelector("html").getAttribute("lang")){case"de":c.setAttribute("href","https://www.amag.ch/de/auto-finden/autos-bei-amag-haendler/fleet/dienstwagen/ansprechpersonen-fleet.html");break;case"it":c.setAttribute("href","https://www.amag.ch/it/auto-finden/autos-bei-amag-haendler/fleet/dienstwagen/ansprechpersonen-fleet.html");break;case"en":c.setAttribute("href","https://www.amag.ch/en/auto-finden/autos-bei-amag-haendler/fleet/dienstwagen/ansprechpersonen-fleet.html");break;case"fr":c.setAttribute("href","https://www.amag.ch/fr/auto-finden/autos-bei-amag-haendler/fleet/dienstwagen/ansprechpersonen-fleet.html")}c.setAttribute("target","_self"),c.setAttribute("rel","follow"),s.appendChild(c),o.appendChild(s)}a.appendChild(i),a.appendChild(o),t.appendChild(a)}}}catch(e){n.e(e)}finally{n.f()}this.departmentsElement.appendChild(t)}},{key:"fillTilesForDepartment",value:function(e){var t,n=document.createDocumentFragment(),r=this.users.filter((function(t){return t.departmentId===e})),a=Lb(r);try{for(a.s();!(t=a.n()).done;){var i=t.value,o=document.createElement("div");o.classList.add("teamMember","amag-abbildungTeamMember","col-lg-4","col-md-6","col-sm-12");var s=document.createElement("div");s.classList.add("amag-abbildungTeams","h-100"),s.dataset.brands=i.brandId;var c=document.createElement("div");c.classList.add("col-sm-12","amag-abbildungTeams__ratioWrapper");var l=document.createElement("div");l.classList.add("amag-abbildungTeams__imgWrapper");var u=document.createElement("picture"),d=document.createElement("img");d.classList.add("amag-abbildungTeams__img","dam-image"),d.setAttribute("srcset","".concat(i.imagePath,"/jcr:content/renditions/original.transform/w482_h643-teamMember/img.jpg")),u.appendChild(d),l.appendChild(u),c.appendChild(l),s.appendChild(c);var h=document.createElement("div");h.classList.add("col-sm-12","amag-abbildungTeams__bodyWrapper","marginBottom");var p=document.createElement("div");p.classList.add("amag-abbildungTeams__body","h-100","d-flex","align-items-center","flex-wrap");var f=document.createElement("div");f.classList.add("d-flex","align-items-center","justify-content-between","w-100");var m=document.createElement("div");m.classList.add("amag-abbildungTeams__info");var v=document.createElement("p");v.classList.add("amag-abbildungTeams__name"),v.textContent=i.displayName;var g=document.createElement("p");g.classList.add("amag-abbildungTeams__job"),g.textContent="id#markenbergreifend"!=i.brandId?"".concat(Granite.I18n.get(i.position)," ").concat(Granite.I18n.get(i.brand)):Granite.I18n.get(i.position);var y=document.createElement("p");y.classList.add("amag-abbildungTeams__absence","w-100"),y.textContent=Granite.I18n.get(i.subFunction),m.appendChild(v),m.appendChild(g),m.appendChild(y),f.appendChild(m),p.appendChild(f);var _=document.createElement("div");_.classList.add("amag-abbildungTeams__moreInfo","w-100");var b=document.createElement("div");b.classList.add("d-flex","flex-wrap","flex-lg-row");var w=document.createElement("p");w.classList.add("amag-abbildungTeams__languages","w-100"),w.textContent=i.language,b.appendChild(w),_.appendChild(b),p.appendChild(_),h.appendChild(p),s.appendChild(h),o.appendChild(s);var S=document.createElement("div");S.classList.add("amag-abbildungTeams__ctaWrapper");var C=document.createElement("div");C.classList.add("amag-ctaWrapper");var E=document.createElement("a");E.classList.add("amag-ctaWrapper__button","amag-ctaWrapper__button--call","text-decoration-none"),E.setAttribute("href","tel:".concat(i.mobile)),E.setAttribute("target","_self"),E.setAttribute("rel","follow"),E.setAttribute("role","button"),E.innerHTML='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M25.0101 32C23.9086 32 22.8439 31.6819 21.931 31.0775C13.5553 25.5124 6.48737 18.4444 0.923817 10.0703C-0.535815 7.86411 -0.240052 4.90328 1.62885 3.02958L3.48817 1.16866C4.24276 0.414069 5.24676 0 6.3147 0C7.38265 0 8.38665 0.415667 9.14124 1.16866L12.5337 4.55955C14.0909 6.1183 14.0909 8.65228 12.5337 10.211L11.915 10.8249C14.7208 14.1679 17.8319 17.279 21.1748 20.0831L21.7903 19.4692C22.5433 18.7162 23.5473 18.3006 24.6153
618.3006C25.6832 18.3006 26.6872 18.7162 27.4418 19.4692L30.8327 22.8569C32.3898 24.4157 32.3898 26.9512 30.8327 28.5084L28.9718 30.3693C27.9166 31.4213 26.5097 32 25.0101 32ZM6.3147 1.59712C5.67362 1.59712 5.0725 1.84652 4.62006 2.29896L2.75915 4.15987C1.42422 5.4964 1.21319 7.60991 2.25555 9.18625C7.7008 17.3813 14.6185 24.299 22.8151 29.7442C23.4642 30.1743 24.2252 30.4013 25.0117 30.4013C26.0845 30.4013 27.0885 29.9872 27.8415 29.2374L29.7024 27.3781C30.636 26.4428 30.636 24.9225 29.7024 23.9872L26.3115 20.5995C25.8591 20.1487 25.2579 19.8993 24.6153 19.8993C23.9742 19.8993 23.3715 20.1487 22.9206 20.5995L21.7903 21.7298C21.64 21.8801 21.4386 21.9632 21.2244 21.9632C21.0405 21.9632 20.8599 21.8977 20.716 21.781C16.895 18.6379 13.3619 15.1047 10.2156 11.2806C9.95179 10.9592 9.97578 10.4972 10.2699 10.2046L11.4066 9.07914C12.3387 8.14548 12.3387 6.6251 11.405 5.68985L8.01095 2.29896C7.55691 1.84652 6.95579 1.59712 6.3147 1.59712V1.19744V1.59712Z"></path>\n </svg>';var x=document.createElement("span");x.classList.add("d-none","d-md-inline"),x.textContent=i.mobile,E.appendChild(x);var A=document.createElement("span");A.classList.add("d-md-none"),A.textContent=Granite.I18n.get("apps.amag-ch.components.content.teamMember.callLabel"),E.appendChild(A),C.appendChild(E),S.appendChild(C);var k=document.createElement("div");k.classList.add("amag-ctaWrapper");var T=document.createElement("a");T.classList.add("amag-ctaWrapper__button","amag-ctaWrapper__button--email","text-decoration-none"),T.setAttribute("href","mailTo:".concat(i.email)),T.setAttribute("target","_self"),T.setAttribute("rel","follow"),T.setAttribute("role","button"),T.innerHTML='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M3.33333 27.272C1.49467 27.272 0 25.776 0 23.9387V7.93868C0 7.07468 0.330667 6.25601 0.932 5.63201C0.933333 5.62935 0.934667 5.62801 0.936 5.62668C0.949333 5.61068 0.966667 5.59335 0.984 5.57868C1.62533 4.94535 2.45333 4.60535 3.33333 4.60535H28.6667C29.5573 4.60535 30.3933 4.95335 31.0253 5.58535C31.0373 5.59601 31.048 5.60668 31.0573 5.61735C31.0613 5.62135 31.0653 5.62668 31.0693 5.63201C31.6653 6.24668 32 7.06935 32 7.93868V23.9387C32 25.776 30.504 27.272 28.6667 27.272H3.33333ZM1.568 7.00401C1.41333 7.29068 1.33333 7.60801 1.33333 7.93868V23.9387C1.33333 25.0413 2.23067 25.9387 3.33333 25.9387H28.6667C29.7693 25.9387 30.6667 25.0413 30.6667 23.9387V7.93868C30.6667 7.60801 30.5867 7.29068 30.432 7.00401L16.4213 18.456C16.3027 18.5533 16.1533 18.6067 16 18.6067C15.8467 18.6067 15.6973 18.5533 15.5787 18.456L1.568 7.00401ZM16 17.0773L29.4373 6.09468C29.1947 5.99201 28.9333 5.93868 28.6667 5.93868H3.33333C3.06667 5.93868 2.80533 5.99201 2.56267 6.09468L16 17.0773Z"></path>\n </svg>';var L=document.createElement("span");L.classList.add("d-none","d-md-inline"),L.textContent=i.email,T.appendChild(L);var I=document.createElement("span");I.classList.add("d-md-none"),I.textContent=Granite.I18n.get("apps.amag-ch.components.content.teamMember.emailFieldLabel"),T.appendChild(I),k.appendChild(T),S.appendChild(k),o.appendChild(S),n.appendChild(o)}}catch(e){a.e(e)}finally{a.f()}return n}},{key:"setEventListener",value:function(){var e=this;it.lp.isMobile()?this.$ddlBrand.on("change",(function(t){e.hideShowBrandTeamMembers(e.$ddlBrand.val().toString())})):this.$ddlBrand.on("select2:select",(function(t){e.hideShowBrandTeamMembers(e.$ddlBrand.val().toString())})),it.lp.isMobile()?this.$ddlDept.on("change",(function(t){e.hideShowDepartmets(e.$ddlDept.val().toString())})):this.$ddlDept.on("select2:select",(function(t){e.hideShowDepartmets(e.$ddlDept.val().toString())}))}},{key:"removeFooterLinks",value:function(){this.element.querySelectorAll(".amag-garageTabModul__team").forEach((function(e){e.innerHTML="",e.classList.remove("amag-garageTabModul__team")})),this.element.querySelectorAll(".amag-ctaWrapper--team").forEach((function(e){e.innerHTML="",e.classList.remove("amag-ctaWrapper--team")}))}},{key:"hideShowDepartmets",value:function(e){var t=this.element.querySelectorAll(".amag-abbildungTeamsWrapper__departments");if(""!==e){var n,r=Lb(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;a.getAttribute("id")===e?a.style.display="block":a.style.display="none"}}catch(e){r.e(e)}finally{r.f()}}else{var i,o=Lb(t);try{for(o.s();!(i=o.n()).done;){i.value.style.display="block"}}catch(e){o.e(e)}finally{o.f()}}this.hideShowNoTeamMembers()}},{key:"hideShowBrandTeamMembers",value:function(e){var t=this.element.querySelectorAll(".amag-abbildungTeamMember, .amag-teamMember-small");
6if(""!==e&&"id#markenbergreifend"!==e){var n,r=Lb(t);try{for(r.s();!(n=r.n()).done;){var a=n.value,i=a.querySelector(".amag-abbildungTeams")?a.querySelector(".amag-abbildungTeams").getAttribute("data-brands"):null;if(null!=i){var o=i.split(",");o.includes(e)||o.includes("id#markenbergreifend")?a.style.display="block":a.style.display="none"}else a.style.display="none"}}catch(e){r.e(e)}finally{r.f()}}else{var s,c=Lb(t);try{for(c.s();!(s=c.n()).done;){s.value.style.display="block"}}catch(e){c.e(e)}finally{c.f()}}this.hideShowNoTeamMembers()}},{key:"hideShowNoTeamMembers",value:function(){var e={department:".amag-abbildungTeamsWrapper__departments",teammember:".amag-abbildungTeamMember",exception:"id#firmenkunden"},t=this.element.querySelector(".amag-abbildungTeams_NoMembers"),n=!1,r=!1;t.classList.add("d-none"),Tb(e.department).each((function(){"block"===Tb(this)[0].style.display&&(Tb(this).find(Tb(e.teammember)).each((function(){"block"===Tb(this)[0].style.display&&(n=!0)})),r=this.getAttribute("id")===e.exception)})),n||r||t.classList.remove("d-none")}},{key:"pageLoadFilter",value:function(){if(this.$ddlBrand.data("filter")){var e="";switch(this.$ddlBrand.data("brandfilter").trim()){case"VW":e="id#vw";break;case"Audi":e="id#audi";break;case"Škoda":e="id#skoda";break;case"VW Nutzfahrzeuge":case"VW Véhicules Utilitaires":case"VW Veicoli Commerciali":case"VW Commercial Vehicles":e="id#vwnf";break;case"SEAT":case"CUPRA":e="id#seat";break;case"Bentley":e="apps.amag-ch.components.content.teamContainer.brandBentley";break;default:console.log("no exist")}this.$ddlBrand.val(e).trigger("change"),this.$ddlBrand.parents(".select2-wrapper").addClass("state--labelTop"),this.hideShowBrandTeamMembers(e)}}}])}();
vendor: 19,480 bytes, lines 6-7
6Rb=Db([(0,At.d)({selector:".amag-team-container"}),Pb("design:paramtypes",[HTMLElement])],Rb)}()})(); 7"use strict";(self.webpackChunkamagch=self.webpackChunkamagch||[]).push([[60],{55891:function(t,n){var r={};n.default=function(t,n,i,e,s){var a=new Worker(r[n]||(r[n]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(t){var n=t.data,r=n.$e$;if(r){var i=new Error(r[0]);i.code=r[1],i.stack=r[2],s(i,null)}else s(null,n)},a.postMessage(i,e),a}},84419:function(t,n,r){var i=r(55891),e=Uint8Array,s=Uint16Array,a=Int32Array,o=new e([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),h=new e([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new e([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=function(t,n){for(var r=new s(31),i=0;i<31;++i)r[i]=n+=1<<t[i-1];var e=new a(r[30]);for(i=1;i<30;++i)for(var o=r[i];o<r[i+1];++o)e[o]=o-r[i]<<5|i;return{b:r,r:e}},c=f(o,2),l=c.b,p=c.r;l[28]=258,p[258]=28;for(var v=f(h,0),d=v.b,g=v.r,y=new s(32768),m=0;m<32768;++m){var b=(43690&m)>>1|(21845&m)<<1;b=(61680&(b=(52428&b)>>2|(13107&b)<<2))>>4|(3855&b)<<4,y[m]=((65280&b)>>8|(255&b)<<8)>>1}var w=function(t,n,r){for(var i=t.length,e=0,a=new s(n);e<i;++e)t[e]&&++a[t[e]-1];var o,h=new s(n);for(e=1;e<n;++e)h[e]=h[e-1]+a[e-1]<<1;if(r){o=new s(1<<n);var u=15-n;for(e=0;e<i;++e)if(t[e])for(var f=e<<4|t[e],c=n-t[e],l=h[t[e]-1]++<<c,p=l|(1<<c)-1;l<=p;++l)o[y[l]>>u]=f}else for(o=new s(i),e=0;e<i;++e)t[e]&&(o[e]=y[h[t[e]-1]++]>>15-t[e]);return o},k=new e(288);for(m=0;m<144;++m)k[m]=8;for(m=144;m<256;++m)k[m]=9;for(m=256;m<280;++m)k[m]=7;for(m=280;m<288;++m)k[m]=8;var z=new e(32);for(m=0;m<32;++m)z[m]=5;var M=w(k,9,0),x=w(k,9,1),S=w(z,5,0),C=w(z,5,1),A=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},T=function(t,n,r){var i=n/8|0;return(t[i]|t[i+1]<<8)>>(7&n)&r},q=function(t,n){var r=n/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&n)},D=function(t){return(t+7)/8|0},E=function(t,n,r){return(null==n||n<0)&&(n=0),(null==r||r>t.length)&&(r=t.length),new e(t.subarray(n,r))};var O=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],I=function(t,n,r){var i=new Error(n||O[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,I),!r)throw i;return i},U=function(t,n,r,i){var s=t.length,a=i?i.length:0;if(!s||n.f&&!n.l)return r||new e(0);var f=!r,c=f||2!=n.i,p=n.i;f&&(r=new e(3*s));var v=function(t){var n=r.length;if(t>n){var i=new e(Math.max(2*n,t));i.set(r),r=i}},g=n.f||0,y=n.p||0,m=n.b||0,b=n.l,k=n.d,z=n.m,M=n.n,S=8*s;do{if(!b){g=T(t,y,1);var O=T(t,y+1,3);if(y+=3,!O){var U=t[(Y=D(y)+4)-4]|t[Y-3]<<8,$=Y+U;if($>s){p&&I(0);break}c&&v(m+U),r.set(t.subarray(Y,$),m),n.b=m+=U,n.p=y=8*$,n.f=g;continue}if(1==O)b=x,k=C,z=9,M=5;else if(2==O){var F=T(t,y,31)+257,G=T(t,y+10,15)+4,L=F+T(t,y+5,31)+1;y+=14;for(var Z=new e(L),j=new e(19),R=0;R<G;++R)j[u[R]]=T(t,y+3*R,7);y+=3*G;var B=A(j),H=(1<<B)-1,W=w(j,B,1);for(R=0;R<L;){var Y,J=W[T(t,y,H)];if(y+=15&J,(Y=J>>4)<16)Z[R++]=Y;else{var K=0,N=0;for(16==Y?(N=3+T(t,y,3),y+=2,K=Z[R-1]):17==Y?(N=3+T(t,y,7),y+=3):18==Y&&(N=11+T(t,y,127),y+=7);N--;)Z[R++]=K}}var P=Z.subarray(0,F),Q=Z.subarray(F);z=A(P),M=A(Q),b=w(P,z,1),k=w(Q,M,1)}else I(1);if(y>S){p&&I(0);break}}c&&v(m+131072);for(var V=(1<<z)-1,X=(1<<M)-1,_=y;;_=y){var tt=(K=b[q(t,y)&V])>>4;if((y+=15&K)>S){p&&I(0);break}if(K||I(2),tt<256)r[m++]=tt;else{if(256==tt){_=y,b=null;break}var nt=tt-254;if(tt>264){var rt=o[R=tt-257];nt=T(t,y,(1<<rt)-1)+l[R],y+=rt}var it=k[q(t,y)&X],et=it>>4;it||I(3),y+=15⁢Q=d[et];if(et>3){rt=h[et];Q+=q(t,y)&(1<<rt)-1,y+=rt}if(y>S){p&&I(0);break}c&&v(m+131072);var st=m+nt;if(m<Q){var at=a-Q,ot=Math.min(Q,st);for(at+m<0&&I(3);m<ot;++m)r[m]=i[at+m]}for(;m<st;++m)r[m]=r[m-Q]}}n.l=b,n.p=_,n.b=m,n.f=g,b&&(g=1,n.m=z,n.d=k,n.n=M)}while(!g);return m!=r.length&&f?E(r,0,m):r.subarray(0,m)},$=function(t,n,r){r<<=7&n;var i=n/8|0;t[i]|=r,t[i+1]|=r>>8},F=function(t,n,r){r<<=7&n;var i=n/8|0;t[i]|=r,t[i+1]|=r>>8,t[i+2]|=r>>16},G=function(t,n){for(var r=[],i=0;i<t.length;++i)t[i]&&r.push({s:i,f:t[i]});var a=r.length,o=r.slice();if(!a)return{t:W,l:0};if(1==a){var h=new e(r[0].s+1);return h[r[0].s]=1,{t:h,l:1}}r.sort((function(t,n){return t.f-n.f})),r.push({s:-1,f:25001});var u=r[0],f=r[1],c=0,l=1,p=2;for(r[0]={s:-1,f:u.f+f.f,l:u,r:f};l!=a-1;)u=r[r[c].f<r[p].f?c++:p++],f=r[c!=l&&r[c].f<r[p].f?c++:p++],r[l++]={s:-1,f:u.f+f.f,l:u,r:f};var v=o[0].s;for(i=1;i<a;++i)o[i].s>v&&(v=o[i].s);var d=new s(v+1),g=L(r[l-1],d,0);if(g>n){i=0;var y=0,m=g-n,b=1<<m;for(o.sort((function(t,n){return d[n.s]-d[t.s]||t.f-n.f}));i<a;++i){var w=o[i].s;if(!(d[w]>n))break;y+=b-(1<<g-d[w]),d[w]=n}for(y>>=m;y>0;){var k=o[i].s;d[k]<n?y-=1<<n-d[k]++-1:++i}for(;i>=0&&y;--i){var z=o[i].s;d[z]==n&&(--d[z],++y)}g=n}return{t:new e(d),l:g}},L=function(t,n,r){return-1==t.s?Math.max(L(t.l,n,r+1),L(t.r,n,r+1)):n[t.s]=r},Z=function(t){for(var n=t.length;n&&!t[--n];);for(var r=new s(++n),i=0,e=t[0],a=1,o=function(t){r[i++]=t},h=1;h<=n;++h)if(t[h]==e&&h!=n)++a;else{if(!e&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(e),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(e);a=1,e=t[h]}return{c:r.subarray(0,i),n:n}},j=function(t,n){for(var r=0,i=0;i<n.length;++i)r+=t[i]*n[i];return r},R=function(t,n,r){var i=r.length,e=D(n+2);t[e]=255&i,t[e+1]=i>>8,t[e+2]=255^t[e],t[e+3]=255^t[e+1];for(var s=0;s<i;++s)t[e+s+4]=r[s];return 8*(e+4+i)},B=function(t,n,r,i,e,a,f,c,l,p,v){$(n,v++,r),++e[256];for(var d=G(e,15),g=d.t,y=d.l,m=G(a,15),b=m.t,x=m.l,C=Z(g),A=C.c,T=C.n,q=Z(b),D=q.c,E=q.n,O=new s(19),I=0;I<A.length;++I)++O[31&A[I]];for(I=0;I<D.length;++I)++O[31&D[I]];for(var U=G(O,7),L=U.t,B=U.l,H=19;H>4&&!L[u[H-1]];--H);var W,Y,J,K,N=p+5<<3,P=j(e,k)+j(a,z)+f,Q=j(e,g)+j(a,b)+f+14+3*H+j(O,L)+2*O[16]+3*O[17]+7*O[18];if(l>=0&&N<=P&&N<=Q)return R(n,v,t.subarray(l,l+p));if($(n,v,1+(Q<P)),v+=2,Q<P){W=w(g,y,0),Y=g,J=w(b,x,0),K=b;var V=w(L,B,0);$(n,v,T-257),$(n,v+5,E-1),$(n,v+10,H-4),v+=14;for(I=0;I<H;++I)$(n,v+3*I,L[u[I]]);v+=3*H;for(var X=[A,D],_=0;_<2;++_){var tt=X[_];for(I=0;I<tt.length;++I){var nt=31&tt[I];$(n,v,V[nt]),v+=L[nt],nt>15&&($(n,v,tt[I]>>5&127),v+=tt[I]>>12)}}}else W=M,Y=k,J=S,K=z;for(I=0;I<c;++I){var rt=i[I];if(rt>255){F(n,v,W[(nt=rt>>18&31)+257]),v+=Y[nt+257],nt>7&&($(n,v,rt>>23&31),v+=o[nt]);var it=31&rt;F(n,v,J[it]),v+=K[it],it>3&&(F(n,v,rt>>5&8191),v+=h[it])}else F(n,v,W[rt]),v+=Y[rt]}return F(n,v,W[256]),v+Y[256]},H=new a([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),W=new e(0),Y=function(t,n,r,i,u,f){var c=f.z||t.length,l=new e(i+c+5*(1+Math.ceil(c/7e3))+u),v=l.subarray(i,l.length-u),d=f.l,y=7&(f.r||0);if(n){y&&(v[0]=f.r>>3);for(var m=H[n-1],b=m>>13,w=8191&m,k=(1<<r)-1,z=f.p||new s(32768),M=f.h||new s(k+1),x=Math.ceil(r/3),S=2*x,C=function(n){return(t[n]^t[n+1]<<x^t[n+2]<<S)&k},A=new a(25e3),T=new s(288),q=new s(32),O=0,I=0,U=f.i||0,$=0,F=f.w||0,G=0;U+2<c;++U){var L=C(U),Z=32767&U,j=M[L];if(z[Z]=j,M[L]=Z,F<=U){var W=c-U;if((O>7e3||$>24576)&&(W>423||!d)){y=B(t,v,0,A,T,q,I,$,G,U-G,y),$=O=I=0,G=U;for(var Y=0;Y<286;++Y)T[Y]=0;for(Y=0;Y<30;++Y)q[Y]=0}var J=2,K=0,N=w,P=Z-j&32767;if(W>2&&L==C(U-P))for(var Q=Math.min(b,W)-1,V=Math.min(32767,U),X=Math.min(258,W);P<=V&&--N&&Z!=j;){if(t[U+J]==t[U+J-P]){for(var _=0;_<X&&t[U+_]==t[U+_-P];++_);if(_>J){if(J=_,K=P,_>Q)break;var tt=Math.min(P,_-2),nt=0;for(Y=0;Y<tt;++Y){var rt=U-P+Y&32767,it=rt-z[rt]&32767;it>nt&&(nt=it,j=rt)}}}P+=(Z=j)-(j=z[Z])&32767}if(K){A[$++]=268435456|p[J]<<18|g[K];var et=31&p[J],st=31&g[K];I+=o[et]+h[st],++T[257+et],++q[st],F=U+J,++O}else A[$++]=t[U],++T[t[U]]}}for(U=Math.max(U,F);U<c;++U)A[$++]=t[U],++T[t[U]];y=B(t,v,d,A,T,q,I,$,G,U-G,y),d||(f.r=7&y|v[y/8|0]<<3,y-=7,f.h=M,f.p=z,f.i=U,f.w=F)}else{for(U=f.w||0;U<c+d;U+=65535){var at=U+65535;at>=c&&(v[y/8|0]=d,at=c),y=R(v,y+1,t.subarray(U,at))}f.i=c}return E(l,0,i+D(y)+u)},J=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,i=9;--i;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),K=function(){var t=-1;return{p:function(n){for(var r=t,i=0;i<n.length;++i)r=J[255&r^n[i]]^r>>>8;t=r},d:function(){return~t}}},N=function(){var t=1,n=0;return{p:function(r){for(var i=t,e=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)e+=i+=r[a];i=(65535&i)+15*(i>>16),e=(65535&e)+15*(e>>16)}t=i,n=e},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},P=function(t,n,r,i,s){if(!s&&(s={l:1},n.dictionary)){var a=n.dictionary.subarray(-32768),o=new e(a.length+t.length);o.set(a),o.set(t,a.length),t=o,s.w=a.length}return Y(t,null==n.level?6:n.level,null==n.mem?s.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+n.mem,r,i,s)},Q=function(t,n){var r={};for(var i in t)r[i]=t[i];for(var i in n)r[i]=n[i];return r},V=function(t,n,r){for(var i=t(),e=t.toString(),s=e.slice(e.indexOf("[")+1,e.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a<i.length;++a){var o=i[a],h=s[a];if("function"==typeof o){n+=";"+h+"=";var u=o.toString();if(o.prototype)if(-1!=u.indexOf("[native code]")){var f=u.indexOf(" ",8)+1;n+=u.slice(f,u.indexOf("(",f))}else for(var c in n+=u,o.prototype)n+=";"+h+".prototype."+c+"="+o.prototype[c].toString();else n+=u}else r[h]=o}return n},X=[],_=function(t,n,r,e){if(!X[r]){for(var s="",a={},o=t.length-1,h=0;h<o;++h)s=V(t[h],s,a);X[r]={c:V(t[o],s,a),e:a}}var u=Q({},X[r].e);return(0,i.default)(X[r].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+n.toString()+"}",r,u,function(t){var n=[];for(var r in t)t[r].buffer&&n.push((t[r]=new t[r].constructor(t[r])).buffer);return n}(u),e)},tt=function(){return[e,s,a,o,h,u,l,d,x,C,y,O,w,A,T,q,D,E,I,U,qt,at,ot]},nt=function(){return[e,s,a,o,h,u,p,g,M,k,S,z,y,H,W,w,$,F,G,L,Z,j,R,B,D,E,Y,P,St,at]},rt=function(){return[dt,mt,vt,K,J]},it=function(){return[gt,yt]},et=function(){return[bt,vt,N]},st=function(){return[wt]},at=function(t){return postMessage(t,[t.buffer])},ot=function(t){return t&&{out:t.size&&new e(t.size),dictionary:t.dictionary}},ht=function(t,n,r,i,e,s){var a=_(r,i,e,(function(t,n){a.terminate(),s(t,n)}));return a.postMessage([t,n],n.consume?[t.buffer]:[]),function(){a.terminate()}},ut=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){n.data.length?(t.push(n.data[0],n.data[1]),postMessage([n.data[0].length])):t.flush()}},ft=function(t,n,r,i,e,s,a){var o,h=_(t,i,e,(function(t,r){t?(h.terminate(),n.ondata.call(n,t)):Array.isArray(r)?1==r.length?(n.queuedSize-=r[0],n.ondrain&&n.ondrain(r[0])):(r[1]&&h.terminate(),n.ondata.call(n,t,r[0],r[1])):a(r)}));h.postMessage(r),n.queuedSize=0,n.push=function(t,r){n.ondata||I(5),o&&n.ondata(I(4,0,1),null,!!r),n.queuedSize+=t.length,h.postMessage([t,o=r],[t.buffer])},n.terminate=function(){h.terminate()},s&&(n.flush=function(){h.postMessage([])})},ct=function(t,n){return t[n]|t[n+1]<<8},lt=function(t,n){return(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0},pt=function(t,n){return lt(t,n)+4294967296*lt(t,n+4)},vt=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},dt=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&vt(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}},gt=function(t){31==t[0]&&139==t[1]&&8==t[2]||I(6,"invalid gzip data");var n=t[3],r=10;4&n&&(r+=2+(t[10]|t[11]<<8));for(var i=(n>>3&1)+(n>>4&1);i>0;i-=!t[r++]);return r+(2&n)},yt=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0},mt=function(t){return 10+(t.filename?t.filename.length+1:0)},bt=function(t,n){var r=n.level,i=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=i<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var e=N();e.p(n.dictionary),vt(t,2,e.d())}},wt=function(t,n){return(8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31)&&I(6,"invalid zlib data"),(t[1]>>5&1)==+!n&&I(6,"invalid zlib data: "+(32&t[1]?"need":"unexpected")+" dictionary"),2+(t[1]>>3&4)};function kt(t,n){return"function"==typeof t&&(n=t,t={}),this.ondata=n,t}var zt=function(){function t(t,n){if("function"==typeof t&&(n=t,t={}),this.ondata=n,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new e(98304),this.o.dictionary){var r=this.o.dictionary.subarray(-32768);this.b.set(r,32768-r.length),this.s.i=32768-r.length}}return t.prototype.p=function(t,n){this.ondata(P(t,this.o,0,0,this.s),n)},t.prototype.push=function(t,n){this.ondata||I(5),this.s.l&&I(4);var r=t.length+this.s.z;if(r>this.b.length){if(r>2*this.b.length-32768){var i=new e(-32768&r);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(t.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(s),32768),this.s.z=t.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=1&n,(this.s.z>this.s.w+8191||n)&&(this.p(this.b,n||!1),this.s.w=this.s.i,this.s.i-=2)},t.prototype.flush=function(){this.ondata||I(5),this.s.l&&I(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},t}();var Mt=function(){return function(t,n){ft([nt,function(){return[ut,zt]}],this,kt.call(this,t,n),(function(t){var n=new zt(t.data);onmessage=ut(n)}),6,1)}}();function xt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),ht(t,n,[nt],(function(t){return at(St(t.data[0],t.data[1]))}),0,r)}function St(t,n){return P(t,n||{},0,0)}var Ct=function(){function t(t,n){"function"==typeof t&&(n=t,t={}),this.ondata=n;var r=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:r?r.length:0},this.o=new e(32768),this.p=new e(0),r&&this.o.set(r)}return t.prototype.e=function(t){if(this.ondata||I(5),this.d&&I(4),this.p.length){if(t.length){var n=new e(this.p.length+t.length);n.set(this.p),n.set(t,this.p.length),this.p=n}}else this.p=t},t.prototype.c=function(t){this.s.i=+(this.d=t||!1);var n=this.s.b,r=U(this.p,this.s,this.o);this.ondata(E(r,n,this.s.b),this.d),this.o=E(r,this.s.b-32768),this.s.b=this.o.length,this.p=E(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t}();var At=function(){return function(t,n){ft([tt,function(){return[ut,Ct]}],this,kt.call(this,t,n),(function(t){var n=new Ct(t.data);onmessage=ut(n)}),7,0)}}();function Tt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),ht(t,n,[tt],(function(t){return at(qt(t.data[0],ot(t.data[1])))}),1,r)}function qt(t,n){return U(t,{i:2},n&&n.out,n&&n.dictionary)}var Dt=function(){function t(t,n){this.c=K(),this.l=0,this.v=1,zt.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),this.l+=t.length,zt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=P(t,this.o,this.v&&mt(this.o),n&&8,this.s);this.v&&(dt(r,this.o),this.v=0),n&&(vt(r,r.length-8,this.c.d()),vt(r,r.length-4,this.l)),this.ondata(r,n)},t.prototype.flush=function(){zt.prototype.flush.call(this)},t}();var Et=function(){return function(t,n){ft([nt,rt,function(){return[ut,zt,Dt]}],this,kt.call(this,t,n),(function(t){var n=new Dt(t.data);onmessage=ut(n)}),8,1)}}();function Ot(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),ht(t,n,[nt,rt,function(){return[It]}],(function(t){return at(It(t.data[0],t.data[1]))}),2,r)}function It(t,n){n||(n={});var r=K(),i=t.length;r.p(t);var e=P(t,n,mt(n),8),s=e.length;return dt(e,n),vt(e,s-8,r.d()),vt(e,s-4,i),e}n.gzipSync=It;var Ut=function(){function t(t,n){this.v=1,this.r=0,Ct.call(this,t,n)}return t.prototype.push=function(t,n){if(Ct.prototype.e.call(this,t),this.r+=t.length,this.v){var r=this.p.subarray(this.v-1),i=r.length>3?gt(r):4;if(i>r.length){if(!n)return}else this.v>1&&this.onmember&&this.onmember(this.r-r.length);this.p=r.subarray(i),this.v=0}Ct.prototype.c.call(this,n),!this.s.f||this.s.l||n||(this.v=D(this.s.p)+9,this.s={i:0},this.o=new e(0),this.push(new e(0),n))},t}();var $t=function(){return function(t,n){var r=this;ft([tt,it,function(){return[ut,Ct,Ut]}],this,kt.call(this,t,n),(function(t){var n=new Ut(t.data);n.onmember=function(t){return postMessage(t)},onmessage=ut(n)}),9,0,(function(t){return r.onmember&&r.onmember(t)}))}}();function Ft(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),ht(t,n,[tt,it,function(){return[Gt]}],(function(t){return at(Gt(t.data[0],t.data[1]))}),3,r)}function Gt(t,n){var r=gt(t);return r+8>t.length&&I(6,"invalid gzip data"),U(t.subarray(r,-8),{i:2},n&&n.out||new e(yt(t)),n&&n.dictionary)}var Lt=function(){function t(t,n){this.c=N(),this.v=1,zt.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),zt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=P(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(bt(r,this.o),this.v=0),n&&vt(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){zt.prototype.flush.call(this)},t}();function Zt(t,n){n||(n={});var r=N();r.p(t);var i=P(t,n,n.dictionary?6:2,4);return bt(i,n),vt(i,i.length-4,r.d()),i}var jt=function(){function t(t,n){Ct.call(this,t,n),this.v=t&&t.dictionary?2:1}return t.prototype.push=function(t,n){if(Ct.prototype.e.call(this,t),this.v){if(this.p.length<6&&!n)return;this.p=this.p.subarray(wt(this.p,this.v-1)),this.v=0}n&&(this.p.length<4&&I(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),Ct.prototype.c.call(this,n)},t}();var Rt=function(){return function(t,n){ft([tt,st,function(){return[ut,Ct,jt]}],this,kt.call(this,t,n),(function(t){var n=new jt(t.data);onmessage=ut(n)}),11,0)}}();function Bt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),ht(t,n,[tt,st,function(){return[Ht]}],(function(t){return at(Ht(t.data[0],ot(t.data[1])))}),5,r)}function Ht(t,n){return U(t.subarray(wt(t,n&&n.dictionary),-4),{i:2},n&&n.out,n&&n.dictionary)}var Wt=function(){function t(t,n){this.o=kt.call(this,t,n)||{},this.G=Ut,this.I=Ct,this.Z=jt}return t.prototype.i=function(){var t=this;this.s.ondata=function(n,r){t.ondata(n,r)}},t.prototype.push=function(t,n){if(this.ondata||I(5),this.s)this.s.push(t,n);else{if(this.p&&this.p.length){var r=new e(this.p.length+t.length);r.set(this.p),r.set(t,this.p.length)}else this.p=t;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,n),this.p=null)}},t}();var Yt=function(){function t(t,n){Wt.call(this,t,n),this.queuedSize=0,this.G=$t,this.I=At,this.Z=Rt}return t.prototype.i=function(){var t=this;this.s.ondata=function(n,r,i){t.ondata(n,r,i)},this.s.ondrain=function(n){t.queuedSize-=n,t.ondrain&&t.ondrain(n)}},t.prototype.push=function(t,n){this.queuedSize+=t.length,Wt.prototype.push.call(this,t,n)},t}();var Jt=function(t,n,r,i){for(var s in t){var a=t[s],o=n+s,h=i;Array.isArray(a)&&(h=Q(i,a[1]),a=a[0]),a instanceof e?r[o]=[a,h]:(r[o+="/"]=[new e(0),h],Jt(a,o,r,i))}},Kt="undefined"!=typeof TextEncoder&&new TextEncoder,Nt="undefined"!=typeof TextDecoder&&new TextDecoder,Pt=0;try{Nt.decode(W,{stream:!0}),Pt=1}catch(t){}var Qt=function(t){for(var n="",r=0;;){var i=t[r++],e=(i>127)+(i>223)+(i>239);if(r+e>t.length)return{s:n,r:E(t,r-1)};e?3==e?(i=((15&i)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i)):n+=1&e?String.fromCharCode((31&i)<<6|63&t[r++]):String.fromCharCode((1
75&i)<<12|(63&t[r++])<<6|63&t[r++]):n+=String.fromCharCode(i)}},Vt=function(){function t(t){this.ondata=t,Pt?this.t=new TextDecoder:this.p=W}return t.prototype.push=function(t,n){if(this.ondata||I(5),n=!!n,this.t)return this.ondata(this.t.decode(t,{stream:!0}),n),void(n&&(this.t.decode().length&&I(8),this.t=null));this.p||I(4);var r=new e(this.p.length+t.length);r.set(this.p),r.set(t,this.p.length);var i=Qt(r),s=i.s,a=i.r;n?(a.length&&I(8),this.p=null):this.p=a,this.ondata(s,n)},t}();function Xt(t,n){if(n){for(var r=new e(t.length),i=0;i<t.length;++i)r[i]=t.charCodeAt(i);return r}if(Kt)return Kt.encode(t);var s=t.length,a=new e(t.length+(t.length>>1)),o=0,h=function(t){a[o++]=t};for(i=0;i<s;++i){if(o+5>a.length){var u=new e(o+8+(s-i<<1));u.set(a),a=u}var f=t.charCodeAt(i);f<128||n?h(f):f<2048?(h(192|f>>6),h(128|63&f)):f>55295&&f<57344?(h(240|(f=65536+(1047552&f)|1023&t.charCodeAt(++i))>>18),h(128|f>>12&63),h(128|f>>6&63),h(128|63&f)):(h(224|f>>12),h(128|f>>6&63),h(128|63&f))}return E(a,0,o)}function _t(t,n){if(n){for(var r="",i=0;i<t.length;i+=16384)r+=String.fromCharCode.apply(null,t.subarray(i,i+16384));return r}if(Nt)return Nt.decode(t);var e=Qt(t),s=e.s;return(r=e.r).length&&I(8),s}n.strToU8=Xt;var tn=function(t){return 1==t?3:t<6?2:9==t?1:0},nn=function(t,n){return n+30+ct(t,n+26)+ct(t,n+28)},rn=function(t,n,r){var i=ct(t,n+28),e=_t(t.subarray(n+46,n+46+i),!(2048&ct(t,n+8))),s=n+46+i,a=lt(t,n+20),o=r&&4294967295==a?en(t,s):[a,lt(t,n+24),lt(t,n+42)],h=o[0],u=o[1],f=o[2];return[ct(t,n+10),h,u,e,s+ct(t,n+30)+ct(t,n+32),f]},en=function(t,n){for(;1!=ct(t,n);n+=4+ct(t,n+2));return[pt(t,n+12),pt(t,n+4),pt(t,n+20)]},sn=function(t){var n=0;if(t)for(var r in t){var i=t[r].length;i>65535&&I(9),n+=i+4}return n},an=function(t,n,r,i,e,s,a,o){var h=i.length,u=r.extra,f=o&&o.length,c=sn(u);vt(t,n,null!=a?33639248:67324752),n+=4,null!=a&&(t[n++]=20,t[n++]=r.os),t[n]=20,n+=2,t[n++]=r.flag<<1|(s<0&&8),t[n++]=e&&8,t[n++]=255&r.compression,t[n++]=r.compression>>8;var l=new Date(null==r.mtime?Date.now():r.mtime),p=l.getFullYear()-1980;if((p<0||p>119)&&I(10),vt(t,n,p<<25|l.getMonth()+1<<21|l.getDate()<<16|l.getHours()<<11|l.getMinutes()<<5|l.getSeconds()>>1),n+=4,-1!=s&&(vt(t,n,r.crc),vt(t,n+4,s<0?-s-2:s),vt(t,n+8,r.size)),vt(t,n+12,h),vt(t,n+14,c),n+=16,null!=a&&(vt(t,n,f),vt(t,n+6,r.attrs),vt(t,n+10,a),n+=14),t.set(i,n),n+=h,c)for(var v in u){var d=u[v],g=d.length;vt(t,n,+v),vt(t,n+2,g),t.set(d,n+4),n+=4+g}return f&&(t.set(o,n),n+=f),n},on=function(t,n,r,i,e){vt(t,n,101010256),vt(t,n+8,r),vt(t,n+10,r),vt(t,n+12,i),vt(t,n+16,e)},hn=function(){function t(t){this.filename=t,this.c=K(),this.size=0,this.compression=0}return t.prototype.process=function(t,n){this.ondata(null,t,n)},t.prototype.push=function(t,n){this.ondata||I(5),this.c.p(t),this.size+=t.length,n&&(this.crc=this.c.d()),this.process(t,n||!1)},t}();var un=function(){function t(t,n){var r=this;n||(n={}),hn.call(this,t),this.d=new Mt(n,(function(t,n,i){r.ondata(t,n,i)})),this.compression=8,this.flag=tn(n.level),this.terminate=this.d.terminate}return t.prototype.process=function(t,n){this.d.push(t,n)},t.prototype.push=function(t,n){hn.prototype.push.call(this,t,n)},t}();var fn=function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var n=this;if(this.ondata||I(5),2&this.d)this.ondata(I(4+8*(1&this.d),0,1),null,!1);else{var r=Xt(t.filename),i=r.length,s=t.comment,a=s&&Xt(s),o=i!=t.filename.length||a&&s.length!=a.length,h=i+sn(t.extra)+30;i>65535&&this.ondata(I(11,0,1),null,!1);var u=new e(h);an(u,0,t,r,o,-1);var f=[u],c=function(){for(var t=0,r=f;t<r.length;t++){var i=r[t];n.ondata(null,i,!1)}f=[]},l=this.d;this.d=0;var p=this.u.length,v=Q(t,{f:r,u:o,o:a,t:function(){t.terminate&&t.terminate()},r:function(){if(c(),l){var t=n.u[p+1];t?t.r():n.d=1}l=1}}),d=0;t.ondata=function(r,i,s){if(r)n.ondata(r,i,s),n.terminate();else if(d+=i.length,f.push(i),s){var a=new e(16);vt(a,0,134695760),vt(a,4,t.crc),vt(a,8,d),vt(a,12,t.size),f.push(a),v.c=d,v.b=h+d+16,v.crc=t.crc,v.size=t.size,l&&v.r(),l=1}else l&&c()},this.u.push(v)}},t.prototype.end=function(){var t=this;2&this.d?this.ondata(I(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3)},t.prototype.e=function(){for(var t=0,n=0,r=0,i=0,s=this.u;i<s.length;i++){r+=46+(u=s[i]).f.length+sn(u.extra)+(u.o?u.o.length:0)}for(var a=new e(r+22),o=0,h=this.u;o<h.length;o++){var u=h[o];an(a,t,u,u.f,u.u,-u.c-2,n,u.o),t+=46+u.f.length+sn(u.extra)+(u.o?u.o.length:0),n+=u.b}on(a,t,this.u.length,r,n),this.ondata(null,a,!0),this.d=2},t.prototype.terminate=function(){for(var t=0,n=this.u;t<n.length;t++){n[t].t()}this.d=2},t}();var cn=function(){function t(){}return t.prototype.push=function(t,n){this.ondata(null,t,n)},t.compression=0,t}();var ln=function(){function t(t,n){var r=this;n<32e4?this.i=new Ct((function(t,n){r.ondata(null,t,n)})):(this.i=new At((function(t,n,i){r.ondata(t,n,i)})),this.terminate=this.i.terminate)}return t.prototype.push=function(t,n){this.i.terminate&&(t=E(t,0)),this.i.push(t,n)},t.compression=8,t}();var pn=function(){function t(t){this.onfile=t,this.k=[],this.o={0:cn},this.p=W}return t.prototype.push=function(t,n){var r=this;if(this.onfile||I(5),this.p||I(4),this.c>0){var i=Math.min(this.c,t.length),s=t.subarray(0,i);if(this.c-=i,this.d?this.d.push(s,!this.c):this.k[0].push(s),(t=t.subarray(i)).length)return this.push(t,n)}else{var a=0,o=0,h=void 0,u=void 0;this.p.length?t.length?((u=new e(this.p.length+t.length)).set(this.p),u.set(t,this.p.length)):u=this.p:u=t;for(var f=u.length,c=this.c,l=c&&this.d,p=function(){var t,n=lt(u,o);if(67324752==n){a=1,h=o,v.d=null,v.c=0;var i=ct(u,o+6),e=ct(u,o+8),s=2048&i,l=8&i,p=ct(u,o+26),d=ct(u,o+28);if(f>o+30+p+d){var g=[];v.k.unshift(g),a=2;var y,m=lt(u,o+18),b=lt(u,o+22),w=_t(u.subarray(o+30,o+=30+p),!s);4294967295==m?(t=l?[-2]:en(u,o),m=t[0],b=t[1]):l&&(m=-1),o+=d,v.c=m;var k={name:w,compression:e,start:function(){if(k.ondata||I(5),m){var t=r.o[e];t||k.ondata(I(14,"unknown compression type "+e,1),null,!1),(y=m<0?new t(w):new t(w,m,b)).ondata=function(t,n,r){k.ondata(t,n,r)};for(var n=0,i=g;n<i.length;n++){var s=i[n];y.push(s,!1)}r.k[0]==g&&r.c?r.d=y:y.push(W,!0)}else k.ondata(null,W,!0)},terminate:function(){y&&y.terminate&&y.terminate()}};m>=0&&(k.size=m,k.originalSize=b),v.onfile(k)}return"break"}if(c){if(134695760==n)return h=o+=12+(-2==c&&8),a=3,v.c=0,"break";if(33639248==n)return h=o-=4,a=3,v.c=0,"break"}},v=this;o<f-4;++o){if("break"===p())break}if(this.p=W,c<0){var d=a?u.subarray(0,h-12-(-2==c&&8)-(134695760==lt(u,h-16)&&4)):u.subarray(0,o);l?l.push(d,!!a):this.k[+(2==a)].push(d)}if(2&a)return this.push(u.subarray(o),n);this.p=u.subarray(o)}n&&(this.c&&I(13),this.p=null)},t.prototype.register=function(t){this.o[t.compression]=t},t}();var vn="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(t){t()}}}]); 8"use strict";(self.webpackChunkamagch=self.webpackChunkamagch||[]).push([[368],{52925:function(e,t,r){r.d(t,{M:function(){return i}});class i{constructor(e,t){if(!e.onEnd)throw new Error("onEnd handler is required");if(!t)throw new Error("ms duration is required");this.onEnd=e.onEnd,this.initialMs=t,this.startTimestamp=Date.now(),this.timer=this.create(this.onEnd,t)}create(e,t){return this.timer&&this.clear(),setTimeout((()=>e?e():this.onEnd()),t||this.initialMs)}clear(){clearTimeout(this.timer),this.timer=null}end(){this.clear(),this.onEnd()}isValid(){return this.initialMs-(Date.now()-this.startTimestamp)>0}}},72293:function(e,t,r){function i(e){return!!e&&e.self!==e.top}r.d(t,{v:function(){return i}})},77218:function(e,t,r){function i(e){return e?.constructor==={}.constructor}r.d(t,{a:function(){return i}})},82209:function(e,t,r){function i(e,t,r="string",n=[]){return e&&"object"==typeof e?(Object.keys(e).forEach((s=>{"object"==typeof e[s]?i(e[s],t,r,n):typeof e[s]!==r||n.includes(s)||(e[s]=t(e[s]))})),e):e}r.d(t,{G:function(){return i}})},90872:function(e,t,r){r.r(t),r.d(t,{Aggregate:function(){return b}});var i=r(21690),n=r(18897),s=r(17023),a=r(58740),o=r(75901),c=r(49674),u=r(31609),h=r(72024),l=r(82209);function p(e,t){const{id:r,localName:i}=e;return[i,r?"#".concat(r):"",t?">".concat(t):""].join("")}function d(e){return"tagName"===e&&(e="tag"),"className"===e&&(e="class"),"nearest".concat(e.charAt(0).toUpperCase()+e.slice(1))}class m{constructor(e,t){this.event=e,this.count=1,this.originMs=Math.floor(e.timeStamp),this.relativeMs=[0],this.selectorPath=t.path,this.rageClick=void 0,this.nearestTargetFields=t.nearestFields,this.currentUrl=(0,n.L)(""+location),this.deadClick=!1,this.errorClick=!1}aggregate(e){this.count++,this.relativeMs.push(Math.floor(e.timeStamp-this.originMs)),this.isRageClick()&&(this.rageClick=!0)}isRageClick(){const e=this.relativeMs.length;return"click"===this.event.type&&e>=s.nf&&this.relativeMs[e-1]-this.relativeMs[e-s.nf]<s.mq}}var g=r(52925),f=r(21966);class v{#e=void 0;#t="";#r=void 0;#i=void 0;#n=void 0;constructor(){(0,f.dV)().o.MO&&(this.#i=new MutationObserver(this.isLiveClick.bind(this)))}get aggregationEvent(){const e=this.#e;return this.#t="",this.#e=void 0,e}process(e,t){if(!e)return;const r=((e,t=[])=>{const r={path:void 0,nearestFields:{},hasButton:!1,hasLink:!1};if(!e)return r;if(e===window)return r.path="window",r;if(e===document)return r.path="document",r;let i="";const n=function(e){try{let t=1;const{tagName:r}=e;for(;e.previousElementSibling;)e.previousElementSibling.tagName===r&&t++,e=e.previousElementSibling;return t}catch(e){}}(e);try{for(;e?.tagName;){const n=e.tagName.toLowerCase();r.hasLink||="a"===n,r.hasButton||="button"===n||"input"===n&&"button"===e.type.toLowerCase(),t.forEach((t=>{r.nearestFields[d(t)]||=e[t]?.baseVal||e[t]})),i=p(e,i),e=e.parentNode}}catch(e){}return r.path=i?n?"".concat(i,":nth-of-type(").concat(n,")"):i:void 0,r})(s.qN.includes(e.type)?window:e.target,t),i=function(e,t){let r=e.type;"scrollend"!==e.type&&(r+="-"+t);return r}(e,r.path);if(!i||i!==this.#t){const t=this.#e;return this.#s(),this.#a(),this.#t=i,this.#e=new m(e,r),"click"===e.type&&(r.hasButton||r.hasLink)&&(this.#o(this.#e),this.#c()),t}this.#e.aggregate(e)}markAsErrorClick(){this.#e&&this.#n&&(this.#e.errorClick=!0,this.#a())}#c(){this.#n=new g.M({onEnd:()=>{this.#a()}},s.Xh)}#a(){this.#n?.clear(),this.#n=void 0}#o(e){!this.#u()&&this.#i&&(this.#i.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),this.#r=new g.M({onEnd:()=>{e.deadClick=!0,this.#s()}},s.Xh))}#s(){this.#i?.disconnect(),this.#r?.clear(),this.#r=void 0}#u(){return void 0!==this.#r}isLiveClick(){this.#u()&&this.#s()}}var y=r(72293),k=r(77218),C=r(2822);class b extends o.r{static featureName=s.TZ;#h;constructor(e){super(e,s.TZ),this.referrerUrl=a.RI&&document.referrer?(0,n.L)(document.referrer):void 0,this.waitForFlags(["ins"]).then((([t])=>
8{if(!t)return this.blocked=!0,void this.deregisterDrain();this.#l(),(0,h.i)("api-recordCustomEvent",((e,t,r,i)=>{if(s.kd.includes(t))return(0,c.R)(46);this.addEvent({eventType:t,timestamp:this.#p(e),...r},i)}),this.featureName,this.ee),e.init.page_action.enabled&&(0,h.i)("api-addPageAction",((e,t,r,i)=>{this.addEvent({...r,eventType:"PageAction",timestamp:this.#p(e),timeSinceLoad:e/1e3,actionName:t,referrerUrl:this.referrerUrl,...a.RI&&{browserWidth:window.document.documentElement?.clientWidth,browserHeight:window.document.documentElement?.clientHeight}},i)}),this.featureName,this.ee);let r=()=>{};a.RI&&e.init.user_actions.enabled&&(this.#h=new v,this.harvestOpts.beforeUnload=()=>r?.(this.#h.aggregationEvent),r=e=>{try{if(e?.event){const{target:t,timeStamp:r,type:i}=e.event,n={eventType:"UserAction",timestamp:this.#p(r),action:i,actionCount:e.count,actionDuration:e.relativeMs[e.relativeMs.length-1],actionMs:e.relativeMs,rageClick:e.rageClick,target:e.selectorPath,currentUrl:e.currentUrl,...(0,y.v)(window)&&{iframe:!0},...this.agentRef.init.user_actions.elementAttributes.reduce(((r,i)=>{var n;return n=i,"window"!==e.selectorPath&&"document"!==e.selectorPath&&t instanceof HTMLElement&&t?.[n]&&(r[s(i)]=String(t[i]).trim().slice(0,128)),r}),{}),...e.nearestTargetFields,...e.deadClick&&{deadClick:!0},...e.errorClick&&{errorClick:!0}};function s(e){return"tagName"===e&&(e="tag"),"className"===e&&(e="class"),"target".concat(e.charAt(0).toUpperCase()+e.slice(1))}this.addEvent(n),this.#d(n)}}catch(a){}},(0,h.i)("ua",(e=>{r(this.#h.process(e,this.agentRef.init.user_actions.elementAttributes))}),this.featureName,this.ee),(0,h.i)("navChange",(()=>{this.#h.isLiveClick()}),this.featureName,this.ee),(0,h.i)("uaXhr",(()=>{this.#h.isLiveClick()}),this.featureName,this.ee),(0,h.i)("uaErr",(()=>this.#h.markAsErrorClick()),this.featureName,this.ee));const o=[...e.init.performance.capture_marks?["mark"]:[],...e.init.performance.capture_measures?["measure"]:[]];if(o.length)try{o.forEach((t=>{if(PerformanceObserver.supportedEntryTypes.includes(t)){new PerformanceObserver((r=>{r.getEntries().forEach((r=>{try{this.reportSupportabilityMetric("Generic/Performance/"+t+"/Seen");const i=e.init.performance.capture_detail?n(r.detail):{};function n(e){return null==e?{}:(0,k.a)(e)?function e(t,r="entryDetail"){let i={};return null==t||Object.keys(t).forEach((n=>{let s=r+"."+n;(0,k.a)(t[n])?Object.assign(i,e(t[n],s)):null!==t[n]&&void 0!==t[n]&&(i[s]=t[n])})),i}(e):{entryDetail:e}}this.addEvent({...i,eventType:"BrowserPerformance",timestamp:this.#p(r.startTime),entryName:r.name,entryDuration:r.duration,entryType:t})}catch(s){}}))})).observe({buffered:!0,type:t})}}))}catch(e){}a.RI&&e.init.performance.resources.enabled&&(0,h.i)("browserPerformance.resource",(t=>{try{const{name:r,duration:i,...s}=t.toJSON();let o=!1;try{const t=new URL(r).hostname,i=t.includes("newrelic.com")||t.includes("nr-data.net")||t.includes("nr-local.net");if(this.agentRef.init.performance.resources.ignore_newrelic&&i)return;if(this.agentRef.init.performance.resources.asset_types.length&&!this.agentRef.init.performance.resources.asset_types.includes(s.initiatorType))return;o=t===a.gm?.location.hostname||e.init.performance.resources.first_party_domains.includes(t),o&&this.reportSupportabilityMetric("Generic/Performance/FirstPartyResource/Seen"),i&&this.reportSupportabilityMetric("Generic/Performance/NrResource/Seen")}catch(e){}this.reportSupportabilityMetric("Generic/Performance/Resource/Seen");const c={...s,eventType:"BrowserPerformance",timestamp:this.#p(s.startTime),entryName:(0,n.L)(r),entryDuration:i,firstParty:o};this.addEvent(c)}catch(e){this.ee.emit("internal-error",[e,"GenericEvents-Resource"])}}),this.featureName,this.ee),(0,h.i)("api-measure",((e,t,r)=>{const{start:i,duration:n,customAttributes:s}=e,a={...s,eventType:"BrowserPerformance",timestamp:this.#p(i),entryName:t,entryDuration:n,entryType:"measure"};this.addEvent(a,r)}),this.featureName,this.ee),e.init.feature_flags.includes("websockets")&&(0,h.i)("ws-complete",(e=>{const t={...e,eventType:"WebSocket",timestamp:this.#p(e.timestamp),openedAt:this.#p(e.openedAt),closedAt:this.#p(e.closedAt)};this.reportSupportabilityMetric("WebSocket/Completed/Seen"),this.reportSupportabilityMetric("WebSocket/Completed/Bytes",(0,i.A)(t).length),this.addEvent(t)}),this.featureName,this.ee),e.init.feature_flags.includes("no_spv")||(0,h.i)("spv",(e=>{this.addEvent({eventType:"SecurityPolicyViolation",timestamp:this.#p(e.timeStamp),blockedUri:e.blockedURI,documentUri:e.documentURI,effectiveDirective:e.effectiveDirective,originalPolicy:e.originalPolicy,sourceFile:e.sourceFile,statusCode:e.statusCode,lineNumber:e.lineNumber,columnNumber:e.columnNumber,dis
8position:e.disposition,sample:e.sample,referrer:e.referrer})}),this.featureName,this.ee),this.drain()}))}addEvent(e={},t){if(!e||!Object.keys(e).length)return;if(!e.eventType)return void(0,c.R)(44);for(let t in e){let r=e[t];e[t]=r&&"object"==typeof r?(0,i.A)(r):r}const r={timestamp:this.#p((0,u.t)()),pageUrl:(0,n.L)(""+a.m),currentUrl:(0,n.L)(""+location),...(0,C.Ux)(t,this)},s={...this.agentRef.info.jsAttributes||{},...r,...e};this.events.add(s)}serializer(e){return(0,l.G)({ins:e},this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}queryStringsBuilder(){return{ua:this.agentRef.info.userAttributes,at:this.agentRef.info.atts}}#p(e){return Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp(e))}#l(){const e="Config/Performance/";this.agentRef.init.performance.capture_marks&&this.reportSupportabilityMetric(e+"CaptureMarks/Enabled"),this.agentRef.init.performance.capture_measures&&this.reportSupportabilityMetric(e+"CaptureMeasures/Enabled"),this.agentRef.init.performance.resources.enabled&&this.reportSupportabilityMetric(e+"Resources/Enabled"),0!==this.agentRef.init.performance.resources.asset_types?.length&&this.reportSupportabilityMetric(e+"Resources/AssetTypes/Changed"),0!==this.agentRef.init.performance.resources.first_party_domains?.length&&this.reportSupportabilityMetric(e+"Resources/FirstPartyDomains/Changed"),!1===this.agentRef.init.performance.resources.ignore_newrelic&&this.reportSupportabilityMetric(e+"Resources/IgnoreNewrelic/Changed")}#d(e){e.rageClick&&this.reportSupportabilityMetric("UserAction/RageClick/Seen"),e.deadClick&&this.reportSupportabilityMetric("UserAction/DeadClick/Seen"),e.errorClick&&this.reportSupportabilityMetric("UserAction/ErrorClick/Seen")}}}}]); 9"use strict";(self.webpackChunkamagch=self.webpackChunkamagch||[]).push([[297],{18780:function(e,r,t){t.r(r),t.d(r,{Aggregate:function(){return I}});const s=/([a-z0-9]+)$/i;function n(e){if(!e)return;const r=e.match(s);return r?r[1]:void 0}var a=/^\n+|\n+$/g;function i(e){return function(e){var r;if(e.length>100){var t=e.length-100;r=e.slice(0,50).join("\n"),r+="\n< ...truncated "+t+" lines... >\n",r+=e.slice(-50).join("\n")}else r=e.join("\n");return r}(e).replace(a,"")}var o=t(58740),c=t(18897);function u(e){if("string"!=typeof e)return"";const r=(0,c.L)(e);return r===(0,c.L)(o.m)?"<inline>":r}var l=t(72196),h=!1;function f(e){var r=null;try{if(r=function(e){if(!e.stack)return null;var r=e.stack.split("\n").reduce(m,{frames:[],stackLines:[],wrapperSeen:!1});return r.frames.length?{mode:"stack",name:e.name||g(e),message:e.message,stackString:i(r.stackLines),frames:r.frames}:null}(e),r)return r}catch(e){h}try{if(r=function(e){if(!("line"in e))return null;var r=e.name||g(e);if(!e.sourceURL)return{mode:"sourceline",name:r,message:e.message,stackString:r+": "+e.message+"\n in evaluated code",frames:[{func:"evaluated code"}]};var t=u(e.sourceURL),s=r+": "+e.message+"\n at "+t;e.line&&(s+=":"+e.line,e.column&&(s+=":"+e.column));return{mode:"sourceline",name:r,message:e.message,stackString:s,frames:[{url:t,line:e.line,column:e.column}]}}(e),r)return r}catch(e){h}try{if(r=function(e){var r=e.name||g(e);return r?{mode:"nameonly",name:r,message:e.message,stackString:r+": "+e.message,frames:[]}:null}(e),r)return r}catch(e){h}return{mode:"failed",stackString:"",frames:[]}}function m(e,r){let t=function(e){var r=e.match(l.cn);r||(r=e.match(l.hB));if(r)return{url:r[2],func:"Anonymous function"!==r[1]&&"global code"!==r[1]&&r[1]||null,line:+r[3],column:r[4]?+r[4]:null};if(e.match(l.fL)||e.match(l.Nc)||"anonymous"===e)return{func:"evaluated code"}}(r);if(!t)return e.stackLines.push(r),e;var s;if((s=t.func)&&s.indexOf("nrWrapper")>=0&&(e.wrapperSeen=!0),!e.wrapperSeen){let s=u(t.url);s!==t.url&&(r=r.replace(t.url,s),t.url=s),e.stackLines.push(r),e.frames.push(t)}return e}function g(e){var r=l.h3.exec(String(e.constructor));return r&&r.length>1?r[1]:"unknown"}function p(e){var r=0;if(!e||!e.length)return r;for(var t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return r}var d=t(72024),v=t(21690),k=t(34842),w=t(13884),b=t(19470),y=t(75901),S=t(31609),R=t(82209);const E="Rrweb",A="Security-Policy";var j=t(2822);
9class _ extends Error{}class I extends y.r{static featureName=w.T;constructor(e){super(e,w.T),this.harvestOpts.aggregatorTypes=["err","ierr","xhr"],this.stackReported={},this.observedAt={},this.pageviewReported={},this.errorOnPage=!1,(0,d.i)("err",this.processError.bind(this),this.featureName,this.ee),(0,d.i)("ierr",this.processError.bind(this),this.featureName,this.ee),(0,d.i)("returnJserror",((e,r)=>this.#e(e,r)),this.featureName,this.ee),this.waitForFlags(["err"]).then((([e])=>{e?this.drain():(this.blocked=!0,this.deregisterDrain())}))}serializer(e){return(0,R.G)(e,this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}queryStringsBuilder(e){const r={},t=(0,v.A)(this.agentRef.runtime.releaseIds);return"{}"!==t&&(r.ri=t),e?.err?.length&&(this.errorOnPage||(r.pve="1",this.errorOnPage=!0),this.agentRef.features?.[b.K7.sessionReplay]?.featAggregate?.replayIsActive()||e.err.forEach((e=>delete e.params.hasReplay))),r}processError(e,r,t,s,n,a,i){if(e){r=r||(0,S.t)();try{const o=this.#r(e,t),c=f(e);this.#t(c,t,a),this.#s(c,i).forEach((t=>{this.#n(e,r,c,o,s,n,t)}))}catch(e){if(!(e instanceof _))throw e}}}#r(e,r){let t;if(!r&&this.agentRef.runtime.onerror&&(t=this.agentRef.runtime.onerror(e),t&&("string"!=typeof t.group||!t.group.length)))throw new _;return t}#t(e,r,t){const{shouldSwallow:s,reason:n}=function(e,r,t){const s={shouldSwallow:r||!1,reason:t||"Other"},n=e.frames?.[0];if(!n||"string"!=typeof e?.message)return s;const a=n?.url?.match(/nr-(.*)-recorder.min.js/),i=n?.url?.match(/rrweb/),o=n?.url?.match(/recorder/),c=e.message.toLowerCase().match(/an attempt was made to break through the security policy of the user agent/);return a||i?(s.shouldSwallow=!0,s.reason=E,c&&(s.reason+="-"+A)):o&&c&&(s.shouldSwallow=!0,s.reason=E+"-"+A),s}(e,r,t);if(s)throw this.reportSupportabilityMetric("Internal/Error/"+n),new _}#s(e,r){const t=[];if(r)t.push(r);else{if(2===this.harvestEndpointVersion)for(const r of e.frames)if(t.push(...(0,j.yx)(r.url,this.agentRef)),t.length)break;t.length||t.push(void 0)}return t}#n(e,r,t,s,n,a,i){var c=this.#a(t);const u=function(e){let r="";if(!e?.cause)return r;if(e.cause instanceof Error){const t=f(e.cause);r=t.stackString||e.cause.stack,t.message&&!r.includes(t.message)&&(r=t.message+"\n"+r),t.name&&!r.includes(t.name)&&(r=t.name+": "+r)}else r="string"==typeof e.cause?e.cause:(0,v.A)(e.cause);return r||=e.cause.toString(),r}(e),l={stackHash:p(c),exceptionClass:t.name,request_uri:o.gm?.location.pathname,...u&&{cause:u}};t.message&&(l.message=""+t.message),s?.group&&(l.errorGroup=s.group),a&&!i&&(l.hasReplay=a);var h,m=p("".concat(t.name,"_").concat(t.message,"_").concat(t.stackString,"_").concat(l.hasReplay?1:0,"_").concat(i?.id||"container","_").concat(i?.instance||""));this.stackReported[m]?l.browser_stack_hash=p(t.stackString):(this.stackReported[m]=!0,l.stack_trace=(h=t.stackString).length>65530?h.substr(0,65530):h,this.observedAt[m]=Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp(r))),l.releaseIds=(0,v.A)(this.agentRef.runtime.releaseIds),this.pageviewReported[m]||(l.pageview=1,this.pageviewReported[m]=!0),l.firstOccurrenceTimestamp=this.observedAt[m],l.timestamp=Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp(r));const g=["err",m,l,{time:r},n];if(i||(0,k.p)("trace-jserror",g,void 0,b.K7.sessionTrace,this.ee),!this.blocked){if(e.__newrelic?.socketId&&(n.socketId=e.__newrelic.socketId),!i){Boolean(this.agentRef.features?.[b.K7.softNav])?(0,k.p)("jserror",[g],void 0,b.K7.softNav,this.ee):this.#e(g)}i&&this.#e(g,{},i)}}#a(e){for(var r="",t=0;t<e.frames.length;t++){var s=e.frames[t],a=n(s.func);r&&(r+="\n"),a&&(r+=a+"@"),"string"==typeof s.url&&(r+=s.url),s.line&&(r+=":"+s.line)}return r}#e(e,r={},t){let[s,n,a,i,o]=e;const c={...(0,j.Ux)(t,this)};Object.entries(this.agentRef.info.jsAttributes).forEach((([e,r])=>l(e,r))),Object.entries(r).forEach((([e,r])=>l(e,r))),a.browserInteractionId&&(n+=a.browserInteractionId),o&&Object.entries(o).forEach((([e,r])=>l(e,r)));const u=n+":"+p((0,v.A)(c));function l(e,r){c[e]=r&&"object"==typeof r?(0,v.A)(r):r}this.events.add([s,u,a,i,c]),(0,j.B5)(t,this)&&this.#e([s,n,{...a},{...i},o&&{...o}],(0,j.YA)(t,this))}}},82209:function(e,r,t){function s(e,r,t="string",n=[]){return e&&"object"==typeof e?(Object.keys(e).forEach((a=>{"object"==typeof e[a]?s(e[a],r,t,n):typeof e[a]!==t||n.includes(a)||(e[a]=r(e[a]))})),e):e}t.d(r,{G:function(){return s}})}}]); 10"use strict";(self.webpackChunkamagch=self.webpackChunkamagch||[]).push([[100],{82209:function(t,e,
10i){function s(t,e,i="string",o=[]){return t&&"object"==typeof t?(Object.keys(t).forEach((n=>{"object"==typeof t[n]?s(t[n],e,i,o):typeof t[n]!==i||o.includes(n)||(t[n]=e(t[n]))})),t):t}i.d(e,{G:function(){return s}})},87777:function(t,e,i){i.r(e),i.d(e,{Aggregate:function(){return M}});var s=i(72024),o=i(49674),n=i(21690),r=i(75901),a=i(61059),g=i(58740),h=i(18897);class u{timestamp;message;attributes;level;constructor(t,e,i={},s=a.p_.INFO){this.timestamp=t,this.message=e,this.attributes={...i,pageUrl:(0,h.L)(""+g.m)},this.level=s.toUpperCase()}}var p=i(47415),c=i(82209),d=i(79324),l=i(55590),f=i(17305),b=i(2822);const m="Logging/Event/";class M extends r.r{static featureName=a.TZ;constructor(t){super(t,a.TZ);const e=(t,e)=>{this.loggingMode={auto:t,api:e},void 0===e&&(this.loggingMode.api=t)};this.harvestOpts.raw=!0,super.customAttributesAreSeparate=!0,this.ee.on(d.tS.RESET,(()=>{this.abort(l.bc.RESET)})),this.ee.on(d.tS.UPDATE,((t,i)=>{this.blocked||t!==d.iL.CROSS_TAB||(i.loggingMode!==a.A$.OFF||i.logApiMode&&i.logApiMode!==a.A$.OFF?e(i.loggingMode,i.logApiMode):this.abort(l.bc.CROSS_TAB))})),this.waitForFlags(["log","logapi"]).then((([i,o])=>{if(this.blocked)return;this.loggingMode??={auto:i,api:o};const n=this.agentRef.runtime.session;if((0,f.V)(t.init)&&n&&(n.isNew?this.#t():e(n.state.loggingMode,n.state.logApiMode)),this.loggingMode.auto===a.A$.OFF&&this.loggingMode.api===a.A$.OFF)return this.blocked=!0,void this.deregisterDrain();(0,s.i)(a.ET,this.handleLog.bind(this),this.featureName,this.ee),this.drain(),t.runtime.harvester.triggerHarvestFor(this)}))}handleLog(t,e,i={},s=a.p_.INFO,r,g){if(this.blocked)return;const h=r?this.loggingMode.auto:this.loggingMode.api;if(!h)return;if(i&&"object"==typeof i||(i={}),"string"==typeof s&&(s=s.toUpperCase()),!(0,p.b)(s))return(0,o.R)(30,s);if(h<(a.A$[s]||1/0))return void this.reportSupportabilityMetric(m+"Dropped/Sampling");try{if("string"!=typeof e){const t=(0,n.A)(e);e=t&&"{}"!==t?t:String(e)}}catch(t){return(0,o.R)(16,e),void this.reportSupportabilityMetric(m+"Dropped/Casting")}if("string"!=typeof e||!e)return(0,o.R)(32);const c=i=>{const o=new u(Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp(t)),e,i,s);this.events.add(o)&&this.reportSupportabilityMetric(m+(r?"Auto":"API")+"/Added")};c({...i,...(0,b.Ux)(g,this)}),(0,b.B5)(g,this)&&c({...i,...(0,b.YA)(g,this)})}serializer(t){const e=this.agentRef.runtime.session;return[{common:{attributes:{...(0,c.G)(this.agentRef.info.jsAttributes,this.obfuscator.obfuscateString.bind(this.obfuscator),"string"),...1===this.harvestEndpointVersion&&{"entity.guid":this.agentRef.runtime.appMetadata.agents[0].entityGuid,appId:this.agentRef.info.applicationID},...e&&{session:e.state.value||"0",hasReplay:1===e.state.sessionReplayMode,hasTrace:1===e.state.sessionTraceMode},ptid:this.agentRef.runtime.ptid,standalone:Boolean(this.agentRef.info.sa),agentVersion:this.agentRef.runtime.version,"instrumentation.provider":"browser","instrumentation.version":this.agentRef.runtime.version,"instrumentation.name":this.agentRef.runtime.loaderType}},logs:(0,c.G)(t,this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}]}queryStringsBuilder(){return{browser_monitoring_key:this.agentRef.info.licenseKey}}abort(t={}){this.reportSupportabilityMetric("Logging/Abort/".concat(t.sm)),this.blocked=!0,this.events&&(this.events.clear(),this.events.clearSave()),this.loggingMode={auto:a.A$.OFF,api:a.A$.OFF},this.#t(),this.deregisterDrain()}#t(){this.agentRef.runtime.session?.write({loggingMode:this.loggingMode.auto,logApiMode:this.loggingMode.api})}}}}]); 11"use strict";(self.webpackChunkamagch=self.webpackChunkamagch||[]).push([[452],{57050:function(t,e,r){r.r(e),r.d(e,{Aggregate:function(){return D}});var o=r(72024),n=r(7187),i=r(58740);const s="React",c="NextJS",a="Vue",p="NuxtJS",u="Angular",h="AngularUniversal",l="Svelte",d="SvelteKit",y="Preact",w="PreactSSR",b="AngularJS",g="Backbone",f="Ember",O="Meteor",v="Zepto",S="Jquery",m="MooTools",M="Qwik",j="Flutter",_="Electron";function P(){if(!i.RI)return[];const t=[];try{(function(){try{return Object.prototype.hasOwnProperty.call(window,"React")||Object.prototype.hasOwnProperty.call(window,"ReactDOM")||Object.prototype.hasOwnProperty.call(window,"ReactRedux")||document.querySelector("[data-reactroot], [data-reactid]")||(()=>{const t=document.querySelectorAll("body > div");for(let e=0;e<t.length;e++)if(Object.prototype.hasOwnProperty.call(t[e],"_reactRootContainer"))return!0})()}catch(t){return!1}})()&&(t.push(s),function(){try{return Object.prototype.hasOwnProperty.call(window,"next")&&Object.prototype.hasOwnProperty.call(window.next,"version")}catch(t){return!1}}()&&t.push(c)),function(){try{return Object.prototype.hasOwnProperty.call(window,"Vue")}catch(t){return!1}}()&&(t.push(a),function(){try{return Object.prototype.hasOwnProperty.call(window,"$nuxt")&&Object.prototype.hasOwnProperty.call(window.$nuxt,"nuxt")}catch(t){return!1}}()&&t.push(p)),function(){try{return Object.prototype.hasOwnProperty.call(window,"ng")||document.querySelector("[ng-version]")}catch(t){return!1}}()&&(t.push(u),function(){try{return document.querySelector("[ng-server-context]")}catch(t){return!1}}()&&t.push(h)),function(){try{return Object.prototype.hasOwnProperty.call(window,"__svelte")}catch(t){return!1}}()&&(t.push(l),function(){try{return!!Object.keys(window).find((t=>t.startsWith("__sveltekit")))}catch(t){return!1}}()&&t.push(d)),function(){try{return Object.prototype.hasOwnProperty.call(window,"preact")}catch(t){return!1}}()&&(t.push(y),function(){try{return document.querySelector('script[type="__PREACT_CLI_DATA__"]')}catch(t){return!1}}()&&t.push(w)),function(){try{return Object.prototype.hasOwnProperty.call(window,"angular")||document.querySelector(".ng-binding, [ng-app], [data-ng-app], [ng-controller], [data-ng-controller], [ng-repeat], [data-ng-repeat]")||document.querySelector('script[src*="angular.js"], script[src*="angular.min.js"]')}catch(t){return!1}}()&&t.push(b),Object.prototype.hasOwnProperty.call(window,"Backbone")&&t.push(g),Object.prototype.hasOwnProperty.call(window,"Ember")&&t.push(f),Object.prototype.hasOwnProperty.call(window,"Meteor")&&t.push(O),Object.prototype.hasOwnProperty.call(window,"Zepto")&&t.push(v),Object.prototype.hasOwnProperty.call(window,"jQuery")&&t.push(S),Object.prototype.hasOwnProperty.call(window,"MooTools")&&t.push(m),Object.prototype.hasOwnProperty.call(window,"qwikevents")&&t.push(M),Object.hasOwn(window,"_flutter")&&t.push(j),function(){try{return"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0}catch(t){return!1}}()&&t.push(_)}catch(t){}return t}var k=r(89274),R=r(92919),E=r(17508),A=r(75901),C=r(72293);class D extends A.r{static featureName=n.TZ;constructor(t){super(t,n.TZ),this.harvestOpts.aggregatorTypes=["cm","sm"],this.harvestMetadata={},this.harvestOpts.beforeUnload=()=>{(function(t){try{const e=[],r=(...t)=>t.join("/");function o(t,o,n,i){const s="audit";n?i?e.push(r(s,t,o,"true","positive")):e.push(r(s,t,o,"false","positive")):i?e.push(r(s,t,o,"false","negative")):e.push(r(s,t,o,"true","negative"))}return t.page_view_event&&(o("page_view","hasReplay",t.page_view_event.hasReplay,!!t.session_replay),o("page_view","hasTrace",t.page_view_event.hasTrace,!!t.session_trace)),t.session_replay&&o("session_replay","hasError",t.session_replay.hasError,!!t.jserrors),e}catch(n){return[]}}
11)(this.harvestMetadata).forEach((t=>{this.storeSupportabilityMetrics(t)}))},this.agentNonce=i.RI&&document.currentScript?.nonce,this.waitForFlags(["err"]).then((([t])=>{t?(this.singleChecks(),this.eachSessionChecks(),this.drain()):(this.blocked=!0,this.deregisterDrain())})),(0,o.i)(n.xV,this.storeSupportabilityMetrics.bind(this),this.featureName,this.ee),(0,o.i)(n.XG,this.storeEventMetrics.bind(this),this.featureName,this.ee)}preHarvestChecks(t){return this.drained&&t.isFinalHarvest}storeSupportabilityMetrics(t,e){if(this.blocked)return;const r=n.rs,o={name:t};this.events.addMetric(r,t,o,e)}storeEventMetrics(t,e){if(this.blocked)return;const r=n.z_,o={name:t};this.events.add([r,t,o,e])}singleChecks(){const{distMethod:t,loaderType:e}=this.agentRef.runtime,{proxy:r,privacy:n}=this.agentRef.init;if(e&&this.storeSupportabilityMetrics("Generic/LoaderType/".concat(e,"/Detected")),t&&this.storeSupportabilityMetrics("Generic/DistMethod/".concat(t,"/Detected")),i.RI?(this.storeSupportabilityMetrics("Generic/Runtime/Browser/Detected"),this.agentNonce&&""!==this.agentNonce&&this.storeSupportabilityMetrics("Generic/Runtime/Nonce/Detected"),(0,R.sB)((()=>{P().forEach((t=>{this.storeSupportabilityMetrics("Framework/"+t+"/Detected")}))})),n.cookies_enabled||this.storeSupportabilityMetrics("Config/SessionTracking/Disabled")):i.bv?this.storeSupportabilityMetrics("Generic/Runtime/Worker/Detected"):this.storeSupportabilityMetrics("Generic/Runtime/Unknown/Detected"),(0,k.p)()&&this.storeSupportabilityMetrics("Generic/FileProtocol/Detected"),this.obfuscator.obfuscateConfigRules.length>0&&this.storeSupportabilityMetrics("Generic/Obfuscate/Detected"),r.assets&&this.storeSupportabilityMetrics("Config/AssetsUrl/Changed"),r.beacon&&this.storeSupportabilityMetrics("Config/BeaconUrl/Changed"),i.RI&&window.MutationObserver){(0,C.v)(window)&&this.storeSupportabilityMetrics("Generic/Runtime/IFrame/Detected");const t=window.document.querySelectorAll("video").length;t&&this.storeSupportabilityMetrics("Generic/VideoElement/Added",t);const e=window.document.querySelectorAll("iframe").length;e&&this.storeSupportabilityMetrics("Generic/IFrame/Added",e);new MutationObserver((t=>{t.forEach((t=>{t.addedNodes.forEach((t=>{t instanceof HTMLVideoElement&&this.storeSupportabilityMetrics("Generic/VideoElement/Added",1),t instanceof HTMLIFrameElement&&this.storeSupportabilityMetrics("Generic/IFrame/Added",1)}))}))})).observe(window.document.body,{childList:!0,subtree:!0})}navigator.webdriver&&this.storeSupportabilityMetrics("Generic/WebDriver/Detected"),(0,o.i)("harvest-metadata",((t={})=>{try{Object.keys(t).forEach((e=>{Object.assign(this.harvestMetadata[e]??={},t[e])}))}catch(t){}}),this.featureName,this.ee)}eachSessionChecks(){i.RI&&(0,E.sp)("pageshow",(t=>{t?.persisted&&this.storeSupportabilityMetrics("Generic/BFCache/PageRestored")}))}}},72293:function(t,e,r){function o(t){return!!t&&t.self!==t.top}r.d(e,{v:function(){return o}})}}]); 12"use strict";(self.webpackChunkamagch=self.webpackChunkamagch||[]).push([[677],{42388:function(e,t,i){i.r(t),i.d(t,{Aggregate:function(){return N}});var r=i(58740),s=i(91823),n=i(21690),a=i(29077),o=i(47200),c=i(19470);function m(e){const t=[];try{Object.keys(e.features||{}).forEach((e=>{switch(e){case c.K7.ajax:t.push("xhr");break;case c.K7.jserrors:t.push("err");break;case c.K7.genericEvents:t.push("ins");break;case c.K7.sessionTrace:t.push("stn");break;case c.K7.softNav:t.push("spa")}}))}catch(e){}return t}var f=i(71999);var u=i(49674),h=i(75901),d=i(702),p=i(41291),T=i(83209),l=i(79507),g=i(57226);const y=new l.x(T.w.TIME_TO_FIRST_BYTE);if(r.RI&&(0,r.zk)()&&!r.OF&&window===window.parent)(0,g.Ck)((({value:e,attribution:t})=>{y.isValid||y.update({value:e,attrs:{navigationEntry:t.navigationEntry}})}));else if(!y.isValid){const e={};for(let t in r.gm?.performance?.timing||{})e[t]=Math.max(r.gm?.performance?.timing[t]-r.WN,0);y.update({value:e.responseStart,attrs:{navigationEntry:e}})}var v=i(31609),b=i(7187),R=i(53720),D=i(34842);class w{#e;#t;#i;#r=!1;#s=!1;constructor(e){this.#e=e,this.processStoredDiff(),(0,R.i)(performance.now,Date.now)}#n(){if(!this.#s)try{const e=Date.now()-r.WN-performance.now();e>1e3&&(this.#s=!0,(0,D.p)(b.xV,["Generic/TimeKeeper/ClockDrift/Detected",e],void 0,c.K7.metrics,this.#e.agentRef.ee))}catch(e){}}get ready(){return this.#r}get correctedOriginTime(){return this.#t}get localTimeDiff(){return this.#i}processRumRequest(e,t,i,s){if(this.processStoredDiff(),this.#r)return;if(!s)throw new Error("nrServerTime not found");const n=t+(i-t)/2;if(this.#t=Math.floor(s-n),this.#i=r.WN-this.#t,isNaN(this.#t))throw new Error("Failed to correct browser time to server time");this.#e?.write({serverTimeDiff:this.#i}),this.#r=!0}convertRelativeTimestamp(e){return this.#n(),r.WN+e}convertAbsoluteTimestamp(e){return this.#n(),e-r.WN}correctAbsoluteTimestamp(e){return this.#n(),e-this.#i}correctRelativeTimestamp(e){return this.#n(),this.correctAbsoluteTimestamp(this.convertRelativeTimestamp(e))}
12processStoredDiff(){if(this.#r)return;const e=this.#e?.read()?.serverTimeDiff;"number"!=typeof e||isNaN(e)||(this.#i=e,this.#t=r.WN-this.#i,this.#r=!0)}}var B=i(82209),E=i(29017),S=i(85668),k=i(98689);class N extends h.r{static featureName=o.T;constructor(e){if(super(e,o.T),this.sentRum=!1,this.timeToFirstByte=0,this.firstByteToWindowLoad=0,this.firstByteToDomContent=0,this.retries=0,!(0,a.f)(e.info))return this.ee.abort(),(0,u.R)(43);e.runtime.timeKeeper=new w(e.runtime.session),r.RI?(y.subscribe((({value:e,attrs:t})=>{const i=t.navigationEntry;this.timeToFirstByte=Math.max(e,this.timeToFirstByte),this.firstByteToWindowLoad=Math.max(Math.round(i.loadEventEnd-this.timeToFirstByte),this.firstByteToWindowLoad),this.firstByteToDomContent=Math.max(Math.round(i.domContentLoadedEventEnd-this.timeToFirstByte),this.firstByteToDomContent)})),setTimeout(this.sendRum.bind(this),0)):this.sendRum()}sendRum(e=this.agentRef.info.jsAttributes){const t=this.agentRef.info,i={};t.queueTime&&(i.qt=t.queueTime),t.applicationTime&&(i.ap=t.applicationTime),i.be=this.timeToFirstByte,i.fe=this.firstByteToWindowLoad,i.dc=this.firstByteToDomContent;const a={tt:t.ttGuid,us:t.user,ac:t.account,pr:t.product,af:m(this.agentRef).join(","),...i,xx:t.extra,ua:t.userAttributes,at:t.atts};this.agentRef.runtime.session&&(a.fsh=Number(this.agentRef.runtime.session.isNew));let o=(0,B.G)({ja:{...e,webdriverDetected:k.R}},this.obfuscator.obfuscateString.bind(this.obfuscator),"string");if(r.gm.performance){const e=(0,r.zk)();if(e){const t={timing:(0,s.eM)(r.WN,e,{}),navigation:(0,s.si)(e,{})};a.perf=(0,n.A)(t)}else if("undefined"!=typeof PerformanceTiming){const e={timing:(0,s.eM)(r.WN,r.gm.performance.timing,{},!0),navigation:(0,s.si)(r.gm.performance.navigation,{})};a.perf=(0,n.A)(e)}}a.fp=p.J.current.value,a.fcp=d.j.current.value,this.queryStringsBuilder=()=>{this.rumStartTime=(0,v.t)();const e=this.agentRef.runtime.timeKeeper;return e?.ready&&(a.timestamp=Math.floor(e.correctRelativeTimestamp(this.rumStartTime))),a},this.events.add(o),this.agentRef.runtime.harvester.triggerHarvestFor(this,{sendEmptyBody:!0}).ranSend&&(this.sentRum=!0)}serializer(e){return e[0]}postHarvestCleanup({sent:e,status:t,responseText:i,xhr:r,retry:s}){const n=(0,v.t)();let a,o;try{({app:a,...o}=JSON.parse(i))}catch(e){(0,u.R)(53,e)}if(super.postHarvestCleanup({sent:e,retry:s}),this.isRetrying&&this.retries++<1)setTimeout((()=>this.agentRef.runtime.harvester.triggerHarvestFor(this,{sendEmptyBody:!0})),5e3);else{if(t>=400||0===t){(0,u.R)(18,t),this.blocked=!0;const e=new TextEncoder,i="BCS/Error/",r={sm:[{params:{name:i+t},stats:{c:1}},{params:{name:i+"Dropped/Bytes"},stats:{c:1,t:Object.values(newrelic.ee.backlog).reduce(((t,i)=>{if(!i)return t;return t+e.encode(i).byteLength}),0)}},{params:{name:i+"Duration/Ms"},stats:{c:1,t:n-this.rumStartTime}}]};return(0,E.t)(this.agentRef,{endpoint:c.$J[c.K7.metrics],payload:{body:r},submitMethod:(0,S.mj)(),featureName:c.K7.metrics}),void this.ee.abort()}try{const e=this.agentRef.runtime.timeKeeper.ready;if(this.agentRef.runtime.timeKeeper.processRumRequest(r,this.rumStartTime,n,a.nrServerTime),!this.agentRef.runtime.timeKeeper.ready)throw new Error("TimeKeeper not ready");const t=this.agentRef.runtime.timeKeeper.correctedOriginTime-a.nrServerTime;e&&t>0&&this.reportSupportabilityMetric("Generic/TimeKeeper/InvalidTimestamp/Seen",t)}catch(e){return this.ee.abort(),this.blocked=!0,void(0,u.R)(17,e)}Object.keys(this.agentRef.runtime.appMetadata).length||(this.agentRef.runtime.appMetadata=a),this.drain(),this.agentRef.runtime.harvester.startTimer(),function(e,t){e&&"object"==typeof e&&!t.runtime.activatedFeatures&&(t.ee.emit("rumresp",[e]),t.runtime.activatedFeatures=e,(0,f.W)({loaded:!0,drained:!0,type:"lifecycle",name:"load",feature:void 0,data:e}))}(o,this.agentRef)}}}},82209:function(e,t,i){function r(e,t,i="string",s=[]){return e&&"object"==typeof e?(Object.keys(e).forEach((n=>{"object"==typeof e[n]?r(e[n],t,i,s):typeof e[n]!==i||s.includes(n)||(e[n]=t(e[n]))})),e):e}i.d(t,{G:function(){return r}})}}]); 13"use strict";(self.webpackChunkamagch=self.webpackChunkamagch||[]).push([[617],{702:function(t,e,n){n.d(e,{j:function(){return o}});var r=n(57226),i=n(58740),a=n(83209);const o=new(n(79507).x)(a.w.FIRST_CONTENTFUL_PAINT);if(i.RI)if(i.sb)try{if(!i.mw){performance.getEntriesByType("paint").forEach((t=>{"first-contentful-paint"===t.name&&o.update({value:Math.floor(t.startTime)})}))}}catch(t){}else(0,r.zB)((({value:t,attribution:e})=>
13{if(i.mw||o.isValid)return;const n={timeToFirstByte:e.timeToFirstByte,firstByteToFCP:e.firstByteToFCP,loadState:e.loadState};o.update({value:t,attrs:n})}))},41291:function(t,e,n){n.d(e,{J:function(){return a}});var r=n(58740),i=n(83209);const a=new(n(79507).x)(i.w.FIRST_PAINT);if(r.RI){const t=t=>{t.forEach((t=>{"first-paint"!==t.name||a.isValid||(e.disconnect(),a.update({value:t.startTime}))}))};let e;try{PerformanceObserver.supportedEntryTypes.includes("paint")&&!r.mw&&(e=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))})),e.observe({type:"paint",buffered:!0}))}catch(t){}}},48861:function(t,e,n){n.d(e,{AQ:function(){return c},me:function(){return o},sH:function(){return s},uJ:function(){return u}});var r=n(21690),i=Object.prototype.hasOwnProperty,a=64;function o(t,e,n){return t||0===t||""===t?e(t)+(n?",":""):"!"}function s(t,e){return e?Math.floor(t).toString(36):void 0===t||0===t?"":Math.floor(t).toString(36)}function u(t){let e=0;const n=Object.prototype.hasOwnProperty.call(Object,"create")?Object.create(null):{};return function(r){if(void 0===r||""===r)return"";return r=t.obfuscateString(String(r)),i.call(n,r)?s(n[r],!0):(n[r]=e++,function(t){return"'"+t.replace(d,"\\$1")}(r))}}function c(t,e){var n=[];return Object.entries(t||{}).forEach((([t,i])=>{if(!(n.length>=a)){var o,s=5;switch(t=e(t),typeof i){case"object":i?o=e((0,r.A)(i)):s=9;break;case"number":s=6,o=i%1?i:i+".";break;case"boolean":s=i?7:8;break;case"undefined":s=9;break;default:o=e(i)}n.push([s,t+(o?","+o:"")])}})),n}var d=/([,\\;])/g},57226:function(t,e,n){n.d(e,{Ck:function(){return ut},IN:function(){return _},fK:function(){return it},rH:function(){return et},zB:function(){return F}});var r,i,a=function(){var t=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t},o=function(t){if("loading"===document.readyState)return"loading";var e=a();if(e){if(t<e.domInteractive)return"loading";if(0===e.domContentLoadedEventStart||t<e.domContentLoadedEventStart)return"dom-interactive";if(0===e.domComplete||t<e.domComplete)return"dom-content-loaded"}return"complete"},s=function(t){var e=t.nodeName;return 1===t.nodeType?e.toLowerCase():e.toUpperCase().replace(/^#/,"")},u=function(t,e){var n="";try{for(;t&&9!==t.nodeType;){var r=t,i=r.id?"#"+r.id:s(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+i.length>(e||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;t=r.parentNode}}catch(t){}return n},c=-1,d=function(){return c},f=function(t){addEventListener("pageshow",(function(e){e.persisted&&(c=e.timeStamp,t(e))}),!0)},l=function(){var t=a();return t&&t.activationStart||0},m=function(t,e){var n=a(),r="navigate";return d()>=0?r="back-forward-cache":n&&(document.prerendering||l()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},h=function(t,e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver((function(t){Promise.resolve().then((function(){e(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},p=function(t,e,n,r){var i,a;return function(o){e.value>=0&&(o||r)&&((a=e.value-(i||0))||void 0===i)&&(i=e.value,e.delta=a,e.rating=function(t,e){return t>e[1]?"poor":t>e[0]?"needs-improvement":"good"}(e.value,n),t(e))}},v=function(t){requestAnimationFrame((function(){return requestAnimationFrame((function(){return t()}))}))},g=function(t){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t()}))},T=function(t){var e=!1;return function(){e||(t(),e=!0)}},y=-1,b=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},E=function(t){"hidden"===document.visibilityState&&y>-1&&(y="visibilitychange"===t.type?t.timeStamp:0,w())},S=function(){addEventListener("visibilitychange",E,!0),addEventListener("prerenderingchange",E,!0)},w=function(){removeEventListener("visibilitychange",E,!0),removeEventListener("prerenderingchange",E,!0)},I=function(){return y<0&&(y=b(),S(),f((function(){setTimeout((function(){y=b(),S()}),0)}))),{get firstHiddenTime(){return y}}},C=function(t){document.prerendering?addEventListener("prerenderingchange",(function(){return t()}),!0):t()},L=[1800,3e3],M=function(t,e){e=e||{},C((function(){var n,r=I(),i=m("FCP"),a=h("paint",(function(t){t.forEach((function(t){"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-l(),0),i.entries.push(t),n(!0)))}))}));a&&(n=p(t,i,L,e.reportAllChanges),f((function(r){i=m("FCP"),n=p(t,i,L,e.reportAllChanges),v((function(){i.value=performance.now()-r.timeStamp,n(!0)}))})))}))},A=[.1,.25],_=function(t,e){!function(t,e){e=e||{},M(T((function(){var n,r=m("CLS",0),i=0,a=[],o=function(t){t.forEach((function(t){if(!t.hadRecentInput){var e=a[0],n=a[a.length-1];i&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(i+=t.value,a.push(t)):(i=t.value,a=[t])}})),i>r.value&&(r.value=i,r.entries=a,n())},s=h("layout-shift",o);s&&(n=p(t,r,A,e.reportAllChanges),g((function(){o(s.takeRecords()),n(!0)})),f((function(){i=0,r=m("CLS",0),n=p(t,r,A,e.reportAllChanges),v((function(){return n()}))})),setTimeout(n,0))}
vendor: 5,196 bytes, line 13
13)))}((function(e){var n=function(t){var e,n={};if(t.entries.length){var r=t.entries.reduce((function(t,e){return t&&t.value>e.value?t:e}));if(r&&r.sources&&r.sources.length){var i=(e=r.sources).find((function(t){return t.node&&1===t.node.nodeType}))||e[0];i&&(n={largestShiftTarget:u(i.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:i,largestShiftEntry:r,loadState:o(r.startTime)})}}return Object.assign(t,{attribution:n})}(e);t(n)}),e)},F=function(t,e){M((function(e){var n=function(t){var e={timeToFirstByte:0,firstByteToFCP:t.value,loadState:o(d())};if(t.entries.length){var n=a(),r=t.entries[t.entries.length-1];if(n){var i=n.activationStart||0,s=Math.max(0,n.responseStart-i);e={timeToFirstByte:s,firstByteToFCP:t.value-s,loadState:o(t.entries[0].startTime),navigationEntry:n,fcpEntry:r}}}return Object.assign(t,{attribution:e})}(e);t(n)}),e)},R=0,N=1/0,k=0,D=function(t){t.forEach((function(t){t.interactionId&&(N=Math.min(N,t.interactionId),k=Math.max(k,t.interactionId),R=k?(k-N)/7+1:0)}))},O=function(){return r?R:performance.interactionCount||0},x=function(){"interactionCount"in performance||r||(r=h("event",D,{type:"event",buffered:!0,durationThreshold:0}))},P=[],B=new Map,j=0,U=[],V=function(t){if(U.forEach((function(e){return e(t)})),t.interactionId||"first-input"===t.entryType){var e=P[P.length-1],n=B.get(t.interactionId);if(n||P.length<10||t.duration>e.latency){if(n)t.duration>n.latency?(n.entries=[t],n.latency=t.duration):t.duration===n.latency&&t.startTime===n.entries[0].startTime&&n.entries.push(t);else{var r={id:t.interactionId,latency:t.duration,entries:[t]};B.set(r.id,r),P.push(r)}P.sort((function(t,e){return e.latency-t.latency})),P.length>10&&P.splice(10).forEach((function(t){return B.delete(t.id)}))}}},H=function(t){var e=self.requestIdleCallback||self.setTimeout,n=-1;return t=T(t),"hidden"===document.visibilityState?t():(n=e(t),g(t)),n},z=[200,500],q=function(t,e){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(e=e||{},C((function(){var n;x();var r,i=m("INP"),a=function(t){H((function(){t.forEach(V);var e=function(){var t=Math.min(P.length-1,Math.floor((O()-j)/50));return P[t]}();e&&e.latency!==i.value&&(i.value=e.latency,i.entries=e.entries,r())}))},o=h("event",a,{durationThreshold:null!==(n=e.durationThreshold)&&void 0!==n?n:40});r=p(t,i,z,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),g((function(){a(o.takeRecords()),r(!0)})),f((function(){j=O(),P.length=0,B.clear(),i=m("INP"),r=p(t,i,z,e.reportAllChanges)})))})))},G=[],Y=[],J=0,K=new WeakMap,W=new Map,X=-1,Q=function(t){G=G.concat(t),$()},$=function(){X<0&&(X=H(Z))},Z=function(){W.size>10&&W.forEach((function(t,e){B.has(e)||W.delete(e)}));var t=P.map((function(t){return K.get(t.entries[0])})),e=Y.length-50;Y=Y.filter((function(n,r){return r>=e||t.includes(n)}));for(var n=new Set,r=0;r<Y.length;r++){var i=Y[r];tt(i.startTime,i.processingEnd).forEach((function(t){n.add(t)}))}var a=G.length-1-50;G=G.filter((function(t,e){return t.startTime>J&&e>a||n.has(t)})),X=-1};U.push((function(t){t.interactionId&&t.target&&!W.has(t.interactionId)&&W.set(t.interactionId,t.target)}),(function(t){var e,n=t.startTime+t.duration;J=Math.max(J,t.processingEnd);for(var r=Y.length-1;r>=0;r--){var i=Y[r];if(Math.abs(n-i.renderTime)<=8){(e=i).startTime=Math.min(t.startTime,e.startTime),e.processingStart=Math.min(t.processingStart,e.processingStart),e.processingEnd=Math.max(t.processingEnd,e.processingEnd),e.entries.push(t);break}}e||(e={startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,renderTime:n,entries:[t]},Y.push(e)),(t.interactionId||"first-input"===t.entryType)&&K.set(t,e),$()}));var tt=function(t,e){for(var n,r=[],i=0;n=G[i];i++)if(!(n.startTime+n.duration<t)){if(n.startTime>e)break;r.push(n)}return r},et=function(t,e){i||(i=h("long-animation-frame",Q)),q((function(e){var n=function(t){var e=t.entries[0],n=K.get(e),r=e.processingStart,i=n.processingEnd,a=n.entries.sort((function(t,e){return t.processingStart-e.processingStart})),s=tt(e.startTime,i),c=t.entries.find((function(t){return t.target})),d=c&&c.target||W.get(e.interactionId),f=[e.startTime+e.duration,i].concat(s.map((function(t){return t.startTime+t.duration}))),l=Math.max.apply(Math,f),m={interactionTarget:u(d),interactionTargetElement:d,interactionType:e.name.startsWith("key")?"keyboard":"pointer",interactionTime:e.startTime,nextPaintTime:l,processedEventEntries:a,longAnimationFrameEntries:s,inputDelay:r-e.startTime,processingDuration:i-r,presentationDelay:Math.max(l-i,0),loadState:o(e.startTime)};return Object.assign(t,{attribution:m})}(e);t(n)}),e)},nt=[2500,4e3],rt={},it=function(t,e){!function(t,e){e=e||{},C((function(){var n,r=I(),i=m("LCP"),a=function(t){e.reportAllChanges||(t=t.slice(-1)),t.forEach((function(t){t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-l(),0),i.entries=[t],n())}))},o=h("largest-contentful-paint",a);if(o){n=p(t,i,nt,e.reportAllChanges);var s=T((function(){rt[i.id]||(a(o.takeRecords()),o.disconnect(),rt[i.id]=!0,n(!0))}));["keydown","click"].forEach((function(t){addEventListener(t,(function(){return H(s)}),{once:!0,capture:!0})}
13)),g(s),f((function(r){i=m("LCP"),n=p(t,i,nt,e.reportAllChanges),v((function(){i.value=performance.now()-r.timeStamp,rt[i.id]=!0,n(!0)}))}))}}))}((function(e){var n=function(t){var e={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:t.value};if(t.entries.length){var n=a();if(n){var r=n.activationStart||0,i=t.entries[t.entries.length-1],o=i.url&&performance.getEntriesByType("resource").filter((function(t){return t.name===i.url}))[0],s=Math.max(0,n.responseStart-r),c=Math.max(s,o?(o.requestStart||o.startTime)-r:0),d=Math.max(c,o?o.responseEnd-r:0),f=Math.max(d,i.startTime-r);e={element:u(i.element),timeToFirstByte:s,resourceLoadDelay:c-s,resourceLoadDuration:d-c,elementRenderDelay:f-d,navigationEntry:n,lcpEntry:i},i.url&&(e.url=i.url),o&&(e.lcpResourceEntry=o)}}return Object.assign(t,{attribution:e})}(e);t(n)}),e)},at=[800,1800],ot=function t(e){document.prerendering?C((function(){return t(e)})):"complete"!==document.readyState?addEventListener("load",(function(){return t(e)}),!0):setTimeout(e,0)},st=function(t,e){e=e||{};var n=m("TTFB"),r=p(t,n,at,e.reportAllChanges);ot((function(){var i=a();i&&(n.value=Math.max(i.responseStart-l(),0),n.entries=[i],r(!0),f((function(){n=m("TTFB",0),(r=p(t,n,at,e.reportAllChanges))(!0)})))}))},ut=function(t,e){st((function(e){var n=function(t){var e={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(t.entries.length){var n=t.entries[0],r=n.activationStart||0,i=Math.max((n.workerStart||n.fetchStart)-r,0),a=Math.max(n.domainLookupStart-r,0),o=Math.max(n.connectStart-r,0),s=Math.max(n.connectEnd-r,0);e={waitingDuration:i,cacheDuration:a-i,dnsDuration:o-a,connectionDuration:s-o,requestDuration:t.value-s,navigationEntry:n}}return Object.assign(t,{attribution:e})}(e);t(n)}),e)};new Date},79507:function(t,e,n){n.d(e,{x:function(){return r}});class r{#t=new Set;history=[];constructor(t,e){this.name=t,this.attrs={},this.roundingMethod="function"==typeof e?e:Math.floor}update({value:t,attrs:e={}}){if(null==t||t<0)return;const n={value:this.roundingMethod(t),name:this.name,attrs:e};this.history.push(n),this.#t.forEach((t=>{try{t(n)}catch(t){}}))}get current(){return this.history[this.history.length-1]||{value:void 0,name:this.name,attrs:{}}}get isValid(){return this.current.value>=0}subscribe(t,e=!0){if("function"==typeof t)return this.#t.add(t),this.isValid&&e&&this.history.forEac
13h((e=>{t(e)})),()=>{this.#t.delete(t)}}}},83209:function(t,e,n){n.d(e,{w:function(){return r}});const r={FIRST_PAINT:"fp",FIRST_CONTENTFUL_PAINT:"fcp",FIRST_INTERACTION:"fi",LARGEST_CONTENTFUL_PAINT:"lcp",LOAD_TIME:"load",CUMULATIVE_LAYOUT_SHIFT:"cls",INTERACTION_TO_NEXT_PAINT:"inp",TIME_TO_FIRST_BYTE:"ttfb"}},87154:function(t,e,n){n.r(e),n.d(e,{Aggregate:function(){return w}});var r=n(48861),i=n(72024),a=n(34842),o=n(41172),s=n(19470),u=n(75901),c=n(57226),d=n(83209),f=n(79507),l=n(58740);const m=new f.x(d.w.CUMULATIVE_LAYOUT_SHIFT,(t=>t));l.RI&&(0,c.IN)((({value:t,attribution:e,id:n})=>{const r={metricId:n,largestShiftTarget:e.largestShiftTarget,largestShiftTime:e.largestShiftTime,largestShiftValue:e.largestShiftValue,loadState:e.loadState};m.update({value:t,attrs:r})}),{reportAllChanges:!0});var h=n(702),p=n(41291);const v=new f.x(d.w.INTERACTION_TO_NEXT_PAINT);l.RI&&(0,c.rH)((({value:t,attribution:e,id:n})=>{const r={metricId:n,eventTarget:e.interactionTarget,eventTime:e.interactionTime,interactionTarget:e.interactionTarget,interactionTime:e.interactionTime,interactionType:e.interactionType,inputDelay:e.inputDelay,nextPaintTime:e.nextPaintTime,processingDuration:e.processingDuration,presentationDelay:e.presentationDelay,loadState:e.loadState};v.update({value:t,attrs:r})}));var g=n(18897);const T=new f.x(d.w.LARGEST_CONTENTFUL_PAINT);l.RI&&(0,c.fK)((({value:t,attribution:e})=>{if(l.mw||T.isValid)return;let n={timeToFirstByte:e.timeToFirstByte,resourceLoadDelay:e.resourceLoadDelay,resourceLoadDuration:e.resourceLoadDuration,resourceLoadTime:e.resourceLoadDuration,elementRenderDelay:e.elementRenderDelay};const r=e.lcpEntry;r&&(n.size=r.size,n.eid=r.id,r.element?.tagName&&(n.elTag=r.element.tagName)),e.element&&(n.element=e.element),e.url&&(n.elUrl=(0,g.L)(e.url)),T.update({value:t,attrs:n})}));var y=n(62449),b=n(94970),E=n(91666),S=n(98689);class w extends u.r{static featureName=o.T;#e=({name:t,value:e,attrs:n})=>{this.addTiming(t,e,n)};constructor(t){super(t,o.T),this.curSessEndRecorded=!1,this.firstIxnRecorded=!1,super.customAttributesAreSeparate=!0,(0,i.i)("docHidden",(t=>this.endCurrentSession(t)),this.featureName,this.ee),(0,i.i)("winPagehide",(t=>this.addTiming("unload",t,null)),this.featureName,this.ee),this.waitForFlags([]).then((()=>{p.J.subscribe(this.#e),h.j.subscribe(this.#e),T.subscribe(this.#e),v.subscribe(this.#e),E.Y.subscribe((({name:t,value:e})=>{this.addTiming(t,Math.round(e))})),(0,y.u)((()=>{const{name:t,value:e,attrs:n}=m.current;void 0!==e&&this.addTiming(t,1e3*e,n)}),!0,!0),this.drain()}))}endCurrentSession(t){this.curSessEndRecorded||(this.addTiming("pageHide",t,null),this.curSessEndRecorded=!0)}addTiming(t,e,n){(n=n||{}).pageUrl=(0,g.L)((0,l.zk)()?.name||l.m),function(t){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(!e)return;e.type&&(t["net-type"]=e.type);e.effectiveType&&(t["net-etype"]=e.effectiveType);e.rtt&&(t["net-rtt"]=e.rtt);e.downlink&&(t["net-dlink"]=e.downlink)}(n),t!==d.w.CUMULATIVE_LAYOUT_SHIFT&&m.current.value>=0&&(n.cls=m.current.value);const r={name:t,value:e,attrs:n};return this.events.add(r),(0,a.p)("pvtAdded",[t,e,n],void 0,s.K7.sessionTrace,this.ee),this.checkForFirstInteraction(),r}checkForFirstInteraction(){if(this.firstIxnRecorded||l.mw||!performance)return;const t=performance.getEntriesByType("first-input")[0];t&&(this.firstIxnRecorded=!0,this.addTiming("fi",t.startTime,{type:t.name,eventTarget:(0,b.t)(t.target),loadState:document.readyState}))}appendGlobalCustomAttributes(t){var e=t.attrs||{},n=["size","eid","cls","type","fid","elTag","elUrl","net-type","net-etype","net-rtt","net-dlink"];Object.entries(this.agentRef.info.jsAttributes||{}).forEach((([t,r])=>{n.indexOf(t)<0&&(e[t]=r)})),e.webdriverDetected=S.R}preHarvestChecks(){return this.checkForFirstInteraction(),super.preHarvestChecks()}serializer(t){if(!t?.length)return"";for(var e=(0,r.uJ)(this.agentRef.runtime.obfuscator),n="bel.6;",i=0;i<t.length;i++){var a=t[i];n+="e,",n+=e(a.name)+",",n+=(0,r.me)(a.value,r.sH,!1)+",",this.appendGlobalCustomAttributes(a);var o=(0,r.AQ)(a.attrs,e);o&&o.length>0&&(n+=(0,r.sH)(o.length)+";"+o.join(";")),i+1<t.length&&(n+=";")}return n}}},91666:function(t,e,n){n.d(e,{Y:function(){return o}});var r=n(58740),i=n(92919),a=n(83209);const o=new(n(79507).x)(a.w.LOAD_TIME);if(r.RI){const t=r.gm.performance,e=()=>{if(!o.isValid&&t){const e=(0,r.zk)();o.update({value:e?e.loadEventEnd:t.timing?.loadEventEnd-r.WN})}};(0,i.GG)(e,!0)}},94970:function(t,e,n){function r(t,e,n){let r="unknown";if(t&&t instanceof XMLHttpRequest){const e=n.context(t).params;if(!(e&&e.status&&e.method&&e.host&&e.pathname))return"xhrOriginMissing";r=e.status+" "+e.method+": "+e.host+e.pathname}else if(t&&"string"==typeof t.tagName&&(r=t.tagName.toLowerCase(),t.id&&(r+="#"+t.id),t.className))for(let e=0;e<t.classList.length;e++)r+="."+t.classList[e];return"unknown"===r&&("string"==typeof e?r=e:e===document?r="document":e===window?r="window":e instanceof FileReader&&(r="FileReader")),r}n.d(e,{t:function(){return r}})},98689:function(t,e,n){n.d(e,{R:function(){return i}});var r=n(58740);const i=(()=>{try{if("undefined"!=typeof navigator&&!0===navigator.webdriver)return!0;
13if(r.RI){if(document.__webdriver_evaluate||document.__selenium_unwrapped||document.__driver_evaluate||document.__webdriver_script_function)return!0;if(window.callPhantom||window._phantom)return!0;if(window.__nightmare)return!0}return!1}catch(t){return!1}})()}}]); 14/*! For license information please see recorder.js.LICENSE.txt */ 15(self.webpackChunkamagch=self.webpackChunkamagch||[]).push([[777],{9281:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});var r=s(21690),n=s(97517);class i{#e=[];#t=0;#s;#r;constructor(e=n.It,t){this.maxPayloadSize=e,this.featureAgg=t}get length(){return this.#e.length}isEmpty(){return 0===this.#e.length}get(){return this.#e}byteSize(){return this.#t}wouldExceedMaxSize(e){return this.#t+e>this.maxPayloadSize}add(e,t){const s=t||(0,r.A)(e)?.length||0;if(this.#t+s>this.maxPayloadSize){const e=e=>"EventBuffer/".concat(e,"/Dropped/Bytes");return this.featureAgg?.reportSupportabilityMetric(e(this.featureAgg.featureName),s),this.featureAgg?.reportSupportabilityMetric(e("Combined"),s),!1}return this.#e.push(e),this.#t+=s,this.featureAgg?.decideEarlyHarvest(),!0}merge(e,t){if(this.isEmpty()||!e)return!1;const s=this.#e.findIndex(e);return!(s<0)&&(this.#e[s]={...this.#e[s],...t},!0)}clear(e={}){void 0!==e.clearBeforeTime&&e.timestampKey?this.#e=this.#e.filter((t=>t[e.timestampKey]>=e.clearBeforeTime)):void 0!==e.clearBeforeIndex?this.#e=this.#e.slice(e.clearBeforeIndex):this.#e=[],this.#t=this.#e.length&&(0,r.A)(this.#e)?.length||0}save(){this.#s=this.#e,this.#r=this.#t}clearSave(){this.#s=void 0,this.#r=void 0}reloadSave(){this.#s&&(this.#r+this.#t>this.maxPayloadSize||(this.#e=[...this.#s,...this.#e],this.#t=this.#r+this.#t))}}},36344:function(e,t,s){"use strict";s.r(t),s.d(t,{Recorder:function(){return b}});var r=s(72786),n=s(21690),i=s(55590),o=s(9281);class a{#n=new o.Z(1/0);cycleTimestamp=Date.now();hasSnapshot=!1;hasMeta=!1;hasError=!1;constructor(e=!0){this.inlinedAllStylesheets=e}add(e,t){this.#n.add(e,t)}get events(){return this.#n.get()}get payloadBytesEstimation(){return this.#n.byteSize()}}var l=s(79324),c=s(61577),u=s(34842),h=s(7187),d=s(19470),p=s(71736),f=s(97517),m=s(49674),g=s(55239),y=s(72024);const w="rrweb-data";class b{#i=!1;#o=(0,g.J)((()=>(0,m.R)(47)));#a=!0;triggerHistory=[];constructor(e){this.srInstrument=e,this.ee=e.ee,this.srFeatureName=e.featureName,this.agentRef=e.agentRef,this.isErrorMode=!1,this.shouldFix=this.agentRef.init.session_replay.fix_stylesheets,this.events=new a(this.shouldFix),this.backloggedEvents=new a(this.shouldFix),this.hasSeenSnapshot=!1,this.hasSeenMeta=!1,this.lastMeta=!1,this.stopRecording=()=>{this.agentRef.runtime.isRecording=!1},(0,y.i)(f.qh,(()=>{this.#a=!1,this.stopRecording()}),this.srFeatureName,this.ee);const t=(e,t)=>{this.audit(e,t)};this.srInstrument.featAggregate?.drained?this.ee.on(w,t):(0,y.i)(w,t,this.srFeatureName,this.ee)}get trigger(){return this.triggerHistory[this.triggerHistory.length-1]}getEvents(){return{events:[...this.backloggedEvents.events,...this.events.events].filter((e=>e)),type:"standard",cycleTimestamp:Math.min(this.backloggedEvents.cycleTimestamp,this.events.cycleTimestamp),payloadBytesEstimation:this.backloggedEvents.payloadBytesEstimation+this.events.payloadBytesEstimation,hasError:this.backloggedEvents.hasError||this.events.hasError,hasMeta:this.backloggedEvents.hasMeta||this.events.hasMeta,hasSnapshot:this.backloggedEvents.hasSnapshot||this.events.hasSnapshot,inlinedAllStylesheets:!!this.backloggedEvents.events.length&&this.backloggedEvents.inlinedAllStylesheets||this.events.inlinedAllStylesheets}}clearBuffer(){this.backloggedEvents=this.isErrorMode?this.events:new a(this.shouldFix),this.events=new a(this.shouldFix)}startRecording(e,t){if(!this.#a)return;this.triggerHistory.push(e),this.isErrorMode=t===l.g.ERROR,this.stopRecording(),this.agentRef.runtime.isRecording=!0;const{block_class:s,ignore_class:n,mask_text_class:o,block_selector:a,mask_input_options:c,mask_text_selector:h,mask_all_inputs:d,inline_images:f,collect_fonts:m}=this.agentRef.init.session_replay;let g;try{g=(0,r.record)({emit:(e,t)=>{(0,u.p)(w,[e,t],void 0,this.srFeatureName,this.ee)},blockClass:s,ignoreClass:n,maskTextClass:o,blockSelector:a,maskInputOptions:c,maskTextSelector:h,maskTextFn:p.rF,maskAllInputs:d,maskInputFn:p.rF,inlineStylesheet:!0,inlineImages:f,collectFonts:m,checkoutEveryNms:i.yP[t],recordAfter:"DOMContentLoaded",slimDOMOptions:"all"})}catch(e){this.ee.emit("internal-error",[e])}this.stopRecording=()=>{this.agentRef.runtime.isRecording=!1,g?.()}}audit(e,t){const s=this.agentRef.init.session_replay.fix_stylesheets?c.m.evaluate():0,r="SessionReplay/Payload/Missing-Inline-Css/";if(!this.shouldFix)return s>0&&(this.events.inlinedAllStylesheets=!1,this.#o(),(0,u.p)(h.xV,[r+"Skipped",s],void 0,d.K7.metrics,this.ee)),this.store(e,t);!s&&this.#i&&e.type===i._s.Meta&&(this.#i=!1),s>0&&(c.m.fix().then((e=>{e>0&&(this.events.inlinedAllStylesheets=!1,this.shouldFix=!1),(0,u.p)(h.xV,[r+"Failed",e],void 0,d.K7.metrics,this.ee),(0,u.p)(h.xV,[r+"Fixed",s-e],void 0,d.K7.metrics,this.ee),this.takeFullSnapshot()})),e.type!==i._s.FullSnapshot&&e.type!==i._s.Meta||(this.#i=!0)),this.#i||this.store(e,t)}store(e,t){if(!e||this.srInstrument.featAggregate?.blocked)return;e.timestamp=this.agentRef.runtime.timeKeeper.correctAbsoluteTimestamp(e.timestamp),e.__serialized=(0,n.A)(e);const s=e.__serialized.length,r=this.getPayloadSize(s);(0,u.p)(h.xV,["rrweb/node/"+e.type+"/bytes",s],void 0,d.K7.metrics,this.ee),this.isErrorMode&&t&&e.type===i._s.Meta&&this.clearBuffer(),this.hasSeenMeta||=this.events.hasMeta||=e.type===i._s.Meta,this.hasSeenSnapshot||=this.events.hasSnapshot||=e.type===i._s.FullSnapshot,this.events.add(e,s),(this.events.hasSnapshot&&this.events.hasMeta||r>f.No)&&!this.isErrorMode&&this.agentRef.runtime.harvester.triggerHarvestFor(this.srInstrument.featAggregate)}takeFullSnapshot(){try{if(!this.agentRef.runtime.isRecording)return;r.record.takeFullSnapshot()}catch(e){}}clearTimestamps(){this.events.cycleTimestamp=void 0}getPayloadSize(e=0){return this.estimateCompression(this.events.payloadBytesEstimation+e)+i.BB}estimateCompression(e){return this.srInstrument.featAggregate?.gzipper&&this.srInstrument.featAggregate?.u8?e*i.Ug:e}}},61577:function(e,t,s){"use strict";s.d(t,{m:function(){return i}});var r=s(21966),n=s(58740);const i=new class{#l=new WeakSet;#c=[];
15invalidStylesheetsDetected=!1;failedToFix=0;evaluate(){let e=0;if(this.#c=[],n.RI)for(let t=0;t<Object.keys(document.styleSheets).length;t++)if(!this.#l.has(document.styleSheets[t])&&document.styleSheets[t]instanceof CSSStyleSheet){this.#l.add(document.styleSheets[t]);try{document.styleSheets[t].cssRules}catch(s){if(!document.styleSheets[t].href)return;e++,this.#c.push(document.styleSheets[t])}}return e&&(this.invalidStylesheetsDetected=!0),e}async fix(){await Promise.all(this.#c.map((e=>this.#u(e)))),this.#c=[];const e=this.failedToFix;return this.failedToFix=0,e}async#u(e){if(e?.href)try{const t=await(0,r.dV)().o.FETCH.bind(window)(e.href);if(!t.ok)return void this.failedToFix++;const s=await t.text();try{const t=new CSSStyleSheet;await t.replace(s),Object.defineProperty(e,"cssRules",{get(){return t.cssRules}}),Object.defineProperty(e,"rules",{get(){return t.rules}})}catch(t){Object.defineProperty(e,"cssText",{get(){return s}}),this.failedToFix++}}catch(e){this.failedToFix++}}}},72786:function(e){var t;t=()=>{var e,t={},s={exports:t},r=Object.defineProperty,n=Object.defineProperties,i=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,c=(e,t,s)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,u=(e,t)=>
15{for(var s in t||(t={}))a.call(t,s)&&c(e,s,t[s]);if(o)for(var s of o(t))l.call(t,s)&&c(e,s,t[s]);return e},h=(e,t)=>n(e,i(t)),d=(e,t)=>{var s={};for(var r in e)a.call(e,r)&&t.indexOf(r)<0&&(s[r]=e[r]);if(null!=e&&o)for(var r of o(e))t.indexOf(r)<0&&l.call(e,r)&&(s[r]=e[r]);return s},p=Object.defineProperty,f=(e,t,s)=>((e,t,s)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s)(e,"symbol"!=typeof t?t+"":t,s);Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});var m=Object.defineProperty,g=(e,t,s)=>((e,t,s)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s)(e,"symbol"!=typeof t?t+"":t,s),y=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(y||{});const w={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},b={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},v={};function S(e){if(v[e])return v[e];const t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&function(e){var t,s;const r=null==(s=null==(t=null==globalThis?void 0:globalThis.Zone)?void 0:t.__symbol__)?void 0:s.call(t,e);return r&&globalThis[r]?globalThis[r]:void 0}(e)||globalThis[e],s=t.prototype,r=e in w?w[e]:void 0,n=Boolean(r&&r.every((e=>{var t,r;return Boolean(null==(r=null==(t=Object.getOwnPropertyDescriptor(s,e))?void 0:t.get)?void 0:r.toString().includes("[native code]"))}))),i=e in b?b[e]:void 0,o=Boolean(i&&i.every((e=>{var t;return"function"==typeof s[e]&&(null==(t=s[e])?void 0:t.toString().includes("[native code]"))}))),a=n&&o;let l=t.prototype;if(!a){let t;try{t=document.createElement("iframe"),t.hidden=!0,document.body.appendChild(t);const s=t.contentWindow;if(s){const t=s[e].prototype;t&&(l=t)}}finally{t&&document.body.removeChild(t)}}return v[e]=l,l}const C={};function x(e,t,s){var r;const n=`${e}.${String(s)}`;if(C[n])return C[n].call(t);const i=S(e),o=null==(r=Object.getOwnPropertyDescriptor(i,s))?void 0:r.get;return o?(C[n]=o,o.call(t)):t[s]}const M={};function E(e,t,s){const r=`${e}.${String(s)}`;if(M[r])return M[r].bind(t);const n=S(e)[s];return"function"!=typeof n?t[s]:(M[r]=n,n.bind(t))}const k={ownerDocument:function(e){return x("Node",e,"ownerDocument")},childNodes:function(e){return x("Node",e,"childNodes")},parentNode:function(e){return x("Node",e,"parentNode")},parentElement:function(e){return x("Node",e,"parentElement")},textContent:function(e){return x("Node",e,"textContent")},contains:function(e,t){return E("Node",e,"contains")(t)},getRootNode:function(e){return E("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?x("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?x("Element",e,"shadowRoot"):null},querySelector:function(e,t){return x("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return x("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return S("MutationObserver").constructor},patch:function(e,t,s){try{if(!(t in e))return()=>{};const r=e[t],n=s(r);return"function"==typeof n&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=n,()=>{e[t]=r}}catch(e){return()=>{}}}};function I(e){return e.nodeType===e.ELEMENT_NODE}function T(e){const t=e&&"host"in e&&"mode"in e&&k.host(e)||null;return Boolean(t&&"shadowRoot"in t&&k.shadowRoot(t)===e)}function O(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function R(e){try{const s=e.rules||e.cssRules;if(!s)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);const n=Array.from(s,(e=>N(e,r))).join("");return(t=n).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(e){return null}var t}function N(e,t){if(function(e){return"styleSheet"in e}(e)){let t;try{t=R(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const s=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?s.push("layer"):e.layerName&&s.push(`layer(${e.layerName})`),e.supportsText&&s.push(`supports(${e.supportsText})`),e.media.length&&s.push(e.media.mediaText),s.join(" ")+";"}(e)}catch(s){t=e.cssText}return e.styleSheet.href?V(t,e.styleSheet.href):t}{let s=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(s=function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(s)),t?V(s,t):s}}class D{constructor(){g(this,"idNodeMap",new Map),g(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=null==(t=this.getMeta(e))?void 0:t.id;return null!=s?s:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);
vendor: 14,072 bytes, line 15
15this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const e=this.nodeMetaMap.get(s);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function A(){return new D}function L({element:e,maskInputOptions:t,tagName:s,type:r,value:n,maskInputFn:i}){let o=n||"";const a=r&&_(r);return(t[s.toLowerCase()]||a&&t[a])&&(o=i?i(o,e):"*".repeat(o.length)),o}function _(e){return e.toLowerCase()}const P="__rrweb_original__";function F(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?_(t):null}function B(e,t){var s;let r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}const n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(s=null==n?void 0:n[1])?s:null}const U=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,j=/^(?:[a-z+]+:)?\/\//i,W=/^www\..*/i,z=/^(data:)([^,]*),(.*)/i;function V(e,t){return(e||"").replace(U,((e,s,r,n,i,o)=>{const a=r||i||o,l=s||n||"";if(!a)return e;if(j.test(a)||W.test(a))return`url(${l}${a}${l})`;if(z.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${l})`;const c=t.split("/"),u=a.split("/");c.pop();for(const e of u)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`}))}function $(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function G(e,t){return function(e,t,s=!1){const r=Array.from(t.childNodes),n=[];let i=0;if(r.length>1&&e&&"string"==typeof e){let t=$(e,s);const o=t.length/e.length;for(let a=1;a<r.length;a++)if(r[a].textContent&&"string"==typeof r[a].textContent){const l=$(r[a].textContent,s),c=100;let u=3;for(;u<l.length&&(l[u].match(/[a-zA-Z0-9]/)||-1!==l.indexOf(l.substring(0,u),1));u++);for(;u<l.length;u++){let h=l.substring(0,u),d=t.split(h),p=-1;if(2===d.length)p=d[0].length;else if(d.length>2&&""===d[0]&&""!==r[a-1].textContent)p=t.indexOf(h,1);else if(1===d.length){if(h=h.substring(0,h.length-1),d=t.split(h),d.length<=1)return n.push(e),n;u=c+1}else u===l.length-1&&(p=t.indexOf(h));if(d.length>=2&&u>c){const e=r[a-1].textContent;if(e&&"string"==typeof e){const s=$(e).length;p=t.indexOf(h,s)}-1===p&&(p=d[0].length)}if(-1!==p){let a=Math.floor(p/o);for(;a>0&&a<e.length;){if(i+=1,i>50*r.length)return n.push(e),n;const l=$(e.substring(0,a),s);if(l.length===p){n.push(e.substring(0,a)),e=e.substring(a),t=t.substring(p);break}l.length<p?a+=Math.max(1,Math.floor((p-l.length)/o)):a-=Math.max(1,Math.floor((l.length-p)*o))}break}}}}return n.push(e),n}(e,t).join("/* rr_split */")}let H=1;const Y=new RegExp("[^a-z0-9-_:]");function q(){return H++}let X,J;const K=/^[^ \t\n\r\u000c]+/,Q=/^[, \t\n\r\u000c]+/,Z=new WeakMap;function ee(e,t){return t&&""!==t.trim()?se(e,t):t}function te(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function se(e,t){let s=Z.get(e);if(s||(s=e.createElement("a"),Z.set(e,s)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return s.setAttribute("href",t),s.href}function re(e,t,s,r){return r?"src"===s||"href"===s&&("use"!==t||"#"!==r[0])||"xlink:href"===s&&"#"!==r[0]||"background"===s&&["table","td","th"].includes(t)?ee(e,r):"srcset"===s?function(e,t){if(""===t.trim())return t;let s=0;function r(e){let r;const n=e.exec(t.substring(s));return n?(r=n[0],s+=r.length,r):""}const n=[];for(;r(Q),!(s>=t.length);){let i=r(K);if(","===i.slice(-1))i=ee(e,i.substring(0,i.length-1)),n.push(i);else{let r="";i=ee(e,i);let o=!1;for(;;){const e=t.charAt(s);if(""===e){n.push((i+r).trim());break}if(o)")"===e&&(o=!1);else{if(","===e){s+=1,n.push((i+r).trim());break}"("===e&&(o=!0)}r+=e,s+=1}}}return n.join(", ")}(e,r):"style"===s?V(r,se(e)):"object"===t&&"data"===s?ee(e,r):r:r}function ne(e,t,s){return["video","audio"].includes(e)&&"autoplay"===t}function ie(e,t,s){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!s&&ie(k.parentNode(e),t,s);for(let s=e.classList.length;s--;){const r=e.classList[s];if(t.test(r))return!0}return!!s&&ie(k.parentNode(e),t,s)}function oe(e,t,s,r){let n;if(I(e)){if(n=e,!k.childNodes(n).length)return!1}else{if(null===k.parentElement(e))return!1;n=k.parentElement(e)}try{if("string"==typeof t){if(r){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(ie(n,t,r))return!0;if(s)if(r){if(n.closest(s))return!0}else if(n.matches(s))return!0}catch(e){}return!1}function ae(e,t){const{doc:s,mirror:r,blockClass:n,blockSelector:i,needsMask:o,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:c,maskInputFn:u,dataURLOptions:h={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:m=!1,cssCaptured:g=!1}=t,w=function(e,t){if(!t.hasNode(e))return;const s=t.getId(e);return 1===s?void 0:s}(s,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:y.Document,childNodes:[],compatMode:e.compatMode}:{type:y.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:y.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){const{doc:s,blockClass:r,blockSelector:n,inlineStylesheet:i,maskInputOptions:o={},maskInputFn:a,dataURLOptions:l={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:h,newlyAddedElement:d=!1,rootId:p}=t,f=function(e,t,s){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const r=e.classList[s];if(t.test(r))return!0}if(s)return e.matches(s)}catch(e){}return!1}(e,r,n),m=function(e){if(e instanceof HTMLFormElement)return"form";const t=_(e.tagName);return Y.test(t)?"div":t}(e);let g={};const w=e.attributes.length;for(let t=0;t<w;t++){const r=e.attributes[t];ne(m,r.name,r.value)||(g[r.name]=re(s,m,_(r.name),r.value))}if("link"===m&&i){const t=Array.from(s.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=R(t)),r&&(delete g.rel,delete g.href,g._cssText=r)}if("style"===m&&e.sheet){let t=R(e.sheet);t&&(e.childNodes.length>1&&(t=G(t,e)),g._cssText=t)}if(["input","textarea","select"].includes(m)){const t=e.value,s=e.checked;"radio"!==g.type&&"checkbox"!==g.type&&"submit"!==g.type&&"button"!==g.type&&t?g.value=L({element:e,type:F(e),tagName:m,value:t,maskInputOptions:o,maskInputFn:a}):s&&(g.checked=s)}if("option"===m&&(e.selected&&!o.select?g.selected=!0:delete g.selected),"dialog"===m&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===m&&u)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let s=0;s<e.width;s+=50)for(let r=0;r<e.height;r+=50){const n=t.getImageData,i=P in n?n[P]:n;if(new Uint32Array(i.call(t,s,r,Math.min(50,e.width-s),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(g.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),r=s.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(l.type,l.quality)&&(g.rr_dataURL=t)}if("img"===m&&c){X||(X=s.createElement("canvas"),J=X.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",n=t.crossOrigin,i=()=>{t.removeEventListener("load",i);try{X.width=t.naturalWidth,X.height=t.naturalHeight,J.drawImage(t,0,0),g.rr_dataURL=X.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(n?g.crossOrigin=n:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}if(["audio","video"].includes(m)){const t=g;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}if(d||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),f){const{width:t,height:s}=e.getBoundingClientRect();g={class:g.class,rr_width:`${t}px`,rr_height:`${s}px`}}let b;"iframe"!==m||h(g.src)||(e.contentDocument||(g.rr_src=g.src),delete g.src);try{customElements.get(m)&&(b=!0)}catch(e){}return{type:y.Element,tagName:m,attributes:g,childNodes:[],isSVG:te(e)||void 0,needBlock:f,rootId:p,isCustom:b}}(e,{doc:s,blockClass:n,blockSelector:i,inlineStylesheet:a,maskInputOptions:l,maskInputFn:u,dataURLOptions:h,inlineImages:d,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:m,rootId:w});case e.TEXT_NODE:return function(e,t){const{needsMask:s,maskTextFn:r,rootId:n,cssCaptured:i}=t,o=k.parentNode(e),a=o&&o.tagName;let l="";const c="STYLE"===a||void 0,u="SCRIPT"===a||void 0;return u?l="SCRIPT_PLACEHOLDER":i||(l=k.textContent(e),c&&l&&(l=V(l,se(t.doc)))),!c&&!u&&l&&s&&(l=r?r(l,k.parentElement(e)):l.replace(/[\S]/g,"*")),{type:y.Text,textContent:l||"",rootId:n}}(e,{doc:s,needsMask:o,maskTextFn:c,rootId:w,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:y.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:y.Comment,textContent:k.textContent(e)||"",rootId:w};default:return!1}}function le(e){return null==e?"":e.toLowerCase()}function ce(e){return!0===e||"all"===e?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===e,headMetaDescKeywords:"all"===e,headTitleMutations:"all"===e}:e||{}}function ue(e,t){const{doc:s,mirror:r,blockClass:n,blockSelector:i,maskTextClass:o,maskTextSelector:a,skipChild:l=!1,inlineStylesheet:c=!0,maskInputOptions:u={},maskTextFn:h,maskInputFn:d,slimDOMOptions:p,dataURLOptions:f={},inlineImages:m=!1,recordCanvas:g=!1,onSerialize:w,onIframeLoad:b,iframeLoadTimeout:v=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:x=()=>!1,newlyAddedElement:M=!1,cssCaptured:E=!1}=t;let{needsMask:R}=t,{preserveWhiteSpace:N=!0}=t;R||(R=oe(e,o,a,void 0===R));const D=ae(e,{doc:s,mirror:r,blockClass:n,blockSelector:i,needsMask:R,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:d,dataURLOptions:f,inlineImages:m,recordCanvas:g,keepIframeSrcFn:x,newlyAddedElement:M,cssCaptured:E});if(!D)return console.warn(e,"not serialized"),null;let A;A=r.hasNode(e)?r.getId(e):function(e,t){if(t.comment&&e.type===y.Comment)return!0;if(e.type===y.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===B(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(le(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===le(e.attributes.name)||"icon"===le(e.attributes.rel)||"apple-touch-icon"===le(e.attributes.rel)||"shortcut icon"===le(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&le(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(le(e.attributes.property).match(/^(og|twitter|fb):/)||le(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===le(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===le(e.attributes.name)||"googlebot"===le(e.attributes.name)||"bingbot"===le(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===le(e.attributes.name)||"generator"===le(e.attributes.name)||"framework"===le(e.attributes.name)||"publisher"===le(e.attributes.name)||"progid"===le(e.attributes.name)||le(e.attributes.property).match(/^article:/)||le(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===le(e.attributes.name)||"yandex-verification"===le(e.attributes.name)||"csrf-token"===le(e.attributes.name)||"p:domain_verify"===le(e.attributes.name)||"verify-v1"===le(e.attributes.name)||"verification"===le(e.attributes.name)||"shopify-checkout-api-token"===le(e.attributes.name)))return!0}}return!1}(D,p)||!N&&D.type===y.Text&&!D.textContent.replace(/^\s+|\s+$/gm,"").length?-2:q();const L=Object.assign(D,{id:A});if(r.add(e,L),-2===A)return null;w&&w(e);let _=!l;if(L.type===y.Element){_=_&&!L.needBlock,delete L.needBlock;const t=k.shadowRoot(e);t&&O(t)&&(L.isShadowHost=!0)}if((L.type===y.Document||L.type===y.Element)&&_){p.headWhitespace&&L.type===y.Element&&"head"===L.tagName&&(N=!1);const t={doc:s,mirror:r,blockClass:n,blockSelector:i,needsMask:R,maskTextClass:o,maskTextSelector:a,skipChild:l,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:d,slimDOMOptions:p,dataURLOptions:f,inlineImages:m,recordCanvas:g,preserveWhiteSpace:N,onSerialize:w,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:C,keepIframeSrcFn:x,cssCaptured:!1};if(L.type===y.Element&&"textarea"===L.tagName&&void 0!==L.attributes.value);else{L.type===y.Element&&void 0!==L.attributes._cssText&&"string"==typeof L.attributes._cssText&&(t.cssCaptured=!0);for(const s of Array.from(k.childNodes(e))){const e=ue(s,t);e&&L.childNodes.push(e)}}let M=null;if(I(e)&&(M=k.shadowRoot(e)))for(const e of Array.from(k.childNodes(M))){const s=ue(e,t);s&&(O(M)&&(s.isShadow=!0),L.childNodes.push(s))}}const P=k.parentNode(e);return P&&T(P)&&O(P)&&(L.isShadow=!0),L.type===y.Element&&"iframe"===L.tagName&&function(e,t,s){const r=e.contentWindow;if(!r)return;let n,i=!1;try{n=r.document.readyState}catch(e){return}if("complete"!==n){const r=setTimeout((()=>{i||(t(),i=!0)}),s);return void e.addEventListener("load",(()=>{clearTimeout(r),i=!0,t()}))}const o="about:blank";if(r.location.href!==o||e.src===o||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;
15if(t&&b){const s=ue(t,{doc:t,mirror:r,blockClass:n,blockSelector:i,needsMask:R,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:d,slimDOMOptions:p,dataURLOptions:f,inlineImages:m,recordCanvas:g,preserveWhiteSpace:N,onSerialize:w,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:C,keepIframeSrcFn:x});s&&b(e,s)}}),v),L.type===y.Element&&"link"===L.tagName&&"string"==typeof L.attributes.rel&&("stylesheet"===L.attributes.rel||"preload"===L.attributes.rel&&"string"==typeof L.attributes.href&&"css"===B(L.attributes.href))&&function(e,t,s){let r,n=!1;try{r=e.sheet}catch(e){return}if(r)return;const i=setTimeout((()=>{n||(t(),n=!0)}),s);e.addEventListener("load",(()=>{clearTimeout(i),n=!0,t()}))}(e,(()=>{if(S){const t=ue(e,{doc:s,mirror:r,blockClass:n,blockSelector:i,needsMask:R,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:d,slimDOMOptions:p,dataURLOptions:f,inlineImages:m,recordCanvas:g,preserveWhiteSpace:N,onSerialize:w,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:C,keepIframeSrcFn:x});t&&S(e,t)}}),C),L}const he=new RegExp(/(max|min)-device-(width|height)/.source,"g"),de={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(he)&&(e.params=e.params.replace(he,"$1-$2"))}}}},pe={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){-1===e.indexOf(t)&&(e.push(t),t.selectors.forEach((function(e){e.includes(":hover")&&(t.selector+=",\n"+e.replace(/:hover/g,".\\:hover"))})))}}}};function fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function me(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var s=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),s}var ge,ye={exports:{}};function we(){if(ge)return ye.exports;ge=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return ye.exports=t(),ye.exports.createColors=t,ye.exports}const be=me(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var ve,Se;function Ce(){if(Se)return ve;Se=1;let e=we(),t=be;class s extends Error{constructor(e,t,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let r=this.source;null==s&&(s=e.isColorSupported),t&&s&&(r=t(r));let n,i,o=r.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),c=String(l).length;if(s){let{bold:t,gray:s,red:r}=e.createColors(!0);n=e=>t(r(e)),i=e=>s(e)}else n=i=e=>e;return o.slice(a,l).map(((e,t)=>{let s=a+1+t,r=" "+(" "+s).slice(-c)+" | ";if(s===this.line){let t=i(r.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+i(r)+e+"\n "+t+n("^")}return" "+i(r)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}return ve=s,s.default=s,ve}var xe,Me,Ee,ke,Ie,Te,Oe,Re,Ne,De,Ae,Le,_e,Pe,Fe,Be,Ue,je,We,ze,Ve,$e,Ge,He,Ye,qe,Xe,Je,Ke,Qe,Ze,et,tt,st,rt,nt,it,ot,at,lt,ct,ut,ht,dt,pt,ft,mt,gt,yt,wt,bt,vt,St,Ct={};
vendor: 25,114 bytes, line 15
15function xt(){return xe||(xe=1,Ct.isClean=Symbol("isClean"),Ct.my=Symbol("my")),Ct}function Mt(){if(Ee)return Me;Ee=1;const e={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class t{constructor(e){this.builder=e}atrule(e,t){let s="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?s+=e.raws.afterName:r&&(s+=" "),e.nodes)this.block(e,s+r);else{let n=(e.raws.between||"")+(t?";":"");this.builder(s+r+n,e)}}beforeAfter(e,t){let s;s="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,n=0;for(;r&&"root"!==r.type;)n+=1,r=r.parent;if(s.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)s+=t}return s}block(e,t){let s,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let s=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let n=e.nodes[r],i=this.raw(n,"before");i&&this.builder(i),this.stringify(n,t!==r||s)}}comment(e){let t=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+s+"*/",e)}decl(e,t){let s=this.raw(e,"between","colon"),r=e.prop+s+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(t,s,r){let n;if(r||(r=s),s&&(n=t.raws[s],void 0!==n))return n;let i=t.parent;if("before"===r){if(!i||"root"===i.type&&i.first===t)return"";if(i&&"document"===i.type)return""}if(!i)return e[r];let o=t.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(t,r);{let e="raw"+((a=r)[0].toUpperCase()+a.slice(1));this[e]?n=this[e](o,t):o.walk((e=>{if(n=e.raws[s],void 0!==n)return!1}))}var a;return void 0===n&&(n=e[r]),o.rawCache[r]=n,n}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let s;return e.walkComments((e=>{if(void 0!==e.raws.before)return s=e.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1})),void 0===s?s=this.raw(t,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(e,t){let s;return e.walkDecls((e=>{if(void 0!==e.raws.before)return s=e.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1})),void 0===s?s=this.raw(t,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((s=>{if(s.nodes&&(s.parent!==e||e.first!==s)&&void 0!==s.raws.before)return t=s.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((s=>{let r=s.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==s.raws.before){let e=s.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let s=e[t],r=e.raws[t];return r&&r.value===s?r.raw:s}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}return Me=t,t.default=t,Me}function Et(){if(Ie)return ke;Ie=1;let e=Mt();function t(t,s){new e(s).stringify(t)}return ke=t,t.default=t,ke}function kt(){if(Oe)return Te;Oe=1;let{isClean:e,my:t}=xt(),s=Ce(),r=Mt(),n=Et();function i(e,t){let s=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let n=e[r],o=typeof n;"parent"===r&&"object"===o?t&&(s[r]=t):"source"===r?s[r]=n:Array.isArray(n)?s[r]=n.map((e=>i(e,s))):("object"===o&&null!==n&&(n=i(n)),s[r]=n)}return s}class o{constructor(s={}){this.raws={},this[e]=!1,this[t]=!0;for(let e in s)if("nodes"===e){this.nodes=[];for(let t of s[e])"function"==typeof t.clone?this.append(t.clone()):this.append(t)}else this[e]=s[e]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=i(this);for(let s in e)t[s]=e[s];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:s,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:s.column,line:s.line},t)}return new s(e)}getProxyProcessor(){return{get(e,t){return"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]},set(e,t,s){return e[t]===s||(e[t]=s,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let t=this;for(;t=t.parent;)t[e]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let s=this.source.start;if(e.index)s=this.positionInside(e.index,t);else if(e.word){let r=(t=this.toString()).indexOf(e.word);-1!==r&&(s=this.positionInside(r,t))}return s}positionInside(e,t){let s=t||this.toString(),r=this.source.start.column,n=this.source.start.line;for(let t=0;t<e;t++)"\n"===s[t]?(r=1,n+=1):r+=1;return{column:r,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),n=r.indexOf(e.word);-1!==n&&(t=this.positionInside(n,r),s=this.positionInside(n+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<t.line||s.line===t.line&&s.column<=t.column)&&(s={column:t.column+1,line:t.line}),{end:s,start:t}}raw(e,t){return(new r).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,s=!1;for(let r of e)r===this?s=!0:s?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);s||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let s={},r=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))s[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)s[e]=r.toJSON(null,t);else if("source"===e){let i=t.get(r.input);null==i&&(i=n,t.set(r.input,n),n++),s[e]={end:r.end,inputId:i,start:r.start}}else s[e]=r}return r&&(s.inputs=[...t.keys()].map((e=>e.toJSON()))),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=n){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,s){let r={node:this};for(let e in s)r[e]=s[e];return e.warn(t,r)}get proxyOf(){return this}}return Te=o,o.default=o,Te}function It(){if(Ne)return Re;Ne=1;let e=kt();class t extends e{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e=h(u({},e),{value:String(e.value)})),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}return Re=t,t.default=t,Re}function Tt(){return Ae?De:(Ae=1,De={nanoid:(e=21)=>{let t="",s=e;for(;s--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(s=t)=>{let r="",n=s;for(;n--;)r+=e[Math.random()*e.length|0];return r}})}function Ot(){if(_e)return Le;_e=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=be,{existsSync:s,readFileSync:r}=be,{dirname:n,join:i}=be;class o{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let s=t.map?t.map.prev:void 0,r=this.loadMap(t.from,s);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=n(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let s=e.lastIndexOf(t.pop()),r=e.indexOf("*/",s);s>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,r)))}loadFile(e){if(this.root=n(e),s(e))return this.mapFile=e,r(e,"utf-8").toString().trim()}loadMap(s,r){if(!1===r)return!1;if(r){if("string"==typeof r)return r;if("function"!=typeof r){if(r instanceof e)return t.fromSourceMap(r).toString();if(r instanceof t)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}{let e=r(s);if(e){let t=this.loadFile(e);if(!t)throw new Error("Unable to load previous source map: "+e.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;return s&&(e=i(n(s),e)),this.loadFile(e)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Le=o,o.default=o,Le}function Rt(){if(Fe)return Pe;Fe=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=be,{fileURLToPath:s,pathToFileURL:r}=be,{isAbsolute:n,resolve:i}=be,{nanoid:o}=Tt(),a=be,l=Ce(),c=Ot(),h=Symbol("fromOffsetCache"),d=Boolean(e&&t),p=Boolean(i&&n);class f{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!p||/^\w+:\/\//.test(t.from)||n(t.from)?this.file=t.from:this.file=i(t.from)),p&&d){let e=new c(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,s,n={}){let i,o,a;if(t&&"object"==typeof t){let e=t,r=s;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,s=r.col}else t=e.line,s=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);o=e.line,a=e.col}else o=r.line,a=r.column}else if(!s){let e=this.fromOffset(t);t=e.line,s=e.col}let c=this.origin(t,s,o,a);return i=c?new l(e,void 0===c.endLine?c.line:{column:c.column,line:c.line},void 0===c.endLine?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,n.plugin):new l(e,void 0===o?t:{column:s,line:t},void 0===o?s:{column:a,line:o},this.css,this.file,n.plugin),i.input={column:s,endColumn:a,endLine:o,line:t,source:this.css},this.file&&(r&&(i.input.url=r(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,s;if(this[h])s=this[h];else{let e=this.css.split("\n");s=new Array(e.length);let t=0;for(let r=0,n=e.length;r<n;r++)s[r]=t,t+=e[r].length+1;this[h]=s}t=s[s.length-1];let r=0;if(e>=t)r=s.length-1;else{let t,n=s.length-2;for(;r<n;)if(t=r+(n-r>>1),e<s[t])n=t-1;else{if(!(e>=s[t+1])){r=t;break}r=t+1}}return{col:e-s[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,o){if(!this.map)return!1;let a,l,c=this.map.consumer(),u=c.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof i&&(a=c.originalPositionFor({column:o,line:i})),l=n(u.source)?r(u.source):new URL(u.source,this.map.consumer().sourceRoot||r(this.map.mapFile));let h={column:u.column,endColumn:a&&a.column,endLine:a&&a.line,line:u.line,url:l.toString()};if("file:"===l.protocol){if(!s)throw new Error("file: protocol is not available in this PostCSS build");h.file=s(l)}let d=c.sourceContentFor(u.source);return d&&(h.source=d),h}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map=u({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}return Pe=f,f.default=f,a&&a.registerInput&&a.registerInput(f),Pe}function Nt(){if(Ue)return Be;Ue=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=be,{dirname:s,relative:r,resolve:n,sep:i}=be,{pathToFileURL:o}=be,a=Rt(),l=Boolean(e&&t),c=Boolean(s&&n&&r&&i);return Be=class{constructor(e,t,s,r){this.stringify=e,this.mapOpts=s.map||{},this.root=t,this.opts=s,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let t of this.previous()){let r,n=this.toUrl(this.path(t.file)),i=t.root||s(t.file);!1===this.mapOpts.sourcesContent?(r=new e(t.text),r.sourcesContent&&(r.sourcesContent=null)):r=t.consumer(),this.map.applySourceMap(r,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&l&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=t.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let e,s,r=1,n=1,i="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((t,a,l)=>{if(this.css+=t,a&&"end"!==l&&(o.generated.line=r,o.generated.column=n-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),e=t.match(/\n/g),e?(r+=e.length,s=t.lastIndexOf("\n"),n=t.length-s):n+=t.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=r,o.generated.column=n-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=r,o.generated.column=n-1,this.map.addMapping(o)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?s(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(i=s(n(i,this.mapOpts.annotation)));let o=r(i,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new a(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let s=t.source.input.from;if(s&&!e[s]){e[s]=!0;let r=this.usesFileUrls?this.toFileUrl(s):this.toUrl(this.path(s));this.map.setSourceContent(r,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(o){let t=o(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===i&&(e=e.replace(/\\/g,"/"));let s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s}}}function Dt(){if(We)return je;We=1;let e=kt();class t extends e{constructor(e){super(e),this.type="comment"}}return je=t,t.default=t,je}function At(){if(Ve)return ze;Ve=1;let e,t,s,r,{isClean:n,my:i}=xt(),o=It(),a=Dt(),l=kt();function c(e){return e.map((e=>(e.nodes&&(e.nodes=c(e.nodes)),delete e.source,e)))}function u(e){if(e[n]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)u(t)}class h extends l{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,s,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],s=e(this.proxyOf.nodes[t],t),!1!==s);)this.indexes[r]+=1;return delete this.indexes[r],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...s)=>e[t](...s.map((e=>"function"==typeof e?(t,s)=>e(t.toProxy(),s):e))):"every"===t||"some"===t?s=>e[t](((e,...t)=>s(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set(e,t,s){return e[t]===s||(e[t]=s,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let s,r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of n)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)s=this.indexes[e],r<s&&(this.indexes[e]=s+n.length);return this.markDirty(),this}insertBefore(e,t){let s,r=this.index(e),n=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)s=this.indexes[e],r<=s&&(this.indexes[e]=s+i.length);return this.markDirty(),this}normalize(r,l){if("string"==typeof r)r=c(e(r).nodes);else if(void 0===r)r=[];else if(Array.isArray(r)){r=r.slice(0);for(let e of r)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===r.type&&"document"!==this.type){r=r.nodes.slice(0);for(let e of r)e.parent&&e.parent.removeChild(e,"ignore")}else if(r.type)r=[r];else if(r.prop){if(void 0===r.value)throw new Error("Value field is missed in node creation");"string"!=typeof r.value&&(r.value=String(r.value)),r=[new o(r)]}else if(r.selector)r=[new t(r)];else if(r.name)r=[new s(r)];else{if(!r.text)throw new Error("Unknown node type in node creation");r=[new a(r)]}return r.map((e=>(e[i]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[n]&&u(e),void 0===e.raws.before&&l&&void 0!==l.raws.before&&(e.raws.before=l.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let s in this.indexes)t=this.indexes[s],t>=e&&(this.indexes[s]=t-1);return this.markDirty(),this}replaceValues(e,t,s){return s||(s=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,s))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,s)=>{let r;try{r=e(t,s)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((s,r)=>{if("atrule"===s.type&&e.test(s.name))return t(s,r)})):this.walk(((s,r)=>{if("atrule"===s.type&&s.name===e)return t(s,r)})):(t=e,this.walk(((e,s)=>{if("atrule"===e.type)return t(e,s)})))}walkComments(e){return this.walk(((t,s)=>{if("comment"===t.type)return e(t,s)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((s,r)=>{if("decl"===s.type&&e.test(s.prop))return t(s,r)})):this.walk(((s,r)=>{if("decl"===s.type&&s.prop===e)return t(s,r)})):(t=e,this.walk(((e,s)=>{if("decl"===e.type)return t(e,s)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((s,r)=>{if("rule"===s.type&&e.test(s.selector))return t(s,r)})):this.walk(((s,r)=>{if("rule"===s.type&&s.selector===e)return t(s,r)})):(t=e,this.walk(((e,s)=>{if("rule"===e.type)return t(e,s)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return h.registerParse=t=>{e=t},h.registerRule=e=>{t=e},h.registerAtRule=e=>{s=e},h.registerRoot=e=>{r=e},ze=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,s.prototype):"rule"===e.type?Object.setPrototypeOf(e,t.prototype):"decl"===e.type?Object.setPrototypeOf(e,o.prototype):"comment"===e.type?Object.setPrototypeOf(e,a.prototype):"root"===e.type&&Object.setPrototypeOf(e,r.prototype),e[i]=!0,e.nodes&&e.nodes.forEac
15h((e=>{h.rebuild(e)}))},ze}function Lt(){if(Ge)return $e;Ge=1;let e,t,s=At();class r extends s{constructor(e){super(u({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(s={}){return new e(new t,this,s).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=e=>{t=e},$e=r,r.default=r,$e}function _t(){if(Ye)return He;Ye=1;let e={};return He=function(t){e[t]||(e[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))}}function Pt(){if(Xe)return qe;Xe=1;class e{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return qe=e,e.default=e,qe}function Ft(){if(Ke)return Je;Ke=1;let e=Pt();class t{constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new e(t,s);return this.messages.push(r),r}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}return Je=t,t.default=t,Je}function Bt(){if(tt)return et;tt=1;let e=At();class t extends e{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}return et=t,t.default=t,e.registerAtRule(t),et}function Ut(){if(rt)return st;rt=1;let e,t,s=At();class r extends s{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,s){let r=super.normalize(e);if(t)if("prepend"===s)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let s=this.index(e);return!t&&0===s&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}toResult(s={}){return new e(new t,this,s).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=e=>{t=e},st=r,r.default=r,s.registerRoot(r),st}function jt(){if(it)return nt;it=1;let e={comma(t){return e.split(t,[","],!0)},space(t){return e.split(t,[" ","\n","\t"])},split(e,t,s){let r=[],n="",i=!1,o=0,a=!1,l="",c=!1;for(let s of e)c?c=!1:"\\"===s?c=!0:a?s===l&&(a=!1):'"'===s||"'"===s?(a=!0,l=s):"("===s?o+=1:")"===s?o>0&&(o-=1):0===o&&t.includes(s)&&(i=!0),i?(""!==n&&r.push(n.trim()),n="",i=!1):n+=s;return(s||""!==n)&&r.push(n.trim()),r}};return nt=e,e.default=e,nt}function Wt(){if(at)return ot;at=1;let e=At(),t=jt();class s extends e{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,s=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}}return ot=s,s.default=s,e.registerRule(s),ot}function zt(){if(ct)return lt;ct=1;let e=It(),t=function(){if(Ze)return Qe;Ze=1;const e="'".charCodeAt(0),t='"'.charCodeAt(0),s="\\".charCodeAt(0),r="/".charCodeAt(0),n="\n".charCodeAt(0),i=" ".charCodeAt(0),o="\f".charCodeAt(0),a="\t".charCodeAt(0),l="\r".charCodeAt(0),c="[".charCodeAt(0),u="]".charCodeAt(0),h="(".charCodeAt(0),d=")".charCodeAt(0),p="{".charCodeAt(0),f="}".charCodeAt(0),m=";".charCodeAt(0),g="*".charCodeAt(0),y=":".charCodeAt(0),w="@".charCodeAt(0),b=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,S=/.[\r\n"'(/\\]/,C=/[\da-f]/i;return Qe=function(x,M={}){let E,k,I,T,O,R,N,D,A,L,_=x.css.valueOf(),P=M.ignoreErrors,F=_.length,B=0,U=[],j=[];function W(e){throw x.error("Unclosed "+e,B)}return{back:function(e){j.push(e)},endOfFile:function(){return 0===j.length&&B>=F},nextToken:function(x){if(j.length)return j.pop();if(B>=F)return;let M=!!x&&x.ignoreUnclosed;switch(E=_.charCodeAt(B),E){case n:case i:case a:case l:case o:k=B;do{k+=1,E=_.charCodeAt(k)}while(E===i||E===n||E===a||E===l||E===o);L=["space",_.slice(B,k)],B=k-1;break;case c:case u:case p:case f:case y:case m:case d:{let e=String.fromCharCode(E);L=[e,e,B];break}case h:if(D=U.length?U.pop()[1]:"",A=_.charCodeAt(B+1),"url"===D&&A!==e&&A!==t&&A!==i&&A!==n&&A!==a&&A!==o&&A!==l){k=B;do{if(R=!1,k=_.indexOf(")",k+1),-1===k){if(P||M){k=B;break}W("bracket")}for(N=k;_.charCodeAt(N-1)===s;)N-=1,R=!R}while(R);L=["brackets",_.slice(B,k+1),B,k],B=k}else k=_.indexOf(")",B+1),T=_.slice(B,k+1),-1===k||S.test(T)?L=["(","(",B]:(L=["brackets",T,B,k],B=k);break;case e:case t:I=E===e?"'":'"',k=B;do{if(R=!1,k=_.indexOf(I,k+1),-1===k){if(P||M){k=B+1;break}W("string")}for(N=k;_.charCodeAt(N-1)===s;)N-=1,R=!R}while(R);L=["string",_.slice(B,k+1),B,k],B=k;break;case w:b.lastIndex=B+1,b.test(_),k=0===b.lastIndex?_.length-1:b.lastIndex-2,
vendor: 5,803 bytes, line 15
15L=["at-word",_.slice(B,k+1),B,k],B=k;break;case s:for(k=B,O=!0;_.charCodeAt(k+1)===s;)k+=1,O=!O;if(E=_.charCodeAt(k+1),O&&E!==r&&E!==i&&E!==n&&E!==a&&E!==l&&E!==o&&(k+=1,C.test(_.charAt(k)))){for(;C.test(_.charAt(k+1));)k+=1;_.charCodeAt(k+1)===i&&(k+=1)}L=["word",_.slice(B,k+1),B,k],B=k;break;default:E===r&&_.charCodeAt(B+1)===g?(k=_.indexOf("*/",B+2)+1,0===k&&(P||M?k=_.length:W("comment")),L=["comment",_.slice(B,k+1),B,k],B=k):(v.lastIndex=B+1,v.test(_),k=0===v.lastIndex?_.length-1:v.lastIndex-2,L=["word",_.slice(B,k+1),B,k],U.push(L),B=k)}return B++,L},position:function(){return B}}}}(),s=Dt(),r=Bt(),n=Ut(),i=Wt();const o={empty:!0,space:!0};return lt=class{constructor(e){this.input=e,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,s,n,i=new r;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(n=l.length-1,s=l[n];s&&"space"===s[0];)s=l[--n];s&&(i.source.end=this.getPosition(s[3]||s[2]),i.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),o&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let s,r=0;for(let n=t-1;n>=0&&(s=e[n],"space"===s[0]||(r+=1,2!==r));n--);throw this.input.error("Missed semicolon","word"===s[0]?s[3]+1:s[2])}colon(e){let t,s,r,n=0;for(let[i,o]of e.entries()){if(t=o,s=t[0],"("===s&&(n+=1),")"===s&&(n-=1),0===n&&":"===s){if(r){if("word"===r[0]&&"progid"===r[1])continue;return i}this.doubleColon(t)}r=t}return!1}comment(e){let t=new s;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(t,s){let r=new e;this.init(r,t[0][2]);let n,i=t[t.length-1];for(";"===i[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(let t=e.length-1;t>=0;t--){let s=e[t],r=s[3]||s[2];if(r)return r}}(t)),r.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(n=t.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o,a=[];for(;t.length&&(o=t[0][0],"space"===o||"comment"===o);)a.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(n=t[e],"!important"===n[1].toLowerCase()){r.important=!0;let s=this.stringFrom(t,e);s=this.spacesFromEnd(t)+s," !important"!==s&&(r.raws.important=s);break}if("important"===n[1].toLowerCase()){let s=t.slice(0),n="";for(let t=e;t>0;t--){let e=s[t][0];if(0===n.trim().indexOf("!")&&"space"!==e)break;n=s.pop()[1]+n}0===n.trim().indexOf("!")&&(r.important=!0,r.raws.important=n,t=s)}if("space"!==n[0]&&"comment"!==n[0])break}t.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(r.raws.between+=a.map((e=>e[1])).join(""),a=[]),this.raw(r,"value",a.concat(t),s),r.value.includes(":")&&!s&&this.checkMissedSemicolon(t)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new i;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,s=null,r=!1,n=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(s=l[0],a.push(l),"("===s||"["===s)n||(n=l),i.push("("===s?")":"]");else if(o&&r&&"{"===s)n||(n=l),i.push("}");else if(0===i.length){if(";"===s){if(r)return void this.decl(a,o);break}if("{"===s)return void this.rule(a);if("}"===s){this.tokenizer.back(a.pop()),t=!0;break}":"===s&&(r=!0)}else s===i[i.length-1]&&(i.pop(),0===i.length&&(n=null));l=this.tokenizer.nextToken()}
vendor: 4,814 bytes, line 15
15if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(n),t&&r){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,s,r){let n,i,a,l,c=s.length,u="",h=!0;for(let e=0;e<c;e+=1)n=s[e],i=n[0],"space"!==i||e!==c-1||r?"comment"===i?(l=s[e-1]?s[e-1][0]:"empty",a=s[e+1]?s[e+1][0]:"empty",o[l]||o[a]||","===u.slice(-1)?h=!1:u+=n[1]):u+=n[1]:h=!1;if(!h){let r=s.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new i;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let t,s="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)s+=e.shift()[1];return s}spacesFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)s=e.pop()[1]+s;return s}stringFrom(e,t){let s="";for(let r=t;r<e.length;r++)s+=e[r][1];return e.splice(t,e.length-t),s}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}}function Vt(){if(ht)return ut;ht=1;let e=At(),t=zt(),s=Rt();function r(e,r){let n=new s(e,r),i=new t(n);try{i.parse()}catch(e){throw"CssSyntaxError"===e.name&&r&&r.from&&(/\.scss$/i.test(r.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(r.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(r.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return i.root}return ut=r,r.default=r,e.registerParse(r),ut}function $t(){if(pt)return dt;pt=1;let{isClean:e,my:t}=xt(),s=Nt(),r=Et(),n=At(),i=Lt(),o=_t(),a=Ft(),l=Vt(),c=Ut();const d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0};function m(e){return"object"==typeof e&&"function"==typeof e.then}function g(e){let t=!1,s=d[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[s,s+"-"+t,0,s+"Exit",s+"Exit-"+t]:t?[s,s+"-"+t,s+"Exit",s+"Exit-"+t]:e.append?[s,0,s+"Exit"]:[s,s+"Exit"]}function y(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:g(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function w(t){return t[e]=!1,t.nodes&&t.nodes.forEach((e=>w(e))),t}let b={};class v{constructor(e,s,r){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof s||null===s||"root"!==s.type&&"document"!==s.type)if(s instanceof v||s instanceof a)i=w(s.root),s.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=s.map);else{let e=l;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{i=e(s,r)}catch(e){this.processed=!0,this.error=e}i&&!i[t]&&n.rebuild(i)}else i=w(s);this.result=new a(e,i,r),this.helpers=h(u({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?u(u({},e),e.prepare(this.result)):e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let s=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(s.postcssVersion){let e=s.postcssPlugin,t=s.postcssVersion,r=this.result.processor.ver
vendor: 4,281 bytes, line 15
15sion,n=t.split("."),i=r.split(".");(n[0]!==i[0]||parseInt(n[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+r+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=s.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,s)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,s])};for(let t of this.plugins)if("object"==typeof t)for(let s in t){if(!p[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[s])if("object"==typeof t[s])for(let r in t[s])e(t,"*"===r?s:s+"-"+r.toLowerCase(),t[s][r]);else"function"==typeof t[s]&&e(t,s,t[s])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],s=this.runOnRoot(t);if(m(s))try{await s}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];){t[e]=!0;let s=[y(t)];for(;s.length>0;){let e=this.visitTick(s);if(m(e))try{await e}catch(e){let t=s[s.length-1].node;throw this.handleError(e,t)}}}if(this.listeners.OnceExit)for(let[e,s]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map((e=>s(e,this.helpers)));await Promise.all(e)}else await s(t,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return m(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=r;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new s(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(m(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];)t[e]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(e,t){return"from"in this.opts||o("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[s,r]of e){let e;this.result.lastPlugin=s;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(m(e))throw this.getAsyncError()}}visitTick(t){let s=t[t.length-1],{node:r,visitors:n}=s;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void t.pop();if(n.length>0&&s.visitorIndex<n.length){let[e,t]=n[s.visitorIndex];s.visitorIndex+=1,s.visitorIndex===n.length&&(s.visitors=[],s.visitorIndex=0),this.result.lastPlugin=e;try{return t(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==s.iterator){let n,i=s.iterator;for(;n=r.nodes[r.indexes[i]];)if(r.indexes[i]+=1,!n[e])return n[e]=!0,void t.push(y(n));s.iterator=0,delete r.indexes[i]}let i=s.events;for(;s.eventIndex<i.length;){let t=i[s.eventIndex];if(s.eventIndex+=1,0===t)return void(r.nodes&&r.nodes.length&&(r[e]=!0,s.iterator=r.getIterator()));if(this.listeners[t])return void(s.visitors=this.listeners[t])}t.pop()}walkSync(t){t[e]=!0;let s=g(t);for(let r of s)if(0===r)t.nodes&&t.each((t=>{t[e]||this.walkSync(t)}));else{let e=this.listeners[r];if(e&&this.visitSync(e,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}
15get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=e=>{b=e},dt=v,v.default=v,c.registerLazyResult(v),i.registerLazyResult(v),dt}function Gt(){if(yt)return gt;yt=1;let e=function(){if(mt)return ft;mt=1;let e=Nt(),t=Et(),s=_t(),r=Vt();const n=Ft();class i{constructor(s,r,i){let o;r=r.toString(),this.stringified=!1,this._processor=s,this._css=r,this._opts=i,this._map=void 0;let a=t;this.result=new n(this._processor,o,this._opts),this.result.css=r;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let c=new e(a,o,this._opts,r);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return"from"in this._opts||s("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}}return ft=i,i.default=i,ft}(),t=$t(),s=Lt(),r=Ut();class n{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let s of e)if(!0===s.postcss?s=s():s.postcss&&(s=s.postcss),"object"==typeof s&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if("object"==typeof s&&s.postcssPlugin)t.push(s);else{if("function"!=typeof s)throw"object"==typeof s&&(s.parse||s.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(s+" is not a PostCSS plugin");t.push(s)}return t}process(s,r={}){return this.plugins.length||r.parser||r.stringifier||r.syntax?new t(this,s,r):new e(this,s,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return gt=n,n.default=n,r.registerProcessor(n),s.registerProcessor(n),gt}const Ht=fe(function(){if(St)return vt;St=1;let e=Ce(),t=It(),s=$t(),r=At(),n=Gt(),i=Et(),o=function(){if(bt)return wt;bt=1;let e=It(),t=Ot(),s=Dt(),r=Bt(),n=Rt(),i=Ut(),o=Wt();function a(l,c){if(Array.isArray(l))return l.map((e=>a(e)));let p=l,{inputs:f}=p,m=d(p,["inputs"]);if(f){c=[];for(let e of f){let s=h(u({},e),{__proto__:n.prototype});s.map&&(s.map=h(u({},s.map),{__proto__:t.prototype})),c.push(s)}}if(m.nodes&&(m.nodes=l.nodes.map((e=>a(e,c)))),m.source){let e=m.source,{inputId:t}=e,s=d(e,["inputId"]);m.source=s,null!=t&&(m.source.input=c[t])}if("root"===m.type)return new i(m);if("decl"===m.type)return new e(m);if("rule"===m.type)return new o(m);if("comment"===m.type)return new s(m);if("atrule"===m.type)return new r(m);throw new Error("Unknown node type: "+l.type)}return wt=a,a.default=a,wt}(),a=Lt(),l=Pt(),c=Dt(),p=Bt(),f=Ft(),m=Rt(),g=Vt(),y=jt(),w=Wt(),b=Ut(),v=kt();function S(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new n(e)}return S.plugin=function(e,t){let s,r=!1;function i(...s){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...s);return i.postcssPlugin=e,i.postcssVersion=(new n).version,i}return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(e,t,s){return S([i(s)]).process(e,t)},i},S.stringify=i,S.parse=g,S.fromJSON=o,S.list=y,S.comment=e=>new c(e),S.atRule=e=>new p(e),S.decl=e=>new t(e),S.rule=e=>new w(e),S.root=e=>new b(e),S.document=e=>new a(e),S.CssSyntaxError=e,S.Declaration=t,S.Container=r,S.Processor=n,S.Document=a,S.Comment=c,S.Warning=l,S.AtRule=p,S.Result=f,S.Input=m,S.Rule=w,S.Root=b,S.Node=v,s.registerPostcss(S),vt=S,S.default=S,vt}());Ht.stringify,Ht.fromJSON,Ht.plugin,Ht.parse,Ht.list,Ht.document,Ht.comment,Ht.atRule,Ht.rule,Ht.decl,Ht.root,Ht.CssSyntaxError,Ht.Declaration,Ht.Container,Ht.Processor,Ht.Document,Ht.Comment,Ht.Warning,Ht.AtRule,Ht.Result,Ht.Input,Ht.Rule,Ht.Root,Ht.Node;
15const Yt={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function qt(e,t){const s=null==t?void 0:t.stylesWithHoverClass.get(e);if(s)return s;let r=e;try{r=Ht([de,pe]).process(e).css}catch(e){console.warn("Failed to adapt css for replay",e)}return null==t||t.stylesWithHoverClass.set(e,r),r}function Xt(){return{stylesWithHoverClass:new Map}}function Jt(e,t,s,r){const{doc:n,hackCss:i,cache:o}=r;e.childNodes.length?function(e,t,s,r){const n=[];for(const t of e.childNodes)t.type===y.Text&&n.push(t);const i=t.split("/* rr_split */");for(;i.length>1&&i.length>n.length;)i.splice(-2,2,i.slice(-2).join(""));let o="";s&&(o=qt(i.join(""),r));let a=0;for(let e=0;e<n.length&&e!==i.length;e++){const t=n[e];if(s)if(e<i.length-1){let s=a,r=i[e+1].length;r=Math.min(r,30);let n=!1;for(;r>2;r--){const t=i[e+1].substring(0,r),l=o.substring(a).indexOf(t);if(n=-1!==l,n){s+=l;break}}n||(s+=i[e].length),t.textContent=o.substring(a,s),a=s}else t.textContent=o.substring(a);else t.textContent=i[e]}}(e,s,i,o):(i&&(s=qt(s,o)),t.appendChild(n.createTextNode(s)))}function Kt(e,t){var s;const{doc:r,hackCss:n,cache:i}=t;switch(e.type){case y.Document:return r.implementation.createDocument(null,"",null);case y.DocumentType:return r.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case y.Element:{const n=function(e){let t=Yt[e.tagName]?Yt[e.tagName]:e.tagName;return"link"===t&&e.attributes._cssText&&(t="style"),t}(e);let i;e.isSVG?i=r.createElementNS("http://www.w3.org/2000/svg",n):(e.isCustom&&(null==(s=r.defaultView)?void 0:s.customElements)&&!r.defaultView.customElements.get(e.tagName)&&r.defaultView.customElements.define(e.tagName,class extends r.defaultView.HTMLElement{}),i=r.createElement(n));const o={};for(const s in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,s))continue;let a=e.attributes[s];if(("option"!==n||"selected"!==s||!1!==a)&&null!==a)if(!0===a&&(a=""),s.startsWith("rr_"))o[s]=a;else{if("string"!=typeof a);else{if("style"===n&&"_cssText"===s){Jt(e,i,a,t);continue}if("textarea"===n&&"value"===s){i.appendChild(r.createTextNode(a)),e.childNodes=[];continue}}try{if(e.isSVG&&"xlink:href"===s)i.setAttributeNS("http://www.w3.org/1999/xlink",s,a.toString());else if("onload"===s||"onclick"===s||"onmouse"===s.substring(0,7))i.setAttribute("_"+s,a.toString());else{if("meta"===n&&"Content-Security-Policy"===e.attributes["http-equiv"]&&"content"===s){i.setAttribute("csp-content",a.toString());continue}"link"===n&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===n&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===B(e.attributes.href)||("img"===n&&e.attributes.srcset&&e.attributes.rr_dataURL?i.setAttribute("rrweb-original-srcset",e.attributes.srcset):i.setAttribute(s,a.toString()))}}catch(e){}}}for(const t in o){const s=o[t];if("canvas"===n&&"rr_dataURL"===t){const e=r.createElement("img");e.onload=()=>{const t=i.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=s.toString(),i.RRNodeType&&(i.rr_dataURL=s.toString())}else if("img"===n&&"rr_dataURL"===t){const t=i;t.currentSrc.startsWith("data:")||(t.setAttribute("rrweb-original-src",e.attributes.src),t.src=s.toString())}if("rr_width"===t)i.style.setProperty("width",s.toString());else if("rr_height"===t)i.style.setProperty("height",s.toString());else if("rr_mediaCurrentTime"===t&&"number"==typeof s)i.currentTime=s;else if("rr_mediaState"===t)switch(s){case"played":i.play().catch((e=>console.warn("media playback error",e)));break;case"paused":i.pause()}else"rr_mediaPlaybackRate"===t&&"number"==typeof s?i.playbackRate=s:"rr_mediaMuted"===t&&"boolean"==typeof s?i.muted=s:"rr_mediaLoop"===t&&"boolean"==typeof s?i.loop=s:"rr_mediaVolume"===t&&"number"==typeof s?i.volume=s:"rr_open_mode"===t&&i.setAttribute("rr_open_mode",s)}if(e.isShadowHost)if(i.shadowRoot)for(;i.shadowRoot.firstChild;)i.shadowRoot.removeChild(i.shadowRoot.firstChild);else i.attachShadow({mode:"open"});return i}case y.Text:return e.isStyle&&n?r.createTextNode(qt(e.textContent,i)):r.createTextNode(e.textContent);case y.CDATA:return r.createCDATASection(e.textContent);case y.Comment:return r.createComment(e.textContent);default:return null}}function Qt(e,t){const{doc:s,mirror:r,skipChild:n=!1,hackCss:i=!0,afterAppend:o,cache:a}=t;if(r.has(e.id)){const t=r.getNode(e.id),s=r.getMeta(t);if(c=e,(l=s)&&c&&l.type===c.type&&(l.type===y.Document?l.compatMode===c.compatMode:l.type===y.DocumentType?l.name===c.name&&l.publicId===c.publicId&&l.systemId===c.systemId:l.type===y.Comment||l.type===y.Text||l.type===y.CDATA?l.textContent===c.textContent:l.type===y.Element&&l.tagName===c.tagName&&JSON.stringify(l.attributes)===JSON.stringify(c.attributes)&&l.isSVG===c.isSVG&&l.needBlock===c.needBlock))return r.getNode(e.id)}var l,c;let u=Kt(e,{doc:s,hackCss:i,cache:a});if(!u)return null;if(e.rootId&&r.getNode(e.rootId)!==s&&r.replace(e.rootId,s),e.type===y.Document&&(s.close(),s.open(),"BackCompat"===e.compatMode&&e.childNodes&&e.childNodes[0].type!==y.DocumentType&&(e.childNodes[0].type===y.Element&&"xmlns"in e.childNodes[0].attributes&&"http://www.w3.org/1999/xhtml"===e.childNodes[0].attributes.xmlns?s.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):s.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),u=s),r.add(u,e),(e.type===y.Document||e.type===y.Element)&&!n)for(const t of e.childNodes){const n=Qt(t,{doc:s,mirror:r,skipChild:!1,hackCss:i,afterAppend:o,cache:a});if(n){if(t.isShadow&&I(u)&&u.shadowRoot)u.shadowRoot.appendChild(n);else if(e.type===y.Document&&t.type==y.Element){const e=n;let t=null;
15e.childNodes.forEach((e=>{"BODY"===e.nodeName&&(t=e)})),t?(e.removeChild(t),u.appendChild(n),e.appendChild(t)):u.appendChild(n)}else u.appendChild(n);o&&o(n,t.id)}else console.warn("Failed to rebuild",t)}return u}function Zt(e,t){const{doc:s,onVisit:r,hackCss:n=!0,afterAppend:i,cache:o,mirror:a=new D}=t,l=Qt(e,{doc:s,mirror:a,skipChild:!1,hackCss:n,afterAppend:i,cache:o});return function(e,t){for(const r of e.getIds())e.has(r)&&(s=e.getNode(r),t(s));var s}(a,(e=>{r&&r(e),function(e,t){const s=t.getMeta(e);if((null==s?void 0:s.type)!==y.Element)return;const r=e;for(const e in s.attributes){if(!Object.prototype.hasOwnProperty.call(s.attributes,e)||!e.startsWith("rr_"))continue;const t=s.attributes[e];"rr_scrollLeft"===e&&(r.scrollLeft=t),"rr_scrollTop"===e&&(r.scrollTop=t)}}(e,a)})),l}var es=Object.defineProperty,ts=(e,t,s)=>((e,t,s)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s)(e,"symbol"!=typeof t?t+"":t,s),ss=Object.defineProperty,rs=(e,t,s)=>((e,t,s)=>t in e?ss(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s)(e,"symbol"!=typeof t?t+"":t,s);let ns=class{constructor(){rs(this,"idNodeMap",new Map),rs(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=null==(t=this.getMeta(e))?void 0:t.id;return null!=s?s:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const e=this.nodeMetaMap.get(s);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function is(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function os(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var s=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),s}var as,ls={exports:{}};function cs(){if(as)return ls.exports;as=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return ls.exports=t(),ls.exports.createColors=t,ls.exports}const us=os(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var hs,ds;function ps(){if(ds)return hs;ds=1;let e=cs(),t=us;class s extends Error{constructor(e,t,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let r=this.source;null==s&&(s=e.isColorSupported),t&&s&&(r=t(r));let n,i,o=r.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),c=String(l).length;if(s){let{bold:t,gray:s,red:r}=e.createColors(!0);n=e=>t(r(e)),i=e=>s(e)}else n=i=e=>e;return o.slice(a,l).map(((e,t)=>{let s=a+1+t,r=" "+(" "+s).slice(-c)+" | ";if(s===this.line){let t=i(r.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+i(r)+e+"\n "+t+n("^")}return" "+i(r)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}return hs=s,s.default=s,hs}var fs,ms,gs,ys,ws,bs,vs,Ss,Cs,xs,Ms,Es,ks,Is,Ts,Os,Rs,Ns,Ds,As,Ls,_s,Ps,Fs,Bs,Us,js,Ws,zs,Vs,$s,Gs,Hs,Ys,qs,Xs,Js,Ks,Qs,Zs,er,tr,sr,rr,nr,ir,or,ar,lr,cr,ur,hr,dr,pr={};function fr(){return fs||(fs=1,pr.isClean=Symbol("isClean"),pr.my=Symbol("my")),pr}function mr(){if(gs)return ms;gs=1;const e={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class t{constructor(e){this.builder=e}atrule(e,t){let s="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?s+=e.raws.afterName:r&&(s+=" "),e.nodes)this.block(e,s+r);else{let n=(e.raws.between||"")+(t?";":"");this.builder(s+r+n,e)}}beforeAfter(e,t){let s;s="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,n=0;for(;r&&"root"!==r.type;)n+=1,r=r.parent;if(s.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)s+=t}return s}block(e,t){let s,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let s=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let n=e.nodes[r],i=this.raw(n,"before");i&&this.builder(i),this.stringify(n,t!==r||s)}}comment(e){let t=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+s+"*/",e)}decl(e,t){let s=this.raw(e,"between","colon"),r=e.prop+s+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(t,s,r){let n;if(r||(r=s),s&&(n=t.raws[s],void 0!==n))return n;let i=t.parent;if("before"===r){if(!i||"root"===i.type&&i.first===t)return"";if(i&&"document"===i.type)return""}if(!i)return e[r];let o=t.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(t,r);{let e="raw"+((a=r)[0].toUpperCase()+a.slice(1));this[e]?n=this[e](o,t):o.walk((e=>{if(n=e.raws[s],void 0!==n)return!1}))}var a;return void 0===n&&(n=e[r]),o.rawCache[r]=n,n}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let s;return e.walkComments((e=>
vendor: 22,659 bytes, line 15
15{if(void 0!==e.raws.before)return s=e.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1})),void 0===s?s=this.raw(t,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(e,t){let s;return e.walkDecls((e=>{if(void 0!==e.raws.before)return s=e.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1})),void 0===s?s=this.raw(t,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((s=>{if(s.nodes&&(s.parent!==e||e.first!==s)&&void 0!==s.raws.before)return t=s.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((s=>{let r=s.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==s.raws.before){let e=s.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let s=e[t],r=e.raws[t];return r&&r.value===s?r.raw:s}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}return ms=t,t.default=t,ms}function gr(){if(ws)return ys;ws=1;let e=mr();function t(t,s){new e(s).stringify(t)}return ys=t,t.default=t,ys}function yr(){if(vs)return bs;vs=1;let{isClean:e,my:t}=fr(),s=ps(),r=mr(),n=gr();function i(e,t){let s=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let n=e[r],o=typeof n;"parent"===r&&"object"===o?t&&(s[r]=t):"source"===r?s[r]=n:Array.isArray(n)?s[r]=n.map((e=>i(e,s))):("object"===o&&null!==n&&(n=i(n)),s[r]=n)}return s}class o{constructor(s={}){this.raws={},this[e]=!1,this[t]=!0;for(let e in s)if("nodes"===e){this.nodes=[];for(let t of s[e])"function"==typeof t.clone?this.append(t.clone()):this.append(t)}else this[e]=s[e]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=i(this);for(let s in e)t[s]=e[s];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:s,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:s.column,line:s.line},t)}return new s(e)}getProxyProcessor(){return{get(e,t){return"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]},set(e,t,s){return e[t]===s||(e[t]=s,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let t=this;for(;t=t.parent;)t[e]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let s=this.source.start;if(e.index)s=this.positionInside(e.index,t);else if(e.word){let r=(t=this.toString()).indexOf(e.word);-1!==r&&(s=this.positionInside(r,t))}return s}positionInside(e,t){let s=t||this.toString(),r=this.source.start.column,n=this.source.start.line;for(let t=0;t<e;t++)"\n"===s[t]?(r=1,n+=1):r+=1;return{column:r,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),n=r.indexOf(e.word);-1!==n&&(t=this.positionInside(n,r),s=this.positionInside(n+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<t.line||s.line===t.line&&s.column<=t.column)&&(s={column:t.column+1,line:t.line}),{end:s,start:t}}raw(e,t){return(new r).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,s=!1;for(let r of e)r===this?s=!0:s?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);s||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let s={},r=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))s[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)s[e]=r.toJSON(null,t);else if("source"===e){let i=t.get(r.input);null==i&&(i=n,t.set(r.input,n),n++),s[e]={end:r.end,inputId:i,start:r.start}}else s[e]=r}return r&&(s.inputs=[...t.keys()].map((e=>e.toJSON()))),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=n){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,s){let r={node:this};for(let e in s)r[e]=s[e];return e.warn(t,r)}get proxyOf(){return this}}return bs=o,o.default=o,bs}function wr(){if(Cs)return Ss;Cs=1;let e=yr();class t extends e{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e=h(u({},e),{value:String(e.value)})),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}return Ss=t,t.default=t,Ss}function br(){return Ms?xs:(Ms=1,xs={nanoid:(e=21)=>{let t="",s=e;for(;s--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(s=t)=>{let r="",n=s;for(;n--;)r+=e[Math.random()*e.length|0];return r}})}function vr(){if(ks)return Es;ks=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=us,{existsSync:s,readFileSync:r}=us,{dirname:n,join:i}=us;class o{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let s=t.map?t.map.prev:void 0,r=this.loadMap(t.from,s);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=n(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let s=e.lastIndexOf(t.pop()),r=e.indexOf("*/",s);s>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,r)))}loadFile(e){if(this.root=n(e),s(e))return this.mapFile=e,r(e,"utf-8").toString().trim()}loadMap(s,r){if(!1===r)return!1;if(r){if("string"==typeof r)return r;if("function"!=typeof r){if(r instanceof e)return t.fromSourceMap(r).toString();if(r instanceof t)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}{let e=r(s);if(e){let t=this.loadFile(e);if(!t)throw new Error("Unable to load previous source map: "+e.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;return s&&(e=i(n(s),e)),this.loadFile(e)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Es=o,o.default=o,Es}function Sr(){if(Ts)return Is;Ts=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=us,{fileURLToPath:s,pathToFileURL:r}=us,{isAbsolute:n,resolve:i}=us,{nanoid:o}=br(),a=us,l=ps(),c=vr(),h=Symbol("fromOffsetCache"),d=Boolean(e&&t),p=Boolean(i&&n);class f{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!p||/^\w+:\/\//.test(t.from)||n(t.from)?this.file=t.from:this.file=i(t.from)),p&&d){let e=new c(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,s,n={}){let i,o,a;if(t&&"object"==typeof t){let e=t,r=s;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,s=r.col}else t=e.line,s=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);o=e.line,a=e.col}else o=r.line,a=r.column}else if(!s){let e=this.fromOffset(t);t=e.line,s=e.col}let c=this.origin(t,s,o,a);return i=c?new l(e,void 0===c.endLine?c.line:{column:c.column,line:c.line},void 0===c.endLine?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,n.plugin):new l(e,void 0===o?t:{column:s,line:t},void 0===o?s:{column:a,line:o},this.css,this.file,n.plugin),i.input={column:s,endColumn:a,endLine:o,line:t,source:this.css},this.file&&(r&&(i.input.url=r(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,s;if(this[h])s=this[h];else{let e=this.css.split("\n");s=new Array(e.length);let t=0;for(let r=0,n=e.length;r<n;r++)s[r]=t,t+=e[r].length+1;this[h]=s}t=s[s.length-1];let r=0;if(e>=t)r=s.length-1;else{let t,n=s.length-2;for(;r<n;)if(t=r+(n-r>>1),e<s[t])n=t-1;else{if(!(e>=s[t+1])){r=t;break}r=t+1}}return{col:e-s[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,o){if(!this.map)return!1;let a,l,c=this.map.consumer(),u=c.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof i&&(a=c.originalPositionFor({column:o,line:i})),l=n(u.source)?r(u.source):new URL(u.source,this.map.consumer().sourceRoot||r(this.map.mapFile));let h={column:u.column,endColumn:a&&a.column,endLine:a&&a.line,line:u.line,url:l.toString()};if("file:"===l.protocol){if(!s)throw new Error("file: protocol is not available in this PostCSS build");h.file=s(l)}let d=c.sourceContentFor(u.source);return d&&(h.source=d),h}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map=u({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}return Is=f,f.default=f,a&&a.registerInput&&a.registerInput(f),Is}function Cr(){if(Rs)return Os;Rs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=us,{dirname:s,relative:r,resolve:n,sep:i}=us,{pathToFileURL:o}=us,a=Sr(),l=Boolean(e&&t),c=Boolean(s&&n&&r&&i);return Os=class{constructor(e,t,s,r){this.stringify=e,this.mapOpts=s.map||{},this.root=t,this.opts=s,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let t of this.previous()){let r,n=this.toUrl(this.path(t.file)),i=t.root||s(t.file);!1===this.mapOpts.sourcesContent?(r=new e(t.text),r.sourcesContent&&(r.sourcesContent=null)):r=t.consumer(),this.map.applySourceMap(r,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&l&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=t.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let e,s,r=1,n=1,i="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((t,a,l)=>{if(this.css+=t,a&&"end"!==l&&(o.generated.line=r,o.generated.column=n-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),e=t.match(/\n/g),e?(r+=e.length,s=t.lastIndexOf("\n"),n=t.length-s):n+=t.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=r,o.generated.column=n-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=r,o.generated.column=n-1,this.map.addMapping(o)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?s(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(i=s(n(i,this.mapOpts.annotation)));let o=r(i,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new a(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let s=t.source.input.from;if(s&&!e[s]){e[s]=!0;let r=this.usesFileUrls?this.toFileUrl(s):this.toUrl(this.path(s));this.map.setSourceContent(r,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(o){let t=o(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===i&&(e=e.replace(/\\/g,"/"));let s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s}}}function xr(){if(Ds)return Ns;Ds=1;let e=yr();class t extends e{constructor(e){super(e),this.type="comment"}}return Ns=t,t.default=t,Ns}function Mr(){if(Ls)return As;Ls=1;let e,t,s,r,{isClean:n,my:i}=fr(),o=wr(),a=xr(),l=yr();function c(e){return e.map((e=>(e.nodes&&(e.nodes=c(e.nodes)),delete e.source,e)))}function u(e){if(e[n]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)u(t)}class h extends l{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,s,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],s=e(this.proxyOf.nodes[t],t),!1!==s);)this.indexes[r]+=1;return delete this.indexes[r],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...s)=>e[t](...s.map((e=>"function"==typeof e?(t,s)=>e(t.toProxy(),s):e))):"every"===t||"some"===t?s=>e[t](((e,...t)=>s(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set(e,t,s){return e[t]===s||(e[t]=s,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let s,r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of n)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)s=this.indexes[e],r<s&&(this.indexes[e]=s+n.length);return this.markDirty(),this}insertBefore(e,t){let s,r=this.index(e),n=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)s=this.indexes[e],r<=s&&(this.indexes[e]=s+i.length);return this.markDirty(),this}normalize(r,l){if("string"==typeof r)r=c(e(r).nodes);else if(void 0===r)r=[];else if(Array.isArray(r)){r=r.slice(0);for(let e of r)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===r.type&&"document"!==this.type){r=r.nodes.slice(0);for(let e of r)e.parent&&e.parent.removeChild(e,"ignore")}else if(r.type)r=[r];else if(r.prop){if(void 0===r.value)throw new Error("Value field is missed in node creation");"string"!=typeof r.value&&(r.value=String(r.value)),r=[new o(r)]}else if(r.selector)r=[new t(r)];else if(r.name)r=[new s(r)];else{if(!r.text)throw new Error("Unknown node type in node creation");r=[new a(r)]}return r.map((e=>(e[i]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[n]&&u(e),void 0===e.raws.before&&l&&void 0!==l.raws.before&&(e.raws.before=l.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let s in this.indexes)t=this.indexes[s],t>=e&&(this.indexes[s]=t-1);return this.markDirty(),this}replaceValues(e,t,s){return s||(s=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,s))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,s)=>{let r;try{r=e(t,s)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((s,r)=>{if("atrule"===s.type&&e.test(s.name))return t(s,r)})):this.walk(((s,r)=>{if("atrule"===s.type&&s.name===e)return t(s,r)})):(t=e,this.walk(((e,s)=>{if("atrule"===e.type)return t(e,s)})))}walkComments(e){return this.walk(((t,s)=>{if("comment"===t.type)return e(t,s)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((s,r)=>{if("decl"===s.type&&e.test(s.prop))return t(s,r)})):this.walk(((s,r)=>{if("decl"===s.type&&s.prop===e)return t(s,r)})):(t=e,this.walk(((e,s)=>{if("decl"===e.type)return t(e,s)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((s,r)=>{if("rule"===s.type&&e.test(s.selector))return t(s,r)})):this.walk(((s,r)=>{if("rule"===s.type&&s.selector===e)return t(s,r)})):(t=e,this.walk(((e,s)=>{if("rule"===e.type)return t(e,s)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return h.registerParse=t=>{e=t},h.registerRule=e=>{t=e},h.registerAtRule=e=>{s=e},h.registerRoot=e=>{r=e},As=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,s.prototype):"rule"===e.type?Object.setPrototypeOf(e,t.prototype):"decl"===e.type?Object.setPrototypeOf(e,o.prototype):"comment"===e.type?Object.setPrototypeOf(e,a.prototype):"root"===e.type&&Object.setPrototypeOf(e,r.prototype),e[i]=!0,e.nodes&&e.nodes.forEac
15h((e=>{h.rebuild(e)}))},As}function Er(){if(Ps)return _s;Ps=1;let e,t,s=Mr();class r extends s{constructor(e){super(u({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(s={}){return new e(new t,this,s).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=e=>{t=e},_s=r,r.default=r,_s}function kr(){if(Bs)return Fs;Bs=1;let e={};return Fs=function(t){e[t]||(e[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))}}function Ir(){if(js)return Us;js=1;class e{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Us=e,e.default=e,Us}function Tr(){if(zs)return Ws;zs=1;let e=Ir();class t{constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new e(t,s);return this.messages.push(r),r}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}return Ws=t,t.default=t,Ws}function Or(){if(Hs)return Gs;Hs=1;let e=Mr();class t extends e{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}return Gs=t,t.default=t,e.registerAtRule(t),Gs}function Rr(){if(qs)return Ys;qs=1;let e,t,s=Mr();class r extends s{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,s){let r=super.normalize(e);if(t)if("prepend"===s)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let s=this.index(e);return!t&&0===s&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}toResult(s={}){return new e(new t,this,s).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=e=>{t=e},Ys=r,r.default=r,s.registerRoot(r),Ys}function Nr(){if(Js)return Xs;Js=1;let e={comma(t){return e.split(t,[","],!0)},space(t){return e.split(t,[" ","\n","\t"])},split(e,t,s){let r=[],n="",i=!1,o=0,a=!1,l="",c=!1;for(let s of e)c?c=!1:"\\"===s?c=!0:a?s===l&&(a=!1):'"'===s||"'"===s?(a=!0,l=s):"("===s?o+=1:")"===s?o>0&&(o-=1):0===o&&t.includes(s)&&(i=!0),i?(""!==n&&r.push(n.trim()),n="",i=!1):n+=s;return(s||""!==n)&&r.push(n.trim()),r}};return Xs=e,e.default=e,Xs}function Dr(){if(Qs)return Ks;Qs=1;let e=Mr(),t=Nr();class s extends e{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,s=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}}return Ks=s,s.default=s,e.registerRule(s),Ks}function Ar(){if(er)return Zs;er=1;let e=wr(),t=function(){if($s)return Vs;$s=1;const e="'".charCodeAt(0),t='"'.charCodeAt(0),s="\\".charCodeAt(0),r="/".charCodeAt(0),n="\n".charCodeAt(0),i=" ".charCodeAt(0),o="\f".charCodeAt(0),a="\t".charCodeAt(0),l="\r".charCodeAt(0),c="[".charCodeAt(0),u="]".charCodeAt(0),h="(".charCodeAt(0),d=")".charCodeAt(0),p="{".charCodeAt(0),f="}".charCodeAt(0),m=";".charCodeAt(0),g="*".charCodeAt(0),y=":".charCodeAt(0),w="@".charCodeAt(0),b=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,S=/.[\r\n"'(/\\]/,C=/[\da-f]/i;return Vs=function(x,M={}){let E,k,I,T,O,R,N,D,A,L,_=x.css.valueOf(),P=M.ignoreErrors,F=_.length,B=0,U=[],j=[];function W(e){throw x.error("Unclosed "+e,B)}return{back:function(e){j.push(e)},endOfFile:function(){return 0===j.length&&B>=F},nextToken:function(x){if(j.length)return j.pop();if(B>=F)return;let M=!!x&&x.ignoreUnclosed;switch(E=_.charCodeAt(B),E){case n:case i:case a:case l:case o:k=B;do{k+=1,E=_.charCodeAt(k)}while(E===i||E===n||E===a||E===l||E===o);L=["space",_.slice(B,k)],B=k-1;break;case c:case u:case p:case f:case y:case m:case d:{let e=String.fromCharCode(E);L=[e,e,B];break}case h:if(D=U.length?U.pop()[1]:"",A=_.charCodeAt(B+1),"url"===D&&A!==e&&A!==t&&A!==i&&A!==n&&A!==a&&A!==o&&A!==l){k=B;do{if(R=!1,k=_.indexOf(")",k+1),-1===k){if(P||M){k=B;break}W("bracket")}for(N=k;_.charCodeAt(N-1)===s;)N-=1,R=!R}while(R);L=["brackets",_.slice(B,k+1),B,k],B=k}else k=_.indexOf(")",B+1),T=_.slice(B,k+1),-1===k||S.test(T)?L=["(","(",B]:(L=["brackets",T,B,k],B=k);break;case e:case t:I=E===e?"'":'"',k=B;do{if(R=!1,k=_.indexOf(I,k+1),-1===k){if(P||M){k=B+1;break}W("string")}for(N=k;_.charCodeAt(N-1)===s;)N-=1,R=!R}while(R);L=["string",_.slice(B,k+1),B,k],B=k;break;case w:b.lastIndex=B+1,b.test(_),k=0===b.lastIndex?_.length-1:b.lastIndex-2,
vendor: 5,803 bytes, line 15
15L=["at-word",_.slice(B,k+1),B,k],B=k;break;case s:for(k=B,O=!0;_.charCodeAt(k+1)===s;)k+=1,O=!O;if(E=_.charCodeAt(k+1),O&&E!==r&&E!==i&&E!==n&&E!==a&&E!==l&&E!==o&&(k+=1,C.test(_.charAt(k)))){for(;C.test(_.charAt(k+1));)k+=1;_.charCodeAt(k+1)===i&&(k+=1)}L=["word",_.slice(B,k+1),B,k],B=k;break;default:E===r&&_.charCodeAt(B+1)===g?(k=_.indexOf("*/",B+2)+1,0===k&&(P||M?k=_.length:W("comment")),L=["comment",_.slice(B,k+1),B,k],B=k):(v.lastIndex=B+1,v.test(_),k=0===v.lastIndex?_.length-1:v.lastIndex-2,L=["word",_.slice(B,k+1),B,k],U.push(L),B=k)}return B++,L},position:function(){return B}}}}(),s=xr(),r=Or(),n=Rr(),i=Dr();const o={empty:!0,space:!0};return Zs=class{constructor(e){this.input=e,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,s,n,i=new r;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(n=l.length-1,s=l[n];s&&"space"===s[0];)s=l[--n];s&&(i.source.end=this.getPosition(s[3]||s[2]),i.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),o&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let s,r=0;for(let n=t-1;n>=0&&(s=e[n],"space"===s[0]||(r+=1,2!==r));n--);throw this.input.error("Missed semicolon","word"===s[0]?s[3]+1:s[2])}colon(e){let t,s,r,n=0;for(let[i,o]of e.entries()){if(t=o,s=t[0],"("===s&&(n+=1),")"===s&&(n-=1),0===n&&":"===s){if(r){if("word"===r[0]&&"progid"===r[1])continue;return i}this.doubleColon(t)}r=t}return!1}comment(e){let t=new s;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(t,s){let r=new e;this.init(r,t[0][2]);let n,i=t[t.length-1];for(";"===i[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(let t=e.length-1;t>=0;t--){let s=e[t],r=s[3]||s[2];if(r)return r}}(t)),r.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(n=t.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o,a=[];for(;t.length&&(o=t[0][0],"space"===o||"comment"===o);)a.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(n=t[e],"!important"===n[1].toLowerCase()){r.important=!0;let s=this.stringFrom(t,e);s=this.spacesFromEnd(t)+s," !important"!==s&&(r.raws.important=s);break}if("important"===n[1].toLowerCase()){let s=t.slice(0),n="";for(let t=e;t>0;t--){let e=s[t][0];if(0===n.trim().indexOf("!")&&"space"!==e)break;n=s.pop()[1]+n}0===n.trim().indexOf("!")&&(r.important=!0,r.raws.important=n,t=s)}if("space"!==n[0]&&"comment"!==n[0])break}t.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(r.raws.between+=a.map((e=>e[1])).join(""),a=[]),this.raw(r,"value",a.concat(t),s),r.value.includes(":")&&!s&&this.checkMissedSemicolon(t)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new i;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,s=null,r=!1,n=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(s=l[0],a.push(l),"("===s||"["===s)n||(n=l),i.push("("===s?")":"]");else if(o&&r&&"{"===s)n||(n=l),i.push("}");else if(0===i.length){if(";"===s){if(r)return void this.decl(a,o);break}if("{"===s)return void this.rule(a);if("}"===s){this.tokenizer.back(a.pop()),t=!0;break}":"===s&&(r=!0)}else s===i[i.length-1]&&(i.pop(),0===i.length&&(n=null));l=this.tokenizer.nextToken()}
vendor: 4,814 bytes, line 15
15if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(n),t&&r){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,s,r){let n,i,a,l,c=s.length,u="",h=!0;for(let e=0;e<c;e+=1)n=s[e],i=n[0],"space"!==i||e!==c-1||r?"comment"===i?(l=s[e-1]?s[e-1][0]:"empty",a=s[e+1]?s[e+1][0]:"empty",o[l]||o[a]||","===u.slice(-1)?h=!1:u+=n[1]):u+=n[1]:h=!1;if(!h){let r=s.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new i;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let t,s="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)s+=e.shift()[1];return s}spacesFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)s=e.pop()[1]+s;return s}stringFrom(e,t){let s="";for(let r=t;r<e.length;r++)s+=e[r][1];return e.splice(t,e.length-t),s}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}}function Lr(){if(sr)return tr;sr=1;let e=Mr(),t=Ar(),s=Sr();function r(e,r){let n=new s(e,r),i=new t(n);try{i.parse()}catch(e){throw"CssSyntaxError"===e.name&&r&&r.from&&(/\.scss$/i.test(r.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(r.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(r.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return i.root}return tr=r,r.default=r,e.registerParse(r),tr}function _r(){if(nr)return rr;nr=1;let{isClean:e,my:t}=fr(),s=Cr(),r=gr(),n=Mr(),i=Er(),o=kr(),a=Tr(),l=Lr(),c=Rr();const d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0};function m(e){return"object"==typeof e&&"function"==typeof e.then}function g(e){let t=!1,s=d[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[s,s+"-"+t,0,s+"Exit",s+"Exit-"+t]:t?[s,s+"-"+t,s+"Exit",s+"Exit-"+t]:e.append?[s,0,s+"Exit"]:[s,s+"Exit"]}function y(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:g(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function w(t){return t[e]=!1,t.nodes&&t.nodes.forEach((e=>w(e))),t}let b={};class v{constructor(e,s,r){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof s||null===s||"root"!==s.type&&"document"!==s.type)if(s instanceof v||s instanceof a)i=w(s.root),s.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=s.map);else{let e=l;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{i=e(s,r)}catch(e){this.processed=!0,this.error=e}i&&!i[t]&&n.rebuild(i)}else i=w(s);this.result=new a(e,i,r),this.helpers=h(u({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?u(u({},e),e.prepare(this.result)):e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let s=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(s.postcssVersion){let e=s.postcssPlugin,t=s.postcssVersion,r=this.result.processor.ver
vendor: 4,281 bytes, line 15
15sion,n=t.split("."),i=r.split(".");(n[0]!==i[0]||parseInt(n[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+r+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=s.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,s)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,s])};for(let t of this.plugins)if("object"==typeof t)for(let s in t){if(!p[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[s])if("object"==typeof t[s])for(let r in t[s])e(t,"*"===r?s:s+"-"+r.toLowerCase(),t[s][r]);else"function"==typeof t[s]&&e(t,s,t[s])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],s=this.runOnRoot(t);if(m(s))try{await s}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];){t[e]=!0;let s=[y(t)];for(;s.length>0;){let e=this.visitTick(s);if(m(e))try{await e}catch(e){let t=s[s.length-1].node;throw this.handleError(e,t)}}}if(this.listeners.OnceExit)for(let[e,s]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map((e=>s(e,this.helpers)));await Promise.all(e)}else await s(t,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return m(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=r;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new s(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(m(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];)t[e]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(e,t){return"from"in this.opts||o("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[s,r]of e){let e;this.result.lastPlugin=s;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(m(e))throw this.getAsyncError()}}visitTick(t){let s=t[t.length-1],{node:r,visitors:n}=s;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void t.pop();if(n.length>0&&s.visitorIndex<n.length){let[e,t]=n[s.visitorIndex];s.visitorIndex+=1,s.visitorIndex===n.length&&(s.visitors=[],s.visitorIndex=0),this.result.lastPlugin=e;try{return t(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==s.iterator){let n,i=s.iterator;for(;n=r.nodes[r.indexes[i]];)if(r.indexes[i]+=1,!n[e])return n[e]=!0,void t.push(y(n));s.iterator=0,delete r.indexes[i]}let i=s.events;for(;s.eventIndex<i.length;){let t=i[s.eventIndex];if(s.eventIndex+=1,0===t)return void(r.nodes&&r.nodes.length&&(r[e]=!0,s.iterator=r.getIterator()));if(this.listeners[t])return void(s.visitors=this.listeners[t])}t.pop()}walkSync(t){t[e]=!0;let s=g(t);for(let r of s)if(0===r)t.nodes&&t.each((t=>{t[e]||this.walkSync(t)}));else{let e=this.listeners[r];if(e&&this.visitSync(e,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}
15get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=e=>{b=e},rr=v,v.default=v,c.registerLazyResult(v),i.registerLazyResult(v),rr}function Pr(){if(lr)return ar;lr=1;let e=function(){if(or)return ir;or=1;let e=Cr(),t=gr(),s=kr(),r=Lr();const n=Tr();class i{constructor(s,r,i){let o;r=r.toString(),this.stringified=!1,this._processor=s,this._css=r,this._opts=i,this._map=void 0;let a=t;this.result=new n(this._processor,o,this._opts),this.result.css=r;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let c=new e(a,o,this._opts,r);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return"from"in this._opts||s("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}}return ir=i,i.default=i,ir}(),t=_r(),s=Er(),r=Rr();class n{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let s of e)if(!0===s.postcss?s=s():s.postcss&&(s=s.postcss),"object"==typeof s&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if("object"==typeof s&&s.postcssPlugin)t.push(s);else{if("function"!=typeof s)throw"object"==typeof s&&(s.parse||s.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(s+" is not a PostCSS plugin");t.push(s)}return t}process(s,r={}){return this.plugins.length||r.parser||r.stringifier||r.syntax?new t(this,s,r):new e(this,s,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return ar=n,n.default=n,r.registerProcessor(n),s.registerProcessor(n),ar}const Fr=is(function(){if(dr)return hr;dr=1;let e=ps(),t=wr(),s=_r(),r=Mr(),n=Pr(),i=gr(),o=function(){if(ur)return cr;ur=1;let e=wr(),t=vr(),s=xr(),r=Or(),n=Sr(),i=Rr(),o=Dr();function a(l,c){if(Array.isArray(l))return l.map((e=>a(e)));let p=l,{inputs:f}=p,m=d(p,["inputs"]);if(f){c=[];for(let e of f){let s=h(u({},e),{__proto__:n.prototype});s.map&&(s.map=h(u({},s.map),{__proto__:t.prototype})),c.push(s)}}if(m.nodes&&(m.nodes=l.nodes.map((e=>a(e,c)))),m.source){let e=m.source,{inputId:t}=e,s=d(e,["inputId"]);m.source=s,null!=t&&(m.source.input=c[t])}if("root"===m.type)return new i(m);if("decl"===m.type)return new e(m);if("rule"===m.type)return new o(m);if("comment"===m.type)return new s(m);if("atrule"===m.type)return new r(m);throw new Error("Unknown node type: "+l.type)}return cr=a,a.default=a,cr}(),a=Er(),l=Ir(),c=xr(),p=Or(),f=Tr(),m=Sr(),g=Lr(),y=Nr(),w=Dr(),b=Rr(),v=yr();function S(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new n(e)}return S.plugin=function(e,t){let s,r=!1;function i(...s){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...s);return i.postcssPlugin=e,i.postcssVersion=(new n).version,i}return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(e,t,s){return S([i(s)]).process(e,t)},i},S.stringify=i,S.parse=g,S.fromJSON=o,S.list=y,S.comment=e=>new c(e),S.atRule=e=>new p(e),S.decl=e=>new t(e),S.rule=e=>new w(e),S.root=e=>new b(e),S.document=e=>new a(e),S.CssSyntaxError=e,S.Declaration=t,S.Container=r,S.Processor=n,S.Document=a,S.Comment=c,S.Warning=l,S.AtRule=p,S.Result=f,S.Input=m,S.Rule=w,S.Root=b,S.Node=v,s.registerPostcss(S),hr=S,S.default=S,hr}());Fr.stringify,Fr.fromJSON,Fr.plugin,Fr.parse,Fr.list,Fr.document,Fr.comment,Fr.atRule,Fr.rule,Fr.decl,Fr.root,Fr.CssSyntaxError,Fr.Declaration,Fr.Container,Fr.Processor,Fr.Document,Fr.Comment,Fr.Warning,Fr.AtRule,Fr.Result,Fr.Input,Fr.Rule,Fr.Root,Fr.Node;var Br=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Br||{});function Ur(e){const t=[];for(const s in e){const r=e[s];if("string"!=typeof r)continue;const n=$r(s);t.push(`${n}: ${r};`)}return t.join(" ")}const jr=/-([a-z])/g,Wr=/^--[a-zA-Z0-9-]+$/,zr=e=>Wr.test(e)?e:e.replace(jr,((e,t)=>
vendor: 9,965 bytes, line 15
15t?t.toUpperCase():"")),Vr=/\B([A-Z])/g,$r=e=>e.replace(Vr,"-$1").toLowerCase();class Gr{constructor(...e){ts(this,"parentElement",null),ts(this,"parentNode",null),ts(this,"ownerDocument"),ts(this,"firstChild",null),ts(this,"lastChild",null),ts(this,"previousSibling",null),ts(this,"nextSibling",null),ts(this,"ELEMENT_NODE",1),ts(this,"TEXT_NODE",3),ts(this,"nodeType"),ts(this,"nodeName"),ts(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof Gr))return!1;if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class Hr extends Gr{constructor(...e){super(e),ts(this,"nodeType",9),ts(this,"nodeName","#document"),ts(this,"compatMode","CSS1Compat"),ts(this,"RRNodeType",Br.Document),ts(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find((e=>e.RRNodeType===Br.Element&&"HTML"===e.tagName))||null}get body(){var e;return(null==(e=this.documentElement)?void 0:e.childNodes.find((e=>e.RRNodeType===Br.Element&&"BODY"===e.tagName)))||null}get head(){var e;return(null==(e=this.documentElement)?void 0:e.childNodes.find((e=>e.RRNodeType===Br.Element&&"HEAD"===e.tagName)))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===Br.Element||t===Br.DocumentType)&&this.childNodes.some((e=>e.RRNodeType===t)))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===Br.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=tn(this,e);return s.parentElement=null,s}insertBefore(e,t){const s=e.RRNodeType;if((s===Br.Element||s===Br.DocumentType)&&this.childNodes.some((e=>e.RRNodeType===s)))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${s===Br.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const r=sn(this,e,t);return r.parentElement=null,r}removeChild(e){return rn(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'===e?t="-//W3C//DTD XHTML 1.0 Transitional//EN":'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'===e&&(t="-//W3C//DTD HTML 4.0 Transitional//EN"),t){const e=this.createDocumentType("html",t,"");this.open(),this.appendChild(e)}}createDocument(e,t,s){return new Hr}createDocumentType(e,t,s){const r=new Yr(e,t,s);return r.ownerDocument=this,r}createElement(e){const t=new qr(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new Kr(e);return t.ownerDocument=this,t}createComment(e){const t=new Qr(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new Zr(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class Yr extends Gr{constructor(e,t,s){super(),ts(this,"nodeType",10),ts(this,"RRNodeType",Br.DocumentType),ts(this,"name"),ts(this,"publicId"),ts(this,"systemId"),ts(this,"textContent",null),this.name=e,this.publicId=t,this.systemId=s,this.nodeName=e}toString(){return"RRDocumentType"}}class qr extends Gr{constructor(e){super(),ts(this,"nodeType",1),ts(this,"RRNodeType",Br.Element),ts(this,"tagName"),ts(this,"attributes",{}),ts(this,"shadowRoot",null),ts(this,"scrollLeft"),ts(this,"scrollTop"),this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach((t=>e+=t.textContent)),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new en(this.attributes.class,(e=>{this.attributes.class=e}))}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const e=this.attributes.style?function(e){const t={},s=/:(.+)/;return e.replace(/\/\*.*?\*\//g,"").split(/;(?![^(]*\))/g).forEach((function(e){if(e){const r=e.split(s);r.length>1&&(t[zr(r[0].trim())]=r[1].trim())}})),t}(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(s,r,n)=>{if(t.test(s))return;const i=zr(s);r?e[i]=r:delete e[i],"important"===n&&(e[i]+=" !important"),this.attributes.style=Ur(e)},e.removeProperty=s=>{if(t.test(s))return"";const r=zr(s),n=e[r]||"";return delete e[r],this.attributes.style=Ur(e),n},e}getAttribute(e){return void 0===this.attributes[e]?null:this.attributes[e]}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,s){this.setAttribute(t,s)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return tn(this,e)}insertBefore(e,t){return sn(this,e,t)}removeChild(e){return rn(this,e)}attachShadow(e){const t=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e="";for(const t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}}class Xr extends qr{constructor(){super(...arguments),ts(this,"currentTime"),ts(this,"volume"),ts(this,"paused"),ts(this,"muted"),ts(this,"playbackRate"),ts(this,"loop")}attachShadow(e){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class Jr extends qr{constructor(){super(...arguments),ts(this,"tagName","DIALOG"),ts(this,"nodeName","DIALOG")}get isModal(){return"modal"===this.getAttribute("rr_open_mode")}get open(){return null!==this.getAttribute("open")}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class Kr extends Gr{constructor(e){super(),ts(this,"nodeType",3),ts(this,"nodeName","#text"),ts(this,"RRNodeType",Br.Text),ts(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class Qr extends Gr{constructor(e){super(),ts(this,"nodeType",8),ts(this,"nodeName","#comment"),ts(this,"RRNodeType",Br.Comment),ts(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class Zr extends Gr{constructor(e){super(),ts(this,"nodeName","#cdata-section"),ts(this,"nodeType",4),ts(this,"RRNodeType",Br.CDATA),ts(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class en{constructor(e,t){if(ts(this,"onChange"),ts(this,"classes",[]),ts(this,"add",((...e)=>{for(const t of e){const e=String(t);this.classes.indexOf(e)>=0||this.classes.push(e)}this.onChange&&this.onChange(this.classes.join(" "))})),ts(this,"remove",((...e)=>{this.classes=this.classes.filter((t=>-1===e.indexOf(t))),this.onChange&&this.onChange(this.classes.join(" "))})),e){const t=e.trim().split(/\s+/);this.classes.push(...t)}this.onChange=t}}function tn(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function sn(e,t,s){if(!s)return tn(e,t);if(s.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===s||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=s.previousSibling,s.previousSibling=t,t.nextSibling=s,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function rn(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var nn=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))(nn||{});const on={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},an={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur
15:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};let ln=null;function cn(e,t,s,r=t.mirror||t.ownerDocument.mirror){e=function(e,t,s,r){var n;if(s.afterAppend&&!ln&&(ln=new WeakSet,setTimeout((()=>{ln=null}),0)),!dn(e,t)){const i=hn(t,s.mirror,r);null==(n=e.parentNode)||n.replaceChild(i,e),e=i}switch(t.RRNodeType){case Br.Document:if(!pn(e,t,s.mirror,r)){const n=r.getMeta(t);n&&(s.mirror.removeNodeFromMap(e),e.close(),e.open(),s.mirror.add(e,n),null==ln||ln.add(e))}break;case Br.Element:{const n=e,i=t;switch(i.tagName){case"IFRAME":{const n=e.contentDocument;if(!n)break;cn(n,t.contentDocument,s,r);break}}i.shadowRoot&&(n.shadowRoot||n.attachShadow({mode:"open"}),un(n.shadowRoot,i.shadowRoot,s,r)),function(e,t,s){const r=e.attributes,n=t.attributes;for(const r in n){const i=n[r],o=s.getMeta(t);if((null==o?void 0:o.isSVG)&&on[r])e.setAttributeNS(on[r],r,i);else if("CANVAS"===t.tagName&&"rr_dataURL"===r){const t=document.createElement("img");t.src=i,t.onload=()=>{const s=e.getContext("2d");s&&s.drawImage(t,0,0,t.width,t.height)}}else{if("IFRAME"===t.tagName&&"srcdoc"===r)continue;try{e.setAttribute(r,i)}catch(e){console.warn(e)}}}for(const{name:t}of Array.from(r))t in n||e.removeAttribute(t);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}(n,i,r);break}}return e}(e,t,s,r),un(e,t,s,r),function(e,t,s){var r;switch(t.RRNodeType){case Br.Document:{const e=t.scrollData;e&&s.applyScroll(e,!0);break}case Br.Element:{const r=e,n=t;switch(n.scrollData&&s.applyScroll(n.scrollData,!0),n.inputData&&s.applyInput(n.inputData),n.tagName){case"AUDIO":case"VIDEO":{const t=e,s=n;void 0!==s.paused&&(s.paused?t.pause():t.play()),void 0!==s.muted&&(t.muted=s.muted),void 0!==s.volume&&(t.volume=s.volume),void 0!==s.currentTime&&(t.currentTime=s.currentTime),void 0!==s.playbackRate&&(t.playbackRate=s.playbackRate),void 0!==s.loop&&(t.loop=s.loop);break}case"CANVAS":{const n=t;if(null!==n.rr_dataURL){const e=document.createElement("img");e.onload=()=>{const t=r.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=n.rr_dataURL}n.canvasMutations.forEach((t=>s.applyCanvas(t.event,t.mutation,e)));break}case"STYLE":{const e=r.sheet;
vendor: 5,768 bytes, line 15
15e&&t.rules.forEach((t=>s.applyStyleSheetMutation(t,e)));break}case"DIALOG":{const e=r,t=n,s=e.open,i=e.matches("dialog:modal"),o=t.open,a=t.isModal,l=i!==a,c=s!==o;if((l||s&&c)&&e.close(),o&&(c||l))try{a?e.showModal():e.show()}catch(e){console.warn(e)}break}}break}case Br.Text:case Br.Comment:case Br.CDATA:e.textContent!==t.data&&(e.textContent=t.data)}(null==ln?void 0:ln.has(e))&&(ln.delete(e),null==(r=s.afterAppend)||r.call(s,e,s.mirror.getId(e)))}(e,t,s)}function un(e,t,s,r){const n=Array.from(e.childNodes),i=t.childNodes;if(0===n.length&&0===i.length)return;let o,a,l=0,c=n.length-1,u=0,h=i.length-1,d=n[l],p=n[c],f=i[u],m=i[h];for(;l<=c&&u<=h;)if(void 0===d)d=n[++l];else if(void 0===p)p=n[--c];else if(pn(d,f,s.mirror,r))d=n[++l],f=i[++u];else if(pn(p,m,s.mirror,r))p=n[--c],m=i[--h];else if(pn(d,m,s.mirror,r)){try{e.insertBefore(d,p.nextSibling)}catch(e){console.warn(e)}d=n[++l],m=i[--h]}else if(pn(p,f,s.mirror,r)){try{e.insertBefore(p,d)}catch(e){console.warn(e)}p=n[--c],f=i[++u]}else{if(!o){o={};for(let e=l;e<=c;e++){const t=n[e];t&&s.mirror.hasNode(t)&&(o[s.mirror.getId(t)]=e)}}a=o[r.getId(f)];const t=n[a];if(void 0!==a&&t&&pn(t,f,s.mirror,r)){try{e.insertBefore(t,d)}catch(e){console.warn(e)}n[a]=void 0}else{const t=hn(f,s.mirror,r);"#document"===e.nodeName&&d&&(t.nodeType===t.DOCUMENT_TYPE_NODE&&d.nodeType===d.DOCUMENT_TYPE_NODE||t.nodeType===t.ELEMENT_NODE&&d.nodeType===d.ELEMENT_NODE)&&(e.removeChild(d),s.mirror.removeNodeFromMap(d),d=n[++l]);try{e.insertBefore(t,d||null)}catch(e){console.warn(e)}}f=i[++u]}if(l>c){const t=i[h+1];let n=null;for(t&&(n=s.mirror.getNode(r.getId(t)));u<=h;++u){const t=hn(i[u],s.mirror,r);try{e.insertBefore(t,n)}catch(e){console.warn(e)}}}else if(u>h)for(;l<=c;l++){const t=n[l];if(t&&t.parentNode===e)try{e.removeChild(t),s.mirror.removeNodeFromMap(t)}catch(e){console.warn(e)}}let g=e.firstChild,y=t.firstChild;for(;null!==g&&null!==y;)cn(g,y,s,r),g=g.nextSibling,y=y.nextSibling}function hn(e,t,s){const r=s.getId(e),n=s.getMeta(e);let i=null;if(r>-1&&(i=t.getNode(r)),null!==i&&dn(i,e))return i;switch(e.RRNodeType){case Br.Document:i=new Document;break;case Br.DocumentType:i=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case Br.Element:{let t=e.tagName.toLowerCase();t=an[t]||t,i=n&&"isSVG"in n&&(null==n?void 0:n.isSVG)?document.createElementNS(on.svg,t):document.createElement(e.tagName);break}case Br.Text:i=document.createTextNode(e.data);break;case Br.Comment:i=document.createComment(e.data);break;case Br.CDATA:i=document.createCDATASection(e.data)}n&&t.add(i,u({},n));try{null==ln||ln.add(i)}catch(e){}return i}function dn(e,t){return e.nodeType===t.nodeType&&(e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName)}function pn(e,t,s,r){const n=s.getId(e),i=r.getId(t);return-1!==n&&n===i&&dn(e,t)}class fn extends Hr{constructor(e){super(),ts(this,"UNSERIALIZED_STARTING_ID",-2),ts(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),ts(this,"mirror",new In),ts(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,s){return new fn}createDocumentType(e,t,s){const r=new mn(e,t,s);return r.ownerDocument=this,r}createElement(e){const t=e.toUpperCase();let s;switch(t){case"AUDIO":case"VIDEO":s=new yn(t);break;case"IFRAME":s=new Sn(t,this.mirror);break;case"CANVAS":s=new bn(t);break;case"STYLE":s=new vn(t);break;case"DIALOG":s=new wn(t);break;default:s=new gn(t)}return s.ownerDocument=this,s}createComment(e){const t=new xn(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new Mn(e);return t.ownerDocument=this,t}createTextNode(e){const t=new Cn(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const mn=Yr;class gn extends qr{constructor(){super(...arguments),ts(this,"inputData",null),ts(this,"scrollData",null)}}class yn extends Xr{}class wn extends Jr{}class bn extends gn{constructor(){super(...arguments),ts(this,"rr_dataURL",null),ts(this,"canvasMutations",[])}getContext(){return null}}class vn extends gn{constructor(){super(...arguments),ts(this,"rules",[])}}class Sn extends gn{constructor(e,t){super(e),ts(this,"contentDocument",new fn),this.contentDocument.mirror=t}}const Cn=Kr,xn=Qr,Mn=Zr;function En(e,t,s,r){let n;switch(e.nodeType){case nn.DOCUMENT_NODE:r&&"IFRAME"===r.nodeName?n=r.contentDocument:(n=t,n.compatMode=e.compatMode);break;case nn.DOCUMENT_TYPE_NODE:{const s=e;n=t.createDocumentType(s.name,s.publicId,s.systemId);break}case nn.ELEMENT_NODE:{const s=e,r=(i=s)instanceof HTMLFormElement?"FORM":i.tagName.toUpperCase();n=t.createElement(r);const o=n;for(const{name:e,value:t}of Array.from(s.attributes))o.attributes[e]=t;s.scrollLeft&&(o.scrollLeft=s.scrollLeft),s.scrollTop&&(o.scrollTop=s.scrollTop);break}case nn.TEXT_NODE:n=t.createTextNode(e.textContent||"");break;case nn.CDATA_SECTION_NODE:n=t.createCDATASection(e.data);break;case nn.COMMENT_NODE:n=t.createComment(e.textContent||"");break;case nn.DOCUMENT_FRAGMENT_NODE:n=r.attachShadow({mode:"open"});break;default:return null}var i;let o=s.getMeta(e);return t instanceof fn&&(o||(o=Tn(n,t.unserializedId),s.add(e,o)),t.mirror.add(n,u({},o))),n}function kn(e,t=function(){return new ns}(),s=new fn){return function e(r,n){const i=En(r,s,t,n);if(null!==i)if("IFRAME"!==(null==n?void 0:n.nodeName)&&r.nodeType!==nn.DOCUMENT_FRAGMENT_NODE&&(null==n||n.appendChild(i),i.parentNode=n,i.parentElement=n),"IFRAME"===r.nodeName){const t=r.contentDocument;t&&e(t,i)}else r.nodeType!==nn.DOCUMENT_NODE&&r.nodeType!==nn.ELEMENT_NODE&&r.nodeType!==nn.DOCUMENT_FRAGMENT_NODE||(r.nodeType===nn.ELEMENT_NODE&&r.shadowRoot&&e(r.shadowRoot,i),r.childNodes.forEac
15h((t=>e(t,i))))}(e,null),s}class In{constructor(){ts(this,"idNodeMap",new Map),ts(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=null==(t=this.getMeta(e))?void 0:t.id;return null!=s?s:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const e=this.nodeMetaMap.get(s);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Tn(e,t){switch(e.RRNodeType){case Br.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case Br.DocumentType:{const s=e;return{id:t,type:e.RRNodeType,name:s.name,publicId:s.publicId,systemId:s.systemId}}case Br.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case Br.Text:case Br.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case Br.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}const On={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Rn={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Nn={};function Dn(e){if(Nn[e])return Nn[e];const t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&function(e){var t,s;const r=null==(s=null==(t=null==globalThis?void 0:globalThis.Zone)?void 0:t.__symbol__)?void 0:s.call(t,e);return r&&globalThis[r]?globalThis[r]:void 0}(e)||globalThis[e],s=t.prototype,r=e in On?On[e]:void 0,n=Boolean(r&&r.every((e=>{var t,r;return Boolean(null==(r=null==(t=Object.getOwnPropertyDescriptor(s,e))?void 0:t.get)?void 0:r.toString().includes("[native code]"))}))),i=e in Rn?Rn[e]:void 0,o=Boolean(i&&i.every((e=>{var t;return"function"==typeof s[e]&&(null==(t=s[e])?void 0:t.toString().includes("[native code]"))}))),a=n&&o;let l=t.prototype;if(!a){let t;try{t=document.createElement("iframe"),t.hidden=!0,document.body.appendChild(t);const s=t.contentWindow;if(s){const t=s[e].prototype;t&&(l=t)}}finally{t&&document.body.removeChild(t)}}return Nn[e]=l,l}const An={};function Ln(e,t,s){var r;const n=`${e}.${String(s)}`;if(An[n])return An[n].call(t);const i=Dn(e),o=null==(r=Object.getOwnPropertyDescriptor(i,s))?void 0:r.get;return o?(An[n]=o,o.call(t)):t[s]}const _n={};function Pn(e,t,s){const r=`${e}.${String(s)}`;if(_n[r])return _n[r].bind(t);const n=Dn(e)[s];return"function"!=typeof n?t[s]:(_n[r]=n,n.bind(t))}function Fn(){return Dn("MutationObserver").constructor}function Bn(e,t,s){try{if(!(t in e))return()=>{};const r=e[t],n=s(r);return"function"==typeof n&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=n,()=>{e[t]=r}}catch(e){return()=>{}}}const Un={ownerDocument:function(e){return Ln("Node",e,"ownerDocument")},childNodes:function(e){return Ln("Node",e,"childNodes")},parentNode:function(e){return Ln("Node",e,"parentNode")},parentElement:function(e){return Ln("Node",e,"parentElement")},textContent:function(e){return Ln("Node",e,"textContent")},contains:function(e,t){return Pn("Node",e,"contains")(t)},getRootNode:function(e){return Pn("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Ln("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Ln("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Ln("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Ln("Element",e,"querySelectorAll")(t)},mutationObserver:Fn,patch:Bn};function jn(e,t,s=document){const r={capture:!0,passive:!0};return s.addEventListener(e,t,r),()=>s.removeEventListener(e,t,r)}const Wn="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";function zn(e,t,s={}){let r=null,n=0;return function(...i){const o=Date.now();n||!1!==s.leading||(n=o);const a=t-(o-n),l=this;a<=0||a>t?(r&&(clearTimeout(r),r=null),n=o,e.apply(l,i)):r||!1===s.trailing||(r=setTimeout((()=>{n=!1===s.leading?0:Date.now(),r=null,e.apply(l,i)}),a))}}function Vn(e,t,s,r,n=window){const i=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,r?s:{set(e){setTimeout((()=>{s.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>Vn(e,t,i||{},!0)}t.mirror={map:{},getId(){return console.error(Wn),-1},getNode(){return console.error(Wn),null},removeNodeFromMap(){console.error(Wn)},has(){return console.error(Wn),!1},reset(){console.error(Wn)}},"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(t.mirror=new Proxy(t.mirror,{get(e,t,s){return"map"===t&&console.error(Wn),Reflect.get(e,t,s)}}));let $n=Date.now;function Gn(e){var t,s,r,n;const i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=Un.parentElement(i.body))?void 0:t.scrollLeft)||(null==(s=null==i?void 0:i.body)?void 0:s.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(r=Un.parentElement(i.body))?void 0:r.scrollTop)||(null==(n=null==i?void 0:i.body)?void 0:n.scrollTop)||0}}function Hn(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Yn(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function qn(e){return e?e.nodeType===e.ELEMENT_NODE?e:Un.parentElement(e):null}function Xn(e,t,s,r){if(!e)return!1;const n=qn(e);if(!n)return!1;try{if("string"==typeof t){if(n.classList.contains(t))return!0;
vendor: 6,739 bytes, line 15
15if(r&&null!==n.closest("."+t))return!0}else if(ie(n,t,r))return!0}catch(e){}if(s){if(n.matches(s))return!0;if(r&&null!==n.closest(s))return!0}return!1}function Jn(e,t){return-1!==t.getId(e)}function Kn(e,t,s){return!("TITLE"!==e.tagName||!s.headTitleMutations)||-2===t.getId(e)}function Qn(e,t){if(T(e))return!1;const s=t.getId(e);if(!t.has(s))return!0;const r=Un.parentNode(e);return(!r||r.nodeType!==e.DOCUMENT_NODE)&&(!r||Qn(r,t))}function Zn(e){return Boolean(e.changedTouches)}function ei(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function ti(e){const t={},s=(e,s)=>{const r={value:e,parent:s,children:[]};return t[e.node.id]=r,r},r=[];for(const n of e){const{nextId:e,parentId:i}=n;if(e&&e in t){const i=t[e];if(i.parent){const e=i.parent.children.indexOf(i);i.parent.children.splice(e,0,s(n,i.parent))}else{const e=r.indexOf(i);r.splice(e,0,s(n,null))}}else if(i in t){const e=t[i];e.children.push(s(n,e))}else r.push(s(n,null))}return r}function si(e,t){t(e.value);for(let s=e.children.length-1;s>=0;s--)si(e.children[s],t)}function ri(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function ni(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function ii(e,t){var s,r;const n=null==(r=null==(s=e.ownerDocument)?void 0:s.defaultView)?void 0:r.frameElement;if(!n||n===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const i=n.getBoundingClientRect(),o=ii(n,t),a=i.height/n.clientHeight;return{x:i.x*o.relativeScale+o.x,y:i.y*o.relativeScale+o.y,relativeScale:a,absoluteScale:o.absoluteScale*a}}function oi(e){return!!e&&(e instanceof Gr&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Un.shadowRoot(e)))}function ai(e,t){const s=null==e?void 0:e[t[0]];return s?1===t.length?s:ai(s.cssRules,t.slice(1)):null}function li(e){const t=[...e],s=t.pop();return{positions:t,index:s}}function ci(e){const t=new Set,s=[];for(let r=e.length;r--;){const n=e[r];t.has(n.id)||(s.push(n),t.add(n.id))}return s}/[1-9][0-9]{12}/.test(Date.now().toString())||($n=()=>(new Date).getTime());class ui{constructor(){f(this,"id",1),f(this,"styleIDMap",new WeakMap),f(this,"idStyleMap",new Map)}getId(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let s;return s=void 0===t?this.id++:t,this.styleIDMap.set(e,s),this.idStyleMap.set(s,e),s}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function hi(e){var t;let s=null;return"getRootNode"in e&&(null==(t=Un.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Un.host(Un.getRootNode(e))&&(s=Un.host(Un.getRootNode(e))),s}function di(e){let t,s=e;for(;t=hi(s);)s=t;return s}function pi(e){const t=Un.ownerDocument(e);if(!t)return!1;const s=di(e);return Un.contains(t,s)}function fi(e){const t=Un.ownerDocument(e);return!!t&&(Un.contains(t,e)||pi(e))}const mi=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:ui,get _mirror(){return t.mirror},closestElementOfNode:qn,getBaseDimension:ii,getNestedRule:ai,getPositionsAndIndex:li,getRootShadowHost:di,getShadowHost:hi,getWindowHeight:Hn,getWindowScroll:Gn,getWindowWidth:Yn,hasShadowRoot:oi,hookSetter:Vn,inDom:fi,isAncestorRemoved:Qn,isBlocked:Xn,isIgnored:Kn,isSerialized:Jn,isSerializedIframe:ri,isSerializedStylesheet:ni,iterateResolveTree:si,legacy_isTouchEvent:Zn,get nowTimestamp(){return $n},on:jn,polyfill:ei,queueToResolveTrees:ti,shadowHostInDom:pi,throttle:zn,uniqueTextMutations:ci},Symbol.toStringTag,{value:"Module"}));var gi=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(gi||{}),yi=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(yi||{}),wi=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(wi||{}),bi=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(bi||{}),vi=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(vi||{}),Si=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Si||{}),Ci=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(Ci||{}),xi=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(xi||{});function Mi(e){return"__ln"in e}class Ei{constructor(){f(this,"length",0),f(this,"head",null),f(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let s=0;s<e;s++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Mi(e.previousSibling)){const s=e.previousSibling.__ln.next;t.next=s,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,s&&(s.previous=t)}else if(e.nextSibling&&Mi(e.nextSibling)&&e.nextSibling.__ln.previous){const s=e.nextSibling.__ln.previous;t.previous=s,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,s&&(s.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;
vendor: 45,873 bytes, line 15
15this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const ki=(e,t)=>`${e}@${t}`;class Ii{constructor(){f(this,"frozen",!1),f(this,"locked",!1),f(this,"texts",[]),f(this,"attributes",[]),f(this,"attributeMap",new WeakMap),f(this,"removes",[]),f(this,"mapRemoves",[]),f(this,"movedMap",{}),f(this,"addedSet",new Set),f(this,"movedSet",new Set),f(this,"droppedSet",new Set),f(this,"removesSubTreeCache",new Set),f(this,"mutationCb"),f(this,"blockClass"),f(this,"blockSelector"),f(this,"maskTextClass"),f(this,"maskTextSelector"),f(this,"inlineStylesheet"),f(this,"maskInputOptions"),f(this,"maskTextFn"),f(this,"maskInputFn"),f(this,"keepIframeSrcFn"),f(this,"recordCanvas"),f(this,"inlineImages"),f(this,"slimDOMOptions"),f(this,"dataURLOptions"),f(this,"doc"),f(this,"mirror"),f(this,"iframeManager"),f(this,"stylesheetManager"),f(this,"shadowDomManager"),f(this,"canvasManager"),f(this,"processedNodeManager"),f(this,"unattachedDoc"),f(this,"processMutations",(e=>{e.forEach(this.processMutation),this.emit()})),f(this,"emit",(()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,s=new Ei,r=e=>{let t=e,s=-2;for(;-2===s;)t=t&&t.nextSibling,s=t&&this.mirror.getId(t);return s},n=n=>{const i=Un.parentNode(n);if(!i||!fi(n))return;let o=!1;if(n.nodeType===Node.TEXT_NODE){const e=i.tagName;if("TEXTAREA"===e)return;"STYLE"===e&&this.addedSet.has(i)&&(o=!0)}const a=T(i)?this.mirror.getId(hi(n)):this.mirror.getId(i),l=r(n);if(-1===a||-1===l)return s.addNode(n);const c=ue(n,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{ri(e,this.mirror)&&this.iframeManager.addIframe(e),ni(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),oi(n)&&this.shadowDomManager.addShadowRoot(Un.shadowRoot(n),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:o});c&&(e.push({parentId:a,nextId:l,node:c}),t.add(c.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Oi(this.removesSubTreeCache,e,this.mirror)&&!this.movedSet.has(Un.parentNode(e))||n(e);for(const e of this.addedSet)Ri(this.droppedSet,e)||Oi(this.removesSubTreeCache,e,this.mirror)?Ri(this.movedSet,e)?n(e):this.droppedSet.add(e):n(e);let i=null;for(;s.length;){let e=null;if(i){const t=this.mirror.getId(Un.parentNode(i.value)),s=r(i.value);-1!==t&&-1!==s&&(e=i)}if(!e){let t=s.tail;for(;t;){const s=t;if(t=t.previous,s){const t=this.mirror.getId(Un.parentNode(s.value));if(-1===r(s.value))continue;if(-1!==t){e=s;break}{const t=s.value,r=Un.parentNode(t);if(r&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const t=Un.host(r);if(-1!==this.mirror.getId(t)){e=s;break}}}}}}if(!e){for(;s.head;)s.removeNode(s.head.value);break}i=e.previous,s.removeNode(e.value),n(e.value)}const o={texts:this.texts.map((e=>{const t=e.node,s=Un.parentNode(t);return s&&"TEXTAREA"===s.tagName&&this.genTextAreaValueMutation(s),{id:this.mirror.getId(t),value:e.value}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const s=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);s.length<t.style.length&&(s+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(o))})),f(this,"genTextAreaValueMutation",(e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));const s=Array.from(Un.childNodes(e),(e=>Un.textContent(e)||"")).join("");t.attributes.value=L({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:F(e),value:s,maskInputFn:this.maskInputFn})})),f(this,"processMutation",(e=>{if(!Kn(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const t=Un.textContent(e.target);Xn(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:oe(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,qn(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let s=e.attributeName,r=e.target.getAttribute(s);if("value"===s){const e=F(t);r=L({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:r,maskInputFn:this.maskInputFn})}if(Xn(e.target,this.blockClass,this.blockSelector,!1)||r===e.oldValue)return;let n=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===s&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;s="rr_src"}if(n||(n={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e.target,n)),"type"===s&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!ne(t.tagName,s))if(n.attributes[s]=re(this.doc,_(t.tagName),_(s),r),"style"===s){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");e.oldValue&&s.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);r!==s.style.getPropertyValue(e)||i!==s.style.getPropertyPriority(e)?n.styleDiff[e]=""===i?r:[r,i]:n._unchangedStyles[e]=[r,i]}for(const e of Array.from(s.style))""===t.style.getPropertyValue(e)&&(n.styleDiff[e]=!1)}else"open"===s&&"DIALOG"===t.tagName&&(t.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":if(Xn(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const s=this.mirror.getId(t),r=T(e.target)?this.mirror.getId(Un.host(e.target)):this.mirror.getId(e.target);Xn(e.target,this.blockClass,this.blockSelector,!1)||Kn(t,this.mirror,this.slimDOMOptions)||!Jn(t,this.mirror)||(this.addedSet.has(t)?(Ti(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===s||Qn(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[ki(s,r)]?Ti(this.movedSet,t):(this.removes.push({parentId:r,id:s,isShadow:!(!T(e.target)||!O(e.target))||void 0}),function(e,t){const s=[e];for(;s.length;){const e=s.pop();t.has(e)||(t.add(e),Un.childNodes(e).forEach((e=>s.push(e))))}}(t,this.removesSubTreeCache))),this.mapRemoves.push(t))}))}})),f(this,"genAdds",((e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Kn(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let s=null;t&&this.mirror.hasNode(t)&&(s=this.mirror.getId(t)),s&&-1!==s&&(this.movedMap[ki(this.mirror.getId(e),s)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Xn(e,this.blockClass,this.blockSelector,!1)||(Un.childNodes(e).forEach((e=>this.genAdds(e))),oi(e)&&Un.childNodes(Un.shadowRoot(e)).forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}))}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ti(e,t){e.delete(t),Un.childNodes(t).forEach((t=>Ti(e,t)))}function Oi(e,t,s){return 0!==e.size&&function(e,t){const s=Un.parentNode(t);return!!s&&e.has(s)}(e,t)}function Ri(e,t){return 0!==e.size&&Ni(e,t)}function Ni(e,t){const s=Un.parentNode(t);return!!s&&(!!e.has(s)||Ni(e,s))}let Di;const Ai=e=>Di?(...t)=>{try{return e(...t)}catch(e){if(Di&&!0===Di(e))return;throw e}}:e,Li=[];function _i(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function Pi(e,t){const s=new Ii;Li.push(s),s.init(e);const r=new(Fn())(Ai(s.processMutations.bind(s)));return r.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function Fi({mouseInteractionCb:e,doc:t,mirror:s,blockClass:r,blockSelector:n,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const o=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,a=[];let l=null;return Object.keys(wi).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e])).forEach((i=>{let o=_(i);const c=(t=>i=>{const o=_i(i);if(Xn(o,r,n,!0))return;let a=null,c=t;if("pointerType"in i){switch(i.pointerType){case"mouse":a=bi.Mouse;break;case"touch":a=bi.Touch;break;case"pen":a=bi.Pen}a===bi.Touch?wi[t]===wi.MouseDown?c="TouchStart":wi[t]===wi.MouseUp&&(c="TouchEnd"):bi.Pen}else Zn(i)&&(a=bi.Touch);null!==a?(l=a,(c.startsWith("Touch")&&a===bi.Touch||c.startsWith("Mouse")&&a===bi.Mouse)&&(a=null)):wi[t]===wi.Click&&(a=l,l=null);const h=Zn(i)?i.changedTouches[0]:i;if(!h)return;const d=s.getId(o),{clientX:p,clientY:f}=h;Ai(e)(u({type:wi[c],id:d,x:p,y:f},null!==a&&{pointerType:a}))})(i);if(window.PointerEvent)switch(wi[i]){case wi.MouseDown:case wi.MouseUp:o=o.replace("mouse","pointer");break;case wi.TouchStart:case wi.TouchEnd:return}a.push(jn(o,c,t))})),Ai((()=>{a.forEach((e=>e()))}))}function Bi({scrollCb:e,doc:t,mirror:s,blockClass:r,blockSelector:n,sampling:i}){return jn("scroll",Ai(zn(Ai((i=>{const o=_i(i);if(!o||Xn(o,r,n,!0))return;const a=s.getId(o);if(o===t&&t.defaultView){const s=Gn(t.defaultView);e({id:a,x:s.left,y:s.top})}else e({id:a,x:o.scrollLeft,y:o.scrollTop})})),i.scroll||100)),t)}const Ui=["INPUT","TEXTAREA","SELECT"],ji=new WeakMap;function Wi(e){return function e(t,s){if(Gi("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||Gi("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Gi("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Gi("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const r=Array.from(t.parentRule.cssRules).indexOf(t);return s.unshift(r),e(t.parentRule,s)}if(t.parentStyleSheet){const e=Array.from(t.parentStyleSheet.cssRules).indexOf(t);s.unshift(e)}return s}(e,[])}function zi(e,t,s){let r,n;return e?(e.ownerNode?r=t.getId(e.ownerNode):n=s.getId(e),{styleId:n,id:r}):{}}function Vi({mirror:e,stylesheetManager:t},s){var r,n,i;let o=null;o="#document"===s.nodeName?e.getId(s):e.getId(Un.host(s));const a="#document"===s.nodeName?null==(r=s.defaultView)?void 0:r.Document:null==(i=null==(n=s.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,l=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&a&&l?(Object.defineProperty(s,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var s;const r=null==(s=l.set)?void 0:s.call(this,e);if(null!==o&&-1!==o)try{t.adoptStyleSheets(e,o)}catch(e){}return r}}),Ai((()=>{Object.defineProperty(s,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))):()=>{}}function $i(e,t={}){const s=e.doc.defaultView;if(!s)return()=>{};let r;!function(e,t){const{mutationCb:s,mousemoveCb:r,mouseInteractionCb:n,scrollCb:i,viewportResizeCb:o,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:h,fontCb:d,selectionCb:p,customElementCb:f}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),s(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),r(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),n(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),i(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),o(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),c(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),h(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),d(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),p(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}(e,t),e.recordDOM&&(r=Pi(e,e.doc));const n=function({mousemoveCb:e,sampling:t,doc:s,mirror:r}){if(!1===t.mousemove)return()=>{};const n="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let o,a=[];const l=zn(Ai((t=>{const s=Date.now()-o;e(a.map((e=>(e.timeOffset-=s,e))),t),a=[],o=null})),i),c=Ai(zn(Ai((e=>{const t=_i(e),{clientX:s,clientY:n}=Zn(e)?e.changedTouches[0]:e;o||(o=$n()),a.push({x:s,y:n,id:r.getId(t),timeOffset:$n()-o}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?yi.Drag:e instanceof MouseEvent?yi.MouseMove:yi.TouchMove)})),n,{trailing:!1})),u=[jn("mousemove",c,s),jn("touchmove",c,s),jn("drag",c,s)];return Ai((()=>{u.forEach((e=>e()))}))}(e),i=Fi(e),o=Bi(e),a=function({viewportResizeCb:e},{win:t}){let s=-1,r=-1;return jn("resize",Ai(zn(Ai((()=>{const t=Hn(),n=Yn();s===t&&r===n||(e({width:Number(n),height:Number(t)}),s=t,r=n)})),200)),t)}(e,{win:s}),l=function({inputCb:e,doc:t,mirror:s,blockClass:r,blockSelector:n,ignoreClass:i,ignoreSelector:o,maskInputOptions:a,maskInputFn:l,sampling:c,userTriggeredOnInput:d}){function p(e){let s=_i(e);const c=e.isTrusted,u=s&&s.tagName;if(s&&"OPTION"===u&&(s=Un.parentElement(s)),!s||!u||Ui.indexOf(u)<0||Xn(s,r,n,!0))return;if(s.classList.contains(i)||o&&s.matches(o))return;let h=s.value,p=!1;const m=F(s)||"";"radio"===m||"checkbox"===m?p=s.checked:(a[u.toLowerCase()]||a[m])&&(h=L({element:s,maskInputOptions:a,tagName:u,type:m,value:h,maskInputFn:l})),f(s,d?{text:h,isChecked:p,userTriggered:c}:{text:h,isChecked:p});const g=s.name;"radio"===m&&g&&p&&t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach((e=>{if(e!==s){const t=e.value;f(e,d?{text:t,isChecked:!p,userTriggered:!1}:{text:t,isChecked:!p})}}))}function f(t,r){const n=ji.get(t);if(!n||n.text!==r.text||n.isChecked!==r.isChecked){ji.set(t,r);const n=s.getId(t);Ai(e)(h(u({},r),{id:n}))}}const m=("last"===c.input?["change"]:["input","change"]).map((e=>jn(e,Ai(p),t))),g=t.defaultView;if(!g)return()=>{m.forEach((e=>e()))};const y=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),w=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return y&&y.set&&m.push(...w.map((e=>Vn(e[0],e[1],{set(){Ai(p)({target:this,isTrusted:!1})}},!1,g)))),Ai((()=>{m.forEach((e=>e()))}))}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:s,mirror:r,sampling:n,doc:i}){const o=Ai((i=>zn(Ai((n=>{const o=_i(n);if(!o||Xn(o,t,s,!0))return;const{currentTime:a,volume:l,muted:c,playbackRate:u,loop:h}=o;e({type:i,id:r.getId(o),currentTime:a,volume:l,muted:c,playbackRate:u,loop:h})})),n.media||500))),a=[jn("play",o(Si.Play),i),jn("pause",o(Si.Pause),i),jn("seeked",o(Si.Seeked),i),jn("volumechange",o(Si.VolumeChange),i),jn("ratechange",o(Si.RateChange),i)];return Ai((()=>{a.forEach((e=>e()))}))}(e);let d=()=>{},p=()=>{},f=()=>{},m=()=>{};e.recordDOM&&(d=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:s},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const n=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:Ai(((r,n,i)=>{const[o,a]=i,{id:l,styleId:c}=zi(n,t,s.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:a}]}),r.apply(n,i)}))}),r.CSSStyleSheet.prototype.addRule=function(e,t,s=this.cssRules.length){const n=`${e} { ${t} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[n,s])};const i=r.CSSStyleSheet.prototype.deleteRule;let o,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Ai(((r,n,i)=>{const[o]=i,{id:a,styleId:l}=zi(n,t,s.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:o}]}),r.apply(n,i)}))}),r.CSSStyleSheet.prototype.removeRule=function(e){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:Ai(((r,n,i)=>{const[o]=i,{id:a,styleId:l}=zi(n,t,s.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:o}),r.apply(n,i)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Ai(((r,n,i)=>{const[o]=i,{id:a,styleId:l}=zi(n,t,s.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:o}),r.apply(n,i)}))}));const l={};Hi("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(Hi("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),Hi("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),Hi("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(l).forEach((([r,n])=>{c[r]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(c[r].insertRule,{apply:Ai(((r,n,i)=>{const[o,a]=i,{id:l,styleId:c}=zi(n.parentStyleSheet,t,s.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:[...Wi(n),a||0]}]}),r.apply(n,i)}))}),n.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:Ai(((r,n,i)=>{const[o]=i,{id:a,styleId:l}=zi(n.parentStyleSheet,t,s.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...Wi(n),o]}]}),r.apply(n,i)}))})})),Ai((()=>{r.CSSStyleSheet.prototype.insertRule=n,r.CSSStyleSheet.prototype.deleteRule=i,o&&(r.CSSStyleSheet.prototype.replace=o),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach((([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule}))}))}(e,{win:s}),p=Vi(e,e.doc),f=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:s,stylesheetManager:r},{win:n}){const i=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Ai(((n,o,a)=>{var l;const[c,u,h]=a;if(s.has(c))return i.apply(o,[c,u,h]);const{id:d,styleId:p}=zi(null==(l=o.parentRule)?void 0:l.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:u,priority:h},index:Wi(o.parentRule)}),n.apply(o,a)}))});const o=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:Ai(((n,i,a)=>{var l;const[c]=a;if(s.has(c))return o.apply(i,[c]);const{id:u,styleId:h}=zi(null==(l=i.parentRule)?void 0:l.parentStyleSheet,t,r.styleMirror);return(u&&-1!==u||h&&-1!==h)&&e({id:u,styleId:h,remove:{property:c},index:Wi(i.parentRule)}),n.apply(i,a)}))}),Ai((()=>{n.CSSStyleDeclaration.prototype.setProperty=i,n.CSSStyleDeclaration.prototype.removeProperty=o}))}(e,{win:s}),e.collectFonts&&(m=function({fontCb:e,doc:t}){const s=t.defaultView;if(!s)return()=>{};const r=[],n=new WeakMap,i=s.FontFace;s.FontFace=function(e,t,s){const r=new i(e,t,s);return n.set(r,{family:e,buffer:"string"!=typeof t,descriptors:s,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const o=Bn(t.fonts,"add",(function(t){return function(s){return setTimeout(Ai((()=>{const t=n.get(s);t&&(e(t),n.delete(s))})),0),t.apply(this,[s])}}));return r.push((()=>{s.FontFace=i})),r.push(o),Ai((()=>{r.forEach((e=>e()))}))}(e)));const g=function(e){const{doc:t,mirror:s,blockClass:r,blockSelector:n,selectionCb:i}=e;let o=!0;const a=Ai((()=>{const e=t.getSelection();if(!e||o&&(null==e?void 0:e.isCollapsed))return;o=e.isCollapsed||!1;const a=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:o,startOffset:l,endContainer:c,endOffset:u}=i;Xn(o,r,n,!0)||Xn(c,r,n,!0)||a.push({start:s.getId(o),startOffset:l,end:s.getId(c),endOffset:u})}i({ranges:a})}));return a(),jn("selectionchange",a)}(e),y=function({doc:e,customElementCb:t}){const s=e.defaultView;return s&&s.customElements?Bn(s.customElements,"define",(function(e){return function(s,r,n){try{t({define:{name:s}})}catch(e){console.warn(`Custom element callback failed for ${s}`)}return e.apply(this,[s,r,n])}})):()=>{}}(e),w=[];for(const t of e.plugins)w.push(t.observer(t.callback,s,t.options));return Ai((()=>{Li.forEach((e=>e.reset())),null==r||r.disconnect(),n(),i(),o(),a(),l(),c(),d(),p(),f(),m(),g(),y(),w.forEach((e=>e()))}))}function Gi(e){return void 0!==window[e]}function Hi(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Yi{constructor(e){f(this,"iframeIdToRemoteIdMap",new WeakMap),f(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,s,r){const n=s||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e);let o=n.get(t);return o||(o=this.generateIdFn(),n.set(t,o),i.set(o,t)),o}getIds(e,t){const s=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,s,r)))}getRemoteId(e,t,s){const r=s||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const n=r.get(t);return n||-1}getRemoteIds(e,t){const s=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,s)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class qi{constructor(e){f(this,"iframes",new WeakMap),f(this,"crossOriginIframeMap",new WeakMap),f(this,"crossOriginIframeMirror",new Yi(q)),f(this,"crossOriginIframeStyleMirror"),f(this,"crossOriginIframeRootIdMap",new WeakMap),f(this,"mirror"),f(this,"mutationCb"),f(this,"wrappedEmit"),f(this,"loadListener"),f(this,"stylesheetManager"),f(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Yi(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var s,r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(s=e.contentWindow)||s.addEventListener("message",this.handleMessage.bind(this))),null==(r=this.loadListener)||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const s=this.crossOriginIframeMap.get(e.source);if(!s)return;const r=this.transformCrossOriginEvent(s,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){var s;switch(t.type){case gi.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const s=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,s),this.patchRootIdOnNode(t.data.node,s),{timestamp:t.timestamp,type:gi.IncrementalSnapshot,data:{source:yi.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case gi.Meta:case gi.Load:case gi.DomContentLoaded:return!1;case gi.Plugin:return t;case gi.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case gi.IncrementalSnapshot:switch(t.data.source){case yi.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const s=this.crossOriginIframeRootIdMap.get(e);s&&this.patchRootIdOnNode(t.node,s)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case yi.Drag:case yi.TouchMove:case yi.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case yi.ViewportResize:return!1;case yi.MediaInteraction:case yi.MouseInteraction:case yi.Scroll:case yi.CanvasMutation:case yi.Input:return this.replaceIds(t.data,e,["id"]),t;case yi.StyleSheetRule:case yi.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case yi.Font:return t;case yi.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case yi.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(s=t.data.styles)||s.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,s,r){for(const n of r)(Array.isArray(t[n])||"number"==typeof t[n])&&(Array.isArray(t[n])?t[n]=e.getIds(s,t[n]):t[n]=e.getId(s,t[n]));return t}replaceIds(e,t,s){return this.replace(this.crossOriginIframeMirror,e,t,s)}replaceStyleIds(e,t,s){return this.replace(this.crossOriginIframeStyleMirror,e,t,s)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===xi.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Xi{constructor(e){f(this,"shadowDoms",new WeakSet),f(this,"mutationCb"),f(this,"scrollCb"),f(this,"bypassOptions"),f(this,"mirror"),f(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!O(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const s=Pi(h(u({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((()=>s.disconnect())),this.restoreHandlers.push(Bi(h(u({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(Un.host(e))),this.restoreHandlers.push(Vi({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const s=this;this.restoreHandlers.push(Bn(e.prototype,"attachShadow",(function(e){return function(r){const n=e.call(this,r),i=Un.shadowRoot(this);return i&&fi(this)&&s.addShadowRoot(i,t),n}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var Ji="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ki="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Qi=0;Qi<64;Qi++)Ki[Ji.charCodeAt(Qi)]=Qi;const Zi=new Map,eo=(e,t,s)=>{if(!e||!ro(e,t)&&"object"!=typeof e)return;const r=function(e,t){let s=Zi.get(e);return s||(s=new Map,Zi.set(e,s)),s.has(t)||s.set(t,[]),s.get(t)}(s,e.constructor.name);let n=r.indexOf(e);return-1===n&&(n=r.length,r.push(e)),n};function to(e,t,s){if(e instanceof Array)return e.map((e=>to(e,t,s)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer)return{rr_type:e.constructor.name,base64:function(e){var t,s=new Uint8Array(e),r=s.length,n="";for(t=0;t<r;t+=3)n+=Ji[s[t]>>2],n+=Ji[(3&s[t])<<4|s[t+1]>>4],n+=Ji[(15&s[t+1])<<2|s[t+2]>>6],n+=Ji[63&s[t+2]];return r%3==2?n=n.substring(0,n.length-1)+"=":r%3==1&&(n=n.substring(0,n.length-2)+"=="),n}(e)};if(e instanceof DataView)return{rr_type:e.constructor.name,args:[to(e.buffer,t,s),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:s}=e;return{rr_type:t,src:s}}return e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[to(e.data,t,s),e.width,e.height]}:ro(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:eo(e,t,s)}:e}const so=(e,t,s)=>e.map((e=>to(e,t,s))),ro=(e,t)=>{const s=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(s.find((s=>e instanceof t[s])))};function no(e,t,s,r){const n=[];try{const i=Bn(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(n,...i){if(!Xn(this,t,s,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(n);if("__context"in this||(this.__context=e),r&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){const e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[n,...i])}}));n.push(i)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach((e=>e()))}}function io(e,t,s,r,n,i){const o=[],a=Object.getOwnPropertyNames(e);for(const l of a)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if("function"!=typeof e[l])continue;const a=Bn(e,l,(function(e){return function(...o){const a=e.apply(this,o);if(eo(a,i,this),"tagName"in this.canvas&&!Xn(this.canvas,r,n,!0)){const e=so(o,i,this),r={type:t,property:l,args:e};s(this.canvas,r)}return a}}));o.push(a)}catch(r){const n=Vn(e,l,{set(e){s(this.canvas,{type:t,property:l,args:[e],setter:!0})}});o.push(n)}return o}const oo='(function() {\n "use strict";\n var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";\n var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);\n for (var i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n }\n var encode = function(arraybuffer) {\n var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";\n for (i2 = 0; i2 < len; i2 += 3) {\n base64 += chars[bytes[i2] >> 2];\n base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];\n base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];\n base64 += chars[bytes[i2 + 2] & 63];\n }\n if (len % 3 === 2) {\n base64 = base64.substring(0, base64.length - 1) + "=";\n } else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + "==";\n }\n return base64;\n };\n const lastBlobMap = /* @__PURE__ */ new Map();\n const transparentBlobMap = /* @__PURE__ */ new Map();\n async function getTransparentBlobFor(width, height, dataURLOptions) {\n const id = `${width}-${height}`;\n if ("OffscreenCanvas" in globalThis) {\n if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);\n const offscreen = new OffscreenCanvas(width, height);\n offscreen.getContext("2d");\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n transparentBlobMap.set(id, base64);\n return base64;\n } else {\n return "";\n }\n }\n const worker = self;\n worker.onmessage = async function(e) {\n if ("OffscreenCanvas" in globalThis) {\n const { id, bitmap, width, height, dataURLOptions } = e.data;\n const transparentBase64 = getTransparentBlobFor(\n width,\n height,\n dataURLOptions\n );\n const offscreen = new OffscreenCanvas(width, height);\n const ctx = offscreen.getContext("2d");\n ctx.drawImage(bitmap, 0, 0);\n bitmap.close();\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const type = blob.type;\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n if (!lastBlobMap.has(id) && await transparentBase64 === base64) {\n lastBlobMap.set(id, base64);\n return worker.postMessage({ id });\n }\n if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });\n worker.postMessage({\n id,\n type,\n base64,\n width,\n height\n });\n lastBlobMap.set(id, base64);\n } else {\n return worker.postMessage({ id: e.data.id });\n }\n };\n})();\n//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map\n',ao="undefined"!=typeof self&&self.Blob&&new Blob([oo],{type:"text/javascript;charset=utf-8"});function lo(e){let t;try{if(t=ao&&(self.URL||self.webkitURL).createObjectURL(ao),!t)throw"";const s=new Worker(t,{name:null==e?void 0:e.name});return s.addEventListener("error",(()=>{(self.URL||self.webkitURL).revokeObjectURL(t)})),s}catch(t){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(oo),{name:null==e?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}class co{constructor(e){f(this,"pendingCanvasMutations",new Map),f(this,"rafStamps",{latestId:0,invokeId:null}),f(this,"mirror"),f(this,"mutationCb"),f(this,"resetObservers"),f(this,"frozen",!1),f(this,"locked",!1),f(this,"processMutation",((e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)}));const{sampling:t="all",win:s,blockClass:r,blockSelector:n,recordCanvas:i,dataURLOptions:o}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(s,r,n),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,s,r,n,{dataURLOptions:o})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,s,r,n){const i=no(t,s,r,!0),o=new Map,a=new lo;a.onmessage=e=>{const{id:t}=e.data;if(o.set(t,!1),!("base64"in e.data))return;const{base64:s,type:r,width:n,height:i}=e.data;this.mutationCb({id:t,type:vi["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:s}],type:r}]},0,0]}]})};const l=1e3/e;let c,u=0;const h=e=>{u&&e-u<l||(u=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach((t=>{Xn(t,s,r,!0)||e.push(t)})),e})().forEach((async e=>{var t;const s=this.mirror.getId(e);if(o.get(s))return;if(0===e.width||0===e.height)return;if(o.set(s,!0),["webgl","webgl2"].includes(e.__context)){const s=e.getContext(e.__context);!1===(null==(t=null==s?void 0:s.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&s.clear(s.COLOR_BUFFER_BIT)}const r=await createImageBitmap(e);a.postMessage({id:s,bitmap:r,width:e.width,height:e.height,dataURLOptions:n.dataURLOptions},[r])}))),c=requestAnimationFrame(h)};c=requestAnimationFrame(h),this.resetObservers=()=>{i(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,s){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const r=no(e,t,s,!1),n=function(e,t,s,r){const n=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const o of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])continue;const i=Bn(t.CanvasRenderingContext2D.prototype,o,(function(n){return function(...i){return Xn(this.canvas,s,r,!0)||setTimeout((()=>{const s=so(i,t,this);e(this.canvas,{type:vi["2D"],property:o,args:s})}),0),n.apply(this,i)}}));n.push(i)}catch(s){const r=Vn(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:vi["2D"],property:o,args:[t],setter:!0})}});n.push(r)}return()=>{n.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,s),i=function(e,t,s,r){const n=[];return void 0!==t.WebGLRenderingContext&&n.push(...io(t.WebGLRenderingContext.prototype,vi.WebGL,e,s,r,t)),void 0!==t.WebGL2RenderingContext&&n.push(...io(t.WebGL2RenderingContext.prototype,vi.WebGL2,e,s,r,t)),()=>{n.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,s);this.resetObservers=()=>{r(),n(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const s=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,s)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const s=this.pendingCanvasMutations.get(e);if(!s||-1===t)return;const r=s.map((e=>{const t=e,{type:s}=t;return d(t,["type"])})),{type:n}=s[0];this.mutationCb({id:t,type:n,commands:r}),this.pendingCanvasMutations.delete(e)}}class uo{constructor(e){f(this,"trackedLinkElements",new WeakSet),f(this,"mutationCb"),f(this,"adoptedStyleSheetCb"),f(this,"styleMirror",new ui),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const s={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,s)=>({rule:N(e,t.href),index:s})))})),s.styleIds.push(e)}r.length>0&&(s.styles=r),this.adoptedStyleSheetCb(s)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ho{constructor(){f(this,"nodeMap",new WeakMap),f(this,"active",!1)}inOtherBuffer(e,t){const s=this.nodeMap.get(e);return s&&Array.from(s).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,requestAnimationFrame((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let po,fo,mo,go=!1;try{if(2!==Array.from([1],(e=>2*e))[0]){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=(null==(e=t.contentWindow)?void 0:e.Array.from)||Array.from,document.body.removeChild(t)}}catch(e){console.debug("Unable to override Array.from",e)}const yo=A();function wo(e={}){const{emit:t,checkoutEveryNms:s,checkoutEveryNth:r,blockClass:n="rr-block",blockSelector:i=null,ignoreClass:o="rr-ignore",ignoreSelector:a=null,maskTextClass:l="rr-mask",maskTextSelector:c=null,inlineStylesheet:h=!0,maskAllInputs:d,maskInputOptions:p,slimDOMOptions:f,maskInputFn:m,maskTextFn:g,hooks:y,packFn:w,sampling:b={},dataURLOptions:v={},mousemoveWait:S,recordDOM:C=!0,recordCanvas:x=!1,recordCrossOriginIframes:M=!1,recordAfter:E=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:k=!1,collectFonts:I=!1,inlineImages:T=!1,plugins:O,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:A}=e;Di=A;const L=!M||window.parent===window;let _=!1;if(!L)try{window.parent.document&&(_=!1)}catch(e){_=!0}if(L&&!t)throw new Error("emit function is required");if(!L&&!_)return()=>{};void 0!==S&&void 0===b.mousemove&&(b.mousemove=S),yo.reset();const P=!0===d?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==p?p:{password:!0},F=ce(f);let B;ei();let U=0;const j=e=>{for(const t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!_&&(e=w(e)),e};po=(e,n)=>{var i;const o=e;if(o.timestamp=$n(),!(null==(i=Li[0])?void 0:i.isFrozen())||o.type===gi.FullSnapshot||o.type===gi.IncrementalSnapshot&&o.data.source===yi.Mutation||Li.forEach((e=>e.unfreeze())),L)null==t||t(j(o),n);else if(_){const e={type:"rrweb",event:j(o),origin:window.location.origin,isCheckout:n};window.parent.postMessage(e,"*")}if(o.type===gi.FullSnapshot)B=o,U=0;else if(o.type===gi.IncrementalSnapshot){if(o.data.source===yi.Mutation&&o.data.isAttachIframe)return;U++;const e=r&&U>=r,t=s&&o.timestamp-B.timestamp>s;(e||t)&&fo(!0)}};const W=e=>{po({type:gi.IncrementalSnapshot,data:u({source:yi.Mutation},e)})},z=e=>po({type:gi.IncrementalSnapshot,data:u({source:yi.Scroll},e)}),V=e=>po({type:gi.IncrementalSnapshot,data:u({source:yi.CanvasMutation},e)}),$=new uo({mutationCb:W,adoptedStyleSheetCb:e=>po({type:gi.IncrementalSnapshot,data:u({source:yi.AdoptedStyleSheet},e)})}),G=new qi({mirror:yo,mutationCb:W,stylesheetManager:$,recordCrossOriginIframes:M,wrappedEmit:po});for(const e of O||[])e.getMirror&&e.getMirror({nodeMirror:yo,crossOriginIframeMirror:G.crossOriginIframeMirror,crossOriginIframeStyleMirror:G.crossOriginIframeStyleMirror});const H=new ho;mo=new co({recordCanvas:x,mutationCb:V,win:window,blockClass:n,blockSelector:i,mirror:yo,sampling:b.canvas,dataURLOptions:v});const Y=new Xi({mutationCb:W,scrollCb:z,bypassOptions:{blockClass:n,blockSelector:i,maskTextClass:l,maskTextSelector:c,inlineStylesheet:h,maskInputOptions:P,dataURLOptions:v,maskTextFn:g,maskInputFn:m,recordCanvas:x,inlineImages:T,sampling:b,slimDOMOptions:F,iframeManager:G,stylesheetManager:$,canvasManager:mo,keepIframeSrcFn:R,processedNodeManager:H},mirror:yo});fo=(e=!1)=>{if(!C)return;po({type:gi.Meta,data:{href:window.location.href,width:Yn(),height:Hn()}},e),$.reset(),Y.init(),Li.forEach((e=>e.lock()));const t=function(e,t){const{mirror:s=new D,blockClass:r="rr-block",blockSelector:n=null,maskTextClass:i="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:c=!1,maskAllInputs:u=!1,maskTextFn:h,maskInputFn:d,slimDOM:p=!1,dataURLOptions:f,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:v,keepIframeSrcFn:S=()=>!1}=t;return ue(e,{doc:e,mirror:s,blockClass:r,blockSelector:n,maskTextClass:i,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===u?{password:!0}:u,maskTextFn:h,maskInputFn:d,slimDOMOptions:ce(p),dataURLOptions:f,inlineImages:l,recordCanvas:c,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:v,keepIframeSrcFn:S,newlyAddedElement:!1})}(document,{mirror:yo,blockClass:n,blockSelector:i,maskTextClass:l,maskTextSelector:c,inlineStylesheet:h,maskAllInputs:P,maskTextFn:g,maskInputFn:m,slimDOM:F,dataURLOptions:v,recordCanvas:x,inlineImages:T,onSerialize:e=>{ri(e,yo)&&G.addIframe(e),ni(e,yo)&&$.trackLinkElement(e),oi(e)&&Y.addShadowRoot(Un.shadowRoot(e),document)},onIframeLoad:(e,t)=>{G.attachIframe(e,t),Y.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{$.attachLinkElement(e,t)},keepIframeSrcFn:R});if(!t)return console.warn("Failed to snapshot the document");po({type:gi.FullSnapshot,data:{node:t,initialOffset:Gn(window)}},e),Li.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&$.adoptStyleSheets(document.adoptedStyleSheets,yo.getId(document))};try{const e=[],t=e=>{var t;return Ai($i)({mutationCb:W,mousemoveCb:(e,t)=>
15po({type:gi.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>po({type:gi.IncrementalSnapshot,data:u({source:yi.MouseInteraction},e)}),scrollCb:z,viewportResizeCb:e=>po({type:gi.IncrementalSnapshot,data:u({source:yi.ViewportResize},e)}),inputCb:e=>po({type:gi.IncrementalSnapshot,data:u({source:yi.Input},e)}),mediaInteractionCb:e=>po({type:gi.IncrementalSnapshot,data:u({source:yi.MediaInteraction},e)}),styleSheetRuleCb:e=>po({type:gi.IncrementalSnapshot,data:u({source:yi.StyleSheetRule},e)}),styleDeclarationCb:e=>po({type:gi.IncrementalSnapshot,data:u({source:yi.StyleDeclaration},e)}),canvasMutationCb:V,fontCb:e=>po({type:gi.IncrementalSnapshot,data:u({source:yi.Font},e)}),selectionCb:e=>{po({type:gi.IncrementalSnapshot,data:u({source:yi.Selection},e)})},customElementCb:e=>{po({type:gi.IncrementalSnapshot,data:u({source:yi.CustomElement},e)})},blockClass:n,ignoreClass:o,ignoreSelector:a,maskTextClass:l,maskTextSelector:c,maskInputOptions:P,inlineStylesheet:h,sampling:b,recordDOM:C,recordCanvas:x,inlineImages:T,userTriggeredOnInput:k,collectFonts:I,doc:e,maskInputFn:m,maskTextFn:g,keepIframeSrcFn:R,blockSelector:i,slimDOMOptions:F,dataURLOptions:v,mirror:yo,iframeManager:G,stylesheetManager:$,shadowDomManager:Y,processedNodeManager:H,canvasManager:mo,ignoreCSSAttributes:N,plugins:(null==(t=null==O?void 0:O.filter((e=>e.observer)))?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>po({type:gi.Plugin,data:{plugin:e.name,payload:t}})}))))||[]},y)};G.addLoadListener((s=>{try{e.push(t(s.contentDocument))}catch(e){console.warn(e)}}));const s=()=>{fo(),e.push(t(document)),go=!0};return["interactive","complete"].includes(document.readyState)?s():(e.push(jn("DOMContentLoaded",(()=>{po({type:gi.DomContentLoaded,data:{}}),"DOMContentLoaded"===E&&s()}))),e.push(jn("load",(()=>{po({type:gi.Load,data:{}}),"load"===E&&s()}),window))),()=>{e.forEach((e=>{try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}})),H.destroy(),go=!1,Di=void 0}}catch(e){console.warn(e)}}function bo(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&!0!==e.__forceSmoothScrollPolyfill__)return;const s=e.HTMLElement||e.Element,r={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:s.prototype.scroll||a,scrollIntoView:s.prototype.scrollIntoView},n=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,i=(o=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(o)?1:0);var o;function a(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(e,t){return"Y"===t?e.clientHeight+i<e.scrollHeight:"X"===t?e.clientWidth+i<e.scrollWidth:void 0}function u(t,s){const r=e.getComputedStyle(t,null)["overflow"+s];return"auto"===r||"scroll"===r}function h(e){const t=c(e,"Y")&&u(e,"Y"),s=c(e,"X")&&u(e,"X");return t||s}function d(t){let s,r,i,o=(n()-t.startTime)/468;var a;o=o>1?1:o,a=o,s=.5*(1-Math.cos(Math.PI*a)),r=t.startX+(t.x-t.startX)*s,i=t.startY+(t.y-t.startY)*s,t.method.call(t.scrollable,r,i),r===t.x&&i===t.y||e.requestAnimationFrame(d.bind(e,t))}function p(s,i,o){let l,c,u,h;const p=n();s===t.body?(l=e,c=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,h=r.scroll):(l=s,c=s.scrollLeft,u=s.scrollTop,h=a),d({scrollable:l,method:h,startTime:p,startX:c,startY:u,x:i,y:o})}e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?p.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):r.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?r.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):p.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},s.prototype.scroll=s.prototype.scrollTo=function(){if(void 0===arguments[0])return;if(!0===l(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");return void r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}const e=arguments[0].left,t=arguments[0].top;p.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)},s.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},s.prototype.scrollIntoView=function(){if(!0===l(arguments[0]))return void r.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);const s=function(e){for(;e!==t.body&&!1===h(e);)e=e.parentNode||e.host;return e}(this),n=s.getBoundingClientRect(),i=this.getBoundingClientRect();s!==t.body?(p.call(this,s,s.scrollLeft+i.left-n.left,s.scrollTop+i.top-n.top),"fixed"!==e.getComputedStyle(s).position&&e.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})}}wo.addCustomEvent=(e,t)=>
15{if(!go)throw new Error("please add custom event after start recording");po({type:gi.Custom,data:{tag:e,payload:t}})},wo.freezePage=()=>{Li.forEach((e=>e.freeze()))},wo.takeFullSnapshot=e=>{if(!go)throw new Error("please take full snapshot after start recording");fo(e)},wo.mirror=yo;class vo{constructor(e=[],t){f(this,"timeOffset",0),f(this,"speed"),f(this,"actions"),f(this,"raf",null),f(this,"lastTimestamp"),this.actions=e,this.speed=t.speed}addAction(e){const t=!0===this.raf;if(!this.actions.length||this.actions[this.actions.length-1].delay<=e.delay)this.actions.push(e);else{const t=this.findActionIndex(e);this.actions.splice(t,0,e)}t&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){const e=performance.now();for(this.timeOffset+=(e-this.lastTimestamp)*this.speed,this.lastTimestamp=e;this.actions.length;){const e=this.actions[0];if(!(this.timeOffset>=e.delay))break;this.actions.shift(),e.doAction()}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(!0!==this.raf&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(e){this.speed=e}isActive(){return null!==this.raf}findActionIndex(e){let t=0,s=this.actions.length-1;for(;t<=s;){const r=Math.floor((t+s)/2);if(this.actions[r].delay<e.delay)t=r+1;else{if(!(this.actions[r].delay>e.delay))return r+1;s=r-1}}return t}}function So(e,t){if(e.type===gi.IncrementalSnapshot&&e.data.source===yi.MouseMove&&e.data.positions&&e.data.positions.length){const s=e.data.positions[0].timeOffset,r=e.timestamp+s;return e.delay=r-t,r-t}return e.delay=e.timestamp-t,e.delay}function Co(e,t){var s="function"==typeof Symbol&&e[Symbol.iterator];if(!s)return e;var r,n,i=s.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(s=i.return)&&s.call(i)}finally{if(n)throw n.error}}return o}var xo,Mo;(Mo=xo||(xo={}))[Mo.NotStarted=0]="NotStarted",Mo[Mo.Running=1]="Running",Mo[Mo.Stopped=2]="Stopped";var Eo={type:"xstate.init"};function ko(e){return void 0===e?[]:[].concat(e)}function Io(e){return{type:"xstate.assign",assignment:e}}function To(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function Oo(e){return function(t){return e===t}}function Ro(e){return"string"==typeof e?{type:e}:e}function No(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Oo(e)}}function Do(e,t,s){var r=t,n=!1;return[e.filter((function(e){if("xstate.assign"===e.type){n=!0;var t=Object.assign({},r);return"function"==typeof e.assignment?t=e.assignment(r,s):Object.keys(e.assignment).forEach((function(n){t[n]="function"==typeof e.assignment[n]?e.assignment[n](r,s):e.assignment[n]})),r=t,!1}return!0})),r,n]}function Ao(e,t){void 0===t&&(t={});var s=Co(Do(ko(e.states[e.initial].entry).map((function(e){return To(e,t.actions)})),e.context,Eo),2),r=s[0],n=s[1],i={config:e,_options:t,initialState:{value:e.initial,actions:r,context:n,matches:Oo(e.initial)},transition:function(t,s){var r,n,o="string"==typeof t?{value:t,context:e.context}:t,a=o.value,l=o.context,c=Ro(s),u=e.states[a];if(u.on){var h=ko(u.on[c.type]);try{for(var d=function(e){var t="function"==typeof Symbol&&Symbol.iterator,s=t&&e[t],r=0;if(s)return s.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),p=d.next();!p.done;p=d.next()){var f=p.value;if(void 0===f)return No(a,l);var m="string"==typeof f?{target:f}:f,g=m.target,y=m.actions,w=void 0===y?[]:y,b=m.cond,v=void 0===b?function(){return!0}:b,S=void 0===g,C=null!=g?g:a,x=e.states[C];if(v(l,c)){var M=Co(Do((S?ko(w):[].concat(u.exit,w,x.entry).filter((function(e){return e}))).map((function(e){return To(e,i._options.actions)})),l,c),3),E=M[0],k=M[1],I=M[2],T=null!=g?g:a;return{value:T,context:k,actions:E,changed:g!==a||E.length>0||I,matches:Oo(T)}}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}}return No(a,l)}};return i}var Lo=function(e,t){return e.actions.forEach((function(s){var r=s.exec;return r&&r(e.context,t)}))};function _o(e){var t=e.initialState,s=xo.NotStarted,r=new Set,n={_machine:e,send:function(n){s===xo.Running&&(t=e.transition(t,n),Lo(t,Ro(n)),r.forEach((function(e){return e(t)})))},subscribe:function(e){return r.add(e),e(t),{unsubscribe:function(){return r.delete(e)}}},start:function(r){if(r){var i="object"==typeof r?r:{context:e.config.context,value:r};t={value:i.value,actions:[],context:i.context,matches:Oo(i.value)}}return s=xo.Running,Lo(t,Eo),n},stop:function(){return s=xo.Stopped,r.clear(),n},get state(){return t},get status(){return s}};return n}function Po(e,{getCastFn:t,applyEventsSynchronously:s,emitter:r}){return _o(Ao({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:Io({lastPlayedEvent:(e,t)=>
15"CAST_EVENT"===t.type?t.payload.event:e.lastPlayedEvent}),recordTimeOffset:Io(((e,t)=>{let s=e.timeOffset;return"payload"in t&&"timeOffset"in t.payload&&(s=t.payload.timeOffset),h(u({},e),{timeOffset:s,baselineTime:e.events[0].timestamp+s})})),play(e){var n;const{timer:i,events:o,baselineTime:a,lastPlayedEvent:l}=e;i.clear();for(const e of o)So(e,a);const c=function(e,t){for(let s=e.length-1;s>=0;s--){const r=e[s];if(r.type===gi.Meta&&r.timestamp<=t)return e.slice(s)}return e}(o,a);let u=null==l?void 0:l.timestamp;(null==l?void 0:l.type)===gi.IncrementalSnapshot&&l.data.source===yi.MouseMove&&(u=l.timestamp+(null==(n=l.data.positions[0])?void 0:n.timeOffset)),a<(u||0)&&r.emit(Ci.PlayBack);const h=new Array;for(const e of c)if(!(u&&u<a&&(e.timestamp<=u||e===l)))if(e.timestamp<a)h.push(e);else{const s=t(e,!1);i.addAction({doAction:()=>{s()},delay:e.delay})}s(h),r.emit(Ci.Flush),i.start()},pause(e){e.timer.clear()},resetLastPlayedEvent:Io((e=>h(u({},e),{lastPlayedEvent:null}))),startLive:Io({baselineTime:(e,t)=>(e.timer.start(),"TO_LIVE"===t.type&&t.payload.baselineTime?t.payload.baselineTime:Date.now())}),addEvent:Io(((e,s)=>{const{baselineTime:r,timer:n,events:i}=e;if("ADD_EVENT"===s.type){const{event:e}=s.payload;So(e,r);let o=i.length-1;if(!i[o]||i[o].timestamp<=e.timestamp)i.push(e);else{let t=-1,s=0;for(;s<=o;){const t=Math.floor((s+o)/2);i[t].timestamp<=e.timestamp?s=t+1:o=t-1}-1===t&&(t=s),i.splice(t,0,e)}const a=e.timestamp<r,l=t(e,a);a?l():n.isActive()&&n.addAction({doAction:()=>{l()},delay:e.delay})}return h(u({},e),{events:i})}))}}))}const Fo=new Map;function Bo(e,t){let s=Fo.get(e);return s||(s=new Map,Fo.set(e,s)),s.has(t)||s.set(t,[]),s.get(t)}function Uo(e,t,s){return async r=>{if(r&&"object"==typeof r&&"rr_type"in r){if(s&&(s.isUnchanged=!1),"ImageBitmap"===r.rr_type&&"args"in r){const n=await Uo(e,t,s)(r.args);return await createImageBitmap.apply(null,n)}if("index"in r){if(s||null===t)return r;const{rr_type:e,index:n}=r;return Bo(t,e)[n]}if("args"in r){const{rr_type:n,args:i}=r;return new(0,window[n])(...await Promise.all(i.map(Uo(e,t,s))))}if("base64"in r)return function(e){var t,s,r,n,i,o=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var c=new ArrayBuffer(o),u=new Uint8Array(c);for(t=0;t<a;t+=4)s=Ki[e.charCodeAt(t)],r=Ki[e.charCodeAt(t+1)],n=Ki[e.charCodeAt(t+2)],i=Ki[e.charCodeAt(t+3)],u[l++]=s<<2|r>>4,u[l++]=(15&r)<<4|n>>2,u[l++]=(3&n)<<6|63&i;return c}(r.base64);if("src"in r){const t=e.get(r.src);if(t)return t;{const t=new Image;return t.src=r.src,e.set(r.src,t),t}}if("data"in r&&"Blob"===r.rr_type){const n=await Promise.all(r.data.map(Uo(e,t,s)));return new Blob(n,{type:r.type})}}else if(Array.isArray(r))return await Promise.all(r.map(Uo(e,t,s)));return r}}const jo=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];async function Wo({mutation:e,target:t,type:s,imageMap:r,errorHandler:n}){try{const n=function(e,t){try{return t===vi.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(e){return null}}(t,s);if(!n)return;if(e.setter)return void(n[e.property]=e.args[0]);const i=n[e.property],o=await Promise.all(e.args.map(Uo(r,n)));!function(e,t){if(!(null==t?void 0:t.constructor))return;const{name:s}=t.constructor;if(!jo.includes(s))return;const r=Bo(e,s);r.includes(t)||r.push(t)}(n,i.apply(n,o))}catch(t){n(e,t)}}async function zo({event:e,mutation:t,target:s,imageMap:r,canvasEventMap:n,errorHandler:i}){try{const o=n.get(e)||t,a="commands"in o?o.commands:[o];if([vi.WebGL,vi.WebGL2].includes(t.type)){for(let e=0;e<a.length;e++){const n=a[e];await Wo({mutation:n,type:t.type,target:s,imageMap:r,errorHandler:i})}return}await async function({event:e,mutations:t,target:s,imageMap:r,errorHandler:n}){const i=s.getContext("2d");if(!i)return void n(t[0],new Error("Canvas context is null"));const o=t.map((async e=>Promise.all(e.args.map(Uo(r,i)))));(await Promise.all(o)).forEach(((s,o)=>{const a=t[o];try{if(a.setter)return void(i[a.property]=a.args[0]);const t=i[a.property];"drawImage"===a.property&&"string"==typeof a.args[0]?(r.get(e),t.apply(i,a.args
15)):t.apply(i,s)}catch(e){n(a,e)}}))}({event:e,mutations:a,target:s,imageMap:r,errorHandler:i})}catch(e){i(t,e)}}class Vo{constructor(e){f(this,"mediaMap",new Map),f(this,"warn"),f(this,"service"),f(this,"speedService"),f(this,"emitter"),f(this,"getCurrentTime"),f(this,"metadataCallbackMap",new Map),this.warn=e.warn,this.service=e.service,this.speedService=e.speedService,this.emitter=e.emitter,this.getCurrentTime=e.getCurrentTime,this.emitter.on(Ci.Start,this.start.bind(this)),this.emitter.on(Ci.SkipStart,this.start.bind(this)),this.emitter.on(Ci.Pause,this.pause.bind(this)),this.emitter.on(Ci.Finish,this.pause.bind(this)),this.speedService.subscribe((()=>{this.syncAllMediaElements()}))}syncAllMediaElements(e={pause:!1}){this.mediaMap.forEach(((t,s)=>{this.syncTargetWithState(s),e.pause&&s.pause()}))}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:e,target:t,mediaState:s}){if(s.isPlaying){const r=(e-s.lastInteractionTimeOffset)/1e3*s.playbackRate,n="duration"in t&&t.duration;if(Number.isNaN(n))return void this.waitForMetadata(t);let i=s.currentTimeAtLastInteraction+r;t.loop&&!1!==n&&(i%=n),t.currentTime=i}else t.pause(),t.currentTime=s.currentTimeAtLastInteraction}waitForMetadata(e){if(this.metadataCallbackMap.has(e))return;if(!("addEventListener"in e))return;const t=()=>{this.metadataCallbackMap.delete(e);const t=this.mediaMap.get(e);t&&this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t})};this.metadataCallbackMap.set(e,t),e.addEventListener("loadedmetadata",t,{once:!0})}getMediaStateFromMutation({target:e,timeOffset:t,mutation:s}){var r,n,i,o,a;const l=this.mediaMap.get(e),{type:c,playbackRate:u,currentTime:h,muted:d,volume:p,loop:f}=s;return{isPlaying:c===Si.Play||c!==Si.Pause&&((null==l?void 0:l.isPlaying)||null!==e.getAttribute("autoplay")),currentTimeAtLastInteraction:null!=(r=null!=h?h:null==l?void 0:l.currentTimeAtLastInteraction)?r:0,lastInteractionTimeOffset:t,playbackRate:null!=(n=null!=u?u:null==l?void 0:l.playbackRate)?n:1,volume:null!=(i=null!=p?p:null==l?void 0:l.volume)?i:1,muted:null!=(o=null!=d?d:null==l?void 0:l.muted)?o:null===e.getAttribute("muted"),loop:null!=(a=null!=f?f:null==l?void 0:l.loop)?a:null===e.getAttribute("loop")}}syncTargetWithState(e){const t=this.mediaMap.get(e);if(!t)return;const{muted:s,loop:r,volume:n,isPlaying:i}=t,o=this.service.state.matches("paused"),a=t.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t}),e.volume!==n&&(e.volume=n),e.muted=s,e.loop=r,e.playbackRate!==a&&(e.playbackRate=a),i&&!o?e.play():e.pause()}catch(e){this.warn(`Failed to replay media interactions: ${e.message||e}`)}}addMediaElements(e,t,s){if(!["AUDIO","VIDEO"].includes(e.nodeName))return;const r=e,n=s.getMeta(r);if(!n||!("attributes"in n))return;const i=this.service.state.matches("paused"),o=n.attributes;let a=!1;a=o.rr_mediaState?"played"===o.rr_mediaState:null!==r.getAttribute("autoplay"),a&&i&&r.pause();let l=1;"number"==typeof o.rr_mediaPlaybackRate&&(l=o.rr_mediaPlaybackRate);let c=!1;c="boolean"==typeof o.rr_mediaMuted?o.rr_mediaMuted:null!==r.getAttribute("muted");let u=!1;u="boolean"==typeof o.rr_mediaLoop?o.rr_mediaLoop:null!==r.getAttribute("loop");let h=1;"number"==typeof o.rr_mediaVolume&&(h=o.rr_mediaVolume);let d=0;"number"==typeof o.rr_mediaCurrentTime&&(d=o.rr_mediaCurrentTime),this.mediaMap.set(r,{isPlaying:a,currentTimeAtLastInteraction:d,lastInteractionTimeOffset:t,playbackRate:l,volume:h,muted:c,loop:u}),this.syncTargetWithState(r)}mediaMutation({target:e,timeOffset:t,mutation:s}){this.mediaMap.set(e,this.getMediaStateFromMutation({target:e,timeOffset:t,mutation:s})),this.syncTargetWithState(e)}isSupportedMediaElement(e){return["AUDIO","VIDEO"].includes(e.nodeName)}reset(){this.mediaMap.clear()}}function $o(e,t){if("DIALOG"!==e.nodeName||e instanceof Gr)return;const s=e,r=s.open,n=r&&s.matches("dialog:modal"),i=s.getAttribute("rr_open_mode"),o="string"==typeof(null==t?void 0:t.attributes.open)||"string"==typeof s.getAttribute("open"),a="modal"===i;r&&!(n&&"non-modal"===i||!n&&a)||(s.isConnected?(r&&s.close(),o&&(a?s.showModal():s.show())):console.warn("dialog is not attached to the dom",s))}
15function Go(e,t){if("DIALOG"!==e.nodeName||e instanceof Gr)return;const s=e;s.isConnected?null===t.attributes.open&&(s.removeAttribute("open"),s.removeAttribute("rr_open_mode")):console.warn("dialog is not attached to the dom",s)}const Ho=function(e){return{all:e=e||new Map,on:function(t,s){var r=e.get(t);r?r.push(s):e.set(t,[s])},off:function(t,s){var r=e.get(t);r&&(s?r.splice(r.indexOf(s)>>>0,1):e.set(t,[]))},emit:function(t,s){var r=e.get(t);r&&r.slice().map((function(e){e(s)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,s)}))}}},Yo="[replayer]",qo={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Xo(e){return e.type==gi.IncrementalSnapshot&&(e.data.source==yi.TouchMove||e.data.source==yi.MouseInteraction&&e.data.type==wi.TouchStart)}const{addCustomEvent:Jo}=wo,{freezePage:Ko}=wo,{takeFullSnapshot:Qo}=wo;return t.EventType=gi,t.IncrementalSource=yi,t.MouseInteractions=wi,t.Replayer=class{constructor(e,t){if(f(this,"wrapper"),f(this,"iframe"),f(this,"service"),f(this,"speedService"),f(this,"config"),f(this,"usingVirtualDom",!1),f(this,"virtualDom",new fn),f(this,"mouse"),f(this,"mouseTail",null),f(this,"tailPositions",[]),f(this,"emitter",Ho()),f(this,"nextUserInteractionEvent"),f(this,"legacy_missingNodeRetryMap",{}),f(this,"cache",Xt()),f(this,"imageMap",new Map),f(this,"canvasEventMap",new Map),f(this,"mirror",A()),f(this,"styleMirror",new ui),f(this,"mediaManager"),f(this,"firstFullSnapshot",null),f(this,"newDocumentQueue",[]),f(this,"mousePos",null),f(this,"touchActive",null),f(this,"lastMouseDownEvent",null),f(this,"lastHoveredRootNode"),f(this,"lastSelectionData",null),f(this,"constructedStyleMutations",[]),f(this,"adoptedStyleSheets",[]),f(this,"handleResize",(e=>{this.iframe.style.display="inherit";for(const t of[this.mouseTail,this.iframe])t&&(t.setAttribute("width",String(e.width)),t.setAttribute("height",String(e.height)))})),f(this,"applyEventsSynchronously",(e=>{for(const t of e){switch(t.type){case gi.DomContentLoaded:case gi.Load:case gi.Custom:continue;case gi.FullSnapshot:case gi.Meta:case gi.Plugin:case gi.IncrementalSnapshot:}this.getCastFn(t,!0)()}})),f(this,"getCastFn",((e,t=!1)=>{let s;switch(e.type){case gi.DomContentLoaded:case gi.Load:break;case gi.Custom:s=()=>{this.emitter.emit(Ci.CustomEvent,e)};break;case gi.Meta:s=()=>this.emitter.emit(Ci.Resize,{width:e.data.width,height:e.data.height});break;case gi.FullSnapshot:s=()=>{var s;if(this.firstFullSnapshot){if(this.firstFullSnapshot===e)return void(this.firstFullSnapshot=!0)}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(e,t),null==(s=this.iframe.contentWindow)||s.scrollTo(e.data.initialOffset)};break;case gi.IncrementalSnapshot:s=()=>{if(this.applyIncremental(e,t),!t&&(e===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(const t of this.service.state.context.events)if(!(t.timestamp<=e.timestamp)&&this.isUserInteraction(t)){t.delay-e.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=t);break}if(this.nextUserInteractionEvent){const t=this.nextUserInteractionEvent.delay-e.delay,s={speed:Math.min(Math.round(t/5e3),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:s}),this.emitter.emit(Ci.SkipStart,s)}}}}return()=>{s&&s();for(const s of this.config.plugins||[])s.handler&&s.handler(e,t,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:e}});const r=this.service.state.context.events.length-1;if(!this.config.liveMode&&e===this.service.state.context.events[r]){const t=()=>{r<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(Ci.Finish))};let s=50;e.type===gi.IncrementalSnapshot&&e.data.source===yi.MouseMove&&e.data.positions.length&&(s+=Math.max(0,-e.data.positions[0].timeOffset)),setTimeout(t,s)}this.emitter.emit(Ci.EventCast,e)}})),!(null==t?void 0:t.liveMode)&&e.length<2)throw new Error("Replayer need at least 2 events.");const s={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:1e4,showWarning:!0,showDebug:!1,blockClass:"rr
15-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:qo,useVirtualDom:!0,logger:console};this.config=Object.assign({},s,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(Ci.Resize,this.handleResize),this.setupDom();for(const e of this.config.plugins||[])e.getMirror&&e.getMirror({nodeMirror:this.mirror});this.emitter.on(Ci.Flush,(()=>{if(this.usingVirtualDom){const e={mirror:this.mirror,applyCanvas:(e,t,s)=>{zo({event:e,mutation:t,target:s,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(e,t)=>{e.source===yi.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===yi.StyleDeclaration&&this.applyStyleDeclaration(e,t)},afterAppend:(e,t)=>{for(const s of this.config.plugins||[])s.onBuild&&s.onBuild(e,{id:t,replayer:this})}};if(this.iframe.contentDocument)try{cn(this.iframe.contentDocument,this.virtualDom,e,this.virtualDom.mirror)}catch(e){console.warn(e)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const t in this.legacy_missingNodeRetryMap)try{const s=this.legacy_missingNodeRetryMap[t],r=hn(s.node,this.mirror,this.virtualDom.mirror);cn(r,s.node,e,this.virtualDom.mirror),s.node=r}catch(e){this.warn(e)}this.constructedStyleMutations.forEach((e=>{this.applyStyleSheetMutation(e)})),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach((e=>{this.applyAdoptedStyleSheet(e)})),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),!0===this.touchActive?this.mouse.classList.add("touch-active"):!1===this.touchActive&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[e,t]=this.lastMouseDownEvent;e.dispatchEvent(t)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)})),this.emitter.on(Ci.PlayBack,(()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()}));const r=new vo([],{speed:this.config.speed});this.service=Po({events:e.map((e=>t&&t.unpackFn?t.unpackFn(e):e)).sort(((e,t)=>e.timestamp-t.timestamp)),timer:r,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe((e=>{this.emitter.emit(Ci.StateChange,{player:e})})),this.speedService=_o(Ao({id:"speed",context:{normalSpeed:-1,timer:r},initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(e,t)=>{"payload"in t&&e.timer.setSpeed(t.payload.speed)},recordSpeed:Io({normalSpeed:e=>e.timer.speed}),restoreSpeed:e=>{e.timer.setSpeed(e.normalSpeed)}}})),this.speedService.start(),this.speedService.subscribe((e=>{this.emitter.emit(Ci.StateChange,{speed:e})})),this.mediaManager=new Vo({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const n=this.service.state.context.events.find((e=>e.type===gi.Meta)),i=this.service.state.context.events.find((e=>e.type===gi.FullSnapshot));if(n){const{width:e,height:t}=n.data;setTimeout((()=>{this.emitter.emit(Ci.Resize,{width:e,height:t})}),0)}i&&setTimeout((()=>{var e;this.firstFullSnapshot||(this.firstFullSnapshot=i,this.rebuildFullSnapshot(i),null==(e=this.iframe.contentWindow)||e.scrollTo(i.data.initialOffset))}),1),this.service.state.context.events.find(Xo)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(e,t){return this.emitter.on(e,t),this}off(e,t){return this.emitter.off(e,t),this}setConfig(e){Object.keys(e).forEach((t=>{e[t],this.config[t]=e[t]})),this.config.skipInactive||this.backToNormal(),void 0!==e.speed&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),void 0!==e.mouseTail&&(!1===e.mouseTail?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){const e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){const{baselineTime:e,events:t}=this.service.state.context;return e-t[0].timestamp}getMirror(){return this.mirror}play(e=0){var t,s;this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}}),null==(s=null==(t=this.iframe.contentDocument)?void 0:t.getElementsByTagName("html")[0])||s.classList.remove("rrweb-paused"),this.emitter.emit(Ci.Start)}pause(e){var t,s;void 0===e&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),"number"==typeof e&&(this.play(e),this.service.send({type:"PAUSE"})),null==(s=null==(t=this.iframe.contentDocument)?void 0:t.getElementsByTagName("html")[0])||s.classList.add("rrweb-paused"),this.emitter.emit(Ci.Pause)}
15resume(e=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(Ci.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(Ci.Destroy)}startLive(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})}addEvent(e){const t=this.config.unpackFn?this.config.unpackFn(e):e;Xo(t)&&this.mouse.classList.add("touch-device"),Promise.resolve().then((()=>this.service.send({type:"ADD_EVENT",payload:{event:t}})))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=Xt()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),!1!==this.config.mouseTail&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");const e=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&e.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",e.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(bo(this.iframe.contentWindow,this.iframe.contentDocument),ei(this.iframe.contentWindow))}rebuildFullSnapshot(e,t=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};const s=[],r=new Set,n=(t,n)=>{if("DIALOG"===t.nodeName&&r.add(t),this.collectIframeAndAttachDocument(s,t),this.mediaManager.isSupportedMediaElement(t)){const{events:s}=this.service.state.context;this.mediaManager.addMediaElements(t,e.timestamp-s[0].timestamp,this.mirror)}for(const e of this.config.plugins||[])e.onBuild&&e.onBuild(t,{id:n,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),Zt(e.data.node,{doc:this.iframe.contentDocument,afterAppend:n,cache:this.cache,mirror:this.mirror}),n(this.iframe.contentDocument,e.data.node.id);for(const{mutationInQueue:e,builtNode:t}of s)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter((t=>t!==e));const{documentElement:i,head:o}=this.iframe.contentDocument;this.insertStyleRules(i,o),r.forEach((e=>$o(e))),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(Ci.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var s;const r=(n=this.config.blockClass,[`.${n} { background: currentColor }`,"noscript { display: none !important; }"]).concat(this.config.insertStyleRules);var n;if(this.config.pauseAnimation&&r.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),r.length)if(this.usingVirtualDom){const s=this.virtualDom.createElement("style");this.virtualDom.mirror.add(s,Tn(s,this.virtualDom.unserializedId)),e.insertBefore(s,t),s.rules.push({source:yi.StyleSheetRule,adds:r.map(((e,t)=>({rule:e,index:t})))})}else{const n=document.createElement("style");e.insertBefore(n,t);for(let e=0;e<r.length;e++)null==(s=n.sheet)||s.insertRule(r[e],e)}}attachDocumentToIframe(e,t){const s=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,r=[],n=new Set,i=(e,i)=>{"DIALOG"===e.nodeName&&n.add(e),this.collectIframeAndAttachDocument(r,e);const o=s.getMeta(e);if((null==o?void 0:o.type)===xi.Element&&"HTML"===(null==o?void 0:o.tagName.toUpperCase())){const{documentElement:e,head:s}=t.contentDocument;this.insertStyleRules(e,s)}if(!this.usingVirtualDom)for(const t of this.config.plugins||[])t.onBuild&&t.onBuild(e,{id:i,replayer:this})};Qt(e.node,{doc:t.contentDocument,mirror:s,hackCss:!0,skipChild:!1,afterAppend:i,cache:this.cache}),i(t.contentDocument,e.node.id);for(const{mutationInQueue:e,builtNode:t}of r)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter((t=>t!==e));
15n.forEach((e=>$o(e)))}collectIframeAndAttachDocument(e,t){if(ri(t,this.mirror)){const s=this.newDocumentQueue.find((e=>e.parentId===this.mirror.getId(t)));s&&e.push({mutationInQueue:s,builtNode:t})}}waitForStylesheetLoad(){var e;const t=null==(e=this.iframe.contentDocument)?void 0:e.head;if(t){const e=new Set;let s,r=this.service.state;const n=()=>{r=this.service.state};this.emitter.on(Ci.Start,n),this.emitter.on(Ci.Pause,n);const i=()=>{this.emitter.off(Ci.Start,n),this.emitter.off(Ci.Pause,n)};t.querySelectorAll('link[rel="stylesheet"]').forEach((t=>{t.sheet||(e.add(t),t.addEventListener("load",(()=>{e.delete(t),0===e.size&&-1!==s&&(r.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(Ci.LoadStylesheetEnd),s&&clearTimeout(s),i())})))})),e.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(Ci.LoadStylesheetStart),s=setTimeout((()=>{r.matches("playing")&&this.play(this.getCurrentTime()),s=-1,i()}),this.config.loadTimeout))}}async preloadAllImages(){const e=[];for(const t of this.service.state.context.events)t.type===gi.IncrementalSnapshot&&t.data.source===yi.CanvasMutation&&(e.push(this.deserializeAndPreloadCanvasEvents(t.data,t)),("commands"in t.data?t.data.commands:[t.data]).forEach((e=>{this.preloadImages(e,t)})));return Promise.all(e)}preloadImages(e,t){if("drawImage"===e.property&&"string"==typeof e.args[0]&&!this.imageMap.has(t)){const e=document.createElement("canvas"),t=e.getContext("2d"),s=null==t?void 0:t.createImageData(e.width,e.height);null==t||t.putImageData(s,0,0)}}async deserializeAndPreloadCanvasEvents(e,t){if(!this.canvasEventMap.has(t)){const s={isUnchanged:!0};if("commands"in e){const r=await Promise.all(e.commands.map((async e=>{const t=await Promise.all(e.args.map(Uo(this.imageMap,null,s)));return h(u({},e),{args:t})})));!1===s.isUnchanged&&this.canvasEventMap.set(t,h(u({},e),{commands:r}))}else{const r=await Promise.all(e.args.map(Uo(this.imageMap,null,s)));!1===s.isUnchanged&&this.canvasEventMap.set(t,h(u({},e),{args:r}))}}}applyIncremental(e,t){var s,r,n;const{data:i}=e;switch(i.source){case yi.Mutation:try{this.applyMutation(i,t)}catch(e){this.warn(`Exception in mutation ${e.message||e}`,i)}break;case yi.Drag:case yi.TouchMove:case yi.MouseMove:if(t){const e=i.positions[i.positions.length-1];this.mousePos={x:e.x,y:e.y,id:e.id,debugData:i}}else i.positions.forEach((s=>{const r={doAction:()=>{this.moveAndHover(s.x,s.y,s.id,t,i)},delay:s.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(r)})),this.timer.addAction({doAction(){},delay:e.delay-(null==(s=i.positions[0])?void 0:s.timeOffset)});break;case yi.MouseInteraction:{if(-1===i.id)break;const e=new Event(_(wi[i.type])),s=this.mirror.getNode(i.id);if(!s)return this.debugNodeNotFound(i,i.id);this.emitter.emit(Ci.MouseInteraction,{type:i.type,target:s});const{triggerFocus:r}=this.config;switch(i.type){case wi.Blur:"blur"in s&&s.blur();break;case wi.Focus:r&&s.focus&&s.focus({preventScroll:!0});break;case wi.Click:case wi.TouchStart:case wi.TouchEnd:case wi.MouseDown:case wi.MouseUp:t?(i.type===wi.TouchStart?this.touchActive=!0:i.type===wi.TouchEnd&&(this.touchActive=!1),i.type===wi.MouseDown?this.lastMouseDownEvent=[s,e]:i.type===wi.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:i.x||0,y:i.y||0,id:i.id,debugData:i}):(i.type===wi.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(i.x||0,i.y||0,i.id,t,i),i.type===wi.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):i.type===wi.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):i.type===wi.TouchEnd?this.mouse.classList.remove("touch-active"):s.dispatchEvent(e));break;case wi.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:s.dispatchEvent(e)}break}case yi.Scroll:if(-1===i.id)break;if(this.usingVirtualDom){const e=this.virtualDom.mirror.getNode(i.id);if(!e)return this.debugNodeNotFound(i,i.id);e.scrollData=i;break}this.applyScroll(i,t);break;case yi.ViewportResize:this.emitter.emit(Ci.Resize,{width:i.width,height:i.height});break;case yi.Input:if(-1===i.id)break;if(this.usingVirtualDom){const e=this.virtualDom.mirror.getNode(i.id);if(!e)return this.debugNodeNotFound(i,i.id);e.inputData=i;break}this.applyInput(i);break;case yi.MediaInteraction:{const t=this.usingVirtualDom?this.virtualDom.mirror.getNode(i.id):this.mirror.getNode(i.id);if(!t)return this.debugNodeNotFound(i,i.id);const s=t,{events:r}=this.service.state.context;this.mediaManager.mediaMutation({target:s,timeOffset:e.timestamp-r[0].timestamp,mutation:i});break}case yi.StyleSheetRule:case yi.StyleDeclaration:this.usingVirtualDom?i.styleId?this.constructedStyleMutations.push(i):i.id&&(null==(r=this.virtualDom.mirror.getNode(i.id))||r.rules.push(i)):this.applyStyleSheetMutation(i);break;case yi.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const t=this.virtualDom.mirror.getNode(i.id);if(!t)return this.debugNodeNotFound(i,i.id);t.canvasMutations.push({event:e,mutation:i})}else{const t=this.mirror.getNode(i.id);if(!t)return this.debugNodeNotFound(i,i.id);zo({event:e,mutation:i,target:t,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break;case yi.Font:try{const e=new FontFace(i.family,i.buffer?new Uint8Array(JSON.parse(i.fontSource)):i.fontSource,i.descriptors);null==(n=this.iframe.contentDocument)||n.fonts.add(e)}catch(e){this.warn(e)}break;case yi.Selection:if(t){this.lastSelectionData=i;break}this.applySelection(i);break;case yi.AdoptedStyleSheet:this.usingVirtualDom?this.adoptedStyleSheets.push(i):this.applyAdoptedStyleSheet(i)}}applyMutation(e,t){if(this.config.useVirtualDom&&!this.usingVirtualDom&&t&&(this.usingVirtualDom=!0,kn(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const e in this.legacy_missingNodeRetryMap)try{const t=this.legacy_missingNodeRetryMap[e],s=En(t.node,this.virtualDom,this.mirror);
15s&&(t.node=s)}catch(e){this.warn(e)}const s=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;e.removes=e.removes.filter((t=>!!s.getNode(t.id)||(this.warnNodeNotFound(e,t.id),!1))),e.removes.forEach((t=>{var r;const n=s.getNode(t.id);if(!n)return;let i=s.getNode(t.parentId);if(!i)return this.warnNodeNotFound(e,t.parentId);if(t.isShadow&&oi(i)&&(i=i.shadowRoot),s.removeNodeFromMap(n),i)try{i.removeChild(n),this.usingVirtualDom&&"#text"===n.nodeName&&"STYLE"===i.nodeName&&(null==(r=i.rules)?void 0:r.length)>0&&(i.rules=[])}catch(t){if(!(t instanceof DOMException))throw t;this.warn("parent could not remove child in mutation",i,n,e)}}));const r=u({},this.legacy_missingNodeRetryMap),n=[],i=e=>{var t,i;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let o=s.getNode(e.parentId);if(!o)return e.node.type===xi.Document?this.newDocumentQueue.push(e):n.push(e);e.node.isShadow&&(oi(o)||o.attachShadow({mode:"open"}),o=o.shadowRoot);let a=null,l=null;if(e.previousId&&(a=s.getNode(e.previousId)),e.nextId&&(l=s.getNode(e.nextId)),(e=>{let t=null;return e.nextId&&(t=s.getNode(e.nextId)),null!==e.nextId&&void 0!==e.nextId&&-1!==e.nextId&&!t})(e))return n.push(e);if(e.node.rootId&&!s.getNode(e.node.rootId))return;const c=e.node.rootId?s.getNode(e.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(ri(o,s))return void this.attachDocumentToIframe(e,o);const u=(e,t)=>{if(!this.usingVirtualDom){$o(e);for(const s of this.config.plugins||[])s.onBuild&&s.onBuild(e,{id:t,replayer:this})}},h=Qt(e.node,{doc:c,mirror:s,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:u});if(-1===e.previousId||-1===e.nextId)return void(r[e.node.id]={node:h,mutation:e});const d=s.getMeta(o);if(d&&d.type===xi.Element&&e.node.type===xi.Text){const e=Array.isArray(o.childNodes)?o.childNodes:Array.from(o.childNodes);if("textarea"===d.tagName)for(const t of e)t.nodeType===o.TEXT_NODE&&o.removeChild(t);else if("style"===d.tagName&&1===e.length)for(const t of e)t.nodeType!==o.TEXT_NODE||s.hasNode(t)||(h.textContent=t.textContent,o.removeChild(t))}else if((null==d?void 0:d.type)===xi.Document){const s=o;e.node.type===xi.DocumentType&&(null==(t=s.childNodes[0])?void 0:t.nodeType)===Node.DOCUMENT_TYPE_NODE&&s.removeChild(s.childNodes[0]),"HTML"===h.nodeName&&s.documentElement&&s.removeChild(s.documentElement)}if(a&&a.nextSibling&&a.nextSibling.parentNode?o.insertBefore(h,a.nextSibling):l&&l.parentNode?o.contains(l)?o.insertBefore(h,l):o.insertBefore(h,null):o.appendChild(h),u(h,e.node.id),this.usingVirtualDom&&"#text"===h.nodeName&&"STYLE"===o.nodeName&&(null==(i=o.rules)?void 0:i.length)>0&&(o.rules=[]),ri(h,this.mirror)){const e=this.mirror.getId(h),t=this.newDocumentQueue.find((t=>t.parentId===e));t&&(this.attachDocumentToIframe(t,h),this.newDocumentQueue=this.newDocumentQueue.filter((e=>e!==t)))}(e.previousId||e.nextId)&&this.legacy_resolveMissingNode(r,o,h,e)};e.adds.forEach((e=>{i(e)}));const o=Date.now();for(;n.length;){const e=ti(n);if(n.length=0,Date.now()-o>500){this.warn("Timeout in the loop, please check the resolve tree data:",e);break}for(const t of e)s.getNode(t.value.parentId)?si(t,(e=>{i(e)})):this.debug("Drop resolve tree since there is no parent for the root node.",t)}Object.keys(r).length&&Object.assign(this.legacy_missingNodeRetryMap,r),ci(e.texts).forEach((t=>{var r;const n=s.getNode(t.id);if(!n){if(e.removes.find((e=>e.id===t.id)))return;return this.warnNodeNotFound(e,t.id)}const i=n.parentElement;if(t.value&&i&&"STYLE"===i.tagName?n.textContent=qt(t.value,this.cache):n.textContent=t.value,this.usingVirtualDom){const e=n.parentNode;(null==(r=null==e?void 0:e.rules)?void 0:r.length)>0&&(e.rules=[])}})),e.attributes.forEach((t=>{var r;const n=s.getNode(t.id);if(!n){if(e.removes.find((e=>e.id===t.id)))return;return this.warnNodeNotFound(e,t.id)}for(const e in t.attributes)if("string"==typeof e){const i=t.attributes[e];if(null===i)n.removeAttribute(e),"open"===e&&Go(n,t);else if("string"==typeof i)try{if("_cssText"===e&&("LINK"===n.nodeName||"STYLE"===n.nodeName))try{const e=s.getMeta(n),r=Qt
15(h(u({},e),{attributes:u(u({},e.attributes),t.attributes)}),{doc:n.ownerDocument,mirror:s,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(e.attributes,t.attributes);const i=n.nextSibling,o=n.parentNode;if(r&&o){o.removeChild(n),o.insertBefore(r,i),s.replace(t.id,r);break}}catch(e){}if("value"===e&&"TEXTAREA"===n.nodeName){const e=n;e.childNodes.forEach((t=>e.removeChild(t)));const t=null==(r=n.ownerDocument)?void 0:r.createTextNode(i);t&&e.appendChild(t)}else n.setAttribute(e,i);"rr_open_mode"===e&&"DIALOG"===n.nodeName&&$o(n,t)}catch(e){this.warn("An error occurred may due to the checkout feature.",e)}else if("style"===e){const e=i,t=n;for(const s in e)if(!1===e[s])t.style.removeProperty(s);else if(e[s]instanceof Array){const r=e[s];t.style.setProperty(s,r[0],r[1])}else{const r=e[s];t.style.setProperty(s,r)}}}}))}applyScroll(e,t){var s,r;const n=this.mirror.getNode(e.id);if(!n)return this.debugNodeNotFound(e,e.id);const i=this.mirror.getMeta(n);if(n===this.iframe.contentDocument)null==(s=this.iframe.contentWindow)||s.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else if((null==i?void 0:i.type)===xi.Document)null==(r=n.defaultView)||r.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else try{n.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"})}catch(e){}}applyInput(e){const t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch(e){}}applySelection(e){try{const t=new Set,s=e.ranges.map((({start:e,startOffset:s,end:r,endOffset:n})=>{const i=this.mirror.getNode(e),o=this.mirror.getNode(r);if(!i||!o)return;const a=new Range;a.setStart(i,s),a.setEnd(o,n);const l=i.ownerDocument,c=null==l?void 0:l.getSelection();return c&&t.add(c),{range:a,selection:c}}));t.forEach((e=>e.removeAllRanges())),s.forEach((e=>{var t;return e&&(null==(t=e.selection)?void 0:t.addRange(e.range))}))}catch(e){}}applyStyleSheetMutation(e){var t;let s=null;e.styleId?s=this.styleMirror.getStyle(e.styleId):e.id&&(s=(null==(t=this.mirror.getNode(e.id))?void 0:t.sheet)||null),s&&(e.source===yi.StyleSheetRule?this.applyStyleSheetRule(e,s):e.source===yi.StyleDeclaration&&this.applyStyleDeclaration(e,s))}applyStyleSheetRule(e,t){var s,r,n,i;if(null==(s=e.adds)||s.forEach((({rule:e,index:s})=>{try{if(Array.isArray(s)){const{positions:r,index:n}=li(s),i=ai(t.cssRules,r);null==i||i.insertRule(e,n)}else{const r=void 0===s?void 0:Math.min(s,t.cssRules.length);null==t||t.insertRule(e,r)}}catch(e){}})),null==(r=e.removes)||r.forEach((({index:e})=>{try{if(Array.isArray(e)){const{positions:s,index:r}=li(e),n=ai(t.cssRules,s);null==n||n.deleteRule(r||0)}else null==t||t.deleteRule(e)}catch(e){}})),"string"==typeof e.replace)try{null==(n=t.replace)||n.call(t,e.replace)}catch(e){}if("string"==typeof e.replaceSync)try{null==(i=t.replaceSync)||i.call(t,e.replaceSync)}catch(e){}}applyStyleDeclaration(e,t){if(e.set){const s=ai(t.rules,e.index);(null==s?void 0:s.style)&&s.style.setProperty(e.set.property,e.set.value,e.set.priority)}if(e.remove){const s=ai(t.rules,e.index);(null==s?void 0:s.style)&&s.style.removeProperty(e.remove.property)}}applyAdoptedStyleSheet(e){var t;const s=this.mirror.getNode(e.id);if(!s)return;null==(t=e.styles)||t.forEach((e=>{var t;let r=null,n=null;if(oi(s)?n=(null==(t=s.ownerDocument)?void 0:t.defaultView)||null:"#document"===s.nodeName&&(n=s.defaultView),n)try{r=new n.CSSStyleSheet,this.styleMirror.add(r,e.styleId),this.applyStyleSheetRule({source:yi.StyleSheetRule,adds:e.rules},r)}catch(e){}}));let r=0;const n=(e,t)=>{const s=t.map((e=>this.styleMirror.getStyle(e))).filter((e=>null!==e));oi(e)?e.shadowRoot.adoptedStyleSheets=s:"#document"===e.nodeName&&(e.adoptedStyleSheets=s),s.length!==t.length&&r<10&&(setTimeout((()=>n(e,t)),0+100*r),r++)};n(s,e.styleIds)}legacy_resolveMissingNode(e,t,s,r){const{previousId:n,nextId:i}=r,o=n&&e[n],a=i&&e[i];if(o){const{node:r,mutation:n}=o;t.insertBefore(r,s),delete e[n.node.id],delete this.legacy_missingNodeRetryMap[n.node.id],(n.previousId||n.nextId)&&this.legacy_resolveMissingNode(e,t,r,n)}if(a){const{node:r,mutation:n}=a;
15t.insertBefore(r,s.nextSibling),delete e[n.node.id],delete this.legacy_missingNodeRetryMap[n.node.id],(n.previousId||n.nextId)&&this.legacy_resolveMissingNode(e,t,r,n)}}moveAndHover(e,t,s,r,n){const i=this.mirror.getNode(s);if(!i)return this.debugNodeNotFound(n,s);const o=ii(i,this.iframe),a=e*o.absoluteScale+o.x,l=t*o.absoluteScale+o.y;this.mouse.style.left=`${a}px`,this.mouse.style.top=`${l}px`,r||this.drawMouseTail({x:a,y:l}),this.hoverElements(i)}drawMouseTail(e){if(!this.mouseTail)return;const{lineCap:t,lineWidth:s,strokeStyle:r,duration:n}=!0===this.config.mouseTail?qo:Object.assign({},qo,this.config.mouseTail),i=()=>{if(!this.mouseTail)return;const e=this.mouseTail.getContext("2d");e&&this.tailPositions.length&&(e.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),e.beginPath(),e.lineWidth=s,e.lineCap=t,e.strokeStyle=r,e.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach((t=>e.lineTo(t.x,t.y))),e.stroke())};this.tailPositions.push(e),i(),setTimeout((()=>{this.tailPositions=this.tailPositions.filter((t=>t!==e)),i()}),n/this.speedService.state.context.timer.speed)}hoverElements(e){var t;null==(t=this.lastHoveredRootNode||this.iframe.contentDocument)||t.querySelectorAll(".\\:hover").forEach((e=>{e.classList.remove(":hover")})),this.lastHoveredRootNode=e.getRootNode();let s=e;for(;s;)s.classList&&s.classList.add(":hover"),s=s.parentElement}isUserInteraction(e){return e.type===gi.IncrementalSnapshot&&e.data.source>yi.Mutation&&e.data.source<=yi.Input}backToNormal(){this.nextUserInteractionEvent=null,this.speedService.state.matches("normal")||(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(Ci.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(e,t){this.warn(`Node with id '${t}' not found. `,e)}warnCanvasMutationFailed(e,t){this.warn("Has error on canvas update",t,"canvas mutation:",e)}debugNodeNotFound(e,t){this.debug(`Node with id '${t}' not found. `,e)}warn(...e){this.config.showWarning&&this.config.logger.warn(Yo,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(Yo,...e)}},t.ReplayerEvents=Ci,t.addCustomEvent=Jo,t.canvasMutation=zo,t.freezePage=Ko,t.record=wo,t.takeFullSnapshot=Qo,t.utils=mi,"object"==typeof s.exports&&"object"==typeof t&&(s.exports=((e,t,s,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of Object.getOwnPropertyNames(t))Object.prototype.hasOwnProperty.call(e,n)||n===s||Object.defineProperty(e,n,{get:()=>t[n],enumerable:!(r=Object.getOwnPropertyDescriptor(t,n))||r.enumerable});return e})(s.exports,t)),s.exports},e.exports=t()}}]); 16"use strict";(self.webpackChunkamagch=self.webpackChunkamagch||[]).push([[815],{31076:function(e,t,s){s.r(t),s.d(t,{Aggregate:function(){return v}});var i=s(72024),r=s(55590),o=s(75901);let n;const a=new Promise((e=>{n=e})),h=Object.freeze({onReplayReady:n,sessionReplayInitialized:a});var d=s(66600),l=s(49674),c=s(58740),p=s(5928),u=s(79324),g=s(21690),m=s(61577),y=s(31609),f=s(97517),S=s(18897),R=s(17305),b=s(38839);class v extends o.r{static featureName=r.TZ;mode=u.g.OFF;constructor(e,t){super(e,r.TZ),this.initialized=!1,this.blocked=!1,this.gzipper=void 0,this.u8=void 0,this.shouldCompress=!0,this.entitled=!1,this.timeKeeper=void 0,this.instrumentClass=t,this.recorder=this.instrumentClass?.recorder,this.harvestOpts.raw=!0,this.isSessionTrackingEnabled=(0,R.V)(e.init)&&!!e.runtime.session,this.reportSupportabilityMetric("Config/SessionReplay/Enabled"),this.ee.on(u.tS.RESET,(()=>{this.abort(r.bc.RESET)})),this.ee.on(u.tS.PAUSE,(()=>{this.recorder?.stopRecording()})),this.ee.on(u.tS.RESUME,(()=>{this.recorder&&(this.mode=e.runtime.session.state.sessionReplayMode,this.initialized&&this.mode!==u.g.OFF&&this.recorder?.startRecording(r.Qb.RESUME,this.mode))})),this.ee.on(u.tS.UPDATE,((e,t)=>{this.recorder&&this.initialized&&!this.blocked&&e===u.iL.CROSS_TAB&&(this.mode!==u.g.OFF&&t.sessionReplayMode===u.g.OFF&&this.abort(r.bc.CROSS_TAB),this.mode=t.sessionReplayMode)})),(0,i.i)(b.Tb,(()=>{this.forceStop(this.mode===u.g.FULL)}),this.featureName,this.ee),(0,i.i)(r.Vh,(e=>{this.handleError(e)}),this.featureName,this.ee);const{error_sampling_rate:s,sampling_rate:o,autoStart:n,block_selector:a,mask_text_selector:d,mask_all_inputs:l,inline_images:c,collect_fonts:p}=e.init.session_replay;this.waitForFlags(["srs","sr"]).then((([e,t])=>
16{if(this.entitled=!!t,!this.entitled)return this.deregisterDrain(),void(this.agentRef.runtime.isRecording&&(this.abort(r.bc.ENTITLEMENTS),this.reportSupportabilityMetric("SessionReplay/EnabledNotEntitled/Detected")));this.initializeRecording(e).then((()=>{this.drain()}))})).then((()=>{if(this.mode===u.g.OFF)for(this.recorder?.stopRecording();this.recorder?.getEvents().events.length;)this.recorder?.clearBuffer?.();h.onReplayReady(this.mode)})),n||this.reportSupportabilityMetric("Config/SessionReplay/AutoStart/Modified"),!0===p&&this.reportSupportabilityMetric("Config/SessionReplay/CollectFonts/Modified"),!0===c&&this.reportSupportabilityMetric("Config/SessionReplay/InlineImages/Modifed"),!0!==l&&this.reportSupportabilityMetric("Config/SessionReplay/MaskAllInputs/Modified"),"[data-nr-block]"!==a&&this.reportSupportabilityMetric("Config/SessionReplay/BlockSelector/Modified"),"*"!==d&&this.reportSupportabilityMetric("Config/SessionReplay/MaskTextSelector/Modified"),this.reportSupportabilityMetric("Config/SessionReplay/SamplingRate/Value",o),this.reportSupportabilityMetric("Config/SessionReplay/ErrorSamplingRate/Value",s)}replayIsActive(){return Boolean(this.recorder&&this.mode===u.g.FULL&&!this.blocked&&this.entitled)}handleError(e){this.recorder&&(this.recorder.events.hasError=!0),this.mode===u.g.ERROR&&"visible"===c.gm?.document.visibilityState&&this.switchToFull()}switchToFull(){this.entitled&&!this.blocked&&(this.mode=u.g.FULL,this.recorder&&this.initialized?(this.agentRef.runtime.isRecording||this.recorder.startRecording(r.Qb.SWITCH_TO_FULL,this.mode),this.syncWithSessionManager({sessionReplayMode:this.mode})):this.initializeRecording(u.g.FULL,!0,r.Qb.SWITCH_TO_FULL))}async initializeRecording(e,t,s=r.Qb.INITIALIZE){if(this.initialized=!0,!this.entitled)return;const{session:i,timeKeeper:o}=this.agentRef.runtime;if(this.timeKeeper=o,this.recorder?.trigger===r.Qb.API&&this.agentRef.runtime.isRecording?this.mode=u.g.FULL:i.isNew||t?this.mode=e:this.mode=i.state.sessionReplayMode,this.mode!==u.g.OFF){try{this.recorder??=await this.instrumentClass.importRecorder()}catch(e){return this.abort(r.bc.IMPORT,e)}this.mode===u.g.ERROR&&this.instrumentClass.errorNoticed&&(this.mode=u.g.FULL),await this.prepUtils(),this.agentRef.runtime.isRecording||this.recorder.startRecording(s,this.mode),this.syncWithSessionManager({sessionReplayMode:this.mode})}}async prepUtils(){try{const{gzipSync:e,strToU8:t}=await s.e(60).then(s.t.bind(s,84419,19));this.gzipper=e,this.u8=t}catch(e){this.shouldCompress=!1}}makeHarvestPayload(){if(this.mode!==u.g.FULL||this.blocked)return;if(this.shouldCompress&&!this.gzipper)return;if(!(this.recorder&&this.timeKeeper?.ready&&this.recorder.hasSeenSnapshot&&this.recorder.hasSeenMeta))return;const e=this.recorder.getEvents();if(!e.events.length)return;const t=this.getHarvestContents(e);if(!t.body.length)return void this.recorder.clearBuffer();this.reportSupportabilityMetric("SessionReplay/Harvest/Attempts");let s=0;if(this.gzipper&&this.u8)t.body=this.gzipper(this.u8("[".concat(t.body.map((({__serialized:e})=>e)).join(","),"]"))),s=t.body.length;else{for(let e in t.body)delete t.body[e].__serialized;s=(0,g.A)(t.body).length}if(!(s>f.It))return this.agentRef.runtime.session.state.sessionReplaySentFirstChunk||this.syncWithSessionManager({sessionReplaySentFirstChunk:!0}),this.recorder.clearBuffer(),this.agentRef.runtime.session.state.traceHarvestStarted||(0,l.R)(59,JSON.stringify(this.agentRef.runtime.session.state)),t;this.abort(r.bc.TOO_BIG,s)}getFirstAndLastNodes(e=[]){const t={firstEvent:e[0],lastEvent:e[e.length-1]};return e.forEach((e=>{const s=e?.timestamp;(!t.firstEvent?.timestamp||(s||1/0)<t.firstEvent.timestamp)&&(t.firstEvent=e),(!t.lastEvent?.timestamp||(s||-1/0)>t.lastEvent.timestamp)&&(t.lastEvent=e)})),t}getHarvestContents(e){e??=this.recorder.getEvents();let t=e.events;const s=this.agentRef.runtime,i=this.agentRef.info.jsAttributes?.["enduser.id"];t?.[0]?.type===r._s.FullSnapshot&&this.recorder.lastMeta&&(e.hasMeta=!0,t.unshift(this.recorder.lastMeta),this.recorder.lastMeta=void 0);t[t.length-1]?.type===r._s.Meta&&(this.recorder.lastMeta=t[t.length-1],t=t.slice(0,t.length-1),e.hasMeta=!!t.find((e=>e.type===r._s.Meta)));const o=(0,y.t)(),{firstEvent:n,lastEvent:a}=this.getFirstAndLastNodes(t),h=n?.timestamp||Math.floor(this.timeKeeper.correctAbsoluteTimestamp(e.cycleTimestamp)),l=a?.timestamp||Math.floor(this.timeKeeper.correctRelativeTimestamp(o)),c=s.appMetadata?.agents?.[0]||{};return{qs:{browser_monitoring_key:this.agentRef.info.licenseKey,type:"SessionReplay",app_id:this.agentRef.info.applicationID,protocol_version:"0",timestamp:h,attributes:(0,d.WL)({...!!this.gzipper&&!!this.u8&&{content_encoding:"gzip"},...c.entityGuid&&{entityGuid:c.entityGuid},harvestId:[s.session?.state.value,s.ptid,s.harvestCount].filter((e=>e)).join("_"),"replay.firstTimestamp":h,"replay.lastTimestamp":l,"replay.nodes":t.length,"session.durationMs":s.session.getDuration(),agentVersion:s.version,session:s.session.state.value,rst:o,hasMeta:e.hasMeta||!1,hasSnapshot:e.hasSnapshot||!1,hasError:e.hasError||!1,isFirstChunk:!1===s.session.state.sessionReplaySentFirstChunk,decompressedBytes:e.payloadBytesEstimation,invalidStylesheetsDetected:m.m.invali
16dStylesheetsDetected,inlinedAllStylesheets:e.inlinedAllStylesheets,"rrweb.version":p.AJ+"@"+p.Yq,"payload.type":e.type,...i&&{"enduser.id":this.obfuscator.obfuscateString(i)},currentUrl:this.obfuscator.obfuscateString((0,S.L)(""+location))},r.BB).substring(1)},body:t}}postHarvestCleanup(e){429===e.status&&this.abort(r.bc.TOO_MANY)}forceStop(e){e&&this.agentRef.runtime.harvester.triggerHarvestFor(this),this.mode=u.g.OFF,this.recorder?.stopRecording?.(),this.syncWithSessionManager({sessionReplayMode:this.mode})}abort(e={},t){for((0,l.R)(33,e.message),this.reportSupportabilityMetric("SessionReplay/Abort/".concat(e.sm),t),this.blocked=!0,this.mode=u.g.OFF,this.recorder?.stopRecording?.(),this.syncWithSessionManager({sessionReplayMode:this.mode}),this.recorder?.clearTimestamps?.();this.recorder?.getEvents().events.length;)this.recorder?.clearBuffer?.()}syncWithSessionManager(e={}){this.isSessionTrackingEnabled&&this.agentRef.runtime.session.write(e)}}},61577:function(e,t,s){s.d(t,{m:function(){return o}});var i=s(21966),r=s(58740);const o=new class{#e=new WeakSet;#t=[];invalidStylesheetsDetected=!1;failedToFix=0;evaluate(){let e=0;if(this.#t=[],r.RI)for(let t=0;t<Object.keys(document.styleSheets).length;t++)if(!this.#e.has(document.styleSheets[t])&&document.styleSheets[t]instanceof CSSStyleSheet){this.#e.add(document.styleSheets[t]);try{document.styleSheets[t].cssRules}catch(s){if(!document.styleSheets[t].href)return;e++,this.#t.push(document.styleSheets[t])}}return e&&(this.invalidStylesheetsDetected=!0),e}async fix(){await Promise.all(this.#t.map((e=>this.#s(e)))),this.#t=[];const e=this.failedToFix;return this.failedToFix=0,e}async#s(e){if(e?.href)try{const t=await(0,i.dV)().o.FETCH.bind(window)(e.href);if(!t.ok)return void this.failedToFix++;const s=await t.text();try{const t=new CSSStyleSheet;await t.replace(s),Object.defineProperty(e,"cssRules",{get(){return t.cssRules}}),Object.defineProperty(e,"rules",{get(){return t.rules}})}catch(t){Object.defineProperty(e,"cssText",{get(){return s}}),this.failedToFix++}}catch(e){this.failedToFix++}}}}}]); 17"use strict";(self.webpackChunkamagch=self.webpackChunkamagch||[]).push([[189],{45942:function(e,t,s){s.r(t),s.d(t,{Aggregate:function(){return y}});var i=s(72024),r=s(22752),n=s(75901),o=s(79324),a=s(31609),h=s(21375),c=s(94970);class u{constructor(e,t,s,i,r){this.n=e,this.s=t,this.e=s,this.o=i,this.t=r}}const m={global:{mouseup:!0,mousedown:!0},window:{load:!0,pagehide:!0},xhrOriginMissing:{ignoreAll:!0}},g={typing:"typing",scrolling:"scrolling",mousing:"mousing",touching:"touching"},d={[g.typing]:1e3,[g.scrolling]:100,[g.mousing]:1e3,[g.touching]:1e3},l={[g.typing]:2e3,[g.scrolling]:1e3,[g.mousing]:2e3,[g.touching]:2e3};class p{prevStoredEvents=new Set;constructor(e){this.parent=e}#e(e){return e.n in g}#t(e){const t={e:e.e};return this.parent.events.merge((t=>!(t.o!==e.o||t.n!==e.n||e.s-t.s<l[e.o]||t.e>e.s-d[e.o])),t)}#s(e){if(e.n in m.global)return!0;const t=e.o;return!(!m[t]?.ignoreAll&&!m[t]?.[e.n])||"xhrOriginMissing"===t&&"Ajax"===e.n}#i(){if(this.parent.blocked)return!1;if(this.parent.events.length>=r.jx){if(this.parent.mode!==o.g.ERROR)return!1;this.trimSTNsByTime(),this.parent.events.length>=r.jx&&this.trimSTNsByIndex(1)}return!0}#r(e){return!(this.#s(e)||!this.#i())&&(this.#e(e)&&this.#t(e)||this.parent.events.add(e),!0)}storeNode(e){return this.#r(e)}processPVT(e,t,s){return this.storeTiming({[e]:t})}storeTiming(e,t=!1){if(!e)return!1;let s=!0;for(let i in e){let r=e[i];const n=i.toLowerCase();n.indexOf("size")>=0||n.indexOf("status")>=0||"number"==typeof r&&r>=0&&(r=Math.round(r),t&&this.parent.timeKeeper?.ready&&(r=this.parent.timeKeeper.convertAbsoluteTimestamp(Math.floor(this.parent.timeKeeper.correctAbsoluteTimestamp(r)))),this.#r(new u(i,r,r,"document","timing"))||(s=!1))}return s}storeEvent(e,t,s,i){if(this.prevStoredEvents.has(e)||!this.#i())return!1;this.prevStoredEvents.add(e);const r=new u(function(e){switch(e){case"keydown":case"keyup":case"keypress":return"typing";case"mousemove":case"mouseenter":case"mouseleave":case"mouseover":case"mouseout":return"mousing";case"touchstart":case"touchmove":case"touchend":case"touchcancel":case"touchenter":case"touchleave":return"touching";case"scroll":case"scrollend":return"scrolling";default:return e}}(e.type),s,i,void 0,"event");try{r.o=(0,c.t)(e.target,t,this.parent.ee)}catch(e){r.o=(0,c.t)(null,t,this.parent.ee)}return this.#r(r)}
17storeHist(e,t,s){return this.#r(new u("history.pushState",s,s,e,t))}storeResources(e){if(!e||0===e.length)return!1;let t=!0;for(let s=0;s<e.length;s++){const i=e[s];if(!this.#i())break;const{initiatorType:r,fetchStart:n,responseEnd:o,entryType:a}=i,{protocol:c,hostname:m,port:g,pathname:d}=(0,h.D)(i.name),l=new u(r,0|n,0|o,"".concat(c,"://").concat(m,":").concat(g).concat(d),a);this.#r(l)||(t=!1)}return t}storeErrorAgg(e,t,s,i){return"err"===e&&this.#r(new u("error",i.time,i.time,s.message,s.stackHash))}storeXhrAgg(e,t,s,i){return"xhr"===e&&this.#r(new u("Ajax",i.time,i.time+i.duration,"".concat(s.status," ").concat(s.method,": ").concat(s.host).concat(s.pathname),"ajax"))}trimSTNsByTime(e=r.sl){this.parent.events.clear({clearBeforeTime:Math.max(a.t-e,0),timestampKey:"e"})}trimSTNsByIndex(e=0){this.parent.events.clear({clearBeforeIndex:e})}clear(){this.prevStoredEvents.clear()}}var f=s(66600),v=s(58740),T=s(82209),S=s(18897),b=s(49674);class y extends n.r{static featureName=r.TZ;constructor(e){super(e,r.TZ),this.harvestOpts.raw=!0,this.entitled=void 0,this.everHarvested=!1,this.harvesting=!1,this.traceStorage=new p(this),this.waitForFlags(["sts","st"]).then((([e,t])=>this.initialize(e,t)))}initialize(e,t,s){return this.entitled??=t,this.entitled||(this.blocked=!0),this.blocked?this.deregisterDrain():(this.timeKeeper??=this.agentRef.runtime.timeKeeper,this.initialized||(this.initialized=!0,this.ptid=this.agentRef.runtime.ptid,this.sessionId=this.agentRef.runtime.session?.state.value,this.ee.on(o.tS.RESET,(()=>{this.blocked||this.abort(1)})),this.ee.on(o.tS.UPDATE,((e,t)=>{this.blocked||(this.mode===o.g.FULL||t.sessionReplayMode!==o.g.FULL&&t.sessionTraceMode!==o.g.FULL||this.switchToFull(),(this.sessionId!==t.value||"cross-tab"===e&&t.sessionTraceMode===o.g.OFF)&&this.abort(2))})),"undefined"!=typeof PerformanceNavigationTiming&&v.gm.performance?.getEntriesByType("navigation")?.length>0?this.traceStorage.storeTiming(v.gm.performance.getEntriesByType("navigation")[0]):this.traceStorage.storeTiming(v.gm.performance?.timing,!0)),this.agentRef.runtime.session.isNew||s?this.mode=e:this.mode=this.agentRef.runtime.session.state.sessionTraceMode,this.mode===o.g.OFF?this.deregisterDrain():((0,i.i)("bst",((...e)=>this.traceStorage.storeEvent(...e)),this.featureName,this.ee),(0,i.i)("bstResource",((...e)=>this.traceStorage.storeResources(...e)),this.featureName,this.ee),(0,i.i)("bstHist",((...e)=>this.traceStorage.storeHist(...e)),this.featureName,this.ee),(0,i.i)("bstXhrAgg",((...e)=>this.traceStorage.storeXhrAgg(...e)),this.featureName,this.ee),(0,i.i)("bstApi",((...e)=>this.traceStorage.storeNode(...e)),this.featureName,this.ee),(0,i.i)("trace-jserror",((...e)=>this.traceStorage.storeErrorAgg(...e)),this.featureName,this.ee),(0,i.i)("pvtAdded",((...e)=>this.traceStorage.processPVT(...e)),this.featureName,this.ee),this.mode!==o.g.FULL&&(0,i.i)("trace-jserror",(()=>{this.mode===o.g.ERROR&&this.switchToFull()}),this.featureName,this.ee),this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),void this.drain()))}preHarvestChecks(){if(!this.blocked&&this.mode===o.g.FULL&&this.timeKeeper?.ready&&this.agentRef.runtime.session){if(this.sessionId===this.agentRef.runtime.session.state.value&&this.ptid===this.agentRef.runtime.ptid)return!0;this.abort(3)}}serializer(e){if(e.length)return this.everHarvested=!0,(0,T.G)(e,this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}queryStringsBuilder(e){const t=!this.agentRef.runtime.session.state.traceHarvestStarted;t&&this.agentRef.runtime.session.write({traceHarvestStarted:!0});const s=1===this.agentRef.runtime.session.state.sessionReplayMode,i=this.agentRef.info.jsAttributes["enduser.id"],r=this.agentRef.runtime.appMetadata.agents?.[0]?.entityGuid,n=e.reduce(((e,t)=>Math.min(e,t.s)),1/0),o=e.reduce(((e,t)=>Math.max(e,t.s)),-1/0);return{browser_monitoring_key:this.agentRef.info.licenseKey,type:"BrowserSessionChunk",app_id:this.agentRef.info.applicationID,protocol_version:"0",timestamp:Math.floor(this.timeKeeper.correctRelativeTimestamp(n)),attributes:(0,f.WL)({...r&&{entityGuid:r},harvestId:"".concat(this.agentRef.runtime.session.state.value,"_").concat(this.agentRef.runtime.ptid,"_").concat(this.agentRef.runtime.harvestCount),"trace.firstTimestamp":Math.floor(this.timeKeeper.correctRelativeTimestamp(n)),"trace.lastTimestamp":Math.floor(this.timeKeeper.correctRelativeTimestamp(o)),"trace.nodes":e.length,"trace.originTimestamp":this.timeKeeper.correctedOriginTime,agentVersion:this.agentRef.runtime.version,...t&&{firstSessionHarvest:t},...s&&{hasReplay:s},ptid:"".concat(this.ptid),session:"".concat(this.sessionId),...i&&{"enduser.id":this.obfuscator.obfuscateString(i)},currentUrl:this.obfuscator.obfuscateString((0,S.L)(""+location))},5e3).substring(1)}}switchToFull(){if(this.mode===o.g.FULL||!this.entitled||this.blocked)return;const e=this.mode;if(this.mode=o.g.FULL,this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),e===o.g.OFF||!this.initialized)return this.initialize(this.mode,this.entitled);this.initialized&&(this.traceStorage.trimSTNsByTime(),this.agentRef.runtime.harvester.triggerHarvestFor(this))}abort(e){(0,b.R)(60,e),this.blocked=!0,this.mode=o.g.OFF,this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),this.events.clear()}postHarvestCleanup(e){this.traceStorage.clear(),super.postHarvestCleanup(e)}}},82209:function(e,t,s){function i(e,t,s="string",r=[]){return e&&"object"==typeof e?(Object.keys(e).forEach((n=>{"object"==typeof e[n]?i(e[n],t,s,r):typeof e[n]!==s||r.includes(n)||(e[n]=t(e[n]))})),e):e}s.d(t,{G:function(){return i}})},94970:function(e,t,s){function i(e,t,s){let i="unknown";if(e&&e instanceof XMLHttpRequest){const t=s.context(e).params;if(!(t&&t.status&&t.method&&t.host&&t.pathname))return"xhrOriginMissing";i=t.status+" "+t.method+": "+t.host+t.pathname}else if(e&&"string"==typeof e.tagName&&(i=e.tagName.toLowerCase(),e.id&&(i+="#"+e.id),e.className))for(let t=0;t<e.classList.length;t++)i+="."+e.classList[t];return"unknown"===i&&("string"==typeof t?i=t:t===document?i="document":t===window?i="window":t instanceof FileReader&&(i="FileReader")),i}s.d(t,{t:function(){return i}})}}]); 18"use strict";(self.webpackChunkamagch=self.webpackChunkamagch||[]).push([[967],{52925:function(e,t,s){s.d(t,{M:function(){return i}});class i{constructor(e,t){if(!e.onEnd)throw new Error("onEnd handler is required");if(!t)throw new Error("ms duration is required");this.onEnd=e.onEnd,this.initialMs=t,this.startTimestamp=Date.now(),this.timer=this.create(this.onEnd,t)}create(e,t){return this.timer&&this.clear(),setTimeout((()=>e?e():this.onEnd()),t||this.initialMs)}clear(){clearTimeout(this.timer),this.timer=null}end(){this.clear(),this.onEnd()}isValid(){return this.initialMs-(Date.now()-this.startTimestamp)>0}}},64128:function(e,t,s){s.d(t,{setupAgentSession:function(){return x}});
18var i=s(96657),n=s(72024),r=s(98800),o=s(49674),a=s(21690),h=s(52925),c=s(58740),u=s(79324),l=s(62449),d=s(55239);class m extends h.M{constructor(e,t){super(e,t),this.onPause="function"==typeof e.onPause?e.onPause:()=>{},this.onRefresh="function"==typeof e.onRefresh?e.onRefresh:()=>{},this.onResume="function"==typeof e.onResume?e.onResume:()=>{},this.readStorage=e.readStorage,this.remainingMs=void 0,e.refreshEvents||(e.refreshEvents=["click","keydown","scroll"]);try{this.abortController=new AbortController}catch(e){}if(c.RI&&e.ee){if(e.ee){this.ee=e.ee;const t=(0,d.s)(this.refresh.bind(this),500,{leading:!0});this.refreshHandler=s=>{e.refreshEvents.includes(s?.[0]?.type)&&t()},e.ee.on("fn-end",this.refreshHandler)}(0,l.u)((e=>{"hidden"===e?this.pause():this.resume()}),!1,!1,this.abortController?.signal)}}abort(){this.clear(),this.abortController?.abort(),this.refreshHandler&&(this.ee.removeEventListener("fn-end",this.refreshHandler),this.refreshHandler=this.ee=null)}pause(){this.onPause(),clearTimeout(this.timer),this.remainingMs=this.initialMs-(Date.now()-this.startTimestamp)}resume(){try{const t=this.readStorage(),s="string"==typeof t?JSON.parse(t):t;e(s.expiresAt)||e(s.inactiveAt)?this.end():(this.refresh(),this.onResume())}catch(e){this.end()}function e(e){return Date.now()>e}}refresh(e,t){this.clear(),this.timer=this.create(e,t),this.startTimestamp=Date.now(),this.remainingMs=void 0,this.onRefresh()}}var f=s(23941),p=s(19644),g=s(34842),y=s(7187),v=s(19470),A=s(17508),w=s(61059);const M={value:"",inactiveAt:0,expiresAt:0,updatedAt:Date.now(),sessionReplayMode:u.g.OFF,sessionReplaySentFirstChunk:!1,sessionTraceMode:u.g.OFF,traceHarvestStarted:!1,loggingMode:w.A$.OFF,logApiMode:w.A$.OFF,serverTimeDiff:null,custom:{},numOfResets:0,consent:!1};class S{constructor(e){const{agentRef:t,key:s,storage:i}=e;if(!t||!s||!i)throw new Error("Missing required field(s):".concat(t?"":" agentRef").concat(s?"":" key").concat(i?"":" storage"));this.agentRef=t,this.storage=i,this.state={},this.key=s,this.ee=t.ee,(0,f.u)(this.ee),this.setup(e),c.RI&&(0,A.sp)("storage",(e=>{if(e.key===this.lookupKey){const t="string"==typeof e.newValue?JSON.parse(e.newValue):e.newValue;this.sync(t),this.ee.emit(u.tS.UPDATE,[u.iL.CROSS_TAB,this.state])}}))}setup({value:e=(0,r.LA)(16),expiresMs:t=u.wk,inactiveMs:s=u.BB,numOfResets:i=0}){const n={serverTimeDiff:this.state.serverTimeDiff||M.serverTimeDiff,consent:this.state.consent||M.consent};this.state={},this.sync({...M,...n}),this.state.value=e,this.expiresMs=t,this.inactiveMs=s;const o=this.read();t?(this.state.expiresAt=o?.expiresAt||this.getFutureTimestamp(t),this.state.numOfResets=o?.numOfResets||i,this.expiresTimer=new h.M({onEnd:()=>{this.collectSM("expired"),this.collectSM("duration"),this.reset()}},this.state.expiresAt-Date.now())):this.state.expiresAt=1/0,s?(this.state.inactiveAt=o?.inactiveAt||this.getFutureTimestamp(s),this.inactiveTimer=new m({onEnd:()=>{this.collectSM("inactive"),this.collectSM("duration"),this.reset()},onRefresh:this.refresh.bind(this),onResume:()=>{this.ee.emit(u.tS.RESUME)},onPause:()=>{this.initialized&&this.ee.emit(u.tS.PAUSE),this.write((0,p.a)(this.state,M))},ee:this.ee,refreshEvents:["click","keydown","scroll"],readStorage:()=>this.storage.get(this.lookupKey)},this.state.inactiveAt-Date.now())):this.state.inactiveAt=1/0,this.isNew||=!Object.keys(o).length,this.isNew?this.write((0,p.a)(this.state,M),!0):this.sync(o),this.initialized=!0,this.ee.emit(u.tS.STARTED,[this.isNew])}get lookupKey(){return"".concat(u.H3,"_").concat(this.key)}sync(e){Object.assign(this.state,e)}read(){try{const e=this.storage.get(this.lookupKey);if(!e)return{};const t="string"==typeof e?JSON.parse(e):e;return this.isInvalid(t)?{}:this.isExpired(t.expiresAt)?(this.collectSM("expired"),this.collectSM("duration",t,!0),this.reset()):this.isExpired(t.inactiveAt)?(this.collectSM("inactive"),this.collectSM("duration",t,!0),this.reset()):t}catch(e){return(0,o.R)(10,e),{}}}write(e){try{if(!e||"object"!=typeof e)return;return e.updatedAt=Date.now(),this.sync(e),this.storage.set(this.lookupKey,(0,a.A)(this.state)),this.ee.emit(u.tS.UPDATE,[u.iL.SAME_TAB,this.state]),e}catch(e){return(0,o.R)(11,e),null}}reset(){try{return(0,o.R)(66),this.initialized&&(this.ee.emit(u.tS.RESET),this.state.numOfResets++),this.storage.remove(this.lookupKey),this.inactiveTimer?.abort?.(),this.expiresTimer?.clear?.(),delete this.isNew,this.setup({agentRef:this.agentRef,key:this.key,storage:this.storage,expiresMs:this.expiresMs,inactiveMs:this.inactiveMs,numOfResets:this.state.numOfResets}),this.read()}catch(e){return{}}}refresh(){const e=this.read();this.write({...e,inactiveAt:this.getFutureTimestamp(this.inactiveMs)})}isExpired(e){return Date.now()>e}isInvalid(e){return!Object.keys(M).every((t=>Object.keys(e).includes(t)))}collectSM(e,t,s){let i,n;"duration"===e&&(i=this.getDuration(t,s),n="Session/Duration/Ms"),"expired"===e&&(n="Session/Expired/Seen"),"inactive"===e&&(n="Session/Inactive/Seen"),n&&(0,g.p)(y.xV,[n,i],void 0,v.K7.metrics,this.ee)}getDuration(e=this.state,t){const s=e.expiresAt-this.expiresMs;return(t?Date.now():e.updatedAt)-s}getFutureTimestamp(e){return Date.now()+e}
18syncCustomAttribute(e,t){if(c.RI)if(null===t){const t=this.read();t.custom&&(delete t.custom[e],this.write({...t}))}else{const s=this.read();this.custom={...s?.custom||{},[e]:t},this.write({...s,custom:this.custom})}}}class R{get(e){try{return localStorage.getItem(e)||void 0}catch(e){return""}}set(e,t){try{return null==t?this.remove(e):localStorage.setItem(e,t)}catch(e){}}remove(e){try{localStorage.removeItem(e)}catch(e){}}}var E=s(29077);var b=s(38839),k=s(52428);function x(e){if(e.runtime.session)return e.runtime.session;const t=e.init.session;e.runtime.session=new S({agentRef:e,key:u.uh,storage:new R,expiresMs:t?.expiresMs,inactiveMs:t?.inactiveMs});const s=e.runtime.session.state.custom;s&&Object.keys(s).length&&(e.info=(0,E.D)({...e.info,jsAttributes:{...s,...e.info.jsAttributes}})),e.runtime.jsAttributesMetadata=function(e,t){const s=e[t]??={},i={bytes:Object.keys(s).reduce(((e,t)=>e+t.length+(0,a.A)(s[t]).length),0)};return e[t]=new Proxy(s,{set(e,t,s){return i.bytes+=t.length+(0,a.A)(s).length,e[t]=s,!0},deleteProperty(e,t){return i.bytes-=t.length+(0,a.A)(e[t]).length,delete e[t]}}),i}(e.info,"jsAttributes");const r=e.ee;return(0,n.i)("api-setCustomAttribute",((t,s,i)=>{e.runtime.session.syncCustomAttribute(s,i)}),"session",r),(0,n.i)("api-setUserId",((t,s,i)=>{e.runtime.session.syncCustomAttribute(s,i)}),"session",r),(0,n.i)("api-setUserIdAndResetSession",(t=>{e.runtime.session.reset(),(0,g.p)(y.xV,["API/"+b.Dl+"/resetSession/called"],void 0,v.K7.metrics,r),(0,k.U)(e,"enduser.id",t,b.Dl,!0)}),"session",r),(0,n.i)("api-consent",(t=>{e.runtime.session.write({consent:void 0===t||t})}),"session",r),(0,i.Ze)(e,"session"),e.runtime.session}}}]); 19"use strict";(self.webpackChunkamagch=self.webpackChunkamagch||[]).push([[769],{48861:function(t,e,i){i.d(e,{AQ:function(){return c},me:function(){return a},sH:function(){return o},uJ:function(){return h}});var s=i(21690),n=Object.prototype.hasOwnProperty,r=64;function a(t,e,i){return t||0===t||""===t?e(t)+(i?",":""):"!"}function o(t,e){return e?Math.floor(t).toString(36):void 0===t||0===t?"":Math.floor(t).toString(36)}function h(t){let e=0;const i=Object.prototype.hasOwnProperty.call(Object,"create")?Object.create(null):{};return function(s){if(void 0===s||""===s)return"";return s=t.obfuscateString(String(s)),n.call(i,s)?o(i[s],!0):(i[s]=e++,function(t){return"'"+t.replace(u,"\\$1")}(s))}}function c(t,e){var i=[];return Object.entries(t||{}).forEach((([t,n])=>{if(!(i.length>=r)){var a,o=5;switch(t=e(t),typeof n){case"object":n?a=e((0,s.A)(n)):o=9;break;case"number":o=6,a=n%1?n:n+".";break;case"boolean":o=n?7:8;break;case"undefined":o=9;break;default:a=e(n)}i.push([o,t+(a?","+a:"")])}})),i}var u=/([,\\;])/g},63312:function(t,e,i){i.r(e),i.d(e,{Aggregate:function(){return y}});var s=i(34842),n=i(72024),r=i(98689),a=i(91666),o=i(19470),h=i(75901),c=i(276),u=i(48861);let d=0;class l{belType;children=[];start;end;callbackEnd=0;callbackDuration=0;nodeId=++d;addChild(t){this.children.push(t)}serialize(){}}class m extends l{constructor(t,e){super(),this.belType=c.Qu.AJAX,this.method=t.method,this.status=t.status,this.domain=t.domain,this.path=t.path,this.txSize=t.requestSize,this.rxSize=t.responseSize,this.requestedWith="fetch"===t.type?1:"",this.spanId=t.spanId,this.traceId=t.traceId,this.spanTimestamp=t.spanTimestamp,this.gql=t.gql,this.targetAttributes=t.targetAttributes,this.start=t.startTime,this.end=t.endTime,e?.latestLongtaskEnd?(this.callbackEnd=Math.max(e.latestLongtaskEnd,this.end),this.callbackDuration=this.callbackEnd-this.end):this.callbackEnd=this.end}serialize(t,e){const i=(0,u.uJ)(e.runtime.obfuscator),s=[],n=[(0,u.sH)(this.belType),0,(0,u.sH)(this.start-t),(0,u.sH)(this.end-this.start),(0,u.sH)(this.callbackEnd-this.end),(0,u.sH)(this.callbackDuration),i(this.method),(0,u.sH)(this.status),i(this.domain),i(this.path),(0,u.sH)(this.txSize),(0,u.sH)(this.rxSize),this.requestedWith,i(this.nodeId),(0,u.me)(this.spanId,i,!0)+(0,u.me)(this.traceId,i,!0)+(0,u.me)(this.spanTimestamp,u.sH)];let r=(0,u.AQ)({...this.gql||{},...this.targetAttributes||{}},i);
19return this.children.forEach((t=>r.push(t.serialize()))),n[1]=(0,u.sH)(r.length),s.push(n),r.length&&s.push(r.join(";")),s.join(";")}}var p=i(91823),f=i(58740),g=i(98800),I=i(31609),b=i(18897);class v extends l{id=(0,g.bz)();initialPageURL=f.m;customName;customAttributes={};customDataByApi={};queueTime;appTime;newRoute;status=c.ih.IP;domTimestamp=0;historyTimestamp=0;createdByApi=!1;keepOpenUntilEndApi=!1;onDone=[];customEnd=0;cancellationTimer;watchLongtaskTimer;constructor(t,e,i,s){super(),this.belType=c.Qu.INTERACTION,this.trigger=t,this.start=e,this.oldRoute=i,this.eventSubscription=new Map([["finished",[]],["cancelled",[]]]),this.forceSave=this.forceIgnore=!1,this.trigger===c.AM&&(this.createdByApi=!0),this.newURL=this.oldURL=s||f.gm?.location.href}updateHistory(t,e){this.domTimestamp>0||e&&e!==this.oldURL&&(this.newURL=e,this.historyTimestamp=t||(0,I.t)())}updateDom(t){!this.historyTimestamp||t<this.historyTimestamp||(this.domTimestamp=t||(0,I.t)())}checkHistoryAndDomChange(){return this.historyTimestamp>0&&this.domTimestamp>this.historyTimestamp&&(this.status===c.ih.PF||(this.status=c.ih.PF,clearTimeout(this.cancellationTimer),this.watchLongtaskTimer??=setTimeout((()=>this.done()),c.wD)),!0)}on(t,e){if(!this.eventSubscription.has(t))throw new Error("Cannot subscribe to non pre-defined events.");
19if("function"!=typeof e)throw new Error("Must supply function as callback.");this.eventSubscription.get(t).push(e)}done(t=this.customEnd,e=!1){return!(this.keepOpenUntilEndApi&&!e)&&(this.status===c.ih.FIN||this.status===c.ih.CAN||(clearTimeout(this.cancellationTimer),clearTimeout(this.watchLongtaskTimer),this.onDone.forEach((t=>t(this.customDataByApi))),this.forceIgnore?this.#t():this.status===c.ih.PF?this.#e(t):this.forceSave?this.#e(t||performance.now()):this.#t()),!0)}#e(t){this.end=Math.max(this.domTimestamp,this.historyTimestamp,t),this.status=c.ih.FIN;this.eventSubscription.get("finished").forEach((t=>t()))}#t(){this.status=c.ih.CAN;this.eventSubscription.get("cancelled").forEach((t=>t()))}isActiveDuring(t){return this.status===c.ih.IP||this.status===c.ih.PF?this.start<=t:this.status===c.ih.FIN&&this.start<=t&&t<this.end}get firstPaint(){}get firstContentfulPaint(){}get navTiming(){}serialize(t,e){const i=void 0===t,s=(0,u.uJ)(e.runtime.obfuscator),n=[];let r;r=this.trigger===c.pP?c.O2.INITIAL_PAGE_LOAD:this.newURL!==this.oldURL?c.O2.ROUTE_CHANGE:c.O2.UNSPECIFIED;const a=[(0,u.sH)(this.belType),0,(0,u.sH)(this.start-(i?0:t)),(0,u.sH)(this.end-this.start),(0,u.sH)(0),(0,u.sH)(0),s(this.trigger),s((0,b.L)(this.initialPageURL,!0)),s((0,b.L)(this.oldURL,!0)),s((0,b.L)(this.newURL,!0)),s(this.customName),r,(0,u.me)(this.queueTime,u.sH,!0)+(0,u.me)(this.appTime,u.sH,!0)+(0,u.me)(this.oldRoute,s,!0)+(0,u.me)(this.newRoute,s,!0)+s(this.id),s(this.nodeId),(0,u.me)(this.firstPaint,u.sH,!0)+(0,u.me)(this.firstContentfulPaint,u.sH)],o={...e.info.jsAttributes,...this.customAttributes},h=(0,u.AQ)(o||{},s);return e.info.atts&&h.push("a,"+s(e.info.atts)),this.children.forEach((s=>h.push(s.serialize(i?this.start:t,e)))),a[1]=(0,u.sH)(h.length),n.push(a),h.length&&n.push(h.join(";")),this.navTiming?n.push(this.navTiming):n.push(""),n.join(";")}}var T=i(41291),P=i(702);class A extends v{constructor(t){super(c.pP,0,null),this.queueTime=t.info.queueTime,this.appTime=t.info.applicationTime,this.oldURL=document.referrer||void 0}get firstPaint(){return T.J.current.value}get firstContentfulPaint(){return P.j.current.value}get navTiming(){if(!p.ss.length)return;let t=",",e="b",i=0;return p.ss.slice(1,21).forEach((s=>{void 0!==s?(e+=t+(0,u.sH)(s-i),t=",",i=s):(e+=t+"!",t="")})),e}}class y extends h.r{static featureName=c.TZ;constructor(t,{domObserver:e}){super(t,c.TZ),super.customAttributesAreSeparate=!0,this.interactionsToHarvest=this.events,this.domObserver=e,this.initialPageLoadInteraction=new A(t),this.initialPageLoadInteraction.onDone.push((()=>{t.runtime.session?.isNew&&(this.initialPageLoadInteraction.customAttributes.isFirstOfSession=!0),this.initialPageLoadInteraction.customAttributes.webdriverDetected=r.R,this.initialPageLoadInteraction.forceSave=!0;const e=this.initialPageLoadInteraction;this.events.add(e),this.initialPageLoadInteraction=null})),a.Y.subscribe((({value:t})=>{this.initialPageLoadInteraction.done(t),this.reportSupportabilityMetric("SoftNav/Interaction/InitialPageLoad/Duration/Ms",Math.round(t))})),this.latestRouteSetByApi=null,this.interactionInProgress=null,this.latestHistoryUrl=window.location.href,this.harvestOpts.beforeUnload=()=>this.interactionInProgress?.done(),this.waitForFlags(["spa"]).then((([t])=>{t?this.drain():(this.blocked=!0,this.deregisterDrain())})),(0,n.i)("newUIEvent",(t=>this.startUIInteraction(t.type,Math.floor(t.timeStamp),t.target)),this.featureName,this.ee),(0,n.i)("newURL",((t,e)=>{this.latestHistoryUrl=e,this.interactionInProgress?.updateHistory(t,e)}),this.featureName,this.ee),(0,n.i)("newDom",(t=>{this.interactionInProgress?.updateDom(t),this.interactionInProgress?.checkHistoryAndDomChange()}),this.featureName,this.ee),this.ee.on("long-task",(t=>{this.interactionInProgress?.watchLongtaskTimer&&(clearTimeout(this.interactionInProgress.watchLongtaskTimer),this.interactionInProgress.customEnd=t.end,this.interactionInProgress.watchLongtaskTimer=setTimeout((()=>this.interactionInProgress.done()),c.wD),this.reportSupportabilityMetric("SoftNav/Interaction/Extended"))})),this.#i(),(0,n.i)("ajax",this.#s.bind(this),this.featureName,this.ee),(0,n.i)("jserror",this.#n.bind(this),this.featureName,this.ee)}serializer(t){let e;const i=[];for(const s of t)i.push(s.serialize(e,this.agentRef)),void 0===e&&(e=Math.floor(s.start));return"bel.7;".concat(i.join(";"))}
19startUIInteraction(t,e,i){if(this.interactionInProgress?.createdByApi)return;if(t===c.OV&&this.interactionInProgress?.trigger!==c.OV&&e-this.interactionInProgress?.start<=c.t1)return;if(!1===this.interactionInProgress?.done())return;const s=t===c.OV?this.latestHistoryUrl:void 0;if(this.interactionInProgress=new v(t,e,this.latestRouteSetByApi,s),t===c.tC[0]){const t=function(t){const e=t.tagName?.toLowerCase();if(["a","button","input"].includes(e))return t.title||t.value||t.innerText}(i);t&&(this.interactionInProgress.customAttributes.actionText=t)}this.interactionInProgress.cancellationTimer=setTimeout((()=>{this.interactionInProgress.done(),this.reportSupportabilityMetric("SoftNav/Interaction/TimeOut")}),3e4),this.setClosureHandlers()}setClosureHandlers(){this.interactionInProgress.on("finished",(()=>{const t=this.interactionInProgress;this.events.add(this.interactionInProgress),this.interactionInProgress=null,this.domObserver.disconnect(),this.reportSupportabilityMetric("SoftNav/Interaction/".concat(t.newURL!==t.oldURL?"RouteChange":"Custom","/Duration/Ms"),Math.round(t.end-t.start))})),this.interactionInProgress.on("cancelled",(()=>{this.interactionInProgress=null,this.domObserver.disconnect()}))}getInteractionFor(t){if(this.interactionInProgress?.isActiveDuring(t))return this.interactionInProgress;let e;const i=this.interactionsToHarvest.get();if(i){for(let s=i.length-1;s>=0;s--){const n=i[s];if(n.isActiveDuring(t)){if(n.trigger!==c.pP)return n;e=n}}return e||(this.initialPageLoadInteraction?.isActiveDuring(t)?this.initialPageLoadInteraction:void 0)}}#s(t,e){const i=this.getInteractionFor(t.startTime);function n(t,e,i){const n=i.end;if(t.startTime>n)return void(0,s.p)("returnAjax",[t],void 0,o.K7.ajax,this.ee);const r=new m(t,e);i.addChild(r)}i?i.status===c.ih.FIN?n.call(this,t,e,i):(i.on("finished",(()=>n.call(this,t,e,i))),i.on("cancelled",(()=>(0,s.p)("returnAjax",[t],void 0,o.K7.ajax,this.ee)))):(0,s.p)("returnAjax",[t],void 0,o.K7.ajax,this.ee)}#n(t){const e=t[3].time,i=this.getInteractionFor(e);if(!i)return(0,s.p)("returnJserror",[t],void 0,o.K7.jserrors,this.ee);function n(t,i){const n=i.end;if(e>n)return(0,s.p)("returnJserror",[t],void 0,o.K7.jserrors,this.ee);t[2].browserInteractionId=i.id,(0,s.p)("returnJserror",[t,i.customAttributes],void 0,o.K7.jserrors,this.ee)}i.status===c.ih.FIN?n.call(this,t,i):(i.on("finished",(()=>n.call(this,t,i))),i.on("cancelled",(()=>(0,s.p)("returnJserror",[t],void 0,o.K7.jserrors,this.ee))))}#i(){const t="api-ixn-",e=this;(0,n.i)(t+"get",(function(t,{waitForEnd:i}={}){this.associatedInteraction=e.getInteractionFor(t),this.associatedInteraction?.trigger===c.pP&&(this.associatedInteraction=null),this.associatedInteraction||(this.associatedInteraction=e.interactionInProgress=new v(c.AM,Math.floor(t),e.latestRouteSetByApi),e.domObserver.observe(document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),e.setClosureHandlers()),!0===i&&(this.associatedInteraction.keepOpenUntilEndApi=!0,clearTimeout(this.associatedInteraction.cancellationTimer))}),e.featureName,e.ee),(0,n.i)(t+"end",(function(t){this.associatedInteraction.done(t,!0)}),e.featureName,e.ee),(0,n.i)(t+"save",(function(){this.associatedInteraction.forceSave=!0}),e.featureName,e.ee),(0,n.i)(t+"ignore",(function(){this.associatedInteraction.forceIgnore=!0}),e.featureName,e.ee),(0,n.i)(t+"getContext",(function(t,e){"function"==typeof e&&setTimeout((()=>e(this.associatedInteraction.customDataByApi)),0)}),e.featureName,e.ee),(0,n.i)(t+"onEnd",(function(t,e){"function"==typeof e&&this.associatedInteraction.onDone.push(e)}),e.featureName,e.ee),(0,n.i)(t+"actionText",(function(t,e){e&&(this.associatedInteraction.customAttributes.actionText=e)}),e.featureName,e.ee),(0,n.i)(t+"setName",(function(t,e,i){e&&(this.associatedInteraction.customName=e),i&&(this.associatedInteraction.trigger=i)}),e.featureName,e.ee),(0,n.i)(t+"setAttribute",(function(t,e,i){this.associatedInteraction.customAttributes[e]=i}),e.featureName,e.ee),(0,n.i)(t+"routeName",(function(t,i){e.latestRouteSetByApi=i,e.interactionInProgress&&(e.interactionInProgress.newRoute=i)}),e.featureName,e.ee)}}}
19,91666:function(t,e,i){i.d(e,{Y:function(){return a}});var s=i(58740),n=i(92919),r=i(83209);const a=new(i(79507).x)(r.w.LOAD_TIME);if(s.RI){const t=s.gm.performance,e=()=>{if(!a.isValid&&t){const e=(0,s.zk)();a.update({value:e?e.loadEventEnd:t.timing?.loadEventEnd-s.WN})}};(0,n.GG)(e,!0)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.