headscale/development/assets/javascripts/bundle.44453a05.min.js

16 lines
120 KiB
JavaScript

"use strict";(()=>{var ma=Object.create;var Ur=Object.defineProperty,ua=Object.defineProperties,fa=Object.getOwnPropertyDescriptor,da=Object.getOwnPropertyDescriptors,ha=Object.getOwnPropertyNames,rr=Object.getOwnPropertySymbols,ba=Object.getPrototypeOf,Dr=Object.prototype.hasOwnProperty,Oo=Object.prototype.propertyIsEnumerable;var So=(e,t,r)=>t in e?Ur(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>{for(var r in t||(t={}))Dr.call(t,r)&&So(e,r,t[r]);if(rr)for(var r of rr(t))Oo.call(t,r)&&So(e,r,t[r]);return e},mt=(e,t)=>ua(e,da(t));var Lo=(e,t)=>{var r={};for(var o in e)Dr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&rr)for(var o of rr(e))t.indexOf(o)<0&&Oo.call(e,o)&&(r[o]=e[o]);return r};var Wr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ga=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ha(t))!Dr.call(e,n)&&n!==r&&Ur(e,n,{get:()=>t[n],enumerable:!(o=fa(t,n))||o.enumerable});return e};var gt=(e,t,r)=>(r=e!=null?ma(ba(e)):{},ga(t||!e||!e.__esModule?Ur(r,"default",{value:e,enumerable:!0}):r,e));var he=(e,t,r)=>new Promise((o,n)=>{var i=c=>{try{s(r.next(c))}catch(l){n(l)}},a=c=>{try{s(r.throw(c))}catch(l){n(l)}},s=c=>c.done?o(c.value):Promise.resolve(c.value).then(i,a);s((r=r.apply(e,t)).next())});var _o=Wr((Vr,Mo)=>{(function(e,t){typeof Vr=="object"&&typeof Mo!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Vr,(function(){"use strict";function e(r){var o=!0,n=!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(M){return!!(M&&M!==document&&M.nodeName!=="HTML"&&M.nodeName!=="BODY"&&"classList"in M&&"contains"in M.classList)}function c(M){var He=M.type,ke=M.tagName;return!!(ke==="INPUT"&&a[He]&&!M.readOnly||ke==="TEXTAREA"&&!M.readOnly||M.isContentEditable)}function l(M){M.classList.contains("focus-visible")||(M.classList.add("focus-visible"),M.setAttribute("data-focus-visible-added",""))}function p(M){M.hasAttribute("data-focus-visible-added")&&(M.classList.remove("focus-visible"),M.removeAttribute("data-focus-visible-added"))}function u(M){M.metaKey||M.altKey||M.ctrlKey||(s(r.activeElement)&&l(r.activeElement),o=!0)}function f(M){o=!1}function b(M){s(M.target)&&(o||c(M.target))&&l(M.target)}function d(M){s(M.target)&&(M.target.classList.contains("focus-visible")||M.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout(function(){n=!1},100),p(M.target))}function v(M){document.visibilityState==="hidden"&&(n&&(o=!0),D())}function D(){document.addEventListener("mousemove",X),document.addEventListener("mousedown",X),document.addEventListener("mouseup",X),document.addEventListener("pointermove",X),document.addEventListener("pointerdown",X),document.addEventListener("pointerup",X),document.addEventListener("touchmove",X),document.addEventListener("touchstart",X),document.addEventListener("touchend",X)}function K(){document.removeEventListener("mousemove",X),document.removeEventListener("mousedown",X),document.removeEventListener("mouseup",X),document.removeEventListener("pointermove",X),document.removeEventListener("pointerdown",X),document.removeEventListener("pointerup",X),document.removeEventListener("touchmove",X),document.removeEventListener("touchstart",X),document.removeEventListener("touchend",X)}function X(M){M.target.nodeName&&M.target.nodeName.toLowerCase()==="html"||(o=!1,K())}document.addEventListener("keydown",u,!0),document.addEventListener("mousedown",f,!0),document.addEventListener("pointerdown",f,!0),document.addEventListener("touchstart",f,!0),document.addEventListener("visibilitychange",v,!0),D(),r.addEventListener("focus",b,!0),r.addEventListener("blur",d,!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 Kt=Wr((mx,zn)=>{"use strict";/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/var is=/["'&<>]/;zn.exports=as;function as(e){var t=""+e,r=is.exec(t);if(!r)return t;var o,n="",i=0,a=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}a!==i&&(n+=t.substring(a,i)),a=i+1,n+=o}return a!==i?n+t.substring(a,i):n}});var go=Wr((Qt,bo)=>{/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/(function(t,r){typeof Qt=="object"&&typeof bo=="object"?bo.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Qt=="object"?Qt.ClipboardJS=r():t.ClipboardJS=r()})(Qt,function(){return(function(){var e={686:(function(o,n,i){"use strict";i.d(n,{default:function(){return pa}});var a=i(279),s=i.n(a),c=i(370),l=i.n(c),p=i(817),u=i.n(p);function f(B){try{return document.execCommand(B)}catch(k){return!1}}var b=function(k){var A=u()(k);return f("cut"),A},d=b;function v(B){var k=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[k?"right":"left"]="-9999px";var V=window.pageYOffset||document.documentElement.scrollTop;return A.style.top="".concat(V,"px"),A.setAttribute("readonly",""),A.value=B,A}var D=function(k,A){var V=v(k);A.container.appendChild(V);var z=u()(V);return f("copy"),V.remove(),z},K=function(k){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},V="";return typeof k=="string"?V=D(k,A):k instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(k==null?void 0:k.type)?V=D(k.value,A):(V=u()(k),f("copy")),V},X=K;function M(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?M=function(A){return typeof A}:M=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},M(B)}var He=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=k.action,V=A===void 0?"copy":A,z=k.container,Z=k.target,Ve=k.text;if(V!=="copy"&&V!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Z!==void 0)if(Z&&M(Z)==="object"&&Z.nodeType===1){if(V==="copy"&&Z.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(V==="cut"&&(Z.hasAttribute("readonly")||Z.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 X(Ve,{container:z});if(Z)return V==="cut"?d(Z):X(Z,{container:z})},ke=He;function ge(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ge=function(A){return typeof A}:ge=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},ge(B)}function U(B,k){if(!(B instanceof k))throw new TypeError("Cannot call a class as a function")}function ne(B,k){for(var A=0;A<k.length;A++){var V=k[A];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(B,V.key,V)}}function se(B,k,A){return k&&ne(B.prototype,k),A&&ne(B,A),B}function xe(B,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(k&&k.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),k&&Ee(B,k)}function Ee(B,k){return Ee=Object.setPrototypeOf||function(V,z){return V.__proto__=z,V},Ee(B,k)}function tt(B){var k=ca();return function(){var V=er(B),z;if(k){var Z=er(this).constructor;z=Reflect.construct(V,arguments,Z)}else z=V.apply(this,arguments);return aa(this,z)}}function aa(B,k){return k&&(ge(k)==="object"||typeof k=="function")?k:sa(B)}function sa(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function ca(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(B){return!1}}function er(B){return er=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},er(B)}function jr(B,k){var A="data-clipboard-".concat(B);if(k.hasAttribute(A))return k.getAttribute(A)}var la=(function(B){xe(A,B);var k=tt(A);function A(V,z){var Z;return U(this,A),Z=k.call(this),Z.resolveOptions(z),Z.listenClick(V),Z}return se(A,[{key:"resolveOptions",value:function(){var z=arguments.length>0&&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=ge(z.container)==="object"?z.container:document.body}},{key:"listenClick",value:function(z){var Z=this;this.listener=l()(z,"click",function(Ve){return Z.onClick(Ve)})}},{key:"onClick",value:function(z){var Z=z.delegateTarget||z.currentTarget,Ve=this.action(Z)||"copy",tr=ke({action:Ve,container:this.container,target:this.target(Z),text:this.text(Z)});this.emit(tr?"success":"error",{action:Ve,text:tr,trigger:Z,clearSelection:function(){Z&&Z.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(z){return jr("action",z)}},{key:"defaultTarget",value:function(z){var Z=jr("target",z);if(Z)return document.querySelector(Z)}},{key:"defaultText",value:function(z){return jr("text",z)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(z){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return X(z,Z)}},{key:"cut",value:function(z){return d(z)}},{key:"isSupported",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Z=typeof z=="string"?[z]:z,Ve=!!document.queryCommandSupported;return Z.forEach(function(tr){Ve=Ve&&!!document.queryCommandSupported(tr)}),Ve}}]),A})(s()),pa=la}),828:(function(o){var n=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!==n;){if(typeof s.matches=="function"&&s.matches(c))return s;s=s.parentNode}}o.exports=a}),438:(function(o,n,i){var a=i(828);function s(p,u,f,b,d){var v=l.apply(this,arguments);return p.addEventListener(f,v,d),{destroy:function(){p.removeEventListener(f,v,d)}}}function c(p,u,f,b,d){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(v){return s(v,u,f,b,d)}))}function l(p,u,f,b){return function(d){d.delegateTarget=a(d.target,u),d.delegateTarget&&b.call(p,d)}}o.exports=c}),879:(function(o,n){n.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},n.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||n.node(i[0]))},n.string=function(i){return typeof i=="string"||i instanceof String},n.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}}),370:(function(o,n,i){var a=i(879),s=i(438);function c(f,b,d){if(!f&&!b&&!d)throw new Error("Missing required arguments");if(!a.string(b))throw new TypeError("Second argument must be a String");if(!a.fn(d))throw new TypeError("Third argument must be a Function");if(a.node(f))return l(f,b,d);if(a.nodeList(f))return p(f,b,d);if(a.string(f))return u(f,b,d);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function l(f,b,d){return f.addEventListener(b,d),{destroy:function(){f.removeEventListener(b,d)}}}function p(f,b,d){return Array.prototype.forEach.call(f,function(v){v.addEventListener(b,d)}),{destroy:function(){Array.prototype.forEach.call(f,function(v){v.removeEventListener(b,d)})}}}function u(f,b,d){return s(document.body,f,b,d)}o.exports=c}),817:(function(o){function n(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}o.exports=n}),279:(function(o){function n(){}n.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;c<l;c++)s[c].fn.apply(s[c].ctx,a);return this},off:function(i,a){var s=this.e||(this.e={}),c=s[i],l=[];if(c&&a)for(var p=0,u=c.length;p<u;p++)c[p].fn!==a&&c[p].fn._!==a&&l.push(c[p]);return l.length?s[i]=l:delete s[i],this}},o.exports=n,o.exports.TinyEmitter=n})},t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}return(function(){r.n=function(o){var n=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(n,{a:n}),n}})(),(function(){r.d=function(o,n){for(var i in n)r.o(n,i)&&!r.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:n[i]})}})(),(function(){r.o=function(o,n){return Object.prototype.hasOwnProperty.call(o,n)}})(),r(686)})().default})});var N0=gt(_o());var Nr=function(e,t){return Nr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},Nr(e,t)};function ie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Nr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Co(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(p){try{l(o.next(p))}catch(u){a(u)}}function c(p){try{l(o.throw(p))}catch(u){a(u)}}function l(p){p.done?i(p.value):n(p.value).then(s,c)}l((o=o.apply(e,t||[])).next())})}function or(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(p){return c([l,p])}}function c(l){if(o)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(o=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,n=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(p){l=[6,p],n=0}finally{o=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function _e(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Y(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),n,i=[],a;try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}function J(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o<n;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function vt(e){return this instanceof vt?(this.v=e,this):new vt(e)}function Ao(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r.apply(e,t||[]),n,i=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),n[Symbol.asyncIterator]=function(){return this},n;function a(b){return function(d){return Promise.resolve(d).then(b,u)}}function s(b,d){o[b]&&(n[b]=function(v){return new Promise(function(D,K){i.push([b,v,D,K])>1||c(b,v)})},d&&(n[b]=d(n[b])))}function c(b,d){try{l(o[b](d))}catch(v){f(i[0][3],v)}}function l(b){b.value instanceof vt?Promise.resolve(b.value.v).then(p,u):f(i[0][2],b)}function p(b){c("next",b)}function u(b){c("throw",b)}function f(b,d){b(d),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Ho(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={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(i){r[i]=e[i]&&function(a){return new Promise(function(s,c){a=e[i](a),n(s,c,a.done,a.value)})}}function n(i,a,s,c){Promise.resolve(c).then(function(l){i({value:l,done:s})},a)}}function R(e){return typeof e=="function"}function St(e){var t=function(o){Error.call(o),o.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var nr=St(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
`+r.map(function(o,n){return n+1+") "+o.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=r}});function rt(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Qe=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,o,n,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 p=this.initialTeardown;if(R(p))try{p()}catch(v){i=v instanceof nr?v.errors:[v]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var f=_e(u),b=f.next();!b.done;b=f.next()){var d=b.value;try{ko(d)}catch(v){i=i!=null?i:[],v instanceof nr?i=J(J([],Y(i)),Y(v.errors)):i.push(v)}}}catch(v){o={error:v}}finally{try{b&&!b.done&&(n=f.return)&&n.call(f)}finally{if(o)throw o.error}}}if(i)throw new nr(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ko(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)&&rt(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&rt(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();var zr=Qe.EMPTY;function ir(e){return e instanceof Qe||e&&"closed"in e&&R(e.remove)&&R(e.add)&&R(e.unsubscribe)}function ko(e){R(e)?e():e.unsubscribe()}var Ne={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ot={setTimeout:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Ot.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,J([e,t],Y(r))):setTimeout.apply(void 0,J([e,t],Y(r)))},clearTimeout:function(e){var t=Ot.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ar(e){Ot.setTimeout(function(){var t=Ne.onUnhandledError;if(t)t(e);else throw e})}function Ce(){}var Po=(function(){return qr("C",void 0,void 0)})();function $o(e){return qr("E",void 0,e)}function Ro(e){return qr("N",e,void 0)}function qr(e,t,r){return{kind:e,value:t,error:r}}var yt=null;function Lt(e){if(Ne.useDeprecatedSynchronousErrorHandling){var t=!yt;if(t&&(yt={errorThrown:!1,error:null}),e(),t){var r=yt,o=r.errorThrown,n=r.error;if(yt=null,o)throw n}}else e()}function Io(e){Ne.useDeprecatedSynchronousErrorHandling&&yt&&(yt.errorThrown=!0,yt.error=e)}var Dt=(function(e){ie(t,e);function t(r){var o=e.call(this)||this;return o.isStopped=!1,r?(o.destination=r,ir(r)&&r.add(o)):o.destination=wa,o}return t.create=function(r,o,n){return new ot(r,o,n)},t.prototype.next=function(r){this.isStopped?Kr(Ro(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Kr($o(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Kr(Po,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Qe);var va=Function.prototype.bind;function Br(e,t){return va.call(e,t)}var ya=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(o){sr(o)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(o){sr(o)}else sr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){sr(r)}},e})(),ot=(function(e){ie(t,e);function t(r,o,n){var i=e.call(this)||this,a;if(R(r)||!r)a={next:r!=null?r:void 0,error:o!=null?o:void 0,complete:n!=null?n:void 0};else{var s;i&&Ne.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()},a={next:r.next&&Br(r.next,s),error:r.error&&Br(r.error,s),complete:r.complete&&Br(r.complete,s)}):a=r}return i.destination=new ya(a),i}return t})(Dt);function sr(e){Ne.useDeprecatedSynchronousErrorHandling?Io(e):ar(e)}function xa(e){throw e}function Kr(e,t){var r=Ne.onStoppedNotification;r&&Ot.setTimeout(function(){return r(e,t)})}var wa={closed:!0,next:Ce,error:xa,complete:Ce};var Mt=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function we(e){return e}function Fo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Yr(e)}function Yr(e){return e.length===0?we:e.length===1?e[0]:function(r){return e.reduce(function(o,n){return n(o)},r)}}var F=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,o){var n=this,i=Ta(t)?t:new ot(t,r,o);return Lt(function(){var a=n,s=a.operator,c=a.source;i.add(s?s.call(i,c):c?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var o=this;return r=jo(r),new r(function(n,i){var a=new ot({next:function(s){try{t(s)}catch(c){i(c),a.unsubscribe()}},error:i,complete:n});o.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Mt]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Yr(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=jo(t),new t(function(o,n){var i;r.subscribe(function(a){return i=a},function(a){return n(a)},function(){return o(i)})})},e.create=function(t){return new e(t)},e})();function jo(e){var t;return(t=e!=null?e:Ne.Promise)!==null&&t!==void 0?t:Promise}function Ea(e){return e&&R(e.next)&&R(e.error)&&R(e.complete)}function Ta(e){return e&&e instanceof Dt||Ea(e)&&ir(e)}function Sa(e){return R(e==null?void 0:e.lift)}function O(e){return function(t){if(Sa(t))return t.lift(function(r){try{return e(r,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function L(e,t,r,o,n){return new Oa(e,t,r,o,n)}var Oa=(function(e){ie(t,e);function t(r,o,n,i,a,s){var c=e.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,c._next=o?function(l){try{o(l)}catch(p){r.error(p)}}:e.prototype._next,c._error=i?function(l){try{i(l)}catch(p){r.error(p)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=n?function(){try{n()}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;e.prototype.unsubscribe.call(this),!o&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(Dt);var _t={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,o=_t.delegate;o&&(t=o.requestAnimationFrame,r=o.cancelAnimationFrame);var n=t(function(i){r=void 0,e(i)});return new Qe(function(){return r==null?void 0:r(n)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=_t.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,J([],Y(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=_t.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,J([],Y(e)))},delegate:void 0};var Uo=St(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var T=(function(e){ie(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var o=new Do(this,this);return o.operator=r,o},t.prototype._throwIfClosed=function(){if(this.closed)throw new Uo},t.prototype.next=function(r){var o=this;Lt(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var a=_e(o.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(r)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var o=this;Lt(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=r;for(var n=o.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;Lt(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var o=r.observers;o.length;)o.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},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 o=this,n=this,i=n.hasError,a=n.isStopped,s=n.observers;return i||a?zr:(this.currentObservers=null,s.push(r),new Qe(function(){o.currentObservers=null,rt(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,a=o.isStopped;n?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new F;return r.source=this,r},t.create=function(r,o){return new Do(r,o)},t})(F);var Do=(function(e){ie(t,e);function t(r,o){var n=e.call(this)||this;return n.destination=r,n.source=o,n}return t.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},t.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},t.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},t.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:zr},t})(T);var Qr=(function(e){ie(t,e);function t(r){var o=e.call(this)||this;return o._value=r,o}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var o=e.prototype._subscribe.call(this,r);return!o.closed&&r.next(this._value),o},t.prototype.getValue=function(){var r=this,o=r.hasError,n=r.thrownError,i=r._value;if(o)throw n;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t})(T);var Wt={now:function(){return(Wt.delegate||Date).now()},delegate:void 0};var Vt=(function(e){ie(t,e);function t(r,o,n){r===void 0&&(r=1/0),o===void 0&&(o=1/0),n===void 0&&(n=Wt);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,o),i}return t.prototype.next=function(r){var o=this,n=o.isStopped,i=o._buffer,a=o._infiniteTimeWindow,s=o._timestampProvider,c=o._windowTime;n||(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 o=this._innerSubscribe(r),n=this,i=n._infiniteTimeWindow,a=n._buffer,s=a.slice(),c=0;c<s.length&&!r.closed;c+=i?1:2)r.next(s[c]);return this._checkFinalizedStatuses(r),o},t.prototype._trimBuffer=function(){var r=this,o=r._bufferSize,n=r._timestampProvider,i=r._buffer,a=r._infiniteTimeWindow,s=(a?1:2)*o;if(o<1/0&&s<i.length&&i.splice(0,i.length-s),!a){for(var c=n.now(),l=0,p=1;p<i.length&&i[p]<=c;p+=2)l=p;l&&i.splice(0,l+1)}},t})(T);var Wo=(function(e){ie(t,e);function t(r,o){return e.call(this)||this}return t.prototype.schedule=function(r,o){return o===void 0&&(o=0),this},t})(Qe);var Nt={setInterval:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Nt.delegate;return n!=null&&n.setInterval?n.setInterval.apply(n,J([e,t],Y(r))):setInterval.apply(void 0,J([e,t],Y(r)))},clearInterval:function(e){var t=Nt.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var Ct=(function(e){ie(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n.pending=!1,n}return t.prototype.schedule=function(r,o){var n;if(o===void 0&&(o=0),this.closed)return this;this.state=r;var i=this.id,a=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(a,i,o)),this.pending=!0,this.delay=o,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(a,this.id,o),this},t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),Nt.setInterval(r.flush.bind(r,this),n)},t.prototype.recycleAsyncId=function(r,o,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return o;o!=null&&Nt.clearInterval(o)},t.prototype.execute=function(r,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(r,o);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,o){var n=!1,i;try{this.work(r)}catch(a){n=!0,i=a||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,o=r.id,n=r.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,rt(i,this),o!=null&&(this.id=this.recycleAsyncId(n,o,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(Wo);var Gr=(function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,o){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(o,r)},e.now=Wt.now,e})();var At=(function(e){ie(t,e);function t(r,o){o===void 0&&(o=Gr.now);var n=e.call(this,r,o)||this;return n.actions=[],n._active=!1,n}return t.prototype.flush=function(r){var o=this.actions;if(this._active){o.push(r);return}var n;this._active=!0;do if(n=r.execute(r.state,r.delay))break;while(r=o.shift());if(this._active=!1,n){for(;r=o.shift();)r.unsubscribe();throw n}},t})(Gr);var pe=new At(Ct),Jr=pe;var Vo=(function(e){ie(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n}return t.prototype.schedule=function(r,o){return o===void 0&&(o=0),o>0?e.prototype.schedule.call(this,r,o):(this.delay=o,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,o){return o>0||this.closed?e.prototype.execute.call(this,r,o):this._execute(r,o)},t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),n!=null&&n>0||n==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,o,n):(r.flush(this),0)},t})(Ct);var No=(function(e){ie(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(At);var Xr=new No(Vo);var zo=(function(e){ie(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n}return t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),n!==null&&n>0?e.prototype.requestAsyncId.call(this,r,o,n):(r.actions.push(this),r._scheduled||(r._scheduled=_t.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,o,n){var i;if(n===void 0&&(n=0),n!=null?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,o,n);var a=r.actions;o!=null&&o===r._scheduled&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==o&&(_t.cancelAnimationFrame(o),r._scheduled=void 0)},t})(Ct);var qo=(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 o;r?o=r.id:(o=this._scheduled,this._scheduled=void 0);var n=this.actions,i;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while((r=n[0])&&r.id===o&&n.shift());if(this._active=!1,i){for(;(r=n[0])&&r.id===o&&n.shift();)r.unsubscribe();throw i}},t})(At);var Te=new qo(zo);var x=new F(function(e){return e.complete()});function cr(e){return e&&R(e.schedule)}function Zr(e){return e[e.length-1]}function ut(e){return R(Zr(e))?e.pop():void 0}function We(e){return cr(Zr(e))?e.pop():void 0}function lr(e,t){return typeof Zr(e)=="number"?e.pop():t}var Ht=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function pr(e){return R(e==null?void 0:e.then)}function mr(e){return R(e[Mt])}function ur(e){return Symbol.asyncIterator&&R(e==null?void 0:e[Symbol.asyncIterator])}function fr(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 La(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var dr=La();function hr(e){return R(e==null?void 0:e[dr])}function br(e){return Ao(this,arguments,function(){var r,o,n,i;return or(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,vt(r.read())];case 3:return o=a.sent(),n=o.value,i=o.done,i?[4,vt(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,vt(n)];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 gr(e){return R(e==null?void 0:e.getReader)}function W(e){if(e instanceof F)return e;if(e!=null){if(mr(e))return Ma(e);if(Ht(e))return _a(e);if(pr(e))return Ca(e);if(ur(e))return Bo(e);if(hr(e))return Aa(e);if(gr(e))return Ha(e)}throw fr(e)}function Ma(e){return new F(function(t){var r=e[Mt]();if(R(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function _a(e){return new F(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function Ca(e){return new F(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,ar)})}function Aa(e){return new F(function(t){var r,o;try{for(var n=_e(e),i=n.next();!i.done;i=n.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}t.complete()})}function Bo(e){return new F(function(t){ka(e,t).catch(function(r){return t.error(r)})})}function Ha(e){return Bo(br(e))}function ka(e,t){var r,o,n,i;return Co(this,void 0,void 0,function(){var a,s;return or(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=Ho(e),c.label=1;case 1:return[4,r.next()];case 2:if(o=c.sent(),!!o.done)return[3,4];if(a=o.value,t.next(a),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),n={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),o&&!o.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Pe(e,t,r,o,n){o===void 0&&(o=0),n===void 0&&(n=!1);var i=t.schedule(function(){r(),n?e.add(this.schedule(null,o)):this.unsubscribe()},o);if(e.add(i),!n)return i}function Se(e,t){return t===void 0&&(t=0),O(function(r,o){r.subscribe(L(o,function(n){return Pe(o,e,function(){return o.next(n)},t)},function(){return Pe(o,e,function(){return o.complete()},t)},function(n){return Pe(o,e,function(){return o.error(n)},t)}))})}function nt(e,t){return t===void 0&&(t=0),O(function(r,o){o.add(e.schedule(function(){return r.subscribe(o)},t))})}function Ko(e,t){return W(e).pipe(nt(t),Se(t))}function Yo(e,t){return W(e).pipe(nt(t),Se(t))}function Qo(e,t){return new F(function(r){var o=0;return t.schedule(function(){o===e.length?r.complete():(r.next(e[o++]),r.closed||this.schedule())})})}function Go(e,t){return new F(function(r){var o;return Pe(r,t,function(){o=e[dr](),Pe(r,t,function(){var n,i,a;try{n=o.next(),i=n.value,a=n.done}catch(s){r.error(s);return}a?r.complete():r.next(i)},0,!0)}),function(){return R(o==null?void 0:o.return)&&o.return()}})}function vr(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(function(r){Pe(r,t,function(){var o=e[Symbol.asyncIterator]();Pe(r,t,function(){o.next().then(function(n){n.done?r.complete():r.next(n.value)})},0,!0)})})}function Jo(e,t){return vr(br(e),t)}function Xo(e,t){if(e!=null){if(mr(e))return Ko(e,t);if(Ht(e))return Qo(e,t);if(pr(e))return Yo(e,t);if(ur(e))return vr(e,t);if(hr(e))return Go(e,t);if(gr(e))return Jo(e,t)}throw fr(e)}function oe(e,t){return t?Xo(e,t):W(e)}function $(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=We(e);return oe(e,r)}function eo(e,t){var r=R(e)?e:function(){return e},o=function(n){return n.error(r())};return new F(t?function(n){return t.schedule(o,0,n)}:o)}var kt=St(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function Pt(e,t){var r=typeof t=="object";return new Promise(function(o,n){var i=new ot({next:function(a){o(a),i.unsubscribe()},error:n,complete:function(){r?o(t.defaultValue):n(new kt)}});e.subscribe(i)})}function Zo(e){return e instanceof Date&&!isNaN(e)}function m(e,t){return O(function(r,o){var n=0;r.subscribe(L(o,function(i){o.next(e.call(t,i,n++))}))})}var Pa=Array.isArray;function $a(e,t){return Pa(t)?e.apply(void 0,J([],Y(t))):e(t)}function ft(e){return m(function(t){return $a(e,t)})}var Ra=Array.isArray,Ia=Object.getPrototypeOf,Fa=Object.prototype,ja=Object.keys;function en(e){if(e.length===1){var t=e[0];if(Ra(t))return{args:t,keys:null};if(Ua(t)){var r=ja(t);return{args:r.map(function(o){return t[o]}),keys:r}}}return{args:e,keys:null}}function Ua(e){return e&&typeof e=="object"&&Ia(e)===Fa}function tn(e,t){return e.reduce(function(r,o,n){return r[o]=t[n],r},{})}function G(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=We(e),o=ut(e),n=en(e),i=n.args,a=n.keys;if(i.length===0)return oe([],r);var s=new F(to(i,r,a?function(c){return tn(a,c)}:we));return o?s.pipe(ft(o)):s}function to(e,t,r){return r===void 0&&(r=we),function(o){rn(t,function(){for(var n=e.length,i=new Array(n),a=n,s=n,c=function(p){rn(t,function(){var u=oe(e[p],t),f=!1;u.subscribe(L(o,function(b){i[p]=b,f||(f=!0,s--),s||o.next(r(i.slice()))},function(){--a||o.complete()}))},o)},l=0;l<n;l++)c(l)},o)}}function rn(e,t,r){e?Pe(r,e,t):t()}function on(e,t,r,o,n,i,a,s){var c=[],l=0,p=0,u=!1,f=function(){u&&!c.length&&!l&&t.complete()},b=function(v){return l<o?d(v):c.push(v)},d=function(v){i&&t.next(v),l++;var D=!1;W(r(v,p++)).subscribe(L(t,function(K){n==null||n(K),i?b(K):t.next(K)},function(){D=!0},void 0,function(){if(D)try{l--;for(var K=function(){var X=c.shift();a?Pe(t,a,function(){return d(X)}):d(X)};c.length&&l<o;)K();f()}catch(X){t.error(X)}}))};return e.subscribe(L(t,b,function(){u=!0,f()})),function(){s==null||s()}}function ee(e,t,r){return r===void 0&&(r=1/0),R(t)?ee(function(o,n){return m(function(i,a){return t(o,i,n,a)})(W(e(o,n)))},r):(typeof t=="number"&&(r=t),O(function(o,n){return on(o,n,e,r)}))}function $t(e){return e===void 0&&(e=1/0),ee(we,e)}function nn(){return $t(1)}function Ge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return nn()(oe(e,We(e)))}function P(e){return new F(function(t){W(e()).subscribe(t)})}var Da=["addListener","removeListener"],Wa=["addEventListener","removeEventListener"],Va=["on","off"];function h(e,t,r,o){if(R(r)&&(o=r,r=void 0),o)return h(e,t,r).pipe(ft(o));var n=Y(qa(e)?Wa.map(function(s){return function(c){return e[s](t,c,r)}}):Na(e)?Da.map(an(e,t)):za(e)?Va.map(an(e,t)):[],2),i=n[0],a=n[1];if(!i&&Ht(e))return ee(function(s){return h(s,t,r)})(W(e));if(!i)throw new TypeError("Invalid event target");return new F(function(s){var c=function(){for(var l=[],p=0;p<arguments.length;p++)l[p]=arguments[p];return s.next(1<l.length?l:l[0])};return i(c),function(){return a(c)}})}function an(e,t){return function(r){return function(o){return e[r](t,o)}}}function Na(e){return R(e.addListener)&&R(e.removeListener)}function za(e){return R(e.on)&&R(e.off)}function qa(e){return R(e.addEventListener)&&R(e.removeEventListener)}function yr(e,t,r){return r?yr(e,t).pipe(ft(r)):new F(function(o){var n=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o.next(a.length===1?a[0]:a)},i=e(n);return R(t)?function(){return t(n,i)}:void 0})}function Ie(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Jr);var o=-1;return t!=null&&(cr(t)?r=t:o=t),new F(function(n){var i=Zo(e)?+e-r.now():e;i<0&&(i=0);var a=0;return r.schedule(function(){n.closed||(n.next(a++),0<=o?this.schedule(void 0,o):n.complete())},i)})}function E(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=We(e),o=lr(e,1/0),n=e;return n.length?n.length===1?W(n[0]):$t(o)(oe(n,r)):x}var dt=new F(Ce);var Ba=Array.isArray;function xr(e){return e.length===1&&Ba(e[0])?e[0]:e}function y(e,t){return O(function(r,o){var n=0;r.subscribe(L(o,function(i){return e.call(t,i,n++)&&o.next(i)}))})}function it(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ut(e),o=xr(e);return o.length?new F(function(n){var i=o.map(function(){return[]}),a=o.map(function(){return!1});n.add(function(){i=a=null});for(var s=function(l){W(o[l]).subscribe(L(n,function(p){if(i[l].push(p),i.every(function(f){return f.length})){var u=i.map(function(f){return f.shift()});n.next(r?r.apply(void 0,J([],Y(u))):u),i.some(function(f,b){return!f.length&&a[b]})&&n.complete()}},function(){a[l]=!0,!i[l].length&&n.complete()}))},c=0;!n.closed&&c<o.length;c++)s(c);return function(){i=a=null}}):x}function sn(e){return O(function(t,r){var o=!1,n=null,i=null,a=!1,s=function(){if(i==null||i.unsubscribe(),i=null,o){o=!1;var l=n;n=null,r.next(l)}a&&r.complete()},c=function(){i=null,a&&r.complete()};t.subscribe(L(r,function(l){o=!0,n=l,i||W(e(l)).subscribe(i=L(r,s,c))},function(){a=!0,(!o||!i||i.closed)&&r.complete()}))})}function Fe(e,t){return t===void 0&&(t=pe),sn(function(){return Ie(e,t)})}function at(e,t){return t===void 0&&(t=null),t=t!=null?t:e,O(function(r,o){var n=[],i=0;r.subscribe(L(o,function(a){var s,c,l,p,u=null;i++%t===0&&n.push([]);try{for(var f=_e(n),b=f.next();!b.done;b=f.next()){var d=b.value;d.push(a),e<=d.length&&(u=u!=null?u:[],u.push(d))}}catch(K){s={error:K}}finally{try{b&&!b.done&&(c=f.return)&&c.call(f)}finally{if(s)throw s.error}}if(u)try{for(var v=_e(u),D=v.next();!D.done;D=v.next()){var d=D.value;rt(n,d),o.next(d)}}catch(K){l={error:K}}finally{try{D&&!D.done&&(p=v.return)&&p.call(v)}finally{if(l)throw l.error}}},function(){var a,s;try{for(var c=_e(n),l=c.next();!l.done;l=c.next()){var p=l.value;o.next(p)}}catch(u){a={error:u}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}o.complete()},void 0,function(){n=null}))})}function ve(e){return O(function(t,r){var o=null,n=!1,i;o=t.subscribe(L(r,void 0,void 0,function(a){i=W(e(a,ve(e)(t))),o?(o.unsubscribe(),o=null,i.subscribe(r)):n=!0})),n&&(o.unsubscribe(),o=null,i.subscribe(r))})}function cn(e,t,r,o,n){return function(i,a){var s=r,c=t,l=0;i.subscribe(L(a,function(p){var u=l++;c=s?e(c,p,u):(s=!0,p),o&&a.next(c)},n&&(function(){s&&a.next(c),a.complete()})))}}function ro(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ut(e);return r?Fo(ro.apply(void 0,J([],Y(e))),ft(r)):O(function(o,n){to(J([o],Y(xr(e))))(n)})}function je(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ro.apply(void 0,J([],Y(e)))}function zt(e){return O(function(t,r){var o=!1,n=null,i=null,a=function(){if(i==null||i.unsubscribe(),i=null,o){o=!1;var s=n;n=null,r.next(s)}};t.subscribe(L(r,function(s){i==null||i.unsubscribe(),o=!0,n=s,i=L(r,a,Ce),W(e(s)).subscribe(i)},function(){a(),r.complete()},void 0,function(){n=i=null}))})}function Le(e,t){return t===void 0&&(t=pe),O(function(r,o){var n=null,i=null,a=null,s=function(){if(n){n.unsubscribe(),n=null;var l=i;i=null,o.next(l)}};function c(){var l=a+e,p=t.now();if(p<l){n=this.schedule(void 0,l-p),o.add(n);return}s()}r.subscribe(L(o,function(l){i=l,a=t.now(),n||(n=t.schedule(c,e),o.add(n))},function(){s(),o.complete()},void 0,function(){i=n=null}))})}function Je(e){return O(function(t,r){var o=!1;t.subscribe(L(r,function(n){o=!0,r.next(n)},function(){o||r.next(e),r.complete()}))})}function ye(e){return e<=0?function(){return x}:O(function(t,r){var o=0;t.subscribe(L(r,function(n){++o<=e&&(r.next(n),e<=o&&r.complete())}))})}function ae(){return O(function(e,t){e.subscribe(L(t,Ce))})}function ln(e){return m(function(){return e})}function oo(e,t){return t?function(r){return Ge(t.pipe(ye(1),ae()),r.pipe(oo(e)))}:ee(function(r,o){return W(e(r,o)).pipe(ye(1),ln(r))})}function st(e,t){t===void 0&&(t=pe);var r=Ie(e,t);return oo(function(){return r})}function no(e,t){return O(function(r,o){var n=new Set;r.subscribe(L(o,function(i){var a=e?e(i):i;n.has(a)||(n.add(a),o.next(i))})),t&&W(t).subscribe(L(o,function(){return n.clear()},Ce))})}function q(e,t){return t===void 0&&(t=we),e=e!=null?e:Ka,O(function(r,o){var n,i=!0;r.subscribe(L(o,function(a){var s=t(a);(i||!e(n,s))&&(i=!1,n=s,o.next(a))}))})}function Ka(e,t){return e===t}function me(e,t){return q(function(r,o){return t?t(r[e],o[e]):r[e]===o[e]})}function pn(e){return e===void 0&&(e=Ya),O(function(t,r){var o=!1;t.subscribe(L(r,function(n){o=!0,r.next(n)},function(){return o?r.complete():r.error(e())}))})}function Ya(){return new kt}function ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return Ge(r,$.apply(void 0,J([],Y(e))))}}function wr(e,t){return t?function(r){return r.pipe(wr(function(o,n){return W(e(o,n)).pipe(m(function(i,a){return t(o,i,n,a)}))}))}:O(function(r,o){var n=0,i=null,a=!1;r.subscribe(L(o,function(s){i||(i=L(o,void 0,function(){i=null,a&&o.complete()}),W(e(s,n++)).subscribe(i))},function(){a=!0,!i&&o.complete()}))})}function H(e){return O(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function xt(e,t){var r=arguments.length>=2;return function(o){return o.pipe(e?y(function(n,i){return e(n,i,o)}):we,ye(1),r?Je(t):pn(function(){return new kt}))}}function io(e){return e<=0?function(){return x}:O(function(t,r){var o=[];t.subscribe(L(r,function(n){o.push(n),e<o.length&&o.shift()},function(){var n,i;try{for(var a=_e(o),s=a.next();!s.done;s=a.next()){var c=s.value;r.next(c)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}r.complete()},void 0,function(){o=null}))})}function mn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=We(e),o=lr(e,1/0);return O(function(n,i){$t(o)(oe(J([n],Y(e)),r)).subscribe(i)})}function ze(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mn.apply(void 0,J([],Y(e)))}function wt(e){var t,r=1/0,o;return e!=null&&(typeof e=="object"?(t=e.count,r=t===void 0?1/0:t,o=e.delay):r=e),r<=0?function(){return x}:O(function(n,i){var a=0,s,c=function(){if(s==null||s.unsubscribe(),s=null,o!=null){var p=typeof o=="number"?Ie(o):W(o(a)),u=L(i,function(){u.unsubscribe(),l()});p.subscribe(u)}else l()},l=function(){var p=!1;s=n.subscribe(L(i,void 0,function(){++a<r?s?c():p=!0:i.complete()})),p&&c()};l()})}function Et(e,t){return O(cn(e,t,arguments.length>=2,!0))}function le(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new T}:t,o=e.resetOnError,n=o===void 0?!0:o,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,b=0,d=!1,v=!1,D=function(){u==null||u.unsubscribe(),u=void 0},K=function(){D(),p=f=void 0,d=v=!1},X=function(){var M=p;K(),M==null||M.unsubscribe()};return O(function(M,He){b++,!v&&!d&&D();var ke=f=f!=null?f:r();He.add(function(){b--,b===0&&!v&&!d&&(u=ao(X,c))}),ke.subscribe(He),!p&&b>0&&(p=new ot({next:function(ge){return ke.next(ge)},error:function(ge){v=!0,D(),u=ao(K,n,ge),ke.error(ge)},complete:function(){d=!0,D(),u=ao(K,a),ke.complete()}}),W(M).subscribe(p))})(l)}}function ao(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];if(t===!0){e();return}if(t!==!1){var n=new ot({next:function(){n.unsubscribe(),e()}});return W(t.apply(void 0,J([],Y(r)))).subscribe(n)}}function re(e,t,r){var o,n,i,a,s=!1;return e&&typeof e=="object"?(o=e.bufferSize,a=o===void 0?1/0:o,n=e.windowTime,t=n===void 0?1/0:n,i=e.refCount,s=i===void 0?!1:i,r=e.scheduler):a=e!=null?e:1/0,le({connector:function(){return new Vt(a,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function Ue(e){return y(function(t,r){return e<=r})}function Q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=We(e);return O(function(o,n){(r?Ge(e,o,r):Ge(e,o)).subscribe(n)})}function g(e,t){return O(function(r,o){var n=null,i=0,a=!1,s=function(){return a&&!n&&o.complete()};r.subscribe(L(o,function(c){n==null||n.unsubscribe();var l=0,p=i++;W(e(c,p)).subscribe(n=L(o,function(u){return o.next(t?t(c,u,p,l++):u)},function(){n=null,s()}))},function(){a=!0,s()}))})}function j(e){return O(function(t,r){W(e).subscribe(L(r,function(){return r.complete()},Ce)),!r.closed&&t.subscribe(r)})}function so(e,t){return t===void 0&&(t=!1),O(function(r,o){var n=0;r.subscribe(L(o,function(i){var a=e(i,n++);(a||t)&&o.next(i),!a&&o.complete()}))})}function S(e,t,r){var o=R(e)||t||r?{next:e,error:t,complete:r}:e;return o?O(function(n,i){var a;(a=o.subscribe)===null||a===void 0||a.call(o);var s=!0;n.subscribe(L(i,function(c){var l;(l=o.next)===null||l===void 0||l.call(o,c),i.next(c)},function(){var c;s=!1,(c=o.complete)===null||c===void 0||c.call(o),i.complete()},function(c){var l;s=!1,(l=o.error)===null||l===void 0||l.call(o,c),i.error(c)},function(){var c,l;s&&((c=o.unsubscribe)===null||c===void 0||c.call(o)),(l=o.finalize)===null||l===void 0||l.call(o)}))}):we}function un(e,t){return O(function(r,o){var n=t!=null?t:{},i=n.leading,a=i===void 0?!0:i,s=n.trailing,c=s===void 0?!1:s,l=!1,p=null,u=null,f=!1,b=function(){u==null||u.unsubscribe(),u=null,c&&(D(),f&&o.complete())},d=function(){u=null,f&&o.complete()},v=function(K){return u=W(e(K)).subscribe(L(o,b,d))},D=function(){if(l){l=!1;var K=p;p=null,o.next(K),!f&&v(K)}};r.subscribe(L(o,function(K){l=!0,p=K,!(u&&!u.closed)&&(a?D():v(K))},function(){f=!0,!(c&&l&&u&&!u.closed)&&o.complete()}))})}function Tt(e,t,r){t===void 0&&(t=pe);var o=Ie(e,t);return un(function(){return o},r)}function te(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ut(e);return O(function(o,n){for(var i=e.length,a=new Array(i),s=e.map(function(){return!1}),c=!1,l=function(u){W(e[u]).subscribe(L(n,function(f){a[u]=f,!c&&!s[u]&&(s[u]=!0,(c=s.every(we))&&(s=null))},Ce))},p=0;p<i;p++)l(p);o.subscribe(L(n,function(u){if(c){var f=J([u],Y(a));n.next(r?r.apply(void 0,J([],Y(f))):f)}}))})}function fn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return O(function(r,o){it.apply(void 0,J([r],Y(e))).subscribe(o)})}function co(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fn.apply(void 0,J([],Y(e)))}function dn(){let e=new Vt(1);return h(document,"DOMContentLoaded",{once:!0}).subscribe(()=>e.next(document)),e}function C(e,t=document){return Array.from(t.querySelectorAll(e))}function I(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 qe(){var e,t,r,o;return(o=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?o:void 0}var Qa=E(h(document.body,"focusin"),h(document.body,"focusout")).pipe(Le(1),Q(void 0),m(()=>qe()||document.body),re(1));function Xe(e){return Qa.pipe(m(t=>e.contains(t)),q())}function ct(e,t){return P(()=>E(h(e,"mouseenter").pipe(m(()=>!0)),h(e,"mouseleave").pipe(m(()=>!1))).pipe(t?zt(r=>Ie(+!r*t)):we,Q(e.matches(":hover"))))}function hn(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)hn(e,r)}function w(e,t,...r){let o=document.createElement(e);if(t)for(let n of Object.keys(t))typeof t[n]!="undefined"&&(typeof t[n]!="boolean"?o.setAttribute(n,t[n]):o.setAttribute(n,""));for(let n of r)hn(o,n);return o}function Er(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function Rt(e){let t=w("script",{src:e});return P(()=>(document.head.appendChild(t),E(h(t,"load"),h(t,"error").pipe(g(()=>eo(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(m(()=>{}),H(()=>document.head.removeChild(t)),ye(1))))}var bn=new T,Ga=P(()=>typeof ResizeObserver=="undefined"?Rt("https://unpkg.com/resize-observer-polyfill"):$(void 0)).pipe(m(()=>new ResizeObserver(e=>e.forEach(t=>bn.next(t)))),g(e=>E(dt,$(e)).pipe(H(()=>e.disconnect()))),re(1));function ue(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Ae(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return Ga.pipe(S(r=>r.observe(t)),g(r=>bn.pipe(y(o=>o.target===t),H(()=>r.unobserve(t)))),m(()=>ue(e)),Q(ue(e)))}function It(e){return{width:e.scrollWidth,height:e.scrollHeight}}function Tr(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 gn(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 Be(e){return{x:e.offsetLeft,y:e.offsetTop}}function vn(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function yn(e){return E(h(window,"load"),h(window,"resize")).pipe(Fe(0,Te),m(()=>Be(e)),Q(Be(e)))}function Sr(e){return{x:e.scrollLeft,y:e.scrollTop}}function Ze(e){return E(h(e,"scroll"),h(window,"scroll"),h(window,"resize")).pipe(Fe(0,Te),m(()=>Sr(e)),Q(Sr(e)))}var xn=new T,Ja=P(()=>$(new IntersectionObserver(e=>{for(let t of e)xn.next(t)},{threshold:0}))).pipe(g(e=>E(dt,$(e)).pipe(H(()=>e.disconnect()))),re(1));function et(e){return Ja.pipe(S(t=>t.observe(e)),g(t=>xn.pipe(y(({target:r})=>r===e),H(()=>t.unobserve(e)),m(({isIntersecting:r})=>r))))}function wn(e,t=16){return Ze(e).pipe(m(({y:r})=>{let o=ue(e),n=It(e);return r>=n.height-o.height-t}),q())}var Or={drawer:I("[data-md-toggle=drawer]"),search:I("[data-md-toggle=search]"),toc:I("[data-md-toggle=toc]")};function En(e){return Or[e].checked}function De(e,t){Or[e].checked!==t&&Or[e].click()}function ht(e){let t=Or[e];return h(t,"change").pipe(m(()=>t.checked),Q(t.checked))}function Xa(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 Za(){return E(h(window,"compositionstart").pipe(m(()=>!0)),h(window,"compositionend").pipe(m(()=>!1))).pipe(Q(!1))}function Tn(){let e=h(window,"keydown").pipe(y(t=>!(t.metaKey||t.ctrlKey)),m(t=>({mode:En("search")?"search":"global",type:t.key,claim(){t.preventDefault(),t.stopPropagation()}})),y(({mode:t,type:r})=>{if(t==="global"){let o=qe();if(typeof o!="undefined")return!Xa(o,r)}return!0}),le());return Za().pipe(g(t=>t?x:e))}function Oe(){return new URL(location.href)}function lt(e,t=!1){if(N("navigation.instant")&&!t){let r=w("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function Sn(){return new T}function On(){return location.hash.slice(1)}function Ln(e){let t=w("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function lo(e){return E(h(window,"hashchange"),e).pipe(m(On),Q(On()),y(t=>t.length>0),re(1))}function Mn(e){return lo(e).pipe(m(t=>be(`[id="${t}"]`)),y(t=>typeof t!="undefined"))}function qt(e){let t=matchMedia(e);return yr(r=>t.addListener(()=>r(t.matches))).pipe(Q(t.matches))}function _n(){let e=matchMedia("print");return E(h(window,"beforeprint").pipe(m(()=>!0)),h(window,"afterprint").pipe(m(()=>!1))).pipe(Q(e.matches))}function po(e,t){return e.pipe(g(r=>r?t():x))}function mo(e,t){return new F(r=>{let o=new XMLHttpRequest;return o.open("GET",`${e}`),o.responseType="blob",o.addEventListener("load",()=>{o.status>=200&&o.status<300?(r.next(o.response),r.complete()):r.error(new Error(o.statusText))}),o.addEventListener("error",()=>{r.error(new Error("Network error"))}),o.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(o.addEventListener("progress",n=>{var i;if(n.lengthComputable)t.progress$.next(n.loaded/n.total*100);else{let a=(i=o.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(n.loaded/+a*100)}}),t.progress$.next(5)),o.send(),()=>o.abort()})}function Ke(e,t){return mo(e,t).pipe(g(r=>r.text()),m(r=>JSON.parse(r)),re(1))}function Lr(e,t){let r=new DOMParser;return mo(e,t).pipe(g(o=>o.text()),m(o=>r.parseFromString(o,"text/html")),re(1))}function Cn(e,t){let r=new DOMParser;return mo(e,t).pipe(g(o=>o.text()),m(o=>r.parseFromString(o,"text/xml")),re(1))}function An(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function Hn(){return E(h(window,"scroll",{passive:!0}),h(window,"resize",{passive:!0})).pipe(m(An),Q(An()))}function kn(){return{width:innerWidth,height:innerHeight}}function Pn(){return h(window,"resize",{passive:!0}).pipe(m(kn),Q(kn()))}function $n(){return G([Hn(),Pn()]).pipe(m(([e,t])=>({offset:e,size:t})),re(1))}function Mr(e,{viewport$:t,header$:r}){let o=t.pipe(me("size")),n=G([o,r]).pipe(m(()=>Be(e)));return G([r,t,n]).pipe(m(([{height:i},{offset:a,size:s},{x:c,y:l}])=>({offset:{x:a.x-c,y:a.y-l+i},size:s})))}function es(e){return h(e,"message",t=>t.data)}function ts(e){let t=new T;return t.subscribe(r=>e.postMessage(r)),t}function Rn(e,t=new Worker(e)){let r=es(t),o=ts(t),n=new T;n.subscribe(o);let i=o.pipe(ae(),ce(!0));return n.pipe(ae(),ze(r.pipe(j(i))),le())}var rs=I("#__config"),Ft=JSON.parse(rs.textContent);Ft.base=`${new URL(Ft.base,Oe())}`;function Me(){return Ft}function N(e){return Ft.features.includes(e)}function de(e,t){return typeof t!="undefined"?Ft.translations[e].replace("#",t.toString()):Ft.translations[e]}function $e(e,t=document){return I(`[data-md-component=${e}]`,t)}function fe(e,t=document){return C(`[data-md-component=${e}]`,t)}function os(e){let t=I(".md-typeset > :first-child",e);return h(t,"click",{once:!0}).pipe(m(()=>I(".md-typeset",e)),m(r=>({hash:__md_hash(r.innerHTML)})))}function In(e){if(!N("announce.dismiss")||!e.childElementCount)return x;if(!e.hidden){let t=I(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return P(()=>{let t=new T;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),os(e).pipe(S(r=>t.next(r)),H(()=>t.complete()),m(r=>_({ref:e},r)))})}function ns(e,{target$:t}){return t.pipe(m(r=>({hidden:r!==e})))}function Fn(e,t){let r=new T;return r.subscribe(({hidden:o})=>{e.hidden=o}),ns(e,t).pipe(S(o=>r.next(o)),H(()=>r.complete()),m(o=>_({ref:e},o)))}function Bt(e,t){return t==="inline"?w("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},w("div",{class:"md-tooltip__inner md-typeset"})):w("div",{class:"md-tooltip",id:e,role:"tooltip"},w("div",{class:"md-tooltip__inner md-typeset"}))}function _r(...e){return w("div",{class:"md-tooltip2",role:"dialog"},w("div",{class:"md-tooltip2__inner md-typeset"},e))}function jn(...e){return w("div",{class:"md-tooltip2",role:"tooltip"},w("div",{class:"md-tooltip2__inner md-typeset"},e))}function Un(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return w("aside",{class:"md-annotation",tabIndex:0},Bt(t),w("a",{href:r,class:"md-annotation__index",tabIndex:-1},w("span",{"data-md-annotation-id":e})))}else return w("aside",{class:"md-annotation",tabIndex:0},Bt(t),w("span",{class:"md-annotation__index",tabIndex:-1},w("span",{"data-md-annotation-id":e})))}function Dn(e){return w("button",{class:"md-code__button",title:de("clipboard.copy"),"data-clipboard-target":`#${e} > code`,"data-md-type":"copy"})}function Wn(){return w("button",{class:"md-code__button",title:de("code.select"),"data-md-type":"select"})}function Vn(){return w("button",{class:"md-code__button",title:de("code.download"),"data-md-type":"download"})}function Nn(){return w("nav",{class:"md-code__nav"})}var fo=gt(Kt());function uo(e,t){var c,l;let r=t&2,o=t&1,n=("missingTerms"in e?e.missingTerms||[]:[]).reduce((p,u)=>[...p,w("del",null,(0,fo.default)(u))," "],[]).slice(0,-1),i=Me(),a=new URL(e.url,i.base);N("search.highlight")&&"matchedTerms"in e&&((c=e.matchedTerms)!=null&&c.length)&&a.searchParams.set("h",e.matchedTerms.join(" "));let{tags:s}=Me();return w("a",{href:`${a}`,class:"md-search-result__link",tabIndex:-1},w("article",{class:"md-search-result__article md-typeset","data-md-score":(l=e.score)==null?void 0:l.toFixed(2)},r>0&&w("div",{class:"md-search-result__icon md-icon"}),r>0&&w("h1",null,e.title.html),r<=0&&w("h2",null,e.title.html),o>0&&"excerpt"in e&&e.excerpt&&e.excerpt.html,"tags"in e&&e.tags&&w("nav",{class:"md-tags"},e.tags.map(p=>{let u=s&&p in s?`md-tag-icon md-tag--${s[p]}`:"md-tag-icon";return w("span",{class:`md-tag ${u}`},(0,fo.default)(p))})),o>0&&n.length>0&&w("p",{class:"md-search-result__terms"},de("search.result.term.missing"),": ",...n)))}function qn(e){var a;let t=(a=e.matches[0])==null?void 0:a.score,r=3;typeof t!="undefined"&&(r=e.matches.findIndex(s=>typeof s.score=="undefined"||s.score<t),r===-1&&(r=e.matches.length));let o=e.matches.slice(0,r),n=e.matches.slice(r),i=[uo(e.page,2),...o.map(s=>uo(s,1)),...n.length?[w("details",{class:"md-search-result__more"},w("summary",{tabIndex:-1},w("div",null,n.length>0&&n.length===1?de("search.result.more.one"):de("search.result.more.other",n.length))),...n.map(s=>uo(s,1)))]:[]];return w("li",{class:"md-search-result__item"},i)}function Bn(e){return w("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>w("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Er(r):r)))}function ho(e){let t=`tabbed-control tabbed-control--${e}`;return w("div",{class:t,hidden:!0},w("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function Kn(e){return w("div",{class:"md-typeset__scrollwrap"},w("div",{class:"md-typeset__table"},e))}function ss(e){var o;let t=Me(),r=new URL(`../${e.version}/`,t.base);return w("li",{class:"md-version__item"},w("a",{href:`${r}`,class:"md-version__link"},e.title,((o=t.version)==null?void 0:o.alias)&&e.aliases.length>0&&w("span",{class:"md-version__alias"},e.aliases[0])))}function Yn(e,t){var o;let r=Me();return e=e.filter(n=>{var i;return!((i=n.properties)!=null&&i.hidden)}),w("div",{class:"md-version"},w("button",{class:"md-version__current","aria-label":de("select.version")},t.title,((o=r.version)==null?void 0:o.alias)&&t.aliases.length>0&&w("span",{class:"md-version__alias"},t.aliases[0])),w("ul",{class:"md-version__list"},e.map(ss)))}var cs=0;function ls(e,t=250){let r=G([Xe(e),ct(e,t)]).pipe(m(([n,i])=>n||i),q()),o=P(()=>gn(e)).pipe(ee(Ze),Tt(1),je(r),m(()=>vn(e)));return r.pipe(xt(n=>n),g(()=>G([r,o])),m(([n,i])=>({active:n,offset:i})),le())}function Yt(e,t,r=250){let{content$:o,viewport$:n}=t,i=`__tooltip2_${cs++}`;return P(()=>{let a=new T,s=new Qr(!1);a.pipe(ae(),ce(!1)).subscribe(s);let c=s.pipe(zt(p=>Ie(+!p*250,Xr)),q(),g(p=>p?o:x),S(p=>p.id=i),le());G([a.pipe(m(({active:p})=>p)),c.pipe(g(p=>ct(p,250)),Q(!1))]).pipe(m(p=>p.some(u=>u))).subscribe(s);let l=s.pipe(y(p=>p),te(c,n),m(([p,u,{size:f}])=>{let b=e.getBoundingClientRect(),d=e.querySelector(".md-source__repository"),D=d?d.getBoundingClientRect().left-b.left+d.getBoundingClientRect().width/2+20:b.width/2;if(u.role==="tooltip")return{x:D,y:8+b.height};if(b.y>=f.height/2){let{height:K}=ue(u);return{x:D,y:-16-K}}else return{x:D,y:16+b.height}}));return G([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(y(p=>p),te(c,(p,u)=>u),y(p=>p.role==="tooltip")).subscribe(p=>{let u=ue(I(":scope > *",p));p.style.setProperty("--md-tooltip-width",`${u.width}px`),p.style.setProperty("--md-tooltip-tail","0px")}),s.pipe(q(),Se(Te),te(c)).subscribe(([p,u])=>{u.classList.toggle("md-tooltip2--active",p)}),G([s.pipe(y(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(y(p=>!p)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),ls(e,r).pipe(S(p=>a.next(p)),H(()=>a.complete()),m(p=>_({ref:e},p)))})}function Ye(e,{viewport$:t},r=document.body){return Yt(e,{content$:new F(o=>{let n=e.title,i=jn(n);return o.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",n)}}),viewport$:t},0)}function ps(e,t){let r=P(()=>G([yn(e),Ze(t)])).pipe(m(([{x:o,y:n},i])=>{let{width:a,height:s}=ue(e);return{x:o-i.x+a/2,y:n-i.y+s/2}}));return Xe(e).pipe(g(o=>r.pipe(m(n=>({active:o,offset:n})),ye(+!o||1/0))))}function Qn(e,t,{target$:r}){let[o,n]=Array.from(e.children);return P(()=>{let i=new T,a=i.pipe(ae(),ce(!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")}}),et(e).pipe(j(a)).subscribe(s=>{e.toggleAttribute("data-md-visible",s)}),E(i.pipe(y(({active:s})=>s)),i.pipe(Le(250),y(({active:s})=>!s))).subscribe({next({active:s}){s?e.prepend(o):o.remove()},complete(){e.prepend(o)}}),i.pipe(Fe(16,Te)).subscribe(({active:s})=>{o.classList.toggle("md-tooltip--active",s)}),i.pipe(Tt(125,Te),y(()=>!!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")}}),h(n,"click").pipe(j(a),y(s=>!(s.metaKey||s.ctrlKey))).subscribe(s=>{s.stopPropagation(),s.preventDefault()}),h(n,"mousedown").pipe(j(a),te(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=qe())==null||l.blur()}}),r.pipe(j(a),y(s=>s===o),st(125)).subscribe(()=>e.focus()),ps(e,t).pipe(S(s=>i.next(s)),H(()=>i.complete()),m(s=>_({ref:e},s)))})}function ms(e){let t=Me();if(e.tagName!=="CODE")return[e];let r=[".c",".c1",".cm"];if(t.annotate&&typeof t.annotate=="object"){let o=e.closest("[class|=language]");if(o)for(let n of Array.from(o.classList)){if(!n.startsWith("language-"))continue;let[,i]=n.split("-");i in t.annotate&&r.push(...t.annotate[i])}}return C(r.join(", "),e)}function us(e){let t=[];for(let r of ms(e)){let o=[],n=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=n.nextNode();i;i=n.nextNode())o.push(i);for(let i of o){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 Gn(e,t){t.append(...Array.from(e.childNodes))}function Cr(e,t,{target$:r,print$:o}){let n=t.closest("[id]"),i=n==null?void 0:n.id,a=new Map;for(let s of us(t)){let[,c]=s.textContent.match(/\((\d+)\)/);be(`:scope > li:nth-child(${c})`,e)&&(a.set(c,Un(c,i)),s.replaceWith(a.get(c)))}return a.size===0?x:P(()=>{let s=new T,c=s.pipe(ae(),ce(!0)),l=[];for(let[p,u]of a)l.push([I(".md-typeset",u),I(`:scope > li:nth-child(${p})`,e)]);return o.pipe(j(c)).subscribe(p=>{e.hidden=!p,e.classList.toggle("md-annotation-list",p);for(let[u,f]of l)p?Gn(u,f):Gn(f,u)}),E(...[...a].map(([,p])=>Qn(p,t,{target$:r}))).pipe(H(()=>s.complete()),le())})}function Jn(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Jn(t)}}function Xn(e,t){return P(()=>{let r=Jn(e);return typeof r!="undefined"?Cr(r,e,t):x})}var ei=gt(go());var fs=0,Zn=E(h(window,"keydown").pipe(m(()=>!0)),E(h(window,"keyup"),h(window,"contextmenu")).pipe(m(()=>!1))).pipe(Q(!1),re(1));function ti(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return ti(t)}}function ri(e){var t;return((t=e.textContent)==null?void 0:t.trimEnd())||""}function ds(e,t){let r=o=>{let n=Array.from(o.classList).find(i=>i.startsWith("language-"));return n?n.slice(9):""};return r(e)||r(t)}function hs(e){return e.replace(/[\\/:*?"<>|]/g,"_").replace(/\s+/g," ").trim().replace(/^\.+$/,"download").slice(0,255)}function bs(e,t){return!t||e.toLowerCase().endsWith(t.toLowerCase())?e:e+t}function gs(e,t){var i,a;let r=(a=(i=e.querySelector(".filename"))==null?void 0:i.textContent)==null?void 0:a.trim(),o=ds(e,t),n=o?`.${o}`:"";return hs(r?bs(r,n):`download${n}`)||"download"}function vs(e){let t=(e||"").trim(),r=t.toLowerCase();return!r||r==="blob"||r==="data-download"?{strategy:"blob"}:{strategy:"url",source:t}}function oi(e,t){let r=document.createElement("a");r.href=e,r.download=t,r.rel="noopener",r.style.display="none",document.body.appendChild(r),r.click(),r.remove()}function ys(e,t){let r=new Blob([e],{type:"text/plain;charset=utf-8"}),o=URL.createObjectURL(r);oi(o,t),requestAnimationFrame(()=>URL.revokeObjectURL(o))}function xs(e){let t=new URL(e,window.location.href);oi(t.toString(),"")}var ws=15;function Es(e){let t=(e||"").trim();if(!t)return;let r=Number(t);if(Number.isFinite(r))return Math.max(0,Math.round(r))}function Ts(e){var i;let t=(i=Me().code)==null?void 0:i.fold;if((t==null?void 0:t.enabled)!==!0)return;let r=t.lines,o=Number.isFinite(r)?Math.max(0,Math.round(r)):ws,n=Es(e==null?void 0:e.getAttribute("data-fold"));return n!==void 0&&(o=n),o}function Ss(e,t){if(t.length)return t.length;let r=ri(e);return r?r.split(/\r?\n/).length:0}function Os(e){return Ae(e).pipe(m(({width:t})=>({scrollable:It(e).width>t})),me("scrollable"))}function ni(e,t){let{matches:r}=matchMedia("(hover)"),o=P(()=>{let n=new T,i=n.pipe(io(1));n.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:fs++;s.id=`__code_${l}`;let p=[],u=e.closest(".highlight");if(u instanceof HTMLElement){let d=ti(u);if(typeof d!="undefined"&&(u.classList.contains("annotate")||N("content.code.annotate"))){let v=Cr(d,e,t);p.push(E(Ae(u),et(u).pipe(m(()=>ue(u)))).pipe(j(i),m(({width:D,height:K})=>D&&K),q(),g(D=>D?v:x)))}}let f=C(":scope > span[id]",e);if(f.length&&(e.classList.add("md-code__content"),e.closest(".select")||N("content.code.select")&&!e.closest(".no-select"))){let d=+f[0].id.split("-").pop(),v=Wn();a.push(v),N("content.tooltips")&&p.push(Ye(v,{viewport$}));let D=h(v,"click").pipe(Et(U=>!U,!1),S(()=>v.blur()),le());D.subscribe(U=>{v.classList.toggle("md-code__button--active",U)});let K=oe(f).pipe(ee(U=>ct(U).pipe(m(ne=>[U,ne]))));D.pipe(g(U=>U?K:x)).subscribe(([U,ne])=>{let se=be(".hll.select",U);if(se&&!ne)se.replaceWith(...Array.from(se.childNodes));else if(!se&&ne){let xe=document.createElement("span");xe.className="hll select",xe.append(...Array.from(U.childNodes).slice(1)),U.append(xe)}});let X=oe(f).pipe(ee(U=>h(U,"mousedown").pipe(S(ne=>ne.preventDefault()),m(()=>U)))),M=D.pipe(g(U=>U?X:x),te(Zn),m(([U,ne])=>{var xe;let se=f.indexOf(U)+d;if(ne===!1)return[se,se];{let Ee=C(".hll",e).map(tt=>f.indexOf(tt.parentElement)+d);return(xe=window.getSelection())==null||xe.removeAllRanges(),[Math.min(se,...Ee),Math.max(se,...Ee)]}})),He=lo(x).pipe(y(U=>U.startsWith(`__codelineno-${l}-`)));He.subscribe(U=>{let[,,ne]=U.split("-"),se=ne.split(":").map(Ee=>+Ee-d+1);se.length===1&&se.push(se[0]);for(let Ee of C(".hll:not(.select)",e))Ee.replaceWith(...Array.from(Ee.childNodes));let xe=f.slice(se[0]-1,se[1]);for(let Ee of xe){let tt=document.createElement("span");tt.className="hll",tt.append(...Array.from(Ee.childNodes).slice(1)),Ee.append(tt)}}),He.pipe(ye(1),Se(pe)).subscribe(U=>{if(U.includes(":")){let ne=document.getElementById(U.split(":")[0]);ne&&setTimeout(()=>{let se=ne,xe=-64;for(;se!==document.body;)xe+=se.offsetTop,se=se.offsetParent;window.scrollTo({top:xe})},1)}});let ge=oe(C('a[href^="#__codelineno"]',u)).pipe(ee(U=>h(U,"click").pipe(S(ne=>ne.preventDefault()),m(()=>U)))).pipe(j(i),te(Zn),m(([U,ne])=>{let xe=+I(`[id="${U.hash.slice(1)}"]`).parentElement.id.split("-").pop();if(ne===!1)return[xe,xe];{let Ee=C(".hll",e).map(tt=>+tt.parentElement.id.split("-").pop());return[Math.min(xe,...Ee),Math.max(xe,...Ee)]}}));E(M,ge).subscribe(U=>{let ne=`#__codelineno-${l}-`;U[0]===U[1]?ne+=U[0]:ne+=`${U[0]}:${U[1]}`,history.replaceState({},"",ne),window.dispatchEvent(new HashChangeEvent("hashchange",{newURL:window.location.origin+window.location.pathname+ne,oldURL:window.location.href}))})}if(u instanceof HTMLElement){let d=Ts(u),v=Ss(e,f);if(d&&d>0&&v>d){let D=()=>{let ge=f[d-1];if(!ge)return;let U=Math.ceil(ge.getBoundingClientRect().bottom-u.getBoundingClientRect().top);U<=0||u.style.setProperty("--md-code-fold-max-height",`${U}px`)},K=()=>{requestAnimationFrame(()=>{requestAnimationFrame(D)})};u.classList.add("md-code--collapsible","md-code--collapsed"),K();let X=v-d;u.id||(u.id=`__code_fold_${l}`);let M=document.createElement("button");M.type="button",M.className="md-code__toggle",M.setAttribute("aria-controls",u.id);let He=document.createElement("span");He.className="md-code__toggle-text",M.appendChild(He);let ke=ge=>{u.classList.toggle("md-code--collapsed",ge),M.setAttribute("aria-expanded",(!ge).toString()),ge?He.textContent=de("code.expand",X):He.textContent=de("code.collapse")};ke(!0),et(u).pipe(y(Boolean),j(i)).subscribe(()=>{K()}),h(M,"click").pipe(j(i)).subscribe(()=>{if(M.blur(),u.classList.contains("md-code--collapsed")){ke(!1);return}let U=document.querySelector(".md-header"),ne=U?U.offsetHeight:0,se=u.getBoundingClientRect().top+window.scrollY-ne;ke(!0),window.scrollTo({top:se})}),u.insertAdjacentElement("afterend",M)}}if(ei.default.isSupported()&&(e.closest(".copy")||N("content.code.copy")&&!e.closest(".no-copy"))){let d=Dn(s.id);a.push(d),N("content.tooltips")&&p.push(Ye(d,{viewport$}))}if(u instanceof HTMLElement&&u.hasAttribute("data-download")){let d=vs(u.getAttribute("data-download")),v=Vn();a.push(v),N("content.tooltips")&&p.push(Ye(v,{viewport$})),h(v,"click").pipe(j(i)).subscribe(D=>{if(D.preventDefault(),v.blur(),d.strategy==="blob"){let K=gs(u,e);ys(ri(e),K)}else d.source&&xs(d.source)})}if(a.length){let d=Nn();d.append(...a),s.insertBefore(d,e)}return Os(e).pipe(S(d=>n.next(d)),H(()=>n.complete()),m(d=>_({ref:e},d)),ze(E(...p).pipe(j(i))))});return N("content.lazy")?et(e).pipe(y(n=>n),ye(1),g(()=>o)):o}function Ls(e,{target$:t,print$:r}){let o=!0;return E(t.pipe(m(n=>n.closest("details:not([open])")),y(n=>e===n),m(()=>({action:"open",reveal:!0}))),r.pipe(y(n=>n||!o),S(()=>o=e.open),m(n=>({action:n?"open":"close"}))))}function ii(e,t){return P(()=>{let r=new T;return r.subscribe(({action:o,reveal:n})=>{e.toggleAttribute("open",o==="open"),n&&e.scrollIntoView()}),Ls(e,t).pipe(S(o=>r.next(o)),H(()=>r.complete()),m(o=>_({ref:e},o)))})}var ai=0;function Ms(e){let t=document.createElement("h3");t.innerHTML=e.innerHTML;let r=[t],o=e.nextElementSibling;for(;o&&!(o instanceof HTMLHeadingElement);)r.push(o),o=o.nextElementSibling;return r}function _s(e,t){for(let r of C("[href], [src]",e))for(let o of["href","src"]){let n=r.getAttribute(o);if(n&&!/^(?:[a-z]+:)?\/\//i.test(n)){r[o]=new URL(r.getAttribute(o),t).toString();break}}for(let r of C("[name^=__], [for]",e))for(let o of["id","for","name"]){let n=r.getAttribute(o);n&&r.setAttribute(o,`${n}$preview_${ai}`)}return ai++,$(e)}function si(e,t){let{sitemap$:r}=t;if(!(e instanceof HTMLAnchorElement))return x;if(!(N("navigation.instant.preview")||e.hasAttribute("data-preview")))return x;e.removeAttribute("title");let o=G([Xe(e),ct(e)]).pipe(m(([i,a])=>i||a),q(),y(i=>i));return it([r,o]).pipe(g(([i])=>{let a=new URL(e.href);return a.search=a.hash="",i.has(`${a}`)?$(a):x}),g(i=>Lr(i).pipe(g(a=>_s(a,i)))),g(i=>{let a=e.hash?`article [id="${e.hash.slice(1)}"]`:"article h1",s=be(a,i);return typeof s=="undefined"?x:$(Ms(s))})).pipe(g(i=>{let a=new F(s=>{let c=_r(...i);return s.next(c),document.body.append(c),()=>c.remove()});return Yt(e,_({content$:a},t))}))}var ci=".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)!important}.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 #statediagram-barbEnd{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{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}#arrowhead path,[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)}defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}";var vo,As=0;function Hs(){return typeof mermaid=="undefined"||mermaid instanceof Element?Rt("https://unpkg.com/mermaid@11/dist/mermaid.min.js"):$(void 0)}function li(e){return e.classList.remove("mermaid"),vo||(vo=Hs().pipe(S(()=>mermaid.initialize({startOnLoad:!1,themeCSS:ci,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),m(()=>{}),re(1))),vo.subscribe(()=>he(null,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${As++}`,r=w("div",{class:"mermaid"}),o=e.textContent,{svg:n,fn:i}=yield mermaid.render(t,o),a=r.attachShadow({mode:"closed"});a.innerHTML=n,e.replaceWith(r),i==null||i(a)})),vo.pipe(m(()=>({ref:e})))}var pi=w("table");function mi(e){return e.replaceWith(pi),pi.replaceWith(Kn(e)),$({ref:e})}function ks(e){let t=e.find(r=>r.checked)||e[0];return E(...e.map(r=>h(r,"change").pipe(m(()=>I(`label[for="${r.id}"]`))))).pipe(Q(I(`label[for="${t.id}"]`)),m(r=>({active:r})))}function ui(e,{viewport$:t,target$:r}){let o=I(".tabbed-labels",e),n=C(":scope > input",e),i=ho("prev");e.append(i);let a=ho("next");return e.append(a),P(()=>{let s=new T,c=s.pipe(ae(),ce(!0));G([s,Ae(e),et(e)]).pipe(j(c),Fe(1,Te)).subscribe({next([{active:l},p]){let u=Be(l),{width:f}=ue(l);e.style.setProperty("--md-indicator-x",`${u.x}px`),e.style.setProperty("--md-indicator-width",`${f}px`);let b=Sr(o);(u.x<b.x||u.x+f>b.x+p.width)&&o.scrollTo({left:Math.max(0,u.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),G([Ze(o),Ae(o)]).pipe(j(c)).subscribe(([l,p])=>{let u=It(o);i.hidden=l.x<16,a.hidden=l.x>u.width-p.width-16}),E(h(i,"click").pipe(m(()=>-1)),h(a,"click").pipe(m(()=>1))).pipe(j(c)).subscribe(l=>{let{width:p}=ue(o);o.scrollBy({left:p*l,behavior:"smooth"})}),r.pipe(j(c),y(l=>n.includes(l))).subscribe(l=>l.click()),o.classList.add("tabbed-labels--linked");for(let l of n){let p=I(`label[for="${l.id}"]`);p.replaceChildren(w("a",{href:`#${p.htmlFor}`,tabIndex:-1},...Array.from(p.childNodes))),h(p.firstElementChild,"click").pipe(j(c),y(u=>!(u.metaKey||u.ctrlKey)),S(u=>{u.preventDefault(),u.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${p.htmlFor}`),p.click()})}return N("content.tabs.link")&&s.pipe(Ue(1),te(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 d of C("[data-tabs]"))for(let v of C(":scope > input",d)){let D=I(`label[for="${v.id}"]`);if(D!==l&&D.innerText.trim()===u){D.setAttribute("data-md-switching",""),v.click();break}}window.scrollTo({top:e.offsetTop-f});let b=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([u,...b])])}}),s.pipe(j(c)).subscribe(()=>{for(let l of C("audio, video",e))l.offsetWidth&&l.autoplay?l.play().catch(()=>{}):l.pause()}),ks(n).pipe(S(l=>s.next(l)),H(()=>s.complete()),m(l=>_({ref:e},l)))}).pipe(nt(pe))}function fi(e,t){let{viewport$:r,target$:o,print$:n}=t;return E(...C(".annotate:not(.highlight)",e).map(i=>Xn(i,{target$:o,print$:n})),...C("pre:not(.mermaid) > code",e).map(i=>ni(i,{target$:o,print$:n})),...C("a",e).map(i=>si(i,t)),...C("pre.mermaid",e).map(i=>li(i)),...C("table:not([class])",e).map(i=>mi(i)),...C("details",e).map(i=>ii(i,{target$:o,print$:n})),...C("[data-tabs]",e).map(i=>ui(i,{viewport$:r,target$:o})),...C("[title]:not([data-preview])",e).filter(()=>N("content.tooltips")).map(i=>Ye(i,{viewport$:r})),...C(".footnote-ref",e).filter(()=>N("content.footnote.tooltips")).map(i=>Yt(i,{content$:new F(a=>{let s=new URL(i.href).hash.slice(1),c=Array.from(document.getElementById(s).cloneNode(!0).children),l=_r(...c);return a.next(l),document.body.append(l),()=>l.remove()}),viewport$:r})))}function Ps(e,{alert$:t}){return t.pipe(g(r=>E($(!0),$(!1).pipe(st(2e3))).pipe(m(o=>({message:r,active:o})))))}function di(e,t){let r=I(".md-typeset",e);return P(()=>{let o=new T;return o.subscribe(({message:n,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=n}),Ps(e,t).pipe(S(n=>o.next(n)),H(()=>o.complete()),m(n=>_({ref:e},n)))})}var $s=0;function Rs(e,t){document.body.append(e);let{width:r}=ue(e);e.style.setProperty("--md-tooltip-width",`${r}px`),e.remove();let o=Tr(t),n=typeof o!="undefined"?Ze(o):$({x:0,y:0}),i=E(Xe(t),ct(t)).pipe(q());return G([i,n]).pipe(m(([a,s])=>{let{x:c,y:l}=Be(t),p=ue(t),u=t.closest("table");u&&t.parentElement&&(c+=u.offsetLeft+t.parentElement.offsetLeft,l+=u.offsetTop+t.parentElement.offsetTop);let f=t.querySelector(".md-source__repository"),b=(()=>{if(f){let d=Be(f),v=ue(f);return d.x-s.x+v.width/2-r/2+20}return c-s.x+p.width/2-r/2+3})();return{active:a,offset:{x:b,y:l-s.y+p.height+8}}}))}function hi(e){let t=e.title;if(!t.length)return x;let r=`__tooltip_${$s++}`,o=Bt(r,"inline"),n=I(".md-typeset",o);return n.innerHTML=t,P(()=>{let i=new T;return i.subscribe({next({offset:a}){o.style.setProperty("--md-tooltip-x",`${a.x}px`),o.style.setProperty("--md-tooltip-y",`${a.y}px`)},complete(){o.style.removeProperty("--md-tooltip-x"),o.style.removeProperty("--md-tooltip-y")}}),E(i.pipe(y(({active:a})=>a)),i.pipe(Le(250),y(({active:a})=>!a))).subscribe({next({active:a}){a?(e.insertAdjacentElement("afterend",o),e.setAttribute("aria-describedby",r),e.removeAttribute("title")):(o.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t))},complete(){o.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t)}}),i.pipe(Fe(16,Te)).subscribe(({active:a})=>{o.classList.toggle("md-tooltip--active",a)}),i.pipe(Tt(125,Te),y(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:a})=>a)).subscribe({next(a){a?o.style.setProperty("--md-tooltip-0",`${-a}px`):o.style.removeProperty("--md-tooltip-0")},complete(){o.style.removeProperty("--md-tooltip-0")}}),Rs(o,e).pipe(S(a=>i.next(a)),H(()=>i.complete()),m(a=>_({ref:e},a)))}).pipe(nt(pe))}function Is({viewport$:e}){if(!N("header.autohide"))return $(!1);let t=e.pipe(m(({offset:{y:n}})=>n),at(2,1),m(([n,i])=>[n<i,i]),me(0)),r=G([e,t]).pipe(y(([{offset:n},[,i]])=>Math.abs(i-n.y)>100),m(([,[n]])=>n),q()),o=ht("search");return G([e,o]).pipe(m(([{offset:n},i])=>n.y>400&&!i),q(),g(n=>n?r:$(!1)),Q(!1))}function bi(e,t){return P(()=>G([Ae(e),Is(t)])).pipe(m(([{height:r},o])=>({height:r,hidden:o})),q((r,o)=>r.height===o.height&&r.hidden===o.hidden),re(1))}function gi(e,{header$:t,main$:r}){return P(()=>{let o=new T,n=o.pipe(ae(),ce(!0));o.pipe(me("active"),je(t)).subscribe(([{active:a},{hidden:s}])=>{e.classList.toggle("md-header--shadow",a&&!s),e.hidden=s});let i=oe(C("[title]",e)).pipe(y(()=>N("content.tooltips")),ee(a=>hi(a)));return r.subscribe(o),t.pipe(j(n),m(a=>_({ref:e},a)),ze(i.pipe(j(n))))})}function Fs(e,{viewport$:t,header$:r}){return Mr(e,{viewport$:t,header$:r}).pipe(m(({offset:{y:o}})=>{let{height:n}=ue(e);return{active:n>0&&o>=n}}),me("active"))}function vi(e,t){return P(()=>{let r=new T;r.subscribe({next({active:n}){e.classList.toggle("md-header__title--active",n)},complete(){e.classList.remove("md-header__title--active")}});let o=be(".md-content h1");return typeof o=="undefined"?x:Fs(o,t).pipe(S(n=>r.next(n)),H(()=>r.complete()),m(n=>_({ref:e},n)))})}function yi(e,{viewport$:t,header$:r}){let o=r.pipe(m(({height:i})=>i),q()),n=o.pipe(g(()=>Ae(e).pipe(m(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),me("bottom"))));return G([o,n,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})),q((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function js(e){let t=__md_get("__palette")||{index:e.findIndex(o=>matchMedia(o.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return $(...e).pipe(ee(o=>h(o,"change").pipe(m(()=>o))),Q(e[r]),m(o=>({index:e.indexOf(o),color:{media:o.getAttribute("data-md-color-media"),scheme:o.getAttribute("data-md-color-scheme"),primary:o.getAttribute("data-md-color-primary"),accent:o.getAttribute("data-md-color-accent")}})),re(1))}function xi(e){let t=C("input",e),r=w("meta",{name:"theme-color"});document.head.appendChild(r);let o=w("meta",{name:"color-scheme"});document.head.appendChild(o);let n=qt("(prefers-color-scheme: light)");return P(()=>{let i=new T;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;s<t.length;s++){let c=t[s].nextElementSibling;c instanceof HTMLElement&&(c.hidden=a.index!==s)}__md_set("__palette",a)}),h(e,"keydown").pipe(y(a=>a.key==="Enter"),te(i,(a,s)=>s)).subscribe(({index:a})=>{a=(a+1)%t.length,t[a].click(),t[a].focus()}),i.pipe(m(()=>{let a=$e("header"),s=window.getComputedStyle(a);return o.content=s.colorScheme,s.backgroundColor.match(/\d+/g).map(c=>(+c).toString(16).padStart(2,"0")).join("")})).subscribe(a=>r.content=`#${a}`),i.pipe(Se(pe)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")}),js(t).pipe(j(n.pipe(Ue(1))),wt(),S(a=>i.next(a)),H(()=>i.complete()),m(a=>_({ref:e},a)))})}function wi(e,{progress$:t}){return P(()=>{let r=new T;return r.subscribe(({value:o})=>{e.style.setProperty("--md-progress-value",`${o}`)}),t.pipe(S(o=>r.next({value:o})),H(()=>r.complete()),m(o=>({ref:e,value:o})))})}function Us(e){let{searchParams:t}=Oe();t.has("q")&&(De("search",!0),e.value=t.get("q"),e.focus(),ht("search").pipe(xt(n=>!n)).subscribe(()=>{let n=Oe();n.searchParams.delete("q"),history.replaceState({},"",`${n}`)}));let r=Xe(e),o=E(h(e,"input").pipe(y(n=>!n.isComposing)),h(e,"compositionend"),r).pipe(m(()=>e.value),q());return G([o,r]).pipe(m(([n,i])=>({value:n,focus:i})),re(1))}function Ei(e){let t=new T,r=t.pipe(ae(),ce(!0));t.pipe(me("focus")).subscribe(({focus:n})=>{n&&De("search",n)}),h(e.form,"reset").pipe(j(r)).subscribe(()=>e.focus());let o=I("header [for=__search]");return h(o,"click").subscribe(()=>e.focus()),Us(e).pipe(S(n=>t.next(n)),H(()=>t.complete()),m(n=>_({ref:e},n)),re(1))}function Ti(e,{search:t,query$:r}){let o=new T,n=wn(e.parentElement).pipe(y(Boolean)),i=e.parentElement,a=I(":scope > :first-child",e),s=I(":scope > :last-child",e);ht("search").subscribe(p=>{s.setAttribute("role",p?"list":"presentation"),s.hidden=!p}),o.pipe(te(r)).subscribe(([{total:p},{value:u}])=>{switch(p){case 0:a.textContent=u.length?de("search.result.none"):de("search.result.placeholder");break;case 1:a.textContent=de("search.result.one");break;default:let f=Er(p);a.textContent=de("search.result.other",f)}});let c=o.pipe(S(()=>s.innerHTML=""),g(({results:p})=>E($(...p.slice(0,10)),$(...p.slice(10)).pipe(at(4),co(n),g(([u])=>u))).pipe(ee(u=>oe(u.load())),m(qn))),le());return c.subscribe(p=>s.appendChild(p)),c.pipe(ee(p=>{let u=be("details",p);return typeof u=="undefined"?x:h(u,"toggle").pipe(j(o),m(()=>u))})).subscribe(p=>{p.open===!1&&p.offsetTop<=i.scrollTop&&i.scrollTo({top:p.offsetTop})}),t.watch(r.pipe(m(({value:p})=>p))).pipe(S(p=>o.next(p)),H(()=>o.complete()),m(p=>_({ref:e},p)),le())}function Ds(e,{query$:t}){return t.pipe(m(({value:r})=>{let o=Oe();return o.hash="",r=r.replace(/\s+/g,"+").replace(/&/g,"%26").replace(/=/g,"%3D"),o.search=`q=${r}`,{url:o}}))}function Si(e,t){let r=new T,o=r.pipe(ae(),ce(!0));return r.subscribe(({url:n})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${n}`}),h(e,"click").pipe(j(o)).subscribe(n=>n.preventDefault()),Ds(e,t).pipe(S(n=>r.next(n)),H(()=>r.complete()),m(n=>_({ref:e},n)))}function Oi(e,{result$:t,keyboard$:r}){let o=new T,n=$e("search-query"),i=E(h(n,"keydown"),h(n,"focus")).pipe(Se(pe),m(()=>n.value),q());return o.pipe(je(i),m(([{suggest:a},s])=>{let c=s.split(/([\s-]+)/);if(a!=null&&a.length&&c[c.length-1]){let l=a[a.length-1];l.startsWith(c[c.length-1])&&(c[c.length-1]=l)}else c.length=0;return c})).subscribe(a=>e.textContent=a.join("")),r.pipe(y(({mode:a})=>a==="search")).subscribe(a=>{if(a.type==="ArrowRight"){let s=e.textContent||"";s.length&&n.selectionStart===n.value.length&&(n.value=s)}}),t.pipe(S(a=>o.next(a)),H(()=>o.complete()),m(()=>({ref:e})))}function Li(e,{search:t,keyboard$:r,alert$:o,offline:n}){try{let i=$e("search-query",e),a=$e("search-result",e);n?h(i,"focus").pipe(m(()=>de("search.offline"))).subscribe(o):h(i,"focus").pipe(ye(1),g(()=>oe(t.setup()))).subscribe({error:()=>e.hidden=!0}),h(e,"click").pipe(y(({target:l})=>l instanceof Element&&!!l.closest("a"))).subscribe(()=>De("search",!1)),r.pipe(y(({mode:l})=>l==="search")).subscribe(l=>{let p=qe();switch(l.type){case"Enter":if(p===i){let u=C(":first-child [href]",a);if(u.length){let f=d=>{var v;return Number(((v=d.firstElementChild)==null?void 0:v.getAttribute("data-md-score"))||Number.NEGATIVE_INFINITY)};u.reduce((d,v)=>f(v)>f(d)?v:d).click()}l.claim()}break;case"Escape":case"Tab":De("search",!1),i.blur();break;case"ArrowUp":case"ArrowDown":if(typeof p=="undefined")i.focus();else{let u=[i,...C(":not(details) > [href], summary, details[open] [href]",a)],f=Math.max(0,(Math.max(0,u.indexOf(p))+u.length+(l.type==="ArrowUp"?-1:1))%u.length);u[f].focus()}l.claim();break;default:i!==qe()&&i.focus()}}),r.pipe(y(({mode:l})=>l==="global")).subscribe(l=>{switch(l.type){case"f":case"s":case"/":i.focus(),i.select(),l.claim();break}});let s=Ei(i),c=n?dt:Ti(a,{search:t,query$:s});return E(s,c).pipe(ze(...fe("search-share",e).map(l=>Si(l,{query$:s})),...fe("search-suggest",e).map(l=>Oi(l,{result$:c,keyboard$:r}))))}catch(i){return e.hidden=!0,dt}}function Mi(e,{search:t,location$:r}){let{highlighter:o}=t;return typeof o=="undefined"?x:r.pipe(Q(Oe()),m(n=>n.searchParams.get("h")||""),y(Boolean),g(n=>oe(o.highlight(e,n))),m(()=>({ref:e,active:!0})))}function Ws(e,{viewport$:t,main$:r}){let o=e.closest(".md-grid"),n=o.offsetTop-o.parentElement.offsetTop;return G([r,t]).pipe(m(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(n,Math.max(0,s-i))-n,{height:a,locked:s>=i+n})),q((i,a)=>i.height===a.height&&i.locked===a.locked))}function yo(e,o){var n=o,{header$:t}=n,r=Lo(n,["header$"]);let i=I(".md-sidebar__scrollwrap",e),{y:a}=Be(i);return P(()=>{let s=new T,c=s.pipe(ae(),ce(!0)),l=s.pipe(Fe(0,Te));return l.pipe(te(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(xt()).subscribe(()=>{for(let p of C(".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:b}=ue(u);u.scrollTo({top:f-b/2})}}}),oe(C("label[tabindex]",e)).pipe(ee(p=>h(p,"click").pipe(Se(pe),m(()=>p),j(c)))).subscribe(p=>{let u=I(`[id="${p.htmlFor}"]`);I(`[aria-labelledby="${p.id}"]`).setAttribute("aria-expanded",`${u.checked}`)}),N("content.tooltips")&&oe(C("abbr[title]",e)).pipe(ee(p=>Ye(p,{viewport$})),j(c)).subscribe(),Ws(e,r).pipe(S(p=>s.next(p)),H(()=>s.complete()),m(p=>_({ref:e},p)))})}function _i(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return it(Ke(`${r}/releases/latest`).pipe(ve(()=>x),m(o=>({version:o.tag_name})),Je({})),Ke(r).pipe(ve(()=>x),m(o=>({stars:o.stargazers_count,forks:o.forks_count})),Je({}))).pipe(m(([o,n])=>_(_({},o),n)))}else{let r=`https://api.github.com/users/${e}`;return Ke(r).pipe(m(o=>({repositories:o.public_repos})),Je({}))}}function Ci(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return it(Ke(`${r}/releases/permalink/latest`).pipe(ve(()=>x),m(({tag_name:o})=>({version:o})),Je({})),Ke(r).pipe(ve(()=>x),m(({star_count:o,forks_count:n})=>({stars:o,forks:n})),Je({}))).pipe(m(([o,n])=>_(_({},o),n)))}function Ai(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,o]=t;return _i(r,o)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,o]=t;return Ci(r,o)}return x}var Vs;function Ns(e){return Vs||(Vs=P(()=>{let t=__md_get("__source",sessionStorage);if(t)return $(t);if(fe("consent").length){let o=__md_get("__consent");if(!(o&&o.github))return x}return Ai(e.href).pipe(S(o=>__md_set("__source",o,sessionStorage)))}).pipe(ve(()=>x),y(t=>Object.keys(t).length>0),m(t=>({facts:t})),re(1)))}function Hi(e){let t=I(":scope > :last-child",e);return P(()=>{let r=new T;return r.subscribe(({facts:o})=>{t.appendChild(Bn(o)),t.classList.add("md-source__repository--active")}),Ns(e).pipe(S(o=>r.next(o)),H(()=>r.complete()),m(o=>_({ref:e},o)))})}function zs(e,{viewport$:t,header$:r}){return Ae(document.body).pipe(g(()=>Mr(e,{header$:r,viewport$:t})),m(({offset:{y:o}})=>({hidden:o>=10})),me("hidden"))}function ki(e,t){return P(()=>{let r=new T;return r.subscribe({next({hidden:o}){e.hidden=o},complete(){e.hidden=!1}}),(N("navigation.tabs.sticky")?$({hidden:!1}):zs(e,t)).pipe(S(o=>r.next(o)),H(()=>r.complete()),m(o=>_({ref:e},o)))})}function qs(e,{viewport$:t,header$:r}){let o=new Map,n=C(".md-nav__link",e);for(let s of n){let c=decodeURIComponent(s.hash.substring(1)),l=be(`[id="${c}"]`);typeof l!="undefined"&&o.set(s,l)}let i=r.pipe(me("height"),m(({height:s})=>{let c=$e("main"),l=I(":scope > :first-child",c);return s+.8*(l.offsetTop-c.offsetTop)}),le());return Ae(document.body).pipe(me("height"),g(s=>P(()=>{let c=[];return $([...o].reduce((l,[p,u])=>{for(;c.length&&o.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 b=u.offsetParent;for(;b;b=b.offsetParent)f+=b.offsetTop;return l.set([...c=[...c,p]].reverse(),f)},new Map))}).pipe(m(c=>new Map([...c].sort(([,l],[,p])=>l-p))),je(i),g(([c,l])=>t.pipe(Et(([p,u],{offset:{y:f},size:b})=>{let d=f+b.height>=Math.floor(s.height);for(;u.length;){let[,v]=u[0];if(v-l<f||d)p=[...p,u.shift()];else break}for(;p.length;){let[,v]=p[p.length-1];if(v-l>=f&&!d)u=[p.pop(),...u];else break}return[p,u]},[[],[...c]]),q((p,u)=>p[0]===u[0]&&p[1]===u[1])))))).pipe(m(([s,c])=>({prev:s.map(([l])=>l),next:c.map(([l])=>l)})),Q({prev:[],next:[]}),at(2,1),m(([s,c])=>s.prev.length<c.prev.length?{prev:c.prev.slice(Math.max(0,s.prev.length-1),c.prev.length),next:[]}:{prev:c.prev.slice(-1),next:c.next.slice(0,c.next.length-s.next.length)}))}function Pi(e,{viewport$:t,header$:r,main$:o,target$:n}){return P(()=>{let i=new T,a=i.pipe(ae(),ce(!0));if(i.subscribe(({prev:s,next:c})=>{for(let[l]of c)l.classList.remove("md-nav__link--passed"),l.classList.remove("md-nav__link--active");for(let[l,[p]]of s.entries())p.classList.add("md-nav__link--passed"),p.classList.toggle("md-nav__link--active",l===s.length-1)}),h(e,"click").pipe(j(a)).subscribe(s=>{s.target.closest(".md-nav__link")&&(N("toc.integrate")?De("drawer",!1):De("toc",!1))}),N("toc.follow")){let s=E(t.pipe(Le(1),m(()=>{})),t.pipe(Le(250),m(()=>"smooth")));i.pipe(y(({prev:c})=>c.length>0),je(o.pipe(Se(pe))),te(s)).subscribe(([[{prev:c}],l])=>{let[p]=c[c.length-1];if(p.offsetHeight){let u=Tr(p);if(typeof u!="undefined"){let f=p.offsetTop-u.offsetTop,{height:b}=ue(u);u.scrollTo({top:f-b/2,behavior:l})}}})}return N("navigation.tracking")&&t.pipe(j(a),me("offset"),Le(250),Ue(1),j(n.pipe(Ue(1))),wt({delay:250}),te(i)).subscribe(([,{prev:s}])=>{let c=Oe(),l=s[s.length-1];if(l&&l.length){let[p]=l,{hash:u}=new URL(p.href);c.hash!==u&&(c.hash=u,history.replaceState({},"",`${c}`))}else c.hash="",history.replaceState({},"",`${c}`)}),qs(e,{viewport$:t,header$:r}).pipe(S(s=>i.next(s)),H(()=>i.complete()),m(s=>_({ref:e},s)))})}function Bs(e,{viewport$:t,main$:r,target$:o}){let i=t.pipe(m(({offset:{y:l}})=>l),at(2,1),m(([l,p])=>p-l),Et((l,p)=>{let u=Math.sign(l)===Math.sign(p)?l+p:p;return Math.max(-24,Math.min(24,u))},0),m(l=>{if(l<=-12)return!0;if(l>=12)return!1}),y(l=>l!==void 0),te(t),y(([,l])=>l.offset.y>0),m(([l])=>l),q()),a=r.pipe(m(({active:l})=>l)),s=t.pipe(m(({offset:{y:l}})=>l===0),q(),y(Boolean)),c=E(i,s.pipe(m(()=>!1)));return G([a,c]).pipe(m(([l,p])=>!(l&&p)),q(),j(o.pipe(Ue(1))),ce(!0),wt({delay:250}),m(l=>({hidden:l})))}function $i(e,{viewport$:t,main$:r,target$:o}){let n=new T;n.subscribe({next({hidden:a}){e.hidden=a,a?(e.setAttribute("tabindex","-1"),i instanceof HTMLElement&&i.blur(),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.bottom="",e.hidden=!0,e.removeAttribute("tabindex")}});let i=e.querySelector("[data-md-action='top']");return i&&h(i,"click").subscribe(a=>{a.preventDefault(),window.scrollTo({top:0})}),Bs(e,{viewport$:t,main$:r,target$:o}).pipe(S(a=>n.next(a)),H(()=>n.complete()),m(a=>_({ref:e},a)))}function Ri(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,e}function Ks(e,t){let r=new Map;for(let o of C("url",e)){let n=I("loc",o),i=[Ri(new URL(n.textContent),t)];r.set(`${i[0]}`,i);for(let a of C("[rel=alternate]",o)){let s=a.getAttribute("href");s!=null&&i.push(Ri(new URL(s),t))}}return r}function jt(e){return Cn(new URL("sitemap.xml",e)).pipe(m(t=>Ks(t,new URL(e))),ve(()=>$(new Map)),le())}function Ii({document$:e}){let t=new Map;e.pipe(g(()=>C("link[rel=alternate]")),m(r=>new URL(r.href)),y(r=>!t.has(r.toString())),ee(r=>jt(r).pipe(m(o=>[r,o]),ve(()=>x)))).subscribe(([r,o])=>{t.set(r.toString().replace(/\/$/,""),o)}),h(document.body,"click").pipe(y(r=>!r.metaKey&&!r.ctrlKey),g(r=>{if(r.target instanceof Element){let o=r.target.closest("a");if(o&&!o.target){let n=[...t].find(([u])=>o.href.startsWith(`${u}/`));if(typeof n=="undefined")return x;let[i,a]=n,s=Oe();if(s.href.startsWith(i))return x;let c=Me(),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(),$(p)}}return x})).subscribe(r=>lt(r,!0))}var xo=gt(go());function Ys(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 Fi({alert$:e}){xo.default.isSupported()&&new F(t=>{new xo.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||Ys(I(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(S(t=>{t.trigger.focus()}),m(()=>de("clipboard.copied"))).subscribe(e)}function ji(e,t){if(!(e.target instanceof Element))return x;let r=e.target.closest("a");if(r===null)return x;if(r.target||e.metaKey||e.ctrlKey)return x;let o=new URL(r.href);return o.search=o.hash="",t.has(`${o}`)?(e.preventDefault(),$(r)):x}function Ui(e){let t=new Map;for(let r of C(":scope > *",e.head))t.set(r.outerHTML,r);return t}function Di(e){for(let t of C("[href], [src]",e))for(let r of["href","src"]){let o=t.getAttribute(r);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){t[r]=t[r];break}}return $(e)}function Qs(e){for(let o 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]",...N("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let n=be(o),i=be(o,e);typeof n!="undefined"&&typeof i!="undefined"&&n.replaceWith(i)}let t=Ui(document);for(let[o,n]of Ui(e))t.has(o)?t.delete(o):document.head.appendChild(n);for(let o of t.values()){let n=o.getAttribute("name");n!=="theme-color"&&n!=="color-scheme"&&o.remove()}let r=$e("container");return Ge(C("script",r)).pipe(g(o=>{let n=e.createElement("script");if(o.src){for(let i of o.getAttributeNames())n.setAttribute(i,o.getAttribute(i));return o.replaceWith(n),new F(i=>{n.onload=()=>i.complete()})}else return n.textContent=o.textContent,o.replaceWith(n),x}),ae(),ce(document))}function Wi({sitemap$:e,location$:t,viewport$:r,progress$:o}){if(location.protocol==="file:")return x;$(document).subscribe(Di);let n=h(document.body,"click").pipe(je(e),g(([s,c])=>ji(s,c)),m(({href:s})=>new URL(s)),le()),i=h(window,"popstate").pipe(m(Oe),le());n.pipe(te(r)).subscribe(([s,{offset:c}])=>{history.replaceState(c,""),history.pushState(null,"",s)}),E(n,i).subscribe(t);let a=t.pipe(me("pathname"),g(s=>Lr(s,{progress$:o}).pipe(ve(()=>(lt(s,!0),x)))),g(Di),g(Qs),le());return E(a.pipe(te(t,(s,c)=>c)),a.pipe(g(()=>t),me("hash")),t.pipe(q((s,c)=>s.pathname===c.pathname&&s.hash===c.hash),g(()=>n),S(()=>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",Ln(s.hash),history.scrollRestoration="manual")}),t.subscribe(()=>{history.scrollRestoration="manual"}),h(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),r.pipe(me("offset"),Le(100)).subscribe(({offset:s})=>{history.replaceState(s,"")}),N("navigation.instant.prefetch")&&E(h(document.body,"mousemove"),h(document.body,"focusin")).pipe(je(e),g(([s,c])=>ji(s,c)),Le(25),no(({href:s})=>s),wr(s=>{let c=document.createElement("link");return c.rel="prefetch",c.href=s.toString(),document.head.appendChild(c),h(c,"load").pipe(m(()=>c),ye(1))})).subscribe(s=>s.remove()),a}var Gt=class{constructor(t){this.provider=t}get highlighter(){return this.provider.highlighter}setup(){return this.ready||(this.ready=this.provider.setup()),this.ready}watch(t){return t.pipe(S(r=>{var o;(o=this.provider.preloader)==null?void 0:o.preload(r).catch(()=>{})}),Le(50),q(),g(r=>oe(this.search(r)).pipe(ve(()=>$({total:0,results:[]})))))}search(t){return he(this,null,function*(){return t?(yield this.setup(),this.provider.search({query:t})):{total:0,results:[]}})}};var zi=gt(Kt());var Ar=class{constructor(t){this.sequence=0;this.worker$=Rn(t)}setup(t){return he(this,null,function*(){yield this.request(0,1,t)})}search(t){return this.request(2,3,t)}request(t,r,o){return he(this,null,function*(){let n=this.sequence++,i=Pt(this.worker$.pipe(y(s=>s.id===n&&(s.type===r||s.type===4))));this.worker$.next({id:n,type:t,data:o});let a=yield i;if(a.type===4)throw new Error(a.error||"Search worker failed");return a.data})}};var Vi=gt(Kt());function Ni(e){let t=e.separator.split("|").map(n=>n.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":n).join("|"),r=new RegExp(t,"img"),o=(n,i,a)=>`${i}<mark data-md-highlight>${a}</mark>`;return n=>{n=n.replace(/[\s*+\-:~^]+/g," ").replace(/&/g,"&amp;").trim();let i=new RegExp(`(^|${e.separator}|)(${n.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(r,"|")})`,"img");return a=>(0,Vi.default)(a).replace(i,o).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}var Hr=class{constructor(t){this.index=t}highlight(t,r){return he(this,null,function*(){var s;let o=yield this.index(),n=Ni(o.config)(r),i=new Map,a=document.createNodeIterator(t,NodeFilter.SHOW_TEXT);for(let c=a.nextNode();c;c=a.nextNode())if((s=c.parentElement)!=null&&s.offsetHeight){let l=c.textContent,p=n(l);p.length>l.length&&i.set(c,p)}for(let[c,l]of i){let{childNodes:p}=w("span",{},l);c.replaceWith(...Array.from(p))}})}};function qi(e){return{html:e.split(/(<\/?mark>)/g).map(r=>/^<\/?mark>$/.test(r)?r:(0,zi.default)(r)).join("")}}function Xs(e){return{html:e}}function Zs(e){let t=Object.entries(e.terms);return mt(_(_({url:e.location,title:qi(e.title),score:e.score},e.text.length&&{excerpt:Xs(e.text)}),e.tags&&{tags:e.tags}),{matchedTerms:t.filter(([,r])=>r).map(([r])=>r),missingTerms:t.filter(([,r])=>!r).map(([r])=>r)})}function ec(e){let t=e.find(o=>!o.location.includes("#"))||e[0];return{page:{url:t.location,title:qi(t.title),score:t.score},matches:e.filter(o=>o!==t||Object.keys(o.terms).length>0).map(Zs)}}var kr=class{constructor(t){this.options=mt(_({},t),{workerUrl:`${new URL(t.workerUrl,location.href)}`,indexUrl:`${new URL(t.indexUrl,location.href)}`,offlineIndexUrl:`${new URL(t.offlineIndexUrl,location.href)}`}),this.worker=new Ar(this.options.workerUrl),this.highlighter=new Hr(()=>this.loadIndex())}setup(){return this.ready||(this.ready=this.loadIndex().then(t=>this.worker.setup(t))),this.ready}search(t){return he(this,null,function*(){yield this.setup();let r=yield this.worker.search(t);return _({total:r.items.length,results:r.items.map((o,n)=>{var i;return{id:((i=o[0])==null?void 0:i.location)||`${n}`,load:()=>he(this,null,function*(){return ec(o)})}})},typeof r.suggest!="undefined"&&{suggest:r.suggest})})}loadIndex(){if(!this.index){let t=location.protocol==="file:"?Pt(Rt(this.options.offlineIndexUrl).pipe(m(()=>__index))):Pt(Ke(this.options.indexUrl));this.index=t.then(r=>mt(_({},r),{options:{suggest:this.options.suggest}}))}return this.index}};var Bi=gt(Kt());var Pr=class{constructor(t){this.options=t}highlight(t,r){return he(this,null,function*(){let i=(yield import(`${new URL("pagefind-highlight.js",this.options.bundleUrl)}`)).PagefindHighlight||globalThis.PagefindHighlight;if(typeof i=="undefined")throw new TypeError("Unable to load Pagefind highlighter");new i({highlightParam:"h",markContext:t,addStyles:!1})})}};function Ki(e){return{html:(0,Bi.default)(e)}}function tc(e){return{html:e}}function rc(e){return _({url:e.url,title:Ki(e.title||"/")},e.excerpt.length&&{excerpt:tc(e.excerpt)})}function oc(e,t){return`${new URL(t,e.bundleUrl)}`}var $r=class{constructor(t){this.options=mt(_({},t),{baseUrl:`${new URL(t.baseUrl,location.href)}`,bundleUrl:`${new URL(t.bundleUrl,location.href)}`}),this.preloader={preload:r=>this.preload(r)},this.options.highlight&&(this.highlighter=new Pr(this.options))}setup(){return this.ready||(this.ready=this.initialize()),this.ready}search(r){return he(this,arguments,function*({query:t}){if(!t)return{total:0,results:[]};yield this.setup();let{results:o}=yield this.module.search(t);return{total:o.length,results:o.map(n=>({id:n.id,load:()=>he(this,null,function*(){return this.result(n)})}))}})}preload(t){return he(this,null,function*(){t&&(yield this.setup(),yield this.module.preload(t))})}initialize(){return he(this,null,function*(){let t=yield import(oc(this.options,"pagefind.js"));yield t.options(_(mt(_({},this.options.searchOptions),{baseUrl:new URL(this.options.baseUrl).pathname}),this.options.highlight&&{highlightParam:"h"})),yield t.init(),this.module=t})}result(t){return he(this,null,function*(){let r=yield t.data();return{page:{url:r.url,title:Ki(r.meta.title||r.title||"/")},matches:r.sub_results.map(rc)}})}};function Yi(e){switch(e.provider){case"lunr":return new Gt(new kr(e.options));case"pagefind":return new Gt(new $r(e.options))}}function Qi(e){var p;let{selectedVersionSitemap:t,selectedVersionBaseURL:r,currentLocation:o,currentBaseURL:n}=e,i=(p=wo(n))==null?void 0:p.pathname;if(i===void 0)return;let a=nc(o.pathname,i);if(a===void 0)return;let s=ac(t.keys());if(!t.has(s))return;let c=wo(a,s);if(!c||!t.has(c.href))return;let l=wo(a,r);if(l)return l.hash=o.hash,l.search=o.search,l}function wo(e,t){try{return new URL(e,t)}catch(r){return}}function nc(e,t){if(e.startsWith(t))return e.slice(t.length)}function ic(e,t){let r=Math.min(e.length,t.length),o;for(o=0;o<r&&e[o]===t[o];++o);return o}function ac(e){let t;for(let r of e)t===void 0?t=r:t=t.slice(0,ic(t,r));return t!=null?t:""}function Gi({document$:e}){let t=Me(),r=Ke(new URL("../versions.json",t.base)).pipe(ve(()=>x)),o=r.pipe(m(n=>{let[,i]=t.base.match(/([^/]+)\/?$/);return n.find(({version:a,aliases:s})=>a===i||s.includes(i))||n[0]}));r.pipe(m(n=>new Map(n.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),g(n=>h(document.body,"click").pipe(y(i=>!i.metaKey&&!i.ctrlKey),te(o),g(([i,a])=>{if(i.target instanceof Element){let s=i.target.closest("a");if(s&&!s.target&&n.has(s.href)){let c=s.href;return!i.target.closest(".md-version")&&n.get(c)===a?x:(i.preventDefault(),$(new URL(c)))}}return x}),g(i=>jt(i).pipe(m(a=>{var s;return(s=Qi({selectedVersionSitemap:a,selectedVersionBaseURL:i,currentLocation:Oe(),currentBaseURL:t.base}))!=null?s:i})))))).subscribe(n=>lt(n,!0)),G([r,o]).subscribe(([n,i])=>{I(".md-header__topic").appendChild(Yn(n,i))}),e.pipe(g(()=>o)).subscribe(n=>{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 n.aliases.concat(n.version))if(new RegExp(l,"i").test(p)){a=!1;break e}__md_set("__outdated",a,sessionStorage,i)}if(a)for(let c of fe("outdated"))c.hidden=!1})}function Ji({document$:e,viewport$:t}){e.pipe(g(()=>C(".md-ellipsis")),ee(r=>et(r).pipe(j(e.pipe(Ue(1))),y(o=>o),m(()=>r),ye(1))),y(r=>r.offsetWidth<r.scrollWidth),ee(r=>{let o=r.innerText,n=r.closest("a")||r;return n.title=o,N("content.tooltips")?Ye(n,{viewport$:t}).pipe(j(e.pipe(Ue(1))),H(()=>n.removeAttribute("title"))):x})).subscribe(),N("content.tooltips")&&e.pipe(g(()=>C(".md-status")),ee(r=>Ye(r,{viewport$:t}))).subscribe()}function Xi({document$:e,tablet$:t}){e.pipe(g(()=>C(".md-toggle--indeterminate")),S(r=>{r.indeterminate=!0,r.checked=!1}),ee(r=>h(r,"change").pipe(so(()=>r.classList.contains("md-toggle--indeterminate")),m(()=>r))),te(t)).subscribe(([r,o])=>{r.classList.remove("md-toggle--indeterminate"),o&&(r.checked=!1)})}function Zi({document$:e}){e.pipe(g(()=>E(C(".md-sidebar--primary"),C(".md-sidebar--secondary"),C(".md-search"),C(".md-overlay")))).subscribe(t=>{let r=0,o,n=!1;h(t,"touchstart",{passive:!0}).subscribe(i=>{var a;r=i.touches[0].pageY,n=t.classList.contains("md-overlay"),n||(o=(a=t.querySelector(".md-sidebar__scrollwrap, .md-search__scrollwrap"))!=null?a:void 0)}),h(t,"touchmove",{passive:!1}).subscribe(i=>{if(n){i.cancelable&&i.preventDefault();return}if(!o){i.cancelable&&i.preventDefault();return}let a=o.offsetHeight,s=o.scrollHeight;if(s<=a){i.cancelable&&i.preventDefault();return}let c=o.scrollTop,l=i.touches[0].pageY,p=r-l;c<=0&&p<0?i.cancelable&&i.preventDefault():c+a>=s&&p>0&&i.cancelable&&i.preventDefault()})})}function ea({viewport$:e,tablet$:t}){G([ht("search"),t]).pipe(m(([r,o])=>r&&!o),g(r=>$(r).pipe(st(r?400:100))),te(e)).subscribe(([r,{offset:{y:o}}])=>{if(r)document.body.setAttribute("data-md-scrolllock",""),document.body.style.top=`-${o}px`;else{let n=-1*parseInt(document.body.style.top,10);document.body.removeAttribute("data-md-scrolllock"),document.body.style.top="",n&&window.scrollTo(0,n)}})}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 o=e[r];typeof o=="string"?o=document.createTextNode(o):o.parentNode&&o.parentNode.removeChild(o),r?t.insertBefore(this.previousSibling,o):t.replaceChild(o,this)}}}));document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var pt=dn(),Zt=Sn(),Ut=Mn(Zt),Eo=Tn(),Re=$n(),Fr=qt("(min-width: 60em)"),ra=qt("(min-width: 76.25em)"),oa=_n(),Xt=Me(),Rr=Xt.search?Yi(Xt.search):void 0,Ir=new T;Fi({alert$:Ir});Ii({document$:pt});var To=new T,na=jt(Xt.base);N("navigation.instant")&&Wi({sitemap$:na,location$:Zt,viewport$:Re,progress$:To}).subscribe(pt);var ta;((ta=Xt.version)==null?void 0:ta.provider)==="mike"&&Gi({document$:pt});E(Zt,Ut).pipe(st(100)).subscribe(()=>{De("drawer",!1),De("search",!1),De("toc",!1)});Eo.pipe(y(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=be("link[rel=prev]");typeof t!="undefined"&&lt(t);break;case"n":case".":let r=be("link[rel=next]");typeof r!="undefined"&&lt(r);break;case"Enter":let o=qe();o instanceof HTMLLabelElement&&o.click()}});Ji({viewport$:Re,document$:pt});Xi({document$:pt,tablet$:Fr});Zi({document$:pt});ea({viewport$:Re,tablet$:Fr});var bt=bi($e("header"),{viewport$:Re}),Jt=pt.pipe(m(()=>$e("main")),g(e=>yi(e,{viewport$:Re,header$:bt})),re(1)),sc=E(...fe("consent").map(e=>Fn(e,{target$:Ut})),...fe("dialog").map(e=>di(e,{alert$:Ir})),...fe("palette").map(e=>xi(e)),...fe("progress").map(e=>wi(e,{progress$:To})),...fe("search").map(e=>{var t;return Rr?Li(e,{search:Rr,keyboard$:Eo,alert$:Ir,offline:location.protocol==="file:"&&((t=Xt.search)==null?void 0:t.provider)==="pagefind"}):x}),...fe("source").map(e=>Hi(e))),cc=P(()=>E(...fe("announce").map(e=>In(e)),...fe("content").map(e=>fi(e,{sitemap$:na,viewport$:Re,target$:Ut,print$:oa})),...fe("content").map(e=>N("search.highlight")&&Rr?Mi(e,{search:Rr,location$:Zt}):x),...fe("header").map(e=>gi(e,{viewport$:Re,header$:bt,main$:Jt})),...fe("header-title").map(e=>vi(e,{viewport$:Re,header$:bt})),...fe("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?po(ra,()=>yo(e,{viewport$:Re,header$:bt,main$:Jt})):po(Fr,()=>yo(e,{viewport$:Re,header$:bt,main$:Jt}))),...fe("tabs").map(e=>ki(e,{viewport$:Re,header$:bt})),...fe("toc").map(e=>Pi(e,{viewport$:Re,header$:bt,main$:Jt,target$:Ut})),...fe("top").map(e=>$i(e,{viewport$:Re,header$:bt,main$:Jt,target$:Ut})))),ia=pt.pipe(g(()=>cc),ze(sc),re(1));ia.subscribe();window.document$=pt;window.location$=Zt;window.target$=Ut;window.keyboard$=Eo;window.viewport$=Re;window.tablet$=Fr;window.screen$=ra;window.print$=oa;window.alert$=Ir;window.progress$=To;window.component$=ia;})();
//# sourceMappingURL=bundle.44453a05.min.js.map