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