@fluixi/dom 1.0.0-alpha.83 → 1.0.0-alpha.84

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.
Files changed (182) hide show
  1. package/dist/cdn/dom-client.cjs +1427 -1
  2. package/dist/cdn/dom-client.d.ts +2 -2
  3. package/dist/cdn/dom-client.global.js +2 -1
  4. package/dist/cdn/dom-client.js +3 -3
  5. package/dist/cdn/dom-client.mjs +1430 -1
  6. package/dist/cdn/dom.cjs +3127 -1
  7. package/dist/cdn/dom.d.ts +2 -2
  8. package/dist/cdn/dom.global.js +2 -1
  9. package/dist/cdn/dom.js +4 -4
  10. package/dist/cdn/dom.mjs +3133 -1
  11. package/dist/index.cjs +3155 -1
  12. package/dist/index.js +2 -2
  13. package/dist/index.mjs +3149 -1
  14. package/dist/lib/component/index.cjs +128 -1
  15. package/dist/lib/component/index.mjs +105 -1
  16. package/dist/lib/component/modifiers.cjs +126 -1
  17. package/dist/lib/component/modifiers.d.ts +12 -0
  18. package/dist/lib/component/modifiers.d.ts.map +1 -1
  19. package/dist/lib/component/modifiers.js +12 -84
  20. package/dist/lib/component/modifiers.mjs +105 -1
  21. package/dist/lib/dom/delegate.cjs +60 -1
  22. package/dist/lib/dom/delegate.js +1 -1
  23. package/dist/lib/dom/delegate.mjs +39 -1
  24. package/dist/lib/dom/dynamic-element.cjs +949 -1
  25. package/dist/lib/dom/dynamic-element.d.ts +3 -3
  26. package/dist/lib/dom/dynamic-element.js +2 -2
  27. package/dist/lib/dom/dynamic-element.mjs +928 -1
  28. package/dist/lib/dom/hydration-state.cjs +93 -1
  29. package/dist/lib/dom/hydration-state.d.ts +1 -1
  30. package/dist/lib/dom/hydration-state.js +1 -1
  31. package/dist/lib/dom/hydration-state.mjs +72 -1
  32. package/dist/lib/dom/hydration.cjs +685 -1
  33. package/dist/lib/dom/hydration.js +8 -8
  34. package/dist/lib/dom/hydration.mjs +664 -1
  35. package/dist/lib/dom/index.cjs +2040 -1
  36. package/dist/lib/dom/index.js +1 -1
  37. package/dist/lib/dom/index.mjs +2020 -1
  38. package/dist/lib/dom/integration.cjs +71 -1
  39. package/dist/lib/dom/integration.js +3 -3
  40. package/dist/lib/dom/integration.mjs +51 -1
  41. package/dist/lib/dom/island.cjs +790 -1
  42. package/dist/lib/dom/island.d.ts +1 -1
  43. package/dist/lib/dom/island.js +11 -11
  44. package/dist/lib/dom/island.mjs +769 -1
  45. package/dist/lib/dom/runtime.cjs +1432 -1
  46. package/dist/lib/dom/runtime.d.ts +60 -17
  47. package/dist/lib/dom/runtime.d.ts.map +1 -1
  48. package/dist/lib/dom/runtime.js +122 -79
  49. package/dist/lib/dom/runtime.mjs +1414 -1
  50. package/dist/lib/dom/server/fx-data.cjs +53 -1
  51. package/dist/lib/dom/server/fx-data.d.ts +5 -5
  52. package/dist/lib/dom/server/fx-data.js +6 -6
  53. package/dist/lib/dom/server/fx-data.mjs +32 -1
  54. package/dist/lib/dom/server/host.cjs +66 -1
  55. package/dist/lib/dom/server/host.d.ts +6 -0
  56. package/dist/lib/dom/server/host.d.ts.map +1 -1
  57. package/dist/lib/dom/server/host.js +7 -1
  58. package/dist/lib/dom/server/host.mjs +45 -1
  59. package/dist/lib/dom/server/index.cjs +759 -1
  60. package/dist/lib/dom/server/index.d.ts +1 -1
  61. package/dist/lib/dom/server/index.js +1 -1
  62. package/dist/lib/dom/server/index.mjs +743 -1
  63. package/dist/lib/dom/server/nodes.cjs +302 -1
  64. package/dist/lib/dom/server/nodes.d.ts +2 -2
  65. package/dist/lib/dom/server/nodes.d.ts.map +1 -1
  66. package/dist/lib/dom/server/nodes.js +4 -4
  67. package/dist/lib/dom/server/nodes.mjs +279 -1
  68. package/dist/lib/dom/server/parse-template.cjs +395 -1
  69. package/dist/lib/dom/server/parse-template.d.ts +1 -1
  70. package/dist/lib/dom/server/parse-template.js +4 -4
  71. package/dist/lib/dom/server/parse-template.mjs +372 -1
  72. package/dist/lib/dom/server/render.cjs +691 -1
  73. package/dist/lib/dom/server/render.d.ts +9 -1
  74. package/dist/lib/dom/server/render.d.ts.map +1 -1
  75. package/dist/lib/dom/server/render.js +23 -15
  76. package/dist/lib/dom/server/render.mjs +677 -1
  77. package/dist/lib/dom/server/request-context.cjs +110 -1
  78. package/dist/lib/dom/server/request-context.d.ts +29 -9
  79. package/dist/lib/dom/server/request-context.d.ts.map +1 -1
  80. package/dist/lib/dom/server/request-context.js +28 -8
  81. package/dist/lib/dom/server/request-context.mjs +89 -1
  82. package/dist/lib/dom/server/serialize.cjs +187 -1
  83. package/dist/lib/dom/server/serialize.js +3 -3
  84. package/dist/lib/dom/server/serialize.mjs +164 -1
  85. package/dist/lib/dom/server-renderer.cjs +760 -1
  86. package/dist/lib/dom/server-renderer.js +1 -1
  87. package/dist/lib/dom/server-renderer.mjs +745 -1
  88. package/dist/lib/dom/types.cjs +18 -1
  89. package/dist/lib/dom/utils.cjs +381 -1
  90. package/dist/lib/dom/utils.d.ts +1 -88
  91. package/dist/lib/dom/utils.d.ts.map +1 -1
  92. package/dist/lib/dom/utils.js +2 -99
  93. package/dist/lib/dom/utils.mjs +361 -1
  94. package/dist/lib/dom/versions.cjs +60 -1
  95. package/dist/lib/dom/versions.d.ts +3 -3
  96. package/dist/lib/dom/versions.d.ts.map +1 -1
  97. package/dist/lib/dom/versions.js +17 -5
  98. package/dist/lib/dom/versions.mjs +37 -1
  99. package/dist/lib/element/attributes.cjs +19 -1
  100. package/dist/lib/element/attributes.d.ts +7 -7
  101. package/dist/lib/element/attributes.js +1 -1
  102. package/dist/lib/element/attributes.mjs +1 -0
  103. package/dist/lib/element/index.cjs +19 -1
  104. package/dist/lib/element/index.mjs +1 -0
  105. package/dist/lib/element/types.cjs +18 -1
  106. package/dist/lib/element/types.d.ts +4 -5
  107. package/dist/lib/element/types.d.ts.map +1 -1
  108. package/dist/lib/element/types.js +0 -1
  109. package/dist/lib/flow/class-map.cjs +38 -1
  110. package/dist/lib/flow/class-map.d.ts +3 -3
  111. package/dist/lib/flow/class-map.js +2 -2
  112. package/dist/lib/flow/class-map.mjs +17 -1
  113. package/dist/lib/flow/client-only.cjs +57 -1
  114. package/dist/lib/flow/client-only.d.ts +4 -4
  115. package/dist/lib/flow/client-only.js +3 -3
  116. package/dist/lib/flow/client-only.mjs +36 -1
  117. package/dist/lib/flow/dynamic.cjs +53 -1
  118. package/dist/lib/flow/dynamic.d.ts +2 -2
  119. package/dist/lib/flow/dynamic.js +3 -3
  120. package/dist/lib/flow/dynamic.mjs +32 -1
  121. package/dist/lib/flow/error-boundary.cjs +43 -1
  122. package/dist/lib/flow/error-boundary.d.ts +2 -2
  123. package/dist/lib/flow/error-boundary.js +3 -3
  124. package/dist/lib/flow/error-boundary.mjs +22 -1
  125. package/dist/lib/flow/for.cjs +66 -1
  126. package/dist/lib/flow/for.d.ts +9 -9
  127. package/dist/lib/flow/for.d.ts.map +1 -1
  128. package/dist/lib/flow/for.js +2 -2
  129. package/dist/lib/flow/for.mjs +45 -1
  130. package/dist/lib/flow/index-flow.cjs +67 -1
  131. package/dist/lib/flow/index-flow.d.ts +5 -5
  132. package/dist/lib/flow/index-flow.js +4 -4
  133. package/dist/lib/flow/index-flow.mjs +46 -1
  134. package/dist/lib/flow/index.cjs +805 -1
  135. package/dist/lib/flow/index.mjs +792 -1
  136. package/dist/lib/flow/portal.cjs +538 -1
  137. package/dist/lib/flow/portal.mjs +519 -1
  138. package/dist/lib/flow/show.cjs +81 -1
  139. package/dist/lib/flow/show.d.ts +1 -1
  140. package/dist/lib/flow/show.d.ts.map +1 -1
  141. package/dist/lib/flow/show.js +4 -115
  142. package/dist/lib/flow/show.mjs +67 -1
  143. package/dist/lib/flow/style-map.cjs +43 -1
  144. package/dist/lib/flow/style-map.d.ts +3 -3
  145. package/dist/lib/flow/style-map.js +3 -3
  146. package/dist/lib/flow/style-map.mjs +22 -1
  147. package/dist/lib/flow/switch.cjs +91 -1
  148. package/dist/lib/flow/switch.d.ts +3 -3
  149. package/dist/lib/flow/switch.d.ts.map +1 -1
  150. package/dist/lib/flow/switch.js +6 -6
  151. package/dist/lib/flow/switch.mjs +70 -1
  152. package/dist/lib/flow/utils.cjs +44 -1
  153. package/dist/lib/flow/utils.d.ts +1 -1
  154. package/dist/lib/flow/utils.js +1 -1
  155. package/dist/lib/flow/utils.mjs +23 -1
  156. package/dist/lib/html.cjs +32 -1
  157. package/dist/lib/html.d.ts +6 -6
  158. package/dist/lib/html.js +5 -5
  159. package/dist/lib/html.mjs +11 -1
  160. package/dist/lib/index.cjs +3104 -1
  161. package/dist/lib/index.d.ts +0 -1
  162. package/dist/lib/index.d.ts.map +1 -1
  163. package/dist/lib/index.js +2 -3
  164. package/dist/lib/index.mjs +3097 -1
  165. package/dist/lib/shared/types.cjs +18 -1
  166. package/dist/lib/shared/types.d.ts +8 -8
  167. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  168. package/dist/version.generated.cjs +26 -1
  169. package/dist/version.generated.d.ts +1 -1
  170. package/dist/version.generated.js +2 -2
  171. package/dist/version.generated.mjs +5 -1
  172. package/package.json +7 -6
  173. package/dist/lib/jsx/control-flow/flow.cjs +0 -1
  174. package/dist/lib/jsx/control-flow/flow.d.ts +0 -2
  175. package/dist/lib/jsx/control-flow/flow.d.ts.map +0 -1
  176. package/dist/lib/jsx/control-flow/flow.js +0 -627
  177. package/dist/lib/jsx/control-flow/flow.mjs +0 -0
  178. package/dist/lib/jsx/control-flow/for-flow.cjs +0 -1
  179. package/dist/lib/jsx/control-flow/for-flow.d.ts +0 -2
  180. package/dist/lib/jsx/control-flow/for-flow.d.ts.map +0 -1
  181. package/dist/lib/jsx/control-flow/for-flow.js +0 -1
  182. package/dist/lib/jsx/control-flow/for-flow.mjs +0 -0
@@ -1 +1,519 @@
1
- import{createRoot as U,onCleanup as X}from"@fluixi/reactive/signal";import{isSignal as p}from"@fluixi/reactive/signal";function m(e){return typeof e=="function"&&e[Symbol.for("fluixi-component")]===!0}import{batch as oe,createEffect as ie,createRenderEffect as F,createRoot as re,onCleanup as W,readChildren as se,reportReactiveBinding as K,reportReactiveDirective as I,untrack as fe}from"@fluixi/reactive/signal";var C=Symbol.for("fluixi.server-node"),D=Symbol.for("fluixi.dom.server-host"),O=globalThis,A=O[D]??={server:typeof document>"u",nodes:null};function L(){return A.server}function k(){if(!A.nodes)throw new Error("[fluixi] server render ran before @fluixi/dom/server loaded");return A.nodes}function E(e){return e!=null&&e[C]===!0?!0:typeof Node<"u"&&e instanceof Node}function R(e){return e!=null&&e[C]===!0?e.nodeType===3:typeof Text<"u"&&e instanceof Text}var N={active:!1,cursor:null,parents:[]},$=null;function M(){return $}function v(e,n){return N.active&&n.parentNode===e}function _(e){let n=N.parents.lastIndexOf(e);n!==-1&&(N.parents.length=n),N.cursor=e.nextSibling}var B="__fx_at";function x(e,n=!1){if(L())return k().createText(e);if(N.active&&!n){let i=M()?.hydrateText(e);if(i)return i}return document.createTextNode(e)}var g=0,q=200;function V(e,n,i,o,c){let u=o,s=new Map;return F(()=>{K(i??n,"content",void 0,e);let r;if(m(e)&&!p(e)){if(!s.has(e)){g++;try{let t=e();s.set(e,t)}finally{g--}}for(r=s.get(e);typeof r=="function"&&p(r);)r=r()}else for(r=e();typeof r=="function"&&p(r);)r=r();{let t=0;for(;typeof r=="function"&&t++<50;)if(m(r)){if(!s.has(r)){let f=r;g++;try{let a=f();s.set(f,a)}finally{g--}}r=s.get(r)}else if(p(r))r=r();else if(r=r(),typeof r!="function"||!p(r)&&!m(r))break}g++;try{u=w(n,r,i,u,s),c(u)}finally{g--}})}function P(e,n,i,o){if(g>q)return console.error("[insert] Exceeded max call depth — possible infinite loop."),()=>null;i!==void 0&&!i&&(i=x("",!0),e.appendChild(i));let c=o??null,u=t=>Array.isArray(t)&&t.some(f=>typeof f=="function"),s=t=>typeof t=="function"?t:()=>t;if(typeof n!="function"&&!u(n)){g++;try{c=w(e,n,i,c)}finally{g--}return()=>c}let r=V(s(n),e,i,c,t=>{c=t});return()=>(r?.(),c)}function w(e,n,i,o,c){if(n==null||typeof n=="boolean")return b(e,o,i);if(typeof n=="function")for(;typeof n=="function";)n=n();if(n==null||typeof n=="boolean")return b(e,o,i);if(T(n)){let s=x("",!0);return Array.isArray(o)?o.length>0?(e.replaceChild(s,o[0]),b(e,o.slice(1),i)):y(e,s,i):o?e.replaceChild(s,o):y(e,s,i),n.then(r=>{s.parentNode===e&&w(e,r,s.nextSibling,s)}).catch(r=>{console.error("Error resolving promise in insertExpression:",r)}),s}let u=typeof n;if(u==="string"||u==="number"){if(u==="number"&&(n=String(n)),Array.isArray(o)){if(o.length===0){let r=x(n);return y(e,r,i),r}if(o.length===1&&o[0].nodeType===3)return o[0].data=n,o;o=b(e,o,i)}if(o&&R(o))return o.data=n,o;let s=x(n);return o&&o.parentNode===e?e.replaceChild(s,o):v(e,s)||y(e,s,i),s}if(E(n))return v(e,n)?(_(n),n):Array.isArray(o)?(o.length===0?y(e,n,i):o[0].parentNode===e?(e.replaceChild(n,o[0]),b(e,o.slice(1),i)):y(e,n,i),n):(o?o!==n&&(o.parentNode===e?e.replaceChild(n,o):y(e,n,i)):y(e,n,i),n);if(Array.isArray(n)){let s=[],r=Array.isArray(o)?o:o?[o]:[],t=[];h(n,s,e,i,!0,c,t);let f=G(e,r,s,i);for(let a of t){let l=P(e,a.sig,a.marker);W(()=>{b(e,l()),a.marker.parentNode===e&&e.removeChild(a.marker)})}return f}if(u==="object"&&n!==null&&typeof n=="object"){let s=n;if("type"in s&&"props"in s){let r=s;if(typeof r.type=="function"){let t=r.type(r.props||{});return w(e,t,i,o)}}}return b(e,o,i)}function h(e,n,i,o,c=!0,u,s){for(let r=0;r<e.length;r++){let t=e[r];if(!(t==null||typeof t=="boolean")){for(;typeof t=="function"&&!T(t)&&!p(t)&&!m(t)&&(t=t(),!(t==null||typeof t=="boolean")););if(!(t==null||typeof t=="boolean")){if(typeof t=="function"){let f;for(m(t)&&!p(t)?(u||(u=new Map),u.has(t)||u.set(t,t()),f=u.get(t)):f=t();typeof f=="function"&&!T(f)&&!p(f)&&!m(f);)u||(u=new Map),u.has(f)||u.set(f,f()),f=u.get(f);if(f==null||typeof f=="boolean")continue;if(typeof f=="function"){if(p(f)){if(s){let l=x("",!0);n.push(l),s.push({marker:l,sig:f});continue}let a=f();for(;typeof a=="function"&&p(a);)a=a();if(a==null||typeof a=="boolean")continue;Array.isArray(a)?h(a,n,i,o,c,u):h([a],n,i,o,c,u);continue}continue}Array.isArray(f)?h(f,n,i,o,c,u,s):h([f],n,i,o,c,u,s);continue}if(T(t)){let f=x("",!0);n.push(f),t.then(a=>{if(f.parentNode){let l=[];if(h([a],l,f.parentNode,void 0,!1,u),l.length>0){f.parentNode.replaceChild(l[0],f);for(let d=1;d<l.length;d++)f.parentNode?.insertBefore(l[d],l[d-1].nextSibling)}}}).catch(a=>console.error("Error resolving promise in array:",a));continue}if(Array.isArray(t)){h(t,n,i,o,c,u,s);continue}if(E(t)){n.push(t);continue}if(typeof t=="object"&&t!==null&&"type"in t&&"props"in t){let f=t;if(typeof f.type=="function"){let a=f.type(f.props||{});Array.isArray(a)?h(a,n,i,o,!1,u):h([a],n,i,o,!1,u);continue}}if(typeof t=="string"||typeof t=="number"){let f=String(t);if(f.trim()===""&&f!==" ")continue;n.push(x(f));continue}n.push(x(String(t)))}}}}function G(e,n,i,o){for(let l=0;l<i.length;l++){let d=i[l].parentNode;d!==null&&d!==e&&d.nodeType!==11&&(i=i.slice(),i[l]=i[l].cloneNode(!0))}let c=i.length,u=n.length,s=c,r=0,t=0,f=u>0?n[u-1].nextSibling??void 0:o,a=null;for(;r<u||t<s;){if(n[r]===i[t]){r++,t++;continue}for(;u>r&&s>t&&n[u-1]===i[s-1];)u--,s--;if(u===r){let l=s<c?t?i[t-1].nextSibling??void 0:i[s-t]:f;for(;t<s;)y(e,i[t++],l)}else if(s===t)for(;r<u;)(!a||!a.has(n[r]))&&n[r].parentNode===e&&e.removeChild(n[r]),r++;else if(n[r]===i[s-1]&&i[t]===n[u-1]){let l=n[--u].nextSibling;y(e,i[t++],n[r++].nextSibling),y(e,i[--s],l),n[u]=n[r-1]}else{if(!a){a=new Map;let d=t;for(;d<s;)a.set(i[d],d++)}let l=a.get(n[r]);if(l!=null)if(t<l&&l<s){let d=r,S=1;for(;++d<u&&d<s&&!(!a.has(n[d])||a.get(n[d])!==l+S);)S++;if(S>l-t){let j=n[r];for(;t<l;)y(e,i[t++],j)}else n[r].parentNode===e?e.replaceChild(i[t++],n[r++]):(y(e,i[t++],f),r++)}else r++;else n[r].parentNode===e&&e.removeChild(n[r]),r++}}return i}function b(e,n,i){if(n)if(Array.isArray(n))for(let o=0;o<n.length;o++)n[o].parentNode===e&&e.removeChild(n[o]);else n.parentNode===e&&e.removeChild(n);return null}function y(e,n,i){N.active&&n.parentNode===e||(i&&i.parentNode===e?e.insertBefore(n,i):e.appendChild(n))}function H(e,n){if(!e)return;let i=e[B]?.name;if(I(n,"ref",i||typeof e=="function"&&e.name||"ref",e),E(e)){let o=n,c=e;if(!o)return;typeof o=="function"?o(c):typeof o=="object"&&"current"in o&&(o.current=c);return}typeof e=="function"?e(n):typeof e=="object"&&"current"in e&&(e.current=n)}function T(e){return e!=null&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"||e instanceof Promise}function ye(e){let n=()=>e.mount?typeof e.mount=="function"?e.mount():e.mount:document.body,i,o;return U(c=>{i=c,o=document.createElement("div"),o.style.display="contents",n().appendChild(o),P(o,e.children)&&H(e.ref,o)}),X(()=>{i(),o.remove()}),null}export{ye as Portal};
1
+ // src/lib/flow/portal.ts
2
+ import { createRoot as createRoot2, onCleanup as onCleanup2 } from "@fluixi/reactive/signal";
3
+
4
+ // src/lib/dom/runtime.ts
5
+ import {
6
+ isSignal
7
+ } from "@fluixi/reactive/signal";
8
+
9
+ // src/lib/component/modifiers.ts
10
+ function isComponent(value) {
11
+ return typeof value === "function" && value[/* @__PURE__ */ Symbol.for("fluixi-component")] === true;
12
+ }
13
+
14
+ // src/lib/dom/runtime.ts
15
+ import { batch, createEffect, createRenderEffect, createRoot, onCleanup, readChildren, reportReactiveBinding, reportReactiveDirective, untrack } from "@fluixi/reactive/signal";
16
+
17
+ // src/lib/dom/server/host.ts
18
+ var SERVER_NODE = /* @__PURE__ */ Symbol.for("fluixi.server-node");
19
+ var STATE = /* @__PURE__ */ Symbol.for("fluixi.dom.server-host");
20
+ var realm = globalThis;
21
+ var state = realm[STATE] ??= {
22
+ server: typeof document === "undefined",
23
+ nodes: null
24
+ };
25
+ function isServer() {
26
+ return state.server;
27
+ }
28
+ function getServerNodes() {
29
+ if (!state.nodes) {
30
+ throw new Error("[fluixi] server render ran before @fluixi/dom/server loaded");
31
+ }
32
+ return state.nodes;
33
+ }
34
+ function isDomNode(x) {
35
+ if (x != null && x[SERVER_NODE] === true) return true;
36
+ return typeof Node !== "undefined" && x instanceof Node;
37
+ }
38
+ function isDomText(x) {
39
+ if (x != null && x[SERVER_NODE] === true) return x.nodeType === 3;
40
+ return typeof Text !== "undefined" && x instanceof Text;
41
+ }
42
+
43
+ // src/lib/dom/hydration-state.ts
44
+ var hydration = {
45
+ active: false,
46
+ cursor: null,
47
+ parents: []
48
+ };
49
+ var _walker = null;
50
+ function getHydrationWalker() {
51
+ return _walker;
52
+ }
53
+ function isAdopted(parent, node) {
54
+ return hydration.active && node.parentNode === parent;
55
+ }
56
+ function ascendPast(node) {
57
+ const idx = hydration.parents.lastIndexOf(node);
58
+ if (idx !== -1) hydration.parents.length = idx;
59
+ hydration.cursor = node.nextSibling;
60
+ }
61
+
62
+ // src/lib/dom/runtime.ts
63
+ var HOLE_TAG = "__fx_at";
64
+ function createTextNode(value, anchor = false) {
65
+ if (isServer()) return getServerNodes().createText(value);
66
+ if (hydration.active && !anchor) {
67
+ const node = getHydrationWalker()?.hydrateText(value);
68
+ if (node) return node;
69
+ }
70
+ return document.createTextNode(value);
71
+ }
72
+ var _insertDepth = 0;
73
+ var MAX_INSERT_DEPTH = 200;
74
+ function _createInsertEffect(getAccessor, parent, marker, initialCurrent, setCurrent) {
75
+ let current = initialCurrent;
76
+ const componentCache = /* @__PURE__ */ new Map();
77
+ return createRenderEffect(() => {
78
+ reportReactiveBinding(marker ?? parent, "content", void 0, getAccessor);
79
+ let value;
80
+ if (isComponent(getAccessor) && !isSignal(getAccessor)) {
81
+ if (!componentCache.has(getAccessor)) {
82
+ _insertDepth++;
83
+ try {
84
+ const inst = getAccessor();
85
+ componentCache.set(getAccessor, inst);
86
+ } finally {
87
+ _insertDepth--;
88
+ }
89
+ }
90
+ value = componentCache.get(getAccessor);
91
+ while (typeof value === "function" && isSignal(value)) value = value();
92
+ } else {
93
+ value = getAccessor();
94
+ while (typeof value === "function" && isSignal(value)) {
95
+ value = value();
96
+ }
97
+ }
98
+ {
99
+ let chainDepth = 0;
100
+ while (typeof value === "function" && chainDepth++ < 50) {
101
+ if (isComponent(value)) {
102
+ if (!componentCache.has(value)) {
103
+ const thunk = value;
104
+ _insertDepth++;
105
+ try {
106
+ const inst = thunk();
107
+ componentCache.set(thunk, inst);
108
+ } finally {
109
+ _insertDepth--;
110
+ }
111
+ }
112
+ value = componentCache.get(value);
113
+ } else if (isSignal(value)) {
114
+ value = value();
115
+ } else {
116
+ value = value();
117
+ if (typeof value !== "function" || !isSignal(value) && !isComponent(value)) break;
118
+ }
119
+ }
120
+ }
121
+ _insertDepth++;
122
+ try {
123
+ current = insertExpression(parent, value, marker, current, componentCache);
124
+ setCurrent(current);
125
+ } finally {
126
+ _insertDepth--;
127
+ }
128
+ });
129
+ }
130
+ function insert(parent, accessor, marker, init) {
131
+ if (_insertDepth > MAX_INSERT_DEPTH) {
132
+ console.error("[insert] Exceeded max call depth, possible infinite loop.");
133
+ return () => null;
134
+ }
135
+ if (marker !== void 0 && !marker) {
136
+ marker = createTextNode("", true);
137
+ parent.appendChild(marker);
138
+ }
139
+ let current = init ?? null;
140
+ const isReactiveArray = (element) => {
141
+ return Array.isArray(element) && element.some((v) => typeof v === "function");
142
+ };
143
+ const normalizeAccessor = (accessor2) => {
144
+ if (typeof accessor2 === "function") return accessor2;
145
+ return () => accessor2;
146
+ };
147
+ if (typeof accessor !== "function" && !isReactiveArray(accessor)) {
148
+ _insertDepth++;
149
+ try {
150
+ current = insertExpression(parent, accessor, marker, current);
151
+ } finally {
152
+ _insertDepth--;
153
+ }
154
+ return () => current;
155
+ }
156
+ const dispose = _createInsertEffect(
157
+ normalizeAccessor(accessor),
158
+ parent,
159
+ marker,
160
+ current,
161
+ (v) => {
162
+ current = v;
163
+ }
164
+ );
165
+ return () => {
166
+ dispose?.();
167
+ return current;
168
+ };
169
+ }
170
+ function insertExpression(parent, value, marker, current, componentCache) {
171
+ if (value == null || typeof value === "boolean") {
172
+ return cleanChildren(parent, current, marker);
173
+ }
174
+ if (typeof value === "function") {
175
+ while (typeof value === "function") {
176
+ value = value();
177
+ }
178
+ }
179
+ if (value == null || typeof value === "boolean") {
180
+ return cleanChildren(parent, current, marker);
181
+ }
182
+ if (isPromise(value)) {
183
+ const placeholder = createTextNode("", true);
184
+ if (Array.isArray(current)) {
185
+ if (current.length > 0) {
186
+ parent.replaceChild(placeholder, current[0]);
187
+ cleanChildren(parent, current.slice(1), marker);
188
+ } else {
189
+ insertBefore(parent, placeholder, marker);
190
+ }
191
+ } else if (current) {
192
+ parent.replaceChild(placeholder, current);
193
+ } else {
194
+ insertBefore(parent, placeholder, marker);
195
+ }
196
+ value.then((resolved) => {
197
+ if (placeholder.parentNode === parent) {
198
+ insertExpression(parent, resolved, placeholder.nextSibling, placeholder);
199
+ }
200
+ }).catch((err) => {
201
+ console.error("Error resolving promise in insertExpression:", err);
202
+ });
203
+ return placeholder;
204
+ }
205
+ const t = typeof value;
206
+ if (t === "string" || t === "number") {
207
+ if (t === "number") value = String(value);
208
+ if (Array.isArray(current)) {
209
+ if (current.length === 0) {
210
+ const node2 = createTextNode(value);
211
+ insertBefore(parent, node2, marker);
212
+ return node2;
213
+ }
214
+ if (current.length === 1 && current[0].nodeType === 3) {
215
+ current[0].data = value;
216
+ return current;
217
+ }
218
+ current = cleanChildren(parent, current, marker);
219
+ }
220
+ if (current && isDomText(current)) {
221
+ current.data = value;
222
+ return current;
223
+ }
224
+ const node = createTextNode(value);
225
+ if (current && current.parentNode === parent) {
226
+ parent.replaceChild(node, current);
227
+ } else if (!isAdopted(parent, node)) {
228
+ insertBefore(parent, node, marker);
229
+ }
230
+ return node;
231
+ }
232
+ if (isDomNode(value)) {
233
+ if (isAdopted(parent, value)) {
234
+ ascendPast(value);
235
+ return value;
236
+ }
237
+ if (Array.isArray(current)) {
238
+ if (current.length === 0) {
239
+ insertBefore(parent, value, marker);
240
+ } else if (current[0].parentNode === parent) {
241
+ parent.replaceChild(value, current[0]);
242
+ cleanChildren(parent, current.slice(1), marker);
243
+ } else {
244
+ insertBefore(parent, value, marker);
245
+ }
246
+ return value;
247
+ }
248
+ if (!current) {
249
+ insertBefore(parent, value, marker);
250
+ } else if (current !== value) {
251
+ if (current.parentNode === parent) {
252
+ parent.replaceChild(value, current);
253
+ } else {
254
+ insertBefore(parent, value, marker);
255
+ }
256
+ }
257
+ return value;
258
+ }
259
+ if (Array.isArray(value)) {
260
+ const array = [];
261
+ const currentArray = Array.isArray(current) ? current : current ? [current] : [];
262
+ const reactiveSlots = [];
263
+ flattenArray(value, array, parent, marker, true, componentCache, reactiveSlots);
264
+ const reconciled = reconcileArrays(parent, currentArray, array, marker);
265
+ for (const slot of reactiveSlots) {
266
+ const disposeSlot = insert(parent, slot.sig, slot.marker);
267
+ onCleanup(() => {
268
+ cleanChildren(parent, disposeSlot());
269
+ if (slot.marker.parentNode === parent) parent.removeChild(slot.marker);
270
+ });
271
+ }
272
+ return reconciled;
273
+ }
274
+ if (t === "object" && value !== null && typeof value === "object") {
275
+ const objValue = value;
276
+ if ("type" in objValue && "props" in objValue) {
277
+ const jsxValue = objValue;
278
+ if (typeof jsxValue.type === "function") {
279
+ const result = jsxValue.type(jsxValue.props || {});
280
+ return insertExpression(parent, result, marker, current);
281
+ }
282
+ }
283
+ }
284
+ return cleanChildren(parent, current, marker);
285
+ }
286
+ function flattenArray(arr, result, parent, marker, track = true, componentCache, reactiveSlots) {
287
+ for (let i = 0; i < arr.length; i++) {
288
+ let item = arr[i];
289
+ if (item == null || typeof item === "boolean") continue;
290
+ while (typeof item === "function" && !isPromise(item) && !isSignal(item) && !isComponent(item)) {
291
+ item = item();
292
+ if (item == null || typeof item === "boolean") break;
293
+ }
294
+ if (item == null || typeof item === "boolean") continue;
295
+ if (typeof item === "function") {
296
+ let resolved;
297
+ if (isComponent(item) && !isSignal(item)) {
298
+ if (!componentCache) componentCache = /* @__PURE__ */ new Map();
299
+ if (!componentCache.has(item)) componentCache.set(item, item());
300
+ resolved = componentCache.get(item);
301
+ } else {
302
+ resolved = item();
303
+ }
304
+ while (typeof resolved === "function" && !isPromise(resolved) && !isSignal(resolved) && !isComponent(resolved)) {
305
+ if (!componentCache) componentCache = /* @__PURE__ */ new Map();
306
+ if (!componentCache.has(resolved)) componentCache.set(resolved, resolved());
307
+ resolved = componentCache.get(resolved);
308
+ }
309
+ if (resolved == null || typeof resolved === "boolean") continue;
310
+ if (typeof resolved === "function") {
311
+ if (isSignal(resolved)) {
312
+ if (reactiveSlots) {
313
+ const slot = createTextNode("", true);
314
+ result.push(slot);
315
+ reactiveSlots.push({ marker: slot, sig: resolved });
316
+ continue;
317
+ }
318
+ let val = resolved();
319
+ while (typeof val === "function" && isSignal(val)) val = val();
320
+ if (val == null || typeof val === "boolean") continue;
321
+ if (Array.isArray(val)) {
322
+ flattenArray(val, result, parent, marker, track, componentCache);
323
+ } else flattenArray([val], result, parent, marker, track, componentCache);
324
+ continue;
325
+ }
326
+ continue;
327
+ }
328
+ if (Array.isArray(resolved)) flattenArray(resolved, result, parent, marker, track, componentCache, reactiveSlots);
329
+ else flattenArray([resolved], result, parent, marker, track, componentCache, reactiveSlots);
330
+ continue;
331
+ }
332
+ if (isPromise(item)) {
333
+ const placeholder = createTextNode("", true);
334
+ result.push(placeholder);
335
+ item.then((resolved) => {
336
+ if (placeholder.parentNode) {
337
+ const tempNodes = [];
338
+ flattenArray([resolved], tempNodes, placeholder.parentNode, void 0, false, componentCache);
339
+ if (tempNodes.length > 0) {
340
+ placeholder.parentNode.replaceChild(tempNodes[0], placeholder);
341
+ for (let j = 1; j < tempNodes.length; j++) {
342
+ placeholder.parentNode?.insertBefore(tempNodes[j], tempNodes[j - 1].nextSibling);
343
+ }
344
+ }
345
+ }
346
+ }).catch((err) => console.error("Error resolving promise in array:", err));
347
+ continue;
348
+ }
349
+ if (Array.isArray(item)) {
350
+ flattenArray(item, result, parent, marker, track, componentCache, reactiveSlots);
351
+ continue;
352
+ }
353
+ if (isDomNode(item)) {
354
+ result.push(item);
355
+ continue;
356
+ }
357
+ if (typeof item === "object" && item !== null && "type" in item && "props" in item) {
358
+ const jsxItem = item;
359
+ if (typeof jsxItem.type === "function") {
360
+ const resolved = jsxItem.type(jsxItem.props || {});
361
+ if (Array.isArray(resolved)) flattenArray(resolved, result, parent, marker, false, componentCache);
362
+ else flattenArray([resolved], result, parent, marker, false, componentCache);
363
+ continue;
364
+ }
365
+ }
366
+ if (typeof item === "string" || typeof item === "number") {
367
+ const str = String(item);
368
+ if (str.trim() === "" && str !== " ") continue;
369
+ result.push(createTextNode(str));
370
+ continue;
371
+ }
372
+ result.push(createTextNode(String(item)));
373
+ }
374
+ }
375
+ function reconcileArrays(parent, a, b, marker) {
376
+ for (let i = 0; i < b.length; i++) {
377
+ const owner = b[i].parentNode;
378
+ if (owner !== null && owner !== parent && owner.nodeType !== 11) {
379
+ b = b.slice();
380
+ b[i] = b[i].cloneNode(true);
381
+ }
382
+ }
383
+ let bLength = b.length, aEnd = a.length, bEnd = bLength, aStart = 0, bStart = 0, after = aEnd > 0 ? a[aEnd - 1].nextSibling ?? void 0 : marker, map = null;
384
+ while (aStart < aEnd || bStart < bEnd) {
385
+ if (a[aStart] === b[bStart]) {
386
+ aStart++;
387
+ bStart++;
388
+ continue;
389
+ }
390
+ while (aEnd > aStart && bEnd > bStart && a[aEnd - 1] === b[bEnd - 1]) {
391
+ aEnd--;
392
+ bEnd--;
393
+ }
394
+ if (aEnd === aStart) {
395
+ const node = bEnd < bLength ? bStart ? b[bStart - 1].nextSibling ?? void 0 : b[bEnd - bStart] : after;
396
+ while (bStart < bEnd) insertBefore(parent, b[bStart++], node);
397
+ } else if (bEnd === bStart) {
398
+ while (aStart < aEnd) {
399
+ if ((!map || !map.has(a[aStart])) && a[aStart].parentNode === parent)
400
+ parent.removeChild(a[aStart]);
401
+ aStart++;
402
+ }
403
+ } else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {
404
+ const node = a[--aEnd].nextSibling;
405
+ insertBefore(parent, b[bStart++], a[aStart++].nextSibling);
406
+ insertBefore(parent, b[--bEnd], node);
407
+ a[aEnd] = a[aStart - 1];
408
+ } else {
409
+ if (!map) {
410
+ map = /* @__PURE__ */ new Map();
411
+ let i = bStart;
412
+ while (i < bEnd) map.set(b[i], i++);
413
+ }
414
+ const index = map.get(a[aStart]);
415
+ if (index != null) {
416
+ if (bStart < index && index < bEnd) {
417
+ let i = aStart, sequence = 1;
418
+ while (++i < aEnd && i < bEnd) {
419
+ if (!map.has(a[i]) || map.get(a[i]) !== index + sequence) break;
420
+ sequence++;
421
+ }
422
+ if (sequence > index - bStart) {
423
+ const node = a[aStart];
424
+ while (bStart < index) insertBefore(parent, b[bStart++], node);
425
+ } else {
426
+ if (a[aStart].parentNode === parent) {
427
+ parent.replaceChild(b[bStart++], a[aStart++]);
428
+ } else {
429
+ insertBefore(parent, b[bStart++], after);
430
+ aStart++;
431
+ }
432
+ }
433
+ } else {
434
+ aStart++;
435
+ }
436
+ } else {
437
+ if (a[aStart].parentNode === parent) parent.removeChild(a[aStart]);
438
+ aStart++;
439
+ }
440
+ }
441
+ }
442
+ return b;
443
+ }
444
+ function cleanChildren(parent, current, marker) {
445
+ if (current) {
446
+ if (Array.isArray(current)) {
447
+ for (let i = 0; i < current.length; i++) {
448
+ if (current[i].parentNode === parent) parent.removeChild(current[i]);
449
+ }
450
+ } else if (current.parentNode === parent) {
451
+ parent.removeChild(current);
452
+ }
453
+ }
454
+ return null;
455
+ }
456
+ function insertBefore(parent, node, marker) {
457
+ if (hydration.active && node.parentNode === parent) return;
458
+ if (marker) {
459
+ if (marker.parentNode === parent) {
460
+ parent.insertBefore(node, marker);
461
+ } else {
462
+ parent.appendChild(node);
463
+ }
464
+ } else {
465
+ parent.appendChild(node);
466
+ }
467
+ }
468
+ function handleRef(ref, element) {
469
+ if (!ref) return;
470
+ const held = ref[HOLE_TAG]?.name;
471
+ reportReactiveDirective(
472
+ element,
473
+ "ref",
474
+ held || (typeof ref === "function" ? ref.name || "ref" : "ref"),
475
+ ref
476
+ );
477
+ if (isDomNode(ref)) {
478
+ const actualRef = element;
479
+ const actualElement = ref;
480
+ if (!actualRef) return;
481
+ if (typeof actualRef === "function") actualRef(actualElement);
482
+ else if (typeof actualRef === "object" && "current" in actualRef) actualRef.current = actualElement;
483
+ return;
484
+ }
485
+ if (typeof ref === "function") ref(element);
486
+ else if (typeof ref === "object" && "current" in ref) ref.current = element;
487
+ }
488
+ function isPromise(v) {
489
+ return v != null && (typeof v === "object" || typeof v === "function") && typeof v.then === "function" || v instanceof Promise;
490
+ }
491
+
492
+ // src/lib/flow/portal.ts
493
+ function Portal(props) {
494
+ const getMount = () => {
495
+ if (!props.mount) return document.body;
496
+ return typeof props.mount === "function" ? props.mount() : props.mount;
497
+ };
498
+ let dispose;
499
+ let container;
500
+ createRoot2((d) => {
501
+ dispose = d;
502
+ container = document.createElement("div");
503
+ container.style.display = "contents";
504
+ const target = getMount();
505
+ target.appendChild(container);
506
+ const inserted = insert(container, props.children);
507
+ if (inserted) {
508
+ handleRef(props.ref, container);
509
+ }
510
+ });
511
+ onCleanup2(() => {
512
+ dispose();
513
+ container.remove();
514
+ });
515
+ return null;
516
+ }
517
+ export {
518
+ Portal
519
+ };
@@ -1 +1,81 @@
1
- "use strict";var l=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var w=(e,n)=>{for(var t in n)l(e,t,{get:n[t],enumerable:!0})},m=(e,n,t,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of h(n))!p.call(e,o)&&o!==t&&l(e,o,{get:()=>n[o],enumerable:!(c=y(n,o))||c.enumerable});return e};var A=e=>m(l({},"__esModule",{value:!0}),e);var S={};w(S,{Show:()=>b});module.exports=A(S);var r=require("@fluixi/reactive/signal");function u(e){return()=>{let n=e();return typeof n=="function"?n():n}}function T(e){return!e||typeof e!="object"?!1:!!(typeof e._$litType$<"u"||typeof e._$litDirective$<"u"||Array.isArray(e.strings)&&Array.isArray(e.values))}function b(e){let n=u(()=>e.when),t=(0,r.createMemo)(n,void 0,{name:"Show.when"}),c=(0,r.createMemo)(t,void 0,{name:"Show.cond"}),o=(0,r.getOwner)(),s=null,f=null,d=a=>{a!==f&&(s&&(0,r.disposeScope)(s),s=(0,r.createChildOwner)(o),f=a)};return(0,r.createMemo)(()=>{let a=c();return d(a?"when":"fallback"),(0,r.runWithOwner)(s,()=>{if(a){let i=e.children;return typeof i=="function"&&!T(i)?typeof t=="function"?(0,r.untrack)(()=>(0,r.untrack)(t)?i(t()):e.fallback):i(t):i}return e.fallback});return e.fallback??null},void 0,{name:"Show.result"})}
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/lib/flow/show.ts
21
+ var show_exports = {};
22
+ __export(show_exports, {
23
+ Show: () => Show
24
+ });
25
+ module.exports = __toCommonJS(show_exports);
26
+ var import_signal = require("@fluixi/reactive/signal");
27
+
28
+ // src/lib/flow/utils.ts
29
+ function resolveReactiveProp(read) {
30
+ return () => {
31
+ const value = read();
32
+ return typeof value === "function" ? value() : value;
33
+ };
34
+ }
35
+ function isLitResult(value) {
36
+ if (!value || typeof value !== "object") return false;
37
+ return !!(typeof value["_$litType$"] !== "undefined" || typeof value["_$litDirective$"] !== "undefined" || Array.isArray(value.strings) && Array.isArray(value.values));
38
+ }
39
+
40
+ // src/lib/flow/show.ts
41
+ function Show(props) {
42
+ const when = resolveReactiveProp(() => props.when);
43
+ const value = (0, import_signal.createMemo)(when, void 0, { name: "Show.when" });
44
+ const cond = (0, import_signal.createMemo)(value, void 0, { name: "Show.cond" });
45
+ const parentOwner = (0, import_signal.getOwner)();
46
+ let branchScope = null;
47
+ let shown = null;
48
+ const enterBranch = (next) => {
49
+ if (next === shown) return;
50
+ if (branchScope) (0, import_signal.disposeScope)(branchScope);
51
+ branchScope = (0, import_signal.createChildOwner)(parentOwner);
52
+ shown = next;
53
+ };
54
+ return (0, import_signal.createMemo)(
55
+ () => {
56
+ const evaluate = cond();
57
+ enterBranch(evaluate ? "when" : "fallback");
58
+ return (0, import_signal.runWithOwner)(branchScope, () => {
59
+ if (evaluate) {
60
+ let children = props.children;
61
+ if (typeof children === "function" && !isLitResult(children)) {
62
+ if (typeof value === "function") {
63
+ return (0, import_signal.untrack)(() => {
64
+ if (!(0, import_signal.untrack)(value)) return props.fallback;
65
+ return children(value());
66
+ });
67
+ }
68
+ return children(value);
69
+ }
70
+ return children;
71
+ }
72
+ return props.fallback;
73
+ });
74
+ return props.fallback ?? null;
75
+ },
76
+ void 0,
77
+ // Not `Show`: the compiler already marks the memo it wraps the component in with that,
78
+ // and two cards of the same name in one graph is worse than a longer one.
79
+ { name: "Show.result" }
80
+ );
81
+ }
@@ -21,7 +21,7 @@ export interface ShowProps<T, W = any> {
21
21
  /**
22
22
  * Conditionally renders content based on a reactive condition.
23
23
  *
24
- * Returns a memo works in both JSX and `html` templates.
24
+ * Returns a memo: works in both JSX and `html` templates.
25
25
  *
26
26
  * @example JSX
27
27
  * <Show when={isLoggedIn()} fallback={<Login />}>
@@ -1 +1 @@
1
- {"version":3,"file":"show.d.ts","sourceRoot":"","sources":["../../../src/lib/flow/show.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,QAAQ,EAAc,MAAM,yBAAyB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,CAAC,SAAS,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AAGtG,MAAM,WAAW,SAAS,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG;IACnC,yDAAyD;IACzD,IAAI,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,CAAC;IACjD,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf;;;;;;OAMG;IACH,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;IAC3C,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED;;;;;;;;;;;;GAYG;AAcH,wBAAgB,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,CAoGhD"}
1
+ {"version":3,"file":"show.d.ts","sourceRoot":"","sources":["../../../src/lib/flow/show.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,QAAQ,EAAc,MAAM,yBAAyB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,CAAC,SAAS,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AAGtG,MAAM,WAAW,SAAS,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG;IACnC,yDAAyD;IACzD,IAAI,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,CAAC;IACjD,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf;;;;;;OAMG;IACH,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;IAC3C,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED;;;;;;;;;;;;GAYG;AAEH,wBAAgB,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,CAgEhD"}