Files
mermaid-live-editor/_app/immutable/chunks/index.4938264f.js
T
2023-05-16 19:15:52 +00:00

5 lines
12 KiB
JavaScript

function v(){}const _t=t=>t;function ht(t,e){for(const n in e)t[n]=e[n];return t}function Y(t){return t()}function K(){return Object.create(null)}function E(t){t.forEach(Y)}function W(t){return typeof t=="function"}function It(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let S;function Jt(t,e){return S||(S=document.createElement("a")),S.href=e,t===S.href}function mt(t){return Object.keys(t).length===0}function Z(t,...e){if(t==null)return v;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Kt(t){let e;return Z(t,n=>e=n)(),e}function Qt(t,e,n){t.$$.on_destroy.push(Z(e,n))}function Ut(t,e,n,i){if(t){const r=tt(t,e,n,i);return t[0](r)}}function tt(t,e,n,i){return t[1]&&i?ht(n.ctx.slice(),t[1](i(e))):n.ctx}function Vt(t,e,n,i){if(t[2]&&i){const r=t[2](i(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const c=[],s=Math.max(e.dirty.length,r.length);for(let l=0;l<s;l+=1)c[l]=e.dirty[l]|r[l];return c}return e.dirty|r}return e.dirty}function Xt(t,e,n,i,r,c){if(r){const s=tt(e,n,i,c);t.p(s,r)}}function Yt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}function Zt(t){return t??""}function te(t,e,n){return t.set(n),e}const et=typeof window<"u";let pt=et?()=>window.performance.now():()=>Date.now(),F=et?t=>requestAnimationFrame(t):v;const $=new Set;function nt(t){$.forEach(e=>{e.c(t)||($.delete(e),e.f())}),$.size!==0&&F(nt)}function yt(t){let e;return $.size===0&&F(nt),{promise:new Promise(n=>{$.add(e={c:t,f:n})}),abort(){$.delete(e)}}}const gt=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;"WeakMap"in gt;let H=!1;function bt(){H=!0}function xt(){H=!1}function $t(t,e,n,i){for(;t<e;){const r=t+(e-t>>1);n(r)<=i?t=r+1:e=r}return t}function wt(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const o=[];for(let a=0;a<e.length;a++){const d=e[a];d.claim_order!==void 0&&o.push(d)}e=o}const n=new Int32Array(e.length+1),i=new Int32Array(e.length);n[0]=-1;let r=0;for(let o=0;o<e.length;o++){const a=e[o].claim_order,d=(r>0&&e[n[r]].claim_order<=a?r+1:$t(1,r,h=>e[n[h]].claim_order,a))-1;i[o]=n[d]+1;const u=d+1;n[u]=o,r=Math.max(u,r)}const c=[],s=[];let l=e.length-1;for(let o=n[r]+1;o!=0;o=i[o-1]){for(c.push(e[o-1]);l>=o;l--)s.push(e[l]);l--}for(;l>=0;l--)s.push(e[l]);c.reverse(),s.sort((o,a)=>o.claim_order-a.claim_order);for(let o=0,a=0;o<s.length;o++){for(;a<c.length&&s[o].claim_order>=c[a].claim_order;)a++;const d=a<c.length?c[a]:null;t.insertBefore(s[o],d)}}function vt(t,e){t.appendChild(e)}function it(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Et(t){const e=G("style");return Nt(it(t),e),e.sheet}function Nt(t,e){return vt(t.head||t,e),e.sheet}function Tt(t,e){if(H){for(wt(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?(e.claim_order!==void 0||e.parentNode!==t)&&t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else(e.parentNode!==t||e.nextSibling!==null)&&t.appendChild(e)}function At(t,e,n){t.insertBefore(e,n||null)}function kt(t,e,n){H&&!n?Tt(t,e):(e.parentNode!==t||e.nextSibling!=n)&&t.insertBefore(e,n||null)}function A(t){t.parentNode&&t.parentNode.removeChild(t)}function ee(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function G(t){return document.createElement(t)}function rt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function I(t){return document.createTextNode(t)}function ne(){return I(" ")}function ie(){return I("")}function re(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function se(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function le(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function oe(t){let e;return{p(...n){e=n,e.forEach(i=>t.push(i))},r(){e.forEach(n=>t.splice(t.indexOf(n),1))}}}function ce(t){return t===""?null:+t}function Mt(t){return Array.from(t.childNodes)}function st(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function lt(t,e,n,i,r=!1){st(t);const c=(()=>{for(let s=t.claim_info.last_index;s<t.length;s++){const l=t[s];if(e(l)){const o=n(l);return o===void 0?t.splice(s,1):t[s]=o,r||(t.claim_info.last_index=s),l}}for(let s=t.claim_info.last_index-1;s>=0;s--){const l=t[s];if(e(l)){const o=n(l);return o===void 0?t.splice(s,1):t[s]=o,r?o===void 0&&t.claim_info.last_index--:t.claim_info.last_index=s,l}}return i()})();return c.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,c}function ot(t,e,n,i){return lt(t,r=>r.nodeName===e,r=>{const c=[];for(let s=0;s<r.attributes.length;s++){const l=r.attributes[s];n[l.name]||c.push(l.name)}c.forEach(s=>r.removeAttribute(s))},()=>i(e))}function ae(t,e,n){return ot(t,e,n,G)}function ue(t,e,n){return ot(t,e,n,rt)}function St(t,e){return lt(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>I(e),!0)}function fe(t){return St(t," ")}function Q(t,e,n){for(let i=n;i<t.length;i+=1){const r=t[i];if(r.nodeType===8&&r.textContent.trim()===e)return i}return t.length}function de(t,e){const n=Q(t,"HTML_TAG_START",0),i=Q(t,"HTML_TAG_END",n);if(n===i)return new U(void 0,e);st(t);const r=t.splice(n,i-n+1);A(r[0]),A(r[r.length-1]);const c=r.slice(1,r.length-1);for(const s of c)s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new U(c,e)}function _e(t,e){e=""+e,t.data!==e&&(t.data=e)}function he(t,e){t.value=e??""}function me(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function pe(t,e,n){t.classList[n?"add":"remove"](e)}function ct(t,e,{bubbles:n=!1,cancelable:i=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,i,e),r}class Ct{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,i=null){this.e||(this.is_svg?this.e=rt(n.nodeName):this.e=G(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)At(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(A)}}class U extends Ct{constructor(e,n=!1){super(n),this.e=this.n=null,this.l=e}c(e){this.l?this.n=this.l:super.c(e)}i(e){for(let n=0;n<this.n.length;n+=1)kt(this.t,this.n[n],e)}}function ye(t,e){return new t(e)}const L=new Map;let P=0;function Lt(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function Pt(t,e){const n={stylesheet:Et(e),rules:{}};return L.set(t,n),n}function V(t,e,n,i,r,c,s,l=0){const o=16.666/i;let a=`{
`;for(let y=0;y<=1;y+=o){const g=e+(n-e)*c(y);a+=y*100+`%{${s(g,1-g)}}
`}const d=a+`100% {${s(n,1-n)}}
}`,u=`__svelte_${Lt(d)}_${l}`,h=it(t),{stylesheet:f,rules:_}=L.get(h)||Pt(h,t);_[u]||(_[u]=!0,f.insertRule(`@keyframes ${u} ${d}`,f.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${u} ${i}ms linear ${r}ms 1 both`,P+=1,u}function jt(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?c=>c.indexOf(e)<0:c=>c.indexOf("__svelte")===-1),r=n.length-i.length;r&&(t.style.animation=i.join(", "),P-=r,P||Ht())}function Ht(){F(()=>{P||(L.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&A(e)}),L.clear())})}let k;function T(t){k=t}function J(){if(!k)throw new Error("Function called outside component initialization");return k}function ge(t){J().$$.on_mount.push(t)}function be(t){J().$$.after_update.push(t)}function xe(){const t=J();return(e,n,{cancelable:i=!1}={})=>{const r=t.$$.callbacks[e];if(r){const c=ct(e,n,{cancelable:i});return r.slice().forEach(s=>{s.call(t,c)}),!c.defaultPrevented}return!0}}function $e(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const x=[],X=[];let w=[];const B=[],at=Promise.resolve();let z=!1;function ut(){z||(z=!0,at.then(ft))}function we(){return ut(),at}function j(t){w.push(t)}function ve(t){B.push(t)}const D=new Set;let b=0;function ft(){if(b!==0)return;const t=k;do{try{for(;b<x.length;){const e=x[b];b++,T(e),Ot(e.$$)}}catch(e){throw x.length=0,b=0,e}for(T(null),x.length=0,b=0;X.length;)X.pop()();for(let e=0;e<w.length;e+=1){const n=w[e];D.has(n)||(D.add(n),n())}w.length=0}while(x.length);for(;B.length;)B.pop()();z=!1,D.clear(),T(t)}function Ot(t){if(t.fragment!==null){t.update(),E(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(j)}}function qt(t){const e=[],n=[];w.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),w=e}let N;function Dt(){return N||(N=Promise.resolve(),N.then(()=>{N=null})),N}function R(t,e,n){t.dispatchEvent(ct(`${e?"intro":"outro"}${n}`))}const C=new Set;let p;function Ee(){p={r:0,c:[],p}}function Ne(){p.r||E(p.c),p=p.p}function Rt(t,e){t&&t.i&&(C.delete(t),t.i(e))}function Te(t,e,n,i){if(t&&t.o){if(C.has(t))return;C.add(t),p.c.push(()=>{C.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const Bt={duration:0};function Ae(t,e,n,i){const r={direction:"both"};let c=e(t,n,r),s=i?0:1,l=null,o=null,a=null;function d(){a&&jt(t,a)}function u(f,_){const m=f.b-s;return _*=Math.abs(m),{a:s,b:f.b,d:m,duration:_,start:f.start,end:f.start+_,group:f.group}}function h(f){const{delay:_=0,duration:m=300,easing:y=_t,tick:g=v,css:O}=c||Bt,q={start:pt()+_,b:f};f||(q.group=p,p.r+=1),l||o?o=q:(O&&(d(),a=V(t,s,f,m,_,y,O)),f&&g(0,1),l=u(q,m),j(()=>R(t,f,"start")),yt(M=>{if(o&&M>o.start&&(l=u(o,m),o=null,R(t,l.b,"start"),O&&(d(),a=V(t,s,l.b,l.duration,0,y,c.css))),l){if(M>=l.end)g(s=l.b,1-s),R(t,l.b,"end"),o||(l.b?d():--l.group.r||E(l.group.c)),l=null;else if(M>=l.start){const dt=M-l.start;s=l.a+l.d*y(dt/l.duration),g(s,1-s)}}return!!(l||o)}))}return{run(f){W(c)?Dt().then(()=>{c=c(r),h(f)}):h(f)},end(){d(),l=o=null}}}const zt=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"];[...zt];function ke(t,e,n){const i=t.$$.props[e];i!==void 0&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function Me(t){t&&t.c()}function Se(t,e){t&&t.l(e)}function Wt(t,e,n,i){const{fragment:r,after_update:c}=t.$$;r&&r.m(e,n),i||j(()=>{const s=t.$$.on_mount.map(Y).filter(W);t.$$.on_destroy?t.$$.on_destroy.push(...s):E(s),t.$$.on_mount=[]}),c.forEach(j)}function Ft(t,e){const n=t.$$;n.fragment!==null&&(qt(n.after_update),E(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Gt(t,e){t.$$.dirty[0]===-1&&(x.push(t),ut(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ce(t,e,n,i,r,c,s,l=[-1]){const o=k;T(t);const a=t.$$={fragment:null,ctx:[],props:c,update:v,not_equal:r,bound:K(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(o?o.$$.context:[])),callbacks:K(),dirty:l,skip_bound:!1,root:e.target||o.$$.root};s&&s(a.root);let d=!1;if(a.ctx=n?n(t,e.props||{},(u,h,...f)=>{const _=f.length?f[0]:h;return a.ctx&&r(a.ctx[u],a.ctx[u]=_)&&(!a.skip_bound&&a.bound[u]&&a.bound[u](_),d&&Gt(t,u)),h}):[],a.update(),d=!0,E(a.before_update),a.fragment=i?i(a.ctx):!1,e.target){if(e.hydrate){bt();const u=Mt(e.target);a.fragment&&a.fragment.l(u),u.forEach(A)}else a.fragment&&a.fragment.c();e.intro&&Rt(t.$$.fragment),Wt(t,e.target,e.anchor,e.customElement),xt(),ft()}T(o)}class Le{$destroy(){Ft(this,1),this.$destroy=v}$on(e,n){if(!W(n))return v;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!mt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{he as $,Wt as A,Ft as B,Ut as C,Xt as D,Yt as E,Vt as F,Qt as G,Tt as H,v as I,rt as J,ue as K,ee as L,pe as M,re as N,E as O,Jt as P,Zt as Q,_t as R,Le as S,se as T,xe as U,j as V,Ae as W,ke as X,ve as Y,$e as Z,oe as _,ne as a,ce as a0,Kt as a1,te as a2,U as a3,de as a4,Z as a5,W as a6,kt as b,fe as c,Te as d,ie as e,Ne as f,Rt as g,A as h,Ce as i,be as j,G as k,ae as l,Mt as m,le as n,ge as o,me as p,I as q,St as r,It as s,we as t,_e as u,Ee as v,X as w,ye as x,Me as y,Se as z};