(()=>{var ea=Object.create;var St=Object.defineProperty;var ta=Object.getOwnPropertyDescriptor;var ra=Object.getOwnPropertyNames,wt=Object.getOwnPropertySymbols,oa=Object.getPrototypeOf,ir=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={}))ir.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)ir.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))!ir.call(e,o)&&o!=="default"&&St(e,o,{get:()=>t[o],enumerable:!(r=ta(t,o))||r.enumerable});return e},pt=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((ar,Br)=>{(function(e,t){typeof ar=="object"&&typeof Br!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(ar,function(){"use strict";function e(r){var o=!0,n=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(w){return!!(w&&w!==document&&w.nodeName!=="HTML"&&w.nodeName!=="BODY"&&"classList"in w&&"contains"in w.classList)}function c(w){var We=w.type,Te=w.tagName;return!!(Te==="INPUT"&&a[We]&&!w.readOnly||Te==="TEXTAREA"&&!w.readOnly||w.isContentEditable)}function l(w){w.classList.contains("focus-visible")||(w.classList.add("focus-visible"),w.setAttribute("data-focus-visible-added",""))}function p(w){!w.hasAttribute("data-focus-visible-added")||(w.classList.remove("focus-visible"),w.removeAttribute("data-focus-visible-added"))}function m(w){w.metaKey||w.altKey||w.ctrlKey||(s(r.activeElement)&&l(r.activeElement),o=!0)}function f(w){o=!1}function d(w){!s(w.target)||(o||c(w.target))&&l(w.target)}function v(w){!s(w.target)||(w.target.classList.contains("focus-visible")||w.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout(function(){n=!1},100),p(w.target))}function h(w){document.visibilityState==="hidden"&&(n&&(o=!0),W())}function W(){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 B(){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,B())}document.addEventListener("keydown",m,!0),document.addEventListener("mousedown",f,!0),document.addEventListener("pointerdown",f,!0),document.addEventListener("touchstart",f,!0),document.addEventListener("visibilitychange",h,!0),W(),r.addEventListener("focus",d,!0),r.addEventListener("blur",v,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var vo=Et((cs,_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,sr,io,ao,so,Ke,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(d){try{f(a.next(d))}catch(v){l(v)}}function m(d){try{f(a.throw(d))}catch(v){l(v)}}function f(d){d.done?c(d.value):s(d.value).then(p,m)}f((a=a.apply(o,n||[])).next())})},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(f){return function(d){return m([f,d])}}function m(f){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,s&&(c=f[0]&2?s.return:f[0]?s.throw||((c=s.return)&&c.call(s),0):s.next)&&!(c=c.call(s,f[1])).done)return c;switch(s=0,c&&(f=[f[0]&2,c.value]),f[0]){case 0:case 1:c=f;break;case 4:return i.label++,{value:f[1],done:!1};case 5:i.label++,s=f[1],f=[0];continue;case 7:f=i.ops.pop(),i.trys.pop();continue;default:if(c=i.trys,!(c=c.length>0&&c[c.length-1])&&(f[0]===6||f[0]===2)){i=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]=o.length&&(o=void 0),{value:o&&o[a++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},sr=function(o,n){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var a=i.call(o),s,c=[],l;try{for(;(n===void 0||n-- >0)&&!(s=a.next()).done;)c.push(s.value)}catch(p){l={error:p}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(l)throw l.error}}return c},io=function(){for(var o=[],n=0;n1||p(h,W)})})}function p(h,W){try{m(a[h](W))}catch(B){v(c[0][3],B)}}function m(h){h.value instanceof Ke?Promise.resolve(h.value.v).then(f,d):v(c[0][2],h)}function f(h){p("next",h)}function d(h){p("throw",h)}function v(h,W){h(W),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:Ke(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(f){c({value:f,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",sr),e("__spread",io),e("__spreadArrays",ao),e("__spreadArray",so),e("__await",Ke),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 Fr=Et((gt,jr)=>{/*! * clipboard.js v2.0.8 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */(function(t,r){typeof gt=="object"&&typeof jr=="object"?jr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof gt=="object"?gt.ClipboardJS=r():t.ClipboardJS=r()})(gt,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 f(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(b){return typeof b}:f=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},f(_)}function d(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")}function v(_,x){for(var b=0;b0&&arguments[0]!==void 0?arguments[0]:{};this.action=b.action,this.container=b.container,this.emitter=b.emitter,this.target=b.target,this.text=b.text,this.trigger=b.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var b=document.documentElement.getAttribute("dir")==="rtl";this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[b?"right":"left"]="-9999px";var k=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(k,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var b=this,k=this.createFakeElement();this.fakeHandlerCallback=function(){return b.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(k),this.selectedText=m()(k),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=m()(this.target),this.copyText()}},{key:"copyText",value:function(){var b;try{b=document.execCommand(this.action)}catch(k){b=!1}this.handleResult(b)}},{key:"handleResult",value:function(b){this.emitter.emit(b?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=b,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(b){if(b!==void 0)if(b&&f(b)==="object"&&b.nodeType===1){if(this.action==="copy"&&b.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(b.hasAttribute("readonly")||b.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=b}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),_}(),B=W;function j(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?j=function(b){return typeof b}:j=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},j(_)}function w(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")}function We(_,x){for(var b=0;b0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof R.action=="function"?R.action:this.defaultAction,this.target=typeof R.target=="function"?R.target:this.defaultTarget,this.text=typeof R.text=="function"?R.text:this.defaultText,this.container=j(R.container)==="object"?R.container:document.body}},{key:"listenClick",value:function(R){var Z=this;this.listener=l()(R,"click",function(lt){return Z.onClick(lt)})}},{key:"onClick",value:function(R){var Z=R.delegateTarget||R.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new B({action:this.action(Z),target:this.target(Z),text:this.text(Z),container:this.container,trigger:Z,emitter:this})}},{key:"defaultAction",value:function(R){return nr("action",R)}},{key:"defaultTarget",value:function(R){var Z=nr("target",R);if(Z)return document.querySelector(Z)}},{key:"defaultText",value:function(R){return nr("text",R)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Z=typeof R=="string"?[R]:R,lt=!!document.queryCommandSupported;return Z.forEach(function(Zi){lt=lt&&!!document.queryCommandSupported(Zi)}),lt}}]),b}(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,f,d,v){var h=l.apply(this,arguments);return p.addEventListener(f,h,v),{destroy:function(){p.removeEventListener(f,h,v)}}}function c(p,m,f,d,v){return typeof p.addEventListener=="function"?s.apply(null,arguments):typeof f=="function"?s.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(h){return s(h,m,f,d,v)}))}function l(p,m,f,d){return function(v){v.delegateTarget=a(v.target,m),v.delegateTarget&&d.call(p,v)}}o.exports=c},879:function(o,n){n.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},n.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||n.node(i[0]))},n.string=function(i){return typeof i=="string"||i instanceof String},n.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}},370:function(o,n,i){var a=i(879),s=i(438);function c(f,d,v){if(!f&&!d&&!v)throw new Error("Missing required arguments");if(!a.string(d))throw new TypeError("Second argument must be a String");if(!a.fn(v))throw new TypeError("Third argument must be a Function");if(a.node(f))return l(f,d,v);if(a.nodeList(f))return p(f,d,v);if(a.string(f))return m(f,d,v);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function l(f,d,v){return f.addEventListener(d,v),{destroy:function(){f.removeEventListener(d,v)}}}function p(f,d,v){return Array.prototype.forEach.call(f,function(h){h.addEventListener(d,v)}),{destroy:function(){Array.prototype.forEach.call(f,function(h){h.removeEventListener(d,v)})}}}function m(f,d,v){return s(document.body,f,d,v)}o.exports=c},817:function(o){function n(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var c=window.getSelection(),l=document.createRange();l.selectNodeContents(i),c.removeAllRanges(),c.addRange(l),a=c.toString()}return a}o.exports=n},279:function(o){function n(){}n.prototype={on:function(i,a,s){var c=this.e||(this.e={});return(c[i]||(c[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var c=this;function l(){c.off(i,l),a.apply(s,arguments)}return l._=a,this.on(i,l,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),c=0,l=s.length;for(c;c{/*! * escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed */"use strict";var Qa=/["'&<>]/;gi.exports=Ka;function Ka(e){var t=""+e,r=Qa.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?cr:(a.push(r),new ae(function(){return Oe(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,a=o.isStopped;n?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new A;return r.source=this,r},t.create=function(r,o){return new Co(r,o)},t}(A);var Co=function(e){G(t,e);function t(r,o){var n=e.call(this)||this;return n.destination=r,n.source=o,n}return t.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},t.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},t.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},t.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:cr},t}(T);var mt={now:function(){return(mt.delegate||Date).now()},delegate:void 0};var dt=function(e){G(t,e);function t(r,o,n){r===void 0&&(r=1/0),o===void 0&&(o=1/0),n===void 0&&(n=mt);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=Ye.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,o,n){if(n===void 0&&(n=0),n!=null&&n>0||n==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,r,o,n);r.actions.length===0&&(Ye.cancelAnimationFrame(o),r._scheduled=void 0)},t}(jt);var Fo=function(e){G(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 ie(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new T}:t,o=e.resetOnError,n=o===void 0?!0:o,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,c=s===void 0?!0:s;return function(l){var p=null,m=null,f=null,d=0,v=!1,h=!1,W=function(){m==null||m.unsubscribe(),m=null},B=function(){W(),p=f=null,v=h=!1},j=function(){var w=p;B(),w==null||w.unsubscribe()};return g(function(w,We){d++,!h&&!v&&W();var Te=f=f!=null?f:r();We.add(function(){d--,d===0&&!h&&!v&&(m=Tr(j,c))}),Te.subscribe(We),p||(p=new ft({next:function(Qe){return Te.next(Qe)},error:function(Qe){h=!0,W(),m=Tr(B,n,Qe),Te.error(Qe)},complete:function(){v=!0,W(),m=Tr(B,a),Te.complete()}}),ye(w).subscribe(p))})(l)}}function Tr(e,t){for(var r=[],o=2;ot==="focus"),N(e===De()))}var rn=new T,Ha=_e(()=>F(new ResizeObserver(e=>{for(let t of e)rn.next(t)}))).pipe(O(e=>J.pipe(N(e)).pipe(I(()=>e.disconnect()))),re(1));function Fe(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Bt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function Ie(e){return Ha.pipe(L(t=>t.observe(e)),O(t=>rn.pipe(M(({target:r})=>r===e),I(()=>t.unobserve(e)),u(()=>Fe(e)))),N(Fe(e)))}function on(e){return{x:e.scrollLeft,y:e.scrollTop}}function ja(e){return $(E(e,"scroll"),E(window,"resize")).pipe(u(()=>on(e)),N(on(e)))}function nn(e,t=16){return ja(e).pipe(u(({y:r})=>{let o=Fe(e),n=Bt(e);return r>=n.height-o.height-t}),D())}function an(e){if(e instanceof HTMLInputElement)e.select();else throw new Error("Not implemented")}var Jt={drawer:he("[data-md-toggle=drawer]"),search:he("[data-md-toggle=search]")};function sn(e){return Jt[e].checked}function Re(e,t){Jt[e].checked!==t&&Jt[e].click()}function Yt(e){let t=Jt[e];return E(t,"change").pipe(u(()=>t.checked),N(t.checked))}function Fa(e){switch(e.tagName){case"INPUT":case"SELECT":case"TEXTAREA":return!0;default:return e.isContentEditable}}function cn(){return E(window,"keydown").pipe(M(e=>!(e.metaKey||e.ctrlKey)),u(e=>({mode:sn("search")?"search":"global",type:e.key,claim(){e.preventDefault(),e.stopPropagation()}})),M(({mode:e})=>{if(e==="global"){let t=De();if(typeof t!="undefined")return!Fa(t)}return!0}),ie())}function Pe(){return new URL(location.href)}function ln(e){location.href=e.href}function pn(){return new T}function un(){return location.hash.substring(1)}function fn(e){let t=nt("a");t.href=e,t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Ia(){return E(window,"hashchange").pipe(u(un),N(un()),M(e=>e.length>0),ie())}function mn(){return Ia().pipe(O(e=>F(se(`[id="${e}"]`))))}function xt(e){let t=matchMedia(e);return Qt(r=>t.addListener(()=>r(t.matches))).pipe(N(t.matches))}function dn(){return E(window,"beforeprint").pipe(oe(void 0))}function Cr(e,t){return e.pipe(O(r=>r?t():J))}function Gt(e,t={credentials:"same-origin"}){return ye(fetch(`${e}`,t)).pipe(M(r=>r.status===200))}function we(e,t){return Gt(e,t).pipe(O(r=>r.json()),re(1))}function hn(e,t){let r=new DOMParser;return Gt(e,t).pipe(O(o=>o.text()),u(o=>r.parseFromString(o,"text/xml")),re(1))}function bn(){return{x:Math.max(0,pageXOffset),y:Math.max(0,pageYOffset)}}function Hr({x:e,y:t}){window.scrollTo(e||0,t||0)}function vn(){return $(E(window,"scroll",{passive:!0}),E(window,"resize",{passive:!0})).pipe(u(bn),N(bn()))}function xn(){return{width:innerWidth,height:innerHeight}}function gn(){return E(window,"resize",{passive:!0}).pipe(u(xn),N(xn()))}function yn(){return Q([vn(),gn()]).pipe(u(([e,t])=>({offset:e,size:t})),re(1))}function Xt(e,{viewport$:t,header$:r}){let o=t.pipe(U("size")),n=Q([o,r]).pipe(u(()=>({x:e.offsetLeft,y:e.offsetTop})));return Q([r,t,n]).pipe(u(([{height:i},{offset:a,size:s},{x:c,y:l}])=>({offset:{x:a.x-c,y:a.y-l+i},size:s})))}function Sn(e,{tx$:t}){let r=E(e,"message").pipe(u(({data:o})=>o));return t.pipe(Lr(()=>r,{leading:!0,trailing:!0}),L(o=>e.postMessage(o)),_r(r),ie())}var Ra=he("#__config"),it=JSON.parse(Ra.textContent);it.base=new URL(it.base,Pe()).toString().replace(/\/$/,"");function ce(){return it}function Ae(e){return it.features.includes(e)}function Y(e,t){return typeof t!="undefined"?it.translations[e].replace("#",t.toString()):it.translations[e]}function Ee(e,t=document){return he(`[data-md-component=${e}]`,t)}function ne(e,t=document){return K(`[data-md-component=${e}]`,t)}var ii=pt(Fr());function wn(e,t=0){e.setAttribute("tabindex",t.toString())}function En(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 An(e,t){e.classList.toggle("md-nav__link--active",t)}function Ln(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 jn(e,t){e.setAttribute("data-md-state",t)}function Fn(e){e.removeAttribute("data-md-state")}function In(e,t){e.setAttribute("data-md-state",t)}function Rn(e){e.removeAttribute("data-md-state")}function Pn(e,t){e.placeholder=t}function $n(e){e.placeholder=Y("search.placeholder")}function Wn(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)Wn(e,r)}function V(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)Wn(o,n);return o}function Vn(e,t){let r=t;if(e.length>r){for(;e[r]!==" "&&--r>0;);return`${e.substring(0,r)}...`}return e}function Zt(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function Un(e,t){switch(t){case 0:e.textContent=Y("search.result.none");break;case 1:e.textContent=Y("search.result.one");break;default:e.textContent=Y("search.result.other",Zt(t))}}function Ir(e){e.textContent=Y("search.result.placeholder")}function Nn(e,t){e.appendChild(t)}function Dn(e){e.innerHTML=""}function zn(e,t){e.style.top=`${t}px`}function qn(e){e.style.top=""}function Qn(e,t){let r=e.firstElementChild;r.style.height=`${t-2*r.offsetTop}px`}function Kn(e){let t=e.firstElementChild;t.style.height=""}function Bn(e,t){e.lastElementChild.appendChild(t)}function Jn(e,t){e.lastElementChild.setAttribute("data-md-state",t)}function Yn(e,t){e.setAttribute("data-md-state",t)}function Rr(e){e.removeAttribute("data-md-state")}function Gn(e,t){e.setAttribute("data-md-state",t)}function Pr(e){e.removeAttribute("data-md-state")}function Xn(e,t){e.style.top=`${t}px`}function Zn(e){e.style.top=""}function ei(e){return V("button",{class:"md-clipboard md-icon",title:Y("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}var qe;(function(r){r[r.TEASER=1]="TEASER",r[r.PARENT=2]="PARENT"})(qe||(qe={}));function $r(e,t){let r=t&2,o=t&1,n=Object.keys(e.terms).filter(a=>!e.terms[a]).map(a=>[V("del",null,a)," "]).flat().slice(0,-1),i=new URL(e.location);return Ae("search.highlight")&&i.searchParams.set("h",Object.entries(e.terms).filter(([,a])=>a).reduce((a,[s])=>`${a} ${s}`.trim(),"")),V("a",{href:`${i}`,class:"md-search-result__link",tabIndex:-1},V("article",{class:["md-search-result__article",...r?["md-search-result__article--document"]:[]].join(" "),"data-md-score":e.score.toFixed(2)},r>0&&V("div",{class:"md-search-result__icon md-icon"}),V("h1",{class:"md-search-result__title"},e.title),o>0&&e.text.length>0&&V("p",{class:"md-search-result__teaser"},Vn(e.text,320)),o>0&&n.length>0&&V("p",{class:"md-search-result__terms"},Y("search.result.term.missing"),": ",n)))}function ti(e){let t=e[0].score,r=[...e],o=r.findIndex(l=>!l.location.includes("#")),[n]=r.splice(o,1),i=r.findIndex(l=>l.score$r(l,1)),...s.length?[V("details",{class:"md-search-result__more"},V("summary",{tabIndex:-1},s.length>0&&s.length===1?Y("search.result.more.one"):Y("search.result.more.other",s.length)),s.map(l=>$r(l,1)))]:[]];return V("li",{class:"md-search-result__item"},c)}function ri(e){return V("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>V("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Zt(r):r)))}function oi(e){return V("div",{class:"md-typeset__scrollwrap"},V("div",{class:"md-typeset__table"},e))}function Pa(e){let t=ce(),r=new URL(`${e.version}/`,t.base);return V("li",{class:"md-version__item"},V("a",{href:r.toString(),class:"md-version__link"},e.title))}function ni(e){let t=ce(),[,r]=t.base.match(/([^/]+)\/?$/),o=e.find(({version:n,aliases:i})=>n===r||i.includes(r))||e[0];return V("div",{class:"md-version"},V("button",{class:"md-version__current","aria-label":Y("select.version.title")},o.title),V("ul",{class:"md-version__list"},e.map(Pa)))}var $a=0;function Wa(e,{viewport$:t}){let r=F(e).pipe(O(o=>{let n=o.closest("[data-tabs]");return n instanceof HTMLElement?$(...K("input",n).map(i=>E(i,"change"))):J}));return $(t.pipe(U("size")),r).pipe(u(()=>{let o=Fe(e);return{scroll:Bt(e).width>o.width}}),U("scroll"))}function ai(e,t){let r=new T;if(r.pipe(ue(xt("(hover)"))).subscribe(([{scroll:o},n])=>{o&&n?wn(e):En(e)}),ii.default.isSupported()){let o=e.closest("pre");o.id=`__code_${$a++}`,o.insertBefore(ei(o.id),e)}return Wa(e,t).pipe(L(r),I(()=>r.complete()),u(o=>P({ref:e},o)))}function Va(e,{target$:t,print$:r}){return t.pipe(u(o=>o.closest("details:not([open])")),M(o=>e===o),Ne(r),oe(e))}function si(e,t){let r=new T;return r.subscribe(()=>{e.setAttribute("open",""),e.scrollIntoView()}),Va(e,t).pipe(L(r),I(()=>r.complete()),oe({ref:e}))}var ci=nt("table");function li(e){return ze(e,ci),ze(ci,oi(e)),F({ref:e})}function pi(e,{target$:t,viewport$:r,print$:o}){return $(...K("pre > code",e).map(n=>ai(n,{viewport$:r})),...K("table:not([class])",e).map(n=>li(n)),...K("details",e).map(n=>si(n,{target$:t,print$:o})))}function Ua(e,{alert$:t}){return t.pipe(O(r=>$(F(!0),F(!1).pipe(Me(2e3))).pipe(u(o=>({message:r,open:o})))))}function ui(e,t){let r=new T;return r.pipe(q(X)).subscribe(({message:o,open:n})=>{kn(e,o),n?Cn(e,"open"):Hn(e)}),Ua(e,t).pipe(L(r),I(()=>r.complete()),u(o=>P({ref:e},o)))}function Na({viewport$:e}){if(!Ae("header.autohide"))return F(!1);let t=e.pipe(u(({offset:{y:n}})=>n),xe(2,1),u(([n,i])=>[nMath.abs(i-n.y)>100),u(([,[n]])=>n),D()),o=Yt("search");return Q([e,o]).pipe(u(([{offset:n},i])=>n.y>400&&!i),D(),O(n=>n?r:F(!1)),N(!1))}function fi(e,t){return _e(()=>{let r=getComputedStyle(e);return F(r.position==="sticky"||r.position==="-webkit-sticky")}).pipe(rt(Ie(e),Na(t)),u(([r,{height:o},n])=>({height:r?o:0,sticky:r,hidden:n})),D((r,o)=>r.sticky===o.sticky&&r.height===o.height&&r.hidden===o.hidden),re(1))}function mi(e,{header$:t,main$:r}){let o=new T;return o.pipe(U("active"),rt(t),q(X)).subscribe(([{active:n},{hidden:i}])=>{n?jn(e,i?"hidden":"shadow"):Fn(e)}),r.subscribe(n=>o.next(n)),t.pipe(u(n=>P({ref:e},n)))}function Da(e,{viewport$:t,header$:r}){return Xt(e,{header$:r,viewport$:t}).pipe(u(({offset:{y:o}})=>{let{height:n}=Fe(e);return{active:o>=n}}),U("active"))}function di(e,t){let r=new T;r.pipe(q(X)).subscribe(({active:n})=>{n?In(e,"active"):Rn(e)});let o=se("article h1");return typeof o=="undefined"?J:Da(o,t).pipe(L(r),I(()=>r.complete()),u(n=>P({ref:e},n)))}function hi(e,{viewport$:t,header$:r}){let o=r.pipe(u(({height:i})=>i),D()),n=o.pipe(O(()=>Ie(e).pipe(u(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),U("bottom"))));return Q([o,n,t]).pipe(u(([i,{top:a,bottom:s},{offset:{y:c},size:{height:l}}])=>(l=Math.max(0,l-Math.max(0,a-c,i)-Math.max(0,l+c-s)),{offset:a-i,height:l,active:a-i<=c})),D((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function za(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=>E(n,"change").pipe(oe(n))),N(e[Math.max(0,r.index)]),u(n=>({index:e.indexOf(n),color:{scheme:n.getAttribute("data-md-color-scheme"),primary:n.getAttribute("data-md-color-primary"),accent:n.getAttribute("data-md-color-accent")}})),re(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.complete()),u(o=>P({ref:e},o)))}var Wr=pt(Fr());function vi({alert$:e}){Wr.default.isSupported()&&new A(t=>{new Wr.default("[data-clipboard-target], [data-clipboard-text]").on("success",r=>t.next(r))}).subscribe(()=>e.next(Y("clipboard.copied")))}function qa(e){if(e.length<2)return e;let[t,r]=e.sort((i,a)=>i.length-a.length).map(i=>i.replace(/[^/]+$/,"")),o=0;if(t===r)o=t.length;else for(;t.charCodeAt(o)===r.charCodeAt(o);)o++;let n=ce();return e.map(i=>i.replace(t.slice(0,o),`${n.base}/`))}function xi({document$:e,location$:t,viewport$:r}){let o=ce();if(location.protocol==="file:")return;"scrollRestoration"in history&&(history.scrollRestoration="manual",E(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));let n=se("link[rel=icon]");typeof n!="undefined"&&(n.href=n.href);let i=hn(`${o.base}/sitemap.xml`).pipe(u(l=>qa(K("loc",l).map(p=>p.textContent))),O(l=>E(document.body,"click").pipe(M(p=>!p.metaKey&&!p.ctrlKey),O(p=>{if(p.target instanceof Element){let m=p.target.closest("a");if(m&&!m.target&&l.includes(m.href))return p.preventDefault(),F({url:new URL(m.href)})}return J}))),ie()),a=E(window,"popstate").pipe(M(l=>l.state!==null),u(l=>({url:new URL(location.href),offset:l.state})),ie());$(i,a).pipe(D((l,p)=>l.url.href===p.url.href),u(({url:l})=>l)).subscribe(t);let s=t.pipe(U("pathname"),O(l=>Gt(l.href).pipe(tt(()=>(ln(l),J)))),ie());i.pipe(ot(s)).subscribe(({url:l})=>{history.pushState({},"",`${l}`)});let c=new DOMParser;s.pipe(O(l=>l.text()),u(l=>c.parseFromString(l,"text/html"))).subscribe(e),$(i,a).pipe(ot(e)).subscribe(({url:l,offset:p})=>{l.hash&&!p?fn(l.hash):Hr(p||{y:0})}),e.pipe(Kt(1)).subscribe(l=>{for(let p of["title","link[rel=canonical]","meta[name=author]","meta[name=description]","[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=logo], .md-logo","[data-md-component=skip]"]){let m=se(p),f=se(p,l);typeof m!="undefined"&&typeof f!="undefined"&&ze(m,f)}}),e.pipe(Kt(1),u(()=>Ee("container")),O(l=>F(...K("script",l))),gr(l=>{let p=nt("script");if(l.src){for(let m of l.getAttributeNames())p.setAttribute(m,l.getAttribute(m));return ze(l,p),new A(m=>{p.onload=()=>m.complete()})}else return p.textContent=l.textContent,ze(l,p),ve})).subscribe(),r.pipe(Or(i),yr(250),U("offset")).subscribe(({offset:l})=>{history.replaceState(l,"")}),$(i,a).pipe(xe(2,1),M(([l,p])=>l.url.pathname===p.url.pathname),u(([,l])=>l)).subscribe(({offset:l})=>{Hr(l||{y:0})})}var Ba=pt(yi());function Vr(e){let t=new RegExp(e.separator,"img"),r=(o,n,i)=>`${n}${i}`;return o=>{o=o.replace(/[\s*+\-:~^]+/g," ").trim();let n=new RegExp(`(^|${e.separator})(${o.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(t,"|")})`,"img");return i=>i.replace(n,r).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 Le;(function(n){n[n.SETUP=0]="SETUP",n[n.READY=1]="READY",n[n.QUERY=2]="QUERY",n[n.RESULT=3]="RESULT"})(Le||(Le={}));function at(e){return e.type===1}function wi(e){return e.type===2}function st(e){return e.type===3}function Ja({config:e,docs:t,index:r}){e.lang.length===1&&e.lang[0]==="en"&&(e.lang=[Y("search.config.lang")]),e.separator==="[\\s\\-]+"&&(e.separator=Y("search.config.separator"));let n={pipeline:Y("search.config.pipeline").split(/\s*,\s*/).filter(Boolean),suggestions:Ae("search.suggest")};return{config:e,docs:t,index:r,options:n}}function Ei(e,t){let r=ce(),o=new Worker(e),n=new T,i=Sn(o,{tx$:n}).pipe(u(a=>{if(st(a))for(let s of a.data.items)for(let c of s)c.location=`${r.base}/${c.location}`;return a}),ie());return ye(t).pipe(u(a=>({type:Le.SETUP,data:Ja(a)}))).subscribe(n.next.bind(n)),{tx$:n,rx$:i}}function Ti(){let e=ce();we(new URL("versions.json",e.base)).subscribe(t=>{he(".md-header__topic").appendChild(ni(t))})}function Ya(e,{rx$:t}){let r=(__search==null?void 0:__search.transform)||Si,o=tn(e),n=$(E(e,"keyup"),E(e,"focus").pipe(Me(1))).pipe(u(()=>r(e.value)),D()),i=Pe();return i.searchParams.has("q")&&(Re("search",!0),t.pipe(M(at),de(1)).subscribe(()=>{e.value=i.searchParams.get("q"),ge(e)})),Q([n,o]).pipe(u(([a,s])=>({value:a,focus:s})))}function Oi(e,{tx$:t,rx$:r}){let o=new T;return o.pipe(U("value"),u(({value:n})=>({type:Le.QUERY,data:n}))).subscribe(t.next.bind(t)),o.pipe(U("focus")).subscribe(({focus:n})=>{n?(Re("search",n),Pn(e,"")):$n(e)}),E(e.form,"reset").pipe(Mr(o.pipe(wr(1)))).subscribe(()=>ge(e)),Ya(e,{tx$:t,rx$:r}).pipe(L(o),I(()=>o.complete()),u(n=>P({ref:e},n)))}function _i(e,{rx$:t},{query$:r}){let o=new T,n=nn(e.parentElement).pipe(M(Boolean)),i=he(":scope > :first-child",e),a=he(":scope > :last-child",e);return t.pipe(M(at),de(1)).subscribe(()=>{Ir(i)}),o.pipe(q(X),ue(r)).subscribe(([{items:c},{value:l}])=>{l?Un(i,c.length):Ir(i)}),o.pipe(q(X),L(()=>Dn(a)),O(({items:c})=>$(F(...c.slice(0,10)),F(...c.slice(10)).pipe(xe(4),kr(n),O(([l])=>F(...l)))))).subscribe(c=>{Nn(a,ti(c))}),t.pipe(M(st),u(({data:c})=>c)).pipe(L(o),I(()=>o.complete()),u(c=>P({ref:e},c)))}function Ga(e,{query$:t}){return t.pipe(u(({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}`}),E(e,"click").subscribe(o=>o.preventDefault()),Ga(e,t).pipe(L(r),I(()=>r.complete()),u(o=>P({ref:e},o)))}function Ai(e,{rx$:t},{keyboard$:r}){let o=new T,n=Ee("search-query"),i=E(n,"keydown").pipe(q(Ce),u(()=>n.value),D());return o.pipe(rt(i),u(([{suggestions:s},c])=>{let l=c.split(/([\s-]+)/);if((s==null?void 0:s.length)&&l[l.length-1]){let p=s[s.length-1];p.startsWith(l[l.length-1])&&(l[l.length-1]=p)}else l.length=0;return l})).subscribe(s=>e.innerHTML=s.join("").replace(/\s/g," ")),r.pipe(M(({mode:s})=>s==="search")).subscribe(s=>{switch(s.type){case"ArrowRight":e.innerText.length&&n.selectionStart===n.value.length&&(n.value=e.innerText);break}}),t.pipe(M(st),u(({data:s})=>s)).pipe(L(o),I(()=>o.complete()),u(()=>({ref:e})))}function Li(e,{index$:t,keyboard$:r}){let o=ce();try{let n=Ei(o.search,t),i=Ee("search-query",e),a=Ee("search-result",e),{tx$:s,rx$:c}=n;s.pipe(M(wi),ot(c.pipe(M(at),de(1)))).subscribe(s.next.bind(s)),r.pipe(M(({mode:m})=>m==="search")).subscribe(m=>{let f=De();switch(m.type){case"Enter":if(f===i){let d=new Map;for(let v of K(":first-child [href]",a)){let h=v.firstElementChild;d.set(v,parseFloat(h.getAttribute("data-md-score")))}if(d.size){let[[v]]=[...d].sort(([,h],[,W])=>W-h);v.click()}m.claim()}break;case"Escape":case"Tab":Re("search",!1),ge(i,!1);break;case"ArrowUp":case"ArrowDown":if(typeof f=="undefined")ge(i);else{let d=[i,...K(":not(details) > [href], summary, details[open] [href]",a)],v=Math.max(0,(Math.max(0,d.indexOf(f))+d.length+(m.type==="ArrowUp"?-1:1))%d.length);ge(d[v])}m.claim();break;default:i!==De()&&ge(i)}}),r.pipe(M(({mode:m})=>m==="global")).subscribe(m=>{switch(m.type){case"f":case"s":case"/":ge(i),an(i),m.claim();break}});let l=Oi(i,n),p=_i(a,n,{query$:l});return $(l,p).pipe(Ne(...ne("search-share",e).map(m=>Mi(m,{query$:l})),...ne("search-suggest",e).map(m=>Ai(m,n,{keyboard$:r}))))}catch(n){return e.hidden=!0,J}}function ki(e,{index$:t,location$:r}){return Q([t,r.pipe(N(Pe()),M(o=>o.searchParams.has("h")))]).pipe(u(([o,n])=>Vr(o.config)(n.searchParams.get("h"))),u(o=>{var a;let n=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let s=i.nextNode();s;s=i.nextNode())if((a=s.parentElement)==null?void 0:a.offsetHeight){let c=s.textContent,l=o(c);l.length>c.length&&n.set(s,l)}for(let[s,c]of n){let{childNodes:l}=V("span",null,c);s.replaceWith(...Array.from(l))}return{ref:e,nodes:n}}))}function Xa(e,{viewport$:t,main$:r}){let o=e.parentElement.offsetTop-e.parentElement.parentElement.offsetTop;return Q([r,t]).pipe(u(([{offset:n,height:i},{offset:{y:a}}])=>(i=i+Math.min(o,Math.max(0,a-n))-o,{height:i,locked:a>=n+o})),D((n,i)=>n.height===i.height&&n.locked===i.locked))}function Ur(e,o){var n=o,{header$:t}=n,r=Kr(n,["header$"]);let i=new T;return i.pipe(q(X),ue(t)).subscribe({next([{height:a},{height:s}]){Qn(e,a),zn(e,s)},complete(){qn(e),Kn(e)}}),Xa(e,r).pipe(L(i),I(()=>i.complete()),u(a=>P({ref:e},a)))}function Ci(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return vt(we(`${r}/releases/latest`).pipe(u(o=>({version:o.tag_name})),Ue({})),we(r).pipe(u(o=>({stars:o.stargazers_count,forks:o.forks_count})),Ue({}))).pipe(u(([o,n])=>P(P({},o),n)))}else{let r=`https://api.github.com/repos/${e}`;return we(r).pipe(u(o=>({repositories:o.public_repos})),Ue({}))}}function Hi(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return we(r).pipe(u(({star_count:o,forks_count:n})=>({stars:o,forks:n})),Ue({}))}function ji(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 J}}var Za;function es(e){return Za||(Za=_e(()=>{let t=sessionStorage.getItem(__prefix("__source"));if(t)return F(JSON.parse(t));{let r=ji(e.href);return r.subscribe(o=>{try{sessionStorage.setItem(__prefix("__source"),JSON.stringify(o))}catch(n){}}),r}}).pipe(tt(()=>J),M(t=>Object.keys(t).length>0),u(t=>({facts:t})),re(1)))}function Fi(e){let t=new T;return t.subscribe(({facts:r})=>{Bn(e,ri(r)),Jn(e,"done")}),es(e).pipe(L(t),I(()=>t.complete()),u(r=>P({ref:e},r)))}function ts(e,{viewport$:t,header$:r}){return Ie(document.body).pipe(O(()=>Xt(e,{header$:r,viewport$:t})),u(({offset:{y:o}})=>({hidden:o>=10})),U("hidden"))}function Ii(e,t){let r=new T;return r.pipe(q(X)).subscribe({next({hidden:o}){o?Yn(e,"hidden"):Rr(e)},complete(){Rr(e)}}),ts(e,t).pipe(L(r),I(()=>r.complete()),u(o=>P({ref:e},o)))}function rs(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(u(a=>24+a.height));return Ie(document.body).pipe(U("height"),u(()=>{let a=[];return[...o].reduce((s,[c,l])=>{for(;a.length&&o.get(a[a.length-1]).tagName>=l.tagName;)a.pop();let p=l.offsetTop;for(;!p&&l.parentElement;)l=l.parentElement,p=l.offsetTop;return s.set([...a=[...a,c]].reverse(),p)},new Map)}),u(a=>new Map([...a].sort(([,s],[,c])=>s-c))),O(a=>Q([n,t]).pipe(Er(([s,c],[l,{offset:{y:p}}])=>{for(;c.length;){let[,m]=c[0];if(m-l=p)c=[s.pop(),...c];else break}return[s,c]},[[],[...a]]),D((s,c)=>s[0]===c[0]&&s[1]===c[1])))).pipe(u(([a,s])=>({prev:a.map(([c])=>c),next:s.map(([c])=>c)})),N({prev:[],next:[]}),xe(2,1),u(([a,s])=>a.prev.length{for(let[a]of i)Ln(a),Mn(a);for(let[a,[s]]of n.entries())An(s,a===n.length-1),_n(s,"blur")});let o=K("[href^=\\#]",e);return rs(o,t).pipe(L(r),I(()=>r.complete()),u(n=>P({ref:e},n)))}function os(e,{viewport$:t,main$:r}){let o=t.pipe(u(({offset:{y:i}})=>i),xe(2,1),u(([i,a])=>i>a&&a),D()),n=r.pipe(U("active"));return Q([n,o]).pipe(u(([{active:i},a])=>({hidden:!(i&&a)})),D((i,a)=>i.hidden===a.hidden))}function Pi(e,{viewport$:t,header$:r,main$:o}){let n=new T;return n.pipe(q(X),ue(r.pipe(U("height")))).subscribe({next([{hidden:i},{height:a}]){Xn(e,a+16),i?(Gn(e,"hidden"),ge(e,!1)):Pr(e)},complete(){Zn(e),Pr(e)}}),os(e,{viewport$:t,header$:r,main$:o}).pipe(L(n),I(()=>n.complete()),u(i=>P({ref:e},i)))}function $i({document$:e,tablet$:t}){e.pipe(O(()=>F(...K("[data-md-state=indeterminate]"))),L(r=>{r.indeterminate=!0,r.checked=!1}),te(r=>E(r,"change").pipe(Ar(()=>r.hasAttribute("data-md-state")),oe(r))),ue(t)).subscribe(([r,o])=>{r.removeAttribute("data-md-state"),o&&(r.checked=!1)})}function ns(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Wi({document$:e}){e.pipe(O(()=>F(...K("[data-md-scrollfix]"))),L(t=>t.removeAttribute("data-md-scrollfix")),M(ns),te(t=>E(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 Vi({viewport$:e,tablet$:t}){Q([Yt("search"),t]).pipe(u(([r,o])=>r&&!o),O(r=>F(r).pipe(Me(r?400:100),q(X))),ue(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 ct=en(),er=pn(),Nr=mn(),Dr=cn(),fe=yn(),tr=xt("(min-width: 960px)"),Ui=xt("(min-width: 1220px)"),Ni=dn(),Di=ce(),zi=document.forms.namedItem("search")?(__search==null?void 0:__search.index)||we(`${Di.base}/search/search_index.json`):J,zr=new T;vi({alert$:zr});Ae("navigation.instant")&&xi({document$:ct,location$:er,viewport$:fe});var Qi;((Qi=Di.version)==null?void 0:Qi.provider)==="mike"&&Ti();$(er,Nr).pipe(Me(125)).subscribe(()=>{Re("drawer",!1),Re("search",!1)});Dr.pipe(M(({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$:ct,tablet$:tr});Wi({document$:ct});Vi({viewport$:fe,tablet$:tr});var $e=fi(Ee("header"),{viewport$:fe}),rr=ct.pipe(u(()=>Ee("main")),O(e=>hi(e,{viewport$:fe,header$:$e})),re(1)),is=$(...ne("dialog").map(e=>ui(e,{alert$:zr})),...ne("header").map(e=>mi(e,{viewport$:fe,header$:$e,main$:rr})),...ne("palette").map(e=>bi(e)),...ne("search").map(e=>Li(e,{index$:zi,keyboard$:Dr})),...ne("source").map(e=>Fi(e))),as=_e(()=>$(...ne("content").map(e=>pi(e,{target$:Nr,viewport$:fe,print$:Ni})),...ne("content").map(e=>Ae("search.highlight")?ki(e,{index$:zi,location$:er}):J),...ne("header-title").map(e=>di(e,{viewport$:fe,header$:$e})),...ne("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Cr(Ui,()=>Ur(e,{viewport$:fe,header$:$e,main$:rr})):Cr(tr,()=>Ur(e,{viewport$:fe,header$:$e,main$:rr}))),...ne("tabs").map(e=>Ii(e,{viewport$:fe,header$:$e})),...ne("toc").map(e=>Ri(e,{viewport$:fe,header$:$e})),...ne("top").map(e=>Pi(e,{viewport$:fe,header$:$e,main$:rr})))),qi=ct.pipe(O(()=>as),Ne(is),re(1));qi.subscribe();window.document$=ct;window.location$=er;window.target$=Nr;window.keyboard$=Dr;window.viewport$=fe;window.tablet$=tr;window.screen$=Ui;window.print$=Ni;window.alert$=zr;window.component$=qi;})(); //# sourceMappingURL=bundle.716f8af4.min.js.map