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

109 lines
84 KiB
JavaScript
Raw Normal View History

(()=>{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 se
`+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
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;"scroll
/*!
* 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.
***************************************************************************** */