(()=>{var Ji=Object.create;var bt=Object.defineProperty;var Yi=Object.getOwnPropertyDescriptor;var Gi=Object.getOwnPropertyNames,vt=Object.getOwnPropertySymbols,Xi=Object.getPrototypeOf,or=Object.prototype.hasOwnProperty,Dr=Object.prototype.propertyIsEnumerable;var Nr=(e,t,r)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$=(e,t)=>{for(var r in t||(t={}))or.call(t,r)&&Nr(e,r,t[r]);if(vt)for(var r of vt(t))Dr.call(t,r)&&Nr(e,r,t[r]);return e};var Zi=e=>bt(e,"__esModule",{value:!0});var zr=(e,t)=>{var r={};for(var o in e)or.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&vt)for(var o of vt(e))t.indexOf(o)<0&&Dr.call(e,o)&&(r[o]=e[o]);return r};var xt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ea=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Gi(t))!or.call(e,o)&&o!=="default"&&bt(e,o,{get:()=>t[o],enumerable:!(r=Yi(t,o))||r.enumerable});return e},ot=e=>ea(Zi(bt(e!=null?Ji(Xi(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Qr=xt((nr,qr)=>{(function(e,t){typeof nr=="object"&&typeof qr!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(nr,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 Ie=w.type,Ee=w.tagName;return!!(Ee==="INPUT"&&a[Ie]&&!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 u(w){o=!1}function b(w){!s(w.target)||(o||c(w.target))&&l(w.target)}function x(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),U())}function U(){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 q(){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,q())}document.addEventListener("keydown",m,!0),document.addEventListener("mousedown",u,!0),document.addEventListener("pointerdown",u,!0),document.addEventListener("touchstart",u,!0),document.addEventListener("visibilitychange",h,!0),U(),r.addEventListener("focus",b,!0),r.addEventListener("blur",x,!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 mo=xt((os,St)=>{/*! ***************************************************************************** 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 Kr,Br,Jr,Yr,Gr,Xr,Zr,eo,to,gt,ir,ro,oo,no,Ne,io,ao,so,co,lo,po,uo,fo,yt;(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 St=="object"&&typeof St.exports=="object"?e(r(t,r(St.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])};Kr=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)},Br=Object.assign||function(o){for(var n,i=1,a=arguments.length;i=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},Gr=function(o,n){return function(i,a){n(i,a,o)}},Xr=function(o,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,n)},Zr=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(b){try{u(a.next(b))}catch(x){l(x)}}function m(b){try{u(a.throw(b))}catch(x){l(x)}}function u(b){b.done?c(b.value):s(b.value).then(p,m)}u((a=a.apply(o,n||[])).next())})},eo=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(u){return function(b){return m([u,b])}}function m(u){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,s&&(c=u[0]&2?s.return:u[0]?s.throw||((c=s.return)&&c.call(s),0):s.next)&&!(c=c.call(s,u[1])).done)return c;switch(s=0,c&&(u=[u[0]&2,c.value]),u[0]){case 0:case 1:c=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,s=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(c=i.trys,!(c=c.length>0&&c[c.length-1])&&(u[0]===6||u[0]===2)){i=0;continue}if(u[0]===3&&(!c||u[1]>c[0]&&u[1]=o.length&&(o=void 0),{value:o&&o[a++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},ir=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},ro=function(){for(var o=[],n=0;n1||p(h,U)})})}function p(h,U){try{m(a[h](U))}catch(q){x(c[0][3],q)}}function m(h){h.value instanceof Ne?Promise.resolve(h.value.v).then(u,b):x(c[0][2],h)}function u(h){p("next",h)}function b(h){p("throw",h)}function x(h,U){h(U),c.shift(),c.length&&p(c[0][0],c[0][1])}},ao=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:Ne(o[s](l)),done:s==="return"}:c?c(l):l}:c}},so=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 gt=="function"?gt(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(u){c({value:u,done:p})},l)}},co=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};lo=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)&&yt(n,o,i);return r(n,o),n},po=function(o){return o&&o.__esModule?o:{default:o}},uo=function(o,n){if(!n.has(o))throw new TypeError("attempted to get private field on non-instance");return n.get(o)},fo=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",Kr),e("__assign",Br),e("__rest",Jr),e("__decorate",Yr),e("__param",Gr),e("__metadata",Xr),e("__awaiter",Zr),e("__generator",eo),e("__exportStar",to),e("__createBinding",yt),e("__values",gt),e("__read",ir),e("__spread",ro),e("__spreadArrays",oo),e("__spreadArray",no),e("__await",Ne),e("__asyncGenerator",io),e("__asyncDelegator",ao),e("__asyncValues",so),e("__makeTemplateObject",co),e("__importStar",lo),e("__importDefault",po),e("__classPrivateFieldGet",uo),e("__classPrivateFieldSet",fo)})});var Cr=xt((dt,kr)=>{/*! * clipboard.js v2.0.8 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */(function(t,r){typeof dt=="object"&&typeof kr=="object"?kr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof dt=="object"?dt.ClipboardJS=r():t.ClipboardJS=r()})(dt,function(){return function(){var e={134:function(o,n,i){"use strict";i.d(n,{default:function(){return Ki}});var a=i(279),s=i.n(a),c=i(370),l=i.n(c),p=i(817),m=i.n(p);function u(T){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(d){return typeof d}:u=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},u(T)}function b(T,v){if(!(T instanceof v))throw new TypeError("Cannot call a class as a function")}function x(T,v){for(var d=0;d0&&arguments[0]!==void 0?arguments[0]:{};this.action=d.action,this.container=d.container,this.emitter=d.emitter,this.target=d.target,this.text=d.text,this.trigger=d.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var d=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[d?"right":"left"]="-9999px";var A=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(A,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var d=this,A=this.createFakeElement();this.fakeHandlerCallback=function(){return d.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(A),this.selectedText=m()(A),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 d;try{d=document.execCommand(this.action)}catch(A){d=!1}this.handleResult(d)}},{key:"handleResult",value:function(d){this.emitter.emit(d?"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 d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=d,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(d){if(d!==void 0)if(d&&u(d)==="object"&&d.nodeType===1){if(this.action==="copy"&&d.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(d.hasAttribute("readonly")||d.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=d}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),T}(),q=U;function j(T){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?j=function(d){return typeof d}:j=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},j(T)}function w(T,v){if(!(T instanceof v))throw new TypeError("Cannot call a class as a function")}function Ie(T,v){for(var d=0;d0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof I.action=="function"?I.action:this.defaultAction,this.target=typeof I.target=="function"?I.target:this.defaultTarget,this.text=typeof I.text=="function"?I.text:this.defaultText,this.container=j(I.container)==="object"?I.container:document.body}},{key:"listenClick",value:function(I){var Z=this;this.listener=l()(I,"click",function(rt){return Z.onClick(rt)})}},{key:"onClick",value:function(I){var Z=I.delegateTarget||I.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new q({action:this.action(Z),target:this.target(Z),text:this.text(Z),container:this.container,trigger:Z,emitter:this})}},{key:"defaultAction",value:function(I){return rr("action",I)}},{key:"defaultTarget",value:function(I){var Z=rr("target",I);if(Z)return document.querySelector(Z)}},{key:"defaultText",value:function(I){return rr("text",I)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Z=typeof I=="string"?[I]:I,rt=!!document.queryCommandSupported;return Z.forEach(function(Bi){rt=rt&&!!document.queryCommandSupported(Bi)}),rt}}]),d}(s()),Ki=Qi},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,u,b,x){var h=l.apply(this,arguments);return p.addEventListener(u,h,x),{destroy:function(){p.removeEventListener(u,h,x)}}}function c(p,m,u,b,x){return typeof p.addEventListener=="function"?s.apply(null,arguments):typeof u=="function"?s.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(h){return s(h,m,u,b,x)}))}function l(p,m,u,b){return function(x){x.delegateTarget=a(x.target,m),x.delegateTarget&&b.call(p,x)}}o.exports=c},879:function(o,n){n.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},n.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||n.node(i[0]))},n.string=function(i){return typeof i=="string"||i instanceof String},n.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}},370:function(o,n,i){var a=i(879),s=i(438);function c(u,b,x){if(!u&&!b&&!x)throw new Error("Missing required arguments");if(!a.string(b))throw new TypeError("Second argument must be a String");if(!a.fn(x))throw new TypeError("Third argument must be a Function");if(a.node(u))return l(u,b,x);if(a.nodeList(u))return p(u,b,x);if(a.string(u))return m(u,b,x);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function l(u,b,x){return u.addEventListener(b,x),{destroy:function(){u.removeEventListener(b,x)}}}function p(u,b,x){return Array.prototype.forEach.call(u,function(h){h.addEventListener(b,x)}),{destroy:function(){Array.prototype.forEach.call(u,function(h){h.removeEventListener(b,x)})}}}function m(u,b,x){return s(document.body,u,b,x)}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{/*! * escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed */"use strict";var Ua=/["'&<>]/;xi.exports=Da;function Da(e){var t=""+e,r=Ua.exec(t);if(!r)return t;var o,n="",i=0,a=0;for(i=r.index;i0},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?ar:(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 _;return r.source=this,r},t.create=function(r,o){return new Ao(r,o)},t}(_);var Ao=function(e){B(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:ar},t}(M);var at={now:function(){return(at.delegate||Date).now()},delegate:void 0};var st=function(e){B(t,e);function t(r,o,n){r===void 0&&(r=1/0),o===void 0&&(o=1/0),n===void 0&&(n=at);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;c0?e.prototype.requestAsyncId.call(this,r,o,n):(r.actions.push(this),r._scheduled||(r._scheduled=Qe.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&&(Qe.cancelAnimationFrame(o),r._scheduled=void 0)},t}(At);var Ho=function(e){B(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=2,!0))}function ne(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new M}: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,u=null,b=0,x=!1,h=!1,U=function(){m==null||m.unsubscribe(),m=null},q=function(){U(),p=u=null,x=h=!1},j=function(){var w=p;q(),w==null||w.unsubscribe()};return g(function(w,Ie){b++,!h&&!x&&U();var Ee=u=u!=null?u:r();Ie.add(function(){b--,b===0&&!h&&!x&&(m=Sr(j,c))}),Ee.subscribe(Ie),p||(p=new it({next:function(De){return Ee.next(De)},error:function(De){h=!0,U(),m=Sr(q,n,De),Ee.error(De)},complete:function(){x=!0,U(),m=Sr(q,a),Ee.complete()}}),xe(w).subscribe(p))})(l)}}function Sr(e,t){for(var r=[],o=2;ot==="focus"),V(e===$e()))}var en=new M,Ma=Oe(()=>F(new ResizeObserver(e=>{for(let t of e)en.next(t)}))).pipe(E(e=>X.pipe(V(e)).pipe(P(()=>e.disconnect()))),re(1));function Ce(e){return{width:e.offsetWidth,height:e.offsetHeight}}function zt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function He(e){return Ma.pipe(H(t=>t.observe(e)),E(t=>en.pipe(k(({target:r})=>r===e),P(()=>t.unobserve(e)),f(()=>Ce(e)))),V(Ce(e)))}function tn(e){return{x:e.scrollLeft,y:e.scrollTop}}function Aa(e){return R(O(e,"scroll"),O(window,"resize")).pipe(f(()=>tn(e)),V(tn(e)))}function rn(e,t=16){return Aa(e).pipe(f(({y:r})=>{let o=Ce(e),n=zt(e);return r>=n.height-o.height-t}),z())}function on(e){if(e instanceof HTMLInputElement)e.select();else throw new Error("Not implemented")}var qt={drawer:me("[data-md-toggle=drawer]"),search:me("[data-md-toggle=search]")};function nn(e){return qt[e].checked}function Ve(e,t){qt[e].checked!==t&&qt[e].click()}function Qt(e){let t=qt[e];return O(t,"change").pipe(f(()=>t.checked),V(t.checked))}function La(e){switch(e.tagName){case"INPUT":case"SELECT":case"TEXTAREA":return!0;default:return e.isContentEditable}}function an(){return O(window,"keydown").pipe(k(e=>!(e.metaKey||e.ctrlKey)),f(e=>({mode:nn("search")?"search":"global",type:e.key,claim(){e.preventDefault(),e.stopPropagation()}})),k(({mode:e})=>{if(e==="global"){let t=$e();if(typeof t!="undefined")return!La(t)}return!0}),ne())}function sn(){return new URL(location.href)}function cn(e){location.href=e.href}function ln(){return new M}function pn(){return location.hash.substring(1)}function un(e){let t=Ze("a");t.href=e,t.addEventListener("click",r=>r.stopPropagation()),t.click()}function ka(){return O(window,"hashchange").pipe(f(pn),V(pn()),k(e=>e.length>0),ne())}function fn(){return ka().pipe(E(e=>F(ae(`[id="${e}"]`))))}function mt(e){let t=matchMedia(e);return Ut(r=>t.addListener(()=>r(t.matches))).pipe(V(t.matches))}function mn(){return O(window,"beforeprint").pipe(oe(void 0))}function Ar(e,t){return e.pipe(E(r=>r?t():X))}function Kt(e,t={credentials:"same-origin"}){return xe(fetch(`${e}`,t)).pipe(k(r=>r.status===200))}function we(e,t){return Kt(e,t).pipe(E(r=>r.json()),re(1))}function dn(e,t){let r=new DOMParser;return Kt(e,t).pipe(E(o=>o.text()),f(o=>r.parseFromString(o,"text/xml")),re(1))}function hn(){return{x:Math.max(0,pageXOffset),y:Math.max(0,pageYOffset)}}function Lr({x:e,y:t}){window.scrollTo(e||0,t||0)}function bn(){return R(O(window,"scroll",{passive:!0}),O(window,"resize",{passive:!0})).pipe(f(hn),V(hn()))}function vn(){return{width:innerWidth,height:innerHeight}}function xn(){return O(window,"resize",{passive:!0}).pipe(f(vn),V(vn()))}function gn(){return G([bn(),xn()]).pipe(f(([e,t])=>({offset:e,size:t})),re(1))}function Bt(e,{viewport$:t,header$:r}){let o=t.pipe(W("size")),n=G([o,r]).pipe(f(()=>({x:e.offsetLeft,y:e.offsetTop})));return G([r,t,n]).pipe(f(([{height:i},{offset:a,size:s},{x:c,y:l}])=>({offset:{x:a.x-c,y:a.y-l+i},size:s})))}function yn(e,{tx$:t}){let r=O(e,"message").pipe(f(({data:o})=>o));return t.pipe(_r(()=>r,{leading:!0,trailing:!0}),H(o=>e.postMessage(o)),Er(r),ne())}var Ca=me("#__config"),et=JSON.parse(Ca.textContent);et.base=new URL(et.base,sn()).toString().replace(/\/$/,"");function se(){return et}function Jt(e){return et.features.includes(e)}function K(e,t){return typeof t!="undefined"?et.translations[e].replace("#",t.toString()):et.translations[e]}function je(e,t=document){return me(`[data-md-component=${e}]`,t)}function de(e,t=document){return Q(`[data-md-component=${e}]`,t)}var ni=ot(Cr());function Sn(e,t=0){e.setAttribute("tabindex",t.toString())}function wn(e){e.removeAttribute("tabindex")}function En(e,t){e.setAttribute("data-md-state","lock"),e.style.top=`-${t}px`}function Tn(e){let t=-1*parseInt(e.style.top,10);e.removeAttribute("data-md-state"),e.style.top="",t&&window.scrollTo(0,t)}function On(e,t){e.setAttribute("data-md-state",t)}function _n(e){e.removeAttribute("data-md-state")}function Mn(e,t){e.classList.toggle("md-nav__link--active",t)}function An(e){e.classList.remove("md-nav__link--active")}function Ln(e,t){e.firstElementChild.innerHTML=t}function kn(e,t){e.setAttribute("data-md-state",t)}function Cn(e){e.removeAttribute("data-md-state")}function Hn(e,t){e.setAttribute("data-md-state",t)}function jn(e){e.removeAttribute("data-md-state")}function Fn(e,t){e.setAttribute("data-md-state",t)}function In(e){e.removeAttribute("data-md-state")}function Rn(e,t){e.placeholder=t}function Pn(e){e.placeholder=K("search.placeholder")}function $n(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)$n(e,r)}function D(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)$n(o,n);return o}function Wn(e,t){let r=t;if(e.length>r){for(;e[r]!==" "&&--r>0;);return`${e.substring(0,r)}...`}return e}function Yt(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function Vn(e,t){switch(t){case 0:e.textContent=K("search.result.none");break;case 1:e.textContent=K("search.result.one");break;default:e.textContent=K("search.result.other",Yt(t))}}function Hr(e){e.textContent=K("search.result.placeholder")}function Un(e,t){e.appendChild(t)}function Dn(e){e.innerHTML=""}function Nn(e,t){e.style.top=`${t}px`}function zn(e){e.style.top=""}function qn(e,t){let r=e.firstElementChild;r.style.height=`${t-2*r.offsetTop}px`}function Qn(e){let t=e.firstElementChild;t.style.height=""}function Kn(e,t){e.lastElementChild.appendChild(t)}function Bn(e,t){e.lastElementChild.setAttribute("data-md-state",t)}function Jn(e,t){e.setAttribute("data-md-state",t)}function jr(e){e.removeAttribute("data-md-state")}function Yn(e,t){e.setAttribute("data-md-state",t)}function Fr(e){e.removeAttribute("data-md-state")}function Gn(e,t){e.style.top=`${t}px`}function Xn(e){e.style.top=""}function Zn(e){return D("button",{class:"md-clipboard md-icon",title:K("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}var Ue;(function(r){r[r.TEASER=1]="TEASER",r[r.PARENT=2]="PARENT"})(Ue||(Ue={}));function Ir(e,t){let r=t&2,o=t&1,n=Object.keys(e.terms).filter(a=>!e.terms[a]).map(a=>[D("del",null,a)," "]).flat().slice(0,-1),i=e.location;return D("a",{href:i,class:"md-search-result__link",tabIndex:-1},D("article",{class:["md-search-result__article",...r?["md-search-result__article--document"]:[]].join(" "),"data-md-score":e.score.toFixed(2)},r>0&&D("div",{class:"md-search-result__icon md-icon"}),D("h1",{class:"md-search-result__title"},e.title),o>0&&e.text.length>0&&D("p",{class:"md-search-result__teaser"},Wn(e.text,320)),o>0&&n.length>0&&D("p",{class:"md-search-result__terms"},K("search.result.term.missing"),": ",n)))}function ei(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.scoreIr(l,1)),...s.length?[D("details",{class:"md-search-result__more"},D("summary",{tabIndex:-1},s.length>0&&s.length===1?K("search.result.more.one"):K("search.result.more.other",s.length)),s.map(l=>Ir(l,1)))]:[]];return D("li",{class:"md-search-result__item"},c)}function ti(e){return D("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>D("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Yt(r):r)))}function ri(e){return D("div",{class:"md-typeset__scrollwrap"},D("div",{class:"md-typeset__table"},e))}function Ha(e){let t=se(),r=new URL(`${e.version}/`,t.base);return D("li",{class:"md-version__item"},D("a",{href:r.toString(),class:"md-version__link"},e.title))}function oi(e){let t=se(),[,r]=t.base.match(/([^/]+)\/?$/),o=e.find(({version:n,aliases:i})=>n===r||i.includes(r))||e[0];return D("div",{class:"md-version"},D("button",{class:"md-version__current","aria-label":K("select.version.title")},o.title),D("ul",{class:"md-version__list"},e.map(Ha)))}var ja=0;function Fa(e,{viewport$:t}){let r=F(e).pipe(E(o=>{let n=o.closest("[data-tabs]");return n instanceof HTMLElement?R(...Q("input",n).map(i=>O(i,"change"))):X}));return R(t.pipe(W("size")),r).pipe(f(()=>{let o=Ce(e);return{scroll:zt(e).width>o.width}}),W("scroll"))}function ii(e,t){let r=new M;if(r.pipe(pe(mt("(hover)"))).subscribe(([{scroll:o},n])=>{o&&n?Sn(e):wn(e)}),ni.default.isSupported()){let o=e.closest("pre");o.id=`__code_${ja++}`,o.insertBefore(Zn(o.id),e)}return Fa(e,t).pipe(H(r),P(()=>r.complete()),f(o=>$({ref:e},o)))}function Ia(e,{target$:t,print$:r}){return t.pipe(f(o=>o.closest("details:not([open])")),k(o=>e===o),ft(r),oe(e))}function ai(e,t){let r=new M;return r.subscribe(()=>{e.setAttribute("open",""),e.scrollIntoView()}),Ia(e,t).pipe(H(r),P(()=>r.complete()),oe({ref:e}))}var si=Ze("table");function ci(e){return We(e,si),We(si,ri(e)),F({ref:e})}function li(e,{target$:t,viewport$:r,print$:o}){return R(...Q("pre > code",e).map(n=>ii(n,{viewport$:r})),...Q("table:not([class])",e).map(n=>ci(n)),...Q("details",e).map(n=>ai(n,{target$:t,print$:o})))}function Ra(e,{alert$:t}){return t.pipe(E(r=>R(F(!0),F(!1).pipe(_e(2e3))).pipe(f(o=>({message:r,open:o})))))}function pi(e,t){let r=new M;return r.pipe(Y(J)).subscribe(({message:o,open:n})=>{Ln(e,o),n?kn(e,"open"):Cn(e)}),Ra(e,t).pipe(H(r),P(()=>r.complete()),f(o=>$({ref:e},o)))}function Pa({viewport$:e}){if(!Jt("header.autohide"))return F(!1);let t=e.pipe(f(({offset:{y:n}})=>n),ve(2,1),f(([n,i])=>[nMath.abs(i-n.y)>100),f(([,[n]])=>n),z()),o=Qt("search");return G([e,o]).pipe(f(([{offset:n},i])=>n.y>400&&!i),z(),E(n=>n?r:F(!1)),V(!1))}function ui(e,t){return Oe(()=>{let r=getComputedStyle(e);return F(r.position==="sticky"||r.position==="-webkit-sticky")}).pipe(Dt(He(e),Pa(t)),f(([r,{height:o},n])=>({height:r?o:0,sticky:r,hidden:n})),z((r,o)=>r.sticky===o.sticky&&r.height===o.height&&r.hidden===o.hidden),re(1))}function fi(e,{header$:t,main$:r}){let o=new M;return o.pipe(W("active"),Dt(t),Y(J)).subscribe(([{active:n},{hidden:i}])=>{n?Hn(e,i?"hidden":"shadow"):jn(e)}),r.subscribe(n=>o.next(n)),t.pipe(f(n=>$({ref:e},n)))}function $a(e,{viewport$:t,header$:r}){return Bt(e,{header$:r,viewport$:t}).pipe(f(({offset:{y:o}})=>{let{height:n}=Ce(e);return{active:o>=n}}),W("active"))}function mi(e,t){let r=new M;r.pipe(Y(J)).subscribe(({active:n})=>{n?Fn(e,"active"):In(e)});let o=ae("article h1");return typeof o=="undefined"?X:$a(o,t).pipe(H(r),P(()=>r.complete()),f(n=>$({ref:e},n)))}function di(e,{viewport$:t,header$:r}){let o=r.pipe(f(({height:i})=>i),z()),n=o.pipe(E(()=>He(e).pipe(f(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),W("bottom"))));return G([o,n,t]).pipe(f(([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})),z((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function Wa(e){let t=localStorage.getItem(__prefix("__palette")),r=JSON.parse(t)||{index:e.findIndex(n=>matchMedia(n.getAttribute("data-md-color-media")).matches)},o=F(...e).pipe(te(n=>O(n,"change").pipe(oe(n))),V(e[Math.max(0,r.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")}})),re(1));return o.subscribe(n=>{localStorage.setItem(__prefix("__palette"),JSON.stringify(n))}),o}function hi(e){let t=new M;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;nt.complete()),f(o=>$({ref:e},o)))}var Rr=ot(Cr());function bi({alert$:e}){Rr.default.isSupported()&&new _(t=>{new Rr.default("[data-clipboard-target], [data-clipboard-text]").on("success",r=>t.next(r))}).subscribe(()=>e.next(K("clipboard.copied")))}function Va(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 vi({document$:e,location$:t,viewport$:r}){let o=se();if(location.protocol==="file:")return;"scrollRestoration"in history&&(history.scrollRestoration="manual",O(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));let n=ae("link[rel=icon]");typeof n!="undefined"&&(n.href=n.href);let i=dn(`${o.base}/sitemap.xml`).pipe(f(l=>Va(Q("loc",l).map(p=>p.textContent))),E(l=>O(document.body,"click").pipe(k(p=>!p.metaKey&&!p.ctrlKey),E(p=>{if(p.target instanceof Element){let m=p.target.closest("a");if(m&&!m.target&&l.includes(m.href))return p.preventDefault(),F({url:new URL(m.href)})}return X}))),ne()),a=O(window,"popstate").pipe(k(l=>l.state!==null),f(l=>({url:new URL(location.href),offset:l.state})),ne());R(i,a).pipe(z((l,p)=>l.url.href===p.url.href),f(({url:l})=>l)).subscribe(t);let s=t.pipe(W("pathname"),E(l=>Kt(l.href).pipe(Ge(()=>(cn(l),X)))),ne());i.pipe(Xe(s)).subscribe(({url:l})=>{history.pushState({},"",`${l}`)});let c=new DOMParser;s.pipe(E(l=>l.text()),f(l=>c.parseFromString(l,"text/html"))).subscribe(e),R(i,a).pipe(Xe(e)).subscribe(({url:l,offset:p})=>{l.hash&&!p?un(l.hash):Lr(p||{y:0})}),e.pipe(Nt(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),u=ae(p,l);typeof m!="undefined"&&typeof u!="undefined"&&We(m,u)}}),e.pipe(Nt(1),f(()=>je("container")),E(l=>F(...Q("script",l))),br(l=>{let p=Ze("script");if(l.src){for(let m of l.getAttributeNames())p.setAttribute(m,l.getAttribute(m));return We(l,p),new _(m=>{p.onload=()=>m.complete()})}else return p.textContent=l.textContent,We(l,p),be})).subscribe(),r.pipe(wr(i),vr(250),W("offset")).subscribe(({offset:l})=>{history.replaceState(l,"")}),R(i,a).pipe(ve(2,1),k(([l,p])=>l.url.pathname===p.url.pathname),f(([,l])=>l)).subscribe(({offset:l})=>{Lr(l||{y:0})})}var Na=ot(gi());function yi(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 Me;(function(n){n[n.SETUP=0]="SETUP",n[n.READY=1]="READY",n[n.QUERY=2]="QUERY",n[n.RESULT=3]="RESULT"})(Me||(Me={}));function Gt(e){return e.type===1}function Si(e){return e.type===2}function Xt(e){return e.type===3}function za({config:e,docs:t,index:r}){e.lang.length===1&&e.lang[0]==="en"&&(e.lang=[K("search.config.lang")]),e.separator==="[\\s\\-]+"&&(e.separator=K("search.config.separator"));let o=K("search.config.pipeline").split(/\s*,\s*/).filter(Boolean);return{config:e,docs:t,index:r,pipeline:o}}function wi(e,t){let r=se(),o=new Worker(e),n=new M,i=yn(o,{tx$:n}).pipe(f(a=>{if(Xt(a))for(let s of a.data)for(let c of s)c.location=`${r.base}/${c.location}`;return a}),ne());return xe(t).pipe(f(a=>({type:Me.SETUP,data:za(a)}))).subscribe(n.next.bind(n)),{tx$:n,rx$:i}}function Ei(){let e=se();we(new URL("versions.json",e.base)).subscribe(t=>{me(".md-header__topic").appendChild(oi(t))})}function qa(e){let t=(__search==null?void 0:__search.transform)||yi,r=Zo(e),o=R(O(e,"keyup"),O(e,"focus").pipe(_e(1))).pipe(f(()=>t(e.value)),z());return G([o,r]).pipe(f(([n,i])=>({value:n,focus:i})))}function Ti(e,{tx$:t}){let r=new M;return r.pipe(W("value"),f(({value:o})=>({type:Me.QUERY,data:o}))).subscribe(t.next.bind(t)),r.pipe(W("focus")).subscribe(({focus:o})=>{o?(Ve("search",o),Rn(e,"")):Pn(e)}),O(e.form,"reset").pipe(Tr(r.pipe(gr(1)))).subscribe(()=>Se(e)),qa(e).pipe(H(r),P(()=>r.complete()),f(o=>$({ref:e},o)))}function Oi(e,{rx$:t},{query$:r}){let o=new M,n=rn(e.parentElement).pipe(k(Boolean)),i=me(":scope > :first-child",e),a=me(":scope > :last-child",e);return t.pipe(k(Gt),ye(1)).subscribe(()=>{Hr(i)}),o.pipe(Y(J),pe(r)).subscribe(([{data:c},{value:l}])=>{l?Vn(i,c.length):Hr(i)}),o.pipe(Y(J),H(()=>Dn(a)),E(({data:c})=>R(F(...c.slice(0,10)),F(...c.slice(10)).pipe(ve(4),Mr(n),E(([l])=>F(...l)))))).subscribe(c=>{Un(a,ei(c))}),t.pipe(k(Xt),f(({data:c})=>({data:c})),V({data:[]})).pipe(H(o),P(()=>o.complete()),f(c=>$({ref:e},c)))}function _i(e,{index$:t,keyboard$:r}){let o=se();try{let n=wi(o.search,t),i=je("search-query",e),a=je("search-result",e),{tx$:s,rx$:c}=n;s.pipe(k(Si),Xe(c.pipe(k(Gt))),ye(1)).subscribe(s.next.bind(s)),r.pipe(k(({mode:p})=>p==="search")).subscribe(p=>{let m=$e();switch(p.type){case"Enter":m===i&&p.claim();break;case"Escape":case"Tab":Ve("search",!1),Se(i,!1);break;case"ArrowUp":case"ArrowDown":if(typeof m=="undefined")Se(i);else{let u=[i,...Q(":not(details) > [href], summary, details[open] [href]",a)],b=Math.max(0,(Math.max(0,u.indexOf(m))+u.length+(p.type==="ArrowUp"?-1:1))%u.length);Se(u[b])}p.claim();break;default:i!==$e()&&Se(i)}}),r.pipe(k(({mode:p})=>p==="global")).subscribe(p=>{switch(p.type){case"f":case"s":case"/":Se(i),on(i),p.claim();break}});let l=Ti(i,n);return R(l,Oi(a,n,{query$:l}))}catch(n){return e.hidden=!0,X}}function Qa(e,{viewport$:t,main$:r}){let o=e.parentElement.offsetTop-e.parentElement.parentElement.offsetTop;return G([r,t]).pipe(f(([{offset:n,height:i},{offset:{y:a}}])=>(i=i+Math.min(o,Math.max(0,a-n))-o,{height:i,locked:a>=n+o})),z((n,i)=>n.height===i.height&&n.locked===i.locked))}function Pr(e,o){var n=o,{header$:t}=n,r=zr(n,["header$"]);let i=new M;return i.pipe(Y(J),pe(t)).subscribe({next([{height:a},{height:s}]){qn(e,a),Nn(e,s)},complete(){zn(e),Qn(e)}}),Qa(e,r).pipe(H(i),P(()=>i.complete()),f(a=>$({ref:e},a)))}function Mi(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return ut(we(`${r}/releases/latest`).pipe(f(o=>({version:o.tag_name})),Pe({})),we(r).pipe(f(o=>({stars:o.stargazers_count,forks:o.forks_count})),Pe({}))).pipe(f(([o,n])=>$($({},o),n)))}else{let r=`https://api.github.com/repos/${e}`;return we(r).pipe(f(o=>({repositories:o.public_repos})),Pe({}))}}function Ai(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return we(r).pipe(f(({star_count:o,forks_count:n})=>({stars:o,forks:n})),Pe({}))}function Li(e){let[t]=e.match(/(git(?:hub|lab))/i)||[];switch(t.toLowerCase()){case"github":let[,r,o]=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);return Mi(r,o);case"gitlab":let[,n,i]=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i);return Ai(n,i);default:return X}}var Ka;function Ba(e){return Ka||(Ka=Oe(()=>{let t=sessionStorage.getItem(__prefix("__source"));if(t)return F(JSON.parse(t));{let r=Li(e.href);return r.subscribe(o=>{try{sessionStorage.setItem(__prefix("__source"),JSON.stringify(o))}catch(n){}}),r}}).pipe(Ge(()=>X),k(t=>Object.keys(t).length>0),f(t=>({facts:t})),re(1)))}function ki(e){let t=new M;return t.subscribe(({facts:r})=>{Kn(e,ti(r)),Bn(e,"done")}),Ba(e).pipe(H(t),P(()=>t.complete()),f(r=>$({ref:e},r)))}function Ja(e,{viewport$:t,header$:r}){return He(document.body).pipe(E(()=>Bt(e,{header$:r,viewport$:t})),f(({offset:{y:o}})=>({hidden:o>=10})),W("hidden"))}function Ci(e,t){let r=new M;return r.pipe(Y(J)).subscribe({next({hidden:o}){o?Jn(e,"hidden"):jr(e)},complete(){jr(e)}}),Ja(e,t).pipe(H(r),P(()=>r.complete()),f(o=>$({ref:e},o)))}function Ya(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(f(a=>24+a.height));return He(document.body).pipe(W("height"),f(()=>{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)}),f(a=>new Map([...a].sort(([,s],[,c])=>s-c))),E(a=>G([n,t]).pipe(yr(([s,c],[l,{offset:{y:p}}])=>{for(;c.length;){let[,m]=c[0];if(m-l=p)c=[s.pop(),...c];else break}return[s,c]},[[],[...a]]),z((s,c)=>s[0]===c[0]&&s[1]===c[1])))).pipe(f(([a,s])=>({prev:a.map(([c])=>c),next:s.map(([c])=>c)})),V({prev:[],next:[]}),ve(2,1),f(([a,s])=>a.prev.length{for(let[a]of i)An(a),_n(a);for(let[a,[s]]of n.entries())Mn(s,a===n.length-1),On(s,"blur")});let o=Q("[href^=\\#]",e);return Ya(o,t).pipe(H(r),P(()=>r.complete()),f(n=>$({ref:e},n)))}function Ga(e,{viewport$:t,main$:r}){let o=t.pipe(f(({offset:{y:i}})=>i),ve(2,1),f(([i,a])=>i>a&&a),z()),n=r.pipe(W("active"));return G([n,o]).pipe(f(([{active:i},a])=>({hidden:!(i&&a)})),z((i,a)=>i.hidden===a.hidden))}function ji(e,{viewport$:t,header$:r,main$:o}){let n=new M;return n.pipe(Y(J),pe(r.pipe(W("height")))).subscribe({next([{hidden:i},{height:a}]){Gn(e,a+16),i?(Yn(e,"hidden"),Se(e,!1)):Fr(e)},complete(){Xn(e),Fr(e)}}),Ga(e,{viewport$:t,header$:r,main$:o}).pipe(H(n),P(()=>n.complete()),f(i=>$({ref:e},i)))}function Fi({document$:e,tablet$:t}){e.pipe(E(()=>F(...Q("[data-md-state=indeterminate]"))),H(r=>{r.indeterminate=!0,r.checked=!1}),te(r=>O(r,"change").pipe(Or(()=>r.hasAttribute("data-md-state")),oe(r))),pe(t)).subscribe(([r,o])=>{r.removeAttribute("data-md-state"),o&&(r.checked=!1)})}function Xa(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Ii({document$:e}){e.pipe(E(()=>F(...Q("[data-md-scrollfix]"))),H(t=>t.removeAttribute("data-md-scrollfix")),k(Xa),te(t=>O(t,"touchstart").pipe(oe(t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}function Ri({viewport$:e,tablet$:t}){G([Qt("search"),t]).pipe(f(([r,o])=>r&&!o),E(r=>F(r).pipe(_e(r?400:100),Y(J))),pe(e)).subscribe(([r,{offset:{y:o}}])=>{r?En(document.body,o):Tn(document.body)})}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var tt=Xo(),$r=ln(),Wr=fn(),Vr=an(),ue=gn(),Zt=mt("(min-width: 960px)"),Pi=mt("(min-width: 1220px)"),$i=mn(),Wi=se(),Za=document.forms.namedItem("search")?(__search==null?void 0:__search.index)||we(`${Wi.base}/search/search_index.json`):X,Ur=new M;bi({alert$:Ur});Jt("navigation.instant")&&vi({document$:tt,location$:$r,viewport$:ue});var Ui;((Ui=Wi.version)==null?void 0:Ui.provider)==="mike"&&Ei();R($r,Wr).pipe(_e(125)).subscribe(()=>{Ve("drawer",!1),Ve("search",!1)});Vr.pipe(k(({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}});Fi({document$:tt,tablet$:Zt});Ii({document$:tt});Ri({viewport$:ue,tablet$:Zt});var Fe=ui(je("header"),{viewport$:ue}),er=tt.pipe(f(()=>je("main")),E(e=>di(e,{viewport$:ue,header$:Fe})),re(1)),es=R(...de("dialog").map(e=>pi(e,{alert$:Ur})),...de("header").map(e=>fi(e,{viewport$:ue,header$:Fe,main$:er})),...de("palette").map(e=>hi(e)),...de("search").map(e=>_i(e,{index$:Za,keyboard$:Vr})),...de("source").map(e=>ki(e))),ts=Oe(()=>R(...de("content").map(e=>li(e,{target$:Wr,viewport$:ue,print$:$i})),...de("header-title").map(e=>mi(e,{viewport$:ue,header$:Fe})),...de("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Ar(Pi,()=>Pr(e,{viewport$:ue,header$:Fe,main$:er})):Ar(Zt,()=>Pr(e,{viewport$:ue,header$:Fe,main$:er}))),...de("tabs").map(e=>Ci(e,{viewport$:ue,header$:Fe})),...de("toc").map(e=>Hi(e,{viewport$:ue,header$:Fe})),...de("top").map(e=>ji(e,{viewport$:ue,header$:Fe,main$:er})))),Vi=tt.pipe(E(()=>ts),ft(es),re(1));Vi.subscribe();window.document$=tt;window.location$=$r;window.target$=Wr;window.keyboard$=Vr;window.viewport$=ue;window.tablet$=Zt;window.screen$=Pi;window.print$=$i;window.alert$=Ur;window.component$=Vi;})(); //# sourceMappingURL=bundle.ddd52ceb.min.js.map