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