vendor: 4,695 bytes, line 1
1"use strict";(self.webpackChunkhessenschau=self.webpackChunkhessenschau||[]).push([["vendors-node_modules_a11y-dialog_dist_a11y-dialog_esm_js"],{5768:function(e,t,i){i.d(t,{Z:function(){return v}});const s=":not([inert]):not([inert] *)",n=':not([tabindex^="-"])',o=":not(:disabled)";var r=[`a[href]${s}${n}`,`area[href]${s}${n}`,`input:not([type="hidden"]):not([type="radio"])${s}${n}${o}`,`input[type="radio"]${s}${n}${o}`,`select${s}${n}${o}`,`textarea${s}${n}${o}`,`button${s}${n}${o}`,`details${s} > summary:first-of-type${n}`,`iframe${s}${n}`,`audio[controls]${s}${n}`,`video[controls]${s}${n}`,`[contenteditable]${s}${n}`,`[tabindex]${s}${n}`];function d(e){(e.querySelector("[autofocus]")||e).focus()}function h(e,t){if(t&&l(e))return e;if(function(e){return(!e.shadowRoot||"-1"!==e.getAttribute("tabindex"))&&!e.matches(":disabled,[hidden],[inert]")}(e))if(e.shadowRoot){let i=a(e.shadowRoot,t);for(;i;){const e=h(i,t);if(e)return e;i=u(i,t)}}else if("slot"===e.localName){const i=e.assignedElements({flatten:!0});t||i.reverse();for(const e of i){const i=h(e,t);if(i)return i}}else{let i=a(e,t);for(;i;){const e=h(i,t);if(e)return e;i=u(i,t)}}return!t&&l(e)?e:null}function a(e,t){return t?e.firstElementChild:e.lastElementChild}function u(e,t){return t?e.nextElementSibling:e.previousElementSibling}const l=e=>!e.shadowRoot?.delegatesFocus&&(e.matches(r.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e));function c(e=document){const t=e.activeElement;return t?t.shadowRoot?c(t.shadowRoot)||document.activeElement:t:null}function f(e,t){const[i,s]=function(e){const t=h(e,!0);return[t,t?h(e,!1)||t:null]}(e);if(!i)return t.preventDefault();const n=c();t.shiftKey&&n===i?(s.focus(),t.preventDefault()):t.shiftKey||n!==s||(i.focus(),t.preventDefault())}function $(e,t){return function t(i){if(!i||i===document||i===window)return null;const s=m(i);return s&&(i=s),i.closest(e)||t(i.getRootNode().host)}(t)}function m(e){return e.assignedSlot||(e.parentNode?m(e.parentNode):null)}const p="data-a11y-dialog";class v{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(p)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){if(this.shown)return this;return this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=c(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():d(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){if(!this.shown)return this;return this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.previouslyFocused?.focus?.()),this}on(e,t,i){return this.$el.addEventListener(e,t,i),this}off(e,t,i){return this.$el.removeEventListener(e,t,i),this}fire(e,t){const i=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(i),i}handleTriggerClicks(e){const t=e.composedPath()[0],i=$(`[${p}-show="${this.id}"]`,t),s=$(`[${p}-hide="${this.id}"]`,t),n=$(`[${p}-hide]`,t)&&$('[aria-modal="true"]',t)===this.$el;i&&this.show(e),(s||n)&&this.hide(e)}bindKeypress(e){if($('[aria-modal="true"]',c())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==e.key||"alertdialog"===this.$el.getAttribute("role")||t||(e.preventDefault(),this.hide(e)),"Tab"===e.key&&f(this.$el,e)}maintainFocus(){const e=c();$(`[aria-modal="true"], [${p}-ignore-focus-trap]`,e)||d(this.$el)}}function y(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new v(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",y):y())}}]);
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.