This commit is contained in:
sidharthv96
2022-01-23 05:47:23 +00:00
parent 7190035385
commit d2462ba65a
11 changed files with 1338 additions and 31 deletions
+18
View File
@@ -0,0 +1,18 @@
var b=Object.defineProperty,k=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var m=(e,t,s)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,a=(e,t)=>{for(var s in t||(t={}))L.call(t,s)&&m(e,s,t[s]);if(u)for(var s of u(t))_.call(t,s)&&m(e,s,t[s]);return e},o=(e,t)=>k(e,v(t));import{D as p,L as C,M as T,N as O,O as w,P as D,Q as N,R as A,T as E,U as z,V as c}from"./vendor-54c63849.js";import{_ as f}from"./preload-helper-1db36302.js";const J={loading:!1},g=p(J),H=async(e,t)=>{g.set({loading:!0,message:e});const s=await t;return g.set({loading:!1}),s};let l;const M=async()=>{if(!l)try{const{Analytics:e}=await f(()=>import("./analytics.browser.es-3a37d114.js"),[]),t=await f(()=>import("./analytics-plugin-ga.browser.es-1cdb0512.js"),[]);l=e({app:"mermaid-live-editor",plugins:[t.init({trackingId:"UA-153180559-1"})]})}catch{console.info("Analytics blocked ;)")}},R=e=>e.replace(/^\s*%%.*\n/g,`
`).trimStart().split(" ")[0];let y;const j=e=>{l&&(clearTimeout(y),y=setTimeout(function(){const t=R(e);console.debug("ga:","send","event","render",t),l.track("render",{graphType:t})},5e3))},P={serialize:e=>D(e,!0),deserialize:e=>N(e)},U={serialize:e=>{const t=new TextEncoder().encode(e),s=T(t,{level:9});return C(s,!0)},deserialize:e=>{const t=O(e);return w(t,{to:"string"})}},d={base64:P,pako:U},I=e=>{const t=JSON.stringify(e),s="pako",n=d[s].serialize(t);return`${s}:${n}`},B=e=>{let t,s;if(e.includes(":")){let r;if([r,s]=e.split(":"),r in d)t=r;else throw new Error(`Unknown serde type: ${r}`)}else t="base64",s=e;const n=d[t].deserialize(s);return JSON.parse(n)},G={code:`graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]
`,mermaid:JSON.stringify({theme:"default"},null,2),updateEditor:!1,autoSync:!0,updateDiagram:!0},$=`graph TD
A[Loading URL failed. We can try to figure out why.] -->|Decode JSON| B(Please check the console to see the JSON and error details.)
B --> C{Is the JSON correct?}
C -->|Yes| D(Please Click here to Raise an issue in github.<br/>Including the broken link in the issue <br/> will speed up the fix.)
C -->|No| E{Did someone <br/>send you this link?}
E -->|Yes| F[Ask them to send <br/>you the complete link]
E -->|No| G{Did you copy <br/> the complete URL?}
G --> |Yes| D
G --> |"No :("| H(Try using the Timeline tab in History <br/>from same browser you used to create the diagram.)
click D href "https://github.com/mermaid-js/mermaid-live-editor/issues/new?assignees=&labels=bug&template=bug_report.md&title=Broken%20link" "Raise issue"`,i=A(p(G),E(),"codeStore"),x=z([i],([e],t)=>{t(I(e))}),Q=e=>{let t;console.log("Loading",e);try{t=B(e);const s=typeof t.mermaid=="string"?JSON.parse(t.mermaid):t.mermaid;s.securityLevel&&s.securityLevel!=="strict"&&confirm(`Removing "securityLevel":"${s.securityLevel}" from the config for safety.
Click Cancel if you trust the source of this Diagram.`)&&delete s.securityLevel,t.mermaid=JSON.stringify(s,null,2)}catch(s){t=c(i),e&&(console.error("Init error",s),t.code=$)}h(o(a({},t),{updateEditor:!0}))},h=e=>{i.update(t=>a(a({},t),e))};let S=!1;const W=(e,t,s=!1)=>{if(j(e),(e.match(/\n/g)||"").length+1>50&&!S&&c(i).autoSync){const r=confirm("Long diagram detected. Turn off Auto Sync? Click the sync logo to manually sync.");S=!0,r&&h({autoSync:!1})}i.update(r=>o(a({},r),{code:e,updateEditor:t,updateDiagram:s}))},q=(e,t)=>{i.update(s=>o(a({},s),{mermaid:e,updateEditor:t}))},K=e=>{i.update(t=>{const s=JSON.parse(t.mermaid);return(!s.theme||["dark","default"].includes(s.theme))&&(s.theme=e?"dark":"default"),o(a({},t),{mermaid:JSON.stringify(s,null,2),updateEditor:!0})})},X=()=>{x.subscribe(e=>{history.replaceState(void 0,void 0,`#${e}`)})},Z=()=>JSON.stringify(c(i));export{l as a,q as b,i as c,G as d,h as e,X as f,Z as g,M as h,H as i,Q as j,g as l,U as p,x as s,K as t,W as u};
+1
View File
@@ -0,0 +1 @@
import{R as e,T as t,D as o}from"./vendor-54c63849.js";const r=e(o({isDark:!1}),t(),"themeStore"),l=["dark","synthwave","halloween","aqua","forest","luxury","black","dracula"],i=s=>{s.includes(" ")&&(s=s.split(" ")[1].trim());const a=l.includes(s);console.log("Setting theme",s),r.set({theme:s,isDark:a})};export{i as s,r as t};
+1
View File
@@ -0,0 +1 @@
var K=Object.defineProperty,W=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var L=(t,e,a)=>e in t?K(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,_=(t,e)=>{for(var a in e||(e={}))Y.call(e,a)&&L(t,a,e[a]);if(E)for(var a of E(e))Z.call(e,a)&&L(t,a,e[a]);return t},w=(t,e)=>W(t,X(e));import{D as f,S as x,i as B,s as Q,e as O,c as T,a as U,d as S,b as p,a4 as g,g as $,G as tt,W as G,K as et,v as at,ah as ot,ai as F,Z as R,R as v,T as b,U as st,aj as rt,V as D}from"./vendor-54c63849.js";import{c as H,d as I,e as V,i as it,f as nt,h as ct,a as lt,j as ut}from"./state-1030977e.js";const dt=f(void 0);function ft(t){let e,a;return{c(){e=O("div"),a=O("div"),this.h()},l(s){e=T(s,"DIV",{id:!0,class:!0});var o=U(e);a=T(o,"DIV",{id:!0,class:!0}),U(a).forEach(S),o.forEach(S),this.h()},h(){p(a,"id","container"),p(a,"class","flex-1 overflow-auto"),p(e,"id","view"),p(e,"class","p-2 svelte-5ndy2s"),g(e,"error",t[2]),g(e,"outOfSync",t[3])},m(s,o){$(s,e,o),tt(e,a),t[4](a),t[5](e)},p(s,[o]){o&4&&g(e,"error",s[2]),o&8&&g(e,"outOfSync",s[3])},i:G,o:G,d(s){s&&S(e),t[4](null),t[5](null)}}}function pt(t,e,a){let s;et(t,H,i=>a(9,s=i));let o="",u="",r,c,n=!1,l=!1,d=!0;at(()=>{H.subscribe(i=>{try{if(r&&i&&(i.updateDiagram||i.autoSync)){if(i.autoSync||ot(H,s.updateDiagram=!1,s),a(3,l=!1),d=!0,o===i.code&&u===i.mermaid)return;o=i.code,u=i.mermaid;const y=c.parentElement.scrollTop;delete r.dataset.processed,F.initialize(Object.assign({},JSON.parse(i.mermaid))),F.render("graph-div",o,z=>{a(0,r.innerHTML=z,r)}),a(1,c.parentElement.scrollTop=y,c),a(2,n=!1)}else d?d=!1:a(3,l=!0)}catch(y){console.log("view fail",y),a(2,n=!0)}}),dt.subscribe(i=>{typeof i=="undefined"?a(2,n=!1):(a(2,n=!0),console.log("Error: ",i))})});function J(i){R[i?"unshift":"push"](()=>{r=i,a(0,r)})}function q(i){R[i?"unshift":"push"](()=>{c=i,a(1,c)})}return[r,c,n,l,J,q]}class It extends x{constructor(e){super();B(this,e,pt,ft,Q,{})}}const gt=30,j=v(f("manual"),b(),"autoHistoryMode"),m=v(f([]),b(),"autoHistoryStore"),h=v(f([]),b(),"manualHistoryStore"),N=f([]),jt=st([j,m,h,N],([t,e,a,s],o)=>{o(t==="auto"?e:t==="manual"?a:t==="loader"?s:e)}),mt=t=>{if(t.type==="loader"){N.update(e=>[t,...e]);return}if(t.name=rt(2),t.type!=="auto"){h.update(e=>[t,...e]);return}m.update(e=>(e.length===gt&&e.pop(),[t,...e]))},Et=t=>{(D(j)==="auto"?m:h).update(e=>(D(j)!=="loader"&&(e=e.filter(a=>t&&a.time!=t)),e))},Lt=t=>{const e=D(t?m:h);return e.length>0?JSON.stringify(e[0].state):""},k="code.mmd",A="config.json",ht=t=>k in t,C=async t=>t.truncated?await(await fetch(t.raw_url)).text():t.content,yt=async t=>{const[e,a,s,o]=t.split("github.com").pop().split("/"),{html_url:u,files:r,history:c}=await(await fetch(`https://api.github.com/gists/${s}${o?"/"+o:""}`)).json();if(ht(r)){const n=await C(r[k]);let l;A in r&&(l=await C(r[A]));const d=c[0];return{url:`${u}/${d.version}`,code:n,config:l,author:d.user.login,time:new Date(d.committed_at).getTime(),version:d.version.slice(-7)}}else throw"Invalid gist provided"},M=(t,e=t.url)=>{const a=w(_({},I),{code:t.code,loader:{type:"gist",config:{url:e}}});return t.config&&(a.mermaid=t.config),a},_t=async t=>{try{const[e,a,s,o]=t.split("github.com").pop().split("/"),{history:u}=await(await fetch(`https://api.github.com/gists/${s}${o?"/"+o:""}`)).json(),r=[];for(const n of u){const l=await yt(n.url).catch(()=>{});l&&r.push(l)}if(r.length===0)throw"Invalid gist provided";r.reverse();const c=M(r.slice(-1).pop(),t);for(const n of r)mt({state:M(n),time:n.time,type:"loader",url:n.url,name:`${n.author} v${n.version}`});return c}catch(e){console.error(e)}},P={gist:_t},wt=async()=>{const t=new URLSearchParams(window.location.search);let e=I,a,s,o=!1;const u=t.get("code"),r=t.get("config");if(u&&(a=await(await fetch(u)).text(),o=!0),r?s=await(await fetch(r)).text():s=I.mermaid,a)e={code:a,mermaid:s,loader:{type:"files",config:{codeURL:u,configURL:r}}};else for(const[c,n]of t.entries())if(c in P)try{e=await P[c](n),o=!0;break}catch(l){console.error(l)}o&&V(w(_({},e),{autoSync:!0,updateDiagram:!0,updateEditor:!0}))},St=()=>{ut(window.location.hash.slice(1))},vt=()=>{V({updateDiagram:!0})},Ot=async()=>{var t;St(),await it("Loading Gist...",wt().catch(console.error)),vt(),nt(),await ct(),(t=lt)==null||t.page()};export{It as V,jt as a,mt as b,Et as c,dt as e,Lt as g,j as h,Ot as i,N as l,vt as s};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{S as W,i as w,s as y,e as v,t as E,c as d,a as b,h as P,d as m,g as n,G as R,j,k as N,l as q,m as S,W as C}from"./chunks/vendor-54c63849.js";function G(r){let l,t=r[1].frame+"",a;return{c(){l=v("pre"),a=E(t)},l(f){l=d(f,"PRE",{});var s=b(l);a=P(s,t),s.forEach(m)},m(f,s){n(f,l,s),R(l,a)},p(f,s){s&2&&t!==(t=f[1].frame+"")&&j(a,t)},d(f){f&&m(l)}}}function H(r){let l,t=r[1].stack+"",a;return{c(){l=v("pre"),a=E(t)},l(f){l=d(f,"PRE",{});var s=b(l);a=P(s,t),s.forEach(m)},m(f,s){n(f,l,s),R(l,a)},p(f,s){s&2&&t!==(t=f[1].stack+"")&&j(a,t)},d(f){f&&m(l)}}}function z(r){let l,t,a,f,s=r[1].message+"",c,k,u,p,i=r[1].frame&&G(r),o=r[1].stack&&H(r);return{c(){l=v("h1"),t=E(r[0]),a=N(),f=v("pre"),c=E(s),k=N(),i&&i.c(),u=N(),o&&o.c(),p=q()},l(e){l=d(e,"H1",{});var _=b(l);t=P(_,r[0]),_.forEach(m),a=S(e),f=d(e,"PRE",{});var h=b(f);c=P(h,s),h.forEach(m),k=S(e),i&&i.l(e),u=S(e),o&&o.l(e),p=q()},m(e,_){n(e,l,_),R(l,t),n(e,a,_),n(e,f,_),R(f,c),n(e,k,_),i&&i.m(e,_),n(e,u,_),o&&o.m(e,_),n(e,p,_)},p(e,[_]){_&1&&j(t,e[0]),_&2&&s!==(s=e[1].message+"")&&j(c,s),e[1].frame?i?i.p(e,_):(i=G(e),i.c(),i.m(u.parentNode,u)):i&&(i.d(1),i=null),e[1].stack?o?o.p(e,_):(o=H(e),o.c(),o.m(p.parentNode,p)):o&&(o.d(1),o=null)},i:C,o:C,d(e){e&&m(l),e&&m(a),e&&m(f),e&&m(k),i&&i.d(e),e&&m(u),o&&o.d(e),e&&m(p)}}}function D({error:r,status:l}){return{props:{error:r,status:l}}}function A(r,l,t){let{status:a}=l,{error:f}=l;return r.$$set=s=>{"status"in s&&t(0,a=s.status),"error"in s&&t(1,f=s.error)},[a,f]}class F extends W{constructor(l){super();w(this,l,A,z,y,{status:0,error:1})}}export{F as default,D as load};
+31 -31
View File
@@ -1,10 +1,10 @@
{ {
".svelte-kit/runtime/client/start.js": { ".svelte-kit/runtime/client/start.js": {
"file": "start-156d2e77.js", "file": "start-fe492379.js",
"src": ".svelte-kit/runtime/client/start.js", "src": ".svelte-kit/runtime/client/start.js",
"isEntry": true, "isEntry": true,
"imports": [ "imports": [
"_vendor-baa6749d.js", "_vendor-54c63849.js",
"_preload-helper-1db36302.js", "_preload-helper-1db36302.js",
"_singletons-a6a7384f.js", "_singletons-a6a7384f.js",
"_paths-4b3c6e7e.js" "_paths-4b3c6e7e.js"
@@ -18,15 +18,15 @@
] ]
}, },
"src/routes/__layout.svelte": { "src/routes/__layout.svelte": {
"file": "pages/__layout.svelte-03a71de1.js", "file": "pages/__layout.svelte-4140e478.js",
"src": "src/routes/__layout.svelte", "src": "src/routes/__layout.svelte",
"isEntry": true, "isEntry": true,
"isDynamicEntry": true, "isDynamicEntry": true,
"imports": [ "imports": [
"_vendor-baa6749d.js", "_vendor-54c63849.js",
"_paths-4b3c6e7e.js", "_paths-4b3c6e7e.js",
"_state-c94874ac.js", "_state-1030977e.js",
"_theme-0bd5adb3.js", "_theme-af6eb1f9.js",
"_preload-helper-1db36302.js" "_preload-helper-1db36302.js"
], ],
"css": [ "css": [
@@ -34,35 +34,35 @@
] ]
}, },
".svelte-kit/runtime/components/error.svelte": { ".svelte-kit/runtime/components/error.svelte": {
"file": "error.svelte-f22a50f1.js", "file": "error.svelte-42b18922.js",
"src": ".svelte-kit/runtime/components/error.svelte", "src": ".svelte-kit/runtime/components/error.svelte",
"isEntry": true, "isEntry": true,
"isDynamicEntry": true, "isDynamicEntry": true,
"imports": [ "imports": [
"_vendor-baa6749d.js" "_vendor-54c63849.js"
] ]
}, },
"src/routes/index.svelte": { "src/routes/index.svelte": {
"file": "pages/index.svelte-1cb1123e.js", "file": "pages/index.svelte-e6145252.js",
"src": "src/routes/index.svelte", "src": "src/routes/index.svelte",
"isEntry": true, "isEntry": true,
"isDynamicEntry": true, "isDynamicEntry": true,
"imports": [ "imports": [
"_vendor-baa6749d.js", "_vendor-54c63849.js",
"_singletons-a6a7384f.js", "_singletons-a6a7384f.js",
"_paths-4b3c6e7e.js" "_paths-4b3c6e7e.js"
] ]
}, },
"src/routes/edit.svelte": { "src/routes/edit.svelte": {
"file": "pages/edit.svelte-c5ebb9cf.js", "file": "pages/edit.svelte-a9fa1e73.js",
"src": "src/routes/edit.svelte", "src": "src/routes/edit.svelte",
"isEntry": true, "isEntry": true,
"isDynamicEntry": true, "isDynamicEntry": true,
"imports": [ "imports": [
"_vendor-baa6749d.js", "_vendor-54c63849.js",
"_state-c94874ac.js", "_state-1030977e.js",
"_theme-0bd5adb3.js", "_theme-af6eb1f9.js",
"_util-2fe9445b.js", "_util-6c68073b.js",
"_paths-4b3c6e7e.js", "_paths-4b3c6e7e.js",
"_preload-helper-1db36302.js" "_preload-helper-1db36302.js"
], ],
@@ -71,19 +71,19 @@
] ]
}, },
"src/routes/view.svelte": { "src/routes/view.svelte": {
"file": "pages/view.svelte-b907ebb8.js", "file": "pages/view.svelte-f61e1fd0.js",
"src": "src/routes/view.svelte", "src": "src/routes/view.svelte",
"isEntry": true, "isEntry": true,
"isDynamicEntry": true, "isDynamicEntry": true,
"imports": [ "imports": [
"_vendor-baa6749d.js", "_vendor-54c63849.js",
"_util-2fe9445b.js", "_util-6c68073b.js",
"_state-c94874ac.js", "_state-1030977e.js",
"_preload-helper-1db36302.js" "_preload-helper-1db36302.js"
] ]
}, },
"_vendor-baa6749d.js": { "_vendor-54c63849.js": {
"file": "chunks/vendor-baa6749d.js" "file": "chunks/vendor-54c63849.js"
}, },
"_singletons-a6a7384f.js": { "_singletons-a6a7384f.js": {
"file": "chunks/singletons-a6a7384f.js" "file": "chunks/singletons-a6a7384f.js"
@@ -94,10 +94,10 @@
"_preload-helper-1db36302.js": { "_preload-helper-1db36302.js": {
"file": "chunks/preload-helper-1db36302.js" "file": "chunks/preload-helper-1db36302.js"
}, },
"_state-c94874ac.js": { "_state-1030977e.js": {
"file": "chunks/state-c94874ac.js", "file": "chunks/state-1030977e.js",
"imports": [ "imports": [
"_vendor-baa6749d.js", "_vendor-54c63849.js",
"_preload-helper-1db36302.js" "_preload-helper-1db36302.js"
], ],
"dynamicImports": [ "dynamicImports": [
@@ -105,17 +105,17 @@
"node_modules/@analytics/google-analytics/lib/analytics-plugin-ga.browser.es.js" "node_modules/@analytics/google-analytics/lib/analytics-plugin-ga.browser.es.js"
] ]
}, },
"_theme-0bd5adb3.js": { "_theme-af6eb1f9.js": {
"file": "chunks/theme-0bd5adb3.js", "file": "chunks/theme-af6eb1f9.js",
"imports": [ "imports": [
"_vendor-baa6749d.js" "_vendor-54c63849.js"
] ]
}, },
"_util-2fe9445b.js": { "_util-6c68073b.js": {
"file": "chunks/util-2fe9445b.js", "file": "chunks/util-6c68073b.js",
"imports": [ "imports": [
"_vendor-baa6749d.js", "_vendor-54c63849.js",
"_state-c94874ac.js" "_state-1030977e.js"
], ],
"css": [ "css": [
"assets/util-c948b67a.css" "assets/util-c948b67a.css"
+1
View File
@@ -0,0 +1 @@
import{S as I,i as w,s as M,F as V,e as u,k as b,t as $,c as m,a as d,d as f,m as k,h as N,b as p,g as v,G as _,j as T,l as y,H as q,I as A,J as W,q as z,o as B,K as S,v as C}from"../chunks/vendor-54c63849.js";import{b as j}from"../chunks/paths-4b3c6e7e.js";import{l as F,t as G}from"../chunks/state-1030977e.js";import{t as D,s as H}from"../chunks/theme-af6eb1f9.js";import"../chunks/preload-helper-1db36302.js";function E(n){let o,i,l,r,c,s=n[0].message+"",t;return{c(){o=u("div"),i=u("div"),l=u("div"),r=b(),c=u("div"),t=$(s),this.h()},l(e){o=m(e,"DIV",{class:!0});var a=d(o);i=m(a,"DIV",{class:!0});var h=d(i);l=m(h,"DIV",{class:!0}),d(l).forEach(f),r=k(h),c=m(h,"DIV",{});var g=d(c);t=N(g,s),g.forEach(f),h.forEach(f),a.forEach(f),this.h()},h(){p(l,"class","loader mx-auto svelte-1ub1m40"),p(i,"class","text-indigo-100 text-4xl font-bold my-auto"),p(o,"class","w-screen h-screen z-50 absolute left-0 top-0 bg-gray-600 opacity-50 flex align-middle justify-center")},m(e,a){v(e,o,a),_(o,i),_(i,l),_(i,r),_(i,c),_(c,t)},p(e,a){a&1&&s!==(s=e[0].message+"")&&T(t,s)},d(e){e&&f(o)}}}function J(n){let o,i,l,r;const c=n[2].default,s=V(c,n,n[1],null);let t=n[0].loading&&E(n);return{c(){o=u("main"),s&&s.c(),i=b(),t&&t.c(),l=y(),this.h()},l(e){o=m(e,"MAIN",{class:!0});var a=d(o);s&&s.l(a),a.forEach(f),i=k(e),t&&t.l(e),l=y(),this.h()},h(){p(o,"class","h-screen text-primary-content")},m(e,a){v(e,o,a),s&&s.m(o,null),v(e,i,a),t&&t.m(e,a),v(e,l,a),r=!0},p(e,[a]){s&&s.p&&(!r||a&2)&&q(s,c,e,e[1],r?W(c,e[1],a,null):A(e[1]),null),e[0].loading?t?t.p(e,a):(t=E(e),t.c(),t.m(l.parentNode,l)):t&&(t.d(1),t=null)},i(e){r||(z(s,e),r=!0)},o(e){B(s,e),r=!1},d(e){e&&f(o),s&&s.d(e),e&&f(i),t&&t.d(e),e&&f(l)}}}function K(n,o,i){let l,r;S(n,D,t=>i(3,l=t)),S(n,F,t=>i(0,r=t));let{$$slots:c={},$$scope:s}=o;return C(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register(`${j}/service-worker.js`,{scope:`${j}/`}).then(function(e){console.log("Registration successful, scope is:",e.scope)}).catch(function(e){console.log("Service worker registration failed, error:",e)});const t=window.matchMedia("(prefers-color-scheme: dark)").matches;l.theme===void 0&&H(t?"dark":"light"),D.subscribe(({theme:e,isDark:a})=>{e&&(document.getElementsByTagName("html")[0].setAttribute("data-theme",e),G(a))})}),n.$$set=t=>{"$$scope"in t&&i(1,s=t.$$scope)},[r,s,c]}class Q extends I{constructor(o){super();w(this,o,K,J,M,{})}}export{Q as default};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{S as o,i as e,s as a,v as r}from"../chunks/vendor-54c63849.js";import{r as c}from"../chunks/singletons-a6a7384f.js";import{b as i}from"../chunks/paths-4b3c6e7e.js";const u=l;async function l(s,t){return c.goto(s,t,[])}function f(s){return r(async()=>{const t=window.location.hash.split("/");let n="edit";t.length>2&&(n=`${t[1]}#${t[2]}`),await u(`${i}/${n}`,{replaceState:!0})}),[]}class $ extends o{constructor(t){super();e(this,t,f,null,a,{})}}export{$ as default};
+1
View File
@@ -0,0 +1 @@
import{S as r,i as a,s as i,w as c,x as u,y as m,W as p,q as f,o as l,B as _,v as $}from"../chunks/vendor-54c63849.js";import{V as d,i as h}from"../chunks/util-6c68073b.js";import"../chunks/state-1030977e.js";import"../chunks/preload-helper-1db36302.js";function g(s){let t,n;return t=new d({}),{c(){c(t.$$.fragment)},l(e){u(t.$$.fragment,e)},m(e,o){m(t,e,o),n=!0},p,i(e){n||(f(t.$$.fragment,e),n=!0)},o(e){l(t.$$.fragment,e),n=!1},d(e){_(t,e)}}}function w(s){return $(h),[]}class V extends r{constructor(t){super();a(this,t,w,g,i,{})}}export{V as default};
File diff suppressed because one or more lines are too long