pypa-hatch/1.6/assets/javascripts/bundle.b7e8f764.min.js

4 lines
118 KiB
JavaScript

"use strict";(()=>{var la=Object.create;var Mr=Object.defineProperty;var ua=Object.getOwnPropertyDescriptor;var ma=Object.getOwnPropertyNames,Ut=Object.getOwnPropertySymbols,da=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable;var ln=(e,t,r)=>t in e?Mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))Lr.call(t,r)&&ln(e,r,t[r]);if(Ut)for(var r of Ut(t))un.call(t,r)&&ln(e,r,t[r]);return e};var mn=(e,t)=>{var r={};for(var n in e)Lr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ut)for(var n of Ut(e))t.indexOf(n)<0&&un.call(e,n)&&(r[n]=e[n]);return r};var Ot=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ha=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ma(t))!Lr.call(e,o)&&o!==r&&Mr(e,o,{get:()=>t[o],enumerable:!(n=ua(t,o))||n.enumerable});return e};var it=(e,t,r)=>(r=e!=null?la(da(e)):{},ha(t||!e||!e.__esModule?Mr(r,"default",{value:e,enumerable:!0}):r,e));var hn=Ot((Ar,dn)=>{(function(e,t){typeof Ar=="object"&&typeof dn!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Ar,function(){"use strict";function e(r){var n=!0,o=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(M){return!!(M&&M!==document&&M.nodeName!=="HTML"&&M.nodeName!=="BODY"&&"classList"in M&&"contains"in M.classList)}function c(M){var qe=M.type,Ue=M.tagName;return!!(Ue==="INPUT"&&a[qe]&&!M.readOnly||Ue==="TEXTAREA"&&!M.readOnly||M.isContentEditable)}function p(M){M.classList.contains("focus-visible")||(M.classList.add("focus-visible"),M.setAttribute("data-focus-visible-added",""))}function f(M){!M.hasAttribute("data-focus-visible-added")||(M.classList.remove("focus-visible"),M.removeAttribute("data-focus-visible-added"))}function l(M){M.metaKey||M.altKey||M.ctrlKey||(s(r.activeElement)&&p(r.activeElement),n=!0)}function m(M){n=!1}function d(M){!s(M.target)||(n||c(M.target))&&p(M.target)}function h(M){!s(M.target)||(M.target.classList.contains("focus-visible")||M.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),f(M.target))}function b(M){document.visibilityState==="hidden"&&(o&&(n=!0),$())}function $(){document.addEventListener("mousemove",V),document.addEventListener("mousedown",V),document.addEventListener("mouseup",V),document.addEventListener("pointermove",V),document.addEventListener("pointerdown",V),document.addEventListener("pointerup",V),document.addEventListener("touchmove",V),document.addEventListener("touchstart",V),document.addEventListener("touchend",V)}function X(){document.removeEventListener("mousemove",V),document.removeEventListener("mousedown",V),document.removeEventListener("mouseup",V),document.removeEventListener("pointermove",V),document.removeEventListener("pointerdown",V),document.removeEventListener("pointerup",V),document.removeEventListener("touchmove",V),document.removeEventListener("touchstart",V),document.removeEventListener("touchend",V)}function V(M){M.target.nodeName&&M.target.nodeName.toLowerCase()==="html"||(n=!1,X())}document.addEventListener("keydown",l,!0),document.addEventListener("mousedown",m,!0),document.addEventListener("pointerdown",m,!0),document.addEventListener("touchstart",m,!0),document.addEventListener("visibilitychange",b,!0),$(),r.addEventListener("focus",d,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var bn=Ot(Cr=>{(function(e){var t=function(){try{return!!Symbol.iterator}catch(p){return!1}},r=t(),n=function(p){var f={next:function(){var l=p.shift();return{done:l===void 0,value:l}}};return r&&(f[Symbol.iterator]=function(){return f}),f},o=function(p){return encodeURIComponent(p).replace(/%20/g,"+")},i=function(p){return decodeURIComponent(String(p).replace(/\+/g," "))},a=function(){var p=function(l){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var m=typeof l;if(m!=="undefined")if(m==="string")l!==""&&this._fromString(l);else if(l instanceof p){var d=this;l.forEach(function(X,V){d.append(V,X)})}else if(l!==null&&m==="object")if(Object.prototype.toString.call(l)==="[object Array]")for(var h=0;h<l.length;h++){var b=l[h];if(Object.prototype.toString.call(b)==="[object Array]"||b.length!==2)this.append(b[0],b[1]);else throw new TypeError("Expected [string, any] as entry at index "+h+" of URLSearchParams's input")}else for(var $ in l)l.hasOwnProperty($)&&this.append($,l[$]);else throw new TypeError("Unsupported input's type for URLSearchParams")},f=p.prototype;f.append=function(l,m){l in this._entries?this._entries[l].push(String(m)):this._entries[l]=[String(m)]},f.delete=function(l){delete this._entries[l]},f.get=function(l){return l in this._entries?this._entries[l][0]:null},f.getAll=function(l){return l in this._entries?this._entries[l].slice(0):[]},f.has=function(l){return l in this._entries},f.set=function(l,m){this._entries[l]=[String(m)]},f.forEach=function(l,m){var d;for(var h in this._entries)if(this._entries.hasOwnProperty(h)){d=this._entries[h];for(var b=0;b<d.length;b++)l.call(m,d[b],h,this)}},f.keys=function(){var l=[];return this.forEach(function(m,d){l.push(d)}),n(l)},f.values=function(){var l=[];return this.forEach(function(m){l.push(m)}),n(l)},f.entries=function(){var l=[];return this.forEach(function(m,d){l.push([d,m])}),n(l)},r&&(f[Symbol.iterator]=f.entries),f.toString=function(){var l=[];return this.forEach(function(m,d){l.push(o(d)+"="+o(m))}),l.join("&")},e.URLSearchParams=p},s=function(){try{var p=e.URLSearchParams;return new p("?a=1").toString()==="a=1"&&typeof p.prototype.set=="function"&&typeof p.prototype.entries=="function"}catch(f){return!1}};s()||a();var c=e.URLSearchParams.prototype;typeof c.sort!="function"&&(c.sort=function(){var p=this,f=[];this.forEach(function(m,d){f.push([d,m]),p._entries||p.delete(d)}),f.sort(function(m,d){return m[0]<d[0]?-1:m[0]>d[0]?1:0}),p._entries&&(p._entries={});for(var l=0;l<f.length;l++)this.append(f[l][0],f[l][1])}),typeof c._fromString!="function"&&Object.defineProperty(c,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(p){if(this._entries)this._entries={};else{var f=[];this.forEach(function(h,b){f.push(b)});for(var l=0;l<f.length;l++)this.delete(f[l])}p=p.replace(/^\?/,"");for(var m=p.split("&"),d,l=0;l<m.length;l++)d=m[l].split("="),this.append(i(d[0]),d.length>1?i(d[1]):"")}})})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Cr);(function(e){var t=function(){try{var o=new e.URL("b","http://a");return o.pathname="c d",o.href==="http://a/c%20d"&&o.searchParams}catch(i){return!1}},r=function(){var o=e.URL,i=function(c,p){typeof c!="string"&&(c=String(c)),p&&typeof p!="string"&&(p=String(p));var f=document,l;if(p&&(e.location===void 0||p!==e.location.href)){p=p.toLowerCase(),f=document.implementation.createHTMLDocument(""),l=f.createElement("base"),l.href=p,f.head.appendChild(l);try{if(l.href.indexOf(p)!==0)throw new Error(l.href)}catch(M){throw new Error("URL unable to set base "+p+" due to "+M)}}var m=f.createElement("a");m.href=c,l&&(f.body.appendChild(m),m.href=m.href);var d=f.createElement("input");if(d.type="url",d.value=c,m.protocol===":"||!/:/.test(m.href)||!d.checkValidity()&&!p)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:m});var h=new e.URLSearchParams(this.search),b=!0,$=!0,X=this;["append","delete","set"].forEach(function(M){var qe=h[M];h[M]=function(){qe.apply(h,arguments),b&&($=!1,X.search=h.toString(),$=!0)}}),Object.defineProperty(this,"searchParams",{value:h,enumerable:!0});var V=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==V&&(V=this.search,$&&(b=!1,this.searchParams._fromString(this.search),b=!0))}})},a=i.prototype,s=function(c){Object.defineProperty(a,c,{get:function(){return this._anchorElement[c]},set:function(p){this._anchorElement[c]=p},enumerable:!0})};["hash","host","hostname","port","protocol"].forEach(function(c){s(c)}),Object.defineProperty(a,"search",{get:function(){return this._anchorElement.search},set:function(c){this._anchorElement.search=c,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(a,{toString:{get:function(){var c=this;return function(){return c.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(c){this._anchorElement.href=c,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(c){this._anchorElement.pathname=c},enumerable:!0},origin:{get:function(){var c={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],p=this._anchorElement.port!=c&&this._anchorElement.port!=="";return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(p?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(c){},enumerable:!0},username:{get:function(){return""},set:function(c){},enumerable:!0}}),i.createObjectURL=function(c){return o.createObjectURL.apply(o,arguments)},i.revokeObjectURL=function(c){return o.revokeObjectURL.apply(o,arguments)},e.URL=i};if(t()||r(),e.location!==void 0&&!("origin"in e.location)){var n=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:n,enumerable:!0})}catch(o){setInterval(function(){e.location.origin=n()},100)}}})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Cr)});var jn=Ot((rc,Vt)=>{var vn,gn,yn,xn,wn,En,Sn,On,Tn,Wt,kr,_n,Mn,Ln,at,An,Cn,kn,Rn,Hn,Pn,$n,In,Dt;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Vt=="object"&&typeof Vt.exports=="object"?e(r(t,r(Vt.exports))):e(r(t));function r(n,o){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,a){return n[i]=o?o(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])};vn=function(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(n,o);function i(){this.constructor=n}n.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)},gn=Object.assign||function(n){for(var o,i=1,a=arguments.length;i<a;i++){o=arguments[i];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])}return n},yn=function(n,o){var i={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&o.indexOf(a)<0&&(i[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(n);s<a.length;s++)o.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(n,a[s])&&(i[a[s]]=n[a[s]]);return i},xn=function(n,o,i,a){var s=arguments.length,c=s<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,i):a,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(n,o,i,a);else for(var f=n.length-1;f>=0;f--)(p=n[f])&&(c=(s<3?p(c):s>3?p(o,i,c):p(o,i))||c);return s>3&&c&&Object.defineProperty(o,i,c),c},wn=function(n,o){return function(i,a){o(i,a,n)}},En=function(n,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,o)},Sn=function(n,o,i,a){function s(c){return c instanceof i?c:new i(function(p){p(c)})}return new(i||(i=Promise))(function(c,p){function f(d){try{m(a.next(d))}catch(h){p(h)}}function l(d){try{m(a.throw(d))}catch(h){p(h)}}function m(d){d.done?c(d.value):s(d.value).then(f,l)}m((a=a.apply(n,o||[])).next())})},On=function(n,o){var i={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},a,s,c,p;return p={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function f(m){return function(d){return l([m,d])}}function l(m){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,s&&(c=m[0]&2?s.return:m[0]?s.throw||((c=s.return)&&c.call(s),0):s.next)&&!(c=c.call(s,m[1])).done)return c;switch(s=0,c&&(m=[m[0]&2,c.value]),m[0]){case 0:case 1:c=m;break;case 4:return i.label++,{value:m[1],done:!1};case 5:i.label++,s=m[1],m=[0];continue;case 7:m=i.ops.pop(),i.trys.pop();continue;default:if(c=i.trys,!(c=c.length>0&&c[c.length-1])&&(m[0]===6||m[0]===2)){i=0;continue}if(m[0]===3&&(!c||m[1]>c[0]&&m[1]<c[3])){i.label=m[1];break}if(m[0]===6&&i.label<c[1]){i.label=c[1],c=m;break}if(c&&i.label<c[2]){i.label=c[2],i.ops.push(m);break}c[2]&&i.ops.pop(),i.trys.pop();continue}m=o.call(n,i)}catch(d){m=[6,d],s=0}finally{a=c=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},Tn=function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&Dt(o,n,i)},Dt=Object.create?function(n,o,i,a){a===void 0&&(a=i),Object.defineProperty(n,a,{enumerable:!0,get:function(){return o[i]}})}:function(n,o,i,a){a===void 0&&(a=i),n[a]=o[i]},Wt=function(n){var o=typeof Symbol=="function"&&Symbol.iterator,i=o&&n[o],a=0;if(i)return i.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&a>=n.length&&(n=void 0),{value:n&&n[a++],done:!n}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},kr=function(n,o){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var a=i.call(n),s,c=[],p;try{for(;(o===void 0||o-- >0)&&!(s=a.next()).done;)c.push(s.value)}catch(f){p={error:f}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(p)throw p.error}}return c},_n=function(){for(var n=[],o=0;o<arguments.length;o++)n=n.concat(kr(arguments[o]));return n},Mn=function(){for(var n=0,o=0,i=arguments.length;o<i;o++)n+=arguments[o].length;for(var a=Array(n),s=0,o=0;o<i;o++)for(var c=arguments[o],p=0,f=c.length;p<f;p++,s++)a[s]=c[p];return a},Ln=function(n,o,i){if(i||arguments.length===2)for(var a=0,s=o.length,c;a<s;a++)(c||!(a in o))&&(c||(c=Array.prototype.slice.call(o,0,a)),c[a]=o[a]);return n.concat(c||Array.prototype.slice.call(o))},at=function(n){return this instanceof at?(this.v=n,this):new at(n)},An=function(n,o,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(n,o||[]),s,c=[];return s={},p("next"),p("throw"),p("return"),s[Symbol.asyncIterator]=function(){return this},s;function p(b){a[b]&&(s[b]=function($){return new Promise(function(X,V){c.push([b,$,X,V])>1||f(b,$)})})}function f(b,$){try{l(a[b]($))}catch(X){h(c[0][3],X)}}function l(b){b.value instanceof at?Promise.resolve(b.value.v).then(m,d):h(c[0][2],b)}function m(b){f("next",b)}function d(b){f("throw",b)}function h(b,$){b($),c.shift(),c.length&&f(c[0][0],c[0][1])}},Cn=function(n){var o,i;return o={},a("next"),a("throw",function(s){throw s}),a("return"),o[Symbol.iterator]=function(){return this},o;function a(s,c){o[s]=n[s]?function(p){return(i=!i)?{value:at(n[s](p)),done:s==="return"}:c?c(p):p}:c}},kn=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n[Symbol.asyncIterator],i;return o?o.call(n):(n=typeof Wt=="function"?Wt(n):n[Symbol.iterator](),i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i);function a(c){i[c]=n[c]&&function(p){return new Promise(function(f,l){p=n[c](p),s(f,l,p.done,p.value)})}}function s(c,p,f,l){Promise.resolve(l).then(function(m){c({value:m,done:f})},p)}},Rn=function(n,o){return Object.defineProperty?Object.defineProperty(n,"raw",{value:o}):n.raw=o,n};var r=Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o};Hn=function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&Dt(o,n,i);return r(o,n),o},Pn=function(n){return n&&n.__esModule?n:{default:n}},$n=function(n,o,i,a){if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof o=="function"?n!==o||!a:!o.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?a:i==="a"?a.call(n):a?a.value:o.get(n)},In=function(n,o,i,a,s){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof o=="function"?n!==o||!s:!o.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?s.call(n,i):s?s.value=i:o.set(n,i),i},e("__extends",vn),e("__assign",gn),e("__rest",yn),e("__decorate",xn),e("__param",wn),e("__metadata",En),e("__awaiter",Sn),e("__generator",On),e("__exportStar",Tn),e("__createBinding",Dt),e("__values",Wt),e("__read",kr),e("__spread",_n),e("__spreadArrays",Mn),e("__spreadArray",Ln),e("__await",at),e("__asyncGenerator",An),e("__asyncDelegator",Cn),e("__asyncValues",kn),e("__makeTemplateObject",Rn),e("__importStar",Hn),e("__importDefault",Pn),e("__classPrivateFieldGet",$n),e("__classPrivateFieldSet",In)})});var rn=Ot((It,tn)=>{(function(t,r){typeof It=="object"&&typeof tn=="object"?tn.exports=r():typeof define=="function"&&define.amd?define([],r):typeof It=="object"?It.ClipboardJS=r():t.ClipboardJS=r()})(It,function(){return function(){var e={686:function(n,o,i){"use strict";i.d(o,{default:function(){return fa}});var a=i(279),s=i.n(a),c=i(370),p=i.n(c),f=i(817),l=i.n(f);function m(F){try{return document.execCommand(F)}catch(L){return!1}}var d=function(L){var _=l()(L);return m("cut"),_},h=d;function b(F){var L=document.documentElement.getAttribute("dir")==="rtl",_=document.createElement("textarea");_.style.fontSize="12pt",_.style.border="0",_.style.padding="0",_.style.margin="0",_.style.position="absolute",_.style[L?"right":"left"]="-9999px";var I=window.pageYOffset||document.documentElement.scrollTop;return _.style.top="".concat(I,"px"),_.setAttribute("readonly",""),_.value=F,_}var $=function(L,_){var I=b(L);_.container.appendChild(I);var j=l()(I);return m("copy"),I.remove(),j},X=function(L){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},I="";return typeof L=="string"?I=$(L,_):L instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(L==null?void 0:L.type)?I=$(L.value,_):(I=l()(L),m("copy")),I},V=X;function M(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?M=function(_){return typeof _}:M=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},M(F)}var qe=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=L.action,I=_===void 0?"copy":_,j=L.container,Q=L.target,Ae=L.text;if(I!=="copy"&&I!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Q!==void 0)if(Q&&M(Q)==="object"&&Q.nodeType===1){if(I==="copy"&&Q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(I==="cut"&&(Q.hasAttribute("readonly")||Q.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Ae)return V(Ae,{container:j});if(Q)return I==="cut"?h(Q):V(Q,{container:j})},Ue=qe;function Pe(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(_){return typeof _}:Pe=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},Pe(F)}function ra(F,L){if(!(F instanceof L))throw new TypeError("Cannot call a class as a function")}function fn(F,L){for(var _=0;_<L.length;_++){var I=L[_];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(F,I.key,I)}}function na(F,L,_){return L&&fn(F.prototype,L),_&&fn(F,_),F}function oa(F,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(L&&L.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),L&&Tr(F,L)}function Tr(F,L){return Tr=Object.setPrototypeOf||function(I,j){return I.__proto__=j,I},Tr(F,L)}function ia(F){var L=ca();return function(){var I=jt(F),j;if(L){var Q=jt(this).constructor;j=Reflect.construct(I,arguments,Q)}else j=I.apply(this,arguments);return aa(this,j)}}function aa(F,L){return L&&(Pe(L)==="object"||typeof L=="function")?L:sa(F)}function sa(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function ca(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(F){return!1}}function jt(F){return jt=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},jt(F)}function _r(F,L){var _="data-clipboard-".concat(F);if(!!L.hasAttribute(_))return L.getAttribute(_)}var pa=function(F){oa(_,F);var L=ia(_);function _(I,j){var Q;return ra(this,_),Q=L.call(this),Q.resolveOptions(j),Q.listenClick(I),Q}return na(_,[{key:"resolveOptions",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof j.action=="function"?j.action:this.defaultAction,this.target=typeof j.target=="function"?j.target:this.defaultTarget,this.text=typeof j.text=="function"?j.text:this.defaultText,this.container=Pe(j.container)==="object"?j.container:document.body}},{key:"listenClick",value:function(j){var Q=this;this.listener=p()(j,"click",function(Ae){return Q.onClick(Ae)})}},{key:"onClick",value:function(j){var Q=j.delegateTarget||j.currentTarget,Ae=this.action(Q)||"copy",Ft=Ue({action:Ae,container:this.container,target:this.target(Q),text:this.text(Q)});this.emit(Ft?"success":"error",{action:Ae,text:Ft,trigger:Q,clearSelection:function(){Q&&Q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(j){return _r("action",j)}},{key:"defaultTarget",value:function(j){var Q=_r("target",j);if(Q)return document.querySelector(Q)}},{key:"defaultText",value:function(j){return _r("text",j)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(j){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return V(j,Q)}},{key:"cut",value:function(j){return h(j)}},{key:"isSupported",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Q=typeof j=="string"?[j]:j,Ae=!!document.queryCommandSupported;return Q.forEach(function(Ft){Ae=Ae&&!!document.queryCommandSupported(Ft)}),Ae}}]),_}(s()),fa=pa},828:function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,c){for(;s&&s.nodeType!==o;){if(typeof s.matches=="function"&&s.matches(c))return s;s=s.parentNode}}n.exports=a},438:function(n,o,i){var a=i(828);function s(f,l,m,d,h){var b=p.apply(this,arguments);return f.addEventListener(m,b,h),{destroy:function(){f.removeEventListener(m,b,h)}}}function c(f,l,m,d,h){return typeof f.addEventListener=="function"?s.apply(null,arguments):typeof m=="function"?s.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(b){return s(b,l,m,d,h)}))}function p(f,l,m,d){return function(h){h.delegateTarget=a(h.target,l),h.delegateTarget&&d.call(f,h)}}n.exports=c},879:function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}},370:function(n,o,i){var a=i(879),s=i(438);function c(m,d,h){if(!m&&!d&&!h)throw new Error("Missing required arguments");if(!a.string(d))throw new TypeError("Second argument must be a String");if(!a.fn(h))throw new TypeError("Third argument must be a Function");if(a.node(m))return p(m,d,h);if(a.nodeList(m))return f(m,d,h);if(a.string(m))return l(m,d,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function p(m,d,h){return m.addEventListener(d,h),{destroy:function(){m.removeEventListener(d,h)}}}function f(m,d,h){return Array.prototype.forEach.call(m,function(b){b.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(m,function(b){b.removeEventListener(d,h)})}}}function l(m,d,h){return s(document.body,m,d,h)}n.exports=c},817:function(n){function o(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var c=window.getSelection(),p=document.createRange();p.selectNodeContents(i),c.removeAllRanges(),c.addRange(p),a=c.toString()}return a}n.exports=o},279:function(n){function o(){}o.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 p(){c.off(i,p),a.apply(s,arguments)}return p._=a,this.on(i,p,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),c=0,p=s.length;for(c;c<p;c++)s[c].fn.apply(s[c].ctx,a);return this},off:function(i,a){var s=this.e||(this.e={}),c=s[i],p=[];if(c&&a)for(var f=0,l=c.length;f<l;f++)c[f].fn!==a&&c[f].fn._!==a&&p.push(c[f]);return p.length?s[i]=p:delete s[i],this}},n.exports=o,n.exports.TinyEmitter=o}},t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}return function(){r.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(o,{a:o}),o}}(),function(){r.d=function(n,o){for(var i in o)r.o(o,i)&&!r.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:o[i]})}}(),function(){r.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}}(),r(686)}().default})});var Li=Ot((dS,Mi)=>{"use strict";var Is=/["'&<>]/;Mi.exports=js;function js(e){var t=""+e,r=Is.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}a!==i&&(o+=t.substring(a,i)),a=i+1,o+=n}return a!==i?o+t.substring(a,i):o}});Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function e(){var t=isNaN(arguments[0])?1:Number(arguments[0]);return t?Array.prototype.reduce.call(this,function(r,n){return Array.isArray(n)?r.push.apply(r,e.call(n,t-1)):r.push(n),r},[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(e){return Array.prototype.map.apply(this,arguments).flat()},writable:!0});var r0=it(hn());(()=>{function e(o,i){parent.postMessage(o,i||"*")}function t(...o){return o.reduce((i,a)=>i.then(()=>new Promise(s=>{let c=document.createElement("script");c.src=a,c.addEventListener("load",()=>s()),document.body.appendChild(c)})),Promise.resolve())}function r(){let o=document.createElement("iframe");return o.width=o.height=o.frameBorder="0",o}var n=class{constructor(o,i){if(this.url=o,this.onerror=null,this.onmessage=null,this.onmessageerror=null,this.handleMessage=s=>{s.source===this.worker&&(s.stopImmediatePropagation(),this.dispatchEvent(new MessageEvent("message",{data:s.data})),this.onmessage&&this.onmessage(s))},this.handleError=(s,c,p,f,l)=>{if(c===this.url.toString()){let m=new ErrorEvent("error",{message:s,filename:c,lineno:p,colno:f,error:l});this.dispatchEvent(m),this.onerror&&this.onerror(m)}},typeof i!="undefined")throw new TypeError("Options are not supported for iframe workers");let a=new EventTarget;this.addEventListener=a.addEventListener.bind(a),this.removeEventListener=a.removeEventListener.bind(a),this.dispatchEvent=a.dispatchEvent.bind(a),document.body.appendChild(this.iframe=r()),this.worker.document.open(),this.worker.document.write(`<html><body><script>postMessage=${e};importScripts=${t};addEventListener("error",ev=>{parent.dispatchEvent(new ErrorEvent("error",{filename:"${o}",error:ev.error}))})<\/script><script src="${o}?${+Date.now()}"><\/script></body></html>`),this.worker.document.close(),window.addEventListener("message",this.handleMessage),window.onerror=this.handleError,this.ready=new Promise((s,c)=>{this.worker.onload=s,this.worker.onerror=c})}terminate(){document.body.removeChild(this.iframe),window.removeEventListener("message",this.handleMessage),window.onerror=null}postMessage(o){this.ready.catch().then(()=>{this.worker.dispatchEvent(new MessageEvent("message",{data:o}))})}get worker(){return this.iframe.contentWindow}};window.IFrameWorker=n,location.protocol==="file:"&&(window.Worker=n)})();self.fetch||(self.fetch=function(e,t){return t=t||{},new Promise(function(r,n){var o=new XMLHttpRequest,i=[],a=[],s={},c=function(){return{ok:(o.status/100|0)==2,statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:c,headers:{keys:function(){return i},entries:function(){return a},get:function(f){return s[f.toLowerCase()]},has:function(f){return f.toLowerCase()in s}}}};for(var p in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(f,l,m){i.push(l=l.toLowerCase()),a.push([l,m]),s[l]=s[l]?s[l]+","+m:m}),r(c())},o.onerror=n,o.withCredentials=t.credentials=="include",t.headers)o.setRequestHeader(p,t.headers[p]);o.send(t.body||null)})});var i0=it(bn());var Fn=it(jn(),1),{__extends:ie,__assign:nc,__rest:oc,__decorate:ic,__param:ac,__metadata:sc,__awaiter:Un,__generator:zt,__exportStar:cc,__createBinding:pc,__values:Ee,__read:W,__spread:fc,__spreadArrays:lc,__spreadArray:z,__await:Nt,__asyncGenerator:Wn,__asyncDelegator:uc,__asyncValues:Dn,__makeTemplateObject:mc,__importStar:dc,__importDefault:hc,__classPrivateFieldGet:bc,__classPrivateFieldSet:vc}=Fn.default;function C(e){return typeof e=="function"}function qt(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Kt=qt(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=r}});function We(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var $e=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Ee(a),c=s.next();!c.done;c=s.next()){var p=c.value;p.remove(this)}}catch(b){t={error:b}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var f=this.initialTeardown;if(C(f))try{f()}catch(b){i=b instanceof Kt?b.errors:[b]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var m=Ee(l),d=m.next();!d.done;d=m.next()){var h=d.value;try{Vn(h)}catch(b){i=i!=null?i:[],b instanceof Kt?i=z(z([],W(i)),W(b.errors)):i.push(b)}}}catch(b){n={error:b}}finally{try{d&&!d.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}}if(i)throw new Kt(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Vn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&We(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&We(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Rr=$e.EMPTY;function Qt(e){return e instanceof $e||e&&"closed"in e&&C(e.remove)&&C(e.add)&&C(e.unsubscribe)}function Vn(e){C(e)?e():e.unsubscribe()}var Ce={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var st={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=st.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,z([e,t],W(r))):setTimeout.apply(void 0,z([e,t],W(r)))},clearTimeout:function(e){var t=st.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Yt(e){st.setTimeout(function(){var t=Ce.onUnhandledError;if(t)t(e);else throw e})}function ge(){}var zn=function(){return Hr("C",void 0,void 0)}();function Nn(e){return Hr("E",void 0,e)}function qn(e){return Hr("N",e,void 0)}function Hr(e,t,r){return{kind:e,value:t,error:r}}var et=null;function ct(e){if(Ce.useDeprecatedSynchronousErrorHandling){var t=!et;if(t&&(et={errorThrown:!1,error:null}),e(),t){var r=et,n=r.errorThrown,o=r.error;if(et=null,n)throw o}}else e()}function Kn(e){Ce.useDeprecatedSynchronousErrorHandling&&et&&(et.errorThrown=!0,et.error=e)}var Tt=function(e){ie(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Qt(r)&&r.add(n)):n.destination=ya,n}return t.create=function(r,n,o){return new tt(r,n,o)},t.prototype.next=function(r){this.isStopped?$r(qn(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?$r(Nn(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?$r(zn,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}($e);var ba=Function.prototype.bind;function Pr(e,t){return ba.call(e,t)}var va=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Bt(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Bt(n)}else Bt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Bt(r)}},e}(),tt=function(e){ie(t,e);function t(r,n,o){var i=e.call(this)||this,a;if(C(r)||!r)a={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:o!=null?o:void 0};else{var s;i&&Ce.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()},a={next:r.next&&Pr(r.next,s),error:r.error&&Pr(r.error,s),complete:r.complete&&Pr(r.complete,s)}):a=r}return i.destination=new va(a),i}return t}(Tt);function Bt(e){Ce.useDeprecatedSynchronousErrorHandling?Kn(e):Yt(e)}function ga(e){throw e}function $r(e,t){var r=Ce.onStoppedNotification;r&&st.setTimeout(function(){return r(e,t)})}var ya={closed:!0,next:ge,error:ga,complete:ge};var pt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function me(e){return e}function Qn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ir(e)}function Ir(e){return e.length===0?me:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var U=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,i=wa(t)?t:new tt(t,r,n);return ct(function(){var a=o,s=a.operator,c=a.source;i.add(s?s.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=Yn(r),new r(function(o,i){var a=new tt({next:function(s){try{t(s)}catch(c){i(c),a.unsubscribe()}},error:i,complete:o});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[pt]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Ir(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Yn(t),new t(function(n,o){var i;r.subscribe(function(a){return i=a},function(a){return o(a)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function Yn(e){var t;return(t=e!=null?e:Ce.Promise)!==null&&t!==void 0?t:Promise}function xa(e){return e&&C(e.next)&&C(e.error)&&C(e.complete)}function wa(e){return e&&e instanceof Tt||xa(e)&&Qt(e)}function Ea(e){return C(e==null?void 0:e.lift)}function x(e){return function(t){if(Ea(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function E(e,t,r,n,o){return new Sa(e,t,r,n,o)}var Sa=function(e){ie(t,e);function t(r,n,o,i,a,s){var c=e.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,c._next=n?function(p){try{n(p)}catch(f){r.error(f)}}:e.prototype._next,c._error=i?function(p){try{i(p)}catch(f){r.error(f)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=o?function(){try{o()}catch(p){r.error(p)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(Tt);var ft={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,n=ft.delegate;n&&(t=n.requestAnimationFrame,r=n.cancelAnimationFrame);var o=t(function(i){r=void 0,e(i)});return new $e(function(){return r==null?void 0:r(o)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ft.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,z([],W(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ft.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,z([],W(e)))},delegate:void 0};var Bn=qt(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var S=function(e){ie(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Gn(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Bn},t.prototype.next=function(r){var n=this;ct(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=Ee(n.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(r)}}catch(p){o={error:p}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;ct(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;ct(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Rr:(this.currentObservers=null,s.push(r),new $e(function(){n.currentObservers=null,We(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new U;return r.source=this,r},t.create=function(r,n){return new Gn(r,n)},t}(U);var Gn=function(e){ie(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Rr},t}(S);var _t={now:function(){return(_t.delegate||Date).now()},delegate:void 0};var Mt=function(e){ie(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=_t);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,c=n._windowTime;o||(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 n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),c=0;c<s.length&&!r.closed;c+=i?1:2)r.next(s[c]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,i=r._buffer,a=r._infiniteTimeWindow,s=(a?1:2)*n;if(n<1/0&&s<i.length&&i.splice(0,i.length-s),!a){for(var c=o.now(),p=0,f=1;f<i.length&&i[f]<=c;f+=2)p=f;p&&i.splice(0,p+1)}},t}(S);var Jn=function(e){ie(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},t}($e);var Lt={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Lt.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,z([e,t],W(r))):setInterval.apply(void 0,z([e,t],W(r)))},clearInterval:function(e){var t=Lt.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var Gt=function(e){ie(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return t.prototype.schedule=function(r,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var i=this.id,a=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(a,i,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(a,this.id,n),this},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Lt.setInterval(r.flush.bind(r,this),o)},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Lt.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(a){o=!0,i=a||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,We(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Jn);var jr=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=_t.now,e}();var Jt=function(e){ie(t,e);function t(r,n){n===void 0&&(n=jr.now);var o=e.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},t}(jr);var se=new Jt(Gt),Fr=se;var Xn=function(e){ie(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=ft.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var a=r.actions;n!=null&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==n&&(ft.cancelAnimationFrame(n),r._scheduled=void 0)},t}(Gt);var Zn=function(e){ie(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t}(Jt);var de=new Zn(Xn);var k=new U(function(e){return e.complete()});function Xt(e){return e&&C(e.schedule)}function Ur(e){return e[e.length-1]}function Ke(e){return C(Ur(e))?e.pop():void 0}function Te(e){return Xt(Ur(e))?e.pop():void 0}function Zt(e,t){return typeof Ur(e)=="number"?e.pop():t}var lt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function er(e){return C(e==null?void 0:e.then)}function tr(e){return C(e[pt])}function rr(e){return Symbol.asyncIterator&&C(e==null?void 0:e[Symbol.asyncIterator])}function nr(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Oa(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var or=Oa();function ir(e){return C(e==null?void 0:e[or])}function ar(e){return Wn(this,arguments,function(){var r,n,o,i;return zt(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Nt(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,Nt(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Nt(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function sr(e){return C(e==null?void 0:e.getReader)}function N(e){if(e instanceof U)return e;if(e!=null){if(tr(e))return Ta(e);if(lt(e))return _a(e);if(er(e))return Ma(e);if(rr(e))return eo(e);if(ir(e))return La(e);if(sr(e))return Aa(e)}throw nr(e)}function Ta(e){return new U(function(t){var r=e[pt]();if(C(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function _a(e){return new U(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function Ma(e){return new U(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Yt)})}function La(e){return new U(function(t){var r,n;try{for(var o=Ee(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()})}function eo(e){return new U(function(t){Ca(e,t).catch(function(r){return t.error(r)})})}function Aa(e){return eo(ar(e))}function Ca(e,t){var r,n,o,i;return Un(this,void 0,void 0,function(){var a,s;return zt(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=Dn(e),c.label=1;case 1:return[4,r.next()];case 2:if(n=c.sent(),!!n.done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),o={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function xe(e,t,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(i),!o)return i}function ke(e,t){return t===void 0&&(t=0),x(function(r,n){r.subscribe(E(n,function(o){return xe(n,e,function(){return n.next(o)},t)},function(){return xe(n,e,function(){return n.complete()},t)},function(o){return xe(n,e,function(){return n.error(o)},t)}))})}function De(e,t){return t===void 0&&(t=0),x(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function to(e,t){return N(e).pipe(De(t),ke(t))}function ro(e,t){return N(e).pipe(De(t),ke(t))}function no(e,t){return new U(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function oo(e,t){return new U(function(r){var n;return xe(r,t,function(){n=e[or](),xe(r,t,function(){var o,i,a;try{o=n.next(),i=o.value,a=o.done}catch(s){r.error(s);return}a?r.complete():r.next(i)},0,!0)}),function(){return C(n==null?void 0:n.return)&&n.return()}})}function cr(e,t){if(!e)throw new Error("Iterable cannot be null");return new U(function(r){xe(r,t,function(){var n=e[Symbol.asyncIterator]();xe(r,t,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function io(e,t){return cr(ar(e),t)}function ao(e,t){if(e!=null){if(tr(e))return to(e,t);if(lt(e))return no(e,t);if(er(e))return ro(e,t);if(rr(e))return cr(e,t);if(ir(e))return oo(e,t);if(sr(e))return io(e,t)}throw nr(e)}function he(e,t){return t?ao(e,t):N(e)}function H(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Te(e);return he(e,r)}function At(e,t){var r=C(e)?e:function(){return e},n=function(o){return o.error(r())};return new U(t?function(o){return t.schedule(n,0,o)}:n)}function so(e){return e instanceof Date&&!isNaN(e)}function u(e,t){return x(function(r,n){var o=0;r.subscribe(E(n,function(i){n.next(e.call(t,i,o++))}))})}var ka=Array.isArray;function Ra(e,t){return ka(t)?e.apply(void 0,z([],W(t))):e(t)}function Qe(e){return u(function(t){return Ra(e,t)})}var Ha=Array.isArray,Pa=Object.getPrototypeOf,$a=Object.prototype,Ia=Object.keys;function co(e){if(e.length===1){var t=e[0];if(Ha(t))return{args:t,keys:null};if(ja(t)){var r=Ia(t);return{args:r.map(function(n){return t[n]}),keys:r}}}return{args:e,keys:null}}function ja(e){return e&&typeof e=="object"&&Pa(e)===$a}function po(e,t){return e.reduce(function(r,n,o){return r[n]=t[o],r},{})}function B(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Te(e),n=Ke(e),o=co(e),i=o.args,a=o.keys;if(i.length===0)return he([],r);var s=new U(Wr(i,r,a?function(c){return po(a,c)}:me));return n?s.pipe(Qe(n)):s}function Wr(e,t,r){return r===void 0&&(r=me),function(n){fo(t,function(){for(var o=e.length,i=new Array(o),a=o,s=o,c=function(f){fo(t,function(){var l=he(e[f],t),m=!1;l.subscribe(E(n,function(d){i[f]=d,m||(m=!0,s--),s||n.next(r(i.slice()))},function(){--a||n.complete()}))},n)},p=0;p<o;p++)c(p)},n)}}function fo(e,t,r){e?xe(r,e,t):t()}function lo(e,t,r,n,o,i,a,s){var c=[],p=0,f=0,l=!1,m=function(){l&&!c.length&&!p&&t.complete()},d=function(b){return p<n?h(b):c.push(b)},h=function(b){i&&t.next(b),p++;var $=!1;N(r(b,f++)).subscribe(E(t,function(X){o==null||o(X),i?d(X):t.next(X)},function(){$=!0},void 0,function(){if($)try{p--;for(var X=function(){var V=c.shift();a?xe(t,a,function(){return h(V)}):h(V)};c.length&&p<n;)X();m()}catch(V){t.error(V)}}))};return e.subscribe(E(t,d,function(){l=!0,m()})),function(){s==null||s()}}function re(e,t,r){return r===void 0&&(r=1/0),C(t)?re(function(n,o){return u(function(i,a){return t(n,i,o,a)})(N(e(n,o)))},r):(typeof t=="number"&&(r=t),x(function(n,o){return lo(n,o,e,r)}))}function ut(e){return e===void 0&&(e=1/0),re(me,e)}function uo(){return ut(1)}function rt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return uo()(he(e,Te(e)))}function R(e){return new U(function(t){N(e()).subscribe(t)})}var Fa=["addListener","removeListener"],Ua=["addEventListener","removeEventListener"],Wa=["on","off"];function g(e,t,r,n){if(C(r)&&(n=r,r=void 0),n)return g(e,t,r).pipe(Qe(n));var o=W(za(e)?Ua.map(function(s){return function(c){return e[s](t,c,r)}}):Da(e)?Fa.map(mo(e,t)):Va(e)?Wa.map(mo(e,t)):[],2),i=o[0],a=o[1];if(!i&&lt(e))return re(function(s){return g(s,t,r)})(N(e));if(!i)throw new TypeError("Invalid event target");return new U(function(s){var c=function(){for(var p=[],f=0;f<arguments.length;f++)p[f]=arguments[f];return s.next(1<p.length?p:p[0])};return i(c),function(){return a(c)}})}function mo(e,t){return function(r){return function(n){return e[r](t,n)}}}function Da(e){return C(e.addListener)&&C(e.removeListener)}function Va(e){return C(e.on)&&C(e.off)}function za(e){return C(e.addEventListener)&&C(e.removeEventListener)}function pr(e,t,r){return r?pr(e,t).pipe(Qe(r)):new U(function(n){var o=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return n.next(a.length===1?a[0]:a)},i=e(o);return C(t)?function(){return t(o,i)}:void 0})}function Ye(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Fr);var n=-1;return t!=null&&(Xt(t)?r=t:n=t),new U(function(o){var i=so(e)?+e-r.now():e;i<0&&(i=0);var a=0;return r.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function O(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Te(e),n=Zt(e,1/0),o=e;return o.length?o.length===1?N(o[0]):ut(n)(he(o,r)):k}var _e=new U(ge);var Na=Array.isArray;function mt(e){return e.length===1&&Na(e[0])?e[0]:e}function v(e,t){return x(function(r,n){var o=0;r.subscribe(E(n,function(i){return e.call(t,i,o++)&&n.next(i)}))})}function Ct(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ke(e),n=mt(e);return n.length?new U(function(o){var i=n.map(function(){return[]}),a=n.map(function(){return!1});o.add(function(){i=a=null});for(var s=function(p){N(n[p]).subscribe(E(o,function(f){if(i[p].push(f),i.every(function(m){return m.length})){var l=i.map(function(m){return m.shift()});o.next(r?r.apply(void 0,z([],W(l))):l),i.some(function(m,d){return!m.length&&a[d]})&&o.complete()}},function(){a[p]=!0,!i[p].length&&o.complete()}))},c=0;!o.closed&&c<n.length;c++)s(c);return function(){i=a=null}}):k}function ho(e){return x(function(t,r){var n=!1,o=null,i=null,a=!1,s=function(){if(i==null||i.unsubscribe(),i=null,n){n=!1;var p=o;o=null,r.next(p)}a&&r.complete()},c=function(){i=null,a&&r.complete()};t.subscribe(E(r,function(p){n=!0,o=p,i||N(e(p)).subscribe(i=E(r,s,c))},function(){a=!0,(!n||!i||i.closed)&&r.complete()}))})}function Se(e,t){return t===void 0&&(t=se),ho(function(){return Ye(e,t)})}function Re(e,t){return t===void 0&&(t=null),t=t!=null?t:e,x(function(r,n){var o=[],i=0;r.subscribe(E(n,function(a){var s,c,p,f,l=null;i++%t===0&&o.push([]);try{for(var m=Ee(o),d=m.next();!d.done;d=m.next()){var h=d.value;h.push(a),e<=h.length&&(l=l!=null?l:[],l.push(h))}}catch(X){s={error:X}}finally{try{d&&!d.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}if(l)try{for(var b=Ee(l),$=b.next();!$.done;$=b.next()){var h=$.value;We(o,h),n.next(h)}}catch(X){p={error:X}}finally{try{$&&!$.done&&(f=b.return)&&f.call(b)}finally{if(p)throw p.error}}},function(){var a,s;try{for(var c=Ee(o),p=c.next();!p.done;p=c.next()){var f=p.value;n.next(f)}}catch(l){a={error:l}}finally{try{p&&!p.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}n.complete()},void 0,function(){o=null}))})}function le(e){return x(function(t,r){var n=null,o=!1,i;n=t.subscribe(E(r,void 0,void 0,function(a){i=N(e(a,le(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function bo(e,t,r,n,o){return function(i,a){var s=r,c=t,p=0;i.subscribe(E(a,function(f){var l=p++;c=s?e(c,f,l):(s=!0,f),n&&a.next(c)},o&&function(){s&&a.next(c),a.complete()}))}}function Dr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ke(e);return r?Qn(Dr.apply(void 0,z([],W(e))),Qe(r)):x(function(n,o){Wr(z([n],W(mt(e))))(o)})}function nt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Dr.apply(void 0,z([],W(e)))}function Vr(e,t){return C(t)?re(e,t,1):re(e,1)}function ye(e,t){return t===void 0&&(t=se),x(function(r,n){var o=null,i=null,a=null,s=function(){if(o){o.unsubscribe(),o=null;var p=i;i=null,n.next(p)}};function c(){var p=a+e,f=t.now();if(f<p){o=this.schedule(void 0,p-f),n.add(o);return}s()}r.subscribe(E(n,function(p){i=p,a=t.now(),o||(o=t.schedule(c,e),n.add(o))},function(){s(),n.complete()},void 0,function(){i=o=null}))})}function Ve(e){return x(function(t,r){var n=!1;t.subscribe(E(r,function(o){n=!0,r.next(o)},function(){n||r.next(e),r.complete()}))})}function te(e){return e<=0?function(){return k}:x(function(t,r){var n=0;t.subscribe(E(r,function(o){++n<=e&&(r.next(o),e<=n&&r.complete())}))})}function vo(){return x(function(e,t){e.subscribe(E(t,ge))})}function go(e){return u(function(){return e})}function zr(e,t){return t?function(r){return rt(t.pipe(te(1),vo()),r.pipe(zr(e)))}:re(function(r,n){return e(r,n).pipe(te(1),go(r))})}function He(e,t){t===void 0&&(t=se);var r=Ye(e,t);return zr(function(){return r})}function G(e,t){return t===void 0&&(t=me),e=e!=null?e:qa,x(function(r,n){var o,i=!0;r.subscribe(E(n,function(a){var s=t(a);(i||!e(o,s))&&(i=!1,o=s,n.next(a))}))})}function qa(e,t){return e===t}function ee(e,t){return G(function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}function Nr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return rt(r,H.apply(void 0,z([],W(e))))}}function A(e){return x(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function ue(e){return e<=0?function(){return k}:x(function(t,r){var n=[];t.subscribe(E(r,function(o){n.push(o),e<n.length&&n.shift()},function(){var o,i;try{for(var a=Ee(n),s=a.next();!s.done;s=a.next()){var c=s.value;r.next(c)}}catch(p){o={error:p}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}r.complete()},void 0,function(){n=null}))})}function yo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Te(e),n=Zt(e,1/0);return e=mt(e),x(function(o,i){ut(n)(he(z([o],W(e)),r)).subscribe(i)})}function Ie(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return yo.apply(void 0,z([],W(e)))}function ot(e){var t,r=1/0,n;return e!=null&&(typeof e=="object"?(t=e.count,r=t===void 0?1/0:t,n=e.delay):r=e),r<=0?function(){return k}:x(function(o,i){var a=0,s,c=function(){if(s==null||s.unsubscribe(),s=null,n!=null){var f=typeof n=="number"?Ye(n):N(n(a)),l=E(i,function(){l.unsubscribe(),p()});f.subscribe(l)}else p()},p=function(){var f=!1;s=o.subscribe(E(i,void 0,function(){++a<r?s?c():f=!0:i.complete()})),f&&c()};p()})}function dt(e){return x(function(t,r){var n=!1,o=null;t.subscribe(E(r,function(i){n=!0,o=i})),e.subscribe(E(r,function(){if(n){n=!1;var i=o;o=null,r.next(i)}},ge))})}function qr(e,t){return x(bo(e,t,arguments.length>=2,!0))}function ae(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new S}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,c=s===void 0?!0:s;return function(p){var f,l,m,d=0,h=!1,b=!1,$=function(){l==null||l.unsubscribe(),l=void 0},X=function(){$(),f=m=void 0,h=b=!1},V=function(){var M=f;X(),M==null||M.unsubscribe()};return x(function(M,qe){d++,!b&&!h&&$();var Ue=m=m!=null?m:r();qe.add(function(){d--,d===0&&!b&&!h&&(l=Kr(V,c))}),Ue.subscribe(qe),!f&&d>0&&(f=new tt({next:function(Pe){return Ue.next(Pe)},error:function(Pe){b=!0,$(),l=Kr(X,o,Pe),Ue.error(Pe)},complete:function(){h=!0,$(),l=Kr(X,a),Ue.complete()}}),N(M).subscribe(f))})(p)}}function Kr(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t===!0){e();return}if(t!==!1){var o=new tt({next:function(){o.unsubscribe(),e()}});return t.apply(void 0,z([],W(r))).subscribe(o)}}function J(e,t,r){var n,o,i,a,s=!1;return e&&typeof e=="object"?(n=e.bufferSize,a=n===void 0?1/0:n,o=e.windowTime,t=o===void 0?1/0:o,i=e.refCount,s=i===void 0?!1:i,r=e.scheduler):a=e!=null?e:1/0,ae({connector:function(){return new Mt(a,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function be(e){return v(function(t,r){return e<=r})}function kt(e){return x(function(t,r){var n=!1,o=E(r,function(){o==null||o.unsubscribe(),n=!0},ge);N(e).subscribe(o),t.subscribe(E(r,function(i){return n&&r.next(i)}))})}function q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Te(e);return x(function(n,o){(r?rt(e,n,r):rt(e,n)).subscribe(o)})}function y(e,t){return x(function(r,n){var o=null,i=0,a=!1,s=function(){return a&&!o&&n.complete()};r.subscribe(E(n,function(c){o==null||o.unsubscribe();var p=0,f=i++;N(e(c,f)).subscribe(o=E(n,function(l){return n.next(t?t(c,l,f,p++):l)},function(){o=null,s()}))},function(){a=!0,s()}))})}function Y(e){return x(function(t,r){N(e).subscribe(E(r,function(){return r.complete()},ge)),!r.closed&&t.subscribe(r)})}function Qr(e,t){return t===void 0&&(t=!1),x(function(r,n){var o=0;r.subscribe(E(n,function(i){var a=e(i,o++);(a||t)&&n.next(i),!a&&n.complete()}))})}function w(e,t,r){var n=C(e)||t||r?{next:e,error:t,complete:r}:e;return n?x(function(o,i){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;o.subscribe(E(i,function(c){var p;(p=n.next)===null||p===void 0||p.call(n,c),i.next(c)},function(){var c;s=!1,(c=n.complete)===null||c===void 0||c.call(n),i.complete()},function(c){var p;s=!1,(p=n.error)===null||p===void 0||p.call(n,c),i.error(c)},function(){var c,p;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(p=n.finalize)===null||p===void 0||p.call(n)}))}):me}var Yr={leading:!0,trailing:!1};function Rt(e,t){return t===void 0&&(t=Yr),x(function(r,n){var o=t.leading,i=t.trailing,a=!1,s=null,c=null,p=!1,f=function(){c==null||c.unsubscribe(),c=null,i&&(d(),p&&n.complete())},l=function(){c=null,p&&n.complete()},m=function(h){return c=N(e(h)).subscribe(E(n,f,l))},d=function(){if(a){a=!1;var h=s;s=null,n.next(h),!p&&m(h)}};r.subscribe(E(n,function(h){a=!0,s=h,!(c&&!c.closed)&&(o?d():m(h))},function(){p=!0,!(i&&a&&c&&!c.closed)&&n.complete()}))})}function Ht(e,t,r){t===void 0&&(t=se),r===void 0&&(r=Yr);var n=Ye(e,t);return Rt(function(){return n},r)}function ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ke(e);return x(function(n,o){for(var i=e.length,a=new Array(i),s=e.map(function(){return!1}),c=!1,p=function(l){N(e[l]).subscribe(E(o,function(m){a[l]=m,!c&&!s[l]&&(s[l]=!0,(c=s.every(me))&&(s=null))},ge))},f=0;f<i;f++)p(f);n.subscribe(E(o,function(l){if(c){var m=z([l],W(a));o.next(r?r.apply(void 0,z([],W(m))):m)}}))})}function xo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return x(function(r,n){Ct.apply(void 0,z([r],W(e))).subscribe(n)})}function Br(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return xo.apply(void 0,z([],W(e)))}function wo(){let e=new Mt(1);return g(document,"DOMContentLoaded",{once:!0}).subscribe(()=>e.next(document)),e}function D(e,t=document){return Array.from(t.querySelectorAll(e))}function K(e,t=document){let r=pe(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function pe(e,t=document){return t.querySelector(e)||void 0}function ze(){return document.activeElement instanceof HTMLElement&&document.activeElement||void 0}var Ka=O(g(document.body,"focusin"),g(document.body,"focusout")).pipe(ye(1),q(void 0),u(()=>ze()||document.body),J(1));function ht(e){return Ka.pipe(u(t=>e.contains(t)),G())}function Eo(e,t){return O(g(e,"mouseenter").pipe(u(()=>!0)),g(e,"mouseleave").pipe(u(()=>!1))).pipe(t?ye(t):me,q(!1))}function je(e){return{x:e.offsetLeft,y:e.offsetTop}}function So(e){return O(g(window,"load"),g(window,"resize")).pipe(Se(0,de),u(()=>je(e)),q(je(e)))}function fr(e){return{x:e.scrollLeft,y:e.scrollTop}}function Be(e){return O(g(e,"scroll"),g(window,"resize")).pipe(Se(0,de),u(()=>fr(e)),q(fr(e)))}var To=function(){if(typeof Map!="undefined")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];r.call(n,a[1],a[0])}},t}()}(),Gr=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,lr=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),Qa=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(lr):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Ya=2;function Ba(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&s()}function a(){Qa(i)}function s(){var c=Date.now();if(r){if(c-o<Ya)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=c}return s}var Ga=20,Ja=["top","right","bottom","left","width","height","size","weight"],Xa=typeof MutationObserver!="undefined",Za=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Ba(this.refresh.bind(this),Ga)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Gr||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Xa?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Gr||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=Ja.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),_o=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},bt=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||lr},Mo=mr(0,0,0,0);function ur(e){return parseFloat(e)||0}function Oo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,o){var i=e["border-"+o+"-width"];return n+ur(i)},0)}function es(e){for(var t=["top","right","bottom","left"],r={},n=0,o=t;n<o.length;n++){var i=o[n],a=e["padding-"+i];r[i]=ur(a)}return r}function ts(e){var t=e.getBBox();return mr(0,0,t.width,t.height)}function rs(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Mo;var n=bt(e).getComputedStyle(e),o=es(n),i=o.left+o.right,a=o.top+o.bottom,s=ur(n.width),c=ur(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=Oo(n,"left","right")+i),Math.round(c+a)!==r&&(c-=Oo(n,"top","bottom")+a)),!os(e)){var p=Math.round(s+i)-t,f=Math.round(c+a)-r;Math.abs(p)!==1&&(s-=p),Math.abs(f)!==1&&(c-=f)}return mr(o.left,o.top,s,c)}var ns=function(){return typeof SVGGraphicsElement!="undefined"?function(e){return e instanceof bt(e).SVGGraphicsElement}:function(e){return e instanceof bt(e).SVGElement&&typeof e.getBBox=="function"}}();function os(e){return e===bt(e).document.documentElement}function is(e){return Gr?ns(e)?ts(e):rs(e):Mo}function as(e){var t=e.x,r=e.y,n=e.width,o=e.height,i=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return _o(a,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),a}function mr(e,t,r,n){return{x:e,y:t,width:r,height:n}}var ss=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=mr(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=is(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),cs=function(){function e(t,r){var n=as(r);_o(this,{target:t,contentRect:n})}return e}(),ps=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new To,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof bt(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new ss(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof bt(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;!r.has(t)||(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(!!this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new cs(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Lo=typeof WeakMap!="undefined"?new WeakMap:new To,Ao=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Za.getInstance(),n=new ps(t,r,this);Lo.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Ao.prototype[e]=function(){var t;return(t=Lo.get(this))[e].apply(t,arguments)}});var fs=function(){return typeof lr.ResizeObserver!="undefined"?lr.ResizeObserver:Ao}(),Co=fs;var ko=new S,ls=R(()=>H(new Co(e=>{for(let t of e)ko.next(t)}))).pipe(y(e=>O(_e,H(e)).pipe(A(()=>e.disconnect()))),J(1));function fe(e){return{width:e.offsetWidth,height:e.offsetHeight}}function we(e){return ls.pipe(w(t=>t.observe(e)),y(t=>ko.pipe(v(({target:r})=>r===e),A(()=>t.unobserve(e)),u(()=>fe(e)))),q(fe(e)))}function vt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function gt(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}var Ro=new S,us=R(()=>H(new IntersectionObserver(e=>{for(let t of e)Ro.next(t)},{threshold:0}))).pipe(y(e=>O(_e,H(e)).pipe(A(()=>e.disconnect()))),J(1));function yt(e){return us.pipe(w(t=>t.observe(e)),y(t=>Ro.pipe(v(({target:r})=>r===e),A(()=>t.unobserve(e)),u(({isIntersecting:r})=>r))))}function Ho(e,t=16){return Be(e).pipe(u(({y:r})=>{let n=fe(e),o=vt(e);return r>=o.height-n.height-t}),G())}var dr={drawer:K("[data-md-toggle=drawer]"),search:K("[data-md-toggle=search]")};function Po(e){return dr[e].checked}function Ge(e,t){dr[e].checked!==t&&dr[e].click()}function Je(e){let t=dr[e];return g(t,"change").pipe(u(()=>t.checked),q(t.checked))}function ms(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 ds(){return O(g(window,"compositionstart").pipe(u(()=>!0)),g(window,"compositionend").pipe(u(()=>!1))).pipe(q(!1))}function $o(){let e=g(window,"keydown").pipe(v(t=>!(t.metaKey||t.ctrlKey)),u(t=>({mode:Po("search")?"search":"global",type:t.key,claim(){t.preventDefault(),t.stopPropagation()}})),v(({mode:t,type:r})=>{if(t==="global"){let n=ze();if(typeof n!="undefined")return!ms(n,r)}return!0}),ae());return ds().pipe(y(t=>t?k:e))}function Me(){return new URL(location.href)}function hr(e){location.href=e.href}function Io(){return new S}function jo(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)jo(e,r)}function T(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)jo(n,o);return n}function br(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function Jr(e,t,r){t=new RegExp(t,"g");let n,o=0;do{n=t.exec(e);let i=n?n.index:e.length;if(o<i&&r([o,i]),n){let[a]=n;o=n.index+a.length,a.length===0&&(t.lastIndex=n.index+1)}}while(n)}function Fo(){return location.hash.substring(1)}function Uo(e){let t=T("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function hs(){return g(window,"hashchange").pipe(u(Fo),q(Fo()),v(e=>e.length>0),J(1))}function Wo(){return hs().pipe(u(e=>pe(`[id="${e}"]`)),v(e=>typeof e!="undefined"))}function Pt(e){let t=matchMedia(e);return pr(r=>t.addListener(()=>r(t.matches))).pipe(q(t.matches))}function Do(){let e=matchMedia("print");return O(g(window,"beforeprint").pipe(u(()=>!0)),g(window,"afterprint").pipe(u(()=>!1))).pipe(q(e.matches))}function Xr(e,t){return e.pipe(y(r=>r?t():k))}function vr(e,t={credentials:"same-origin"}){return he(fetch(`${e}`,t)).pipe(le(()=>k),y(r=>r.status!==200?At(()=>new Error(r.statusText)):H(r)))}function Fe(e,t){return vr(e,t).pipe(y(r=>r.json()),J(1))}function Vo(e,t){let r=new DOMParser;return vr(e,t).pipe(y(n=>n.text()),u(n=>r.parseFromString(n,"text/xml")),J(1))}function gr(e){let t=T("script",{src:e});return R(()=>(document.head.appendChild(t),O(g(t,"load"),g(t,"error").pipe(y(()=>At(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(u(()=>{}),A(()=>document.head.removeChild(t)),te(1))))}function zo(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function No(){return O(g(window,"scroll",{passive:!0}),g(window,"resize",{passive:!0})).pipe(u(zo),q(zo()))}function qo(){return{width:innerWidth,height:innerHeight}}function Ko(){return g(window,"resize",{passive:!0}).pipe(u(qo),q(qo()))}function Qo(){return B([No(),Ko()]).pipe(u(([e,t])=>({offset:e,size:t})),J(1))}function yr(e,{viewport$:t,header$:r}){let n=t.pipe(ee("size")),o=B([n,r]).pipe(u(()=>je(e)));return B([r,t,o]).pipe(u(([{height:i},{offset:a,size:s},{x:c,y:p}])=>({offset:{x:a.x-c,y:a.y-p+i},size:s})))}function Yo(e,{tx$:t}){let r=g(e,"message").pipe(u(({data:n})=>n));return t.pipe(Rt(()=>r,{leading:!0,trailing:!0}),w(n=>e.postMessage(n)),y(()=>r),ae())}var bs=K("#__config"),xt=JSON.parse(bs.textContent);xt.base=`${new URL(xt.base,Me())}`;function ve(){return xt}function Z(e){return xt.features.includes(e)}function oe(e,t){return typeof t!="undefined"?xt.translations[e].replace("#",t.toString()):xt.translations[e]}function Le(e,t=document){return K(`[data-md-component=${e}]`,t)}function ne(e,t=document){return D(`[data-md-component=${e}]`,t)}function vs(e){let t=K(".md-typeset > :first-child",e);return g(t,"click",{once:!0}).pipe(u(()=>K(".md-typeset",e)),u(r=>({hash:__md_hash(r.innerHTML)})))}function Bo(e){return!Z("announce.dismiss")||!e.childElementCount?k:R(()=>{let t=new S;return t.pipe(q({hash:__md_get("__announce")})).subscribe(({hash:r})=>{var n;r&&r===((n=__md_get("__announce"))!=null?n:r)&&(e.hidden=!0,__md_set("__announce",r))}),vs(e).pipe(w(r=>t.next(r)),A(()=>t.complete()),u(r=>P({ref:e},r)))})}function gs(e,{target$:t}){return t.pipe(u(r=>({hidden:r!==e})))}function Go(e,t){let r=new S;return r.subscribe(({hidden:n})=>{e.hidden=n}),gs(e,t).pipe(w(n=>r.next(n)),A(()=>r.complete()),u(n=>P({ref:e},n)))}function $t(e,t){return t==="inline"?T("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},T("div",{class:"md-tooltip__inner md-typeset"})):T("div",{class:"md-tooltip",id:e,role:"tooltip"},T("div",{class:"md-tooltip__inner md-typeset"}))}function Jo(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return T("aside",{class:"md-annotation",tabIndex:0},$t(t),T("a",{href:r,class:"md-annotation__index",tabIndex:-1},T("span",{"data-md-annotation-id":e})))}else return T("aside",{class:"md-annotation",tabIndex:0},$t(t),T("span",{class:"md-annotation__index",tabIndex:-1},T("span",{"data-md-annotation-id":e})))}function Xo(e){return T("button",{class:"md-clipboard md-icon",title:oe("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}function Zr(e,t){let r=t&2,n=t&1,o=Object.keys(e.terms).filter(s=>!e.terms[s]).reduce((s,c)=>[...s,T("del",null,c)," "],[]).slice(0,-1),i=new URL(e.location);Z("search.highlight")&&i.searchParams.set("h",Object.entries(e.terms).filter(([,s])=>s).reduce((s,[c])=>`${s} ${c}`.trim(),""));let{tags:a}=ve();return T("a",{href:`${i}`,class:"md-search-result__link",tabIndex:-1},T("article",{class:"md-search-result__article md-typeset","data-md-score":e.score.toFixed(2)},r>0&&T("div",{class:"md-search-result__icon md-icon"}),r>0&&T("h1",null,e.title),r<=0&&T("h2",null,e.title),n>0&&e.text.length>0&&e.text,e.tags&&e.tags.map(s=>{let c=a?s in a?`md-tag-icon md-tag-icon--${a[s]}`:"md-tag-icon":"";return T("span",{class:`md-tag ${c}`},s)}),n>0&&o.length>0&&T("p",{class:"md-search-result__terms"},oe("search.result.term.missing"),": ",...o)))}function Zo(e){let t=e[0].score,r=[...e],n=r.findIndex(p=>!p.location.includes("#")),[o]=r.splice(n,1),i=r.findIndex(p=>p.score<t);i===-1&&(i=r.length);let a=r.slice(0,i),s=r.slice(i),c=[Zr(o,2|+(!n&&i===0)),...a.map(p=>Zr(p,1)),...s.length?[T("details",{class:"md-search-result__more"},T("summary",{tabIndex:-1},T("div",null,s.length>0&&s.length===1?oe("search.result.more.one"):oe("search.result.more.other",s.length))),...s.map(p=>Zr(p,1)))]:[]];return T("li",{class:"md-search-result__item"},c)}function ei(e){return T("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>T("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?br(r):r)))}function en(e){let t=`tabbed-control tabbed-control--${e}`;return T("div",{class:t,hidden:!0},T("button",{class:"tabbed-button",tabIndex:-1}))}function ti(e){return T("div",{class:"md-typeset__scrollwrap"},T("div",{class:"md-typeset__table"},e))}function ys(e){let t=ve(),r=new URL(`../${e.version}/`,t.base);return T("li",{class:"md-version__item"},T("a",{href:`${r}`,class:"md-version__link"},e.title))}function ri(e,t){return T("div",{class:"md-version"},T("button",{class:"md-version__current","aria-label":oe("select.version.title")},t.title),T("ul",{class:"md-version__list"},e.map(ys)))}var xs=0;function ws(e,t){document.body.append(e);let{width:r}=fe(e);e.style.setProperty("--md-tooltip-width",`${r}px`),e.remove();let n=gt(t),o=typeof n!="undefined"?Be(n):H({x:0,y:0}),i=O(ht(t),Eo(t)).pipe(G());return B([i,o]).pipe(u(([a,s])=>{let{x:c,y:p}=je(t),f=fe(t),l=t.closest("table");return l&&t.parentElement&&(c+=l.offsetLeft+t.parentElement.offsetLeft,p+=l.offsetTop+t.parentElement.offsetTop),{active:a,offset:{x:c-s.x+f.width/2-r/2,y:p-s.y+f.height+8}}}))}function Ne(e){let t=e.title;if(!t.length)return k;let r=`__tooltip_${xs++}`,n=$t(r,"inline"),o=K(".md-typeset",n);return o.innerHTML=t,R(()=>{let i=new S;return i.subscribe({next({offset:a}){n.style.setProperty("--md-tooltip-x",`${a.x}px`),n.style.setProperty("--md-tooltip-y",`${a.y}px`)},complete(){n.style.removeProperty("--md-tooltip-x"),n.style.removeProperty("--md-tooltip-y")}}),O(i.pipe(v(({active:a})=>a)),i.pipe(ye(250),v(({active:a})=>!a))).subscribe({next({active:a}){a?(e.insertAdjacentElement("afterend",n),e.setAttribute("aria-describedby",r),e.removeAttribute("title")):(n.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t))},complete(){n.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t)}}),i.pipe(Se(16,de)).subscribe(({active:a})=>{n.classList.toggle("md-tooltip--active",a)}),i.pipe(Ht(125,de),v(()=>!!e.offsetParent),u(()=>e.offsetParent.getBoundingClientRect()),u(({x:a})=>a)).subscribe({next(a){a?n.style.setProperty("--md-tooltip-0",`${-a}px`):n.style.removeProperty("--md-tooltip-0")},complete(){n.style.removeProperty("--md-tooltip-0")}}),ws(n,e).pipe(w(a=>i.next(a)),A(()=>i.complete()),u(a=>P({ref:e},a)))}).pipe(De(se))}function Es(e,t){let r=R(()=>B([So(e),Be(t)])).pipe(u(([{x:n,y:o},i])=>{let{width:a,height:s}=fe(e);return{x:n-i.x+a/2,y:o-i.y+s/2}}));return ht(e).pipe(y(n=>r.pipe(u(o=>({active:n,offset:o})),te(+!n||1/0))))}function ni(e,t,{target$:r}){let[n,o]=Array.from(e.children);return R(()=>{let i=new S,a=i.pipe(ue(1));return i.subscribe({next({offset:s}){e.style.setProperty("--md-tooltip-x",`${s.x}px`),e.style.setProperty("--md-tooltip-y",`${s.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),yt(e).pipe(Y(a)).subscribe(s=>{e.toggleAttribute("data-md-visible",s)}),O(i.pipe(v(({active:s})=>s)),i.pipe(ye(250),v(({active:s})=>!s))).subscribe({next({active:s}){s?e.prepend(n):n.remove()},complete(){e.prepend(n)}}),i.pipe(Se(16,de)).subscribe(({active:s})=>{n.classList.toggle("md-tooltip--active",s)}),i.pipe(Ht(125,de),v(()=>!!e.offsetParent),u(()=>e.offsetParent.getBoundingClientRect()),u(({x:s})=>s)).subscribe({next(s){s?e.style.setProperty("--md-tooltip-0",`${-s}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),g(o,"click").pipe(Y(a),v(s=>!(s.metaKey||s.ctrlKey))).subscribe(s=>s.preventDefault()),g(o,"mousedown").pipe(Y(a),ce(i)).subscribe(([s,{active:c}])=>{var p;if(s.button!==0||s.metaKey||s.ctrlKey)s.preventDefault();else if(c){s.preventDefault();let f=e.parentElement.closest(".md-annotation");f instanceof HTMLElement?f.focus():(p=ze())==null||p.blur()}}),r.pipe(Y(a),v(s=>s===n),He(125)).subscribe(()=>e.focus()),Es(e,t).pipe(w(s=>i.next(s)),A(()=>i.complete()),u(s=>P({ref:e},s)))})}function Ss(e){let t=[];for(let r of e.tagName==="CODE"?D(".c, .c1, .cm",e):[e]){let n=[],o=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=o.nextNode();i;i=o.nextNode())n.push(i);for(let i of n){let a;for(;a=/(\(\d+\))(!)?/.exec(i.textContent);){let[,s,c]=a;if(typeof c=="undefined"){let p=i.splitText(a.index);i=p.splitText(s.length),t.push(p)}else{i.textContent=s,t.push(i);break}}}}return t}function oi(e,t){t.append(...Array.from(e.childNodes))}function xr(e,t,{target$:r,print$:n}){let o=t.closest("[id]"),i=o==null?void 0:o.id,a=new Map;for(let s of Ss(t)){let[,c]=s.textContent.match(/\((\d+)\)/);pe(`li:nth-child(${c})`,e)&&(a.set(c,Jo(c,i)),s.replaceWith(a.get(c)))}return a.size===0?k:R(()=>{let s=new S,c=[];for(let[p,f]of a)c.push([K(".md-typeset",f),K(`li:nth-child(${p})`,e)]);return n.pipe(Y(s.pipe(ue(1)))).subscribe(p=>{e.hidden=!p;for(let[f,l]of c)p?oi(f,l):oi(l,f)}),O(...[...a].map(([,p])=>ni(p,t,{target$:r}))).pipe(A(()=>s.complete()),ae())})}function ii(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return ii(t)}}function ai(e,t){return R(()=>{let r=ii(e);return typeof r!="undefined"?xr(r,e,t):k})}var ci=it(rn());var Os=0;function pi(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return pi(t)}}function si(e){return we(e).pipe(u(({width:t})=>({scrollable:vt(e).width>t})),ee("scrollable"))}function fi(e,t){let{matches:r}=matchMedia("(hover)"),n=R(()=>{let o=new S,i=o.pipe(ue(1));o.subscribe(({scrollable:c})=>{c&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let a=k;if(ci.default.isSupported()){let c=e.closest("pre");c.id=`__code_${++Os}`;let p=Xo(c.id);c.insertBefore(p,e),Z("content.tooltips")&&(a=Ne(p))}let s=e.closest(".highlight");if(s instanceof HTMLElement){let c=pi(s);if(typeof c!="undefined"&&(s.classList.contains("annotate")||Z("content.code.annotate"))){let p=xr(c,e,t);return si(e).pipe(w(f=>o.next(f)),A(()=>o.complete()),u(f=>P({ref:e},f)),Ie(a,we(s).pipe(Y(i),u(({width:f,height:l})=>f&&l),G(),y(f=>f?p:k))))}}return si(e).pipe(w(c=>o.next(c)),A(()=>o.complete()),u(c=>P({ref:e},c)),Ie(a))});return Z("content.lazy")?yt(e).pipe(v(o=>o),te(1),y(()=>n)):n}var li=".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}marker{fill:var(--md-mermaid-edge-color)!important}.edgeLabel .label rect{fill:transparent}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel rect,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel rect{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color)}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}defs #flowchart-circleEnd,defs #flowchart-circleStart,defs #flowchart-crossEnd,defs #flowchart-crossStart,defs #flowchart-pointEnd,defs #flowchart-pointStart{stroke:none}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs #classDiagram-compositionEnd,defs #classDiagram-compositionStart,defs #classDiagram-dependencyEnd,defs #classDiagram-dependencyStart,defs #classDiagram-extensionEnd,defs #classDiagram-extensionStart{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs #classDiagram-aggregationEnd,defs #classDiagram-aggregationStart{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs #statediagram-barbEnd{stroke:var(--md-mermaid-edge-color)}.entityBox{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityLabel{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.relationshipLabelBox{fill:var(--md-mermaid-label-bg-color);fill-opacity:1;background-color:var(--md-mermaid-label-bg-color);opacity:1}.relationshipLabel{fill:var(--md-mermaid-label-fg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs #ONE_OR_MORE_END *,defs #ONE_OR_MORE_START *,defs #ONLY_ONE_END *,defs #ONLY_ONE_START *,defs #ZERO_OR_MORE_END *,defs #ZERO_OR_MORE_START *,defs #ZERO_OR_ONE_END *,defs #ZERO_OR_ONE_START *{stroke:var(--md-mermaid-edge-color)!important}.actor,defs #ZERO_OR_MORE_END circle,defs #ZERO_OR_MORE_START circle{fill:var(--md-mermaid-label-bg-color)}.actor{stroke:var(--md-mermaid-node-fg-color)}text.actor>tspan{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}line{stroke:var(--md-default-fg-color--lighter)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-edge-color)}.loopText>tspan,.messageText,.noteText>tspan{font-family:var(--md-mermaid-font-family)!important}#arrowhead path,.loopText>tspan,.messageText,.noteText>tspan{fill:var(--md-mermaid-edge-color);stroke:none}.loopLine{stroke:var(--md-mermaid-node-fg-color)}.labelBox,.loopLine{fill:var(--md-mermaid-node-bg-color)}.labelBox{stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-node-fg-color);font-family:var(--md-mermaid-font-family)}";var nn,_s=0;function Ms(){return typeof mermaid=="undefined"||mermaid instanceof Element?gr("https://unpkg.com/mermaid@9.1.7/dist/mermaid.min.js"):H(void 0)}function ui(e){return e.classList.remove("mermaid"),nn||(nn=Ms().pipe(w(()=>mermaid.initialize({startOnLoad:!1,themeCSS:li,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),u(()=>{}),J(1))),nn.subscribe(()=>{e.classList.add("mermaid");let t=`__mermaid_${_s++}`,r=T("div",{class:"mermaid"});mermaid.mermaidAPI.render(t,e.textContent,n=>{let o=r.attachShadow({mode:"closed"});o.innerHTML=n,e.replaceWith(r)})}),nn.pipe(u(()=>({ref:e})))}function Ls(e,{target$:t,print$:r}){let n=!0;return O(t.pipe(u(o=>o.closest("details:not([open])")),v(o=>e===o),u(()=>({action:"open",reveal:!0}))),r.pipe(v(o=>o||!n),w(()=>n=e.open),u(o=>({action:o?"open":"close"}))))}function mi(e,t){return R(()=>{let r=new S;return r.subscribe(({action:n,reveal:o})=>{e.toggleAttribute("open",n==="open"),o&&e.scrollIntoView()}),Ls(e,t).pipe(w(n=>r.next(n)),A(()=>r.complete()),u(n=>P({ref:e},n)))})}var di=T("table");function hi(e){return e.replaceWith(di),di.replaceWith(ti(e)),H({ref:e})}function As(e){let t=e.find(r=>r.checked)||e[0];return O(...e.map(r=>g(r,"change").pipe(u(()=>K(`label[for="${r.id}"]`))))).pipe(q(K(`label[for="${t.id}"]`)),u(r=>({active:r})))}function bi(e,{viewport$:t,target$:r}){let n=K(".tabbed-labels",e),o=D(":scope > input",e),i=en("prev");e.append(i);let a=en("next");return e.append(a),R(()=>{let s=new S,c=s.pipe(ue(1));B([s,we(e)]).pipe(Y(c),Se(1,de)).subscribe({next([{active:p},f]){let l=je(p),{width:m}=fe(p);e.style.setProperty("--md-indicator-x",`${l.x}px`),e.style.setProperty("--md-indicator-width",`${m}px`);let d=fr(n);(l.x<d.x||l.x+m>d.x+f.width)&&n.scrollTo({left:Math.max(0,l.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),B([Be(n),we(n)]).pipe(Y(c)).subscribe(([p,f])=>{let l=vt(n);i.hidden=p.x<16,a.hidden=p.x>l.width-f.width-16}),O(g(i,"click").pipe(u(()=>-1)),g(a,"click").pipe(u(()=>1))).pipe(Y(c)).subscribe(p=>{let{width:f}=fe(n);n.scrollBy({left:f*p,behavior:"smooth"})}),r.pipe(Y(c),v(p=>o.includes(p))).subscribe(p=>p.click()),n.classList.add("tabbed-labels--linked");for(let p of o){let f=K(`label[for="${p.id}"]`);f.replaceChildren(T("a",{href:`#${f.htmlFor}`,tabIndex:-1},...Array.from(f.childNodes))),g(f.firstElementChild,"click").pipe(Y(c),v(l=>!(l.metaKey||l.ctrlKey)),w(l=>l.preventDefault())).subscribe(()=>{history.replaceState({},"",`#${f.htmlFor}`),f.click()})}return Z("content.tabs.link")&&s.pipe(be(1),ce(t)).subscribe(([{active:p},{offset:f}])=>{let l=p.innerText.trim();if(p.hasAttribute("data-md-switching"))p.removeAttribute("data-md-switching");else{let m=e.offsetTop-f.y;for(let h of D("[data-tabs]"))for(let b of D(":scope > input",h)){let $=K(`label[for="${b.id}"]`);if($!==p&&$.innerText.trim()===l){$.setAttribute("data-md-switching",""),b.click();break}}window.scrollTo({top:e.offsetTop-m});let d=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([l,...d])])}}),As(o).pipe(w(p=>s.next(p)),A(()=>s.complete()),u(p=>P({ref:e},p)))}).pipe(De(se))}function vi(e,{viewport$:t,target$:r,print$:n}){return O(...D(".annotate:not(.highlight)",e).map(o=>ai(o,{target$:r,print$:n})),...D("pre:not(.mermaid) > code",e).map(o=>fi(o,{target$:r,print$:n})),...D("pre.mermaid",e).map(o=>ui(o)),...D("table:not([class])",e).map(o=>hi(o)),...D("details",e).map(o=>mi(o,{target$:r,print$:n})),...D("[data-tabs]",e).map(o=>bi(o,{viewport$:t,target$:r})),...D("[title]",e).filter(()=>Z("content.tooltips")).map(o=>Ne(o)))}function Cs(e,{alert$:t}){return t.pipe(y(r=>O(H(!0),H(!1).pipe(He(2e3))).pipe(u(n=>({message:r,active:n})))))}function gi(e,t){let r=K(".md-typeset",e);return R(()=>{let n=new S;return n.subscribe(({message:o,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=o}),Cs(e,t).pipe(w(o=>n.next(o)),A(()=>n.complete()),u(o=>P({ref:e},o)))})}function ks({viewport$:e}){if(!Z("header.autohide"))return H(!1);let t=e.pipe(u(({offset:{y:o}})=>o),Re(2,1),u(([o,i])=>[o<i,i]),ee(0)),r=B([e,t]).pipe(v(([{offset:o},[,i]])=>Math.abs(i-o.y)>100),u(([,[o]])=>o),G()),n=Je("search");return B([e,n]).pipe(u(([{offset:o},i])=>o.y>400&&!i),G(),y(o=>o?r:H(!1)),q(!1))}function yi(e,t){return R(()=>B([we(e),ks(t)])).pipe(u(([{height:r},n])=>({height:r,hidden:n})),G((r,n)=>r.height===n.height&&r.hidden===n.hidden),J(1))}function xi(e,{header$:t,main$:r}){return R(()=>{let n=new S,o=n.pipe(ue(1));n.pipe(ee("active"),nt(t)).subscribe(([{active:a},{hidden:s}])=>{e.classList.toggle("md-header--shadow",a&&!s),e.hidden=s});let i=he(D("[title]",e)).pipe(v(()=>Z("content.tooltips")),re(a=>Ne(a)));return r.subscribe(n),t.pipe(Y(o),u(a=>P({ref:e},a)),Ie(i.pipe(Y(o))))})}function Rs(e,{viewport$:t,header$:r}){return yr(e,{viewport$:t,header$:r}).pipe(u(({offset:{y:n}})=>{let{height:o}=fe(e);return{active:n>=o}}),ee("active"))}function wi(e,t){return R(()=>{let r=new S;r.subscribe(({active:o})=>{e.classList.toggle("md-header__title--active",o)});let n=pe(".md-content h1");return typeof n=="undefined"?k:Rs(n,t).pipe(w(o=>r.next(o)),A(()=>r.complete()),u(o=>P({ref:e},o)))})}function Ei(e,{viewport$:t,header$:r}){let n=r.pipe(u(({height:i})=>i),G()),o=n.pipe(y(()=>we(e).pipe(u(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),ee("bottom"))));return B([n,o,t]).pipe(u(([i,{top:a,bottom:s},{offset:{y:c},size:{height:p}}])=>(p=Math.max(0,p-Math.max(0,a-c,i)-Math.max(0,p+c-s)),{offset:a-i,height:p,active:a-i<=c})),G((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function Hs(e){let t=__md_get("__palette")||{index:e.findIndex(r=>matchMedia(r.getAttribute("data-md-color-media")).matches)};return H(...e).pipe(re(r=>g(r,"change").pipe(u(()=>r))),q(e[Math.max(0,t.index)]),u(r=>({index:e.indexOf(r),color:{media:r.getAttribute("data-md-color-media"),scheme:r.getAttribute("data-md-color-scheme"),primary:r.getAttribute("data-md-color-primary"),accent:r.getAttribute("data-md-color-accent")}})),J(1))}function Si(e){let t=Pt("(prefers-color-scheme: light)"),r=D("input",e);return R(()=>{let n=new S;return n.subscribe(o=>{if(document.body.setAttribute("data-md-color-switching",""),o.color.media==="(prefers-color-scheme)"){let i=matchMedia("(prefers-color-scheme: light)"),a=document.querySelector(i.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");o.color.scheme=a.getAttribute("data-md-color-scheme"),o.color.primary=a.getAttribute("data-md-color-primary"),o.color.accent=a.getAttribute("data-md-color-accent")}for(let[i,a]of Object.entries(o.color))document.body.setAttribute(`data-md-color-${i}`,a);for(let i=0;i<r.length;i++){let a=r[i].nextElementSibling;a instanceof HTMLElement&&(a.hidden=o.index!==i)}__md_set("__palette",o)}),n.pipe(ke(se)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")}),Hs(r).pipe(Y(t.pipe(be(1))),ot(),w(o=>n.next(o)),A(()=>n.complete()),u(o=>P({ref:e},o)))})}var on=it(rn());function Ps(e){e.setAttribute("data-md-copying","");let t=e.innerText;return e.removeAttribute("data-md-copying"),t}function Oi({alert$:e}){on.default.isSupported()&&new U(t=>{new on.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||Ps(K(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(w(t=>{t.trigger.focus()}),u(()=>oe("clipboard.copied"))).subscribe(e)}function $s(e){if(e.length<2)return[""];let[t,r]=[...e].sort((o,i)=>o.length-i.length).map(o=>o.replace(/[^/]+$/,"")),n=0;if(t===r)n=t.length;else for(;t.charCodeAt(n)===r.charCodeAt(n);)n++;return e.map(o=>o.replace(t.slice(0,n),""))}function wr(e){let t=__md_get("__sitemap",sessionStorage,e);if(t)return H(t);{let r=ve();return Vo(new URL("sitemap.xml",e||r.base)).pipe(u(n=>$s(D("loc",n).map(o=>o.textContent))),le(()=>k),Ve([]),w(n=>__md_set("__sitemap",n,sessionStorage,e)))}}function Ti({document$:e,location$:t,viewport$:r}){let n=ve();if(location.protocol==="file:")return;"scrollRestoration"in history&&(history.scrollRestoration="manual",g(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));let o=pe("link[rel=icon]");typeof o!="undefined"&&(o.href=o.href);let i=wr().pipe(u(p=>p.map(f=>`${new URL(f,n.base)}`)),y(p=>g(document.body,"click").pipe(v(f=>!f.metaKey&&!f.ctrlKey),y(f=>{if(f.target instanceof Element){let l=f.target.closest("a");if(l&&!l.target){let m=new URL(l.href);if(m.search="",m.hash="",m.pathname!==location.pathname&&p.includes(m.toString()))return f.preventDefault(),H({url:new URL(l.href)})}}return _e}))),ae()),a=g(window,"popstate").pipe(v(p=>p.state!==null),u(p=>({url:new URL(location.href),offset:p.state})),ae());O(i,a).pipe(G((p,f)=>p.url.href===f.url.href),u(({url:p})=>p)).subscribe(t);let s=t.pipe(ee("pathname"),y(p=>vr(p.href).pipe(le(()=>(hr(p),_e)))),ae());i.pipe(dt(s)).subscribe(({url:p})=>{history.pushState({},"",`${p}`)});let c=new DOMParser;s.pipe(y(p=>p.text()),u(p=>c.parseFromString(p,"text/html"))).subscribe(e),e.pipe(be(1)).subscribe(p=>{for(let f 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=outdated]","[data-md-component=logo]","[data-md-component=skip]",...Z("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let l=pe(f),m=pe(f,p);typeof l!="undefined"&&typeof m!="undefined"&&l.replaceWith(m)}}),e.pipe(be(1),u(()=>Le("container")),y(p=>D("script",p)),Vr(p=>{let f=T("script");if(p.src){for(let l of p.getAttributeNames())f.setAttribute(l,p.getAttribute(l));return p.replaceWith(f),new U(l=>{f.onload=()=>l.complete()})}else return f.textContent=p.textContent,p.replaceWith(f),k})).subscribe(),O(i,a).pipe(dt(e)).subscribe(({url:p,offset:f})=>{p.hash&&!f?Uo(p.hash):window.scrollTo(0,(f==null?void 0:f.y)||0)}),r.pipe(kt(i),ye(250),ee("offset")).subscribe(({offset:p})=>{history.replaceState(p,"")}),O(i,a).pipe(Re(2,1),v(([p,f])=>p.url.pathname===f.url.pathname),u(([,p])=>p)).subscribe(({offset:p})=>{window.scrollTo(0,(p==null?void 0:p.y)||0)})}function _i(e,t=r=>r){return e.split(/"([^"]+)"/g).map((r,n)=>n&1?r.replace(/^\b|^(?![^\x00-\x7F]|$)|\s+/g," +"):r).join("").replace(/"|(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g,"").split(/\s+/g).flatMap(t).map(r=>/^[+-]/.test(r)?r:`${r}*`).join(" ").trim()}var Ai=it(Li());function Ci(e){let t=e.separator.split("|").map(o=>o.replace(/(\(\?[!=][^)]+\))/g,"").length===0?"\uFFFD":o).join("|"),r=new RegExp(t,"img"),n=(o,i,a)=>`${i}<mark data-md-highlight>${a}</mark>`;return o=>{o=o.replace(/[\s*+\-:~^]+/g," ").trim();let i=new RegExp(`(^|${e.separator}|)(${o.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(r,"|")})`,"img");return a=>(0,Ai.default)(a).replace(i,n).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function wt(e){return e.type===1}function ki(e){return e.type===2}function Et(e){return e.type===3}function Us({config:e,docs:t}){e.lang.length===1&&e.lang[0]==="en"&&(e.lang=[oe("search.config.lang")]),e.separator==="[\\s\\-]+"&&(e.separator=oe("search.config.separator"));let n={pipeline:oe("search.config.pipeline").split(/\s*,\s*/).filter(Boolean),suggestions:Z("search.suggest")};return{config:e,docs:t,options:n}}function Ri(e,t){let r=ve(),n=new Worker(e),o=new S,i=Yo(n,{tx$:o}).pipe(u(s=>{if(Et(s))for(let c of s.data.items)for(let p of c)p.location=`${new URL(p.location,r.base)}`;return s}),ae());return O(H(location.protocol!=="file:"),Je("search")).pipe(v(s=>s),te(1)).pipe(y(()=>t),te(1),u(s=>({type:0,data:Us(s)}))).subscribe(o.next.bind(o)),{tx$:o,rx$:i}}function Hi({document$:e}){let t=ve(),r=Fe(new URL("../versions.json",t.base)).pipe(le(()=>k)),n=r.pipe(u(o=>{let[,i]=t.base.match(/([^/]+)\/?$/);return o.find(({version:a,aliases:s})=>a===i||s.includes(i))||o[0]}));r.pipe(u(o=>new Map(o.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),y(o=>g(document.body,"click").pipe(v(i=>!i.metaKey&&!i.ctrlKey),ce(n),y(([i,a])=>{if(i.target instanceof Element){let s=i.target.closest("a");if(s&&!s.target&&o.has(s.href)){let c=s.href;return!i.target.closest(".md-version")&&o.get(c)===a?k:(i.preventDefault(),H(c))}}return k}),y(i=>{let{version:a}=o.get(i);return wr(new URL(i)).pipe(u(s=>{let p=Me().href.replace(t.base,"");return s.includes(p.split("#")[0])?new URL(`../${a}/${p}`,t.base):new URL(i)}))})))).subscribe(o=>hr(o)),B([r,n]).subscribe(([o,i])=>{K(".md-header__topic").appendChild(ri(o,i))}),e.pipe(y(()=>n)).subscribe(o=>{var a;let i=__md_get("__outdated",sessionStorage);if(i===null){let s=((a=t.version)==null?void 0:a.default)||"latest";i=!o.aliases.includes(s),__md_set("__outdated",i,sessionStorage)}if(i)for(let s of ne("outdated"))s.hidden=!1})}function Ws(e,{rx$:t},{index$:r}){let n=(__search==null?void 0:__search.transform)||_i,{searchParams:o}=Me();o.has("q")&&Ge("search",!0);let i=t.pipe(v(wt),te(1),u(()=>o.get("q")||""));Je("search").pipe(v(c=>!c),te(1)).subscribe(()=>{let c=new URL(location.href);c.searchParams.delete("q"),history.replaceState({},"",`${c}`)}),i.subscribe(c=>{c&&(e.value=c,e.focus())});let a=ht(e),s=O(g(e,"keyup"),g(e,"focus").pipe(He(1)),i).pipe(y(()=>r),u(({config:c})=>n(e.value,p=>{let f=[];return Jr(p,c.separator,l=>{f.push(p.slice(...l))}),f})),G());return B([s,a]).pipe(u(([c,p])=>({value:c,focus:p})),J(1))}function Pi(e,{tx$:t,rx$:r},n){let o=new S,i=o.pipe(ue(1));return o.pipe(ee("value"),u(({value:a})=>({type:2,data:a}))).subscribe(t.next.bind(t)),o.pipe(ee("focus")).subscribe(({focus:a})=>{a?(Ge("search",a),e.placeholder=""):e.placeholder=oe("search.placeholder")}),g(e.form,"reset").pipe(Y(i)).subscribe(()=>e.focus()),Ws(e,{tx$:t,rx$:r},n).pipe(w(a=>o.next(a)),A(()=>o.complete()),u(a=>P({ref:e},a)),ae())}function $i(e,{rx$:t},{query$:r}){let n=new S,o=Ho(e.parentElement).pipe(v(Boolean)),i=K(":scope > :first-child",e),a=K(":scope > :last-child",e),s=t.pipe(v(wt),te(1));return n.pipe(ce(r),kt(s)).subscribe(([{items:p},{value:f}])=>{if(f)switch(p.length){case 0:i.textContent=oe("search.result.none");break;case 1:i.textContent=oe("search.result.one");break;default:i.textContent=oe("search.result.other",br(p.length))}else i.textContent=oe("search.result.placeholder")}),n.pipe(w(()=>a.innerHTML=""),y(({items:p})=>O(H(...p.slice(0,10)),H(...p.slice(10)).pipe(Re(4),Br(o),y(([f])=>f)))),u(p=>{let f=Zo(p);return a.appendChild(f),pe("details",f)})).subscribe(p=>{p&&p.addEventListener("toggle",()=>{!p.open&&p.offsetTop<=e.parentElement.scrollTop&&(e.parentElement.scrollTop=p.offsetTop)})}),t.pipe(v(Et),u(({data:p})=>p)).pipe(w(p=>n.next(p)),A(()=>n.complete()),u(p=>P({ref:e},p)))}function Ds(e,{query$:t}){return t.pipe(u(({value:r})=>{let n=Me();return n.hash="",n.searchParams.delete("h"),n.searchParams.set("q",r),{url:n}}))}function Ii(e,t){let r=new S;return r.subscribe(({url:n})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${n}`}),g(e,"click").subscribe(n=>n.preventDefault()),Ds(e,t).pipe(w(n=>r.next(n)),A(()=>r.complete()),u(n=>P({ref:e},n)))}function ji(e,{rx$:t},{keyboard$:r}){let n=new S,o=Le("search-query"),i=O(g(o,"keydown"),g(o,"focus")).pipe(ke(se),u(()=>o.value),G());return n.pipe(nt(i),u(([{suggestions:s},c])=>{let p=c.split(/([\s-]+)/);if((s==null?void 0:s.length)&&p[p.length-1]){let f=s[s.length-1];f.startsWith(p[p.length-1])&&(p[p.length-1]=f)}else p.length=0;return p})).subscribe(s=>e.innerHTML=s.join("").replace(/\s/g,"&nbsp;")),r.pipe(v(({mode:s})=>s==="search")).subscribe(s=>{switch(s.type){case"ArrowRight":e.innerText.length&&o.selectionStart===o.value.length&&(o.value=e.innerText);break}}),t.pipe(v(Et),u(({data:s})=>s)).pipe(w(s=>n.next(s)),A(()=>n.complete()),u(()=>({ref:e})))}function Fi(e,{index$:t,keyboard$:r}){let n=ve();try{let o=(__search==null?void 0:__search.worker)||n.search,i=Ri(o,t),a=Le("search-query",e),s=Le("search-result",e),{tx$:c,rx$:p}=i;c.pipe(v(ki),dt(p.pipe(v(wt))),te(1)).subscribe(c.next.bind(c)),r.pipe(v(({mode:m})=>m==="search")).subscribe(m=>{let d=ze();switch(m.type){case"Enter":if(d===a){let h=new Map;for(let b of D(":first-child [href]",s)){let $=b.firstElementChild;h.set(b,parseFloat($.getAttribute("data-md-score")))}if(h.size){let[[b]]=[...h].sort(([,$],[,X])=>X-$);b.click()}m.claim()}break;case"Escape":case"Tab":Ge("search",!1),a.blur();break;case"ArrowUp":case"ArrowDown":if(typeof d=="undefined")a.focus();else{let h=[a,...D(":not(details) > [href], summary, details[open] [href]",s)],b=Math.max(0,(Math.max(0,h.indexOf(d))+h.length+(m.type==="ArrowUp"?-1:1))%h.length);h[b].focus()}m.claim();break;default:a!==ze()&&a.focus()}}),r.pipe(v(({mode:m})=>m==="global")).subscribe(m=>{switch(m.type){case"f":case"s":case"/":a.focus(),a.select(),m.claim();break}});let f=Pi(a,i,{index$:t}),l=$i(s,i,{query$:f});return O(f,l).pipe(Ie(...ne("search-share",e).map(m=>Ii(m,{query$:f})),...ne("search-suggest",e).map(m=>ji(m,i,{keyboard$:r}))))}catch(o){return e.hidden=!0,_e}}function Ui(e,{index$:t,location$:r}){return B([t,r.pipe(q(Me()),v(n=>!!n.searchParams.get("h")))]).pipe(u(([n,o])=>Ci(n.config)(o.searchParams.get("h"))),u(n=>{var a;let o=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let s=i.nextNode();s;s=i.nextNode())if((a=s.parentElement)!=null&&a.offsetHeight){let c=s.textContent,p=n(c);p.length>c.length&&o.set(s,p)}for(let[s,c]of o){let{childNodes:p}=T("span",null,c);s.replaceWith(...Array.from(p))}return{ref:e,nodes:o}}))}function Vs(e,{viewport$:t,main$:r}){let n=e.closest(".md-grid"),o=n.offsetTop-n.parentElement.offsetTop;return B([r,t]).pipe(u(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(o,Math.max(0,s-i))-o,{height:a,locked:s>=i+o})),G((i,a)=>i.height===a.height&&i.locked===a.locked))}function an(e,n){var o=n,{header$:t}=o,r=mn(o,["header$"]);let i=K(".md-sidebar__scrollwrap",e),{y:a}=je(i);return R(()=>{let s=new S;return s.pipe(Se(0,de),ce(t)).subscribe({next([{height:c},{height:p}]){i.style.height=`${c-2*a}px`,e.style.top=`${p}px`},complete(){i.style.height="",e.style.top=""}}),s.pipe(ke(de),te(1)).subscribe(()=>{for(let c of D(".md-nav__link--active[href]",e)){let p=gt(c);if(typeof p!="undefined"){let f=c.offsetTop-p.offsetTop,{height:l}=fe(p);p.scrollTo({top:f-l/2})}}}),Vs(e,r).pipe(w(c=>s.next(c)),A(()=>s.complete()),u(c=>P({ref:e},c)))})}function Wi(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return Ct(Fe(`${r}/releases/latest`).pipe(le(()=>k),u(n=>({version:n.tag_name})),Ve({})),Fe(r).pipe(le(()=>k),u(n=>({stars:n.stargazers_count,forks:n.forks_count})),Ve({}))).pipe(u(([n,o])=>P(P({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return Fe(r).pipe(u(n=>({repositories:n.public_repos})),Ve({}))}}function Di(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Fe(r).pipe(le(()=>k),u(({star_count:n,forks_count:o})=>({stars:n,forks:o})),Ve({}))}function Vi(e){let[t]=e.match(/(git(?:hub|lab))/i)||[];switch(t.toLowerCase()){case"github":let[,r,n]=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);return Wi(r,n);case"gitlab":let[,o,i]=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i);return Di(o,i);default:return k}}var zs;function Ns(e){return zs||(zs=R(()=>{let t=__md_get("__source",sessionStorage);if(t)return H(t);if(ne("consent").length){let n=__md_get("__consent");if(!(n&&n.github))return k}return Vi(e.href).pipe(w(n=>__md_set("__source",n,sessionStorage)))}).pipe(le(()=>k),v(t=>Object.keys(t).length>0),u(t=>({facts:t})),J(1)))}function zi(e){let t=K(":scope > :last-child",e);return R(()=>{let r=new S;return r.subscribe(({facts:n})=>{t.appendChild(ei(n)),t.classList.add("md-source__repository--active")}),Ns(e).pipe(w(n=>r.next(n)),A(()=>r.complete()),u(n=>P({ref:e},n)))})}function qs(e,{viewport$:t,header$:r}){return we(document.body).pipe(y(()=>yr(e,{header$:r,viewport$:t})),u(({offset:{y:n}})=>({hidden:n>=10})),ee("hidden"))}function Ni(e,t){return R(()=>{let r=new S;return r.subscribe({next({hidden:n}){e.hidden=n},complete(){e.hidden=!1}}),(Z("navigation.tabs.sticky")?H({hidden:!1}):qs(e,t)).pipe(w(n=>r.next(n)),A(()=>r.complete()),u(n=>P({ref:e},n)))})}function Ks(e,{viewport$:t,header$:r}){let n=new Map,o=D("[href^=\\#]",e);for(let s of o){let c=decodeURIComponent(s.hash.substring(1)),p=pe(`[id="${c}"]`);typeof p!="undefined"&&n.set(s,p)}let i=r.pipe(ee("height"),u(({height:s})=>{let c=Le("main"),p=K(":scope > :first-child",c);return s+.8*(p.offsetTop-c.offsetTop)}),ae());return we(document.body).pipe(ee("height"),y(s=>R(()=>{let c=[];return H([...n].reduce((p,[f,l])=>{for(;c.length&&n.get(c[c.length-1]).tagName>=l.tagName;)c.pop();let m=l.offsetTop;for(;!m&&l.parentElement;)l=l.parentElement,m=l.offsetTop;return p.set([...c=[...c,f]].reverse(),m)},new Map))}).pipe(u(c=>new Map([...c].sort(([,p],[,f])=>p-f))),nt(i),y(([c,p])=>t.pipe(qr(([f,l],{offset:{y:m},size:d})=>{let h=m+d.height>=Math.floor(s.height);for(;l.length;){let[,b]=l[0];if(b-p<m||h)f=[...f,l.shift()];else break}for(;f.length;){let[,b]=f[f.length-1];if(b-p>=m&&!h)l=[f.pop(),...l];else break}return[f,l]},[[],[...c]]),G((f,l)=>f[0]===l[0]&&f[1]===l[1])))))).pipe(u(([s,c])=>({prev:s.map(([p])=>p),next:c.map(([p])=>p)})),q({prev:[],next:[]}),Re(2,1),u(([s,c])=>s.prev.length<c.prev.length?{prev:c.prev.slice(Math.max(0,s.prev.length-1),c.prev.length),next:[]}:{prev:c.prev.slice(-1),next:c.next.slice(0,c.next.length-s.next.length)}))}function qi(e,{viewport$:t,header$:r,target$:n}){return R(()=>{let o=new S,i=o.pipe(ue(1));if(o.subscribe(({prev:a,next:s})=>{for(let[c]of s)c.classList.remove("md-nav__link--passed"),c.classList.remove("md-nav__link--active");for(let[c,[p]]of a.entries())p.classList.add("md-nav__link--passed"),p.classList.toggle("md-nav__link--active",c===a.length-1)}),Z("toc.follow")){let a=O(t.pipe(ye(1),u(()=>{})),t.pipe(ye(250),u(()=>"smooth")));o.pipe(v(({prev:s})=>s.length>0),ce(a)).subscribe(([{prev:s},c])=>{let[p]=s[s.length-1];if(p.offsetHeight){let f=gt(p);if(typeof f!="undefined"){let l=p.offsetTop-f.offsetTop,{height:m}=fe(f);f.scrollTo({top:l-m/2,behavior:c})}}})}return Z("navigation.tracking")&&t.pipe(Y(i),ee("offset"),ye(250),be(1),Y(n.pipe(be(1))),ot({delay:250}),ce(o)).subscribe(([,{prev:a}])=>{let s=Me(),c=a[a.length-1];if(c&&c.length){let[p]=c,{hash:f}=new URL(p.href);s.hash!==f&&(s.hash=f,history.replaceState({},"",`${s}`))}else s.hash="",history.replaceState({},"",`${s}`)}),Ks(e,{viewport$:t,header$:r}).pipe(w(a=>o.next(a)),A(()=>o.complete()),u(a=>P({ref:e},a)))})}function Qs(e,{viewport$:t,main$:r,target$:n}){let o=t.pipe(u(({offset:{y:a}})=>a),Re(2,1),u(([a,s])=>a>s&&s>0),G()),i=r.pipe(u(({active:a})=>a));return B([i,o]).pipe(u(([a,s])=>!(a&&s)),G(),Y(n.pipe(be(1))),Nr(!0),ot({delay:250}),u(a=>({hidden:a})))}function Ki(e,{viewport$:t,header$:r,main$:n,target$:o}){let i=new S,a=i.pipe(ue(1));return i.subscribe({next({hidden:s}){e.hidden=s,s?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(Y(a),ee("height")).subscribe(({height:s})=>{e.style.top=`${s+16}px`}),Qs(e,{viewport$:t,main$:n,target$:o}).pipe(w(s=>i.next(s)),A(()=>i.complete()),u(s=>P({ref:e},s)))}function Qi({document$:e}){e.pipe(y(()=>D(".md-ellipsis")),re(t=>yt(t).pipe(Y(e.pipe(be(1))),v(r=>r),u(()=>t),te(1))),v(t=>t.offsetWidth<t.scrollWidth),re(t=>{let r=t.innerText,n=t.closest("a")||t;return n.title=r,Ne(n).pipe(Y(e.pipe(be(1))),A(()=>n.removeAttribute("title")))})).subscribe(),e.pipe(y(()=>D(".md-status")),re(t=>Ne(t))).subscribe()}function Yi({document$:e,tablet$:t}){e.pipe(y(()=>D(".md-toggle--indeterminate, [data-md-state=indeterminate]")),w(r=>{r.indeterminate=!0,r.checked=!1}),re(r=>g(r,"change").pipe(Qr(()=>r.classList.contains("md-toggle--indeterminate")),u(()=>r))),ce(t)).subscribe(([r,n])=>{r.classList.remove("md-toggle--indeterminate"),n&&(r.checked=!1)})}function Ys(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Bi({document$:e}){e.pipe(y(()=>D("[data-md-scrollfix]")),w(t=>t.removeAttribute("data-md-scrollfix")),v(Ys),re(t=>g(t,"touchstart").pipe(u(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}function Gi({viewport$:e,tablet$:t}){B([Je("search"),t]).pipe(u(([r,n])=>r&&!n),y(r=>H(r).pipe(He(r?400:100))),ce(e)).subscribe(([r,{offset:{y:n}}])=>{if(r)document.body.setAttribute("data-md-scrolllock",""),document.body.style.top=`-${n}px`;else{let o=-1*parseInt(document.body.style.top,10);document.body.removeAttribute("data-md-scrolllock"),document.body.style.top="",o&&window.scrollTo(0,o)}})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let n=e[r];typeof n!="object"?n=document.createTextNode(n):n.parentNode&&n.parentNode.removeChild(n),r?t.insertBefore(this.previousSibling,n):t.replaceChild(n,this)}}}));function Bs(){return location.protocol==="file:"?gr(`${new URL("search/search_index.js",sn.base)}`).pipe(u(()=>__index),J(1)):Fe(new URL("search/search_index.json",sn.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var Ze=wo(),Sr=Io(),St=Wo(),cn=$o(),Oe=Qo(),Or=Pt("(min-width: 960px)"),Xi=Pt("(min-width: 1220px)"),Zi=Do(),sn=ve(),ea=document.forms.namedItem("search")?Bs():_e,pn=new S;Oi({alert$:pn});Z("navigation.instant")&&Ti({document$:Ze,location$:Sr,viewport$:Oe});var Ji;((Ji=sn.version)==null?void 0:Ji.provider)==="mike"&&Hi({document$:Ze});O(Sr,St).pipe(He(125)).subscribe(()=>{Ge("drawer",!1),Ge("search",!1)});cn.pipe(v(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=pe("[href][rel=prev]");typeof t!="undefined"&&t.click();break;case"n":case".":let r=pe("[href][rel=next]");typeof r!="undefined"&&r.click();break}});Qi({document$:Ze});Yi({document$:Ze,tablet$:Or});Bi({document$:Ze});Gi({viewport$:Oe,tablet$:Or});var Xe=yi(Le("header"),{viewport$:Oe}),Er=Ze.pipe(u(()=>Le("main")),y(e=>Ei(e,{viewport$:Oe,header$:Xe})),J(1)),Gs=O(...ne("consent").map(e=>Go(e,{target$:St})),...ne("dialog").map(e=>gi(e,{alert$:pn})),...ne("header").map(e=>xi(e,{viewport$:Oe,header$:Xe,main$:Er})),...ne("palette").map(e=>Si(e)),...ne("search").map(e=>Fi(e,{index$:ea,keyboard$:cn})),...ne("source").map(e=>zi(e))),Js=R(()=>O(...ne("announce").map(e=>Bo(e)),...ne("content").map(e=>vi(e,{viewport$:Oe,target$:St,print$:Zi})),...ne("content").map(e=>Z("search.highlight")?Ui(e,{index$:ea,location$:Sr}):k),...ne("header-title").map(e=>wi(e,{viewport$:Oe,header$:Xe})),...ne("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Xr(Xi,()=>an(e,{viewport$:Oe,header$:Xe,main$:Er})):Xr(Or,()=>an(e,{viewport$:Oe,header$:Xe,main$:Er}))),...ne("tabs").map(e=>Ni(e,{viewport$:Oe,header$:Xe})),...ne("toc").map(e=>qi(e,{viewport$:Oe,header$:Xe,target$:St})),...ne("top").map(e=>Ki(e,{viewport$:Oe,header$:Xe,main$:Er,target$:St})))),ta=Ze.pipe(y(()=>Js),Ie(Gs),J(1));ta.subscribe();window.document$=Ze;window.location$=Sr;window.target$=St;window.keyboard$=cn;window.viewport$=Oe;window.tablet$=Or;window.screen$=Xi;window.print$=Zi;window.alert$=pn;window.component$=ta;})();