mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-03-31 06:24:07 -04:00
30 lines
94 KiB
JavaScript
30 lines
94 KiB
JavaScript
(()=>{var Vi=Object.create;var Ot=Object.defineProperty;var Ui=Object.getOwnPropertyDescriptor;var zi=Object.getOwnPropertyNames,Tt=Object.getOwnPropertySymbols,Ni=Object.getPrototypeOf,dr=Object.prototype.hasOwnProperty,Br=Object.prototype.propertyIsEnumerable;var Gr=(e,t,r)=>t in e?Ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))dr.call(t,r)&&Gr(e,r,t[r]);if(Tt)for(var r of Tt(t))Br.call(t,r)&&Gr(e,r,t[r]);return e};var qi=e=>Ot(e,"__esModule",{value:!0});var Jr=(e,t)=>{var r={};for(var n in e)dr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Tt)for(var n of Tt(e))t.indexOf(n)<0&&Br.call(e,n)&&(r[n]=e[n]);return r};var _t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Qi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of zi(t))!dr.call(e,o)&&(r||o!=="default")&&Ot(e,o,{get:()=>t[o],enumerable:!(n=Ui(t,o))||n.enumerable});return e},Be=(e,t)=>Qi(qi(Ot(e!=null?Vi(Ni(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Zr=_t((hr,Xr)=>{(function(e,t){typeof hr=="object"&&typeof Xr!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(hr,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(_){return!!(_&&_!==document&&_.nodeName!=="HTML"&&_.nodeName!=="BODY"&&"classList"in _&&"contains"in _.classList)}function c(_){var Ve=_.type,Ce=_.tagName;return!!(Ce==="INPUT"&&a[Ve]&&!_.readOnly||Ce==="TEXTAREA"&&!_.readOnly||_.isContentEditable)}function u(_){_.classList.contains("focus-visible")||(_.classList.add("focus-visible"),_.setAttribute("data-focus-visible-added",""))}function f(_){!_.hasAttribute("data-focus-visible-added")||(_.classList.remove("focus-visible"),_.removeAttribute("data-focus-visible-added"))}function m(_){_.metaKey||_.altKey||_.ctrlKey||(s(r.activeElement)&&u(r.activeElement),n=!0)}function l(_){n=!1}function h(_){!s(_.target)||(n||c(_.target))&&u(_.target)}function d(_){!s(_.target)||(_.target.classList.contains("focus-visible")||_.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),f(_.target))}function v(_){document.visibilityState==="hidden"&&(o&&(n=!0),z())}function z(){document.addEventListener("mousemove",W),document.addEventListener("mousedown",W),document.addEventListener("mouseup",W),document.addEventListener("pointermove",W),document.addEventListener("pointerdown",W),document.addEventListener("pointerup",W),document.addEventListener("touchmove",W),document.addEventListener("touchstart",W),document.addEventListener("touchend",W)}function G(){document.removeEventListener("mousemove",W),document.removeEventListener("mousedown",W),document.removeEventListener("mouseup",W),document.removeEventListener("pointermove",W),document.removeEventListener("pointerdown",W),document.removeEventListener("pointerup",W),document.removeEventListener("touchmove",W),document.removeEventListener("touchstart",W),document.removeEventListener("touchend",W)}function W(_){_.target.nodeName&&_.target.nodeName.toLowerCase()==="html"||(n=!1,G())}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),z(),r.addEventListener("focus",h,!0),r.addEventListener("blur",d,!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 wn=_t((vs,At)=>{/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */var en,tn,rn,nn,on,an,sn,cn,un,Mt,br,fn,pn,ln,Ge,mn,dn,hn,bn,vn,gn,yn,xn,Lt;(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 At=="object"&&typeof At.exports=="object"?e(r(t,r(At.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])};en=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)},tn=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},rn=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},nn=function(n,o,i,a){var s=arguments.length,c=s<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,i):a,u;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--)(u=n[f])&&(c=(s<3?u(c):s>3?u(o,i,c):u(o,i))||c);return s>3&&c&&Object.defineProperty(o,i,c),c},on=function(n,o){return function(i,a){o(i,a,n)}},an=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(u){u(c)})}return new(i||(i=Promise))(function(c,u){function f(h){try{l(a.next(h))}catch(d){u(d)}}function m(h){try{l(a.throw(h))}catch(d){u(d)}}function l(h){h.done?c(h.value):s(h.value).then(f,m)}l((a=a.apply(n,o||[])).next())})},cn=function(n,o){var i={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},a,s,c,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(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(n,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}}},un=function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&Lt(o,n,i)},Lt=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]},Mt=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.")},br=function(n,o){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var a=i.call(n),s,c=[],u;try{for(;(o===void 0||o-- >0)&&!(s=a.next()).done;)c.push(s.value)}catch(f){u={error:f}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(u)throw u.error}}return c},fn=function(){for(var n=[],o=0;o<arguments.length;o++)n=n.concat(br(arguments[o]));return n},pn=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],u=0,f=c.length;u<f;u++,s++)a[s]=c[u];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))},Ge=function(n){return this instanceof Ge?(this.v=n,this):new Ge(n)},mn=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={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(v){a[v]&&(s[v]=function(z){return new Promise(function(G,W){c.push([v,z,G,W])>1||f(v,z)})})}function f(v,z){try{m(a[v](z))}catch(G){d(c[0][3],G)}}function m(v){v.value instanceof Ge?Promise.resolve(v.value.v).then(l,h):d(c[0][2],v)}function l(v){f("next",v)}function h(v){f("throw",v)}function d(v,z){v(z),c.shift(),c.length&&f(c[0][0],c[0][1])}},dn=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(u){return(i=!i)?{value:Ge(n[s](u)),done:s==="return"}:c?c(u):u}:c}},hn=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 Mt=="function"?Mt(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(u){return new Promise(function(f,m){u=n[c](u),s(f,m,u.done,u.value)})}}function s(c,u,f,m){Promise.resolve(m).then(function(l){c({value:l,done:f})},u)}},bn=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};vn=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)&&Lt(o,n,i);return r(o,n),o},gn=function(n){return n&&n.__esModule?n:{default:n}},yn=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)},xn=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",en),e("__assign",tn),e("__rest",rn),e("__decorate",nn),e("__param",on),e("__metadata",an),e("__awaiter",sn),e("__generator",cn),e("__exportStar",un),e("__createBinding",Lt),e("__values",Mt),e("__read",br),e("__spread",fn),e("__spreadArrays",pn),e("__spreadArray",ln),e("__await",Ge),e("__asyncGenerator",mn),e("__asyncDelegator",dn),e("__asyncValues",hn),e("__makeTemplateObject",bn),e("__importStar",vn),e("__importDefault",gn),e("__classPrivateFieldGet",yn),e("__classPrivateFieldSet",xn)})});var Dr=_t((St,Wr)=>{/*!
|
|
* clipboard.js v2.0.8
|
|
* https://clipboardjs.com/
|
|
*
|
|
* Licensed MIT © Zeno Rocha
|
|
*/(function(t,r){typeof St=="object"&&typeof Wr=="object"?Wr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof St=="object"?St.ClipboardJS=r():t.ClipboardJS=r()})(St,function(){return function(){var e={134:function(n,o,i){"use strict";i.d(o,{default:function(){return Wi}});var a=i(279),s=i.n(a),c=i(370),u=i.n(c),f=i(817),m=i.n(f);function l(L){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(L)}function h(L,y){if(!(L instanceof y))throw new TypeError("Cannot call a class as a function")}function d(L,y){for(var b=0;b<y.length;b++){var I=y[b];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(L,I.key,I)}}function v(L,y,b){return y&&d(L.prototype,y),b&&d(L,b),L}var z=function(){function L(y){h(this,L),this.resolveOptions(y),this.initSelection()}return v(L,[{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 I=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(I,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var b=this,I=this.createFakeElement();this.fakeHandlerCallback=function(){return b.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(I),this.selectedText=m()(I),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(I){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}}]),L}(),G=z;function W(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?W=function(b){return typeof b}:W=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},W(L)}function _(L,y){if(!(L instanceof y))throw new TypeError("Cannot call a class as a function")}function Ve(L,y){for(var b=0;b<y.length;b++){var I=y[b];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(L,I.key,I)}}function Ce(L,y,b){return y&&Ve(L.prototype,y),b&&Ve(L,b),L}function Ye(L,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(y&&y.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),y&&lr(L,y)}function lr(L,y){return lr=Object.setPrototypeOf||function(I,U){return I.__proto__=U,I},lr(L,y)}function Ii(L){var y=Fi();return function(){var I=Et(L),U;if(y){var ee=Et(this).constructor;U=Reflect.construct(I,arguments,ee)}else U=I.apply(this,arguments);return Pi(this,U)}}function Pi(L,y){return y&&(W(y)==="object"||typeof y=="function")?y:$i(L)}function $i(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function Fi(){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(L){return!1}}function Et(L){return Et=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},Et(L)}function mr(L,y){var b="data-clipboard-".concat(L);if(!!y.hasAttribute(b))return y.getAttribute(b)}var ji=function(L){Ye(b,L);var y=Ii(b);function b(I,U){var ee;return _(this,b),ee=y.call(this),ee.resolveOptions(U),ee.listenClick(I),ee}return Ce(b,[{key:"resolveOptions",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof U.action=="function"?U.action:this.defaultAction,this.target=typeof U.target=="function"?U.target:this.defaultTarget,this.text=typeof U.text=="function"?U.text:this.defaultText,this.container=W(U.container)==="object"?U.container:document.body}},{key:"listenClick",value:function(U){var ee=this;this.listener=u()(U,"click",function(mt){return ee.onClick(mt)})}},{key:"onClick",value:function(U){var ee=U.delegateTarget||U.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new G({action:this.action(ee),target:this.target(ee),text:this.text(ee),container:this.container,trigger:ee,emitter:this})}},{key:"defaultAction",value:function(U){return mr("action",U)}},{key:"defaultTarget",value:function(U){var ee=mr("target",U);if(ee)return document.querySelector(ee)}},{key:"defaultText",value:function(U){return mr("text",U)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],ee=typeof U=="string"?[U]:U,mt=!!document.queryCommandSupported;return ee.forEach(function(Di){mt=mt&&!!document.queryCommandSupported(Di)}),mt}}]),b}(s()),Wi=ji},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,m,l,h,d){var v=u.apply(this,arguments);return f.addEventListener(l,v,d),{destroy:function(){f.removeEventListener(l,v,d)}}}function c(f,m,l,h,d){return typeof f.addEventListener=="function"?s.apply(null,arguments):typeof l=="function"?s.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(v){return s(v,m,l,h,d)}))}function u(f,m,l,h){return function(d){d.delegateTarget=a(d.target,m),d.delegateTarget&&h.call(f,d)}}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(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 u(l,h,d);if(a.nodeList(l))return f(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 u(l,h,d){return l.addEventListener(h,d),{destroy:function(){l.removeEventListener(h,d)}}}function f(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)}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(),u=document.createRange();u.selectNodeContents(i),c.removeAllRanges(),c.addRange(u),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 u(){c.off(i,u),a.apply(s,arguments)}return u._=a,this.on(i,u,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),c=0,u=s.length;for(c;c<u;c++)s[c].fn.apply(s[c].ctx,a);return this},off:function(i,a){var s=this.e||(this.e={}),c=s[i],u=[];if(c&&a)for(var f=0,m=c.length;f<m;f++)c[f].fn!==a&&c[f].fn._!==a&&u.push(c[f]);return u.length?s[i]=u: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(134)}().default})});var zr=_t((Ox,ai)=>{"use strict";/*!
|
|
* escape-html
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
* MIT Licensed
|
|
*/var es=/["'&<>]/;ai.exports=ts;function ts(e){var t=""+e,r=es.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=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}a!==i&&(o+=t.substring(a,i)),a=i+1,o+=n}return a!==i?o+t.substring(a,i):o}});var eO=Be(Zr());var Sn=Be(wn(),1),{__extends:Z,__assign:gs,__rest:ys,__decorate:xs,__param:ws,__metadata:Ss,__awaiter:En,__generator:Ct,__exportStar:Es,__createBinding:Os,__values:me,__read:R,__spread:Ts,__spreadArrays:_s,__spreadArray:j,__await:kt,__asyncGenerator:On,__asyncDelegator:Ms,__asyncValues:Tn,__makeTemplateObject:Ls,__importStar:As,__importDefault:Cs,__classPrivateFieldGet:ks,__classPrivateFieldSet:Hs}=Sn.default;function E(e){return typeof e=="function"}function Ht(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 Rt=Ht(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 ke(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Oe=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=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=me(a),c=s.next();!c.done;c=s.next()){var u=c.value;u.remove(this)}}catch(v){t={error:v}}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(E(f))try{f()}catch(v){i=v instanceof Rt?v.errors:[v]}var m=this._teardowns;if(m){this._teardowns=null;try{for(var l=me(m),h=l.next();!h.done;h=l.next()){var d=h.value;try{_n(d)}catch(v){i=i!=null?i:[],v instanceof Rt?i=j(j([],R(i)),R(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}if(i)throw new Rt(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)_n(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=(r=this._teardowns)!==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)&&ke(r,t)},e.prototype.remove=function(t){var r=this._teardowns;r&&ke(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var vr=Oe.EMPTY;function It(e){return e instanceof Oe||e&&"closed"in e&&E(e.remove)&&E(e.add)&&E(e.unsubscribe)}function _n(e){E(e)?e():e.unsubscribe()}var xe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Je={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Je.delegate;return((r==null?void 0:r.setTimeout)||setTimeout).apply(void 0,j([],R(e)))},clearTimeout:function(e){var t=Je.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Pt(e){Je.setTimeout(function(){var t=xe.onUnhandledError;if(t)t(e);else throw e})}function oe(){}var Mn=function(){return gr("C",void 0,void 0)}();function Ln(e){return gr("E",void 0,e)}function An(e){return gr("N",e,void 0)}function gr(e,t,r){return{kind:e,value:t,error:r}}var Ue=null;function Xe(e){if(xe.useDeprecatedSynchronousErrorHandling){var t=!Ue;if(t&&(Ue={errorThrown:!1,error:null}),e(),t){var r=Ue,n=r.errorThrown,o=r.error;if(Ue=null,n)throw o}}else e()}function Cn(e){xe.useDeprecatedSynchronousErrorHandling&&Ue&&(Ue.errorThrown=!0,Ue.error=e)}var dt=function(e){Z(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,It(r)&&r.add(n)):n.destination=Ki,n}return t.create=function(r,n,o){return new Ze(r,n,o)},t.prototype.next=function(r){this.isStopped?xr(An(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?xr(Ln(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?xr(Mn,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}(Oe);var Ze=function(e){Z(t,e);function t(r,n,o){var i=e.call(this)||this,a;if(E(r))a=r;else if(r){a=r.next,n=r.error,o=r.complete;var s;i&&xe.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()}):s=r,a=a==null?void 0:a.bind(s),n=n==null?void 0:n.bind(s),o=o==null?void 0:o.bind(s)}return i.destination={next:a?yr(a,i):oe,error:yr(n!=null?n:kn,i),complete:o?yr(o,i):oe},i}return t}(dt);function yr(e,t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{e.apply(void 0,j([],R(r)))}catch(o){xe.useDeprecatedSynchronousErrorHandling?Cn(o):Pt(o)}}}function kn(e){throw e}function xr(e,t){var r=xe.onStoppedNotification;r&&Je.setTimeout(function(){return r(e,t)})}var Ki={closed:!0,next:oe,error:kn,complete:oe};var et=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function de(e){return e}function Hn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return wr(e)}function wr(e){return e.length===0?de:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var $=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=Bi(t)?t:new Ze(t,r,n);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(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=Rn(r),new r(function(o,i){var a=new Ze({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[et]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return wr(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Rn(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 Rn(e){var t;return(t=e!=null?e:xe.Promise)!==null&&t!==void 0?t:Promise}function Yi(e){return e&&E(e.next)&&E(e.error)&&E(e.complete)}function Bi(e){return e&&e instanceof dt||Yi(e)&&It(e)}function Gi(e){return E(e==null?void 0:e.lift)}function g(e){return function(t){if(Gi(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")}}var x=function(e){Z(t,e);function t(r,n,o,i,a){var s=e.call(this,r)||this;return s.onFinalize=a,s._next=n?function(c){try{n(c)}catch(u){r.error(u)}}:e.prototype._next,s._error=i?function(c){try{i(c)}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=o?function(){try{o()}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,s}return t.prototype.unsubscribe=function(){var r,n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))},t}(dt);var tt={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,n=tt.delegate;n&&(t=n.requestAnimationFrame,r=n.cancelAnimationFrame);var o=t(function(i){r=void 0,e(i)});return new Oe(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=tt.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,j([],R(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=tt.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,j([],R(e)))},delegate:void 0};var In=Ht(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var S=function(e){Z(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Pn(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new In},t.prototype.next=function(r){var n=this;Xe(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){var a=n.observers.slice();try{for(var s=me(a),c=s.next();!c.done;c=s.next()){var u=c.value;u.next(r)}}catch(f){o={error:f}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;Xe(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;Xe(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=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=n.hasError,i=n.isStopped,a=n.observers;return o||i?vr:(a.push(r),new Oe(function(){return ke(a,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 $;return r.source=this,r},t.create=function(r,n){return new Pn(r,n)},t}($);var Pn=function(e){Z(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:vr},t}(S);var ht={now:function(){return(ht.delegate||Date).now()},delegate:void 0};var bt=function(e){Z(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=ht);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(),u=0,f=1;f<i.length&&i[f]<=c;f+=2)u=f;u&&i.splice(0,u+1)}},t}(S);var $n=function(e){Z(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}(Oe);var vt={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=vt.delegate;return((r==null?void 0:r.setInterval)||setInterval).apply(void 0,j([],R(e)))},clearInterval:function(e){var t=vt.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var $t=function(e){Z(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){if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),vt.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;vt.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,ke(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}($n);var Sr=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=ht.now,e}();var Ft=function(e){Z(t,e);function t(r,n){n===void 0&&(n=Sr.now);var o=e.call(this,r,n)||this;return o.actions=[],o._active=!1,o._scheduled=void 0,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}(Sr);var Te=new Ft($t),gt=Te;var Fn=function(e){Z(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=tt.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);r.actions.some(function(i){return i.id===n})||(tt.cancelAnimationFrame(n),r._scheduled=void 0)},t}($t);var jn=function(e){Z(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}(Ft);var we=new jn(Fn);var N=new $(function(e){return e.complete()});function jt(e){return e&&E(e.schedule)}function Er(e){return e[e.length-1]}function Ie(e){return E(Er(e))?e.pop():void 0}function ve(e){return jt(Er(e))?e.pop():void 0}function Wt(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 E(e==null?void 0:e.then)}function Vt(e){return E(e[et])}function Ut(e){return Symbol.asyncIterator&&E(e==null?void 0:e[Symbol.asyncIterator])}function zt(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 Ji(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Nt=Ji();function qt(e){return E(e==null?void 0:e[Nt])}function Qt(e){return On(this,arguments,function(){var r,n,o,i;return Ct(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,kt(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,kt(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,kt(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 Kt(e){return E(e==null?void 0:e.getReader)}function D(e){if(e instanceof $)return e;if(e!=null){if(Vt(e))return Xi(e);if(rt(e))return Zi(e);if(Dt(e))return ea(e);if(Ut(e))return Wn(e);if(qt(e))return ta(e);if(Kt(e))return ra(e)}throw zt(e)}function Xi(e){return new $(function(t){var r=e[et]();if(E(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Zi(e){return new $(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function ea(e){return new $(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Pt)})}function ta(e){return new $(function(t){var r,n;try{for(var o=me(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 Wn(e){return new $(function(t){na(e,t).catch(function(r){return t.error(r)})})}function ra(e){return Wn(Qt(e))}function na(e,t){var r,n,o,i;return En(this,void 0,void 0,function(){var a,s;return Ct(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=Tn(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 fe(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 ze(e,t){return t===void 0&&(t=0),g(function(r,n){r.subscribe(new x(n,function(o){return fe(n,e,function(){return n.next(o)},t)},function(){return fe(n,e,function(){return n.complete()},t)},function(o){return fe(n,e,function(){return n.error(o)},t)}))})}function Yt(e,t){return t===void 0&&(t=0),g(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function Dn(e,t){return D(e).pipe(Yt(t),ze(t))}function Vn(e,t){return D(e).pipe(Yt(t),ze(t))}function Un(e,t){return new $(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function zn(e,t){return new $(function(r){var n;return fe(r,t,function(){n=e[Nt](),fe(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 E(n==null?void 0:n.return)&&n.return()}})}function Bt(e,t){if(!e)throw new Error("Iterable cannot be null");return new $(function(r){fe(r,t,function(){var n=e[Symbol.asyncIterator]();fe(r,t,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function Nn(e,t){return Bt(Qt(e),t)}function qn(e,t){if(e!=null){if(Vt(e))return Dn(e,t);if(rt(e))return Un(e,t);if(Dt(e))return Vn(e,t);if(Ut(e))return Bt(e,t);if(qt(e))return zn(e,t);if(Kt(e))return Nn(e,t)}throw zt(e)}function te(e,t){return t?qn(e,t):D(e)}function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ve(e);return te(e,r)}function Qn(e){return e instanceof Date&&!isNaN(e)}function p(e,t){return g(function(r,n){var o=0;r.subscribe(new x(n,function(i){n.next(e.call(t,i,o++))}))})}var oa=Array.isArray;function ia(e,t){return oa(t)?e.apply(void 0,j([],R(t))):e(t)}function Pe(e){return p(function(t){return ia(e,t)})}var aa=Array.isArray,sa=Object.getPrototypeOf,ca=Object.prototype,ua=Object.keys;function Kn(e){if(e.length===1){var t=e[0];if(aa(t))return{args:t,keys:null};if(fa(t)){var r=ua(t);return{args:r.map(function(n){return t[n]}),keys:r}}}return{args:e,keys:null}}function fa(e){return e&&typeof e=="object"&&sa(e)===ca}function Yn(e,t){return e.reduce(function(r,n,o){return r[n]=t[o],r},{})}function q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ve(e),n=Ie(e),o=Kn(e),i=o.args,a=o.keys;if(i.length===0)return te([],r);var s=new $(Or(i,r,a?function(c){return Yn(a,c)}:de));return n?s.pipe(Pe(n)):s}function Or(e,t,r){return r===void 0&&(r=de),function(n){Bn(t,function(){for(var o=e.length,i=new Array(o),a=o,s=o,c=function(f){Bn(t,function(){var m=te(e[f],t),l=!1;m.subscribe(new x(n,function(h){i[f]=h,l||(l=!0,s--),s||n.next(r(i.slice()))},function(){--a||n.complete()}))},n)},u=0;u<o;u++)c(u)},n)}}function Bn(e,t,r){e?fe(r,e,t):t()}function Gn(e,t,r,n,o,i,a,s){var c=[],u=0,f=0,m=!1,l=function(){m&&!c.length&&!u&&t.complete()},h=function(v){return u<n?d(v):c.push(v)},d=function(v){i&&t.next(v),u++;var z=!1;D(r(v,f++)).subscribe(new x(t,function(G){o==null||o(G),i?h(G):t.next(G)},function(){z=!0},void 0,function(){if(z)try{u--;for(var G=function(){var W=c.shift();a?fe(t,a,function(){return d(W)}):d(W)};c.length&&u<n;)G();l()}catch(W){t.error(W)}}))};return e.subscribe(new x(t,h,function(){m=!0,l()})),function(){s==null||s()}}function ie(e,t,r){return r===void 0&&(r=1/0),E(t)?ie(function(n,o){return p(function(i,a){return t(n,i,o,a)})(D(e(n,o)))},r):(typeof t=="number"&&(r=t),g(function(n,o){return Gn(n,o,e,r)}))}function nt(e){return e===void 0&&(e=1/0),ie(de,e)}function Jn(){return nt(1)}function Ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Jn()(te(e,ve(e)))}function F(e){return new $(function(t){D(e()).subscribe(t)})}var pa=["addListener","removeListener"],la=["addEventListener","removeEventListener"],ma=["on","off"];function w(e,t,r,n){if(E(r)&&(n=r,r=void 0),n)return w(e,t,r).pipe(Pe(n));var o=R(ba(e)?la.map(function(s){return function(c){return e[s](t,c,r)}}):da(e)?pa.map(Xn(e,t)):ha(e)?ma.map(Xn(e,t)):[],2),i=o[0],a=o[1];if(!i&&rt(e))return ie(function(s){return w(s,t,r)})(D(e));if(!i)throw new TypeError("Invalid event target");return new $(function(s){var c=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return s.next(1<u.length?u:u[0])};return i(c),function(){return a(c)}})}function Xn(e,t){return function(r){return function(n){return e[r](t,n)}}}function da(e){return E(e.addListener)&&E(e.removeListener)}function ha(e){return E(e.on)&&E(e.off)}function ba(e){return E(e.addEventListener)&&E(e.removeEventListener)}function Gt(e,t,r){return r?Gt(e,t).pipe(Pe(r)):new $(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 E(t)?function(){return t(o,i)}:void 0})}function ot(e,t,r){e===void 0&&(e=0),r===void 0&&(r=gt);var n=-1;return t!=null&&(jt(t)?r=t:n=t),new $(function(o){var i=Qn(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 A(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ve(e),n=Wt(e,1/0),o=e;return o.length?o.length===1?D(o[0]):nt(n)(te(o,r)):N}var ge=new $(oe);var va=Array.isArray;function it(e){return e.length===1&&va(e[0])?e[0]:e}function M(e,t){return g(function(r,n){var o=0;r.subscribe(new x(n,function(i){return e.call(t,i,o++)&&n.next(i)}))})}function yt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ie(e),n=it(e);return n.length?new $(function(o){var i=n.map(function(){return[]}),a=n.map(function(){return!1});o.add(function(){i=a=null});for(var s=function(u){D(n[u]).subscribe(new x(o,function(f){if(i[u].push(f),i.every(function(l){return l.length})){var m=i.map(function(l){return l.shift()});o.next(r?r.apply(void 0,j([],R(m))):m),i.some(function(l,h){return!l.length&&a[h]})&&o.complete()}},function(){a[u]=!0,!i[u].length&&o.complete()}))},c=0;!o.closed&&c<n.length;c++)s(c);return function(){i=a=null}}):N}function Zn(e){return g(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 u=o;o=null,r.next(u)}a&&r.complete()},c=function(){i=null,a&&r.complete()};t.subscribe(new x(r,function(u){n=!0,o=u,i||D(e(u)).subscribe(i=new x(r,s,c))},function(){a=!0,(!n||!i||i.closed)&&r.complete()}))})}function He(e,t){return t===void 0&&(t=gt),Zn(function(){return ot(e,t)})}function Se(e,t){return t===void 0&&(t=null),t=t!=null?t:e,g(function(r,n){var o=[],i=0;r.subscribe(new x(n,function(a){var s,c,u,f,m=null;i++%t===0&&o.push([]);try{for(var l=me(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(G){s={error:G}}finally{try{h&&!h.done&&(c=l.return)&&c.call(l)}finally{if(s)throw s.error}}if(m)try{for(var v=me(m),z=v.next();!z.done;z=v.next()){var d=z.value;ke(o,d),n.next(d)}}catch(G){u={error:G}}finally{try{z&&!z.done&&(f=v.return)&&f.call(v)}finally{if(u)throw u.error}}},function(){var a,s;try{for(var c=me(o),u=c.next();!u.done;u=c.next()){var f=u.value;n.next(f)}}catch(m){a={error:m}}finally{try{u&&!u.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}n.complete()},void 0,function(){o=null}))})}function $e(e){return g(function(t,r){var n=null,o=!1,i;n=t.subscribe(new x(r,void 0,void 0,function(a){i=D(e(a,$e(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function eo(e,t,r,n,o){return function(i,a){var s=r,c=t,u=0;i.subscribe(new x(a,function(f){var m=u++;c=s?e(c,f,m):(s=!0,f),n&&a.next(c)},o&&function(){s&&a.next(c),a.complete()}))}}function Tr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ie(e);return r?Hn(Tr.apply(void 0,j([],R(e))),Pe(r)):g(function(n,o){Or(j([n],R(it(e))))(o)})}function at(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Tr.apply(void 0,j([],R(e)))}function _r(e,t){return E(t)?ie(e,t,1):ie(e,1)}function qe(e,t){return t===void 0&&(t=Te),g(function(r,n){var o=null,i=null,a=null,s=function(){if(o){o.unsubscribe(),o=null;var u=i;i=null,n.next(u)}};function c(){var u=a+e,f=t.now();if(f<u){o=this.schedule(void 0,u-f),n.add(o);return}s()}r.subscribe(new x(n,function(u){i=u,a=t.now(),o||(o=t.schedule(c,e),n.add(o))},function(){s(),n.complete()},void 0,function(){i=o=null}))})}function Qe(e){return g(function(t,r){var n=!1;t.subscribe(new x(r,function(o){n=!0,r.next(o)},function(){n||r.next(e),r.complete()}))})}function pe(e){return e<=0?function(){return N}:g(function(t,r){var n=0;t.subscribe(new x(r,function(o){++n<=e&&(r.next(o),e<=n&&r.complete())}))})}function to(){return g(function(e,t){e.subscribe(new x(t,oe))})}function re(e){return p(function(){return e})}function Mr(e,t){return t?function(r){return Ne(t.pipe(pe(1),to()),r.pipe(Mr(e)))}:ie(function(r,n){return e(r,n).pipe(pe(1),re(r))})}function Re(e,t){t===void 0&&(t=Te);var r=ot(e,t);return Mr(function(){return r})}function Q(e,t){return t===void 0&&(t=de),e=e!=null?e:ga,g(function(r,n){var o,i=!0;r.subscribe(new x(n,function(a){var s=t(a);(i||!e(o,s))&&(i=!1,o=s,n.next(a))}))})}function ga(e,t){return e===t}function Y(e,t){return Q(function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}function Lr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return Ne(r,k.apply(void 0,j([],R(e))))}}function C(e){return g(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function se(e){return e<=0?function(){return N}:g(function(t,r){var n=[];t.subscribe(new x(r,function(o){n.push(o),e<n.length&&n.shift()},function(){var o,i;try{for(var a=me(n),s=a.next();!s.done;s=a.next()){var c=s.value;r.next(c)}}catch(u){o={error:u}}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 ro(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ve(e),n=Wt(e,1/0);return e=it(e),g(function(o,i){nt(n)(te(j([o],R(e)),r)).subscribe(i)})}function Ke(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ro.apply(void 0,j([],R(e)))}function st(e){return g(function(t,r){var n=!1,o=null;t.subscribe(new x(r,function(a){n=!0,o=a}));var i=function(){if(n){n=!1;var a=o;o=null,r.next(a)}};e.subscribe(new x(r,i,oe))})}function Ar(e,t){return g(eo(e,t,arguments.length>=2,!0))}function ce(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(u){var f=null,m=null,l=null,h=0,d=!1,v=!1,z=function(){m==null||m.unsubscribe(),m=null},G=function(){z(),f=l=null,d=v=!1},W=function(){var _=f;G(),_==null||_.unsubscribe()};return g(function(_,Ve){h++,!v&&!d&&z();var Ce=l=l!=null?l:r();Ve.add(function(){h--,h===0&&!v&&!d&&(m=Cr(W,c))}),Ce.subscribe(Ve),f||(f=new Ze({next:function(Ye){return Ce.next(Ye)},error:function(Ye){v=!0,z(),m=Cr(G,o,Ye),Ce.error(Ye)},complete:function(){d=!0,z(),m=Cr(G,a),Ce.complete()}}),te(_).subscribe(f))})(u)}}function Cr(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return t===!0?(e(),null):t===!1?null:t.apply(void 0,j([],R(r))).pipe(pe(1)).subscribe(function(){return e()})}function J(e,t,r){var n,o,i,a=!1;return e&&typeof e=="object"?(i=(n=e.bufferSize)!==null&&n!==void 0?n:1/0,t=(o=e.windowTime)!==null&&o!==void 0?o:1/0,a=!!e.refCount,r=e.scheduler):i=e!=null?e:1/0,ce({connector:function(){return new bt(i,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function Jt(e){return M(function(t,r){return e<=r})}function xt(e){return g(function(t,r){var n=!1,o=new x(r,function(){o==null||o.unsubscribe(),n=!0},oe);D(e).subscribe(o),t.subscribe(new x(r,function(i){return n&&r.next(i)}))})}function V(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ve(e);return g(function(n,o){(r?Ne(e,n,r):Ne(e,n)).subscribe(o)})}function T(e,t){return g(function(r,n){var o=null,i=0,a=!1,s=function(){return a&&!o&&n.complete()};r.subscribe(new x(n,function(c){o==null||o.unsubscribe();var u=0,f=i++;D(e(c,f)).subscribe(o=new x(n,function(m){return n.next(t?t(c,m,f,u++):m)},function(){o=null,s()}))},function(){a=!0,s()}))})}function kr(e,t){return E(t)?T(function(){return e},t):T(function(){return e})}function ue(e){return g(function(t,r){D(e).subscribe(new x(r,function(){return r.complete()},oe)),!r.closed&&t.subscribe(r)})}function Hr(e,t){return t===void 0&&(t=!1),g(function(r,n){var o=0;r.subscribe(new x(n,function(i){var a=e(i,o++);(a||t)&&n.next(i),!a&&n.complete()}))})}function O(e,t,r){var n=E(e)||t||r?{next:e,error:t,complete:r}:e;return n?g(function(o,i){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;o.subscribe(new x(i,function(c){var u;(u=n.next)===null||u===void 0||u.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 u;s=!1,(u=n.error)===null||u===void 0||u.call(n,c),i.error(c)},function(){var c,u;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):de}var Rr={leading:!0,trailing:!1};function wt(e,t){return t===void 0&&(t=Rr),g(function(r,n){var o=t.leading,i=t.trailing,a=!1,s=null,c=null,u=!1,f=function(){c==null||c.unsubscribe(),c=null,i&&(h(),u&&n.complete())},m=function(){c=null,u&&n.complete()},l=function(d){return c=D(e(d)).subscribe(new x(n,f,m))},h=function(){if(a){a=!1;var d=s;s=null,n.next(d),!u&&l(d)}};r.subscribe(new x(n,function(d){a=!0,s=d,!(c&&!c.closed)&&(o?h():l(d))},function(){u=!0,!(i&&a&&c&&!c.closed)&&n.complete()}))})}function Ir(e,t,r){t===void 0&&(t=Te),r===void 0&&(r=Rr);var n=ot(e,t);return wt(function(){return n},r)}function Ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ie(e);return g(function(n,o){for(var i=e.length,a=new Array(i),s=e.map(function(){return!1}),c=!1,u=function(m){D(e[m]).subscribe(new x(o,function(l){a[m]=l,!c&&!s[m]&&(s[m]=!0,(c=s.every(de))&&(s=null))},oe))},f=0;f<i;f++)u(f);n.subscribe(new x(o,function(m){if(c){var l=j([m],R(a));o.next(r?r.apply(void 0,j([],R(l))):l)}}))})}function no(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g(function(r,n){yt.apply(void 0,j([r],R(e))).subscribe(n)})}function Pr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return no.apply(void 0,j([],R(e)))}function oo(){let e=new bt(1);return w(document,"DOMContentLoaded",{once:!0}).subscribe(()=>e.next(document)),e}function B(e,t=document){return Array.from(t.querySelectorAll(e))}function K(e,t=document){let r=le(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function le(e,t=document){return t.querySelector(e)||void 0}function Fe(){return document.activeElement instanceof HTMLElement&&document.activeElement||void 0}function Xt(e){return A(w(document.body,"focusin"),w(document.body,"focusout")).pipe(qe(1),p(()=>{let t=Fe();return typeof t!="undefined"?e.contains(t):!1}),V(e===Fe()),Q())}function je(e){return{x:e.offsetLeft,y:e.offsetTop}}function io(e){return A(w(window,"load"),w(window,"resize")).pipe(He(0,we),p(()=>je(e)),V(je(e)))}function ao(e){return{x:e.scrollLeft,y:e.scrollTop}}function Zt(e){return A(w(e,"scroll"),w(window,"resize")).pipe(He(0,we),p(()=>ao(e)),V(ao(e)))}var so=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}()}(),$r=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,er=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")()}(),ya=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(er):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),xa=2;function wa(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&s()}function a(){ya(i)}function s(){var c=Date.now();if(r){if(c-o<xa)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=c}return s}var Sa=20,Ea=["top","right","bottom","left","width","height","size","weight"],Oa=typeof MutationObserver!="undefined",Ta=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=wa(this.refresh.bind(this),Sa)}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(){!$r||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Oa?(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(){!$r||!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=Ea.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}(),co=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},ct=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||er},uo=rr(0,0,0,0);function tr(e){return parseFloat(e)||0}function fo(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+tr(i)},0)}function _a(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]=tr(a)}return r}function Ma(e){var t=e.getBBox();return rr(0,0,t.width,t.height)}function La(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return uo;var n=ct(e).getComputedStyle(e),o=_a(n),i=o.left+o.right,a=o.top+o.bottom,s=tr(n.width),c=tr(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=fo(n,"left","right")+i),Math.round(c+a)!==r&&(c-=fo(n,"top","bottom")+a)),!Ca(e)){var u=Math.round(s+i)-t,f=Math.round(c+a)-r;Math.abs(u)!==1&&(s-=u),Math.abs(f)!==1&&(c-=f)}return rr(o.left,o.top,s,c)}var Aa=function(){return typeof SVGGraphicsElement!="undefined"?function(e){return e instanceof ct(e).SVGGraphicsElement}:function(e){return e instanceof ct(e).SVGElement&&typeof e.getBBox=="function"}}();function Ca(e){return e===ct(e).document.documentElement}function ka(e){return $r?Aa(e)?Ma(e):La(e):uo}function Ha(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 co(a,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),a}function rr(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Ra=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=rr(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=ka(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}(),Ia=function(){function e(t,r){var n=Ha(r);co(this,{target:t,contentRect:n})}return e}(),Pa=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new so,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 ct(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Ra(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 ct(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 Ia(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}(),po=typeof WeakMap!="undefined"?new WeakMap:new so,lo=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=Ta.getInstance(),n=new Pa(t,r,this);po.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){lo.prototype[e]=function(){var t;return(t=po.get(this))[e].apply(t,arguments)}});var $a=function(){return typeof er.ResizeObserver!="undefined"?er.ResizeObserver:lo}(),mo=$a;var ho=new S,Fa=F(()=>k(new mo(e=>{for(let t of e)ho.next(t)}))).pipe(T(e=>A(ge,k(e)).pipe(C(()=>e.disconnect()))),J(1));function _e(e){return{width:e.offsetWidth,height:e.offsetHeight}}function he(e){return Fa.pipe(O(t=>t.observe(e)),T(t=>ho.pipe(M(({target:r})=>r===e),C(()=>t.unobserve(e)),p(()=>_e(e)))),V(_e(e)))}function nr(e){return{width:e.scrollWidth,height:e.scrollHeight}}var ja=new S,qb=F(()=>k(new IntersectionObserver(e=>{for(let t of e)ja.next(t)},{threshold:1}))).pipe(T(e=>A(ge,k(e)).pipe(C(()=>e.disconnect()))),J(1));function bo(e,t=16){return Zt(e).pipe(p(({y:r})=>{let n=_e(e),o=nr(e);return r>=o.height-n.height-t}),Q())}var or={drawer:K("[data-md-toggle=drawer]"),search:K("[data-md-toggle=search]")};function vo(e){return or[e].checked}function We(e,t){or[e].checked!==t&&or[e].click()}function ir(e){let t=or[e];return w(t,"change").pipe(p(()=>t.checked),V(t.checked))}function Wa(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 go(){return w(window,"keydown").pipe(M(e=>!(e.metaKey||e.ctrlKey)),p(e=>({mode:vo("search")?"search":"global",type:e.key,claim(){e.preventDefault(),e.stopPropagation()}})),M(({mode:e,type:t})=>{if(e==="global"){let r=Fe();if(typeof r!="undefined")return!Wa(r,t)}return!0}),ce())}function Me(){return new URL(location.href)}function yo(e){location.href=e.href}function xo(){return new S}function wo(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)wo(e,r)}function H(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="boolean"?n.setAttribute(o,t[o]):t[o]&&n.setAttribute(o,"");for(let o of r)wo(n,o);return n}function So(e,t){let r=t;if(e.length>r){for(;e[r]!==" "&&--r>0;);return`${e.substring(0,r)}...`}return e}function ar(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function Eo(){return location.hash.substring(1)}function Oo(e){let t=H("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Da(){return w(window,"hashchange").pipe(p(Eo),V(Eo()),M(e=>e.length>0),J(1))}function To(){return Da().pipe(p(e=>le(`[id="${e}"]`)),M(e=>typeof e!="undefined"))}function Fr(e){let t=matchMedia(e);return Gt(r=>t.addListener(()=>r(t.matches))).pipe(V(t.matches))}function _o(){let e=matchMedia("print");return A(w(window,"beforeprint").pipe(re(!0)),w(window,"afterprint").pipe(re(!1))).pipe(V(e.matches))}function jr(e,t){return e.pipe(T(r=>r?t():N))}function sr(e,t={credentials:"same-origin"}){return te(fetch(`${e}`,t)).pipe(M(r=>r.status===200),$e(()=>N))}function Le(e,t){return sr(e,t).pipe(T(r=>r.json()),J(1))}function Mo(e,t){let r=new DOMParser;return sr(e,t).pipe(T(n=>n.text()),p(n=>r.parseFromString(n,"text/xml")),J(1))}function Lo(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function Ao(){return A(w(window,"scroll",{passive:!0}),w(window,"resize",{passive:!0})).pipe(p(Lo),V(Lo()))}function Co(){return{width:innerWidth,height:innerHeight}}function ko(){return w(window,"resize",{passive:!0}).pipe(p(Co),V(Co()))}function Ho(){return q([Ao(),ko()]).pipe(p(([e,t])=>({offset:e,size:t})),J(1))}function cr(e,{viewport$:t,header$:r}){let n=t.pipe(Y("size")),o=q([n,r]).pipe(p(()=>je(e)));return q([r,t,o]).pipe(p(([{height:i},{offset:a,size:s},{x:c,y:u}])=>({offset:{x:a.x-c,y:a.y-u+i},size:s})))}function Ro(e,{tx$:t}){let r=w(e,"message").pipe(p(({data:n})=>n));return t.pipe(wt(()=>r,{leading:!0,trailing:!0}),O(n=>e.postMessage(n)),kr(r),ce())}var Va=K("#__config"),ut=JSON.parse(Va.textContent);ut.base=`${new URL(ut.base,Me())}`;function be(){return ut}function ae(e){return ut.features.includes(e)}function X(e,t){return typeof t!="undefined"?ut.translations[e].replace("#",t.toString()):ut.translations[e]}function Ae(e,t=document){return K(`[data-md-component=${e}]`,t)}function ne(e,t=document){return B(`[data-md-component=${e}]`,t)}var zo=Be(Dr());function Io(e){return H("aside",{class:"md-annotation",tabIndex:0},H("div",{class:"md-annotation__inner md-tooltip"},H("div",{class:"md-tooltip__inner md-typeset"})),H("span",{class:"md-annotation__index"},H("span",{"data-md-annotation-id":e})))}function Po(e){return H("button",{class:"md-clipboard md-icon",title:X("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}function Vr(e,t){let r=t&2,n=t&1,o=Object.keys(e.terms).filter(a=>!e.terms[a]).reduce((a,s)=>[...a,H("del",null,s)," "],[]).slice(0,-1),i=new URL(e.location);return ae("search.highlight")&&i.searchParams.set("h",Object.entries(e.terms).filter(([,a])=>a).reduce((a,[s])=>`${a} ${s}`.trim(),"")),H("a",{href:`${i}`,class:"md-search-result__link",tabIndex:-1},H("article",{class:["md-search-result__article",...r?["md-search-result__article--document"]:[]].join(" "),"data-md-score":e.score.toFixed(2)},r>0&&H("div",{class:"md-search-result__icon md-icon"}),H("h1",{class:"md-search-result__title"},e.title),n>0&&e.text.length>0&&H("p",{class:"md-search-result__teaser"},So(e.text,320)),n>0&&o.length>0&&H("p",{class:"md-search-result__terms"},X("search.result.term.missing"),": ",o)))}function $o(e){let t=e[0].score,r=[...e],n=r.findIndex(u=>!u.location.includes("#")),[o]=r.splice(n,1),i=r.findIndex(u=>u.score<t);i===-1&&(i=r.length);let a=r.slice(0,i),s=r.slice(i),c=[Vr(o,2|+(!n&&i===0)),...a.map(u=>Vr(u,1)),...s.length?[H("details",{class:"md-search-result__more"},H("summary",{tabIndex:-1},s.length>0&&s.length===1?X("search.result.more.one"):X("search.result.more.other",s.length)),s.map(u=>Vr(u,1)))]:[]];return H("li",{class:"md-search-result__item"},c)}function Fo(e){return H("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>H("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?ar(r):r)))}function jo(e){return H("div",{class:"md-typeset__scrollwrap"},H("div",{class:"md-typeset__table"},e))}function Ua(e){let t=be(),r=new URL(`../${e.version}/`,t.base);return H("li",{class:"md-version__item"},H("a",{href:r.toString(),class:"md-version__link"},e.title))}function Wo(e,t){return H("div",{class:"md-version"},H("button",{class:"md-version__current","aria-label":X("select.version.title")},t.title),H("ul",{class:"md-version__list"},e.map(Ua)))}function za(e,t){let r=F(()=>q([io(e),Zt(t)])).pipe(p(([{x:n,y:o},i])=>{let{width:a}=_e(e);return{x:n-i.x+a/2,y:o-i.y}}));return Xt(e).pipe(T(n=>r.pipe(p(o=>({active:n,offset:o})),pe(+!n||1/0))))}function Do(e,t){return F(()=>{let r=new S;r.subscribe({next({offset:i}){e.style.setProperty("--md-tooltip-x",`${i.x}px`),e.style.setProperty("--md-tooltip-y",`${i.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),r.pipe(Ir(500,we),p(()=>t.getBoundingClientRect()),p(({x:i})=>i)).subscribe({next(i){i?e.style.setProperty("--md-tooltip-0",`${-i}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}});let n=K(":scope > :last-child",e),o=w(n,"mousedown",{once:!0});return r.pipe(T(({active:i})=>i?o:N),O(i=>i.preventDefault())).subscribe(()=>e.blur()),za(e,t).pipe(O(i=>r.next(i)),C(()=>r.complete()),p(i=>P({ref:e},i)))})}function Na(e){let t=[];for(let r of B(".c, .c1, .cm",e)){let n,o=r.firstChild;for(;n=/\((\d+)\)/.exec(o.textContent);){let i=o.splitText(n.index);o=i.splitText(n[0].length),t.push(i)}}return t}function Vo(e,t){t.append(...Array.from(e.childNodes))}function Uo(e,t,{print$:r}){let n=new Map;for(let o of Na(t)){let[,i]=o.textContent.match(/\((\d+)\)/);n.set(+i,Io(+i)),o.replaceWith(n.get(+i))}return n.size===0?N:F(()=>{let o=new S;return r.pipe(ue(o.pipe(se(1)))).subscribe(i=>{e.hidden=!i;for(let[a,s]of n){let c=K(".md-typeset",s),u=K(`li:nth-child(${a})`,e);i?Vo(c,u):Vo(u,c)}}),A(...[...n].map(([,i])=>Do(i,t))).pipe(C(()=>o.complete()),ce())})}var qa=0;function No(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return No(t)}}function qo(e){return he(e).pipe(p(({width:t})=>({scrollable:nr(e).width>t})),Y("scrollable"))}function Qo(e,t){let{matches:r}=matchMedia("(hover)");return F(()=>{let n=new S;if(n.subscribe(({scrollable:i})=>{i&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}),zo.default.isSupported()){let i=e.closest("pre");i.id=`__code_${++qa}`,i.insertBefore(Po(i.id),e)}let o=e.closest([":not(td):not(.code) > .highlight",".highlighttable"].join(", "));if(o instanceof HTMLElement){let i=No(o);if(typeof i!="undefined"&&(o.classList.contains("annotate")||ae("content.code.annotate"))){let a=Uo(i,e,t);return qo(e).pipe(O(s=>n.next(s)),C(()=>n.complete()),p(s=>P({ref:e},s)),Ke(he(o).pipe(ue(n.pipe(se(1))),p(({width:s,height:c})=>s&&c),Q(),T(s=>s?a:N))))}}return qo(e).pipe(O(i=>n.next(i)),C(()=>n.complete()),p(i=>P({ref:e},i)))})}function Qa(e,{target$:t,print$:r}){let n=!0;return A(t.pipe(p(o=>o.closest("details:not([open])")),M(o=>e===o),re({action:"open",reveal:!0})),r.pipe(M(o=>o||!n),O(()=>n=e.open),p(o=>({action:o?"open":"close"}))))}function Ko(e,t){return F(()=>{let r=new S;return r.subscribe(({action:n,reveal:o})=>{n==="open"?e.setAttribute("open",""):e.removeAttribute("open"),o&&e.scrollIntoView()}),Qa(e,t).pipe(O(n=>r.next(n)),C(()=>r.complete()),p(n=>P({ref:e},n)))})}var Yo=H("table");function Bo(e){return e.replaceWith(Yo),Yo.replaceWith(jo(e)),k({ref:e})}function Ka(e){let t=B(":scope > input",e);return A(...t.map(r=>w(r,"change").pipe(re({active:K(`label[for=${r.id}]`)})))).pipe(V({active:K(`label[for=${t[0].id}]`)}))}function Go(e){let t=K(".tabbed-labels",e);return F(()=>{let r=new S;return q([r,he(e)]).pipe(He(1,we),ue(r.pipe(se(1)))).subscribe({next([{active:n}]){let o=je(n),{width:i}=_e(n);e.style.setProperty("--md-indicator-x",`${o.x}px`),e.style.setProperty("--md-indicator-width",`${i}px`),t.scrollTo({behavior:"smooth",left:o.x})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),Ka(e).pipe(O(n=>r.next(n)),C(()=>r.complete()),p(n=>P({ref:e},n)))})}function Jo(e,{target$:t,print$:r}){return A(...B("pre > code",e).map(n=>Qo(n,{print$:r})),...B("table:not([class])",e).map(n=>Bo(n)),...B("details",e).map(n=>Ko(n,{target$:t,print$:r})),...B("[data-tabs]",e).map(n=>Go(n)))}function Ya(e,{alert$:t}){return t.pipe(T(r=>A(k(!0),k(!1).pipe(Re(2e3))).pipe(p(n=>({message:r,active:n})))))}function Xo(e,t){let r=K(".md-typeset",e);return F(()=>{let n=new S;return n.subscribe(({message:o,active:i})=>{r.textContent=o,i?e.setAttribute("data-md-state","open"):e.removeAttribute("data-md-state")}),Ya(e,t).pipe(O(o=>n.next(o)),C(()=>n.complete()),p(o=>P({ref:e},o)))})}function Ba({viewport$:e}){if(!ae("header.autohide"))return k(!1);let t=e.pipe(p(({offset:{y:o}})=>o),Se(2,1),p(([o,i])=>[o<i,i]),Y(0)),r=q([e,t]).pipe(M(([{offset:o},[,i]])=>Math.abs(i-o.y)>100),p(([,[o]])=>o),Q()),n=ir("search");return q([e,n]).pipe(p(([{offset:o},i])=>o.y>400&&!i),Q(),T(o=>o?r:k(!1)),V(!1))}function Zo(e,t){return F(()=>{let r=getComputedStyle(e);return k(r.position==="sticky"||r.position==="-webkit-sticky")}).pipe(at(he(e),Ba(t)),p(([r,{height:n},o])=>({height:r?n:0,sticky:r,hidden:o})),Q((r,n)=>r.sticky===n.sticky&&r.height===n.height&&r.hidden===n.hidden),J(1))}function ei(e,{header$:t,main$:r}){return F(()=>{let n=new S;return n.pipe(Y("active"),at(t)).subscribe(([{active:o},{hidden:i}])=>{o?e.setAttribute("data-md-state",i?"hidden":"shadow"):e.removeAttribute("data-md-state")}),r.subscribe(n),t.pipe(ue(n.pipe(se(1))),p(o=>P({ref:e},o)))})}function Ga(e,{viewport$:t,header$:r}){return cr(e,{viewport$:t,header$:r}).pipe(p(({offset:{y:n}})=>{let{height:o}=_e(e);return{active:n>=o}}),Y("active"))}function ti(e,t){return F(()=>{let r=new S;r.subscribe(({active:o})=>{o?e.setAttribute("data-md-state","active"):e.removeAttribute("data-md-state")});let n=le("article h1");return typeof n=="undefined"?N:Ga(n,t).pipe(O(o=>r.next(o)),C(()=>r.complete()),p(o=>P({ref:e},o)))})}function ri(e,{viewport$:t,header$:r}){let n=r.pipe(p(({height:i})=>i),Q()),o=n.pipe(T(()=>he(e).pipe(p(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),Y("bottom"))));return q([n,o,t]).pipe(p(([i,{top:a,bottom:s},{offset:{y:c},size:{height:u}}])=>(u=Math.max(0,u-Math.max(0,a-c,i)-Math.max(0,u+c-s)),{offset:a-i,height:u,active:a-i<=c})),Q((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function Ja(e){let t=__md_get("__palette")||{index:e.findIndex(r=>matchMedia(r.getAttribute("data-md-color-media")).matches)};return k(...e).pipe(ie(r=>w(r,"change").pipe(re(r))),V(e[Math.max(0,t.index)]),p(r=>({index:e.indexOf(r),color:{scheme:r.getAttribute("data-md-color-scheme"),primary:r.getAttribute("data-md-color-primary"),accent:r.getAttribute("data-md-color-accent")}})),J(1))}function ni(e){return F(()=>{let t=new S;t.subscribe(n=>{for(let[o,i]of Object.entries(n.color))typeof i=="string"&&document.body.setAttribute(`data-md-color-${o}`,i);for(let o=0;o<r.length;o++){let i=r[o].nextElementSibling;i instanceof HTMLElement&&(i.hidden=n.index!==o)}__md_set("__palette",n)});let r=B("input",e);return Ja(r).pipe(O(n=>t.next(n)),C(()=>t.complete()),p(n=>P({ref:e},n)))})}var Ur=Be(Dr());function Xa(e){e.setAttribute("data-md-copying","");let t=e.innerText;return e.removeAttribute("data-md-copying"),t}function oi({alert$:e}){Ur.default.isSupported()&&new $(t=>{new Ur.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||Xa(K(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(O(t=>{t.trigger.focus()}),re(X("clipboard.copied"))).subscribe(e)}function Za(e){if(e.length<2)return e;let[t,r]=e.sort((i,a)=>i.length-a.length).map(i=>i.replace(/[^/]+$/,"")),n=0;if(t===r)n=t.length;else for(;t.charCodeAt(n)===r.charCodeAt(n);)n++;let o=be();return e.map(i=>i.replace(t.slice(0,n),o.base))}function ii({document$:e,location$:t,viewport$:r}){let n=be();if(location.protocol==="file:")return;"scrollRestoration"in history&&(history.scrollRestoration="manual",w(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));let o=le("link[rel=icon]");typeof o!="undefined"&&(o.href=o.href);let i=Mo(new URL("sitemap.xml",n.base)).pipe(p(u=>Za(B("loc",u).map(f=>f.textContent))),T(u=>w(document.body,"click").pipe(M(f=>!f.metaKey&&!f.ctrlKey),T(f=>{if(f.target instanceof Element){let m=f.target.closest("a");if(m&&!m.target){let l=new URL(m.href);if(l.search="",l.hash="",l.pathname!==location.pathname&&u.includes(l.toString()))return f.preventDefault(),k({url:new URL(m.href)})}}return ge}))),ce()),a=w(window,"popstate").pipe(M(u=>u.state!==null),p(u=>({url:new URL(location.href),offset:u.state})),ce());A(i,a).pipe(Q((u,f)=>u.url.href===f.url.href),p(({url:u})=>u)).subscribe(t);let s=t.pipe(Y("pathname"),T(u=>sr(u.href).pipe($e(()=>(yo(u),ge)))),ce());i.pipe(st(s)).subscribe(({url:u})=>{history.pushState({},"",`${u}`)});let c=new DOMParser;s.pipe(T(u=>u.text()),p(u=>c.parseFromString(u,"text/html"))).subscribe(e),e.pipe(Jt(1)).subscribe(u=>{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=logo]","[data-md-component=skip]",...ae("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let m=le(f),l=le(f,u);typeof m!="undefined"&&typeof l!="undefined"&&m.replaceWith(l)}}),e.pipe(Jt(1),p(()=>Ae("container")),T(u=>k(...B("script",u))),_r(u=>{let f=H("script");if(u.src){for(let m of u.getAttributeNames())f.setAttribute(m,u.getAttribute(m));return u.replaceWith(f),new $(m=>{f.onload=()=>m.complete()})}else return f.textContent=u.textContent,u.replaceWith(f),N})).subscribe(),A(i,a).pipe(st(e)).subscribe(({url:u,offset:f})=>{u.hash&&!f?Oo(u.hash):window.scrollTo(0,(f==null?void 0:f.y)||0)}),r.pipe(xt(i),qe(250),Y("offset")).subscribe(({offset:u})=>{history.replaceState(u,"")}),A(i,a).pipe(Se(2,1),M(([u,f])=>u.url.pathname===f.url.pathname),p(([,u])=>u)).subscribe(({offset:u})=>{window.scrollTo(0,(u==null?void 0:u.y)||0)})}var rs=Be(zr());var si=Be(zr());function Nr(e,t){let r=new RegExp(e.separator,"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=>(t?(0,si.default)(a):a).replace(i,n).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function ci(e){return e.split(/"([^"]+)"/g).map((t,r)=>r&1?t.replace(/^\b|^(?![^\x00-\x7F]|$)|\s+/g," +"):t).join("").replace(/"|(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g,"").trim()}function ft(e){return e.type===1}function ui(e){return e.type===2}function pt(e){return e.type===3}function os({config:e,docs:t}){e.lang.length===1&&e.lang[0]==="en"&&(e.lang=[X("search.config.lang")]),e.separator==="[\\s\\-]+"&&(e.separator=X("search.config.separator"));let n={pipeline:X("search.config.pipeline").split(/\s*,\s*/).filter(Boolean),suggestions:ae("search.suggest")};return{config:e,docs:t,options:n}}function fi(e,t){let r=be(),n=new Worker(e),o=new S,i=Ro(n,{tx$:o}).pipe(p(a=>{if(pt(a))for(let s of a.data.items)for(let c of s)c.location=`${new URL(c.location,r.base)}`;return a}),ce());return te(t).pipe(p(a=>({type:0,data:os(a)}))).subscribe(o.next.bind(o)),{tx$:o,rx$:i}}function pi(){let e=be(),t=Le(new URL("../versions.json",e.base)),r=t.pipe(p(n=>{let[,o]=e.base.match(/([^/]+)\/?$/);return n.find(({version:i,aliases:a})=>i===o||a.includes(o))||n[0]}));q([t,r]).subscribe(([n,o])=>{var a;if(K(".md-header__topic").appendChild(Wo(n,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 u of ne("outdated"))u.hidden=!1}})}function is(e,{rx$:t}){let r=(__search==null?void 0:__search.transform)||ci,{searchParams:n}=Me();n.has("q")&&We("search",!0);let o=t.pipe(M(ft),pe(1),p(()=>n.get("q")||""));o.subscribe(s=>{s&&(e.value=s)});let i=Xt(e),a=A(w(e,"keyup"),w(e,"focus").pipe(Re(1)),o).pipe(p(()=>r(e.value)),V(""),Q());return q([a,i]).pipe(p(([s,c])=>({value:s,focus:c})),J(1))}function li(e,{tx$:t,rx$:r}){let n=new S;return n.pipe(Y("value"),p(({value:o})=>({type:2,data:o}))).subscribe(t.next.bind(t)),n.pipe(Y("focus")).subscribe(({focus:o})=>{o?(We("search",o),e.placeholder=""):e.placeholder=X("search.placeholder")}),w(e.form,"reset").pipe(ue(n.pipe(se(1)))).subscribe(()=>e.focus()),is(e,{tx$:t,rx$:r}).pipe(O(o=>n.next(o)),C(()=>n.complete()),p(o=>P({ref:e},o)))}function mi(e,{rx$:t},{query$:r}){let n=new S,o=bo(e.parentElement).pipe(M(Boolean)),i=K(":scope > :first-child",e),a=K(":scope > :last-child",e),s=t.pipe(M(ft),pe(1));return n.pipe(Ee(r),xt(s)).subscribe(([{items:u},{value:f}])=>{if(f)switch(u.length){case 0:i.textContent=X("search.result.none");break;case 1:i.textContent=X("search.result.one");break;default:i.textContent=X("search.result.other",ar(u.length))}else i.textContent=X("search.result.placeholder")}),n.pipe(O(()=>a.innerHTML=""),T(({items:u})=>A(k(...u.slice(0,10)),k(...u.slice(10)).pipe(Se(4),Pr(o),T(([f])=>k(...f)))))).subscribe(u=>a.appendChild($o(u))),t.pipe(M(pt),p(({data:u})=>u)).pipe(O(u=>n.next(u)),C(()=>n.complete()),p(u=>P({ref:e},u)))}function as(e,{query$:t}){return t.pipe(p(({value:r})=>{let n=Me();return n.hash="",n.searchParams.delete("h"),n.searchParams.set("q",r),{url:n}}))}function di(e,t){let r=new S;return r.subscribe(({url:n})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${n}`}),w(e,"click").subscribe(n=>n.preventDefault()),as(e,t).pipe(O(n=>r.next(n)),C(()=>r.complete()),p(n=>P({ref:e},n)))}function hi(e,{rx$:t},{keyboard$:r}){let n=new S,o=Ae("search-query"),i=A(w(o,"keydown"),w(o,"focus")).pipe(ze(Te),p(()=>o.value),Q());return n.pipe(at(i),p(([{suggestions:s},c])=>{let u=c.split(/([\s-]+)/);if((s==null?void 0:s.length)&&u[u.length-1]){let f=s[s.length-1];f.startsWith(u[u.length-1])&&(u[u.length-1]=f)}else u.length=0;return u})).subscribe(s=>e.innerHTML=s.join("").replace(/\s/g," ")),r.pipe(M(({mode:s})=>s==="search")).subscribe(s=>{switch(s.type){case"ArrowRight":e.innerText.length&&o.selectionStart===o.value.length&&(o.value=e.innerText);break}}),t.pipe(M(pt),p(({data:s})=>s)).pipe(O(s=>n.next(s)),C(()=>n.complete()),p(()=>({ref:e})))}function bi(e,{index$:t,keyboard$:r}){let n=be();try{let o=(__search==null?void 0:__search.worker)||n.search,i=fi(o,t),a=Ae("search-query",e),s=Ae("search-result",e),{tx$:c,rx$:u}=i;c.pipe(M(ui),st(u.pipe(M(ft))),pe(1)).subscribe(c.next.bind(c)),r.pipe(M(({mode:l})=>l==="search")).subscribe(l=>{let h=Fe();switch(l.type){case"Enter":if(h===a){let d=new Map;for(let v of B(":first-child [href]",s)){let z=v.firstElementChild;d.set(v,parseFloat(z.getAttribute("data-md-score")))}if(d.size){let[[v]]=[...d].sort(([,z],[,G])=>G-z);v.click()}l.claim()}break;case"Escape":case"Tab":We("search",!1),a.blur();break;case"ArrowUp":case"ArrowDown":if(typeof h=="undefined")a.focus();else{let d=[a,...B(":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!==Fe()&&a.focus()}}),r.pipe(M(({mode:l})=>l==="global")).subscribe(l=>{switch(l.type){case"f":case"s":case"/":a.focus(),a.select(),l.claim();break}});let f=li(a,i),m=mi(s,i,{query$:f});return A(f,m).pipe(Ke(...ne("search-share",e).map(l=>di(l,{query$:f})),...ne("search-suggest",e).map(l=>hi(l,i,{keyboard$:r}))))}catch(o){return e.hidden=!0,ge}}function vi(e,{index$:t,location$:r}){return q([t,r.pipe(V(Me()),M(n=>!!n.searchParams.get("h")))]).pipe(p(([n,o])=>Nr(n.config,!0)(o.searchParams.get("h"))),p(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?void 0:a.offsetHeight){let c=s.textContent,u=n(c);u.length>c.length&&o.set(s,u)}for(let[s,c]of o){let{childNodes:u}=H("span",null,c);s.replaceWith(...Array.from(u))}return{ref:e,nodes:o}}))}function ss(e,{viewport$:t,main$:r}){let n=e.parentElement,o=n.offsetTop-n.parentElement.offsetTop;return q([r,t]).pipe(p(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(o,Math.max(0,s-i))-o,{height:a,locked:s>=i+o})),Q((i,a)=>i.height===a.height&&i.locked===a.locked))}function qr(e,n){var o=n,{header$:t}=o,r=Jr(o,["header$"]);let i=K(".md-sidebar__scrollwrap",e),{y:a}=je(i);return F(()=>{let s=new S;return s.pipe(He(0,we),Ee(t)).subscribe({next([{height:c},{height:u}]){i.style.height=`${c-2*a}px`,e.style.top=`${u}px`},complete(){i.style.height="",e.style.top=""}}),ss(e,r).pipe(O(c=>s.next(c)),C(()=>s.complete()),p(c=>P({ref:e},c)))})}function gi(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return yt(Le(`${r}/releases/latest`).pipe(p(n=>({version:n.tag_name})),Qe({})),Le(r).pipe(p(n=>({stars:n.stargazers_count,forks:n.forks_count})),Qe({}))).pipe(p(([n,o])=>P(P({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return Le(r).pipe(p(n=>({repositories:n.public_repos})),Qe({}))}}function yi(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Le(r).pipe(p(({star_count:n,forks_count:o})=>({stars:n,forks:o})),Qe({}))}function xi(e){let[t]=e.match(/(git(?:hub|lab))/i)||[];switch(t.toLowerCase()){case"github":let[,r,n]=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);return gi(r,n);case"gitlab":let[,o,i]=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i);return yi(o,i);default:return N}}var cs;function us(e){return cs||(cs=F(()=>{let t=__md_get("__source",sessionStorage);return t?k(t):xi(e.href).pipe(O(r=>__md_set("__source",r,sessionStorage)))}).pipe($e(()=>N),M(t=>Object.keys(t).length>0),p(t=>({facts:t})),J(1)))}function wi(e){let t=K(":scope > :last-child",e);return F(()=>{let r=new S;return r.subscribe(({facts:n})=>{t.appendChild(Fo(n)),t.setAttribute("data-md-state","done")}),us(e).pipe(O(n=>r.next(n)),C(()=>r.complete()),p(n=>P({ref:e},n)))})}function fs(e,{viewport$:t,header$:r}){return he(document.body).pipe(T(()=>cr(e,{header$:r,viewport$:t})),p(({offset:{y:n}})=>({hidden:n>=10})),Y("hidden"))}function Si(e,t){return F(()=>{let r=new S;return r.subscribe({next({hidden:n}){n?e.setAttribute("data-md-state","hidden"):e.removeAttribute("data-md-state")},complete(){e.removeAttribute("data-md-state")}}),(ae("navigation.tabs.sticky")?k({hidden:!1}):fs(e,t)).pipe(O(n=>r.next(n)),C(()=>r.complete()),p(n=>P({ref:e},n)))})}function ps(e,{viewport$:t,header$:r}){let n=new Map,o=B("[href^=\\#]",e);for(let s of o){let c=decodeURIComponent(s.hash.substring(1)),u=le(`[id="${c}"]`);typeof u!="undefined"&&n.set(s,u)}let i=r.pipe(p(s=>24+s.height));return he(document.body).pipe(Y("height"),T(s=>F(()=>{let c=[];return k([...n].reduce((u,[f,m])=>{for(;c.length&&n.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 u.set([...c=[...c,f]].reverse(),l)},new Map))}).pipe(p(c=>new Map([...c].sort(([,u],[,f])=>u-f))),T(c=>q([t,i]).pipe(Ar(([u,f],[{offset:{y:m},size:l},h])=>{let d=m+l.height>=Math.floor(s.height);for(;f.length;){let[,v]=f[0];if(v-h<m||d)u=[...u,f.shift()];else break}for(;u.length;){let[,v]=u[u.length-1];if(v-h>=m&&!d)f=[u.pop(),...f];else break}return[u,f]},[[],[...c]]),Q((u,f)=>u[0]===f[0]&&u[1]===f[1])))))).pipe(p(([s,c])=>({prev:s.map(([u])=>u),next:c.map(([u])=>u)})),V({prev:[],next:[]}),Se(2,1),p(([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 Ei(e,{viewport$:t,header$:r}){return F(()=>{let n=new S;return n.subscribe(({prev:o,next:i})=>{for(let[a]of i)a.removeAttribute("data-md-state"),a.classList.remove("md-nav__link--active");for(let[a,[s]]of o.entries())s.setAttribute("data-md-state","blur"),s.classList.toggle("md-nav__link--active",a===o.length-1)}),ae("navigation.tracking")&&t.pipe(ue(n.pipe(se(1))),Y("offset"),qe(250),Ee(n)).subscribe(([,{prev:o}])=>{let i=Me(),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}`)}),ps(e,{viewport$:t,header$:r}).pipe(O(o=>n.next(o)),C(()=>n.complete()),p(o=>P({ref:e},o)))})}function ls(e,{viewport$:t,main$:r}){let n=t.pipe(p(({offset:{y:i}})=>i),Se(2,1),p(([i,a])=>i>a&&a),Q()),o=r.pipe(Y("active"));return q([o,n]).pipe(p(([{active:i},a])=>({hidden:!(i&&a)})),Q((i,a)=>i.hidden===a.hidden))}function Oi(e,{viewport$:t,header$:r,main$:n}){let o=new S;return o.subscribe({next({hidden:i}){i?(e.setAttribute("data-md-state","hidden"),e.setAttribute("tabindex","-1"),e.blur()):(e.removeAttribute("data-md-state"),e.removeAttribute("tabindex"))},complete(){e.style.top="",e.setAttribute("data-md-state","hidden"),e.removeAttribute("tabindex")}}),r.pipe(ue(o.pipe(Lr(0),se(1))),Y("height")).subscribe(({height:i})=>{e.style.top=`${i+16}px`}),ls(e,{viewport$:t,header$:r,main$:n}).pipe(O(i=>o.next(i)),C(()=>o.complete()),p(i=>P({ref:e},i)))}function Ti({document$:e,tablet$:t}){e.pipe(T(()=>k(...B("[data-md-state=indeterminate]"))),O(r=>{r.indeterminate=!0,r.checked=!1}),ie(r=>w(r,"change").pipe(Hr(()=>r.hasAttribute("data-md-state")),re(r))),Ee(t)).subscribe(([r,n])=>{r.removeAttribute("data-md-state"),n&&(r.checked=!1)})}function ms(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function _i({document$:e}){e.pipe(T(()=>k(...B("[data-md-scrollfix]"))),O(t=>t.removeAttribute("data-md-scrollfix")),M(ms),ie(t=>w(t,"touchstart").pipe(re(t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}function Mi({viewport$:e,tablet$:t}){q([ir("search"),t]).pipe(p(([r,n])=>r&&!n),T(r=>k(r).pipe(Re(r?400:100))),Ee(e)).subscribe(([r,{offset:{y:n}}])=>{if(r)document.body.setAttribute("data-md-state","lock"),document.body.style.top=`-${n}px`;else{let o=-1*parseInt(document.body.style.top,10);document.body.removeAttribute("data-md-state"),document.body.style.top="",o&&window.scrollTo(0,o)}})}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var lt=oo(),ur=xo(),Qr=To(),Kr=go(),ye=Ho(),fr=Fr("(min-width: 960px)"),Li=Fr("(min-width: 1220px)"),Ai=_o(),Ci=be(),ki=document.forms.namedItem("search")?(__search==null?void 0:__search.index)||Le(new URL("search/search_index.json",Ci.base)):ge,Yr=new S;oi({alert$:Yr});ae("navigation.instant")&&ii({document$:lt,location$:ur,viewport$:ye});var Ri;((Ri=Ci.version)==null?void 0:Ri.provider)==="mike"&&pi();A(ur,Qr).pipe(Re(125)).subscribe(()=>{We("drawer",!1),We("search",!1)});Kr.pipe(M(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=le("[href][rel=prev]");typeof t!="undefined"&&t.click();break;case"n":case".":let r=le("[href][rel=next]");typeof r!="undefined"&&r.click();break}});Ti({document$:lt,tablet$:fr});_i({document$:lt});Mi({viewport$:ye,tablet$:fr});var De=Zo(Ae("header"),{viewport$:ye}),pr=lt.pipe(p(()=>Ae("main")),T(e=>ri(e,{viewport$:ye,header$:De})),J(1)),ds=A(...ne("dialog").map(e=>Xo(e,{alert$:Yr})),...ne("header").map(e=>ei(e,{viewport$:ye,header$:De,main$:pr})),...ne("palette").map(e=>ni(e)),...ne("search").map(e=>bi(e,{index$:ki,keyboard$:Kr})),...ne("source").map(e=>wi(e))),hs=F(()=>A(...ne("content").map(e=>Jo(e,{target$:Qr,print$:Ai})),...ne("content").map(e=>ae("search.highlight")?vi(e,{index$:ki,location$:ur}):N),...ne("header-title").map(e=>ti(e,{viewport$:ye,header$:De})),...ne("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?jr(Li,()=>qr(e,{viewport$:ye,header$:De,main$:pr})):jr(fr,()=>qr(e,{viewport$:ye,header$:De,main$:pr}))),...ne("tabs").map(e=>Si(e,{viewport$:ye,header$:De})),...ne("toc").map(e=>Ei(e,{viewport$:ye,header$:De})),...ne("top").map(e=>Oi(e,{viewport$:ye,header$:De,main$:pr})))),Hi=lt.pipe(T(()=>hs),Ke(ds),J(1));Hi.subscribe();window.document$=lt;window.location$=ur;window.target$=Qr;window.keyboard$=Kr;window.viewport$=ye;window.tablet$=fr;window.screen$=Li;window.print$=Ai;window.alert$=Yr;window.component$=Hi;})();
|
|
//# sourceMappingURL=bundle.9e2e17ab.min.js.map
|
|
|