"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_delegated-events_dist_index_js-node_modules_github_template-parts_lib_index_js","vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-5a5df4","vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-893f9f","vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-94fd67"],{13937:(e,t,n)=>{let r;n.d(t,{Ax:()=>l,JW:()=>u,ZV:()=>a});let ErrorWithResponse=class ErrorWithResponse extends Error{constructor(e,t){super(e),this.response=t}};function i(){let e,t;return[new Promise(function(n,r){e=n,t=r}),e,t]}let o=[],s=[];function a(e){o.push(e)}function l(e){s.push(e)}function u(e,t){r||(r=new Map,"undefined"!=typeof document&&document.addEventListener("submit",c));let n=r.get(e)||[];r.set(e,[...n,t])}function c(e){if(!(e.target instanceof HTMLFormElement)||e.defaultPrevented)return;let t=e.target,n=function(e){let t=[];for(let n of r.keys())if(e.matches(n)){let e=r.get(n)||[];t.push(...e)}return t}(t);if(0===n.length)return;let a=function(e){let t={method:e.method||"GET",url:e.action,headers:new Headers({"X-Requested-With":"XMLHttpRequest"}),body:null};if("GET"===t.method.toUpperCase()){let n=function(e){let t=new URLSearchParams;for(let[n,r]of[...new FormData(e).entries()])t.append(n,r.toString());return t.toString()}(e);n&&(t.url+=(~t.url.indexOf("?")?"&":"?")+n)}else t.body=new FormData(e);return t}(t),[l,u,c]=i();e.preventDefault(),d(n,t,a,l).then(async e=>{if(e){for(let e of s)await e(t);p(a).then(u,c).catch(()=>{}).then(()=>{for(let e of o)e(t)})}else t.submit()},e=>{t.submit(),setTimeout(()=>{throw e})})}async function d(e,t,n,r){let o=!1;for(let s of e){let[e,a]=i(),l=()=>(o=!0,a(),r),u={text:l,json:()=>(n.headers.set("Accept","application/json"),l()),html:()=>(n.headers.set("Accept","text/html"),l())};await Promise.race([e,s(t,u,n)])}return o}async function p(e){let t=await window.fetch(e.url,{method:e.method,body:null!==e.body?e.body:void 0,headers:e.headers,credentials:"same-origin"}),n={url:t.url,status:t.status,statusText:t.statusText,headers:t.headers,text:"",get json(){let e=JSON.parse(this.text);return delete this.json,this.json=e,this.json},get html(){return delete this.html,this.html=function(e,t){let n=e.createElement("template");return n.innerHTML=t,e.importNode(n.content,!0)}(document,this.text),this.html}},r=await t.text();if(n.text=r,t.ok)return n;throw new ErrorWithResponse("request failed",n)}},97797:(e,t,n)=>{function r(){if(!(this instanceof r))return new r;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}n.d(t,{h:()=>j,A:()=>k,on:()=>E});var i,o=window.document.documentElement,s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector;r.prototype.matchesSelector=function(e,t){return s.call(e,t)},r.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},r.prototype.indexes=[];var a=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"ID",selector:function(e){var t;if(t=e.match(a))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var l=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"CLASS",selector:function(e){var t;if(t=e.match(l))return t[0].slice(1)},element:function(e){var t=e.className;if(t){if("string"==typeof t)return t.split(/\s/);if("object"==typeof t&&"baseVal"in t)return t.baseVal.split(/\s/)}}});var u=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"TAG",selector:function(e){var t;if(t=e.match(u))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),r.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},i="function"==typeof window.Map?window.Map:function(){function e(){this.map={}}return e.prototype.get=function(e){return this.map[e+" "]},e.prototype.set=function(e,t){this.map[e+" "]=t},e}();var c=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function d(e,t){var n,r,i,o,s,a,l=(e=e.slice(0).concat(e.default)).length,u=t,d=[];do if(c.exec(""),(i=c.exec(u))&&(u=i[3],i[2]||!u)){for(n=0;n3&&void 0!==arguments[3]?arguments[3]:{},o=!!i.capture,s=o?f:h,a=s[e];a||(a=new r,s[e]=a,document.addEventListener(e,T,o)),a.add(t,n)}function k(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!!r.capture,o=i?f:h,s=o[e];s&&(s.remove(t,n),s.size||(delete o[e],document.removeEventListener(e,T,i)))}function j(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}},5225:(e,t,n)=>{function r(...e){return JSON.stringify(e,(e,t)=>"object"==typeof t?t:String(t))}function i(e,t={}){let{hash:n=r,cache:o=new Map}=t;return function(...t){let r=n.apply(this,t);if(o.has(r))return o.get(r);let i=e.apply(this,t);return i instanceof Promise&&(i=i.catch(e=>{throw o.delete(r),e})),o.set(r,i),i}}n.d(t,{A:()=>i})},79049:(e,t,n)=>{function*r(e){let t="",n=0,r=!1;for(let i=0;iTemplateInstance,xr:()=>g});var i,o,s,a,l,u=function(e,t,n){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,n),n},c=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)};let AttributeTemplatePart=class AttributeTemplatePart{constructor(e,t){this.expression=t,i.set(this,void 0),o.set(this,""),u(this,i,e),c(this,i).updateParent("")}get attributeName(){return c(this,i).attr.name}get attributeNamespace(){return c(this,i).attr.namespaceURI}get value(){return c(this,o)}set value(e){u(this,o,e||""),c(this,i).updateParent(e)}get element(){return c(this,i).element}get booleanValue(){return c(this,i).booleanValue}set booleanValue(e){c(this,i).booleanValue=e}};i=new WeakMap,o=new WeakMap;let AttributeValueSetter=class AttributeValueSetter{constructor(e,t){this.element=e,this.attr=t,this.partList=[]}get booleanValue(){return this.element.hasAttributeNS(this.attr.namespaceURI,this.attr.name)}set booleanValue(e){if(1!==this.partList.length)throw new DOMException("Operation not supported","NotSupportedError");this.partList[0].value=e?"":null}append(e){this.partList.push(e)}updateParent(e){if(1===this.partList.length&&null===e)this.element.removeAttributeNS(this.attr.namespaceURI,this.attr.name);else{let e=this.partList.map(e=>"string"==typeof e?e:e.value).join("");this.element.setAttributeNS(this.attr.namespaceURI,this.attr.name,e)}}};var d=function(e,t,n){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,n),n},p=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)};let NodeTemplatePart=class NodeTemplatePart{constructor(e,t){this.expression=t,s.set(this,void 0),d(this,s,[e]),e.textContent=""}get value(){return p(this,s).map(e=>e.textContent).join("")}set value(e){this.replace(e)}get previousSibling(){return p(this,s)[0].previousSibling}get nextSibling(){return p(this,s)[p(this,s).length-1].nextSibling}replace(...e){let t=e.map(e=>"string"==typeof e?new Text(e):e);for(let e of(t.length||t.push(new Text("")),p(this,s)[0].before(...t),p(this,s)))e.remove();d(this,s,t)}};function h(e){return{createCallback(e,t,n){this.processCallback(e,t,n)},processCallback(t,n,r){var i;if("object"==typeof r&&r){for(let t of n)if(t.expression in r){let n=null!==(i=r[t.expression])&&void 0!==i?i:"";e(t,n)}}}}}function f(e,t){e.value=String(t)}s=new WeakMap;let m=h(f),g=h((e,t)=>{(function(e,t){return"boolean"==typeof t&&e instanceof AttributeTemplatePart&&"boolean"==typeof e.element[e.attributeName]&&(e.booleanValue=t,!0)})(e,t)||f(e,t)});var v=function(e,t,n){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,n),n},y=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)};let TemplateInstance=class TemplateInstance extends DocumentFragment{constructor(e,t,n=m){var i,o;super(),a.set(this,void 0),l.set(this,void 0),Object.getPrototypeOf(this!==TemplateInstance.prototype)&&Object.setPrototypeOf(this,TemplateInstance.prototype),this.appendChild(e.content.cloneNode(!0)),v(this,l,Array.from(function*(e){let t;let n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,null,!1);for(;t=n.nextNode();)if(t instanceof Element&&t.hasAttributes())for(let e=0;e{function r(e){let t="==".slice(0,(4-e.length%4)%4),n=atob(e.replace(/-/g,"+").replace(/_/g,"/")+t),r=new ArrayBuffer(n.length),i=new Uint8Array(r);for(let e=0;ew,Jt:()=>_,PG:()=>y,d5:()=>b,vt:()=>x});var o="copy",s="convert";function a(e,t,n){if(t===o)return n;if(t===s)return e(n);if(t instanceof Array)return n.map(n=>a(e,t[0],n));if(t instanceof Object){let r={};for(let[i,o]of Object.entries(t)){if(o.derive){let e=o.derive(n);void 0!==e&&(n[i]=e)}if(!(i in n)){if(o.required)throw Error(`Missing key: ${i}`);continue}if(null==n[i]){r[i]=null;continue}r[i]=a(e,o.schema,n[i])}return r}}function l(e,t){return{required:!0,schema:e,derive:t}}function u(e){return{required:!0,schema:e}}function c(e){return{required:!1,schema:e}}var d={type:u(o),id:u(s),transports:c(o)},p={appid:c(o),appidExclude:c(o),credProps:c(o)},h={appid:c(o),appidExclude:c(o),credProps:c(o)},f={publicKey:u({rp:u(o),user:u({id:u(s),name:u(o),displayName:u(o)}),challenge:u(s),pubKeyCredParams:u(o),timeout:c(o),excludeCredentials:c([d]),authenticatorSelection:c(o),attestation:c(o),extensions:c(p)}),signal:c(o)},m={type:u(o),id:u(o),rawId:u(s),authenticatorAttachment:c(o),response:u({clientDataJSON:u(s),attestationObject:u(s),transports:l(o,e=>{var t;return(null==(t=e.getTransports)?void 0:t.call(e))||[]})}),clientExtensionResults:l(h,e=>e.getClientExtensionResults())},g={mediation:c(o),publicKey:u({challenge:u(s),timeout:c(o),rpId:c(o),allowCredentials:c([d]),userVerification:c(o),extensions:c(p)}),signal:c(o)},v={type:u(o),id:u(o),rawId:u(s),authenticatorAttachment:c(o),response:u({clientDataJSON:u(s),authenticatorData:u(s),signature:u(s),userHandle:u(s)}),clientExtensionResults:l(h,e=>e.getClientExtensionResults())};function y(e){return a(r,f,e)}function b(e){return a(r,g,e)}function w(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}async function x(e){let t=await navigator.credentials.create(e);return t.toJSON=()=>a(i,m,t),t}async function _(e){let t=await navigator.credentials.get(e);return t.toJSON=()=>a(i,v,t),t}}}]); //# sourceMappingURL=vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-94fd67-42b80c36b639.js.map