PageSourceSearch

https://www.hamburg-tourism.de/_assets/b4ccaba872ad200c4e382984a31…/Scripts/_vendor/utils.js?1789550564

js hamburg-tourism.de collected 2026-09-24 09:40:20 UTC 19,134 bytes, 2 lines download raw bytes

1/*! For license information please see utils.js.LICENSE.txt */
2!function(){var e,t,n,o,i,r,c={9106:function(e,t,n){"use strict";var o=n(5052),i=n.n(o);t.Z={getPositionFromTop:(e,t)=>t+(e=>{let t=parseInt(i().offsetTop(e));return e.classList.contains("areaBackground")&&(t+=parseInt(window.getComputedStyle(e).getPropertyValue("padding-top"))),t})(e)-(()=>{let e=0;if(document.getElementById("pageHeader")){let t=70;void 0!==window.hhtConfig.headerHeight&&(t=window.hhtConfig.headerHeight),e+=t}const t=document.getElementById("pageHeader-checkout");t&&(e+=t.clientHeight);const n=document.querySelector(".stage-jumpPoints__controls");return n&&(e+=n.clientHeight),e})()}},99560:function(e,t,n){var o;!function(i){"use strict";function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function c(e,t,n,o,i,c){return r((a=r(r(t,e),r(o,c)))<<(d=i)|a>>>32-d,n);var a,d}function a(e,t,n,o,i,r,a){return c(t&n|~t&o,e,t,i,r,a)}function d(e,t,n,o,i,r,a){return c(t&o|n&~o,e,t,i,r,a)}function s(e,t,n,o,i,r,a){return c(t^n^o,e,t,i,r,a)}function u(e,t,n,o,i,r,a){return c(n^(t|~o),e,t,i,r,a)}function l(e,t){var n,o,i,c,l;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var f=1732584193,w=-271733879,m=-1732584194,p=271733878;for(n=0;n<e.length;n+=16)o=f,i=w,c=m,l=p,f=a(f,w,m,p,e[n],7,-680876936),p=a(p,f,w,m,e[n+1],12,-389564586),m=a(m,p,f,w,e[n+2],17,606105819),w=a(w,m,p,f,e[n+3],22,-1044525330),f=a(f,w,m,p,e[n+4],7,-176418897),p=a(p,f,w,m,e[n+5],12,1200080426),m=a(m,p,f,w,e[n+6],17,-1473231341),w=a(w,m,p,f,e[n+7],22,-45705983),f=a(f,w,m,p,e[n+8],7,1770035416),p=a(p,f,w,m,e[n+9],12,-1958414417),m=a(m,p,f,w,e[n+10],17,-42063),w=a(w,m,p,f,e[n+11],22,-1990404162),f=a(f,w,m,p,e[n+12],7,1804603682),p=a(p,f,w,m,e[n+13],12,-40341101),m=a(m,p,f,w,e[n+14],17,-1502002290),f=d(f,w=a(w,m,p,f,e[n+15],22,1236535329),m,p,e[n+1],5,-165796510),p=d(p,f,w,m,e[n+6],9,-1069501632),m=d(m,p,f,w,e[n+11],14,643717713),w=d(w,m,p,f,e[n],20,-373897302),f=d(f,w,m,p,e[n+5],5,-701558691),p=d(p,f,w,m,e[n+10],9,38016083),m=d(m,p,f,w,e[n+15],14,-660478335),w=d(w,m,p,f,e[n+4],20,-405537848),f=d(f,w,m,p,e[n+9],5,568446438),p=d(p,f,w,m,e[n+14],9,-1019803690),m=d(m,p,f,w,e[n+3],14,-187363961),w=d(w,m,p,f,e[n+8],20,1163531501),f=d(f,w,m,p,e[n+13],5,-1444681467),p=d(p,f,w,m,e[n+2],9,-51403784),m=d(m,p,f,w,e[n+7],14,1735328473),f=s(f,w=d(w,m,p,f,e[n+12],20,-1926607734),m,p,e[n+5],4,-378558),p=s(p,f,w,m,e[n+8],11,-2022574463),m=s(m,p,f,w,e[n+11],16,1839030562),w=s(w,m,p,f,e[n+14],23,-35309556),f=s(f,w,m,p,e[n+1],4,-1530992060),p=s(p,f,w,m,e[n+4],11,1272893353),m=s(m,p,f,w,e[n+7],16,-155497632),w=s(w,m,p,f,e[n+10],23,-1094730640),f=s(f,w,m,p,e[n+13],4,681279174),p=s(p,f,w,m,e[n],11,-358537222),m=s(m,p,f,w,e[n+3],16,-722521979),w=s(w,m,p,f,e[n+6],23,76029189),f=s(f,w,m,p,e[n+9],4,-640364487),p=s(p,f,w,m,e[n+12],11,-421815835),m=s(m,p,f,w,e[n+15],16,530742520),f=u(f,w=s(w,m,p,f,e[n+2],23,-995338651),m,p,e[n],6,-198630844),p=u(p,f,w,m,e[n+7],10,1126891415),m=u(m,p,f,w,e[n+14],15,-1416354905),w=u(w,m,p,f,e[n+5],21,-57434055),f=u(f,w,m,p,e[n+12],6,1700485571),p=u(p,f,w,m,e[n+3],10,-1894986606),m=u(m,p,f,w,e[n+10],15,-1051523),w=u(w,m,p,f,e[n+1],21,-2054922799),f=u(f,w,m,p,e[n+8],6,1873313359),p=u(p,f,w,m,e[n+15],10,-30611744),m=u(m,p,f,w,e[n+6],15,-1560198380),w=u(w,m,p,f,e[n+13],21,1309151649),f=u(f,w,m,p,e[n+4],6,-145523070),p=u(p,f,w,m,e[n+11],10,-1120210379),m=u(m,p,f,w,e[n+2],15,718787259),w=u(w,m,p,f,e[n+9],21,-343485551),f=r(f,o),w=r(w,i),m=r(m,c),p=r(p,l);return[f,w,m,p]}function f(e){var t,n="",o=32*e.length;for(t=0;t<o;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function w(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var o=8*e.length;for(t=0;t<o;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function m(e){var t,n,o="0123456789abcdef",i="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),i+=o.charAt(t>>>4&15)+o.charAt(15&t);return i}function p(e){return unescape(encodeURIComponent(e))}function v(e){return function(e){return f(l(w(e),8*e.length))}(p(e))}function h(e,t){return function(e,t){var n,o,i=w(e),r=[],c=[];for(r[15]=c[15]=void 0,i.length>16&&(i=l(i,8*e.length)),n=0;n<16;n+=1)r[n]=909522486^i[n],c[n]=1549556828^i[n];return o=l(r.concat(w(t)),512+8*t.length),f(l(c.concat(o),640))}(p(e),p(t))}function y(e,t,n){return t?n?h(t,e):m(h(t,e)):n?v(e):m(v(e))}void 0===(o=function(){return y}.call(t,n,t,e))||(e.exports=o)}()},30550:function(e,t,n){var o=n(5052);e.exports=function(){const e=e=>{switch(e.type){case"viewport":l.viewport||(l.viewport=!0,t());break;case"hover":n(e);break;case"click":i(e)}},t=()=>{const e=()=>{const e=window.pageYOffset,t=window.innerHeight;for(let n of f.viewport){const i=n.node.offsetHeight,a=o.offsetTop(n.node);e+t>=a&&e<a+i&&(n.rendered?c(n):r(n))}};window.addEventListener("scroll",e),window.addEventListener("resize",e),o.documentReady(e)},n=e=>{e.node.addEventListener("mouseover",(()=>{e.rendered?c(e):r(e)}))},i=e=>{e.node.addEventListener("click",(()=>{e.rendered?c(e):r(e)}))},r=e=>{e.rendered=!0,console.log("imx_init: firing init",e.node),e.node.dispatchEvent(d),"function"==typeof e.initCallback&&e.initCallback(),e.node.setAttribute("data-imx_init","init")},c=e=>{e.node.dispatchEvent(s),"function"==typeof e.updateCallback&&e.updateCallback()},a=e=>{if("function"==typeof window.Event)return new Event(e);{const t=document.createEvent("Event");return t.initEvent(e,!1,!0),t}},d=a("imx_init"),s=a("imx_update"),u=["viewport","hover","click"],l={viewport:!1},f={};return{addListener:t=>{const n=o.extendObject(t,{type:"viewport",node:null,initCallback:null,updateCallback:null});return-1!==u.indexOf(n.type)&&((t=>{"object"!=typeof f[t.type]&&(f[t.type]=[]),t.rendered=!1,e(t),f[t.type].push(t)})(n),n)}}}()},5052:function(e){e.exports={offsetTop:function(e){var t=document.querySelector("body");return e.getBoundingClientRect().top-t.getBoundingClientRect().top},offsetLeft:function(e){var t=document.querySelector("body");return e.getBoundingClientRect().left-t.getBoundingClientRect().left},scrollTo:function(e,t,n){var o=function(){return{x:window.pageXOffset,y:window.pageYOffset}},i=o(),r={x:(e-i.x)/(n/15),y:(t-i.y)/(n/15)},c=setInterval((function(){!function(){var n=o(),i={x:!1,y:!1};return r.x<0?n.x+r.x<=e&&(i.x=!0):n.x+r.x>=e&&(i.x=!0),r.y<0?n.y+r.y<=t&&(i.y=!0):n.y+r.y>=t&&(i.y=!0),!(!i.x||!i.y)}()?window.scrollBy(r.x,r.y):(clearInterval(c),window.scrollTo(e,t))}),15)},scrollElementTo:function(e,t,n,o){var i=function(){return{x:o.scrollLeft,y:o.scrollTop}},r=i(),c=(e-r.x)/(n/15),a=(t-r.y)/(n/15),d=setInterval((function(){!function(){var n=i(),o={x:!1,y:!1};return c<0?n.x+c<=e&&(o.x=!0):n.x+c>=e&&(o.x=!0),a<0?n.y+a<=t&&(o.y=!0):n.y+a>=t&&(o.y=!0),!(!o.x||!o.y)}()?(o.scrollLeft+=c,o.scrollTop+=a):(clearInterval(d),o.scrollLeft=e,o.scrollTop+=t)}),15)},accessDataset:function(e,t){return e.dataset?e.dataset[t]:e.getAttribute("data-"+t)},extendObject:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e},documentReady:function(e){let t=!1;"undefined"!=typeof less&&"object"==typeof less.pageLoadFinished&&(t=!0);var n=function(){t?less.pageLoadFinished.then((()=>{setTimeout(e)})):setTimeout(e)},o=function(){document.removeEventListener("DOMContentLoaded",o),window.removeEventListener("load",o),n()};"complete"===document.readyState?n():(document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o))}}}},a={};function d(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return c[e].call(n.exports,n,n.exports,d),n.exports}
2d.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(t,{a:t}),t},d.d=function(e,t){for(var n in t)d.o(t,n)&&!d.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},window.couponFraud=function(){const e=(e,t)=>{e.classList.remove("formerror"),e.disabled=!1,e.nextElementSibling.innerHTML=t};return{check:(t,n,o=[])=>{const i=new FormData(t);i.append("action","checkCoupon");const r=new XMLHttpRequest;r.open("POST",hhtConfig.ajaxEndpoint,!0),r.onload=function(){r.status>=200&&r.status<400&&(JSON.parse(r.response).error||(e(t.code,n),o.forEach((t=>{e(t.code,n)}))))},r.send(i)}}}(),function(){"use strict";var e=d(5052),t=d.n(e);window.imxRecursiveData=function(e,n){var o=t().accessDataset(e,n);return void 0!==o?o:e.parentNode&&"HTML"!==e.parentNode.nodeName.toUpperCase()?imxRecursiveData(e.parentNode,n):null},window.imxHashCode=function(e){var t=0,n=(e=JSON.stringify(e)).length,o=0;if(n>0)for(;o<n;)t=(t<<5)-t+e.charCodeAt(o++)|0;return t},window.imxIsDescendant=function(e,t,n=!1){if(n&&t===e)return!0;for(;e=e.parentNode;)if(t===e)return!0;return!1},window.imxRandomId=function(e=""){return e+Math.floor(1e8*Math.random())}}(),window.imxDevice={isTouch:function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)},isIos:function(){return navigator.userAgent.includes("Mac")&&"ontouchend"in document},hasMaxWidth:function(e){return!!e&&window.matchMedia("(max-width: "+e+"px)").matches},hasMinWidth:function(e){return!!e&&window.matchMedia("(min-width: "+e+"px)").matches},hasAnimate:function(){return"animate"in document.createElement("div")}},window.imxDomObserver=(e=[],t=[],n=function(t,n){e.forEach((({selector:e,callback:o})=>document.querySelectorAll(e).forEach((e=>imxIsDescendant(e,t,n)&&o(e)))))},o=function(e,n){t.forEach((({selector:t,callback:o})=>{const i=document.createDocumentFragment();document.querySelectorAll(t).forEach((t=>imxIsDescendant(t,e,n)&&i.appendChild(t)));const r=i.childNodes;r.length&&o(r)}))},{registerAddNode:function(t,n){e.push({selector:t,callback:n})},registerAddCollection:function(e,n){t.push({selector:e,callback:n})},nodeContentChanged:function(e){n(e,!1),o(e,!1)},nodeAdded:function(e){n(e,!0),o(e,!0)}}),function(){"use strict";var e=d(5052),t=d.n(e);window.EVENT_EMARSYS_ELEMENTS_INITIALIZED="emarsys:elements:initialized",window.emarsysWidgetLogics=[],window.emarsysConsentName="Emarsys",window.isEmarsysAvailable=()=>{if(void 0!==window.UC_UI){const e=window.UC_UI.getServicesBaseInfo().filter((e=>!0===e.consent.status)).some((e=>e.name===window.emarsysConsentName)),t=!(1==navigator.doNotTrack);return e&&t}return!1},window.addEmarsysInitFunction=e=>{window.addUsercentricsInitFunction((()=>{try{e()}finally{window.dispatchEvent(new CustomEvent(window.EVENT_EMARSYS_ELEMENTS_INITIALIZED))}}))},function(){let e=!1,n=0,o=Number.MAX_SAFE_INTEGER,i=!1;const r=()=>{if(0===o&&!i){i=!0;const e={event:"webRecoLoaded",webRecoCount:window.emarsysWidgetLogics.length,webRecoLogic:window.emarsysWidgetLogics};return hhtConfig?.debug&&console.log("emarsysMarkFinished",e),dataLayer.push(e),!0}return!1};window.addEventListener(window.EVENT_EMARSYS_ELEMENTS_INITIALIZED,(()=>{e?(o--,r()):n++})),t().documentReady((()=>{o=document.querySelectorAll(".emarsys-elements").length-n,e=!0,r()||setTimeout((()=>{o=0,r()}),5e3)}))}()}(),function(){"use strict";var e=d(5052);d.n(e)().documentReady((function(){if("#offerList"!==window.location.hash&&window.location.hash){var e=document.querySelector(window.location.hash);e&&"none"!==window.getComputedStyle(e).display&&setTimeout((function(){e.scrollIntoView(!0)}))}}))}(),function(){"use strict";var e=d(30550),t=d.n(e);window.imxMap=function(){const e=(e,t,n)=>{window.imxScriptLoader.load("https://static.maptoolkit.net/admin/app/js/vendors/jquery.min.js",(()=>window.addUsercentricsInitFunction((()=>window.imxScriptLoader.load(["https://static.maptoolkit.net/api/v8.10/mtk.de.js","https://unpkg.com/[email protected]/dist/leaflet-gesture-handling.min.js"],(()=>((e,t,n)=>{MTK.init({apiKey:"hht",language:document.documentElement.lang});let o=0;const i=setInterval((()=>
2{"undefined"!=typeof L&&void 0!==L.Map?(MTK.createMap(e,t,n),clearInterval(i)):++o>=25&&clearInterval(i)}),200)})(e,t,n)))))))};return{create:(n,o,i,r)=>{r?e(n,o,i):t().addListener({type:"viewport",node:"string"==typeof n?document.getElementById(n):n,initCallback:()=>e(n,o,i)})}}}()}(),function(){"use strict";window.imxScriptLoaderData=window.imxScriptLoaderData||{ready:{},callbacks:{}};class e{static load(t,n){window.imxScriptLoaderData.callbacks[t]=window.imxScriptLoaderData.callbacks[t]||[],window.imxScriptLoaderData.callbacks[t].push(n),void 0===window.imxScriptLoaderData.ready[t]?(window.imxScriptLoaderData.ready[t]=!1,function(...e){return Promise.all(e.map((e=>new Promise(((t,n)=>{const o=document.head||document.body||document.documentElement;if(o.querySelector(`script[src*="${e}"]`))return void t(e);const i=document.createElement("script"),r=()=>{i.onerror=null,i.onload=null};i.onerror=()=>{r(),n(new Error(`Failed to load script: ${e}`))},i.onload=()=>{r(),t(e)},i.async=!0,i.src=e,o.appendChild(i)})))))}(t).then(e._ready.bind(null,t))):!0===window.imxScriptLoaderData.ready[t]&&this._ready(t)}static _ready(e){window.imxScriptLoaderData.callbacks[e].forEach((function(e){e()})),window.imxScriptLoaderData.ready[e]=!0,window.imxScriptLoaderData.callbacks[e]=[]}}window.imxScriptLoader={load:function t(n,o){if(Array.isArray(n)&&1===n.length&&(n=n[0]),Array.isArray(n)){const[i,...r]=n;e.load(i,(()=>t(r,o)))}else e.load(n,o)}}}(),function(){"use strict";var e=d(9106);window.imxScroll={pageOffset:function(t,n){return e.Z.getPositionFromTop(t,n)}}}(),r=r||d(5052),window.imxUtils={serialize:function(e){var t,n=[];if("object"==typeof e&&"FORM"==e.nodeName)for(var o=e.elements.length,i=0;i<o;i++)if((t=e.elements[i]).name&&!t.disabled&&"file"!=t.type&&"reset"!=t.type&&"submit"!=t.type&&"button"!=t.type)if("select-multiple"==t.type)for(var r=e.elements[i].options.length-1;r>=0;r--)t.options[r].selected&&(n[n.length]=encodeURIComponent(t.name)+"="+encodeURIComponent(t.options[r].value));else("checkbox"!=t.type&&"radio"!=t.type||t.checked)&&(n[n.length]=encodeURIComponent(t.name)+"="+encodeURIComponent(t.value));return n.join("&").replace(/%20/g,"+")},recursiveAccessDataset:i=function(e,t){return r.accessDataset(e,t)||(e.parentNode&&e.parentNode!==document?i(e.parentNode,t):null)}},window.imxTrackEvent=function(e,t,n){window.imxTriggerTracking({tr_event_category:e,tr_event_action:t,tr_event_label:n,tr_event_non_interaction:0,event:"tr_event"})},window.imxTriggerTracking=function(e){hhtConfig.debug&&console.log("imxTriggerTracking:",e),dataLayer&&dataLayer.push(e)},window.imxGetDefaultTrackingTitle=function(){return document.title.substring(document.title.indexOf(":")+1).trim()},function(){"use strict";var e=d(5052),t=d.n(e),n=d(99560),o=d.n(n),i=i||{};t().documentReady((()=>{const e=(e,t)=>{const n=document.getElementById(e+"-"+t);return n?n.value:null},t=(t,n)=>{n.addEventListener("submit",(()=>{(t=>{const n=e(t,i[t].emailFieldName);if(n){const r=i[t].newsletterCheckboxName;let c=!0;parseInt(r)!=r?e(t,r)||(c=!1):0===parseInt(r)&&(c=!1),c&&imxTriggerTracking({userHash:o()(n),event:"userHash"})}})(t)}))};if(void 0!==i){const e=Object.keys(i);for(let n=0;n<e.length;n++){const o=e[n],i=document.getElementById(o);i&&t(o,i)}}}))}(),function(){"use strict";var e=d(5052),t=d.n(e);!function(){const e=(e,t)=>{e.required="checkbox"===t.type?t.checked:!!t.value};t().documentReady((function(){document.querySelectorAll("form [data-hhtform_requiredif]").forEach((n=>{const o=n.form;if(o){const i=t().accessDataset(n,"hhtform_requiredif");if(i){const t=o.querySelector(`input[name$="[${i}]"]:not([type="hidden"]`)||o.querySelector(`input[name$="${i}"]:not([type="hidden"])`);t&&(t.addEventListener("change",(()=>e(n,t))),e(n,t))}}}))}))}()}(),window.isUsercentricsInitialized=()=>void 0!==window.UC_UI&&window.UC_UI.isInitialized(),window.attachUsercentricsInitFunction=e=>window.addEventListener("UC_UI_INITIALIZED",e),window.getUsercentricsActiveServicesBaseInfos=()=>UC_UI.getServicesBaseInfo().filter((e=>!0===e.consent.status)),window.getUsercentricsServiceBaseInfo=e=>UC_UI.getServicesBaseInfo().find((t=>t.id===e)),window.isUsercentricsServiceEnabled=e=>!!window.getUsercentricsActiveServicesBaseInfos().find((t=>t.id===e)),window.activateUsercentricsService=e=>UC_UI.acceptService(e),window.getUsercentricsLabelForService=e=>UC_UI.getSettingsLabels().services?.find((t=>t.id===e))?.description,window.addUsercentricsInitFunction=e=>{window.isUsercentricsInitialized()?e():window.attachUsercentricsInitFunction(e)},window.addUsercentricsInitFunctionOnService=(e,t,n,o=!1)=>{window.usercentricsConsentState=window.usercentricsConsentState||{},window.addUsercentricsInitFunction((()=>{window.usercentricsConsentState[e]=-1;const i=()=>1!==window.usercentricsConsentState[e]&&window.isUsercentricsServiceEnabled(e)?(t(),window.usercentricsConsentState[e]=1,o||window.removeEventListener("UC_UI_CMP_EVENT",i),!0):window.usercentricsConsentState[e]<0||0!==window.usercentricsConsentState[e]&&!window.isUsercentricsServiceEnabled(e)?(n(),window.usercentricsConsentState[e]=0,!1):void 0;i()&&!o||window.addEventListener("UC_UI_CMP_EVENT",i)}))},window.addUsercentricsInitFunction((()=>document.querySelectorAll(".hht-uc-settings").forEach((e=>e.addEventListener("click",(e=>{e.preventDefault(),UC_UI.showSecondLayer()})))))),function(){"use strict";var e,t,n,o,i,r,c=d(5052),a=d.n(c);window.imxValidate=(e=function(e){return e?e.querySelectorAll("input[required]:not([hidden]),select[required]"):[]},n=function(e,n,o){"keyup"===o.type&&9===o.keyCode||setTimeout((function(){var i=o.target;if("radio"===i.type)for(var r=e.querySelectorAll('input[type="radio"][name="'+i.name+'"]')||[],c=0;c<r.length;c++)t(r[c],n);else t(i,n)}),10)},o=function(e,t,o,i){e.removeEventListener("change",n.bind(this,o,i)),e.removeEventListener("keydown",n.bind(this,o,i)),e.removeEventListener("keyup",n.bind(this,o,i)),e.removeEventListener("select:update",n.bind(this,o,i)),t&&(e.addEventListener("change",n.bind(this,o,i)),e.addEventListener("keydown",n.bind(this,o,i)),e.addEventListener("keyup",n.bind(this,o,i)),e.addEventListener("select:update",n.bind(this,o,i)))},i=function(e,t,n){o(e,!0,t,n)},r=function(e,t,n){o(e,!1,t,n)},{addValidListeners:function(t,n){for(var o=e(t),r=0;r<o.length;r++)i(o[r],t,n)},removeValidListeners:function(t,n){for(var o=e(t),i=0;i<o.length;i++)r(o[i],t,n)},validateNode:function(n,o=!0,i){for(var r=e(n),c=!0,a=0;a<r.length;a++){var d=r[a];t(d,i)||(c=!1)}return!c&&o&&function(e){var t=e.querySelector('.formerror:not([type="checkbox"]):not([type="radio"]),:has(>.formerror[type="checkbox"]),:has(>.formerror[type="radio"])');t&&t.scrollIntoView()}(n),c},validateField:t=function(e,t){var n=!e.validity||e.validity.valid||e.disabled;if(n&&!e.disabled)if(e.type&&"checkbox"===e.type)n=e.checked;else{var o=e.value,i=function(e){return a().accessDataset(e,"noneselectvalue")||""}(e);n=function(e,t){return null!=e&&""!==e&&e!==t}(o,i)}if(e.classList.remove("formerror"),n||e.classList.add("formerror"),"SELECT"===e.nodeName.toUpperCase()&&(e.parentNode.classList.remove("parent_formerror"),n||e.parentNode.classList.add("parent_formerror")),t){var r=e.closest(t);if(r){const e=new CustomEvent("imx:update_validation");r.dispatchEvent(e)}}return e.dispatchEvent(new CustomEvent("imx:after_field_validation")),n}})}()}();

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.