Files
headscale/development/assets/javascripts/bundle.4e7371e1.min.js
T

17 lines
116 KiB
JavaScript

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