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