diff --git a/dist/assets/javascripts/bundle.3809e150.min.js b/dist/assets/javascripts/bundle.3809e150.min.js new file mode 100644 index 00000000..97719093 --- /dev/null +++ b/dist/assets/javascripts/bundle.3809e150.min.js @@ -0,0 +1,10 @@ +"use strict";(()=>{var Fa=Object.create;var Dr=Object.defineProperty,Ua=Object.defineProperties,za=Object.getOwnPropertyDescriptor,Va=Object.getOwnPropertyDescriptors,Wa=Object.getOwnPropertyNames,or=Object.getOwnPropertySymbols,Da=Object.getPrototypeOf,Nr=Object.prototype.hasOwnProperty,In=Object.prototype.propertyIsEnumerable;var Wr=(e,t,r)=>t in e?Dr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))Nr.call(t,r)&&Wr(e,r,t[r]);if(or)for(var r of or(t))In.call(t,r)&&Wr(e,r,t[r]);return e},Tt=(e,t)=>Ua(e,Va(t));var jn=(e,t)=>{var r={};for(var n in e)Nr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&or)for(var n of or(e))t.indexOf(n)<0&&In.call(e,n)&&(r[n]=e[n]);return r};var ir=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Na=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Wa(t))!Nr.call(e,o)&&o!==r&&Dr(e,o,{get:()=>t[o],enumerable:!(n=za(t,o))||n.enumerable});return e};var ct=(e,t,r)=>(r=e!=null?Fa(Da(e)):{},Na(t||!e||!e.__esModule?Dr(r,"default",{value:e,enumerable:!0}):r,e));var qr=(e,t,r)=>Wr(e,typeof t!="symbol"?t+"":t,r);var ge=(e,t,r)=>new Promise((n,o)=>{var i=c=>{try{s(r.next(c))}catch(l){o(l)}},a=c=>{try{s(r.throw(c))}catch(l){o(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,a);s((r=r.apply(e,t)).next())});var Un=ir((Kr,Fn)=>{(function(e,t){typeof Kr=="object"&&typeof Fn!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Kr,(function(){"use strict";function e(r){var n=!0,o=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(g){return!!(g&&g!==document&&g.nodeName!=="HTML"&&g.nodeName!=="BODY"&&"classList"in g&&"contains"in g.classList)}function c(g){var oe=g.type,ce=g.tagName;return!!(ce==="INPUT"&&a[oe]&&!g.readOnly||ce==="TEXTAREA"&&!g.readOnly||g.isContentEditable)}function l(g){g.classList.contains("focus-visible")||(g.classList.add("focus-visible"),g.setAttribute("data-focus-visible-added",""))}function p(g){g.hasAttribute("data-focus-visible-added")&&(g.classList.remove("focus-visible"),g.removeAttribute("data-focus-visible-added"))}function u(g){g.metaKey||g.altKey||g.ctrlKey||(s(r.activeElement)&&l(r.activeElement),n=!0)}function f(g){n=!1}function d(g){s(g.target)&&(n||c(g.target))&&l(g.target)}function h(g){s(g.target)&&(g.target.classList.contains("focus-visible")||g.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),p(g.target))}function b(g){document.visibilityState==="hidden"&&(o&&(n=!0),y())}function y(){document.addEventListener("mousemove",L),document.addEventListener("mousedown",L),document.addEventListener("mouseup",L),document.addEventListener("pointermove",L),document.addEventListener("pointerdown",L),document.addEventListener("pointerup",L),document.addEventListener("touchmove",L),document.addEventListener("touchstart",L),document.addEventListener("touchend",L)}function _(){document.removeEventListener("mousemove",L),document.removeEventListener("mousedown",L),document.removeEventListener("mouseup",L),document.removeEventListener("pointermove",L),document.removeEventListener("pointerdown",L),document.removeEventListener("pointerup",L),document.removeEventListener("touchmove",L),document.removeEventListener("touchstart",L),document.removeEventListener("touchend",L)}function L(g){g.target.nodeName&&g.target.nodeName.toLowerCase()==="html"||(n=!1,_())}document.addEventListener("keydown",u,!0),document.addEventListener("mousedown",f,!0),document.addEventListener("pointerdown",f,!0),document.addEventListener("touchstart",f,!0),document.addEventListener("visibilitychange",b,!0),y(),r.addEventListener("focus",d,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)}))});var bn=ir(Zo=>{"use strict";function kr(e,t,r={}){return{name:e,from:t,meta:r}}function dn(e,t){let r=[{value:e,depth:0}];for(let n=0,o=-1,i=0;n>=0;){let{value:a,depth:s}=r[n];if(o<=s&&a.type==="operator"&&a.data.operands.length>0)for(let c=a.data.operands.length;c>0;)r[++n]={value:a.data.operands[--c],depth:s+1};else{let c=t(a,i++,s);if(typeof c<"u")return c;--n}o=s}}var Ar=class extends Error{constructor(e,t){super(t),this.code=e}};function Ro(e,t){let r=Ss(e);for(let n=0;n{let{matches:n}=r;for(let o=0;o{let o=t.get(r);return typeof o>"u"&&t.set(r,o=e(r,...n)),o}}function Cr(e,t){return Object.defineProperty(t,"name",{value:e}),t}function jo(e){return ge(this,null,function*(){let t=[];if(typeof e.plugins<"u")for(let r=0;r32)throw new RangeError("Bit format exceeds 32 bits");return e}function Uo(e,t,r){let n=fn(e),o=fn(t),i=typeof r<"u"?fn(r):32-n-o;return ks({d:n,f:o,x:i})}var je=[0];for(let e=0;e<32;e++)je.push(je[e]|1<=r&&e{t+=n*n}),Math.sqrt(t)}function $s(e,t){e instanceof hn?e.data.forEach((r,n)=>{t(r,n)}):e.forEach((r,n)=>{t({start:r,end:r+1,value:1},n)})}var Yt=class{constructor(e,t=Cs(Math.ceil(e/32))){this.size=e,this.data=t}get(e){return this.data[e>>>5]>>>e&1}set(e){this.data[e>>>5]|=1<<(e&31)}forEach(e){let t=this.size&31;for(let r=0;r>>0;for(let r=0;r0;o++){let{value:i,depth:a}=r[--n],s=t(i,o,a);if(typeof s<"u")return s;for(let c=i.children.length;c>0;)r[n++]={value:i.children[--c],depth:a+1}}}function Rs(e,t){return ge(this,null,function*(){let{fields:r,plugins:n=[]}=t,o=Uo(e.length,r.length),i=[];for(let c=0;c"u")continue;let u=c<{var y;return(y=b.onFilterInput)==null?void 0:y.call(b,h,u,o)},p);let f=i[l],d=Ne();p=Array.isArray(p)?p:[p];for(let h=0;h{let g=f.index.get(y.node);typeof g>"u"&&f.index.set(y.node,g=Ne());let oe=f.terms.length;for(let O=0;O{var l;return(l=c.onFilterStore)==null?void 0:l.call(c,s,t,e)}),s})}function Is(e,t,r,n={}){let o=[];if(t<0||t>=e.count.fields)return o;let i=e.shards[t],a=new Map,{count:s=1/0,depth:c=1/0}=n;for(let l=0;lc)continue;let h=a.get(p);typeof h>"u"&&a.set(p,h={node:u,children:[]});let b=o;d>0&&(b=a.get(i.terms[f]).children),b.length=e.count.fields)return{documents:n,terms:o};let i=e.shards[r];return t.forEach(a=>{let{occurrences:s}=i.terms[a];for(let c=0;c>>e.space.x>>>e.space.f;n.set(l)}o[r].set(a)}),{documents:n,terms:o}}function Fs(e){let{documents:t,terms:r}=$r(e);yt(t,1);for(let n=0;nnew Yt(t.length))}}function Us(e,t,r){let{compiler:n,fields:o,plugins:i=[]}=r,{input:a,scope:s,abort:c=!1}=xt(i,(u,f)=>{var d;return(d=f.onFilterQuery)==null?void 0:d.call(f,u,e,r)},t),l={items:[],query:{select:$r(e),values:[]}},p=new Map;if(c===!1){let u=n(r),{select:f,values:d}=u(a,e);typeof s<"u"&&Hr(f.documents,s);let h=new Map;l.query={select:f,values:d},f.terms.forEach((b,y)=>{b.forEach(_=>{let L=e.shards[y],{occurrences:g}=L.terms[_];for(let oe=0;oe>>e.space.x,Q=O>>>e.space.f;if(!f.documents.get(Q))continue;let re=h.get(O);typeof re>"u"&&h.set(O,re=new Gt(Ne()));let fe=ce&je[e.space.x];re.add(fe,_)}})}),f.documents.forEach(b=>{let y={id:b,matches:[]};l.items.push(y),p.set(b,y)}),h.forEach((b,y)=>{let _=y>>>e.space.f,L=y&je[e.space.f];p.get(_).matches.push({id:y,field:o[L].name,value:{filter:b},score:0})})}return xt(i,(u,f)=>{var d;return(d=f.onFilterResult)==null?void 0:d.call(f,u,e,r)},l)}function Do(e){let{fields:t}=e;return(r,n)=>{if(_s(r))return r;let o=[Fs(n)],i=[],a=0;return dn(r,({type:s,data:c})=>{switch(s){case"value":let l=t.findIndex(({name:f})=>f===c.field);if(l===-1){o[a++]=$r(n);break}let p=c.value;if(typeof p!="object"){let f=new Gt(Ne()),d=n.shards[l],h=d.index.get(p);if(typeof h<"u")for(let b=0;bu+1&&a--;){Rt(o[u].documents,o[a].documents);for(let f=0;fu+1&&a--;){Hr(o[u].documents,o[a].documents);for(let f=0;fu+1&&a--;)Vo(o[u].documents,o[a].documents)}}}),{select:o[0],values:i}}}function zs(e){return{name:e.name,data:e.data,onFilterOptions:e.onFilterOptions,onFilterInput:e.onFilterInput,onFilterStore:e.onFilterStore,onFilterQuery:e.onFilterQuery,onFilterResult:e.onFilterResult}}function No(e){return typeof e=="object"&&e!==null&&"type"in e&&"data"in e}function Vs(e){return typeof e=="object"&&e!==null&&"select"in e&&"values"in e}function Ws(e){return e.normalize("NFKD").toLowerCase()}function Ds(e,t){let r=Math.min(e.length,t.length);for(let n=0;n65535)){let i=t(o=e.codePointAt(r),r);if(typeof i<"u")return i}}function qo(e,t,r=0,n=e.length){let o=Ne();return Ns(e,i=>{o.push(i);let a=t(String.fromCodePoint(...o),o.length);if(typeof a<"u")return a},r,n)}function qs(e,t,r=0,n=e.length){let o=r;for(let i=0;or&&t(r,r=o);continue;case 62:r=o+1}o>r&&t(r,o)}function Ko(e,t,r,n=0){return qs(e,(o,i)=>t(e,(a,s)=>{n=r({value:e.slice(a,s),index:n,start:a,end:s})},o,i)),n}function Ks(e,t,r,n=0){for(let o=0,i=0;o(a.start+=i,a.end+=i,r(a)),n);return n}function Bs(e){let t=new RegExp(e,"gu");return(r,n,o=0,i=r.length)=>{var c;t.lastIndex=o;let a,s=0;do{a=t.exec(r);let l=(c=a==null?void 0:a.index)!=null?c:i;o"u")continue;let h=u<{var _;return(_=y.onTextInput)==null?void 0:_.call(y,b,h,a)},d),d=Array.isArray(d)?d:[d],Ks(d,r,b=>{let y=xt(i,(_,L)=>{var g;return(g=L.onTextTokens)==null?void 0:g.call(L,_)},[b]);for(let _=0;_"u"?s.set(L,[h<{var f;return(f=u.onTextStore)==null?void 0:f.call(u,l,t,e)}),l})}function Gs(e,t,r){let{documents:n,terms:o}=Pr(e);return r<0||r>=e.count.fields?{documents:n,terms:o}:(t.forEach(i=>{let{occurrences:a}=e.terms[i];for(let s=0;s>>e.space.x;if((c&je[e.space.f])!==r)continue;let l=c>>>e.space.f;n.set(l)}o.set(i)}),{documents:n,terms:o})}function Js(e,t){let{documents:r,terms:n}=Pr(e),o=e.space.f+e.space.x;return t.forEach(i=>{let{occurrences:a}=e.terms[i];for(let s=0;s>>o);n.set(i)}),{documents:r,terms:n}}function Pr(e){return{documents:new Yt(e.count.documents),terms:new Yt(e.terms.length)}}function Qs(e,t,r){let{compiler:n,fields:o,plugins:i=[]}=r,{input:a,scope:s,abort:c=!1}=xt(i,(u,f)=>{var d;return(d=f.onTextQuery)==null?void 0:d.call(f,u,e,r)},t),l={items:[],query:{select:Pr(e),values:[]}},p=new Map;if(c===!1){let u=n(r),{select:f,values:d}=u(a,e);typeof s<"u"&&Hr(f.documents,s);let h=new Yt(o.length),b=new Map;l.query={select:f,values:d},f.terms.forEach(y=>{yt(h,0);for(let L=0;L>>e.space.x,ce=oe>>>e.space.f;if(!f.documents.get(ce))continue;let O=oe&je[e.space.f];if(!h.get(O))continue;let Q=b.get(oe);typeof Q>"u"&&b.set(oe,Q=new Gt(Ne()));let re=g&je[e.space.x];Q.add(re,y)}}),f.documents.forEach(y=>{let _={id:y,matches:[]};l.items.push(_),p.set(y,_)}),b.forEach((y,_)=>{let L=_>>>e.space.f,g=_&je[e.space.f];p.get(L).matches.push({id:_,field:o[g].name,value:{text:y},score:0})})}return xt(i,(u,f)=>{var d;return(d=f.onTextResult)==null?void 0:d.call(f,u,e,r)},l)}function Xs(e,t=10){return e.length>1?1+e[e.length-1]-e[0]:t}function Zs(e,t,r,n=10){let o=[];e.value.text.forEach((s,c)=>{for(let l=0;ls.index-c.index);let i=o.slice(0,1),a=0;for(let s=0;sn||l.value===c.value)p=i.map(({index:u})=>u),i=[o[s+1]];else{for(let u=0;ul.index-c.index){let d=i.splice(u+1);p=i.map(({index:h})=>h),i=[...d,o[s+1]]}else p=i.map(({index:d})=>d),i=[o[s+1]];break}}typeof p>"u"&&i.push(o[s+1])}if(typeof p<"u"){let u=r(p,a++);if(typeof u<"u")return u}}if(i.length)return r(i.map(({index:s})=>s),a)}function ec(e){let{transform:t,parser:r,fields:n}=e,o=r(e);return(i,a)=>{if(Vs(i))return i;typeof i=="string"&&(i=o(i));let s=[Pr(a)],c=[],l=0;return dn(i,({type:p,data:u})=>{switch(p){case"value":let f=u.value;if(typeof f=="string"){let h=new Gt(Ne()),b=a.index.get(t(f));typeof b<"u"&&h.add(b,1),f=h}if(u.field==="*")s[l++]=Js(a,f);else{let h=n.findIndex(({name:b})=>b===u.field);s[l++]=Gs(a,f,h)}c.push(Tt(R({},u),{value:f}));break;case"operator":let d=l-u.operands.length;switch(u.operator){case"or":for(;l>d+1&&l--;)Rt(s[d].documents,s[l].documents),Rt(s[d].terms,s[l].terms);break;case"and":for(;l>d+1&&l--;)Hr(s[d].documents,s[l].documents),Rt(s[d].terms,s[l].terms);break;case"not":for(Wo(s[d].documents),yt(s[d].terms,0);l>d+1&&l--;)Vo(s[d].documents,s[l].documents)}}}),{select:s[0],values:c}}}function Bo(e,t){return dn(e,(r,n,o)=>{if(r.type!=="value")return;let i=t(r.data,n,o);if(typeof i<"u")return i})}function Yo(e){if(e.length===0)return[];let t=[],r=[];for(let i=0;ii.index-a.index);let n=new Set([r[0].value]),o=r[0].index;for(let i=1;i{e[l].start>o||e[l].end{t.push({start:o,end:i,value:r})})}return new hn(Yo(t))}function tc(e,t="or",r){let{separator:n}=e;return r!=null||(r=o=>({field:"*",value:o.value})),o=>{let i=[];return Ko(o,n,a=>{let s=r(a);typeof s<"u"&&i.push({type:"value",data:s})}),{type:"operator",data:{operator:t,operands:i}}}}function rc(e,t){return ge(this,null,function*(){let r=yield jo(t),n=yield Ls(r,(i,a)=>{var s;return(s=a.onTextOptions)==null?void 0:s.call(a,i,e)},Tt(R({},t),{plugins:r})),o=yield Ys(e,n);return Cr("text",i=>{if(i.type!=="text")throw new Ar("unsupported");return{type:i.type,data:Qs(o,i.data,n)}})})}function at(e){return{name:e.name,data:e.data,onTextOptions:e.onTextOptions,onTextInput:e.onTextInput,onTextTokens:e.onTextTokens,onTextStore:e.onTextStore,onTextQuery:e.onTextQuery,onTextResult:e.onTextResult}}function nc(e){let{handlers:t}=e,r,n=new Map;return zs({name:"aggregation",onFilterStore(o,i){for(let a=0;a"u")continue;let c=!0;i.documents.forEach(l=>{c=!1}),c&&yt(i.documents,1),o.aggregations.push(s(a,i))}}})}function oc(e={}){let{empty:t=!1,limit:r}=e;return(n,{fields:o})=>{let i=n.space.f+n.space.x;return Cr("term",({type:a,data:s},{documents:c})=>{if(a!=="term")throw new Ar("unsupported");let l=o.findIndex(({name:u})=>u===s.field),p=Is(n,l,u=>{let f=0,{occurrences:d}=u;for(let h=0;h>>i)&&f++;if(!(t===!1&&f===0))return{value:u.value,count:f}},R(R({},r),s.limit));return{type:a,data:{field:s.field,value:p}}})}}function ic(e,t="prefix"){return{type:t,data:e}}function ac(e){return typeof e=="object"&&"type"in e&&typeof e.type=="string"&&"data"in e&&typeof e.data=="string"}function sc(e,t={}){var c;let{prefix:r=2,filter:n=[]}=t,o=e.terms,i=new Map,a=As(o.length),s=Ne();for(let l=0;l{var h;return i.set(f,(h=i.get(f))!=null?h:l),d===r||void 0});let u=l?o[l-1]:"";a[l]=Ds(u,p)}for(let l=0;ll-p),{terms:o,index:i,cover:a,exact:s}}function cc(e,t){let r="",n=-1,o=-1;if(qo(t,s=>{let c=e.index.get(s);if(typeof c>"u")return!0;r=s,n=c}),n!==-1)for(let s=r.length;ss>n&&sa),index:t.index},{prefix:e.prefix,filter:(o=e.filter)==null?void 0:o.map(n)}))},onTextQuery(t,r,n){let{transform:o,parser:i}=n;if(typeof t.input=="string")t.input=i(n)(t.input);else if(!No(t.input))return;Bo(t.input,a=>{var c;let s=a.value;if(ac(s))s=o(s.data);else return;a.value=(c=cc(this.data,s))!=null?c:s})}})}function pc(e){let t=Tt(R({},e),{plugins:[]}),r,n,o;return at({name:"filter",onTextOptions(a,s){return ge(this,null,function*(){t.plugins=yield jo(e),o=yield Rs(s,t)})},onTextQuery(a){typeof a.filter<"u"&&(r=a.filter,n!=null||(n=Do(t)),r.input=n(r.input,o),a.scope=r.input.select.documents)},onTextResult(a){if(typeof r<"u"){let s=!0;a.query.select.documents.forEach(l=>{s=!1}),s||(r.scope=a.query.select.documents);let c=Us(o,r,t);a.aggregations=c.aggregations,r=void 0}}})}function Jo(e,t){let r=[],n=e/t>>>0,o=e%t,i=0;if(n)for(let a=0;as);n.sort((a,s)=>e.terms[a].length-e.terms[s].length||e.terms[a].localeCompare(e.terms[s]));let o=0;for(let a=0;ao&&(o=e.terms[a].length);let i=[];for(let a=0;a"u"?c[p].set(u,[n[a]]):f.push(n[a])}}return{index:i,terms:e.terms,idxmp:n}}var dc=[["id","di","rr"],["dr","rd"],["dd"]];function Qo(e,t,r=2){if(e.lengthr)return;let a,s,c,l=r+1;for(let p of dc[i]){for(c=a=s=0;ar)break;switch(p[c-1]){case"d":a++;break;case"i":s++;break;case"r":a++,s++;break}}else a++,s++;c+=n-a+(o-s),c"u")continue;let a=fc(t,i,2);for(let s=0;s"u"))for(let f of u){let d=e.terms[f].length,h=r(e.terms[f],t);typeof h<"u"&&n.add(f,(d-h)/d)}}}}if(n.data.length)return n}function bc(e={}){return at({name:"fuzzy",onTextStore(t){var r;(r=this.data)!=null||(this.data=mc({terms:t.terms.map(({value:n})=>n)},e))},onTextQuery(t,r,n){let{transform:o,parser:i}=n;if(typeof t.input=="string")t.input=i(n)(t.input);else if(!No(t.input))return;Bo(t.input,a=>{var c;let s=a.value;if(typeof s=="string")s=o(s);else return;r.index.get(s)||(a.value=(c=hc(this.data,s))!=null?c:s)})}})}function vc(){return{tables:new Map}}function gc(e,t={}){let{count:r}=t;return Cr("term",n=>{let o=Go(n);return(i,a)=>{let s=[];return i.value.text.forEach((c,l)=>{let p=a[c]>>>10,u=a[c]&je[10];for(let h=0;hc.start-l.start),{ranges:Yo(s).slice(0,r)}}})}function xc(e){let t,r;return at({name:"highlight",data:vc(),onTextInput(n,o){let{tables:i}=this.data;i.set(o,r=Ne())},onTextTokens(n){for(let o=0;o{let s=o.get(a.id);if(a.value.highlight)return;let c=i(a,s);a.value=Tt(R({},a.value),{highlight:c})})}})}function yc(){return{directives:[]}}function Xo(...e){return(t,r)=>{for(let n=0;n{if(n!=="match")throw new Ar("unsupported");let i=Ec(e),a=Xo(...t.map(s=>s(r)));return Ro(r,({matches:s})=>{s.sort(i)}),(s,c)=>{let l=Math.min(s.matches.length,c.matches.length);for(let p=0,u=0;pn*(o.get(a.field)-o.get(s.field))}function Tc(e,t={}){let r=Go(e.query),n=mn(Zs),o=mn(Xs);return(i,a)=>{let s=n(i,r,u=>u),c=n(a,r,u=>u);if(s.length!==c.length)return c.length-s.length;let l=o(s),p=o(c);return l!==p?l-p:s[0]!==c[0]?s[0]-c[0]:0}}function Oc(e){let t=new Map;return at({name:"order",data:yc(),onTextOptions(n,o){return ge(this,null,function*(){for(let i=0;i"u")throw new Ar("unknown");i.push(c(n,s))}n.items.sort(Xo(...i))}})}function Sc(e){let t=e.handler();return at({name:"pagination",onTextQuery(r){return t.onQuery(r,e)},onTextResult(r){return t.onResult(r,e)}})}function Lc(e){let{id:t,size:r=10,from:n=0}=e;if(n-r>=0)return{id:t,size:r,from:n-r}}function Mc(e,t){let{id:r,size:n=10,from:o=0}=e;if(o+nge(null,null,function*(){let t=e.data;switch(t.type){case 0:Po=yield rc(t.data.items,{separator:Bs(t.data.config.separator),transform:mn(Ws),parser:n=>tc(n,"and",o=>({field:"*",value:ic(o.value),range:{start:o.start,end:o.end,value:o.index}})),compiler:ec,fields:[kr("title",n=>n.title,{weight:3}),kr("text",n=>n.text),kr("path",n=>n.path,{weight:2})],plugins:[lc(),bc(),pc({compiler:Do,fields:[kr("tags",n=>n.tags)],plugins:[nc({handlers:[oc()]})]}),Oc({handlers:[n=>wc({fields:n.fields,comparators:[Tc]})],defaults:{order:[{type:"match",data:{field:"*"}}]}}),()=>at({onTextResult(n){n.total=n.items.length}}),Sc({handler:kc,size:10}),xc({handler:n=>gc(n)}),()=>at({onTextResult(n){let{query:o}=n,i=o.values.map(({range:a,value:s})=>{var l,p;let c=!1;return s.forEach((u,f)=>{!c&&f<1&&(c=!0)}),c?-1:((l=a==null?void 0:a.end)!=null?l:0)-((p=a==null?void 0:a.start)!=null?p:0)});Io(n,a=>{var s;(s=a.value.highlight)==null||s.ranges.forEach(c=>{c.value=i[c.value]})})}})]}),self.postMessage({type:1});break;case 2:let r=Po({type:"text",data:t.data});self.postMessage({type:3,data:r.data});break}})});var Tn=ir(($w,yi)=>{"use strict";var Rc=/["'&<>]/;yi.exports=Ic;function Ic(e){var t=""+e,r=Rc.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i{(function(t,r){typeof Xt=="object"&&typeof Sn=="object"?Sn.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Xt=="object"?Xt.ClipboardJS=r():t.ClipboardJS=r()})(Xt,function(){return(function(){var e={686:(function(n,o,i){"use strict";i.d(o,{default:function(){return ja}});var a=i(279),s=i.n(a),c=i(370),l=i.n(c),p=i(817),u=i.n(p);function f(K){try{return document.execCommand(K)}catch(C){return!1}}var d=function(C){var A=u()(C);return f("cut"),A},h=d;function b(K){var C=document.documentElement.getAttribute("dir")==="rtl",A=document.createElement("textarea");A.style.fontSize="12pt",A.style.border="0",A.style.padding="0",A.style.margin="0",A.style.position="absolute",A.style[C?"right":"left"]="-9999px";var W=window.pageYOffset||document.documentElement.scrollTop;return A.style.top="".concat(W,"px"),A.setAttribute("readonly",""),A.value=K,A}var y=function(C,A){var W=b(C);A.container.appendChild(W);var q=u()(W);return f("copy"),W.remove(),q},_=function(C){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},W="";return typeof C=="string"?W=y(C,A):C instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(C==null?void 0:C.type)?W=y(C.value,A):(W=u()(C),f("copy")),W},L=_;function g(K){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(A){return typeof A}:g=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},g(K)}var oe=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=C.action,W=A===void 0?"copy":A,q=C.container,X=C.target,ze=C.text;if(W!=="copy"&&W!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(X!==void 0)if(X&&g(X)==="object"&&X.nodeType===1){if(W==="copy"&&X.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(W==="cut"&&(X.hasAttribute("readonly")||X.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(ze)return L(ze,{container:q});if(X)return W==="cut"?h(X):L(X,{container:q})},ce=oe;function O(K){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(A){return typeof A}:O=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},O(K)}function Q(K,C){if(!(K instanceof C))throw new TypeError("Cannot call a class as a function")}function re(K,C){for(var A=0;A0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof q.action=="function"?q.action:this.defaultAction,this.target=typeof q.target=="function"?q.target:this.defaultTarget,this.text=typeof q.text=="function"?q.text:this.defaultText,this.container=O(q.container)==="object"?q.container:document.body}},{key:"listenClick",value:function(q){var X=this;this.listener=l()(q,"click",function(ze){return X.onClick(ze)})}},{key:"onClick",value:function(q){var X=q.delegateTarget||q.currentTarget,ze=this.action(X)||"copy",nr=ce({action:ze,container:this.container,target:this.target(X),text:this.text(X)});this.emit(nr?"success":"error",{action:ze,text:nr,trigger:X,clearSelection:function(){X&&X.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(q){return Vr("action",q)}},{key:"defaultTarget",value:function(q){var X=Vr("target",q);if(X)return document.querySelector(X)}},{key:"defaultText",value:function(q){return Vr("text",q)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(q){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return L(q,X)}},{key:"cut",value:function(q){return h(q)}},{key:"isSupported",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],X=typeof q=="string"?[q]:q,ze=!!document.queryCommandSupported;return X.forEach(function(nr){ze=ze&&!!document.queryCommandSupported(nr)}),ze}}]),A})(s()),ja=Ia}),828:(function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,c){for(;s&&s.nodeType!==o;){if(typeof s.matches=="function"&&s.matches(c))return s;s=s.parentNode}}n.exports=a}),438:(function(n,o,i){var a=i(828);function s(p,u,f,d,h){var b=l.apply(this,arguments);return p.addEventListener(f,b,h),{destroy:function(){p.removeEventListener(f,b,h)}}}function c(p,u,f,d,h){return typeof p.addEventListener=="function"?s.apply(null,arguments):typeof f=="function"?s.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(b){return s(b,u,f,d,h)}))}function l(p,u,f,d){return function(h){h.delegateTarget=a(h.target,u),h.delegateTarget&&d.call(p,h)}}n.exports=c}),879:(function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}}),370:(function(n,o,i){var a=i(879),s=i(438);function c(f,d,h){if(!f&&!d&&!h)throw new Error("Missing required arguments");if(!a.string(d))throw new TypeError("Second argument must be a String");if(!a.fn(h))throw new TypeError("Third argument must be a Function");if(a.node(f))return l(f,d,h);if(a.nodeList(f))return p(f,d,h);if(a.string(f))return u(f,d,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function l(f,d,h){return f.addEventListener(d,h),{destroy:function(){f.removeEventListener(d,h)}}}function p(f,d,h){return Array.prototype.forEach.call(f,function(b){b.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(f,function(b){b.removeEventListener(d,h)})}}}function u(f,d,h){return s(document.body,f,d,h)}n.exports=c}),817:(function(n){function o(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var c=window.getSelection(),l=document.createRange();l.selectNodeContents(i),c.removeAllRanges(),c.addRange(l),a=c.toString()}return a}n.exports=o}),279:(function(n){function o(){}o.prototype={on:function(i,a,s){var c=this.e||(this.e={});return(c[i]||(c[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var c=this;function l(){c.off(i,l),a.apply(s,arguments)}return l._=a,this.on(i,l,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),c=0,l=s.length;for(c;c0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function G(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function ee(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n1||c(d,b)})},h&&(o[d]=h(o[d])))}function c(d,h){try{l(n[d](h))}catch(b){f(i[0][3],b)}}function l(d){d.value instanceof lt?Promise.resolve(d.value.v).then(p,u):f(i[0][2],d)}function p(d){c("next",d)}function u(d){c("throw",d)}function f(d,h){d(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Wn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Oe=="function"?Oe(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,c){a=e[i](a),o(s,c,a.done,a.value)})}}function o(i,a,s,c){Promise.resolve(c).then(function(l){i({value:l,done:s})},a)}}function F(e){return typeof e=="function"}function Ot(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var sr=Ot(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: +`+r.map(function(n,o){return o+1+") "+n.toString()}).join(` + `):"",this.name="UnsubscriptionError",this.errors=r}});function Je(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ke=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Oe(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(b){t={error:b}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var p=this.initialTeardown;if(F(p))try{p()}catch(b){i=b instanceof sr?b.errors:[b]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var f=Oe(u),d=f.next();!d.done;d=f.next()){var h=d.value;try{Dn(h)}catch(b){i=i!=null?i:[],b instanceof sr?i=ee(ee([],G(i)),G(b.errors)):i.push(b)}}}catch(b){n={error:b}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}}if(i)throw new sr(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Dn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Je(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Je(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();var Yr=Ke.EMPTY;function cr(e){return e instanceof Ke||e&&"closed"in e&&F(e.remove)&&F(e.add)&&F(e.unsubscribe)}function Dn(e){F(e)?e():e.unsubscribe()}var Ve={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var St={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Yr:(this.currentObservers=null,s.push(r),new Ke(function(){n.currentObservers=null,Je(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new j;return r.source=this,r},t.create=function(r,n){return new Qn(r,n)},t})(j);var Qn=(function(e){ie(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Yr},t})($);var Zr=(function(e){ie(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t})($);var zt={now:function(){return(zt.delegate||Date).now()},delegate:void 0};var Vt=(function(e){ie(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=zt);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,c=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),c=0;c0?e.prototype.schedule.call(this,r,n):(this.delay=n,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,n){return n>0||this.closed?e.prototype.execute.call(this,r,n):this._execute(r,n)},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.flush(this),0)},t})(kt);var eo=(function(e){ie(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(At);var rn=new eo(Zn);var to=(function(e){ie(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=_t.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var a=r.actions;n!=null&&n===r._scheduled&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==n&&(_t.cancelAnimationFrame(n),r._scheduled=void 0)},t})(kt);var ro=(function(e){ie(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n;r?n=r.id:(n=this._scheduled,this._scheduled=void 0);var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t})(At);var _e=new ro(to);var w=new j(function(e){return e.complete()});function ur(e){return e&&F(e.schedule)}function nn(e){return e[e.length-1]}function tt(e){return F(nn(e))?e.pop():void 0}function Pe(e){return ur(nn(e))?e.pop():void 0}function fr(e,t){return typeof nn(e)=="number"?e.pop():t}var Ct=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function mr(e){return F(e==null?void 0:e.then)}function dr(e){return F(e[Mt])}function hr(e){return Symbol.asyncIterator&&F(e==null?void 0:e[Symbol.asyncIterator])}function br(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Za(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var vr=Za();function gr(e){return F(e==null?void 0:e[vr])}function xr(e){return Vn(this,arguments,function(){var r,n,o,i;return ar(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,lt(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,lt(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,lt(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function yr(e){return F(e==null?void 0:e.getReader)}function V(e){if(e instanceof j)return e;if(e!=null){if(dr(e))return es(e);if(Ct(e))return ts(e);if(mr(e))return rs(e);if(hr(e))return no(e);if(gr(e))return ns(e);if(yr(e))return os(e)}throw br(e)}function es(e){return new j(function(t){var r=e[Mt]();if(F(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ts(e){return new j(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?S(function(o,i){return e(o,i,n)}):xe,ye(1),r?Ye(t):wo(function(){return new Ht}))}}function ln(e){return e<=0?function(){return w}:T(function(t,r){var n=[];t.subscribe(E(r,function(o){n.push(o),e=2,!0))}function he(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new $}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,c=s===void 0?!0:s;return function(l){var p,u,f,d=0,h=!1,b=!1,y=function(){u==null||u.unsubscribe(),u=void 0},_=function(){y(),p=f=void 0,h=b=!1},L=function(){var g=p;_(),g==null||g.unsubscribe()};return T(function(g,oe){d++,!b&&!h&&y();var ce=f=f!=null?f:r();oe.add(function(){d--,d===0&&!b&&!h&&(u=pn(L,c))}),ce.subscribe(oe),!p&&d>0&&(p=new Qe({next:function(O){return ce.next(O)},error:function(O){b=!0,y(),u=pn(_,o,O),ce.error(O)},complete:function(){h=!0,y(),u=pn(_,a),ce.complete()}}),V(g).subscribe(p))})(l)}}function pn(e,t){for(var r=[],n=2;ne.next(document)),e}function k(e,t=document){return Array.from(t.querySelectorAll(e))}function D(e,t=document){let r=be(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function be(e,t=document){return t.querySelector(e)||void 0}function nt(){var e,t,r,n;return(n=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?n:void 0}var Es=P(v(document.body,"focusin"),v(document.body,"focusout")).pipe(Ie(1),N(void 0),m(()=>nt()||document.body),J(1));function Pt(e){return Es.pipe(m(t=>e.contains(t)),ne())}function vt(e,t){let{matches:r}=matchMedia("(hover)");return I(()=>(r?P(v(e,"mouseenter").pipe(m(()=>!0)),v(e,"mouseleave").pipe(m(()=>!1))):P(v(e,"touchstart").pipe(m(()=>!0)),v(e,"touchend").pipe(m(()=>!1)),v(e,"touchcancel").pipe(m(()=>!1)))).pipe(t?Dt(o=>He(+!o*t)):xe,N(!0,e.matches(":hover"))))}function So(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)So(e,r)}function M(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)So(n,o);return n}function Lo(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function Ge(e){let t=M("script",{src:e});return I(()=>(document.head.appendChild(t),P(v(t,"load"),v(t,"error").pipe(x(()=>Er(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(m(()=>{}),z(()=>document.head.removeChild(t)),ye(1))))}function Mo(e){let t=M("link",{rel:"stylesheet",href:e});return document.head.appendChild(t),P(v(t,"load"),v(t,"error").pipe(x(()=>Er(()=>new ReferenceError(`Invalid styles: ${e}`))))).pipe(m(()=>{}),ye(1))}var _o=new $,Ts=I(()=>typeof ResizeObserver=="undefined"?Ge("https://unpkg.com/resize-observer-polyfill"):U(void 0)).pipe(m(()=>new ResizeObserver(e=>e.forEach(t=>_o.next(t)))),x(e=>P(Re,U(e)).pipe(z(()=>e.disconnect()))),J(1));function Ee(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Me(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return Ts.pipe(H(r=>r.observe(t)),x(r=>_o.pipe(S(n=>n.target===t),z(()=>r.unobserve(t)))),m(()=>Ee(e)),N(Ee(e)))}function Bt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function ko(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}function Ao(e){let t=[],r=e.parentElement;for(;r;)(e.clientWidth>r.clientWidth||e.clientHeight>r.clientHeight)&&t.push(r),r=(e=r).parentElement;return t.length===0&&t.push(document.documentElement),t}function ot(e){return{x:e.offsetLeft,y:e.offsetTop}}function Co(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function Ho(e){return P(v(window,"load"),v(window,"resize")).pipe(We(0,_e),m(()=>ot(e)),N(ot(e)))}function _r(e){return{x:e.scrollLeft,y:e.scrollTop}}function gt(e){return P(v(e,"scroll"),v(window,"scroll"),v(window,"resize")).pipe(We(0,_e),m(()=>_r(e)),N(_r(e)))}var $o=new $,Os=I(()=>U(new IntersectionObserver(e=>{for(let t of e)$o.next(t)},{threshold:0}))).pipe(x(e=>P(Re,U(e)).pipe(z(()=>e.disconnect()))),J(1));function it(e){return Os.pipe(H(t=>t.observe(e)),x(t=>$o.pipe(S(({target:r})=>r===e),z(()=>t.unobserve(e)),m(({isIntersecting:r})=>r))))}var ei=ct(bn());function Ac(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function Cc(){return P(v(window,"compositionstart").pipe(m(()=>!0)),v(window,"compositionend").pipe(m(()=>!1))).pipe(N(!1))}function ti(){let e=v(window,"keydown").pipe(m(t=>({mode:(0,ei.isSearchHidden)()?"global":"search",type:t.key,meta:t.ctrlKey||t.metaKey,claim(){t.preventDefault(),t.stopPropagation()}})),S(({mode:t,type:r})=>{if(t==="global"){let n=nt();if(typeof n!="undefined")return!Ac(n,r)}return!0}),he());return Cc().pipe(x(t=>t?w:e))}function Ae(){return new URL(location.href)}function Xe(e,t=!1){if(B("navigation.instant")&&!t){let r=M("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function ri(){return new $}function ni(){return location.hash.slice(1)}function oi(e){let t=M("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function vn(e){return P(v(window,"hashchange"),e).pipe(m(ni),N(ni()),S(t=>t.length>0),m(decodeURIComponent),J(1))}function ii(e){return vn(e).pipe(m(t=>be(`[id="${t}"]`)),S(t=>typeof t!="undefined"))}function Jt(e){let t=matchMedia(e);return Or(r=>t.addListener(()=>r(t.matches))).pipe(N(t.matches))}function ai(){let e=matchMedia("print");return P(v(window,"beforeprint").pipe(m(()=>!0)),v(window,"afterprint").pipe(m(()=>!1))).pipe(N(e.matches))}function gn(e,t){return e.pipe(x(r=>r?t():w))}function xn(e,t){return new j(r=>{let n=new XMLHttpRequest;return n.open("GET",`${e}`),n.responseType="blob",n.addEventListener("load",()=>{n.status>=200&&n.status<300?(r.next(n.response),r.complete()):r.error(new Error(n.statusText))}),n.addEventListener("error",()=>{r.error(new Error("Network error"))}),n.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(n.addEventListener("progress",o=>{var i;if(o.lengthComputable)t.progress$.next(o.loaded/o.total*100);else{let a=(i=n.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(o.loaded/+a*100)}}),t.progress$.next(5)),n.send(),()=>n.abort()})}function qe(e,t){return xn(e,t).pipe(x(r=>r.text()),m(r=>JSON.parse(r)),J(1))}function Rr(e,t){let r=new DOMParser;return xn(e,t).pipe(x(n=>n.text()),m(n=>r.parseFromString(n,"text/html")),J(1))}function si(e,t){let r=new DOMParser;return xn(e,t).pipe(x(n=>n.text()),m(n=>r.parseFromString(n,"text/xml")),J(1))}var yn={drawer:D("[data-md-toggle=drawer]"),search:D("[data-md-toggle=search]")};function wn(e,t){yn[e].checked!==t&&yn[e].click()}function Ir(e){let t=yn[e];return v(t,"change").pipe(m(()=>t.checked),N(t.checked))}function ci(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function li(){return P(v(window,"scroll",{passive:!0}),v(window,"resize",{passive:!0})).pipe(m(ci),N(ci()))}function pi(){return{width:innerWidth,height:innerHeight}}function ui(){return v(window,"resize",{passive:!0}).pipe(m(pi),N(pi()))}function fi(){return Z([li(),ui()]).pipe(m(([e,t])=>({offset:e,size:t})),J(1))}function jr(e,{viewport$:t,header$:r}){let n=t.pipe(pe("size")),o=Z([n,r]).pipe(m(()=>ot(e)));return Z([r,t,o]).pipe(m(([{height:i},{offset:a,size:s},{x:c,y:l}])=>({offset:{x:a.x-c,y:a.y-l+i},size:s})))}var Hc=D("#__config"),It=JSON.parse(Hc.textContent);It.base=`${new URL(It.base,Ae())}`;function Ce(){return It}function B(e){return It.features.includes(e)}function wt(e,t){return typeof t!="undefined"?It.translations[e].replace("#",t.toString()):It.translations[e]}function Ze(e,t=document){return D(`[data-md-component=${e}]`,t)}function ve(e,t=document){return k(`[data-md-component=${e}]`,t)}function $c(e){let t=D(".md-typeset > :first-child",e);return v(t,"click",{once:!0}).pipe(m(()=>D(".md-typeset",e)),m(r=>({hash:__md_hash(r.innerHTML)})))}function mi(e){if(!B("announce.dismiss")||!e.childElementCount)return w;if(!e.hidden){let t=D(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return I(()=>{let t=new $;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),$c(e).pipe(H(r=>t.next(r)),z(()=>t.complete()),m(r=>R({ref:e},r)))})}function Pc(e,{target$:t}){return t.pipe(m(r=>({hidden:r!==e})))}function di(e,t){let r=new $;return r.subscribe(({hidden:n})=>{e.hidden=n}),Pc(e,t).pipe(H(n=>r.next(n)),z(()=>r.complete()),m(n=>R({ref:e},n)))}function En(e,t){return t==="inline"?M("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},M("div",{class:"md-tooltip__inner md-typeset"})):M("div",{class:"md-tooltip",id:e,role:"tooltip"},M("div",{class:"md-tooltip__inner md-typeset"}))}function Fr(...e){return M("div",{class:"md-tooltip2",role:"dialog"},M("div",{class:"md-tooltip2__inner md-typeset"},e))}function hi(...e){return M("div",{class:"md-tooltip2",role:"tooltip"},M("div",{class:"md-tooltip2__inner md-typeset"},e))}function bi(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return M("aside",{class:"md-annotation",tabIndex:0},En(t),M("a",{href:r,class:"md-annotation__index",tabIndex:-1},M("span",{"data-md-annotation-id":e})))}else return M("aside",{class:"md-annotation",tabIndex:0},En(t),M("span",{class:"md-annotation__index",tabIndex:-1},M("span",{"data-md-annotation-id":e})))}function vi(e){return M("button",{class:"md-code__button",title:wt("clipboard.copy"),"data-clipboard-target":`#${e} > code`,"data-md-type":"copy"})}function gi(){return M("button",{class:"md-code__button",title:"Toggle line selection","data-md-type":"select"})}function xi(){return M("nav",{class:"md-code__nav"})}var jc=ct(Tn());function wi(e){return M("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>M("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Lo(r):r)))}function On(e){let t=`tabbed-control tabbed-control--${e}`;return M("div",{class:t,hidden:!0},M("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function Ei(e){return M("div",{class:"md-typeset__scrollwrap"},M("div",{class:"md-typeset__table"},e))}function Fc(e){var n;let t=Ce(),r=new URL(`../${e.version}/`,t.base);return M("li",{class:"md-version__item"},M("a",{href:`${r}`,class:"md-version__link"},e.title,((n=t.version)==null?void 0:n.alias)&&e.aliases.length>0&&M("span",{class:"md-version__alias"},e.aliases[0])))}function Ti(e,t){var n;let r=Ce();return e=e.filter(o=>{var i;return!((i=o.properties)!=null&&i.hidden)}),M("div",{class:"md-version"},M("button",{class:"md-version__current","aria-label":wt("select.version")},t.title,((n=r.version)==null?void 0:n.alias)&&t.aliases.length>0&&M("span",{class:"md-version__alias"},t.aliases[0])),M("ul",{class:"md-version__list"},e.map(Fc)))}var Uc=0;function zc(e,t=250){let r=Z([Pt(e),vt(e,t)]).pipe(m(([o,i])=>o||i),ne()),n=I(()=>Ao(e)).pipe(te(gt),Kt(1),De(r),m(()=>Co(e)));return r.pipe(Nt(o=>o),x(()=>Z([r,n])),m(([o,i])=>({active:o,offset:i})),he())}function Qt(e,t,r=250){let{content$:n,viewport$:o}=t,i=`__tooltip2_${Uc++}`;return I(()=>{let a=new $,s=new Zr(!1);a.pipe(ue(),de(!1)).subscribe(s);let c=s.pipe(Dt(p=>He(+!p*250,rn)),ne(),x(p=>p?n:w),H(p=>p.id=i),he());Z([a.pipe(m(({active:p})=>p)),c.pipe(x(p=>vt(p,250)),N(!1))]).pipe(m(p=>p.some(u=>u))).subscribe(s);let l=s.pipe(S(p=>p),ae(c,o),m(([p,u,{size:f}])=>{let d=e.getBoundingClientRect(),h=d.width/2;if(u.role==="tooltip")return{x:h,y:8+d.height};if(d.y>=f.height/2){let{height:b}=Ee(u);return{x:h,y:-16-b}}else return{x:h,y:16+d.height}}));return Z([c,a,l]).subscribe(([p,{offset:u},f])=>{p.style.setProperty("--md-tooltip-host-x",`${u.x}px`),p.style.setProperty("--md-tooltip-host-y",`${u.y}px`),p.style.setProperty("--md-tooltip-x",`${f.x}px`),p.style.setProperty("--md-tooltip-y",`${f.y}px`),p.classList.toggle("md-tooltip2--top",f.y<0),p.classList.toggle("md-tooltip2--bottom",f.y>=0)}),s.pipe(S(p=>p),ae(c,(p,u)=>u),S(p=>p.role==="tooltip")).subscribe(p=>{let u=Ee(D(":scope > *",p));p.style.setProperty("--md-tooltip-width",`${u.width}px`),p.style.setProperty("--md-tooltip-tail","0px")}),s.pipe(ne(),Le(_e),ae(c)).subscribe(([p,u])=>{u.classList.toggle("md-tooltip2--active",p)}),Z([s.pipe(S(p=>p)),c]).subscribe(([p,u])=>{u.role==="dialog"?(e.setAttribute("aria-controls",i),e.setAttribute("aria-haspopup","dialog")):e.setAttribute("aria-describedby",i)}),s.pipe(S(p=>!p)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),zc(e,r).pipe(H(p=>a.next(p)),z(()=>a.complete()),m(p=>R({ref:e},p)))})}function Fe(e,{viewport$:t},r=document.body){return Qt(e,{content$:new j(n=>{let o=e.title,i=hi(o);return n.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",o)}}),viewport$:t},0)}function Vc(e,t){let r=I(()=>Z([Ho(e),gt(t)])).pipe(m(([{x:n,y:o},i])=>{let{width:a,height:s}=Ee(e);return{x:n-i.x+a/2,y:o-i.y+s/2}}));return Pt(e).pipe(x(n=>r.pipe(m(o=>({active:n,offset:o})),ye(+!n||1/0))))}function Oi(e,t,{target$:r}){let[n,o]=Array.from(e.children);return I(()=>{let i=new $,a=i.pipe(ue(),de(!0));return i.subscribe({next({offset:s}){e.style.setProperty("--md-tooltip-x",`${s.x}px`),e.style.setProperty("--md-tooltip-y",`${s.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),it(e).pipe(Y(a)).subscribe(s=>{e.toggleAttribute("data-md-visible",s)}),P(i.pipe(S(({active:s})=>s)),i.pipe(Ie(250),S(({active:s})=>!s))).subscribe({next({active:s}){s?e.prepend(n):n.remove()},complete(){e.prepend(n)}}),i.pipe(We(16,_e)).subscribe(({active:s})=>{n.classList.toggle("md-tooltip--active",s)}),i.pipe(Kt(125,_e),S(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:s})=>s)).subscribe({next(s){s?e.style.setProperty("--md-tooltip-0",`${-s}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),v(o,"click").pipe(Y(a),S(s=>!(s.metaKey||s.ctrlKey))).subscribe(s=>{s.stopPropagation(),s.preventDefault()}),v(o,"mousedown").pipe(Y(a),ae(i)).subscribe(([s,{active:c}])=>{var l;if(s.button!==0||s.metaKey||s.ctrlKey)s.preventDefault();else if(c){s.preventDefault();let p=e.parentElement.closest(".md-annotation");p instanceof HTMLElement?p.focus():(l=nt())==null||l.blur()}}),r.pipe(Y(a),S(s=>s===n),dt(125)).subscribe(()=>e.focus()),Vc(e,t).pipe(H(s=>i.next(s)),z(()=>i.complete()),m(s=>R({ref:e},s)))})}function Wc(e){let t=Ce();if(e.tagName!=="CODE")return[e];let r=[".c",".c1",".cm"];if(t.annotate){let n=e.closest("[class|=language]");if(n)for(let o of Array.from(n.classList)){if(!o.startsWith("language-"))continue;let[,i]=o.split("-");i in t.annotate&&r.push(...t.annotate[i])}}return k(r.join(", "),e)}function Dc(e){let t=[];for(let r of Wc(e)){let n=[],o=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=o.nextNode();i;i=o.nextNode())n.push(i);for(let i of n){let a;for(;a=/(\(\d+\))(!)?/.exec(i.textContent);){let[,s,c]=a;if(typeof c=="undefined"){let l=i.splitText(a.index);i=l.splitText(s.length),t.push(l)}else{i.textContent=s,t.push(i);break}}}}return t}function Si(e,t){t.append(...Array.from(e.childNodes))}function Ur(e,t,{target$:r,print$:n}){let o=t.closest("[id]"),i=o==null?void 0:o.id,a=new Map;for(let s of Dc(t)){let[,c]=s.textContent.match(/\((\d+)\)/);be(`:scope > li:nth-child(${c})`,e)&&(a.set(c,bi(c,i)),s.replaceWith(a.get(c)))}return a.size===0?w:I(()=>{let s=new $,c=s.pipe(ue(),de(!0)),l=[];for(let[p,u]of a)l.push([D(".md-typeset",u),D(`:scope > li:nth-child(${p})`,e)]);return n.pipe(Y(c)).subscribe(p=>{e.hidden=!p,e.classList.toggle("md-annotation-list",p);for(let[u,f]of l)p?Si(u,f):Si(f,u)}),P(...[...a].map(([,p])=>Oi(p,t,{target$:r}))).pipe(z(()=>s.complete()),he())})}function Li(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Li(t)}}function Mi(e,t){return I(()=>{let r=Li(e);return typeof r!="undefined"?Ur(r,e,t):w})}var ki=ct(Ln());var Nc=0,_i=P(v(window,"keydown").pipe(m(()=>!0)),P(v(window,"keyup"),v(window,"contextmenu")).pipe(m(()=>!1))).pipe(N(!1),J(1));function Ai(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Ai(t)}}function qc(e){return Me(e).pipe(m(({width:t})=>({scrollable:Bt(e).width>t})),pe("scrollable"))}function Ci(e,t){let{matches:r}=matchMedia("(hover)"),n=I(()=>{let o=new $,i=o.pipe(ln(1));o.subscribe(({scrollable:d})=>{d&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let a=[],s=e.closest("pre"),c=s.closest("[id]"),l=c?c.id:Nc++;s.id=`__code_${l}`;let p=[],u=e.closest(".highlight");if(u instanceof HTMLElement){let d=Ai(u);if(typeof d!="undefined"&&(u.classList.contains("annotate")||B("content.code.annotate"))){let h=Ur(d,e,t);p.push(Me(u).pipe(Y(i),m(({width:b,height:y})=>b&&y),ne(),x(b=>b?h:w)))}}let f=k(":scope > span[id]",e);if(f.length&&(e.classList.add("md-code__content"),e.closest(".select")||B("content.code.select")&&!e.closest(".no-select"))){let d=+f[0].id.split("-").pop(),h=gi();a.push(h),B("content.tooltips")&&p.push(Fe(h,{viewport$}));let b=v(h,"click").pipe(qt(O=>!O,!1),H(()=>h.blur()),he());b.subscribe(O=>{h.classList.toggle("md-code__button--active",O)});let y=le(f).pipe(te(O=>vt(O).pipe(m(Q=>[O,Q]))));b.pipe(x(O=>O?y:w)).subscribe(([O,Q])=>{let re=be(".hll.select",O);if(re&&!Q)re.replaceWith(...Array.from(re.childNodes));else if(!re&&Q){let fe=document.createElement("span");fe.className="hll select",fe.append(...Array.from(O.childNodes).slice(1)),O.append(fe)}});let _=le(f).pipe(te(O=>v(O,"mousedown").pipe(H(Q=>Q.preventDefault()),m(()=>O)))),L=b.pipe(x(O=>O?_:w),ae(_i),m(([O,Q])=>{var fe;let re=f.indexOf(O)+d;if(Q===!1)return[re,re];{let Te=k(".hll",e).map(Ue=>f.indexOf(Ue.parentElement)+d);return(fe=window.getSelection())==null||fe.removeAllRanges(),[Math.min(re,...Te),Math.max(re,...Te)]}})),g=vn(w).pipe(S(O=>O.startsWith(`__codelineno-${l}-`)));g.subscribe(O=>{let[,,Q]=O.split("-"),re=Q.split(":").map(Te=>+Te-d+1);re.length===1&&re.push(re[0]);for(let Te of k(".hll:not(.select)",e))Te.replaceWith(...Array.from(Te.childNodes));let fe=f.slice(re[0]-1,re[1]);for(let Te of fe){let Ue=document.createElement("span");Ue.className="hll",Ue.append(...Array.from(Te.childNodes).slice(1)),Te.append(Ue)}}),g.pipe(ye(1),Le(me)).subscribe(O=>{if(O.includes(":")){let Q=document.getElementById(O.split(":")[0]);Q&&setTimeout(()=>{let re=Q,fe=-64;for(;re!==document.body;)fe+=re.offsetTop,re=re.offsetParent;window.scrollTo({top:fe})},1)}});let ce=le(k('a[href^="#__codelineno"]',u)).pipe(te(O=>v(O,"click").pipe(H(Q=>Q.preventDefault()),m(()=>O)))).pipe(Y(i),ae(_i),m(([O,Q])=>{let fe=+D(`[id="${O.hash.slice(1)}"]`).parentElement.id.split("-").pop();if(Q===!1)return[fe,fe];{let Te=k(".hll",e).map(Ue=>+Ue.parentElement.id.split("-").pop());return[Math.min(fe,...Te),Math.max(fe,...Te)]}}));P(L,ce).subscribe(O=>{let Q=`#__codelineno-${l}-`;O[0]===O[1]?Q+=O[0]:Q+=`${O[0]}:${O[1]}`,history.replaceState({},"",Q),window.dispatchEvent(new HashChangeEvent("hashchange",{newURL:window.location.origin+window.location.pathname+Q,oldURL:window.location.href}))})}if(ki.default.isSupported()&&(e.closest(".copy")||B("content.code.copy")&&!e.closest(".no-copy"))){let d=vi(s.id);a.push(d),B("content.tooltips")&&p.push(Fe(d,{viewport$}))}if(a.length){let d=xi();d.append(...a),s.insertBefore(d,e)}return qc(e).pipe(H(d=>o.next(d)),z(()=>o.complete()),m(d=>R({ref:e},d)),ht(P(...p).pipe(Y(i))))});return B("content.lazy")?it(e).pipe(S(o=>o),ye(1),x(()=>n)):n}function Kc(e,{target$:t,print$:r}){let n=!0;return P(t.pipe(m(o=>o.closest("details:not([open])")),S(o=>e===o),m(()=>({action:"open",reveal:!0}))),r.pipe(S(o=>o||!n),H(()=>n=e.open),m(o=>({action:o?"open":"close"}))))}function Hi(e,t){return I(()=>{let r=new $;return r.subscribe(({action:n,reveal:o})=>{e.toggleAttribute("open",n==="open"),o&&e.scrollIntoView()}),Kc(e,t).pipe(H(n=>r.next(n)),z(()=>r.complete()),m(n=>R({ref:e},n)))})}var $i,Pi,Mn={},Ri=!1;function Ii(e,t){return t()?Ge(e).pipe(se(()=>U(void 0)),m(()=>{})):U(void 0)}function Bc(e){if(!e)return[];if(e.startsWith("[")&&e.endsWith("]"))try{let t=JSON.parse(e);if(Array.isArray(t))return t.filter(r=>typeof r=="string")}catch(t){}return e.split(/[,\s]+/).map(t=>t.trim()).filter(t=>t.length>0)}function Yc(e){var i,a,s;let t=e.querySelector("[id$='--editor']"),r=e.querySelector("[id$='--run']"),n=e.querySelector("[id$='--clear']"),o=e.querySelector("[id$='--output']");if(!t||!r||!n||!o)throw new Error("Invalid Pyodide structure");return{root:e,editor:t,output:o,run:r,clear:n,source:(a=(i=t.textContent)==null?void 0:i.trimEnd())!=null?a:"",session:(s=e.dataset.session)!=null?s:"default",install:Bc(e.dataset.install),minLines:typeof e.dataset.minlines=="undefined"?0:parseInt(e.dataset.minlines),maxLines:typeof e.dataset.maxlines=="undefined"?1/0:parseInt(e.dataset.maxlines)}}function Gc(e,t){return e in Mn||(Mn[e]=t.globals.get("dict")()),Mn[e]}function Zt(e,t){e.textContent=t}function _n(e){e.textContent=""}function Jc(){return new Promise(e=>requestAnimationFrame(()=>e()))}function Qc(e,t,r,n){return ge(this,null,function*(){let o=[];e.setStdout({batched(i){o.push(i),Zt(r,`${o.join(` +`)} +`)}});try{let i=yield e.runPythonAsync(t.getValue(),{globals:Gc(n,e)});typeof i!="undefined"&&i!==null&&(o.push(String(i)),Zt(r,`${o.join(` +`)} +`))}catch(i){o.push(String(i)),Zt(r,`${o.join(` +`)} +`)}})}function Xc(){return Pi||(Pi=Ii("https://unpkg.com/pyodide@314.0.2/pyodide.js",()=>typeof loadPyodide=="undefined"||loadPyodide instanceof Element).pipe(m(()=>ge(null,null,function*(){try{let e=yield loadPyodide({indexURL:"https://cdn.jsdelivr.net/pyodide/v314.0.2/full/"});return yield e.loadPackage("micropip"),e}catch(e){return null}})),J(1))),Pi}function Zc(){Ri||(ace.define("ace/theme/zensical",["require","exports","module","ace/lib/dom"],(e,t)=>{t.isDark=!1,t.cssClass="ace-zensical",t.cssText=""}),Ri=!0)}function ji(e){return $i||($i=Ii("https://unpkg.com/ace-builds@1.44.0/src-noconflict/ace.js",()=>typeof ace=="undefined"||ace instanceof Element).pipe(J(1))),new j(t=>{let r=!0,n,o,i=Yc(e);i.root.setAttribute("data-md-exec-state","ready");let a=()=>_n(i.output),s=()=>ge(null,null,function*(){return o||(o=ge(null,null,function*(){if(i.root.setAttribute("data-md-exec-state","loading"),Zt(i.output,"Initializing..."),yield Jc(),!r)return null;let p=yield Tr(Xc()).then(u=>u);if(!r||!p)return null;if(i.install.length>0)try{let u=p.pyimport("micropip");for(let f of i.install)yield u.install(f)}catch(u){return _n(i.output),Zt(i.output,`Could not install one or more packages: ${i.install.join(", ")} +${String(u)}`),i.root.setAttribute("data-md-exec-state","error"),null}return r?(_n(i.output),i.root.setAttribute("data-md-exec-state","ready"),p):null})),o}),c=()=>{ge(null,null,function*(){let p=yield s();!r||!p||!n||Qc(p,n,i.output,i.session)})},l=p=>{p.ctrlKey&&p.key.toLowerCase()==="enter"&&(p.preventDefault(),i.run.click())};return i.run.addEventListener("click",c),i.clear.addEventListener("click",a),i.root.addEventListener("keydown",l),ge(null,null,function*(){yield Tr($i),r&&(Zc(),i.editor.textContent="",n=ace.edit(i.editor),n.setTheme("ace/theme/zensical"),n.session.setMode("ace/mode/python"),n.setOption("fontFamily","var(--md-code-font)"),n.setOption("minLines",i.minLines),n.setOption("maxLines",i.maxLines),n.session.setValue(i.source),n.gotoLine(1,0,!1),n.clearSelection(),n.resize(),n.renderer.updateFull())}),t.next({ref:i.root}),()=>{r=!1,i.run.removeEventListener("click",c),i.clear.removeEventListener("click",a),i.root.removeEventListener("keydown",l),n==null||n.destroy(),i.root.removeAttribute("data-md-exec-state")}})}var Fi;function el(){return typeof GLightbox=="undefined"||GLightbox instanceof Element?Ge("https://unpkg.com/glightbox@3/dist/js/glightbox.min.js").pipe(se(()=>w),m(()=>{})):U(void 0)}function tl(){return Mo("https://unpkg.com/glightbox@3/dist/css/glightbox.min.css").pipe(se(()=>w),m(()=>{}))}function Ui(e){return Fi||(Fi=el().pipe(m(()=>new GLightbox(R({touchNavigation:!0,loop:!1,zoomable:!0,draggable:!0,openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",onOpen:()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}},typeof GLightboxOptions!="undefined"?GLightboxOptions:{}))),J(1))),tl().pipe(x(()=>Fi),x(t=>(t.reload(),e.map(r=>({ref:r})))))}var zi=0,Vi=new Map;function rl(e){let t=document.createElement("h3");t.innerHTML=e.innerHTML;let r=[t],n=e.nextElementSibling;for(;n&&!(n instanceof HTMLHeadingElement);)r.push(n.cloneNode(!0)),n=n.nextElementSibling;return r}function nl(e,t){for(let r of k("[href], [src]",e))for(let n of["href","src"]){let o=r.getAttribute(n);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){r[n]=new URL(r.getAttribute(n),t).toString();break}}for(let r of k("[name^=__], [for]",e))for(let n of["id","for","name"]){let o=r.getAttribute(n);o&&r.setAttribute(n,`${o}$preview_${zi}`)}return zi++,U(e)}function ol(e){let t=Vi.get(e.toString());return t?U(t):Rr(e).pipe(x(r=>nl(r,e)),m(r=>(Vi.set(e.toString(),r),r)))}function Wi(e,t){let{sitemap$:r}=t;if(!(e instanceof HTMLAnchorElement))return w;if(!(B("navigation.instant.preview")||e.hasAttribute("data-preview")))return w;e.removeAttribute("title");let n=Z([Pt(e),vt(e).pipe(we(1))]).pipe(m(([i,a])=>i||a),ne(),S(i=>i));return ft([r,n]).pipe(x(([i])=>{let a=new URL(e.href);return a.search=a.hash="",i.has(`${a}`)?U(a):w}),x(i=>ol(i)),x(i=>{let a=e.hash?`article [id="${decodeURIComponent(e.hash.slice(1))}"]`:"article h1",s=be(a,i);return typeof s=="undefined"?w:U(rl(s))})).pipe(x(i=>{let a=new j(s=>{let c=Fr(...i);return s.next(c),document.body.append(c),()=>c.remove()});return Qt(e,R({content$:a},t))}))}var Di=".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.marker{fill:var(--md-mermaid-edge-color);stroke:var(--md-mermaid-edge-color)}.edgeLabel .label rect{fill:#0000}.flowchartTitleText{fill:var(--md-mermaid-label-fg-color)}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel p,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel p{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color)}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}.classDiagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs marker.marker.composition.class path,defs marker.marker.dependency.class path,defs marker.marker.extension.class path{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs marker.marker.aggregation.class path{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}.statediagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}a .nodeLabel{text-decoration:underline}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs [id$=-barbEnd]{fill:var(--md-mermaid-edge-color);stroke:var(--md-mermaid-edge-color)}[id^=entity] path,[id^=entity] rect{fill:var(--md-default-bg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs .marker.oneOrMore.er *,defs .marker.onlyOne.er *,defs .marker.zeroOrMore.er *,defs .marker.zeroOrOne.er *{stroke:var(--md-mermaid-edge-color)!important}text:not([class]):last-child{fill:var(--md-mermaid-label-fg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}.actor-line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan,.sectionTitle{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}[id$=-arrowhead] path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}[id$=-sequencenumber],defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}[class^=activation]{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-label-fg-color);stroke-width:1.5px}";var kn,al=0;function sl(){return typeof mermaid=="undefined"||mermaid instanceof Element?Ge("https://unpkg.com/mermaid@11/dist/mermaid.min.js"):U(void 0)}function Ni(e){return e.classList.remove("mermaid"),kn||(kn=sl().pipe(H(()=>mermaid.initialize({startOnLoad:!1,themeCSS:Di,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),m(()=>{}),J(1))),kn.subscribe(()=>ge(null,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${al++}`,r=M("div",{class:"mermaid"}),n=e.textContent,{svg:o,fn:i}=yield mermaid.render(t,n),a=r.attachShadow({mode:"closed"});a.innerHTML=o,e.replaceWith(r),i==null||i(a)})),kn.pipe(m(()=>({ref:e})))}var qi=M("table");function Ki(e){return e.replaceWith(qi),qi.replaceWith(Ei(e)),U({ref:e})}function cl(e){let t=e.find(r=>r.checked)||e[0];return P(...e.map(r=>v(r,"change").pipe(m(()=>D(`label[for="${r.id}"]`))))).pipe(N(D(`label[for="${t.id}"]`)),m(r=>({active:r})))}function Bi(e,{viewport$:t,target$:r}){let n=D(".tabbed-labels",e),o=k(":scope > input",e),i=On("prev");e.append(i);let a=On("next");return e.append(a),I(()=>{let s=new $,c=s.pipe(ue(),de(!0));Z([s,Me(e),it(e)]).pipe(Y(c),We(1,_e)).subscribe({next([{active:l},p]){let u=ot(l),{width:f}=Ee(l);e.style.setProperty("--md-indicator-x",`${u.x}px`),e.style.setProperty("--md-indicator-width",`${f}px`);let d=_r(n);(u.xd.x+p.width)&&n.scrollTo({left:Math.max(0,u.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),Z([gt(n),Me(n)]).pipe(Y(c)).subscribe(([l,p])=>{let u=Bt(n);i.hidden=l.x<16,a.hidden=l.x>u.width-p.width-16}),P(v(i,"click").pipe(m(()=>-1)),v(a,"click").pipe(m(()=>1))).pipe(Y(c)).subscribe(l=>{let{width:p}=Ee(n);n.scrollBy({left:p*l,behavior:"smooth"})}),r.pipe(Y(c),S(l=>o.includes(l))).subscribe(l=>l.click()),n.classList.add("tabbed-labels--linked");for(let l of o){let p=D(`label[for="${l.id}"]`);p.replaceChildren(M("a",{href:`#${p.htmlFor}`,tabIndex:-1},...Array.from(p.childNodes))),v(p.firstElementChild,"click").pipe(Y(c),S(u=>!(u.metaKey||u.ctrlKey)),H(u=>{u.preventDefault(),u.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${p.htmlFor}`),p.click()})}return B("content.tabs.link")&&s.pipe(we(1),ae(t)).subscribe(([{active:l},{offset:p}])=>{let u=l.innerText.trim();if(l.hasAttribute("data-md-switching"))l.removeAttribute("data-md-switching");else{let f=e.offsetTop-p.y;for(let h of k("[data-tabs]"))for(let b of k(":scope > input",h)){let y=D(`label[for="${b.id}"]`);if(y!==l&&y.innerText.trim()===u){y.setAttribute("data-md-switching",""),b.click();break}}window.scrollTo({top:e.offsetTop-f});let d=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([u,...d])])}}),s.pipe(Y(c)).subscribe(()=>{for(let l of k("audio, video",e))l.offsetWidth&&l.autoplay?l.play().catch(()=>{}):l.pause()}),cl(o).pipe(H(l=>s.next(l)),z(()=>s.complete()),m(l=>R({ref:e},l)))}).pipe(ut(me))}function Yi(e,t){let{viewport$:r,target$:n,print$:o}=t;return P(...k(".annotate:not(.highlight)",e).map(i=>Mi(i,{target$:n,print$:o})),...k(".pyodide",e).map(i=>ji(i)),...k("pre:not(.mermaid) > code",e).filter(i=>!i.closest(".pyodide")).map(i=>Ci(i,{target$:n,print$:o})),...k("a",e).map(i=>Wi(i,t)),...k("pre.mermaid",e).map(i=>Ni(i)),...[k(".glightbox",e)].filter(i=>i.length>0).map(i=>Ui(i)),...k("table:not([class])",e).map(i=>Ki(i)),...k("details",e).map(i=>Hi(i,{target$:n,print$:o})),...k("[data-tabs]",e).map(i=>Bi(i,{viewport$:r,target$:n})),...k("[title]:not([data-preview])",e).filter(()=>B("content.tooltips")).map(i=>Fe(i,{viewport$:r})),...k(".footnote-ref",e).filter(()=>B("content.footnote.tooltips")).map(i=>Qt(i,{content$:new j(a=>{let s=new URL(i.href).hash.slice(1),c=Array.from(document.getElementById(s).cloneNode(!0).children),l=Fr(...c);return a.next(l),document.body.append(l),()=>l.remove()}),viewport$:r})))}function ll(e,{alert$:t}){return t.pipe(x(r=>P(U(!0),U(!1).pipe(dt(2e3))).pipe(m(n=>({message:r,active:n})))))}function Gi(e,t){let r=D(".md-typeset",e);return I(()=>{let n=new $;return n.subscribe(({message:o,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=o}),ll(e,t).pipe(H(o=>n.next(o)),z(()=>n.complete()),m(o=>R({ref:e},o)))})}function pl({viewport$:e}){if(!B("header.autohide"))return U(!1);let t=e.pipe(m(({offset:{y:o}})=>o),mt(2,1),m(([o,i])=>[oMath.abs(i-o.y)>100),m(([,[o]])=>o),ne()),n=Ir("search");return Z([e,n]).pipe(m(([{offset:o},i])=>o.y>400&&!i),ne(),x(o=>o?r:U(!1)),N(!1))}function Ji(e,t){return I(()=>Z([Me(e),pl(t)])).pipe(m(([{height:r},n])=>({height:r,hidden:n})),ne((r,n)=>r.height===n.height&&r.hidden===n.hidden),J(1))}function Qi(e,{viewport$:t,header$:r,main$:n}){return I(()=>{let o=new $,i=o.pipe(ue(),de(!0));o.pipe(pe("active"),De(r)).subscribe(([{active:s},{hidden:c}])=>{e.classList.toggle("md-header--shadow",s&&!c),e.hidden=c});let a=le(k("[title]",e)).pipe(S(()=>B("content.tooltips")),te(s=>Fe(s,{viewport$:t})));return n.subscribe(o),r.pipe(Y(i),m(s=>R({ref:e},s)),ht(a.pipe(Y(i))))})}function ul(e,{viewport$:t,header$:r}){return jr(e,{viewport$:t,header$:r}).pipe(m(({offset:{y:n}})=>{let{height:o}=Ee(e);return{active:o>0&&n>=o}}),pe("active"))}function Xi(e,t){return I(()=>{let r=new $;r.subscribe({next({active:o}){e.classList.toggle("md-header__title--active",o)},complete(){e.classList.remove("md-header__title--active")}});let n=be(".md-content h1");return typeof n=="undefined"?w:ul(n,t).pipe(H(o=>r.next(o)),z(()=>r.complete()),m(o=>R({ref:e},o)))})}function Zi(e,{viewport$:t,header$:r}){let n=r.pipe(m(({height:i})=>i),ne()),o=n.pipe(x(()=>Me(e).pipe(m(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),pe("bottom"))));return Z([n,o,t]).pipe(m(([i,{top:a,bottom:s},{offset:{y:c},size:{height:l}}])=>(l=Math.max(0,l-Math.max(0,a-c,i)-Math.max(0,l+c-s)),{offset:a-i,height:l,active:a-i<=c})),ne((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function fl(e){let t=__md_get("__palette")||{index:e.findIndex(n=>matchMedia(n.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return U(...e).pipe(te(n=>v(n,"change").pipe(m(()=>n))),N(e[r]),m(n=>({index:e.indexOf(n),color:{media:n.getAttribute("data-md-color-media"),scheme:n.getAttribute("data-md-color-scheme"),primary:n.getAttribute("data-md-color-primary"),accent:n.getAttribute("data-md-color-accent")}})),J(1))}function ea(e){let t=k("input",e),r=M("meta",{name:"theme-color"});document.head.appendChild(r);let n=M("meta",{name:"color-scheme"});document.head.appendChild(n);let o=Jt("(prefers-color-scheme: light)");return I(()=>{let i=new $;return i.subscribe(a=>{if(document.body.setAttribute("data-md-color-switching",""),a.color.media==="(prefers-color-scheme)"){let s=matchMedia("(prefers-color-scheme: light)"),c=document.querySelector(s.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");a.color.scheme=c.getAttribute("data-md-color-scheme"),a.color.primary=c.getAttribute("data-md-color-primary"),a.color.accent=c.getAttribute("data-md-color-accent")}for(let[s,c]of Object.entries(a.color))document.body.setAttribute(`data-md-color-${s}`,c);for(let s=0;sa.key==="Enter"),ae(i,(a,s)=>s)).subscribe(({index:a})=>{a=(a+1)%t.length,t[a].click(),t[a].focus()}),i.pipe(m(()=>{let a=Ze("header"),s=window.getComputedStyle(a);return n.content=s.colorScheme,s.backgroundColor.match(/\d+/g).map(c=>(+c).toString(16).padStart(2,"0")).join("")})).subscribe(a=>r.content=`#${a}`),i.pipe(Le(me)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")}),fl(t).pipe(Y(o.pipe(we(1))),bt(),H(a=>i.next(a)),z(()=>i.complete()),m(a=>R({ref:e},a)))})}function ta(e,{progress$:t}){return I(()=>{let r=new $;return r.subscribe(({value:n})=>{e.style.setProperty("--md-progress-value",`${n}`)}),t.pipe(H(n=>r.next({value:n})),z(()=>r.complete()),m(n=>({ref:e,value:n})))})}var Et=ct(bn());var ra='.m u{text-decoration:underline!important;text-decoration-style:wavy!important;text-decoration-thickness:1px!important}.p{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-backdrop)/var(--alpha-lighter));cursor:pointer;height:100%;pointer-events:auto;position:absolute;transition:opacity .25s;width:100%}.p.v{opacity:0;pointer-events:none;transition:opacity .35s}.r{align-items:center;background-color:initial;border:none;border-radius:var(--space-2);cursor:pointer;display:flex;flex-shrink:0;font-family:var(--font-family);height:36px;justify-content:center;outline:none;padding:0;position:relative;transition:background-color .25s,color .25s;width:36px;z-index:1}.r svg{stroke:rgb(var(--color-foreground));height:18px;opacity:.5;width:18px}.r:before{background-color:rgb(var(--color-background-subtle));border-radius:var(--border-radius-2);content:"";inset:0;opacity:0;position:absolute;transform:scale(.75);transition:transform 125ms,opacity 125ms;z-index:0}.r:hover:before{opacity:1;transform:scale(1)}.r.c{cursor:auto}.r.c:before{display:none}.n{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-background)/var(--alpha-light));border:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));border-radius:var(--space-3);box-shadow:0 0 60px #0000000d;display:flex;height:480px;overflow:hidden;pointer-events:auto;position:absolute;transition:transform .25s cubic-bezier(.16,1,.3,1),opacity .25s;width:640px}.n.l{opacity:0;pointer-events:none;transform:scale(1.1);transition:transform .25s .15s,opacity .15s}@media (max-width:680px){.n{border-radius:0;height:100%;width:100%}}.y{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;min-width:0}@keyframes d{0%{transform:scale(0)}50%{transform:scale(1.2)}to{transform:scale(1)}}.w{animation:d .25s ease-in-out;background:var(--color-highlight);border-radius:100%;color:#fff;font-size:8px;font-weight:700;height:12px;padding-top:1px;position:absolute;right:4px;top:4px;width:12px}.e{background-color:rgb(var(--color-background-subtle)/var(--alpha-lighter));border-left:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));flex-shrink:0;overflow-y:scroll;position:relative;transition:width .35s cubic-bezier(.16,1,.3,1),opacity .25s;width:200px}.e>*{transform:translate(0);transition:transform .25s cubic-bezier(.16,1,.3,1)}.e.l{opacity:0;width:0}.e.l>*{transform:translate(-48px)}@media (max-width:680px){.e{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-background-subtle)/var(--alpha-light));box-shadow:0 0 60px #00000026;height:100%;position:absolute;right:0;top:0}}.k{border-bottom:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));display:flex;gap:var(--space-1);padding:var(--space-2)}.z{-webkit-overflow-scrolling:touch;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}.j{padding:8px 10px}.X{color:rgb(var(--color-foreground)/var(--alpha-light));padding:var(--space-2);position:absolute;width:100%}.F,.X{display:flex;flex-direction:column}.F{gap:2px;list-style:none;padding:0}.F,.I{margin:0}.I{font-size:16px;font-weight:400}.I,.R{padding:8px}.R{font-size:14px;margin:4px 0 0;opacity:.5}.R,.o{font-size:12px}.o{cursor:pointer;display:flex;padding:4px 8px;position:relative}.o:before{background-color:var(--color-highlight-transparent);border-radius:var(--space-1);content:"";inset:0;opacity:0;position:absolute;transform:scale(.75);transition:transform 125ms,opacity 125ms;z-index:0}.o.g:before,.o:hover:before{opacity:1;transform:scale(1)}.o.g,.o:hover{color:var(--color-highlight)}.q{flex-grow:1}.A,.q{position:relative}.A{font-weight:700}.f{flex-grow:1}.f input{background:#0000;border:none;color:rgb(var(--color-foreground));font-family:var(--font-family);font-size:16px;height:100%;letter-spacing:-.25px;outline:none;width:100%}.b{color:rgb(var(--color-foreground)/var(--alpha-light));display:flex;flex-direction:column;gap:2px;line-height:1.3;list-style:none;margin:var(--space-2);margin-top:0;padding:0}.B,.b li{margin:0}.B{color:rgb(var(--color-foreground)/var(--alpha-lighter));font-size:12px;margin-top:var(--space-2);padding:0 18px}.i{border-radius:var(--space-2);color:inherit;cursor:pointer;display:flex;flex-direction:row;flex-grow:1;padding:8px 10px;position:relative;text-decoration:none}.i:before{background-color:rgb(var(--color-background-subtle));border-radius:var(--border-radius-2);content:"";display:block;inset:0;opacity:0;position:absolute;transform:scale(.9);transition:transform 125ms,opacity 125ms;z-index:0}@media (pointer:fine){.i.h:before,.i:hover:before{opacity:1;transform:scale(1)}}.i mark{background:#0000;color:var(--color-highlight)}.i u{text-decoration:underline}.C{flex-direction:column;flex-grow:1;gap:5.5px}.C,.D{display:flex;min-width:0}.D{align-items:flex-start;gap:var(--space-2);justify-content:space-between}.s{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:6px;justify-content:flex-end;margin-right:-8px;margin-top:auto;opacity:0;position:relative;transform:translate(-2px);transition:transform 125ms,opacity 125ms;z-index:0}@media (pointer:fine){.h>.s,:hover>.s{opacity:1;transform:none}}.x{font-size:14px;margin:0;position:relative}.x code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);font-size:13px;padding:2px 4px}.t{color:rgb(var(--color-foreground)/.45);display:inline-flex;flex:1 1 auto;flex-wrap:wrap;font-size:12px;gap:var(--space-1);list-style:none;margin:0;min-width:0;padding:0;position:relative}.t li{white-space:nowrap}.t li:after{content:"/";display:inline;margin-left:var(--space-1)}.t li:last-child:after{content:"";display:none}.u{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:rgb(var(--color-foreground));display:-webkit-box;font-size:12px;line-height:1.5;overflow:hidden;position:relative}.u code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);padding:2px 4px}.E,.u code{font-size:11px}.E{color:rgb(var(--color-foreground)/.45);line-height:1;white-space:nowrap;z-index:1}.a{--space-1:4px;--space-2:calc(var(--space-1)*2);--space-3:calc(var(--space-2)*2);--space-4:calc(var(--space-3)*2);--space-5:calc(var(--space-4)*2);--alpha-light:.7;--alpha-lighter:.54;--alpha-lightest:.07;--color-highlight:var(--md-accent-fg-color,#526cfe);--color-highlight-transparent:var( --md-accent-fg-color--transparent,#526cfe1a );--border-radius-1:var(--space-1);--border-radius-2:var(--space-2);--border-radius-3:calc(var(--space-1) + var(--space-2));--font-family:var( --md-text-font-family,Inter,Roboto Flex,system-ui,sans-serif );--font-size:16px;--line-height:1.5;--letter-spacing:-.5px;-webkit-font-smoothing:antialiased;align-items:center;display:flex;font-family:var(--font-family);font-size:var(--font-size);height:100vh;justify-content:center;letter-spacing:var(--letter-spacing);line-height:var(--line-height);pointer-events:none;position:absolute;width:100vw}@media (pointer:coarse){.a{height:-webkit-fill-available}}.a *,.a :after,.a :before{box-sizing:border-box}';function na(e,{index$:t}){let r=Ce(),n=document.createElement("div");document.body.appendChild(n),n.style.position="fixed",n.style.height="100%",n.style.top="0",n.style.zIndex="4";let o=n.attachShadow({mode:"open"});o.appendChild(M("style",{},ra.toString()));try{(0,Et.setup)(r.search,{highlight:r.features.includes("search.highlight")}),le(t).subscribe(i=>{for(let a of i.items)a.location=new URL(`./${a.location}`,r.base).toString();(0,Et.mount)(i,o)}),v(e,"click").subscribe(()=>{(0,Et.open)()}),Ir("search").pipe(we(1)).subscribe(()=>(0,Et.open)())}catch(i){e.hidden=!0;let a=D("label[for=__search]");a.hidden=!0}return Re}var oa=ct(Tn());function ia(e,{index$:t,location$:r}){return Z([t,r.pipe(N(Ae()),S(n=>!!n.searchParams.get("h")))]).pipe(m(([n,o])=>dl(n.config)(o.searchParams.get("h"))),m(n=>{var a;let o=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let s=i.nextNode();s;s=i.nextNode())if((a=s.parentElement)!=null&&a.offsetHeight){let c=s.textContent,l=n(c);l.length>c.length&&o.set(s,l)}for(let[s,c]of o){let{childNodes:l}=M("span",null,c);s.replaceWith(...Array.from(l))}return{ref:e,nodes:o}}))}function dl(e){let t=e.separator.split("|").map(o=>o.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":o).join("|"),r=new RegExp(t,"img"),n=(o,i,a)=>`${i}${a}`;return o=>{o=o.replace(/\s+/g," ").replace(/&/g,"&").trim();let i=new RegExp(`(^|${e.separator}|)(${o.split(r).map(a=>a.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")).filter(a=>a.length>=2).join("|")})`,"img");return a=>(0,oa.default)(a).replace(i,n).replace(/<\/mark>(\s+)]*>/img,"$1")}}function hl(e,{viewport$:t,main$:r}){let n=e.closest(".md-grid"),o=n.offsetTop-n.parentElement.offsetTop;return Z([r,t]).pipe(m(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(o,Math.max(0,s-i))-o,{height:a,locked:s>=i+o})),ne((i,a)=>i.height===a.height&&i.locked===a.locked))}function An(e,n){var o=n,{header$:t}=o,r=jn(o,["header$"]);let i=D(".md-sidebar__scrollwrap",e),{y:a}=ot(i);return I(()=>{let s=new $,c=s.pipe(ue(),de(!0)),l=s.pipe(We(0,_e));return l.pipe(ae(t)).subscribe({next([{height:p},{height:u}]){i.style.height=`${p-2*a}px`,e.style.top=`${u}px`},complete(){i.style.height="",e.style.top=""}}),l.pipe(Nt()).subscribe(()=>{for(let p of k(".md-nav__link--active[href]",e)){if(!p.clientHeight)continue;let u=p.closest(".md-sidebar__scrollwrap");if(typeof u!="undefined"){let f=p.offsetTop-u.offsetTop,{height:d}=Ee(u);u.scrollTo({top:f-d/2})}}}),le(k("label[tabindex]",e)).pipe(te(p=>v(p,"click").pipe(Le(me),m(()=>p),Y(c)))).subscribe(p=>{let u=D(`[id="${p.htmlFor}"]`);D(`[aria-labelledby="${p.id}"]`).setAttribute("aria-expanded",`${u.checked}`)}),B("content.tooltips")&&le(k("abbr[title]",e)).pipe(te(p=>Fe(p,{viewport$})),Y(c)).subscribe(),hl(e,r).pipe(H(p=>s.next(p)),z(()=>s.complete()),m(p=>R({ref:e},p)))})}function aa(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return ft(qe(`${r}/releases/latest`).pipe(se(()=>w),m(n=>({version:n.tag_name})),Ye({})),qe(r).pipe(se(()=>w),m(n=>({stars:n.stargazers_count,forks:n.forks_count})),Ye({}))).pipe(m(([n,o])=>R(R({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return qe(r).pipe(m(n=>({repositories:n.public_repos})),Ye({}))}}function sa(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return ft(qe(`${r}/releases/permalink/latest`).pipe(se(()=>w),m(({tag_name:n})=>({version:n})),Ye({})),qe(r).pipe(se(()=>w),m(({star_count:n,forks_count:o})=>({stars:n,forks:o})),Ye({}))).pipe(m(([n,o])=>R(R({},n),o)))}function ca(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,n]=t;return aa(r,n)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,n]=t;return sa(r,n)}return w}var bl;function vl(e){return bl||(bl=I(()=>{let t=__md_get("__source",sessionStorage);if(t)return U(t);if(ve("consent").length){let n=__md_get("__consent");if(!(n&&n.github))return w}return ca(e.href).pipe(H(n=>__md_set("__source",n,sessionStorage)))}).pipe(se(()=>w),S(t=>Object.keys(t).length>0),m(t=>({facts:t})),J(1)))}function la(e){let t=D(":scope > :last-child",e);return I(()=>{let r=new $;return r.subscribe(({facts:n})=>{t.appendChild(wi(n)),t.classList.add("md-source__repository--active")}),vl(e).pipe(H(n=>r.next(n)),z(()=>r.complete()),m(n=>R({ref:e},n)))})}function gl(e,{viewport$:t,header$:r}){return Me(document.body).pipe(x(()=>jr(e,{header$:r,viewport$:t})),m(({offset:{y:n}})=>({hidden:n>=10})),pe("hidden"))}function pa(e,t){return I(()=>{let r=new $;return r.subscribe({next({hidden:n}){e.hidden=n},complete(){e.hidden=!1}}),(B("navigation.tabs.sticky")?U({hidden:!1}):gl(e,t)).pipe(H(n=>r.next(n)),z(()=>r.complete()),m(n=>R({ref:e},n)))})}function xl(e,{viewport$:t,header$:r}){let n=new Map,o=k(".md-nav__link",e);for(let s of o){let c=decodeURIComponent(s.hash.substring(1)),l=be(`[id="${c}"]`);typeof l!="undefined"&&n.set(s,l)}let i=r.pipe(pe("height"),m(({height:s})=>{let c=Ze("main"),l=D(":scope > :first-child",c);return s+.9*(l.offsetTop-c.offsetTop)}),he());return Me(document.body).pipe(pe("height"),x(s=>I(()=>{let c=[];return U([...n].reduce((l,[p,u])=>{for(;c.length&&n.get(c[c.length-1]).tagName>=u.tagName;)c.pop();let f=u.offsetTop;for(;!f&&u.parentElement;)u=u.parentElement,f=u.offsetTop;let d=u.offsetParent;for(;d;d=d.offsetParent)f+=d.offsetTop;return l.set([...c=[...c,p]].reverse(),f)},new Map))}).pipe(m(c=>new Map([...c].sort(([,l],[,p])=>l-p))),De(i),x(([c,l])=>t.pipe(qt(([p,u],{offset:{y:f},size:d})=>{let h=f+d.height>=Math.floor(s.height);for(;u.length;){let[,b]=u[0];if(b-l=f&&!h)u=[p.pop(),...u];else break}return[p,u]},[[],[...c]]),ne((p,u)=>p[0]===u[0]&&p[1]===u[1])))))).pipe(m(([s,c])=>({prev:s.map(([l])=>l),next:c.map(([l])=>l)})),N({prev:[],next:[]}),mt(2,1),m(([s,c])=>s.prev.length{let i=new $,a=i.pipe(ue(),de(!0));i.subscribe(({prev:c,next:l})=>{for(let[p]of l)p.classList.remove("md-nav__link--passed"),p.classList.remove("md-nav__link--active");for(let[p,[u]]of c.entries())u.classList.add("md-nav__link--passed"),u.classList.toggle("md-nav__link--active",p===c.length-1)});let s=be(".md-sidebar--secondary");if(typeof s!="undefined"&&v(document.body,"click").subscribe(c=>{let l=c.target;if(!s.contains(l)){let p=be(".md-nav__toggle",s);typeof p!="undefined"&&(p.checked=!1)}}),B("toc.follow")){let c=P(t.pipe(Ie(1),m(()=>{})),t.pipe(Ie(250),m(()=>"smooth")));i.pipe(S(({prev:l})=>l.length>0),De(n.pipe(Le(me))),ae(c)).subscribe(([[{prev:l}],p])=>{let[u]=l[l.length-1];if(u.offsetHeight){let f=ko(u);if(typeof f!="undefined"){let d=u.offsetTop-f.offsetTop,{height:h}=Ee(f);f.scrollTo({top:d-h/2,behavior:p})}}})}return B("navigation.tracking")&&t.pipe(Y(a),pe("offset"),Ie(250),we(1),Y(o.pipe(we(1))),bt({delay:250}),ae(i)).subscribe(([,{prev:c}])=>{let l=Ae(),p=c[c.length-1];if(p&&p.length){let[u]=p,{hash:f}=new URL(u.href);l.hash!==f&&(l.hash=f,history.replaceState({},"",`${l}`))}else l.hash="",history.replaceState({},"",`${l}`)}),xl(e,{viewport$:t,header$:r}).pipe(H(c=>i.next(c)),z(()=>i.complete()),m(c=>R({ref:e},c)))})}function yl(e,{viewport$:t,main$:r,target$:n}){let o=t.pipe(m(({offset:{y:a}})=>a),mt(2,1),m(([a,s])=>a>s&&s>0),ne()),i=r.pipe(m(({active:a})=>a));return Z([i,o]).pipe(m(([a,s])=>!(a&&s)),ne(),Y(n.pipe(we(1))),de(!0),bt({delay:250}),m(a=>({hidden:a})))}function fa(e,{viewport$:t,header$:r,main$:n,target$:o}){let i=new $,a=i.pipe(ue(),de(!0));return i.subscribe({next({hidden:s}){e.hidden=s,s?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(Y(a),pe("height")).subscribe(({height:s})=>{e.style.top=`${s+16}px`}),v(e,"click").subscribe(s=>{s.preventDefault(),window.scrollTo({top:0})}),yl(e,{viewport$:t,main$:n,target$:o}).pipe(H(s=>i.next(s)),z(()=>i.complete()),m(s=>R({ref:e},s)))}function ma(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,t.port&&(e.port=t.port),e}function wl(e,t){let r=new Map;for(let n of k("url",e)){let o=D("loc",n),i=[ma(new URL(o.textContent),t)];r.set(`${i[0]}`,i);for(let a of k("[rel=alternate]",n)){let s=a.getAttribute("href");s!=null&&i.push(ma(new URL(s),t))}}return r}function jt(e){return si(new URL("sitemap.xml",e)).pipe(m(t=>wl(t,new URL(e))),se(()=>U(new Map)),he())}function da({document$:e}){let t=new Map;e.pipe(x(()=>k("link[rel=alternate]")),m(r=>new URL(r.href)),S(r=>!t.has(r.toString())),te(r=>jt(r).pipe(m(n=>[r,n]),se(()=>w)))).subscribe(([r,n])=>{t.set(r.toString().replace(/\/$/,""),n)}),v(document.body,"click").pipe(S(r=>!r.metaKey&&!r.ctrlKey),x(r=>{if(r.target instanceof Element){let n=r.target.closest("a");if(n&&!n.target){let o=[...t].find(([u])=>n.href.startsWith(`${u}/`));if(typeof o=="undefined")return w;let[i,a]=o,s=Ae();if(s.href.startsWith(i))return w;let c=Ce(),l=s.href.replace(c.base,"");l=`${i}/${l}`;let p=a.has(l.split("#")[0])?new URL(l,c.base):new URL(i);return r.preventDefault(),U(p)}}return w})).subscribe(r=>Xe(r,!0))}var Cn=ct(Ln());function El(e){e.setAttribute("data-md-copying","");let t=e.closest("[data-copy]"),r=t?t.getAttribute("data-copy"):e.innerText;return e.removeAttribute("data-md-copying"),r.trimEnd()}function ha({alert$:e}){Cn.default.isSupported()&&new j(t=>{new Cn.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||El(D(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(H(t=>{t.trigger.focus()}),m(()=>wt("clipboard.copied"))).subscribe(e)}function ba(e,t){if(!(e.target instanceof Element))return w;let r=e.target.closest("a");if(r===null)return w;if(r.target||e.metaKey||e.ctrlKey)return w;let n=new URL(r.href);return n.search=n.hash="",t.has(`${n}`)?(e.preventDefault(),U(r)):w}function va(e){let t=new Map;for(let r of k(":scope > *",e.head))t.set(r.outerHTML,r);return t}function ga(e){for(let t of k("[href], [src]",e))for(let r of["href","src"]){let n=t.getAttribute(r);if(n&&!/^(?:[a-z]+:)?\/\//i.test(n)){t[r]=t[r];break}}return U(e)}function Tl(e){var r;if(e.tagName!=="STYLE")return!1;let t=(r=e.textContent)!=null?r:"";return t.includes(".ace_editor")||t.includes(".ace-zensical")||t.includes(".ace_scroller")||t.includes(".ace_gutter")}function Ol(e){for(let n of["[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=outdated]","[data-md-component=logo]","[data-md-component=skip]",...B("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let o=be(n),i=be(n,e);typeof o!="undefined"&&typeof i!="undefined"&&o.replaceWith(i)}let t=va(document);for(let[n,o]of va(e))t.has(n)?t.delete(n):document.head.appendChild(o);for(let n of t.values()){let o=n.getAttribute("name");o!=="theme-color"&&o!=="color-scheme"&&!Tl(n)&&n.remove()}let r=Ze("container");return Be(k("script",r)).pipe(x(n=>{let o=e.createElement("script");if(n.src){for(let i of n.getAttributeNames())o.setAttribute(i,n.getAttribute(i));return n.replaceWith(o),new j(i=>{o.onload=()=>i.complete()})}else return o.textContent=n.textContent,n.replaceWith(o),w}),ue(),de(document))}function xa({sitemap$:e,location$:t,viewport$:r,progress$:n}){if(location.protocol==="file:")return Re;U(document).subscribe(ga);let o=v(document.body,"click").pipe(De(e),x(([s,c])=>ba(s,c)),m(({href:s})=>new URL(s)),he()),i=v(window,"popstate").pipe(m(Ae),he());o.pipe(ae(r)).subscribe(([s,{offset:c}])=>{history.replaceState(c,""),history.pushState(null,"",s)}),P(o,i).subscribe(t);let a=t.pipe(N(Ae()),Mr(),S(([s,c])=>s.pathname!==c.pathname),m(([,s])=>s),x(s=>Rr(s,{progress$:n}).pipe(se(()=>(Xe(s,!0),w)))),x(ga),x(Ol),he());return P(a.pipe(ae(t,(s,c)=>c)),a.pipe(x(()=>t),pe("hash")),t.pipe(N(Ae()),Mr(),S(([s,c])=>s.pathname===c.pathname&&s.hash!==c.hash),m(([,s])=>s)),t.pipe(ne((s,c)=>s.pathname===c.pathname&&s.hash===c.hash),x(()=>o),H(()=>history.back()))).subscribe(s=>{var c,l;history.state!==null||!s.hash?window.scrollTo(0,(l=(c=history.state)==null?void 0:c.y)!=null?l:0):(history.scrollRestoration="auto",oi(s.hash),history.scrollRestoration="manual")}),t.subscribe(()=>{history.scrollRestoration="manual"}),v(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),r.pipe(pe("offset"),Ie(100)).subscribe(({offset:s})=>{history.replaceState(s,"")}),B("navigation.instant.prefetch")&&P(v(document.body,"mousemove"),v(document.body,"focusin")).pipe(De(e),x(([s,c])=>ba(s,c)),Ie(25),cn(({href:s})=>s),Lr(s=>{let c=document.createElement("link");return c.rel="prefetch",c.href=s.toString(),document.head.appendChild(c),v(c,"load").pipe(m(()=>c),ye(1))})).subscribe(s=>s.remove()),a}function ya(e){var p;let{selectedVersionSitemap:t,selectedVersionBaseURL:r,currentLocation:n,currentBaseURL:o}=e,i=(p=Hn(o))==null?void 0:p.pathname;if(i===void 0)return;let a=Sl(n.pathname,i);if(a===void 0)return;let s=Ml(t.keys());if(!t.has(s))return;let c=Hn(a,s);if(!c||!t.has(c.href))return;let l=Hn(a,r);if(l)return l.hash=n.hash,l.search=n.search,l}function Hn(e,t){try{return new URL(e,t)}catch(r){return}}function Sl(e,t){if(e.startsWith(t))return e.slice(t.length)}function Ll(e,t){let r=Math.min(e.length,t.length),n;for(n=0;nw)),n=r.pipe(m(o=>{let[,i]=t.base.match(/([^/]+)\/?$/);return o.find(({version:a,aliases:s})=>a===i||s.includes(i))||o[0]}));r.pipe(m(o=>new Map(o.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),x(o=>v(document.body,"click").pipe(S(i=>!i.metaKey&&!i.ctrlKey),ae(n),x(([i,a])=>{if(i.target instanceof Element){let s=i.target.closest("a");if(s&&!s.target&&o.has(s.href)){let c=s.href;return!i.target.closest(".md-version")&&o.get(c)===a?w:(i.preventDefault(),U(new URL(c)))}}return w}),x(i=>jt(i).pipe(m(a=>{var s;return(s=ya({selectedVersionSitemap:a,selectedVersionBaseURL:i,currentLocation:Ae(),currentBaseURL:t.base}))!=null?s:i})))))).subscribe(o=>Xe(o,!0)),Z([r,n]).subscribe(([o,i])=>{D(".md-header__topic").appendChild(Ti(o,i))}),e.pipe(x(()=>n)).subscribe(o=>{var s;let i=new URL(t.base),a=__md_get("__outdated",sessionStorage,i);if(a===null){a=!0;let c=((s=t.version)==null?void 0:s.default)||"latest";Array.isArray(c)||(c=[c]);e:for(let l of c)for(let p of o.aliases.concat(o.version))if(new RegExp(l,"i").test(p)){a=!1;break e}__md_set("__outdated",a,sessionStorage,i)}if(a)for(let c of ve("outdated"))c.hidden=!1})}function Ea({document$:e,viewport$:t}){e.pipe(x(()=>k(".md-ellipsis")),te(r=>it(r).pipe(Y(e.pipe(we(1))),S(n=>n),m(()=>r),ye(1))),S(r=>r.offsetWidth{let n=r.innerText,o=r.closest("a")||r;return o.title=n,B("content.tooltips")?Fe(o,{viewport$:t}).pipe(Y(e.pipe(we(1))),z(()=>o.removeAttribute("title"))):w})).subscribe(),B("content.tooltips")&&e.pipe(x(()=>k(".md-status")),te(r=>Fe(r,{viewport$:t}))).subscribe()}function Ta({document$:e,tablet$:t}){e.pipe(x(()=>k(".md-toggle--indeterminate")),H(r=>{r.indeterminate=!0,r.checked=!1}),te(r=>v(r,"change").pipe(un(()=>r.classList.contains("md-toggle--indeterminate")),m(()=>r))),ae(t)).subscribe(([r,n])=>{r.classList.remove("md-toggle--indeterminate"),n&&(r.checked=!1)})}function _l(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Oa({document$:e}){e.pipe(x(()=>k("[data-md-scrollfix]")),H(t=>t.removeAttribute("data-md-scrollfix")),S(_l),te(t=>v(t,"touchstart").pipe(m(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let n=e[r];typeof n=="string"?n=document.createTextNode(n):n.parentNode&&n.parentNode.removeChild(n),r?t.insertBefore(this.previousSibling,n):t.replaceChild(n,this)}}}));function kl(){return location.protocol==="file:"?Ge(`${new URL("search.js",zr.base)}`).pipe(m(()=>__index),se(()=>Re),J(1)):qe(new URL("search.json",zr.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var et=Oo(),tr=ri(),Ft=ii(tr),La=ti(),$e=fi(),$n=Jt("(min-width: 60em)"),Ma=Jt("(min-width: 76.25em)"),_a=ai(),zr=Ce(),ka=be(".md-search")?kl():Re,Pn=new $;ha({alert$:Pn});da({document$:et});var Rn=new $,Aa=jt(zr.base);B("navigation.instant")&&xa({sitemap$:Aa,location$:tr,viewport$:$e,progress$:Rn}).subscribe(et);var Sa;((Sa=zr.version)==null?void 0:Sa.provider)==="mike"&&wa({document$:et});P(tr,Ft).pipe(dt(125)).subscribe(()=>{wn("drawer",!1),wn("search",!1)});La.pipe(S(({mode:e,meta:t})=>e==="global"&&!t)).subscribe(e=>{switch(e.type){case",":case"p":let t=document.querySelector("link[rel=prev]");t instanceof HTMLLinkElement&&Xe(t);break;case".":case"n":let r=document.querySelector("link[rel=next]");r instanceof HTMLLinkElement&&Xe(r);break;case"/":let n=document.querySelector("[data-md-component=search] button");n instanceof HTMLButtonElement&&n.click();break;case"Enter":let o=nt();o instanceof HTMLLabelElement&&o.click()}});Ea({viewport$:$e,document$:et});Ta({document$:et,tablet$:$n});Oa({document$:et});var st=Ji(Ze("header"),{viewport$:$e}),er=et.pipe(m(()=>Ze("main")),x(e=>Zi(e,{viewport$:$e,header$:st})),J(1)),Al=P(...ve("consent").map(e=>di(e,{target$:Ft})),...ve("dialog").map(e=>Gi(e,{alert$:Pn})),...ve("palette").map(e=>ea(e)),...ve("progress").map(e=>ta(e,{progress$:Rn})),...ve("search").map(e=>na(e,{index$:ka})),...ve("source").map(e=>la(e))),Cl=I(()=>P(...ve("announce").map(e=>mi(e)),...ve("content").map(e=>Yi(e,{sitemap$:Aa,viewport$:$e,target$:Ft,print$:_a})),...ve("content").map(e=>B("search.highlight")?ia(e,{index$:ka,location$:tr}):w),...ve("header").map(e=>Qi(e,{viewport$:$e,header$:st,main$:er})),...ve("header-title").map(e=>Xi(e,{viewport$:$e,header$:st})),...ve("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?gn(Ma,()=>An(e,{viewport$:$e,header$:st,main$:er})):gn($n,()=>An(e,{viewport$:$e,header$:st,main$:er}))),...ve("tabs").map(e=>pa(e,{viewport$:$e,header$:st})),...ve("toc").map(e=>ua(e,{viewport$:$e,header$:st,main$:er,target$:Ft})),...ve("top").map(e=>fa(e,{viewport$:$e,header$:st,main$:er,target$:Ft})))),Ca=et.pipe(x(()=>Cl),ht(Al),J(1));Ca.subscribe();window.document$=et;window.location$=tr;window.target$=Ft;window.keyboard$=La;window.viewport$=$e;window.tablet$=$n;window.screen$=Ma;window.print$=_a;window.alert$=Pn;window.progress$=Rn;window.component$=Ca;})(); diff --git a/dist/assets/javascripts/bundle.4a553b80.min.js b/dist/assets/javascripts/bundle.4a553b80.min.js deleted file mode 100644 index 3f74f22c..00000000 --- a/dist/assets/javascripts/bundle.4a553b80.min.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict";(()=>{var Rc=Object.create;var Pn=Object.defineProperty,jc=Object.defineProperties,Fc=Object.getOwnPropertyDescriptor,Uc=Object.getOwnPropertyDescriptors,Nc=Object.getOwnPropertyNames,zr=Object.getOwnPropertySymbols,Dc=Object.getPrototypeOf,In=Object.prototype.hasOwnProperty,Wo=Object.prototype.propertyIsEnumerable;var Do=(e,t,r)=>t in e?Pn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t||(t={}))In.call(t,r)&&Do(e,r,t[r]);if(zr)for(var r of zr(t))Wo.call(t,r)&&Do(e,r,t[r]);return e},He=(e,t)=>jc(e,Uc(t));var _r=(e,t)=>{var r={};for(var n in e)In.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&zr)for(var n of zr(e))t.indexOf(n)<0&&Wo.call(e,n)&&(r[n]=e[n]);return r};var Rn=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Wc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Nc(t))!In.call(e,o)&&o!==r&&Pn(e,o,{get:()=>t[o],enumerable:!(n=Fc(t,o))||n.enumerable});return e};var xr=(e,t,r)=>(r=e!=null?Rc(Dc(e)):{},Wc(t||!e||!e.__esModule?Pn(r,"default",{value:e,enumerable:!0}):r,e));var pt=(e,t,r)=>new Promise((n,o)=>{var i=c=>{try{s(r.next(c))}catch(l){o(l)}},a=c=>{try{s(r.throw(c))}catch(l){o(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,a);s((r=r.apply(e,t)).next())});var zo=Rn((jn,Vo)=>{(function(e,t){typeof jn=="object"&&typeof Vo!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(jn,(function(){"use strict";function e(r){var n=!0,o=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(y){return!!(y&&y!==document&&y.nodeName!=="HTML"&&y.nodeName!=="BODY"&&"classList"in y&&"contains"in y.classList)}function c(y){var Z=y.type,ve=y.tagName;return!!(ve==="INPUT"&&a[Z]&&!y.readOnly||ve==="TEXTAREA"&&!y.readOnly||y.isContentEditable)}function l(y){y.classList.contains("focus-visible")||(y.classList.add("focus-visible"),y.setAttribute("data-focus-visible-added",""))}function u(y){y.hasAttribute("data-focus-visible-added")&&(y.classList.remove("focus-visible"),y.removeAttribute("data-focus-visible-added"))}function p(y){y.metaKey||y.altKey||y.ctrlKey||(s(r.activeElement)&&l(r.activeElement),n=!0)}function d(y){n=!1}function m(y){s(y.target)&&(n||c(y.target))&&l(y.target)}function h(y){s(y.target)&&(y.target.classList.contains("focus-visible")||y.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(y.target))}function v(y){document.visibilityState==="hidden"&&(o&&(n=!0),_())}function _(){document.addEventListener("mousemove",E),document.addEventListener("mousedown",E),document.addEventListener("mouseup",E),document.addEventListener("pointermove",E),document.addEventListener("pointerdown",E),document.addEventListener("pointerup",E),document.addEventListener("touchmove",E),document.addEventListener("touchstart",E),document.addEventListener("touchend",E)}function x(){document.removeEventListener("mousemove",E),document.removeEventListener("mousedown",E),document.removeEventListener("mouseup",E),document.removeEventListener("pointermove",E),document.removeEventListener("pointerdown",E),document.removeEventListener("pointerup",E),document.removeEventListener("touchmove",E),document.removeEventListener("touchstart",E),document.removeEventListener("touchend",E)}function E(y){y.target.nodeName&&y.target.nodeName.toLowerCase()==="html"||(n=!1,x())}document.addEventListener("keydown",p,!0),document.addEventListener("mousedown",d,!0),document.addEventListener("pointerdown",d,!0),document.addEventListener("touchstart",d,!0),document.addEventListener("visibilitychange",v,!0),_(),r.addEventListener("focus",m,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)}))});var Lo=Rn((cE,Ts)=>{"use strict";var pp=/["'&<>]/;Ts.exports=fp;function fp(e){var t=""+e,r=pp.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i{(function(t,r){typeof Ur=="object"&&typeof ko=="object"?ko.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Ur=="object"?Ur.ClipboardJS=r():t.ClipboardJS=r()})(Ur,function(){return(function(){var e={686:(function(n,o,i){"use strict";i.d(o,{default:function(){return gr}});var a=i(279),s=i.n(a),c=i(370),l=i.n(c),u=i(817),p=i.n(u);function d(G){try{return document.execCommand(G)}catch(H){return!1}}var m=function(H){var C=p()(H);return d("cut"),C},h=m;function v(G){var H=document.documentElement.getAttribute("dir")==="rtl",C=document.createElement("textarea");C.style.fontSize="12pt",C.style.border="0",C.style.padding="0",C.style.margin="0",C.style.position="absolute",C.style[H?"right":"left"]="-9999px";var V=window.pageYOffset||document.documentElement.scrollTop;return C.style.top="".concat(V,"px"),C.setAttribute("readonly",""),C.value=G,C}var _=function(H,C){var V=v(H);C.container.appendChild(V);var z=p()(V);return d("copy"),V.remove(),z},x=function(H){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},V="";return typeof H=="string"?V=_(H,C):H instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(H==null?void 0:H.type)?V=_(H.value,C):(V=p()(H),d("copy")),V},E=x;function y(G){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(C){return typeof C}:y=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},y(G)}var Z=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=H.action,V=C===void 0?"copy":C,z=H.container,Q=H.target,Ve=H.text;if(V!=="copy"&&V!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Q!==void 0)if(Q&&y(Q)==="object"&&Q.nodeType===1){if(V==="copy"&&Q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(V==="cut"&&(Q.hasAttribute("readonly")||Q.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Ve)return E(Ve,{container:z});if(Q)return V==="cut"?h(Q):E(Q,{container:z})},ve=Z;function L(G){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?L=function(C){return typeof C}:L=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},L(G)}function M(G,H){if(!(G instanceof H))throw new TypeError("Cannot call a class as a function")}function W(G,H){for(var C=0;C0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof z.action=="function"?z.action:this.defaultAction,this.target=typeof z.target=="function"?z.target:this.defaultTarget,this.text=typeof z.text=="function"?z.text:this.defaultText,this.container=L(z.container)==="object"?z.container:document.body}},{key:"listenClick",value:function(z){var Q=this;this.listener=l()(z,"click",function(Ve){return Q.onClick(Ve)})}},{key:"onClick",value:function(z){var Q=z.delegateTarget||z.currentTarget,Ve=this.action(Q)||"copy",Xt=ve({action:Ve,container:this.container,target:this.target(Q),text:this.text(Q)});this.emit(Xt?"success":"error",{action:Ve,text:Xt,trigger:Q,clearSelection:function(){Q&&Q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(z){return Jt("action",z)}},{key:"defaultTarget",value:function(z){var Q=Jt("target",z);if(Q)return document.querySelector(Q)}},{key:"defaultText",value:function(z){return Jt("text",z)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return E(z,Q)}},{key:"cut",value:function(z){return h(z)}},{key:"isSupported",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Q=typeof z=="string"?[z]:z,Ve=!!document.queryCommandSupported;return Q.forEach(function(Xt){Ve=Ve&&!!document.queryCommandSupported(Xt)}),Ve}}]),C})(s()),gr=Ht}),828:(function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,c){for(;s&&s.nodeType!==o;){if(typeof s.matches=="function"&&s.matches(c))return s;s=s.parentNode}}n.exports=a}),438:(function(n,o,i){var a=i(828);function s(u,p,d,m,h){var v=l.apply(this,arguments);return u.addEventListener(d,v,h),{destroy:function(){u.removeEventListener(d,v,h)}}}function c(u,p,d,m,h){return typeof u.addEventListener=="function"?s.apply(null,arguments):typeof d=="function"?s.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(v){return s(v,p,d,m,h)}))}function l(u,p,d,m){return function(h){h.delegateTarget=a(h.target,p),h.delegateTarget&&m.call(u,h)}}n.exports=c}),879:(function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}}),370:(function(n,o,i){var a=i(879),s=i(438);function c(d,m,h){if(!d&&!m&&!h)throw new Error("Missing required arguments");if(!a.string(m))throw new TypeError("Second argument must be a String");if(!a.fn(h))throw new TypeError("Third argument must be a Function");if(a.node(d))return l(d,m,h);if(a.nodeList(d))return u(d,m,h);if(a.string(d))return p(d,m,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function l(d,m,h){return d.addEventListener(m,h),{destroy:function(){d.removeEventListener(m,h)}}}function u(d,m,h){return Array.prototype.forEach.call(d,function(v){v.addEventListener(m,h)}),{destroy:function(){Array.prototype.forEach.call(d,function(v){v.removeEventListener(m,h)})}}}function p(d,m,h){return s(document.body,d,m,h)}n.exports=c}),817:(function(n){function o(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var c=window.getSelection(),l=document.createRange();l.selectNodeContents(i),c.removeAllRanges(),c.addRange(l),a=c.toString()}return a}n.exports=o}),279:(function(n){function o(){}o.prototype={on:function(i,a,s){var c=this.e||(this.e={});return(c[i]||(c[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var c=this;function l(){c.off(i,l),a.apply(s,arguments)}return l._=a,this.on(i,l,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),c=0,l=s.length;for(c;c0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function re(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function ie(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n1||c(m,v)})},h&&(o[m]=h(o[m])))}function c(m,h){try{l(n[m](h))}catch(v){d(i[0][3],v)}}function l(m){m.value instanceof $t?Promise.resolve(m.value.v).then(u,p):d(i[0][2],m)}function u(m){c("next",m)}function p(m){c("throw",m)}function d(m,h){m(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Bo(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof $e=="function"?$e(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,c){a=e[i](a),o(s,c,a.done,a.value)})}}function o(i,a,s,c){Promise.resolve(c).then(function(l){i({value:l,done:s})},a)}}function U(e){return typeof e=="function"}function Zt(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Kr=Zt(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: -`+r.map(function(n,o){return o+1+") "+n.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=r}});function ft(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var nt=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=$e(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(U(u))try{u()}catch(v){i=v instanceof Kr?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var d=$e(p),m=d.next();!m.done;m=d.next()){var h=m.value;try{Go(h)}catch(v){i=i!=null?i:[],v instanceof Kr?i=ie(ie([],re(i)),re(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{m&&!m.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}}if(i)throw new Kr(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Go(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&ft(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ft(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();var Un=nt.EMPTY;function Br(e){return e instanceof nt||e&&"closed"in e&&U(e.remove)&&U(e.add)&&U(e.unsubscribe)}function Go(e){U(e)?e():e.unsubscribe()}var Xe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Qt={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Un:(this.currentObservers=null,s.push(r),new nt(function(){n.currentObservers=null,ft(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new F;return r.source=this,r},t.create=function(r,n){return new ri(r,n)},t})(F);var ri=(function(e){pe(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Un},t})(I);var zn=(function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t})(I);var Er={now:function(){return(Er.delegate||Date).now()},delegate:void 0};var Tr=(function(e){pe(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Er);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,c=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),c=0;c0?e.prototype.schedule.call(this,r,n):(this.delay=n,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,n){return n>0||this.closed?e.prototype.execute.call(this,r,n):this._execute(r,n)},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.flush(this),0)},t})(nr);var ii=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(or);var Bn=new ii(oi);var ai=(function(e){pe(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=rr.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var a=r.actions;n!=null&&n===r._scheduled&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==n&&(rr.cancelAnimationFrame(n),r._scheduled=void 0)},t})(nr);var si=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n;r?n=r.id:(n=this._scheduled,this._scheduled=void 0);var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t})(or);var je=new si(ai);var w=new F(function(e){return e.complete()});function Jr(e){return e&&U(e.schedule)}function Gn(e){return e[e.length-1]}function wt(e){return U(Gn(e))?e.pop():void 0}function Be(e){return Jr(Gn(e))?e.pop():void 0}function Xr(e,t){return typeof Gn(e)=="number"?e.pop():t}var ir=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function Zr(e){return U(e==null?void 0:e.then)}function Qr(e){return U(e[tr])}function en(e){return Symbol.asyncIterator&&U(e==null?void 0:e[Symbol.asyncIterator])}function tn(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Xc(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var rn=Xc();function nn(e){return U(e==null?void 0:e[rn])}function on(e){return Ko(this,arguments,function(){var r,n,o,i;return qr(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,$t(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,$t(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,$t(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function an(e){return U(e==null?void 0:e.getReader)}function K(e){if(e instanceof F)return e;if(e!=null){if(Qr(e))return Zc(e);if(ir(e))return Qc(e);if(Zr(e))return el(e);if(en(e))return ci(e);if(nn(e))return tl(e);if(an(e))return rl(e)}throw tn(e)}function Zc(e){return new F(function(t){var r=e[tr]();if(U(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Qc(e){return new F(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?O(function(o,i){return e(o,i,n)}):Le,Me(1),r?it(t):Si(function(){return new ar}))}}function Qn(e){return e<=0?function(){return w}:S(function(t,r){var n=[];t.subscribe(T(r,function(o){n.push(o),e=2,!0))}function xe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new I}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,c=s===void 0?!0:s;return function(l){var u,p,d,m=0,h=!1,v=!1,_=function(){p==null||p.unsubscribe(),p=void 0},x=function(){_(),u=d=void 0,h=v=!1},E=function(){var y=u;x(),y==null||y.unsubscribe()};return S(function(y,Z){m++,!v&&!h&&_();var ve=d=d!=null?d:r();Z.add(function(){m--,m===0&&!v&&!h&&(p=eo(E,c))}),ve.subscribe(Z),!u&&m>0&&(u=new mt({next:function(L){return ve.next(L)},error:function(L){v=!0,_(),p=eo(x,o,L),ve.error(L)},complete:function(){h=!0,_(),p=eo(x,a),ve.complete()}}),K(y).subscribe(u))})(l)}}function eo(e,t){for(var r=[],n=2;ne.next(document)),e}function $(e,t=document){return Array.from(t.querySelectorAll(e))}function Y(e,t=document){let r=we(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function we(e,t=document){return t.querySelector(e)||void 0}function Tt(){var e,t,r,n;return(n=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?n:void 0}var _l=R(b(document.body,"focusin"),b(document.body,"focusout")).pipe(Ye(1),J(void 0),f(()=>Tt()||document.body),ne(1));function cr(e){return _l.pipe(f(t=>e.contains(t)),se())}function Dt(e,t){let{matches:r}=matchMedia("(hover)");return j(()=>(r?R(b(e,"mouseenter").pipe(f(()=>!0)),b(e,"mouseleave").pipe(f(()=>!1))):R(b(e,"touchstart").pipe(f(()=>!0)),b(e,"touchend").pipe(f(()=>!1)),b(e,"touchcancel").pipe(f(()=>!1)))).pipe(t?Or(o=>ze(+!o*t)):Le,J(!0,e.matches(":hover"))))}function ki(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)ki(e,r)}function A(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)ki(n,o);return n}function Ai(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function at(e){let t=A("script",{src:e});return j(()=>(document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(g(()=>cn(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(f(()=>{}),q(()=>document.head.removeChild(t)),Me(1))))}function Ci(e){let t=A("link",{rel:"stylesheet",href:e});return document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(g(()=>cn(()=>new ReferenceError(`Invalid styles: ${e}`))))).pipe(f(()=>{}),Me(1))}var Hi=new I,xl=j(()=>typeof ResizeObserver=="undefined"?at("https://unpkg.com/resize-observer-polyfill"):D(void 0)).pipe(f(()=>new ResizeObserver(e=>e.forEach(t=>Hi.next(t)))),g(e=>R(Ge,D(e)).pipe(q(()=>e.disconnect()))),ne(1));function Ae(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Re(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return xl.pipe(P(r=>r.observe(t)),g(r=>Hi.pipe(O(n=>n.target===t),q(()=>r.unobserve(t)))),f(()=>Ae(e)),J(Ae(e)))}function Ar(e){return{width:e.scrollWidth,height:e.scrollHeight}}function $i(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}function Pi(e){let t=[],r=e.parentElement;for(;r;)(e.clientWidth>r.clientWidth||e.clientHeight>r.clientHeight)&&t.push(r),r=(e=r).parentElement;return t.length===0&&t.push(document.documentElement),t}function St(e){return{x:e.offsetLeft,y:e.offsetTop}}function Ii(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function Ri(e){return R(b(window,"load"),b(window,"resize")).pipe(Ze(0,je),f(()=>St(e)),J(St(e)))}function dn(e){return{x:e.scrollLeft,y:e.scrollTop}}function Wt(e){return R(b(e,"scroll"),b(window,"scroll"),b(window,"resize")).pipe(Ze(0,je),f(()=>dn(e)),J(dn(e)))}var ji=new I,wl=j(()=>D(new IntersectionObserver(e=>{for(let t of e)ji.next(t)},{threshold:0}))).pipe(g(e=>R(Ge,D(e)).pipe(q(()=>e.disconnect()))),ne(1));function Ot(e){return wl.pipe(P(t=>t.observe(e)),g(t=>ji.pipe(O(({target:r})=>r===e),q(()=>t.unobserve(e)),f(({isIntersecting:r})=>r))))}var El=Object.create,da=Object.defineProperty,Tl=Object.getOwnPropertyDescriptor,Sl=Object.getOwnPropertyNames,Ol=Object.getPrototypeOf,Ll=Object.prototype.hasOwnProperty,Ml=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),kl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Sl(t))!Ll.call(e,o)&&o!==r&&da(e,o,{get:()=>t[o],enumerable:!(n=Tl(t,o))||n.enumerable});return e},Al=(e,t,r)=>(r=e!=null?El(Ol(e)):{},kl(t||!e||!e.__esModule?da(r,"default",{value:e,enumerable:!0}):r,e)),Cl=Ml((e,t)=>{var r="Expected a function",n=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global=="object"&&global&&global.Object===Object&&global,p=typeof self=="object"&&self&&self.Object===Object&&self,d=u||p||Function("return this")(),m=Object.prototype,h=m.toString,v=Math.max,_=Math.min,x=function(){return d.Date.now()};function E(M,W,te){var ue,le,De,_t,We,ut,rt=0,Jt=!1,Ht=!1,gr=!0;if(typeof M!="function")throw new TypeError(r);W=L(W)||0,y(te)&&(Jt=!!te.leading,Ht="maxWait"in te,De=Ht?v(L(te.maxWait)||0,W):De,gr="trailing"in te?!!te.trailing:gr);function G(Se){var xt=ue,yr=le;return ue=le=void 0,rt=Se,_t=M.apply(yr,xt),_t}function H(Se){return rt=Se,We=setTimeout(z,W),Jt?G(Se):_t}function C(Se){var xt=Se-ut,yr=Se-rt,No=W-xt;return Ht?_(No,De-yr):No}function V(Se){var xt=Se-ut,yr=Se-rt;return ut===void 0||xt>=W||xt<0||Ht&&yr>=De}function z(){var Se=x();if(V(Se))return Q(Se);We=setTimeout(z,C(Se))}function Q(Se){return We=void 0,gr&&ue?G(Se):(ue=le=void 0,_t)}function Ve(){We!==void 0&&clearTimeout(We),rt=0,ue=ut=le=We=void 0}function Xt(){return We===void 0?_t:Q(x())}function Vr(){var Se=x(),xt=V(Se);if(ue=arguments,le=this,ut=Se,xt){if(We===void 0)return H(ut);if(Ht)return We=setTimeout(z,W),G(ut)}return We===void 0&&(We=setTimeout(z,W)),_t}return Vr.cancel=Ve,Vr.flush=Xt,Vr}function y(M){var W=typeof M;return!!M&&(W=="object"||W=="function")}function Z(M){return!!M&&typeof M=="object"}function ve(M){return typeof M=="symbol"||Z(M)&&h.call(M)==o}function L(M){if(typeof M=="number")return M;if(ve(M))return n;if(y(M)){var W=typeof M.valueOf=="function"?M.valueOf():M;M=y(W)?W+"":W}if(typeof M!="string")return M===0?M:+M;M=M.replace(i,"");var te=s.test(M);return te||c.test(M)?l(M.slice(2),te?2:8):a.test(M)?n:+M}t.exports=E}),Sn,B,ha,va,Vt,Fi,ba,ga,ya,fo,io,ao,Hl,Hr={},_a=[],$l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Rr=Array.isArray;function ht(e,t){for(var r in t)e[r]=t[r];return e}function mo(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function kt(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Sn.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return bn(e,a,n,o,null)}function bn(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o!=null?o:++ha,__i:-1,__u:0};return o==null&&B.vnode!=null&&B.vnode(i),i}function qe(e){return e.children}function lt(e,t){this.props=e,this.context=t}function ur(e,t){if(t==null)return e.__?ur(e.__,e.__i+1):null;for(var r;ts&&Vt.sort(ga),e=Vt.shift(),s=Vt.length,e.__d&&(r=void 0,n=void 0,o=(n=(t=e).__v).__e,i=[],a=[],t.__P&&((r=ht({},n)).__v=n.__v+1,B.vnode&&B.vnode(r),ho(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o!=null?o:ur(n),!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Ta(i,r,a),n.__e=n.__=null,r.__e!=o&&xa(r)));xn.__r=0}function wa(e,t,r,n,o,i,a,s,c,l,u){var p,d,m,h,v,_,x,E=n&&n.__k||_a,y=t.length;for(c=Pl(r,t,E,c,y),p=0;p0?bn(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(l=a.__i=Il(a,r,c,p))!=-1&&(p--,(s=r[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(o>u?d--:oc?d--:d++,a.__u|=4))):e.__k[i]=null;if(p)for(i=0;i(u?1:0)){for(o=r-1,i=r+1;o>=0||i=0?o--:i++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return a}return-1}function Ni(e,t,r){t[0]=="-"?e.setProperty(t,r!=null?r:""):e[t]=r==null?"":typeof r!="number"||$l.test(t)?r:r+"px"}function hn(e,t,r,n,o){var i,a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Ni(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Ni(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ya,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=fo,e.addEventListener(t,i?ao:io,i)):e.removeEventListener(t,i?ao:io,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r!=null?r:"";break e}catch(s){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Di(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=fo++;else if(t.t0?e:Rr(e)?e.map(Sa):ht({},e)}function Rl(e,t,r,n,o,i,a,s,c){var l,u,p,d,m,h,v,_=r.props,x=t.props,E=t.type;if(E=="svg"?o="http://www.w3.org/2000/svg":E=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l=r.__.length&&r.__.push({}),r.__[e]}function wn(e){return Ir=1,Ul(ka,e)}function Ul(e,t,r){var n=bo(Pr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):ka(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=ge,!ge.__f)){var o=function(s,c,l){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(d){return!!d.__c});if(u.every(function(d){return!d.__N}))return!i||i.call(this,s,c,l);var p=n.__c.props!==s;return u.forEach(function(d){if(d.__N){var m=d.__[0];d.__=d.__N,d.__N=void 0,m!==d.__[0]&&(p=!0)}}),i&&i.call(this,s,c,l)||p};ge.__f=!0;var i=ge.shouldComponentUpdate,a=ge.componentWillUpdate;ge.componentWillUpdate=function(s,c,l){if(this.__e){var u=i;i=void 0,o(s,c,l),i=u}a&&a.call(this,s,c,l)},ge.shouldComponentUpdate=o}return n.__N||n.__}function vt(e,t){var r=bo(Pr++,3);!Ee.__s&&Ma(r.__H,t)&&(r.__=e,r.u=t,ge.__H.__h.push(r))}function qt(e){return Ir=5,fr(function(){return{current:e}},[])}function fr(e,t){var r=bo(Pr++,7);return Ma(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Nl(e,t){return Ir=8,fr(function(){return e},t)}function Dl(){for(var e;e=La.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(gn),e.__H.__h.forEach(co),e.__H.__h=[]}catch(t){e.__H.__h=[],Ee.__e(t,e.__v)}}Ee.__b=function(e){ge=null,Vi&&Vi(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Gi&&Gi(e,t)},Ee.__r=function(e){zi&&zi(e),Pr=0;var t=(ge=e.__c).__H;t&&(ro===ge?(t.__h=[],ge.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(gn),t.__h.forEach(co),t.__h=[],Pr=0)),ro=ge},Ee.diffed=function(e){qi&&qi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(La.push(t)!==1&&Wi===Ee.requestAnimationFrame||((Wi=Ee.requestAnimationFrame)||Wl)(Dl)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),ro=ge=null},Ee.__c=function(e,t){t.some(function(r){try{r.__h.forEach(gn),r.__h=r.__h.filter(function(n){return!n.__||co(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Ee.__e(n,r.__v)}}),Ki&&Ki(e,t)},Ee.unmount=function(e){Bi&&Bi(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{gn(n)}catch(o){t=o}}),r.__H=void 0,t&&Ee.__e(t,r.__v))};var Yi=typeof requestAnimationFrame=="function";function Wl(e){var t,r=function(){clearTimeout(n),Yi&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);Yi&&(t=requestAnimationFrame(r))}function gn(e){var t=ge,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ge=t}function co(e){var t=ge;e.__c=e.__(),ge=t}function Ma(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ka(e,t){return typeof t=="function"?t(e):t}function Vl(e,t){for(var r in t)e[r]=t[r];return e}function Ji(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Xi(e,t){this.props=e,this.context=t}(Xi.prototype=new lt).isPureReactComponent=!0,Xi.prototype.shouldComponentUpdate=function(e,t){return Ji(this.props,e)||Ji(this.state,t)};var Zi=B.__b;B.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Zi&&Zi(e)};var Mw=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,zl=B.__e;B.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}zl(e,t,r,n)};var Qi=B.unmount;function Aa(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Vl({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Aa(n,t,r)})),e}function Ca(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Ca(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function no(){this.__u=0,this.o=null,this.__b=null}function Ha(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function vn(){this.i=null,this.l=null}B.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Qi&&Qi(e)},(no.prototype=new lt).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Ha(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Ca(c,c.__c.__P,c.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.o.pop();)l.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},no.prototype.componentWillUnmount=function(){this.o=[]},no.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Aa(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&kt(qe,null,e.fallback);return o&&(o.__u&=-33),[kt(qe,null,t.__a?null:e.children),o]};var ea=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]Object.freeze({get current(){return t.current}}),[])}var tu=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function ru(e,...t){var r;(r=e==null?void 0:e.addEventListener)==null||r.call(e,...t)}function nu(e,...t){var r;(r=e==null?void 0:e.removeEventListener)==null||r.call(e,...t)}var ou=(e,t)=>Object.hasOwn(e,t),iu=()=>!0,au=()=>!1;function su(e=!1){let t=qt(e),r=Nl(()=>t.current,[]);return vt(()=>(t.current=!0,()=>{t.current=!1}),[]),r}function cu(e,...t){let r=su(),n=Pa(t[1]),o=fr(()=>function(...i){r()&&(typeof n.current=="function"?n.current.apply(this,i):typeof n.current.handleEvent=="function"&&n.current.handleEvent.apply(this,i))},[]);vt(()=>{let i=lu(e)?e.current:e;if(!i)return;let a=t.slice(2);return ru(i,t[0],o,...a),()=>{nu(i,t[0],o,...a)}},[e,t[0]])}function lu(e){return e!==null&&typeof e=="object"&&ou(e,"current")}var uu=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:e?iu:au,pu=tu?globalThis:null;function Ia(e,t,r=[],n={}){let{event:o="keydown",target:i=pu,eventOptions:a}=n,s=Pa(t),c=fr(()=>{let l=uu(e);return function(u){l(u)&&s.current.call(this,u)}},r);cu(i,o,c,a)}function Ra(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t1)Mt--;else{for(var e,t=!1;Cr!==void 0;){var r=Cr;for(Cr=void 0,lo++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Ua(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(lo=0,Mt--,t)throw e}}function du(e){if(Mt>0)return e();Mt++;try{return e()}finally{On()}}var ce=void 0;function ja(e){var t=ce;ce=void 0;try{return e()}finally{ce=t}}var Cr=void 0,Mt=0,lo=0,En=0;function Fa(e){if(ce!==void 0){var t=e.n;if(t===void 0||t.t!==ce)return t={i:0,S:e,p:ce.s,n:void 0,t:ce,e:void 0,x:void 0,r:t},ce.s!==void 0&&(ce.s.n=t),ce.s=t,e.n=t,32&ce.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ce.s,t.n=void 0,ce.s.n=t,ce.s=t),t}}function Ce(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Ce.prototype.brand=mu;Ce.prototype.h=function(){return!0};Ce.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:ja(function(){var n;(n=t.W)==null||n.call(t)}))};Ce.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&ja(function(){var o;(o=t.Z)==null||o.call(t)}))}};Ce.prototype.subscribe=function(e){var t=this;return Bt(function(){var r=t.value,n=ce;ce=void 0;try{e(r)}finally{ce=n}},{name:"sub"})};Ce.prototype.valueOf=function(){return this.value};Ce.prototype.toString=function(){return this.value+""};Ce.prototype.toJSON=function(){return this.value};Ce.prototype.peek=function(){var e=ce;ce=void 0;try{return this.value}finally{ce=e}};Object.defineProperty(Ce.prototype,"value",{get:function(){var e=Fa(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(lo>100)throw new Error("Cycle detected");this.v=e,this.i++,En++,Mt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{On()}}}});function At(e,t){return new Ce(e,t)}function Ua(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Na(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Da(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Gt(e,t){Ce.call(this,void 0),this.x=e,this.s=void 0,this.g=En-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Gt.prototype=new Ce;Gt.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===En))return!0;if(this.g=En,this.f|=1,this.i>0&&!Ua(this))return this.f&=-2,!0;var e=ce;try{Na(this),ce=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ce=e,Da(this),this.f&=-2,!0};Gt.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Ce.prototype.S.call(this,e)};Gt.prototype.U=function(e){if(this.t!==void 0&&(Ce.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Gt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Gt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Fa(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function ia(e,t){return new Gt(e,t)}function Wa(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Mt++;var r=ce;ce=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,go(e),n}finally{ce=r,On()}}}function go(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Wa(e)}function hu(e){if(ce!==this)throw new Error("Out-of-order effect");Da(this),ce=e,this.f&=-2,8&this.f&&go(this),On()}function mr(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}mr.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};mr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Wa(this),Na(this),Mt++;var e=ce;return ce=this,hu.bind(this,e)};mr.prototype.N=function(){2&this.f||(this.f|=2,this.o=Cr,Cr=this)};mr.prototype.d=function(){this.f|=8,1&this.f||go(this)};mr.prototype.dispose=function(){this.d()};function Bt(e,t){var r=new mr(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var Va,yo,oo,za=[];Bt(function(){Va=this.N})();function dr(e,t){B[e]=t.bind(null,B[e]||function(){})}function Tn(e){oo&&oo(),oo=e&&e.S()}function qa(e){var t=this,r=e.data,n=bu(r);n.value=r;var o=fr(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=ia(function(){var m=n.value.value;return m===0?0:m===!0?"":m||""}),u=ia(function(){return!Array.isArray(l.value)&&!va(l.value)}),p=Bt(function(){if(this.N=Ka,u.value){var m=l.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=m)}}),d=t.__$u.d;return t.__$u.d=function(){p(),d.call(this)},[u,l]},[]),i=o[0],a=o[1];return i.value?a.peek():a.value}qa.displayName="ReactiveTextNode";Object.defineProperties(Ce.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:qa},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});dr("__b",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof Ce&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)});dr("__r",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==qe){Tn();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=(function(o){var i;return Bt(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i})())),yo=n,Tn(r)}e(t)});dr("__e",function(e,t,r,n){typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Tn(),yo=void 0,e(t,r,n)});dr("diffed",function(e,t){typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Tn(),yo=void 0;var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var a in i){var s=i[a];s!==void 0&&!(a in n)&&(s.d(),i[a]=void 0)}else i={},r.U=i;for(var c in n){var l=i[c],u=n[c];l===void 0?(l=vu(r,c,u,o),i[c]=l):l.o(u,o)}}}e(t)});function vu(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=At(r);return{o:function(a,s){i.value=a,n=s},d:Bt(function(){this.N=Ka;var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}dr("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});dr("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});lt.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(n||i||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function bu(e,t){return wn(function(){return At(e,t)})[0]}var gu=function(e){queueMicrotask(function(){queueMicrotask(e)})};function yu(){du(function(){for(var e;e=za.shift();)Va.call(e)})}function Ka(){za.push(this)===1&&(B.requestAnimationFrame||gu)(yu)}var uo=[0];for(let e=0;e<32;e++)uo.push(uo[e]|1<>>5]>>>e&1}set(e){this.data[e>>>5]|=1<<(e&31)}forEach(e){let t=this.size&31;for(let r=0;r{var r;return(r=t.tags)==null?void 0:r.length})&&(matchMedia("(max-width: 768px)").matches||Ba())}function zt(){et.value=He(k({},et.value),{hideSearch:!et.value.hideSearch})}function Ba(){et.value=He(k({},et.value),{hideFilters:!et.value.hideFilters})}function yn(){return et.value.selectedItem}function po(e){et.value=He(k({},et.value),{selectedItem:e})}function wu(){var e,t;return(t=(e=pr.value)==null?void 0:e.items)!=null?t:[]}function Ln(){return typeof Oe.value.input=="string"?Oe.value.input:""}function Ga(e){let t=Ya();e.length&&!t.length?Oe.value=He(k({},Oe.value),{page:void 0,input:e}):!e.length&&t.length?Oe.value=He(k({},Oe.value),{page:void 0,input:{type:"operator",data:{operator:"not",operands:[]}}}):Oe.value=He(k({},Oe.value),{page:void 0,input:e})}function Eu(){typeof ct.value.pagination.next<"u"&&(Oe.value=He(k({},Oe.value),{page:ct.value.pagination.next}))}function Tu(e){let t=Oe.value.filter.input;if("type"in t&&t.type==="operator"){for(let r of t.data.operands)if("type"in r&&r.type==="value"&&typeof r.data.value=="string"&&r.data.value===e)return!0}return!1}function Ya(){let e=Oe.value.filter.input,t=[];if("type"in e&&e.type==="operator")for(let r of e.data.operands)"type"in r&&r.type==="value"&&typeof r.data.value=="string"&&t.push(r.data.value);return t}function Su(e){let t=Oe.value.filter.input,r=[];if("type"in t&&t.type==="operator")for(let n of t.data.operands)"type"in n&&n.type==="value"&&typeof n.data.value=="string"&&r.push(n.data.value);if(r.includes(e)){let n=r.indexOf(e);n>-1&&r.splice(n,1)}else r.push(e);Oe.value=He(k({},Oe.value),{page:void 0,filter:He(k({},Oe.value.filter),{input:{type:"operator",data:{operator:"and",operands:r.map(n=>({type:"value",data:{field:"tags",value:n}}))}}})}),Ga(Ln())}function Ou(){return ct.value.items}function Lu(){return ct.value.total}function Mu(){var e;for(let t of(e=ct.value.aggregations)!=null?e:[])if(t.type==="term")return t.data.value;return[]}function lr(){return et.value.hideSearch}function ku(){return et.value.hideFilters}function Ja(){var e;return(e=Xa.value.highlight)!=null?e:!1}var et=At({hideSearch:!0,hideFilters:!0,selectedItem:0}),Xa=At({}),pr=At(),sa=At(),Oe=At({input:"",filter:{input:{type:"operator",data:{operator:"and",operands:[]}},aggregation:{input:[{type:"term",data:{field:"tags"}}]}}}),ct=At({items:[],query:{select:{documents:new aa(0),terms:new aa(0)},values:[]},pagination:{total:0}});function Au(e,t,r){for(let n=0;tr&&t(0,o,r,r=i);continue;case 62:e.charCodeAt(r+1)===47?t(2,--o,r,r=i+1):Au(e,r,n)?t(3,o,r,r=i+1):t(1,o++,r,r=i+1)}i>r&&t(0,o,r,i)}function Hu(e,t=0,r=e.length){let n=++t;e:for(let l=0;n{let i=[],a=[],{onElement:s,onText:c=$u}=typeof r=="function"?{onElement:r}:r,l=0,u=0;return e(t,(p,d,m,h)=>{if(p===0)i[l++]=c(t,m,h),a[u++]={value:null,depth:d};else if(p&1&&(a[u++]={value:Hu(t,m,h),depth:d}),p&2)for(let v=0;u>=0;v++){let{value:_,depth:x}=a[--u];if(x>d)continue;let E=i.slice(l-=v,l+v);i[l++]=s(_,E),u++;break}},n,o),i.slice(0,l)}}function Iu(e){return e.replace(/[&<>]/g,t=>{switch(t.charCodeAt(0)){case 38:return"&";case 60:return"<";case 62:return">"}})}function _n(e){return e.replace(/&(amp|[lg]t);/g,t=>{switch(t.charCodeAt(1)){case 97:return"&";case 108:return"<";case 103:return">"}})}function Ru(e,t){return{start:e.start+t,end:e.end+t,value:e.value}}function ju(e,t,r){return e.slice(t,r)}function Fu(e){let{onHighlight:t,onText:r=ju}=typeof e=="function"?{onHighlight:e}:e;return(n,o,i=0,a=n.length)=>{var l;let s=[],c=(l=o==null?void 0:o.ranges)!=null?l:[];for(let u=0,p=i;ua)break;let m=c[u].end;if(mi&&s.push(r(n,i,d));let{value:h}=c[u];s.push(t(n,{start:d,end:i=m,value:h}))}return it!==null&&typeof t<"u"&&t!==!1&&!(typeof t=="string"&&t.trim().length===0))}function es(e,t){let r=Za(e,{onElement(n,o){return kt(n.tag,n.attrs,...o)},onText(n,o,i){return Qa(n,t==null?void 0:t.value.highlight,o,i)}});return N(qe,{children:r})}function zu(e,t){var n;let r=[];for(let o=0,i=0;om.start=s||c.push(He(k({},m),{start:Math.max(m.start,a),end:Math.min(m.end,s)}));let l=Za(e,{onElement(m,h){var _;let v=Vu(h);if(v.length!==0)return Wu.has(m.tag)?kt(m.tag,(_=m.attrs)!=null?_:{},...v):m.tag==="li"?N(qe,{children:["\u2013 ",v," "]}):Du.has(m.tag)?N(qe,{children:[" ",v," "]}):N(qe,{children:v})},onText(m,h,v){let _=Math.max(h,a),x=Math.min(v,s);if(!(_>=x))return Qa(m,{ranges:c},_,x)}});return N(qe,{children:[a>0&&"...",l]})}function ts(e,t={highlight:!0}){Xa.value=t;let r=new Worker(e);r.onmessage=n=>{let o=n.data;switch(o.type){case 1:sa.value=!0;break;case 3:typeof o.data.pagination.prev<"u"?ct.value=He(k({},ct.value),{pagination:o.data.pagination,items:[...ct.value.items,...o.data.items]}):(ct.value=o.data,po(0));break}},Bt(()=>{pr.value&&r.postMessage({type:0,data:pr.value})}),Bt(()=>{sa.value&&r.postMessage({type:2,data:Oe.value})})}var ca={container:"p",hidden:"v"};function Ku(e){return N("div",{class:Kt(ca.container,{[ca.hidden]:e.hidden}),onClick:()=>zt()})}var la={container:"r",disabled:"c"};function ua(e){return N("button",{class:Kt(la.container,{[la.disabled]:!e.onClick}),onClick:e.onClick,children:e.children})}var pa=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),fa=e=>{let t=Bu(e);return t.charAt(0).toUpperCase()+t.slice(1)},Gu=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Yu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ju=c=>{var l=c,{color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,children:o,iconNode:i,class:a=""}=l,s=_r(l,["color","size","strokeWidth","absoluteStrokeWidth","children","iconNode","class"]);return kt("svg",k(He(k({},Yu),{width:String(t),height:t,stroke:e,"stroke-width":n?Number(r)*24/Number(t):r,class:["lucide",a].join(" ")}),s),[...i.map(([u,p])=>kt(u,p)),...$r(o)])},rs=(e,t)=>{let r=a=>{var s=a,{class:n="",children:o}=s,i=_r(s,["class","children"]);return kt(Ju,He(k({},i),{iconNode:t,class:Gu(`lucide-${pa(fa(e))}`,`lucide-${pa(e)}`,n)}),o)};return r.displayName=fa(e),r},Xu=rs("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]),Zu=rs("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),kw=Al(Cl(),1);function Qu({threshold:e=0,root:t=null,rootMargin:r="0%",freezeOnceVisible:n=!1,initialIsIntersecting:o=!1,onChange:i}={}){var a;let[s,c]=wn(null),[l,u]=wn(()=>({isIntersecting:o,entry:void 0})),p=qt();p.current=i;let d=((a=l.entry)==null?void 0:a.isIntersecting)&&n;vt(()=>{if(!s||!("IntersectionObserver"in window)||d)return;let v,_=new IntersectionObserver(x=>{let E=Array.isArray(_.thresholds)?_.thresholds:[_.thresholds];x.forEach(y=>{let Z=y.isIntersecting&&E.some(ve=>y.intersectionRatio>=ve);u({isIntersecting:Z,entry:y}),p.current&&p.current(Z,y),Z&&n&&v&&(v(),v=void 0)})},{threshold:e,root:t,rootMargin:r});return _.observe(s),()=>{_.disconnect()}},[s,JSON.stringify(e),t,r,d,n]);let m=qt(null);vt(()=>{var v;!s&&(v=l.entry)!=null&&v.target&&!n&&!d&&m.current!==l.entry.target&&(m.current=l.entry.target,u({isIntersecting:o,entry:void 0}))},[s,l.entry,n,d,o]);let h=[c,!!l.isIntersecting,l.entry];return h.ref=h[0],h.isIntersecting=h[1],h.entry=h[2],h}var dt={container:"n",hidden:"l",content:"y",pop:"d",badge:"w",sidebar:"e",controls:"k",results:"z",loadmore:"j"};function ep(e){let{isIntersecting:t,ref:r}=Qu({threshold:0});vt(()=>{t&&Eu()},[t]);let n=qt(null);vt(()=>{n.current&&typeof Oe.value.page>"u"&&n.current.scrollTo({top:0,behavior:"smooth"})},[Oe.value]);let o=Ya();return N("div",{class:Kt(dt.container,{[dt.hidden]:e.hidden}),children:[N("div",{class:dt.content,children:[N("div",{class:dt.controls,children:[N(ua,{onClick:zt,children:N(Zu,{})}),N(rp,{focus:!e.hidden}),N(ua,{onClick:Ba,children:[N(Xu,{}),o.length>0&&N("span",{class:dt.badge,children:o.length})]})]}),N("div",{class:dt.results,ref:n,children:[N(np,{keyboard:!e.hidden}),N("div",{class:dt.loadmore,ref:r})]})]}),N("div",{class:Kt(dt.sidebar,{[dt.hidden]:ku()}),children:N(tp,{})})]})}var Lt={container:"X",list:"F",heading:"I",title:"R",item:"o",active:"g",value:"q",count:"A"};function tp(e){let t=Mu();return t.sort((r,n)=>n.node.count-r.node.count),N("div",{class:Lt.container,children:[N("h3",{class:Lt.heading,children:"Filters"}),N("h4",{class:Lt.title,children:"Tags"}),N("ol",{class:Lt.list,children:t.map(r=>N("li",{class:Kt(Lt.item,{[Lt.active]:Tu(r.node.value)}),onClick:()=>Su(r.node.value),children:[N("span",{class:Lt.value,children:r.node.value}),N("span",{class:Lt.count,children:r.node.count})]}))})]})}var ma={container:"f"};function rp(e){let t=qt(null);return vt(()=>{var r,n;e.focus?(r=t.current)==null||r.focus():(n=t.current)==null||n.blur()},[e.focus]),N("div",{class:ma.container,children:N("input",{ref:t,type:"text",class:ma.content,value:_n(Ln()),onInput:r=>Ga(Iu(r.currentTarget.value)),autocapitalize:"off",autocomplete:"off",autocorrect:"off",placeholder:"Search",spellcheck:!1,role:"combobox"})})}var st={container:"b",heading:"B",item:"i",active:"h",wrapper:"C",meta:"D",actions:"s",title:"x",path:"t",excerpt:"u",more:"E"};function ns(){let[e,t]=wn(!1);return vt(()=>{let r=()=>t(!0),n=()=>t(!1);return document.addEventListener("compositionstart",r),document.addEventListener("compositionend",n),()=>{document.removeEventListener("compositionstart",r),document.removeEventListener("compositionend",n)}},[]),e}function np(e){var s;let t=wu(),r=Ou(),n=yn(),o=qt([]),i=ns();vt(()=>{let c=o.current[n];c&&c.scrollIntoView({block:"center",behavior:"smooth"})},[n]),Ia(e.keyboard,c=>{if(i)return;let l=yn();c.key==="ArrowDown"?(c.preventDefault(),po(Math.min(l+1,r.length-1))):c.key==="ArrowUp"&&(c.preventDefault(),po(Math.max(l-1,0)))},[e.keyboard,i]);let a=(s=Lu())!=null?s:0;return N(qe,{children:[r.length>0&&N("h3",{class:st.heading,children:[N("span",{class:st.bubble,children:new Intl.NumberFormat("en-US").format(a)})," ","results"]}),N("ol",{class:st.container,children:r.map((c,l)=>{var _,x,E,y;let u=c.matches.find(({field:Z})=>Z==="text"),p=es(t[c.id].title,c.matches.find(({field:Z})=>Z==="title")),d=zu((_=t[c.id].path)!=null?_:[],c.matches.find(({field:Z})=>Z==="path")),m=qu(t[c.id].text,u),h=Math.max(0,((y=(E=(x=u==null?void 0:u.value.highlight)==null?void 0:x.ranges)==null?void 0:E.filter(Z=>Z.start{o.current[l]=Z},href:v,onClick:()=>zt(),class:Kt(st.item,{[st.active]:l===yn()}),children:N("div",{class:st.wrapper,children:[N("div",{class:st.meta,children:N("menu",{class:st.path,children:d.map(Z=>N("li",{children:Z}))})}),N("h2",{class:st.title,children:p}),m&&N("div",{class:st.excerpt,children:m})]})})})})})]})}var op={container:"a"};function ip(e){let t=ns();return Ia(!0,r=>{var n,o,i,a,s;if(!t)if((r.metaKey||r.ctrlKey)&&r.key==="k")r.preventDefault(),zt();else if((r.metaKey||r.ctrlKey)&&r.key==="j")document.body.classList.toggle("dark");else if(r.key==="Enter"&&!lr()){r.preventDefault();let c=yn(),l=(o=(n=ct.value)==null?void 0:n.items[c])==null?void 0:o.id;if((a=(i=pr.value)==null?void 0:i.items[l])!=null&&a.location){zt();let u=(s=pr.value)==null?void 0:s.items[l].location;if(Ja()){let p=encodeURIComponent(Ln()),[d,m]=u.split("#",2);u=`${d}?h=${p.replace(/%20/g,"+")}`,typeof m<"u"&&(u+=`#${m}`)}window.location.href=u}}else r.key==="Escape"&&!lr()&&(r.preventDefault(),zt())},[t]),N("div",{class:op.container,children:[N(Ku,{hidden:lr()}),N(ep,{hidden:lr()})]})}function os(e,t){xu(e),Fl(N(ip,{}),t)}function _o(){zt()}function ap(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function sp(){return R(b(window,"compositionstart").pipe(f(()=>!0)),b(window,"compositionend").pipe(f(()=>!1))).pipe(J(!1))}function is(){let e=b(window,"keydown").pipe(f(t=>({mode:lr()?"global":"search",type:t.key,meta:t.ctrlKey||t.metaKey,claim(){t.preventDefault(),t.stopPropagation()}})),O(({mode:t,type:r})=>{if(t==="global"){let n=Tt();if(typeof n!="undefined")return!ap(n,r)}return!0}),xe());return sp().pipe(g(t=>t?w:e))}function Ue(){return new URL(location.href)}function bt(e,t=!1){if(X("navigation.instant")&&!t){let r=A("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function as(){return new I}function ss(){return location.hash.slice(1)}function cs(e){let t=A("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function xo(e){return R(b(window,"hashchange"),e).pipe(f(ss),J(ss()),O(t=>t.length>0),f(decodeURIComponent),ne(1))}function ls(e){return xo(e).pipe(f(t=>we(`[id="${t}"]`)),O(t=>typeof t!="undefined"))}function jr(e){let t=matchMedia(e);return un(r=>t.addListener(()=>r(t.matches))).pipe(J(t.matches))}function us(){let e=matchMedia("print");return R(b(window,"beforeprint").pipe(f(()=>!0)),b(window,"afterprint").pipe(f(()=>!1))).pipe(J(e.matches))}function wo(e,t){return e.pipe(g(r=>r?t():w))}function Eo(e,t){return new F(r=>{let n=new XMLHttpRequest;return n.open("GET",`${e}`),n.responseType="blob",n.addEventListener("load",()=>{n.status>=200&&n.status<300?(r.next(n.response),r.complete()):r.error(new Error(n.statusText))}),n.addEventListener("error",()=>{r.error(new Error("Network error"))}),n.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(n.addEventListener("progress",o=>{var i;if(o.lengthComputable)t.progress$.next(o.loaded/o.total*100);else{let a=(i=n.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(o.loaded/+a*100)}}),t.progress$.next(5)),n.send(),()=>n.abort()})}function tt(e,t){return Eo(e,t).pipe(g(r=>r.text()),f(r=>JSON.parse(r)),ne(1))}function Mn(e,t){let r=new DOMParser;return Eo(e,t).pipe(g(n=>n.text()),f(n=>r.parseFromString(n,"text/html")),ne(1))}function ps(e,t){let r=new DOMParser;return Eo(e,t).pipe(g(n=>n.text()),f(n=>r.parseFromString(n,"text/xml")),ne(1))}var To={drawer:Y("[data-md-toggle=drawer]"),search:Y("[data-md-toggle=search]")};function So(e,t){To[e].checked!==t&&To[e].click()}function kn(e){let t=To[e];return b(t,"change").pipe(f(()=>t.checked),J(t.checked))}function fs(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function ms(){return R(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(f(fs),J(fs()))}function ds(){return{width:innerWidth,height:innerHeight}}function hs(){return b(window,"resize",{passive:!0}).pipe(f(ds),J(ds()))}function vs(){return oe([ms(),hs()]).pipe(f(([e,t])=>({offset:e,size:t})),ne(1))}function An(e,{viewport$:t,header$:r}){let n=t.pipe(he("size")),o=oe([n,r]).pipe(f(()=>St(e)));return oe([r,t,o]).pipe(f(([{height:i},{offset:a,size:s},{x:c,y:l}])=>({offset:{x:a.x-c,y:a.y-l+i},size:s})))}var cp=Y("#__config"),hr=JSON.parse(cp.textContent);hr.base=`${new URL(hr.base,Ue())}`;function Ne(){return hr}function X(e){return hr.features.includes(e)}function Yt(e,t){return typeof t!="undefined"?hr.translations[e].replace("#",t.toString()):hr.translations[e]}function gt(e,t=document){return Y(`[data-md-component=${e}]`,t)}function Te(e,t=document){return $(`[data-md-component=${e}]`,t)}function lp(e){let t=Y(".md-typeset > :first-child",e);return b(t,"click",{once:!0}).pipe(f(()=>Y(".md-typeset",e)),f(r=>({hash:__md_hash(r.innerHTML)})))}function bs(e){if(!X("announce.dismiss")||!e.childElementCount)return w;if(!e.hidden){let t=Y(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return j(()=>{let t=new I;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),lp(e).pipe(P(r=>t.next(r)),q(()=>t.complete()),f(r=>k({ref:e},r)))})}function up(e,{target$:t}){return t.pipe(f(r=>({hidden:r!==e})))}function gs(e,t){let r=new I;return r.subscribe(({hidden:n})=>{e.hidden=n}),up(e,t).pipe(P(n=>r.next(n)),q(()=>r.complete()),f(n=>k({ref:e},n)))}function Oo(e,t){return t==="inline"?A("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},A("div",{class:"md-tooltip__inner md-typeset"})):A("div",{class:"md-tooltip",id:e,role:"tooltip"},A("div",{class:"md-tooltip__inner md-typeset"}))}function Cn(...e){return A("div",{class:"md-tooltip2",role:"dialog"},A("div",{class:"md-tooltip2__inner md-typeset"},e))}function ys(...e){return A("div",{class:"md-tooltip2",role:"tooltip"},A("div",{class:"md-tooltip2__inner md-typeset"},e))}function _s(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return A("aside",{class:"md-annotation",tabIndex:0},Oo(t),A("a",{href:r,class:"md-annotation__index",tabIndex:-1},A("span",{"data-md-annotation-id":e})))}else return A("aside",{class:"md-annotation",tabIndex:0},Oo(t),A("span",{class:"md-annotation__index",tabIndex:-1},A("span",{"data-md-annotation-id":e})))}function xs(e){return A("button",{class:"md-code__button",title:Yt("clipboard.copy"),"data-clipboard-target":`#${e} > code`,"data-md-type":"copy"})}function ws(){return A("button",{class:"md-code__button",title:"Toggle line selection","data-md-type":"select"})}function Es(){return A("nav",{class:"md-code__nav"})}var mp=xr(Lo());function Ss(e){return A("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>A("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Ai(r):r)))}function Mo(e){let t=`tabbed-control tabbed-control--${e}`;return A("div",{class:t,hidden:!0},A("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function Os(e){return A("div",{class:"md-typeset__scrollwrap"},A("div",{class:"md-typeset__table"},e))}function dp(e){var n;let t=Ne(),r=new URL(`../${e.version}/`,t.base);return A("li",{class:"md-version__item"},A("a",{href:`${r}`,class:"md-version__link"},e.title,((n=t.version)==null?void 0:n.alias)&&e.aliases.length>0&&A("span",{class:"md-version__alias"},e.aliases[0])))}function Ls(e,t){var n;let r=Ne();return e=e.filter(o=>{var i;return!((i=o.properties)!=null&&i.hidden)}),A("div",{class:"md-version"},A("button",{class:"md-version__current","aria-label":Yt("select.version")},t.title,((n=r.version)==null?void 0:n.alias)&&t.aliases.length>0&&A("span",{class:"md-version__alias"},t.aliases[0])),A("ul",{class:"md-version__list"},e.map(dp)))}var hp=0;function vp(e,t=250){let r=oe([cr(e),Dt(e,t)]).pipe(f(([o,i])=>o||i),se()),n=j(()=>Pi(e)).pipe(ae(Wt),kr(1),Qe(r),f(()=>Ii(e)));return r.pipe(Lr(o=>o),g(()=>oe([r,n])),f(([o,i])=>({active:o,offset:i})),xe())}function Fr(e,t,r=250){let{content$:n,viewport$:o}=t,i=`__tooltip2_${hp++}`;return j(()=>{let a=new I,s=new zn(!1);a.pipe(be(),_e(!1)).subscribe(s);let c=s.pipe(Or(u=>ze(+!u*250,Bn)),se(),g(u=>u?n:w),P(u=>u.id=i),xe());oe([a.pipe(f(({active:u})=>u)),c.pipe(g(u=>Dt(u,250)),J(!1))]).pipe(f(u=>u.some(p=>p))).subscribe(s);let l=s.pipe(O(u=>u),fe(c,o),f(([u,p,{size:d}])=>{let m=e.getBoundingClientRect(),h=m.width/2;if(p.role==="tooltip")return{x:h,y:8+m.height};if(m.y>=d.height/2){let{height:v}=Ae(p);return{x:h,y:-16-v}}else return{x:h,y:16+m.height}}));return oe([c,a,l]).subscribe(([u,{offset:p},d])=>{u.style.setProperty("--md-tooltip-host-x",`${p.x}px`),u.style.setProperty("--md-tooltip-host-y",`${p.y}px`),u.style.setProperty("--md-tooltip-x",`${d.x}px`),u.style.setProperty("--md-tooltip-y",`${d.y}px`),u.classList.toggle("md-tooltip2--top",d.y<0),u.classList.toggle("md-tooltip2--bottom",d.y>=0)}),s.pipe(O(u=>u),fe(c,(u,p)=>p),O(u=>u.role==="tooltip")).subscribe(u=>{let p=Ae(Y(":scope > *",u));u.style.setProperty("--md-tooltip-width",`${p.width}px`),u.style.setProperty("--md-tooltip-tail","0px")}),s.pipe(se(),Ie(je),fe(c)).subscribe(([u,p])=>{p.classList.toggle("md-tooltip2--active",u)}),oe([s.pipe(O(u=>u)),c]).subscribe(([u,p])=>{p.role==="dialog"?(e.setAttribute("aria-controls",i),e.setAttribute("aria-haspopup","dialog")):e.setAttribute("aria-describedby",i)}),s.pipe(O(u=>!u)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),vp(e,r).pipe(P(u=>a.next(u)),q(()=>a.complete()),f(u=>k({ref:e},u)))})}function Je(e,{viewport$:t},r=document.body){return Fr(e,{content$:new F(n=>{let o=e.title,i=ys(o);return n.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",o)}}),viewport$:t},0)}function bp(e,t){let r=j(()=>oe([Ri(e),Wt(t)])).pipe(f(([{x:n,y:o},i])=>{let{width:a,height:s}=Ae(e);return{x:n-i.x+a/2,y:o-i.y+s/2}}));return cr(e).pipe(g(n=>r.pipe(f(o=>({active:n,offset:o})),Me(+!n||1/0))))}function Ms(e,t,{target$:r}){let[n,o]=Array.from(e.children);return j(()=>{let i=new I,a=i.pipe(be(),_e(!0));return i.subscribe({next({offset:s}){e.style.setProperty("--md-tooltip-x",`${s.x}px`),e.style.setProperty("--md-tooltip-y",`${s.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),Ot(e).pipe(ee(a)).subscribe(s=>{e.toggleAttribute("data-md-visible",s)}),R(i.pipe(O(({active:s})=>s)),i.pipe(Ye(250),O(({active:s})=>!s))).subscribe({next({active:s}){s?e.prepend(n):n.remove()},complete(){e.prepend(n)}}),i.pipe(Ze(16,je)).subscribe(({active:s})=>{n.classList.toggle("md-tooltip--active",s)}),i.pipe(kr(125,je),O(()=>!!e.offsetParent),f(()=>e.offsetParent.getBoundingClientRect()),f(({x:s})=>s)).subscribe({next(s){s?e.style.setProperty("--md-tooltip-0",`${-s}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),b(o,"click").pipe(ee(a),O(s=>!(s.metaKey||s.ctrlKey))).subscribe(s=>{s.stopPropagation(),s.preventDefault()}),b(o,"mousedown").pipe(ee(a),fe(i)).subscribe(([s,{active:c}])=>{var l;if(s.button!==0||s.metaKey||s.ctrlKey)s.preventDefault();else if(c){s.preventDefault();let u=e.parentElement.closest(".md-annotation");u instanceof HTMLElement?u.focus():(l=Tt())==null||l.blur()}}),r.pipe(ee(a),O(s=>s===n),Ft(125)).subscribe(()=>e.focus()),bp(e,t).pipe(P(s=>i.next(s)),q(()=>i.complete()),f(s=>k({ref:e},s)))})}function gp(e){let t=Ne();if(e.tagName!=="CODE")return[e];let r=[".c",".c1",".cm"];if(t.annotate){let n=e.closest("[class|=language]");if(n)for(let o of Array.from(n.classList)){if(!o.startsWith("language-"))continue;let[,i]=o.split("-");i in t.annotate&&r.push(...t.annotate[i])}}return $(r.join(", "),e)}function yp(e){let t=[];for(let r of gp(e)){let n=[],o=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=o.nextNode();i;i=o.nextNode())n.push(i);for(let i of n){let a;for(;a=/(\(\d+\))(!)?/.exec(i.textContent);){let[,s,c]=a;if(typeof c=="undefined"){let l=i.splitText(a.index);i=l.splitText(s.length),t.push(l)}else{i.textContent=s,t.push(i);break}}}}return t}function ks(e,t){t.append(...Array.from(e.childNodes))}function Hn(e,t,{target$:r,print$:n}){let o=t.closest("[id]"),i=o==null?void 0:o.id,a=new Map;for(let s of yp(t)){let[,c]=s.textContent.match(/\((\d+)\)/);we(`:scope > li:nth-child(${c})`,e)&&(a.set(c,_s(c,i)),s.replaceWith(a.get(c)))}return a.size===0?w:j(()=>{let s=new I,c=s.pipe(be(),_e(!0)),l=[];for(let[u,p]of a)l.push([Y(".md-typeset",p),Y(`:scope > li:nth-child(${u})`,e)]);return n.pipe(ee(c)).subscribe(u=>{e.hidden=!u,e.classList.toggle("md-annotation-list",u);for(let[p,d]of l)u?ks(p,d):ks(d,p)}),R(...[...a].map(([,u])=>Ms(u,t,{target$:r}))).pipe(q(()=>s.complete()),xe())})}function As(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return As(t)}}function Cs(e,t){return j(()=>{let r=As(e);return typeof r!="undefined"?Hn(r,e,t):w})}var $s=xr(Ao());var _p=0,Hs=R(b(window,"keydown").pipe(f(()=>!0)),R(b(window,"keyup"),b(window,"contextmenu")).pipe(f(()=>!1))).pipe(J(!1),ne(1));function Ps(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Ps(t)}}function xp(e){return Re(e).pipe(f(({width:t})=>({scrollable:Ar(e).width>t})),he("scrollable"))}function Is(e,t){let{matches:r}=matchMedia("(hover)"),n=j(()=>{let o=new I,i=o.pipe(Qn(1));o.subscribe(({scrollable:m})=>{m&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let a=[],s=e.closest("pre"),c=s.closest("[id]"),l=c?c.id:_p++;s.id=`__code_${l}`;let u=[],p=e.closest(".highlight");if(p instanceof HTMLElement){let m=Ps(p);if(typeof m!="undefined"&&(p.classList.contains("annotate")||X("content.code.annotate"))){let h=Hn(m,e,t);u.push(Re(p).pipe(ee(i),f(({width:v,height:_})=>v&&_),se(),g(v=>v?h:w)))}}let d=$(":scope > span[id]",e);if(d.length&&(e.classList.add("md-code__content"),e.closest(".select")||X("content.code.select")&&!e.closest(".no-select"))){let m=+d[0].id.split("-").pop(),h=ws();a.push(h),X("content.tooltips")&&u.push(Je(h,{viewport$}));let v=b(h,"click").pipe(Mr(L=>!L,!1),P(()=>h.blur()),xe());v.subscribe(L=>{h.classList.toggle("md-code__button--active",L)});let _=de(d).pipe(ae(L=>Dt(L).pipe(f(M=>[L,M]))));v.pipe(g(L=>L?_:w)).subscribe(([L,M])=>{let W=we(".hll.select",L);if(W&&!M)W.replaceWith(...Array.from(W.childNodes));else if(!W&&M){let te=document.createElement("span");te.className="hll select",te.append(...Array.from(L.childNodes).slice(1)),L.append(te)}});let x=de(d).pipe(ae(L=>b(L,"mousedown").pipe(P(M=>M.preventDefault()),f(()=>L)))),E=v.pipe(g(L=>L?x:w),fe(Hs),f(([L,M])=>{var te;let W=d.indexOf(L)+m;if(M===!1)return[W,W];{let ue=$(".hll",e).map(le=>d.indexOf(le.parentElement)+m);return(te=window.getSelection())==null||te.removeAllRanges(),[Math.min(W,...ue),Math.max(W,...ue)]}})),y=xo(w).pipe(O(L=>L.startsWith(`__codelineno-${l}-`)));y.subscribe(L=>{let[,,M]=L.split("-"),W=M.split(":").map(ue=>+ue-m+1);W.length===1&&W.push(W[0]);for(let ue of $(".hll:not(.select)",e))ue.replaceWith(...Array.from(ue.childNodes));let te=d.slice(W[0]-1,W[1]);for(let ue of te){let le=document.createElement("span");le.className="hll",le.append(...Array.from(ue.childNodes).slice(1)),ue.append(le)}}),y.pipe(Me(1),Ie(ye)).subscribe(L=>{if(L.includes(":")){let M=document.getElementById(L.split(":")[0]);M&&setTimeout(()=>{let W=M,te=-64;for(;W!==document.body;)te+=W.offsetTop,W=W.offsetParent;window.scrollTo({top:te})},1)}});let ve=de($('a[href^="#__codelineno"]',p)).pipe(ae(L=>b(L,"click").pipe(P(M=>M.preventDefault()),f(()=>L)))).pipe(ee(i),fe(Hs),f(([L,M])=>{let te=+Y(`[id="${L.hash.slice(1)}"]`).parentElement.id.split("-").pop();if(M===!1)return[te,te];{let ue=$(".hll",e).map(le=>+le.parentElement.id.split("-").pop());return[Math.min(te,...ue),Math.max(te,...ue)]}}));R(E,ve).subscribe(L=>{let M=`#__codelineno-${l}-`;L[0]===L[1]?M+=L[0]:M+=`${L[0]}:${L[1]}`,history.replaceState({},"",M),window.dispatchEvent(new HashChangeEvent("hashchange",{newURL:window.location.origin+window.location.pathname+M,oldURL:window.location.href}))})}if($s.default.isSupported()&&(e.closest(".copy")||X("content.code.copy")&&!e.closest(".no-copy"))){let m=xs(s.id);a.push(m),X("content.tooltips")&&u.push(Je(m,{viewport$}))}if(a.length){let m=Es();m.append(...a),s.insertBefore(m,e)}return xp(e).pipe(P(m=>o.next(m)),q(()=>o.complete()),f(m=>k({ref:e},m)),Ut(R(...u).pipe(ee(i))))});return X("content.lazy")?Ot(e).pipe(O(o=>o),Me(1),g(()=>n)):n}function wp(e,{target$:t,print$:r}){let n=!0;return R(t.pipe(f(o=>o.closest("details:not([open])")),O(o=>e===o),f(()=>({action:"open",reveal:!0}))),r.pipe(O(o=>o||!n),P(()=>n=e.open),f(o=>({action:o?"open":"close"}))))}function Rs(e,t){return j(()=>{let r=new I;return r.subscribe(({action:n,reveal:o})=>{e.toggleAttribute("open",n==="open"),o&&e.scrollIntoView()}),wp(e,t).pipe(P(n=>r.next(n)),q(()=>r.complete()),f(n=>k({ref:e},n)))})}var js,Fs,Co={},Us=!1;function Ns(e,t){return t()?at(e).pipe(me(()=>D(void 0)),f(()=>{})):D(void 0)}function Ep(e){if(!e)return[];if(e.startsWith("[")&&e.endsWith("]"))try{let t=JSON.parse(e);if(Array.isArray(t))return t.filter(r=>typeof r=="string")}catch(t){}return e.split(/[,\s]+/).map(t=>t.trim()).filter(t=>t.length>0)}function Tp(e){var i,a,s;let t=e.querySelector("[id$='--editor']"),r=e.querySelector("[id$='--run']"),n=e.querySelector("[id$='--clear']"),o=e.querySelector("[id$='--output']");if(!t||!r||!n||!o)throw new Error("Invalid Pyodide structure");return{root:e,editor:t,output:o,run:r,clear:n,source:(a=(i=t.textContent)==null?void 0:i.trimEnd())!=null?a:"",session:(s=e.dataset.session)!=null?s:"default",install:Ep(e.dataset.install),minLines:typeof e.dataset.minLines=="undefined"?0:parseInt(e.dataset.minLines),maxLines:typeof e.dataset.maxLines=="undefined"?1/0:parseInt(e.dataset.maxLines)}}function Sp(e,t){return e in Co||(Co[e]=t.globals.get("dict")()),Co[e]}function Nr(e,t){e.textContent=t}function Ho(e){e.textContent=""}function Op(){return new Promise(e=>requestAnimationFrame(()=>e()))}function Lp(e,t,r,n){return pt(this,null,function*(){let o=[];e.setStdout({batched(i){o.push(i),Nr(r,`${o.join(` -`)} -`)}});try{let i=yield e.runPythonAsync(t.getValue(),{globals:Sp(n,e)});typeof i!="undefined"&&i!==null&&(o.push(String(i)),Nr(r,`${o.join(` -`)} -`))}catch(i){o.push(String(i)),Nr(r,`${o.join(` -`)} -`)}})}function Mp(){return Fs||(Fs=Ns("https://unpkg.com/pyodide@314.0.2/pyodide.js",()=>typeof loadPyodide=="undefined"||loadPyodide instanceof Element).pipe(f(()=>pt(null,null,function*(){try{let e=yield loadPyodide({indexURL:"https://cdn.jsdelivr.net/pyodide/v314.0.2/full/"});return yield e.loadPackage("micropip"),e}catch(e){return null}})),ne(1))),Fs}function kp(){Us||(ace.define("ace/theme/zensical",["require","exports","module","ace/lib/dom"],(e,t)=>{t.isDark=!1,t.cssClass="ace-zensical",t.cssText=""}),Us=!0)}function Ds(e){return js||(js=Ns("https://unpkg.com/ace-builds@1.44.0/src-noconflict/ace.js",()=>typeof ace=="undefined"||ace instanceof Element).pipe(ne(1))),new F(t=>{let r=!0,n,o,i=Tp(e);i.root.setAttribute("data-md-exec-state","ready");let a=()=>Ho(i.output),s=()=>pt(null,null,function*(){return o||(o=pt(null,null,function*(){if(i.root.setAttribute("data-md-exec-state","loading"),Nr(i.output,"Initializing..."),yield Op(),!r)return null;let u=yield ln(Mp()).then(p=>p);if(!r||!u)return null;if(i.install.length>0)try{let p=u.pyimport("micropip");for(let d of i.install)yield p.install(d)}catch(p){return Ho(i.output),Nr(i.output,`Could not install one or more packages: ${i.install.join(", ")} -${String(p)}`),i.root.setAttribute("data-md-exec-state","error"),null}return r?(Ho(i.output),i.root.setAttribute("data-md-exec-state","ready"),u):null})),o}),c=()=>{pt(null,null,function*(){let u=yield s();!r||!u||!n||Lp(u,n,i.output,i.session)})},l=u=>{u.ctrlKey&&u.key.toLowerCase()==="enter"&&(u.preventDefault(),i.run.click())};return i.run.addEventListener("click",c),i.clear.addEventListener("click",a),i.root.addEventListener("keydown",l),pt(null,null,function*(){yield ln(js),r&&(kp(),i.editor.textContent="",n=ace.edit(i.editor),n.setTheme("ace/theme/zensical"),n.session.setMode("ace/mode/python"),n.setOption("fontFamily","var(--md-code-font)"),n.setOption("minLines",i.minLines),n.setOption("maxLines",i.maxLines),n.session.setValue(i.source),n.gotoLine(1,0,!1),n.clearSelection(),n.resize(),n.renderer.updateFull())}),t.next({ref:i.root}),()=>{r=!1,i.run.removeEventListener("click",c),i.clear.removeEventListener("click",a),i.root.removeEventListener("keydown",l),n==null||n.destroy(),i.root.removeAttribute("data-md-exec-state")}})}var Ws;function Ap(){return typeof GLightbox=="undefined"||GLightbox instanceof Element?at("https://unpkg.com/glightbox@3/dist/js/glightbox.min.js").pipe(me(()=>w),f(()=>{})):D(void 0)}function Cp(){return Ci("https://unpkg.com/glightbox@3/dist/css/glightbox.min.css").pipe(me(()=>w),f(()=>{}))}function Vs(e){return Ws||(Ws=Ap().pipe(f(()=>new GLightbox(k({touchNavigation:!0,loop:!1,zoomable:!0,draggable:!0,openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",onOpen:()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}},typeof GLightboxOptions!="undefined"?GLightboxOptions:{}))),ne(1))),Cp().pipe(g(()=>Ws),g(t=>(t.reload(),e.map(r=>({ref:r})))))}var zs=0,qs=new Map;function Hp(e){let t=document.createElement("h3");t.innerHTML=e.innerHTML;let r=[t],n=e.nextElementSibling;for(;n&&!(n instanceof HTMLHeadingElement);)r.push(n.cloneNode(!0)),n=n.nextElementSibling;return r}function $p(e,t){for(let r of $("[href], [src]",e))for(let n of["href","src"]){let o=r.getAttribute(n);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){r[n]=new URL(r.getAttribute(n),t).toString();break}}for(let r of $("[name^=__], [for]",e))for(let n of["id","for","name"]){let o=r.getAttribute(n);o&&r.setAttribute(n,`${o}$preview_${zs}`)}return zs++,D(e)}function Pp(e){let t=qs.get(e.toString());return t?D(t):Mn(e).pipe(g(r=>$p(r,e)),f(r=>(qs.set(e.toString(),r),r)))}function Ks(e,t){let{sitemap$:r}=t;if(!(e instanceof HTMLAnchorElement))return w;if(!(X("navigation.instant.preview")||e.hasAttribute("data-preview")))return w;e.removeAttribute("title");let n=oe([cr(e),Dt(e).pipe(ke(1))]).pipe(f(([i,a])=>i||a),se(),O(i=>i));return Rt([r,n]).pipe(g(([i])=>{let a=new URL(e.href);return a.search=a.hash="",i.has(`${a}`)?D(a):w}),g(i=>Pp(i)),g(i=>{let a=e.hash?`article [id="${decodeURIComponent(e.hash.slice(1))}"]`:"article h1",s=we(a,i);return typeof s=="undefined"?w:D(Hp(s))})).pipe(g(i=>{let a=new F(s=>{let c=Cn(...i);return s.next(c),document.body.append(c),()=>c.remove()});return Fr(e,k({content$:a},t))}))}var Bs=".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.marker{fill:var(--md-mermaid-edge-color);stroke:var(--md-mermaid-edge-color)}.edgeLabel .label rect{fill:#0000}.flowchartTitleText{fill:var(--md-mermaid-label-fg-color)}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel p,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel p{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color)}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}.classDiagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs marker.marker.composition.class path,defs marker.marker.dependency.class path,defs marker.marker.extension.class path{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs marker.marker.aggregation.class path{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}.statediagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}a .nodeLabel{text-decoration:underline}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs [id$=-barbEnd]{fill:var(--md-mermaid-edge-color);stroke:var(--md-mermaid-edge-color)}[id^=entity] path,[id^=entity] rect{fill:var(--md-default-bg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs .marker.oneOrMore.er *,defs .marker.onlyOne.er *,defs .marker.zeroOrMore.er *,defs .marker.zeroOrOne.er *{stroke:var(--md-mermaid-edge-color)!important}text:not([class]):last-child{fill:var(--md-mermaid-label-fg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}.actor-line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan,.sectionTitle{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}[id$=-arrowhead] path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}[id$=-sequencenumber],defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}[class^=activation]{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-label-fg-color);stroke-width:1.5px}";var $o,Rp=0;function jp(){return typeof mermaid=="undefined"||mermaid instanceof Element?at("https://unpkg.com/mermaid@11/dist/mermaid.min.js"):D(void 0)}function Gs(e){return e.classList.remove("mermaid"),$o||($o=jp().pipe(P(()=>mermaid.initialize({startOnLoad:!1,themeCSS:Bs,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),f(()=>{}),ne(1))),$o.subscribe(()=>pt(null,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${Rp++}`,r=A("div",{class:"mermaid"}),n=e.textContent,{svg:o,fn:i}=yield mermaid.render(t,n),a=r.attachShadow({mode:"closed"});a.innerHTML=o,e.replaceWith(r),i==null||i(a)})),$o.pipe(f(()=>({ref:e})))}var Ys=A("table");function Js(e){return e.replaceWith(Ys),Ys.replaceWith(Os(e)),D({ref:e})}function Fp(e){let t=e.find(r=>r.checked)||e[0];return R(...e.map(r=>b(r,"change").pipe(f(()=>Y(`label[for="${r.id}"]`))))).pipe(J(Y(`label[for="${t.id}"]`)),f(r=>({active:r})))}function Xs(e,{viewport$:t,target$:r}){let n=Y(".tabbed-labels",e),o=$(":scope > input",e),i=Mo("prev");e.append(i);let a=Mo("next");return e.append(a),j(()=>{let s=new I,c=s.pipe(be(),_e(!0));oe([s,Re(e),Ot(e)]).pipe(ee(c),Ze(1,je)).subscribe({next([{active:l},u]){let p=St(l),{width:d}=Ae(l);e.style.setProperty("--md-indicator-x",`${p.x}px`),e.style.setProperty("--md-indicator-width",`${d}px`);let m=dn(n);(p.xm.x+u.width)&&n.scrollTo({left:Math.max(0,p.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),oe([Wt(n),Re(n)]).pipe(ee(c)).subscribe(([l,u])=>{let p=Ar(n);i.hidden=l.x<16,a.hidden=l.x>p.width-u.width-16}),R(b(i,"click").pipe(f(()=>-1)),b(a,"click").pipe(f(()=>1))).pipe(ee(c)).subscribe(l=>{let{width:u}=Ae(n);n.scrollBy({left:u*l,behavior:"smooth"})}),r.pipe(ee(c),O(l=>o.includes(l))).subscribe(l=>l.click()),n.classList.add("tabbed-labels--linked");for(let l of o){let u=Y(`label[for="${l.id}"]`);u.replaceChildren(A("a",{href:`#${u.htmlFor}`,tabIndex:-1},...Array.from(u.childNodes))),b(u.firstElementChild,"click").pipe(ee(c),O(p=>!(p.metaKey||p.ctrlKey)),P(p=>{p.preventDefault(),p.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${u.htmlFor}`),u.click()})}return X("content.tabs.link")&&s.pipe(ke(1),fe(t)).subscribe(([{active:l},{offset:u}])=>{let p=l.innerText.trim();if(l.hasAttribute("data-md-switching"))l.removeAttribute("data-md-switching");else{let d=e.offsetTop-u.y;for(let h of $("[data-tabs]"))for(let v of $(":scope > input",h)){let _=Y(`label[for="${v.id}"]`);if(_!==l&&_.innerText.trim()===p){_.setAttribute("data-md-switching",""),v.click();break}}window.scrollTo({top:e.offsetTop-d});let m=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([p,...m])])}}),s.pipe(ee(c)).subscribe(()=>{for(let l of $("audio, video",e))l.offsetWidth&&l.autoplay?l.play().catch(()=>{}):l.pause()}),Fp(o).pipe(P(l=>s.next(l)),q(()=>s.complete()),f(l=>k({ref:e},l)))}).pipe(It(ye))}function Zs(e,t){let{viewport$:r,target$:n,print$:o}=t;return R(...$(".annotate:not(.highlight)",e).map(i=>Cs(i,{target$:n,print$:o})),...$(".pyodide",e).map(i=>Ds(i)),...$("pre:not(.mermaid) > code",e).filter(i=>!i.closest(".pyodide")).map(i=>Is(i,{target$:n,print$:o})),...$("a",e).map(i=>Ks(i,t)),...$("pre.mermaid",e).map(i=>Gs(i)),...[$(".glightbox",e)].filter(i=>i.length>0).map(i=>Vs(i)),...$("table:not([class])",e).map(i=>Js(i)),...$("details",e).map(i=>Rs(i,{target$:n,print$:o})),...$("[data-tabs]",e).map(i=>Xs(i,{viewport$:r,target$:n})),...$("[title]:not([data-preview])",e).filter(()=>X("content.tooltips")).map(i=>Je(i,{viewport$:r})),...$(".footnote-ref",e).filter(()=>X("content.footnote.tooltips")).map(i=>Fr(i,{content$:new F(a=>{let s=new URL(i.href).hash.slice(1),c=Array.from(document.getElementById(s).cloneNode(!0).children),l=Cn(...c);return a.next(l),document.body.append(l),()=>l.remove()}),viewport$:r})))}function Up(e,{alert$:t}){return t.pipe(g(r=>R(D(!0),D(!1).pipe(Ft(2e3))).pipe(f(n=>({message:r,active:n})))))}function Qs(e,t){let r=Y(".md-typeset",e);return j(()=>{let n=new I;return n.subscribe(({message:o,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=o}),Up(e,t).pipe(P(o=>n.next(o)),q(()=>n.complete()),f(o=>k({ref:e},o)))})}function Np({viewport$:e}){if(!X("header.autohide"))return D(!1);let t=e.pipe(f(({offset:{y:o}})=>o),jt(2,1),f(([o,i])=>[oMath.abs(i-o.y)>100),f(([,[o]])=>o),se()),n=kn("search");return oe([e,n]).pipe(f(([{offset:o},i])=>o.y>400&&!i),se(),g(o=>o?r:D(!1)),J(!1))}function ec(e,t){return j(()=>oe([Re(e),Np(t)])).pipe(f(([{height:r},n])=>({height:r,hidden:n})),se((r,n)=>r.height===n.height&&r.hidden===n.hidden),ne(1))}function tc(e,{viewport$:t,header$:r,main$:n}){return j(()=>{let o=new I,i=o.pipe(be(),_e(!0));o.pipe(he("active"),Qe(r)).subscribe(([{active:s},{hidden:c}])=>{e.classList.toggle("md-header--shadow",s&&!c),e.hidden=c});let a=de($("[title]",e)).pipe(O(()=>X("content.tooltips")),ae(s=>Je(s,{viewport$:t})));return n.subscribe(o),r.pipe(ee(i),f(s=>k({ref:e},s)),Ut(a.pipe(ee(i))))})}function Dp(e,{viewport$:t,header$:r}){return An(e,{viewport$:t,header$:r}).pipe(f(({offset:{y:n}})=>{let{height:o}=Ae(e);return{active:o>0&&n>=o}}),he("active"))}function rc(e,t){return j(()=>{let r=new I;r.subscribe({next({active:o}){e.classList.toggle("md-header__title--active",o)},complete(){e.classList.remove("md-header__title--active")}});let n=we(".md-content h1");return typeof n=="undefined"?w:Dp(n,t).pipe(P(o=>r.next(o)),q(()=>r.complete()),f(o=>k({ref:e},o)))})}function nc(e,{viewport$:t,header$:r}){let n=r.pipe(f(({height:i})=>i),se()),o=n.pipe(g(()=>Re(e).pipe(f(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),he("bottom"))));return oe([n,o,t]).pipe(f(([i,{top:a,bottom:s},{offset:{y:c},size:{height:l}}])=>(l=Math.max(0,l-Math.max(0,a-c,i)-Math.max(0,l+c-s)),{offset:a-i,height:l,active:a-i<=c})),se((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function Wp(e){let t=__md_get("__palette")||{index:e.findIndex(n=>matchMedia(n.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return D(...e).pipe(ae(n=>b(n,"change").pipe(f(()=>n))),J(e[r]),f(n=>({index:e.indexOf(n),color:{media:n.getAttribute("data-md-color-media"),scheme:n.getAttribute("data-md-color-scheme"),primary:n.getAttribute("data-md-color-primary"),accent:n.getAttribute("data-md-color-accent")}})),ne(1))}function oc(e){let t=$("input",e),r=A("meta",{name:"theme-color"});document.head.appendChild(r);let n=A("meta",{name:"color-scheme"});document.head.appendChild(n);let o=jr("(prefers-color-scheme: light)");return j(()=>{let i=new I;return i.subscribe(a=>{if(document.body.setAttribute("data-md-color-switching",""),a.color.media==="(prefers-color-scheme)"){let s=matchMedia("(prefers-color-scheme: light)"),c=document.querySelector(s.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");a.color.scheme=c.getAttribute("data-md-color-scheme"),a.color.primary=c.getAttribute("data-md-color-primary"),a.color.accent=c.getAttribute("data-md-color-accent")}for(let[s,c]of Object.entries(a.color))document.body.setAttribute(`data-md-color-${s}`,c);for(let s=0;sa.key==="Enter"),fe(i,(a,s)=>s)).subscribe(({index:a})=>{a=(a+1)%t.length,t[a].click(),t[a].focus()}),i.pipe(f(()=>{let a=gt("header"),s=window.getComputedStyle(a);return n.content=s.colorScheme,s.backgroundColor.match(/\d+/g).map(c=>(+c).toString(16).padStart(2,"0")).join("")})).subscribe(a=>r.content=`#${a}`),i.pipe(Ie(ye)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")}),Wp(t).pipe(ee(o.pipe(ke(1))),Nt(),P(a=>i.next(a)),q(()=>i.complete()),f(a=>k({ref:e},a)))})}function ic(e,{progress$:t}){return j(()=>{let r=new I;return r.subscribe(({value:n})=>{e.style.setProperty("--md-progress-value",`${n}`)}),t.pipe(P(n=>r.next({value:n})),q(()=>r.complete()),f(n=>({ref:e,value:n})))})}var ac=`.m u{text-decoration:underline!important;text-decoration-style:wavy!important;text-decoration-thickness:1px!important}.p{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-backdrop)/var(--alpha-lighter));cursor:pointer;height:100%;pointer-events:auto;position:absolute;transition:opacity .25s;width:100%}.p.v{opacity:0;pointer-events:none;transition:opacity .35s}.r{align-items:center;background-color:initial;border:none;border-radius:var(--space-2);cursor:pointer;display:flex;flex-shrink:0;font-family:var(--font-family);height:36px;justify-content:center;outline:none;padding:0;position:relative;transition:background-color .25s,color .25s;width:36px;z-index:1}.r svg{stroke:rgb(var(--color-foreground));height:18px;opacity:.5;width:18px}.r:before{background-color:rgb(var(--color-background-subtle));border-radius:var(--border-radius-2);content:"";inset:0;opacity:0;position:absolute;transform:scale(.75);transition:transform 125ms,opacity 125ms;z-index:0}.r:hover:before{opacity:1;transform:scale(1)}.r.c{cursor:auto}.r.c:before{display:none}.n{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-background)/var(--alpha-light));border:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));border-radius:var(--space-3);box-shadow:0 0 60px #0000000d;display:flex;height:480px;overflow:hidden;pointer-events:auto;position:absolute;transition:transform .25s cubic-bezier(.16,1,.3,1),opacity .25s;width:640px}.n.l{opacity:0;pointer-events:none;transform:scale(1.1);transition:transform .25s .15s,opacity .15s}@media (max-width:680px){.n{border-radius:0;height:100%;width:100%}}.y{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;min-width:0}@keyframes d{0%{transform:scale(0)}50%{transform:scale(1.2)}to{transform:scale(1)}}.w{animation:d .25s ease-in-out;background:var(--color-highlight);border-radius:100%;color:#fff;font-size:8px;font-weight:700;height:12px;padding-top:1px;position:absolute;right:4px;top:4px;width:12px}.e{background-color:rgb(var(--color-background-subtle)/var(--alpha-lighter));border-left:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));flex-shrink:0;overflow-y:scroll;position:relative;transition:width .35s cubic-bezier(.16,1,.3,1),opacity .25s;width:200px}.e>*{transform:translate(0);transition:transform .25s cubic-bezier(.16,1,.3,1)}.e.l{opacity:0;width:0}.e.l>*{transform:translate(-48px)}@media (max-width:680px){.e{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-background-subtle)/var(--alpha-light));box-shadow:0 0 60px #00000026;height:100%;position:absolute;right:0;top:0}}.k{border-bottom:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));display:flex;gap:var(--space-1);padding:var(--space-2)}.z{-webkit-overflow-scrolling:touch;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}.j{padding:8px 10px}.X{color:rgb(var(--color-foreground)/var(--alpha-light));padding:var(--space-2);position:absolute;width:100%}.F,.X{display:flex;flex-direction:column}.F{gap:2px;list-style:none;padding:0}.F,.I{margin:0}.I{font-size:16px;font-weight:400}.I,.R{padding:8px}.R{font-size:14px;margin:4px 0 0;opacity:.5}.R,.o{font-size:12px}.o{cursor:pointer;display:flex;padding:4px 8px;position:relative}.o:before{background-color:var(--color-highlight-transparent);border-radius:var(--space-1);content:"";inset:0;opacity:0;position:absolute;transform:scale(.75);transition:transform 125ms,opacity 125ms;z-index:0}.o.g:before,.o:hover:before{opacity:1;transform:scale(1)}.o.g,.o:hover{color:var(--color-highlight)}.q{flex-grow:1}.A,.q{position:relative}.A{font-weight:700}.f{flex-grow:1}.f input{background:#0000;border:none;color:rgb(var(--color-foreground));font-family:var(--font-family);font-size:16px;height:100%;letter-spacing:-.25px;outline:none;width:100%}.b{color:rgb(var(--color-foreground)/var(--alpha-light));display:flex;flex-direction:column;gap:2px;line-height:1.3;list-style:none;margin:var(--space-2);margin-top:0;padding:0}.B,.b li{margin:0}.B{color:rgb(var(--color-foreground)/var(--alpha-lighter));font-size:12px;margin-top:var(--space-2);padding:0 18px}.i{border-radius:var(--space-2);color:inherit;cursor:pointer;display:flex;flex-direction:row;flex-grow:1;padding:8px 10px;position:relative;text-decoration:none}.i:before{background-color:rgb(var(--color-background-subtle));border-radius:var(--border-radius-2);content:"";display:block;inset:0;opacity:0;position:absolute;transform:scale(.9);transition:transform 125ms,opacity 125ms;z-index:0}@media (pointer:fine){.i.h:before,.i:hover:before{opacity:1;transform:scale(1)}}.i mark{background:#0000;color:var(--color-highlight)}.i u{text-decoration:underline}.C{flex-direction:column;flex-grow:1;gap:5.5px}.C,.D{display:flex;min-width:0}.D{align-items:flex-start;gap:var(--space-2);justify-content:space-between}.s{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:6px;justify-content:flex-end;margin-right:-8px;margin-top:auto;opacity:0;position:relative;transform:translate(-2px);transition:transform 125ms,opacity 125ms;z-index:0}@media (pointer:fine){.h>.s,:hover>.s{opacity:1;transform:none}}.x{font-size:14px;margin:0;position:relative}.x code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);font-size:13px;padding:2px 4px}.t{color:rgb(var(--color-foreground)/.45);display:inline-flex;flex:1 1 auto;flex-wrap:wrap;font-size:12px;gap:var(--space-1);list-style:none;margin:0;min-width:0;padding:0;position:relative}.t li{white-space:nowrap}.t li:after{content:"/";display:inline;margin-left:var(--space-1)}.t li:last-child:after{content:"";display:none}.u{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:rgb(var(--color-foreground));display:-webkit-box;font-size:12px;line-height:1.5;overflow:hidden;position:relative}.u code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);padding:2px 4px}.E,.u code{font-size:11px}.E{color:rgb(var(--color-foreground)/.45);line-height:1;white-space:nowrap;z-index:1}.a{--space-1:4px;--space-2:calc(var(--space-1)*2);--space-3:calc(var(--space-2)*2);--space-4:calc(var(--space-3)*2);--space-5:calc(var(--space-4)*2);--alpha-light:0.7;--alpha-lighter:0.54;--alpha-lightest:0.07;--color-highlight:var(--md-accent-fg-color,#526cfe);--color-highlight-transparent:var( - --md-accent-fg-color--transparent,#526cfe1a - );--border-radius-1:var(--space-1);--border-radius-2:var(--space-2);--border-radius-3:calc(var(--space-1) + var(--space-2));--font-family:var( - --md-text-font-family,Inter,Roboto Flex,system-ui,sans-serif - );--font-size:16px;--line-height:1.5;--letter-spacing:-0.5px;-webkit-font-smoothing:antialiased;align-items:center;display:flex;font-family:var(--font-family);font-size:var(--font-size);height:100vh;justify-content:center;letter-spacing:var(--letter-spacing);line-height:var(--line-height);pointer-events:none;position:absolute;width:100vw}@media (pointer:coarse){.a{height:-webkit-fill-available}}.a *,.a :after,.a :before{box-sizing:border-box}`;function sc(e,{index$:t}){let r=Ne(),n=document.createElement("div");document.body.appendChild(n),n.style.position="fixed",n.style.height="100%",n.style.top="0",n.style.zIndex="4";let o=n.attachShadow({mode:"open"});o.appendChild(A("style",{},ac.toString()));try{ts(r.search,{highlight:r.features.includes("search.highlight")}),de(t).subscribe(i=>{for(let a of i.items)a.location=new URL(`./${a.location}`,r.base).toString();os(i,o)}),b(e,"click").subscribe(()=>{_o()}),kn("search").pipe(ke(1)).subscribe(()=>_o())}catch(i){e.hidden=!0;let a=Y("label[for=__search]");a.hidden=!0}return Ge}var cc=xr(Lo());function lc(e,{index$:t,location$:r}){return oe([t,r.pipe(J(Ue()),O(n=>!!n.searchParams.get("h")))]).pipe(f(([n,o])=>zp(n.config)(o.searchParams.get("h"))),f(n=>{var a;let o=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let s=i.nextNode();s;s=i.nextNode())if((a=s.parentElement)!=null&&a.offsetHeight){let c=s.textContent,l=n(c);l.length>c.length&&o.set(s,l)}for(let[s,c]of o){let{childNodes:l}=A("span",null,c);s.replaceWith(...Array.from(l))}return{ref:e,nodes:o}}))}function zp(e){let t=e.separator.split("|").map(o=>o.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":o).join("|"),r=new RegExp(t,"img"),n=(o,i,a)=>`${i}${a}`;return o=>{o=o.replace(/\s+/g," ").replace(/&/g,"&").trim();let i=new RegExp(`(^|${e.separator}|)(${o.split(r).map(a=>a.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")).filter(a=>a.length>=2).join("|")})`,"img");return a=>(0,cc.default)(a).replace(i,n).replace(/<\/mark>(\s+)]*>/img,"$1")}}function qp(e,{viewport$:t,main$:r}){let n=e.closest(".md-grid"),o=n.offsetTop-n.parentElement.offsetTop;return oe([r,t]).pipe(f(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(o,Math.max(0,s-i))-o,{height:a,locked:s>=i+o})),se((i,a)=>i.height===a.height&&i.locked===a.locked))}function Po(e,n){var o=n,{header$:t}=o,r=_r(o,["header$"]);let i=Y(".md-sidebar__scrollwrap",e),{y:a}=St(i);return j(()=>{let s=new I,c=s.pipe(be(),_e(!0)),l=s.pipe(Ze(0,je));return l.pipe(fe(t)).subscribe({next([{height:u},{height:p}]){i.style.height=`${u-2*a}px`,e.style.top=`${p}px`},complete(){i.style.height="",e.style.top=""}}),l.pipe(Lr()).subscribe(()=>{for(let u of $(".md-nav__link--active[href]",e)){if(!u.clientHeight)continue;let p=u.closest(".md-sidebar__scrollwrap");if(typeof p!="undefined"){let d=u.offsetTop-p.offsetTop,{height:m}=Ae(p);p.scrollTo({top:d-m/2})}}}),de($("label[tabindex]",e)).pipe(ae(u=>b(u,"click").pipe(Ie(ye),f(()=>u),ee(c)))).subscribe(u=>{let p=Y(`[id="${u.htmlFor}"]`);Y(`[aria-labelledby="${u.id}"]`).setAttribute("aria-expanded",`${p.checked}`)}),X("content.tooltips")&&de($("abbr[title]",e)).pipe(ae(u=>Je(u,{viewport$})),ee(c)).subscribe(),qp(e,r).pipe(P(u=>s.next(u)),q(()=>s.complete()),f(u=>k({ref:e},u)))})}function uc(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return Rt(tt(`${r}/releases/latest`).pipe(me(()=>w),f(n=>({version:n.tag_name})),it({})),tt(r).pipe(me(()=>w),f(n=>({stars:n.stargazers_count,forks:n.forks_count})),it({}))).pipe(f(([n,o])=>k(k({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return tt(r).pipe(f(n=>({repositories:n.public_repos})),it({}))}}function pc(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Rt(tt(`${r}/releases/permalink/latest`).pipe(me(()=>w),f(({tag_name:n})=>({version:n})),it({})),tt(r).pipe(me(()=>w),f(({star_count:n,forks_count:o})=>({stars:n,forks:o})),it({}))).pipe(f(([n,o])=>k(k({},n),o)))}function fc(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,n]=t;return uc(r,n)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,n]=t;return pc(r,n)}return w}var Kp;function Bp(e){return Kp||(Kp=j(()=>{let t=__md_get("__source",sessionStorage);if(t)return D(t);if(Te("consent").length){let n=__md_get("__consent");if(!(n&&n.github))return w}return fc(e.href).pipe(P(n=>__md_set("__source",n,sessionStorage)))}).pipe(me(()=>w),O(t=>Object.keys(t).length>0),f(t=>({facts:t})),ne(1)))}function mc(e){let t=Y(":scope > :last-child",e);return j(()=>{let r=new I;return r.subscribe(({facts:n})=>{t.appendChild(Ss(n)),t.classList.add("md-source__repository--active")}),Bp(e).pipe(P(n=>r.next(n)),q(()=>r.complete()),f(n=>k({ref:e},n)))})}function Gp(e,{viewport$:t,header$:r}){return Re(document.body).pipe(g(()=>An(e,{header$:r,viewport$:t})),f(({offset:{y:n}})=>({hidden:n>=10})),he("hidden"))}function dc(e,t){return j(()=>{let r=new I;return r.subscribe({next({hidden:n}){e.hidden=n},complete(){e.hidden=!1}}),(X("navigation.tabs.sticky")?D({hidden:!1}):Gp(e,t)).pipe(P(n=>r.next(n)),q(()=>r.complete()),f(n=>k({ref:e},n)))})}function Yp(e,{viewport$:t,header$:r}){let n=new Map,o=$(".md-nav__link",e);for(let s of o){let c=decodeURIComponent(s.hash.substring(1)),l=we(`[id="${c}"]`);typeof l!="undefined"&&n.set(s,l)}let i=r.pipe(he("height"),f(({height:s})=>{let c=gt("main"),l=Y(":scope > :first-child",c);return s+.9*(l.offsetTop-c.offsetTop)}),xe());return Re(document.body).pipe(he("height"),g(s=>j(()=>{let c=[];return D([...n].reduce((l,[u,p])=>{for(;c.length&&n.get(c[c.length-1]).tagName>=p.tagName;)c.pop();let d=p.offsetTop;for(;!d&&p.parentElement;)p=p.parentElement,d=p.offsetTop;let m=p.offsetParent;for(;m;m=m.offsetParent)d+=m.offsetTop;return l.set([...c=[...c,u]].reverse(),d)},new Map))}).pipe(f(c=>new Map([...c].sort(([,l],[,u])=>l-u))),Qe(i),g(([c,l])=>t.pipe(Mr(([u,p],{offset:{y:d},size:m})=>{let h=d+m.height>=Math.floor(s.height);for(;p.length;){let[,v]=p[0];if(v-l=d&&!h)p=[u.pop(),...p];else break}return[u,p]},[[],[...c]]),se((u,p)=>u[0]===p[0]&&u[1]===p[1])))))).pipe(f(([s,c])=>({prev:s.map(([l])=>l),next:c.map(([l])=>l)})),J({prev:[],next:[]}),jt(2,1),f(([s,c])=>s.prev.length{let i=new I,a=i.pipe(be(),_e(!0));i.subscribe(({prev:c,next:l})=>{for(let[u]of l)u.classList.remove("md-nav__link--passed"),u.classList.remove("md-nav__link--active");for(let[u,[p]]of c.entries())p.classList.add("md-nav__link--passed"),p.classList.toggle("md-nav__link--active",u===c.length-1)});let s=we(".md-sidebar--secondary");if(typeof s!="undefined"&&b(document.body,"click").subscribe(c=>{let l=c.target;if(!s.contains(l)){let u=we(".md-nav__toggle",s);typeof u!="undefined"&&(u.checked=!1)}}),X("toc.follow")){let c=R(t.pipe(Ye(1),f(()=>{})),t.pipe(Ye(250),f(()=>"smooth")));i.pipe(O(({prev:l})=>l.length>0),Qe(n.pipe(Ie(ye))),fe(c)).subscribe(([[{prev:l}],u])=>{let[p]=l[l.length-1];if(p.offsetHeight){let d=$i(p);if(typeof d!="undefined"){let m=p.offsetTop-d.offsetTop,{height:h}=Ae(d);d.scrollTo({top:m-h/2,behavior:u})}}})}return X("navigation.tracking")&&t.pipe(ee(a),he("offset"),Ye(250),ke(1),ee(o.pipe(ke(1))),Nt({delay:250}),fe(i)).subscribe(([,{prev:c}])=>{let l=Ue(),u=c[c.length-1];if(u&&u.length){let[p]=u,{hash:d}=new URL(p.href);l.hash!==d&&(l.hash=d,history.replaceState({},"",`${l}`))}else l.hash="",history.replaceState({},"",`${l}`)}),Yp(e,{viewport$:t,header$:r}).pipe(P(c=>i.next(c)),q(()=>i.complete()),f(c=>k({ref:e},c)))})}function Jp(e,{viewport$:t,main$:r,target$:n}){let o=t.pipe(f(({offset:{y:a}})=>a),jt(2,1),f(([a,s])=>a>s&&s>0),se()),i=r.pipe(f(({active:a})=>a));return oe([i,o]).pipe(f(([a,s])=>!(a&&s)),se(),ee(n.pipe(ke(1))),_e(!0),Nt({delay:250}),f(a=>({hidden:a})))}function vc(e,{viewport$:t,header$:r,main$:n,target$:o}){let i=new I,a=i.pipe(be(),_e(!0));return i.subscribe({next({hidden:s}){e.hidden=s,s?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(ee(a),he("height")).subscribe(({height:s})=>{e.style.top=`${s+16}px`}),b(e,"click").subscribe(s=>{s.preventDefault(),window.scrollTo({top:0})}),Jp(e,{viewport$:t,main$:n,target$:o}).pipe(P(s=>i.next(s)),q(()=>i.complete()),f(s=>k({ref:e},s)))}function bc(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,t.port&&(e.port=t.port),e}function Xp(e,t){let r=new Map;for(let n of $("url",e)){let o=Y("loc",n),i=[bc(new URL(o.textContent),t)];r.set(`${i[0]}`,i);for(let a of $("[rel=alternate]",n)){let s=a.getAttribute("href");s!=null&&i.push(bc(new URL(s),t))}}return r}function vr(e){return ps(new URL("sitemap.xml",e)).pipe(f(t=>Xp(t,new URL(e))),me(()=>D(new Map)),xe())}function gc({document$:e}){let t=new Map;e.pipe(g(()=>$("link[rel=alternate]")),f(r=>new URL(r.href)),O(r=>!t.has(r.toString())),ae(r=>vr(r).pipe(f(n=>[r,n]),me(()=>w)))).subscribe(([r,n])=>{t.set(r.toString().replace(/\/$/,""),n)}),b(document.body,"click").pipe(O(r=>!r.metaKey&&!r.ctrlKey),g(r=>{if(r.target instanceof Element){let n=r.target.closest("a");if(n&&!n.target){let o=[...t].find(([p])=>n.href.startsWith(`${p}/`));if(typeof o=="undefined")return w;let[i,a]=o,s=Ue();if(s.href.startsWith(i))return w;let c=Ne(),l=s.href.replace(c.base,"");l=`${i}/${l}`;let u=a.has(l.split("#")[0])?new URL(l,c.base):new URL(i);return r.preventDefault(),D(u)}}return w})).subscribe(r=>bt(r,!0))}var Io=xr(Ao());function Zp(e){e.setAttribute("data-md-copying","");let t=e.closest("[data-copy]"),r=t?t.getAttribute("data-copy"):e.innerText;return e.removeAttribute("data-md-copying"),r.trimEnd()}function yc({alert$:e}){Io.default.isSupported()&&new F(t=>{new Io.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||Zp(Y(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(P(t=>{t.trigger.focus()}),f(()=>Yt("clipboard.copied"))).subscribe(e)}function _c(e,t){if(!(e.target instanceof Element))return w;let r=e.target.closest("a");if(r===null)return w;if(r.target||e.metaKey||e.ctrlKey)return w;let n=new URL(r.href);return n.search=n.hash="",t.has(`${n}`)?(e.preventDefault(),D(r)):w}function xc(e){let t=new Map;for(let r of $(":scope > *",e.head))t.set(r.outerHTML,r);return t}function wc(e){for(let t of $("[href], [src]",e))for(let r of["href","src"]){let n=t.getAttribute(r);if(n&&!/^(?:[a-z]+:)?\/\//i.test(n)){t[r]=t[r];break}}return D(e)}function Qp(e){var r;if(e.tagName!=="STYLE")return!1;let t=(r=e.textContent)!=null?r:"";return t.includes(".ace_editor")||t.includes(".ace-zensical")||t.includes(".ace_scroller")||t.includes(".ace_gutter")}function ef(e){for(let n of["[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=outdated]","[data-md-component=logo]","[data-md-component=skip]",...X("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let o=we(n),i=we(n,e);typeof o!="undefined"&&typeof i!="undefined"&&o.replaceWith(i)}let t=xc(document);for(let[n,o]of xc(e))t.has(n)?t.delete(n):document.head.appendChild(o);for(let n of t.values()){let o=n.getAttribute("name");o!=="theme-color"&&o!=="color-scheme"&&!Qp(n)&&n.remove()}let r=gt("container");return ot($("script",r)).pipe(g(n=>{let o=e.createElement("script");if(n.src){for(let i of n.getAttributeNames())o.setAttribute(i,n.getAttribute(i));return n.replaceWith(o),new F(i=>{o.onload=()=>i.complete()})}else return o.textContent=n.textContent,n.replaceWith(o),w}),be(),_e(document))}function Ec({sitemap$:e,location$:t,viewport$:r,progress$:n}){if(location.protocol==="file:")return Ge;D(document).subscribe(wc);let o=b(document.body,"click").pipe(Qe(e),g(([s,c])=>_c(s,c)),f(({href:s})=>new URL(s)),xe()),i=b(window,"popstate").pipe(f(Ue),xe());o.pipe(fe(r)).subscribe(([s,{offset:c}])=>{history.replaceState(c,""),history.pushState(null,"",s)}),R(o,i).subscribe(t);let a=t.pipe(J(Ue()),mn(),O(([s,c])=>s.pathname!==c.pathname),f(([,s])=>s),g(s=>Mn(s,{progress$:n}).pipe(me(()=>(bt(s,!0),w)))),g(wc),g(ef),xe());return R(a.pipe(fe(t,(s,c)=>c)),a.pipe(g(()=>t),he("hash")),t.pipe(J(Ue()),mn(),O(([s,c])=>s.pathname===c.pathname&&s.hash!==c.hash),f(([,s])=>s)),t.pipe(se((s,c)=>s.pathname===c.pathname&&s.hash===c.hash),g(()=>o),P(()=>history.back()))).subscribe(s=>{var c,l;history.state!==null||!s.hash?window.scrollTo(0,(l=(c=history.state)==null?void 0:c.y)!=null?l:0):(history.scrollRestoration="auto",cs(s.hash),history.scrollRestoration="manual")}),t.subscribe(()=>{history.scrollRestoration="manual"}),b(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),r.pipe(he("offset"),Ye(100)).subscribe(({offset:s})=>{history.replaceState(s,"")}),X("navigation.instant.prefetch")&&R(b(document.body,"mousemove"),b(document.body,"focusin")).pipe(Qe(e),g(([s,c])=>_c(s,c)),Ye(25),Zn(({href:s})=>s),fn(s=>{let c=document.createElement("link");return c.rel="prefetch",c.href=s.toString(),document.head.appendChild(c),b(c,"load").pipe(f(()=>c),Me(1))})).subscribe(s=>s.remove()),a}function Tc(e){var u;let{selectedVersionSitemap:t,selectedVersionBaseURL:r,currentLocation:n,currentBaseURL:o}=e,i=(u=Ro(o))==null?void 0:u.pathname;if(i===void 0)return;let a=tf(n.pathname,i);if(a===void 0)return;let s=nf(t.keys());if(!t.has(s))return;let c=Ro(a,s);if(!c||!t.has(c.href))return;let l=Ro(a,r);if(l)return l.hash=n.hash,l.search=n.search,l}function Ro(e,t){try{return new URL(e,t)}catch(r){return}}function tf(e,t){if(e.startsWith(t))return e.slice(t.length)}function rf(e,t){let r=Math.min(e.length,t.length),n;for(n=0;nw)),n=r.pipe(f(o=>{let[,i]=t.base.match(/([^/]+)\/?$/);return o.find(({version:a,aliases:s})=>a===i||s.includes(i))||o[0]}));r.pipe(f(o=>new Map(o.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),g(o=>b(document.body,"click").pipe(O(i=>!i.metaKey&&!i.ctrlKey),fe(n),g(([i,a])=>{if(i.target instanceof Element){let s=i.target.closest("a");if(s&&!s.target&&o.has(s.href)){let c=s.href;return!i.target.closest(".md-version")&&o.get(c)===a?w:(i.preventDefault(),D(new URL(c)))}}return w}),g(i=>vr(i).pipe(f(a=>{var s;return(s=Tc({selectedVersionSitemap:a,selectedVersionBaseURL:i,currentLocation:Ue(),currentBaseURL:t.base}))!=null?s:i})))))).subscribe(o=>bt(o,!0)),oe([r,n]).subscribe(([o,i])=>{Y(".md-header__topic").appendChild(Ls(o,i))}),e.pipe(g(()=>n)).subscribe(o=>{var s;let i=new URL(t.base),a=__md_get("__outdated",sessionStorage,i);if(a===null){a=!0;let c=((s=t.version)==null?void 0:s.default)||"latest";Array.isArray(c)||(c=[c]);e:for(let l of c)for(let u of o.aliases.concat(o.version))if(new RegExp(l,"i").test(u)){a=!1;break e}__md_set("__outdated",a,sessionStorage,i)}if(a)for(let c of Te("outdated"))c.hidden=!1})}function Oc({document$:e,viewport$:t}){e.pipe(g(()=>$(".md-ellipsis")),ae(r=>Ot(r).pipe(ee(e.pipe(ke(1))),O(n=>n),f(()=>r),Me(1))),O(r=>r.offsetWidth{let n=r.innerText,o=r.closest("a")||r;return o.title=n,X("content.tooltips")?Je(o,{viewport$:t}).pipe(ee(e.pipe(ke(1))),q(()=>o.removeAttribute("title"))):w})).subscribe(),X("content.tooltips")&&e.pipe(g(()=>$(".md-status")),ae(r=>Je(r,{viewport$:t}))).subscribe()}function Lc({document$:e,tablet$:t}){e.pipe(g(()=>$(".md-toggle--indeterminate")),P(r=>{r.indeterminate=!0,r.checked=!1}),ae(r=>b(r,"change").pipe(to(()=>r.classList.contains("md-toggle--indeterminate")),f(()=>r))),fe(t)).subscribe(([r,n])=>{r.classList.remove("md-toggle--indeterminate"),n&&(r.checked=!1)})}function of(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Mc({document$:e}){e.pipe(g(()=>$("[data-md-scrollfix]")),P(t=>t.removeAttribute("data-md-scrollfix")),O(of),ae(t=>b(t,"touchstart").pipe(f(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let n=e[r];typeof n=="string"?n=document.createTextNode(n):n.parentNode&&n.parentNode.removeChild(n),r?t.insertBefore(this.previousSibling,n):t.replaceChild(n,this)}}}));function af(){return location.protocol==="file:"?at(`${new URL("search.js",$n.base)}`).pipe(f(()=>__index),me(()=>Ge),ne(1)):tt(new URL("search.json",$n.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var yt=Mi(),Wr=as(),br=ls(Wr),Ac=is(),Ke=vs(),jo=jr("(min-width: 60em)"),Cc=jr("(min-width: 76.25em)"),Hc=us(),$n=Ne(),$c=we(".md-search")?af():Ge,Fo=new I;yc({alert$:Fo});gc({document$:yt});var Uo=new I,Pc=vr($n.base);X("navigation.instant")&&Ec({sitemap$:Pc,location$:Wr,viewport$:Ke,progress$:Uo}).subscribe(yt);var kc;((kc=$n.version)==null?void 0:kc.provider)==="mike"&&Sc({document$:yt});R(Wr,br).pipe(Ft(125)).subscribe(()=>{So("drawer",!1),So("search",!1)});Ac.pipe(O(({mode:e,meta:t})=>e==="global"&&!t)).subscribe(e=>{switch(e.type){case",":case"p":let t=document.querySelector("link[rel=prev]");t instanceof HTMLLinkElement&&bt(t);break;case".":case"n":let r=document.querySelector("link[rel=next]");r instanceof HTMLLinkElement&&bt(r);break;case"/":let n=document.querySelector("[data-md-component=search] button");n instanceof HTMLButtonElement&&n.click();break;case"Enter":let o=Tt();o instanceof HTMLLabelElement&&o.click()}});Oc({viewport$:Ke,document$:yt});Lc({document$:yt,tablet$:jo});Mc({document$:yt});var Ct=ec(gt("header"),{viewport$:Ke}),Dr=yt.pipe(f(()=>gt("main")),g(e=>nc(e,{viewport$:Ke,header$:Ct})),ne(1)),sf=R(...Te("consent").map(e=>gs(e,{target$:br})),...Te("dialog").map(e=>Qs(e,{alert$:Fo})),...Te("palette").map(e=>oc(e)),...Te("progress").map(e=>ic(e,{progress$:Uo})),...Te("search").map(e=>sc(e,{index$:$c})),...Te("source").map(e=>mc(e))),cf=j(()=>R(...Te("announce").map(e=>bs(e)),...Te("content").map(e=>Zs(e,{sitemap$:Pc,viewport$:Ke,target$:br,print$:Hc})),...Te("content").map(e=>X("search.highlight")?lc(e,{index$:$c,location$:Wr}):w),...Te("header").map(e=>tc(e,{viewport$:Ke,header$:Ct,main$:Dr})),...Te("header-title").map(e=>rc(e,{viewport$:Ke,header$:Ct})),...Te("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?wo(Cc,()=>Po(e,{viewport$:Ke,header$:Ct,main$:Dr})):wo(jo,()=>Po(e,{viewport$:Ke,header$:Ct,main$:Dr}))),...Te("tabs").map(e=>dc(e,{viewport$:Ke,header$:Ct})),...Te("toc").map(e=>hc(e,{viewport$:Ke,header$:Ct,main$:Dr,target$:br})),...Te("top").map(e=>vc(e,{viewport$:Ke,header$:Ct,main$:Dr,target$:br})))),Ic=yt.pipe(g(()=>cf),Ut(sf),ne(1));Ic.subscribe();window.document$=yt;window.location$=Wr;window.target$=br;window.keyboard$=Ac;window.viewport$=Ke;window.tablet$=jo;window.screen$=Cc;window.print$=Hc;window.alert$=Fo;window.progress$=Uo;window.component$=Ic;})(); diff --git a/dist/base.html b/dist/base.html index 0e9cc47e..de0ee778 100644 --- a/dist/base.html +++ b/dist/base.html @@ -273,7 +273,7 @@ {% endblock %} {% block scripts %} - + {% for script in config.extra_javascript %} {{ script | script_tag }} {% endfor %} diff --git a/src/assets/javascripts/components/content/exec/index.ts b/src/assets/javascripts/components/content/exec/index.ts index a8bd2f03..59596235 100644 --- a/src/assets/javascripts/components/content/exec/index.ts +++ b/src/assets/javascripts/components/content/exec/index.ts @@ -163,8 +163,8 @@ function getElements(el: HTMLElement): Elements { source: editor.textContent?.trimEnd() ?? "", session: el.dataset.session ?? "default", install: parsePackages(el.dataset.install), - minLines: typeof el.dataset.minLines == "undefined" ? 0 : parseInt(el.dataset.minLines), - maxLines: typeof el.dataset.maxLines == "undefined" ? Infinity : parseInt(el.dataset.maxLines), + minLines: typeof el.dataset.minlines == "undefined" ? 0 : parseInt(el.dataset.minlines), + maxLines: typeof el.dataset.maxlines == "undefined" ? Infinity : parseInt(el.dataset.maxlines), }; }