You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
homepage/v0.8.12/assets/javascripts/bundle.8e8db93a.min.js

4 lines
105 KiB

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