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