mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
30 lines
86 KiB
JavaScript
30 lines
86 KiB
JavaScript
(()=>{var pa=Object.create;var wt=Object.defineProperty;var fa=Object.getOwnPropertyDescriptor;var ma=Object.getOwnPropertyNames,Et=Object.getOwnPropertySymbols,da=Object.getPrototypeOf,mr=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable;var Jr=(e,t,r)=>t in e?wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t)=>{for(var r in t||(t={}))mr.call(t,r)&&Jr(e,r,t[r]);if(Et)for(var r of Et(t))Yr.call(t,r)&&Jr(e,r,t[r]);return e};var ha=e=>wt(e,"__esModule",{value:!0});var Tt=(e,t)=>{var r={};for(var n in e)mr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Et)for(var n of Et(e))t.indexOf(n)<0&&Yr.call(e,n)&&(r[n]=e[n]);return r};var Ot=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ba=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ma(t))!mr.call(e,n)&&n!=="default"&&wt(e,n,{get:()=>t[n],enumerable:!(r=fa(t,n))||r.enumerable});return e},Ke=e=>ba(ha(wt(e!=null?pa(da(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Xr=Ot((dr,Gr)=>{(function(e,t){typeof dr=="object"&&typeof Gr!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(dr,function(){"use strict";function e(r){var n=!0,o=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(_){return!!(_&&_!==document&&_.nodeName!=="HTML"&&_.nodeName!=="BODY"&&"classList"in _&&"contains"in _.classList)}function l(_){var Pe=_.type,Le=_.tagName;return!!(Le==="INPUT"&&a[Pe]&&!_.readOnly||Le==="TEXTAREA"&&!_.readOnly||_.isContentEditable)}function c(_){_.classList.contains("focus-visible")||(_.classList.add("focus-visible"),_.setAttribute("data-focus-visible-added",""))}function u(_){!_.hasAttribute("data-focus-visible-added")||(_.classList.remove("focus-visible"),_.removeAttribute("data-focus-visible-added"))}function m(_){_.metaKey||_.altKey||_.ctrlKey||(s(r.activeElement)&&c(r.activeElement),n=!0)}function f(_){n=!1}function h(_){!s(_.target)||(n||l(_.target))&&c(_.target)}function v(_){!s(_.target)||(_.target.classList.contains("focus-visible")||_.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(_.target))}function d(_){document.visibilityState==="hidden"&&(o&&(n=!0),D())}function D(){document.addEventListener("mousemove",P),document.addEventListener("mousedown",P),document.addEventListener("mouseup",P),document.addEventListener("pointermove",P),document.addEventListener("pointerdown",P),document.addEventListener("pointerup",P),document.addEventListener("touchmove",P),document.addEventListener("touchstart",P),document.addEventListener("touchend",P)}function Y(){document.removeEventListener("mousemove",P),document.removeEventListener("mousedown",P),document.removeEventListener("mouseup",P),document.removeEventListener("pointermove",P),document.removeEventListener("pointerdown",P),document.removeEventListener("pointerup",P),document.removeEventListener("touchmove",P),document.removeEventListener("touchstart",P),document.removeEventListener("touchend",P)}function P(_){_.target.nodeName&&_.target.nodeName.toLowerCase()==="html"||(n=!1,Y())}document.addEventListener("keydown",m,!0),document.addEventListener("mousedown",f,!0),document.addEventListener("pointerdown",f,!0),document.addEventListener("touchstart",f,!0),document.addEventListener("visibilitychange",d,!0),D(),r.addEventListener("focus",h,!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 yn=Ot((Es,Lt)=>{/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */var Zr,en,tn,rn,nn,on,an,sn,cn,_t,hr,ln,un,pn,Be,fn,mn,dn,hn,bn,vn,gn,xn,Mt;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Lt=="object"&&typeof Lt.exports=="object"?e(r(t,r(Lt.exports))):e(r(t));function r(n,o){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,a){return n[i]=o?o(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])};Zr=function(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(n,o);function i(){this.constructor=n}n.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)},en=Object.assign||function(n){for(var o,i=1,a=arguments.length;i<a;i++){o=arguments[i];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])}return n},tn=function(n,o){var i={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&o.indexOf(a)<0&&(i[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(n);s<a.length;s++)o.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(n,a[s])&&(i[a[s]]=n[a[s]]);return i},rn=function(n,o,i,a){var s=arguments.length,l=s<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,i):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(n,o,i,a);else for(var u=n.length-1;u>=0;u--)(c=n[u])&&(l=(s<3?c(l):s>3?c(o,i,l):c(o,i))||l);return s>3&&l&&Object.defineProperty(o,i,l),l},nn=function(n,o){return function(i,a){o(i,a,n)}},on=function(n,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,o)},an=function(n,o,i,a){function s(l){return l instanceof i?l:new i(function(c){c(l)})}return new(i||(i=Promise))(function(l,c){function u(h){try{f(a.next(h))}catch(v){c(v)}}function m(h){try{f(a.throw(h))}catch(v){c(v)}}function f(h){h.done?l(h.value):s(h.value).then(u,m)}f((a=a.apply(n,o||[])).next())})},sn=function(n,o){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,s,l,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(f){return function(h){return m([f,h])}}function m(f){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,s&&(l=f[0]&2?s.return:f[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,f[1])).done)return l;switch(s=0,l&&(f=[f[0]&2,l.value]),f[0]){case 0:case 1:l=f;break;case 4:return i.label++,{value:f[1],done:!1};case 5:i.label++,s=f[1],f=[0];continue;case 7:f=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(f[0]===6||f[0]===2)){i=0;continue}if(f[0]===3&&(!l||f[1]>l[0]&&f[1]<l[3])){i.label=f[1];break}if(f[0]===6&&i.label<l[1]){i.label=l[1],l=f;break}if(l&&i.label<l[2]){i.label=l[2],i.ops.push(f);break}l[2]&&i.ops.pop(),i.trys.pop();continue}f=o.call(n,i)}catch(h){f=[6,h],s=0}finally{a=l=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},cn=function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&Mt(o,n,i)},Mt=Object.create?function(n,o,i,a){a===void 0&&(a=i),Object.defineProperty(n,a,{enumerable:!0,get:function(){return o[i]}})}:function(n,o,i,a){a===void 0&&(a=i),n[a]=o[i]},_t=function(n){var o=typeof Symbol=="function"&&Symbol.iterator,i=o&&n[o],a=0;if(i)return i.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&a>=n.length&&(n=void 0),{value:n&&n[a++],done:!n}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},hr=function(n,o){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var a=i.call(n),s,l=[],c;try{for(;(o===void 0||o-- >0)&&!(s=a.next()).done;)l.push(s.value)}catch(u){c={error:u}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(c)throw c.error}}return l},ln=function(){for(var n=[],o=0;o<arguments.length;o++)n=n.concat(hr(arguments[o]));return n},un=function(){for(var n=0,o=0,i=arguments.length;o<i;o++)n+=arguments[o].length;for(var a=Array(n),s=0,o=0;o<i;o++)for(var l=arguments[o],c=0,u=l.length;c<u;c++,s++)a[s]=l[c];return a},pn=function(n,o){for(var i=0,a=o.length,s=n.length;i<a;i++,s++)n[s]=o[i];return n},Be=function(n){return this instanceof Be?(this.v=n,this):new Be(n)},fn=function(n,o,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(n,o||[]),s,l=[];return s={},c("next"),c("throw"),c("return"),s[Symbol.asyncIterator]=function(){return this},s;function c(d){a[d]&&(s[d]=function(D){return new Promise(function(Y,P){l.push([d,D,Y,P])>1||u(d,D)})})}function u(d,D){try{m(a[d](D))}catch(Y){v(l[0][3],Y)}}function m(d){d.value instanceof Be?Promise.resolve(d.value.v).then(f,h):v(l[0][2],d)}function f(d){u("next",d)}function h(d){u("throw",d)}function v(d,D){d(D),l.shift(),l.length&&u(l[0][0],l[0][1])}},mn=function(n){var o,i;return o={},a("next"),a("throw",function(s){throw s}),a("return"),o[Symbol.iterator]=function(){return this},o;function a(s,l){o[s]=n[s]?function(c){return(i=!i)?{value:Be(n[s](c)),done:s==="return"}:l?l(c):c}:l}},dn=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n[Symbol.asyncIterator],i;return o?o.call(n):(n=typeof _t=="function"?_t(n):n[Symbol.iterator](),i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i);function a(l){i[l]=n[l]&&function(c){return new Promise(function(u,m){c=n[l](c),s(u,m,c.done,c.value)})}}function s(l,c,u,m){Promise.resolve(m).then(function(f){l({value:f,done:u})},c)}},hn=function(n,o){return Object.defineProperty?Object.defineProperty(n,"raw",{value:o}):n.raw=o,n};var r=Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o};bn=function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&Mt(o,n,i);return r(o,n),o},vn=function(n){return n&&n.__esModule?n:{default:n}},gn=function(n,o){if(!o.has(n))throw new TypeError("attempted to get private field on non-instance");return o.get(n)},xn=function(n,o,i){if(!o.has(n))throw new TypeError("attempted to set private field on non-instance");return o.set(n,i),i},e("__extends",Zr),e("__assign",en),e("__rest",tn),e("__decorate",rn),e("__param",nn),e("__metadata",on),e("__awaiter",an),e("__generator",sn),e("__exportStar",cn),e("__createBinding",Mt),e("__values",_t),e("__read",hr),e("__spread",ln),e("__spreadArrays",un),e("__spreadArray",pn),e("__await",Be),e("__asyncGenerator",fn),e("__asyncDelegator",mn),e("__asyncValues",dn),e("__makeTemplateObject",hn),e("__importStar",bn),e("__importDefault",vn),e("__classPrivateFieldGet",gn),e("__classPrivateFieldSet",xn)})});var $r=Ot((yt,jr)=>{/*!
|
|
* clipboard.js v2.0.8
|
|
* https://clipboardjs.com/
|
|
*
|
|
* Licensed MIT © Zeno Rocha
|
|
*/(function(t,r){typeof yt=="object"&&typeof jr=="object"?jr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof yt=="object"?yt.ClipboardJS=r():t.ClipboardJS=r()})(yt,function(){return function(){var e={134:function(n,o,i){"use strict";i.d(o,{default:function(){return la}});var a=i(279),s=i.n(a),l=i(370),c=i.n(l),u=i(817),m=i.n(u);function f(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(b){return typeof b}:f=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},f(L)}function h(L,x){if(!(L instanceof x))throw new TypeError("Cannot call a class as a function")}function v(L,x){for(var b=0;b<x.length;b++){var H=x[b];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(L,H.key,H)}}function d(L,x,b){return x&&v(L.prototype,x),b&&v(L,b),L}var D=function(){function L(x){h(this,L),this.resolveOptions(x),this.initSelection()}return d(L,[{key:"resolveOptions",value:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=b.action,this.container=b.container,this.emitter=b.emitter,this.target=b.target,this.text=b.text,this.trigger=b.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var b=document.documentElement.getAttribute("dir")==="rtl";this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[b?"right":"left"]="-9999px";var H=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(H,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var b=this,H=this.createFakeElement();this.fakeHandlerCallback=function(){return b.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(H),this.selectedText=m()(H),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=m()(this.target),this.copyText()}},{key:"copyText",value:function(){var b;try{b=document.execCommand(this.action)}catch(H){b=!1}this.handleResult(b)}},{key:"handleResult",value:function(b){this.emitter.emit(b?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=b,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(b){if(b!==void 0)if(b&&f(b)==="object"&&b.nodeType===1){if(this.action==="copy"&&b.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="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`);this._target=b}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),L}(),Y=D;function P(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(b){return typeof b}:P=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},P(L)}function _(L,x){if(!(L instanceof x))throw new TypeError("Cannot call a class as a function")}function Pe(L,x){for(var b=0;b<x.length;b++){var H=x[b];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(L,H.key,H)}}function Le(L,x,b){return x&&Pe(L.prototype,x),b&&Pe(L,b),L}function Qe(L,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(x&&x.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),x&&pr(L,x)}function pr(L,x){return pr=Object.setPrototypeOf||function(H,U){return H.__proto__=U,H},pr(L,x)}function oa(L){var x=sa();return function(){var H=St(L),U;if(x){var re=St(this).constructor;U=Reflect.construct(H,arguments,re)}else U=H.apply(this,arguments);return ia(this,U)}}function ia(L,x){return x&&(P(x)==="object"||typeof x=="function")?x:aa(L)}function aa(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function sa(){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(L){return!1}}function St(L){return St=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},St(L)}function fr(L,x){var b="data-clipboard-".concat(L);if(!!x.hasAttribute(b))return x.getAttribute(b)}var ca=function(L){Qe(b,L);var x=oa(b);function b(H,U){var re;return _(this,b),re=x.call(this),re.resolveOptions(U),re.listenClick(H),re}return Le(b,[{key:"resolveOptions",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof U.action=="function"?U.action:this.defaultAction,this.target=typeof U.target=="function"?U.target:this.defaultTarget,this.text=typeof U.text=="function"?U.text:this.defaultText,this.container=P(U.container)==="object"?U.container:document.body}},{key:"listenClick",value:function(U){var re=this;this.listener=c()(U,"click",function(lt){return re.onClick(lt)})}},{key:"onClick",value:function(U){var re=U.delegateTarget||U.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new Y({action:this.action(re),target:this.target(re),text:this.text(re),container:this.container,trigger:re,emitter:this})}},{key:"defaultAction",value:function(U){return fr("action",U)}},{key:"defaultTarget",value:function(U){var re=fr("target",U);if(re)return document.querySelector(re)}},{key:"defaultText",value:function(U){return fr("text",U)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],re=typeof U=="string"?[U]:U,lt=!!document.queryCommandSupported;return re.forEach(function(ua){lt=lt&&!!document.queryCommandSupported(ua)}),lt}}]),b}(s()),la=ca},828:function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,l){for(;s&&s.nodeType!==o;){if(typeof s.matches=="function"&&s.matches(l))return s;s=s.parentNode}}n.exports=a},438:function(n,o,i){var a=i(828);function s(u,m,f,h,v){var d=c.apply(this,arguments);return u.addEventListener(f,d,v),{destroy:function(){u.removeEventListener(f,d,v)}}}function l(u,m,f,h,v){return typeof u.addEventListener=="function"?s.apply(null,arguments):typeof f=="function"?s.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(d){return s(d,m,f,h,v)}))}function c(u,m,f,h){return function(v){v.delegateTarget=a(v.target,m),v.delegateTarget&&h.call(u,v)}}n.exports=l},879:function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}},370:function(n,o,i){var a=i(879),s=i(438);function l(f,h,v){if(!f&&!h&&!v)throw new Error("Missing required arguments");if(!a.string(h))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(f))return c(f,h,v);if(a.nodeList(f))return u(f,h,v);if(a.string(f))return m(f,h,v);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(f,h,v){return f.addEventListener(h,v),{destroy:function(){f.removeEventListener(h,v)}}}function u(f,h,v){return Array.prototype.forEach.call(f,function(d){d.addEventListener(h,v)}),{destroy:function(){Array.prototype.forEach.call(f,function(d){d.removeEventListener(h,v)})}}}function m(f,h,v){return s(document.body,f,h,v)}n.exports=l},817:function(n){function o(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var l=window.getSelection(),c=document.createRange();c.selectNodeContents(i),l.removeAllRanges(),l.addRange(c),a=l.toString()}return a}n.exports=o},279:function(n){function o(){}o.prototype={on:function(i,a,s){var l=this.e||(this.e={});return(l[i]||(l[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var l=this;function c(){l.off(i,c),a.apply(s,arguments)}return c._=a,this.on(i,c,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),l=0,c=s.length;for(l;l<c;l++)s[l].fn.apply(s[l].ctx,a);return this},off:function(i,a){var s=this.e||(this.e={}),l=s[i],c=[];if(l&&a)for(var u=0,m=l.length;u<m;u++)l[u].fn!==a&&l[u].fn._!==a&&c.push(l[u]);return c.length?s[i]=c:delete s[i],this}},n.exports=o,n.exports.TinyEmitter=o}},t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}return function(){r.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(o,{a:o}),o}}(),function(){r.d=function(n,o){for(var i in o)r.o(o,i)&&!r.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:o[i]})}}(),function(){r.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}}(),r(134)}().default})});var Nr=Ot((Xy,Ai)=>{/*!
|
|
* escape-html
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
* MIT Licensed
|
|
*/"use strict";var ss=/["'&<>]/;Ai.exports=cs;function cs(e){var t=""+e,r=ss.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}a!==i&&(o+=t.substring(a,i)),a=i+1,o+=n}return a!==i?o+t.substring(a,i):o}});var HT=Ke(Xr());var Sn=Ke(yn()),{__extends:Z,__assign:Ts,__rest:Os,__decorate:_s,__param:Ms,__metadata:Ls,__awaiter:wn,__generator:At,__exportStar:As,__createBinding:ks,__values:de,__read:j,__spread:Cs,__spreadArrays:Hs,__spreadArray:$,__await:kt,__asyncGenerator:En,__asyncDelegator:Fs,__asyncValues:Tn,__makeTemplateObject:Rs,__importStar:Is,__importDefault:js,__classPrivateFieldGet:$s,__classPrivateFieldSet:Ps}=Sn.default;function E(e){return typeof e=="function"}function Ct(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Ht=Ct(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
|
`):"",this.name="UnsubscriptionError",this.errors=r}});function Ae(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ee=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=de(a),l=s.next();!l.done;l=s.next()){var c=l.value;c.remove(this)}}catch(d){t={error:d}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(E(u))try{u()}catch(d){i=d instanceof Ht?d.errors:[d]}var m=this._teardowns;if(m){this._teardowns=null;try{for(var f=de(m),h=f.next();!h.done;h=f.next()){var v=h.value;try{On(v)}catch(d){i=i!=null?i:[],d instanceof Ht?i=$($([],j(i)),j(d.errors)):i.push(d)}}}catch(d){n={error:d}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}}if(i)throw new Ht(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)On(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=(r=this._teardowns)!==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)&&Ae(r,t)},e.prototype.remove=function(t){var r=this._teardowns;r&&Ae(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var br=Ee.EMPTY;function Ft(e){return e instanceof Ee||e&&"closed"in e&&E(e.remove)&&E(e.add)&&E(e.unsubscribe)}function On(e){E(e)?e():e.unsubscribe()}var ye={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ye={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ye.delegate;return((r==null?void 0:r.setTimeout)||setTimeout).apply(void 0,$([],j(e)))},clearTimeout:function(e){var t=Ye.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Rt(e){Ye.setTimeout(function(){var t=ye.onUnhandledError;if(t)t(e);else throw e})}function ie(){}var _n=function(){return vr("C",void 0,void 0)}();function Mn(e){return vr("E",void 0,e)}function Ln(e){return vr("N",e,void 0)}function vr(e,t,r){return{kind:e,value:t,error:r}}var We=null;function Je(e){if(ye.useDeprecatedSynchronousErrorHandling){var t=!We;if(t&&(We={errorThrown:!1,error:null}),e(),t){var r=We,n=r.errorThrown,o=r.error;if(We=null,n)throw o}}else e()}function An(e){ye.useDeprecatedSynchronousErrorHandling&&We&&(We.errorThrown=!0,We.error=e)}var ut=function(e){Z(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Ft(r)&&r.add(n)):n.destination=va,n}return t.create=function(r,n,o){return new pt(r,n,o)},t.prototype.next=function(r){this.isStopped?xr(Ln(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?xr(Mn(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?xr(_n,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}(Ee);var pt=function(e){Z(t,e);function t(r,n,o){var i=e.call(this)||this,a;if(E(r))a=r;else if(r){a=r.next,n=r.error,o=r.complete;var s;i&&ye.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()}):s=r,a=a==null?void 0:a.bind(s),n=n==null?void 0:n.bind(s),o=o==null?void 0:o.bind(s)}return i.destination={next:a?gr(a,i):ie,error:gr(n!=null?n:kn,i),complete:o?gr(o,i):ie},i}return t}(ut);function gr(e,t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{e.apply(void 0,$([],j(r)))}catch(o){ye.useDeprecatedSynchronousErrorHandling?An(o):Rt(o)}}}function kn(e){throw e}function xr(e,t){var r=ye.onStoppedNotification;r&&Ye.setTimeout(function(){return r(e,t)})}var va={closed:!0,next:ie,error:kn,complete:ie};var Ge=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function he(e){return e}function Cn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return yr(e)}function yr(e){return e.length===0?he:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var R=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,n){var o=this,i=xa(t)?t:new pt(t,r,n);return Je(function(){var a=o,s=a.operator,l=a.source;i.add(s?s.call(i,l):l?o._subscribe(i):o._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 n=this;return r=Hn(r),new r(function(o,i){var a;a=n.subscribe(function(s){try{t(s)}catch(l){i(l),a==null||a.unsubscribe()}},i,o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Ge]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return yr(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Hn(t),new t(function(n,o){var i;r.subscribe(function(a){return i=a},function(a){return o(a)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function Hn(e){var t;return(t=e!=null?e:ye.Promise)!==null&&t!==void 0?t:Promise}function ga(e){return e&&E(e.next)&&E(e.error)&&E(e.complete)}function xa(e){return e&&e instanceof ut||ga(e)&&Ft(e)}function ya(e){return E(e==null?void 0:e.lift)}function g(e){return function(t){if(ya(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}var y=function(e){Z(t,e);function t(r,n,o,i,a){var s=e.call(this,r)||this;return s.onFinalize=a,s._next=n?function(l){try{n(l)}catch(c){r.error(c)}}:e.prototype._next,s._error=i?function(l){try{i(l)}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=o?function(){try{o()}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,s}return t.prototype.unsubscribe=function(){var r,n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))},t}(ut);var Xe={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,n=Xe.delegate;n&&(t=n.requestAnimationFrame,r=n.cancelAnimationFrame);var o=t(function(i){r=void 0,e(i)});return new Ee(function(){return r==null?void 0:r(o)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xe.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,$([],j(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xe.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,$([],j(e)))},delegate:void 0};var Fn=Ct(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var w=function(e){Z(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Rn(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Fn},t.prototype.next=function(r){var n=this;Je(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){var a=n.observers.slice();try{for(var s=de(a),l=s.next();!l.done;l=s.next()){var c=l.value;c.next(r)}}catch(u){o={error:u}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;Je(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;Je(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=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 n=this,o=n.hasError,i=n.isStopped,a=n.observers;return o||i?br:(a.push(r),new Ee(function(){return Ae(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new R;return r.source=this,r},t.create=function(r,n){return new Rn(r,n)},t}(R);var Rn=function(e){Z(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:br},t}(w);var ft={now:function(){return(ft.delegate||Date).now()},delegate:void 0};var mt=function(e){Z(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=ft);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,l=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),l=0;l<s.length&&!r.closed;l+=i?1:2)r.next(s[l]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,i=r._buffer,a=r._infiniteTimeWindow,s=(a?1:2)*n;if(n<1/0&&s<i.length&&i.splice(0,i.length-s),!a){for(var l=o.now(),c=0,u=1;u<i.length&&i[u]<=l;u+=2)c=u;c&&i.splice(0,c+1)}},t}(w);var In=function(e){Z(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},t}(Ee);var dt={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=dt.delegate;return((r==null?void 0:r.setInterval)||setInterval).apply(void 0,$([],j(e)))},clearInterval:function(e){var t=dt.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var It=function(e){Z(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return t.prototype.schedule=function(r,n){if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),dt.setInterval(r.flush.bind(r,this),o)},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;dt.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(a){o=!0,i=a||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ae(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(In);var Sr=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=ft.now,e}();var jt=function(e){Z(t,e);function t(r,n){n===void 0&&(n=Sr.now);var o=e.call(this,r,n)||this;return o.actions=[],o._active=!1,o._scheduled=void 0,o}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},t}(Sr);var He=new jt(It),ht=He;var jn=function(e){Z(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=Xe.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);r.actions.length===0&&(Xe.cancelAnimationFrame(n),r._scheduled=void 0)},t}(It);var $n=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0,this._scheduled=void 0;var n=this.actions,o,i=-1;r=r||n.shift();var a=n.length;do if(o=r.execute(r.state,r.delay))break;while(++i<a&&(r=n.shift()));if(this._active=!1,o){for(;++i<a&&(r=n.shift());)r.unsubscribe();throw o}},t}(jt);var B=new $n(jn);var ae=new R(function(e){return e.complete()});function $t(e){return e&&E(e.schedule)}function wr(e){return e[e.length-1]}function Fe(e){return E(wr(e))?e.pop():void 0}function xe(e){return $t(wr(e))?e.pop():void 0}function Pt(e,t){return typeof wr(e)=="number"?e.pop():t}var Ze=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Wt(e){return E(e==null?void 0:e.then)}function Ut(e){return E(e[Ge])}function Vt(e){return Symbol.asyncIterator&&E(e==null?void 0:e[Symbol.asyncIterator])}function Dt(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 Sa(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Nt=Sa();function zt(e){return E(e==null?void 0:e[Nt])}function qt(e){return En(this,arguments,function(){var r,n,o,i;return At(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,kt(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,kt(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,kt(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Qt(e){return E(e==null?void 0:e.getReader)}function W(e){if(e instanceof R)return e;if(e!=null){if(Ut(e))return wa(e);if(Ze(e))return Ea(e);if(Wt(e))return Ta(e);if(Vt(e))return Pn(e);if(zt(e))return Oa(e);if(Qt(e))return _a(e)}throw Dt(e)}function wa(e){return new R(function(t){var r=e[Ge]();if(E(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ea(e){return new R(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function Ta(e){return new R(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Rt)})}function Oa(e){return new R(function(t){var r,n;try{for(var o=de(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()})}function Pn(e){return new R(function(t){Ma(e,t).catch(function(r){return t.error(r)})})}function _a(e){return Pn(qt(e))}function Ma(e,t){var r,n,o,i;return wn(this,void 0,void 0,function(){var a,s;return At(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=Tn(e),l.label=1;case 1:return[4,r.next()];case 2:if(n=l.sent(),!!n.done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=l.sent(),o={error:s},[3,11];case 6:return l.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function pe(e,t,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(i),!o)return i}function z(e,t){return t===void 0&&(t=0),g(function(r,n){r.subscribe(new y(n,function(o){return pe(n,e,function(){return n.next(o)},t)},function(){return pe(n,e,function(){return n.complete()},t)},function(o){return pe(n,e,function(){return n.error(o)},t)}))})}function Kt(e,t){return t===void 0&&(t=0),g(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function Wn(e,t){return W(e).pipe(Kt(t),z(t))}function Un(e,t){return W(e).pipe(Kt(t),z(t))}function Vn(e,t){return new R(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function Dn(e,t){return new R(function(r){var n;return pe(r,t,function(){n=e[Nt](),pe(r,t,function(){var o,i,a;try{o=n.next(),i=o.value,a=o.done}catch(s){r.error(s);return}a?r.complete():r.next(i)},0,!0)}),function(){return E(n==null?void 0:n.return)&&n.return()}})}function Bt(e,t){if(!e)throw new Error("Iterable cannot be null");return new R(function(r){pe(r,t,function(){var n=e[Symbol.asyncIterator]();pe(r,t,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function Nn(e,t){return Bt(qt(e),t)}function zn(e,t){if(e!=null){if(Ut(e))return Wn(e,t);if(Ze(e))return Vn(e,t);if(Wt(e))return Un(e,t);if(Vt(e))return Bt(e,t);if(zt(e))return Dn(e,t);if(Qt(e))return Nn(e,t)}throw Dt(e)}function ne(e,t){return t?zn(e,t):W(e)}function I(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=xe(e);return ne(e,r)}function qn(e){return e instanceof Date&&!isNaN(e)}function p(e,t){return g(function(r,n){var o=0;r.subscribe(new y(n,function(i){n.next(e.call(t,i,o++))}))})}var La=Array.isArray;function Aa(e,t){return La(t)?e.apply(void 0,$([],j(t))):e(t)}function Re(e){return p(function(t){return Aa(e,t)})}var ka=Array.isArray,Ca=Object.getPrototypeOf,Ha=Object.prototype,Fa=Object.keys;function Qn(e){if(e.length===1){var t=e[0];if(ka(t))return{args:t,keys:null};if(Ra(t)){var r=Fa(t);return{args:r.map(function(n){return t[n]}),keys:r}}}return{args:e,keys:null}}function Ra(e){return e&&typeof e=="object"&&Ca(e)===Ha}function Kn(e,t){return e.reduce(function(r,n,o){return r[n]=t[o],r},{})}function q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=xe(e),n=Fe(e),o=Qn(e),i=o.args,a=o.keys;if(i.length===0)return ne([],r);var s=new R(Er(i,r,a?function(l){return Kn(a,l)}:he));return n?s.pipe(Re(n)):s}function Er(e,t,r){return r===void 0&&(r=he),function(n){Bn(t,function(){for(var o=e.length,i=new Array(o),a=o,s=o,l=function(u){Bn(t,function(){var m=ne(e[u],t),f=!1;m.subscribe(new y(n,function(h){i[u]=h,f||(f=!0,s--),s||n.next(r(i.slice()))},function(){--a||n.complete()}))},n)},c=0;c<o;c++)l(c)},n)}}function Bn(e,t,r){e?pe(r,e,t):t()}function Yn(e,t,r,n,o,i,a,s){var l=[],c=0,u=0,m=!1,f=function(){m&&!l.length&&!c&&t.complete()},h=function(d){return c<n?v(d):l.push(d)},v=function(d){i&&t.next(d),c++;var D=!1;W(r(d,u++)).subscribe(new y(t,function(Y){o==null||o(Y),i?h(Y):t.next(Y)},function(){D=!0},void 0,function(){if(D)try{c--;for(var Y=function(){var P=l.shift();a?pe(t,a,function(){return v(P)}):v(P)};l.length&&c<n;)Y();f()}catch(P){t.error(P)}}))};return e.subscribe(new y(t,h,function(){m=!0,f()})),function(){s==null||s()}}function se(e,t,r){return r===void 0&&(r=1/0),E(t)?se(function(n,o){return p(function(i,a){return t(n,i,o,a)})(W(e(n,o)))},r):(typeof t=="number"&&(r=t),g(function(n,o){return Yn(n,o,e,r)}))}function et(e){return e===void 0&&(e=1/0),se(he,e)}function Jn(){return et(1)}function bt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Jn()(ne(e,xe(e)))}function ee(e){return new R(function(t){W(e()).subscribe(t)})}var Ia=["addListener","removeListener"],ja=["addEventListener","removeEventListener"],$a=["on","off"];function S(e,t,r,n){if(E(r)&&(n=r,r=void 0),n)return S(e,t,r).pipe(Re(n));var o=j(Ua(e)?ja.map(function(s){return function(l){return e[s](t,l,r)}}):Pa(e)?Ia.map(Gn(e,t)):Wa(e)?$a.map(Gn(e,t)):[],2),i=o[0],a=o[1];if(!i&&Ze(e))return se(function(s){return S(s,t,r)})(W(e));if(!i)throw new TypeError("Invalid event target");return new R(function(s){var l=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return s.next(1<c.length?c:c[0])};return i(l),function(){return a(l)}})}function Gn(e,t){return function(r){return function(n){return e[r](t,n)}}}function Pa(e){return E(e.addListener)&&E(e.removeListener)}function Wa(e){return E(e.on)&&E(e.off)}function Ua(e){return E(e.addEventListener)&&E(e.removeEventListener)}function Yt(e,t,r){return r?Yt(e,t).pipe(Re(r)):new R(function(n){var o=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return n.next(a.length===1?a[0]:a)},i=e(o);return E(t)?function(){return t(o,i)}:void 0})}function Jt(e,t,r){e===void 0&&(e=0),r===void 0&&(r=ht);var n=-1;return t!=null&&($t(t)?r=t:n=t),new R(function(o){var i=qn(e)?+e-r.now():e;i<0&&(i=0);var a=0;return r.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function A(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=xe(e),n=Pt(e,1/0),o=e;return o.length?o.length===1?W(o[0]):et(n)(ne(o,r)):ae}var G=new R(ie);var Va=Array.isArray;function tt(e){return e.length===1&&Va(e[0])?e[0]:e}function M(e,t){return g(function(r,n){var o=0;r.subscribe(new y(n,function(i){return e.call(t,i,o++)&&n.next(i)}))})}function vt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Fe(e),n=tt(e);return n.length?new R(function(o){var i=n.map(function(){return[]}),a=n.map(function(){return!1});o.add(function(){i=a=null});for(var s=function(c){W(n[c]).subscribe(new y(o,function(u){if(i[c].push(u),i.every(function(f){return f.length})){var m=i.map(function(f){return f.shift()});o.next(r?r.apply(void 0,$([],j(m))):m),i.some(function(f,h){return!f.length&&a[h]})&&o.complete()}},function(){a[c]=!0,!i[c].length&&o.complete()}))},l=0;!o.closed&&l<n.length;l++)s(l);return function(){i=a=null}}):ae}function Xn(e){return g(function(t,r){var n=!1,o=null,i=null,a=!1,s=function(){if(i==null||i.unsubscribe(),i=null,n){n=!1;var c=o;o=null,r.next(c)}a&&r.complete()},l=function(){i=null,a&&r.complete()};t.subscribe(new y(r,function(c){n=!0,o=c,i||W(e(c)).subscribe(i=new y(r,s,l))},function(){a=!0,(!n||!i||i.closed)&&r.complete()}))})}function gt(e,t){return t===void 0&&(t=ht),Xn(function(){return Jt(e,t)})}function Se(e,t){return t===void 0&&(t=null),t=t!=null?t:e,g(function(r,n){var o=[],i=0;r.subscribe(new y(n,function(a){var s,l,c,u,m=null;i++%t==0&&o.push([]);try{for(var f=de(o),h=f.next();!h.done;h=f.next()){var v=h.value;v.push(a),e<=v.length&&(m=m!=null?m:[],m.push(v))}}catch(Y){s={error:Y}}finally{try{h&&!h.done&&(l=f.return)&&l.call(f)}finally{if(s)throw s.error}}if(m)try{for(var d=de(m),D=d.next();!D.done;D=d.next()){var v=D.value;Ae(o,v),n.next(v)}}catch(Y){c={error:Y}}finally{try{D&&!D.done&&(u=d.return)&&u.call(d)}finally{if(c)throw c.error}}},function(){var a,s;try{for(var l=de(o),c=l.next();!c.done;c=l.next()){var u=c.value;n.next(u)}}catch(m){a={error:m}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}n.complete()},void 0,function(){o=null}))})}function Ie(e){return g(function(t,r){var n=null,o=!1,i;n=t.subscribe(new y(r,void 0,void 0,function(a){i=W(e(a,Ie(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function Zn(e,t,r,n,o){return function(i,a){var s=r,l=t,c=0;i.subscribe(new y(a,function(u){var m=c++;l=s?e(l,u,m):(s=!0,u),n&&a.next(l)},o&&function(){s&&a.next(l),a.complete()}))}}function Tr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Fe(e);return r?Cn(Tr.apply(void 0,$([],j(e))),Re(r)):g(function(n,o){Er($([n],j(tt(e))))(o)})}function rt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Tr.apply(void 0,$([],j(e)))}function Or(e,t){return E(t)?se(e,t,1):se(e,1)}function _r(e,t){return t===void 0&&(t=He),g(function(r,n){var o=null,i=null,a=null,s=function(){if(o){o.unsubscribe(),o=null;var c=i;i=null,n.next(c)}};function l(){var c=a+e,u=t.now();if(u<c){o=this.schedule(void 0,c-u),n.add(o);return}s()}r.subscribe(new y(n,function(c){i=c,a=t.now(),o||(o=t.schedule(l,e),n.add(o))},function(){s(),n.complete()},void 0,function(){i=o=null}))})}function Ue(e){return g(function(t,r){var n=!1;t.subscribe(new y(r,function(o){n=!0,r.next(o)},function(){n||r.next(e),r.complete()}))})}function fe(e){return e<=0?function(){return ae}:g(function(t,r){var n=0;t.subscribe(new y(r,function(o){++n<=e&&(r.next(o),e<=n&&r.complete())}))})}function eo(){return g(function(e,t){e.subscribe(new y(t,ie))})}function le(e){return p(function(){return e})}function Mr(e,t){return t?function(r){return bt(t.pipe(fe(1),eo()),r.pipe(Mr(e)))}:se(function(r,n){return e(r,n).pipe(fe(1),le(r))})}function ke(e,t){t===void 0&&(t=He);var r=Jt(e,t);return Mr(function(){return r})}function Q(e,t){return t===void 0&&(t=he),e=e!=null?e:Da,g(function(r,n){var o,i=!0;r.subscribe(new y(n,function(a){var s=t(a);(i||!e(o,s))&&(i=!1,o=s,n.next(a))}))})}function Da(e,t){return e===t}function K(e,t){return Q(function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}function k(e){return g(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function Ve(e){return e<=0?function(){return ae}:g(function(t,r){var n=[];t.subscribe(new y(r,function(o){n.push(o),e<n.length&&n.shift()},function(){var o,i;try{for(var a=de(n),s=a.next();!s.done;s=a.next()){var l=s.value;r.next(l)}}catch(c){o={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}r.complete()},void 0,function(){n=null}))})}function to(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=xe(e),n=Pt(e,1/0);return e=tt(e),g(function(o,i){et(n)(ne($([o],j(e)),r)).subscribe(i)})}function De(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return to.apply(void 0,$([],j(e)))}function nt(e){return g(function(t,r){var n=!1,o=null;t.subscribe(new y(r,function(a){n=!0,o=a}));var i=function(){if(n){n=!1;var a=o;o=null,r.next(a)}};e.subscribe(new y(r,i,ie))})}function Lr(e,t){return g(Zn(e,t,arguments.length>=2,!0))}function ue(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new w}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,l=s===void 0?!0:s;return function(c){var u=null,m=null,f=null,h=0,v=!1,d=!1,D=function(){m==null||m.unsubscribe(),m=null},Y=function(){D(),u=f=null,v=d=!1},P=function(){var _=u;Y(),_==null||_.unsubscribe()};return g(function(_,Pe){h++,!d&&!v&&D();var Le=f=f!=null?f:r();Pe.add(function(){h--,h===0&&!d&&!v&&(m=Ar(P,l))}),Le.subscribe(Pe),u||(u=new pt({next:function(Qe){return Le.next(Qe)},error:function(Qe){d=!0,D(),m=Ar(Y,o,Qe),Le.error(Qe)},complete:function(){v=!0,D(),m=Ar(Y,a),Le.complete()}}),ne(_).subscribe(u))})(c)}}function Ar(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return t===!0?(e(),null):t===!1?null:t.apply(void 0,$([],j(r))).pipe(fe(1)).subscribe(function(){return e()})}function J(e,t,r){var n,o,i,a=!1;return e&&typeof e=="object"?(i=(n=e.bufferSize)!==null&&n!==void 0?n:1/0,t=(o=e.windowTime)!==null&&o!==void 0?o:1/0,a=!!e.refCount,r=e.scheduler):i=e!=null?e:1/0,ue({connector:function(){return new mt(i,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function Gt(e){return M(function(t,r){return e<=r})}function xt(e){return g(function(t,r){var n=!1,o=new y(r,function(){o==null||o.unsubscribe(),n=!0},ie);W(e).subscribe(o),t.subscribe(new y(r,function(i){return n&&r.next(i)}))})}function V(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=xe(e);return g(function(n,o){(r?bt(e,n,r):bt(e,n)).subscribe(o)})}function T(e,t){return g(function(r,n){var o=null,i=0,a=!1,s=function(){return a&&!o&&n.complete()};r.subscribe(new y(n,function(l){o==null||o.unsubscribe();var c=0,u=i++;W(e(l,u)).subscribe(o=new y(n,function(m){return n.next(t?t(l,m,u,c++):m)},function(){o=null,s()}))},function(){a=!0,s()}))})}function kr(e,t){return E(t)?T(function(){return e},t):T(function(){return e})}function Ne(e){return g(function(t,r){W(e).subscribe(new y(r,function(){return r.complete()},ie)),!r.closed&&t.subscribe(r)})}function Cr(e,t){return t===void 0&&(t=!1),g(function(r,n){var o=0;r.subscribe(new y(n,function(i){var a=e(i,o++);(a||t)&&n.next(i),!a&&n.complete()}))})}function O(e,t,r){var n=E(e)||t||r?{next:e,error:t,complete:r}:e;return n?g(function(o,i){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;o.subscribe(new y(i,function(l){var c;(c=n.next)===null||c===void 0||c.call(n,l),i.next(l)},function(){var l;s=!1,(l=n.complete)===null||l===void 0||l.call(n),i.complete()},function(l){var c;s=!1,(c=n.error)===null||c===void 0||c.call(n,l),i.error(l)},function(){var l,c;s&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):he}var Na={leading:!0,trailing:!1};function Hr(e,t){var r=t===void 0?Na:t,n=r.leading,o=r.trailing;return g(function(i,a){var s=!1,l=null,c=null,u=!1,m=function(){c==null||c.unsubscribe(),c=null,o&&(v(),u&&a.complete())},f=function(){c=null,u&&a.complete()},h=function(d){return c=W(e(d)).subscribe(new y(a,m,f))},v=function(){if(s){s=!1;var d=l;l=null,a.next(d),!u&&h(d)}};i.subscribe(new y(a,function(d){s=!0,l=d,!(c&&!c.closed)&&(n?v():h(d))},function(){u=!0,!(o&&s&&c&&!c.closed)&&a.complete()}))})}function be(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Fe(e);return g(function(n,o){for(var i=e.length,a=new Array(i),s=e.map(function(){return!1}),l=!1,c=function(m){W(e[m]).subscribe(new y(o,function(f){a[m]=f,!l&&!s[m]&&(s[m]=!0,(l=s.every(he))&&(s=null))},ie))},u=0;u<i;u++)c(u);n.subscribe(new y(o,function(m){if(l){var f=$([m],j(a));o.next(r?r.apply(void 0,$([],j(f))):f)}}))})}function ro(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g(function(r,n){vt.apply(void 0,$([r],j(e))).subscribe(n)})}function Fr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ro.apply(void 0,$([],j(e)))}function no(){let e=new mt(1);return S(document,"DOMContentLoaded",{once:!0}).subscribe(()=>e.next(document)),e}function N(e,t=document){return Array.from(t.querySelectorAll(e))}function te(e,t=document){let r=me(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function me(e,t=document){return t.querySelector(e)||void 0}function ze(){return document.activeElement instanceof HTMLElement&&document.activeElement||void 0}function Te(e,t=!0){t?e.focus():e.blur()}function Xt(e){return A(S(e,"focus"),S(e,"blur")).pipe(p(({type:t})=>t==="focus"),V(e===ze()))}function Zt(e){return{x:e.offsetLeft,y:e.offsetTop}}function oo(e){return A(S(window,"load"),S(window,"resize")).pipe(gt(0,B),p(()=>Zt(e)),V(Zt(e)))}function io(e){return{x:e.scrollLeft,y:e.scrollTop}}function er(e){return A(S(e,"scroll"),S(window,"resize")).pipe(gt(0,B),p(()=>io(e)),V(io(e)))}function ao(e){if(e instanceof HTMLInputElement)e.select();else throw new Error("Not implemented")}var so=new w,za=ee(()=>I(new ResizeObserver(e=>{for(let t of e)so.next(t)}))).pipe(T(e=>A(G,I(e)).pipe(k(()=>e.disconnect()))),J(1));function ot(e){return{width:e.offsetWidth,height:e.offsetHeight}}function we(e){return za.pipe(O(t=>t.observe(e)),T(t=>so.pipe(M(({target:r})=>r===e),k(()=>t.unobserve(e)),p(()=>ot(e)))),V(ot(e)))}function tr(e){return{width:e.scrollWidth,height:e.scrollHeight}}var qa=new w,Vb=ee(()=>I(new IntersectionObserver(e=>{for(let t of e)qa.next(t)},{threshold:1}))).pipe(T(e=>A(G,I(e)).pipe(k(()=>e.disconnect()))),J(1));function co(e,t=16){return er(e).pipe(p(({y:r})=>{let n=ot(e),o=tr(e);return r>=o.height-n.height-t}),Q())}var rr={drawer:te("[data-md-toggle=drawer]"),search:te("[data-md-toggle=search]")};function lo(e){return rr[e].checked}function je(e,t){rr[e].checked!==t&&rr[e].click()}function nr(e){let t=rr[e];return S(t,"change").pipe(p(()=>t.checked),V(t.checked))}function Qa(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 uo(){return S(window,"keydown").pipe(M(e=>!(e.metaKey||e.ctrlKey)),p(e=>({mode:lo("search")?"search":"global",type:e.key,claim(){e.preventDefault(),e.stopPropagation()}})),M(({mode:e,type:t})=>{if(e==="global"){let r=ze();if(typeof r!="undefined")return!Qa(r,t)}return!0}),ue())}function Oe(){return new URL(location.href)}function po(e){location.href=e.href}function fo(){return new w}function mo(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)mo(e,r)}function C(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="boolean"?n.setAttribute(o,t[o]):t[o]&&n.setAttribute(o,"");for(let o of r)mo(n,o);return n}function ho(e,t){let r=t;if(e.length>r){for(;e[r]!==" "&&--r>0;);return`${e.substring(0,r)}...`}return e}function or(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function bo(){return location.hash.substring(1)}function vo(e){let t=C("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Ka(){return S(window,"hashchange").pipe(p(bo),V(bo()),M(e=>e.length>0),J(1))}function go(){return Ka().pipe(p(e=>me(`[id="${e}"]`)),M(e=>typeof e!="undefined"))}function ir(e){let t=matchMedia(e);return Yt(r=>t.addListener(()=>r(t.matches))).pipe(V(t.matches))}function xo(){return A(S(window,"beforeprint").pipe(le(!0)),S(window,"afterprint").pipe(le(!1)))}function Rr(e,t){return e.pipe(T(r=>r?t():G))}function ar(e,t={credentials:"same-origin"}){return ne(fetch(`${e}`,t)).pipe(M(r=>r.status===200),Ie(()=>ae))}function _e(e,t){return ar(e,t).pipe(T(r=>r.json()),J(1))}function yo(e,t){let r=new DOMParser;return ar(e,t).pipe(T(n=>n.text()),p(n=>r.parseFromString(n,"text/xml")),J(1))}function So(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function Ir({x:e,y:t}){window.scrollTo(e||0,t||0)}function wo(){return A(S(window,"scroll",{passive:!0}),S(window,"resize",{passive:!0})).pipe(p(So),V(So()))}function Eo(){return{width:innerWidth,height:innerHeight}}function To(){return S(window,"resize",{passive:!0}).pipe(p(Eo),V(Eo()))}function Oo(){return q([wo(),To()]).pipe(p(([e,t])=>({offset:e,size:t})),J(1))}function sr(e,{viewport$:t,header$:r}){let n=t.pipe(K("size")),o=q([n,r]).pipe(p(()=>Zt(e)));return q([r,t,o]).pipe(p(([{height:i},{offset:a,size:s},{x:l,y:c}])=>({offset:{x:a.x-l,y:a.y-c+i},size:s})))}function _o(e,{tx$:t}){let r=S(e,"message").pipe(p(({data:n})=>n));return t.pipe(Hr(()=>r,{leading:!0,trailing:!0}),O(n=>e.postMessage(n)),kr(r),ue())}var Ba=te("#__config"),it=JSON.parse(Ba.textContent);it.base=`${new URL(it.base,Oe())}`;function ve(){return it}function ce(e){return it.features.includes(e)}function X(e,t){return typeof t!="undefined"?it.translations[e].replace("#",t.toString()):it.translations[e]}function Me(e,t=document){return te(`[data-md-component=${e}]`,t)}function oe(e,t=document){return N(`[data-md-component=${e}]`,t)}var jo=Ke($r());function Mo(e){return C("button",{class:"md-clipboard md-icon",title:X("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}function Lo(e){return C("aside",{class:"md-annotation",tabIndex:0},C("div",{class:"md-annotation__inner md-tooltip"},C("div",{class:"md-tooltip__inner md-typeset"})),C("span",{class:"md-annotation__index"},e))}var qe;(function(r){r[r.TEASER=1]="TEASER",r[r.PARENT=2]="PARENT"})(qe||(qe={}));function Pr(e,t){let r=t&2,n=t&1,o=Object.keys(e.terms).filter(a=>!e.terms[a]).map(a=>[C("del",null,a)," "]).flat().slice(0,-1),i=new URL(e.location);return ce("search.highlight")&&i.searchParams.set("h",Object.entries(e.terms).filter(([,a])=>a).reduce((a,[s])=>`${a} ${s}`.trim(),"")),C("a",{href:`${i}`,class:"md-search-result__link",tabIndex:-1},C("article",{class:["md-search-result__article",...r?["md-search-result__article--document"]:[]].join(" "),"data-md-score":e.score.toFixed(2)},r>0&&C("div",{class:"md-search-result__icon md-icon"}),C("h1",{class:"md-search-result__title"},e.title),n>0&&e.text.length>0&&C("p",{class:"md-search-result__teaser"},ho(e.text,320)),n>0&&o.length>0&&C("p",{class:"md-search-result__terms"},X("search.result.term.missing"),": ",o)))}function Ao(e){let t=e[0].score,r=[...e],n=r.findIndex(c=>!c.location.includes("#")),[o]=r.splice(n,1),i=r.findIndex(c=>c.score<t);i===-1&&(i=r.length);let a=r.slice(0,i),s=r.slice(i),l=[Pr(o,2|+(!n&&i===0)),...a.map(c=>Pr(c,1)),...s.length?[C("details",{class:"md-search-result__more"},C("summary",{tabIndex:-1},s.length>0&&s.length===1?X("search.result.more.one"):X("search.result.more.other",s.length)),s.map(c=>Pr(c,1)))]:[]];return C("li",{class:"md-search-result__item"},l)}function ko(e){return C("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>C("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?or(r):r)))}function Co(e){return C("div",{class:"md-typeset__scrollwrap"},C("div",{class:"md-typeset__table"},e))}function Ya(e){let t=ve(),r=new URL(`../${e.version}/`,t.base);return C("li",{class:"md-version__item"},C("a",{href:r.toString(),class:"md-version__link"},e.title))}function Ho(e,t){return C("div",{class:"md-version"},C("button",{class:"md-version__current","aria-label":X("select.version.title")},t.title),C("ul",{class:"md-version__list"},e.map(Ya)))}function Ja(e,t){let r=ee(()=>q([oo(e),er(t)])).pipe(p(([{x:n,y:o},i])=>({x:n-i.x,y:o-i.y})));return Xt(e).pipe(T(n=>r.pipe(p(o=>({active:n,offset:o})),fe(+!n||1/0))))}function Fo(e,t){return ee(()=>{let r=new w;r.subscribe({next({offset:i}){e.style.setProperty("--md-tooltip-x",`${i.x}px`),e.style.setProperty("--md-tooltip-y",`${i.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}});let n=e.lastElementChild,o=S(n,"mousedown",{once:!0});return r.pipe(T(({active:i})=>i?o:ae),O(i=>i.preventDefault())).subscribe(()=>e.blur()),Ja(e,t).pipe(O(i=>r.next(i)),k(()=>r.complete()),p(i=>F({ref:e},i)))})}function Ga(e){let t=[];for(let r of N(".c, .c1, .cm",e)){let n,o=r.firstChild;for(;n=/\((\d+)\)/.exec(o.textContent);){let i=o.splitText(n.index);o=i.splitText(n[0].length),t.push(i)}}return t}function Ro(e,t){t.append(...Array.from(e.childNodes))}function Io(e,t,r){let{print$:n}=r,o=new Map;for(let i of Ga(t)){let[,a]=i.textContent.match(/\((\d+)\)/);o.set(+a,Lo(+a)),i.replaceWith(o.get(+a))}return ee(()=>{let i=new w;return n.pipe(V(!1),Ne(i.pipe(Ve(1)))).subscribe(a=>{e.hidden=!a;for(let[s,l]of o){let c=te(".md-typeset",l),u=te(`li:nth-child(${s})`,e);a?Ro(c,u):Ro(u,c)}}),A(...[...o].map(([,a])=>Fo(a,t))).pipe(k(()=>i.complete()),ue())})}var Xa=0;function $o(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return $o(t)}}function Po(e){return we(e).pipe(p(({width:t})=>({scrollable:tr(e).width>t})),K("scrollable"))}function Wo(e,n){var o=n,{hover$:t}=o,r=Tt(o,["hover$"]);return ee(()=>{let i=new w;if(i.pipe(be(t)).subscribe(([{scrollable:s},l])=>{s&&l?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}),jo.default.isSupported()){let s=e.closest("pre");s.id=`__code_${++Xa}`,s.insertBefore(Mo(s.id),e)}let a=e.closest(".highlighttable")||e.closest(".highlight");if(a instanceof HTMLElement){let s=$o(a);if(typeof s!="undefined"&&(a.classList.contains("annotate")||ce("content.code.annotate"))){let l=Io(s,e,r);return Po(e).pipe(O(c=>i.next(c)),k(()=>i.complete()),p(c=>F({ref:e},c)),De(we(a).pipe(Ne(i.pipe(Ve(1))),T(({width:c,height:u})=>c&&u?l:ae))))}}return Po(e).pipe(O(s=>i.next(s)),k(()=>i.complete()),p(s=>F({ref:e},s)))})}function Za(e,{target$:t,print$:r}){let n=!1;return A(t.pipe(p(o=>o.closest("details:not([open])")),M(o=>e===o),le({action:"open",scroll:!0})),r.pipe(M(o=>o||!n),O(()=>n=e.open),p(o=>({action:o?"open":"close"}))))}function Uo(e,t){let r=new w;return r.subscribe(({action:n,scroll:o})=>{n==="open"?e.setAttribute("open",""):e.removeAttribute("open"),o&&e.scrollIntoView()}),Za(e,t).pipe(O(n=>r.next(n)),k(()=>r.complete()),p(n=>F({ref:e},n)))}var Vo=C("table");function Do(e){return e.replaceWith(Vo),Vo.replaceWith(Co(e)),I({ref:e})}function es(e){return A(...N(":scope > input",e).map(t=>S(t,"change").pipe(le(t.id)))).pipe(p(t=>({active:te(`label[for=${t}]`)})))}function No(e){let t=new w;return t.subscribe(({active:r})=>{let n=r.parentElement;(r.offsetLeft+r.offsetWidth>n.scrollLeft+n.offsetWidth||r.offsetLeft<n.scrollLeft)&&n.scrollTo({behavior:"smooth",left:r.offsetLeft})}),es(e).pipe(O(r=>t.next(r)),k(()=>t.complete()),p(r=>F({ref:e},r)))}function zo(e,{target$:t,hover$:r,print$:n}){return A(...N("pre > code",e).map(o=>Wo(o,{hover$:r,print$:n})),...N("table:not([class])",e).map(o=>Do(o)),...N("details",e).map(o=>Uo(o,{target$:t,print$:n})),...N("[data-tabs]",e).map(o=>No(o)))}function qo(e,t=0){e.setAttribute("tabindex",t.toString())}function Wr(e){e.removeAttribute("tabindex")}function Qo(e,t){e.setAttribute("data-md-state","lock"),e.style.top=`-${t}px`}function Ko(e){let t=-1*parseInt(e.style.top,10);e.removeAttribute("data-md-state"),e.style.top="",t&&window.scrollTo(0,t)}function Bo(e,t){e.setAttribute("data-md-state",t)}function Yo(e){e.removeAttribute("data-md-state")}function Jo(e,t){e.classList.toggle("md-nav__link--active",t)}function Go(e){e.classList.remove("md-nav__link--active")}function Xo(e,t){e.firstElementChild.innerHTML=t}function Zo(e,t){e.setAttribute("data-md-state",t)}function ei(e){e.removeAttribute("data-md-state")}function ti(e,t){e.setAttribute("data-md-state",t)}function ri(e){e.removeAttribute("data-md-state")}function ni(e,t){e.setAttribute("data-md-state",t)}function oi(e){e.removeAttribute("data-md-state")}function ii(e,t){e.placeholder=t}function ai(e){e.placeholder=X("search.placeholder")}function si(e,t){switch(t){case 0:e.textContent=X("search.result.none");break;case 1:e.textContent=X("search.result.one");break;default:e.textContent=X("search.result.other",or(t))}}function ci(e){e.textContent=X("search.result.placeholder")}function li(e,t){e.appendChild(t)}function ui(e){e.innerHTML=""}function pi(e,t){e.style.top=`${t}px`}function fi(e){e.style.top=""}function mi(e,t){let r=e.firstElementChild;r.style.height=`${t-2*r.offsetTop}px`}function di(e){let t=e.firstElementChild;t.style.height=""}function hi(e,t){e.lastElementChild.appendChild(t)}function bi(e,t){e.lastElementChild.setAttribute("data-md-state",t)}function vi(e,t){e.setAttribute("data-md-state",t)}function Ur(e){e.removeAttribute("data-md-state")}function gi(e,t){e.setAttribute("data-md-state",t)}function Vr(e){e.removeAttribute("data-md-state")}function xi(e,t){e.style.top=`${t}px`}function yi(e){e.style.top=""}function ts(e,{alert$:t}){return t.pipe(T(r=>A(I(!0),I(!1).pipe(ke(2e3))).pipe(p(n=>({message:r,open:n})))))}function Si(e,t){let r=new w;return r.pipe(z(B)).subscribe(({message:n,open:o})=>{Xo(e,n),o?Zo(e,"open"):ei(e)}),ts(e,t).pipe(O(n=>r.next(n)),k(()=>r.complete()),p(n=>F({ref:e},n)))}function rs({viewport$:e}){if(!ce("header.autohide"))return I(!1);let t=e.pipe(p(({offset:{y:o}})=>o),Se(2,1),p(([o,i])=>[o<i,i]),K(0)),r=q([e,t]).pipe(M(([{offset:o},[,i]])=>Math.abs(i-o.y)>100),p(([,[o]])=>o),Q()),n=nr("search");return q([e,n]).pipe(p(([{offset:o},i])=>o.y>400&&!i),Q(),T(o=>o?r:I(!1)),V(!1))}function wi(e,t){return ee(()=>{let r=getComputedStyle(e);return I(r.position==="sticky"||r.position==="-webkit-sticky")}).pipe(rt(we(e),rs(t)),p(([r,{height:n},o])=>({height:r?n:0,sticky:r,hidden:o})),Q((r,n)=>r.sticky===n.sticky&&r.height===n.height&&r.hidden===n.hidden),J(1))}function Ei(e,{header$:t,main$:r}){let n=new w;return n.pipe(K("active"),rt(t),z(B)).subscribe(([{active:o},{hidden:i}])=>{o?ti(e,i?"hidden":"shadow"):ri(e)}),r.subscribe(o=>n.next(o)),t.pipe(p(o=>F({ref:e},o)))}function ns(e,{viewport$:t,header$:r}){return sr(e,{viewport$:t,header$:r}).pipe(p(({offset:{y:n}})=>{let{height:o}=ot(e);return{active:n>=o}}),K("active"))}function Ti(e,t){let r=new w;r.pipe(z(B)).subscribe(({active:o})=>{o?ni(e,"active"):oi(e)});let n=me("article h1");return typeof n=="undefined"?G:ns(n,t).pipe(O(o=>r.next(o)),k(()=>r.complete()),p(o=>F({ref:e},o)))}function Oi(e,{viewport$:t,header$:r}){let n=r.pipe(p(({height:i})=>i),Q()),o=n.pipe(T(()=>we(e).pipe(p(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),K("bottom"))));return q([n,o,t]).pipe(p(([i,{top:a,bottom:s},{offset:{y:l},size:{height:c}}])=>(c=Math.max(0,c-Math.max(0,a-l,i)-Math.max(0,c+l-s)),{offset:a-i,height:c,active:a-i<=l})),Q((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function os(e){let t=__md_get("__palette")||{index:e.findIndex(n=>matchMedia(n.getAttribute("data-md-color-media")).matches)},r=I(...e).pipe(se(n=>S(n,"change").pipe(le(n))),V(e[Math.max(0,t.index)]),p(n=>({index:e.indexOf(n),color:{scheme:n.getAttribute("data-md-color-scheme"),primary:n.getAttribute("data-md-color-primary"),accent:n.getAttribute("data-md-color-accent")}})),J(1));return r.subscribe(n=>{__md_set("__palette",n)}),r}function _i(e){let t=new w;t.subscribe(n=>{for(let[o,i]of Object.entries(n.color))typeof i=="string"&&document.body.setAttribute(`data-md-color-${o}`,i);for(let o=0;o<r.length;o++){let i=r[o].nextElementSibling;i instanceof HTMLElement&&(i.hidden=n.index!==o)}});let r=N("input",e);return os(r).pipe(O(n=>t.next(n)),k(()=>t.complete()),p(n=>F({ref:e},n)))}var Dr=Ke($r());function is(e){let t=N(".md-annotation",e);for(let n of t)n.hidden=!0;let r=e.innerText;for(let n of t)n.hidden=!1;return r}function Mi({alert$:e}){Dr.default.isSupported()&&new R(t=>{new Dr.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||is(te(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).subscribe(()=>e.next(X("clipboard.copied")))}function as(e){if(e.length<2)return e;let[t,r]=e.sort((i,a)=>i.length-a.length).map(i=>i.replace(/[^/]+$/,"")),n=0;if(t===r)n=t.length;else for(;t.charCodeAt(n)===r.charCodeAt(n);)n++;let o=ve();return e.map(i=>i.replace(t.slice(0,n),o.base))}function Li({document$:e,location$:t,viewport$:r}){let n=ve();if(location.protocol==="file:")return;"scrollRestoration"in history&&(history.scrollRestoration="manual",S(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));let o=me("link[rel=icon]");typeof o!="undefined"&&(o.href=o.href);let i=yo(new URL("sitemap.xml",n.base)).pipe(p(c=>as(N("loc",c).map(u=>u.textContent))),T(c=>S(document.body,"click").pipe(M(u=>!u.metaKey&&!u.ctrlKey),T(u=>{if(u.target instanceof Element){let m=u.target.closest("a");if(m&&!m.target){let f=new URL(m.href);if(f.search="",f.hash="",f.pathname!==location.pathname&&c.includes(f.toString()))return u.preventDefault(),I({url:new URL(m.href)})}}return G}))),ue()),a=S(window,"popstate").pipe(M(c=>c.state!==null),p(c=>({url:new URL(location.href),offset:c.state})),ue());A(i,a).pipe(Q((c,u)=>c.url.href===u.url.href),p(({url:c})=>c)).subscribe(t);let s=t.pipe(K("pathname"),T(c=>ar(c.href).pipe(Ie(()=>(po(c),G)))),ue());i.pipe(nt(s)).subscribe(({url:c})=>{history.pushState({},"",`${c}`)});let l=new DOMParser;s.pipe(T(c=>c.text()),p(c=>l.parseFromString(c,"text/html"))).subscribe(e),e.pipe(Gt(1)).subscribe(c=>{for(let u of["title","link[rel=canonical]","meta[name=author]","meta[name=description]","[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=logo]","[data-md-component=skip]",...ce("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let m=me(u),f=me(u,c);typeof m!="undefined"&&typeof f!="undefined"&&m.replaceWith(f)}}),e.pipe(Gt(1),p(()=>Me("container")),T(c=>I(...N("script",c))),Or(c=>{let u=C("script");if(c.src){for(let m of c.getAttributeNames())u.setAttribute(m,c.getAttribute(m));return c.replaceWith(u),new R(m=>{u.onload=()=>m.complete()})}else return u.textContent=c.textContent,c.replaceWith(u),ae})).subscribe(),A(i,a).pipe(nt(e)).subscribe(({url:c,offset:u})=>{c.hash&&!u?vo(c.hash):Ir(u||{y:0})}),r.pipe(xt(i),_r(250),K("offset")).subscribe(({offset:c})=>{history.replaceState(c,"")}),A(i,a).pipe(Se(2,1),M(([c,u])=>c.url.pathname===u.url.pathname),p(([,c])=>c)).subscribe(({offset:c})=>{Ir(c||{y:0})})}var ls=Ke(Nr());var ki=Ke(Nr());function zr(e,t){let r=new RegExp(e.separator,"img"),n=(o,i,a)=>`${i}<mark data-md-highlight>${a}</mark>`;return o=>{o=o.replace(/[\s*+\-:~^]+/g," ").trim();let i=new RegExp(`(^|${e.separator})(${o.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(r,"|")})`,"img");return a=>(t?(0,ki.default)(a):a).replace(i,n).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function Ci(e){return e.split(/"([^"]+)"/g).map((t,r)=>r&1?t.replace(/^\b|^(?![^\x00-\x7F]|$)|\s+/g," +"):t).join("").replace(/"|(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g,"").trim()}var Ce;(function(o){o[o.SETUP=0]="SETUP",o[o.READY=1]="READY",o[o.QUERY=2]="QUERY",o[o.RESULT=3]="RESULT"})(Ce||(Ce={}));function at(e){return e.type===1}function Hi(e){return e.type===2}function st(e){return e.type===3}function us({config:e,docs:t}){e.lang.length===1&&e.lang[0]==="en"&&(e.lang=[X("search.config.lang")]),e.separator==="[\\s\\-]+"&&(e.separator=X("search.config.separator"));let n={pipeline:X("search.config.pipeline").split(/\s*,\s*/).filter(Boolean),suggestions:ce("search.suggest")};return{config:e,docs:t,options:n}}function Fi(e,t){let r=ve(),n=new Worker(e),o=new w,i=_o(n,{tx$:o}).pipe(p(a=>{if(st(a))for(let s of a.data.items)for(let l of s)l.location=`${new URL(l.location,r.base)}`;return a}),ue());return ne(t).pipe(p(a=>({type:Ce.SETUP,data:us(a)}))).subscribe(o.next.bind(o)),{tx$:o,rx$:i}}function Ri(){let e=ve(),t=_e(new URL("../versions.json",e.base)),r=t.pipe(p(n=>{let[,o]=e.base.match(/([^/]+)\/?$/);return n.find(({version:i,aliases:a})=>i===o||a.includes(o))||n[0]}));q([t,r]).subscribe(([n,o])=>{var a;if(te(".md-header__topic").appendChild(Ho(n,o)),__md_get("__outdated",sessionStorage)===null){let s=((a=e.version)==null?void 0:a.default)||"latest",l=!o.aliases.includes(s);if(__md_set("__outdated",l,sessionStorage),l)for(let c of oe("outdated"))c.hidden=!1}})}function ps(e,{rx$:t}){let r=(__search==null?void 0:__search.transform)||Ci,{searchParams:n}=Oe();n.has("q")&&je("search",!0);let o=t.pipe(M(at),fe(1),p(()=>n.get("q")||""));o.subscribe(s=>{s&&(e.value=s)});let i=Xt(e),a=A(S(e,"keyup"),S(e,"focus").pipe(ke(1)),o).pipe(p(()=>r(e.value)),V(""),Q());return q([a,i]).pipe(p(([s,l])=>({value:s,focus:l})),J(1))}function Ii(e,{tx$:t,rx$:r}){let n=new w;return n.pipe(K("value"),p(({value:o})=>({type:Ce.QUERY,data:o}))).subscribe(t.next.bind(t)),n.pipe(K("focus")).subscribe(({focus:o})=>{o?(je("search",o),ii(e,"")):ai(e)}),S(e.form,"reset").pipe(Ne(n.pipe(Ve(1)))).subscribe(()=>Te(e)),ps(e,{tx$:t,rx$:r}).pipe(O(o=>n.next(o)),k(()=>n.complete()),p(o=>F({ref:e},o)))}function ji(e,{rx$:t},{query$:r}){let n=new w,o=co(e.parentElement).pipe(M(Boolean)),i=te(":scope > :first-child",e),a=te(":scope > :last-child",e),s=t.pipe(M(at),fe(1));return n.pipe(z(B),be(r),xt(s)).subscribe(([{items:c},{value:u}])=>{u?si(i,c.length):ci(i)}),n.pipe(z(B),O(()=>ui(a)),T(({items:c})=>A(I(...c.slice(0,10)),I(...c.slice(10)).pipe(Se(4),Fr(o),T(([u])=>I(...u)))))).subscribe(c=>{li(a,Ao(c))}),t.pipe(M(st),p(({data:c})=>c)).pipe(O(c=>n.next(c)),k(()=>n.complete()),p(c=>F({ref:e},c)))}function fs(e,{query$:t}){return t.pipe(p(({value:r})=>{let n=Oe();return n.hash="",n.searchParams.delete("h"),n.searchParams.set("q",r),{url:n}}))}function $i(e,t){let r=new w;return r.subscribe(({url:n})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${n}`}),S(e,"click").subscribe(n=>n.preventDefault()),fs(e,t).pipe(O(n=>r.next(n)),k(()=>r.complete()),p(n=>F({ref:e},n)))}function Pi(e,{rx$:t},{keyboard$:r}){let n=new w,o=Me("search-query"),i=A(S(o,"keydown"),S(o,"focus")).pipe(z(He),p(()=>o.value),Q());return n.pipe(rt(i),p(([{suggestions:s},l])=>{let c=l.split(/([\s-]+)/);if((s==null?void 0:s.length)&&c[c.length-1]){let u=s[s.length-1];u.startsWith(c[c.length-1])&&(c[c.length-1]=u)}else c.length=0;return c})).subscribe(s=>e.innerHTML=s.join("").replace(/\s/g," ")),r.pipe(M(({mode:s})=>s==="search")).subscribe(s=>{switch(s.type){case"ArrowRight":e.innerText.length&&o.selectionStart===o.value.length&&(o.value=e.innerText);break}}),t.pipe(M(st),p(({data:s})=>s)).pipe(O(s=>n.next(s)),k(()=>n.complete()),p(()=>({ref:e})))}function Wi(e,{index$:t,keyboard$:r}){let n=ve();try{let o=(__search==null?void 0:__search.worker)||n.search,i=Fi(o,t),a=Me("search-query",e),s=Me("search-result",e),{tx$:l,rx$:c}=i;l.pipe(M(Hi),nt(c.pipe(M(at))),fe(1)).subscribe(l.next.bind(l)),r.pipe(M(({mode:f})=>f==="search")).subscribe(f=>{let h=ze();switch(f.type){case"Enter":if(h===a){let v=new Map;for(let d of N(":first-child [href]",s)){let D=d.firstElementChild;v.set(d,parseFloat(D.getAttribute("data-md-score")))}if(v.size){let[[d]]=[...v].sort(([,D],[,Y])=>Y-D);d.click()}f.claim()}break;case"Escape":case"Tab":je("search",!1),Te(a,!1);break;case"ArrowUp":case"ArrowDown":if(typeof h=="undefined")Te(a);else{let v=[a,...N(":not(details) > [href], summary, details[open] [href]",s)],d=Math.max(0,(Math.max(0,v.indexOf(h))+v.length+(f.type==="ArrowUp"?-1:1))%v.length);Te(v[d])}f.claim();break;default:a!==ze()&&Te(a)}}),r.pipe(M(({mode:f})=>f==="global")).subscribe(f=>{switch(f.type){case"f":case"s":case"/":Te(a),ao(a),f.claim();break}});let u=Ii(a,i),m=ji(s,i,{query$:u});return A(u,m).pipe(De(...oe("search-share",e).map(f=>$i(f,{query$:u})),...oe("search-suggest",e).map(f=>Pi(f,i,{keyboard$:r}))))}catch(o){return e.hidden=!0,G}}function Ui(e,{index$:t,location$:r}){return q([t,r.pipe(V(Oe()),M(n=>!!n.searchParams.get("h")))]).pipe(p(([n,o])=>zr(n.config,!0)(o.searchParams.get("h"))),p(n=>{var a;let o=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let s=i.nextNode();s;s=i.nextNode())if((a=s.parentElement)==null?void 0:a.offsetHeight){let l=s.textContent,c=n(l);c.length>l.length&&o.set(s,c)}for(let[s,l]of o){let{childNodes:c}=C("span",null,l);s.replaceWith(...Array.from(c))}return{ref:e,nodes:o}}))}function ms(e,{viewport$:t,main$:r}){let n=e.parentElement,o=n.offsetTop-n.parentElement.offsetTop;return q([r,t]).pipe(p(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(o,Math.max(0,s-i))-o,{height:a,locked:s>=i+o})),Q((i,a)=>i.height===a.height&&i.locked===a.locked))}function qr(e,n){var o=n,{header$:t}=o,r=Tt(o,["header$"]);let i=new w;return i.pipe(z(B),be(t)).subscribe({next([{height:a},{height:s}]){mi(e,a),pi(e,s)},complete(){fi(e),di(e)}}),ms(e,r).pipe(O(a=>i.next(a)),k(()=>i.complete()),p(a=>F({ref:e},a)))}function Vi(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return vt(_e(`${r}/releases/latest`).pipe(p(n=>({version:n.tag_name})),Ue({})),_e(r).pipe(p(n=>({stars:n.stargazers_count,forks:n.forks_count})),Ue({}))).pipe(p(([n,o])=>F(F({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return _e(r).pipe(p(n=>({repositories:n.public_repos})),Ue({}))}}function Di(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return _e(r).pipe(p(({star_count:n,forks_count:o})=>({stars:n,forks:o})),Ue({}))}function Ni(e){let[t]=e.match(/(git(?:hub|lab))/i)||[];switch(t.toLowerCase()){case"github":let[,r,n]=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);return Vi(r,n);case"gitlab":let[,o,i]=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i);return Di(o,i);default:return G}}var ds;function hs(e){return ds||(ds=ee(()=>{let t=__md_get("__source",sessionStorage);return t?I(t):Ni(e.href).pipe(O(r=>__md_set("__source",r,sessionStorage)))}).pipe(Ie(()=>G),M(t=>Object.keys(t).length>0),p(t=>({facts:t})),J(1)))}function zi(e){let t=new w;return t.subscribe(({facts:r})=>{hi(e,ko(r)),bi(e,"done")}),hs(e).pipe(O(r=>t.next(r)),k(()=>t.complete()),p(r=>F({ref:e},r)))}function bs(e,{viewport$:t,header$:r}){return we(document.body).pipe(T(()=>sr(e,{header$:r,viewport$:t})),p(({offset:{y:n}})=>({hidden:n>=10})),K("hidden"))}function qi(e,t){let r=new w;return r.pipe(z(B)).subscribe({next({hidden:n}){n?vi(e,"hidden"):Ur(e)},complete(){Ur(e)}}),(ce("navigation.tabs.sticky")?I({hidden:!1}):bs(e,t)).pipe(O(n=>r.next(n)),k(()=>r.complete()),p(n=>F({ref:e},n)))}function vs(e,{viewport$:t,header$:r}){let n=new Map,o=N("[href^=\\#]",e);for(let s of o){let l=decodeURIComponent(s.hash.substring(1)),c=me(`[id="${l}"]`);typeof c!="undefined"&&n.set(s,c)}let i=r.pipe(p(s=>24+s.height));return we(document.body).pipe(K("height"),T(s=>ee(()=>{let l=[];return I([...n].reduce((c,[u,m])=>{for(;l.length&&n.get(l[l.length-1]).tagName>=m.tagName;)l.pop();let f=m.offsetTop;for(;!f&&m.parentElement;)m=m.parentElement,f=m.offsetTop;return c.set([...l=[...l,u]].reverse(),f)},new Map))}).pipe(p(l=>new Map([...l].sort(([,c],[,u])=>c-u))),T(l=>q([t,i]).pipe(Lr(([c,u],[{offset:{y:m},size:f},h])=>{let v=m+f.height>=Math.floor(s.height);for(;u.length;){let[,d]=u[0];if(d-h<m||v)c=[...c,u.shift()];else break}for(;c.length;){let[,d]=c[c.length-1];if(d-h>=m&&!v)u=[c.pop(),...u];else break}return[c,u]},[[],[...l]]),Q((c,u)=>c[0]===u[0]&&c[1]===u[1])))))).pipe(p(([s,l])=>({prev:s.map(([c])=>c),next:l.map(([c])=>c)})),V({prev:[],next:[]}),Se(2,1),p(([s,l])=>s.prev.length<l.prev.length?{prev:l.prev.slice(Math.max(0,s.prev.length-1),l.prev.length),next:[]}:{prev:l.prev.slice(-1),next:l.next.slice(0,l.next.length-s.next.length)}))}function Qi(e,t){let r=new w;return r.pipe(z(B)).subscribe(({prev:n,next:o})=>{for(let[i]of o)Go(i),Yo(i);for(let[i,[a]]of n.entries())Jo(a,i===n.length-1),Bo(a,"blur");if(ce("navigation.tracking")){let i=Oe(),a=n[n.length-1];if(a&&a.length){let[s]=a,{hash:l}=new URL(s.href);i.hash!==l&&(i.hash=l,history.replaceState({},"",`${i}`))}else i.hash="",history.replaceState({},"",`${i}`)}}),vs(e,t).pipe(O(n=>r.next(n)),k(()=>r.complete()),p(n=>F({ref:e},n)))}function gs(e,{viewport$:t,main$:r}){let n=t.pipe(p(({offset:{y:i}})=>i),Se(2,1),p(([i,a])=>i>a&&a),Q()),o=r.pipe(K("active"));return q([o,n]).pipe(p(([{active:i},a])=>({hidden:!(i&&a)})),Q((i,a)=>i.hidden===a.hidden))}function Ki(e,{viewport$:t,header$:r,main$:n}){let o=new w;return o.pipe(z(B),be(r.pipe(K("height")))).subscribe({next([{hidden:i},{height:a}]){xi(e,a+16),i?(gi(e,"hidden"),Te(e,!1),qo(e,-1)):(Vr(e),Wr(e))},complete(){yi(e),Vr(e),Wr(e)}}),gs(e,{viewport$:t,header$:r,main$:n}).pipe(O(i=>o.next(i)),k(()=>o.complete()),p(i=>F({ref:e},i)))}function Bi({document$:e,tablet$:t}){e.pipe(T(()=>I(...N("[data-md-state=indeterminate]"))),O(r=>{r.indeterminate=!0,r.checked=!1}),se(r=>S(r,"change").pipe(Cr(()=>r.hasAttribute("data-md-state")),le(r))),be(t)).subscribe(([r,n])=>{r.removeAttribute("data-md-state"),n&&(r.checked=!1)})}function xs(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Yi({document$:e}){e.pipe(T(()=>I(...N("[data-md-scrollfix]"))),O(t=>t.removeAttribute("data-md-scrollfix")),M(xs),se(t=>S(t,"touchstart").pipe(le(t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}function Ji({viewport$:e,tablet$:t}){q([nr("search"),t]).pipe(p(([r,n])=>r&&!n),T(r=>I(r).pipe(ke(r?400:100),z(B))),be(e)).subscribe(([r,{offset:{y:n}}])=>{r?Qo(document.body,n):Ko(document.body)})}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var ct=no(),cr=fo(),Qr=go(),Kr=uo(),ge=Oo(),lr=ir("(min-width: 960px)"),Gi=ir("(min-width: 1220px)"),Xi=ir("(hover)"),Zi=xo(),ea=ve(),ta=document.forms.namedItem("search")?(__search==null?void 0:__search.index)||_e(new URL("search/search_index.json",ea.base)):G,Br=new w;Mi({alert$:Br});ce("navigation.instant")&&Li({document$:ct,location$:cr,viewport$:ge});var na;((na=ea.version)==null?void 0:na.provider)==="mike"&&Ri();A(cr,Qr).pipe(ke(125)).subscribe(()=>{je("drawer",!1),je("search",!1)});Kr.pipe(M(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=me("[href][rel=prev]");typeof t!="undefined"&&t.click();break;case"n":case".":let r=me("[href][rel=next]");typeof r!="undefined"&&r.click();break}});Bi({document$:ct,tablet$:lr});Yi({document$:ct});Ji({viewport$:ge,tablet$:lr});var $e=wi(Me("header"),{viewport$:ge}),ur=ct.pipe(p(()=>Me("main")),T(e=>Oi(e,{viewport$:ge,header$:$e})),J(1)),ys=A(...oe("dialog").map(e=>Si(e,{alert$:Br})),...oe("header").map(e=>Ei(e,{viewport$:ge,header$:$e,main$:ur})),...oe("palette").map(e=>_i(e)),...oe("search").map(e=>Wi(e,{index$:ta,keyboard$:Kr})),...oe("source").map(e=>zi(e))),Ss=ee(()=>A(...oe("content").map(e=>zo(e,{target$:Qr,viewport$:ge,hover$:Xi,print$:Zi})),...oe("content").map(e=>ce("search.highlight")?Ui(e,{index$:ta,location$:cr}):G),...oe("header-title").map(e=>Ti(e,{viewport$:ge,header$:$e})),...oe("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Rr(Gi,()=>qr(e,{viewport$:ge,header$:$e,main$:ur})):Rr(lr,()=>qr(e,{viewport$:ge,header$:$e,main$:ur}))),...oe("tabs").map(e=>qi(e,{viewport$:ge,header$:$e})),...oe("toc").map(e=>Qi(e,{viewport$:ge,header$:$e})),...oe("top").map(e=>Ki(e,{viewport$:ge,header$:$e,main$:ur})))),ra=ct.pipe(T(()=>Ss),De(ys),J(1));ra.subscribe();window.document$=ct;window.location$=cr;window.target$=Qr;window.keyboard$=Kr;window.viewport$=ge;window.tablet$=lr;window.screen$=Gi;window.hover$=Xi;window.print$=Zi;window.alert$=Br;window.component$=ra;})();
|
|
//# sourceMappingURL=bundle.7c769d4b.min.js.map
|
|
|