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