summaryrefslogtreecommitdiff
path: root/assets/outbox/Release v0.54.0 · hyprwm_Hyprland_files/24387-6b7f5e596897eded.js
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-03-07 11:28:56 -0600
committerCraig Jennings <c@cjennings.net>2026-03-07 11:28:56 -0600
commit60943e96a6a6a9fe6e8d368f9db2bf9aedf1a6bc (patch)
tree5a49bdd265eb5a8f2803d016ddcfafbc99e0c5e3 /assets/outbox/Release v0.54.0 · hyprwm_Hyprland_files/24387-6b7f5e596897eded.js
parent3285f944b32f4b362abb00630daa86078b99dc9d (diff)
chore: update calibre, mimeapps, authinfo, add outbox items
Calibre window geometry and scheduler updates. Add Signal URI handlers. Move processed inbox items to outbox.
Diffstat (limited to 'assets/outbox/Release v0.54.0 · hyprwm_Hyprland_files/24387-6b7f5e596897eded.js')
-rw-r--r--assets/outbox/Release v0.54.0 · hyprwm_Hyprland_files/24387-6b7f5e596897eded.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/assets/outbox/Release v0.54.0 · hyprwm_Hyprland_files/24387-6b7f5e596897eded.js b/assets/outbox/Release v0.54.0 · hyprwm_Hyprland_files/24387-6b7f5e596897eded.js
new file mode 100644
index 0000000..c13a691
--- /dev/null
+++ b/assets/outbox/Release v0.54.0 · hyprwm_Hyprland_files/24387-6b7f5e596897eded.js
@@ -0,0 +1,3 @@
+performance.mark("js-parse-end:24387-6b7f5e596897eded.js");
+"use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["24387"],{53464(t,e,i){i.d(e,{Ay:()=>k});class n{constructor(t,e,{tabInsertsSuggestions:i,defaultFirstOption:n,scrollIntoViewOptions:r}={}){this.input=t,this.list=e,this.tabInsertsSuggestions=null==i||i,this.defaultFirstOption=null!=n&&n,this.scrollIntoViewOptions=null!=r?r:{block:"nearest",inline:"nearest"},this.isComposing=!1,e.id||(e.id=`combobox-${Math.random().toString().slice(2,6)}`),this.ctrlBindings=!!navigator.userAgent.match(/Macintosh/),this.keyboardEventHandler=t=>(function(t,e){if(!t.shiftKey&&!t.metaKey&&!t.altKey&&(e.ctrlBindings||!t.ctrlKey)&&!e.isComposing)switch(t.key){case"Enter":s(e.input,e.list)&&t.preventDefault();break;case"Tab":e.tabInsertsSuggestions&&s(e.input,e.list)&&t.preventDefault();break;case"Escape":e.clearSelection();break;case"ArrowDown":e.navigate(1),t.preventDefault();break;case"ArrowUp":e.navigate(-1),t.preventDefault();break;case"n":e.ctrlBindings&&t.ctrlKey&&(e.navigate(1),t.preventDefault());break;case"p":e.ctrlBindings&&t.ctrlKey&&(e.navigate(-1),t.preventDefault());break;default:if(t.ctrlKey)break;e.clearSelection()}})(t,this),this.compositionEventHandler=t=>{var e,i;return e=t,i=this,void(i.isComposing="compositionstart"===e.type,document.getElementById(i.input.getAttribute("aria-controls")||"")&&i.clearSelection())},this.inputHandler=this.clearSelection.bind(this),t.setAttribute("role","combobox"),t.setAttribute("aria-controls",e.id),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-haspopup","listbox")}destroy(){this.clearSelection(),this.stop(),this.input.removeAttribute("role"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-haspopup")}start(){this.input.setAttribute("aria-expanded","true"),this.input.addEventListener("compositionstart",this.compositionEventHandler),this.input.addEventListener("compositionend",this.compositionEventHandler),this.input.addEventListener("input",this.inputHandler),this.input.addEventListener("keydown",this.keyboardEventHandler),this.list.addEventListener("click",r),this.indicateDefaultOption()}stop(){this.clearSelection(),this.input.setAttribute("aria-expanded","false"),this.input.removeEventListener("compositionstart",this.compositionEventHandler),this.input.removeEventListener("compositionend",this.compositionEventHandler),this.input.removeEventListener("input",this.inputHandler),this.input.removeEventListener("keydown",this.keyboardEventHandler),this.list.removeEventListener("click",r)}indicateDefaultOption(){var t;this.defaultFirstOption&&(null==(t=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(o)[0])||t.setAttribute("data-combobox-option-default","true"))}navigate(t=1){let e=Array.from(this.list.querySelectorAll('[aria-selected="true"]')).filter(o)[0],i=Array.from(this.list.querySelectorAll('[role="option"]')).filter(o),n=i.indexOf(e);if(n===i.length-1&&1===t||0===n&&-1===t){this.clearSelection(),this.input.focus();return}let r=1===t?0:i.length-1;if(e&&n>=0){let e=n+t;e>=0&&e<i.length&&(r=e)}let s=i[r];if(s)for(let t of i)t.removeAttribute("data-combobox-option-default"),s===t?(this.input.setAttribute("aria-activedescendant",s.id),s.setAttribute("aria-selected","true"),s.dispatchEvent(new Event("combobox-select",{bubbles:!0})),s.scrollIntoView(this.scrollIntoViewOptions)):t.removeAttribute("aria-selected")}clearSelection(){for(let t of(this.input.removeAttribute("aria-activedescendant"),this.list.querySelectorAll('[aria-selected="true"]')))t.removeAttribute("aria-selected");this.indicateDefaultOption()}}function r(t){var e,i;if(!(t.target instanceof Element))return;let n=t.target.closest('[role="option"]');n&&"true"!==n.getAttribute("aria-disabled")&&(e=n,i={event:t},e.dispatchEvent(new CustomEvent("combobox-commit",{bubbles:!0,detail:i})))}function s(t,e){let i=e.querySelector('[aria-selected="true"], [data-combobox-option-default="true"]');return!!i&&("true"===i.getAttribute("aria-disabled")||(i.click(),!0))}function o(t){return!t.hidden&&!(t instanceof HTMLInputElement&&"hidden"===t.type)&&(t.offsetWidth>0||t.offsetHeight>0)}let a=window.testScreenReaderDelay||100;class l{constructor(t,e,i,r=!1){var s;if(this.container=t,this.input=e,this.results=i,this.combobox=new n(e,i,{defaultFirstOption:r}),this.feedback=t.getRootNode().getElementById(`${this.results.id}-feedback`),this.autoselectEnabled=r,this.clearButton=t.getRootNode().getElementById(`${this.input.id||this.input.name}-clear`),this.clientOptions=i.querySelectorAll("[role=option]"),this.feedback&&(this.feedback.setAttribute("aria-live","polite"),this.feedback.setAttribute("aria-atomic","true")),this.clearButton&&!this.clearButton.getAttribute("aria-label")){const t=document.querySelector(`label[for="${this.input.name}"]`);this.clearButton.setAttribute("aria-label","clear:"),this.clearButton.setAttribute("aria-labelledby",`${this.clearButton.id} ${(null==t?void 0:t.id)||""}`)}this.input.getAttribute("aria-expanded")||this.input.setAttribute("aria-expanded","false"),this.results.popover?this.results.matches(":popover-open")&&this.results.hidePopover():this.results.hidden=!0,this.results.getAttribute("aria-label")||this.results.setAttribute("aria-label","results"),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("spellcheck","false"),this.interactingWithList=!1,this.onInputChange=function(t,e=0){let i;return function(...n){clearTimeout(i),i=window.setTimeout(()=>{clearTimeout(i),t(...n)},e)}}(this.onInputChange.bind(this),300),this.onResultsMouseDown=this.onResultsMouseDown.bind(this),this.onInputBlur=this.onInputBlur.bind(this),this.onInputFocus=this.onInputFocus.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onCommit=this.onCommit.bind(this),this.handleClear=this.handleClear.bind(this),this.input.addEventListener("keydown",this.onKeydown),this.input.addEventListener("focus",this.onInputFocus),this.input.addEventListener("blur",this.onInputBlur),this.input.addEventListener("input",this.onInputChange),this.results.addEventListener("mousedown",this.onResultsMouseDown),this.results.addEventListener("combobox-commit",this.onCommit),null==(s=this.clearButton)||s.addEventListener("click",this.handleClear)}destroy(){this.input.removeEventListener("keydown",this.onKeydown),this.input.removeEventListener("focus",this.onInputFocus),this.input.removeEventListener("blur",this.onInputBlur),this.input.removeEventListener("input",this.onInputChange),this.results.removeEventListener("mousedown",this.onResultsMouseDown),this.results.removeEventListener("combobox-commit",this.onCommit)}handleClear(t){t.preventDefault(),"true"===this.input.getAttribute("aria-expanded")&&(this.input.setAttribute("aria-expanded","false"),this.updateFeedbackForScreenReaders("Results hidden.")),this.input.value="",this.container.value="",this.input.focus(),this.input.dispatchEvent(new Event("change")),this.close()}onKeydown(t){if("Escape"===t.key&&this.container.open)this.close(),t.stopPropagation(),t.preventDefault();else if(t.altKey&&"ArrowUp"===t.key&&this.container.open)this.close(),t.stopPropagation(),t.preventDefault();else if(t.altKey&&"ArrowDown"===t.key&&!this.container.open){if(!this.input.value.trim())return;this.open(),t.stopPropagation(),t.preventDefault()}}onInputFocus(){this.interactingWithList||this.fetchResults()}onInputBlur(){this.interactingWithList||this.close()}onCommit({target:t}){if(!(t instanceof HTMLElement)||(this.close(),t instanceof HTMLAnchorElement))return;let e=t.getAttribute("data-autocomplete-value")||t.textContent;this.updateFeedbackForScreenReaders(`${t.textContent||""} selected.`),this.container.value=e,e||this.updateFeedbackForScreenReaders("Results hidden.")}onResultsMouseDown(){this.interactingWithList=!0}onInputChange(){this.feedback&&this.feedback.textContent&&(this.feedback.textContent=""),this.container.removeAttribute("value"),this.fetchResults()}identifyOptions(){let t=0;for(let e of this.results.querySelectorAll('[role="option"]:not([id])'))e.id=`${this.results.id}-option-${t++}`}updateFeedbackForScreenReaders(t){setTimeout(()=>{this.feedback&&(this.feedback.textContent=t)},a)}fetchResults(){let t=this.input.value.trim();if(!t&&!this.container.fetchOnEmpty)return void this.close();let e=this.container.src;if(!e)return;let i=new URL(e,window.location.href),n=new URLSearchParams(i.search.slice(1));n.append("q",t),i.search=n.toString(),this.container.dispatchEvent(new CustomEvent("loadstart")),this.container.fetchResult(i).then(t=>{this.results.innerHTML=t,this.identifyOptions(),this.combobox.indicateDefaultOption();let e=this.results.querySelectorAll('[role="option"]'),i=!!e.length||!!this.results.querySelectorAll('[data-no-result-found="true"]').length,n=e.length,[r]=e,s=null==r?void 0:r.textContent;this.autoselectEnabled&&s?this.updateFeedbackForScreenReaders(`${n} results. ${s} is the top result: Press Enter to activate.`):this.updateFeedbackForScreenReaders(`${n||"No"} results.`),i?this.open():this.close(),this.container.dispatchEvent(new CustomEvent("load")),this.container.dispatchEvent(new CustomEvent("loadend"))}).catch(()=>{this.container.dispatchEvent(new CustomEvent("error")),this.container.dispatchEvent(new CustomEvent("loadend"))})}open(){(this.results.popover?!this.results.matches(":popover-open"):this.results.hidden)&&(this.combobox.start(),this.results.popover?this.results.showPopover():this.results.hidden=!1),this.container.open=!0,this.interactingWithList=!0}close(){(this.results.popover?this.results.matches(":popover-open"):!this.results.hidden)&&(this.combobox.stop(),this.results.popover?this.results.hidePopover():this.results.hidden=!0),this.container.open=!1,this.interactingWithList=!1}}var u,c,d,h,p,f=function(t,e,i,n){if("a"===i&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},b=function(t,e,i,n,r){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!r)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(t,i):r?r.value=i:e.set(t,i),i},m=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)0>e.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i};let g=globalThis.HTMLElement||null;class v extends Event{constructor(t,e){var{relatedTarget:i}=e;super(t,m(e,["relatedTarget"])),this.relatedTarget=i}}let y=new WeakMap,E=null;class w extends g{constructor(){super(...arguments),u.add(this),c.set(this,null),d.set(this,null),p.set(this,void 0)}static define(t="auto-complete",e=customElements){return e.define(t,this),this}static setCSPTrustedTypesPolicy(t){E=null===t?t:Promise.resolve(t)}get forElement(){var t;if(null==(t=f(this,c,"f"))?void 0:t.isConnected)return f(this,c,"f");let e=this.getAttribute("for"),i=this.getRootNode();return e&&(i instanceof Document||i instanceof ShadowRoot)?i.getElementById(e):null}set forElement(t){b(this,c,t,"f"),this.setAttribute("for","")}get inputElement(){var t;return(null==(t=f(this,d,"f"))?void 0:t.isConnected)?f(this,d,"f"):this.querySelector("input")}set inputElement(t){b(this,d,t,"f"),f(this,u,"m",h).call(this)}connectedCallback(){this.isConnected&&(f(this,u,"m",h).call(this),new MutationObserver(()=>{y.get(this)||f(this,u,"m",h).call(this)}).observe(this,{subtree:!0,childList:!0}))}disconnectedCallback(){let t=y.get(this);t&&(t.destroy(),y.delete(this))}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get open(){return this.hasAttribute("open")}set open(t){t?this.setAttribute("open",""):this.removeAttribute("open")}get fetchOnEmpty(){return this.hasAttribute("fetch-on-empty")}set fetchOnEmpty(t){this.toggleAttribute("fetch-on-empty",t)}async fetchResult(t){var e;null==(e=f(this,p,"f"))||e.abort();let{signal:i}=b(this,p,new AbortController,"f"),n=await fetch(t.toString(),{signal:i,headers:{Accept:"text/fragment+html"}});if(!n.ok)throw Error(await n.text());return E?(await E).createHTML(await n.text(),n):await n.text()}static get observedAttributes(){return["open","value","for"]}attributeChangedCallback(t,e,i){var n,r;if(e===i)return;let s=y.get(this);if(s)switch((this.forElement!==(null==(n=y.get(this))?void 0:n.results)||this.inputElement!==(null==(r=y.get(this))?void 0:r.input))&&f(this,u,"m",h).call(this),t){case"open":null===i?s.close():s.open();break;case"value":null!==i&&(s.input.value=i),this.dispatchEvent(new v("auto-complete-change",{bubbles:!0,relatedTarget:s.input}))}}}c=new WeakMap,d=new WeakMap,p=new WeakMap,u=new WeakSet,h=function(){var t;null==(t=y.get(this))||t.destroy();let{forElement:e,inputElement:i}=this;if(!e||!i)return;let n="true"===this.getAttribute("data-autoselect");y.set(this,new l(this,i,e,n)),e.setAttribute("role","listbox")};let A="u">typeof globalThis?globalThis:window;try{A.AutocompleteElement=A.AutoCompleteElement=w.define()}catch(t){if(!(A.DOMException&&t instanceof DOMException&&"NotSupportedError"===t.name)&&!(t instanceof ReferenceError))throw t}let k=w},94571(t,e,i){let n;i.d(e,{Se:()=>S,FB:()=>d,p_:()=>M,CF:()=>b,aC:()=>R,zV:()=>T});let r=new WeakSet,s=new WeakMap;function o(t=document){if(s.has(t))return s.get(t);let e=!1,i=new MutationObserver(t=>{for(let e of t)if("attributes"===e.type&&e.target instanceof Element)c(e.target);else if("childList"===e.type&&e.addedNodes.length)for(let t of e.addedNodes)t instanceof Element&&a(t)});i.observe(t,{childList:!0,subtree:!0,attributeFilter:["data-action"]});let n={get closed(){return e},unsubscribe(){e=!0,s.delete(t),i.disconnect()}};return s.set(t,n),n}function a(t){for(let e of t.querySelectorAll("[data-action]"))c(e);t instanceof Element&&t.hasAttribute("data-action")&&c(t)}function l(t){let e=t.currentTarget;for(let i of u(e))if(t.type===i.type){let n=e.closest(i.tag);r.has(n)&&"function"==typeof n[i.method]&&n[i.method](t);let s=e.getRootNode();if(s instanceof ShadowRoot&&r.has(s.host)&&s.host.matches(i.tag)){let e=s.host;"function"==typeof e[i.method]&&e[i.method](t)}}}function*u(t){for(let e of(t.getAttribute("data-action")||"").trim().split(/\s+/)){let t=e.lastIndexOf(":"),i=Math.max(0,e.lastIndexOf("#"))||e.length;yield{type:e.slice(0,t),tag:e.slice(t+1,i),method:e.slice(i+1)||"handleEvent"}}}function c(t){for(let e of u(t))t.addEventListener(e.type,l)}function d(t,e){let i=t.tagName.toLowerCase();if(t.shadowRoot){for(let n of t.shadowRoot.querySelectorAll(`[data-target~="${i}.${e}"]`))if(!n.closest(i))return n}for(let n of t.querySelectorAll(`[data-target~="${i}.${e}"]`))if(n.closest(i)===t)return n}let h=t=>String("symbol"==typeof t?t.description:t).replace(/([A-Z]($|[a-z]))/g,"-$1").replace(/--/g,"-").replace(/^-|-$/,"").toLowerCase(),p=(t,e="property")=>{let i=h(t);if(!i.includes("-"))throw new DOMException(`${e}: ${String(t)} is not a valid ${e} name`,"SyntaxError");return i},f="attr";function b(t,e){O(t,f).add(e)}let m=new WeakSet;function g(t,e){if(m.has(t))return;m.add(t);let i=Object.getPrototypeOf(t),n=i?.constructor?.attrPrefix??"data-";for(let r of(e||(e=O(i,f)),e)){let e=t[r],i=p(`${n}${r}`),s={configurable:!0,get(){return this.getAttribute(i)||""},set(t){this.setAttribute(i,t||"")}};"number"==typeof e?s={configurable:!0,get(){return Number(this.getAttribute(i)||0)},set(t){this.setAttribute(i,t)}}:"boolean"==typeof e&&(s={configurable:!0,get(){return this.hasAttribute(i)},set(t){this.toggleAttribute(i,t)}}),Object.defineProperty(t,r,s),r in t&&!t.hasAttribute(i)&&s.set.call(t,e)}}let v=new Map,y=new Promise(t=>{"loading"!==document.readyState?t():document.addEventListener("readystatechange",()=>t(),{once:!0})}),E=new Promise(t=>{let e=new AbortController;e.signal.addEventListener("abort",()=>t());let i={once:!0,passive:!0,signal:e.signal},n=()=>e.abort();document.addEventListener("mousedown",n,i),document.addEventListener("touchstart",n,i),document.addEventListener("keydown",n,i),document.addEventListener("pointerdown",n,i)}),w={ready:()=>y,firstInteraction:()=>E,visible:t=>new Promise(e=>{let i=new IntersectionObserver(t=>{for(let n of t)if(n.isIntersecting){e(),i.disconnect();return}},{rootMargin:"0px 0px 256px 0px",threshold:.01});for(let e of document.querySelectorAll(t))i.observe(e)})},A=new WeakMap;function k(t){cancelAnimationFrame(A.get(t)||0),A.set(t,requestAnimationFrame(()=>{for(let e of v.keys()){let i=t instanceof Element&&t.matches(e)?t:t.querySelector(e);if(customElements.get(e)||i){let n=i?.getAttribute("data-load-on")||"ready",r=n in w?w[n]:w.ready;for(let t of v.get(e)||[])r(e).then(t);v.delete(e),A.delete(t)}}}))}function S(t,e){for(let[i,n]of("string"==typeof t&&e&&(t={[t]:e}),Object.entries(t)))v.has(i)||v.set(i,new Set),v.get(i).add(n);C(document)}function C(t){n||(n=new MutationObserver(t=>{if(v.size)for(let e of t)for(let t of e.addedNodes)t instanceof Element&&k(t)})),k(t),n.observe(t,{subtree:!0,childList:!0})}let L=Symbol.for("catalyst");class x{constructor(t,e){const i=this,n=t.prototype.connectedCallback;t.prototype.connectedCallback=function(){i.connectedCallback(this,n)};const r=t.prototype.disconnectedCallback;t.prototype.disconnectedCallback=function(){i.disconnectedCallback(this,r)};const s=t.prototype.attributeChangedCallback;t.prototype.attributeChangedCallback=function(t,e,n){i.attributeChangedCallback(this,t,e,n,s)};let o=t.observedAttributes||[];Object.defineProperty(t,"observedAttributes",{configurable:!0,get(){return i.observedAttributes(this,o)},set(t){o=t}}),function(t){let e=t.observedAttributes||[],i=t.attrPrefix??"data-",n=t=>p(`${i}${t}`);Object.defineProperty(t,"observedAttributes",{configurable:!0,get:()=>[...O(t.prototype,f)].map(n).concat(e),set(t){e=t}})}(t),function(t,e){let i=e||h(t.name).replace(/-element$/,"");try{window.customElements.define(i,t),window[t.name]=customElements.get(i)}catch(t){if(!(t instanceof DOMException&&"NotSupportedError"===t.name))throw t}}(t,e)}observedAttributes(t,e){return e}connectedCallback(t,e){var i,n;for(let e of(t.toggleAttribute("data-catalyst",!0),customElements.upgrade(t),t.querySelectorAll("template[data-shadowroot]")))e.parentElement===t&&t.attachShadow({mode:"closed"===e.getAttribute("data-shadowroot")?"closed":"open"}).append(e.content.cloneNode(!0));(g(t),r.add(t),t.shadowRoot&&(a(n=t.shadowRoot),o(n)),a(t),o(t.ownerDocument),e?.call(t),t.shadowRoot)&&(a(i=t.shadowRoot),o(i),C(t.shadowRoot))}disconnectedCallback(t,e){e?.call(t)}attributeChangedCallback(t,e,i,n,r){g(t),"data-catalyst"!==e&&r&&r.call(t,e,i,n)}}function O(t,e){if(!Object.prototype.hasOwnProperty.call(t,L)){let e=t[L],i=t[L]=new Map;if(e)for(let[t,n]of e)i.set(t,new Set(n))}let i=t[L];return i.has(e)||i.set(e,new Set),i.get(e)}function R(t,e){O(t,"target").add(e),Object.defineProperty(t,e,{configurable:!0,get(){return d(this,e)}})}function T(t,e){O(t,"targets").add(e),Object.defineProperty(t,e,{configurable:!0,get(){let t=this.tagName.toLowerCase(),i=[];if(this.shadowRoot)for(let n of this.shadowRoot.querySelectorAll(`[data-targets~="${t}.${e}"]`))n.closest(t)||i.push(n);for(let n of this.querySelectorAll(`[data-targets~="${t}.${e}"]`))n.closest(t)===this&&i.push(n);return i}})}function M(t){if("string"==typeof t)return e=>{new x(e,t)};new x(t)}},74057(t,e,i){i.d(e,{A:()=>g});let n="data-close-dialog",r=`[${n}]`;function s(t){let e=Array.from(t.querySelectorAll("[autofocus]")).filter(a)[0];e||(e=t,t.setAttribute("tabindex","-1")),e.focus()}function o(t){let e=t.currentTarget;e instanceof Element&&("Escape"===t.key||"Esc"===t.key?(d(e,!1),t.stopPropagation()):"Tab"===t.key&&function(t){if(!(t.currentTarget instanceof Element))return;let e=t.currentTarget.querySelector("details-dialog");if(!e)return;t.preventDefault();let i=Array.from(e.querySelectorAll("*")).filter(a);if(0===i.length)return;let n=t.shiftKey?-1:1,r=e.getRootNode(),s=e.contains(r.activeElement)?r.activeElement:null,o=-1===n?-1:0;if(s instanceof HTMLElement){let t=i.indexOf(s);-1!==t&&(o=t+n)}o<0?o=i.length-1:o%=i.length,i[o].focus()}(t))}function a(t){var e;return t.tabIndex>=0&&!t.disabled&&!(e=t).hidden&&(!e.type||"hidden"!==e.type)&&(e.offsetWidth>0||e.offsetHeight>0)}function l(t){let e=t.querySelector("details-dialog");return!(e instanceof m)||e.dispatchEvent(new CustomEvent("details-dialog-close",{bubbles:!0,cancelable:!0}))}function u(t){if(!(t.currentTarget instanceof Element))return;let e=t.currentTarget.closest("details");e&&e.hasAttribute("open")&&(l(e)||(t.preventDefault(),t.stopPropagation()))}function c(t){let e=t.currentTarget;if(!(e instanceof Element))return;let i=e.querySelector("details-dialog");if(i instanceof m)if(e.hasAttribute("open")){let t="getRootNode"in i?i.getRootNode():document;t.activeElement instanceof HTMLElement&&b.set(i,{details:e,activeElement:t.activeElement}),s(i),e.addEventListener("keydown",o)}else{var n,r;let t;for(let t of i.querySelectorAll("form"))t.reset();let s=(n=e,r=i,(t=b.get(r))&&t.activeElement instanceof HTMLElement?t.activeElement:n.querySelector("summary"));s&&s.focus(),e.removeEventListener("keydown",o)}}function d(t,e){e!==t.hasAttribute("open")&&(e?t.setAttribute("open",""):l(t)&&t.removeAttribute("open"))}function h(t){let e=t.currentTarget;if(!(e instanceof Element))return;let i=e.querySelector("details-dialog");if(!(i instanceof m))return;let n=i.querySelector("include-fragment:not([src])");if(!n)return;let r=i.src;null!==r&&(n.addEventListener("loadend",()=>{e.hasAttribute("open")&&s(i)}),n.setAttribute("src",r),f(e))}function p(t,e,i){f(t),e&&t.addEventListener("toggle",h,{once:!0}),e&&i&&t.addEventListener("mouseover",h,{once:!0})}function f(t){t.removeEventListener("toggle",h),t.removeEventListener("mouseover",h)}let b=new WeakMap;class m extends HTMLElement{static get CLOSE_ATTR(){return n}static get CLOSE_SELECTOR(){return r}constructor(){super(),b.set(this,{details:null,activeElement:null}),this.addEventListener("click",function({target:t}){if(!(t instanceof Element))return;let e=t.closest("details");e&&t.closest(r)&&d(e,!1)})}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",t||"")}get preload(){return this.hasAttribute("preload")}set preload(t){t?this.setAttribute("preload",""):this.removeAttribute("preload")}connectedCallback(){this.setAttribute("role","dialog"),this.setAttribute("aria-modal","true");let t=b.get(this);if(!t)return;let e=this.parentElement;if(!e)return;let i=e.querySelector("summary");i&&(i.hasAttribute("role")||i.setAttribute("role","button"),i.addEventListener("click",u,{capture:!0})),e.addEventListener("toggle",c),t.details=e,p(e,this.src,this.preload)}disconnectedCallback(){let t=b.get(this);if(!t)return;let{details:e}=t;if(!e)return;e.removeEventListener("toggle",c),f(e);let i=e.querySelector("summary");i&&i.removeEventListener("click",u,{capture:!0}),t.details=null}toggle(t){let e=b.get(this);if(!e)return;let{details:i}=e;i&&d(i,t)}static get observedAttributes(){return["src","preload"]}attributeChangedCallback(){let t=b.get(this);if(!t)return;let{details:e}=t;e&&p(e,this.src,this.preload)}}let g=m;window.customElements.get("details-dialog")||(window.DetailsDialogElement=m,window.customElements.define("details-dialog",m))}}]);
+//# sourceMappingURL=24387-6b7f5e596897eded-eafd73b043581a4d.js.map \ No newline at end of file