designix-uis 0.5.3 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/designix-uis.js +1 -3
- package/dist/public/_app/immutable/chunks/{entry.EqOSi-Pf.js → entry.BnBscX9s.js} +1 -1
- package/dist/public/_app/immutable/chunks/{index.sDAnq9IB.js → index.IHydPqp2.js} +2 -2
- package/dist/public/_app/immutable/chunks/makeList.BsKrjN6b.js +88 -0
- package/dist/public/_app/immutable/chunks/paths.CBfpPc2G.js +1 -0
- package/dist/public/_app/immutable/chunks/{stores.DIH184JS.js → stores.BKlAuQ9I.js} +1 -1
- package/dist/public/_app/immutable/entry/{app.yRlRJ6sx.js → app.LQWaJM6O.js} +2 -2
- package/dist/public/_app/immutable/entry/start.DK5hR2C-.js +1 -0
- package/dist/public/_app/immutable/nodes/{0.Bp0gFt3a.js → 0.BybmEEOs.js} +1 -1
- package/dist/public/_app/immutable/nodes/{1.ByHqhgYV.js → 1.BL84drKm.js} +1 -1
- package/dist/public/_app/immutable/nodes/{2.DIn8QRS-.js → 2.ChgTZ3YE.js} +1 -1
- package/dist/public/_app/immutable/nodes/{3.DP7zL9Bg.js → 3.C9z3viO7.js} +1 -1
- package/dist/public/_app/version.json +1 -1
- package/dist/public/gear/gear_wheel_wheel.html +13 -13
- package/dist/public/gear/simplified_gear_wheel.html +28 -28
- package/dist/public/heliostat/base.html +13 -13
- package/dist/public/heliostat/heliostat.html +13 -13
- package/dist/public/heliostat/heliostat_2.html +13 -13
- package/dist/public/heliostat/pole_rotor.html +13 -13
- package/dist/public/heliostat/pole_static.html +13 -13
- package/dist/public/heliostat/rake.html +13 -13
- package/dist/public/heliostat/rake_stopper.html +13 -13
- package/dist/public/heliostat/rod.html +13 -13
- package/dist/public/heliostat/spider.html +13 -13
- package/dist/public/heliostat/surface.html +13 -13
- package/dist/public/heliostat/swing.html +13 -13
- package/dist/public/heliostat/trapeze.html +13 -13
- package/dist/public/index.html +11 -11
- package/package.json +1 -1
- package/dist/public/_app/immutable/chunks/makeList.DSNiOEjA.js +0 -88
- package/dist/public/_app/immutable/chunks/paths.rg0K1zCL.js +0 -1
- package/dist/public/_app/immutable/entry/start.Ddsjp3el.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./entry.
|
|
1
|
+
import{s as e}from"./entry.BnBscX9s.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{s as q,a as B,p as h,g as U,i as b,f as p,q as j,r as M,e as W,c as z,b as F,m as N,u as d,t as G,d as H,j as J,v as S,w as k,x as K}from"../chunks/scheduler.pWaib8rK.js";import{S as Q,i as X,t as g,c as P,a as w,g as L,b as v,d as D,m as E,e as y}from"../chunks/index.DzDRugVt.js";const Y="modulepreload",Z=function(a,e){return new URL(a,e).href},I={},R=function(e,n,i){let s=Promise.resolve();if(n&&n.length>0){const c=document.getElementsByTagName("link");s=Promise.all(n.map(t=>{if(t=Z(t,i),t in I)return;I[t]=!0;const r=t.endsWith(".css"),l=r?'[rel="stylesheet"]':"";if(!!i)for(let _=c.length-1;_>=0;_--){const m=c[_];if(m.href===t&&(!r||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${l}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":Y,r||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),r)return new Promise((_,m)=>{o.addEventListener("load",_),o.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${t}`)))})}))}return s.then(()=>e()).catch(c=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=c,window.dispatchEvent(t),!t.defaultPrevented)throw c})},re={};function $(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,c(a)),a[12](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&D(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){L();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),P()}s?(e=k(s,c(t)),t[12](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[12](null),e&&y(e,t)}}}function x(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=k(s,c(a)),a[11](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&D(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){L();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),P()}s?(e=k(s,c(t)),t[11](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[11](null),e&&y(e,t)}}}function ee(a){let e,n,i;var s=a[1][1];function c(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,c(a)),a[10](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&D(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){L();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),P()}s?(e=k(s,c(t)),t[10](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[10](null),e&&y(e,t)}}}function O(a){let e,n=a[6]&&T(a);return{c(){e=W("div"),n&&n.c(),this.h()},l(i){e=z(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=F(e);n&&n.l(s),s.forEach(p),this.h()},h(){N(e,"id","svelte-announcer"),N(e,"aria-live","assertive"),N(e,"aria-atomic","true"),d(e,"position","absolute"),d(e,"left","0"),d(e,"top","0"),d(e,"clip","rect(0 0 0 0)"),d(e,"clip-path","inset(50%)"),d(e,"overflow","hidden"),d(e,"white-space","nowrap"),d(e,"width","1px"),d(e,"height","1px")},m(i,s){b(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=T(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&p(e),n&&n.d()}}}function T(a){let e;return{c(){e=G(a[7])},l(n){e=H(n,a[7])},m(n,i){b(n,e,i)},p(n,i){i&128&&J(e,n[7])},d(n){n&&p(e)}}}function te(a){let e,n,i,s,c;const t=[x,$],r=[];function l(o,_){return o[1][1]?0:1}e=l(a),n=r[e]=t[e](a);let u=a[5]&&O(a);return{c(){n.c(),i=B(),u&&u.c(),s=h()},l(o){n.l(o),i=U(o),u&&u.l(o),s=h()},m(o,_){r[e].m(o,_),b(o,i,_),u&&u.m(o,_),b(o,s,_),c=!0},p(o,[_]){let m=e;e=l(o),e===m?r[e].p(o,_):(L(),g(r[m],1,1,()=>{r[m]=null}),P(),n=r[e],n?n.p(o,_):(n=r[e]=t[e](o),n.c()),w(n,1),n.m(i.parentNode,i)),o[5]?u?u.p(o,_):(u=O(o),u.c(),u.m(s.parentNode,s)):u&&(u.d(1),u=null)},i(o){c||(w(n),c=!0)},o(o){g(n),c=!1},d(o){o&&(p(i),p(s)),r[e].d(o),u&&u.d(o)}}}function ne(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:c}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:u=null}=e;j(i.page.notify);let o=!1,_=!1,m=null;M(()=>{const f=i.page.subscribe(()=>{o&&(n(6,_=!0),K().then(()=>{n(7,m=document.title||"untitled page")}))});return n(5,o=!0),f});function V(f){S[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function A(f){S[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function C(f){S[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(8,i=f.stores),"page"in f&&n(9,s=f.page),"constructors"in f&&n(1,c=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,r=f.form),"data_0"in f&&n(3,l=f.data_0),"data_1"in f&&n(4,u=f.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,c,r,l,u,o,_,m,i,s,V,A,C]}class oe extends Q{constructor(e){super(),X(this,e,ne,te,q,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>R(()=>import("../nodes/0.
|
|
1
|
+
import{s as q,a as B,p as h,g as U,i as b,f as p,q as j,r as M,e as W,c as z,b as F,m as N,u as d,t as G,d as H,j as J,v as S,w as k,x as K}from"../chunks/scheduler.pWaib8rK.js";import{S as Q,i as X,t as g,c as P,a as w,g as L,b as v,d as D,m as E,e as y}from"../chunks/index.DzDRugVt.js";const Y="modulepreload",Z=function(a,e){return new URL(a,e).href},I={},R=function(e,n,i){let s=Promise.resolve();if(n&&n.length>0){const c=document.getElementsByTagName("link");s=Promise.all(n.map(t=>{if(t=Z(t,i),t in I)return;I[t]=!0;const r=t.endsWith(".css"),l=r?'[rel="stylesheet"]':"";if(!!i)for(let _=c.length-1;_>=0;_--){const m=c[_];if(m.href===t&&(!r||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${l}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":Y,r||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),r)return new Promise((_,m)=>{o.addEventListener("load",_),o.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${t}`)))})}))}return s.then(()=>e()).catch(c=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=c,window.dispatchEvent(t),!t.defaultPrevented)throw c})},re={};function $(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,c(a)),a[12](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&D(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){L();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),P()}s?(e=k(s,c(t)),t[12](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[12](null),e&&y(e,t)}}}function x(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=k(s,c(a)),a[11](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&D(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){L();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),P()}s?(e=k(s,c(t)),t[11](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[11](null),e&&y(e,t)}}}function ee(a){let e,n,i;var s=a[1][1];function c(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,c(a)),a[10](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&D(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){L();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),P()}s?(e=k(s,c(t)),t[10](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[10](null),e&&y(e,t)}}}function O(a){let e,n=a[6]&&T(a);return{c(){e=W("div"),n&&n.c(),this.h()},l(i){e=z(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=F(e);n&&n.l(s),s.forEach(p),this.h()},h(){N(e,"id","svelte-announcer"),N(e,"aria-live","assertive"),N(e,"aria-atomic","true"),d(e,"position","absolute"),d(e,"left","0"),d(e,"top","0"),d(e,"clip","rect(0 0 0 0)"),d(e,"clip-path","inset(50%)"),d(e,"overflow","hidden"),d(e,"white-space","nowrap"),d(e,"width","1px"),d(e,"height","1px")},m(i,s){b(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=T(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&p(e),n&&n.d()}}}function T(a){let e;return{c(){e=G(a[7])},l(n){e=H(n,a[7])},m(n,i){b(n,e,i)},p(n,i){i&128&&J(e,n[7])},d(n){n&&p(e)}}}function te(a){let e,n,i,s,c;const t=[x,$],r=[];function l(o,_){return o[1][1]?0:1}e=l(a),n=r[e]=t[e](a);let u=a[5]&&O(a);return{c(){n.c(),i=B(),u&&u.c(),s=h()},l(o){n.l(o),i=U(o),u&&u.l(o),s=h()},m(o,_){r[e].m(o,_),b(o,i,_),u&&u.m(o,_),b(o,s,_),c=!0},p(o,[_]){let m=e;e=l(o),e===m?r[e].p(o,_):(L(),g(r[m],1,1,()=>{r[m]=null}),P(),n=r[e],n?n.p(o,_):(n=r[e]=t[e](o),n.c()),w(n,1),n.m(i.parentNode,i)),o[5]?u?u.p(o,_):(u=O(o),u.c(),u.m(s.parentNode,s)):u&&(u.d(1),u=null)},i(o){c||(w(n),c=!0)},o(o){g(n),c=!1},d(o){o&&(p(i),p(s)),r[e].d(o),u&&u.d(o)}}}function ne(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:c}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:u=null}=e;j(i.page.notify);let o=!1,_=!1,m=null;M(()=>{const f=i.page.subscribe(()=>{o&&(n(6,_=!0),K().then(()=>{n(7,m=document.title||"untitled page")}))});return n(5,o=!0),f});function V(f){S[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function A(f){S[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function C(f){S[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(8,i=f.stores),"page"in f&&n(9,s=f.page),"constructors"in f&&n(1,c=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,r=f.form),"data_0"in f&&n(3,l=f.data_0),"data_1"in f&&n(4,u=f.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,c,r,l,u,o,_,m,i,s,V,A,C]}class oe extends Q{constructor(e){super(),X(this,e,ne,te,q,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>R(()=>import("../nodes/0.BybmEEOs.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),()=>R(()=>import("../nodes/1.BL84drKm.js"),__vite__mapDeps([6,1,2,7,8,4]),import.meta.url),()=>R(()=>import("../nodes/2.ChgTZ3YE.js"),__vite__mapDeps([9,1,3,2,10,4,11]),import.meta.url),()=>R(()=>import("../nodes/3.C9z3viO7.js"),__vite__mapDeps([12,10,3,8,1,4,2,7,13]),import.meta.url)],le=[],fe={"/":[2],"/[...design]":[3]},ce={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads};
|
|
2
2
|
function __vite__mapDeps(indexes) {
|
|
3
3
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
4
|
-
__vite__mapDeps.viteFileDeps = ["../nodes/0.
|
|
4
|
+
__vite__mapDeps.viteFileDeps = ["../nodes/0.BybmEEOs.js","../chunks/scheduler.pWaib8rK.js","../chunks/index.DzDRugVt.js","../chunks/index.IHydPqp2.js","../chunks/paths.CBfpPc2G.js","../assets/0.CEJMiobA.css","../nodes/1.BL84drKm.js","../chunks/stores.BKlAuQ9I.js","../chunks/entry.BnBscX9s.js","../nodes/2.ChgTZ3YE.js","../chunks/makeList.BsKrjN6b.js","../assets/2.CTp7BhB8.css","../nodes/3.C9z3viO7.js","../assets/3.wWOitVXS.css"]
|
|
5
5
|
}
|
|
6
6
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"../chunks/entry.BnBscX9s.js";export{t as start};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as W,y as G,e as v,a as T,c as h,l as L,g as $,b as O,f as a,m as E,i as u,h as H,z as J,A as K,B as Q,o as U,t as X,d as Y,n as Z}from"../chunks/scheduler.pWaib8rK.js";import{S as ee,i as te,a as se,t as le}from"../chunks/index.DzDRugVt.js";import{e as q,v as ie}from"../chunks/index.
|
|
1
|
+
import{s as W,y as G,e as v,a as T,c as h,l as L,g as $,b as O,f as a,m as E,i as u,h as H,z as J,A as K,B as Q,o as U,t as X,d as Y,n as Z}from"../chunks/scheduler.pWaib8rK.js";import{S as ee,i as te,a as se,t as le}from"../chunks/index.DzDRugVt.js";import{e as q,v as ie}from"../chunks/index.IHydPqp2.js";import{b as ne}from"../chunks/paths.CBfpPc2G.js";const ae=!0,we=Object.freeze(Object.defineProperty({__proto__:null,prerender:ae},Symbol.toStringTag,{value:"Module"})),re="designix-ui",oe="0.5.5",ce={type:"git",url:"git+https://github.com/charlyoleg2/parametrix.git"},pe="https://charlyoleg2.github.io/parametrix/",ue={cp_pgdsvg:"shx cp -r ../../node_modules/designix/dist/pgdsvg static/",dev:"vite dev",build:"vite build",preview:"vite preview",check:"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json","check:watch":"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch","test:unit":"vitest","test:unit:once":"vitest --run",lint:"prettier --check . && eslint .",ci:"run-s cp_pgdsvg build lint check test:unit:once",format:"prettier --write .",clean:"shx rm -fr .svelte-kit build node_modules static/pgdsvg"},ve={designix:"^0.5.21",geometrix:"^0.5.20",geomui:"^0.5.22"},he={"@sveltejs/adapter-auto":"^3.1.1","@sveltejs/adapter-static":"^3.0.1","@sveltejs/kit":"^2.5.1","@sveltejs/vite-plugin-svelte":"^3.0.2","@typescript-eslint/eslint-plugin":"^7.0.1","@typescript-eslint/parser":"^7.0.1",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-plugin-svelte":"^2.35.1","npm-run-all":"^4.1.5",prettier:"^3.2.5","prettier-plugin-svelte":"^3.2.1",sass:"^1.71.1",shx:"^0.3.4",svelte:"^4.2.11","svelte-check":"^3.6.4",tslib:"^2.6.2",typescript:"^5.3.3",vite:"^5.1.4",vitest:"^1.3.1"},fe="module",de={name:re,version:oe,private:!0,repository:ce,homepage:pe,scripts:ue,dependencies:ve,devDependencies:he,type:fe};function F(c,l,p){const r=c.slice();return r[3]=l[p],r}function V(c){let l=c[3]+"",p,r;return{c(){p=X(l),r=v("br")},l(s){p=Y(s,l),r=h(s,"BR",{})},m(s,m){u(s,p,m),u(s,r,m)},p:Z,d(s){s&&(a(p),a(r))}}}function me(c){let l,p="Welcome to designix-ui",r,s,m=`Showcasing the usage of the <a href="https://svelte.dev/">svelte</a> library
|
|
2
2
|
<a href="https://www.npmjs.com/">geomui</a>.`,_,d,I=`<a href="${`${ne}/`}" class="svelte-1v6hyjg">index: list of designs</a>`,M,g,A,f,b,B=`<a href="https://github.com/charlyoleg2/parametrix">designix-ui</a>, a minimalist showcase
|
|
3
3
|
of
|
|
4
4
|
<a href="https://www.npmjs.com/">geomui</a>.`,S,y,w,N="Designix-ui version",z,j,k;const D=c[2].default,o=G(D,c,c[1],null);let C=q(c[0]),i=[];for(let e=0;e<C.length;e+=1)i[e]=V(F(c,C,e));return{c(){l=v("h1"),l.textContent=p,r=T(),s=v("h6"),s.innerHTML=m,_=T(),d=v("nav"),d.innerHTML=I,M=T(),g=v("main"),o&&o.c(),A=T(),f=v("footer"),b=v("article"),b.innerHTML=B,S=T(),y=v("article"),w=v("h3"),w.textContent=N,z=T(),j=v("code");for(let e=0;e<i.length;e+=1)i[e].c();this.h()},l(e){l=h(e,"H1",{class:!0,"data-svelte-h":!0}),L(l)!=="svelte-1ow6r3d"&&(l.textContent=p),r=$(e),s=h(e,"H6",{class:!0,"data-svelte-h":!0}),L(s)!=="svelte-7mn22s"&&(s.innerHTML=m),_=$(e),d=h(e,"NAV",{class:!0,"data-svelte-h":!0}),L(d)!=="svelte-ww4mf0"&&(d.innerHTML=I),M=$(e),g=h(e,"MAIN",{class:!0});var n=O(g);o&&o.l(n),n.forEach(a),A=$(e),f=h(e,"FOOTER",{class:!0});var t=O(f);b=h(t,"ARTICLE",{"data-svelte-h":!0}),L(b)!=="svelte-1pwhz7h"&&(b.innerHTML=B),S=$(t),y=h(t,"ARTICLE",{});var x=O(y);w=h(x,"H3",{"data-svelte-h":!0}),L(w)!=="svelte-18yz28i"&&(w.textContent=N),z=$(x),j=h(x,"CODE",{});var P=O(j);for(let R=0;R<i.length;R+=1)i[R].l(P);P.forEach(a),x.forEach(a),t.forEach(a),this.h()},h(){E(l,"class","svelte-1v6hyjg"),E(s,"class","svelte-1v6hyjg"),E(d,"class","svelte-1v6hyjg"),E(g,"class","svelte-1v6hyjg"),E(f,"class","svelte-1v6hyjg")},m(e,n){u(e,l,n),u(e,r,n),u(e,s,n),u(e,_,n),u(e,d,n),u(e,M,n),u(e,g,n),o&&o.m(g,null),u(e,A,n),u(e,f,n),H(f,b),H(f,S),H(f,y),H(y,w),H(y,z),H(y,j);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(j,null);k=!0},p(e,[n]){if(o&&o.p&&(!k||n&2)&&J(o,D,e,e[1],k?Q(D,e[1],n,null):K(e[1]),null),n&1){C=q(e[0]);let t;for(t=0;t<C.length;t+=1){const x=F(e,C,t);i[t]?i[t].p(x,n):(i[t]=V(x),i[t].c(),i[t].m(j,null))}for(;t<i.length;t+=1)i[t].d(1);i.length=C.length}},i(e){k||(se(o,e),k=!0)},o(e){le(o,e),k=!1},d(e){e&&(a(l),a(r),a(s),a(_),a(d),a(M),a(g),a(A),a(f)),o&&o.d(e),U(i,e)}}}function _e(c,l,p){let{$$slots:r={},$$scope:s}=l;const m=ie(de);return c.$$set=_=>{"$$scope"in _&&p(1,s=_.$$scope)},[m,s,r]}class je extends ee{constructor(l){super(),te(this,l,_e,me,W,{})}}export{je as component,we as universal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as x,e as u,t as h,a as S,c as d,b as v,d as g,f as m,g as j,i as _,h as b,j as E,n as $,k}from"../chunks/scheduler.pWaib8rK.js";import{S as q,i as y}from"../chunks/index.DzDRugVt.js";import{p as C}from"../chunks/stores.
|
|
1
|
+
import{s as x,e as u,t as h,a as S,c as d,b as v,d as g,f as m,g as j,i as _,h as b,j as E,n as $,k}from"../chunks/scheduler.pWaib8rK.js";import{S as q,i as y}from"../chunks/index.DzDRugVt.js";import{p as C}from"../chunks/stores.BKlAuQ9I.js";function H(i){var f;let a,s=i[0].status+"",r,o,n,p=((f=i[0].error)==null?void 0:f.message)+"",c;return{c(){a=u("h1"),r=h(s),o=S(),n=u("p"),c=h(p)},l(e){a=d(e,"H1",{});var t=v(a);r=g(t,s),t.forEach(m),o=j(e),n=d(e,"P",{});var l=v(n);c=g(l,p),l.forEach(m)},m(e,t){_(e,a,t),b(a,r),_(e,o,t),_(e,n,t),b(n,c)},p(e,[t]){var l;t&1&&s!==(s=e[0].status+"")&&E(r,s),t&1&&p!==(p=((l=e[0].error)==null?void 0:l.message)+"")&&E(c,p)},i:$,o:$,d(e){e&&(m(a),m(o),m(n))}}}function P(i,a,s){let r;return k(i,C,o=>s(0,r=o)),[r]}class B extends q{constructor(a){super(),y(this,a,P,H,x,{})}}export{B as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as g,e as _,a as x,c as d,l as b,g as y,b as p,f as c,m as v,i as f,n as m,o as C,t as L,d as k,h as u}from"../chunks/scheduler.pWaib8rK.js";import{e as E}from"../chunks/index.
|
|
1
|
+
import{s as g,e as _,a as x,c as d,l as b,g as y,b as p,f as c,m as v,i as f,n as m,o as C,t as L,d as k,h as u}from"../chunks/scheduler.pWaib8rK.js";import{e as E}from"../chunks/index.IHydPqp2.js";import{S,i as $}from"../chunks/index.DzDRugVt.js";import{d as q}from"../chunks/makeList.BsKrjN6b.js";import{b as A}from"../chunks/paths.CBfpPc2G.js";function H(r,e,l){const o=r.slice();return o[0]=e[l],o}function I(r){let e,l,o;return{c(){e=_("li"),l=_("a"),o=L(r[0]),this.h()},l(a){e=d(a,"LI",{});var n=p(e);l=d(n,"A",{href:!0});var s=p(l);o=k(s,r[0]),s.forEach(c),n.forEach(c),this.h()},h(){v(l,"href",`${A}/${r[0]}`)},m(a,n){f(a,e,n),u(e,l),u(l,o)},p:m,d(a){a&&c(e)}}}function N(r){let e,l="List of designs:",o,a,n=E(q),s=[];for(let t=0;t<n.length;t+=1)s[t]=I(H(r,n,t));return{c(){e=_("h2"),e.textContent=l,o=x(),a=_("ol");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=d(t,"H2",{class:!0,"data-svelte-h":!0}),b(e)!=="svelte-96cxme"&&(e.textContent=l),o=y(t),a=d(t,"OL",{});var h=p(a);for(let i=0;i<s.length;i+=1)s[i].l(h);h.forEach(c),this.h()},h(){v(e,"class","svelte-1r3d1r")},m(t,h){f(t,e,h),f(t,o,h),f(t,a,h);for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(a,null)},p:m,i:m,o:m,d(t){t&&(c(e),c(o),c(a)),C(s,t)}}}class B extends S{constructor(e){super(),$(this,e,null,N,g,{})}}export{B as component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Ct,b as pl}from"../chunks/makeList.DSNiOEjA.js";import{H as gl,w as ll,g as vl}from"../chunks/entry.EqOSi-Pf.js";import{Q as bl,s as Ue,p as $e,i as te,n as Ae,f as b,e as g,c as v,b as S,R as rt,m as u,h as r,S as X,v as De,a as I,g as P,T as Pe,o as Ke,y as kl,t as J,l as ue,d as Q,U as Re,z as Nl,A as Tl,B as wl,j as de,C as He,V as _e,k as xe,r as vt,W as nl,X as it,Y as _t,Z as Ol,H as ut,_ as et,$ as Cl,a0 as El}from"../chunks/scheduler.pWaib8rK.js";import{S as ye,i as Me,f as je,b as Ne,d as Te,m as we,a as ge,t as ve,e as Oe,g as Ll,c as Dl}from"../chunks/index.DzDRugVt.js";import{e as Ce,u as Sl,x as sl,y as Il,z as al,P as Et,A as Pl,B as ht,C as tt,D as jl,F as Ul,G as pt,H as yl,I as Lt,f as ot,r as gt,J as Ge,K as Ml,L as Fl,M as Al,N as zl,O as Bl}from"../chunks/index.sDAnq9IB.js";import{b as ft}from"../chunks/paths.rg0K1zCL.js";import{p as ql}from"../chunks/stores.DIH184JS.js";function Rl(t,e){throw new gl(t,e)}new TextEncoder;function Hl({params:t}){const e=t.design;if(Object.keys(Ct).includes(e))return{pageDef:Ct[e],allLink:pl};Rl(404,"Design undefined!")}const fs=Object.freeze(Object.defineProperty({__proto__:null,load:Hl},Symbol.toStringTag,{value:"Module"})),Ve=ll({});function ol(t,e,l){const n=bl(Ve);if(Object.keys(n).includes(t)){const s=n[t],a=Object.keys(s);for(const c of Object.keys(e))a.includes(c)?l&&(s[c]=e[c]):s[c]=e[c];n[t]=s}else n[t]=e;Ve.set(n)}function Vl(t){const e=t.pDef.partName,l={};for(const n of t.pDef.params)l[n.name]=n.init;ol(e,l,!1)}function Dt(t){let e,l,n,o,s,a,c;return{c(){e=g("aside"),l=g("div"),n=g("button"),o=g("img"),this.h()},l(f){e=v(f,"ASIDE",{class:!0});var i=S(e);l=v(i,"DIV",{class:!0});var d=S(l);n=v(d,"BUTTON",{class:!0});var p=S(n);o=v(p,"IMG",{src:!0,alt:!0}),p.forEach(b),d.forEach(b),i.forEach(b),this.h()},h(){rt(o.src,s=t[1])||u(o,"src",s),u(o,"alt",t[1]),u(n,"class","svelte-sjxf1e"),u(l,"class","dialog svelte-sjxf1e"),u(e,"class","backdrop svelte-sjxf1e")},m(f,i){te(f,e,i),r(e,l),r(l,n),r(n,o),a||(c=X(n,"click",t[2]),a=!0)},p(f,i){i&2&&!rt(o.src,s=f[1])&&u(o,"src",s),i&2&&u(o,"alt",f[1])},d(f){f&&b(e),a=!1,c()}}}function Kl(t){let e,l=t[0]&&Dt(t);return{c(){l&&l.c(),e=$e()},l(n){l&&l.l(n),e=$e()},m(n,o){l&&l.m(n,o),te(n,e,o)},p(n,[o]){n[0]?l?l.p(n,o):(l=Dt(n),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:Ae,o:Ae,d(n){n&&b(e),l&&l.d(n)}}}function Xl(t,e,l){let{svgPath:n}=e,{modalOpen:o}=e;function s(){l(0,o=!1)}return t.$$set=a=>{"svgPath"in a&&l(1,n=a.svgPath),"modalOpen"in a&&l(0,o=a.modalOpen)},[o,n,s]}class rl extends ye{constructor(e){super(),Me(this,e,Xl,Kl,Ue,{svgPath:1,modalOpen:0})}}function St(t,e,l){const n=t.slice();return n[8]=e[l],n}function It(t){let e,l,n,o,s,a,c;function f(){return t[6](t[8])}return{c(){e=g("button"),l=g("img"),s=I(),this.h()},l(i){e=v(i,"BUTTON",{class:!0});var d=S(e);l=v(d,"IMG",{src:!0,alt:!0,class:!0}),s=P(d),d.forEach(b),this.h()},h(){rt(l.src,n=t[8])||u(l,"src",n),u(l,"alt",o=t[8]),u(l,"class","svelte-fxmnfh"),u(e,"class","svelte-fxmnfh")},m(i,d){te(i,e,d),r(e,l),r(e,s),a||(c=X(e,"click",f),a=!0)},p(i,d){t=i,d&1&&!rt(l.src,n=t[8])&&u(l,"src",n),d&1&&o!==(o=t[8])&&u(l,"alt",o)},d(i){i&&b(e),a=!1,c()}}}function Yl(t){let e,l,n,o,s;function a(d){t[5](d)}let c={svgPath:t[2]};t[1]!==void 0&&(c.modalOpen=t[1]),l=new rl({props:c}),De.push(()=>je(l,"modalOpen",a));let f=Ce(t[0]),i=[];for(let d=0;d<f.length;d+=1)i[d]=It(St(t,f,d));return{c(){e=g("section"),Ne(l.$$.fragment),o=I();for(let d=0;d<i.length;d+=1)i[d].c();this.h()},l(d){e=v(d,"SECTION",{class:!0});var p=S(e);Te(l.$$.fragment,p),o=P(p);for(let N=0;N<i.length;N+=1)i[N].l(p);p.forEach(b),this.h()},h(){u(e,"class","svelte-fxmnfh")},m(d,p){te(d,e,p),we(l,e,null),r(e,o);for(let N=0;N<i.length;N+=1)i[N]&&i[N].m(e,null);s=!0},p(d,[p]){const N={};if(p&4&&(N.svgPath=d[2]),!n&&p&2&&(n=!0,N.modalOpen=d[1],Pe(()=>n=!1)),l.$set(N),p&9){f=Ce(d[0]);let m;for(m=0;m<f.length;m+=1){const h=St(d,f,m);i[m]?i[m].p(h,p):(i[m]=It(h),i[m].c(),i[m].m(e,null))}for(;m<i.length;m+=1)i[m].d(1);i.length=f.length}},i(d){s||(ge(l.$$.fragment,d),s=!0)},o(d){ve(l.$$.fragment,d),s=!1},d(d){d&&b(e),Oe(l),Ke(i,d)}}}function Wl(t){const e=[];for(const l of Object.values(t.paramSvg))e.includes(l)||e.push(l);return e}function Gl(t,e,l){let{pDef:n}=e;function o(p){const N=Wl(n),m=[];for(const h of N)m.push(`${ft}/pgdsvg/${h}`);return m}let s=[],a=!1,c;function f(p){l(2,c=p),l(1,a=!0)}function i(p){a=p,l(1,a)}const d=p=>f(p);return t.$$set=p=>{"pDef"in p&&l(4,n=p.pDef)},t.$$.update=()=>{t.$$.dirty&16&&l(0,s=o(n.partName))},[s,a,c,f,n,i,d]}class Zl extends ye{constructor(e){super(),Me(this,e,Gl,Yl,Ue,{pDef:4})}}function Pt(t){let e,l,n,o,s,a,c="Cancel",f,i,d,p,N,m;const h=t[7].default,_=kl(h,t,t[6],null);return{c(){e=g("aside"),l=g("div"),n=g("article"),_&&_.c(),o=I(),s=g("footer"),a=g("button"),a.textContent=c,f=I(),i=g("button"),d=J(t[1]),this.h()},l(C){e=v(C,"ASIDE",{class:!0});var k=S(e);l=v(k,"DIV",{class:!0});var w=S(l);n=v(w,"ARTICLE",{class:!0});var D=S(n);_&&_.l(D),D.forEach(b),o=P(w),s=v(w,"FOOTER",{class:!0});var T=S(s);a=v(T,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(a)!=="svelte-hcvk9s"&&(a.textContent=c),f=P(T),i=v(T,"BUTTON",{class:!0});var y=S(i);d=Q(y,t[1]),y.forEach(b),T.forEach(b),w.forEach(b),k.forEach(b),this.h()},h(){u(n,"class","question svelte-weruk7"),u(a,"class","cancel svelte-weruk7"),u(i,"class","ok svelte-weruk7"),u(s,"class","svelte-weruk7"),u(l,"class","dialog svelte-weruk7"),Re(l,"sizeLarge",t[2]),u(e,"class","backdrop svelte-weruk7")},m(C,k){te(C,e,k),r(e,l),r(l,n),_&&_.m(n,null),r(l,o),r(l,s),r(s,a),r(s,f),r(s,i),r(i,d),p=!0,N||(m=[X(a,"click",t[3]),X(i,"click",t[4])],N=!0)},p(C,k){_&&_.p&&(!p||k&64)&&Nl(_,h,C,C[6],p?wl(h,C[6],k,null):Tl(C[6]),null),(!p||k&2)&&de(d,C[1]),(!p||k&4)&&Re(l,"sizeLarge",C[2])},i(C){p||(ge(_,C),p=!0)},o(C){ve(_,C),p=!1},d(C){C&&b(e),_&&_.d(C),N=!1,He(m)}}}function Jl(t){let e,l,n=t[0]&&Pt(t);return{c(){n&&n.c(),e=$e()},l(o){n&&n.l(o),e=$e()},m(o,s){n&&n.m(o,s),te(o,e,s),l=!0},p(o,[s]){o[0]?n?(n.p(o,s),s&1&&ge(n,1)):(n=Pt(o),n.c(),ge(n,1),n.m(e.parentNode,e)):n&&(Ll(),ve(n,1,1,()=>{n=null}),Dl())},i(o){l||(ge(n),l=!0)},o(o){ve(n),l=!1},d(o){o&&b(e),n&&n.d(o)}}}function Ql(t,e,l){let{$$slots:n={},$$scope:o}=e,{okName:s="Ok"}=e,{okFunc:a}=e,{modalOpen:c}=e,{sizeLarge:f=!1}=e;function i(){l(0,c=!1)}function d(){a(),l(0,c=!1)}return t.$$set=p=>{"okName"in p&&l(1,s=p.okName),"okFunc"in p&&l(5,a=p.okFunc),"modalOpen"in p&&l(0,c=p.modalOpen),"sizeLarge"in p&&l(2,f=p.sizeLarge),"$$scope"in p&&l(6,o=p.$$scope)},[c,s,f,i,d,a,o,n]}class ct extends ye{constructor(e){super(),Me(this,e,Ql,Jl,Ue,{okName:1,okFunc:5,modalOpen:0,sizeLarge:2})}}function jt(t,e,l){const n=t.slice();return n[17]=e[l],n[18]=e,n[19]=l,n}function Ut(t,e,l){const n=t.slice();return n[17]=e[l],n}function yt(t){let e,l=t[17]+"",n;return{c(){e=g("p"),n=J(l),this.h()},l(o){e=v(o,"P",{class:!0});var s=S(e);n=Q(s,l),s.forEach(b),this.h()},h(){u(e,"class","diagItem svelte-12dj9tj")},m(o,s){te(o,e,s),r(e,n)},p(o,s){s&1&&l!==(l=o[17]+"")&&de(n,l)},d(o){o&&b(e)}}}function Mt(t){let e,l=t[3][t[17]]&&yt(t);return{c(){l&&l.c(),e=$e()},l(n){l&&l.l(n),e=$e()},m(n,o){l&&l.m(n,o),te(n,e,o)},p(n,o){n[3][n[17]]?l?l.p(n,o):(l=yt(n),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},d(n){n&&b(e),l&&l.d(n)}}}function $l(t){let e,l="Do you really want to delete the following localStorage keys?",n,o,s=Ce(t[0]),a=[];for(let c=0;c<s.length;c+=1)a[c]=Mt(Ut(t,s,c));return{c(){e=g("p"),e.textContent=l,n=I();for(let c=0;c<a.length;c+=1)a[c].c();o=$e(),this.h()},l(c){e=v(c,"P",{class:!0,"data-svelte-h":!0}),ue(e)!=="svelte-12r0p0q"&&(e.textContent=l),n=P(c);for(let f=0;f<a.length;f+=1)a[f].l(c);o=$e(),this.h()},h(){u(e,"class","diagTitle svelte-12dj9tj")},m(c,f){te(c,e,f),te(c,n,f);for(let i=0;i<a.length;i+=1)a[i]&&a[i].m(c,f);te(c,o,f)},p(c,f){if(f&9){s=Ce(c[0]);let i;for(i=0;i<s.length;i+=1){const d=Ut(c,s,i);a[i]?a[i].p(d,f):(a[i]=Mt(d),a[i].c(),a[i].m(o.parentNode,o))}for(;i<a.length;i+=1)a[i].d(1);a.length=s.length}},d(c){c&&(b(e),b(n),b(o)),Ke(a,c)}}}function Ft(t){let e,l,n,o,s,a,c=t[17]+"",f,i,d,p=t[2][t[17]]+"",N,m,h,_;function C(){t[12].call(n,t[17])}function k(){return t[13](t[17])}return{c(){e=g("tr"),l=g("td"),n=g("input"),o=I(),s=g("td"),a=g("button"),f=J(c),i=I(),d=g("td"),N=J(p),m=I(),this.h()},l(w){e=v(w,"TR",{class:!0});var D=S(e);l=v(D,"TD",{});var T=S(l);n=v(T,"INPUT",{type:!0}),T.forEach(b),o=P(D),s=v(D,"TD",{class:!0});var y=S(s);a=v(y,"BUTTON",{class:!0});var O=S(a);f=Q(O,c),O.forEach(b),y.forEach(b),i=P(D),d=v(D,"TD",{});var A=S(d);N=Q(A,p),A.forEach(b),m=P(D),D.forEach(b),this.h()},h(){u(n,"type","checkbox"),u(a,"class","svelte-12dj9tj"),u(s,"class","svelte-12dj9tj"),u(e,"class","svelte-12dj9tj")},m(w,D){te(w,e,D),r(e,l),r(l,n),n.checked=t[3][t[17]],r(e,o),r(e,s),r(s,a),r(a,f),r(e,i),r(e,d),r(d,N),r(e,m),h||(_=[X(n,"change",C),X(a,"click",k)],h=!0)},p(w,D){t=w,D&9&&(n.checked=t[3][t[17]]),D&1&&c!==(c=t[17]+"")&&de(f,c),D&5&&p!==(p=t[2][t[17]]+"")&&de(N,p)},d(w){w&&b(e),h=!1,He(_)}}}function xl(t){let e,l,n="Delete",o,s,a,c,f,i,d,p="<td>Delete</td> <td>Key name</td> <td>Last modification</td>",N,m,h,_,C,k,w="delete all",D,T,y,O,A,E,L;function M(F){t[10](F)}let q={okName:"Confirm",okFunc:t[6],$$slots:{default:[$l]},$$scope:{ctx:t}};t[4]!==void 0&&(q.modalOpen=t[4]),s=new ct({props:q}),De.push(()=>je(s,"modalOpen",M));let H=Ce(t[0]),R=[];for(let F=0;F<H.length;F+=1)R[F]=Ft(jt(t,H,F));return{c(){e=g("div"),l=g("button"),l.textContent=n,o=I(),Ne(s.$$.fragment),c=I(),f=g("table"),i=g("thead"),d=g("tr"),d.innerHTML=p,N=I(),m=g("tr"),h=g("td"),_=g("input"),C=I(),k=g("td"),k.textContent=w,D=I(),T=g("td"),y=I(),O=g("tbody");for(let F=0;F<R.length;F+=1)R[F].c();this.h()},l(F){e=v(F,"DIV",{class:!0});var K=S(e);l=v(K,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(l)!=="svelte-1tbm4xl"&&(l.textContent=n),o=P(K),Te(s.$$.fragment,K),c=P(K),f=v(K,"TABLE",{class:!0});var ne=S(f);i=v(ne,"THEAD",{class:!0});var se=S(i);d=v(se,"TR",{"data-svelte-h":!0}),ue(d)!=="svelte-xt53kn"&&(d.innerHTML=p),N=P(se),m=v(se,"TR",{});var $=S(m);h=v($,"TD",{});var le=S(h);_=v(le,"INPUT",{type:!0}),le.forEach(b),C=P($),k=v($,"TD",{class:!0,"data-svelte-h":!0}),ue(k)!=="svelte-1s4wssd"&&(k.textContent=w),D=P($),T=v($,"TD",{}),S(T).forEach(b),$.forEach(b),se.forEach(b),y=P(ne),O=v(ne,"TBODY",{class:!0});var W=S(O);for(let he=0;he<R.length;he+=1)R[he].l(W);W.forEach(b),ne.forEach(b),K.forEach(b),this.h()},h(){u(l,"class","svelte-12dj9tj"),u(_,"type","checkbox"),u(k,"class","instruction"),u(i,"class","svelte-12dj9tj"),u(O,"class","svelte-12dj9tj"),u(f,"class","svelte-12dj9tj"),u(e,"class","deleteKeys svelte-12dj9tj")},m(F,K){te(F,e,K),r(e,l),r(e,o),we(s,e,null),r(e,c),r(e,f),r(f,i),r(i,d),r(i,N),r(i,m),r(m,h),r(h,_),_.checked=t[1],r(m,C),r(m,k),r(m,D),r(m,T),r(f,y),r(f,O);for(let ne=0;ne<R.length;ne+=1)R[ne]&&R[ne].m(O,null);A=!0,E||(L=[X(l,"click",t[9]),X(_,"change",t[11])],E=!0)},p(F,[K]){const ne={};if(K&4194313&&(ne.$$scope={dirty:K,ctx:F}),!a&&K&16&&(a=!0,ne.modalOpen=F[4],Pe(()=>a=!1)),s.$set(ne),K&2&&(_.checked=F[1]),K&45){H=Ce(F[0]);let se;for(se=0;se<H.length;se+=1){const $=jt(F,H,se);R[se]?R[se].p($,K):(R[se]=Ft($),R[se].c(),R[se].m(O,null))}for(;se<R.length;se+=1)R[se].d(1);R.length=H.length}},i(F){A||(ge(s.$$.fragment,F),A=!0)},o(F){ve(s.$$.fragment,F),A=!1},d(F){F&&b(e),Oe(s),Ke(R,F),E=!1,He(L)}}}function en(t){let e={};for(const l of t)e[l]=!1;return e}function tn(t,e,l){let{pageName:n}=e,{storeName:o}=e,{localKeys:s}=e;function a(){let T=[];const y=new RegExp(`^${n}_`);return T=Object.keys(window.localStorage).filter(A=>y.test(A)).map(A=>A.replace(y,"")),T}s=a();function c(T){l(7,o=T)}let f={};function i(T){let y={};for(const O of T){let A="";const E=`${n}_${O}`,L=window.localStorage.getItem(E);L!==null&&(A=JSON.parse(L).lastModif),y[O]=A}return y}f=i(s);let d={};d=en(s);let p=!1;function N(T){for(const y of s)l(3,d[y]=T,d)}function m(){for(const T of s)if(d[T]){const y=`${n}_${T}`;window.localStorage.removeItem(y)}l(0,s=a())}let h=!1;const _=()=>{l(4,h=!0)};function C(T){h=T,l(4,h)}function k(){p=this.checked,l(1,p)}function w(T){d[T]=this.checked,l(3,d)}const D=T=>c(T);return t.$$set=T=>{"pageName"in T&&l(8,n=T.pageName),"storeName"in T&&l(7,o=T.storeName),"localKeys"in T&&l(0,s=T.localKeys)},t.$$.update=()=>{t.$$.dirty&2&&N(p)},[s,p,f,d,h,c,m,o,n,_,C,k,w,D]}class il extends ye{constructor(e){super(),Me(this,e,tn,xl,Ue,{pageName:8,storeName:7,localKeys:0})}}function At(t){let e,l,n,o;return{c(){e=g("p"),l=J("Warning: name "),n=J(t[0]),o=J(" already used"),this.h()},l(s){e=v(s,"P",{class:!0});var a=S(e);l=Q(a,"Warning: name "),n=Q(a,t[0]),o=Q(a," already used"),a.forEach(b),this.h()},h(){u(e,"class","warnMsg svelte-1rkdwo")},m(s,a){te(s,e,a),r(e,l),r(e,n),r(e,o)},p(s,a){a&1&&de(n,s[0])},d(s){s&&b(e)}}}function ln(t){let e,l,n,o,s,a,c="Give a name to your parameter-set:",f,i,d,p,N,m;function h(w){t[5](w)}function _(w){t[6](w)}let C={pageName:t[1]};t[0]!==void 0&&(C.storeName=t[0]),t[2]!==void 0&&(C.localKeys=t[2]),e=new il({props:C}),De.push(()=>je(e,"storeName",h)),De.push(()=>je(e,"localKeys",_));let k=t[3]&&At(t);return{c(){Ne(e.$$.fragment),o=I(),s=g("div"),a=g("label"),a.textContent=c,f=I(),i=g("input"),d=I(),k&&k.c(),this.h()},l(w){Te(e.$$.fragment,w),o=P(w),s=v(w,"DIV",{class:!0});var D=S(s);a=v(D,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),ue(a)!=="svelte-1vdq35w"&&(a.textContent=c),f=P(D),i=v(D,"INPUT",{type:!0,id:!0,minlength:!0,maxlength:!0,size:!0,class:!0}),d=P(D),k&&k.l(D),D.forEach(b),this.h()},h(){u(a,"for","storName"),u(a,"class","svelte-1rkdwo"),u(i,"type","text"),u(i,"id","storName"),i.required=!0,u(i,"minlength","4"),u(i,"maxlength","30"),u(i,"size","32"),u(i,"class","svelte-1rkdwo"),u(s,"class","svelte-1rkdwo")},m(w,D){we(e,w,D),te(w,o,D),te(w,s,D),r(s,a),r(s,f),r(s,i),_e(i,t[0]),r(s,d),k&&k.m(s,null),p=!0,N||(m=[X(i,"input",t[7]),X(i,"input",t[4])],N=!0)},p(w,[D]){const T={};D&2&&(T.pageName=w[1]),!l&&D&1&&(l=!0,T.storeName=w[0],Pe(()=>l=!1)),!n&&D&4&&(n=!0,T.localKeys=w[2],Pe(()=>n=!1)),e.$set(T),D&1&&i.value!==w[0]&&_e(i,w[0]),w[3]?k?k.p(w,D):(k=At(w),k.c(),k.m(s,null)):k&&(k.d(1),k=null)},i(w){p||(ge(e.$$.fragment,w),p=!0)},o(w){ve(e.$$.fragment,w),p=!1},d(w){w&&(b(o),b(s)),Oe(e,w),k&&k.d(),N=!1,He(m)}}}function nn(t){const e=/[-:]/g,l=/\..*$/;return`${t}_${new Date().toISOString().replace(e,"").replace(l,"").replace("T","_")}`}function sn(t,e,l){let{pageName:n}=e,{storeName:o}=e,s=[];o=nn(n);let a=!1;function c(N){l(3,a=s.includes(N))}function f(N){const m=N.target.value;c(m)}function i(N){o=N,l(0,o)}function d(N){s=N,l(2,s)}function p(){o=this.value,l(0,o)}return t.$$set=N=>{"pageName"in N&&l(1,n=N.pageName),"storeName"in N&&l(0,o=N.storeName)},t.$$.update=()=>{t.$$.dirty&1&&c(o)},[o,n,s,a,f,i,d,p]}class an extends ye{constructor(e){super(),Me(this,e,sn,ln,Ue,{pageName:1,storeName:0})}}function on(t){let e,l,n,o,s,a,c="Select a parameter-set:",f,i,d;function p(h){t[3](h)}function N(h){t[4](h)}let m={pageName:t[1]};return t[0]!==void 0&&(m.storeName=t[0]),t[2]!==void 0&&(m.localKeys=t[2]),e=new il({props:m}),De.push(()=>je(e,"storeName",p)),De.push(()=>je(e,"localKeys",N)),{c(){Ne(e.$$.fragment),o=I(),s=g("div"),a=g("label"),a.textContent=c,f=I(),i=g("input"),this.h()},l(h){Te(e.$$.fragment,h),o=P(h),s=v(h,"DIV",{class:!0});var _=S(s);a=v(_,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),ue(a)!=="svelte-rajgc0"&&(a.textContent=c),f=P(_),i=v(_,"INPUT",{type:!0,id:!0,minlength:!0,maxlength:!0,size:!0,class:!0}),_.forEach(b),this.h()},h(){u(a,"for","storName"),u(a,"class","svelte-1ozd0ey"),u(i,"type","text"),u(i,"id","storName"),i.value=t[0],i.readOnly=!0,u(i,"minlength","4"),u(i,"maxlength","30"),u(i,"size","32"),u(i,"class","svelte-1ozd0ey"),u(s,"class","svelte-1ozd0ey")},m(h,_){we(e,h,_),te(h,o,_),te(h,s,_),r(s,a),r(s,f),r(s,i),d=!0},p(h,[_]){const C={};_&2&&(C.pageName=h[1]),!l&&_&1&&(l=!0,C.storeName=h[0],Pe(()=>l=!1)),!n&&_&4&&(n=!0,C.localKeys=h[2],Pe(()=>n=!1)),e.$set(C),(!d||_&1&&i.value!==h[0])&&(i.value=h[0])},i(h){d||(ge(e.$$.fragment,h),d=!0)},o(h){ve(e.$$.fragment,h),d=!1},d(h){h&&(b(o),b(s)),Oe(e,h)}}}function rn(t,e,l){let{pageName:n}=e,{storeName:o}=e,s=[];function a(i){let d=o;return!i.includes(d)&&(i.length>0?d=i[0]:d=""),d}function c(i){o=i,l(0,o),l(2,s)}function f(i){s=i,l(2,s)}return t.$$set=i=>{"pageName"in i&&l(1,n=i.pageName),"storeName"in i&&l(0,o=i.storeName)},t.$$.update=()=>{t.$$.dirty&4&&l(0,o=a(s))},[o,n,s,c,f]}class cn extends ye{constructor(e){super(),Me(this,e,rn,on,Ue,{pageName:1,storeName:0})}}const Be=ll(Sl());function fn(t){let e;return{c(){e=g("canvas"),this.h()},l(l){e=v(l,"CANVAS",{class:!0,width:!0,height:!0}),S(e).forEach(b),this.h()},h(){u(e,"class","mini svelte-z8e4tz"),u(e,"width",zt),u(e,"height",zt)},m(l,n){te(l,e,n),t[8](e)},p:Ae,i:Ae,o:Ae,d(l){l&&b(e),t[8](null)}}}const zt=200;function un(t,e,l){let n,o;xe(t,Be,_=>l(6,n=_)),xe(t,Ve,_=>l(7,o=_));let{pageName:s}=e,{fgeom:a}=e,{selFace:c}=e,{simTime:f=0}=e,i,d;function p(_,C){const k=Il(C);k.ruler=!1;const w=i.getContext("2d");w.clearRect(0,0,w.canvas.width,w.canvas.height);try{d=_.getAdjustFull(w.canvas.width,w.canvas.height),_.draw(w,d,k)}catch(D){console.log(D)}}let N=0;function m(_,C,k,w){const D=a(_,C).fig;if(Object.keys(D).includes(k)){const T=D[k];p(T,w)}else{const T=sl(D);p(T,w)}}vt(()=>{m(f,o[s],c,n),l(5,N=1)});function h(_){De[_?"unshift":"push"](()=>{i=_,l(0,i)})}return t.$$set=_=>{"pageName"in _&&l(1,s=_.pageName),"fgeom"in _&&l(2,a=_.fgeom),"selFace"in _&&l(3,c=_.selFace),"simTime"in _&&l(4,f=_.simTime)},t.$$.update=()=>{t.$$.dirty&250&&N===1&&m(f,o[s],c,n)},[i,s,a,c,f,N,n,o,h]}class mn extends ye{constructor(e){super(),Me(this,e,un,fn,Ue,{pageName:1,fgeom:2,selFace:3,simTime:4})}}function hn(t,e){const l=document.createElement("a");l.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(e)),l.setAttribute("download",t),l.click(),l.remove()}function cl(t,e,l){const n=/[-:]/g,o=/\..*$/,s=new Date().toISOString().replace(n,"").replace(o,"").replace("T","_"),a=`px_${t}_${s}.json`,c=al(s,e,l);hn(a,c)}function dn(t,e,l){const n=new URL(t),o=2e3;let s=n.toString().length;for(const a of Object.keys(e)){const c=e[a].toString(),f=2+a.length+c.length;(!l||s+f<o)&&n.searchParams.append(encodeURIComponent(a),encodeURIComponent(c)),s+=f}return s>=o&&console.log(`warn547: generateUrl: strLength ${s} larger than strLengthLimit ${o}`),n.toString()}function Bt(t,e,l){const n=t.slice();return n[51]=e[l],n[52]=e,n[53]=l,n}function qt(t,e,l){const n=t.slice();return n[54]=e[l],n[56]=l,n}function _n(t,e,l){const n=t.slice();return n[54]=e[l],n[56]=l,n}function pn(t){let e;return{c(){e=J("Load the default parameters ?")},l(l){e=Q(l,"Load the default parameters ?")},m(l,n){te(l,e,n)},d(l){l&&b(e)}}}function gn(t){let e,l,n;function o(a){t[29](a)}let s={pageName:t[0].partName};return t[11]!==void 0&&(s.storeName=t[11]),e=new cn({props:s}),De.push(()=>je(e,"storeName",o)),{c(){Ne(e.$$.fragment)},l(a){Te(e.$$.fragment,a)},m(a,c){we(e,a,c),n=!0},p(a,c){const f={};c[0]&1&&(f.pageName=a[0].partName),!l&&c[0]&2048&&(l=!0,f.storeName=a[11],Pe(()=>l=!1)),e.$set(f)},i(a){n||(ge(e.$$.fragment,a),n=!0)},o(a){ve(e.$$.fragment,a),n=!1},d(a){Oe(e,a)}}}function vn(t){let e,l,n,o=Ce(t[51].dropdown),s=[];for(let c=0;c<o.length;c+=1)s[c]=Rt(qt(t,o,c));function a(){t[35].call(e,t[51])}return{c(){e=g("select");for(let c=0;c<s.length;c+=1)s[c].c();this.h()},l(c){e=v(c,"SELECT",{});var f=S(e);for(let i=0;i<s.length;i+=1)s[i].l(f);f.forEach(b),this.h()},h(){t[16][t[0].partName][t[51].name]===void 0&&ut(a)},m(c,f){te(c,e,f);for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(e,null);et(e,t[16][t[0].partName][t[51].name],!0),l||(n=X(e,"change",a),l=!0)},p(c,f){if(t=c,f[0]&1){o=Ce(t[51].dropdown);let i;for(i=0;i<o.length;i+=1){const d=qt(t,o,i);s[i]?s[i].p(d,f):(s[i]=Rt(d),s[i].c(),s[i].m(e,null))}for(;i<s.length;i+=1)s[i].d(1);s.length=o.length}f[0]&65537&&et(e,t[16][t[0].partName][t[51].name])},d(c){c&&b(e),Ke(s,c),l=!1,n()}}}function bn(t){let e,l,n,o=Ce(["Off","On"]),s=[];for(let c=0;c<2;c+=1)s[c]=Nn(_n(t,o,c));function a(){t[34].call(e,t[51])}return{c(){e=g("select");for(let c=0;c<2;c+=1)s[c].c();this.h()},l(c){e=v(c,"SELECT",{});var f=S(e);for(let i=0;i<2;i+=1)s[i].l(f);f.forEach(b),this.h()},h(){t[16][t[0].partName][t[51].name]===void 0&&ut(a)},m(c,f){te(c,e,f);for(let i=0;i<2;i+=1)s[i]&&s[i].m(e,null);et(e,t[16][t[0].partName][t[51].name],!0),l||(n=X(e,"change",a),l=!0)},p(c,f){t=c,f[0]&65537&&et(e,t[16][t[0].partName][t[51].name])},d(c){c&&b(e),Ke(s,c),l=!1,n()}}}function kn(t){let e,l,n,o,s,a,c,f,i,d,p;function N(){t[32].call(e,t[51])}function m(){t[33].call(a,t[51])}return{c(){e=g("input"),s=I(),a=g("input"),this.h()},l(h){e=v(h,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),s=P(h),a=v(h,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),this.h()},h(){u(e,"type","number"),u(e,"min",l=t[51].min),u(e,"max",n=t[51].max),u(e,"step",o=t[51].step),u(e,"class","input-number svelte-mfuhqm"),u(a,"type","range"),u(a,"min",c=t[51].min),u(a,"max",f=t[51].max),u(a,"step",i=t[51].step),u(a,"class","svelte-mfuhqm")},m(h,_){te(h,e,_),_e(e,t[16][t[0].partName][t[51].name]),te(h,s,_),te(h,a,_),_e(a,t[16][t[0].partName][t[51].name]),d||(p=[X(e,"input",N),X(e,"change",t[17]),X(a,"change",m),X(a,"input",m),X(a,"change",t[17])],d=!0)},p(h,_){t=h,_[0]&1&&l!==(l=t[51].min)&&u(e,"min",l),_[0]&1&&n!==(n=t[51].max)&&u(e,"max",n),_[0]&1&&o!==(o=t[51].step)&&u(e,"step",o),_[0]&65537&&it(e.value)!==t[16][t[0].partName][t[51].name]&&_e(e,t[16][t[0].partName][t[51].name]),_[0]&1&&c!==(c=t[51].min)&&u(a,"min",c),_[0]&1&&f!==(f=t[51].max)&&u(a,"max",f),_[0]&1&&i!==(i=t[51].step)&&u(a,"step",i),_[0]&65537&&_e(a,t[16][t[0].partName][t[51].name])},d(h){h&&(b(e),b(s),b(a)),d=!1,He(p)}}}function Rt(t){let e,l=t[54]+"",n;return{c(){e=g("option"),n=J(l),this.h()},l(o){e=v(o,"OPTION",{});var s=S(e);n=Q(s,l),s.forEach(b),this.h()},h(){e.__value=t[56],_e(e,e.__value)},m(o,s){te(o,e,s),r(e,n)},p(o,s){s[0]&1&&l!==(l=o[54]+"")&&de(n,l)},d(o){o&&b(e)}}}function Nn(t){let e,l;return{c(){e=g("option"),l=J(t[54]),this.h()},l(n){e=v(n,"OPTION",{});var o=S(e);l=Q(o,t[54]),o.forEach(b),this.h()},h(){e.__value=t[56],_e(e,e.__value)},m(n,o){te(n,e,o),r(e,l)},p:Ae,d(n){n&&b(e)}}}function Ht(t){let e,l,n,o=t[51].name+"",s,a,c,f,i,d=t[51].unit+"",p,N,m,h=t[51].init+"",_,C,k,w=t[51].min+"",D,T,y,O=t[51].max+"",A,E,L,M=t[51].step+"",q,H,R,F;function K(){return t[31](t[51])}function ne(le,W){return le[51].pType===Et.eNumber?kn:le[51].pType===Et.eCheckbox?bn:vn}let se=ne(t),$=se(t);return{c(){e=g("tr"),l=g("td"),n=g("button"),s=J(o),a=I(),c=g("td"),$.c(),f=I(),i=g("td"),p=J(d),N=I(),m=g("td"),_=J(h),C=I(),k=g("td"),D=J(w),T=I(),y=g("td"),A=J(O),E=I(),L=g("td"),q=J(M),H=I(),this.h()},l(le){e=v(le,"TR",{class:!0});var W=S(e);l=v(W,"TD",{class:!0});var he=S(l);n=v(he,"BUTTON",{class:!0});var be=S(n);s=Q(be,o),be.forEach(b),he.forEach(b),a=P(W),c=v(W,"TD",{class:!0});var j=S(c);$.l(j),j.forEach(b),f=P(W),i=v(W,"TD",{class:!0});var B=S(i);p=Q(B,d),B.forEach(b),N=P(W),m=v(W,"TD",{class:!0});var ce=S(m);_=Q(ce,h),ce.forEach(b),C=P(W),k=v(W,"TD",{class:!0});var oe=S(k);D=Q(oe,w),oe.forEach(b),T=P(W),y=v(W,"TD",{class:!0});var ae=S(y);A=Q(ae,O),ae.forEach(b),E=P(W),L=v(W,"TD",{class:!0});var V=S(L);q=Q(V,M),V.forEach(b),H=P(W),W.forEach(b),this.h()},h(){u(n,"class","svelte-mfuhqm"),u(l,"class","svelte-mfuhqm"),u(c,"class","svelte-mfuhqm"),u(i,"class","svelte-mfuhqm"),u(m,"class","svelte-mfuhqm"),u(k,"class","svelte-mfuhqm"),u(y,"class","svelte-mfuhqm"),u(L,"class","svelte-mfuhqm"),u(e,"class","svelte-mfuhqm"),Re(e,"changed",t[16][t[0].partName][t[51].name]!==t[51].init)},m(le,W){te(le,e,W),r(e,l),r(l,n),r(n,s),r(e,a),r(e,c),$.m(c,null),r(e,f),r(e,i),r(i,p),r(e,N),r(e,m),r(m,_),r(e,C),r(e,k),r(k,D),r(e,T),r(e,y),r(y,A),r(e,E),r(e,L),r(L,q),r(e,H),R||(F=X(n,"click",K),R=!0)},p(le,W){t=le,W[0]&1&&o!==(o=t[51].name+"")&&de(s,o),se===(se=ne(t))&&$?$.p(t,W):($.d(1),$=se(t),$&&($.c(),$.m(c,null))),W[0]&1&&d!==(d=t[51].unit+"")&&de(p,d),W[0]&1&&h!==(h=t[51].init+"")&&de(_,h),W[0]&1&&w!==(w=t[51].min+"")&&de(D,w),W[0]&1&&O!==(O=t[51].max+"")&&de(A,O),W[0]&1&&M!==(M=t[51].step+"")&&de(q,M),W[0]&65537&&Re(e,"changed",t[16][t[0].partName][t[51].name]!==t[51].init)},d(le){le&&b(e),$.d(),R=!1,F()}}}function Tn(t){let e,l="Copy this URL and send it to your friends!",n,o,s;return{c(){e=g("p"),e.textContent=l,n=I(),o=g("p"),s=J(t[13]),this.h()},l(a){e=v(a,"P",{"data-svelte-h":!0}),ue(e)!=="svelte-1kscrpk"&&(e.textContent=l),n=P(a),o=v(a,"P",{class:!0});var c=S(o);s=Q(c,t[13]),c.forEach(b),this.h()},h(){u(o,"class","cUrl svelte-mfuhqm")},m(a,c){te(a,e,c),te(a,n,c),te(a,o,c),r(o,s)},p(a,c){c[0]&8192&&de(s,a[13])},d(a){a&&(b(e),b(n),b(o))}}}function wn(t){let e,l,n;function o(a){t[39](a)}let s={pageName:t[0].partName};return t[12]!==void 0&&(s.storeName=t[12]),e=new an({props:s}),De.push(()=>je(e,"storeName",o)),{c(){Ne(e.$$.fragment)},l(a){Te(e.$$.fragment,a)},m(a,c){we(e,a,c),n=!0},p(a,c){const f={};c[0]&1&&(f.pageName=a[0].partName),!l&&c[0]&4096&&(l=!0,f.storeName=a[12],Pe(()=>l=!1)),e.$set(f)},i(a){n||(ge(e.$$.fragment,a),n=!0)},o(a){ve(e.$$.fragment,a),n=!1},d(a){Oe(e,a)}}}function On(t){let e,l,n="Parameters",o,s,a,c="Load Params from File",f,i,d,p,N="Set Params Default",m,h,_="Load Params from localStorage",C,k,w,D,T,y,O,A,E,L,M,q='<tr class="svelte-mfuhqm"><td class="svelte-mfuhqm">Parameter name</td> <td class="svelte-mfuhqm">Value</td> <td class="svelte-mfuhqm">Unit</td> <td class="svelte-mfuhqm">Default</td> <td class="svelte-mfuhqm">Min</td> <td class="svelte-mfuhqm">Max</td> <td class="svelte-mfuhqm">Step</td></tr>',H,R,F,K,ne,se="Comment:",$,le,W,he,be="Save Parameters to File",j,B,ce="Save Parameters as URL",oe,ae,V="Save Parameters to localStorage",U,G,x,ie,ee,Z,ke,Ee,Le,z,re,pe,Fe,Xe,We,ze,Ye,mt,qe;function ul(Y){t[28](Y)}let bt={okName:"Overwrite Parameters",okFunc:t[20],$$slots:{default:[pn]},$$scope:{ctx:t}};t[7]!==void 0&&(bt.modalOpen=t[7]),k=new ct({props:bt}),De.push(()=>je(k,"modalOpen",ul));function ml(Y){t[30](Y)}let kt={okName:"Load Parameters",okFunc:t[21],$$slots:{default:[gn]},$$scope:{ctx:t}};t[8]!==void 0&&(kt.modalOpen=t[8]),T=new ct({props:kt}),De.push(()=>je(T,"modalOpen",ml));let nt=Ce(t[0].params),Se=[];for(let Y=0;Y<nt.length;Y+=1)Se[Y]=Ht(Bt(t,nt,Y));function hl(Y){t[38](Y)}let Nt={okName:"Done",okFunc:Cn,sizeLarge:!0,$$slots:{default:[Tn]},$$scope:{ctx:t}};t[9]!==void 0&&(Nt.modalOpen=t[9]),G=new ct({props:Nt}),De.push(()=>je(G,"modalOpen",hl));function dl(Y){t[40](Y)}let Tt={okName:"Save into localStorage",okFunc:t[22],$$slots:{default:[wn]},$$scope:{ctx:t}};t[10]!==void 0&&(Tt.modalOpen=t[10]),ee=new ct({props:Tt}),De.push(()=>je(ee,"modalOpen",dl));function _l(Y){t[41](Y)}let wt={svgPath:t[14]};return t[15]!==void 0&&(wt.modalOpen=t[15]),Ee=new rl({props:wt}),De.push(()=>je(Ee,"modalOpen",_l)),ze=new mn({props:{pageName:t[0].partName,fgeom:t[1],selFace:t[2],simTime:t[3]}}),{c(){e=g("section"),l=g("h2"),l.textContent=n,o=I(),s=g("main"),a=g("label"),a.textContent=c,f=I(),i=g("input"),d=I(),p=g("button"),p.textContent=N,m=I(),h=g("button"),h.textContent=_,C=I(),Ne(k.$$.fragment),D=I(),Ne(T.$$.fragment),O=I(),A=g("textarea"),E=I(),L=g("table"),M=g("thead"),M.innerHTML=q,H=I(),R=g("tbody");for(let Y=0;Y<Se.length;Y+=1)Se[Y].c();F=I(),K=g("div"),ne=g("label"),ne.textContent=se,$=I(),le=g("input"),W=I(),he=g("button"),he.textContent=be,j=I(),B=g("button"),B.textContent=ce,oe=I(),ae=g("button"),ae.textContent=V,U=I(),Ne(G.$$.fragment),ie=I(),Ne(ee.$$.fragment),ke=I(),Ne(Ee.$$.fragment),z=I(),re=g("button"),pe=g("img"),Xe=I(),We=g("div"),Ne(ze.$$.fragment),this.h()},l(Y){e=v(Y,"SECTION",{class:!0});var fe=S(e);l=v(fe,"H2",{class:!0,"data-svelte-h":!0}),ue(l)!=="svelte-1mc497a"&&(l.textContent=n),o=P(fe),s=v(fe,"MAIN",{class:!0});var me=S(s);a=v(me,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),ue(a)!=="svelte-zt7rok"&&(a.textContent=c),f=P(me),i=v(me,"INPUT",{id:!0,type:!0,accept:!0,class:!0}),d=P(me),p=v(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(p)!=="svelte-1typ5"&&(p.textContent=N),m=P(me),h=v(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(h)!=="svelte-187bpo6"&&(h.textContent=_),C=P(me),Te(k.$$.fragment,me),D=P(me),Te(T.$$.fragment,me),O=P(me),A=v(me,"TEXTAREA",{rows:!0,cols:!0,wrap:!0,class:!0}),S(A).forEach(b),E=P(me),L=v(me,"TABLE",{class:!0});var Ze=S(L);M=v(Ze,"THEAD",{class:!0,"data-svelte-h":!0}),ue(M)!=="svelte-19j94z2"&&(M.innerHTML=q),H=P(Ze),R=v(Ze,"TBODY",{class:!0});var st=S(R);for(let Ie=0;Ie<Se.length;Ie+=1)Se[Ie].l(st);st.forEach(b),Ze.forEach(b),F=P(me),K=v(me,"DIV",{class:!0});var Je=S(K);ne=v(Je,"LABEL",{for:!0,"data-svelte-h":!0}),ue(ne)!=="svelte-gqskth"&&(ne.textContent=se),$=P(Je),le=v(Je,"INPUT",{type:!0,id:!0,maxlength:!0,size:!0}),Je.forEach(b),W=P(me),he=v(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(he)!=="svelte-1ny58g0"&&(he.textContent=be),j=P(me),B=v(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(B)!=="svelte-11or0m2"&&(B.textContent=ce),oe=P(me),ae=v(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(ae)!=="svelte-5zdtrl"&&(ae.textContent=V),U=P(me),Te(G.$$.fragment,me),ie=P(me),Te(ee.$$.fragment,me),me.forEach(b),ke=P(fe),Te(Ee.$$.fragment,fe),z=P(fe),re=v(fe,"BUTTON",{class:!0});var at=S(re);pe=v(at,"IMG",{src:!0,alt:!0,class:!0}),at.forEach(b),Xe=P(fe),We=v(fe,"DIV",{class:!0});var Qe=S(We);Te(ze.$$.fragment,Qe),Qe.forEach(b),fe.forEach(b),this.h()},h(){u(l,"class","svelte-mfuhqm"),u(a,"for","loadFParams"),u(a,"class","fileUpload svelte-mfuhqm"),u(i,"id","loadFParams"),u(i,"type","file"),u(i,"accept","text/plain, application/json"),u(i,"class","svelte-mfuhqm"),u(p,"class","svelte-mfuhqm"),u(h,"class","svelte-mfuhqm"),u(A,"rows","3"),u(A,"cols","80"),A.readOnly=!0,u(A,"wrap","off"),A.value=t[5],u(A,"class","svelte-mfuhqm"),Re(A,"colorWarn",t[6]),u(M,"class","svelte-mfuhqm"),u(R,"class","svelte-mfuhqm"),u(L,"class","svelte-mfuhqm"),u(ne,"for","inComment"),u(le,"type","text"),u(le,"id","inComment"),u(le,"maxlength","150"),u(le,"size","70"),u(K,"class","comment svelte-mfuhqm"),u(he,"class","svelte-mfuhqm"),u(B,"class","svelte-mfuhqm"),u(ae,"class","svelte-mfuhqm"),u(s,"class","svelte-mfuhqm"),rt(pe.src,Fe=t[14])||u(pe,"src",Fe),u(pe,"alt",t[14]),u(pe,"class","svelte-mfuhqm"),u(re,"class","side-img svelte-mfuhqm"),u(We,"class","mini-canvas svelte-mfuhqm"),u(e,"class","svelte-mfuhqm")},m(Y,fe){te(Y,e,fe),r(e,l),r(e,o),r(e,s),r(s,a),r(s,f),r(s,i),r(s,d),r(s,p),r(s,m),r(s,h),r(s,C),we(k,s,null),r(s,D),we(T,s,null),r(s,O),r(s,A),r(s,E),r(s,L),r(L,M),r(L,H),r(L,R);for(let me=0;me<Se.length;me+=1)Se[me]&&Se[me].m(R,null);r(s,F),r(s,K),r(K,ne),r(K,$),r(K,le),_e(le,t[4]),r(s,W),r(s,he),r(s,j),r(s,B),r(s,oe),r(s,ae),r(s,U),we(G,s,null),r(s,ie),we(ee,s,null),r(e,ke),we(Ee,e,null),r(e,z),r(e,re),r(re,pe),r(e,Xe),r(e,We),we(ze,We,null),Ye=!0,mt||(qe=[X(i,"change",t[18]),X(p,"click",t[26]),X(h,"click",t[27]),X(le,"input",t[36]),X(he,"click",t[19]),X(B,"click",t[23]),X(ae,"click",t[37]),X(re,"click",t[25])],mt=!0)},p(Y,fe){const me={};fe[1]&134217728&&(me.$$scope={dirty:fe,ctx:Y}),!w&&fe[0]&128&&(w=!0,me.modalOpen=Y[7],Pe(()=>w=!1)),k.$set(me);const Ze={};if(fe[0]&2049|fe[1]&134217728&&(Ze.$$scope={dirty:fe,ctx:Y}),!y&&fe[0]&256&&(y=!0,Ze.modalOpen=Y[8],Pe(()=>y=!1)),T.$set(Ze),(!Ye||fe[0]&32)&&(A.value=Y[5]),(!Ye||fe[0]&64)&&Re(A,"colorWarn",Y[6]),fe[0]&16973825){nt=Ce(Y[0].params);let Ie;for(Ie=0;Ie<nt.length;Ie+=1){const Ot=Bt(Y,nt,Ie);Se[Ie]?Se[Ie].p(Ot,fe):(Se[Ie]=Ht(Ot),Se[Ie].c(),Se[Ie].m(R,null))}for(;Ie<Se.length;Ie+=1)Se[Ie].d(1);Se.length=nt.length}fe[0]&16&&le.value!==Y[4]&&_e(le,Y[4]);const st={};fe[0]&8192|fe[1]&134217728&&(st.$$scope={dirty:fe,ctx:Y}),!x&&fe[0]&512&&(x=!0,st.modalOpen=Y[9],Pe(()=>x=!1)),G.$set(st);const Je={};fe[0]&4097|fe[1]&134217728&&(Je.$$scope={dirty:fe,ctx:Y}),!Z&&fe[0]&1024&&(Z=!0,Je.modalOpen=Y[10],Pe(()=>Z=!1)),ee.$set(Je);const at={};fe[0]&16384&&(at.svgPath=Y[14]),!Le&&fe[0]&32768&&(Le=!0,at.modalOpen=Y[15],Pe(()=>Le=!1)),Ee.$set(at),(!Ye||fe[0]&16384&&!rt(pe.src,Fe=Y[14]))&&u(pe,"src",Fe),(!Ye||fe[0]&16384)&&u(pe,"alt",Y[14]);const Qe={};fe[0]&1&&(Qe.pageName=Y[0].partName),fe[0]&2&&(Qe.fgeom=Y[1]),fe[0]&4&&(Qe.selFace=Y[2]),fe[0]&8&&(Qe.simTime=Y[3]),ze.$set(Qe)},i(Y){Ye||(ge(k.$$.fragment,Y),ge(T.$$.fragment,Y),ge(G.$$.fragment,Y),ge(ee.$$.fragment,Y),ge(Ee.$$.fragment,Y),ge(ze.$$.fragment,Y),Ye=!0)},o(Y){ve(k.$$.fragment,Y),ve(T.$$.fragment,Y),ve(G.$$.fragment,Y),ve(ee.$$.fragment,Y),ve(Ee.$$.fragment,Y),ve(ze.$$.fragment,Y),Ye=!1},d(Y){Y&&b(e),Oe(k),Oe(T),Ke(Se,Y),Oe(G),Oe(ee),Oe(Ee),Oe(ze),mt=!1,He(qe)}}}function Cn(){}function En(t,e,l){let n,o;xe(t,Ve,z=>l(16,n=z)),xe(t,ql,z=>l(42,o=z));const s=nl();let{pDef:a}=e,{fgeom:c}=e,{selFace:f}=e,{simTime:i=0}=e,d="";function p(){s("paramChg",{foo:"bla"})}function N(z){let re="",pe=0,Fe=0,Xe=0;const We=[];for(const qe of a.params)We.push(qe.name),Object.hasOwn(z,qe.name)?(pe+=1,n[a.partName][qe.name]===z[qe.name]?Xe+=1:Ol(Ve,n[a.partName][qe.name]=z[qe.name],n)):Fe+=1;let ze=0;for(const qe of Object.keys(z))We.includes(qe)||(ze+=1,re+=`warn363: parameter ${qe} not in the scope of the design (${ze})
|
|
1
|
+
import{a as Ct,b as pl}from"../chunks/makeList.BsKrjN6b.js";import{H as gl,w as ll,g as vl}from"../chunks/entry.BnBscX9s.js";import{Q as bl,s as Ue,p as $e,i as te,n as Ae,f as b,e as g,c as v,b as S,R as rt,m as u,h as r,S as X,v as De,a as I,g as P,T as Pe,o as Ke,y as kl,t as J,l as ue,d as Q,U as Re,z as Nl,A as Tl,B as wl,j as de,C as He,V as _e,k as xe,r as vt,W as nl,X as it,Y as _t,Z as Ol,H as ut,_ as et,$ as Cl,a0 as El}from"../chunks/scheduler.pWaib8rK.js";import{S as ye,i as Me,f as je,b as Ne,d as Te,m as we,a as ge,t as ve,e as Oe,g as Ll,c as Dl}from"../chunks/index.DzDRugVt.js";import{e as Ce,u as Sl,x as sl,y as Il,z as al,P as Et,A as Pl,B as ht,C as tt,D as jl,F as Ul,G as pt,H as yl,I as Lt,f as ot,r as gt,J as Ge,K as Ml,L as Fl,M as Al,N as zl,O as Bl}from"../chunks/index.IHydPqp2.js";import{b as ft}from"../chunks/paths.CBfpPc2G.js";import{p as ql}from"../chunks/stores.BKlAuQ9I.js";function Rl(t,e){throw new gl(t,e)}new TextEncoder;function Hl({params:t}){const e=t.design;if(Object.keys(Ct).includes(e))return{pageDef:Ct[e],allLink:pl};Rl(404,"Design undefined!")}const fs=Object.freeze(Object.defineProperty({__proto__:null,load:Hl},Symbol.toStringTag,{value:"Module"})),Ve=ll({});function ol(t,e,l){const n=bl(Ve);if(Object.keys(n).includes(t)){const s=n[t],a=Object.keys(s);for(const c of Object.keys(e))a.includes(c)?l&&(s[c]=e[c]):s[c]=e[c];n[t]=s}else n[t]=e;Ve.set(n)}function Vl(t){const e=t.pDef.partName,l={};for(const n of t.pDef.params)l[n.name]=n.init;ol(e,l,!1)}function Dt(t){let e,l,n,o,s,a,c;return{c(){e=g("aside"),l=g("div"),n=g("button"),o=g("img"),this.h()},l(f){e=v(f,"ASIDE",{class:!0});var i=S(e);l=v(i,"DIV",{class:!0});var d=S(l);n=v(d,"BUTTON",{class:!0});var p=S(n);o=v(p,"IMG",{src:!0,alt:!0}),p.forEach(b),d.forEach(b),i.forEach(b),this.h()},h(){rt(o.src,s=t[1])||u(o,"src",s),u(o,"alt",t[1]),u(n,"class","svelte-sjxf1e"),u(l,"class","dialog svelte-sjxf1e"),u(e,"class","backdrop svelte-sjxf1e")},m(f,i){te(f,e,i),r(e,l),r(l,n),r(n,o),a||(c=X(n,"click",t[2]),a=!0)},p(f,i){i&2&&!rt(o.src,s=f[1])&&u(o,"src",s),i&2&&u(o,"alt",f[1])},d(f){f&&b(e),a=!1,c()}}}function Kl(t){let e,l=t[0]&&Dt(t);return{c(){l&&l.c(),e=$e()},l(n){l&&l.l(n),e=$e()},m(n,o){l&&l.m(n,o),te(n,e,o)},p(n,[o]){n[0]?l?l.p(n,o):(l=Dt(n),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:Ae,o:Ae,d(n){n&&b(e),l&&l.d(n)}}}function Xl(t,e,l){let{svgPath:n}=e,{modalOpen:o}=e;function s(){l(0,o=!1)}return t.$$set=a=>{"svgPath"in a&&l(1,n=a.svgPath),"modalOpen"in a&&l(0,o=a.modalOpen)},[o,n,s]}class rl extends ye{constructor(e){super(),Me(this,e,Xl,Kl,Ue,{svgPath:1,modalOpen:0})}}function St(t,e,l){const n=t.slice();return n[8]=e[l],n}function It(t){let e,l,n,o,s,a,c;function f(){return t[6](t[8])}return{c(){e=g("button"),l=g("img"),s=I(),this.h()},l(i){e=v(i,"BUTTON",{class:!0});var d=S(e);l=v(d,"IMG",{src:!0,alt:!0,class:!0}),s=P(d),d.forEach(b),this.h()},h(){rt(l.src,n=t[8])||u(l,"src",n),u(l,"alt",o=t[8]),u(l,"class","svelte-fxmnfh"),u(e,"class","svelte-fxmnfh")},m(i,d){te(i,e,d),r(e,l),r(e,s),a||(c=X(e,"click",f),a=!0)},p(i,d){t=i,d&1&&!rt(l.src,n=t[8])&&u(l,"src",n),d&1&&o!==(o=t[8])&&u(l,"alt",o)},d(i){i&&b(e),a=!1,c()}}}function Yl(t){let e,l,n,o,s;function a(d){t[5](d)}let c={svgPath:t[2]};t[1]!==void 0&&(c.modalOpen=t[1]),l=new rl({props:c}),De.push(()=>je(l,"modalOpen",a));let f=Ce(t[0]),i=[];for(let d=0;d<f.length;d+=1)i[d]=It(St(t,f,d));return{c(){e=g("section"),Ne(l.$$.fragment),o=I();for(let d=0;d<i.length;d+=1)i[d].c();this.h()},l(d){e=v(d,"SECTION",{class:!0});var p=S(e);Te(l.$$.fragment,p),o=P(p);for(let N=0;N<i.length;N+=1)i[N].l(p);p.forEach(b),this.h()},h(){u(e,"class","svelte-fxmnfh")},m(d,p){te(d,e,p),we(l,e,null),r(e,o);for(let N=0;N<i.length;N+=1)i[N]&&i[N].m(e,null);s=!0},p(d,[p]){const N={};if(p&4&&(N.svgPath=d[2]),!n&&p&2&&(n=!0,N.modalOpen=d[1],Pe(()=>n=!1)),l.$set(N),p&9){f=Ce(d[0]);let m;for(m=0;m<f.length;m+=1){const h=St(d,f,m);i[m]?i[m].p(h,p):(i[m]=It(h),i[m].c(),i[m].m(e,null))}for(;m<i.length;m+=1)i[m].d(1);i.length=f.length}},i(d){s||(ge(l.$$.fragment,d),s=!0)},o(d){ve(l.$$.fragment,d),s=!1},d(d){d&&b(e),Oe(l),Ke(i,d)}}}function Wl(t){const e=[];for(const l of Object.values(t.paramSvg))e.includes(l)||e.push(l);return e}function Gl(t,e,l){let{pDef:n}=e;function o(p){const N=Wl(n),m=[];for(const h of N)m.push(`${ft}/pgdsvg/${h}`);return m}let s=[],a=!1,c;function f(p){l(2,c=p),l(1,a=!0)}function i(p){a=p,l(1,a)}const d=p=>f(p);return t.$$set=p=>{"pDef"in p&&l(4,n=p.pDef)},t.$$.update=()=>{t.$$.dirty&16&&l(0,s=o(n.partName))},[s,a,c,f,n,i,d]}class Zl extends ye{constructor(e){super(),Me(this,e,Gl,Yl,Ue,{pDef:4})}}function Pt(t){let e,l,n,o,s,a,c="Cancel",f,i,d,p,N,m;const h=t[7].default,_=kl(h,t,t[6],null);return{c(){e=g("aside"),l=g("div"),n=g("article"),_&&_.c(),o=I(),s=g("footer"),a=g("button"),a.textContent=c,f=I(),i=g("button"),d=J(t[1]),this.h()},l(C){e=v(C,"ASIDE",{class:!0});var k=S(e);l=v(k,"DIV",{class:!0});var w=S(l);n=v(w,"ARTICLE",{class:!0});var D=S(n);_&&_.l(D),D.forEach(b),o=P(w),s=v(w,"FOOTER",{class:!0});var T=S(s);a=v(T,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(a)!=="svelte-hcvk9s"&&(a.textContent=c),f=P(T),i=v(T,"BUTTON",{class:!0});var y=S(i);d=Q(y,t[1]),y.forEach(b),T.forEach(b),w.forEach(b),k.forEach(b),this.h()},h(){u(n,"class","question svelte-weruk7"),u(a,"class","cancel svelte-weruk7"),u(i,"class","ok svelte-weruk7"),u(s,"class","svelte-weruk7"),u(l,"class","dialog svelte-weruk7"),Re(l,"sizeLarge",t[2]),u(e,"class","backdrop svelte-weruk7")},m(C,k){te(C,e,k),r(e,l),r(l,n),_&&_.m(n,null),r(l,o),r(l,s),r(s,a),r(s,f),r(s,i),r(i,d),p=!0,N||(m=[X(a,"click",t[3]),X(i,"click",t[4])],N=!0)},p(C,k){_&&_.p&&(!p||k&64)&&Nl(_,h,C,C[6],p?wl(h,C[6],k,null):Tl(C[6]),null),(!p||k&2)&&de(d,C[1]),(!p||k&4)&&Re(l,"sizeLarge",C[2])},i(C){p||(ge(_,C),p=!0)},o(C){ve(_,C),p=!1},d(C){C&&b(e),_&&_.d(C),N=!1,He(m)}}}function Jl(t){let e,l,n=t[0]&&Pt(t);return{c(){n&&n.c(),e=$e()},l(o){n&&n.l(o),e=$e()},m(o,s){n&&n.m(o,s),te(o,e,s),l=!0},p(o,[s]){o[0]?n?(n.p(o,s),s&1&&ge(n,1)):(n=Pt(o),n.c(),ge(n,1),n.m(e.parentNode,e)):n&&(Ll(),ve(n,1,1,()=>{n=null}),Dl())},i(o){l||(ge(n),l=!0)},o(o){ve(n),l=!1},d(o){o&&b(e),n&&n.d(o)}}}function Ql(t,e,l){let{$$slots:n={},$$scope:o}=e,{okName:s="Ok"}=e,{okFunc:a}=e,{modalOpen:c}=e,{sizeLarge:f=!1}=e;function i(){l(0,c=!1)}function d(){a(),l(0,c=!1)}return t.$$set=p=>{"okName"in p&&l(1,s=p.okName),"okFunc"in p&&l(5,a=p.okFunc),"modalOpen"in p&&l(0,c=p.modalOpen),"sizeLarge"in p&&l(2,f=p.sizeLarge),"$$scope"in p&&l(6,o=p.$$scope)},[c,s,f,i,d,a,o,n]}class ct extends ye{constructor(e){super(),Me(this,e,Ql,Jl,Ue,{okName:1,okFunc:5,modalOpen:0,sizeLarge:2})}}function jt(t,e,l){const n=t.slice();return n[17]=e[l],n[18]=e,n[19]=l,n}function Ut(t,e,l){const n=t.slice();return n[17]=e[l],n}function yt(t){let e,l=t[17]+"",n;return{c(){e=g("p"),n=J(l),this.h()},l(o){e=v(o,"P",{class:!0});var s=S(e);n=Q(s,l),s.forEach(b),this.h()},h(){u(e,"class","diagItem svelte-12dj9tj")},m(o,s){te(o,e,s),r(e,n)},p(o,s){s&1&&l!==(l=o[17]+"")&&de(n,l)},d(o){o&&b(e)}}}function Mt(t){let e,l=t[3][t[17]]&&yt(t);return{c(){l&&l.c(),e=$e()},l(n){l&&l.l(n),e=$e()},m(n,o){l&&l.m(n,o),te(n,e,o)},p(n,o){n[3][n[17]]?l?l.p(n,o):(l=yt(n),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},d(n){n&&b(e),l&&l.d(n)}}}function $l(t){let e,l="Do you really want to delete the following localStorage keys?",n,o,s=Ce(t[0]),a=[];for(let c=0;c<s.length;c+=1)a[c]=Mt(Ut(t,s,c));return{c(){e=g("p"),e.textContent=l,n=I();for(let c=0;c<a.length;c+=1)a[c].c();o=$e(),this.h()},l(c){e=v(c,"P",{class:!0,"data-svelte-h":!0}),ue(e)!=="svelte-12r0p0q"&&(e.textContent=l),n=P(c);for(let f=0;f<a.length;f+=1)a[f].l(c);o=$e(),this.h()},h(){u(e,"class","diagTitle svelte-12dj9tj")},m(c,f){te(c,e,f),te(c,n,f);for(let i=0;i<a.length;i+=1)a[i]&&a[i].m(c,f);te(c,o,f)},p(c,f){if(f&9){s=Ce(c[0]);let i;for(i=0;i<s.length;i+=1){const d=Ut(c,s,i);a[i]?a[i].p(d,f):(a[i]=Mt(d),a[i].c(),a[i].m(o.parentNode,o))}for(;i<a.length;i+=1)a[i].d(1);a.length=s.length}},d(c){c&&(b(e),b(n),b(o)),Ke(a,c)}}}function Ft(t){let e,l,n,o,s,a,c=t[17]+"",f,i,d,p=t[2][t[17]]+"",N,m,h,_;function C(){t[12].call(n,t[17])}function k(){return t[13](t[17])}return{c(){e=g("tr"),l=g("td"),n=g("input"),o=I(),s=g("td"),a=g("button"),f=J(c),i=I(),d=g("td"),N=J(p),m=I(),this.h()},l(w){e=v(w,"TR",{class:!0});var D=S(e);l=v(D,"TD",{});var T=S(l);n=v(T,"INPUT",{type:!0}),T.forEach(b),o=P(D),s=v(D,"TD",{class:!0});var y=S(s);a=v(y,"BUTTON",{class:!0});var O=S(a);f=Q(O,c),O.forEach(b),y.forEach(b),i=P(D),d=v(D,"TD",{});var A=S(d);N=Q(A,p),A.forEach(b),m=P(D),D.forEach(b),this.h()},h(){u(n,"type","checkbox"),u(a,"class","svelte-12dj9tj"),u(s,"class","svelte-12dj9tj"),u(e,"class","svelte-12dj9tj")},m(w,D){te(w,e,D),r(e,l),r(l,n),n.checked=t[3][t[17]],r(e,o),r(e,s),r(s,a),r(a,f),r(e,i),r(e,d),r(d,N),r(e,m),h||(_=[X(n,"change",C),X(a,"click",k)],h=!0)},p(w,D){t=w,D&9&&(n.checked=t[3][t[17]]),D&1&&c!==(c=t[17]+"")&&de(f,c),D&5&&p!==(p=t[2][t[17]]+"")&&de(N,p)},d(w){w&&b(e),h=!1,He(_)}}}function xl(t){let e,l,n="Delete",o,s,a,c,f,i,d,p="<td>Delete</td> <td>Key name</td> <td>Last modification</td>",N,m,h,_,C,k,w="delete all",D,T,y,O,A,E,L;function M(F){t[10](F)}let q={okName:"Confirm",okFunc:t[6],$$slots:{default:[$l]},$$scope:{ctx:t}};t[4]!==void 0&&(q.modalOpen=t[4]),s=new ct({props:q}),De.push(()=>je(s,"modalOpen",M));let H=Ce(t[0]),R=[];for(let F=0;F<H.length;F+=1)R[F]=Ft(jt(t,H,F));return{c(){e=g("div"),l=g("button"),l.textContent=n,o=I(),Ne(s.$$.fragment),c=I(),f=g("table"),i=g("thead"),d=g("tr"),d.innerHTML=p,N=I(),m=g("tr"),h=g("td"),_=g("input"),C=I(),k=g("td"),k.textContent=w,D=I(),T=g("td"),y=I(),O=g("tbody");for(let F=0;F<R.length;F+=1)R[F].c();this.h()},l(F){e=v(F,"DIV",{class:!0});var K=S(e);l=v(K,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(l)!=="svelte-1tbm4xl"&&(l.textContent=n),o=P(K),Te(s.$$.fragment,K),c=P(K),f=v(K,"TABLE",{class:!0});var ne=S(f);i=v(ne,"THEAD",{class:!0});var se=S(i);d=v(se,"TR",{"data-svelte-h":!0}),ue(d)!=="svelte-xt53kn"&&(d.innerHTML=p),N=P(se),m=v(se,"TR",{});var $=S(m);h=v($,"TD",{});var le=S(h);_=v(le,"INPUT",{type:!0}),le.forEach(b),C=P($),k=v($,"TD",{class:!0,"data-svelte-h":!0}),ue(k)!=="svelte-1s4wssd"&&(k.textContent=w),D=P($),T=v($,"TD",{}),S(T).forEach(b),$.forEach(b),se.forEach(b),y=P(ne),O=v(ne,"TBODY",{class:!0});var W=S(O);for(let he=0;he<R.length;he+=1)R[he].l(W);W.forEach(b),ne.forEach(b),K.forEach(b),this.h()},h(){u(l,"class","svelte-12dj9tj"),u(_,"type","checkbox"),u(k,"class","instruction"),u(i,"class","svelte-12dj9tj"),u(O,"class","svelte-12dj9tj"),u(f,"class","svelte-12dj9tj"),u(e,"class","deleteKeys svelte-12dj9tj")},m(F,K){te(F,e,K),r(e,l),r(e,o),we(s,e,null),r(e,c),r(e,f),r(f,i),r(i,d),r(i,N),r(i,m),r(m,h),r(h,_),_.checked=t[1],r(m,C),r(m,k),r(m,D),r(m,T),r(f,y),r(f,O);for(let ne=0;ne<R.length;ne+=1)R[ne]&&R[ne].m(O,null);A=!0,E||(L=[X(l,"click",t[9]),X(_,"change",t[11])],E=!0)},p(F,[K]){const ne={};if(K&4194313&&(ne.$$scope={dirty:K,ctx:F}),!a&&K&16&&(a=!0,ne.modalOpen=F[4],Pe(()=>a=!1)),s.$set(ne),K&2&&(_.checked=F[1]),K&45){H=Ce(F[0]);let se;for(se=0;se<H.length;se+=1){const $=jt(F,H,se);R[se]?R[se].p($,K):(R[se]=Ft($),R[se].c(),R[se].m(O,null))}for(;se<R.length;se+=1)R[se].d(1);R.length=H.length}},i(F){A||(ge(s.$$.fragment,F),A=!0)},o(F){ve(s.$$.fragment,F),A=!1},d(F){F&&b(e),Oe(s),Ke(R,F),E=!1,He(L)}}}function en(t){let e={};for(const l of t)e[l]=!1;return e}function tn(t,e,l){let{pageName:n}=e,{storeName:o}=e,{localKeys:s}=e;function a(){let T=[];const y=new RegExp(`^${n}_`);return T=Object.keys(window.localStorage).filter(A=>y.test(A)).map(A=>A.replace(y,"")),T}s=a();function c(T){l(7,o=T)}let f={};function i(T){let y={};for(const O of T){let A="";const E=`${n}_${O}`,L=window.localStorage.getItem(E);L!==null&&(A=JSON.parse(L).lastModif),y[O]=A}return y}f=i(s);let d={};d=en(s);let p=!1;function N(T){for(const y of s)l(3,d[y]=T,d)}function m(){for(const T of s)if(d[T]){const y=`${n}_${T}`;window.localStorage.removeItem(y)}l(0,s=a())}let h=!1;const _=()=>{l(4,h=!0)};function C(T){h=T,l(4,h)}function k(){p=this.checked,l(1,p)}function w(T){d[T]=this.checked,l(3,d)}const D=T=>c(T);return t.$$set=T=>{"pageName"in T&&l(8,n=T.pageName),"storeName"in T&&l(7,o=T.storeName),"localKeys"in T&&l(0,s=T.localKeys)},t.$$.update=()=>{t.$$.dirty&2&&N(p)},[s,p,f,d,h,c,m,o,n,_,C,k,w,D]}class il extends ye{constructor(e){super(),Me(this,e,tn,xl,Ue,{pageName:8,storeName:7,localKeys:0})}}function At(t){let e,l,n,o;return{c(){e=g("p"),l=J("Warning: name "),n=J(t[0]),o=J(" already used"),this.h()},l(s){e=v(s,"P",{class:!0});var a=S(e);l=Q(a,"Warning: name "),n=Q(a,t[0]),o=Q(a," already used"),a.forEach(b),this.h()},h(){u(e,"class","warnMsg svelte-1rkdwo")},m(s,a){te(s,e,a),r(e,l),r(e,n),r(e,o)},p(s,a){a&1&&de(n,s[0])},d(s){s&&b(e)}}}function ln(t){let e,l,n,o,s,a,c="Give a name to your parameter-set:",f,i,d,p,N,m;function h(w){t[5](w)}function _(w){t[6](w)}let C={pageName:t[1]};t[0]!==void 0&&(C.storeName=t[0]),t[2]!==void 0&&(C.localKeys=t[2]),e=new il({props:C}),De.push(()=>je(e,"storeName",h)),De.push(()=>je(e,"localKeys",_));let k=t[3]&&At(t);return{c(){Ne(e.$$.fragment),o=I(),s=g("div"),a=g("label"),a.textContent=c,f=I(),i=g("input"),d=I(),k&&k.c(),this.h()},l(w){Te(e.$$.fragment,w),o=P(w),s=v(w,"DIV",{class:!0});var D=S(s);a=v(D,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),ue(a)!=="svelte-1vdq35w"&&(a.textContent=c),f=P(D),i=v(D,"INPUT",{type:!0,id:!0,minlength:!0,maxlength:!0,size:!0,class:!0}),d=P(D),k&&k.l(D),D.forEach(b),this.h()},h(){u(a,"for","storName"),u(a,"class","svelte-1rkdwo"),u(i,"type","text"),u(i,"id","storName"),i.required=!0,u(i,"minlength","4"),u(i,"maxlength","30"),u(i,"size","32"),u(i,"class","svelte-1rkdwo"),u(s,"class","svelte-1rkdwo")},m(w,D){we(e,w,D),te(w,o,D),te(w,s,D),r(s,a),r(s,f),r(s,i),_e(i,t[0]),r(s,d),k&&k.m(s,null),p=!0,N||(m=[X(i,"input",t[7]),X(i,"input",t[4])],N=!0)},p(w,[D]){const T={};D&2&&(T.pageName=w[1]),!l&&D&1&&(l=!0,T.storeName=w[0],Pe(()=>l=!1)),!n&&D&4&&(n=!0,T.localKeys=w[2],Pe(()=>n=!1)),e.$set(T),D&1&&i.value!==w[0]&&_e(i,w[0]),w[3]?k?k.p(w,D):(k=At(w),k.c(),k.m(s,null)):k&&(k.d(1),k=null)},i(w){p||(ge(e.$$.fragment,w),p=!0)},o(w){ve(e.$$.fragment,w),p=!1},d(w){w&&(b(o),b(s)),Oe(e,w),k&&k.d(),N=!1,He(m)}}}function nn(t){const e=/[-:]/g,l=/\..*$/;return`${t}_${new Date().toISOString().replace(e,"").replace(l,"").replace("T","_")}`}function sn(t,e,l){let{pageName:n}=e,{storeName:o}=e,s=[];o=nn(n);let a=!1;function c(N){l(3,a=s.includes(N))}function f(N){const m=N.target.value;c(m)}function i(N){o=N,l(0,o)}function d(N){s=N,l(2,s)}function p(){o=this.value,l(0,o)}return t.$$set=N=>{"pageName"in N&&l(1,n=N.pageName),"storeName"in N&&l(0,o=N.storeName)},t.$$.update=()=>{t.$$.dirty&1&&c(o)},[o,n,s,a,f,i,d,p]}class an extends ye{constructor(e){super(),Me(this,e,sn,ln,Ue,{pageName:1,storeName:0})}}function on(t){let e,l,n,o,s,a,c="Select a parameter-set:",f,i,d;function p(h){t[3](h)}function N(h){t[4](h)}let m={pageName:t[1]};return t[0]!==void 0&&(m.storeName=t[0]),t[2]!==void 0&&(m.localKeys=t[2]),e=new il({props:m}),De.push(()=>je(e,"storeName",p)),De.push(()=>je(e,"localKeys",N)),{c(){Ne(e.$$.fragment),o=I(),s=g("div"),a=g("label"),a.textContent=c,f=I(),i=g("input"),this.h()},l(h){Te(e.$$.fragment,h),o=P(h),s=v(h,"DIV",{class:!0});var _=S(s);a=v(_,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),ue(a)!=="svelte-rajgc0"&&(a.textContent=c),f=P(_),i=v(_,"INPUT",{type:!0,id:!0,minlength:!0,maxlength:!0,size:!0,class:!0}),_.forEach(b),this.h()},h(){u(a,"for","storName"),u(a,"class","svelte-1ozd0ey"),u(i,"type","text"),u(i,"id","storName"),i.value=t[0],i.readOnly=!0,u(i,"minlength","4"),u(i,"maxlength","30"),u(i,"size","32"),u(i,"class","svelte-1ozd0ey"),u(s,"class","svelte-1ozd0ey")},m(h,_){we(e,h,_),te(h,o,_),te(h,s,_),r(s,a),r(s,f),r(s,i),d=!0},p(h,[_]){const C={};_&2&&(C.pageName=h[1]),!l&&_&1&&(l=!0,C.storeName=h[0],Pe(()=>l=!1)),!n&&_&4&&(n=!0,C.localKeys=h[2],Pe(()=>n=!1)),e.$set(C),(!d||_&1&&i.value!==h[0])&&(i.value=h[0])},i(h){d||(ge(e.$$.fragment,h),d=!0)},o(h){ve(e.$$.fragment,h),d=!1},d(h){h&&(b(o),b(s)),Oe(e,h)}}}function rn(t,e,l){let{pageName:n}=e,{storeName:o}=e,s=[];function a(i){let d=o;return!i.includes(d)&&(i.length>0?d=i[0]:d=""),d}function c(i){o=i,l(0,o),l(2,s)}function f(i){s=i,l(2,s)}return t.$$set=i=>{"pageName"in i&&l(1,n=i.pageName),"storeName"in i&&l(0,o=i.storeName)},t.$$.update=()=>{t.$$.dirty&4&&l(0,o=a(s))},[o,n,s,c,f]}class cn extends ye{constructor(e){super(),Me(this,e,rn,on,Ue,{pageName:1,storeName:0})}}const Be=ll(Sl());function fn(t){let e;return{c(){e=g("canvas"),this.h()},l(l){e=v(l,"CANVAS",{class:!0,width:!0,height:!0}),S(e).forEach(b),this.h()},h(){u(e,"class","mini svelte-z8e4tz"),u(e,"width",zt),u(e,"height",zt)},m(l,n){te(l,e,n),t[8](e)},p:Ae,i:Ae,o:Ae,d(l){l&&b(e),t[8](null)}}}const zt=200;function un(t,e,l){let n,o;xe(t,Be,_=>l(6,n=_)),xe(t,Ve,_=>l(7,o=_));let{pageName:s}=e,{fgeom:a}=e,{selFace:c}=e,{simTime:f=0}=e,i,d;function p(_,C){const k=Il(C);k.ruler=!1;const w=i.getContext("2d");w.clearRect(0,0,w.canvas.width,w.canvas.height);try{d=_.getAdjustFull(w.canvas.width,w.canvas.height),_.draw(w,d,k)}catch(D){console.log(D)}}let N=0;function m(_,C,k,w){const D=a(_,C).fig;if(Object.keys(D).includes(k)){const T=D[k];p(T,w)}else{const T=sl(D);p(T,w)}}vt(()=>{m(f,o[s],c,n),l(5,N=1)});function h(_){De[_?"unshift":"push"](()=>{i=_,l(0,i)})}return t.$$set=_=>{"pageName"in _&&l(1,s=_.pageName),"fgeom"in _&&l(2,a=_.fgeom),"selFace"in _&&l(3,c=_.selFace),"simTime"in _&&l(4,f=_.simTime)},t.$$.update=()=>{t.$$.dirty&250&&N===1&&m(f,o[s],c,n)},[i,s,a,c,f,N,n,o,h]}class mn extends ye{constructor(e){super(),Me(this,e,un,fn,Ue,{pageName:1,fgeom:2,selFace:3,simTime:4})}}function hn(t,e){const l=document.createElement("a");l.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(e)),l.setAttribute("download",t),l.click(),l.remove()}function cl(t,e,l){const n=/[-:]/g,o=/\..*$/,s=new Date().toISOString().replace(n,"").replace(o,"").replace("T","_"),a=`px_${t}_${s}.json`,c=al(s,e,l);hn(a,c)}function dn(t,e,l){const n=new URL(t),o=2e3;let s=n.toString().length;for(const a of Object.keys(e)){const c=e[a].toString(),f=2+a.length+c.length;(!l||s+f<o)&&n.searchParams.append(encodeURIComponent(a),encodeURIComponent(c)),s+=f}return s>=o&&console.log(`warn547: generateUrl: strLength ${s} larger than strLengthLimit ${o}`),n.toString()}function Bt(t,e,l){const n=t.slice();return n[51]=e[l],n[52]=e,n[53]=l,n}function qt(t,e,l){const n=t.slice();return n[54]=e[l],n[56]=l,n}function _n(t,e,l){const n=t.slice();return n[54]=e[l],n[56]=l,n}function pn(t){let e;return{c(){e=J("Load the default parameters ?")},l(l){e=Q(l,"Load the default parameters ?")},m(l,n){te(l,e,n)},d(l){l&&b(e)}}}function gn(t){let e,l,n;function o(a){t[29](a)}let s={pageName:t[0].partName};return t[11]!==void 0&&(s.storeName=t[11]),e=new cn({props:s}),De.push(()=>je(e,"storeName",o)),{c(){Ne(e.$$.fragment)},l(a){Te(e.$$.fragment,a)},m(a,c){we(e,a,c),n=!0},p(a,c){const f={};c[0]&1&&(f.pageName=a[0].partName),!l&&c[0]&2048&&(l=!0,f.storeName=a[11],Pe(()=>l=!1)),e.$set(f)},i(a){n||(ge(e.$$.fragment,a),n=!0)},o(a){ve(e.$$.fragment,a),n=!1},d(a){Oe(e,a)}}}function vn(t){let e,l,n,o=Ce(t[51].dropdown),s=[];for(let c=0;c<o.length;c+=1)s[c]=Rt(qt(t,o,c));function a(){t[35].call(e,t[51])}return{c(){e=g("select");for(let c=0;c<s.length;c+=1)s[c].c();this.h()},l(c){e=v(c,"SELECT",{});var f=S(e);for(let i=0;i<s.length;i+=1)s[i].l(f);f.forEach(b),this.h()},h(){t[16][t[0].partName][t[51].name]===void 0&&ut(a)},m(c,f){te(c,e,f);for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(e,null);et(e,t[16][t[0].partName][t[51].name],!0),l||(n=X(e,"change",a),l=!0)},p(c,f){if(t=c,f[0]&1){o=Ce(t[51].dropdown);let i;for(i=0;i<o.length;i+=1){const d=qt(t,o,i);s[i]?s[i].p(d,f):(s[i]=Rt(d),s[i].c(),s[i].m(e,null))}for(;i<s.length;i+=1)s[i].d(1);s.length=o.length}f[0]&65537&&et(e,t[16][t[0].partName][t[51].name])},d(c){c&&b(e),Ke(s,c),l=!1,n()}}}function bn(t){let e,l,n,o=Ce(["Off","On"]),s=[];for(let c=0;c<2;c+=1)s[c]=Nn(_n(t,o,c));function a(){t[34].call(e,t[51])}return{c(){e=g("select");for(let c=0;c<2;c+=1)s[c].c();this.h()},l(c){e=v(c,"SELECT",{});var f=S(e);for(let i=0;i<2;i+=1)s[i].l(f);f.forEach(b),this.h()},h(){t[16][t[0].partName][t[51].name]===void 0&&ut(a)},m(c,f){te(c,e,f);for(let i=0;i<2;i+=1)s[i]&&s[i].m(e,null);et(e,t[16][t[0].partName][t[51].name],!0),l||(n=X(e,"change",a),l=!0)},p(c,f){t=c,f[0]&65537&&et(e,t[16][t[0].partName][t[51].name])},d(c){c&&b(e),Ke(s,c),l=!1,n()}}}function kn(t){let e,l,n,o,s,a,c,f,i,d,p;function N(){t[32].call(e,t[51])}function m(){t[33].call(a,t[51])}return{c(){e=g("input"),s=I(),a=g("input"),this.h()},l(h){e=v(h,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),s=P(h),a=v(h,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),this.h()},h(){u(e,"type","number"),u(e,"min",l=t[51].min),u(e,"max",n=t[51].max),u(e,"step",o=t[51].step),u(e,"class","input-number svelte-mfuhqm"),u(a,"type","range"),u(a,"min",c=t[51].min),u(a,"max",f=t[51].max),u(a,"step",i=t[51].step),u(a,"class","svelte-mfuhqm")},m(h,_){te(h,e,_),_e(e,t[16][t[0].partName][t[51].name]),te(h,s,_),te(h,a,_),_e(a,t[16][t[0].partName][t[51].name]),d||(p=[X(e,"input",N),X(e,"change",t[17]),X(a,"change",m),X(a,"input",m),X(a,"change",t[17])],d=!0)},p(h,_){t=h,_[0]&1&&l!==(l=t[51].min)&&u(e,"min",l),_[0]&1&&n!==(n=t[51].max)&&u(e,"max",n),_[0]&1&&o!==(o=t[51].step)&&u(e,"step",o),_[0]&65537&&it(e.value)!==t[16][t[0].partName][t[51].name]&&_e(e,t[16][t[0].partName][t[51].name]),_[0]&1&&c!==(c=t[51].min)&&u(a,"min",c),_[0]&1&&f!==(f=t[51].max)&&u(a,"max",f),_[0]&1&&i!==(i=t[51].step)&&u(a,"step",i),_[0]&65537&&_e(a,t[16][t[0].partName][t[51].name])},d(h){h&&(b(e),b(s),b(a)),d=!1,He(p)}}}function Rt(t){let e,l=t[54]+"",n;return{c(){e=g("option"),n=J(l),this.h()},l(o){e=v(o,"OPTION",{});var s=S(e);n=Q(s,l),s.forEach(b),this.h()},h(){e.__value=t[56],_e(e,e.__value)},m(o,s){te(o,e,s),r(e,n)},p(o,s){s[0]&1&&l!==(l=o[54]+"")&&de(n,l)},d(o){o&&b(e)}}}function Nn(t){let e,l;return{c(){e=g("option"),l=J(t[54]),this.h()},l(n){e=v(n,"OPTION",{});var o=S(e);l=Q(o,t[54]),o.forEach(b),this.h()},h(){e.__value=t[56],_e(e,e.__value)},m(n,o){te(n,e,o),r(e,l)},p:Ae,d(n){n&&b(e)}}}function Ht(t){let e,l,n,o=t[51].name+"",s,a,c,f,i,d=t[51].unit+"",p,N,m,h=t[51].init+"",_,C,k,w=t[51].min+"",D,T,y,O=t[51].max+"",A,E,L,M=t[51].step+"",q,H,R,F;function K(){return t[31](t[51])}function ne(le,W){return le[51].pType===Et.eNumber?kn:le[51].pType===Et.eCheckbox?bn:vn}let se=ne(t),$=se(t);return{c(){e=g("tr"),l=g("td"),n=g("button"),s=J(o),a=I(),c=g("td"),$.c(),f=I(),i=g("td"),p=J(d),N=I(),m=g("td"),_=J(h),C=I(),k=g("td"),D=J(w),T=I(),y=g("td"),A=J(O),E=I(),L=g("td"),q=J(M),H=I(),this.h()},l(le){e=v(le,"TR",{class:!0});var W=S(e);l=v(W,"TD",{class:!0});var he=S(l);n=v(he,"BUTTON",{class:!0});var be=S(n);s=Q(be,o),be.forEach(b),he.forEach(b),a=P(W),c=v(W,"TD",{class:!0});var j=S(c);$.l(j),j.forEach(b),f=P(W),i=v(W,"TD",{class:!0});var B=S(i);p=Q(B,d),B.forEach(b),N=P(W),m=v(W,"TD",{class:!0});var ce=S(m);_=Q(ce,h),ce.forEach(b),C=P(W),k=v(W,"TD",{class:!0});var oe=S(k);D=Q(oe,w),oe.forEach(b),T=P(W),y=v(W,"TD",{class:!0});var ae=S(y);A=Q(ae,O),ae.forEach(b),E=P(W),L=v(W,"TD",{class:!0});var V=S(L);q=Q(V,M),V.forEach(b),H=P(W),W.forEach(b),this.h()},h(){u(n,"class","svelte-mfuhqm"),u(l,"class","svelte-mfuhqm"),u(c,"class","svelte-mfuhqm"),u(i,"class","svelte-mfuhqm"),u(m,"class","svelte-mfuhqm"),u(k,"class","svelte-mfuhqm"),u(y,"class","svelte-mfuhqm"),u(L,"class","svelte-mfuhqm"),u(e,"class","svelte-mfuhqm"),Re(e,"changed",t[16][t[0].partName][t[51].name]!==t[51].init)},m(le,W){te(le,e,W),r(e,l),r(l,n),r(n,s),r(e,a),r(e,c),$.m(c,null),r(e,f),r(e,i),r(i,p),r(e,N),r(e,m),r(m,_),r(e,C),r(e,k),r(k,D),r(e,T),r(e,y),r(y,A),r(e,E),r(e,L),r(L,q),r(e,H),R||(F=X(n,"click",K),R=!0)},p(le,W){t=le,W[0]&1&&o!==(o=t[51].name+"")&&de(s,o),se===(se=ne(t))&&$?$.p(t,W):($.d(1),$=se(t),$&&($.c(),$.m(c,null))),W[0]&1&&d!==(d=t[51].unit+"")&&de(p,d),W[0]&1&&h!==(h=t[51].init+"")&&de(_,h),W[0]&1&&w!==(w=t[51].min+"")&&de(D,w),W[0]&1&&O!==(O=t[51].max+"")&&de(A,O),W[0]&1&&M!==(M=t[51].step+"")&&de(q,M),W[0]&65537&&Re(e,"changed",t[16][t[0].partName][t[51].name]!==t[51].init)},d(le){le&&b(e),$.d(),R=!1,F()}}}function Tn(t){let e,l="Copy this URL and send it to your friends!",n,o,s;return{c(){e=g("p"),e.textContent=l,n=I(),o=g("p"),s=J(t[13]),this.h()},l(a){e=v(a,"P",{"data-svelte-h":!0}),ue(e)!=="svelte-1kscrpk"&&(e.textContent=l),n=P(a),o=v(a,"P",{class:!0});var c=S(o);s=Q(c,t[13]),c.forEach(b),this.h()},h(){u(o,"class","cUrl svelte-mfuhqm")},m(a,c){te(a,e,c),te(a,n,c),te(a,o,c),r(o,s)},p(a,c){c[0]&8192&&de(s,a[13])},d(a){a&&(b(e),b(n),b(o))}}}function wn(t){let e,l,n;function o(a){t[39](a)}let s={pageName:t[0].partName};return t[12]!==void 0&&(s.storeName=t[12]),e=new an({props:s}),De.push(()=>je(e,"storeName",o)),{c(){Ne(e.$$.fragment)},l(a){Te(e.$$.fragment,a)},m(a,c){we(e,a,c),n=!0},p(a,c){const f={};c[0]&1&&(f.pageName=a[0].partName),!l&&c[0]&4096&&(l=!0,f.storeName=a[12],Pe(()=>l=!1)),e.$set(f)},i(a){n||(ge(e.$$.fragment,a),n=!0)},o(a){ve(e.$$.fragment,a),n=!1},d(a){Oe(e,a)}}}function On(t){let e,l,n="Parameters",o,s,a,c="Load Params from File",f,i,d,p,N="Set Params Default",m,h,_="Load Params from localStorage",C,k,w,D,T,y,O,A,E,L,M,q='<tr class="svelte-mfuhqm"><td class="svelte-mfuhqm">Parameter name</td> <td class="svelte-mfuhqm">Value</td> <td class="svelte-mfuhqm">Unit</td> <td class="svelte-mfuhqm">Default</td> <td class="svelte-mfuhqm">Min</td> <td class="svelte-mfuhqm">Max</td> <td class="svelte-mfuhqm">Step</td></tr>',H,R,F,K,ne,se="Comment:",$,le,W,he,be="Save Parameters to File",j,B,ce="Save Parameters as URL",oe,ae,V="Save Parameters to localStorage",U,G,x,ie,ee,Z,ke,Ee,Le,z,re,pe,Fe,Xe,We,ze,Ye,mt,qe;function ul(Y){t[28](Y)}let bt={okName:"Overwrite Parameters",okFunc:t[20],$$slots:{default:[pn]},$$scope:{ctx:t}};t[7]!==void 0&&(bt.modalOpen=t[7]),k=new ct({props:bt}),De.push(()=>je(k,"modalOpen",ul));function ml(Y){t[30](Y)}let kt={okName:"Load Parameters",okFunc:t[21],$$slots:{default:[gn]},$$scope:{ctx:t}};t[8]!==void 0&&(kt.modalOpen=t[8]),T=new ct({props:kt}),De.push(()=>je(T,"modalOpen",ml));let nt=Ce(t[0].params),Se=[];for(let Y=0;Y<nt.length;Y+=1)Se[Y]=Ht(Bt(t,nt,Y));function hl(Y){t[38](Y)}let Nt={okName:"Done",okFunc:Cn,sizeLarge:!0,$$slots:{default:[Tn]},$$scope:{ctx:t}};t[9]!==void 0&&(Nt.modalOpen=t[9]),G=new ct({props:Nt}),De.push(()=>je(G,"modalOpen",hl));function dl(Y){t[40](Y)}let Tt={okName:"Save into localStorage",okFunc:t[22],$$slots:{default:[wn]},$$scope:{ctx:t}};t[10]!==void 0&&(Tt.modalOpen=t[10]),ee=new ct({props:Tt}),De.push(()=>je(ee,"modalOpen",dl));function _l(Y){t[41](Y)}let wt={svgPath:t[14]};return t[15]!==void 0&&(wt.modalOpen=t[15]),Ee=new rl({props:wt}),De.push(()=>je(Ee,"modalOpen",_l)),ze=new mn({props:{pageName:t[0].partName,fgeom:t[1],selFace:t[2],simTime:t[3]}}),{c(){e=g("section"),l=g("h2"),l.textContent=n,o=I(),s=g("main"),a=g("label"),a.textContent=c,f=I(),i=g("input"),d=I(),p=g("button"),p.textContent=N,m=I(),h=g("button"),h.textContent=_,C=I(),Ne(k.$$.fragment),D=I(),Ne(T.$$.fragment),O=I(),A=g("textarea"),E=I(),L=g("table"),M=g("thead"),M.innerHTML=q,H=I(),R=g("tbody");for(let Y=0;Y<Se.length;Y+=1)Se[Y].c();F=I(),K=g("div"),ne=g("label"),ne.textContent=se,$=I(),le=g("input"),W=I(),he=g("button"),he.textContent=be,j=I(),B=g("button"),B.textContent=ce,oe=I(),ae=g("button"),ae.textContent=V,U=I(),Ne(G.$$.fragment),ie=I(),Ne(ee.$$.fragment),ke=I(),Ne(Ee.$$.fragment),z=I(),re=g("button"),pe=g("img"),Xe=I(),We=g("div"),Ne(ze.$$.fragment),this.h()},l(Y){e=v(Y,"SECTION",{class:!0});var fe=S(e);l=v(fe,"H2",{class:!0,"data-svelte-h":!0}),ue(l)!=="svelte-1mc497a"&&(l.textContent=n),o=P(fe),s=v(fe,"MAIN",{class:!0});var me=S(s);a=v(me,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),ue(a)!=="svelte-zt7rok"&&(a.textContent=c),f=P(me),i=v(me,"INPUT",{id:!0,type:!0,accept:!0,class:!0}),d=P(me),p=v(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(p)!=="svelte-1typ5"&&(p.textContent=N),m=P(me),h=v(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(h)!=="svelte-187bpo6"&&(h.textContent=_),C=P(me),Te(k.$$.fragment,me),D=P(me),Te(T.$$.fragment,me),O=P(me),A=v(me,"TEXTAREA",{rows:!0,cols:!0,wrap:!0,class:!0}),S(A).forEach(b),E=P(me),L=v(me,"TABLE",{class:!0});var Ze=S(L);M=v(Ze,"THEAD",{class:!0,"data-svelte-h":!0}),ue(M)!=="svelte-19j94z2"&&(M.innerHTML=q),H=P(Ze),R=v(Ze,"TBODY",{class:!0});var st=S(R);for(let Ie=0;Ie<Se.length;Ie+=1)Se[Ie].l(st);st.forEach(b),Ze.forEach(b),F=P(me),K=v(me,"DIV",{class:!0});var Je=S(K);ne=v(Je,"LABEL",{for:!0,"data-svelte-h":!0}),ue(ne)!=="svelte-gqskth"&&(ne.textContent=se),$=P(Je),le=v(Je,"INPUT",{type:!0,id:!0,maxlength:!0,size:!0}),Je.forEach(b),W=P(me),he=v(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(he)!=="svelte-1ny58g0"&&(he.textContent=be),j=P(me),B=v(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(B)!=="svelte-11or0m2"&&(B.textContent=ce),oe=P(me),ae=v(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(ae)!=="svelte-5zdtrl"&&(ae.textContent=V),U=P(me),Te(G.$$.fragment,me),ie=P(me),Te(ee.$$.fragment,me),me.forEach(b),ke=P(fe),Te(Ee.$$.fragment,fe),z=P(fe),re=v(fe,"BUTTON",{class:!0});var at=S(re);pe=v(at,"IMG",{src:!0,alt:!0,class:!0}),at.forEach(b),Xe=P(fe),We=v(fe,"DIV",{class:!0});var Qe=S(We);Te(ze.$$.fragment,Qe),Qe.forEach(b),fe.forEach(b),this.h()},h(){u(l,"class","svelte-mfuhqm"),u(a,"for","loadFParams"),u(a,"class","fileUpload svelte-mfuhqm"),u(i,"id","loadFParams"),u(i,"type","file"),u(i,"accept","text/plain, application/json"),u(i,"class","svelte-mfuhqm"),u(p,"class","svelte-mfuhqm"),u(h,"class","svelte-mfuhqm"),u(A,"rows","3"),u(A,"cols","80"),A.readOnly=!0,u(A,"wrap","off"),A.value=t[5],u(A,"class","svelte-mfuhqm"),Re(A,"colorWarn",t[6]),u(M,"class","svelte-mfuhqm"),u(R,"class","svelte-mfuhqm"),u(L,"class","svelte-mfuhqm"),u(ne,"for","inComment"),u(le,"type","text"),u(le,"id","inComment"),u(le,"maxlength","150"),u(le,"size","70"),u(K,"class","comment svelte-mfuhqm"),u(he,"class","svelte-mfuhqm"),u(B,"class","svelte-mfuhqm"),u(ae,"class","svelte-mfuhqm"),u(s,"class","svelte-mfuhqm"),rt(pe.src,Fe=t[14])||u(pe,"src",Fe),u(pe,"alt",t[14]),u(pe,"class","svelte-mfuhqm"),u(re,"class","side-img svelte-mfuhqm"),u(We,"class","mini-canvas svelte-mfuhqm"),u(e,"class","svelte-mfuhqm")},m(Y,fe){te(Y,e,fe),r(e,l),r(e,o),r(e,s),r(s,a),r(s,f),r(s,i),r(s,d),r(s,p),r(s,m),r(s,h),r(s,C),we(k,s,null),r(s,D),we(T,s,null),r(s,O),r(s,A),r(s,E),r(s,L),r(L,M),r(L,H),r(L,R);for(let me=0;me<Se.length;me+=1)Se[me]&&Se[me].m(R,null);r(s,F),r(s,K),r(K,ne),r(K,$),r(K,le),_e(le,t[4]),r(s,W),r(s,he),r(s,j),r(s,B),r(s,oe),r(s,ae),r(s,U),we(G,s,null),r(s,ie),we(ee,s,null),r(e,ke),we(Ee,e,null),r(e,z),r(e,re),r(re,pe),r(e,Xe),r(e,We),we(ze,We,null),Ye=!0,mt||(qe=[X(i,"change",t[18]),X(p,"click",t[26]),X(h,"click",t[27]),X(le,"input",t[36]),X(he,"click",t[19]),X(B,"click",t[23]),X(ae,"click",t[37]),X(re,"click",t[25])],mt=!0)},p(Y,fe){const me={};fe[1]&134217728&&(me.$$scope={dirty:fe,ctx:Y}),!w&&fe[0]&128&&(w=!0,me.modalOpen=Y[7],Pe(()=>w=!1)),k.$set(me);const Ze={};if(fe[0]&2049|fe[1]&134217728&&(Ze.$$scope={dirty:fe,ctx:Y}),!y&&fe[0]&256&&(y=!0,Ze.modalOpen=Y[8],Pe(()=>y=!1)),T.$set(Ze),(!Ye||fe[0]&32)&&(A.value=Y[5]),(!Ye||fe[0]&64)&&Re(A,"colorWarn",Y[6]),fe[0]&16973825){nt=Ce(Y[0].params);let Ie;for(Ie=0;Ie<nt.length;Ie+=1){const Ot=Bt(Y,nt,Ie);Se[Ie]?Se[Ie].p(Ot,fe):(Se[Ie]=Ht(Ot),Se[Ie].c(),Se[Ie].m(R,null))}for(;Ie<Se.length;Ie+=1)Se[Ie].d(1);Se.length=nt.length}fe[0]&16&&le.value!==Y[4]&&_e(le,Y[4]);const st={};fe[0]&8192|fe[1]&134217728&&(st.$$scope={dirty:fe,ctx:Y}),!x&&fe[0]&512&&(x=!0,st.modalOpen=Y[9],Pe(()=>x=!1)),G.$set(st);const Je={};fe[0]&4097|fe[1]&134217728&&(Je.$$scope={dirty:fe,ctx:Y}),!Z&&fe[0]&1024&&(Z=!0,Je.modalOpen=Y[10],Pe(()=>Z=!1)),ee.$set(Je);const at={};fe[0]&16384&&(at.svgPath=Y[14]),!Le&&fe[0]&32768&&(Le=!0,at.modalOpen=Y[15],Pe(()=>Le=!1)),Ee.$set(at),(!Ye||fe[0]&16384&&!rt(pe.src,Fe=Y[14]))&&u(pe,"src",Fe),(!Ye||fe[0]&16384)&&u(pe,"alt",Y[14]);const Qe={};fe[0]&1&&(Qe.pageName=Y[0].partName),fe[0]&2&&(Qe.fgeom=Y[1]),fe[0]&4&&(Qe.selFace=Y[2]),fe[0]&8&&(Qe.simTime=Y[3]),ze.$set(Qe)},i(Y){Ye||(ge(k.$$.fragment,Y),ge(T.$$.fragment,Y),ge(G.$$.fragment,Y),ge(ee.$$.fragment,Y),ge(Ee.$$.fragment,Y),ge(ze.$$.fragment,Y),Ye=!0)},o(Y){ve(k.$$.fragment,Y),ve(T.$$.fragment,Y),ve(G.$$.fragment,Y),ve(ee.$$.fragment,Y),ve(Ee.$$.fragment,Y),ve(ze.$$.fragment,Y),Ye=!1},d(Y){Y&&b(e),Oe(k),Oe(T),Ke(Se,Y),Oe(G),Oe(ee),Oe(Ee),Oe(ze),mt=!1,He(qe)}}}function Cn(){}function En(t,e,l){let n,o;xe(t,Ve,z=>l(16,n=z)),xe(t,ql,z=>l(42,o=z));const s=nl();let{pDef:a}=e,{fgeom:c}=e,{selFace:f}=e,{simTime:i=0}=e,d="";function p(){s("paramChg",{foo:"bla"})}function N(z){let re="",pe=0,Fe=0,Xe=0;const We=[];for(const qe of a.params)We.push(qe.name),Object.hasOwn(z,qe.name)?(pe+=1,n[a.partName][qe.name]===z[qe.name]?Xe+=1:Ol(Ve,n[a.partName][qe.name]=z[qe.name],n)):Fe+=1;let ze=0;for(const qe of Object.keys(z))We.includes(qe)||(ze+=1,re+=`warn363: parameter ${qe} not in the scope of the design (${ze})
|
|
2
2
|
`);const Ye=ze>0;return re+=`Params loaded at ${new Date().toLocaleTimeString()} :`,re+=` def-nb: ${Object.keys(a.params).length}`,re+=`, cover-nb: ${pe}, uncover-nb: ${Fe}
|
|
3
3
|
`,re+=` load-nb: ${Object.keys(z).length}`,re+=`, equal-nb: ${Xe}, changed-nb: ${pe-Xe}`,re+=`, out-of-scope: ${ze}`,[re,Ye]}let m="",h=!1;function _(){{const z=new URLSearchParams(o.url.search),re={};for(const[pe,Fe]of z){const Xe=Number(Fe);isNaN(Xe)||(re[pe]=Xe)}Object.keys(re).length>0&&l(5,[m,h]=N(re),m,l(6,h))}}function C(){_(),p()}vt(()=>{C()});function k(z){try{const[re]=Pl(z);l(5,[m,h]=N(re.pVal),m,l(6,h)),l(4,d=re.comment),p()}catch(re){let pe=`err723: error by parsing parameter file
|
|
4
4
|
`;pe+=re,l(5,m=pe),l(6,h=!0)}}async function w(z){const re=await z.text();k(re)}function D(z){if(z.target){const re=z.target.files;re&&w(re[0])}}function T(){cl(a.partName,n[a.partName],d)}let y=!1,O=!1,A=!1,E=!1;function L(){const z={};for(const re of a.params)z[re.name]=re.init;l(5,[m,h]=N(z),m,l(6,h))}let M;function q(){if(M!==void 0&&M!==""){const z=`${a.partName}_${M}`;{const re=window.localStorage.getItem(z);re===null?(l(5,m=`Warn157: localStorage key ${z} is null`),l(6,h=!0)):k(re)}}else l(5,m="Warn239: No valid name for loading from localStorage!"),l(6,h=!0)}let H;function R(){if(H!==void 0&&H!==""){const z=`${a.partName}_${H}`,re=/\..*$/,Fe=al(new Date().toISOString().replace(re,""),n[a.partName],d);window.localStorage.setItem(z,Fe)}else console.log("Warn639: No valid name for writing to localStorage!")}let F="";function K(){return dn(o.url.href,n[a.partName],!1).toString()}function ne(){l(13,F=K()),l(9,A=!0)}let se=`${ft}/pgdsvg/default_param_blank.svg`;function $(z){l(14,se=`${ft}/pgdsvg/default_param_blank.svg`),Object.keys(a.paramSvg).includes(z)&&l(14,se=`${ft}/pgdsvg/${a.paramSvg[z]}`)}function le(z,re){const pe=Object.keys(n[re]).length;z<pe&&$(Object.keys(n[re])[z])}let W=!1;function he(){l(15,W=!0)}const be=()=>{l(7,y=!0)},j=()=>{l(8,O=!0)};function B(z){y=z,l(7,y)}function ce(z){M=z,l(11,M)}function oe(z){O=z,l(8,O)}const ae=z=>$(z.name);function V(z){n[a.partName][z.name]=it(this.value),Ve.set(n)}function U(z){n[a.partName][z.name]=it(this.value),Ve.set(n)}function G(z){n[a.partName][z.name]=_t(this),Ve.set(n)}function x(z){n[a.partName][z.name]=_t(this),Ve.set(n)}function ie(){d=this.value,l(4,d)}const ee=()=>{l(10,E=!0)};function Z(z){A=z,l(9,A)}function ke(z){H=z,l(12,H)}function Ee(z){E=z,l(10,E)}function Le(z){W=z,l(15,W)}return t.$$set=z=>{"pDef"in z&&l(0,a=z.pDef),"fgeom"in z&&l(1,c=z.fgeom),"selFace"in z&&l(2,f=z.selFace),"simTime"in z&&l(3,i=z.simTime)},t.$$.update=()=>{t.$$.dirty[0]&1&&le(0,a.partName)},[a,c,f,i,d,m,h,y,O,A,E,M,H,F,se,W,n,p,D,T,L,q,R,ne,$,he,be,j,B,ce,oe,ae,V,U,G,x,ie,ee,Z,ke,Ee,Le]}class Ln extends ye{constructor(e){super(),Me(this,e,En,On,Ue,{pDef:0,fgeom:1,selFace:2,simTime:3},null,[-1,-1])}}function Dn(t){let e,l,n="0",o,s,a="<-",c,f,i="|<",d,p,N="||",m,h,_=">|",C,k,w="->",D,T,y,O,A,E;return{c(){e=g("nav"),l=g("button"),l.textContent=n,o=I(),s=g("button"),s.textContent=a,c=I(),f=g("button"),f.textContent=i,d=I(),p=g("button"),p.textContent=N,m=I(),h=g("button"),h.textContent=_,C=I(),k=g("button"),k.textContent=w,D=I(),T=g("input"),y=I(),O=g("input"),this.h()},l(L){e=v(L,"NAV",{class:!0});var M=S(e);l=v(M,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(l)!=="svelte-sw7vi1"&&(l.textContent=n),o=P(M),s=v(M,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(s)!=="svelte-gbiqvp"&&(s.textContent=a),c=P(M),f=v(M,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(f)!=="svelte-10nqggx"&&(f.textContent=i),d=P(M),p=v(M,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(p)!=="svelte-1xmh6xn"&&(p.textContent=N),m=P(M),h=v(M,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(h)!=="svelte-1wuqlom"&&(h.textContent=_),C=P(M),k=v(M,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(k)!=="svelte-1vey426"&&(k.textContent=w),D=P(M),T=v(M,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),y=P(M),O=v(M,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),M.forEach(b),this.h()},h(){u(l,"class","svelte-uw6ahn"),u(s,"class","svelte-uw6ahn"),u(f,"class","svelte-uw6ahn"),u(p,"class","svelte-uw6ahn"),u(h,"class","svelte-uw6ahn"),u(k,"class","svelte-uw6ahn"),u(T,"type","range"),u(T,"min","0"),u(T,"max",t[1]),u(T,"step",t[2]),u(T,"class","svelte-uw6ahn"),u(O,"type","number"),u(O,"min","0"),u(O,"max",t[1]),u(O,"step",t[2]),u(O,"class","svelte-uw6ahn"),u(e,"class","svelte-uw6ahn")},m(L,M){te(L,e,M),r(e,l),r(e,o),r(e,s),r(e,c),r(e,f),r(e,d),r(e,p),r(e,m),r(e,h),r(e,C),r(e,k),r(e,D),r(e,T),_e(T,t[0]),r(e,y),r(e,O),_e(O,t[0]),A||(E=[X(l,"click",t[3]),X(s,"click",t[6]),X(f,"click",t[4]),X(p,"click",t[8]),X(h,"click",t[5]),X(k,"click",t[7]),X(T,"change",t[10]),X(T,"input",t[10]),X(O,"input",t[11])],A=!0)},p(L,[M]){M&2&&u(T,"max",L[1]),M&4&&u(T,"step",L[2]),M&1&&_e(T,L[0]),M&2&&u(O,"max",L[1]),M&4&&u(O,"step",L[2]),M&1&&it(O.value)!==L[0]&&_e(O,L[0])},i:Ae,o:Ae,d(L){L&&b(e),A=!1,He(E)}}}const Vt=4;function Sn(t,e,l){let{tMax:n=10}=e,{tStep:o=.1}=e,{tUpdate:s=500}=e,{simTime:a=0}=e,c=null,f=0,i;function d(){c!==null&&(clearInterval(c),c=null)}function p(){i<0&&a<=0?l(0,a=n):i>0&&a>=n?l(0,a=0):l(0,a+=i)}function N(){const y=s/2**(Math.abs(f)-1);i=f<0?-o:o,c=setInterval(p,y)}function m(){d(),l(0,a=0),f=0}function h(){d(),f=0,i=-o,p()}function _(){d(),f=0,i=o,p()}function C(){d(),f=Math.max(f-1,-Vt),N()}function k(){d(),f=Math.min(f+1,Vt),N()}function w(){d(),f=0}Cl(()=>{});function D(){a=it(this.value),l(0,a)}function T(){a=it(this.value),l(0,a)}return t.$$set=y=>{"tMax"in y&&l(1,n=y.tMax),"tStep"in y&&l(2,o=y.tStep),"tUpdate"in y&&l(9,s=y.tUpdate),"simTime"in y&&l(0,a=y.simTime)},[a,n,o,m,h,_,C,k,w,s,D,T]}class In extends ye{constructor(e){super(),Me(this,e,Sn,Dn,Ue,{tMax:1,tStep:2,tUpdate:9,simTime:0})}}function Pn(t){let e,l,n='<div class="zero svelte-c549k7"></div>',o,s,a='<div class="zoomin svelte-c549k7"></div>',c,f,i='<div class="zoomout svelte-c549k7"></div>',d,p,N='<div class="arrowleft svelte-c549k7"></div>',m,h,_='<div class="arrowright svelte-c549k7"></div>',C,k,w='<div class="arrowup svelte-c549k7"></div>',D,T,y='<div class="arrowdown svelte-c549k7"></div>',O,A;return{c(){e=g("nav"),l=g("button"),l.innerHTML=n,o=I(),s=g("button"),s.innerHTML=a,c=I(),f=g("button"),f.innerHTML=i,d=I(),p=g("button"),p.innerHTML=N,m=I(),h=g("button"),h.innerHTML=_,C=I(),k=g("button"),k.innerHTML=w,D=I(),T=g("button"),T.innerHTML=y,this.h()},l(E){e=v(E,"NAV",{class:!0});var L=S(e);l=v(L,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(l)!=="svelte-nkdg6y"&&(l.innerHTML=n),o=P(L),s=v(L,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(s)!=="svelte-nbpwn1"&&(s.innerHTML=a),c=P(L),f=v(L,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(f)!=="svelte-toyuqt"&&(f.innerHTML=i),d=P(L),p=v(L,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(p)!=="svelte-vbdqb3"&&(p.innerHTML=N),m=P(L),h=v(L,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(h)!=="svelte-a55vyt"&&(h.innerHTML=_),C=P(L),k=v(L,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(k)!=="svelte-ky9277"&&(k.innerHTML=w),D=P(L),T=v(L,"BUTTON",{class:!0,"data-svelte-h":!0}),ue(T)!=="svelte-1obyap9"&&(T.innerHTML=y),L.forEach(b),this.h()},h(){u(l,"class","svelte-c549k7"),u(s,"class","svelte-c549k7"),u(f,"class","svelte-c549k7"),u(p,"class","svelte-c549k7"),u(h,"class","svelte-c549k7"),u(k,"class","svelte-c549k7"),u(T,"class","svelte-c549k7"),u(e,"class","svelte-c549k7")},m(E,L){te(E,e,L),r(e,l),r(e,o),r(e,s),r(e,c),r(e,f),r(e,d),r(e,p),r(e,m),r(e,h),r(e,C),r(e,k),r(e,D),r(e,T),O||(A=[X(l,"click",t[1]),X(s,"click",t[2]),X(f,"click",t[3]),X(p,"click",t[4]),X(h,"click",t[5]),X(k,"click",t[6]),X(T,"click",t[7])],O=!0)},p:Ae,i:Ae,o:Ae,d(E){E&&b(e),O=!1,He(A)}}}function jn(t){const e=nl();function l(d){e("myevent",{action:d})}return[l,()=>l("zoomInit"),()=>l("zoomIn"),()=>l("zoomOut"),()=>l("moveLeft"),()=>l("moveRight"),()=>l("moveUp"),()=>l("moveDown")]}class Un extends ye{constructor(e){super(),Me(this,e,jn,Pn,Ue,{})}}function yn(t){let e,l,n,o,s,a,c,f,i,d,p,N,m,h,_,C,k,w,D,T,y,O,A,E,L,M,q,H,R,F,K,ne,se,$,le,W,he,be,j,B,ce,oe;return{c(){e=g("div"),l=g("label"),n=g("input"),o=J("main part"),s=I(),a=g("label"),c=g("input"),f=J("main skeleton"),i=I(),d=g("label"),p=g("input"),N=J("second parts"),m=I(),h=g("label"),_=g("input"),C=J("second skeletons"),k=I(),w=g("label"),D=g("input"),T=J("dynamics"),y=I(),O=g("label"),A=g("input"),E=J("ruler"),L=I(),M=g("label"),q=g("input"),H=J("frame of reference"),R=I(),F=g("label"),K=g("input"),ne=J("points"),se=I(),$=g("label"),le=g("input"),W=J("lines"),he=I(),be=g("label"),j=g("input"),B=J("vectors"),this.h()},l(ae){e=v(ae,"DIV",{class:!0});var V=S(e);l=v(V,"LABEL",{class:!0});var U=S(l);n=v(U,"INPUT",{type:!0,class:!0}),o=Q(U,"main part"),U.forEach(b),s=P(V),a=v(V,"LABEL",{class:!0});var G=S(a);c=v(G,"INPUT",{type:!0,class:!0}),f=Q(G,"main skeleton"),G.forEach(b),i=P(V),d=v(V,"LABEL",{class:!0});var x=S(d);p=v(x,"INPUT",{type:!0,class:!0}),N=Q(x,"second parts"),x.forEach(b),m=P(V),h=v(V,"LABEL",{class:!0});var ie=S(h);_=v(ie,"INPUT",{type:!0,class:!0}),C=Q(ie,"second skeletons"),ie.forEach(b),k=P(V),w=v(V,"LABEL",{class:!0});var ee=S(w);D=v(ee,"INPUT",{type:!0,class:!0}),T=Q(ee,"dynamics"),ee.forEach(b),y=P(V),O=v(V,"LABEL",{class:!0});var Z=S(O);A=v(Z,"INPUT",{type:!0,class:!0}),E=Q(Z,"ruler"),Z.forEach(b),L=P(V),M=v(V,"LABEL",{class:!0});var ke=S(M);q=v(ke,"INPUT",{type:!0,class:!0}),H=Q(ke,"frame of reference"),ke.forEach(b),R=P(V),F=v(V,"LABEL",{class:!0});var Ee=S(F);K=v(Ee,"INPUT",{type:!0,class:!0}),ne=Q(Ee,"points"),Ee.forEach(b),se=P(V),$=v(V,"LABEL",{class:!0});var Le=S($);le=v(Le,"INPUT",{type:!0,class:!0}),W=Q(Le,"lines"),Le.forEach(b),he=P(V),be=v(V,"LABEL",{class:!0});var z=S(be);j=v(z,"INPUT",{type:!0,class:!0}),B=Q(z,"vectors"),z.forEach(b),V.forEach(b),this.h()},h(){u(n,"type","checkbox"),u(n,"class","svelte-1rsbkj"),u(l,"class","svelte-1rsbkj"),u(c,"type","checkbox"),u(c,"class","svelte-1rsbkj"),u(a,"class","svelte-1rsbkj"),u(p,"type","checkbox"),u(p,"class","svelte-1rsbkj"),u(d,"class","svelte-1rsbkj"),u(_,"type","checkbox"),u(_,"class","svelte-1rsbkj"),u(h,"class","svelte-1rsbkj"),u(D,"type","checkbox"),u(D,"class","svelte-1rsbkj"),u(w,"class","svelte-1rsbkj"),u(A,"type","checkbox"),u(A,"class","svelte-1rsbkj"),u(O,"class","svelte-1rsbkj"),u(q,"type","checkbox"),u(q,"class","svelte-1rsbkj"),u(M,"class","svelte-1rsbkj"),u(K,"type","checkbox"),u(K,"class","svelte-1rsbkj"),u(F,"class","svelte-1rsbkj"),u(le,"type","checkbox"),u(le,"class","svelte-1rsbkj"),u($,"class","svelte-1rsbkj"),u(j,"type","checkbox"),u(j,"class","svelte-1rsbkj"),u(be,"class","svelte-1rsbkj"),u(e,"class","svelte-1rsbkj")},m(ae,V){te(ae,e,V),r(e,l),r(l,n),n.checked=t[0].main,r(l,o),r(e,s),r(e,a),r(a,c),c.checked=t[0].mainB,r(a,f),r(e,i),r(e,d),r(d,p),p.checked=t[0].second,r(d,N),r(e,m),r(e,h),r(h,_),_.checked=t[0].secondB,r(h,C),r(e,k),r(e,w),r(w,D),D.checked=t[0].dynamics,r(w,T),r(e,y),r(e,O),r(O,A),A.checked=t[0].ruler,r(O,E),r(e,L),r(e,M),r(M,q),q.checked=t[0].refframe,r(M,H),r(e,R),r(e,F),r(F,K),K.checked=t[0].points,r(F,ne),r(e,se),r(e,$),r($,le),le.checked=t[0].lines,r($,W),r(e,he),r(e,be),r(be,j),j.checked=t[0].vectors,r(be,B),ce||(oe=[X(n,"change",t[1]),X(c,"change",t[2]),X(p,"change",t[3]),X(_,"change",t[4]),X(D,"change",t[5]),X(A,"change",t[6]),X(q,"change",t[7]),X(K,"change",t[8]),X(le,"change",t[9]),X(j,"change",t[10])],ce=!0)},p(ae,[V]){V&1&&(n.checked=ae[0].main),V&1&&(c.checked=ae[0].mainB),V&1&&(p.checked=ae[0].second),V&1&&(_.checked=ae[0].secondB),V&1&&(D.checked=ae[0].dynamics),V&1&&(A.checked=ae[0].ruler),V&1&&(q.checked=ae[0].refframe),V&1&&(K.checked=ae[0].points),V&1&&(le.checked=ae[0].lines),V&1&&(j.checked=ae[0].vectors)},i:Ae,o:Ae,d(ae){ae&&b(e),ce=!1,He(oe)}}}function Mn(t,e,l){let n;xe(t,Be,h=>l(0,n=h));function o(){n.main=this.checked,Be.set(n)}function s(){n.mainB=this.checked,Be.set(n)}function a(){n.second=this.checked,Be.set(n)}function c(){n.secondB=this.checked,Be.set(n)}function f(){n.dynamics=this.checked,Be.set(n)}function i(){n.ruler=this.checked,Be.set(n)}function d(){n.refframe=this.checked,Be.set(n)}function p(){n.points=this.checked,Be.set(n)}function N(){n.lines=this.checked,Be.set(n)}function m(){n.vectors=this.checked,Be.set(n)}return[n,o,s,a,c,f,i,d,p,N,m]}class Fn extends ye{constructor(e){super(),Me(this,e,Mn,yn,Ue,{})}}function Kt(t,e,l){const n=t.slice();return n[36]=e[l],n}function Xt(t){let e,l=t[36]+"",n,o;return{c(){e=g("option"),n=J(l),this.h()},l(s){e=v(s,"OPTION",{});var a=S(e);n=Q(a,l),a.forEach(b),this.h()},h(){e.__value=o=t[36],_e(e,e.__value)},m(s,a){te(s,e,a),r(e,n)},p(s,a){a[0]&8&&l!==(l=s[36]+"")&&de(n,l),a[0]&8&&o!==(o=s[36])&&(e.__value=o,_e(e,e.__value))},d(s){s&&b(e)}}}function An(t){let e,l,n,o,s,a,c,f,i,d,p,N,m,h,_,C,k,w,D,T,y,O;ut(t[19]);let A=Ce(t[3]),E=[];for(let q=0;q<A.length;q+=1)E[q]=Xt(Kt(t,A,q));f=new Fn({});function L(q){t[22](q)}let M={tMax:t[2].sim.tMax,tStep:t[2].sim.tStep,tUpdate:t[2].sim.tUpdate};return t[1]!==void 0&&(M.simTime=t[1]),m=new In({props:M}),De.push(()=>je(m,"simTime",L)),D=new Un({}),D.$on("myevent",t[8]),{c(){e=g("section"),l=g("h2"),n=J(`Drawing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1708729388596"}
|