deploy: 2cd80d4f258f889316b48281b7a9a1d66e638b3e
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
var e=Object.defineProperty,a=Object.defineProperties,t=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,i=(a,t,r)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[t]=r,n=(e,a)=>{for(var t in a||(a={}))s.call(a,t)&&i(e,t,a[t]);if(r)for(var t of r(a))o.call(a,t)&&i(e,t,a[t]);return e},c=(e,r)=>a(e,t(r));import{a4 as l,a5 as d,C as p,a6 as u,$ as m,a8 as f,ac as y,S as g,i as h,s as b,e as v,c as O,a as S,d as E,b as w,P as D,f as T,H as L,I as j,J as _,A as x,aa as C,ab as P,L as A}from"./vendor-5240a73e.js";import{_ as I}from"./preload-helper-b2c28c98.js";let J;let N;const k=l(p({code:"graph TD\n A[Christmas] --\x3e|Get money| B(Go shopping)\n B --\x3e C{Let me think}\n C --\x3e|One| D[Laptop]\n C --\x3e|Two| E[iPhone]\n C --\x3e|Three| F[fa:fa-car Car]\n ",mermaid:JSON.stringify({theme:"default"},null,2),updateEditor:!1,autoSync:!0,updateDiagram:!0}),d(),"codeStore"),V=u([k],(([e],a)=>{a(m(JSON.stringify(e),!0))})),$=e=>{k.update((a=>n(n({},a),e)))};let R=!1;const B=(e,a,t=!1)=>{var r;r=e,J&&(clearTimeout(N),N=setTimeout((function(){const e=r.replace(/^\s*%%.*\n/g,"\n").trimStart().split(" ")[0];console.debug("ga:","send","event","render",e),J.track("render",{graphType:e})}),5e3));if((e.match(/\n/g)||"").length+1>50&&!R&&f(k).autoSync){const e=confirm("Long diagram deteced. Turn off Auto Sync? Click the sync logo to manually sync.");R=!0,e&&$({autoSync:!1})}k.update((r=>c(n({},r),{code:e,updateEditor:a,updateDiagram:t})))},G=(e,a)=>{k.update((t=>c(n({},t),{mermaid:e,updateEditor:a})))},H=()=>JSON.stringify(f(k)),z=p(void 0);function F(e){let a,t;return{c(){a=v("div"),t=v("div"),this.h()},l(e){a=O(e,"DIV",{id:!0,class:!0});var r=S(a);t=O(r,"DIV",{id:!0,class:!0}),S(t).forEach(E),r.forEach(E),this.h()},h(){w(t,"id","container"),w(t,"class","flex-1 overflow-auto"),w(a,"id","view"),w(a,"class","p-2 svelte-5ndy2s"),D(a,"error",e[1]),D(a,"outOfSync",e[2])},m(r,s){T(r,a,s),L(a,t),e[3](t)},p(e,[t]){2&t&&D(a,"error",e[1]),4&t&&D(a,"outOfSync",e[2])},i:j,o:j,d(t){t&&E(a),e[3](null)}}}function M(e,a,t){let r;_(e,k,(e=>t(7,r=e)));let s,o="",i="",n=!1,c=!1,l=!0;return x((()=>{k.subscribe((e=>{try{if(s&&e&&(e.updateDiagram||e.autoSync)){if(e.autoSync||C(k,r.updateDiagram=!1,r),t(2,c=!1),l=!0,o===e.code&&i===e.mermaid)return;o=e.code,i=e.mermaid;const a=s.parentElement.parentElement.parentElement.scrollTop;delete s.dataset.processed,P.exports.initialize(Object.assign({},JSON.parse(e.mermaid))),P.exports.render("graph-div",o,(e=>{t(0,s.innerHTML=e,s)})),t(0,s.parentElement.parentElement.parentElement.scrollTop=a,s),t(1,n=!1)}else l?l=!1:t(2,c=!0)}catch(a){console.log("view fail",a),t(1,n=!0)}})),z.subscribe((e=>{void 0===e?t(1,n=!1):(t(1,n=!0),console.log("Error: ",e))}))})),[s,n,c,function(e){A[e?"unshift":"push"]((()=>{s=e,t(0,s)}))}]}class U extends g{constructor(e){super(),h(this,e,M,F,b,{})}}const q=()=>{(e=>{let a;try{const t=y(e);console.log(`Tring to load state: ${t}`),a=JSON.parse(t);const r="string"==typeof a.mermaid?JSON.parse(a.mermaid):a.mermaid;r.securityLevel&&"strict"!==r.securityLevel&&confirm(`Removing "securityLevel":"${r.securityLevel}" from the config for safety.\nClick Cancel if you trust the source of this Diagram.`)&&delete r.securityLevel,a.mermaid=JSON.stringify(r,null,2)}catch(t){e&&console.error("Init error",t),a=f(k),console.log(a)}$(c(n({},a),{updateEditor:!0}))})(window.location.hash.slice(1))},K=()=>{$({updateDiagram:!0})},Q=async()=>{q(),K(),V.subscribe((e=>{history.replaceState(void 0,void 0,`#${e}`)})),await(async()=>{if(!J)try{const{Analytics:e}=await I((()=>import("./analytics.browser.es-d53875b8.js")),[]),a=await I((()=>import("./analytics-plugin-ga.browser.es-1cdb0512.js")),[]);J=e({app:"mermaid-live-editor",plugins:[a.init({trackingId:"UA-153180559-1"})]})}catch{console.info("Analytics blocked ;)")}})(),null==J||J.page()};export{U as V,J as a,V as b,k as c,G as d,z as e,H as g,Q as i,K as s,B as u};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{S as r,i as s,s as a,e as t,t as e,c as n,a as c,g as o,d as u,f,H as l,h as m,k as p,l as d,n as i,I as h}from"./chunks/vendor-5240a73e.js";function E(r){let s,a,p=r[1].frame+"";return{c(){s=t("pre"),a=e(p)},l(r){s=n(r,"PRE",{});var t=c(s);a=o(t,p),t.forEach(u)},m(r,t){f(r,s,t),l(s,a)},p(r,s){2&s&&p!==(p=r[1].frame+"")&&m(a,p)},d(r){r&&u(s)}}}function k(r){let s,a,p=r[1].stack+"";return{c(){s=t("pre"),a=e(p)},l(r){s=n(r,"PRE",{});var t=c(s);a=o(t,p),t.forEach(u)},m(r,t){f(r,s,t),l(s,a)},p(r,s){2&s&&p!==(p=r[1].stack+"")&&m(a,p)},d(r){r&&u(s)}}}function v(r){let s,a,v,g,P,R,x,H,N=r[1].message+"",$=r[1].frame&&E(r),j=r[1].stack&&k(r);return{c(){s=t("h1"),a=e(r[0]),v=p(),g=t("pre"),P=e(N),R=p(),$&&$.c(),x=p(),j&&j.c(),H=d()},l(t){s=n(t,"H1",{});var e=c(s);a=o(e,r[0]),e.forEach(u),v=i(t),g=n(t,"PRE",{});var f=c(g);P=o(f,N),f.forEach(u),R=i(t),$&&$.l(t),x=i(t),j&&j.l(t),H=d()},m(r,t){f(r,s,t),l(s,a),f(r,v,t),f(r,g,t),l(g,P),f(r,R,t),$&&$.m(r,t),f(r,x,t),j&&j.m(r,t),f(r,H,t)},p(r,[s]){1&s&&m(a,r[0]),2&s&&N!==(N=r[1].message+"")&&m(P,N),r[1].frame?$?$.p(r,s):($=E(r),$.c(),$.m(x.parentNode,x)):$&&($.d(1),$=null),r[1].stack?j?j.p(r,s):(j=k(r),j.c(),j.m(H.parentNode,H)):j&&(j.d(1),j=null)},i:h,o:h,d(r){r&&u(s),r&&u(v),r&&u(g),r&&u(R),$&&$.d(r),r&&u(x),j&&j.d(r),r&&u(H)}}}function g({error:r,status:s}){return{props:{error:r,status:s}}}function P(r,s,a){let{status:t}=s,{error:e}=s;return r.$$set=r=>{"status"in r&&a(0,t=r.status),"error"in r&&a(1,e=r.error)},[t,e]}class R extends r{constructor(r){super(),s(this,r,P,v,a,{status:0,error:1})}}export{R as default,g as load};
|
||||
@@ -0,0 +1 @@
|
||||
import{S as s,i as e,s as a,D as r,e as o,c,a as t,d as n,b as i,f as l,E as u,F as h,G as p,x as f,u as $,A as d}from"../chunks/vendor-5240a73e.js";import{b as v}from"../chunks/paths-45dac81d.js";function g(s){let e,a;const d=s[1].default,v=r(d,s,s[0],null);return{c(){e=o("main"),v&&v.c(),this.h()},l(s){e=c(s,"MAIN",{class:!0});var a=t(e);v&&v.l(a),a.forEach(n),this.h()},h(){i(e,"class","h-screen")},m(s,r){l(s,e,r),v&&v.m(e,null),a=!0},p(s,[e]){v&&v.p&&(!a||1&e)&&u(v,d,s,s[0],a?p(d,s[0],e,null):h(s[0]),null)},i(s){a||(f(v,s),a=!0)},o(s){$(v,s),a=!1},d(s){s&&n(e),v&&v.d(s)}}}function m(s,e,a){let{$$slots:r={},$$scope:o}=e;return d((()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register(`${v}/service-worker.js`,{scope:`${v}/`}).then((function(s){console.log("Registration successful, scope is:",s.scope)})).catch((function(s){console.log("Service worker registration failed, error:",s)}))})),s.$$set=s=>{"$$scope"in s&&a(0,o=s.$$scope)},[o,r]}class k extends s{constructor(s){super(),e(this,s,m,g,a,{})}}export{k as default};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{S as t,i as n,s as o,A as s}from"../chunks/vendor-5240a73e.js";import{r as e}from"../chunks/singletons-12a22614.js";import{b as a}from"../chunks/paths-45dac81d.js";const i=async function(t,n){return e.goto(t,n,[])};function c(t){var n=this&&this.__awaiter||function(t,n,o,s){return new(o||(o=Promise))((function(e,a){function i(t){try{r(s.next(t))}catch(n){a(n)}}function c(t){try{r(s.throw(t))}catch(n){a(n)}}function r(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(t){t(n)}))).then(i,c)}r((s=s.apply(t,n||[])).next())}))};return s((()=>n(void 0,void 0,void 0,(function*(){const t=window.location.hash.split("/");let n="edit";t.length>2&&(n=`${t[1]}#${t[2]}`),yield i(`${a}/${n}`,{replaceState:!0})})))),[]}class r extends t{constructor(t){super(),n(this,t,c,null,o,{})}}export{r as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{S as s,i as a,s as r,j as t,m as e,o as n,I as o,x as c,u,v as m,A as i}from"../chunks/vendor-5240a73e.js";import{V as f,i as p}from"../chunks/util-c9d90831.js";import"../chunks/preload-helper-b2c28c98.js";function $(s){let a,r;return a=new f({}),{c(){t(a.$$.fragment)},l(s){e(a.$$.fragment,s)},m(s,t){n(a,s,t),r=!0},p:o,i(s){r||(c(a.$$.fragment,s),r=!0)},o(s){u(a.$$.fragment,s),r=!1},d(s){m(a,s)}}}function l(s){return i(p),[]}class d extends s{constructor(s){super(),a(this,s,l,$,r,{})}}export{d as default};
|
||||
File diff suppressed because one or more lines are too long
@@ -50,15 +50,15 @@
|
||||
|
||||
|
||||
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/start-1f94a2ff.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/chunks/vendor-246cbf13.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/start-4860ea41.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/chunks/vendor-5240a73e.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/chunks/preload-helper-b2c28c98.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/chunks/singletons-12a22614.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/chunks/paths-45dac81d.js">
|
||||
<link rel="stylesheet" href="/mermaid-live-editor/beta/_app/assets/start-0826e215.css">
|
||||
|
||||
<script type="module">
|
||||
import { start } from "/mermaid-live-editor/beta/_app/start-1f94a2ff.js";
|
||||
import { start } from "/mermaid-live-editor/beta/_app/start-4860ea41.js";
|
||||
start({
|
||||
target: document.querySelector("#svelte"),
|
||||
paths: {"base":"/mermaid-live-editor/beta","assets":"/mermaid-live-editor/beta"},
|
||||
|
||||
+3
-3
@@ -50,15 +50,15 @@
|
||||
|
||||
|
||||
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/start-1f94a2ff.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/chunks/vendor-246cbf13.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/start-4860ea41.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/chunks/vendor-5240a73e.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/chunks/preload-helper-b2c28c98.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/chunks/singletons-12a22614.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/chunks/paths-45dac81d.js">
|
||||
<link rel="stylesheet" href="/mermaid-live-editor/beta/_app/assets/start-0826e215.css">
|
||||
|
||||
<script type="module">
|
||||
import { start } from "/mermaid-live-editor/beta/_app/start-1f94a2ff.js";
|
||||
import { start } from "/mermaid-live-editor/beta/_app/start-4860ea41.js";
|
||||
start({
|
||||
target: document.querySelector("#svelte"),
|
||||
paths: {"base":"/mermaid-live-editor/beta","assets":"/mermaid-live-editor/beta"},
|
||||
|
||||
@@ -50,15 +50,15 @@
|
||||
|
||||
|
||||
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/start-1f94a2ff.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/chunks/vendor-246cbf13.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/start-4860ea41.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/chunks/vendor-5240a73e.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/chunks/preload-helper-b2c28c98.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/chunks/singletons-12a22614.js">
|
||||
<link rel="modulepreload" href="/mermaid-live-editor/beta/_app/chunks/paths-45dac81d.js">
|
||||
<link rel="stylesheet" href="/mermaid-live-editor/beta/_app/assets/start-0826e215.css">
|
||||
|
||||
<script type="module">
|
||||
import { start } from "/mermaid-live-editor/beta/_app/start-1f94a2ff.js";
|
||||
import { start } from "/mermaid-live-editor/beta/_app/start-4860ea41.js";
|
||||
start({
|
||||
target: document.querySelector("#svelte"),
|
||||
paths: {"base":"/mermaid-live-editor/beta","assets":"/mermaid-live-editor/beta"},
|
||||
|
||||
Reference in New Issue
Block a user