webdav-js
Version:
WebDAV functionality intended for use as a bookmarklet or to make a simple webserver an interactive WebDAV environment.
7 lines • 135 kB
JavaScript
(()=>{var Yi=Object.create;var Ir=Object.defineProperty,Zi=Object.defineProperties,Qi=Object.getOwnPropertyDescriptor,Xi=Object.getOwnPropertyDescriptors,ea=Object.getOwnPropertyNames,Sn=Object.getOwnPropertySymbols,ta=Object.getPrototypeOf,Pn=Object.prototype.hasOwnProperty,ra=Object.prototype.propertyIsEnumerable;var Cn=(i,t,e)=>t in i?Ir(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,X=(i,t)=>{for(var e in t||(t={}))Pn.call(t,e)&&Cn(i,e,t[e]);if(Sn)for(var e of Sn(t))ra.call(t,e)&&Cn(i,e,t[e]);return i},dr=(i,t)=>Zi(i,Xi(t));var At=(i=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(i,{get:(t,e)=>(typeof require!="undefined"?require:t)[e]}):i)(function(i){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+i+'" is not supported')});var Le=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports);var na=(i,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ea(t))!Pn.call(i,n)&&n!==e&&Ir(i,n,{get:()=>t[n],enumerable:!(r=Qi(t,n))||r.enumerable});return i};var I=(i,t,e)=>(e=i!=null?Yi(ta(i)):{},na(t||!i||!i.__esModule?Ir(e,"default",{value:i,enumerable:!0}):e,i));var On=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var l=(i,t,e)=>(On(i,t,"read from private field"),e?e.call(i):t.get(i)),E=(i,t,e)=>{if(t.has(i))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(i):t.set(i,e)},x=(i,t,e,r)=>(On(i,t,"write to private field"),r?r.call(i,e):t.set(i,e),e);var A=(i,t,e)=>new Promise((r,n)=>{var a=u=>{try{o(e.next(u))}catch(m){n(m)}},s=u=>{try{o(e.throw(u))}catch(m){n(m)}},o=u=>u.done?r(u.value):Promise.resolve(u.value).then(a,s);o((e=e.apply(i,t)).next())});var hr=Le(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.AttributeAction=me.IgnoreCaseMode=me.SelectorType=void 0;var ia;(function(i){i.Attribute="attribute",i.Pseudo="pseudo",i.PseudoElement="pseudo-element",i.Tag="tag",i.Universal="universal",i.Adjacent="adjacent",i.Child="child",i.Descendant="descendant",i.Parent="parent",i.Sibling="sibling",i.ColumnCombinator="column-combinator"})(ia=me.SelectorType||(me.SelectorType={}));me.IgnoreCaseMode={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1};var aa;(function(i){i.Any="any",i.Element="element",i.End="end",i.Equals="equals",i.Exists="exists",i.Hyphen="hyphen",i.Not="not",i.Start="start"})(aa=me.AttributeAction||(me.AttributeAction={}))});var Rn=Le(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.parse=it.isTraversal=void 0;var R=hr(),kn=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,sa=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,oa=new Map([[126,R.AttributeAction.Element],[94,R.AttributeAction.Start],[36,R.AttributeAction.End],[42,R.AttributeAction.Any],[33,R.AttributeAction.Not],[124,R.AttributeAction.Hyphen]]),ua=new Set(["has","not","matches","is","where","host","host-context"]);function Ln(i){switch(i.type){case R.SelectorType.Adjacent:case R.SelectorType.Child:case R.SelectorType.Descendant:case R.SelectorType.Parent:case R.SelectorType.Sibling:case R.SelectorType.ColumnCombinator:return!0;default:return!1}}it.isTraversal=Ln;var la=new Set(["contains","icontains"]);function ca(i,t,e){var r=parseInt(t,16)-65536;return r!==r||e?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function Lt(i){return i.replace(sa,ca)}function Hr(i){return i===39||i===34}function An(i){return i===32||i===9||i===10||i===12||i===13}function fa(i){var t=[],e=Tn(t,"".concat(i),0);if(e<i.length)throw new Error("Unmatched selector: ".concat(i.slice(e)));return t}it.parse=fa;function Tn(i,t,e){var r=[];function n(q){var j=t.slice(e+q).match(kn);if(!j)throw new Error("Expected name, found ".concat(t.slice(e)));var $=j[0];return e+=q+$.length,Lt($)}function a(q){for(e+=q;e<t.length&&An(t.charCodeAt(e));)e++}function s(){e+=1;for(var q=e,j=1;j>0&&e<t.length;e++)t.charCodeAt(e)===40&&!o(e)?j++:t.charCodeAt(e)===41&&!o(e)&&j--;if(j)throw new Error("Parenthesis not matched");return Lt(t.slice(q,e-1))}function o(q){for(var j=0;t.charCodeAt(--q)===92;)j++;return(j&1)===1}function u(){if(r.length>0&&Ln(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function m(q){if(r.length>0&&r[r.length-1].type===R.SelectorType.Descendant){r[r.length-1].type=q;return}u(),r.push({type:q})}function y(q,j){r.push({type:R.SelectorType.Attribute,name:q,action:j,value:n(1),namespace:null,ignoreCase:"quirks"})}function c(){if(r.length&&r[r.length-1].type===R.SelectorType.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");i.push(r)}if(a(0),t.length===e)return e;e:for(;e<t.length;){var v=t.charCodeAt(e);switch(v){case 32:case 9:case 10:case 12:case 13:{(r.length===0||r[0].type!==R.SelectorType.Descendant)&&(u(),r.push({type:R.SelectorType.Descendant})),a(1);break}case 62:{m(R.SelectorType.Child),a(1);break}case 60:{m(R.SelectorType.Parent),a(1);break}case 126:{m(R.SelectorType.Sibling),a(1);break}case 43:{m(R.SelectorType.Adjacent),a(1);break}case 46:{y("class",R.AttributeAction.Element);break}case 35:{y("id",R.AttributeAction.Equals);break}case 91:{a(1);var g=void 0,S=null;t.charCodeAt(e)===124?g=n(1):t.startsWith("*|",e)?(S="*",g=n(2)):(g=n(0),t.charCodeAt(e)===124&&t.charCodeAt(e+1)!==61&&(S=g,g=n(1))),a(0);var d=R.AttributeAction.Exists,f=oa.get(t.charCodeAt(e));if(f){if(d=f,t.charCodeAt(e+1)!==61)throw new Error("Expected `=`");a(2)}else t.charCodeAt(e)===61&&(d=R.AttributeAction.Equals,a(1));var h="",p=null;if(d!=="exists"){if(Hr(t.charCodeAt(e))){for(var b=t.charCodeAt(e),w=e+1;w<t.length&&(t.charCodeAt(w)!==b||o(w));)w+=1;if(t.charCodeAt(w)!==b)throw new Error("Attribute value didn't end");h=Lt(t.slice(e+1,w)),e=w+1}else{for(var O=e;e<t.length&&(!An(t.charCodeAt(e))&&t.charCodeAt(e)!==93||o(e));)e+=1;h=Lt(t.slice(O,e))}a(0);var C=t.charCodeAt(e)|32;C===115?(p=!1,a(1)):C===105&&(p=!0,a(1))}if(t.charCodeAt(e)!==93)throw new Error("Attribute selector didn't terminate");e+=1;var L={type:R.SelectorType.Attribute,name:g,action:d,value:h,namespace:S,ignoreCase:p};r.push(L);break}case 58:{if(t.charCodeAt(e+1)===58){r.push({type:R.SelectorType.PseudoElement,name:n(2).toLowerCase(),data:t.charCodeAt(e)===40?s():null});continue}var F=n(1).toLowerCase(),N=null;if(t.charCodeAt(e)===40)if(ua.has(F)){if(Hr(t.charCodeAt(e+1)))throw new Error("Pseudo-selector ".concat(F," cannot be quoted"));if(N=[],e=Tn(N,t,e+1),t.charCodeAt(e)!==41)throw new Error("Missing closing parenthesis in :".concat(F," (").concat(t,")"));e+=1}else{if(N=s(),la.has(F)){var ne=N.charCodeAt(0);ne===N.charCodeAt(N.length-1)&&Hr(ne)&&(N=N.slice(1,-1))}N=Lt(N)}r.push({type:R.SelectorType.Pseudo,name:F,data:N});break}case 44:{c(),r=[],a(1);break}default:{if(t.startsWith("/*",e)){var Pe=t.indexOf("*/",e+2);if(Pe<0)throw new Error("Comment was not terminated");e=Pe+2,r.length===0&&a(0);break}var S=null,K=void 0;if(v===42)e+=1,K="*";else if(v===124){if(K="",t.charCodeAt(e+1)===124){m(R.SelectorType.ColumnCombinator),a(2);break}}else if(kn.test(t.slice(e)))K=n(0);else break e;t.charCodeAt(e)===124&&t.charCodeAt(e+1)!==124&&(S=K,t.charCodeAt(e+1)===42?(K="*",e+=2):K=n(1)),r.push(K==="*"?{type:R.SelectorType.Universal,namespace:S}:{type:R.SelectorType.Tag,name:K,namespace:S})}}}return c(),e}});var _n=Le(st=>{"use strict";var pr=st&&st.__spreadArray||function(i,t,e){if(e||arguments.length===2)for(var r=0,n=t.length,a;r<n;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return i.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(st,"__esModule",{value:!0});st.stringify=void 0;var M=hr(),Nn=["\\",'"'],jn=pr(pr([],Nn,!0),["(",")"],!1),da=new Set(Nn.map(function(i){return i.charCodeAt(0)})),Dn=new Set(jn.map(function(i){return i.charCodeAt(0)})),at=new Set(pr(pr([],jn,!0),["~","^","$","*","+","!","|",":","[","]"," ","."],!1).map(function(i){return i.charCodeAt(0)}));function $n(i){return i.map(function(t){return t.map(ha).join("")}).join(", ")}st.stringify=$n;function ha(i,t,e){switch(i.type){case M.SelectorType.Child:return t===0?"> ":" > ";case M.SelectorType.Parent:return t===0?"< ":" < ";case M.SelectorType.Sibling:return t===0?"~ ":" ~ ";case M.SelectorType.Adjacent:return t===0?"+ ":" + ";case M.SelectorType.Descendant:return" ";case M.SelectorType.ColumnCombinator:return t===0?"|| ":" || ";case M.SelectorType.Universal:return i.namespace==="*"&&t+1<e.length&&"name"in e[t+1]?"":"".concat(Mn(i.namespace),"*");case M.SelectorType.Tag:return Fn(i);case M.SelectorType.PseudoElement:return"::".concat(Ee(i.name,at)).concat(i.data===null?"":"(".concat(Ee(i.data,Dn),")"));case M.SelectorType.Pseudo:return":".concat(Ee(i.name,at)).concat(i.data===null?"":"(".concat(typeof i.data=="string"?Ee(i.data,Dn):$n(i.data),")"));case M.SelectorType.Attribute:{if(i.name==="id"&&i.action===M.AttributeAction.Equals&&i.ignoreCase==="quirks"&&!i.namespace)return"#".concat(Ee(i.value,at));if(i.name==="class"&&i.action===M.AttributeAction.Element&&i.ignoreCase==="quirks"&&!i.namespace)return".".concat(Ee(i.value,at));var r=Fn(i);return i.action===M.AttributeAction.Exists?"[".concat(r,"]"):"[".concat(r).concat(pa(i.action),'="').concat(Ee(i.value,da),'"').concat(i.ignoreCase===null?"":i.ignoreCase?" i":" s","]")}}}function pa(i){switch(i){case M.AttributeAction.Equals:return"";case M.AttributeAction.Element:return"~";case M.AttributeAction.Start:return"^";case M.AttributeAction.End:return"$";case M.AttributeAction.Any:return"*";case M.AttributeAction.Not:return"!";case M.AttributeAction.Hyphen:return"|";case M.AttributeAction.Exists:throw new Error("Shouldn't be here")}}function Fn(i){return"".concat(Mn(i.namespace)).concat(Ee(i.name,at))}function Mn(i){return i!==null?"".concat(i==="*"?"*":Ee(i,at),"|"):""}function Ee(i,t){for(var e=0,r="",n=0;n<i.length;n++)t.has(i.charCodeAt(n))&&(r+="".concat(i.slice(e,n),"\\").concat(i.charAt(n)),e=n+1);return r.length>0?r+i.slice(e):i}});var In=Le(ee=>{"use strict";var ga=ee&&ee.__createBinding||(Object.create?function(i,t,e,r){r===void 0&&(r=e);var n=Object.getOwnPropertyDescriptor(t,e);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(i,r,n)}:function(i,t,e,r){r===void 0&&(r=e),i[r]=t[e]}),ma=ee&&ee.__exportStar||function(i,t){for(var e in i)e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e)&&ga(t,i,e)};Object.defineProperty(ee,"__esModule",{value:!0});ee.stringify=ee.parse=ee.isTraversal=void 0;ma(hr(),ee);var qn=Rn();Object.defineProperty(ee,"isTraversal",{enumerable:!0,get:function(){return qn.isTraversal}});Object.defineProperty(ee,"parse",{enumerable:!0,get:function(){return qn.parse}});var va=_n();Object.defineProperty(ee,"stringify",{enumerable:!0,get:function(){return va.stringify}})});var ae=Le(k=>{"use strict";var gr,ya=k&&k.__classPrivateFieldSet||function(i,t,e,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?i!==t||!n:!t.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(i,e):n?n.value=e:t.set(i,e),e},ba=k&&k.__classPrivateFieldGet||function(i,t,e,r){if(e==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?i!==t||!r:!t.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?r:e==="a"?r.call(i):r?r.value:t.get(i)};Object.defineProperty(k,"__esModule",{value:!0}),k.Element=k.t=k.s=k.removeClass=k.onEach=k.once=k.on=k.off=k.hasClass=k.h=k.empty=k.emitCustom=k.emit=k.addClass=void 0;var wa=In();k.addClass=(i,...t)=>i.classList.add(...t);k.emit=(i,t)=>i.dispatchEvent(t);k.emitCustom=(i,t,...e)=>(0,k.emit)(i,new CustomEvent(t,{detail:e}));k.empty=i=>{for(var t;i.hasChildNodes();)(t=i.firstChild)===null||t===void 0||t.remove()};k.h=(i,...t)=>{let[e]=(0,wa.parse)(i).map(r=>r.reduce((n,a)=>{var s;return a.type==="tag"?document.createElement(a.name):(a.type==="attribute"&&a.name!=="class"&&n.setAttribute(a.name,(s=a.value)!==null&&s!==void 0?s:""),a.type==="attribute"&&a.name==="class"&&n.classList.add(a.value),n)},document.createElement("div")));return t.forEach(r=>{r instanceof xe&&(r=r.element()),e.append(r)}),e};k.hasClass=(i,t)=>i.classList.contains(t);k.off=(i,t,e,r={})=>i.removeEventListener(t,e,r);k.on=(i,t,e,r={})=>i.addEventListener(t,e,r);k.once=(i,t,e,r={})=>(0,k.on)(i,t,e,Object.assign(Object.assign({},typeof r=="boolean"?{capture:r}:r),{once:!0}));k.onEach=(i,t,e,r={})=>t.forEach(n=>(0,k.on)(i,n,e,r));k.removeClass=(i,...t)=>i.classList.remove(...t);k.s=i=>{let t=document.createElement("div");return t.innerHTML=i,t.firstElementChild};k.t=i=>document.createTextNode(i);var xe=class{constructor(t){gr.set(this,void 0),ya(this,gr,t,"f")}static fromSelector(t,...e){return new xe((0,k.h)(t,...e))}static fromString(t){return new xe((0,k.s)(t))}addClass(...t){(0,k.addClass)(this.element(),...t)}append(...t){t.forEach(e=>{e instanceof xe&&(e=e.element()),this.element().append(e)})}element(){return ba(this,gr,"f")}emit(t){return(0,k.emit)(this.element(),t)}emitCustom(t,...e){return(0,k.emitCustom)(this.element(),t,...e)}empty(){(0,k.empty)(this.element())}hasClass(t){return(0,k.hasClass)(this.element(),t)}on(t,e,r={}){(0,k.on)(this.element(),t,e,r)}off(t,e,r={}){(0,k.off)(this.element(),t,e,r)}once(t,e,r={}){(0,k.once)(this.element(),t,e,r)}onEach(t,e,r={}){(0,k.onEach)(this.element(),t,e,r)}query(t){return this.element().querySelector(t)}queryAll(t){return this.element().querySelectorAll(t)}removeClass(...t){(0,k.removeClass)(this.element(),...t)}};k.Element=xe,gr=new WeakMap,k.default=xe});var Kt=Le((oo,Jn)=>{var Sr=Object.defineProperty,xa=Object.defineProperties,Sa=Object.getOwnPropertyDescriptor,Ca=Object.getOwnPropertyDescriptors,Pa=Object.getOwnPropertyNames,zn=Object.getOwnPropertySymbols,Wn=Object.prototype.hasOwnProperty,Oa=Object.prototype.propertyIsEnumerable,Bn=(i,t,e)=>t in i?Sr(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,We=(i,t)=>{for(var e in t||={})Wn.call(t,e)&&Bn(i,e,t[e]);if(zn)for(var e of zn(t))Oa.call(t,e)&&Bn(i,e,t[e]);return i},Ht=(i,t)=>xa(i,Ca(t)),ka=(i,t)=>{for(var e in t)Sr(i,e,{get:t[e],enumerable:!0})},Aa=(i,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Pa(t))!Wn.call(i,n)&&n!==e&&Sr(i,n,{get:()=>t[n],enumerable:!(r=Sa(t,n))||r.enumerable});return i},La=i=>Aa(Sr({},"__esModule",{value:!0}),i),Gn={};ka(Gn,{Melba:()=>Cr,default:()=>_a,error:()=>Na,info:()=>ja,success:()=>$a,toast:()=>Ut,warning:()=>Ma});Jn.exports=La(Gn);var Ta=class{#e={};on(i,t){i in this.#e||(this.#e[i]=[]),this.#e[i].push(t)}once(i,t){let e=(...r)=>{t(...r),this.off(i,e)};this.on(i,e)}off(i,t){if(!(i in this.#e))return;let e=this.#e[i].indexOf(t);e!==-1&&this.#e[i].splice(e,1)}emit(i,...t){i in this.#e&&this.#e[i].forEach(e=>e(...t))}},Ra=Ta,Da=(()=>{try{return document.querySelector(":focus-within"),!0}catch{return!1}})(),Fa=Da,U=class extends Ra{constructor(i,{animation:t=U.defaults.animation,animationDuration:e=U.defaults.animationDuration,closeLabel:r=U.defaults.closeLabel,container:n=null,containerClass:a=U.defaults.containerClass,containerElement:s=U.defaults.containerElement,events:o={},hide:u=U.defaults.hide,root:m=U.defaults.root,toastClass:y=U.defaults.toastClass,toastElement:c=U.defaults.toastElement,toastHideClass:v=U.defaults.toastHideClass,toastShowClass:g=U.defaults.toastShowClass,type:S=U.defaults.type}){if(super(),!i)throw new TypeError("'content' cannot be empty.");if(this.animation=t,this.events=o,this.toastHideClass=v,this.toastShowClass=g,n||(n=this.getContainer({containerClass:a,containerElement:s,root:m})),this.container=n,u===!0&&(u=U.defaults.hideDelay),u!==!1&&u<100&&(u*=1e3),this.hideDelay=u,e<100&&(e*=1e3),this.build({closeLabel:r,content:i,toastClass:y,toastElement:c,type:S}),this.hideDelay!==!1&&this.autoHide(e),this.animation){window.requestAnimationFrame(()=>this.show());return}this.autoShow&&this.show()}autoHide(i){if(this.hideDelay)return window.setTimeout(()=>this.hide(),this.hideDelay+(this.animation?i:0))}build({closeLabel:i,content:t,toastClass:e,toastElement:r,type:n}){this.element=document.createElement(r),this.element.setAttribute("title",t),this.element.setAttribute("role","status"),this.element.setAttribute("tabindex","0"),this.element.classList.add(e),this.element.classList.add(`toast--${n}`),this.element.appendChild(this.buildClose(i)),this.element.appendChild(document.createTextNode(t)),this.element.addEventListener("keydown",a=>{a.key==="Escape"&&(a.preventDefault(),this.hide())}),this.container.appendChild(this.element),this.emit("build")}show(){this.element.classList.remove(this.toastHideClass),this.element.classList.add(this.toastShowClass),this.emit("show")}hide(i=!1){if(!i&&this.hasFocus)return;let t=(Fa?":focus-within, ":"")+":focus, :hover";if(!i&&this.element.matches(t)&&this.element.addEventListener("mouseout",()=>{this.hasFocus=!1,this.hideDelay>0&&this.hide()}),this.element.classList.remove(this.toastShowClass),this.element.classList.add(this.toastHideClass),this.emit("hide"),this.animation){let e=()=>this.remove(),r=()=>{a||(this.element.addEventListener("transitionend",()=>e()),a=!0)},n=()=>{this.show(),this.element.removeEventListener("transitionstart",()=>r()),this.element.removeEventListener("transitionend",()=>e()),this.element.removeEventListener("mouseover",()=>n()),this.element.addEventListener("mouseout",()=>this.hide())},a=!1;this.element.addEventListener("mouseover",()=>n()),this.element.addEventListener("transitionstart",()=>r());return}this.remove()}remove(){this.element.parentNode===this.container&&(this.container.removeChild(this.element),this.emit("remove"))}buildClose(i){let t=document.createElement("button");return t.setAttribute("title",i),t.appendChild(document.createTextNode(i)),t.addEventListener("click",()=>this.hide()),t}getContainer({containerClass:i,containerElement:t,root:e}){let r=e.querySelector(`${t}.${i}`);if(r)return r;let n=document.createElement(t);return n.classList.add(i),e.appendChild(n),n}getElement(){return this.element}static settings(i){U.defaults=We(We({},U.defaults),i)}},Cr=U;Cr.defaults={animation:!0,animationDuration:400,autoShow:!0,closeLabel:"Close",containerClass:"toast__container",containerElement:"div",hide:!1,hideDelay:5,root:document.body,toastClass:"toast",toastElement:"div",toastHideClass:"toast--hide",toastShowClass:"toast--show",type:"info"};var Ut=(i,t={})=>new Cr(i,Ht(We({},t),{autoShow:!0})),Na=(i,t={})=>Ut(i,Ht(We({},t),{type:"error"})),ja=(i,t={})=>Ut(i,Ht(We({},t),{type:"info"})),$a=(i,t={})=>Ut(i,Ht(We({},t),{type:"success",hide:!0})),Ma=(i,t={})=>Ut(i,Ht(We({},t),{type:"warning"})),_a=Cr});var Li=Le((Ai,sn)=>{(function(i){typeof Ai=="object"&&typeof sn<"u"?sn.exports=i():typeof define=="function"&&define.amd?define([],i):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).basicLightbox=i()})(function(){return function i(t,e,r){function n(o,u){if(!e[o]){if(!t[o]){var m=typeof At=="function"&&At;if(!u&&m)return m(o,!0);if(a)return a(o,!0);var y=new Error("Cannot find module '"+o+"'");throw y.code="MODULE_NOT_FOUND",y}var c=e[o]={exports:{}};t[o][0].call(c.exports,function(v){return n(t[o][1][v]||v)},c,c.exports,i,t,e,r)}return e[o].exports}for(var a=typeof At=="function"&&At,s=0;s<r.length;s++)n(r[s]);return n}({1:[function(i,t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=e.visible=void 0;var r=function(s){var o=arguments.length>1&&arguments[1]!==void 0&&arguments[1],u=document.createElement("div");return u.innerHTML=s.trim(),o===!0?u.children:u.firstChild},n=function(s,o){var u=s.children;return u.length===1&&u[0].tagName===o},a=function(s){return(s=s||document.querySelector(".basicLightbox"))!=null&&s.ownerDocument.body.contains(s)===!0};e.visible=a,e.create=function(s,o){var u=function(c,v){var g=r(`
<div class="basicLightbox `.concat(v.className,`">
<div class="basicLightbox__placeholder" role="dialog"></div>
</div>
`)),S=g.querySelector(".basicLightbox__placeholder");c.forEach(function(p){return S.appendChild(p)});var d=n(S,"IMG"),f=n(S,"VIDEO"),h=n(S,"IFRAME");return d===!0&&g.classList.add("basicLightbox--img"),f===!0&&g.classList.add("basicLightbox--video"),h===!0&&g.classList.add("basicLightbox--iframe"),g}(s=function(c){var v=typeof c=="string",g=c instanceof HTMLElement==1;if(v===!1&&g===!1)throw new Error("Content must be a DOM element/node or string");return v===!0?Array.from(r(c,!0)):c.tagName==="TEMPLATE"?[c.content.cloneNode(!0)]:Array.from(c.children)}(s),o=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if((c=Object.assign({},c)).closable==null&&(c.closable=!0),c.className==null&&(c.className=""),c.onShow==null&&(c.onShow=function(){}),c.onClose==null&&(c.onClose=function(){}),typeof c.closable!="boolean")throw new Error("Property `closable` must be a boolean");if(typeof c.className!="string")throw new Error("Property `className` must be a string");if(typeof c.onShow!="function")throw new Error("Property `onShow` must be a function");if(typeof c.onClose!="function")throw new Error("Property `onClose` must be a function");return c}(o)),m=function(c){return o.onClose(y)!==!1&&function(v,g){return v.classList.remove("basicLightbox--visible"),setTimeout(function(){return a(v)===!1||v.parentElement.removeChild(v),g()},410),!0}(u,function(){if(typeof c=="function")return c(y)})};o.closable===!0&&u.addEventListener("click",function(c){c.target===u&&m()});var y={element:function(){return u},visible:function(){return a(u)},show:function(c){return o.onShow(y)!==!1&&function(v,g){return document.body.appendChild(v),setTimeout(function(){requestAnimationFrame(function(){return v.classList.add("basicLightbox--visible"),g()})},10),!0}(u,function(){if(typeof c=="function")return c(y)})},close:m};return y}},{}]},{},[1])(1)})});var Ti=Le((wu,Nr)=>{var Ts=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var P=function(i){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,e=0,r={},n={manual:i.Prism&&i.Prism.manual,disableWorkerMessageHandler:i.Prism&&i.Prism.disableWorkerMessageHandler,util:{encode:function d(f){return f instanceof a?new a(f.type,d(f.content),f.alias):Array.isArray(f)?f.map(d):f.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(d){return Object.prototype.toString.call(d).slice(8,-1)},objId:function(d){return d.__id||Object.defineProperty(d,"__id",{value:++e}),d.__id},clone:function d(f,h){h=h||{};var p,b;switch(n.util.type(f)){case"Object":if(b=n.util.objId(f),h[b])return h[b];p={},h[b]=p;for(var w in f)f.hasOwnProperty(w)&&(p[w]=d(f[w],h));return p;case"Array":return b=n.util.objId(f),h[b]?h[b]:(p=[],h[b]=p,f.forEach(function(O,C){p[C]=d(O,h)}),p);default:return f}},getLanguage:function(d){for(;d;){var f=t.exec(d.className);if(f)return f[1].toLowerCase();d=d.parentElement}return"none"},setLanguage:function(d,f){d.className=d.className.replace(RegExp(t,"gi"),""),d.classList.add("language-"+f)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(p){var d=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(p.stack)||[])[1];if(d){var f=document.getElementsByTagName("script");for(var h in f)if(f[h].src==d)return f[h]}return null}},isActive:function(d,f,h){for(var p="no-"+f;d;){var b=d.classList;if(b.contains(f))return!0;if(b.contains(p))return!1;d=d.parentElement}return!!h}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(d,f){var h=n.util.clone(n.languages[d]);for(var p in f)h[p]=f[p];return h},insertBefore:function(d,f,h,p){p=p||n.languages;var b=p[d],w={};for(var O in b)if(b.hasOwnProperty(O)){if(O==f)for(var C in h)h.hasOwnProperty(C)&&(w[C]=h[C]);h.hasOwnProperty(O)||(w[O]=b[O])}var L=p[d];return p[d]=w,n.languages.DFS(n.languages,function(F,N){N===L&&F!=d&&(this[F]=w)}),w},DFS:function d(f,h,p,b){b=b||{};var w=n.util.objId;for(var O in f)if(f.hasOwnProperty(O)){h.call(f,O,f[O],p||O);var C=f[O],L=n.util.type(C);L==="Object"&&!b[w(C)]?(b[w(C)]=!0,d(C,h,null,b)):L==="Array"&&!b[w(C)]&&(b[w(C)]=!0,d(C,h,O,b))}}},plugins:{},highlightAll:function(d,f){n.highlightAllUnder(document,d,f)},highlightAllUnder:function(d,f,h){var p={callback:h,container:d,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",p),p.elements=Array.prototype.slice.apply(p.container.querySelectorAll(p.selector)),n.hooks.run("before-all-elements-highlight",p);for(var b=0,w;w=p.elements[b++];)n.highlightElement(w,f===!0,p.callback)},highlightElement:function(d,f,h){var p=n.util.getLanguage(d),b=n.languages[p];n.util.setLanguage(d,p);var w=d.parentElement;w&&w.nodeName.toLowerCase()==="pre"&&n.util.setLanguage(w,p);var O=d.textContent,C={element:d,language:p,grammar:b,code:O};function L(N){C.highlightedCode=N,n.hooks.run("before-insert",C),C.element.innerHTML=C.highlightedCode,n.hooks.run("after-highlight",C),n.hooks.run("complete",C),h&&h.call(C.element)}if(n.hooks.run("before-sanity-check",C),w=C.element.parentElement,w&&w.nodeName.toLowerCase()==="pre"&&!w.hasAttribute("tabindex")&&w.setAttribute("tabindex","0"),!C.code){n.hooks.run("complete",C),h&&h.call(C.element);return}if(n.hooks.run("before-highlight",C),!C.grammar){L(n.util.encode(C.code));return}if(f&&i.Worker){var F=new Worker(n.filename);F.onmessage=function(N){L(N.data)},F.postMessage(JSON.stringify({language:C.language,code:C.code,immediateClose:!0}))}else L(n.highlight(C.code,C.grammar,C.language))},highlight:function(d,f,h){var p={code:d,grammar:f,language:h};if(n.hooks.run("before-tokenize",p),!p.grammar)throw new Error('The language "'+p.language+'" has no grammar.');return p.tokens=n.tokenize(p.code,p.grammar),n.hooks.run("after-tokenize",p),a.stringify(n.util.encode(p.tokens),p.language)},tokenize:function(d,f){var h=f.rest;if(h){for(var p in h)f[p]=h[p];delete f.rest}var b=new u;return m(b,b.head,d),o(d,b,f,b.head,0),c(b)},hooks:{all:{},add:function(d,f){var h=n.hooks.all;h[d]=h[d]||[],h[d].push(f)},run:function(d,f){var h=n.hooks.all[d];if(!(!h||!h.length))for(var p=0,b;b=h[p++];)b(f)}},Token:a};i.Prism=n;function a(d,f,h,p){this.type=d,this.content=f,this.alias=h,this.length=(p||"").length|0}a.stringify=function d(f,h){if(typeof f=="string")return f;if(Array.isArray(f)){var p="";return f.forEach(function(L){p+=d(L,h)}),p}var b={type:f.type,content:d(f.content,h),tag:"span",classes:["token",f.type],attributes:{},language:h},w=f.alias;w&&(Array.isArray(w)?Array.prototype.push.apply(b.classes,w):b.classes.push(w)),n.hooks.run("wrap",b);var O="";for(var C in b.attributes)O+=" "+C+'="'+(b.attributes[C]||"").replace(/"/g,""")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+O+">"+b.content+"</"+b.tag+">"};function s(d,f,h,p){d.lastIndex=f;var b=d.exec(h);if(b&&p&&b[1]){var w=b[1].length;b.index+=w,b[0]=b[0].slice(w)}return b}function o(d,f,h,p,b,w){for(var O in h)if(!(!h.hasOwnProperty(O)||!h[O])){var C=h[O];C=Array.isArray(C)?C:[C];for(var L=0;L<C.length;++L){if(w&&w.cause==O+","+L)return;var F=C[L],N=F.inside,ne=!!F.lookbehind,Pe=!!F.greedy,K=F.alias;if(Pe&&!F.pattern.global){var q=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,q+"g")}for(var j=F.pattern||F,$=p.next,V=b;$!==f.tail&&!(w&&V>=w.reach);V+=$.value.length,$=$.next){var ie=$.value;if(f.length>d.length)return;if(!(ie instanceof a)){var Ue=1,z;if(Pe){if(z=s(j,V,d,ne),!z||z.index>=d.length)break;var tt=z.index,_r=z.index+z[0].length,G=V;for(G+=$.value.length;tt>=G;)$=$.next,G+=$.value.length;if(G-=$.value.length,V=G,$.value instanceof a)continue;for(var Ke=$;Ke!==f.tail&&(G<_r||typeof Ke.value=="string");Ke=Ke.next)Ue++,G+=Ke.value.length;Ue--,ie=d.slice(V,G),z.index-=V}else if(z=s(j,0,ie,ne),!z)continue;var tt=z.index,ge=z[0],rt=ie.slice(0,tt),Oe=ie.slice(tt+ge.length),ke=V+ie.length;w&&ke>w.reach&&(w.reach=ke);var Ae=$.prev;rt&&(Ae=m(f,Ae,rt),V+=rt.length),y(f,Ae,Ue);var fr=new a(O,N?n.tokenize(ge,N):ge,K,ge);if($=m(f,Ae,fr),Oe&&m(f,$,Oe),Ue>1){var Ve={cause:O+","+L,reach:ke};o(d,f,h,$.prev,V,Ve),w&&Ve.reach>w.reach&&(w.reach=Ve.reach)}}}}}}function u(){var d={value:null,prev:null,next:null},f={value:null,prev:d,next:null};d.next=f,this.head=d,this.tail=f,this.length=0}function m(d,f,h){var p=f.next,b={value:h,prev:f,next:p};return f.next=b,p.prev=b,d.length++,b}function y(d,f,h){for(var p=f.next,b=0;b<h&&p!==d.tail;b++)p=p.next;f.next=p,p.prev=f,d.length-=b}function c(d){for(var f=[],h=d.head.next;h!==d.tail;)f.push(h.value),h=h.next;return f}if(!i.document)return i.addEventListener&&(n.disableWorkerMessageHandler||i.addEventListener("message",function(d){var f=JSON.parse(d.data),h=f.language,p=f.code,b=f.immediateClose;i.postMessage(n.highlight(p,n.languages[h],h)),b&&i.close()},!1)),n;var v=n.util.currentScript();v&&(n.filename=v.src,v.hasAttribute("data-manual")&&(n.manual=!0));function g(){n.manual||n.highlightAll()}if(!n.manual){var S=document.readyState;S==="loading"||S==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",g):window.requestAnimationFrame?window.requestAnimationFrame(g):window.setTimeout(g,16)}return n}(Ts);typeof Nr<"u"&&Nr.exports&&(Nr.exports=P);typeof global<"u"&&(global.Prism=P);P.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};P.languages.markup.tag.inside["attr-value"].inside.entity=P.languages.markup.entity;P.languages.markup.doctype.inside["internal-subset"].inside=P.languages.markup;P.hooks.add("wrap",function(i){i.type==="entity"&&(i.attributes.title=i.content.replace(/&/,"&"))});Object.defineProperty(P.languages.markup.tag,"addInlined",{value:function(t,e){var r={};r["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:P.languages[e]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["language-"+e]={pattern:/[\s\S]+/,inside:P.languages[e]};var a={};a[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:n},P.languages.insertBefore("markup","cdata",a)}});Object.defineProperty(P.languages.markup.tag,"addAttribute",{value:function(i,t){P.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:P.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});P.languages.html=P.languages.markup;P.languages.mathml=P.languages.markup;P.languages.svg=P.languages.markup;P.languages.xml=P.languages.extend("markup",{});P.languages.ssml=P.languages.xml;P.languages.atom=P.languages.xml;P.languages.rss=P.languages.xml;(function(i){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;i.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},i.languages.css.atrule.inside.rest=i.languages.css;var e=i.languages.markup;e&&(e.tag.addInlined("style","css"),e.tag.addAttribute("style","css"))})(P);P.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};P.languages.javascript=P.languages.extend("clike",{"class-name":[P.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});P.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;P.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:P.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:P.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:P.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:P.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:P.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});P.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:P.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});P.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});P.languages.markup&&(P.languages.markup.tag.addInlined("script","javascript"),P.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));P.languages.js=P.languages.javascript;(function(){if(typeof P>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var i="Loading\u2026",t=function(v,g){return"\u2716 Error "+v+" while fetching file: "+g},e="\u2716 Error: File does not exist or is empty",r={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",a="loading",s="loaded",o="failed",u="pre[data-src]:not(["+n+'="'+s+'"]):not(['+n+'="'+a+'"])';function m(v,g,S){var d=new XMLHttpRequest;d.open("GET",v,!0),d.onreadystatechange=function(){d.readyState==4&&(d.status<400&&d.responseText?g(d.responseText):d.status>=400?S(t(d.status,d.statusText)):S(e))},d.send(null)}function y(v){var g=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v||"");if(g){var S=Number(g[1]),d=g[2],f=g[3];return d?f?[S,Number(f)]:[S,void 0]:[S,S]}}P.hooks.add("before-highlightall",function(v){v.selector+=", "+u}),P.hooks.add("before-sanity-check",function(v){var g=v.element;if(g.matches(u)){v.code="",g.setAttribute(n,a);var S=g.appendChild(document.createElement("CODE"));S.textContent=i;var d=g.getAttribute("data-src"),f=v.language;if(f==="none"){var h=(/\.(\w+)$/.exec(d)||[,"none"])[1];f=r[h]||h}P.util.setLanguage(S,f),P.util.setLanguage(g,f);var p=P.plugins.autoloader;p&&p.loadLanguages(f),m(d,function(b){g.setAttribute(n,s);var w=y(g.getAttribute("data-range"));if(w){var O=b.split(/\r\n?|\n/g),C=w[0],L=w[1]==null?O.length:w[1];C<0&&(C+=O.length),C=Math.max(0,Math.min(C-1,O.length)),L<0&&(L+=O.length),L=Math.max(0,Math.min(L,O.length)),b=O.slice(C,L).join(`
`),g.hasAttribute("data-start")||g.setAttribute("data-start",String(C+1))}S.textContent=b,P.highlightElement(S)},function(b){g.setAttribute(n,o),S.textContent=b})}}),P.plugins.fileHighlight={highlight:function(g){for(var S=(g||document).querySelectorAll(u),d=0,f;f=S[d++];)P.highlightElement(f)}};var c=!1;P.fileHighlight=function(){c||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),c=!0),P.plugins.fileHighlight.highlight.apply(this,arguments)}})()});var mr=I(ae()),Tt=class extends mr.default{constructor(){let t="<main></main>";super((0,mr.s)(t))}};var Ur=(...i)=>Hn(i.map(Kr).filter(t=>t).join("/")),vr=i=>Hn(se(i)),Hn=i=>i.startsWith("/")?i:`/${i}`,Un=i=>{let t=Ur(i).split(/\//),e=t.pop();return[Ur(...t),e]},se=i=>i.endsWith("/")?i:`${i}/`,Kr=i=>i.replace(/^\/+|\/+$/g,""),H=Ur;var Vr=class{#e={};on(t,e){t in this.#e||(this.#e[t]=[]),this.#e[t].push(e)}once(t,e){let r=(...n)=>{e(...n),this.off(t,r)};this.on(t,r)}off(t,e){if(!(t in this.#e))return;let r=this.#e[t].indexOf(e);r!==-1&&this.#e[t].splice(r,1)}emit(t,...e){t in this.#e&&this.#e[t].forEach(r=>r(...e))}},Te=Vr;var Rt,Dt,ot,ut,lt,Re,Ft,Nt,jt,Se,ct,ft,$t,dt,De,Fe,zr=class extends Te{constructor({fullPath:e,collection:r=null,copy:n=!0,del:a=!0,directory:s=!1,mimeType:o="",modified:u,move:m=!0,placeholder:y=!1,rename:c=!0,size:v=0,title:g=""}){super();E(this,Rt,void 0);E(this,Dt,void 0);E(this,ot,void 0);E(this,ut,void 0);E(this,lt,void 0);E(this,Re,void 0);E(this,Ft,void 0);E(this,Nt,void 0);E(this,jt,void 0);E(this,Se,void 0);E(this,ct,void 0);E(this,ft,void 0);E(this,$t,void 0);E(this,dt,void 0);E(this,De,void 0);E(this,Fe,void 0);let[S,d]=this.getFilename(e),f=new Date;f.setTime(u),x(this,ct,S),x(this,Se,d),x(this,Rt,n),x(this,ot,s),x(this,Re,e),x(this,De,g),x(this,Nt,f),x(this,jt,m),x(this,dt,v),x(this,Ft,o),x(this,Dt,a),x(this,$t,c),x(this,ft,y),this.collection=r}createParentEntry(){return this.update({fullPath:se(this.path),title:"←",copy:!1,del:!1,move:!1,rename:!1})}getFilename(e){return Un(e)}update(e={}){let r=new zr(X({directory:this.directory,fullPath:this.fullPath,modified:this.modified.getTime(),size:this.size,mimeType:this.mimeType,del:this.del,rename:this.rename,collection:this.collection},e));return this.emit("replaced",r),r}get copy(){return l(this,Rt)}get del(){return l(this,Dt)}get directory(){return l(this,ot)}get displaySize(){return l(this,ot)?"":(l(this,ut)||x(this,ut,["bytes","KiB","MiB","GiB","TiB","PiB"].reduce((e,r)=>typeof e=="string"?e:e<1024?`${e.toFixed(2*(r==="bytes"?0:1))} ${r}`:e/1024,l(this,dt))),l(this,ut))}get extension(){return this.directory?"":(l(this,lt)||x(this,lt,this.name.split(".").pop()),l(this,lt))}get fullPath(){return l(this,Re)}get mimeType(){return l(this,Ft)}get modified(){return l(this,Nt)}get move(){return l(this,jt)}get name(){return l(this,Se)}set name(e){x(this,Se,encodeURIComponent(e)),x(this,De,null),x(this,Fe,null),x(this,Re,H(l(this,ct),l(this,Se))),this.directory&&x(this,Re,se(l(this,Re))),this.title,this.type,this.emit("updated")}get path(){return l(this,ct)}get placeholder(){return l(this,ft)}set placeholder(e){x(this,ft,e)}get rename(){return l(this,$t)}get size(){return l(this,dt)}get title(){return l(this,De)||x(this,De,decodeURIComponent(l(this,Se))),l(this,De)}get type(){if(!l(this,Fe)){let e={text:/\.(?:te?xt|i?nfo|php|cgi|faq|ini|htaccess|log|md|sql|sfv|conf|sh|pl|pm|py|rb|(?:s?c|sa)ss|js|java|coffee|[sx]?html?|xml)$/i,image:/\.(?:jpe?g|gif|a?png|svg)$/i,video:/\.(?:mp(?:e?g)?4|mov|avi|webm|ogv|mkv)$/i,audio:/\.(?:mp3|wav|ogg|flac|mka)$/i,font:/\.(?:woff2?|eot|[ot]tf)$/i,pdf:/\.pdf$/i};for(let[r,n]of Object.entries(e))if(l(this,Se).match(n))return x(this,Fe,r);x(this,Fe,"unknown")}return l(this,Fe)}},Ce=zr;Rt=new WeakMap,Dt=new WeakMap,ot=new WeakMap,ut=new WeakMap,lt=new WeakMap,Re=new WeakMap,Ft=new WeakMap,Nt=new WeakMap,jt=new WeakMap,Se=new WeakMap,ct=new WeakMap,ft=new WeakMap,$t=new WeakMap,dt=new WeakMap,De=new WeakMap,Fe=new WeakMap;var _t,te,qt,It,yr,br,Mt=class extends Te{constructor(e,{sortDirectoriesFirst:r=!1}={}){super();E(this,_t,void 0);E(this,te,void 0);E(this,qt,void 0);E(this,It,()=>{l(this,te).sort((e,r)=>l(this,qt)&&l(this,br).call(this,e,r)||l(this,yr).call(this,e,r))});E(this,yr,(e,r)=>e.fullPath<r.fullPath?-1:1);E(this,br,(e,r)=>(r.directory?1:0)-(e.directory?1:0));x(this,qt,r),x(this,te,e.map(a=>new Ce(dr(X({},a),{collection:this}))));let n=l(this,te).shift();x(this,_t,H(n.fullPath)),n.fullPath!=="/"&&l(this,te).unshift(n.createParentEntry()),l(this,It).call(this)}add(e){e.collection=this,l(this,te).push(e),l(this,It).call(this),this.emit("updated")}filter(e){return l(this,te).filter(e)}forEach(e){l(this,te).forEach(e)}map(e){return l(this,te).map(e)}path(){return l(this,_t)}remove(e){x(this,te,l(this,te).filter(r=>r!==e)),this.emit("updated")}};_t=new WeakMap,te=new WeakMap,qt=new WeakMap,It=new WeakMap,yr=new WeakMap,br=new WeakMap;var Kn=(i,t)=>i.getElementsByTagName(t)[0],ht=(i,t)=>{let e=Kn(i,t);return e?e.textContent:""},pt,gt,wr,Br=class{constructor(t,e=new DOMParser){E(this,pt,void 0);E(this,gt,void 0);E(this,wr,void 0);x(this,wr,e),x(this,gt,e.parseFromString(t,"application/xml"))}collection({sortDirectoriesFirst:t=!1}={}){return l(this,pt)||x(this,pt,new Mt(this.responseToPrimitives(l(this,gt).getElementsByTagName("D:response")),{sortDirectoriesFirst:t})),l(this,pt)}responseToPrimitives(t=l(this,gt).getElementsByTagName("D:response")){return Array.from(t).map(e=>({directory:!!Kn(e,"D:collection"),fullPath:ht(e,"D:href"),modified:Date.parse(ht(e,"lp1:getlastmodified")||ht(e,"D:getlastmodified")),size:parseInt(ht(e,"lp1:getcontentlength")||ht(e,"D:getcontentlength"),10),mimeType:ht(e,"D:getcontenttype")}))}};pt=new WeakMap,gt=new WeakMap,wr=new WeakMap;var Er=Br;var ze,Be,Wr=class extends Error{constructor(e,r){super("Request failure");E(this,ze,void 0);E(this,Be,void 0);x(this,ze,e),x(this,Be,r)}request(){return l(this,ze)}response(){return l(this,Be)}method(){return l(this,ze).method}url(){return l(this,ze).url}statusText(){return l(this,Be).statusText}status(){return l(this,Be).status}};ze=new WeakMap,Be=new WeakMap;var xr=Wr;var Ea={PROPFIND:{headers:{Depth:"1"}}},Ne=(i,t,e)=>A(void 0,null,function*(){let r=new Request(t,dr(X(X({},Ea[i]||{}),e),{method:i})),n=yield fetch(r);if(!n.ok)throw new xr(r,n);return n}),Gr=class{GET(t,e={}){return Ne("GET",t,e)}HEAD(t,e={}){return Ne("HEAD",t,e)}PUT(t,e={}){return Ne("PUT",t,e)}PROPFIND(t,e={}){return Ne("PROPFIND",t,e)}DELETE(t,e={}){return Ne("DELETE",t,e)}MKCOL(t,e={}){return Ne("MKCOL",t,e)}COPY(t,e={}){return Ne("COPY",t,e)}MOVE(t,e={}){return Ne("MOVE",t,e)}},Vn=Gr;var vi=I(Kt());function fe(i){return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fe(i)}function J(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function Yn(i,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,r.key,r)}}function Y(i,t,e){return t&&Yn(i.prototype,t),e&&Yn(i,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function de(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Vt(i,t){return Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Vt(i,t)}function mt(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&Vt(i,t)}function Ge(i,t){if(t&&(fe(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return de(i)}function oe(i){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(i)}function ve(i,t,e){return t in i?Object.defineProperty(i,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[t]=e,i}function Jr(i){if(Array.isArray(i))return i}function Yr(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function Pr(i,t){(t==null||t>i.length)&&(t=i.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=i[e];return r}function Zr(i,t){if(!!i){if(typeof i=="string")return Pr(i,t);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Pr(i,t)}}function Qr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xr(i){return Jr(i)||Yr(i)||Zr(i)||Qr()}function Zn(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),e.push.apply(e,r)}return e}function Qn(i){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Zn(Object(e),!0).forEach(function(r){ve(i,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Zn