rapids/1.1/assets/javascripts/bundle.9aafa2c6.min.js

109 lines
84 KiB
JavaScript

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