@jxsuite/compiler 0.28.4 → 0.29.0

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/dist/compiler.js CHANGED
@@ -1,82 +1,83 @@
1
- import{createRequire as L6}from"node:module";var K6=Object.create;var{getPrototypeOf:V6,defineProperty:E1,getOwnPropertyNames:M6}=Object;var H6=Object.prototype.hasOwnProperty;function F6(Z){return this[Z]}var B6,$6,z7=(Z,X,z)=>{var q=Z!=null&&typeof Z==="object";if(q){var G=X?B6??=new WeakMap:$6??=new WeakMap,Q=G.get(Z);if(Q)return Q}z=Z!=null?K6(V6(Z)):{};let W=X||!Z||!Z.__esModule?E1(z,"default",{value:Z,enumerable:!0}):z;for(let Y of M6(Z))if(!H6.call(W,Y))E1(W,Y,{get:F6.bind(Z,Y),enumerable:!0});if(q)G.set(Z,W);return W};var q7=(Z,X)=>()=>(X||Z((X={exports:{}}).exports,X),X.exports);var D6=(Z)=>Z;function A6(Z,X){this[Z]=D6.bind(null,X)}var k8=(Z,X)=>{for(var z in X)E1(Z,z,{get:X[z],enumerable:!0,configurable:!0,set:A6.bind(X,z)})};var T=(Z,X)=>()=>(Z&&(X=Z(Z=0)),X);var J0=L6(import.meta.url);function S1(Z){let X=Z.$map;return X&&typeof X==="object"?X:void 0}function w0(Z){return g8.has(Z)}function a(Z,X,z,q){if(Z===null||Z===void 0)return Z;if(typeof Z==="object"&&!Array.isArray(Z)&&"operator"in Z)return H0(Z,X,z,q);if(typeof Z==="object"&&!Array.isArray(Z)&&"$ref"in Z)return w6(Z.$ref,X,z,q);if(Array.isArray(Z))return Z.map((G)=>a(G,X,z,q));return Z}function w6(Z,X,z,q){if(Z==="$reduce/acc")return q?.acc;if(Z.startsWith("$reduce/"))return q?.acc;if(Z.startsWith("event#/")){let G=Z.slice(7);return P0(z,G)}if(Z.startsWith("$map/")){let G=Z.split("/"),[,Q]=G,W,Y=S1(X);if(Q==="item")W=q?.item??Y?.item??X["$map/item"];else if(Q==="index")W=q?.index??Y?.index??X["$map/index"];else W=Y?.[Q]??X[`$map/${Q}`];return G.length>2?P0(W,G.slice(2).join("/")):W}if(Z.startsWith("#/state/")){let G=Z.slice(8),Q=G.indexOf("/");if(Q===-1)return X[G];return P0(X[G.slice(0,Q)],G.slice(Q+1))}if(Z.startsWith("parent#/"))return X[Z.slice(8)];if(Z.startsWith("window#/"))return P0(globalThis.window,Z.slice(8));if(Z.startsWith("document#/"))return P0(globalThis.document,Z.slice(10));return X[Z]??null}function O6(Z,X,z,q){if(Z.startsWith("$map/")){let G=Z.split("/"),[,Q]=G,W,Y=S1(X);if(Q==="item")W=q?.item??Y?.item??X["$map/item"];else if(Q==="index")W=q?.index??Y?.index??X["$map/index"];else W=Y?.[Q]??X[`$map/${Q}`];if(G.length>2){let J=G.slice(2),U=J.pop(),K=J.length>0?P0(W,J.join("/")):W;return{key:U,obj:K}}return{key:Q==="item"?"$map/item":"$map/index",obj:S1(X)??X}}if(Z.startsWith("#/state/")){let G=Z.slice(8);if(G.indexOf("/")===-1)return{key:G,obj:X};let W=G.split("/"),Y=W.pop(),J=X;for(let U of W)J=J[U];return{key:Y,obj:J}}return{key:Z,obj:X}}function H0(Z,X,z,q){let{operator:G,target:Q,value:W,initial:Y}=Z;if(!I6.has(G))throw Error(`$expression: unknown operator "${G}"`);if(k1.has(G)&&!("value"in Z)){let J=a(Q,X,z,q);if(G==="!")return!J;if(G==="-")return-J}if(b1.has(G)){let J=a(Q,X,z,q),U=a(W,X,z,q);switch(G){case"+":return J+U;case"-":return J-U;case"*":return J*U;case"/":return J/U;case"%":return J%U;case"===":return J===U;case"!==":return J!==U;case"<":return J<U;case"<=":return J<=U;case">":return J>U;case">=":return J>=U;case"&&":return J&&U;case"||":return J||U;default:break}}if(v8.has(G)){let J=a(W,X,z,q),{obj:U,key:K}=O6(Q.$ref,X,z,q);switch(G){case"=":{U[K]=J;break}case"+=":{let V=U[K];U[K]=V+J;break}case"-=":{let V=U[K];U[K]=V-J;break}case"*=":{let V=U[K];U[K]=V*J;break}case"/=":{let V=U[K];U[K]=V/J;break}default:break}return}if(y8.has(G)){let J=a(Q,X,z,q);switch(G){case"push":return J.push(a(W,X,z,q));case"unshift":return J.unshift(a(W,X,z,q));case"pop":return J.pop();case"shift":return J.shift();case"splice":{let U=a(W,X,z,q);return J.splice(...U)}default:break}}if(g1.has(G)){let J=a(Q,X,z,q);if(G==="reduce"){let U=a(Y,X,z,q);for(let[K,V]of J.entries())U=H0(W,X,z,{acc:U,index:K,item:V});return U}if(G==="map")return J.map((U,K)=>H0(W,X,z,{...q,index:K,item:U}));if(G==="filter")return J.filter((U,K)=>H0(W,X,z,{...q,index:K,item:U}))}return}function i(Z,X){if(Z===null)return"null";if(Z===void 0)return"undefined";if(typeof Z==="object"&&!Array.isArray(Z)&&"operator"in Z)return n(Z,X);if(typeof Z==="object"&&!Array.isArray(Z)&&"$ref"in Z)return m8(Z.$ref,X);if(Array.isArray(Z))return Z.map((z)=>i(z,X)).join(", ");return JSON.stringify(Z)}function m8(Z,X){let z=X.statePrefix??"state",q=X.eventParam??"event";if(Z==="$reduce/acc")return"_acc";if(Z.startsWith("$reduce/"))return"_acc";if(Z.startsWith("event#/")){let G=Z.slice(7);return`${q}.${G.replaceAll("/",".")}`}if(Z.startsWith("$map/")){let G=Z.split("/"),[,Q]=G;if(Q==="item")return G.length>2?`_item.${G.slice(2).join(".")}`:"_item";if(Q==="index")return"_index";return`_${Q}`}if(Z.startsWith("#/state/")){let G=Z.slice(8);return`${z}.${G.replaceAll("/",".")}`}if(Z.startsWith("parent#/"))return`${z}.${Z.slice(8)}`;if(Z.startsWith("window#/"))return`window.${Z.slice(8).replaceAll("/",".")}`;if(Z.startsWith("document#/"))return`document.${Z.slice(10).replaceAll("/",".")}`;return`${z}.${Z}`}function b8(Z,X){if(typeof Z==="object"&&Z!==null&&"$ref"in Z)return m8(Z.$ref,X);return i(Z,X)}function n(Z,X={}){let{operator:z,target:q,value:G,initial:Q}=Z;if(k1.has(z)&&!("value"in Z)){let W=i(q,X);if(z==="!")return`!(${W})`;if(z==="-")return`-(${W})`}if(b1.has(z)){let W=i(q,X),Y=i(G,X);return`(${W} ${z} ${Y})`}if(v8.has(z)){let W=b8(q,X),Y=i(G,X);return`${W} ${z} ${Y}`}if(y8.has(z)){let W=b8(q,X);switch(z){case"push":return`${W}.push(${i(G,X)})`;case"unshift":return`${W}.unshift(${i(G,X)})`;case"pop":return`${W}.pop()`;case"shift":return`${W}.shift()`;case"splice":{let Y=Array.isArray(G)?G.map((J)=>i(J,X)).join(", "):i(G,X);return`${W}.splice(${Y})`}default:break}}if(g1.has(z)){let W=i(q,X),Y=n(G,X);if(z==="reduce"){let J=i(Q,X);return`${W}.reduce((_acc, _item, _index) => ${Y}, ${J})`}if(z==="map")return`${W}.map((_item, _index) => ${Y})`;if(z==="filter")return`${W}.filter((_item, _index) => ${Y})`}return"undefined"}function P0(Z,X){let z=Z;for(let q of X.split(/[./]/))z=z?.[q];return z}var g8,k1,b1,v8,y8,g1,I6;var v1=T(()=>{g8=new Set(["=","+=","-=","*=","/=","push","pop","shift","unshift","splice"]),k1=new Set(["!","-"]),b1=new Set(["+","-","*","/","%","===","!==","<","<=",">",">=","&&","||"]),v8=new Set(["=","+=","-=","*=","/="]),y8=new Set(["push","pop","shift","unshift","splice"]),g1=new Set(["reduce","map","filter"]),I6=new Set([...g8,...k1,...b1,...g1])});function p(Z){return typeof Z==="object"&&Z!==null&&!Array.isArray(Z)}function t(Z){return p(Z)&&typeof Z.$ref==="string"}function Y0(Z){return p(Z)&&Z.$prototype==="Function"}function e(Z){return p(Z)&&p(Z.$expression)}function l0(Z){return p(Z)&&typeof Z.$prototype==="string"&&Z.$prototype!=="Function"}function y1(Z){return p(Z)&&Z.timing==="server"&&typeof Z.$src==="string"&&typeof Z.$export==="string"&&!Z.$prototype}function h8(Z){return p(Z)&&!Z.$prototype&&!Z.$expression&&"default"in Z}function F0(Z){if(!p(Z))return!1;for(let X of Object.keys(Z))if(!u8.has(X))return!1;return!0}function i0(Z){return p(Z)&&Z.$prototype==="Array"}function f8(Z){return p(Z)&&Z.$prototype==="Class"}function j(Z){return typeof Z==="string"&&Z.includes("${")}function B0(Z){if(!Z)return[];return Z.map((X)=>typeof X==="string"?X:X.name)}var u8;var $0=T(()=>{u8=new Set(["type","enum","minimum","maximum","minLength","maxLength","pattern","format","items","properties","required","description","title","$comment"])});function T6(Z){return Z.startsWith(":")||Z.startsWith(".")||Z.startsWith("&")||Z.startsWith("[")}function d(Z){return Z.replaceAll(/[A-Z]/g,(X)=>`-${X.toLowerCase()}`)}function h(Z){return Object.entries(Z).filter(([X,z])=>!T6(X)&&(z===null||typeof z!=="object")).map(([X,z])=>`${d(X)}: ${z}`).join("; ")}var O0;var W1=T(()=>{v1();$0();O0=new Set(["$schema","$id","$defs","state","$ref","$props","$elements","$title","$description","$switch","$prototype","$src","$export","$media","$map","timing","default","description","body","parameters","arguments","name","tagName","children","style","attributes","items","map","filter","sort","cases","observedAttributes"])});function u1(Z){if(!Z||typeof Z!=="object")return!1;if(Z.state)for(let[X,z]of Object.entries(Z.state)){if(X==="$site"||X==="$page")continue;if(z&&typeof z==="object"&&!Array.isArray(z)&&z.timing==="compiler")continue;if(typeof z!=="object"||z===null||Array.isArray(z))return!0;if(z.$prototype)return!0;if("default"in z)return!0;if(F0(z))continue;return!0}if(Z.$switch)return!0;if(!Array.isArray(Z.children)&&Z.children?.$prototype==="Array")return!0;if(Array.isArray(Z.children)&&Z.children.some((X)=>u1(X)))return!0;for(let[X,z]of Object.entries(Z)){if(O0.has(X))continue;if(z!==null&&typeof z==="object"&&typeof z.$ref==="string")return!0;if(j(z))return!0}if(Z.style&&typeof Z.style==="object"){for(let X of Object.values(Z.style))if(j(X))return!0}if(Z.attributes&&typeof Z.attributes==="object"){for(let X of Object.values(Z.attributes))if(j(X))return!0}return!1}function p8(Z){if(!Z||typeof Z!=="object")return!1;if(Z.$switch)return!0;if(!Array.isArray(Z.children)&&Z.children?.$prototype==="Array")return!0;for(let[X,z]of Object.entries(Z)){if(O0.has(X))continue;if(z!==null&&typeof z==="object"&&typeof z.$ref==="string")return!0;if(j(z))return!0}if(Z.style&&typeof Z.style==="object"){for(let X of Object.values(Z.style))if(j(X))return!0}if(Z.attributes&&typeof Z.attributes==="object"){for(let X of Object.values(Z.attributes))if(j(X))return!0}return!1}function S0(Z,X=null,z={},q={}){let G=Z?.state?d8(Z.state,X):X??Object.create(null);return{media:q,scope:G,scopeDefs:z}}function d8(Z={},X=null){let z=Object.create(X??null);for(let[q,G]of Object.entries(Z)){if(typeof G!=="object"||G===null||Array.isArray(G)){T0(z,q,Q1(G));continue}let Q=G;if("default"in Q){T0(z,q,Q1(Q.default));continue}if(!Q.$prototype&&!("$expression"in Q)&&!F0(Q))T0(z,q,Q1(Q))}for(let[q,G]of Object.entries(Z)){if(typeof G==="string"&&j(G)){m1(z,q,()=>f1(G,z));continue}if(!G||typeof G!=="object")continue;if(e(G)){let Q=G.$expression;if(w0(Q.operator))T0(z,q,(W,Y)=>H0(Q,W,Y));else m1(z,q,()=>H0(Q,z,null));continue}if(Y0(G)){if(G.body){let Q=G.parameters?B0(G.parameters):G.arguments??[],W=Function("state",...Q,G.body);if(G.body.includes("return"))m1(z,q,()=>W(z));else T0(z,q,W)}else T0(z,q,()=>{});continue}if(l0(G)&&(G.$prototype==="LocalStorage"||G.$prototype==="SessionStorage"))T0(z,q,Q1(G.default??null))}return z}function T0(Z,X,z){Object.defineProperty(Z,X,{configurable:!0,enumerable:!0,value:z,writable:!0})}function m1(Z,X,z){Object.defineProperty(Z,X,{configurable:!0,enumerable:!0,get:z})}function S(Z,X){if(z0(Z))return C6(Z.$ref,X);if(j(Z))return f1(Z,X);return Z}function z0(Z){return t(Z)}function C6(Z,X){if(typeof Z!=="string")return Z;if(Z.startsWith("$map/")){let z=Z.split("/"),[,q]=z,G=X.$map?.[q]??X[`$map/${q}`];return z.length>2?c8(G,z.slice(2).join("/")):G}if(Z.startsWith("#/state/")){let z=Z.slice(8),q=z.indexOf("/");if(q===-1)return X[z];return c8(X[z.slice(0,q)],z.slice(q+1))}return X[Z]??null}function f1(Z,X){try{let z=Z.match(/^\$\{(.+)\}$/s);if(z)return Function("state","$map",`return (${z[1]})`)(X,X?.$map);return Function("state","$map",`return \`${Z}\``)(X,X?.$map)}catch{return null}}function c8(Z,X){if(!X)return Z;let z=Z;for(let q of X.split("/"))z=z==null?void 0:z[q];return z}function Q1(Z){if(Z===null||typeof Z!=="object")return Z;return structuredClone(Z)}function x0(Z,X){let z="",q=S(Z.id,X),G=S(Z.className,X),Q=S(Z.hidden,X),W=S(Z.tabIndex,X),Y=S(Z.title,X),J=S(Z.lang,X),U=S(Z.dir,X);if(q)z+=` id="${C(String(q))}"`;if(G)z+=` class="${C(String(G))}"`;if(Q)z+=" hidden";if(W!==void 0&&W!==null)z+=` tabindex="${C(String(W))}"`;if(Y)z+=` title="${C(String(Y))}"`;if(J)z+=` lang="${C(String(J))}"`;if(U)z+=` dir="${C(String(U))}"`;if(Z.style&&X){let K=Object.entries(Z.style).filter(([V,M])=>!V.startsWith(":")&&!V.startsWith(".")&&!V.startsWith("&")&&!V.startsWith("[")&&!V.startsWith("@")&&M!==null&&typeof M!=="object"&&typeof M==="string"&&j(M)).map(([V,M])=>{let H=S(M,X);return H==null?null:`${d(V)}: ${H}`}).filter(Boolean).join("; ");if(K)z+=` style="${K}"`}if(Z.attributes)for(let[K,V]of Object.entries(Z.attributes)){let M=S(V,X);if(M!==null&&M!==void 0&&(typeof M==="string"||typeof M==="number"||typeof M==="boolean"))z+=` ${K}="${C(String(M))}"`}if(Z.tagName==="img"){if(!Z.attributes?.loading)z+=' loading="lazy"';if(!Z.attributes?.decoding)z+=' decoding="async"'}if(Z.$static)z+=" data-jx-static";else if(Z.$prerendered)z+=" data-jx-prerendered";return z}function k0(Z,X={},z=null){let q=[];if(z&&typeof z==="object"){let Q=(K,V)=>{let M=h(V);if(M)q.push(`${K} { ${M} }`);for(let[H,F]of Object.entries(V)){if(F===null||typeof F!=="object"||Array.isArray(F))continue;if(H.startsWith("@")){let B=H.startsWith("@--")?`@media ${X[H.slice(1)]??H.slice(1)}`:H,D=h(F);if(D)q.push(`${B} { ${K} { ${D} } }`);for(let[$,w]of Object.entries(F)){if(w===null||typeof w!=="object"||Array.isArray(w))continue;if($.startsWith("@"))continue;let R=$.startsWith("&")?$.replace("&",K):$.startsWith(":")||$.startsWith(".")||$.startsWith("[")?`${K}${$}`:`${K} ${$}`,N=h(w);if(N)q.push(`${B} { ${R} { ${N} } }`)}continue}let A=H.startsWith("&")?H.replace("&",K):H.startsWith(":")||H.startsWith(".")||H.startsWith("[")?`${K}${H}`:`${K} ${H}`;Q(A,F)}};for(let[K,V]of Object.entries(z))if(K.startsWith(":")||K.startsWith(".")||K.startsWith("["))Q(K,V);else if(V!==null&&typeof V==="object"&&!Array.isArray(V)&&!K.startsWith("@")&&!K.startsWith("--"))Q(K,V);else if(K.startsWith("@")){let M=K.startsWith("@--")?`@media ${X[K.slice(1)]??K.slice(1)}`:K.startsWith("@(")?`@media ${K.slice(1)}`:K;q.push(`${M} { body { ${h(V)} } }`)}let W={},Y={};for(let[K,V]of Object.entries(z)){if(K.startsWith(":")||K.startsWith(".")||K.startsWith("[")||K.startsWith("@"))continue;if(V!==null&&typeof V==="object"&&!Array.isArray(V))continue;if(K.startsWith("--"))W[K]=V;else Y[K]=V}let J=h(W);if(J)q.push(`:root { ${J} }`);let U=h(Y);if(U)q.push(`body { ${U} }`)}if(E0(Z,q,X,"",{n:0}),q.length===0)return"";return`<style>
2
- ${q.join(`
1
+ import{createRequire as F3}from"node:module";var W3=Object.create;var{getPrototypeOf:Q3,defineProperty:D1,getOwnPropertyNames:G3}=Object;var J3=Object.prototype.hasOwnProperty;function Y3(Z){return this[Z]}var q3,U3,o4=(Z,X,W)=>{var Q=Z!=null&&typeof Z==="object";if(Q){var J=X?q3??=new WeakMap:U3??=new WeakMap,Y=J.get(Z);if(Y)return Y}W=Z!=null?W3(Q3(Z)):{};let G=X||!Z||!Z.__esModule?D1(W,"default",{value:Z,enumerable:!0}):W;for(let V of G3(Z))if(!J3.call(G,V))D1(G,V,{get:Y3.bind(Z,V),enumerable:!0});if(Q)J.set(Z,G);return G};var r4=(Z,X)=>()=>(X||Z((X={exports:{}}).exports,X),X.exports);var K3=(Z)=>Z;function V3(Z,X){this[Z]=K3.bind(null,X)}var q8=(Z,X)=>{for(var W in X)D1(Z,W,{get:X[W],enumerable:!0,configurable:!0,set:V3.bind(X,W)})};var p=(Z,X)=>()=>(Z&&(X=Z(Z=0)),X);var E2=F3(import.meta.url);function L1(Z){let X=Z.$map;return X&&typeof X==="object"?X:void 0}function h2(Z){return K8.has(Z)}function L2(Z,X,W,Q){if(Z===null||Z===void 0)return Z;if(typeof Z==="object"&&!Array.isArray(Z)&&"operator"in Z)return S2(Z,X,W,Q);if(typeof Z==="object"&&!Array.isArray(Z)&&"$ref"in Z)return H3(Z.$ref,X,W,Q);if(Array.isArray(Z))return Z.map((J)=>L2(J,X,W,Q));return Z}function H3(Z,X,W,Q){if(Z==="$reduce/acc")return Q?.acc;if(Z.startsWith("$reduce/"))return Q?.acc;if(Z.startsWith("event#/")){let J=Z.slice(7);return z0(W,J)}if(Z.startsWith("$map/")){let J=Z.split("/"),[,Y]=J,G,V=L1(X);if(Y==="item")G=Q?.item??V?.item??X["$map/item"];else if(Y==="index")G=Q?.index??V?.index??X["$map/index"];else G=V?.[Y]??X[`$map/${Y}`];return J.length>2?z0(G,J.slice(2).join("/")):G}if(Z.startsWith("#/state/")){let J=Z.slice(8),Y=J.indexOf("/");if(Y===-1)return X[J];return z0(X[J.slice(0,Y)],J.slice(Y+1))}if(Z.startsWith("parent#/"))return X[Z.slice(8)];if(Z.startsWith("window#/"))return z0(globalThis.window,Z.slice(8));if(Z.startsWith("document#/"))return z0(globalThis.document,Z.slice(10));return X[Z]??null}function M3(Z,X,W,Q){if(Z.startsWith("$map/")){let J=Z.split("/"),[,Y]=J,G,V=L1(X);if(Y==="item")G=Q?.item??V?.item??X["$map/item"];else if(Y==="index")G=Q?.index??V?.index??X["$map/index"];else G=V?.[Y]??X[`$map/${Y}`];if(J.length>2){let U=J.slice(2),q=U.pop(),H=U.length>0?z0(G,U.join("/")):G;return{key:q,obj:H}}return{key:Y==="item"?"$map/item":"$map/index",obj:L1(X)??X}}if(Z.startsWith("#/state/")){let J=Z.slice(8);if(J.indexOf("/")===-1)return{key:J,obj:X};let G=J.split("/"),V=G.pop(),U=X;for(let q of G)U=U[q];return{key:V,obj:U}}return{key:Z,obj:X}}function S2(Z,X,W,Q){let{operator:J,target:Y,value:G,initial:V}=Z;if(!B3.has(J))throw Error(`$expression: unknown operator "${J}"`);if(A1.has(J)&&!("value"in Z)){let U=L2(Y,X,W,Q);if(J==="!")return!U;if(J==="-")return-U}if(O1.has(J)){let U=L2(Y,X,W,Q),q=L2(G,X,W,Q);switch(J){case"+":return U+q;case"-":return U-q;case"*":return U*q;case"/":return U/q;case"%":return U%q;case"===":return U===q;case"!==":return U!==q;case"<":return U<q;case"<=":return U<=q;case">":return U>q;case">=":return U>=q;case"&&":return U&&q;case"||":return U||q;default:break}}if(V8.has(J)){let U=L2(G,X,W,Q),{obj:q,key:H}=M3(Y.$ref,X,W,Q);switch(J){case"=":{q[H]=U;break}case"+=":{let F=q[H];q[H]=F+U;break}case"-=":{let F=q[H];q[H]=F-U;break}case"*=":{let F=q[H];q[H]=F*U;break}case"/=":{let F=q[H];q[H]=F/U;break}default:break}return}if(F8.has(J)){let U=L2(Y,X,W,Q);switch(J){case"push":return U.push(L2(G,X,W,Q));case"unshift":return U.unshift(L2(G,X,W,Q));case"pop":return U.pop();case"shift":return U.shift();case"splice":{let q=L2(G,X,W,Q);return U.splice(...q)}default:break}}if(I1.has(J)){let U=L2(Y,X,W,Q);if(J==="reduce"){let q=L2(V,X,W,Q);for(let[H,F]of U.entries())q=S2(G,X,W,{acc:q,index:H,item:F});return q}if(J==="map")return U.map((q,H)=>S2(G,X,W,{...Q,index:H,item:q}));if(J==="filter")return U.filter((q,H)=>S2(G,X,W,{...Q,index:H,item:q}))}return}function H2(Z,X){if(Z===null)return"null";if(Z===void 0)return"undefined";if(typeof Z==="object"&&!Array.isArray(Z)&&"operator"in Z)return M2(Z,X);if(typeof Z==="object"&&!Array.isArray(Z)&&"$ref"in Z)return B8(Z.$ref,X);if(Array.isArray(Z))return Z.map((W)=>H2(W,X)).join(", ");return JSON.stringify(Z)}function B8(Z,X){let W=X.statePrefix??"state",Q=X.eventParam??"event";if(Z==="$reduce/acc")return"_acc";if(Z.startsWith("$reduce/"))return"_acc";if(Z.startsWith("event#/")){let J=Z.slice(7);return`${Q}.${J.replaceAll("/",".")}`}if(Z.startsWith("$map/")){let J=Z.split("/"),[,Y]=J;if(Y==="item")return J.length>2?`_item.${J.slice(2).join(".")}`:"_item";if(Y==="index")return"_index";return`_${Y}`}if(Z.startsWith("#/state/")){let J=Z.slice(8);return`${W}.${J.replaceAll("/",".")}`}if(Z.startsWith("parent#/"))return`${W}.${Z.slice(8)}`;if(Z.startsWith("window#/"))return`window.${Z.slice(8).replaceAll("/",".")}`;if(Z.startsWith("document#/"))return`document.${Z.slice(10).replaceAll("/",".")}`;return`${W}.${Z}`}function U8(Z,X){if(typeof Z==="object"&&Z!==null&&"$ref"in Z)return B8(Z.$ref,X);return H2(Z,X)}function M2(Z,X={}){let{operator:W,target:Q,value:J,initial:Y}=Z;if(A1.has(W)&&!("value"in Z)){let G=H2(Q,X);if(W==="!")return`!(${G})`;if(W==="-")return`-(${G})`}if(O1.has(W)){let G=H2(Q,X),V=H2(J,X);return`(${G} ${W} ${V})`}if(V8.has(W)){let G=U8(Q,X),V=H2(J,X);return`${G} ${W} ${V}`}if(F8.has(W)){let G=U8(Q,X);switch(W){case"push":return`${G}.push(${H2(J,X)})`;case"unshift":return`${G}.unshift(${H2(J,X)})`;case"pop":return`${G}.pop()`;case"shift":return`${G}.shift()`;case"splice":{let V=Array.isArray(J)?J.map((U)=>H2(U,X)).join(", "):H2(J,X);return`${G}.splice(${V})`}default:break}}if(I1.has(W)){let G=H2(Q,X),V=M2(J,X);if(W==="reduce"){let U=H2(Y,X);return`${G}.reduce((_acc, _item, _index) => ${V}, ${U})`}if(W==="map")return`${G}.map((_item, _index) => ${V})`;if(W==="filter")return`${G}.filter((_item, _index) => ${V})`}return"undefined"}function z0(Z,X){let W=Z;for(let Q of X.split(/[./]/))W=W?.[Q];return W}var K8,A1,O1,V8,F8,I1,B3;var f0=p(()=>{K8=new Set(["=","+=","-=","*=","/=","push","pop","shift","unshift","splice"]),A1=new Set(["!","-"]),O1=new Set(["+","-","*","/","%","===","!==","<","<=",">",">=","&&","||"]),V8=new Set(["=","+=","-=","*=","/="]),F8=new Set(["push","pop","shift","unshift","splice"]),I1=new Set(["reduce","map","filter"]),B3=new Set([...K8,...A1,...O1,...I1])});function K2(Z){return typeof Z==="object"&&Z!==null&&!Array.isArray(Z)}function A2(Z){return K2(Z)&&typeof Z.$ref==="string"}function k2(Z){return K2(Z)&&Z.$prototype==="Function"}function O2(Z){return K2(Z)&&K2(Z.$expression)}function L0(Z){return K2(Z)&&typeof Z.$prototype==="string"&&Z.$prototype!=="Function"}function w1(Z){return K2(Z)&&Z.timing==="server"&&typeof Z.$src==="string"&&typeof Z.$export==="string"&&!Z.$prototype}function H8(Z){return K2(Z)&&!Z.$prototype&&!Z.$expression&&"default"in Z}function m2(Z){if(!K2(Z))return!1;for(let X of Object.keys(Z))if(!M8.has(X))return!1;return!0}function G2(Z){return K2(Z)&&Z.$prototype==="Array"}function T1(Z){if(G2(Z))return!0;return Array.isArray(Z)&&Z.some((X)=>G2(X))}function $8(Z){return K2(Z)&&Z.$prototype==="Class"}function i(Z){return typeof Z==="string"&&Z.includes("${")}function u2(Z){if(!Z)return[];return Z.map((X)=>typeof X==="string"?X:X.name)}var M8;var f2=p(()=>{M8=new Set(["type","enum","minimum","maximum","minLength","maxLength","pattern","format","items","properties","required","description","title","$comment"])});function $3(Z){return Z.startsWith(":")||Z.startsWith(".")||Z.startsWith("&")||Z.startsWith("[")}function J2(Z){return Z.replaceAll(/[A-Z]/g,(X)=>`-${X.toLowerCase()}`)}function X2(Z){return Object.entries(Z).filter(([X,W])=>!$3(X)&&(W===null||typeof W!=="object")).map(([X,W])=>`${J2(X)}: ${W}`).join("; ")}var c2;var A0=p(()=>{f0();f2();c2=new Set(["$schema","$id","$defs","state","$ref","$props","$elements","$title","$description","$switch","$prototype","$src","$export","$media","$map","timing","default","description","body","parameters","arguments","name","tagName","children","style","attributes","items","map","filter","sort","cases","observedAttributes"])});function i0(Z){if(!Z||typeof Z!=="object")return!1;if(Z.state)for(let[X,W]of Object.entries(Z.state)){if(X==="$site"||X==="$page")continue;if(W&&typeof W==="object"&&!Array.isArray(W)&&W.timing==="compiler")continue;if(typeof W!=="object"||W===null||Array.isArray(W))return!0;if(W.$prototype)return!0;if("default"in W)return!0;if(m2(W))continue;return!0}if(Z.$switch)return!0;if(G2(Z)||T1(Z.children))return!0;if(Array.isArray(Z.children)&&Z.children.some((X)=>i0(X)))return!0;for(let[X,W]of Object.entries(Z)){if(c2.has(X))continue;if(W!==null&&typeof W==="object"&&typeof W.$ref==="string")return!0;if(i(W))return!0}if(Z.style&&typeof Z.style==="object"){for(let X of Object.values(Z.style))if(i(X))return!0}if(Z.attributes&&typeof Z.attributes==="object"){for(let X of Object.values(Z.attributes))if(i(X))return!0}return!1}function L8(Z){if(!Z||typeof Z!=="object")return!1;if(Z.$switch)return!0;if(G2(Z)||T1(Z.children))return!0;for(let[X,W]of Object.entries(Z)){if(c2.has(X))continue;if(W!==null&&typeof W==="object"&&typeof W.$ref==="string")return!0;if(i(W))return!0}if(Z.style&&typeof Z.style==="object"){for(let X of Object.values(Z.style))if(i(X))return!0}if(Z.attributes&&typeof Z.attributes==="object"){for(let X of Object.values(Z.attributes))if(i(X))return!0}return!1}function G0(Z,X=null,W={},Q={}){let J=Z?.state?A8(Z.state,X):X??Object.create(null);return{media:Q,scope:J,scopeDefs:W}}function A8(Z={},X=null){let W=Object.create(X??null);for(let[Q,J]of Object.entries(Z)){if(typeof J!=="object"||J===null||Array.isArray(J)){i2(W,Q,c0(J));continue}let Y=J;if("default"in Y){i2(W,Q,c0(Y.default));continue}if(!Y.$prototype&&!("$expression"in Y)&&!m2(Y))i2(W,Q,c0(Y))}for(let[Q,J]of Object.entries(Z)){if(typeof J==="string"&&i(J)){R1(W,Q,()=>N1(J,W));continue}if(!J||typeof J!=="object")continue;if(O2(J)){let Y=J.$expression;if(h2(Y.operator))i2(W,Q,(G,V)=>S2(Y,G,V));else R1(W,Q,()=>S2(Y,W,null));continue}if(k2(J)){if(J.body){let Y=J.parameters?u2(J.parameters):J.arguments??[],G=Function("state",...Y,J.body);if(J.body.includes("return"))R1(W,Q,()=>G(W));else i2(W,Q,G)}else i2(W,Q,()=>{});continue}if(L0(J)&&(J.$prototype==="LocalStorage"||J.$prototype==="SessionStorage"))i2(W,Q,c0(J.default??null))}return W}function i2(Z,X,W){Object.defineProperty(Z,X,{configurable:!0,enumerable:!0,value:W,writable:!0})}function R1(Z,X,W){Object.defineProperty(Z,X,{configurable:!0,enumerable:!0,get:W})}function t(Z,X){if(I2(Z))return D3(Z.$ref,X);if(i(Z))return N1(Z,X);return Z}function I2(Z){return A2(Z)}function D3(Z,X){if(typeof Z!=="string")return Z;if(Z.startsWith("$map/")){let W=Z.split("/"),Q=W[1],J=X.$map?.[Q]??X[`$map/${Q}`];return W.length>2?D8(J,W.slice(2).join("/")):J}if(Z.startsWith("#/state/")){let W=Z.slice(8),Q=W.indexOf("/");if(Q===-1)return X[W];return D8(X[W.slice(0,Q)],W.slice(Q+1))}return X[Z]??null}function N1(Z,X){try{let W=Z.match(/^\$\{(.+)\}$/s);if(W)return Function("state","$map",`return (${W[1]})`)(X,X?.$map);return Function("state","$map",`return \`${Z}\``)(X,X?.$map)}catch{return null}}function D8(Z,X){if(!X)return Z;let W=Z;for(let Q of X.split("/"))W=W==null?void 0:W[Q];return W}function c0(Z){if(Z===null||typeof Z!=="object")return Z;return structuredClone(Z)}function W0(Z,X){let W="",Q=t(Z.id,X),J=t(Z.className,X),Y=t(Z.hidden,X),G=t(Z.tabIndex,X),V=t(Z.title,X),U=t(Z.lang,X),q=t(Z.dir,X);if(Q)W+=` id="${d(String(Q))}"`;if(J)W+=` class="${d(String(J))}"`;if(Y)W+=" hidden";if(G!==void 0&&G!==null)W+=` tabindex="${d(String(G))}"`;if(V)W+=` title="${d(String(V))}"`;if(U)W+=` lang="${d(String(U))}"`;if(q)W+=` dir="${d(String(q))}"`;if(Z.style&&X){let H=Object.entries(Z.style).filter(([F,B])=>!F.startsWith(":")&&!F.startsWith(".")&&!F.startsWith("&")&&!F.startsWith("[")&&!F.startsWith("@")&&B!==null&&typeof B!=="object"&&typeof B==="string"&&i(B)).map(([F,B])=>{let M=t(B,X);return M==null?null:`${J2(F)}: ${M}`}).filter(Boolean).join("; ");if(H)W+=` style="${H}"`}if(Z.attributes)for(let[H,F]of Object.entries(Z.attributes)){let B=t(F,X);if(B!==null&&B!==void 0&&(typeof B==="string"||typeof B==="number"||typeof B==="boolean"))W+=` ${H}="${d(String(B))}"`}if(Z.tagName==="img"){if(!Z.attributes?.loading)W+=' loading="lazy"';if(!Z.attributes?.decoding)W+=' decoding="async"'}if(Z.$static)W+=" data-jx-static";else if(Z.$prerendered)W+=" data-jx-prerendered";return W}function J0(Z,X={},W=null){let Q=[];if(W&&typeof W==="object"){let Y=(H,F)=>{let B=X2(F);if(B)Q.push(`${H} { ${B} }`);for(let[M,L]of Object.entries(F)){if(L===null||typeof L!=="object"||Array.isArray(L))continue;if(M.startsWith("@")){let C=M.startsWith("@--")?`@media ${X[M.slice(1)]??M.slice(1)}`:M,_=X2(L);if(_)Q.push(`${C} { ${H} { ${_} } }`);for(let[x,y]of Object.entries(L)){if(y===null||typeof y!=="object"||Array.isArray(y))continue;if(x.startsWith("@"))continue;let u=x.startsWith("&")?x.replace("&",H):x.startsWith(":")||x.startsWith(".")||x.startsWith("[")?`${H}${x}`:`${H} ${x}`,f=X2(y);if(f)Q.push(`${C} { ${u} { ${f} } }`)}continue}let E=M.startsWith("&")?M.replace("&",H):M.startsWith(":")||M.startsWith(".")||M.startsWith("[")?`${H}${M}`:`${H} ${M}`;Y(E,L)}};for(let[H,F]of Object.entries(W))if(H.startsWith(":")||H.startsWith(".")||H.startsWith("["))Y(H,F);else if(F!==null&&typeof F==="object"&&!Array.isArray(F)&&!H.startsWith("@")&&!H.startsWith("--"))Y(H,F);else if(H.startsWith("@")){let B=H.startsWith("@--")?`@media ${X[H.slice(1)]??H.slice(1)}`:H.startsWith("@(")?`@media ${H.slice(1)}`:H;Q.push(`${B} { body { ${X2(F)} } }`)}let G={},V={};for(let[H,F]of Object.entries(W)){if(H.startsWith(":")||H.startsWith(".")||H.startsWith("[")||H.startsWith("@"))continue;if(F!==null&&typeof F==="object"&&!Array.isArray(F))continue;if(H.startsWith("--"))G[H]=F;else V[H]=F}let U=X2(G);if(U)Q.push(`:root { ${U} }`);let q=X2(V);if(q)Q.push(`body { ${q} }`)}if(Q0(Z,Q,X,"",{n:0}),Q.length===0)return"";return`<style>
2
+ ${Q.join(`
3
3
  `)}
4
- </style>`}function l8(Z,X,z,q){let G=h(X);if(G)z.push(`${Z} { ${G} }`);for(let[Q,W]of Object.entries(X)){if(W===null||typeof W!=="object"||Array.isArray(W))continue;if(Q.startsWith("@")){let J=Q.startsWith("@--")?`@media ${q[Q.slice(1)]??Q.slice(1)}`:Q.startsWith("@(")?`@media ${Q.slice(1)}`:Q,U=h(W);if(U)z.push(`${J} { ${Z} { ${U} } }`);for(let[K,V]of Object.entries(W)){if(V===null||typeof V!=="object"||Array.isArray(V))continue;if(K.startsWith("@"))continue;let M=K.startsWith("&")?K.replace("&",Z):K.startsWith(":")||K.startsWith(".")||K.startsWith("[")?`${Z}${K}`:`${Z} ${K}`,H=h(V);if(H)z.push(`${J} { ${M} { ${H} } }`)}continue}let Y=Q.startsWith("&")?Q.replace("&",Z):Q.startsWith(":")||Q.startsWith(".")||Q.startsWith("[")?`${Z}${Q}`:`${Z} ${Q}`;l8(Y,W,z,q)}}function E0(Z,X,z,q="",G,Q="jx"){let W=G??{n:0};if(!Z||typeof Z!=="object")return;if(Z.style&&!Z.id&&!Z.className)Z.className=`${Q}-${W.n}`,W.n+=1;let Y=Z.id?`#${Z.id}`:Z.className?`.${Z.className.split(" ")[0]}`:Z.tagName??"*";if(Z.style){let J=[];for(let[U,K]of Object.entries(Z.style)){if(U.startsWith(":")||U.startsWith(".")||U.startsWith("&")||U.startsWith("[")||U.startsWith("@"))continue;if(K===null||typeof K==="object")continue;if(typeof K==="string"&&j(K))continue;J.push(` ${d(U)}: ${K};`)}if(J.length>0)X.push(`${Y} {
5
- ${J.join(`
4
+ </style>`}function O8(Z,X,W,Q){let J=X2(X);if(J)W.push(`${Z} { ${J} }`);for(let[Y,G]of Object.entries(X)){if(G===null||typeof G!=="object"||Array.isArray(G))continue;if(Y.startsWith("@")){let U=Y.startsWith("@--")?`@media ${Q[Y.slice(1)]??Y.slice(1)}`:Y.startsWith("@(")?`@media ${Y.slice(1)}`:Y,q=X2(G);if(q)W.push(`${U} { ${Z} { ${q} } }`);for(let[H,F]of Object.entries(G)){if(F===null||typeof F!=="object"||Array.isArray(F))continue;if(H.startsWith("@"))continue;let B=H.startsWith("&")?H.replace("&",Z):H.startsWith(":")||H.startsWith(".")||H.startsWith("[")?`${Z}${H}`:`${Z} ${H}`,M=X2(F);if(M)W.push(`${U} { ${B} { ${M} } }`)}continue}let V=Y.startsWith("&")?Y.replace("&",Z):Y.startsWith(":")||Y.startsWith(".")||Y.startsWith("[")?`${Z}${Y}`:`${Z} ${Y}`;O8(V,G,W,Q)}}function Q0(Z,X,W,Q="",J,Y="jx"){let G=J??{n:0};if(!Z||typeof Z!=="object")return;if(Z.style&&!Z.id&&!Z.className)Z.className=`${Y}-${G.n}`,G.n+=1;let V=Z.id?`#${Z.id}`:Z.className?`.${Z.className.split(" ")[0]}`:Z.tagName??"*";if(Z.style){let U=[];for(let[q,H]of Object.entries(Z.style)){if(q.startsWith(":")||q.startsWith(".")||q.startsWith("&")||q.startsWith("[")||q.startsWith("@"))continue;if(H===null||typeof H==="object")continue;if(typeof H==="string"&&i(H))continue;U.push(` ${J2(q)}: ${H};`)}if(U.length>0)X.push(`${V} {
5
+ ${U.join(`
6
6
  `)}
7
- }`);for(let[U,K]of Object.entries(Z.style)){if(K===null||typeof K!=="object"||Array.isArray(K))continue;if(U.startsWith("@")){let V=U.startsWith("@--")?`@media ${z[U.slice(1)]??U.slice(1)}`:U.startsWith("@(")?`@media ${U.slice(1)}`:U,M=h(K);if(M)X.push(`${V} { ${Y} { ${M} } }`);for(let[H,F]of Object.entries(K)){if(F===null||typeof F!=="object"||Array.isArray(F))continue;if(H.startsWith("@"))continue;let A=H.startsWith("&")?H.replace("&",Y):H.startsWith(":")||H.startsWith(".")||H.startsWith("[")?`${Y}${H}`:`${Y} ${H}`;X.push(`${V} { ${A} { ${h(F)} } }`)}}else{let V=U.startsWith("&")?U.replace("&",Y):U.startsWith(":")||U.startsWith(".")||U.startsWith("[")?`${Y}${U}`:`${Y} ${U}`;l8(V,K,X,z)}}}if(Array.isArray(Z.children))for(let J of Z.children)E0(J,X,z,Y,W,Q);if(Z.cases&&typeof Z.cases==="object")for(let J of Object.values(Z.cases))E0(J,X,z,Y,W,Q)}function C(Z){return String(Z).replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}function K1(Z){return Z.split("-").map((X)=>X.charAt(0).toUpperCase()+X.slice(1)).join("")}function i8(Z){let X=new Map;return n8(Z,X),[...X.values()]}function n8(Z,X){if(!Z||typeof Z!=="object")return;if(Z.state){for(let[z,q]of Object.entries(Z.state))if(y1(q))X.set(q.$export,{exportName:q.$export,key:z,src:q.$src})}if(Array.isArray(Z.children))for(let z of Z.children)n8(z,X)}function J1(Z,X,z=null){if(typeof Z==="string"){if(j(Z)&&X){let W=f1(Z,X);return W!=null?C(String(W)):C(Z)}return C(Z)}if(typeof Z==="number"||typeof Z==="boolean")return C(String(Z));if(Array.isArray(Z))return Z.map((W)=>J1(W,X,z)).join(`
8
- `);if(!Z||typeof Z!=="object")return"";if(Z.$prototype==="Array")return"";if(Z.$switch){let W=Z.tagName??"div",Y=x0(Z,X),J=S(Z.$switch,X),U=J==null?void 0:Z.cases?.[String(J)],K=U!==void 0&&!z0(U)?J1(U,X,z):"";return`<${W}${Y}>${K}</${W}>`}let q=Z.tagName??"div";if(q==="slot"&&z!=null)return z;let G=x0(Z,X);if(R6.has(q))return`<${q}${G}>`;let Q="";if(Z.textContent!==void 0){let W=S(Z.textContent,X);Q=W!=null?C(String(W)):""}else if(Z.innerHTML){let W=S(Z.innerHTML,X);Q=W!=null?String(W):Z.innerHTML}else if(Array.isArray(Z.children))Q=Z.children.map((W)=>J1(W,X,z)).join(`
9
- `);return`<${q}${G}>${Q}</${q}>`}function F7(Z,X=null,z=null){let q=Z.state??{};if(X){q={...q};for(let[Q,W]of Object.entries(X))if(Q in q){let Y=q[Q];q[Q]=Y&&typeof Y==="object"&&!Array.isArray(Y)&&"default"in Y?{...Y,default:W}:W}else q[Q]=W}let G=d8(q,null);if(!Array.isArray(Z.children))return"";return Z.children.map((Q)=>J1(Q,G,z)).join(`
10
- `)}function B7(Z){return h1(Z)}function h1(Z){if(!Z||typeof Z!=="object")return!0;if(Array.isArray(Z))return Z.every((X)=>h1(X));if(Z.$prototype)return!1;if(Z.$ref)return!1;if(Z.state)for(let X of Object.values(Z.state)){if(!X||typeof X!=="object")continue;let z=X;if(z.$prototype)return!1;if(z.$ref)return!1}for(let X of Object.keys(Z))if(X.startsWith("on")&&X!=="observedAttributes")return!1;if(Array.isArray(Z.children))return Z.children.every((X)=>h1(X));if(Z.children&&typeof Z.children==="object"&&Z.children.$prototype)return!1;return!0}function $7(Z,X,z=null,q={}){let G=[];if(X&&typeof X==="object"){let Q=[];for(let[W,Y]of Object.entries(X)){if(W.startsWith(":")||W.startsWith(".")||W.startsWith("&")||W.startsWith("[")||W.startsWith("@"))continue;if(Y===null||typeof Y==="object")continue;if(typeof Y==="string"&&j(Y))continue;Q.push(` ${d(W)}: ${Y};`)}if(Q.length>0)G.push(`${Z} {
11
- ${Q.join(`
7
+ }`);for(let[q,H]of Object.entries(Z.style)){if(H===null||typeof H!=="object"||Array.isArray(H))continue;if(q.startsWith("@")){let F=q.startsWith("@--")?`@media ${W[q.slice(1)]??q.slice(1)}`:q.startsWith("@(")?`@media ${q.slice(1)}`:q,B=X2(H);if(B)X.push(`${F} { ${V} { ${B} } }`);for(let[M,L]of Object.entries(H)){if(L===null||typeof L!=="object"||Array.isArray(L))continue;if(M.startsWith("@"))continue;let E=M.startsWith("&")?M.replace("&",V):M.startsWith(":")||M.startsWith(".")||M.startsWith("[")?`${V}${M}`:`${V} ${M}`;X.push(`${F} { ${E} { ${X2(L)} } }`)}}else{let F=q.startsWith("&")?q.replace("&",V):q.startsWith(":")||q.startsWith(".")||q.startsWith("[")?`${V}${q}`:`${V} ${q}`;O8(F,H,X,W)}}}if(Array.isArray(Z.children))for(let U of Z.children)Q0(U,X,W,V,G,Y);if(Z.cases&&typeof Z.cases==="object")for(let U of Object.values(Z.cases))Q0(U,X,W,V,G,Y)}function d(Z){return String(Z).replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}function n0(Z){return Z.split("-").map((X)=>X.charAt(0).toUpperCase()+X.slice(1)).join("")}function I8(Z){let X=new Map;return w8(Z,X),[...X.values()]}function w8(Z,X){if(!Z||typeof Z!=="object")return;if(Z.state){for(let[W,Q]of Object.entries(Z.state))if(w1(Q))X.set(Q.$export,{exportName:Q.$export,key:W,src:Q.$src})}if(Array.isArray(Z.children))for(let W of Z.children)w8(W,X)}function p0(Z,X,W=null){if(typeof Z==="string"){if(i(Z)&&X){let G=N1(Z,X);return G!=null?d(String(G)):d(Z)}return d(Z)}if(typeof Z==="number"||typeof Z==="boolean")return d(String(Z));if(Array.isArray(Z))return Z.map((G)=>p0(G,X,W)).join(`
8
+ `);if(!Z||typeof Z!=="object")return"";if(Z.$prototype==="Array")return"";if(Z.$switch){let G=Z.tagName??"div",V=W0(Z,X),U=t(Z.$switch,X),q=U==null?void 0:Z.cases?.[String(U)],H=q!==void 0&&!I2(q)?p0(q,X,W):"";return`<${G}${V}>${H}</${G}>`}let Q=Z.tagName??"div";if(Q==="slot"&&W!=null)return W;let J=W0(Z,X);if(L3.has(Q))return`<${Q}${J}>`;let Y="";if(Z.textContent!==void 0){let G=t(Z.textContent,X);Y=G!=null?d(String(G)):""}else if(Z.innerHTML){let G=t(Z.innerHTML,X);Y=G!=null?String(G):Z.innerHTML}else if(Array.isArray(Z.children))Y=Z.children.map((G)=>p0(G,X,W)).join(`
9
+ `);return`<${Q}${J}>${Y}</${Q}>`}function J6(Z,X=null,W=null){let Q=Z.state??{};if(X){Q={...Q};for(let[Y,G]of Object.entries(X))if(Y in Q){let V=Q[Y];Q[Y]=V&&typeof V==="object"&&!Array.isArray(V)&&"default"in V?{...V,default:G}:G}else Q[Y]=G}let J=A8(Q,null);if(!Array.isArray(Z.children))return"";return Z.children.map((Y)=>p0(Y,J,W)).join(`
10
+ `)}function Y6(Z){return C1(Z)}function C1(Z){if(!Z||typeof Z!=="object")return!0;if(Array.isArray(Z))return Z.every((X)=>C1(X));if(Z.$prototype)return!1;if(Z.$ref)return!1;if(Z.state)for(let X of Object.values(Z.state)){if(!X||typeof X!=="object")continue;let W=X;if(W.$prototype)return!1;if(W.$ref)return!1}for(let X of Object.keys(Z))if(X.startsWith("on")&&X!=="observedAttributes")return!1;if(Array.isArray(Z.children))return Z.children.every((X)=>C1(X));if(Z.children&&typeof Z.children==="object"&&Z.children.$prototype)return!1;return!0}function q6(Z,X,W=null,Q={}){let J=[];if(X&&typeof X==="object"){let Y=[];for(let[G,V]of Object.entries(X)){if(G.startsWith(":")||G.startsWith(".")||G.startsWith("&")||G.startsWith("[")||G.startsWith("@"))continue;if(V===null||typeof V==="object")continue;if(typeof V==="string"&&i(V))continue;Y.push(` ${J2(G)}: ${V};`)}if(Y.length>0)J.push(`${Z} {
11
+ ${Y.join(`
12
12
  `)}
13
- }`);for(let[W,Y]of Object.entries(X))if(W.startsWith("@")){let J=W.startsWith("@--")?`@media ${q[W.slice(1)]??W.slice(1)}`:W.startsWith("@(")?`@media ${W.slice(1)}`:W;G.push(`${J} { ${Z} { ${h(Y)} } }`)}else if(W.startsWith(":")||W.startsWith(".")||W.startsWith("&")||W.startsWith("[")){let J=W.startsWith("&")?W.replace("&",Z):`${Z}${W}`;G.push(`${J} { ${h(Y)} }`)}}if(z&&Array.isArray(z.children)){let Q={n:0};for(let W of z.children)E0(W,G,q,"",Q,Z)}return G.length>0?`${G.join(`
13
+ }`);for(let[G,V]of Object.entries(X))if(G.startsWith("@")){let U=G.startsWith("@--")?`@media ${Q[G.slice(1)]??G.slice(1)}`:G.startsWith("@(")?`@media ${G.slice(1)}`:G;J.push(`${U} { ${Z} { ${X2(V)} } }`)}else if(G.startsWith(":")||G.startsWith(".")||G.startsWith("&")||G.startsWith("[")){let U=G.startsWith("&")?G.replace("&",Z):`${Z}${G}`;J.push(`${U} { ${X2(V)} }`)}}if(W&&Array.isArray(W.children)){let Y={n:0};for(let G of W.children)Q0(G,J,Q,"",Y,Z)}return J.length>0?`${J.join(`
14
14
  `)}
15
- `:""}var Y1="https://esm.sh/@vue/reactivity@3.5.32",U1="https://esm.sh/lit-html@3.3.0",R6;var b0=T(()=>{W1();v1();$0();$0();R6=new Set(["input","br","hr","img","meta","link","area","col","source"])});function U0(Z){if(Z.startsWith("\\\\?\\"))return Z;return Z.split("\\").join("/")}var N6,o0=()=>N6;var o8=T(()=>{N6=/^win/.test(globalThis.process?globalThis.process.platform:"")});function k(Z,X){let z=new URL(U0(Z),"https://aaa.nonexistanturl.com"),q=new URL(U0(X),z),G=X.match(/(\s*)$/)?.[1]||"";if(q.hostname==="aaa.nonexistanturl.com"){let{pathname:W,search:Y,hash:J}=q;return W+Y+decodeURIComponent(J)+G}let Q=q.toString()+G;if(Q.includes("#")){let[W,Y]=Q.split("#",2);return W+"#"+decodeURIComponent(Y||"")}return Q}function C0(){if(typeof window<"u"&&window.location&&window.location.href){let Z=window.location.href;if(!Z||!Z.startsWith("http"))try{return new URL(Z),Z}catch{return"/"}return Z}if(typeof process<"u"&&process.cwd){let Z=process.cwd(),X=Z.slice(-1);if(X==="/"||X==="\\")return Z;else return Z+"/"}return"/"}function r8(Z){let X=_6.exec(Z||"");if(X)return X[1].toLowerCase();return}function s8(Z){let X=Z.lastIndexOf(".");if(X>=0)return k6(Z.substring(X).toLowerCase());return""}function k6(Z){let X=Z.indexOf("?");if(X>=0)Z=Z.substring(0,X);return Z}function q0(Z){if(!Z)return"#";let X=Z.indexOf("#");if(X>=0)return Z.substring(X);return"#"}function x(Z){if(!Z)return"";let X=Z.indexOf("#");if(X>=0)Z=Z.substring(0,X);return Z}function a8(Z){let X=r8(Z);if(X==="http"||X==="https")return!0;else if(X===void 0)return typeof window<"u";else return!1}function p1(Z){if(!Z||typeof Z!=="string")return!0;let X=Z.trim().toLowerCase();if(!X)return!0;if(X.startsWith("javascript:")||X.startsWith("vbscript:")||X.startsWith("data:"))return!0;if(X.startsWith("file:"))return!0;if(typeof window<"u"&&window.location&&window.location.href)return!1;let z=["localhost","127.0.0.1","::1","10.","172.16.","172.17.","172.18.","172.19.","172.20.","172.21.","172.22.","172.23.","172.24.","172.25.","172.26.","172.27.","172.28.","172.29.","172.30.","172.31.","192.168.","169.254.",".local",".internal",".intranet",".corp",".home",".lan"];try{let q=new URL(X.startsWith("//")?"http:"+X:X),G=q.hostname.toLowerCase();for(let W of z)if(G===W||G.startsWith(W)||G.endsWith(W))return!0;if(b6(G))return!0;let Q=q.port;if(Q&&g6(parseInt(Q)))return!0}catch{if(X.startsWith("/")&&!X.startsWith("//"))return!1;for(let q of z)if(X.includes(q))return!0}return!1}function b6(Z){let X=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,z=Z.match(X);if(!z)return!1;let[,q,G,Q,W]=z.map(Number);if(q>255||G>255||Q>255||W>255)return!1;return q===10||q===127||q===172&&G>=16&&G<=31||q===192&&G===168||q===169&&G===254}function g6(Z){return[22,23,25,53,135,139,445,993,995,1433,1521,3306,3389,5432,5900,6379,8080,8443,9200,27017].includes(Z)}function V1(Z){if(typeof window<"u"||typeof process<"u"&&!1)return!1;let X=r8(Z);return X===void 0||X==="file"}function t8(Z){if(o0()){let X=C0(),z=Z.toUpperCase(),G=U0(X).toUpperCase(),Q=z.includes(G),W=z.includes(G),Y=E6.test(Z)||Z.startsWith("http://")||Z.startsWith("https://")||Z.startsWith("file://");if(!(Q||W||Y)&&!X.startsWith("http"))Z=((U,K)=>{if(U.endsWith("/")||U.endsWith("\\"))return U+K;else return U+"/"+K})(X,Z);Z=U0(Z)}Z=encodeURI(Z);for(let X of S6)Z=Z.replace(X[0],X[1]);return Z}function v0(Z,X){Z=Z.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"),Z=decodeURI(Z);for(let q=0;q<c1.length;q+=2)Z=Z.replace(c1[q],c1[q+1]);let z=Z.toLowerCase().startsWith("file://");if(z){if(Z=Z.replace(/^file:\/\//,"").replace(/^\//,""),o0()&&Z[1]==="/")Z=`${Z[0]}:${Z.substring(1)}`;if(X)Z="file:///"+Z;else z=!1,Z=o0()?Z:"/"+Z}if(o0()&&!z){if(Z=Z.replace(j6,"\\"),Z.match(/^[a-z]:\\/i))Z=Z[0].toUpperCase()+Z.substring(1)}return Z}function M1(Z){if(Z.length<=1||Z[0]!=="#"||Z[1]!=="/")return[];return Z.slice(2).split("/").map((X)=>{return X.replace(P6,"/").replace(x6,"~")})}var j6,_6,P6,x6,E6,S6,c1,g0=(Z)=>new URL(Z);var u=T(()=>{o8();j6=/\//g,_6=/^(\w{2,}):\/\//i,P6=/~1/g,x6=/~0/g,E6=/^[a-zA-Z]:[\\/]/,S6=[[/\?/g,"%3F"],[/#/g,"%23"]],c1=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"]});function e8(){let Z={},X=this;for(let z of h6(X))if(typeof z==="string"){let q=X[z],G=typeof q;if(!v6.includes(G))Z[z]=q}return Z}function h6(Z,X=[]){let z=[];while(Z&&Z!==m6)z=z.concat(Object.getOwnPropertyNames(Z),Object.getOwnPropertySymbols(Z)),Z=Object.getPrototypeOf(Z);let q=new Set(z);for(let G of X.concat(y6))q.delete(G);return q}function W0(Z){return Z instanceof o||Z instanceof y0}function l1(Z){if(Z.path===null)Z.path=[];return Z}var v6,y6,m6,o,y0,r,H1,Z0,F1,B1,d1,m0;var s=T(()=>{u();v6=["function","symbol","undefined"],y6=["constructor","prototype","__proto__"],m6=Object.getPrototypeOf({});o=class o extends Error{name;message;source;path;code;constructor(Z,X){super();this.code="EUNKNOWN",this.name="JSONParserError",this.message=Z,this.source=X,this.path=null}toJSON=e8.bind(this);get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};y0=class y0 extends Error{files;constructor(Z){super();this.files=Z,this.name="JSONParserErrorGroup",this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${v0(Z.$refs._root$Ref.path)}'`}toJSON=e8.bind(this);static getParserErrors(Z){let X=[];for(let z of Object.values(Z.$refs._$refs))if(z.errors)X.push(...z.errors);return X}get errors(){return y0.getParserErrors(this.files)}};r=class r extends o{code="EPARSER";name="ParserError";constructor(Z,X){super(`Error parsing ${X}: ${Z}`,X)}};H1=class H1 extends o{code="EUNMATCHEDPARSER";name="UnmatchedParserError";constructor(Z){super(`Could not find parser for "${Z}"`,Z)}};Z0=class Z0 extends o{code="ERESOLVER";name="ResolverError";ioErrorCode;constructor(Z,X){super(Z.message||`Error reading file "${X}"`,X);if("code"in Z)this.ioErrorCode=String(Z.code)}};F1=class F1 extends o{code="EUNMATCHEDRESOLVER";name="UnmatchedResolverError";constructor(Z){super(`Could not find resolver for "${Z}"`,Z)}};B1=class B1 extends o{code="EMISSINGPOINTER";name="MissingPointerError";targetToken;targetRef;targetFound;parentPath;constructor(Z,X,z,q,G){super(`Missing $ref pointer "${q0(X)}". Token "${Z}" does not exist.`,x(X));this.targetToken=Z,this.targetRef=z,this.targetFound=q,this.parentPath=G}};d1=class d1 extends o{code="ETIMEOUT";name="TimeoutError";constructor(Z){super(`Dereferencing timeout reached: ${Z}ms`)}};m0=class m0 extends o{code="EUNMATCHEDRESOLVER";name="InvalidPointerError";constructor(Z,X){super(`Invalid $ref pointer "${Z}". Pointers must begin with "#/"`,x(X))}}});function y(Z,X){let z=u6(X);return z?k(Z,z):Z}function $1(Z){if(!Z||typeof Z!=="object"||ArrayBuffer.isView(Z))return!1;let X=Z.$schema;if(typeof X==="string"&&(X.includes("draft/2019-09/")||X.includes("draft/2020-12/")||X.includes("oas/3.1/")))return!0;let z=Z.openapi;return typeof z==="string"&&/^3\.1(?:\.|$)/.test(z)}function D1(Z,X,z,q,G=!1){if(!G)return;let Q=new Set,W=(Y,J)=>{if(!Y||typeof Y!=="object"||ArrayBuffer.isView(Y)||Q.has(Y))return;Q.add(Y);let U=y(J,Y);if(U!==J)Z._addAlias(U,Y,q,G);for(let K of Object.keys(Y))W(Y[K],U)};W(z,X)}function u6(Z){if(Z&&typeof Z==="object"&&"$id"in Z&&typeof Z.$id==="string"&&Z.$id.length>0)return Z.$id;return}var R0=T(()=>{u()});class N0{$ref;path;originalPath;scopeBase;value;circular;indirections;constructor(Z,X,z){this.$ref=Z,this.path=X,this.originalPath=z||X,this.scopeBase=Z.path||x(X),this.value=void 0,this.circular=!1,this.indirections=0}resolve(Z,X,z){let q=N0.parse(this.path,this.originalPath),G=[];if(this.value=X9(Z),this.$ref.dynamicIdScope&&!z9(this.$ref))this.scopeBase=y(this.scopeBase,this.value);for(let W=0;W<q.length;W++){let Y=this.circular,J=_.isExtended$Ref(this.value);if(A1(this,X,z))this.path=N0.join(this.path,q.slice(W));else if(!Y&&this.circular&&J)this.circular=!1;let U=q[W];if(this.value[U]===void 0||this.value[U]===null&&W===q.length-1){let K=!1;for(let A=q.length-1;A>W;A--){let B=q.slice(W,A+1).join("/");if(this.value[B]!==void 0){this.value=this.value[B],W=A,K=!0;break}}if(K)continue;if(U in this.value&&this.value[U]===null){this.value=L1;continue}this.value=null;let V=this.$ref.path||"",M=this.path.replace(V,""),H=N0.join("",G),F=z?.replace(V,"");throw new B1(U,decodeURI(this.originalPath),M,H,F)}else this.value=this.value[U];if(G.push(U),this.$ref.dynamicIdScope)this.scopeBase=y(this.scopeBase,this.value)}let Q=this.$ref.dynamicIdScope?this.scopeBase:this.path;if(!this.value||this.value.$ref&&k(Q,this.value.$ref)!==z)A1(this,X,z);return this}set(Z,X,z){let q=N0.parse(this.path),G;if(q.length===0)return this.value=X,X;if(this.value=X9(Z),this.$ref.dynamicIdScope&&!z9(this.$ref))this.scopeBase=y(this.scopeBase,this.value);for(let Q=0;Q<q.length-1;Q++){if(A1(this,z),G=q[Q],this.value&&this.value[G]!==void 0)this.value=this.value[G];else this.value=Z9(this,G,{});if(this.$ref.dynamicIdScope)this.scopeBase=y(this.scopeBase,this.value)}return A1(this,z),G=q[q.length-1],Z9(this,G,X),Z}static parse(Z,X){let z=q0(Z).substring(1);if(!z)return[];let q=z.split("/");for(let G=0;G<q.length;G++)q[G]=q[G].replace(p6,"/").replace(d6,"~");if(q[0]!=="")throw new m0(z,X===void 0?Z:X);return q.slice(1)}static join(Z,X){if(Z.indexOf("#")===-1)Z+="#";X=Array.isArray(X)?X:[X];for(let z=0;z<X.length;z++){let q=X[z];Z+="/"+q.replace(c6,"~0").replace(f6,"~1")}return Z}}function A1(Z,X,z){if(_.isAllowed$Ref(Z.value,X)){let q=Z.$ref.dynamicIdScope?Z.scopeBase:Z.path,G=k(q,Z.value.$ref);if(G===Z.path&&!l6(z))Z.circular=!0;else{let Q=Z.$ref.$refs._resolve(G,Z.path,X);if(Q===null)return!1;if(Z.indirections+=Q.indirections+1,_.isExtended$Ref(Z.value))return Z.value=_.dereference(Z.value,Q.value,X),!1;else Z.$ref=Q.$ref,Z.path=Q.path,Z.value=Q.value,Z.scopeBase=Z.$ref.path;return!0}}return}function Z9(Z,X,z){if(Z.value&&typeof Z.value==="object")if(X==="-"&&Array.isArray(Z.value))Z.value.push(z);else Z.value[X]=z;else throw new o(`Error assigning $ref pointer "${Z.path}".
16
- Cannot set "${X}" of a non-object.`);return z}function X9(Z){if(W0(Z))throw Z;return Z}function l6(Z){return typeof Z=="string"&&N0.parse(Z).length==0}function z9(Z){return Boolean(Z.path&&Z.path in Z.$refs._aliases)}var L1,f6,c6,p6,d6,f;var r0=T(()=>{h0();u();s();R0();L1=Symbol("null"),f6=/\//g,c6=/~/g,p6=/~1/g,d6=/~0/g;f=N0});class s0{path;value;$refs;pathType;dynamicIdScope=!1;errors=[];constructor(Z){this.$refs=Z}addError(Z){if(this.errors===void 0)this.errors=[];let X=this.errors.map(({footprint:z})=>z);if("errors"in Z&&Array.isArray(Z.errors))this.errors.push(...Z.errors.map(l1).filter(({footprint:z})=>!X.includes(z)));else if(!("footprint"in Z)||!X.includes(Z.footprint))this.errors.push(l1(Z))}exists(Z,X){try{return this.resolve(Z,X),!0}catch{return!1}}get(Z,X){return this.resolve(Z,X)?.value}resolve(Z,X,z,q){let G=new f(this,Z,z);try{let Q=G.resolve(this.value,X,q);if(Q.value===L1)Q.value=null;return Q}catch(Q){if(!X||!X.continueOnError||!W0(Q))throw Q;if(Q.path===null)Q.path=M1(q0(q));if(Q instanceof m0)Q.source=decodeURI(x(q));return this.addError(Q),null}}set(Z,X){let z=new f(this,Z);if(this.value=z.set(this.value,X),this.value===L1)this.value=null}static is$Ref(Z){return Boolean(Z)&&typeof Z==="object"&&Z!==null&&"$ref"in Z&&typeof Z.$ref==="string"&&Z.$ref.length>0}static isExternal$Ref(Z){return s0.is$Ref(Z)&&Z.$ref[0]!=="#"}static isAllowed$Ref(Z,X){if(this.is$Ref(Z)){if(Z.$ref.substring(0,2)==="#/"||Z.$ref==="#")return!0;else if(Z.$ref[0]!=="#"&&(!X||X.resolve?.external))return!0}return}static isExtended$Ref(Z){return s0.is$Ref(Z)&&Object.keys(Z).length>1}static dereference(Z,X,z){if(X&&typeof X==="object"&&s0.isExtended$Ref(Z)){let q={};for(let Q of Object.keys(Z))if(Q!=="$ref")q[Q]=Z[Q];let G=z?.dereference?.mergeKeys??!0;for(let Q of Object.keys(X)){let W=Q;if(!(W in q))q[W]=X[W];else if(G&&typeof q[W]==="object"&&q[W]!==null&&typeof X[W]==="object"&&X[W]!==null)q[W]=q9(X[W],q[W])}return q}else return X}}function q9(Z,X){if(typeof Z!=="object"||Z===null)return X;if(typeof X!=="object"||X===null)return X;let z=Array.isArray(Z)?[...Z]:{...Z};for(let q of Object.keys(X))if(Array.isArray(X[q]))z[q]=[...X[q]];else if(typeof X[q]==="object"&&X[q]!==null)z[q]=q9(Z[q],X[q]);else z[q]=X[q];return z}var _;var h0=T(()=>{r0();s();u();_=s0});class a0{circular;paths(...Z){return G9(this._$refs,Z.flat()).map((z)=>{return U0(z.decoded)})}values(...Z){let X=this._$refs;return G9(X,Z.flat()).reduce((q,G)=>{return q[U0(G.decoded)]=X[G.encoded].value,q},{})}exists(Z,X){try{return this._resolve(Z,"",X),!0}catch{return!1}}get(Z,X){return this._resolve(Z,"",X).value}set(Z,X){let z=k(this._root$Ref.path,Z),q=this._getRef(z);if(!q)throw Error(`Error resolving $ref pointer "${Z}".
17
- "${x(z)}" not found.`);q.set(z,X)}_get$Ref(Z){return Z=k(this._root$Ref.path,Z),this._getRef(Z)}_add(Z){let X=x(Z),z=new _(this);return z.path=X,this._$refs[X]=z,this._root$Ref=this._root$Ref||z,z}_addAlias(Z,X,z,q=!1){let G=x(Z);if(!G||this._$refs[G]||this._aliases[G])return this._$refs[G]||this._aliases[G];let Q=new _(this);return Q.path=G,Q.pathType=z,Q.value=X,Q.dynamicIdScope=q,this._aliases[G]=Q,Q}_resolve(Z,X,z){let q=k(this._root$Ref.path,Z),G=this._getRef(q);if(!G)throw Error(`Error resolving $ref pointer "${Z}".
18
- "${x(q)}" not found.`);return G.resolve(q,z,Z,X)}_$refs={};_aliases={};_root$Ref;constructor(){this.circular=!1,this._$refs={},this._aliases={},this._root$Ref=null}toJSON=this.values;_getRef(Z){let X=x(Z);return this._$refs[X]||this._aliases[X]}}function G9(Z,X){let z=Object.keys(Z);if(X=Array.isArray(X[0])?X[0]:Array.prototype.slice.call(X),X.length>0&&X[0])z=z.filter((q)=>{return X.includes(Z[q].pathType)});return z.map((q)=>{return{encoded:q,decoded:Z[q].pathType==="file"?v0(q,!0):q}})}var W9=T(()=>{h0();u()});function i1(Z){return Object.keys(Z||{}).filter((X)=>{return typeof Z[X]==="object"}).map((X)=>{return Z[X].name=X,Z[X]})}function n1(Z,X,z,q,G){return Z.filter((Q)=>{return!!Q9(Q,X,z,q,G)})}function o1(Z){for(let X of Z)X.order=X.order||Number.MAX_SAFE_INTEGER;return Z.sort((X,z)=>{return X.order-z.order})}async function r1(Z,X,z,q){let G,Q,W=0;return new Promise((Y,J)=>{U();function U(){if(G=Z[W++],!G)return J(Q);try{let H=Q9(G,X,z,K,q);if(H&&typeof H.then==="function")H.then(V,M);else if(H!==void 0)V(H);else if(W===Z.length)throw Error("No promise has been returned or callback has been called.")}catch(H){M(H)}}function K(H,F){if(H)M(H);else V(F)}function V(H){Y({plugin:G,result:H})}function M(H){Q={plugin:G,error:H},U()}})}function Q9(Z,X,z,q,G){let Q=Z[X];if(typeof Q==="function")return Q.apply(Z,[z,q,G]);if(!q){if(Q instanceof RegExp)return Q.test(z.url);else if(typeof Q==="string")return Q===z.extension;else if(Array.isArray(Q))return Q.indexOf(z.extension)!==-1}return Q}async function i6(Z,X,z){let q=typeof Z==="string"?Z:Z.url,G=typeof Z==="string"?void 0:Z.baseUrl,Q=typeof Z==="string"?void 0:Z.reference,W=q.indexOf("#"),Y="";if(W>=0)Y=q.substring(W),q=q.substring(0,W);if(Q){let K=Q.indexOf("#");if(K>=0)Q=Q.substring(0,K)}let J=X._add(q),U={url:q,hash:Y,extension:s8(q),...Q!==void 0?{reference:Q}:{},...G!==void 0?{baseUrl:G}:{}};try{let K=await n6(U,z,X);J.pathType=K.plugin.name,U.data=K.result;let V=await o6(U,z,X);return J.value=V.result,J.dynamicIdScope=$1(J.value),D1(X,J.path,J.value,J.pathType,J.dynamicIdScope),V.result}catch(K){if(W0(K))J.value=K;throw K}}async function n6(Z,X,z){let q=i1(X.resolve);q=n1(q,"canRead",Z,void 0,z),o1(q);try{return await r1(q,"read",Z,z)}catch(G){if(!G&&X.continueOnError)throw new F1(Z.url);else if(!G||!("error"in G))throw SyntaxError(`Unable to resolve $ref pointer "${Z.url}"`,{cause:G});else if(G.error instanceof Z0)throw G.error;else throw new Z0(G,Z.url)}}async function o6(Z,X,z){let q=i1(X.parse),G=n1(q,"canParse",Z),Q=G.length>0?G:q;o1(Q);try{let W=await r1(Q,"parse",Z,z);if(!W.plugin.allowEmpty&&r6(W.result))throw SyntaxError(`Error parsing "${Z.url}" as ${W.plugin.name}.
19
- Parsed value is empty`);else return W}catch(W){if(!W&&X.continueOnError)throw new H1(Z.url);else if(W&&W.message&&W.message.startsWith("Error parsing"))throw W;else if(!W||!("error"in W))throw SyntaxError(`Unable to parse ${Z.url}`,{cause:W});else if(W.error instanceof r)throw W.error;else throw new r(W.error.message,Z.url)}}function r6(Z){return Z===void 0||typeof Z==="object"&&Object.keys(Z).length===0||typeof Z==="string"&&Z.trim().length===0||Buffer.isBuffer(Z)&&Z.length===0}var I1;var s1=T(()=>{u();R0();s();I1=i6});var J9;var Y9=T(()=>{s();J9={order:100,allowEmpty:!0,canParse:".json",allowBOM:!0,async parse(Z){let X=Z.data;if(Buffer.isBuffer(X))X=X.toString();if(typeof X==="string")if(X.trim().length===0)return;else try{return JSON.parse(X)}catch(z){if(this.allowBOM)try{let q=X.indexOf("{");return X=X.slice(q),JSON.parse(X)}catch(q){throw new r(q.message,Z.url)}throw new r(z.message,Z.url)}else return X}}});function C9(Z){return typeof Z>"u"||Z===null}function s6(Z){return typeof Z==="object"&&Z!==null}function a6(Z){if(Array.isArray(Z))return Z;else if(C9(Z))return[];return[Z]}function t6(Z,X){var z,q,G,Q;if(X){Q=Object.keys(X);for(z=0,q=Q.length;z<q;z+=1)G=Q[z],Z[G]=X[G]}return Z}function e6(Z,X){var z="",q;for(q=0;q<X;q+=1)z+=Z;return z}function Z4(Z){return Z===0&&Number.NEGATIVE_INFINITY===1/Z}function R9(Z,X){var z="",q=Z.reason||"(unknown reason)";if(!Z.mark)return q;if(Z.mark.name)z+='in "'+Z.mark.name+'" ';if(z+="("+(Z.mark.line+1)+":"+(Z.mark.column+1)+")",!X&&Z.mark.snippet)z+=`
15
+ `:""}var d0="https://esm.sh/@vue/reactivity@3.5.32",l0="https://esm.sh/lit-html@3.3.0",L3;var n2=p(()=>{A0();f0();f2();A0();f0();f2();L3=new Set(["input","br","hr","img","meta","link","area","col","source"])});function b2(Z){if(Z.startsWith("\\\\?\\"))return Z;return Z.split("\\").join("/")}var A3,I0=()=>A3;var T8=p(()=>{A3=/^win/.test(globalThis.process?globalThis.process.platform:"")});function e(Z,X){let W=new URL(b2(Z),"https://aaa.nonexistanturl.com"),Q=new URL(b2(X),W),J=X.match(/(\s*)$/)?.[1]||"";if(Q.hostname==="aaa.nonexistanturl.com"){let{pathname:G,search:V,hash:U}=Q;return G+V+decodeURIComponent(U)+J}let Y=Q.toString()+J;if(Y.includes("#")){let[G,V]=Y.split("#",2);return G+"#"+decodeURIComponent(V||"")}return Y}function o2(){if(typeof window<"u"&&window.location&&window.location.href){let Z=window.location.href;if(!Z||!Z.startsWith("http"))try{return new URL(Z),Z}catch{return"/"}return Z}if(typeof process<"u"&&process.cwd){let Z=process.cwd(),X=Z.slice(-1);if(X==="/"||X==="\\")return Z;else return Z+"/"}return"/"}function C8(Z){let X=I3.exec(Z||"");if(X)return X[1].toLowerCase();return}function N8(Z){let X=Z.lastIndexOf(".");if(X>=0)return j3(Z.substring(X).toLowerCase());return""}function j3(Z){let X=Z.indexOf("?");if(X>=0)Z=Z.substring(0,X);return Z}function T2(Z){if(!Z)return"#";let X=Z.indexOf("#");if(X>=0)return Z.substring(X);return"#"}function a(Z){if(!Z)return"";let X=Z.indexOf("#");if(X>=0)Z=Z.substring(0,X);return Z}function j8(Z){let X=C8(Z);if(X==="http"||X==="https")return!0;else if(X===void 0)return typeof window<"u";else return!1}function o0(Z){if(!Z||typeof Z!=="string")return!0;let X=Z.trim().toLowerCase();if(!X)return!0;if(X.startsWith("javascript:")||X.startsWith("vbscript:")||X.startsWith("data:"))return!0;if(X.startsWith("file:"))return!0;if(typeof window<"u"&&window.location&&window.location.href)return!1;try{let W=new URL(X.startsWith("//")?"http:"+X:X);if(_8(W.hostname))return!0;let Q=W.port;if(Q&&k3(parseInt(Q)))return!0}catch{if(X.startsWith("/")&&!X.startsWith("//"))return!1;if(S3(X))return!0}return!1}function _8(Z){let X=_3(Z);if(!X)return!0;if(X==="localhost"||N3.some((J)=>X.endsWith(J)))return!0;let W=P8(X);if(W)return x8(W);let Q=P3(X);if(Q)return x3(Q);return!1}function _3(Z){let X=Z.trim().toLowerCase();if(X.startsWith("[")&&X.endsWith("]"))X=X.slice(1,-1);while(X.endsWith("."))X=X.slice(0,-1);return X}function P8(Z){let X=Z.split(".");if(X.length!==4)return;let W=X.map((Q)=>{if(!/^\d+$/.test(Q))return Number.NaN;return Number(Q)});if(W.some((Q)=>!Number.isInteger(Q)||Q<0||Q>255))return;return W}function x8([Z,X,W,Q]){return Z===0||Z===10||Z===127||Z===100&&X>=64&&X<=127||Z===169&&X===254||Z===172&&X>=16&&X<=31||Z===192&&X===0&&W===0||Z===192&&X===168||Z===198&&(X===18||X===19)||Z>=224||Z===255&&X===255&&W===255&&Q===255}function P3(Z){if(!Z.includes(":"))return;let X=Z,W=X.lastIndexOf(":"),Q=X.slice(W+1);if(Q.includes(".")){let U=P8(Q);if(!U)return;let q=U[0]*256+U[1],H=U[2]*256+U[3];X=`${X.slice(0,W+1)}${q.toString(16)}:${H.toString(16)}`}let J=X.split("::");if(J.length>2)return;let Y=R8(J[0]),G=J.length===2?R8(J[1]):[];if(!Y||!G)return;if(J.length===1)return Y.length===8?Y:void 0;let V=8-Y.length-G.length;if(V<1)return;return[...Y,...Array(V).fill(0),...G]}function R8(Z){if(!Z)return[];let X=Z.split(":").map((W)=>{if(!/^[\da-f]{1,4}$/i.test(W))return Number.NaN;return Number.parseInt(W,16)});if(X.some((W)=>!Number.isInteger(W)||W<0||W>65535))return;return X}function x3(Z){if(Z.length!==8)return!1;let X=Z.every((V)=>V===0),W=Z.slice(0,7).every((V)=>V===0)&&Z[7]===1,Q=(Z[0]&65024)===64512,J=(Z[0]&65472)===65152,Y=(Z[0]&65280)===65280;if(X||W||Q||J||Y)return!0;let G=E3(Z);return G?x8(G):!1}function E3(Z){let X=Z.slice(0,5).every((J)=>J===0),W=X&&Z[5]===0,Q=X&&Z[5]===65535;if(!W&&!Q)return;return[Math.floor(Z[6]/256),Z[6]%256,Math.floor(Z[7]/256),Z[7]%256]}function S3(Z){return Z.split(/[\s/?#]+/).map((W)=>W.replace(/^[a-z][\d+.a-z-]*:\/\//i,"").replace(/:\d+$/,"")).filter(Boolean).some((W)=>_8(W))}function k3(Z){return[22,23,25,53,135,139,445,993,995,1433,1521,3306,3389,5432,5900,6379,8080,8443,9200,27017].includes(Z)}function r0(Z){if(typeof window<"u"||typeof process<"u"&&!1)return!1;let X=C8(Z);return X===void 0||X==="file"}function E8(Z){if(I0()){let X=o2(),W=Z.toUpperCase(),J=b2(X).toUpperCase(),Y=W.includes(J),G=W.includes(J),V=R3.test(Z)||Z.startsWith("http://")||Z.startsWith("https://")||Z.startsWith("file://");if(!(Y||G||V)&&!X.startsWith("http"))Z=((q,H)=>{if(q.endsWith("/")||q.endsWith("\\"))return q+H;else return q+"/"+H})(X,Z);Z=b2(Z)}Z=encodeURI(Z);for(let X of C3)Z=Z.replace(X[0],X[1]);return Z}function q0(Z,X){Z=Z.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"),Z=decodeURI(Z);for(let Q=0;Q<j1.length;Q+=2)Z=Z.replace(j1[Q],j1[Q+1]);let W=Z.toLowerCase().startsWith("file://");if(W){if(Z=Z.replace(/^file:\/\//,"").replace(/^\//,""),I0()&&Z[1]==="/")Z=`${Z[0]}:${Z.substring(1)}`;if(X)Z="file:///"+Z;else W=!1,Z=I0()?Z:"/"+Z}if(I0()&&!W){if(Z=Z.replace(O3,"\\"),Z.match(/^[a-z]:\\/i))Z=Z[0].toUpperCase()+Z.substring(1)}return Z}function s0(Z){if(Z.length<=1||Z[0]!=="#"||Z[1]!=="/")return[];return Z.slice(2).split("/").map((X)=>{return X.replace(w3,"/").replace(T3,"~")})}var O3,I3,w3,T3,R3,C3,j1,N3,Y0=(Z)=>new URL(Z);var Y2=p(()=>{T8();O3=/\//g,I3=/^(\w{2,}):\/\//i,w3=/~1/g,T3=/~0/g,R3=/^[a-zA-Z]:[\\/]/,C3=[[/\?/g,"%3F"],[/#/g,"%23"]],j1=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],N3=[".localhost",".local",".internal",".intranet",".corp",".home",".lan"]});function S8(){let Z={},X=this;for(let W of y3(X))if(typeof W==="string"){let Q=X[W],J=typeof Q;if(!b3.includes(J))Z[W]=Q}return Z}function y3(Z,X=[]){let W=[];while(Z&&Z!==v3)W=W.concat(Object.getOwnPropertyNames(Z),Object.getOwnPropertySymbols(Z)),Z=Object.getPrototypeOf(Z);let Q=new Set(W);for(let J of X.concat(g3))Q.delete(J);return Q}function C2(Z){return Z instanceof V2||Z instanceof U0}function P1(Z){if(Z.path===null)Z.path=[];return Z}var b3,g3,v3,V2,U0,$2,a0,w2,t0,e0,_1,K0;var D2=p(()=>{Y2();b3=["function","symbol","undefined"],g3=["constructor","prototype","__proto__"],v3=Object.getPrototypeOf({});V2=class V2 extends Error{name;message;source;path;code;constructor(Z,X){super();this.code="EUNKNOWN",this.name="JSONParserError",this.message=Z,this.source=X,this.path=null}toJSON=S8.bind(this);get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};U0=class U0 extends Error{files;constructor(Z){super();this.files=Z,this.name="JSONParserErrorGroup",this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${q0(Z.$refs._root$Ref.path)}'`}toJSON=S8.bind(this);static getParserErrors(Z){let X=[];for(let W of Object.values(Z.$refs._$refs))if(W.errors)X.push(...W.errors);return X}get errors(){return U0.getParserErrors(this.files)}};$2=class $2 extends V2{code="EPARSER";name="ParserError";constructor(Z,X){super(`Error parsing ${X}: ${Z}`,X)}};a0=class a0 extends V2{code="EUNMATCHEDPARSER";name="UnmatchedParserError";constructor(Z){super(`Could not find parser for "${Z}"`,Z)}};w2=class w2 extends V2{code="ERESOLVER";name="ResolverError";ioErrorCode;constructor(Z,X){super(Z.message||`Error reading file "${X}"`,X);if("code"in Z)this.ioErrorCode=String(Z.code)}};t0=class t0 extends V2{code="EUNMATCHEDRESOLVER";name="UnmatchedResolverError";constructor(Z){super(`Could not find resolver for "${Z}"`,Z)}};e0=class e0 extends V2{code="EMISSINGPOINTER";name="MissingPointerError";targetToken;targetRef;targetFound;parentPath;constructor(Z,X,W,Q,J){super(`Missing $ref pointer "${T2(X)}". Token "${Z}" does not exist.`,a(X));this.targetToken=Z,this.targetRef=W,this.targetFound=Q,this.parentPath=J}};_1=class _1 extends V2{code="ETIMEOUT";name="TimeoutError";constructor(Z){super(`Dereferencing timeout reached: ${Z}ms`)}};K0=class K0 extends V2{code="EUNMATCHEDRESOLVER";name="InvalidPointerError";constructor(Z,X){super(`Invalid $ref pointer "${Z}". Pointers must begin with "#/"`,a(X))}}});function z2(Z,X){let W=h3(X);return W?e(Z,W):Z}function Z1(Z){if(!Z||typeof Z!=="object"||ArrayBuffer.isView(Z))return!1;let X=Z.$schema;if(typeof X==="string"&&(X.includes("draft/2019-09/")||X.includes("draft/2020-12/")||X.includes("oas/3.1/")))return!0;let W=Z.openapi;return typeof W==="string"&&/^3\.1(?:\.|$)/.test(W)}function X1(Z,X,W,Q,J=!1){if(!J)return;let Y=new Set,G=(V,U)=>{if(!V||typeof V!=="object"||ArrayBuffer.isView(V)||Y.has(V))return;Y.add(V);let q=z2(U,V);if(q!==U)Z._addAlias(q,V,Q,J);for(let H of Object.keys(V))G(V[H],q)};G(W,X)}function h3(Z){if(Z&&typeof Z==="object"&&"$id"in Z&&typeof Z.$id==="string"&&Z.$id.length>0)return Z.$id;return}var r2=p(()=>{Y2()});class s2{$ref;path;originalPath;scopeBase;value;circular;indirections;constructor(Z,X,W){this.$ref=Z,this.path=X,this.originalPath=W||X,this.scopeBase=Z.path||a(X),this.value=void 0,this.circular=!1,this.indirections=0}resolve(Z,X,W){let Q=s2.parse(this.path,this.originalPath),J=[];if(this.value=b8(Z),this.$ref.dynamicIdScope&&!g8(this.$ref))this.scopeBase=z2(this.scopeBase,this.value);for(let G=0;G<Q.length;G++){let V=this.circular,U=s.isExtended$Ref(this.value);if(z1(this,X,W))this.path=s2.join(this.path,Q.slice(G));else if(!V&&this.circular&&U)this.circular=!1;let q=Q[G];if(this.value[q]===void 0||this.value[q]===null&&G===Q.length-1){let H=!1;for(let E=Q.length-1;E>G;E--){let C=Q.slice(G,E+1).join("/");if(this.value[C]!==void 0){this.value=this.value[C],G=E,H=!0;break}}if(H)continue;if(q in this.value&&this.value[q]===null){this.value=W1;continue}this.value=null;let F=this.$ref.path||"",B=this.path.replace(F,""),M=s2.join("",J),L=W?.replace(F,"");throw new e0(q,decodeURI(this.originalPath),B,M,L)}else this.value=this.value[q];if(J.push(q),this.$ref.dynamicIdScope)this.scopeBase=z2(this.scopeBase,this.value)}let Y=this.$ref.dynamicIdScope?this.scopeBase:this.path;if(!this.value||this.value.$ref&&e(Y,this.value.$ref)!==W)z1(this,X,W);return this}set(Z,X,W){let Q=s2.parse(this.path),J;if(Q.length===0)return this.value=X,X;if(d3(this.path,Q),this.value=b8(Z),this.$ref.dynamicIdScope&&!g8(this.$ref))this.scopeBase=z2(this.scopeBase,this.value);for(let Y=0;Y<Q.length-1;Y++){if(z1(this,W),J=Q[Y],this.value&&this.value[J]!==void 0)this.value=this.value[J];else this.value=k8(this,J,{});if(this.$ref.dynamicIdScope)this.scopeBase=z2(this.scopeBase,this.value)}return z1(this,W),J=Q[Q.length-1],k8(this,J,X),Z}static parse(Z,X){let W=T2(Z).substring(1);if(!W)return[];let Q=W.split("/");for(let J=0;J<Q.length;J++)Q[J]=Q[J].replace(f3,"/").replace(c3,"~");if(Q[0]!=="")throw new K0(W,X===void 0?Z:X);return Q.slice(1)}static join(Z,X){if(Z.indexOf("#")===-1)Z+="#";X=Array.isArray(X)?X:[X];for(let W=0;W<X.length;W++){let Q=X[W];Z+="/"+Q.replace(u3,"~0").replace(m3,"~1")}return Z}}function z1(Z,X,W){if(s.isAllowed$Ref(Z.value,X)){let Q=Z.$ref.dynamicIdScope?Z.scopeBase:Z.path,J=e(Q,Z.value.$ref);if(J===Z.path&&!l3(W))Z.circular=!0;else{let Y=Z.$ref.$refs._resolve(J,Z.path,X);if(Y===null)return!1;if(Z.indirections+=Y.indirections+1,s.isExtended$Ref(Z.value))return Z.value=s.dereference(Z.value,Y.value,X),!1;else Z.$ref=Y.$ref,Z.path=Y.path,Z.value=Y.value,Z.scopeBase=Z.$ref.path;return!0}}return}function k8(Z,X,W){if(Z.value&&typeof Z.value==="object")if(X==="-"&&Array.isArray(Z.value))Z.value.push(W);else Z.value[X]=W;else throw new V2(`Error assigning $ref pointer "${Z.path}".
16
+ Cannot set "${X}" of a non-object.`);return W}function d3(Z,X){for(let W of X)if(p3.has(W))throw new V2(`Error assigning $ref pointer "${Z}".
17
+ Unsafe JSON Pointer token "${W}" cannot be used for assignment.`)}function b8(Z){if(C2(Z))throw Z;return Z}function l3(Z){return typeof Z=="string"&&s2.parse(Z).length==0}function g8(Z){return Boolean(Z.path&&Z.path in Z.$refs._aliases)}var W1,m3,u3,f3,c3,p3,q2;var w0=p(()=>{V0();Y2();D2();r2();W1=Symbol("null"),m3=/\//g,u3=/~/g,f3=/~1/g,c3=/~0/g,p3=new Set(["__proto__","constructor","prototype"]);q2=s2});class T0{path;value;$refs;pathType;dynamicIdScope=!1;errors=[];constructor(Z){this.$refs=Z}addError(Z){if(this.errors===void 0)this.errors=[];let X=this.errors.map(({footprint:W})=>W);if("errors"in Z&&Array.isArray(Z.errors))this.errors.push(...Z.errors.map(P1).filter(({footprint:W})=>!X.includes(W)));else if(!("footprint"in Z)||!X.includes(Z.footprint))this.errors.push(P1(Z))}exists(Z,X){try{return this.resolve(Z,X),!0}catch{return!1}}get(Z,X){return this.resolve(Z,X)?.value}resolve(Z,X,W,Q){let J=new q2(this,Z,W);try{let Y=J.resolve(this.value,X,Q);if(Y.value===W1)Y.value=null;return Y}catch(Y){if(!X||!X.continueOnError||!C2(Y))throw Y;if(Y.path===null)Y.path=s0(T2(Q));if(Y instanceof K0)Y.source=decodeURI(a(Q));return this.addError(Y),null}}set(Z,X){let W=new q2(this,Z);if(this.value=W.set(this.value,X),this.value===W1)this.value=null}static is$Ref(Z){return Boolean(Z)&&typeof Z==="object"&&Z!==null&&"$ref"in Z&&typeof Z.$ref==="string"&&Z.$ref.length>0}static isExternal$Ref(Z){return T0.is$Ref(Z)&&Z.$ref[0]!=="#"}static isAllowed$Ref(Z,X){if(this.is$Ref(Z)){if(Z.$ref.substring(0,2)==="#/"||Z.$ref==="#")return!0;else if(Z.$ref[0]!=="#"&&(!X||X.resolve?.external))return!0}return}static isExtended$Ref(Z){return T0.is$Ref(Z)&&Object.keys(Z).length>1}static dereference(Z,X,W){if(X&&typeof X==="object"&&T0.isExtended$Ref(Z)){let Q={};for(let Y of Object.keys(Z))if(Y!=="$ref")Q[Y]=Z[Y];let J=W?.dereference?.mergeKeys??!0;for(let Y of Object.keys(X)){let G=Y;if(!(G in Q))Q[G]=X[G];else if(J&&typeof Q[G]==="object"&&Q[G]!==null&&typeof X[G]==="object"&&X[G]!==null)Q[G]=v8(X[G],Q[G])}return Q}else return X}}function v8(Z,X){if(typeof Z!=="object"||Z===null)return X;if(typeof X!=="object"||X===null)return X;let W=Array.isArray(Z)?[...Z]:{...Z};for(let Q of Object.keys(X))if(Array.isArray(X[Q]))W[Q]=[...X[Q]];else if(typeof X[Q]==="object"&&X[Q]!==null)W[Q]=v8(Z[Q],X[Q]);else W[Q]=X[Q];return W}var s;var V0=p(()=>{w0();D2();Y2();s=T0});class R0{circular;paths(...Z){return y8(this._$refs,Z.flat()).map((W)=>{return b2(W.decoded)})}values(...Z){let X=this._$refs;return y8(X,Z.flat()).reduce((Q,J)=>{return Q[b2(J.decoded)]=X[J.encoded].value,Q},{})}exists(Z,X){try{return this._resolve(Z,"",X),!0}catch{return!1}}get(Z,X){return this._resolve(Z,"",X).value}set(Z,X){let W=e(this._root$Ref.path,Z),Q=this._getRef(W);if(!Q)throw Error(`Error resolving $ref pointer "${Z}".
18
+ "${a(W)}" not found.`);Q.set(W,X)}_get$Ref(Z){return Z=e(this._root$Ref.path,Z),this._getRef(Z)}_add(Z){let X=a(Z),W=new s(this);return W.path=X,this._$refs[X]=W,this._root$Ref=this._root$Ref||W,W}_addAlias(Z,X,W,Q=!1){let J=a(Z);if(!J||this._$refs[J]||this._aliases[J])return this._$refs[J]||this._aliases[J];let Y=new s(this);return Y.path=J,Y.pathType=W,Y.value=X,Y.dynamicIdScope=Q,this._aliases[J]=Y,Y}_resolve(Z,X,W){let Q=e(this._root$Ref.path,Z),J=this._getRef(Q);if(!J)throw Error(`Error resolving $ref pointer "${Z}".
19
+ "${a(Q)}" not found.`);return J.resolve(Q,W,Z,X)}_$refs={};_aliases={};_root$Ref;constructor(){this.circular=!1,this._$refs={},this._aliases={},this._root$Ref=null}toJSON=this.values;_getRef(Z){let X=a(Z);return this._$refs[X]||this._aliases[X]}}function y8(Z,X){let W=Object.keys(Z);if(X=Array.isArray(X[0])?X[0]:Array.prototype.slice.call(X),X.length>0&&X[0])W=W.filter((Q)=>{return X.includes(Z[Q].pathType)});return W.map((Q)=>{return{encoded:Q,decoded:Z[Q].pathType==="file"?q0(Q,!0):Q}})}var h8=p(()=>{V0();Y2()});function x1(Z){return Object.keys(Z||{}).filter((X)=>{return typeof Z[X]==="object"}).map((X)=>{return Z[X].name=X,Z[X]})}function E1(Z,X,W,Q,J){return Z.filter((Y)=>{return!!m8(Y,X,W,Q,J)})}function S1(Z){for(let X of Z)X.order=X.order||Number.MAX_SAFE_INTEGER;return Z.sort((X,W)=>{return X.order-W.order})}async function k1(Z,X,W,Q){let J,Y,G=0;return new Promise((V,U)=>{q();function q(){if(J=Z[G++],!J)return U(Y);try{let M=m8(J,X,W,H,Q);if(M&&typeof M.then==="function")M.then(F,B);else if(M!==void 0)F(M);else if(G===Z.length)throw Error("No promise has been returned or callback has been called.")}catch(M){B(M)}}function H(M,L){if(M)B(M);else F(L)}function F(M){V({plugin:J,result:M})}function B(M){Y={plugin:J,error:M},q()}})}function m8(Z,X,W,Q,J){let Y=Z[X];if(typeof Y==="function")return Y.apply(Z,[W,Q,J]);if(!Q){if(Y instanceof RegExp)return Y.test(W.url);else if(typeof Y==="string")return Y===W.extension;else if(Array.isArray(Y))return Y.indexOf(W.extension)!==-1}return Y}async function i3(Z,X,W){let Q=typeof Z==="string"?Z:Z.url,J=typeof Z==="string"?void 0:Z.baseUrl,Y=typeof Z==="string"?void 0:Z.reference,G=Q.indexOf("#"),V="";if(G>=0)V=Q.substring(G),Q=Q.substring(0,G);if(Y){let H=Y.indexOf("#");if(H>=0)Y=Y.substring(0,H)}let U=X._add(Q),q={url:Q,hash:V,extension:N8(Q),...Y!==void 0?{reference:Y}:{},...J!==void 0?{baseUrl:J}:{}};try{let H=await n3(q,W,X);U.pathType=H.plugin.name,q.data=H.result;let F=await o3(q,W,X);return U.value=F.result,U.dynamicIdScope=Z1(U.value),X1(X,U.path,U.value,U.pathType,U.dynamicIdScope),F.result}catch(H){if(C2(H))U.value=H;throw H}}async function n3(Z,X,W){let Q=x1(X.resolve);Q=E1(Q,"canRead",Z,void 0,W),S1(Q);try{return await k1(Q,"read",Z,W)}catch(J){if(!J&&X.continueOnError)throw new t0(Z.url);else if(!J||!("error"in J))throw SyntaxError(`Unable to resolve $ref pointer "${Z.url}"`,{cause:J});else if(J.error instanceof w2)throw J.error;else throw new w2(J,Z.url)}}async function o3(Z,X,W){let Q=x1(X.parse),J=E1(Q,"canParse",Z),Y=J.length>0?J:Q;S1(Y);try{let G=await k1(Y,"parse",Z,W);if(!G.plugin.allowEmpty&&r3(G.result))throw SyntaxError(`Error parsing "${Z.url}" as ${G.plugin.name}.
20
+ Parsed value is empty`);else return G}catch(G){if(!G&&X.continueOnError)throw new a0(Z.url);else if(G&&G.message&&G.message.startsWith("Error parsing"))throw G;else if(!G||!("error"in G))throw SyntaxError(`Unable to parse ${Z.url}`,{cause:G});else if(G.error instanceof $2)throw G.error;else throw new $2(G.error.message,Z.url)}}function r3(Z){return Z===void 0||typeof Z==="object"&&Object.keys(Z).length===0||typeof Z==="string"&&Z.trim().length===0||Buffer.isBuffer(Z)&&Z.length===0}var Q1;var b1=p(()=>{Y2();r2();D2();Q1=i3});var u8;var f8=p(()=>{D2();u8={order:100,allowEmpty:!0,canParse:".json",allowBOM:!0,async parse(Z){let X=Z.data;if(Buffer.isBuffer(X))X=X.toString();if(typeof X==="string")if(X.trim().length===0)return;else try{return JSON.parse(X)}catch(W){if(this.allowBOM)try{let Q=X.indexOf("{");return X=X.slice(Q),JSON.parse(X)}catch(Q){throw new $2(Q.message,Z.url)}throw new $2(W.message,Z.url)}else return X}}});var s3,c8,a3,t3,e3,Z4,n=(Z,X)=>()=>(X||(Z((X={exports:{}}).exports,X),Z=null),X.exports),X4=(Z,X,W,Q)=>{if(X&&typeof X==="object"||typeof X==="function"){for(var J=t3(X),Y=0,G=J.length,V;Y<G;Y++)if(V=J[Y],!Z4.call(Z,V)&&V!==W)c8(Z,V,{get:((U)=>X[U]).bind(null,V),enumerable:!(Q=a3(X,V))||Q.enumerable})}return Z},z4=(Z,X,W)=>(W=Z!=null?s3(e3(Z)):{},X4(X||!Z||!Z.__esModule?c8(W,"default",{value:Z,enumerable:!0}):W,Z)),C0,N0,W4,W2,p8,d8,l8,i8,n8,o8,r8,s8,a8,t8,e8,Z9,X9,z9,W9,Q9,G9,g1,Q4,G4,J9,h6,m6,u6,Y9,f6,c6,p6,d6,l6,i6,n6,o6,r6,s6,v1;var y1=p(()=>{/*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */s3=Object.create,c8=Object.defineProperty,a3=Object.getOwnPropertyDescriptor,t3=Object.getOwnPropertyNames,e3=Object.getPrototypeOf,Z4=Object.prototype.hasOwnProperty,C0=n((Z,X)=>{function W(U){return typeof U>"u"||U===null}function Q(U){return typeof U==="object"&&U!==null}function J(U){if(Array.isArray(U))return U;else if(W(U))return[];return[U]}function Y(U,q){if(q){let H=Object.keys(q);for(let F=0,B=H.length;F<B;F+=1){let M=H[F];U[M]=q[M]}}return U}function G(U,q){let H="";for(let F=0;F<q;F+=1)H+=U;return H}function V(U){return U===0&&Number.NEGATIVE_INFINITY===1/U}X.exports.isNothing=W,X.exports.isObject=Q,X.exports.toArray=J,X.exports.repeat=G,X.exports.isNegativeZero=V,X.exports.extend=Y}),N0=n((Z,X)=>{function W(J,Y){let G="",V=J.reason||"(unknown reason)";if(!J.mark)return V;if(J.mark.name)G+='in "'+J.mark.name+'" ';if(G+="("+(J.mark.line+1)+":"+(J.mark.column+1)+")",!Y&&J.mark.snippet)G+=`
20
21
 
21
- `+Z.mark.snippet;return q+" "+z}function e0(Z,X){if(Error.call(this),this.name="YAMLException",this.reason=Z,this.mark=X,this.message=R9(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}function a1(Z,X,z,q,G){var Q="",W="",Y=Math.floor(G/2)-1;if(q-X>Y)Q=" ... ",X=q-Y+Q.length;if(z-q>Y)W=" ...",z=q+Y-W.length;return{str:Q+Z.slice(X,z).replace(/\t/g,"→")+W,pos:q-X+Q.length}}function t1(Z,X){return b.repeat(" ",X-Z.length)+Z}function J4(Z,X){if(X=Object.create(X||null),!Z.buffer)return null;if(!X.maxLength)X.maxLength=79;if(typeof X.indent!=="number")X.indent=1;if(typeof X.linesBefore!=="number")X.linesBefore=3;if(typeof X.linesAfter!=="number")X.linesAfter=2;var z=/\r?\n|\r|\0/g,q=[0],G=[],Q,W=-1;while(Q=z.exec(Z.buffer))if(G.push(Q.index),q.push(Q.index+Q[0].length),Z.position<=Q.index&&W<0)W=q.length-2;if(W<0)W=q.length-1;var Y="",J,U,K=Math.min(Z.line+X.linesAfter,G.length).toString().length,V=X.maxLength-(X.indent+K+3);for(J=1;J<=X.linesBefore;J++){if(W-J<0)break;U=a1(Z.buffer,q[W-J],G[W-J],Z.position-(q[W]-q[W-J]),V),Y=b.repeat(" ",X.indent)+t1((Z.line-J+1).toString(),K)+" | "+U.str+`
22
- `+Y}U=a1(Z.buffer,q[W],G[W],Z.position,V),Y+=b.repeat(" ",X.indent)+t1((Z.line+1).toString(),K)+" | "+U.str+`
23
- `,Y+=b.repeat("-",X.indent+K+3+U.pos)+`^
24
- `;for(J=1;J<=X.linesAfter;J++){if(W+J>=G.length)break;U=a1(Z.buffer,q[W+J],G[W+J],Z.position-(q[W]-q[W+J]),V),Y+=b.repeat(" ",X.indent)+t1((Z.line+J+1).toString(),K)+" | "+U.str+`
25
- `}return Y.replace(/\n$/,"")}function V4(Z){var X={};if(Z!==null)Object.keys(Z).forEach(function(z){Z[z].forEach(function(q){X[String(q)]=z})});return X}function M4(Z,X){if(X=X||{},Object.keys(X).forEach(function(z){if(U4.indexOf(z)===-1)throw new m('Unknown option "'+z+'" is met in definition of "'+Z+'" YAML type.')}),this.options=X,this.tag=Z,this.kind=X.kind||null,this.resolve=X.resolve||function(){return!0},this.construct=X.construct||function(z){return z},this.instanceOf=X.instanceOf||null,this.predicate=X.predicate||null,this.represent=X.represent||null,this.representName=X.representName||null,this.defaultStyle=X.defaultStyle||null,this.multi=X.multi||!1,this.styleAliases=V4(X.styleAliases||null),K4.indexOf(this.kind)===-1)throw new m('Unknown kind "'+this.kind+'" is specified for "'+Z+'" YAML type.')}function U9(Z,X){var z=[];return Z[X].forEach(function(q){var G=z.length;z.forEach(function(Q,W){if(Q.tag===q.tag&&Q.kind===q.kind&&Q.multi===q.multi)G=W}),z[G]=q}),z}function H4(){var Z={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},X,z;function q(G){if(G.multi)Z.multi[G.kind].push(G),Z.multi.fallback.push(G);else Z[G.kind][G.tag]=Z.fallback[G.tag]=G}for(X=0,z=arguments.length;X<z;X+=1)arguments[X].forEach(q);return Z}function Z8(Z){return this.extend(Z)}function F4(Z){if(Z===null)return!0;var X=Z.length;return X===1&&Z==="~"||X===4&&(Z==="null"||Z==="Null"||Z==="NULL")}function B4(){return null}function $4(Z){return Z===null}function D4(Z){if(Z===null)return!1;var X=Z.length;return X===4&&(Z==="true"||Z==="True"||Z==="TRUE")||X===5&&(Z==="false"||Z==="False"||Z==="FALSE")}function A4(Z){return Z==="true"||Z==="True"||Z==="TRUE"}function L4(Z){return Object.prototype.toString.call(Z)==="[object Boolean]"}function I4(Z){return 48<=Z&&Z<=57||65<=Z&&Z<=70||97<=Z&&Z<=102}function w4(Z){return 48<=Z&&Z<=55}function O4(Z){return 48<=Z&&Z<=57}function T4(Z){if(Z===null)return!1;var X=Z.length,z=0,q=!1,G;if(!X)return!1;if(G=Z[z],G==="-"||G==="+")G=Z[++z];if(G==="0"){if(z+1===X)return!0;if(G=Z[++z],G==="b"){z++;for(;z<X;z++){if(G=Z[z],G==="_")continue;if(G!=="0"&&G!=="1")return!1;q=!0}return q&&G!=="_"}if(G==="x"){z++;for(;z<X;z++){if(G=Z[z],G==="_")continue;if(!I4(Z.charCodeAt(z)))return!1;q=!0}return q&&G!=="_"}if(G==="o"){z++;for(;z<X;z++){if(G=Z[z],G==="_")continue;if(!w4(Z.charCodeAt(z)))return!1;q=!0}return q&&G!=="_"}}if(G==="_")return!1;for(;z<X;z++){if(G=Z[z],G==="_")continue;if(!O4(Z.charCodeAt(z)))return!1;q=!0}if(!q||G==="_")return!1;return!0}function C4(Z){var X=Z,z=1,q;if(X.indexOf("_")!==-1)X=X.replace(/_/g,"");if(q=X[0],q==="-"||q==="+"){if(q==="-")z=-1;X=X.slice(1),q=X[0]}if(X==="0")return 0;if(q==="0"){if(X[1]==="b")return z*parseInt(X.slice(2),2);if(X[1]==="x")return z*parseInt(X.slice(2),16);if(X[1]==="o")return z*parseInt(X.slice(2),8)}return z*parseInt(X,10)}function R4(Z){return Object.prototype.toString.call(Z)==="[object Number]"&&(Z%1===0&&!b.isNegativeZero(Z))}function j4(Z){if(Z===null)return!1;if(!N4.test(Z)||Z[Z.length-1]==="_")return!1;return!0}function _4(Z){var X,z;if(X=Z.replace(/_/g,"").toLowerCase(),z=X[0]==="-"?-1:1,"+-".indexOf(X[0])>=0)X=X.slice(1);if(X===".inf")return z===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(X===".nan")return NaN;return z*parseFloat(X,10)}function x4(Z,X){var z;if(isNaN(Z))switch(X){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===Z)switch(X){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===Z)switch(X){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(b.isNegativeZero(Z))return"-0.0";return z=Z.toString(10),P4.test(z)?z.replace("e",".e"):z}function E4(Z){return Object.prototype.toString.call(Z)==="[object Number]"&&(Z%1!==0||b.isNegativeZero(Z))}function S4(Z){if(Z===null)return!1;if(y9.exec(Z)!==null)return!0;if(m9.exec(Z)!==null)return!0;return!1}function k4(Z){var X,z,q,G,Q,W,Y,J=0,U=null,K,V,M;if(X=y9.exec(Z),X===null)X=m9.exec(Z);if(X===null)throw Error("Date resolve error");if(z=+X[1],q=+X[2]-1,G=+X[3],!X[4])return new Date(Date.UTC(z,q,G));if(Q=+X[4],W=+X[5],Y=+X[6],X[7]){J=X[7].slice(0,3);while(J.length<3)J+="0";J=+J}if(X[9]){if(K=+X[10],V=+(X[11]||0),U=(K*60+V)*60000,X[9]==="-")U=-U}if(M=new Date(Date.UTC(z,q,G,Q,W,Y,J)),U)M.setTime(M.getTime()-U);return M}function b4(Z){return Z.toISOString()}function g4(Z){return Z==="<<"||Z===null}function v4(Z){if(Z===null)return!1;var X,z,q=0,G=Z.length,Q=W8;for(z=0;z<G;z++){if(X=Q.indexOf(Z.charAt(z)),X>64)continue;if(X<0)return!1;q+=6}return q%8===0}function y4(Z){var X,z,q=Z.replace(/[\r\n=]/g,""),G=q.length,Q=W8,W=0,Y=[];for(X=0;X<G;X++){if(X%4===0&&X)Y.push(W>>16&255),Y.push(W>>8&255),Y.push(W&255);W=W<<6|Q.indexOf(q.charAt(X))}if(z=G%4*6,z===0)Y.push(W>>16&255),Y.push(W>>8&255),Y.push(W&255);else if(z===18)Y.push(W>>10&255),Y.push(W>>2&255);else if(z===12)Y.push(W>>4&255);return new Uint8Array(Y)}function m4(Z){var X="",z=0,q,G,Q=Z.length,W=W8;for(q=0;q<Q;q++){if(q%3===0&&q)X+=W[z>>18&63],X+=W[z>>12&63],X+=W[z>>6&63],X+=W[z&63];z=(z<<8)+Z[q]}if(G=Q%3,G===0)X+=W[z>>18&63],X+=W[z>>12&63],X+=W[z>>6&63],X+=W[z&63];else if(G===2)X+=W[z>>10&63],X+=W[z>>4&63],X+=W[z<<2&63],X+=W[64];else if(G===1)X+=W[z>>2&63],X+=W[z<<4&63],X+=W[64],X+=W[64];return X}function h4(Z){return Object.prototype.toString.call(Z)==="[object Uint8Array]"}function c4(Z){if(Z===null)return!0;var X=[],z,q,G,Q,W,Y=Z;for(z=0,q=Y.length;z<q;z+=1){if(G=Y[z],W=!1,f4.call(G)!=="[object Object]")return!1;for(Q in G)if(u4.call(G,Q))if(!W)W=!0;else return!1;if(!W)return!1;if(X.indexOf(Q)===-1)X.push(Q);else return!1}return!0}function p4(Z){return Z!==null?Z:[]}function l4(Z){if(Z===null)return!0;var X,z,q,G,Q,W=Z;Q=Array(W.length);for(X=0,z=W.length;X<z;X+=1){if(q=W[X],d4.call(q)!=="[object Object]")return!1;if(G=Object.keys(q),G.length!==1)return!1;Q[X]=[G[0],q[G[0]]]}return!0}function i4(Z){if(Z===null)return[];var X,z,q,G,Q,W=Z;Q=Array(W.length);for(X=0,z=W.length;X<z;X+=1)q=W[X],G=Object.keys(q),Q[X]=[G[0],q[G[0]]];return Q}function o4(Z){if(Z===null)return!0;var X,z=Z;for(X in z)if(n4.call(z,X)){if(z[X]!==null)return!1}return!0}function r4(Z){return Z!==null?Z:{}}function V9(Z){return Object.prototype.toString.call(Z)}function Q0(Z){return Z===10||Z===13}function j0(Z){return Z===9||Z===32}function c(Z){return Z===9||Z===32||Z===10||Z===13}function f0(Z){return Z===44||Z===91||Z===93||Z===123||Z===125}function Z5(Z){var X;if(48<=Z&&Z<=57)return Z-48;if(X=Z|32,97<=X&&X<=102)return X-97+10;return-1}function X5(Z){if(Z===120)return 2;if(Z===117)return 4;if(Z===85)return 8;return 0}function z5(Z){if(48<=Z&&Z<=57)return Z-48;return-1}function M9(Z){return Z===48?"\x00":Z===97?"\x07":Z===98?"\b":Z===116?"\t":Z===9?"\t":Z===110?`
26
- `:Z===118?"\v":Z===102?"\f":Z===114?"\r":Z===101?"\x1B":Z===32?" ":Z===34?'"':Z===47?"/":Z===92?"\\":Z===78?"…":Z===95?" ":Z===76?"\u2028":Z===80?"\u2029":""}function q5(Z){if(Z<=65535)return String.fromCharCode(Z);return String.fromCharCode((Z-65536>>10)+55296,(Z-65536&1023)+56320)}function r9(Z,X,z){if(X==="__proto__")Object.defineProperty(Z,X,{configurable:!0,enumerable:!0,writable:!0,value:z});else Z[X]=z}function G5(Z,X){this.input=Z,this.filename=X.filename||null,this.schema=X.schema||Q8,this.onWarning=X.onWarning||null,this.legacy=X.legacy||!1,this.json=X.json||!1,this.listener=X.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=Z.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function t9(Z,X){var z={name:Z.filename,buffer:Z.input.slice(0,-1),position:Z.position,line:Z.line,column:Z.position-Z.lineStart};return z.snippet=Y4(z),new m(X,z)}function L(Z,X){throw t9(Z,X)}function T1(Z,X){if(Z.onWarning)Z.onWarning.call(null,t9(Z,X))}function A0(Z,X,z,q){var G,Q,W,Y;if(X<z){if(Y=Z.input.slice(X,z),q){for(G=0,Q=Y.length;G<Q;G+=1)if(W=Y.charCodeAt(G),!(W===9||32<=W&&W<=1114111))L(Z,"expected valid JSON character")}else if(a4.test(Y))L(Z,"the stream contains non-printable characters");Z.result+=Y}}function F9(Z,X,z,q){var G,Q,W,Y;if(!b.isObject(z))L(Z,"cannot merge mappings; the provided source object is unacceptable");G=Object.keys(z);for(W=0,Y=G.length;W<Y;W+=1)if(Q=G[W],!L0.call(X,Q))r9(X,Q,z[Q]),q[Q]=!0}function c0(Z,X,z,q,G,Q,W,Y,J){var U,K;if(Array.isArray(G)){G=Array.prototype.slice.call(G);for(U=0,K=G.length;U<K;U+=1){if(Array.isArray(G[U]))L(Z,"nested arrays are not supported inside keys");if(typeof G==="object"&&V9(G[U])==="[object Object]")G[U]="[object Object]"}}if(typeof G==="object"&&V9(G)==="[object Object]")G="[object Object]";if(G=String(G),X===null)X={};if(q==="tag:yaml.org,2002:merge")if(Array.isArray(Q))for(U=0,K=Q.length;U<K;U+=1)F9(Z,X,Q[U],z);else F9(Z,X,Q,z);else{if(!Z.json&&!L0.call(z,G)&&L0.call(X,G))Z.line=W||Z.line,Z.lineStart=Y||Z.lineStart,Z.position=J||Z.position,L(Z,"duplicated mapping key");r9(X,G,Q),delete z[G]}return X}function J8(Z){var X=Z.input.charCodeAt(Z.position);if(X===10)Z.position++;else if(X===13){if(Z.position++,Z.input.charCodeAt(Z.position)===10)Z.position++}else L(Z,"a line break is expected");Z.line+=1,Z.lineStart=Z.position,Z.firstTabInLine=-1}function E(Z,X,z){var q=0,G=Z.input.charCodeAt(Z.position);while(G!==0){while(j0(G)){if(G===9&&Z.firstTabInLine===-1)Z.firstTabInLine=Z.position;G=Z.input.charCodeAt(++Z.position)}if(X&&G===35)do G=Z.input.charCodeAt(++Z.position);while(G!==10&&G!==13&&G!==0);if(Q0(G)){J8(Z),G=Z.input.charCodeAt(Z.position),q++,Z.lineIndent=0;while(G===32)Z.lineIndent++,G=Z.input.charCodeAt(++Z.position)}else break}if(z!==-1&&q!==0&&Z.lineIndent<z)T1(Z,"deficient indentation");return q}function N1(Z){var X=Z.position,z;if(z=Z.input.charCodeAt(X),(z===45||z===46)&&z===Z.input.charCodeAt(X+1)&&z===Z.input.charCodeAt(X+2)){if(X+=3,z=Z.input.charCodeAt(X),z===0||c(z))return!0}return!1}function Y8(Z,X){if(X===1)Z.result+=" ";else if(X>1)Z.result+=b.repeat(`
27
- `,X-1)}function W5(Z,X,z){var q,G,Q,W,Y,J,U,K,V=Z.kind,M=Z.result,H;if(H=Z.input.charCodeAt(Z.position),c(H)||f0(H)||H===35||H===38||H===42||H===33||H===124||H===62||H===39||H===34||H===37||H===64||H===96)return!1;if(H===63||H===45){if(G=Z.input.charCodeAt(Z.position+1),c(G)||z&&f0(G))return!1}Z.kind="scalar",Z.result="",Q=W=Z.position,Y=!1;while(H!==0){if(H===58){if(G=Z.input.charCodeAt(Z.position+1),c(G)||z&&f0(G))break}else if(H===35){if(q=Z.input.charCodeAt(Z.position-1),c(q))break}else if(Z.position===Z.lineStart&&N1(Z)||z&&f0(H))break;else if(Q0(H))if(J=Z.line,U=Z.lineStart,K=Z.lineIndent,E(Z,!1,-1),Z.lineIndent>=X){Y=!0,H=Z.input.charCodeAt(Z.position);continue}else{Z.position=W,Z.line=J,Z.lineStart=U,Z.lineIndent=K;break}if(Y)A0(Z,Q,W,!1),Y8(Z,Z.line-J),Q=W=Z.position,Y=!1;if(!j0(H))W=Z.position+1;H=Z.input.charCodeAt(++Z.position)}if(A0(Z,Q,W,!1),Z.result)return!0;return Z.kind=V,Z.result=M,!1}function Q5(Z,X){var z,q,G;if(z=Z.input.charCodeAt(Z.position),z!==39)return!1;Z.kind="scalar",Z.result="",Z.position++,q=G=Z.position;while((z=Z.input.charCodeAt(Z.position))!==0)if(z===39)if(A0(Z,q,Z.position,!0),z=Z.input.charCodeAt(++Z.position),z===39)q=Z.position,Z.position++,G=Z.position;else return!0;else if(Q0(z))A0(Z,q,G,!0),Y8(Z,E(Z,!1,X)),q=G=Z.position;else if(Z.position===Z.lineStart&&N1(Z))L(Z,"unexpected end of the document within a single quoted scalar");else Z.position++,G=Z.position;L(Z,"unexpected end of the stream within a single quoted scalar")}function J5(Z,X){var z,q,G,Q,W,Y;if(Y=Z.input.charCodeAt(Z.position),Y!==34)return!1;Z.kind="scalar",Z.result="",Z.position++,z=q=Z.position;while((Y=Z.input.charCodeAt(Z.position))!==0)if(Y===34)return A0(Z,z,Z.position,!0),Z.position++,!0;else if(Y===92){if(A0(Z,z,Z.position,!0),Y=Z.input.charCodeAt(++Z.position),Q0(Y))E(Z,!1,X);else if(Y<256&&s9[Y])Z.result+=a9[Y],Z.position++;else if((W=X5(Y))>0){G=W,Q=0;for(;G>0;G--)if(Y=Z.input.charCodeAt(++Z.position),(W=Z5(Y))>=0)Q=(Q<<4)+W;else L(Z,"expected hexadecimal character");Z.result+=q5(Q),Z.position++}else L(Z,"unknown escape sequence");z=q=Z.position}else if(Q0(Y))A0(Z,z,q,!0),Y8(Z,E(Z,!1,X)),z=q=Z.position;else if(Z.position===Z.lineStart&&N1(Z))L(Z,"unexpected end of the document within a double quoted scalar");else Z.position++,q=Z.position;L(Z,"unexpected end of the stream within a double quoted scalar")}function Y5(Z,X){var z=!0,q,G,Q,W=Z.tag,Y,J=Z.anchor,U,K,V,M,H,F=Object.create(null),A,B,D,$;if($=Z.input.charCodeAt(Z.position),$===91)K=93,H=!1,Y=[];else if($===123)K=125,H=!0,Y={};else return!1;if(Z.anchor!==null)Z.anchorMap[Z.anchor]=Y;$=Z.input.charCodeAt(++Z.position);while($!==0){if(E(Z,!0,X),$=Z.input.charCodeAt(Z.position),$===K)return Z.position++,Z.tag=W,Z.anchor=J,Z.kind=H?"mapping":"sequence",Z.result=Y,!0;else if(!z)L(Z,"missed comma between flow collection entries");else if($===44)L(Z,"expected the node content, but found ','");if(B=A=D=null,V=M=!1,$===63){if(U=Z.input.charCodeAt(Z.position+1),c(U))V=M=!0,Z.position++,E(Z,!0,X)}if(q=Z.line,G=Z.lineStart,Q=Z.position,p0(Z,X,w1,!1,!0),B=Z.tag,A=Z.result,E(Z,!0,X),$=Z.input.charCodeAt(Z.position),(M||Z.line===q)&&$===58)V=!0,$=Z.input.charCodeAt(++Z.position),E(Z,!0,X),p0(Z,X,w1,!1,!0),D=Z.result;if(H)c0(Z,Y,F,B,A,D,q,G,Q);else if(V)Y.push(c0(Z,null,F,B,A,D,q,G,Q));else Y.push(A);if(E(Z,!0,X),$=Z.input.charCodeAt(Z.position),$===44)z=!0,$=Z.input.charCodeAt(++Z.position);else z=!1}L(Z,"unexpected end of the stream within a flow collection")}function U5(Z,X){var z,q,G=e1,Q=!1,W=!1,Y=X,J=0,U=!1,K,V;if(V=Z.input.charCodeAt(Z.position),V===124)q=!1;else if(V===62)q=!0;else return!1;Z.kind="scalar",Z.result="";while(V!==0)if(V=Z.input.charCodeAt(++Z.position),V===43||V===45)if(e1===G)G=V===43?K9:s4;else L(Z,"repeat of a chomping mode identifier");else if((K=z5(V))>=0)if(K===0)L(Z,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!W)Y=X+K-1,W=!0;else L(Z,"repeat of an indentation width identifier");else break;if(j0(V)){do V=Z.input.charCodeAt(++Z.position);while(j0(V));if(V===35)do V=Z.input.charCodeAt(++Z.position);while(!Q0(V)&&V!==0)}while(V!==0){J8(Z),Z.lineIndent=0,V=Z.input.charCodeAt(Z.position);while((!W||Z.lineIndent<Y)&&V===32)Z.lineIndent++,V=Z.input.charCodeAt(++Z.position);if(!W&&Z.lineIndent>Y)Y=Z.lineIndent;if(Q0(V)){J++;continue}if(Z.lineIndent<Y){if(G===K9)Z.result+=b.repeat(`
28
- `,Q?1+J:J);else if(G===e1){if(Q)Z.result+=`
29
- `}break}if(q)if(j0(V))U=!0,Z.result+=b.repeat(`
30
- `,Q?1+J:J);else if(U)U=!1,Z.result+=b.repeat(`
31
- `,J+1);else if(J===0){if(Q)Z.result+=" "}else Z.result+=b.repeat(`
32
- `,J);else Z.result+=b.repeat(`
33
- `,Q?1+J:J);Q=!0,W=!0,J=0,z=Z.position;while(!Q0(V)&&V!==0)V=Z.input.charCodeAt(++Z.position);A0(Z,z,Z.position,!1)}return!0}function B9(Z,X){var z,q=Z.tag,G=Z.anchor,Q=[],W,Y=!1,J;if(Z.firstTabInLine!==-1)return!1;if(Z.anchor!==null)Z.anchorMap[Z.anchor]=Q;J=Z.input.charCodeAt(Z.position);while(J!==0){if(Z.firstTabInLine!==-1)Z.position=Z.firstTabInLine,L(Z,"tab characters must not be used in indentation");if(J!==45)break;if(W=Z.input.charCodeAt(Z.position+1),!c(W))break;if(Y=!0,Z.position++,E(Z,!0,-1)){if(Z.lineIndent<=X){Q.push(null),J=Z.input.charCodeAt(Z.position);continue}}if(z=Z.line,p0(Z,X,i9,!1,!0),Q.push(Z.result),E(Z,!0,-1),J=Z.input.charCodeAt(Z.position),(Z.line===z||Z.lineIndent>X)&&J!==0)L(Z,"bad indentation of a sequence entry");else if(Z.lineIndent<X)break}if(Y)return Z.tag=q,Z.anchor=G,Z.kind="sequence",Z.result=Q,!0;return!1}function K5(Z,X,z){var q,G,Q,W,Y,J,U=Z.tag,K=Z.anchor,V={},M=Object.create(null),H=null,F=null,A=null,B=!1,D=!1,$;if(Z.firstTabInLine!==-1)return!1;if(Z.anchor!==null)Z.anchorMap[Z.anchor]=V;$=Z.input.charCodeAt(Z.position);while($!==0){if(!B&&Z.firstTabInLine!==-1)Z.position=Z.firstTabInLine,L(Z,"tab characters must not be used in indentation");if(q=Z.input.charCodeAt(Z.position+1),Q=Z.line,($===63||$===58)&&c(q)){if($===63){if(B)c0(Z,V,M,H,F,null,W,Y,J),H=F=A=null;D=!0,B=!0,G=!0}else if(B)B=!1,G=!0;else L(Z,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");Z.position+=1,$=q}else{if(W=Z.line,Y=Z.lineStart,J=Z.position,!p0(Z,z,l9,!1,!0))break;if(Z.line===Q){$=Z.input.charCodeAt(Z.position);while(j0($))$=Z.input.charCodeAt(++Z.position);if($===58){if($=Z.input.charCodeAt(++Z.position),!c($))L(Z,"a whitespace character is expected after the key-value separator within a block mapping");if(B)c0(Z,V,M,H,F,null,W,Y,J),H=F=A=null;D=!0,B=!1,G=!1,H=Z.tag,F=Z.result}else if(D)L(Z,"can not read an implicit mapping pair; a colon is missed");else return Z.tag=U,Z.anchor=K,!0}else if(D)L(Z,"can not read a block mapping entry; a multiline key may not be an implicit key");else return Z.tag=U,Z.anchor=K,!0}if(Z.line===Q||Z.lineIndent>X){if(B)W=Z.line,Y=Z.lineStart,J=Z.position;if(p0(Z,X,O1,!0,G))if(B)F=Z.result;else A=Z.result;if(!B)c0(Z,V,M,H,F,A,W,Y,J),H=F=A=null;E(Z,!0,-1),$=Z.input.charCodeAt(Z.position)}if((Z.line===Q||Z.lineIndent>X)&&$!==0)L(Z,"bad indentation of a mapping entry");else if(Z.lineIndent<X)break}if(B)c0(Z,V,M,H,F,null,W,Y,J);if(D)Z.tag=U,Z.anchor=K,Z.kind="mapping",Z.result=V;return D}function V5(Z){var X,z=!1,q=!1,G,Q,W;if(W=Z.input.charCodeAt(Z.position),W!==33)return!1;if(Z.tag!==null)L(Z,"duplication of a tag property");if(W=Z.input.charCodeAt(++Z.position),W===60)z=!0,W=Z.input.charCodeAt(++Z.position);else if(W===33)q=!0,G="!!",W=Z.input.charCodeAt(++Z.position);else G="!";if(X=Z.position,z){do W=Z.input.charCodeAt(++Z.position);while(W!==0&&W!==62);if(Z.position<Z.length)Q=Z.input.slice(X,Z.position),W=Z.input.charCodeAt(++Z.position);else L(Z,"unexpected end of the stream within a verbatim tag")}else{while(W!==0&&!c(W)){if(W===33)if(!q){if(G=Z.input.slice(X-1,Z.position+1),!n9.test(G))L(Z,"named tag handle cannot contain such characters");q=!0,X=Z.position+1}else L(Z,"tag suffix cannot contain exclamation marks");W=Z.input.charCodeAt(++Z.position)}if(Q=Z.input.slice(X,Z.position),e4.test(Q))L(Z,"tag suffix cannot contain flow indicator characters")}if(Q&&!o9.test(Q))L(Z,"tag name cannot contain such characters: "+Q);try{Q=decodeURIComponent(Q)}catch(Y){L(Z,"tag name is malformed: "+Q)}if(z)Z.tag=Q;else if(L0.call(Z.tagMap,G))Z.tag=Z.tagMap[G]+Q;else if(G==="!")Z.tag="!"+Q;else if(G==="!!")Z.tag="tag:yaml.org,2002:"+Q;else L(Z,'undeclared tag handle "'+G+'"');return!0}function M5(Z){var X,z;if(z=Z.input.charCodeAt(Z.position),z!==38)return!1;if(Z.anchor!==null)L(Z,"duplication of an anchor property");z=Z.input.charCodeAt(++Z.position),X=Z.position;while(z!==0&&!c(z)&&!f0(z))z=Z.input.charCodeAt(++Z.position);if(Z.position===X)L(Z,"name of an anchor node must contain at least one character");return Z.anchor=Z.input.slice(X,Z.position),!0}function H5(Z){var X,z,q;if(q=Z.input.charCodeAt(Z.position),q!==42)return!1;q=Z.input.charCodeAt(++Z.position),X=Z.position;while(q!==0&&!c(q)&&!f0(q))q=Z.input.charCodeAt(++Z.position);if(Z.position===X)L(Z,"name of an alias node must contain at least one character");if(z=Z.input.slice(X,Z.position),!L0.call(Z.anchorMap,z))L(Z,'unidentified alias "'+z+'"');return Z.result=Z.anchorMap[z],E(Z,!0,-1),!0}function p0(Z,X,z,q,G){var Q,W,Y,J=1,U=!1,K=!1,V,M,H,F,A,B;if(Z.listener!==null)Z.listener("open",Z);if(Z.tag=null,Z.anchor=null,Z.kind=null,Z.result=null,Q=W=Y=O1===z||i9===z,q){if(E(Z,!0,-1)){if(U=!0,Z.lineIndent>X)J=1;else if(Z.lineIndent===X)J=0;else if(Z.lineIndent<X)J=-1}}if(J===1)while(V5(Z)||M5(Z))if(E(Z,!0,-1)){if(U=!0,Y=Q,Z.lineIndent>X)J=1;else if(Z.lineIndent===X)J=0;else if(Z.lineIndent<X)J=-1}else Y=!1;if(Y)Y=U||G;if(J===1||O1===z){if(w1===z||l9===z)A=X;else A=X+1;if(B=Z.position-Z.lineStart,J===1)if(Y&&(B9(Z,B)||K5(Z,B,A))||Y5(Z,A))K=!0;else{if(W&&U5(Z,A)||Q5(Z,A)||J5(Z,A))K=!0;else if(H5(Z)){if(K=!0,Z.tag!==null||Z.anchor!==null)L(Z,"alias node should not have any properties")}else if(W5(Z,A,w1===z)){if(K=!0,Z.tag===null)Z.tag="?"}if(Z.anchor!==null)Z.anchorMap[Z.anchor]=Z.result}else if(J===0)K=Y&&B9(Z,B)}if(Z.tag===null){if(Z.anchor!==null)Z.anchorMap[Z.anchor]=Z.result}else if(Z.tag==="?"){if(Z.result!==null&&Z.kind!=="scalar")L(Z,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+Z.kind+'"');for(V=0,M=Z.implicitTypes.length;V<M;V+=1)if(F=Z.implicitTypes[V],F.resolve(Z.result)){if(Z.result=F.construct(Z.result),Z.tag=F.tag,Z.anchor!==null)Z.anchorMap[Z.anchor]=Z.result;break}}else if(Z.tag!=="!"){if(L0.call(Z.typeMap[Z.kind||"fallback"],Z.tag))F=Z.typeMap[Z.kind||"fallback"][Z.tag];else{F=null,H=Z.typeMap.multi[Z.kind||"fallback"];for(V=0,M=H.length;V<M;V+=1)if(Z.tag.slice(0,H[V].tag.length)===H[V].tag){F=H[V];break}}if(!F)L(Z,"unknown tag !<"+Z.tag+">");if(Z.result!==null&&F.kind!==Z.kind)L(Z,"unacceptable node kind for !<"+Z.tag+'> tag; it should be "'+F.kind+'", not "'+Z.kind+'"');if(!F.resolve(Z.result,Z.tag))L(Z,"cannot resolve a node with !<"+Z.tag+"> explicit tag");else if(Z.result=F.construct(Z.result,Z.tag),Z.anchor!==null)Z.anchorMap[Z.anchor]=Z.result}if(Z.listener!==null)Z.listener("close",Z);return Z.tag!==null||Z.anchor!==null||K}function F5(Z){var X=Z.position,z,q,G,Q=!1,W;Z.version=null,Z.checkLineBreaks=Z.legacy,Z.tagMap=Object.create(null),Z.anchorMap=Object.create(null);while((W=Z.input.charCodeAt(Z.position))!==0){if(E(Z,!0,-1),W=Z.input.charCodeAt(Z.position),Z.lineIndent>0||W!==37)break;Q=!0,W=Z.input.charCodeAt(++Z.position),z=Z.position;while(W!==0&&!c(W))W=Z.input.charCodeAt(++Z.position);if(q=Z.input.slice(z,Z.position),G=[],q.length<1)L(Z,"directive name must not be less than one character in length");while(W!==0){while(j0(W))W=Z.input.charCodeAt(++Z.position);if(W===35){do W=Z.input.charCodeAt(++Z.position);while(W!==0&&!Q0(W));break}if(Q0(W))break;z=Z.position;while(W!==0&&!c(W))W=Z.input.charCodeAt(++Z.position);G.push(Z.input.slice(z,Z.position))}if(W!==0)J8(Z);if(L0.call(H9,q))H9[q](Z,q,G);else T1(Z,'unknown document directive "'+q+'"')}if(E(Z,!0,-1),Z.lineIndent===0&&Z.input.charCodeAt(Z.position)===45&&Z.input.charCodeAt(Z.position+1)===45&&Z.input.charCodeAt(Z.position+2)===45)Z.position+=3,E(Z,!0,-1);else if(Q)L(Z,"directives end mark is expected");if(p0(Z,Z.lineIndent-1,O1,!1,!0),E(Z,!0,-1),Z.checkLineBreaks&&t4.test(Z.input.slice(X,Z.position)))T1(Z,"non-ASCII line breaks are interpreted as content");if(Z.documents.push(Z.result),Z.position===Z.lineStart&&N1(Z)){if(Z.input.charCodeAt(Z.position)===46)Z.position+=3,E(Z,!0,-1);return}if(Z.position<Z.length-1)L(Z,"end of the stream or a document separator is expected");else return}function e9(Z,X){if(Z=String(Z),X=X||{},Z.length!==0){if(Z.charCodeAt(Z.length-1)!==10&&Z.charCodeAt(Z.length-1)!==13)Z+=`
34
- `;if(Z.charCodeAt(0)===65279)Z=Z.slice(1)}var z=new G5(Z,X),q=Z.indexOf("\x00");if(q!==-1)z.position=q,L(z,"null byte is not allowed in input");z.input+="\x00";while(z.input.charCodeAt(z.position)===32)z.lineIndent+=1,z.position+=1;while(z.position<z.length-1)F5(z);return z.documents}function B5(Z,X,z){if(X!==null&&typeof X==="object"&&typeof z>"u")z=X,X=null;var q=e9(Z,z);if(typeof X!=="function")return q;for(var G=0,Q=q.length;G<Q;G+=1)X(q[G])}function $5(Z,X){var z=e9(Z,X);if(z.length===0)return;else if(z.length===1)return z[0];throw new m("expected a single document in the stream, but found more")}function y5(Z,X){var z,q,G,Q,W,Y,J;if(X===null)return{};z={},q=Object.keys(X);for(G=0,Q=q.length;G<Q;G+=1){if(W=q[G],Y=String(X[W]),W.slice(0,2)==="!!")W="tag:yaml.org,2002:"+W.slice(2);if(J=Z.compiledTypeMap.fallback[W],J&&zZ.call(J.styleAliases,Y))Y=J.styleAliases[Y];z[W]=Y}return z}function m5(Z){var X,z,q;if(X=Z.toString(16).toUpperCase(),Z<=255)z="x",q=2;else if(Z<=65535)z="u",q=4;else if(Z<=4294967295)z="U",q=8;else throw new m("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+z+b.repeat("0",q-X.length)+X}function u5(Z){this.schema=Z.schema||Q8,this.indent=Math.max(1,Z.indent||2),this.noArrayIndent=Z.noArrayIndent||!1,this.skipInvalid=Z.skipInvalid||!1,this.flowLevel=b.isNothing(Z.flowLevel)?-1:Z.flowLevel,this.styleMap=y5(this.schema,Z.styles||null),this.sortKeys=Z.sortKeys||!1,this.lineWidth=Z.lineWidth||80,this.noRefs=Z.noRefs||!1,this.noCompatMode=Z.noCompatMode||!1,this.condenseFlow=Z.condenseFlow||!1,this.quotingType=Z.quotingType==='"'?X1:h5,this.forceQuotes=Z.forceQuotes||!1,this.replacer=typeof Z.replacer==="function"?Z.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function $9(Z,X){var z=b.repeat(" ",X),q=0,G=-1,Q="",W,Y=Z.length;while(q<Y){if(G=Z.indexOf(`
35
- `,q),G===-1)W=Z.slice(q),q=Y;else W=Z.slice(q,G+1),q=G+1;if(W.length&&W!==`
36
- `)Q+=z;Q+=W}return Q}function z8(Z,X){return`
37
- `+b.repeat(" ",Z.indent*X)}function f5(Z,X){var z,q,G;for(z=0,q=Z.implicitTypes.length;z<q;z+=1)if(G=Z.implicitTypes[z],G.resolve(X))return!0;return!1}function R1(Z){return Z===w5||Z===L5}function z1(Z){return 32<=Z&&Z<=126||161<=Z&&Z<=55295&&Z!==8232&&Z!==8233||57344<=Z&&Z<=65533&&Z!==U8||65536<=Z&&Z<=1114111}function D9(Z){return z1(Z)&&Z!==U8&&Z!==I5&&Z!==Z1}function A9(Z,X,z){var q=D9(Z),G=q&&!R1(Z);return(z?q:q&&Z!==qZ&&Z!==GZ&&Z!==WZ&&Z!==QZ&&Z!==JZ)&&Z!==X8&&!(X===C1&&!G)||D9(X)&&!R1(X)&&Z===X8||X===C1&&G}function c5(Z){return z1(Z)&&Z!==U8&&!R1(Z)&&Z!==_5&&Z!==E5&&Z!==C1&&Z!==qZ&&Z!==GZ&&Z!==WZ&&Z!==QZ&&Z!==JZ&&Z!==X8&&Z!==R5&&Z!==j5&&Z!==O5&&Z!==b5&&Z!==P5&&Z!==x5&&Z!==N5&&Z!==T5&&Z!==C5&&Z!==S5&&Z!==k5}function p5(Z){return!R1(Z)&&Z!==C1}function t0(Z,X){var z=Z.charCodeAt(X),q;if(z>=55296&&z<=56319&&X+1<Z.length){if(q=Z.charCodeAt(X+1),q>=56320&&q<=57343)return(z-55296)*1024+q-56320+65536}return z}function YZ(Z){var X=/^\n* /;return X.test(Z)}function d5(Z,X,z,q,G,Q,W,Y){var J,U=0,K=null,V=!1,M=!1,H=q!==-1,F=-1,A=c5(t0(Z,0))&&p5(t0(Z,Z.length-1));if(X||W)for(J=0;J<Z.length;U>=65536?J+=2:J++){if(U=t0(Z,J),!z1(U))return u0;A=A&&A9(U,K,Y),K=U}else{for(J=0;J<Z.length;U>=65536?J+=2:J++){if(U=t0(Z,J),U===Z1){if(V=!0,H)M=M||J-F-1>q&&Z[F+1]!==" ",F=J}else if(!z1(U))return u0;A=A&&A9(U,K,Y),K=U}M=M||H&&(J-F-1>q&&Z[F+1]!==" ")}if(!V&&!M){if(A&&!W&&!G(Z))return UZ;return Q===X1?u0:q8}if(z>9&&YZ(Z))return u0;if(!W)return M?VZ:KZ;return Q===X1?u0:q8}function l5(Z,X,z,q,G){Z.dump=function(){if(X.length===0)return Z.quotingType===X1?'""':"''";if(!Z.noCompatMode){if(g5.indexOf(X)!==-1||v5.test(X))return Z.quotingType===X1?'"'+X+'"':"'"+X+"'"}var Q=Z.indent*Math.max(1,z),W=Z.lineWidth===-1?-1:Math.max(Math.min(Z.lineWidth,40),Z.lineWidth-Q),Y=q||Z.flowLevel>-1&&z>=Z.flowLevel;function J(U){return f5(Z,U)}switch(d5(X,Y,Z.indent,W,J,Z.quotingType,Z.forceQuotes&&!q,G)){case UZ:return X;case q8:return"'"+X.replace(/'/g,"''")+"'";case KZ:return"|"+L9(X,Z.indent)+I9($9(X,Q));case VZ:return">"+L9(X,Z.indent)+I9($9(i5(X,W),Q));case u0:return'"'+n5(X)+'"';default:throw new m("impossible error: invalid scalar style")}}()}function L9(Z,X){var z=YZ(Z)?String(X):"",q=Z[Z.length-1]===`
38
- `,G=q&&(Z[Z.length-2]===`
39
- `||Z===`
40
- `),Q=G?"+":q?"":"-";return z+Q+`
41
- `}function I9(Z){return Z[Z.length-1]===`
42
- `?Z.slice(0,-1):Z}function i5(Z,X){var z=/(\n+)([^\n]*)/g,q=function(){var U=Z.indexOf(`
43
- `);return U=U!==-1?U:Z.length,z.lastIndex=U,w9(Z.slice(0,U),X)}(),G=Z[0]===`
44
- `||Z[0]===" ",Q,W;while(W=z.exec(Z)){var Y=W[1],J=W[2];Q=J[0]===" ",q+=Y+(!G&&!Q&&J!==""?`
45
- `:"")+w9(J,X),G=Q}return q}function w9(Z,X){if(Z===""||Z[0]===" ")return Z;var z=/ [^ ]/g,q,G=0,Q,W=0,Y=0,J="";while(q=z.exec(Z)){if(Y=q.index,Y-G>X)Q=W>G?W:Y,J+=`
46
- `+Z.slice(G,Q),G=Q+1;W=Y}if(J+=`
47
- `,Z.length-G>X&&W>G)J+=Z.slice(G,W)+`
48
- `+Z.slice(W+1);else J+=Z.slice(G);return J.slice(1)}function n5(Z){var X="",z=0,q;for(var G=0;G<Z.length;z>=65536?G+=2:G++)if(z=t0(Z,G),q=v[z],!q&&z1(z)){if(X+=Z[G],z>=65536)X+=Z[G+1]}else X+=q||m5(z);return X}function o5(Z,X,z){var q="",G=Z.tag,Q,W,Y;for(Q=0,W=z.length;Q<W;Q+=1){if(Y=z[Q],Z.replacer)Y=Z.replacer.call(z,String(Q),Y);if(K0(Z,X,Y,!1,!1)||typeof Y>"u"&&K0(Z,X,null,!1,!1)){if(q!=="")q+=","+(!Z.condenseFlow?" ":"");q+=Z.dump}}Z.tag=G,Z.dump="["+q+"]"}function O9(Z,X,z,q){var G="",Q=Z.tag,W,Y,J;for(W=0,Y=z.length;W<Y;W+=1){if(J=z[W],Z.replacer)J=Z.replacer.call(z,String(W),J);if(K0(Z,X+1,J,!0,!0,!1,!0)||typeof J>"u"&&K0(Z,X+1,null,!0,!0,!1,!0)){if(!q||G!=="")G+=z8(Z,X);if(Z.dump&&Z1===Z.dump.charCodeAt(0))G+="-";else G+="- ";G+=Z.dump}}Z.tag=Q,Z.dump=G||"[]"}function r5(Z,X,z){var q="",G=Z.tag,Q=Object.keys(z),W,Y,J,U,K;for(W=0,Y=Q.length;W<Y;W+=1){if(K="",q!=="")K+=", ";if(Z.condenseFlow)K+='"';if(J=Q[W],U=z[J],Z.replacer)U=Z.replacer.call(z,J,U);if(!K0(Z,X,J,!1,!1))continue;if(Z.dump.length>1024)K+="? ";if(K+=Z.dump+(Z.condenseFlow?'"':"")+":"+(Z.condenseFlow?"":" "),!K0(Z,X,U,!1,!1))continue;K+=Z.dump,q+=K}Z.tag=G,Z.dump="{"+q+"}"}function s5(Z,X,z,q){var G="",Q=Z.tag,W=Object.keys(z),Y,J,U,K,V,M;if(Z.sortKeys===!0)W.sort();else if(typeof Z.sortKeys==="function")W.sort(Z.sortKeys);else if(Z.sortKeys)throw new m("sortKeys must be a boolean or a function");for(Y=0,J=W.length;Y<J;Y+=1){if(M="",!q||G!=="")M+=z8(Z,X);if(U=W[Y],K=z[U],Z.replacer)K=Z.replacer.call(z,U,K);if(!K0(Z,X+1,U,!0,!0,!0))continue;if(V=Z.tag!==null&&Z.tag!=="?"||Z.dump&&Z.dump.length>1024,V)if(Z.dump&&Z1===Z.dump.charCodeAt(0))M+="?";else M+="? ";if(M+=Z.dump,V)M+=z8(Z,X);if(!K0(Z,X+1,K,!0,V))continue;if(Z.dump&&Z1===Z.dump.charCodeAt(0))M+=":";else M+=": ";M+=Z.dump,G+=M}Z.tag=Q,Z.dump=G||"{}"}function T9(Z,X,z){var q,G,Q,W,Y,J;G=z?Z.explicitTypes:Z.implicitTypes;for(Q=0,W=G.length;Q<W;Q+=1)if(Y=G[Q],(Y.instanceOf||Y.predicate)&&(!Y.instanceOf||typeof X==="object"&&X instanceof Y.instanceOf)&&(!Y.predicate||Y.predicate(X))){if(z)if(Y.multi&&Y.representName)Z.tag=Y.representName(X);else Z.tag=Y.tag;else Z.tag="?";if(Y.represent){if(J=Z.styleMap[Y.tag]||Y.defaultStyle,XZ.call(Y.represent)==="[object Function]")q=Y.represent(X,J);else if(zZ.call(Y.represent,J))q=Y.represent[J](X,J);else throw new m("!<"+Y.tag+'> tag resolver accepts not "'+J+'" style');Z.dump=q}return!0}return!1}function K0(Z,X,z,q,G,Q,W){if(Z.tag=null,Z.dump=z,!T9(Z,z,!1))T9(Z,z,!0);var Y=XZ.call(Z.dump),J=q,U;if(q)q=Z.flowLevel<0||Z.flowLevel>X;var K=Y==="[object Object]"||Y==="[object Array]",V,M;if(K)V=Z.duplicates.indexOf(z),M=V!==-1;if(Z.tag!==null&&Z.tag!=="?"||M||Z.indent!==2&&X>0)G=!1;if(M&&Z.usedDuplicates[V])Z.dump="*ref_"+V;else{if(K&&M&&!Z.usedDuplicates[V])Z.usedDuplicates[V]=!0;if(Y==="[object Object]"){if(q&&Object.keys(Z.dump).length!==0){if(s5(Z,X,Z.dump,G),M)Z.dump="&ref_"+V+Z.dump}else if(r5(Z,X,Z.dump),M)Z.dump="&ref_"+V+" "+Z.dump}else if(Y==="[object Array]"){if(q&&Z.dump.length!==0){if(Z.noArrayIndent&&!W&&X>0)O9(Z,X-1,Z.dump,G);else O9(Z,X,Z.dump,G);if(M)Z.dump="&ref_"+V+Z.dump}else if(o5(Z,X,Z.dump),M)Z.dump="&ref_"+V+" "+Z.dump}else if(Y==="[object String]"){if(Z.tag!=="?")l5(Z,Z.dump,X,Q,J)}else if(Y==="[object Undefined]")return!1;else{if(Z.skipInvalid)return!1;throw new m("unacceptable kind of an object to dump "+Y)}if(Z.tag!==null&&Z.tag!=="?"){if(U=encodeURI(Z.tag[0]==="!"?Z.tag.slice(1):Z.tag).replace(/!/g,"%21"),Z.tag[0]==="!")U="!"+U;else if(U.slice(0,18)==="tag:yaml.org,2002:")U="!!"+U.slice(18);else U="!<"+U+">";Z.dump=U+" "+Z.dump}}return!0}function a5(Z,X){var z=[],q=[],G,Q;G8(Z,z,q);for(G=0,Q=q.length;G<Q;G+=1)X.duplicates.push(z[q[G]]);X.usedDuplicates=Array(Q)}function G8(Z,X,z){var q,G,Q;if(Z!==null&&typeof Z==="object")if(G=X.indexOf(Z),G!==-1){if(z.indexOf(G)===-1)z.push(G)}else if(X.push(Z),Array.isArray(Z))for(G=0,Q=Z.length;G<Q;G+=1)G8(Z[G],X,z);else{q=Object.keys(Z);for(G=0,Q=q.length;G<Q;G+=1)G8(Z[q[G]],X,z)}}function t5(Z,X){X=X||{};var z=new u5(X);if(!z.noRefs)a5(Z,z);var q=Z;if(z.replacer)q=z.replacer.call({"":q},"",q);if(K0(z,0,q,!0,!0))return z.dump+`
49
- `;return""}function K8(Z,X){return function(){throw Error("Function yaml."+Z+" is removed in js-yaml 4. Use yaml."+X+" instead, which is now safe by default.")}}var X4,z4,q4,G4,W4,Q4,b,m,Y4,U4,K4,g,N9,j9,_9,P9,x9,E9,S9,k9,N4,P4,b9,g9,v9,y9,m9,h9,u9,W8=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
50
- \r`,f9,u4,f4,c9,d4,p9,n4,d9,Q8,L0,w1=1,l9=2,i9=3,O1=4,e1=1,s4=2,K9=3,a4,t4,e4,n9,o9,s9,a9,D0,H9,D5,A5,ZZ,XZ,zZ,U8=65279,L5=9,Z1=10,I5=13,w5=32,O5=33,T5=34,X8=35,C5=37,R5=38,N5=39,j5=42,qZ=44,_5=45,C1=58,P5=61,x5=62,E5=63,S5=64,GZ=91,WZ=93,k5=96,QZ=123,b5=124,JZ=125,v,g5,v5,h5=1,X1=2,UZ=1,q8=2,KZ=3,VZ=4,u0=5,e5,Z3,X3,z3,q3,V8,G3,W3,Q3,J3,Y3,U3,K3,V3,M3,H3,M8;var H8=T(()=>{/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */X4=C9,z4=s6,q4=a6,G4=e6,W4=Z4,Q4=t6,b={isNothing:X4,isObject:z4,toArray:q4,repeat:G4,isNegativeZero:W4,extend:Q4};e0.prototype=Object.create(Error.prototype);e0.prototype.constructor=e0;e0.prototype.toString=function(X){return this.name+": "+R9(this,X)};m=e0;Y4=J4,U4=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],K4=["scalar","sequence","mapping"];g=M4;Z8.prototype.extend=function(X){var z=[],q=[];if(X instanceof g)q.push(X);else if(Array.isArray(X))q=q.concat(X);else if(X&&(Array.isArray(X.implicit)||Array.isArray(X.explicit))){if(X.implicit)z=z.concat(X.implicit);if(X.explicit)q=q.concat(X.explicit)}else throw new m("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");z.forEach(function(Q){if(!(Q instanceof g))throw new m("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(Q.loadKind&&Q.loadKind!=="scalar")throw new m("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(Q.multi)throw new m("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),q.forEach(function(Q){if(!(Q instanceof g))throw new m("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var G=Object.create(Z8.prototype);return G.implicit=(this.implicit||[]).concat(z),G.explicit=(this.explicit||[]).concat(q),G.compiledImplicit=U9(G,"implicit"),G.compiledExplicit=U9(G,"explicit"),G.compiledTypeMap=H4(G.compiledImplicit,G.compiledExplicit),G};N9=Z8,j9=new g("tag:yaml.org,2002:str",{kind:"scalar",construct:function(Z){return Z!==null?Z:""}}),_9=new g("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(Z){return Z!==null?Z:[]}}),P9=new g("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Z){return Z!==null?Z:{}}}),x9=new N9({explicit:[j9,_9,P9]});E9=new g("tag:yaml.org,2002:null",{kind:"scalar",resolve:F4,construct:B4,predicate:$4,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});S9=new g("tag:yaml.org,2002:bool",{kind:"scalar",resolve:D4,construct:A4,predicate:L4,represent:{lowercase:function(Z){return Z?"true":"false"},uppercase:function(Z){return Z?"TRUE":"FALSE"},camelcase:function(Z){return Z?"True":"False"}},defaultStyle:"lowercase"});k9=new g("tag:yaml.org,2002:int",{kind:"scalar",resolve:T4,construct:C4,predicate:R4,represent:{binary:function(Z){return Z>=0?"0b"+Z.toString(2):"-0b"+Z.toString(2).slice(1)},octal:function(Z){return Z>=0?"0o"+Z.toString(8):"-0o"+Z.toString(8).slice(1)},decimal:function(Z){return Z.toString(10)},hexadecimal:function(Z){return Z>=0?"0x"+Z.toString(16).toUpperCase():"-0x"+Z.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),N4=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");P4=/^[-+]?[0-9]+e/;b9=new g("tag:yaml.org,2002:float",{kind:"scalar",resolve:j4,construct:_4,predicate:E4,represent:x4,defaultStyle:"lowercase"}),g9=x9.extend({implicit:[E9,S9,k9,b9]}),v9=g9,y9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),m9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");h9=new g("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:S4,construct:k4,instanceOf:Date,represent:b4});u9=new g("tag:yaml.org,2002:merge",{kind:"scalar",resolve:g4});f9=new g("tag:yaml.org,2002:binary",{kind:"scalar",resolve:v4,construct:y4,predicate:h4,represent:m4}),u4=Object.prototype.hasOwnProperty,f4=Object.prototype.toString;c9=new g("tag:yaml.org,2002:omap",{kind:"sequence",resolve:c4,construct:p4}),d4=Object.prototype.toString;p9=new g("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:l4,construct:i4}),n4=Object.prototype.hasOwnProperty;d9=new g("tag:yaml.org,2002:set",{kind:"mapping",resolve:o4,construct:r4}),Q8=v9.extend({implicit:[h9,u9],explicit:[f9,c9,p9,d9]}),L0=Object.prototype.hasOwnProperty,a4=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,t4=/[\x85\u2028\u2029]/,e4=/[,\[\]\{\}]/,n9=/^(?:!|!!|![a-z\-]+!)$/i,o9=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;s9=Array(256),a9=Array(256);for(D0=0;D0<256;D0++)s9[D0]=M9(D0)?1:0,a9[D0]=M9(D0);H9={YAML:function(X,z,q){var G,Q,W;if(X.version!==null)L(X,"duplication of %YAML directive");if(q.length!==1)L(X,"YAML directive accepts exactly one argument");if(G=/^([0-9]+)\.([0-9]+)$/.exec(q[0]),G===null)L(X,"ill-formed argument of the YAML directive");if(Q=parseInt(G[1],10),W=parseInt(G[2],10),Q!==1)L(X,"unacceptable YAML version of the document");if(X.version=q[0],X.checkLineBreaks=W<2,W!==1&&W!==2)T1(X,"unsupported YAML version of the document")},TAG:function(X,z,q){var G,Q;if(q.length!==2)L(X,"TAG directive accepts exactly two arguments");if(G=q[0],Q=q[1],!n9.test(G))L(X,"ill-formed tag handle (first argument) of the TAG directive");if(L0.call(X.tagMap,G))L(X,'there is a previously declared suffix for "'+G+'" tag handle');if(!o9.test(Q))L(X,"ill-formed tag prefix (second argument) of the TAG directive");try{Q=decodeURIComponent(Q)}catch(W){L(X,"tag prefix is malformed: "+Q)}X.tagMap[G]=Q}};D5=B5,A5=$5,ZZ={loadAll:D5,load:A5},XZ=Object.prototype.toString,zZ=Object.prototype.hasOwnProperty,v={};v[0]="\\0";v[7]="\\a";v[8]="\\b";v[9]="\\t";v[10]="\\n";v[11]="\\v";v[12]="\\f";v[13]="\\r";v[27]="\\e";v[34]="\\\"";v[92]="\\\\";v[133]="\\N";v[160]="\\_";v[8232]="\\L";v[8233]="\\P";g5=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],v5=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;e5=t5,Z3={dump:e5};X3=g,z3=N9,q3=x9,V8=g9,G3=v9,W3=Q8,Q3=ZZ.load,J3=ZZ.loadAll,Y3=Z3.dump,U3=m,K3={binary:f9,float:b9,map:P9,null:E9,pairs:p9,set:d9,timestamp:h9,bool:S9,int:k9,merge:u9,omap:c9,seq:_9,str:j9},V3=K8("safeLoad","load"),M3=K8("safeLoadAll","loadAll"),H3=K8("safeDump","dump"),M8={Type:X3,Schema:z3,FAILSAFE_SCHEMA:q3,JSON_SCHEMA:V8,CORE_SCHEMA:G3,DEFAULT_SCHEMA:W3,load:Q3,loadAll:J3,dump:Y3,YAMLException:U3,types:K3,safeLoad:V3,safeLoadAll:M3,safeDump:H3}});var MZ;var HZ=T(()=>{s();H8();H8();MZ={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(Z){let X=Z.data;if(Buffer.isBuffer(X))X=X.toString();if(typeof X==="string")try{return M8.load(X,{schema:V8})}catch{try{return M8.load(X)}catch(z){throw new r(z?.message||"Parser Error",Z.url)}}else return X}}});var F3,FZ;var BZ=T(()=>{s();F3=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i,FZ={order:300,allowEmpty:!0,encoding:"utf8",canParse(Z){return(typeof Z.data==="string"||Buffer.isBuffer(Z.data))&&F3.test(Z.url)},parse(Z){if(typeof Z.data==="string")return Z.data;else if(Buffer.isBuffer(Z.data))return Z.data.toString(this.encoding);else throw new r("data is not text",Z.url)}}});var B3,$Z;var DZ=T(()=>{B3=/\.(jpeg|jpg|gif|png|bmp|ico)$/i,$Z={order:400,allowEmpty:!0,canParse(Z){return Buffer.isBuffer(Z.data)&&B3.test(Z.url)},parse(Z){if(Buffer.isBuffer(Z.data))return Z.data;else return Buffer.from(Z.data)}}});var F8;var B8=T(()=>{u();s();F8={order:100,canRead(Z){return V1(Z.url)},async read(Z){let X,z=await import("fs");try{X=v0(Z.url)}catch(q){let G=q;throw G.message=`Malformed URI: ${Z.url}: ${G.message}`,new Z0(G,Z.url)}if(X.endsWith("/")||X.endsWith("\\"))X=X.slice(0,-1);try{return await z.promises.readFile(X)}catch(q){let G=q;throw G.message=`Error opening file ${X}: ${G.message}`,new Z0(G,X)}}}});async function AZ(Z,X,z){Z=g0(Z);let q=z||[];q.push(Z.href);try{let G=await $3(Z,X);if(G.status>=400){let Q=Error(`HTTP ERROR ${G.status}`);throw Q.status=G.status,Q}else if(G.status>=300)if(!Number.isNaN(X.redirects)&&q.length>X.redirects){let Q=Error(`Error downloading ${q[0]}.
22
+ `+J.mark.snippet;return V+" "+G}function Q(J,Y){if(Error.call(this),this.name="YAMLException",this.reason=J,this.mark=Y,this.message=W(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}Q.prototype=Object.create(Error.prototype),Q.prototype.constructor=Q,Q.prototype.toString=function(Y){return this.name+": "+W(this,Y)},X.exports=Q}),W4=n((Z,X)=>{var W=C0();function Q(G,V,U,q,H){let F="",B="",M=Math.floor(H/2)-1;if(q-V>M)F=" ... ",V=q-M+F.length;if(U-q>M)B=" ...",U=q+M-B.length;return{str:F+G.slice(V,U).replace(/\t/g,"→")+B,pos:q-V+F.length}}function J(G,V){return W.repeat(" ",V-G.length)+G}function Y(G,V){if(V=Object.create(V||null),!G.buffer)return null;if(!V.maxLength)V.maxLength=79;if(typeof V.indent!=="number")V.indent=1;if(typeof V.linesBefore!=="number")V.linesBefore=3;if(typeof V.linesAfter!=="number")V.linesAfter=2;let U=/\r?\n|\r|\0/g,q=[0],H=[],F,B=-1;while(F=U.exec(G.buffer))if(H.push(F.index),q.push(F.index+F[0].length),G.position<=F.index&&B<0)B=q.length-2;if(B<0)B=q.length-1;let M="",L=Math.min(G.line+V.linesAfter,H.length).toString().length,E=V.maxLength-(V.indent+L+3);for(let _=1;_<=V.linesBefore;_++){if(B-_<0)break;let x=Q(G.buffer,q[B-_],H[B-_],G.position-(q[B]-q[B-_]),E);M=W.repeat(" ",V.indent)+J((G.line-_+1).toString(),L)+" | "+x.str+`
23
+ `+M}let C=Q(G.buffer,q[B],H[B],G.position,E);M+=W.repeat(" ",V.indent)+J((G.line+1).toString(),L)+" | "+C.str+`
24
+ `,M+=W.repeat("-",V.indent+L+3+C.pos)+`^
25
+ `;for(let _=1;_<=V.linesAfter;_++){if(B+_>=H.length)break;let x=Q(G.buffer,q[B+_],H[B+_],G.position-(q[B]-q[B+_]),E);M+=W.repeat(" ",V.indent)+J((G.line+_+1).toString(),L)+" | "+x.str+`
26
+ `}return M.replace(/\n$/,"")}X.exports=Y}),W2=n((Z,X)=>{var W=N0(),Q=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],J=["scalar","sequence","mapping"];function Y(V){let U={};if(V!==null)Object.keys(V).forEach(function(q){V[q].forEach(function(H){U[String(H)]=q})});return U}function G(V,U){if(U=U||{},Object.keys(U).forEach(function(q){if(Q.indexOf(q)===-1)throw new W('Unknown option "'+q+'" is met in definition of "'+V+'" YAML type.')}),this.options=U,this.tag=V,this.kind=U.kind||null,this.resolve=U.resolve||function(){return!0},this.construct=U.construct||function(q){return q},this.instanceOf=U.instanceOf||null,this.predicate=U.predicate||null,this.represent=U.represent||null,this.representName=U.representName||null,this.defaultStyle=U.defaultStyle||null,this.multi=U.multi||!1,this.styleAliases=Y(U.styleAliases||null),J.indexOf(this.kind)===-1)throw new W('Unknown kind "'+this.kind+'" is specified for "'+V+'" YAML type.')}X.exports=G}),p8=n((Z,X)=>{var W=N0(),Q=W2();function J(V,U){let q=[];return V[U].forEach(function(H){let F=q.length;q.forEach(function(B,M){if(B.tag===H.tag&&B.kind===H.kind&&B.multi===H.multi)F=M}),q[F]=H}),q}function Y(){let V={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function U(q){if(q.multi)V.multi[q.kind].push(q),V.multi.fallback.push(q);else V[q.kind][q.tag]=V.fallback[q.tag]=q}for(let q=0,H=arguments.length;q<H;q+=1)arguments[q].forEach(U);return V}function G(V){return this.extend(V)}G.prototype.extend=function(U){let q=[],H=[];if(U instanceof Q)H.push(U);else if(Array.isArray(U))H=H.concat(U);else if(U&&(Array.isArray(U.implicit)||Array.isArray(U.explicit))){if(U.implicit)q=q.concat(U.implicit);if(U.explicit)H=H.concat(U.explicit)}else throw new W("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");q.forEach(function(B){if(!(B instanceof Q))throw new W("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(B.loadKind&&B.loadKind!=="scalar")throw new W("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(B.multi)throw new W("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),H.forEach(function(B){if(!(B instanceof Q))throw new W("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let F=Object.create(G.prototype);return F.implicit=(this.implicit||[]).concat(q),F.explicit=(this.explicit||[]).concat(H),F.compiledImplicit=J(F,"implicit"),F.compiledExplicit=J(F,"explicit"),F.compiledTypeMap=Y(F.compiledImplicit,F.compiledExplicit),F},X.exports=G}),d8=n((Z,X)=>{X.exports=new(W2())("tag:yaml.org,2002:str",{kind:"scalar",construct:function(W){return W!==null?W:""}})}),l8=n((Z,X)=>{X.exports=new(W2())("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(W){return W!==null?W:[]}})}),i8=n((Z,X)=>{X.exports=new(W2())("tag:yaml.org,2002:map",{kind:"mapping",construct:function(W){return W!==null?W:{}}})}),n8=n((Z,X)=>{X.exports=new(p8())({explicit:[d8(),l8(),i8()]})}),o8=n((Z,X)=>{var W=W2();function Q(G){if(G===null)return!0;let V=G.length;return V===1&&G==="~"||V===4&&(G==="null"||G==="Null"||G==="NULL")}function J(){return null}function Y(G){return G===null}X.exports=new W("tag:yaml.org,2002:null",{kind:"scalar",resolve:Q,construct:J,predicate:Y,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})}),r8=n((Z,X)=>{var W=W2();function Q(G){if(G===null)return!1;let V=G.length;return V===4&&(G==="true"||G==="True"||G==="TRUE")||V===5&&(G==="false"||G==="False"||G==="FALSE")}function J(G){return G==="true"||G==="True"||G==="TRUE"}function Y(G){return Object.prototype.toString.call(G)==="[object Boolean]"}X.exports=new W("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Q,construct:J,predicate:Y,represent:{lowercase:function(G){return G?"true":"false"},uppercase:function(G){return G?"TRUE":"FALSE"},camelcase:function(G){return G?"True":"False"}},defaultStyle:"lowercase"})}),s8=n((Z,X)=>{var W=C0(),Q=W2();function J(F){return F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102}function Y(F){return F>=48&&F<=55}function G(F){return F>=48&&F<=57}function V(F){if(F===null)return!1;let B=F.length,M=0,L=!1;if(!B)return!1;let E=F[M];if(E==="-"||E==="+")E=F[++M];if(E==="0"){if(M+1===B)return!0;if(E=F[++M],E==="b"){M++;for(;M<B;M++){if(E=F[M],E!=="0"&&E!=="1")return!1;L=!0}return L&&Number.isFinite(U(F))}if(E==="x"){M++;for(;M<B;M++){if(!J(F.charCodeAt(M)))return!1;L=!0}return L&&Number.isFinite(U(F))}if(E==="o"){M++;for(;M<B;M++){if(!Y(F.charCodeAt(M)))return!1;L=!0}return L&&Number.isFinite(U(F))}}for(;M<B;M++){if(!G(F.charCodeAt(M)))return!1;L=!0}if(!L)return!1;return Number.isFinite(U(F))}function U(F){let B=F,M=1,L=B[0];if(L==="-"||L==="+"){if(L==="-")M=-1;B=B.slice(1),L=B[0]}if(B==="0")return 0;if(L==="0"){if(B[1]==="b")return M*parseInt(B.slice(2),2);if(B[1]==="x")return M*parseInt(B.slice(2),16);if(B[1]==="o")return M*parseInt(B.slice(2),8)}return M*parseInt(B,10)}function q(F){return U(F)}function H(F){return Object.prototype.toString.call(F)==="[object Number]"&&F%1===0&&!W.isNegativeZero(F)}X.exports=new Q("tag:yaml.org,2002:int",{kind:"scalar",resolve:V,construct:q,predicate:H,represent:{binary:function(F){return F>=0?"0b"+F.toString(2):"-0b"+F.toString(2).slice(1)},octal:function(F){return F>=0?"0o"+F.toString(8):"-0o"+F.toString(8).slice(1)},decimal:function(F){return F.toString(10)},hexadecimal:function(F){return F>=0?"0x"+F.toString(16).toUpperCase():"-0x"+F.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}),a8=n((Z,X)=>{var W=C0(),Q=W2(),J=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Y=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function G(F){if(F===null)return!1;if(!J.test(F))return!1;if(Number.isFinite(parseFloat(F,10)))return!0;return Y.test(F)}function V(F){let B=F.toLowerCase(),M=B[0]==="-"?-1:1;if("+-".indexOf(B[0])>=0)B=B.slice(1);if(B===".inf")return M===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(B===".nan")return NaN;return M*parseFloat(B,10)}var U=/^[-+]?[0-9]+e/;function q(F,B){if(isNaN(F))switch(B){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===F)switch(B){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===F)switch(B){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(W.isNegativeZero(F))return"-0.0";let M=F.toString(10);return U.test(M)?M.replace("e",".e"):M}function H(F){return Object.prototype.toString.call(F)==="[object Number]"&&(F%1!==0||W.isNegativeZero(F))}X.exports=new Q("tag:yaml.org,2002:float",{kind:"scalar",resolve:G,construct:V,predicate:H,represent:q,defaultStyle:"lowercase"})}),t8=n((Z,X)=>{X.exports=n8().extend({implicit:[o8(),r8(),s8(),a8()]})}),e8=n((Z,X)=>{X.exports=t8()}),Z9=n((Z,X)=>{var W=W2(),Q=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),J=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Y(U){if(U===null)return!1;if(Q.exec(U)!==null)return!0;if(J.exec(U)!==null)return!0;return!1}function G(U){let q=0,H=null,F=Q.exec(U);if(F===null)F=J.exec(U);if(F===null)throw Error("Date resolve error");let B=+F[1],M=+F[2]-1,L=+F[3];if(!F[4])return new Date(Date.UTC(B,M,L));let E=+F[4],C=+F[5],_=+F[6];if(F[7]){q=F[7].slice(0,3);while(q.length<3)q+="0";q=+q}if(F[9]){let y=+F[10],u=+(F[11]||0);if(H=(y*60+u)*60000,F[9]==="-")H=-H}let x=new Date(Date.UTC(B,M,L,E,C,_,q));if(H)x.setTime(x.getTime()-H);return x}function V(U){return U.toISOString()}X.exports=new W("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Y,construct:G,instanceOf:Date,represent:V})}),X9=n((Z,X)=>{var W=W2();function Q(J){return J==="<<"||J===null}X.exports=new W("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Q})}),z9=n((Z,X)=>{var W=W2(),Q=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
27
+ \r`;function J(U){if(U===null)return!1;let q=0,H=U.length,F=Q;for(let B=0;B<H;B++){let M=F.indexOf(U.charAt(B));if(M>64)continue;if(M<0)return!1;q+=6}return q%8===0}function Y(U){let q=U.replace(/[\r\n=]/g,""),H=q.length,F=Q,B=0,M=[];for(let E=0;E<H;E++){if(E%4===0&&E)M.push(B>>16&255),M.push(B>>8&255),M.push(B&255);B=B<<6|F.indexOf(q.charAt(E))}let L=H%4*6;if(L===0)M.push(B>>16&255),M.push(B>>8&255),M.push(B&255);else if(L===18)M.push(B>>10&255),M.push(B>>2&255);else if(L===12)M.push(B>>4&255);return new Uint8Array(M)}function G(U){let q="",H=0,F=U.length,B=Q;for(let L=0;L<F;L++){if(L%3===0&&L)q+=B[H>>18&63],q+=B[H>>12&63],q+=B[H>>6&63],q+=B[H&63];H=(H<<8)+U[L]}let M=F%3;if(M===0)q+=B[H>>18&63],q+=B[H>>12&63],q+=B[H>>6&63],q+=B[H&63];else if(M===2)q+=B[H>>10&63],q+=B[H>>4&63],q+=B[H<<2&63],q+=B[64];else if(M===1)q+=B[H>>2&63],q+=B[H<<4&63],q+=B[64],q+=B[64];return q}function V(U){return Object.prototype.toString.call(U)==="[object Uint8Array]"}X.exports=new W("tag:yaml.org,2002:binary",{kind:"scalar",resolve:J,construct:Y,predicate:V,represent:G})}),W9=n((Z,X)=>{var W=W2(),Q=Object.prototype.hasOwnProperty,J=Object.prototype.toString;function Y(V){if(V===null)return!0;let U=[],q=V;for(let H=0,F=q.length;H<F;H+=1){let B=q[H],M=!1;if(J.call(B)!=="[object Object]")return!1;let L;for(L in B)if(Q.call(B,L))if(!M)M=!0;else return!1;if(!M)return!1;if(U.indexOf(L)===-1)U.push(L);else return!1}return!0}function G(V){return V!==null?V:[]}X.exports=new W("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Y,construct:G})}),Q9=n((Z,X)=>{var W=W2(),Q=Object.prototype.toString;function J(G){if(G===null)return!0;let V=G,U=Array(V.length);for(let q=0,H=V.length;q<H;q+=1){let F=V[q];if(Q.call(F)!=="[object Object]")return!1;let B=Object.keys(F);if(B.length!==1)return!1;U[q]=[B[0],F[B[0]]]}return!0}function Y(G){if(G===null)return[];let V=G,U=Array(V.length);for(let q=0,H=V.length;q<H;q+=1){let F=V[q],B=Object.keys(F);U[q]=[B[0],F[B[0]]]}return U}X.exports=new W("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:J,construct:Y})}),G9=n((Z,X)=>{var W=W2(),Q=Object.prototype.hasOwnProperty;function J(G){if(G===null)return!0;let V=G;for(let U in V)if(Q.call(V,U)){if(V[U]!==null)return!1}return!0}function Y(G){return G!==null?G:{}}X.exports=new W("tag:yaml.org,2002:set",{kind:"mapping",resolve:J,construct:Y})}),g1=n((Z,X)=>{X.exports=e8().extend({implicit:[Z9(),X9()],explicit:[z9(),W9(),Q9(),G9()]})}),Q4=n((Z,X)=>{var W=C0(),Q=N0(),J=W4(),Y=g1(),G=Object.prototype.hasOwnProperty,V=1,U=2,q=3,H=4,F=1,B=2,M=3,L=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=/[\x85\u2028\u2029]/,C=/[,\[\]{}]/,_=/^(?:!|!!|![0-9A-Za-z-]+!)$/,x=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function y(z){return Object.prototype.toString.call(z)}function u(z){return z===10||z===13}function f(z){return z===9||z===32}function h(z){return z===9||z===32||z===10||z===13}function b(z){return z===44||z===91||z===93||z===123||z===125}function l(z){if(z>=48&&z<=57)return z-48;let $=z|32;if($>=97&&$<=102)return $-97+10;return-1}function Q2(z){if(z===120)return 2;if(z===117)return 4;if(z===85)return 8;return 0}function B2(z){if(z>=48&&z<=57)return z-48;return-1}function d2(z){switch(z){case 48:return"\x00";case 97:return"\x07";case 98:return"\b";case 116:return"\t";case 9:return"\t";case 110:return`
28
+ `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function K1(z){if(z<=65535)return String.fromCharCode(z);return String.fromCharCode((z-65536>>10)+55296,(z-65536&1023)+56320)}function F0(z,$,O){if($==="__proto__")Object.defineProperty(z,$,{configurable:!0,enumerable:!0,writable:!0,value:O});else z[$]=O}var P0=Array(256),B0=Array(256);for(let z=0;z<256;z++)P0[z]=d2(z)?1:0,B0[z]=d2(z);function Z2(z,$){this.input=z,this.filename=$.filename||null,this.schema=$.schema||Y,this.onWarning=$.onWarning||null,this.legacy=$.legacy||!1,this.json=$.json||!1,this.listener=$.listener||null,this.maxDepth=typeof $.maxDepth==="number"?$.maxDepth:100,this.maxMergeSeqLength=typeof $.maxMergeSeqLength==="number"?$.maxMergeSeqLength:20,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=z.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function x0(z,$){let O={name:z.filename,buffer:z.input.slice(0,-1),position:z.position,line:z.line,column:z.position-z.lineStart};return O.snippet=J(O),new Q($,O)}function g(z,$){throw x0(z,$)}function t2(z,$){if(z.onWarning)z.onWarning.call(null,x0(z,$))}function N2(z,$,O){let T=z.anchorMapTransactions;if(T.length!==0){let A=T[T.length-1];if(!G.call(A,$))A[$]={existed:G.call(z.anchorMap,$),value:z.anchorMap[$]}}z.anchorMap[$]=O}function V1(z){z.anchorMapTransactions.push(Object.create(null))}function l2(z){let $=z.anchorMapTransactions.pop(),O=z.anchorMapTransactions;if(O.length===0)return;let T=O[O.length-1],A=Object.keys($);for(let P=0,K=A.length;P<K;P+=1){let D=A[P];if(!G.call(T,D))T[D]=$[D]}}function F1(z){let $=z.anchorMapTransactions.pop(),O=Object.keys($);for(let T=O.length-1;T>=0;T-=1){let A=$[O[T]];if(A.existed)z.anchorMap[O[T]]=A.value;else delete z.anchorMap[O[T]]}}function H0(z){return{position:z.position,line:z.line,lineStart:z.lineStart,lineIndent:z.lineIndent,firstTabInLine:z.firstTabInLine,tag:z.tag,anchor:z.anchor,kind:z.kind,result:z.result}}function e2(z,$){z.position=$.position,z.line=$.line,z.lineStart=$.lineStart,z.lineIndent=$.lineIndent,z.firstTabInLine=$.firstTabInLine,z.tag=$.tag,z.anchor=$.anchor,z.kind=$.kind,z.result=$.result}var E0={YAML:function($,O,T){if($.version!==null)g($,"duplication of %YAML directive");if(T.length!==1)g($,"YAML directive accepts exactly one argument");let A=/^([0-9]+)\.([0-9]+)$/.exec(T[0]);if(A===null)g($,"ill-formed argument of the YAML directive");let P=parseInt(A[1],10),K=parseInt(A[2],10);if(P!==1)g($,"unacceptable YAML version of the document");if($.version=T[0],$.checkLineBreaks=K<2,K!==1&&K!==2)t2($,"unsupported YAML version of the document")},TAG:function($,O,T){let A;if(T.length!==2)g($,"TAG directive accepts exactly two arguments");let P=T[0];if(A=T[1],!_.test(P))g($,"ill-formed tag handle (first argument) of the TAG directive");if(G.call($.tagMap,P))g($,'there is a previously declared suffix for "'+P+'" tag handle');if(!x.test(A))g($,"ill-formed tag prefix (second argument) of the TAG directive");try{A=decodeURIComponent(A)}catch(K){g($,"tag prefix is malformed: "+A)}$.tagMap[P]=A}};function U2(z,$,O,T){if($<O){let A=z.input.slice($,O);if(T)for(let P=0,K=A.length;P<K;P+=1){let D=A.charCodeAt(P);if(!(D===9||D>=32&&D<=1114111))g(z,"expected valid JSON character")}else if(L.test(A))g(z,"the stream contains non-printable characters");z.result+=A}}function y2(z,$,O,T){if(!W.isObject(O))g(z,"cannot merge mappings; the provided source object is unacceptable");let A=Object.keys(O);for(let P=0,K=A.length;P<K;P+=1){let D=A[P];if(!G.call($,D))F0($,D,O[D]),T[D]=!0}}function j2(z,$,O,T,A,P,K,D,j){if(Array.isArray(A)){A=Array.prototype.slice.call(A);for(let I=0,w=A.length;I<w;I+=1){if(Array.isArray(A[I]))g(z,"nested arrays are not supported inside keys");if(typeof A==="object"&&y(A[I])==="[object Object]")A[I]="[object Object]"}}if(typeof A==="object"&&y(A)==="[object Object]")A="[object Object]";if(A=String(A),$===null)$={};if(T==="tag:yaml.org,2002:merge")if(Array.isArray(P)){if(P.length>z.maxMergeSeqLength)g(z,"merge sequence length exceeded maxMergeSeqLength ("+z.maxMergeSeqLength+")");let I=new Set;for(let w=0,N=P.length;w<N;w+=1){let R=P[w];if(I.has(R))continue;I.add(R),y2(z,$,R,O)}}else y2(z,$,P,O);else{if(!z.json&&!G.call(O,A)&&G.call($,A))z.line=K||z.line,z.lineStart=D||z.lineStart,z.position=j||z.position,g(z,"duplicated mapping key");F0($,A,P),delete O[A]}return $}function Z0(z){let $=z.input.charCodeAt(z.position);if($===10)z.position++;else if($===13){if(z.position++,z.input.charCodeAt(z.position)===10)z.position++}else g(z,"a line break is expected");z.line+=1,z.lineStart=z.position,z.firstTabInLine=-1}function r(z,$,O){let T=0,A=z.input.charCodeAt(z.position);while(A!==0){while(f(A)){if(A===9&&z.firstTabInLine===-1)z.firstTabInLine=z.position;A=z.input.charCodeAt(++z.position)}if($&&A===35)do A=z.input.charCodeAt(++z.position);while(A!==10&&A!==13&&A!==0);if(u(A)){Z0(z),A=z.input.charCodeAt(z.position),T++,z.lineIndent=0;while(A===32)z.lineIndent++,A=z.input.charCodeAt(++z.position)}else break}if(O!==-1&&T!==0&&z.lineIndent<O)t2(z,"deficient indentation");return T}function X0(z){let $=z.position,O=z.input.charCodeAt($);if((O===45||O===46)&&O===z.input.charCodeAt($+1)&&O===z.input.charCodeAt($+2)){if($+=3,O=z.input.charCodeAt($),O===0||h(O))return!0}return!1}function _2(z,$){if($===1)z.result+=" ";else if($>1)z.result+=W.repeat(`
29
+ `,$-1)}function S0(z,$,O){let T,A,P,K,D,j,I=z.kind,w=z.result,N=z.input.charCodeAt(z.position);if(h(N)||b(N)||N===35||N===38||N===42||N===33||N===124||N===62||N===39||N===34||N===37||N===64||N===96)return!1;if(N===63||N===45){let R=z.input.charCodeAt(z.position+1);if(h(R)||O&&b(R))return!1}z.kind="scalar",z.result="",T=A=z.position,P=!1;while(N!==0){if(N===58){let R=z.input.charCodeAt(z.position+1);if(h(R)||O&&b(R))break}else if(N===35){if(h(z.input.charCodeAt(z.position-1)))break}else if(z.position===z.lineStart&&X0(z)||O&&b(N))break;else if(u(N))if(K=z.line,D=z.lineStart,j=z.lineIndent,r(z,!1,-1),z.lineIndent>=$){P=!0,N=z.input.charCodeAt(z.position);continue}else{z.position=A,z.line=K,z.lineStart=D,z.lineIndent=j;break}if(P)U2(z,T,A,!1),_2(z,z.line-K),T=A=z.position,P=!1;if(!f(N))A=z.position+1;N=z.input.charCodeAt(++z.position)}if(U2(z,T,A,!1),z.result)return!0;return z.kind=I,z.result=w,!1}function k0(z,$){let O,T,A=z.input.charCodeAt(z.position);if(A!==39)return!1;z.kind="scalar",z.result="",z.position++,O=T=z.position;while((A=z.input.charCodeAt(z.position))!==0)if(A===39)if(U2(z,O,z.position,!0),A=z.input.charCodeAt(++z.position),A===39)O=z.position,z.position++,T=z.position;else return!0;else if(u(A))U2(z,O,T,!0),_2(z,r(z,!1,$)),O=T=z.position;else if(z.position===z.lineStart&&X0(z))g(z,"unexpected end of the document within a single quoted scalar");else if(z.position++,!f(A))T=z.position;g(z,"unexpected end of the stream within a single quoted scalar")}function M0(z,$){let O,T,A,P=z.input.charCodeAt(z.position);if(P!==34)return!1;z.kind="scalar",z.result="",z.position++,O=T=z.position;while((P=z.input.charCodeAt(z.position))!==0)if(P===34)return U2(z,O,z.position,!0),z.position++,!0;else if(P===92){if(U2(z,O,z.position,!0),P=z.input.charCodeAt(++z.position),u(P))r(z,!1,$);else if(P<256&&P0[P])z.result+=B0[P],z.position++;else if((A=Q2(P))>0){let K=A,D=0;for(;K>0;K--)if(P=z.input.charCodeAt(++z.position),(A=l(P))>=0)D=(D<<4)+A;else g(z,"expected hexadecimal character");z.result+=K1(D),z.position++}else g(z,"unknown escape sequence");O=T=z.position}else if(u(P))U2(z,O,T,!0),_2(z,r(z,!1,$)),O=T=z.position;else if(z.position===z.lineStart&&X0(z))g(z,"unexpected end of the document within a double quoted scalar");else if(z.position++,!f(P))T=z.position;g(z,"unexpected end of the stream within a double quoted scalar")}function b0(z,$){let O=!0,T,A,P,K=z.tag,D,j=z.anchor,I,w,N,R,k=Object.create(null),S,v,m,c=z.input.charCodeAt(z.position);if(c===91)I=93,R=!1,D=[];else if(c===123)I=125,R=!0,D={};else return!1;if(z.anchor!==null)N2(z,z.anchor,D);c=z.input.charCodeAt(++z.position);while(c!==0){if(r(z,!0,$),c=z.input.charCodeAt(z.position),c===I)return z.position++,z.tag=K,z.anchor=j,z.kind=R?"mapping":"sequence",z.result=D,!0;else if(!O)g(z,"missed comma between flow collection entries");else if(c===44)g(z,"expected the node content, but found ','");if(v=S=m=null,w=N=!1,c===63){if(h(z.input.charCodeAt(z.position+1)))w=N=!0,z.position++,r(z,!0,$)}if(T=z.line,A=z.lineStart,P=z.position,x2(z,$,V,!1,!0),v=z.tag,S=z.result,r(z,!0,$),c=z.input.charCodeAt(z.position),(N||z.line===T)&&c===58)w=!0,c=z.input.charCodeAt(++z.position),r(z,!0,$),x2(z,$,V,!1,!0),m=z.result;if(R)j2(z,D,k,v,S,m,T,A,P);else if(w)D.push(j2(z,null,k,v,S,m,T,A,P));else D.push(S);if(r(z,!0,$),c=z.input.charCodeAt(z.position),c===44)O=!0,c=z.input.charCodeAt(++z.position);else O=!1}g(z,"unexpected end of the stream within a flow collection")}function g0(z,$){let O,T=F,A=!1,P=!1,K=$,D=0,j=!1,I,w=z.input.charCodeAt(z.position);if(w===124)O=!1;else if(w===62)O=!0;else return!1;z.kind="scalar",z.result="";while(w!==0)if(w=z.input.charCodeAt(++z.position),w===43||w===45)if(F===T)T=w===43?M:B;else g(z,"repeat of a chomping mode identifier");else if((I=B2(w))>=0)if(I===0)g(z,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!P)K=$+I-1,P=!0;else g(z,"repeat of an indentation width identifier");else break;if(f(w)){do w=z.input.charCodeAt(++z.position);while(f(w));if(w===35)do w=z.input.charCodeAt(++z.position);while(!u(w)&&w!==0)}while(w!==0){Z0(z),z.lineIndent=0,w=z.input.charCodeAt(z.position);while((!P||z.lineIndent<K)&&w===32)z.lineIndent++,w=z.input.charCodeAt(++z.position);if(!P&&z.lineIndent>K)K=z.lineIndent;if(u(w)){D++;continue}if(!P&&K===0)g(z,"missing indentation for block scalar");if(z.lineIndent<K){if(T===M)z.result+=W.repeat(`
30
+ `,A?1+D:D);else if(T===F){if(A)z.result+=`
31
+ `}break}if(O)if(f(w))j=!0,z.result+=W.repeat(`
32
+ `,A?1+D:D);else if(j)j=!1,z.result+=W.repeat(`
33
+ `,D+1);else if(D===0){if(A)z.result+=" "}else z.result+=W.repeat(`
34
+ `,D);else z.result+=W.repeat(`
35
+ `,A?1+D:D);A=!0,P=!0,D=0;let N=z.position;while(!u(w)&&w!==0)w=z.input.charCodeAt(++z.position);U2(z,N,z.position,!1)}return!0}function P2(z,$){let{tag:O,anchor:T}=z,A=[],P=!1;if(z.firstTabInLine!==-1)return!1;if(z.anchor!==null)N2(z,z.anchor,A);let K=z.input.charCodeAt(z.position);while(K!==0){if(z.firstTabInLine!==-1)z.position=z.firstTabInLine,g(z,"tab characters must not be used in indentation");if(K!==45)break;if(!h(z.input.charCodeAt(z.position+1)))break;if(P=!0,z.position++,r(z,!0,-1)){if(z.lineIndent<=$){A.push(null),K=z.input.charCodeAt(z.position);continue}}let D=z.line;if(x2(z,$,q,!1,!0),A.push(z.result),r(z,!0,-1),K=z.input.charCodeAt(z.position),(z.line===D||z.lineIndent>$)&&K!==0)g(z,"bad indentation of a sequence entry");else if(z.lineIndent<$)break}if(P)return z.tag=O,z.anchor=T,z.kind="sequence",z.result=A,!0;return!1}function v0(z,$,O){let T,A,P,K,D=z.tag,j=z.anchor,I={},w=Object.create(null),N=null,R=null,k=null,S=!1,v=!1;if(z.firstTabInLine!==-1)return!1;if(z.anchor!==null)N2(z,z.anchor,I);let m=z.input.charCodeAt(z.position);while(m!==0){if(!S&&z.firstTabInLine!==-1)z.position=z.firstTabInLine,g(z,"tab characters must not be used in indentation");let c=z.input.charCodeAt(z.position+1),o=z.line;if((m===63||m===58)&&h(c)){if(m===63){if(S)j2(z,I,w,N,R,null,A,P,K),N=R=k=null;v=!0,S=!0,T=!0}else if(S)S=!1,T=!0;else g(z,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");z.position+=1,m=c}else{if(A=z.line,P=z.lineStart,K=z.position,!x2(z,O,U,!1,!0))break;if(z.line===o){m=z.input.charCodeAt(z.position);while(f(m))m=z.input.charCodeAt(++z.position);if(m===58){if(m=z.input.charCodeAt(++z.position),!h(m))g(z,"a whitespace character is expected after the key-value separator within a block mapping");if(S)j2(z,I,w,N,R,null,A,P,K),N=R=k=null;v=!0,S=!1,T=!1,N=z.tag,R=z.result}else if(v)g(z,"can not read an implicit mapping pair; a colon is missed");else return z.tag=D,z.anchor=j,!0}else if(v)g(z,"can not read a block mapping entry; a multiline key may not be an implicit key");else return z.tag=D,z.anchor=j,!0}if(z.line===o||z.lineIndent>$){if(S)A=z.line,P=z.lineStart,K=z.position;if(x2(z,$,H,!0,T))if(S)R=z.result;else k=z.result;if(!S)j2(z,I,w,N,R,k,A,P,K),N=R=k=null;r(z,!0,-1),m=z.input.charCodeAt(z.position)}if((z.line===o||z.lineIndent>$)&&m!==0)g(z,"bad indentation of a mapping entry");else if(z.lineIndent<$)break}if(S)j2(z,I,w,N,R,null,A,P,K);if(v)z.tag=D,z.anchor=j,z.kind="mapping",z.result=I;return v}function B1(z){let $=!1,O=!1,T,A,P=z.input.charCodeAt(z.position);if(P!==33)return!1;if(z.tag!==null)g(z,"duplication of a tag property");if(P=z.input.charCodeAt(++z.position),P===60)$=!0,P=z.input.charCodeAt(++z.position);else if(P===33)O=!0,T="!!",P=z.input.charCodeAt(++z.position);else T="!";let K=z.position;if($){do P=z.input.charCodeAt(++z.position);while(P!==0&&P!==62);if(z.position<z.length)A=z.input.slice(K,z.position),P=z.input.charCodeAt(++z.position);else g(z,"unexpected end of the stream within a verbatim tag")}else{while(P!==0&&!h(P)){if(P===33)if(!O){if(T=z.input.slice(K-1,z.position+1),!_.test(T))g(z,"named tag handle cannot contain such characters");O=!0,K=z.position+1}else g(z,"tag suffix cannot contain exclamation marks");P=z.input.charCodeAt(++z.position)}if(A=z.input.slice(K,z.position),C.test(A))g(z,"tag suffix cannot contain flow indicator characters")}if(A&&!x.test(A))g(z,"tag name cannot contain such characters: "+A);try{A=decodeURIComponent(A)}catch(D){g(z,"tag name is malformed: "+A)}if($)z.tag=A;else if(G.call(z.tagMap,T))z.tag=z.tagMap[T]+A;else if(T==="!")z.tag="!"+A;else if(T==="!!")z.tag="tag:yaml.org,2002:"+A;else g(z,'undeclared tag handle "'+T+'"');return!0}function y0(z){let $=z.input.charCodeAt(z.position);if($!==38)return!1;if(z.anchor!==null)g(z,"duplication of an anchor property");$=z.input.charCodeAt(++z.position);let O=z.position;while($!==0&&!h($)&&!b($))$=z.input.charCodeAt(++z.position);if(z.position===O)g(z,"name of an anchor node must contain at least one character");return z.anchor=z.input.slice(O,z.position),!0}function h0(z){let $=z.input.charCodeAt(z.position);if($!==42)return!1;$=z.input.charCodeAt(++z.position);let O=z.position;while($!==0&&!h($)&&!b($))$=z.input.charCodeAt(++z.position);if(z.position===O)g(z,"name of an alias node must contain at least one character");let T=z.input.slice(O,z.position);if(!G.call(z.anchorMap,T))g(z,'unidentified alias "'+T+'"');return z.result=z.anchorMap[T],r(z,!0,-1),!0}function H1(z,$,O,T){let A=H0(z);if(V1(z),e2(z,$),z.tag=null,z.anchor=null,z.kind=null,z.result=null,v0(z,O,T)&&z.kind==="mapping")return l2(z),!0;return F1(z),e2(z,A),!1}function x2(z,$,O,T,A){let P,K,D=1,j=!1,I=!1,w=null,N,R,k;if(z.depth>=z.maxDepth)g(z,"nesting exceeded maxDepth ("+z.maxDepth+")");if(z.depth+=1,z.listener!==null)z.listener("open",z);z.tag=null,z.anchor=null,z.kind=null,z.result=null;let S=P=K=H===O||q===O;if(T){if(r(z,!0,-1)){if(j=!0,z.lineIndent>$)D=1;else if(z.lineIndent===$)D=0;else if(z.lineIndent<$)D=-1}}if(D===1)while(!0){let v=z.input.charCodeAt(z.position),m=H0(z);if(j&&(v===33&&z.tag!==null||v===38&&z.anchor!==null))break;if(!B1(z)&&!y0(z))break;if(w===null)w=m;if(r(z,!0,-1)){if(j=!0,K=S,z.lineIndent>$)D=1;else if(z.lineIndent===$)D=0;else if(z.lineIndent<$)D=-1}else K=!1}if(K)K=j||A;if(D===1||H===O){if(V===O||U===O)R=$;else R=$+1;if(k=z.position-z.lineStart,D===1)if(K&&(P2(z,k)||v0(z,k,R))||b0(z,R))I=!0;else{let v=z.input.charCodeAt(z.position);if(w!==null&&S&&!K&&v!==124&&v!==62&&H1(z,w,w.position-w.lineStart,R))I=!0;else if(P&&g0(z,R)||k0(z,R)||M0(z,R))I=!0;else if(h0(z)){if(I=!0,z.tag!==null||z.anchor!==null)g(z,"alias node should not have any properties")}else if(S0(z,R,V===O)){if(I=!0,z.tag===null)z.tag="?"}if(z.anchor!==null)N2(z,z.anchor,z.result)}else if(D===0)I=K&&P2(z,k)}if(z.tag===null){if(z.anchor!==null)N2(z,z.anchor,z.result)}else if(z.tag==="?"){if(z.result!==null&&z.kind!=="scalar")g(z,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+z.kind+'"');for(let v=0,m=z.implicitTypes.length;v<m;v+=1)if(N=z.implicitTypes[v],N.resolve(z.result)){if(z.result=N.construct(z.result),z.tag=N.tag,z.anchor!==null)N2(z,z.anchor,z.result);break}}else if(z.tag!=="!"){if(G.call(z.typeMap[z.kind||"fallback"],z.tag))N=z.typeMap[z.kind||"fallback"][z.tag];else{N=null;let v=z.typeMap.multi[z.kind||"fallback"];for(let m=0,c=v.length;m<c;m+=1)if(z.tag.slice(0,v[m].tag.length)===v[m].tag){N=v[m];break}}if(!N)g(z,"unknown tag !<"+z.tag+">");if(z.result!==null&&N.kind!==z.kind)g(z,"unacceptable node kind for !<"+z.tag+'> tag; it should be "'+N.kind+'", not "'+z.kind+'"');if(!N.resolve(z.result,z.tag))g(z,"cannot resolve a node with !<"+z.tag+"> explicit tag");else if(z.result=N.construct(z.result,z.tag),z.anchor!==null)N2(z,z.anchor,z.result)}if(z.listener!==null)z.listener("close",z);return z.depth-=1,z.tag!==null||z.anchor!==null||I}function M1(z){let $=z.position,O=!1,T;z.version=null,z.checkLineBreaks=z.legacy,z.tagMap=Object.create(null),z.anchorMap=Object.create(null);while((T=z.input.charCodeAt(z.position))!==0){if(r(z,!0,-1),T=z.input.charCodeAt(z.position),z.lineIndent>0||T!==37)break;O=!0,T=z.input.charCodeAt(++z.position);let A=z.position;while(T!==0&&!h(T))T=z.input.charCodeAt(++z.position);let P=z.input.slice(A,z.position),K=[];if(P.length<1)g(z,"directive name must not be less than one character in length");while(T!==0){while(f(T))T=z.input.charCodeAt(++z.position);if(T===35){do T=z.input.charCodeAt(++z.position);while(T!==0&&!u(T));break}if(u(T))break;A=z.position;while(T!==0&&!h(T))T=z.input.charCodeAt(++z.position);K.push(z.input.slice(A,z.position))}if(T!==0)Z0(z);if(G.call(E0,P))E0[P](z,P,K);else t2(z,'unknown document directive "'+P+'"')}if(r(z,!0,-1),z.lineIndent===0&&z.input.charCodeAt(z.position)===45&&z.input.charCodeAt(z.position+1)===45&&z.input.charCodeAt(z.position+2)===45)z.position+=3,r(z,!0,-1);else if(O)g(z,"directives end mark is expected");if(x2(z,z.lineIndent-1,H,!1,!0),r(z,!0,-1),z.checkLineBreaks&&E.test(z.input.slice($,z.position)))t2(z,"non-ASCII line breaks are interpreted as content");if(z.documents.push(z.result),z.position===z.lineStart&&X0(z)){if(z.input.charCodeAt(z.position)===46)z.position+=3,r(z,!0,-1);return}if(z.position<z.length-1)g(z,"end of the stream or a document separator is expected")}function m0(z,$){if(z=String(z),$=$||{},z.length!==0){if(z.charCodeAt(z.length-1)!==10&&z.charCodeAt(z.length-1)!==13)z+=`
36
+ `;if(z.charCodeAt(0)===65279)z=z.slice(1)}let O=new Z2(z,$),T=z.indexOf("\x00");if(T!==-1)O.position=T,g(O,"null byte is not allowed in input");O.input+="\x00";while(O.input.charCodeAt(O.position)===32)O.lineIndent+=1,O.position+=1;while(O.position<O.length-1)M1(O);return O.documents}function u0(z,$,O){if($!==null&&typeof $==="object"&&typeof O>"u")O=$,$=null;let T=m0(z,O);if(typeof $!=="function")return T;for(let A=0,P=T.length;A<P;A+=1)$(T[A])}function $1(z,$){let O=m0(z,$);if(O.length===0)return;else if(O.length===1)return O[0];throw new Q("expected a single document in the stream, but found more")}X.exports.loadAll=u0,X.exports.load=$1}),G4=n((Z,X)=>{var W=C0(),Q=N0(),J=g1(),Y=Object.prototype.toString,G=Object.prototype.hasOwnProperty,V=65279,U=9,q=10,H=13,F=32,B=33,M=34,L=35,E=37,C=38,_=39,x=42,y=44,u=45,f=58,h=61,b=62,l=63,Q2=64,B2=91,d2=93,K1=96,F0=123,P0=124,B0=125,Z2={};Z2[0]="\\0",Z2[7]="\\a",Z2[8]="\\b",Z2[9]="\\t",Z2[10]="\\n",Z2[11]="\\v",Z2[12]="\\f",Z2[13]="\\r",Z2[27]="\\e",Z2[34]="\\\"",Z2[92]="\\\\",Z2[133]="\\N",Z2[160]="\\_",Z2[8232]="\\L",Z2[8233]="\\P";var x0=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],g=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function t2(K,D){if(D===null)return{};let j={},I=Object.keys(D);for(let w=0,N=I.length;w<N;w+=1){let R=I[w],k=String(D[R]);if(R.slice(0,2)==="!!")R="tag:yaml.org,2002:"+R.slice(2);let S=K.compiledTypeMap.fallback[R];if(S&&G.call(S.styleAliases,k))k=S.styleAliases[k];j[R]=k}return j}function N2(K){let D,j,I=K.toString(16).toUpperCase();if(K<=255)D="x",j=2;else if(K<=65535)D="u",j=4;else if(K<=4294967295)D="U",j=8;else throw new Q("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+D+W.repeat("0",j-I.length)+I}var V1=1,l2=2;function F1(K){this.schema=K.schema||J,this.indent=Math.max(1,K.indent||2),this.noArrayIndent=K.noArrayIndent||!1,this.skipInvalid=K.skipInvalid||!1,this.flowLevel=W.isNothing(K.flowLevel)?-1:K.flowLevel,this.styleMap=t2(this.schema,K.styles||null),this.sortKeys=K.sortKeys||!1,this.lineWidth=K.lineWidth||80,this.noRefs=K.noRefs||!1,this.noCompatMode=K.noCompatMode||!1,this.condenseFlow=K.condenseFlow||!1,this.quotingType=K.quotingType==='"'?l2:V1,this.forceQuotes=K.forceQuotes||!1,this.replacer=typeof K.replacer==="function"?K.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function H0(K,D){let j=W.repeat(" ",D),I=0,w="",N=K.length;while(I<N){let R,k=K.indexOf(`
37
+ `,I);if(k===-1)R=K.slice(I),I=N;else R=K.slice(I,k+1),I=k+1;if(R.length&&R!==`
38
+ `)w+=j;w+=R}return w}function e2(K,D){return`
39
+ `+W.repeat(" ",K.indent*D)}function E0(K,D){for(let j=0,I=K.implicitTypes.length;j<I;j+=1)if(K.implicitTypes[j].resolve(D))return!0;return!1}function U2(K){return K===F||K===U}function y2(K){return K>=32&&K<=126||K>=161&&K<=55295&&K!==8232&&K!==8233||K>=57344&&K<=65533&&K!==V||K>=65536&&K<=1114111}function j2(K){return y2(K)&&K!==V&&K!==H&&K!==q}function Z0(K,D,j){let I=j2(K),w=I&&!U2(K);return(j?I:I&&K!==y&&K!==B2&&K!==d2&&K!==F0&&K!==B0)&&K!==L&&!(D===f&&!w)||j2(D)&&!U2(D)&&K===L||D===f&&w}function r(K){return y2(K)&&K!==V&&!U2(K)&&K!==u&&K!==l&&K!==f&&K!==y&&K!==B2&&K!==d2&&K!==F0&&K!==B0&&K!==L&&K!==C&&K!==x&&K!==B&&K!==P0&&K!==h&&K!==b&&K!==_&&K!==M&&K!==E&&K!==Q2&&K!==K1}function X0(K){return!U2(K)&&K!==f}function _2(K,D){let j=K.charCodeAt(D),I;if(j>=55296&&j<=56319&&D+1<K.length){if(I=K.charCodeAt(D+1),I>=56320&&I<=57343)return(j-55296)*1024+I-56320+65536}return j}function S0(K){return/^\n* /.test(K)}var k0=1,M0=2,b0=3,g0=4,P2=5;function v0(K,D,j,I,w,N,R,k){let S,v=0,m=null,c=!1,o=!1,Y8=I!==-1,$0=-1,D0=r(_2(K,0))&&X0(_2(K,K.length-1));if(D||R)for(S=0;S<K.length;v>=65536?S+=2:S++){if(v=_2(K,S),!y2(v))return P2;D0=D0&&Z0(v,m,k),m=v}else{for(S=0;S<K.length;v>=65536?S+=2:S++){if(v=_2(K,S),v===q){if(c=!0,Y8)o=o||S-$0-1>I&&K[$0+1]!==" ",$0=S}else if(!y2(v))return P2;D0=D0&&Z0(v,m,k),m=v}o=o||Y8&&S-$0-1>I&&K[$0+1]!==" "}if(!c&&!o){if(D0&&!R&&!w(K))return k0;return N===l2?P2:M0}if(j>9&&S0(K))return P2;if(!R)return o?g0:b0;return N===l2?P2:M0}function B1(K,D,j,I,w){K.dump=function(){if(D.length===0)return K.quotingType===l2?'""':"''";if(!K.noCompatMode){if(x0.indexOf(D)!==-1||g.test(D))return K.quotingType===l2?'"'+D+'"':"'"+D+"'"}let N=K.indent*Math.max(1,j),R=K.lineWidth===-1?-1:Math.max(Math.min(K.lineWidth,40),K.lineWidth-N),k=I||K.flowLevel>-1&&j>=K.flowLevel;function S(v){return E0(K,v)}switch(v0(D,k,K.indent,R,S,K.quotingType,K.forceQuotes&&!I,w)){case k0:return D;case M0:return"'"+D.replace(/'/g,"''")+"'";case b0:return"|"+y0(D,K.indent)+h0(H0(D,N));case g0:return">"+y0(D,K.indent)+h0(H0(H1(D,R),N));case P2:return'"'+M1(D,R)+'"';default:throw new Q("impossible error: invalid scalar style")}}()}function y0(K,D){let j=S0(K)?String(D):"",I=K[K.length-1]===`
40
+ `;return j+(I&&(K[K.length-2]===`
41
+ `||K===`
42
+ `)?"+":I?"":"-")+`
43
+ `}function h0(K){return K[K.length-1]===`
44
+ `?K.slice(0,-1):K}function H1(K,D){let j=/(\n+)([^\n]*)/g,I=function(){let k=K.indexOf(`
45
+ `);return k=k!==-1?k:K.length,j.lastIndex=k,x2(K.slice(0,k),D)}(),w=K[0]===`
46
+ `||K[0]===" ",N,R;while(R=j.exec(K)){let k=R[1],S=R[2];N=S[0]===" ",I+=k+(!w&&!N&&S!==""?`
47
+ `:"")+x2(S,D),w=N}return I}function x2(K,D){if(K===""||K[0]===" ")return K;let j=/ [^ ]/g,I,w=0,N,R=0,k=0,S="";while(I=j.exec(K)){if(k=I.index,k-w>D)N=R>w?R:k,S+=`
48
+ `+K.slice(w,N),w=N+1;R=k}if(S+=`
49
+ `,K.length-w>D&&R>w)S+=K.slice(w,R)+`
50
+ `+K.slice(R+1);else S+=K.slice(w);return S.slice(1)}function M1(K){let D="",j=0;for(let I=0;I<K.length;j>=65536?I+=2:I++){j=_2(K,I);let w=Z2[j];if(!w&&y2(j)){if(D+=K[I],j>=65536)D+=K[I+1]}else D+=w||N2(j)}return D}function m0(K,D,j){let I="",w=K.tag;for(let N=0,R=j.length;N<R;N+=1){let k=j[N];if(K.replacer)k=K.replacer.call(j,String(N),k);if(O(K,D,k,!1,!1)||typeof k>"u"&&O(K,D,null,!1,!1)){if(I!=="")I+=","+(!K.condenseFlow?" ":"");I+=K.dump}}K.tag=w,K.dump="["+I+"]"}function u0(K,D,j,I){let w="",N=K.tag;for(let R=0,k=j.length;R<k;R+=1){let S=j[R];if(K.replacer)S=K.replacer.call(j,String(R),S);if(O(K,D+1,S,!0,!0,!1,!0)||typeof S>"u"&&O(K,D+1,null,!0,!0,!1,!0)){if(!I||w!=="")w+=e2(K,D);if(K.dump&&q===K.dump.charCodeAt(0))w+="-";else w+="- ";w+=K.dump}}K.tag=N,K.dump=w||"[]"}function $1(K,D,j){let I="",w=K.tag,N=Object.keys(j);for(let R=0,k=N.length;R<k;R+=1){let S="";if(I!=="")S+=", ";if(K.condenseFlow)S+='"';let v=N[R],m=j[v];if(K.replacer)m=K.replacer.call(j,v,m);if(!O(K,D,v,!1,!1))continue;if(K.dump.length>1024)S+="? ";if(S+=K.dump+(K.condenseFlow?'"':"")+":"+(K.condenseFlow?"":" "),!O(K,D,m,!1,!1))continue;S+=K.dump,I+=S}K.tag=w,K.dump="{"+I+"}"}function z(K,D,j,I){let w="",N=K.tag,R=Object.keys(j);if(K.sortKeys===!0)R.sort();else if(typeof K.sortKeys==="function")R.sort(K.sortKeys);else if(K.sortKeys)throw new Q("sortKeys must be a boolean or a function");for(let k=0,S=R.length;k<S;k+=1){let v="";if(!I||w!=="")v+=e2(K,D);let m=R[k],c=j[m];if(K.replacer)c=K.replacer.call(j,m,c);if(!O(K,D+1,m,!0,!0,!0))continue;let o=K.tag!==null&&K.tag!=="?"||K.dump&&K.dump.length>1024;if(o)if(K.dump&&q===K.dump.charCodeAt(0))v+="?";else v+="? ";if(v+=K.dump,o)v+=e2(K,D);if(!O(K,D+1,c,!0,o))continue;if(K.dump&&q===K.dump.charCodeAt(0))v+=":";else v+=": ";v+=K.dump,w+=v}K.tag=N,K.dump=w||"{}"}function $(K,D,j){let I=j?K.explicitTypes:K.implicitTypes;for(let w=0,N=I.length;w<N;w+=1){let R=I[w];if((R.instanceOf||R.predicate)&&(!R.instanceOf||typeof D==="object"&&D instanceof R.instanceOf)&&(!R.predicate||R.predicate(D))){if(j)if(R.multi&&R.representName)K.tag=R.representName(D);else K.tag=R.tag;else K.tag="?";if(R.represent){let k=K.styleMap[R.tag]||R.defaultStyle,S;if(Y.call(R.represent)==="[object Function]")S=R.represent(D,k);else if(G.call(R.represent,k))S=R.represent[k](D,k);else throw new Q("!<"+R.tag+'> tag resolver accepts not "'+k+'" style');K.dump=S}return!0}}return!1}function O(K,D,j,I,w,N,R){if(K.tag=null,K.dump=j,!$(K,j,!1))$(K,j,!0);let k=Y.call(K.dump),S=I;if(I)I=K.flowLevel<0||K.flowLevel>D;let v=k==="[object Object]"||k==="[object Array]",m,c;if(v)m=K.duplicates.indexOf(j),c=m!==-1;if(K.tag!==null&&K.tag!=="?"||c||K.indent!==2&&D>0)w=!1;if(c&&K.usedDuplicates[m])K.dump="*ref_"+m;else{if(v&&c&&!K.usedDuplicates[m])K.usedDuplicates[m]=!0;if(k==="[object Object]"){if(I&&Object.keys(K.dump).length!==0){if(z(K,D,K.dump,w),c)K.dump="&ref_"+m+K.dump}else if($1(K,D,K.dump),c)K.dump="&ref_"+m+" "+K.dump}else if(k==="[object Array]"){if(I&&K.dump.length!==0){if(K.noArrayIndent&&!R&&D>0)u0(K,D-1,K.dump,w);else u0(K,D,K.dump,w);if(c)K.dump="&ref_"+m+K.dump}else if(m0(K,D,K.dump),c)K.dump="&ref_"+m+" "+K.dump}else if(k==="[object String]"){if(K.tag!=="?")B1(K,K.dump,D,N,S)}else if(k==="[object Undefined]")return!1;else{if(K.skipInvalid)return!1;throw new Q("unacceptable kind of an object to dump "+k)}if(K.tag!==null&&K.tag!=="?"){let o=encodeURI(K.tag[0]==="!"?K.tag.slice(1):K.tag).replace(/!/g,"%21");if(K.tag[0]==="!")o="!"+o;else if(o.slice(0,18)==="tag:yaml.org,2002:")o="!!"+o.slice(18);else o="!<"+o+">";K.dump=o+" "+K.dump}}return!0}function T(K,D){let j=[],I=[];A(K,j,I);let w=I.length;for(let N=0;N<w;N+=1)D.duplicates.push(j[I[N]]);D.usedDuplicates=Array(w)}function A(K,D,j){if(K!==null&&typeof K==="object"){let I=D.indexOf(K);if(I!==-1){if(j.indexOf(I)===-1)j.push(I)}else if(D.push(K),Array.isArray(K))for(let w=0,N=K.length;w<N;w+=1)A(K[w],D,j);else{let w=Object.keys(K);for(let N=0,R=w.length;N<R;N+=1)A(K[w[N]],D,j)}}}function P(K,D){D=D||{};let j=new F1(D);if(!j.noRefs)T(K,j);let I=K;if(j.replacer)I=j.replacer.call({"":I},"",I);if(O(j,0,I,!0,!0))return j.dump+`
51
+ `;return""}X.exports.dump=P}),J9=z4(n((Z,X)=>{var W=Q4(),Q=G4();function J(Y,G){return function(){throw Error("Function yaml."+Y+" is removed in js-yaml 4. Use yaml."+G+" instead, which is now safe by default.")}}X.exports.Type=W2(),X.exports.Schema=p8(),X.exports.FAILSAFE_SCHEMA=n8(),X.exports.JSON_SCHEMA=t8(),X.exports.CORE_SCHEMA=e8(),X.exports.DEFAULT_SCHEMA=g1(),X.exports.load=W.load,X.exports.loadAll=W.loadAll,X.exports.dump=Q.dump,X.exports.YAMLException=N0(),X.exports.types={binary:z9(),float:a8(),map:i8(),null:o8(),pairs:Q9(),set:G9(),timestamp:Z9(),bool:r8(),int:s8(),merge:X9(),omap:W9(),seq:l8(),str:d8()},X.exports.safeLoad=J("safeLoad","load"),X.exports.safeLoadAll=J("safeLoadAll","loadAll"),X.exports.safeDump=J("safeDump","dump")})(),1),{Type:h6,Schema:m6,FAILSAFE_SCHEMA:u6,JSON_SCHEMA:Y9,CORE_SCHEMA:f6,DEFAULT_SCHEMA:c6,load:p6,loadAll:d6,dump:l6,YAMLException:i6,types:n6,safeLoad:o6,safeLoadAll:r6,safeDump:s6}=J9.default,v1=J9.default});var q9;var U9=p(()=>{D2();y1();y1();q9={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(Z){let X=Z.data;if(Buffer.isBuffer(X))X=X.toString();if(typeof X==="string")try{return v1.load(X,{schema:Y9})}catch{try{return v1.load(X)}catch(W){throw new $2(W?.message||"Parser Error",Z.url)}}else return X}}});var J4,K9;var V9=p(()=>{D2();J4=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i,K9={order:300,allowEmpty:!0,encoding:"utf8",canParse(Z){return(typeof Z.data==="string"||Buffer.isBuffer(Z.data))&&J4.test(Z.url)},parse(Z){if(typeof Z.data==="string")return Z.data;else if(Buffer.isBuffer(Z.data))return Z.data.toString(this.encoding);else throw new $2("data is not text",Z.url)}}});var Y4,F9;var B9=p(()=>{Y4=/\.(jpeg|jpg|gif|png|bmp|ico)$/i,F9={order:400,allowEmpty:!0,canParse(Z){return Buffer.isBuffer(Z.data)&&Y4.test(Z.url)},parse(Z){if(Buffer.isBuffer(Z.data))return Z.data;else return Buffer.from(Z.data)}}});var h1;var m1=p(()=>{Y2();D2();h1={order:100,canRead(Z){return r0(Z.url)},async read(Z){let X,W=await import("fs");try{X=q0(Z.url)}catch(Q){let J=Q;throw J.message=`Malformed URI: ${Z.url}: ${J.message}`,new w2(J,Z.url)}if(X.endsWith("/")||X.endsWith("\\"))X=X.slice(0,-1);try{return await W.promises.readFile(X)}catch(Q){let J=Q;throw J.message=`Error opening file ${X}: ${J.message}`,new w2(J,X)}}}});async function H9(Z,X,W){Z=Y0(Z);let Q=W||[];Q.push(Z.href);try{if(X.safeUrlResolver&&o0(Z.href))throw Error(`Unsafe URL blocked by safeUrlResolver: ${Z.href}`);let J=await q4(Z,X);if(J.status>=400){let Y=Error(`HTTP ERROR ${J.status}`);throw Y.status=J.status,Y}else if(J.status>=300)if(!Number.isNaN(X.redirects)&&Q.length>X.redirects){let Y=Error(`Error downloading ${Q[0]}.
51
52
  Too many redirects:
52
- ${q.join(`
53
- `)}`);throw Q.status=G.status,new Z0(Q)}else if(!("location"in G.headers)||!G.headers.location){let Q=Error(`HTTP ${G.status} redirect with no location header`);throw Q.status=G.status,Q}else{let Q=k(Z.href,G.headers.location);return AZ(Q,X,q)}else{if(G.body){let Q=await G.arrayBuffer();return Buffer.from(Q)}return Buffer.alloc(0)}}catch(G){let Q=G;throw Q.message=`Error downloading ${Z.href}: ${Q.message}`,new Z0(Q,Z.href)}}async function $3(Z,X){let z,q;if(X.timeout&&typeof AbortController<"u")z=new AbortController,q=setTimeout(()=>z.abort(),X.timeout);let G=await fetch(Z,{method:"GET",headers:X.headers||{},credentials:X.withCredentials?"include":"same-origin",signal:z?z.signal:null});if(q)clearTimeout(q);return G}var $8;var D8=T(()=>{u();s();$8={order:200,headers:null,timeout:60000,redirects:5,withCredentials:!1,safeUrlResolver:!0,canRead(Z){return a8(Z.url)&&(!this.safeUrlResolver||!p1(Z.url))},read(Z){let X=g0(Z.url);if(typeof window<"u"&&!X.protocol)X.protocol=g0(location.href).protocol;return AZ(X,this)}}});function OZ(Z,X){if(LZ(X)){let z=Object.keys(X).filter((q)=>!["__proto__","constructor","prototype"].includes(q));for(let q=0;q<z.length;q++){let G=z[q],Q=X[G],W=Z[G];if(LZ(Q))Z[G]=OZ(W||{},Q);else if(Q!==void 0)Z[G]=Q}}return Z}function LZ(Z){return Z&&typeof Z==="object"&&!Array.isArray(Z)&&!(Z instanceof RegExp)&&!(Z instanceof Date)}var IZ=()=>{return{parse:{json:{...J9},yaml:{...MZ},text:{...FZ},binary:{...$Z}},resolve:{file:{...F8},http:{...$8},external:!0},continueOnError:!1,bundle:{excludedPathMatcher:()=>!1},dereference:{circular:!0,excludedPathMatcher:()=>!1,referenceResolution:"relative",mergeKeys:!0},mutateInputSchema:!0}},wZ=(Z)=>{let X=IZ();if(Z)OZ(X,Z);return X};var A8=T(()=>{Y9();HZ();BZ();DZ();B8();D8()});function D3(Z){let X,z,q,G,Q=Array.prototype.slice.call(Z);if(typeof Q[Q.length-1]==="function")G=Q.pop();if(typeof Q[0]==="string")if(X=Q[0],typeof Q[2]==="object")z=Q[1],q=Q[2];else z=void 0,q=Q[1];else X="",z=Q[0],q=Q[1];try{q=wZ(q)}catch(W){console.error(`JSON Schema Ref Parser: Error normalizing options: ${W}`)}if(!q.mutateInputSchema&&typeof z==="object")z=JSON.parse(JSON.stringify(z));return{path:X,schema:z,options:q,callback:G}}var q1;var TZ=T(()=>{A8();q1=D3});function A3(Z,X){if(!X.resolve?.external)return Promise.resolve();try{let z=Z.$refs._root$Ref.dynamicIdScope?y(Z.$refs._root$Ref.path,Z.schema):Z.$refs._root$Ref.path,q=L8(Z.schema,Z.$refs._root$Ref.path+"#",z,Z.$refs._root$Ref.dynamicIdScope,Z.$refs,X);return Promise.all(q)}catch(z){return Promise.reject(z)}}function L8(Z,X,z,q,G,Q,W,Y){W||=new Set;let J=[];if(Z&&typeof Z==="object"&&!ArrayBuffer.isView(Z)&&!W.has(Z)){W.add(Z);let U=z;if(_.isExternal$Ref(Z))J.push(L3(Z,X,U,q,G,Q));let K=Object.keys(Z);for(let V of K){let M=f.join(X,V),H=Z[V],F=q&&H&&typeof H==="object"&&!ArrayBuffer.isView(H)?y(U,H):U;J=J.concat(L8(H,M,F,q,G,Q,W,Y))}}return J}async function L3(Z,X,z,q,G,Q){let Y=Q.dereference?.externalReferenceResolution==="root"?C0():q?z:X,J=k(Y,Z.$ref),U=x(J),K=G._get$Ref(U);if(K)return Promise.resolve(K.value);try{let V=Z.$ref,M={url:J,baseUrl:Y};if(typeof V==="string")M.reference=V;let H=await I1(M,G,Q),F=G._get$Ref(U),A=L8(H,U+"#",U,F?.dynamicIdScope??!1,G,Q,new Set,!0);return Promise.all(A)}catch(V){if(!Q?.continueOnError||!W0(V))throw V;if(G._$refs[U])V.source=decodeURI(x(X)),V.path=M1(q0(X));return[]}}var CZ;var RZ=T(()=>{h0();r0();s1();u();s();R0();CZ=A3});function I3(Z,X){let z=Z.$refs._root$Ref.dynamicIdScope?y(Z.$refs._root$Ref.path,Z.schema):Z.$refs._root$Ref.path,q=[];I8(Z,"schema",Z.$refs._root$Ref.path+"#",z,Z.$refs._root$Ref.dynamicIdScope,"#",0,q,Z.$refs,X);let G=Z.schema&&typeof Z.schema==="object"&&"$id"in Z.schema?Z.schema.$id:void 0;if(w3(q,X,G),(X.bundle||{}).optimizeInternalRefs!==!1)C3(q,Z.schema)}function I8(Z,X,z,q,G,Q,W,Y,J,U){let K=X===null?Z:Z[X],V=U.bundle||{},M=V.excludedPathMatcher||(()=>!1);if(K&&typeof K==="object"&&!ArrayBuffer.isView(K)&&!M(Q)){let H=q;if(_.isAllowed$Ref(K))NZ(Z,X,z,H,G,Q,W,Y,J,U);else{let F=Object.keys(K).sort((A,B)=>{if(A==="definitions"||A==="$defs")return-1;else if(B==="definitions"||B==="$defs")return 1;else return A.length-B.length});for(let A of F){let B=f.join(z,A),D=f.join(Q,A),$=K[A],w=G&&$&&typeof $==="object"&&!ArrayBuffer.isView($)?y(H,$):H;if(_.isAllowed$Ref($))NZ(K,A,B,w,G,D,W,Y,J,U);else I8(K,A,B,w,G,D,W,Y,J,U);if($&&typeof $==="object"&&!Array.isArray($)){if("$ref"in $)V?.onBundle?.($.$ref,K[A],K,A)}}}}}function NZ(Z,X,z,q,G,Q,W,Y,J,U){let K=X===null?Z:Z[X],V=k(G?q:z,K.$ref),M=J._resolve(V,Q,U);if(M===null)return;let F=f.parse(Q).length,A=x(M.path),B=q0(M.path),D=A!==J._root$Ref.path&&!J._aliases[A],$=_.isExtended$Ref(K);W+=M.indirections;let w=O3(Y,Z,X);if(w)if(F<w.depth||W<w.indirections)T3(Y,w);else return;if(Y.push({$ref:K,parent:Z,key:X,pathFromRoot:Q,depth:F,file:A,hash:B,value:M.value,circular:M.circular,extended:$,external:D,indirections:W}),!w||D)I8(M.value,null,M.path,M.$ref.path,M.$ref.dynamicIdScope,Q,W+1,Y,J,U)}function w3(Z,X,z){Z.sort((W,Y)=>{if(W.file!==Y.file)return W.file<Y.file?-1:1;else if(W.hash!==Y.hash)return W.hash<Y.hash?-1:1;else if(W.circular!==Y.circular)return W.circular?-1:1;else if(W.extended!==Y.extended)return W.extended?1:-1;else if(W.indirections!==Y.indirections)return W.indirections-Y.indirections;else if(W.depth!==Y.depth)return W.depth-Y.depth;else{let J=Math.max(W.pathFromRoot.lastIndexOf("/definitions"),W.pathFromRoot.lastIndexOf("/$defs")),U=Math.max(Y.pathFromRoot.lastIndexOf("/definitions"),Y.pathFromRoot.lastIndexOf("/$defs"));if(J!==U)return U-J;else return W.pathFromRoot.length-Y.pathFromRoot.length}});let q,G,Q;for(let W of Z){let Y=X.bundle||{};if(!W.external){if(Y.optimizeInternalRefs!==!1)W.$ref.$ref=W.hash}else if(W.file===q&&W.hash===G)if(z&&jZ(Z,W))W.$ref.$ref=z+Q;else W.$ref.$ref=Q;else if(W.file===q&&W.hash.indexOf(G+"/")===0){let J=f.join(Q,f.parse(W.hash.replace(G,"#")));if(z&&jZ(Z,W))W.$ref.$ref=z+J;else W.$ref.$ref=J}else if(q=W.file,G=W.hash,Q=W.pathFromRoot,W.$ref=W.parent[W.key]=_.dereference(W.$ref,W.value,X),W.circular)W.$ref.$ref=W.pathFromRoot}}function O3(Z,X,z){for(let q of Z)if(q&&q.parent===X&&q.key===z)return q;return}function T3(Z,X){let z=Z.indexOf(X);Z.splice(z,1)}function C3(Z,X){for(let z of Z){if(!z.$ref||typeof z.$ref!=="object"||!("$ref"in z.$ref))continue;let q=z.$ref.$ref;if(typeof q!=="string"||!q.startsWith("#/"))continue;let G=R3(X,q);if(G!==q)z.$ref.$ref=G}}function R3(Z,X){if(!X.startsWith("#/"))return X;let z=X.slice(2).split("/"),q=Z,G=[];for(let W of z){if(q===null||q===void 0||typeof q!=="object")return X;if("$ref"in q&&typeof q.$ref==="string"&&q.$ref.startsWith("#/")){let U=q.$ref.slice(2).split("/");if(G.length=0,G.push(...U),q=N3(Z,q.$ref),q===null||q===void 0||typeof q!=="object")return X}let Y=W.replace(/~1/g,"/").replace(/~0/g,"~"),J=Array.isArray(q)?parseInt(Y):Y;q=q[J],G.push(W)}return"#/"+G.join("/")}function N3(Z,X){if(!X.startsWith("#/"))return;let z=X.slice(2).split("/"),q=Z;for(let G of z){if(q===null||q===void 0||typeof q!=="object")return;let Q=G.replace(/~1/g,"/").replace(/~0/g,"~"),W=Array.isArray(q)?parseInt(Q):Q;q=q[W]}return q}function jZ(Z,X){for(let z of Z){if(z.pathFromRoot==="#"||z.pathFromRoot==="#/")continue;if(X.pathFromRoot.startsWith(z.pathFromRoot+"/")){if(z.value&&typeof z.value==="object"&&"$id"in z.value)return!0}}return!1}var _Z;var PZ=T(()=>{h0();r0();u();R0();_Z=I3});function j3(Z,X){let z=Date.now(),q=Z.$refs._root$Ref.dynamicIdScope?y(Z.$refs._root$Ref.path,Z.schema):Z.$refs._root$Ref.path,G=w8(Z.schema,Z.$refs._root$Ref.path,q,Z.$refs._root$Ref.dynamicIdScope,"#",new Set,new Set,new Map,Z.$refs,X,z,0);Z.$refs.circular=G.circular,Z.schema=G.value}function w8(Z,X,z,q,G,Q,W,Y,J,U,K,V){let M,H={value:Z,circular:!1};EZ(K,U);let F=U.dereference||{},A=F.maxDepth??500;if(V>A)throw RangeError(`Maximum dereference depth (${A}) exceeded at ${G}. This likely indicates an extremely deep or recursive schema. You can increase this limit with the dereference.maxDepth option.`);let B=F.excludedPathMatcher||(()=>!1);if(F?.circular==="ignore"||!W.has(Z)){if(Z&&typeof Z==="object"&&!ArrayBuffer.isView(Z)&&!B(G)){Q.add(Z),W.add(Z);let D=z;if(_.isAllowed$Ref(Z,U))M=xZ(Z,X,D,q,G,Q,W,Y,J,U,K,V),H.circular=M.circular,H.value=M.value;else for(let $ of Object.keys(Z)){EZ(K,U);let w=f.join(X,$),R=f.join(G,$);if(B(R))continue;let N=Z[$],O=q&&N&&typeof N==="object"&&!ArrayBuffer.isView(N)?y(D,N):D,I;if(_.isAllowed$Ref(N,U)){if(M=xZ(N,w,O,q,R,Q,W,Y,J,U,K,V),I=M.circular,Z[$]!==M.value){let P=new Map;if(F?.preservedProperties){if(typeof Z[$]==="object"&&!Array.isArray(Z[$]))F?.preservedProperties.forEach((I0)=>{if(I0 in Z[$])P.set(I0,Z[$][I0])})}let X0=M.value;if(F?.cloneReferences&&!I&&X0&&typeof X0==="object")X0=structuredClone(X0);if(Z[$]=X0,F?.preservedProperties){if(P.size&&typeof Z[$]==="object"&&!Array.isArray(Z[$]))P.forEach((I0,U6)=>{Z[$][U6]=I0})}F?.onDereference?.(N.$ref,Z[$],Z,$)}}else if(!Q.has(N)){if(M=w8(N,w,O,q,R,Q,W,Y,J,U,K,V+1),I=M.circular,Z[$]!==M.value)Z[$]=M.value}else I=j1(w,J,U);H.circular=H.circular||I}Q.delete(Z)}}return H}function xZ(Z,X,z,q,G,Q,W,Y,J,U,K,V){let F=_.isExternal$Ref(Z)&&U?.dereference?.externalReferenceResolution==="root"?C0():q?z:X,A=k(F,Z.$ref),B=Y.get(A);if(B){if(!B.circular){let O=Object.keys(Z);if(O.length>1){let I={};for(let P of O)if(P!=="$ref"&&!(P in B.value))I[P]=Z[P];return{circular:B.circular,value:Object.assign({},B.value,I)}}return B}if(typeof B.value==="object"&&"$ref"in B.value&&"$ref"in Z){if(B.value.$ref===Z.$ref)return j1(X,J,U),B}else return j1(X,J,U),B}let D=J._resolve(A,X,U);if(D===null)return{circular:!1,value:null};let $=D.circular,w=$||Q.has(D.value);if(w)j1(X,J,U);let R=_.dereference(Z,D.value,U);if(!w){let O=w8(R,D.path,D.$ref.path,D.$ref.dynamicIdScope,G,Q,W,Y,J,U,K,V+1);w=O.circular,R=O.value}if(w&&!$&&U.dereference?.circular==="ignore")R=Z;if($)R.$ref=G;let N={circular:w,value:R};if(Object.keys(Z).length===1)Y.set(A,N);return N}function EZ(Z,X){if(X&&X.timeoutMs){if(Date.now()-Z>X.timeoutMs)throw new d1(X.timeoutMs)}}function j1(Z,X,z){if(X.circular=!0,z?.dereference?.onCircular?.(Z),!z.dereference.circular)throw ReferenceError(`Circular $ref pointer found at ${Z}`);return!0}var SZ;var kZ=T(()=>{h0();r0();u();R0();s();SZ=j3});function _3(){if(typeof process==="object"&&typeof process.nextTick==="function")return process.nextTick;else if(typeof setImmediate==="function")return setImmediate;else return function(X){setTimeout(X,0)}}var O8;var bZ=T(()=>{O8=_3()});function l(Z,X){if(Z){X.then(function(z){O8(function(){Z(null,z)})},function(z){O8(function(){Z(z)})});return}else return X}var gZ=T(()=>{bZ()});class V0{schema=null;$refs=new a0;async parse(){let Z=q1(arguments),X;if(!Z.path&&!Z.schema){let q=Error(`Expected a file path, URL, or object. Got ${Z.path||Z.schema}`);return l(Z.callback,Promise.reject(q))}this.schema=null,this.$refs=new a0;let z="http";if(V1(Z.path))Z.path=t8(Z.path),z="file";else if(!Z.path&&Z.schema&&"$id"in Z.schema&&Z.schema.$id){let q=g0(Z.schema.$id),G=q.port??(q.protocol==="https:"?443:80);Z.path=`${q.protocol}//${q.hostname}:${G}`}if(Z.path=k(C0(),Z.path),Z.schema&&typeof Z.schema==="object"){let q=this.$refs._add(Z.path);q.value=Z.schema,q.pathType=z,q.dynamicIdScope=$1(q.value),D1(this.$refs,q.path,q.value,q.pathType,q.dynamicIdScope),X=Promise.resolve(Z.schema)}else X=I1(Z.path,this.$refs,Z.options);try{let q=await X;if(q!==null&&typeof q==="object"&&!Buffer.isBuffer(q))return this.schema=q,l(Z.callback,Promise.resolve(this.schema));else if(Z.options.continueOnError)return this.schema=null,l(Z.callback,Promise.resolve(this.schema));else throw SyntaxError(`"${this.$refs._root$Ref.path||q}" is not a valid JSON Schema`)}catch(q){if(!Z.options.continueOnError||!W0(q))return l(Z.callback,Promise.reject(q));if(this.$refs._$refs[x(Z.path)])this.$refs._$refs[x(Z.path)].addError(q);return l(Z.callback,Promise.resolve(null))}}static parse(){let Z=new V0;return Z.parse.apply(Z,arguments)}async resolve(){let Z=q1(arguments);try{return await this.parse(Z.path,Z.schema,Z.options),await CZ(this,Z.options),T8(this),l(Z.callback,Promise.resolve(this.$refs))}catch(X){return l(Z.callback,Promise.reject(X))}}static resolve(){let Z=new V0;return Z.resolve.apply(Z,arguments)}static bundle(){let Z=new V0;return Z.bundle.apply(Z,arguments)}async bundle(){let Z=q1(arguments);try{return await this.resolve(Z.path,Z.schema,Z.options),_Z(this,Z.options),T8(this),l(Z.callback,Promise.resolve(this.schema))}catch(X){return l(Z.callback,Promise.reject(X))}}static dereference(){let Z=new V0;return Z.dereference.apply(Z,arguments)}async dereference(){let Z=q1(arguments);try{return await this.resolve(Z.path,Z.schema,Z.options),SZ(this,Z.options),T8(this),l(Z.callback,Promise.resolve(this.schema))}catch(X){return l(Z.callback,Promise.reject(X))}}}function T8(Z){if(y0.getParserErrors(Z).length>0)throw new y0(Z)}var cX,pX,dX,vZ;var yZ=T(()=>{W9();s1();TZ();RZ();PZ();kZ();u();B8();D8();s();gZ();R0();A8();u();cX=V0.parse,pX=V0.resolve,dX=V0.bundle,vZ=V0.dereference});async function mZ(Z,X={}){let{baseUrl:z="/_jx/server"}=X,q=await vZ(Z),G=i8(q);if(G.length===0)return null;let Q=G.map(({exportName:Y,src:J})=>`import { ${Y} } from '${J}'`).join(`
54
- `),W=G.map(({exportName:Y})=>hZ(Y,z)).join(`
53
+ ${Q.join(`
54
+ `)}`);throw Y.status=J.status,new w2(Y)}else{let Y=U4(J,"location");if(!Y){let V=Error(`HTTP ${J.status} redirect with no location header`);throw V.status=J.status,V}let G=e(Z.href,Y);return H9(G,X,Q)}else{if(J.body){let Y=await J.arrayBuffer();return Buffer.from(Y)}return Buffer.alloc(0)}}catch(J){let Y=J;throw Y.message=`Error downloading ${Z.href}: ${Y.message}`,new w2(Y,Z.href)}}async function q4(Z,X){let W,Q;if(X.timeout&&typeof AbortController<"u")W=new AbortController,Q=setTimeout(()=>W.abort(),X.timeout);let J=await fetch(Z,{method:"GET",headers:X.headers||{},credentials:X.withCredentials?"include":"same-origin",redirect:"manual",signal:W?W.signal:null});if(Q)clearTimeout(Q);return J}function U4(Z,X){return Z.headers.get(X)}var u1;var f1=p(()=>{Y2();D2();u1={order:200,headers:null,timeout:60000,redirects:5,withCredentials:!1,safeUrlResolver:!0,canRead(Z){return j8(Z.url)&&(!this.safeUrlResolver||!o0(Z.url))},read(Z){let X=Y0(Z.url);if(typeof window<"u"&&!X.protocol)X.protocol=Y0(location.href).protocol;return H9(X,this)}}});function L9(Z,X){if(M9(X)){let W=Object.keys(X).filter((Q)=>!["__proto__","constructor","prototype"].includes(Q));for(let Q=0;Q<W.length;Q++){let J=W[Q],Y=X[J],G=Z[J];if(M9(Y))Z[J]=L9(G||{},Y);else if(Y!==void 0)Z[J]=Y}}return Z}function M9(Z){return Z&&typeof Z==="object"&&!Array.isArray(Z)&&!(Z instanceof RegExp)&&!(Z instanceof Date)}var $9=()=>{return{parse:{json:{...u8},yaml:{...q9},text:{...K9},binary:{...F9}},resolve:{file:{...h1},http:{...u1},external:!0},continueOnError:!1,bundle:{excludedPathMatcher:()=>!1},dereference:{circular:!0,excludedPathMatcher:()=>!1,referenceResolution:"relative",mergeKeys:!0},mutateInputSchema:!0}},D9=(Z)=>{let X=$9();if(Z)L9(X,Z);return X};var c1=p(()=>{f8();U9();V9();B9();m1();f1()});function K4(Z){let X,W,Q,J,Y=Array.prototype.slice.call(Z);if(typeof Y[Y.length-1]==="function")J=Y.pop();if(typeof Y[0]==="string")if(X=Y[0],typeof Y[2]==="object")W=Y[1],Q=Y[2];else W=void 0,Q=Y[1];else X="",W=Y[0],Q=Y[1];try{Q=D9(Q)}catch(G){console.error(`JSON Schema Ref Parser: Error normalizing options: ${G}`)}if(!Q.mutateInputSchema&&typeof W==="object")W=JSON.parse(JSON.stringify(W));return{path:X,schema:W,options:Q,callback:J}}var j0;var A9=p(()=>{c1();j0=K4});function V4(Z,X){if(!X.resolve?.external)return Promise.resolve();try{let W=Z.$refs._root$Ref.dynamicIdScope?z2(Z.$refs._root$Ref.path,Z.schema):Z.$refs._root$Ref.path,Q=p1(Z.schema,Z.$refs._root$Ref.path+"#",W,Z.$refs._root$Ref.dynamicIdScope,Z.$refs,X);return Promise.all(Q)}catch(W){return Promise.reject(W)}}function p1(Z,X,W,Q,J,Y,G,V){G||=new Set;let U=[];if(Z&&typeof Z==="object"&&!ArrayBuffer.isView(Z)&&!G.has(Z)){G.add(Z);let q=W;if(s.isExternal$Ref(Z))U.push(F4(Z,X,q,Q,J,Y));let H=Object.keys(Z);for(let F of H){let B=q2.join(X,F),M=Z[F],L=Q&&M&&typeof M==="object"&&!ArrayBuffer.isView(M)?z2(q,M):q;U=U.concat(p1(M,B,L,Q,J,Y,G,V))}}return U}async function F4(Z,X,W,Q,J,Y){let V=Y.dereference?.externalReferenceResolution==="root"?o2():Q?W:X,U=e(V,Z.$ref),q=a(U),H=J._get$Ref(q);if(H)return Promise.resolve(H.value);try{let F=Z.$ref,B={url:U,baseUrl:V};if(typeof F==="string")B.reference=F;let M=await Q1(B,J,Y),L=J._get$Ref(q),E=p1(M,q+"#",q,L?.dynamicIdScope??!1,J,Y,new Set,!0);return Promise.all(E)}catch(F){if(!Y?.continueOnError||!C2(F))throw F;if(J._$refs[q])F.source=decodeURI(a(X)),F.path=s0(T2(X));return[]}}var O9;var I9=p(()=>{V0();w0();b1();Y2();D2();r2();O9=V4});function B4(Z,X){let W=Z.$refs._root$Ref.dynamicIdScope?z2(Z.$refs._root$Ref.path,Z.schema):Z.$refs._root$Ref.path,Q=[];d1(Z,"schema",Z.$refs._root$Ref.path+"#",W,Z.$refs._root$Ref.dynamicIdScope,"#",0,Q,Z.$refs,X);let J=Z.schema&&typeof Z.schema==="object"&&"$id"in Z.schema?Z.schema.$id:void 0;if(H4(Q,X,J),(X.bundle||{}).optimizeInternalRefs!==!1)D4(Q,Z.schema)}function d1(Z,X,W,Q,J,Y,G,V,U,q){let H=X===null?Z:Z[X],F=q.bundle||{},B=F.excludedPathMatcher||(()=>!1);if(H&&typeof H==="object"&&!ArrayBuffer.isView(H)&&!B(Y)){let M=Q;if(s.isAllowed$Ref(H))w9(Z,X,W,M,J,Y,G,V,U,q);else{let L=Object.keys(H).sort((E,C)=>{if(E==="definitions"||E==="$defs")return-1;else if(C==="definitions"||C==="$defs")return 1;else return E.length-C.length});for(let E of L){let C=q2.join(W,E),_=q2.join(Y,E),x=H[E],y=J&&x&&typeof x==="object"&&!ArrayBuffer.isView(x)?z2(M,x):M;if(s.isAllowed$Ref(x))w9(H,E,C,y,J,_,G,V,U,q);else d1(H,E,C,y,J,_,G,V,U,q);if(x&&typeof x==="object"&&!Array.isArray(x)){if("$ref"in x)F?.onBundle?.(x.$ref,H[E],H,E)}}}}}function w9(Z,X,W,Q,J,Y,G,V,U,q){let H=X===null?Z:Z[X],F=e(J?Q:W,H.$ref),B=U._resolve(F,Y,q);if(B===null)return;let L=q2.parse(Y).length,E=a(B.path),C=T2(B.path),_=E!==U._root$Ref.path&&!U._aliases[E],x=s.isExtended$Ref(H);G+=B.indirections;let y=M4(V,Z,X);if(y)if(L<y.depth||G<y.indirections)$4(V,y);else return;if(V.push({$ref:H,parent:Z,key:X,pathFromRoot:Y,depth:L,file:E,hash:C,value:B.value,circular:B.circular,extended:x,external:_,indirections:G}),!y||_)d1(B.value,null,B.path,B.$ref.path,B.$ref.dynamicIdScope,Y,G+1,V,U,q)}function H4(Z,X,W){Z.sort((G,V)=>{if(G.file!==V.file)return G.file<V.file?-1:1;else if(G.hash!==V.hash)return G.hash<V.hash?-1:1;else if(G.circular!==V.circular)return G.circular?-1:1;else if(G.extended!==V.extended)return G.extended?1:-1;else if(G.indirections!==V.indirections)return G.indirections-V.indirections;else if(G.depth!==V.depth)return G.depth-V.depth;else{let U=Math.max(G.pathFromRoot.lastIndexOf("/definitions"),G.pathFromRoot.lastIndexOf("/$defs")),q=Math.max(V.pathFromRoot.lastIndexOf("/definitions"),V.pathFromRoot.lastIndexOf("/$defs"));if(U!==q)return q-U;else return G.pathFromRoot.length-V.pathFromRoot.length}});let Q,J,Y;for(let G of Z){let V=X.bundle||{};if(!G.external){if(V.optimizeInternalRefs!==!1)G.$ref.$ref=G.hash}else if(G.file===Q&&G.hash===J)if(W&&T9(Z,G))G.$ref.$ref=W+Y;else G.$ref.$ref=Y;else if(G.file===Q&&G.hash.indexOf(J+"/")===0){let U=q2.join(Y,q2.parse(G.hash.replace(J,"#")));if(W&&T9(Z,G))G.$ref.$ref=W+U;else G.$ref.$ref=U}else if(Q=G.file,J=G.hash,Y=G.pathFromRoot,G.$ref=G.parent[G.key]=s.dereference(G.$ref,G.value,X),G.circular)G.$ref.$ref=G.pathFromRoot}}function M4(Z,X,W){for(let Q of Z)if(Q&&Q.parent===X&&Q.key===W)return Q;return}function $4(Z,X){let W=Z.indexOf(X);Z.splice(W,1)}function D4(Z,X){for(let W of Z){if(!W.$ref||typeof W.$ref!=="object"||!("$ref"in W.$ref))continue;let Q=W.$ref.$ref;if(typeof Q!=="string"||!Q.startsWith("#/"))continue;let J=L4(X,Q);if(J!==Q)W.$ref.$ref=J}}function L4(Z,X){if(!X.startsWith("#/"))return X;let W=X.slice(2).split("/"),Q=Z,J=[];for(let G of W){if(Q===null||Q===void 0||typeof Q!=="object")return X;if("$ref"in Q&&typeof Q.$ref==="string"&&Q.$ref.startsWith("#/")){let q=Q.$ref.slice(2).split("/");if(J.length=0,J.push(...q),Q=A4(Z,Q.$ref),Q===null||Q===void 0||typeof Q!=="object")return X}let V=G.replace(/~1/g,"/").replace(/~0/g,"~"),U=Array.isArray(Q)?parseInt(V):V;Q=Q[U],J.push(G)}return"#/"+J.join("/")}function A4(Z,X){if(!X.startsWith("#/"))return;let W=X.slice(2).split("/"),Q=Z;for(let J of W){if(Q===null||Q===void 0||typeof Q!=="object")return;let Y=J.replace(/~1/g,"/").replace(/~0/g,"~"),G=Array.isArray(Q)?parseInt(Y):Y;Q=Q[G]}return Q}function T9(Z,X){for(let W of Z){if(W.pathFromRoot==="#"||W.pathFromRoot==="#/")continue;if(X.pathFromRoot.startsWith(W.pathFromRoot+"/")){if(W.value&&typeof W.value==="object"&&"$id"in W.value)return!0}}return!1}var R9;var C9=p(()=>{V0();w0();Y2();r2();R9=B4});function O4(Z,X){let W=Date.now(),Q=Z.$refs._root$Ref.dynamicIdScope?z2(Z.$refs._root$Ref.path,Z.schema):Z.$refs._root$Ref.path,J=l1(Z.schema,Z.$refs._root$Ref.path,Q,Z.$refs._root$Ref.dynamicIdScope,"#",new Set,new Set,new Map,Z.$refs,X,W,0);Z.$refs.circular=J.circular,Z.schema=J.value}function l1(Z,X,W,Q,J,Y,G,V,U,q,H,F){let B,M={value:Z,circular:!1};j9(H,q);let L=q.dereference||{},E=L.maxDepth??500;if(F>E)throw RangeError(`Maximum dereference depth (${E}) exceeded at ${J}. This likely indicates an extremely deep or recursive schema. You can increase this limit with the dereference.maxDepth option.`);let C=L.excludedPathMatcher||(()=>!1);if(L?.circular==="ignore"||!G.has(Z)){if(Z&&typeof Z==="object"&&!ArrayBuffer.isView(Z)&&!C(J)){Y.add(Z),G.add(Z);let _=W;if(s.isAllowed$Ref(Z,q))B=N9(Z,X,_,Q,J,Y,G,V,U,q,H,F),M.circular=B.circular,M.value=B.value;else for(let x of Object.keys(Z)){j9(H,q);let y=q2.join(X,x),u=q2.join(J,x);if(C(u))continue;let f=Z[x],h=Q&&f&&typeof f==="object"&&!ArrayBuffer.isView(f)?z2(_,f):_,b;if(s.isAllowed$Ref(f,q)){if(B=N9(f,y,h,Q,u,Y,G,V,U,q,H,F),b=B.circular,Z[x]!==B.value){let l=new Map;if(L?.preservedProperties){if(typeof Z[x]==="object"&&!Array.isArray(Z[x]))L?.preservedProperties.forEach((B2)=>{if(B2 in Z[x])l.set(B2,Z[x][B2])})}let Q2=B.value;if(L?.cloneReferences&&!b&&Q2&&typeof Q2==="object")Q2=structuredClone(Q2);if(Z[x]=Q2,L?.preservedProperties){if(l.size&&typeof Z[x]==="object"&&!Array.isArray(Z[x]))l.forEach((B2,d2)=>{Z[x][d2]=B2})}L?.onDereference?.(f.$ref,Z[x],Z,x)}}else if(!Y.has(f)){if(B=l1(f,y,h,Q,u,Y,G,V,U,q,H,F+1),b=B.circular,Z[x]!==B.value)Z[x]=B.value}else b=G1(y,U,q);M.circular=M.circular||b}Y.delete(Z)}}return M}function N9(Z,X,W,Q,J,Y,G,V,U,q,H,F){let L=s.isExternal$Ref(Z)&&q?.dereference?.externalReferenceResolution==="root"?o2():Q?W:X,E=e(L,Z.$ref),C=V.get(E);if(C){if(!C.circular){let h=Object.keys(Z);if(h.length>1){let b={};for(let l of h)if(l!=="$ref"&&!(l in C.value))b[l]=Z[l];return{circular:C.circular,value:Object.assign({},C.value,b)}}return C}if(typeof C.value==="object"&&"$ref"in C.value&&"$ref"in Z){if(C.value.$ref===Z.$ref)return G1(X,U,q),C}else return G1(X,U,q),C}let _=U._resolve(E,X,q);if(_===null)return{circular:!1,value:null};let x=_.circular,y=x||Y.has(_.value);if(y)G1(X,U,q);let u=s.dereference(Z,_.value,q);if(!y){let h=l1(u,_.path,_.$ref.path,_.$ref.dynamicIdScope,J,Y,G,V,U,q,H,F+1);y=h.circular,u=h.value}if(y&&!x&&q.dereference?.circular==="ignore")u=Z;if(x)u.$ref=J;let f={circular:y,value:u};if(Object.keys(Z).length===1)V.set(E,f);return f}function j9(Z,X){if(X&&X.timeoutMs){if(Date.now()-Z>X.timeoutMs)throw new _1(X.timeoutMs)}}function G1(Z,X,W){if(X.circular=!0,W?.dereference?.onCircular?.(Z),!W.dereference.circular)throw ReferenceError(`Circular $ref pointer found at ${Z}`);return!0}var _9;var P9=p(()=>{V0();w0();Y2();r2();D2();_9=O4});function I4(){if(typeof process==="object"&&typeof process.nextTick==="function")return process.nextTick;else if(typeof setImmediate==="function")return setImmediate;else return function(X){setTimeout(X,0)}}var i1;var x9=p(()=>{i1=I4()});function F2(Z,X){if(Z){X.then(function(W){i1(function(){Z(null,W)})},function(W){i1(function(){Z(W)})});return}else return X}var E9=p(()=>{x9()});class g2{schema=null;$refs=new R0;async parse(){let Z=j0(arguments),X;if(!Z.path&&!Z.schema){let Q=Error(`Expected a file path, URL, or object. Got ${Z.path||Z.schema}`);return F2(Z.callback,Promise.reject(Q))}this.schema=null,this.$refs=new R0;let W="http";if(r0(Z.path))Z.path=E8(Z.path),W="file";else if(!Z.path&&Z.schema&&"$id"in Z.schema&&Z.schema.$id){let Q=Y0(Z.schema.$id),J=Q.port??(Q.protocol==="https:"?443:80);Z.path=`${Q.protocol}//${Q.hostname}:${J}`}if(Z.path=e(o2(),Z.path),Z.schema&&typeof Z.schema==="object"){let Q=this.$refs._add(Z.path);Q.value=Z.schema,Q.pathType=W,Q.dynamicIdScope=Z1(Q.value),X1(this.$refs,Q.path,Q.value,Q.pathType,Q.dynamicIdScope),X=Promise.resolve(Z.schema)}else X=Q1(Z.path,this.$refs,Z.options);try{let Q=await X;if(Q!==null&&typeof Q==="object"&&!Buffer.isBuffer(Q))return this.schema=Q,F2(Z.callback,Promise.resolve(this.schema));else if(Z.options.continueOnError)return this.schema=null,F2(Z.callback,Promise.resolve(this.schema));else throw SyntaxError(`"${this.$refs._root$Ref.path||Q}" is not a valid JSON Schema`)}catch(Q){if(!Z.options.continueOnError||!C2(Q))return F2(Z.callback,Promise.reject(Q));if(this.$refs._$refs[a(Z.path)])this.$refs._$refs[a(Z.path)].addError(Q);return F2(Z.callback,Promise.resolve(null))}}static parse(){let Z=new g2;return Z.parse.apply(Z,arguments)}async resolve(){let Z=j0(arguments);try{return await this.parse(Z.path,Z.schema,Z.options),await O9(this,Z.options),n1(this),F2(Z.callback,Promise.resolve(this.$refs))}catch(X){return F2(Z.callback,Promise.reject(X))}}static resolve(){let Z=new g2;return Z.resolve.apply(Z,arguments)}static bundle(){let Z=new g2;return Z.bundle.apply(Z,arguments)}async bundle(){let Z=j0(arguments);try{return await this.resolve(Z.path,Z.schema,Z.options),R9(this,Z.options),n1(this),F2(Z.callback,Promise.resolve(this.schema))}catch(X){return F2(Z.callback,Promise.reject(X))}}static dereference(){let Z=new g2;return Z.dereference.apply(Z,arguments)}async dereference(){let Z=j0(arguments);try{return await this.resolve(Z.path,Z.schema,Z.options),_9(this,Z.options),n1(this),F2(Z.callback,Promise.resolve(this.schema))}catch(X){return F2(Z.callback,Promise.reject(X))}}}function n1(Z){if(U0.getParserErrors(Z).length>0)throw new U0(Z)}var rZ,sZ,aZ,S9;var k9=p(()=>{h8();b1();A9();I9();C9();P9();Y2();m1();f1();D2();E9();r2();c1();Y2();rZ=g2.parse,sZ=g2.resolve,aZ=g2.bundle,S9=g2.dereference});async function o1(Z,X={}){let{baseUrl:W="/_jx/server"}=X,Q=await S9(Z),J=I8(Q);if(J.length===0)return null;let Y=J.map(({exportName:V,src:U})=>`import { ${V} } from '${U}'`).join(`
55
+ `),G=J.map(({exportName:V})=>b9(V,W)).join(`
55
56
  `);return`// Generated by @jxsuite/compiler — do not edit manually
56
57
  // Deploy as a Cloudflare Worker, Node server, or Bun process.
57
58
  // Requires: npm install hono
58
59
 
59
60
  import { Hono } from 'hono'
60
- ${Q}
61
+ ${Y}
61
62
 
62
63
  const app = new Hono()
63
- ${W}
64
+ ${G}
64
65
 
65
66
  export default app
66
- `}function P3(Z,X={}){let{baseUrl:z="/_jx/server",adapter:q=null}=X;if(Z.length===0&&!q)return null;let G=Z.map(({exportName:Y,src:J})=>`import { ${Y} } from '${J}'`).join(`
67
- `),Q=Z.map(({exportName:Y})=>hZ(Y,z)).join(`
67
+ `}function w4(Z,X={}){let{baseUrl:W="/_jx/server",adapter:Q=null}=X;if(Z.length===0&&!Q)return null;let J=Z.map(({exportName:V,src:U})=>`import { ${V} } from '${U}'`).join(`
68
+ `),Y=Z.map(({exportName:V})=>b9(V,W)).join(`
68
69
  `);return`// Generated by @jxsuite/compiler — do not edit manually
69
70
  import { Hono } from 'hono'
70
- ${G}
71
+ ${J}
71
72
 
72
73
  const app = new Hono()
73
- ${Q}
74
- ${q==="cloudflare-workers"||q==="cloudflare-pages"?`
74
+ ${Y}
75
+ ${Q==="cloudflare-workers"||Q==="cloudflare-pages"?`
75
76
  app.all('*', (c) => c.env.ASSETS.fetch(c.req.raw))
76
77
  `:`
77
78
  `}
78
79
  export default app
79
- `}function hZ(Z,X){return`
80
+ `}function b9(Z,X){return`
80
81
  app.post('${X}/${Z}', async (c) => {
81
82
  const args = await c.req.json().catch(() => ({}))
82
83
  try {
@@ -84,115 +85,120 @@ app.post('${X}/${Z}', async (c) => {
84
85
  } catch (e) {
85
86
  return c.json({ ok: false, error: e?.message ?? 'Server error' }, 500)
86
87
  }
87
- })`}var uZ=T(()=>{yZ();b0()});function x3(Z){return Z instanceof Error?Z.message:String(Z)}function C8(Z,X,z){let q;try{q=JSON.parse(Z)}catch(G){throw Error(`Failed to parse ${z} at ${X}: ${x3(G)}`,{cause:G})}if(!p(q))throw Error(`Invalid ${z} at ${X}: expected a JSON object`);return q}function _1(Z,X){return C8(Z,X,"Jx document")}function sX(Z,X){return C8(Z,X,"project config")}function aX(Z,X){return C8(Z,X,"class definition")}var R8=T(()=>{$0()});class pZ{name;classPath;classDef;extensions;mediaType;documentKinds;exportTarget;remote;studio;capabilities;#Z;#X=null;constructor(Z,X,z,q){this.name=Z,this.classPath=X,this.classDef=z,this.#Z=q;let G=z.format;this.extensions=(G.extensions??[]).map((Q)=>Q.toLowerCase()),this.mediaType=G.mediaType??null,this.documentKinds=G.documentKinds??[],this.exportTarget=G.exportTarget===!0,this.remote=G.remote===!0,this.studio=z.$studio??null,this.capabilities=S3(z)}implementation(){if(!this.#X){let Z=this.classDef.$implementation;if(!Z)return Promise.reject(Error(`Format class "${this.name}" has no $implementation to import`));this.#X=this.#Z.importModule(this.#Z.resolvePath(this.classPath,Z))}return this.#X}async call(Z,...X){let z=this.capabilities[Z];if(!z)throw Error(`Format class "${this.name}" does not declare a "${Z}" capability`);let q=await this.implementation(),G=this.classDef.title??this.name,Q=q[G]??q.default?.[G]??q.default,W=Q?.[z.identifier];if(typeof W!=="function")throw TypeError(`Format class "${this.name}": implementation export "${G}" has no static "${z.identifier}" method`);return await W.call(Q,...X)}}class dZ{#Z;constructor(Z){this.#Z=Z;for(let X of cZ){let z=new Map;for(let q of Z){if(!q.capabilities[X])continue;for(let G of q.extensions){let Q=z.get(G);if(Q)throw Error(`Format conflict: "${Q.name}" and "${q.name}" both claim "${G}" with the "${X}" capability`);z.set(G,q)}}}}get entries(){return this.#Z}byExtension(Z,X){let z=fZ(Z);return this.#Z.find((q)=>q.extensions.includes(z)&&(!X||q.capabilities[X]))}byName(Z){return this.#Z.find((X)=>X.name===Z)}withCapability(Z){return this.#Z.filter((X)=>X.capabilities[Z])}documentExtensions(Z){let X=new Set;for(let z of this.#Z){if(Z&&!z.documentKinds.includes(Z))continue;for(let q of z.extensions)X.add(q)}return X.delete(".json"),[...X]}has(Z){let X=fZ(Z);return this.#Z.some((z)=>z.extensions.includes(X))}}async function lZ(Z,X,z){let q=[];for(let[G,Q]of Object.entries(Z??{})){if(typeof Q!=="string"||!Q.endsWith(".class.json"))continue;let W,Y;try{W=z?X.resolvePath(z,Q):Q,Y=await X.loadJson(W)}catch{continue}if(!Y||typeof Y!=="object")continue;if(!Y.format||!Array.isArray(Y.format.extensions))continue;q.push(new pZ(G,W,Y,X))}return new dZ(q)}function S3(Z){let X={},z=Z.$defs?.methods??{};for(let[q,G]of Object.entries(z)){let Q=G.role;if(!Q||!cZ.includes(Q))continue;X[Q]={identifier:G.identifier??q,timing:G.timing??E3}}return X}function fZ(Z){let X=Z.toLowerCase();return X.startsWith(".")?X:`.${X}`}var cZ,E3;var iZ=T(()=>{cZ=["parse","serialize","discover","load"],E3=["compiler","server"]});var j8={};k8(j8,{unknownFormatError:()=>m3,importImplementation:()=>oZ,createNodeFormatIO:()=>rZ,buildProjectFormatRegistry:()=>y3});import{readFileSync as k3}from"node:fs";import{dirname as b3,isAbsolute as g3,resolve as N8,sep as P1}from"node:path";import{pathToFileURL as v3}from"node:url";import{createRequire as nZ}from"node:module";async function oZ(Z){let X=[Z],z=`${P1}src${P1}`,q=`${P1}dist${P1}`;if(Z.includes(z))X.push(Z.replace(z,q));if(Z.endsWith(".js"))X.push(`${Z.slice(0,-3)}.ts`);let G;for(let Q of X)try{return await import(v3(Q).href)}catch(W){G=W}throw G instanceof Error?G:Error(String(G))}function rZ(Z){return{importModule:(X)=>oZ(X),loadJson:async(X)=>JSON.parse(k3(X,"utf8")),resolvePath:(X,z)=>{if(z.startsWith("./")||z.startsWith("../"))return N8(b3(X),z);if(g3(z))return z;let q=nZ(N8(Z,"package.json"));try{return q.resolve(z)}catch{return nZ(import.meta.url).resolve(z)}}}}async function y3(Z,X){return lZ(X?.imports,rZ(Z),N8(Z,"project.json"))}function m3(Z,X){return Error(`No format class imported for "${X}" (${Z}). Add a format class to project.json imports, e.g. "Markdown": "@jxsuite/parser/Markdown.class.json".`)}var _8=T(()=>{iZ()});async function sZ(Z,X={}){let{resolveElementPath:z,$media:q,formats:G}=X,Q=[],W=new Set;async function Y(J,U){let K,V;if(typeof J==="string"){let{readFileSync:w}=await import("node:fs"),{resolve:R}=await import("node:path");if(V=U?R(U,J):R(J),W.has(V))return;if(W.add(V),V.endsWith(".json"))K=_1(w(V,"utf8"),V);else{let{extname:N}=await import("node:path"),O=N(V).toLowerCase(),I=G?.byExtension?.(O,"parse");if(!I){let{unknownFormatError:P}=await Promise.resolve().then(() => (_8(),j8));throw P(V,O)}K=await I.call("parse",w(V,"utf8"))}}else{if(K=J,V=null,K.tagName&&W.has(K.tagName))return;if(K.tagName)W.add(K.tagName)}let{tagName:M}=K;if(!M||!M.includes("-"))throw Error(`compileElement: tagName "${M}" must contain a hyphen`);let{dirname:H}=await import("node:path"),F=V?H(V):null,A=[];if(Array.isArray(K.$elements))for(let w of K.$elements){let R=t(w)?w.$ref:w;if(typeof R!=="string")continue;if(F)await Y(R,F);let N=z?z(R,F):R.replace(/\.json$/,".js");A.push(N)}let B=K1(M);if(q)K.$media={...q,...K.$media};let D=G1(K,B,A),$=V?V.replace(/\.json$/,".js"):`${M}.js`;Q.push({content:D,path:$,tagName:M})}return await Y(Z,X.basePath??null),{files:Q}}async function h3(Z,X={}){let{title:z="Jx App",reactivitySrc:q="https://esm.sh/@vue/reactivity@3.5.13",litHtmlSrc:G="https://esm.sh/lit-html@3.3.0"}=X,Q=await sZ(Z,X),W=Q.files.at(-1);if(!W)throw Error("compileElementPage: no element modules were produced");let{basename:Y}=await import("node:path"),J=Y(W.path),U=`<!DOCTYPE html>
88
+ })`}var r1=p(()=>{k9();n2()});function T4(Z){return Z instanceof Error?Z.message:String(Z)}function s1(Z,X,W){let Q;try{Q=JSON.parse(Z)}catch(J){throw Error(`Failed to parse ${W} at ${X}: ${T4(J)}`,{cause:J})}if(!K2(Q))throw Error(`Invalid ${W} at ${X}: expected a JSON object`);return Q}function J1(Z,X){return s1(Z,X,"Jx document")}function W7(Z,X){return s1(Z,X,"project config")}function Q7(Z,X){return s1(Z,X,"class definition")}var a1=p(()=>{f2()});class y9{name;classPath;classDef;extensions;mediaType;documentKinds;exportTarget;remote;studio;capabilities;#Z;#X=null;constructor(Z,X,W,Q){this.name=Z,this.classPath=X,this.classDef=W,this.#Z=Q;let J=W.format;this.extensions=(J.extensions??[]).map((Y)=>Y.toLowerCase()),this.mediaType=J.mediaType??null,this.documentKinds=J.documentKinds??[],this.exportTarget=J.exportTarget===!0,this.remote=J.remote===!0,this.studio=W.$studio??null,this.capabilities=C4(W)}implementation(){if(!this.#X){let Z=this.classDef.$implementation;if(!Z)return Promise.reject(Error(`Format class "${this.name}" has no $implementation to import`));this.#X=this.#Z.importModule(this.#Z.resolvePath(this.classPath,Z))}return this.#X}async call(Z,...X){let W=this.capabilities[Z];if(!W)throw Error(`Format class "${this.name}" does not declare a "${Z}" capability`);let Q=await this.implementation(),J=this.classDef.title??this.name,Y=Q[J]??Q.default?.[J]??Q.default,G=Y?.[W.identifier];if(typeof G!=="function")throw TypeError(`Format class "${this.name}": implementation export "${J}" has no static "${W.identifier}" method`);return await G.call(Y,...X)}}class h9{#Z;constructor(Z){this.#Z=Z;for(let X of v9){let W=new Map;for(let Q of Z){if(!Q.capabilities[X])continue;for(let J of Q.extensions){let Y=W.get(J);if(Y)throw Error(`Format conflict: "${Y.name}" and "${Q.name}" both claim "${J}" with the "${X}" capability`);W.set(J,Q)}}}}get entries(){return this.#Z}byExtension(Z,X){let W=g9(Z);return this.#Z.find((Q)=>Q.extensions.includes(W)&&(!X||Q.capabilities[X]))}byName(Z){return this.#Z.find((X)=>X.name===Z)}withCapability(Z){return this.#Z.filter((X)=>X.capabilities[Z])}documentExtensions(Z){let X=new Set;for(let W of this.#Z){if(Z&&!W.documentKinds.includes(Z))continue;for(let Q of W.extensions)X.add(Q)}return X.delete(".json"),[...X]}has(Z){let X=g9(Z);return this.#Z.some((W)=>W.extensions.includes(X))}}async function m9(Z,X,W){let Q=[];for(let[J,Y]of Object.entries(Z??{})){if(typeof Y!=="string"||!Y.endsWith(".class.json"))continue;let G,V;try{G=W?X.resolvePath(W,Y):Y,V=await X.loadJson(G)}catch{continue}if(!V||typeof V!=="object")continue;if(!V.format||!Array.isArray(V.format.extensions))continue;Q.push(new y9(J,G,V,X))}return new h9(Q)}function C4(Z){let X={},W=Z.$defs?.methods??{};for(let[Q,J]of Object.entries(W)){let Y=J.role;if(!Y||!v9.includes(Y))continue;X[Y]={identifier:J.identifier??Q,timing:J.timing??R4}}return X}function g9(Z){let X=Z.toLowerCase();return X.startsWith(".")?X:`.${X}`}var v9,R4;var u9=p(()=>{v9=["parse","serialize","discover","load"],R4=["compiler","server"]});var e1={};q8(e1,{unknownFormatError:()=>E4,importImplementation:()=>c9,createNodeFormatIO:()=>p9,buildProjectFormatRegistry:()=>x4});import{readFileSync as N4}from"node:fs";import{dirname as j4,isAbsolute as _4,resolve as t1,sep as Y1}from"node:path";import{pathToFileURL as P4}from"node:url";import{createRequire as f9}from"node:module";async function c9(Z){let X=[Z],W=`${Y1}src${Y1}`,Q=`${Y1}dist${Y1}`;if(Z.includes(W))X.push(Z.replace(W,Q));if(Z.endsWith(".js"))X.push(`${Z.slice(0,-3)}.ts`);let J;for(let Y of X)try{return await import(P4(Y).href)}catch(G){J=G}throw J instanceof Error?J:Error(String(J))}function p9(Z){return{importModule:(X)=>c9(X),loadJson:async(X)=>JSON.parse(N4(X,"utf8")),resolvePath:(X,W)=>{if(W.startsWith("./")||W.startsWith("../"))return t1(j4(X),W);if(_4(W))return W;let Q=f9(t1(Z,"package.json"));try{return Q.resolve(W)}catch{return f9(import.meta.url).resolve(W)}}}}async function x4(Z,X){return m9(X?.imports,p9(Z),t1(Z,"project.json"))}function E4(Z,X){return Error(`No format class imported for "${X}" (${Z}). Add a format class to project.json imports, e.g. "Markdown": "@jxsuite/parser/Markdown.class.json".`)}var Z8=p(()=>{u9()});async function l9(Z,X={}){let{resolveElementPath:W,$media:Q,formats:J}=X,Y=[],G=new Set;async function V(U,q){let H,F;if(typeof U==="string"){let{readFileSync:y}=await import("node:fs"),{resolve:u}=await import("node:path");if(F=q?u(q,U):u(U),G.has(F))return;if(G.add(F),F.endsWith(".json"))H=J1(y(F,"utf8"),F);else{let{extname:f}=await import("node:path"),h=f(F).toLowerCase(),b=J?.byExtension?.(h,"parse");if(!b){let{unknownFormatError:l}=await Promise.resolve().then(() => (Z8(),e1));throw l(F,h)}H=await b.call("parse",y(F,"utf8"))}}else{if(H=U,F=null,H.tagName&&G.has(H.tagName))return;if(H.tagName)G.add(H.tagName)}let{tagName:B}=H;if(!B||!B.includes("-"))throw Error(`compileElement: tagName "${B}" must contain a hyphen`);let{dirname:M}=await import("node:path"),L=F?M(F):null,E=[];if(Array.isArray(H.$elements))for(let y of H.$elements){let u=A2(y)?y.$ref:y;if(typeof u!=="string")continue;if(L)await V(u,L);let f=W?W(u,L):u.replace(/\.json$/,".js");E.push(f)}let C=n0(B);if(Q)H.$media={...Q,...H.$media};let _=_0(H,C,E),x=F?F.replace(/\.json$/,".js"):`${B}.js`;Y.push({content:_,path:x,tagName:B})}return await V(Z,X.basePath??null),{files:Y}}async function S4(Z,X={}){let{title:W="Jx App",reactivitySrc:Q="https://esm.sh/@vue/reactivity@3.5.13",litHtmlSrc:J="https://esm.sh/lit-html@3.3.0"}=X,Y=await l9(Z,X),G=Y.files.at(-1);if(!G)throw Error("compileElementPage: no element modules were produced");let{basename:V}=await import("node:path"),U=V(G.path),q=`<!DOCTYPE html>
88
89
  <html lang="en">
89
90
  <head>
90
91
  <meta charset="utf-8">
91
92
  <meta name="viewport" content="width=device-width, initial-scale=1">
92
- <title>${C(z)}</title>
93
+ <title>${d(W)}</title>
93
94
  <script type="importmap">
94
95
  {
95
96
  "imports": {
96
- "@vue/reactivity": "${q}",
97
- "lit-html": "${G}"
97
+ "@vue/reactivity": "${Q}",
98
+ "lit-html": "${J}"
98
99
  }
99
100
  }
100
101
  </script>
101
102
  </head>
102
103
  <body>
103
- <${W.tagName}></${W.tagName}>
104
- <script type="module" src="./${J}"></script>
104
+ <${G.tagName}></${G.tagName}>
105
+ <script type="module" src="./${U}"></script>
105
106
  </body>
106
- </html>`;return{files:Q.files,html:U}}function u3(Z){if(Z===null||typeof Z!=="object"||Array.isArray(Z))return JSON.stringify(Z);if("default"in Z)return JSON.stringify(Z.default);if(F0(Z))return;if(Z.$prototype==="LocalStorage"||Z.$prototype==="SessionStorage")return JSON.stringify(Z.default??null);if(Z.$prototype==="Request")return"null";return JSON.stringify(Z)}function G1(Z,X,z){let q=["// Generated by @jxsuite/compiler — do not edit manually"];if(Z.$id)q.push(`// Source: ${Z.$id}`);for(let V of z)q.push(`import '${V}';`);let G=new Map,Q=Z.state??{};for(let[V,M]of Object.entries(Q)){let H=M;if(H&&typeof H==="object"&&!Array.isArray(H)&&H.$prototype==="Function"&&H.$src){let F=H.$src;if(!G.has(F))G.set(F,[]);G.get(F).push(V)}}for(let[V,M]of G)q.push(`import { ${M.join(", ")} } from '${V}';`);q.push("import { reactive, computed, effect } from '@vue/reactivity';"),q.push("import { render, html } from 'lit-html';"),q.push(""),q.push(`class ${X} extends HTMLElement {`),q.push(" #dispose = null;"),q.push(""),q.push(" constructor() {"),q.push(" super();");let W=[],Y=[],J=[];for(let[V,M]of Object.entries(Q)){let H=M;if(e(H)){let F=H.$expression;if(w0(F.operator))J.push([V,H]);else Y.push([V,H])}else if(Y0(H))if(typeof H.body==="string"&&H.body.includes("return"))Y.push([V,H]);else J.push([V,H]);else{let F=u3(H);if(F!==void 0)W.push([V,F])}}q.push(" this.state = reactive({");for(let[V,M]of W)q.push(` ${V}: ${M},`);q.push(" });");for(let[V,M]of J)if(q.push(""),e(M)){let H=n(M.$expression,{eventParam:"e",statePrefix:"s"});q.push(` this.state.${V} = (s, e) => { ${H}; };`)}else{let F=(M.parameters?B0(M.parameters):M.arguments??["state"]).join(", ");if(M.$src)q.push(` this.state.${V} = (${F}) => ${V}(${F});`);else q.push(` this.state.${V} = (${F}) => {`),q.push(` ${M.body??""}`),q.push(" };")}for(let[V,M]of Y)if(q.push(""),e(M)){let H=n(M.$expression,{eventParam:"e",statePrefix:"this.state"});q.push(` this.state.${V} = computed(() => ${H});`)}else if(M.$src)q.push(` this.state.${V} = computed(() => ${V}(this.state));`);else{q.push(` this.state.${V} = computed(() => {`);let H=(M.body??"").replaceAll("state.","this.state.");q.push(` ${H}`),q.push(" });")}q.push(" }"),q.push("");let U=[];if(Array.isArray(Z.children)){let V={n:0};for(let M of Z.children)E0(M,U,Z.$media??{},"",V,Z.tagName)}if(q.push(" template() {"),q.push(" const s = this.state;"),q.push(" return html`"),q.push(x8(Z.children,Z.style," ")),q.push(" `;"),q.push(" }"),q.push(""),q.push(" connectedCallback() {"),q.push(" const _pa = this.getAttribute('data-jx-props');"),q.push(" if (_pa) {"),q.push(" try {"),q.push(" const _p = JSON.parse(_pa);"),q.push(" for (const [k, v] of Object.entries(_p)) {"),q.push(" if (k in this.state) this.state[k] = v;"),q.push(" }"),q.push(" } catch {}"),q.push(" this.removeAttribute('data-jx-props');"),q.push(" }"),q.push(" for (const key of Object.keys(this.state)) {"),q.push(" if (this.hasOwnProperty(key) && this[key] !== undefined) {"),q.push(" this.state[key] = this[key];"),q.push(" }"),q.push(" }"),Z.style&&typeof Z.style==="object"){let V=[];for(let[M,H]of Object.entries(Z.style)){if(M.startsWith(":")||M.startsWith(".")||M.startsWith("&")||M.startsWith("[")||M.startsWith("@"))continue;if(H===null||typeof H==="object")continue;let F=d(M);if(typeof H==="string"&&H.includes("${"))V.push([F,H])}if(V.length>0){q.push(" effect(() => {");for(let[M,H]of V){let F=H.replaceAll(/\$\{([^}]+)\}/g,(A,B)=>`\${${B.replaceAll("state.","this.state.")}}`);q.push(` this.style['${M}'] = \`${F}\`;`)}q.push(" });")}}let K=eZ(Z.children);if(K)q.push(" const _slotted = Array.from(this.childNodes).filter(n => n.nodeType === 1 || (n.nodeType === 3 && n.textContent.trim()));");if(q.push(" if (this.hasAttribute('data-jx-prerendered')) {"),q.push(" this.removeAttribute('data-jx-prerendered');"),q.push(" }"),q.push(" this.innerHTML = '';"),q.push(" this.#dispose = effect(() => render(this.template(), this));"),K)q.push(" const _slot = this.querySelector('slot');"),q.push(" if (_slot && _slotted.length > 0) {"),q.push(" for (const n of _slotted) _slot.before(n);"),q.push(" _slot.remove();"),q.push(" }");return q.push(" }"),q.push(""),q.push(" disconnectedCallback() {"),q.push(" if (this.#dispose) { this.#dispose(); this.#dispose = null; }"),q.push(" }"),q.push("}"),q.push(""),q.push(`customElements.define('${Z.tagName}', ${X});`),q.push(""),q.join(`
107
- `)}function x8(Z,X,z){if(!Z)return"";if(i0(Z))return f3(Z,z);if(!Array.isArray(Z))return"";return Z.map((q)=>aZ(q,z)).join(`
108
- `)}function aZ(Z,X){if(typeof Z==="string"){if(Z.includes("${"))return`${X}${P8(Z)}`;return`${X}${C(Z)}`}if(typeof Z==="number"||typeof Z==="boolean")return`${X}${C(String(Z))}`;if(!Z||typeof Z!=="object")return"";let z=Z.tagName??"div",q=[];if(Z.attributes)for(let[J,U]of Object.entries(Z.attributes))if(U&&typeof U==="object"&&t(U))q.push(`${J}="\${${M0(U.$ref)}}"`);else if(typeof U==="string"&&U.includes("${"))q.push(`${J}="${x1(U)}"`);else q.push(`${J}="${U}"`);if(Z.id)q.push(`id="${Z.id}"`);if(Z.className)q.push(`class="${Z.className}"`);for(let[J,U]of Object.entries(Z)){if(O0.has(J)||J.startsWith("$")||J.startsWith("on")||J==="tagName"||J==="id"||J==="className"||J==="style"||J==="children"||J==="textContent"||J==="innerHTML"||J==="attributes")continue;if(U&&typeof U==="object"&&U.$ref)q.push(`.${J}="\${${M0(U.$ref)}}"`);else if(typeof U==="string"&&U.includes("${"))q.push(`.${J}="${x1(U)}"`)}if(Z.$props)for(let[J,U]of Object.entries(Z.$props))if(U&&typeof U==="object"&&U.$ref)q.push(`.${J}="\${${M0(U.$ref)}}"`);else q.push(`.${J}="\${${JSON.stringify(U)}}"`);for(let[J,U]of Object.entries(Z)){if(!J.startsWith("on")||J==="observedAttributes")continue;let K=J.slice(2).toLowerCase();if(U&&typeof U==="object"&&U.$ref)q.push(`@${K}="\${(e) => ${M0(U.$ref)}(s, e)}"`);else if(U&&typeof U==="object"&&"$expression"in U){let V=n(U.$expression,{eventParam:"e",statePrefix:"s"});q.push(`@${K}="\${(e) => { ${V}; }}"`)}else if(Y0(U))q.push(`@${K}="\${(e) => { ${p3(U)} }}"`)}let G=tZ(Z.style);if(G)q.push(`style="${G}"`);let Q=q.length>0?`
109
- ${X} ${q.join(`
110
- ${X} `)}`:"";if(new Set(["input","br","hr","img","meta","link"]).has(z))return`${X}<${z}${Q}
111
- ${X}>`;let Y="";if(Z.$switch){let J=t(Z.$switch)?Z.$switch.$ref:Z.$switch,U=M0(J),K=Z.cases??{},V=[];for(let[M,H]of Object.entries(K)){if(!H||t(H))continue;let F=aZ(H,`${X} `);V.push(` ${JSON.stringify(M)}: html\`
112
- ${F}
113
- \``)}Y=`\${{
114
- ${V.join(`,
107
+ </html>`;return{files:Y.files,html:q}}function k4(Z){if(Z===null||typeof Z!=="object"||Array.isArray(Z))return JSON.stringify(Z);if("default"in Z)return JSON.stringify(Z.default);if(m2(Z))return;if(Z.$prototype==="LocalStorage"||Z.$prototype==="SessionStorage")return JSON.stringify(Z.default??null);if(Z.$prototype==="Request")return"null";return JSON.stringify(Z)}function _0(Z,X,W){let Q=["// Generated by @jxsuite/compiler — do not edit manually"];if(Z.$id)Q.push(`// Source: ${Z.$id}`);for(let F of W)Q.push(`import '${F}';`);let J=new Map,Y=Z.state??{};for(let[F,B]of Object.entries(Y)){let M=B;if(M&&typeof M==="object"&&!Array.isArray(M)&&M.$prototype==="Function"&&M.$src){let L=M.$src;if(!J.has(L))J.set(L,[]);J.get(L).push(F)}}for(let[F,B]of J)Q.push(`import { ${B.join(", ")} } from '${F}';`);Q.push("import { reactive, computed, effect } from '@vue/reactivity';","import { render, html } from 'lit-html';","",`class ${X} extends HTMLElement {`," #dispose = null;",""," constructor() {"," super();");let G=[],V=[],U=[];for(let[F,B]of Object.entries(Y)){let M=B;if(O2(M)){let L=M.$expression;if(h2(L.operator))U.push([F,M]);else V.push([F,M])}else if(k2(M))if(typeof M.body==="string"&&M.body.includes("return"))V.push([F,M]);else U.push([F,M]);else{let L=k4(M);if(L!==void 0)G.push([F,L])}}Q.push(" this.state = reactive({");for(let[F,B]of G)Q.push(` ${F}: ${B},`);Q.push(" });");for(let[F,B]of U)if(Q.push(""),O2(B)){let M=M2(B.$expression,{eventParam:"e",statePrefix:"s"});Q.push(` this.state.${F} = (s, e) => { ${M}; };`)}else{let L=(B.parameters?u2(B.parameters):B.arguments??["state"]).join(", ");if(B.$src)Q.push(` this.state.${F} = (${L}) => ${F}(${L});`);else Q.push(` this.state.${F} = (${L}) => {`,` ${B.body??""}`," };")}for(let[F,B]of V)if(Q.push(""),O2(B)){let M=M2(B.$expression,{eventParam:"e",statePrefix:"this.state"});Q.push(` this.state.${F} = computed(() => ${M});`)}else if(B.$src)Q.push(` this.state.${F} = computed(() => ${F}(this.state));`);else{Q.push(` this.state.${F} = computed(() => {`);let M=(B.body??"").replaceAll("state.","this.state.");Q.push(` ${M}`," });")}Q.push(" }","");let q=[];if(Array.isArray(Z.children)){let F={n:0};for(let B of Z.children)Q0(B,q,Z.$media??{},"",F,Z.tagName)}if(Q.push(" template() {"," const s = this.state;"," return html`",z8(Z.children,Z.style," ")," `;"," }",""," connectedCallback() {"," const _pa = this.getAttribute('data-jx-props');"," if (_pa) {"," try {"," const _p = JSON.parse(_pa);"," for (const [k, v] of Object.entries(_p)) {"," if (k in this.state) this.state[k] = v;"," }"," } catch {}"," this.removeAttribute('data-jx-props');"," }"," for (const key of Object.keys(this.state)) {"," if (this.hasOwnProperty(key) && this[key] !== undefined) {"," this.state[key] = this[key];"," }"," }"),Z.style&&typeof Z.style==="object"){let F=[];for(let[B,M]of Object.entries(Z.style)){if(B.startsWith(":")||B.startsWith(".")||B.startsWith("&")||B.startsWith("[")||B.startsWith("@"))continue;if(M===null||typeof M==="object")continue;let L=J2(B);if(typeof M==="string"&&M.includes("${"))F.push([L,M])}if(F.length>0){Q.push(" effect(() => {");for(let[B,M]of F){let L=M.replaceAll(/\$\{([^}]+)\}/g,(E,C)=>`\${${C.replaceAll("state.","this.state.")}}`);Q.push(` this.style['${B}'] = \`${L}\`;`)}Q.push(" });")}}let H=o9(Z.children);if(H)Q.push(" const _slotted = Array.from(this.childNodes).filter(n => n.nodeType === 1 || (n.nodeType === 3 && n.textContent.trim()));");if(Q.push(" if (this.hasAttribute('data-jx-prerendered')) {"," this.removeAttribute('data-jx-prerendered');"," }"," this.innerHTML = '';"," this.#dispose = effect(() => render(this.template(), this));"),H)Q.push(" const _slot = this.querySelector('slot');"," if (_slot && _slotted.length > 0) {"," for (const n of _slotted) _slot.before(n);"," _slot.remove();"," }");return Q.push(" }",""," disconnectedCallback() {"," if (this.#dispose) { this.#dispose(); this.#dispose = null; }"," }","}","",`customElements.define('${Z.tagName}', ${X});`,""),Q.join(`
108
+ `)}function z8(Z,X,W){if(!Z)return"";if(G2(Z))return d9(Z,W);if(!Array.isArray(Z))return"";return Z.map((Q)=>G2(Q)?d9(Q,W):i9(Q,W)).join(`
109
+ `)}function i9(Z,X){if(typeof Z==="string"){if(Z.includes("${"))return`${X}${X8(Z)}`;return`${X}${d(Z)}`}if(typeof Z==="number"||typeof Z==="boolean")return`${X}${d(String(Z))}`;if(!Z||typeof Z!=="object")return"";let W=Z.tagName??"div",Q=[];if(Z.attributes)for(let[U,q]of Object.entries(Z.attributes))if(q&&typeof q==="object"&&A2(q))Q.push(`${U}="\${${v2(q.$ref)}}"`);else if(typeof q==="string"&&q.includes("${"))Q.push(`${U}="${q1(q)}"`);else Q.push(`${U}="${q}"`);if(Z.id)Q.push(`id="${Z.id}"`);if(Z.className)Q.push(`class="${Z.className}"`);for(let[U,q]of Object.entries(Z)){if(c2.has(U)||U.startsWith("$")||U.startsWith("on")||U==="tagName"||U==="id"||U==="className"||U==="style"||U==="children"||U==="textContent"||U==="innerHTML"||U==="attributes")continue;if(q&&typeof q==="object"&&q.$ref)Q.push(`.${U}="\${${v2(q.$ref)}}"`);else if(typeof q==="string"&&q.includes("${"))Q.push(`.${U}="${q1(q)}"`)}if(Z.$props)for(let[U,q]of Object.entries(Z.$props))if(q&&typeof q==="object"&&q.$ref)Q.push(`.${U}="\${${v2(q.$ref)}}"`);else Q.push(`.${U}="\${${JSON.stringify(q)}}"`);for(let[U,q]of Object.entries(Z)){if(!U.startsWith("on")||U==="observedAttributes")continue;let H=U.slice(2).toLowerCase();if(q&&typeof q==="object"&&q.$ref)Q.push(`@${H}="\${(e) => ${v2(q.$ref)}(s, e)}"`);else if(q&&typeof q==="object"&&"$expression"in q){let F=M2(q.$expression,{eventParam:"e",statePrefix:"s"});Q.push(`@${H}="\${(e) => { ${F}; }}"`)}else if(k2(q))Q.push(`@${H}="\${(e) => { ${g4(q)} }}"`)}let J=n9(Z.style);if(J)Q.push(`style="${J}"`);let Y=Q.length>0?`
110
+ ${X} ${Q.join(`
111
+ ${X} `)}`:"";if(new Set(["input","br","hr","img","meta","link"]).has(W))return`${X}<${W}${Y}
112
+ ${X}>`;let V="";if(Z.$switch){let U=A2(Z.$switch)?Z.$switch.$ref:Z.$switch,q=v2(U),H=Z.cases??{},F=[];for(let[B,M]of Object.entries(H)){if(!M||A2(M))continue;let L=i9(M,`${X} `);F.push(` ${JSON.stringify(B)}: html\`
113
+ ${L}
114
+ \``)}V=`\${{
115
+ ${F.join(`,
115
116
  `)}
116
- }[${U}]}`}else if(Z.textContent!==void 0)Y=P8(Z.textContent);else if(Z.innerHTML!==void 0)Y=Z.innerHTML;else if(Z.children)Y=`
117
- ${x8(Z.children,Z.style,`${X} `)}
118
- ${X}`;return`${X}<${z}${Q}
119
- ${X}>${Y}</${z}>`}function f3(Z,X){let z=t(Z.items)?M0(Z.items.$ref):"ITEMS",q=Z.map;if(!q)return"";let G=q.tagName??"div",Q=[];if(q.$props)for(let[U,K]of Object.entries(q.$props))if(t(K))Q.push(`.${U}="\${${c3(K.$ref)}}"`);else Q.push(`.${U}="\${${JSON.stringify(K)}}"`);let W=tZ(q.style);if(W)Q.push(`style="${W}"`);for(let[U,K]of Object.entries(q)){if(!U.startsWith("on"))continue;let V=U.slice(2).toLowerCase();if(t(K))Q.push(`@${V}="\${(e) => ${M0(K.$ref)}(s, e)}"`);else if(e(K)){let M=n(K.$expression,{eventParam:"e",statePrefix:"s"});Q.push(`@${V}="\${(e) => { ${M}; }}"`)}}let Y=Q.length>0?`
120
- ${X} ${Q.join(`
121
- ${X} `)}`:"",J="";if(q.textContent!==void 0)J=P8(q.textContent);else if(q.children)J=`
122
- ${x8(q.children,null,`${X} `)}
123
- ${X} `;return`${X}\${${z}.map((item, index) => html\`
124
- ${X} <${G}${Y}
125
- ${X} >${J}</${G}>
126
- ${X}\`)}`}function M0(Z){if(Z.startsWith("#/state/"))return`s.${Z.slice(8).replaceAll("/",".")}`;if(Z.startsWith("$map/"))return Z.slice(5).replaceAll("/",".");return`s.${Z}`}function c3(Z){if(Z.startsWith("$map/"))return Z.slice(5).replaceAll("/",".");return M0(Z)}function x1(Z){return Z.replaceAll("state.","s.")}function P8(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.$ref==="string")return`\${${M0(Z.$ref)}}`;if(typeof Z==="string"&&Z.includes("${"))return x1(Z);return String(Z)}function p3(Z){return(Z.body??"").replaceAll(/(?<!this\.)state\./g,"s.").replaceAll(/(?<!this\.)state(?!\.)/g,"s")}function tZ(Z){if(!Z||typeof Z!=="object")return"";let X=[];for(let[z,q]of Object.entries(Z)){if(z.startsWith(":")||z.startsWith(".")||z.startsWith("&")||z.startsWith("[")||z.startsWith("@"))continue;if(q===null||typeof q==="object")continue;if(typeof q==="string"&&q.includes("${")){let G=d(z);X.push(`${G}: ${x1(q)}`)}}return X.join("; ")}function eZ(Z){if(!Array.isArray(Z))return!1;for(let X of Z){if(!X||typeof X!=="object")continue;if(X.tagName==="slot")return!0;if(eZ(X.children))return!0}return!1}var E8=T(()=>{W1();b0();$0();R8()});function Z6(Z,X){let{title:z="Jx App",reactivitySrc:q,litHtmlSrc:G}=X,Q=S0(Z,null,Z.state??{},Z.$media??{}),W=k0(Z,Z.$media??{},X.projectStyle??null),Y=[],J=X6(Z,!1,Z,Q,Y),U=[],K="",V="";if(Y.length>0){for(let H of Y){let F=G1(H.def,H.className,[]);U.push({content:F,path:`_islands/${H.tagName}.js`,tagName:H.tagName})}K=`<script type="importmap">
117
+ }[${q}]}`}else if(Z.textContent!==void 0)V=X8(Z.textContent);else if(Z.innerHTML!==void 0)V=Z.innerHTML;else if(Z.children)V=`
118
+ ${z8(Z.children,Z.style,`${X} `)}
119
+ ${X}`;return`${X}<${W}${Y}
120
+ ${X}>${V}</${W}>`}function d9(Z,X){let W=A2(Z.items)?v2(Z.items.$ref):"ITEMS",Q=Z.map;if(!Q)return"";let J=Q.tagName??"div",Y=[];if(Q.$props)for(let[q,H]of Object.entries(Q.$props))if(A2(H))Y.push(`.${q}="\${${b4(H.$ref)}}"`);else Y.push(`.${q}="\${${JSON.stringify(H)}}"`);let G=n9(Q.style);if(G)Y.push(`style="${G}"`);for(let[q,H]of Object.entries(Q)){if(!q.startsWith("on"))continue;let F=q.slice(2).toLowerCase();if(A2(H))Y.push(`@${F}="\${(e) => ${v2(H.$ref)}(s, e)}"`);else if(O2(H)){let B=M2(H.$expression,{eventParam:"e",statePrefix:"s"});Y.push(`@${F}="\${(e) => { ${B}; }}"`)}}let V=Y.length>0?`
121
+ ${X} ${Y.join(`
122
+ ${X} `)}`:"",U="";if(Q.textContent!==void 0)U=X8(Q.textContent);else if(Q.children)U=`
123
+ ${z8(Q.children,null,`${X} `)}
124
+ ${X} `;return`${X}\${${W}.map((item, index) => html\`
125
+ ${X} <${J}${V}
126
+ ${X} >${U}</${J}>
127
+ ${X}\`)}`}function v2(Z){if(Z.startsWith("#/state/"))return`s.${Z.slice(8).replaceAll("/",".")}`;if(Z.startsWith("$map/"))return Z.slice(5).replaceAll("/",".");return`s.${Z}`}function b4(Z){if(Z.startsWith("$map/"))return Z.slice(5).replaceAll("/",".");return v2(Z)}function q1(Z){return Z.replaceAll("state.","s.")}function X8(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.$ref==="string")return`\${${v2(Z.$ref)}}`;if(typeof Z==="string"&&Z.includes("${"))return q1(Z);return String(Z)}function g4(Z){return(Z.body??"").replaceAll(/(?<!this\.)state\./g,"s.").replaceAll(/(?<!this\.)state(?!\.)/g,"s")}function n9(Z){if(!Z||typeof Z!=="object")return"";let X=[];for(let[W,Q]of Object.entries(Z)){if(W.startsWith(":")||W.startsWith(".")||W.startsWith("&")||W.startsWith("[")||W.startsWith("@"))continue;if(Q===null||typeof Q==="object")continue;if(typeof Q==="string"&&Q.includes("${")){let J=J2(W);X.push(`${J}: ${q1(Q)}`)}}return X.join("; ")}function o9(Z){if(!Array.isArray(Z))return!1;for(let X of Z){if(!X||typeof X!=="object")continue;if(X.tagName==="slot")return!0;if(o9(X.children))return!0}return!1}var U1=p(()=>{A0();n2();f2();a1()});function r9(Z,X){let{title:W="Jx App",reactivitySrc:Q,litHtmlSrc:J}=X,Y=G0(Z,null,Z.state??{},Z.$media??{}),G=J0(Z,Z.$media??{},X.projectStyle??null),V=[],U=s9(Z,!1,Z,Y,V),q=[],H="",F="";if(V.length>0){for(let M of V){let L=_0(M.def,M.className,[]);q.push({content:L,path:`_islands/${M.tagName}.js`,tagName:M.tagName})}H=`<script type="importmap">
127
128
  {
128
129
  "imports": {
129
- "@vue/reactivity": "${q}",
130
- "lit-html": "${G}"
130
+ "@vue/reactivity": "${Q}",
131
+ "lit-html": "${J}"
131
132
  }
132
133
  }
133
- </script>`,V=U.map((H)=>`<script type="module" src="./${H.path}"></script>`).join(`
134
- `)}let M=`<!DOCTYPE html>
134
+ </script>`,F=q.map((M)=>`<script type="module" src="./${M.path}"></script>`).join(`
135
+ `)}let B=`<!DOCTYPE html>
135
136
  <html lang="en">
136
137
  <head>
137
138
  <meta charset="utf-8">
138
139
  <meta name="viewport" content="width=device-width, initial-scale=1">
139
- <title>${C(z)}</title>
140
- ${K}
141
- ${W}
140
+ <title>${d(W)}</title>
141
+ ${H}
142
+ ${G}
142
143
  </head>
143
144
  <body>
144
- ${J}
145
- ${V}
145
+ ${U}
146
+ ${F}
146
147
  </body>
147
- </html>`;return{files:U,html:M}}function X6(Z,X,z,q,G){if(typeof Z==="string")return C(Z);if(typeof Z==="number"||typeof Z==="boolean")return C(String(Z));if(!Z||typeof Z!=="object")return"";let Q=S0(z,q.scope,z?.state??q.scopeDefs,z?.$media??q.media);if(X){let U=G.length,K=`jx-island-${U}`,V=`JxIsland${U}`,M={...z??Z,tagName:K};return G.push({className:V,def:M,tagName:K}),`<${K}></${K}>`}let W=Z.tagName??"div",Y=x0(Z,Q.scope),J=d3(Z,z,Q,G);return`<${W}${Y}>${J}</${W}>`}function d3(Z,X,z,q){let G=X??Z;if(G.textContent!==void 0){let Q=S(G.textContent,z.scope);return Q==null?"":C(String(Q))}if(G.innerHTML)return S(G.innerHTML,z.scope)??G.innerHTML;if(Array.isArray(G.children)){let Q=Array.isArray(X?.children)?X.children:void 0;return G.children.map((W,Y)=>{let J=W,U=p8(J),K=Q?.[Y]??W;return X6(J,U,K,z,q)}).join(`
148
- `)}return""}var z6=T(()=>{b0();E8()});function q6(Z,X){let{title:z="Jx App",reactivitySrc:q=Y1,litHtmlSrc:G=U1,modulePath:Q="app.js"}=X,W=S0(Z,null,Z.state??{},Z.$media??{}),Y=k0(Z,Z.$media??{},X.projectStyle??null),J={h:0,l:0,m:0,needsLit:!1,s:0,sw:0,t:0},U=new Map,K=new Map,V=[],M=[],H=[],F=[],A=[],B=new Map,D=Z.state??{};for(let[O,I]of Object.entries(D)){if(I===null||typeof I!=="object"||Array.isArray(I)){if(typeof I==="string"&&j(I))M.push([O,`() => \`${I}\``]);else V.push([O,I]);continue}if(e(I)){let P=I.$expression,X0=n(P,{eventParam:"e",statePrefix:"state"});if(w0(P.operator))F.push([O,{args:["state","e"],body:X0}]);else M.push([O,`() => ${X0}`]);continue}if(Y0(I)){let P=I.parameters?B0(I.parameters):I.arguments;if(I.$src){if(!B.has(I.$src))B.set(I.$src,new Set);B.get(I.$src).add(O),M.push([O,`() => { return ${O}(state); }`])}else if(I.body&&I.body.includes("return"))M.push([O,`() => { ${I.body} }`]);else F.push([O,{args:P??["state"],body:I.body}]);continue}if(F0(I))continue;if(h8(I)){V.push([O,I.default]);continue}if(l0(I)){if(I.$prototype==="LocalStorage"||I.$prototype==="SessionStorage"){let P=I.$prototype==="LocalStorage"?"localStorage":"sessionStorage",X0=I.key??O,I0=I.default??null;V.push([O,null]),A.push(n3(O,P,X0,I0));continue}if(I.$prototype==="Request"){V.push([O,null]),A.push(i3(O,I));continue}if(I.$prototype==="Cookie"){V.push([O,null]),A.push(o3(O,I.name??O,I.default??null));continue}}V.push([O,I])}let $=G6(Z,Z,W,U,K,J);for(let[O,I]of U)if(!H.some(([P])=>P===O))H.push([O,I]);for(let[O,I]of K)if(!F.some(([P])=>P===O))F.push([O,I]);let w=l3(V,M,H,F,A,B,J,q),R=[` "@vue/reactivity": "${q}"`,` "lit-html": "${G}"`],N=`<!DOCTYPE html>
148
+ </html>`;return{files:q,html:B}}function s9(Z,X,W,Q,J){if(typeof Z==="string")return d(Z);if(typeof Z==="number"||typeof Z==="boolean")return d(String(Z));if(!Z||typeof Z!=="object")return"";let Y=G0(W,Q.scope,W?.state??Q.scopeDefs,W?.$media??Q.media);if(X){let q=J.length,H=`jx-island-${q}`,F=`JxIsland${q}`,B={...W??Z,tagName:H};return J.push({className:F,def:B,tagName:H}),`<${H}></${H}>`}let G=Z.tagName??"div",V=W0(Z,Y.scope),U=v4(Z,W,Y,J);return`<${G}${V}>${U}</${G}>`}function v4(Z,X,W,Q){let J=X??Z;if(J.textContent!==void 0){let Y=t(J.textContent,W.scope);return Y==null?"":d(String(Y))}if(J.innerHTML)return t(J.innerHTML,W.scope)??J.innerHTML;if(Array.isArray(J.children)){let Y=Array.isArray(X?.children)?X.children:void 0;return J.children.map((G,V)=>{let U=G,q=L8(U),H=Y?.[V]??G;return s9(U,q,H,W,Q)}).join(`
149
+ `)}return""}var a9=p(()=>{n2();U1()});function Q8(Z,X){let{title:W="Jx App",reactivitySrc:Q=d0,litHtmlSrc:J=l0,modulePath:Y="app.js"}=X,G=G0(Z,null,Z.state??{},Z.$media??{}),V=J0(Z,Z.$media??{},X.projectStyle??null),U={h:0,l:0,m:0,needsLit:!1,s:0,sw:0,t:0},q=new Map,H=new Map,F=[],B=[],M=[],L=[],E=[],C=new Map,_=Z.state??{};for(let[h,b]of Object.entries(_)){if(b===null||typeof b!=="object"||Array.isArray(b)){if(typeof b==="string"&&i(b))B.push([h,`() => \`${b}\``]);else F.push([h,b]);continue}if(O2(b)){let l=b.$expression,Q2=M2(l,{eventParam:"e",statePrefix:"state"});if(h2(l.operator))L.push([h,{args:["state","e"],body:Q2}]);else B.push([h,`() => ${Q2}`]);continue}if(k2(b)){let l=b.parameters?u2(b.parameters):b.arguments;if(b.$src){if(!C.has(b.$src))C.set(b.$src,new Set);C.get(b.$src).add(h),B.push([h,`() => { return ${h}(state); }`])}else if(b.body&&b.body.includes("return"))B.push([h,`() => { ${b.body} }`]);else L.push([h,{args:l??["state"],body:b.body}]);continue}if(m2(b))continue;if(H8(b)){F.push([h,b.default]);continue}if(L0(b)){if(b.$prototype==="LocalStorage"||b.$prototype==="SessionStorage"){let l=b.$prototype==="LocalStorage"?"localStorage":"sessionStorage",Q2=b.key??h,B2=b.default??null;F.push([h,null]),E.push(m4(h,l,Q2,B2));continue}if(b.$prototype==="Request"){F.push([h,null]),E.push(h4(h,b));continue}if(b.$prototype==="Cookie"){F.push([h,null]),E.push(u4(h,b.name??h,b.default??null));continue}}F.push([h,b])}let x=t9(Z,Z,G,q,H,U);for(let[h,b]of q)if(!M.some(([l])=>l===h))M.push([h,b]);for(let[h,b]of H)if(!L.some(([l])=>l===h))L.push([h,b]);let y=y4(F,B,M,L,E,C,U,Q),u=[` "@vue/reactivity": "${Q}"`,` "lit-html": "${J}"`],f=`<!DOCTYPE html>
149
150
  <html lang="en">
150
151
  <head>
151
152
  <meta charset="utf-8">
152
153
  <meta name="viewport" content="width=device-width, initial-scale=1">
153
- <title>${C(z)}</title>
154
+ <title>${d(W)}</title>
154
155
  <script type="importmap">
155
156
  {
156
157
  "imports": {
157
- ${R.join(`,
158
+ ${u.join(`,
158
159
  `)}
159
160
  }
160
161
  }
161
162
  </script>
162
- ${Y}
163
- <script type="module" src="./${Q}"></script>
163
+ ${V}
164
+ <script type="module" src="./${Y}"></script>
164
165
  </head>
165
166
  <body>
166
- ${$}
167
+ ${x}
167
168
  </body>
168
- </html>`;return{files:[{content:w,path:Q}],html:N}}function G6(Z,X,z,q,G,Q){if(typeof Z==="string")return C(Z);if(typeof Z==="number"||typeof Z==="boolean")return C(String(Z));if(!Z||typeof Z!=="object")return"";let W=S0(X,z.scope,X?.state??z.scopeDefs,X?.$media??z.media),Y=Z.tagName??"div",J=[],U=!1;if(Z.textContent!==void 0){let B=X?.textContent??Z.textContent;if(z0(B)){let D=_0(B.$ref);J.push(`:text-content="${D}"`),S8(q,D,B.$ref),U=!0}else if(j(B)){let D=`_t${Q.t}`;Q.t+=1,J.push(`:text-content="${D}"`),q.set(D,`() => \`${B}\``),U=!0}}for(let[B,D]of Object.entries(Z)){if(!B.startsWith("on")||B==="observedAttributes")continue;let $=B.slice(2).toLowerCase();if(z0(D)){let w=_0(D.$ref);J.push(`@${$}="${w}"`),U=!0}else if(Y0(D)){let w=`_h${Q.h}`;Q.h+=1,J.push(`@${$}="${w}"`),G.set(w,{args:D.parameters?B0(D.parameters):D.arguments??["state","event"],body:D.body}),U=!0}else if(e(D)){let w=`_h${Q.h}`;Q.h+=1,J.push(`@${$}="${w}"`);let R=n(D.$expression,{eventParam:"e",statePrefix:"state"});G.set(w,{args:["state","e"],body:R}),U=!0}}if(Z.style&&typeof Z.style==="object")for(let[B,D]of Object.entries(Z.style)){if(B.startsWith(":")||B.startsWith(".")||B.startsWith("&")||B.startsWith("[")||B.startsWith("@"))continue;if(D===null||typeof D==="object")continue;if(j(D)){let $=`_s${Q.s}`;Q.s+=1,J.push(`:style.${d(B)}="${$}"`),q.set($,`() => \`${D}\``),U=!0}}if(Z.attributes&&typeof Z.attributes==="object"){for(let[B,D]of Object.entries(Z.attributes))if(z0(D)){let $=_0(D.$ref);J.push(`:attr.${B}="${$}"`),S8(q,$,D.$ref),U=!0}else if(j(D)){let $=`_t${Q.t}`;Q.t+=1,J.push(`:attr.${B}="${$}"`),q.set($,`() => \`${D}\``),U=!0}}for(let[B,D]of Object.entries(Z)){if(O0.has(B)||B.startsWith("on")||B.startsWith("$")||B==="tagName"||B==="id"||B==="className"||B==="style"||B==="children"||B==="textContent"||B==="innerHTML"||B==="attributes")continue;if(z0(D)){let $=_0(D.$ref);J.push(`:${d(B)}="${$}"`),S8(q,$,D.$ref),U=!0}else if(j(D)){let $=`_t${Q.t}`;Q.t+=1,J.push(`:${d(B)}="${$}"`),q.set($,`() => \`${D}\``),U=!0}}let K=x0(Z,W.scope),V=U?" data-bind":"",M=J.length>0?` ${J.join(" ")}`:"",H="",F=X??Z;if(F.textContent!==void 0&&!U){let B=S(F.textContent,W.scope);H=B==null?"":C(String(B))}else if(F.textContent!==void 0&&U){let B=S(F.textContent,W.scope);H=B==null?"":C(String(B))}else if(F.innerHTML)H=S(F.innerHTML,W.scope)??F.innerHTML;else if(i0(F.children)){Q.needsLit=!0;let B=`_list${Q.l}`;Q.l+=1;let D=F.children,$;if(z0(D.items))$=`state.${_0(D.items.$ref)}`;else $=JSON.stringify(D.items);let w=W6(D.map);q.set(B,`() => (${$} ?? []).map((item, index) => html\`${w}\`)`),J.push(`:render="${B}"`),U=!0;let R=" data-bind",N=` ${J.join(" ")}`;if(new Set(["input","br","hr","img","meta","link"]).has(Y))return`<${Y}${K}${R}${N}>`;return`<${Y}${K}${R}${N}></${Y}>`}else if(Array.isArray(F.children)){let B=Array.isArray(X?.children)?X.children:void 0;H=F.children.map((D,$)=>{let w=B?.[$]??D;return G6(D,w,W,q,G,Q)}).join(`
169
- `)}if(new Set(["input","br","hr","img","meta","link"]).has(Y))return`<${Y}${K}${V}${M}>`;return`<${Y}${K}${V}${M}>${H}</${Y}>`}function W6(Z){if(!Z)return"";let X=Z.tagName??"div",z="";if(Z.id)z+=` id="${Z.id}"`;if(Z.className)z+=` class="${d0(Z.className)}"`;if(Z.attributes&&typeof Z.attributes==="object")for(let[Q,W]of Object.entries(Z.attributes))z+=typeof W==="string"&&j(W)?` ${Q}="${d0(W)}"`:` ${Q}="${C(String(W))}"`;if(Z.style&&typeof Z.style==="object"){let Q=[];for(let[W,Y]of Object.entries(Z.style)){if(W.startsWith(":")||W.startsWith(".")||W.startsWith("&")||W.startsWith("[")||W.startsWith("@"))continue;if(Y===null||typeof Y==="object")continue;let J=d(W);if(j(String(Y)))Q.push(`${J}: ${d0(String(Y))}`);else Q.push(`${J}: ${Y}`)}if(Q.length>0)z+=` style="${Q.join("; ")}"`}for(let[Q,W]of Object.entries(Z)){if(!Q.startsWith("on")||Q==="observedAttributes")continue;let Y=Q.slice(2).toLowerCase();if(z0(W)){let J=_0(W.$ref);z+=` @${Y}=\${(e) => { state.$map = { item, index }; on.${J}(e); }}`}else if(W&&typeof W==="object"&&W.$prototype==="Function"){let J=d0(W.body);z+=` @${Y}=\${(e) => { ${J} }}`}else if(W&&typeof W==="object"&&"$expression"in W){let J=n(W.$expression,{eventParam:"e",statePrefix:"state"});z+=` @${Y}=\${(e) => { state.$map = { item, index }; ${J}; }}`}}if(Z.contentEditable)z+=` contenteditable="${Z.contentEditable}"`;let q="";if(Z.textContent!==void 0){let Q=String(Z.textContent);if(j(Q))q=d0(Q);else if(z0(Z.textContent))q=`\${state.${_0(Z.textContent.$ref)}}`;else q=C(Q)}else if(Z.innerHTML)q=d0(String(Z.innerHTML));else if(Array.isArray(Z.children))q=`
170
- ${Z.children.map((Q)=>W6(Q)).join(`
169
+ </html>`;return{files:[{content:y,path:Y}],html:f}}function t9(Z,X,W,Q,J,Y){if(typeof Z==="string")return d(Z);if(typeof Z==="number"||typeof Z==="boolean")return d(String(Z));if(!Z||typeof Z!=="object")return"";let G=G0(X,W.scope,X?.state??W.scopeDefs,X?.$media??W.media),V=Z.tagName??"div",U=[],q=!1;if(Z.textContent!==void 0){let C=X?.textContent??Z.textContent;if(I2(C)){let _=p2(C.$ref);U.push(`:text-content="${_}"`),W8(Q,_,C.$ref),q=!0}else if(i(C)){let _=`_t${Y.t}`;Y.t+=1,U.push(`:text-content="${_}"`),Q.set(_,`() => \`${C}\``),q=!0}}for(let[C,_]of Object.entries(Z)){if(!C.startsWith("on")||C==="observedAttributes")continue;let x=C.slice(2).toLowerCase();if(I2(_)){let y=p2(_.$ref);U.push(`@${x}="${y}"`),q=!0}else if(k2(_)){let y=`_h${Y.h}`;Y.h+=1,U.push(`@${x}="${y}"`),J.set(y,{args:_.parameters?u2(_.parameters):_.arguments??["state","event"],body:_.body}),q=!0}else if(O2(_)){let y=`_h${Y.h}`;Y.h+=1,U.push(`@${x}="${y}"`);let u=M2(_.$expression,{eventParam:"e",statePrefix:"state"});J.set(y,{args:["state","e"],body:u}),q=!0}}if(Z.style&&typeof Z.style==="object")for(let[C,_]of Object.entries(Z.style)){if(C.startsWith(":")||C.startsWith(".")||C.startsWith("&")||C.startsWith("[")||C.startsWith("@"))continue;if(_===null||typeof _==="object")continue;if(i(_)){let x=`_s${Y.s}`;Y.s+=1,U.push(`:style.${J2(C)}="${x}"`),Q.set(x,`() => \`${_}\``),q=!0}}if(Z.attributes&&typeof Z.attributes==="object"){for(let[C,_]of Object.entries(Z.attributes))if(I2(_)){let x=p2(_.$ref);U.push(`:attr.${C}="${x}"`),W8(Q,x,_.$ref),q=!0}else if(i(_)){let x=`_t${Y.t}`;Y.t+=1,U.push(`:attr.${C}="${x}"`),Q.set(x,`() => \`${_}\``),q=!0}}for(let[C,_]of Object.entries(Z)){if(c2.has(C)||C.startsWith("on")||C.startsWith("$")||C==="tagName"||C==="id"||C==="className"||C==="style"||C==="children"||C==="textContent"||C==="innerHTML"||C==="attributes")continue;if(I2(_)){let x=p2(_.$ref);U.push(`:${J2(C)}="${x}"`),W8(Q,x,_.$ref),q=!0}else if(i(_)){let x=`_t${Y.t}`;Y.t+=1,U.push(`:${J2(C)}="${x}"`),Q.set(x,`() => \`${_}\``),q=!0}}let H=W0(Z,G.scope),F=q?" data-bind":"",B=U.length>0?` ${U.join(" ")}`:"",M="",L=X??Z;if(L.textContent!==void 0&&!q){let C=t(L.textContent,G.scope);M=C==null?"":d(String(C))}else if(L.textContent!==void 0&&q){let C=t(L.textContent,G.scope);M=C==null?"":d(String(C))}else if(L.innerHTML)M=t(L.innerHTML,G.scope)??L.innerHTML;else if(G2(L.children)){Y.needsLit=!0;let C=`_list${Y.l}`;Y.l+=1;let _=L.children,x;if(I2(_.items))x=`state.${p2(_.items.$ref)}`;else x=JSON.stringify(_.items);let y=G8(_.map);Q.set(C,`() => (${x} ?? []).map((item, index) => html\`${y}\`)`),U.push(`:render="${C}"`),q=!0;let u=" data-bind",f=` ${U.join(" ")}`;if(new Set(["input","br","hr","img","meta","link"]).has(V))return`<${V}${H}${u}${f}>`;return`<${V}${H}${u}${f}></${V}>`}else if(Array.isArray(L.children)&&L.children.some((C)=>G2(C))){Y.needsLit=!0;let C=`_children${Y.l}`;Y.l+=1;let _=L.children.map((y)=>e9(y)).join(`
170
+ `);Q.set(C,`() => html\`
171
+ ${_}
172
+ \``),U.push(`:render="${C}"`),q=!0;let x=` ${U.join(" ")}`;return`<${V}${H} data-bind${x}></${V}>`}else if(Array.isArray(L.children)){let C=Array.isArray(X?.children)?X.children:void 0;M=L.children.map((_,x)=>{let y=C?.[x]??_;return t9(_,y,G,Q,J,Y)}).join(`
173
+ `)}if(new Set(["input","br","hr","img","meta","link"]).has(V))return`<${V}${H}${F}${B}>`;return`<${V}${H}${F}${B}>${M}</${V}>`}function G8(Z){if(!Z)return"";let X=Z.tagName??"div",W="";if(Z.id)W+=` id="${Z.id}"`;if(Z.className)W+=` class="${a2(Z.className)}"`;if(Z.attributes&&typeof Z.attributes==="object")for(let[Y,G]of Object.entries(Z.attributes))W+=typeof G==="string"&&i(G)?` ${Y}="${a2(G)}"`:` ${Y}="${d(String(G))}"`;if(Z.style&&typeof Z.style==="object"){let Y=[];for(let[G,V]of Object.entries(Z.style)){if(G.startsWith(":")||G.startsWith(".")||G.startsWith("&")||G.startsWith("[")||G.startsWith("@"))continue;if(V===null||typeof V==="object")continue;let U=J2(G);if(i(String(V)))Y.push(`${U}: ${a2(String(V))}`);else Y.push(`${U}: ${V}`)}if(Y.length>0)W+=` style="${Y.join("; ")}"`}for(let[Y,G]of Object.entries(Z)){if(!Y.startsWith("on")||Y==="observedAttributes")continue;let V=Y.slice(2).toLowerCase();if(I2(G)){let U=p2(G.$ref);W+=` @${V}=\${(e) => { state.$map = { item, index }; on.${U}(e); }}`}else if(G&&typeof G==="object"&&G.$prototype==="Function"){let U=a2(G.body);W+=` @${V}=\${(e) => { ${U} }}`}else if(G&&typeof G==="object"&&"$expression"in G){let U=M2(G.$expression,{eventParam:"e",statePrefix:"state"});W+=` @${V}=\${(e) => { state.$map = { item, index }; ${U}; }}`}}if(Z.contentEditable)W+=` contenteditable="${Z.contentEditable}"`;let Q="";if(Z.textContent!==void 0){let Y=String(Z.textContent);if(i(Y))Q=a2(Y);else if(I2(Z.textContent))Q=`\${state.${p2(Z.textContent.$ref)}}`;else Q=d(Y)}else if(Z.innerHTML)Q=a2(String(Z.innerHTML));else if(G2(Z.children))Q=`
174
+ ${Z3(Z.children)}
175
+ `;else if(Array.isArray(Z.children))Q=`
176
+ ${Z.children.map((Y)=>e9(Y)).join(`
171
177
  `)}
172
- `;if(new Set(["input","br","hr","img","meta","link"]).has(X))return`<${X}${z}>`;return`<${X}${z}>${q}</${X}>`}function d0(Z){return Z.replaceAll("$map.","")}function l3(Z,X,z,q,G,Q,W,Y){let J=[],{needsLit:U}=W,K=X.length>0;J.push("// Generated by @jxsuite/compiler — do not edit manually");let V=["reactive","effect"];if(K)V.push("computed");if(J.push(`import { ${V.join(", ")} } from '@vue/reactivity';`),U)J.push("import { html, render } from 'lit-html';");for(let[M,H]of Q)J.push(`import { ${[...H].join(", ")} } from '${M}';`);J.push(""),J.push("const state = reactive({");for(let[M,H]of Z)J.push(` ${M}: ${JSON.stringify(H)},`);if(J.push("});"),J.push(""),G.length>0){for(let M of G)J.push(M);J.push("")}if(X.length>0){for(let[M,H]of X)J.push(`state.${M} = computed(${H});`);J.push("")}if(z.length>0){J.push("const bind = {");for(let[M,H]of z)J.push(` ${M}: ${H},`);J.push("};")}else J.push("const bind = {};");if(J.push(""),q.length>0){J.push("const on = {");for(let[M,H]of q){let F=H.args??["state"],A=F.map((B)=>B==="state"?"state":"e").join(", ");J.push(` ${M}: (e) => { const fn = (${F.join(", ")}) => { ${H.body} }; fn(${A}); },`)}J.push("};")}else J.push("const on = {};");if(J.push(""),J.push("function hydrate(root) {"),J.push(" root.querySelectorAll('[data-bind]').forEach(el => {"),J.push(" [...el.attributes].forEach(a => {"),J.push(" if (a.name.startsWith(':')) {"),J.push(" const parts = a.name.slice(1).split('.');"),J.push(" const key = a.value;"),U)J.push(" if (parts[0] === 'render') {"),J.push(" effect(() => { render(bind[key](), el); });"),J.push(" } else if (parts[0] === 'style' && parts.length > 1) {");else J.push(" if (parts[0] === 'style' && parts.length > 1) {");return J.push(" effect(() => { el.style[parts[1]] = bind[key](); });"),J.push(" } else if (parts[0] === 'attr' && parts.length > 1) {"),J.push(" effect(() => { el.setAttribute(parts[1], bind[key]()); });"),J.push(" } else {"),J.push(" const prop = parts[0].replace(/-([a-z])/g, (_, c) => c.toUpperCase());"),J.push(" effect(() => { el[prop] = bind[key](); });"),J.push(" }"),J.push(" } else if (a.name.startsWith('@')) {"),J.push(" el.addEventListener(a.name.slice(1), on[a.value]);"),J.push(" }"),J.push(" });"),J.push(" });"),J.push("}"),J.push(""),J.push("hydrate(document);"),J.push(""),J.join(`
173
- `)}function i3(Z,X){let{url:z}=X,q=X.method??"GET",G=j(z);if(X.manual)return`// ${Z}: manual Request — fetch triggered by user action`;let Q=[`// ${Z}: auto-fetch from ${G?"(dynamic URL)":z}`,"effect(() => {"];if(G)Q.push(` const url = \`${z}\`;`),Q.push(' if (!url || url === "undefined" || url.includes("undefined")) return;');else Q.push(` const url = ${JSON.stringify(z)};`);let W=[];if(q!=="GET")W.push(`method: ${JSON.stringify(q)}`);if(X.headers)W.push(`headers: ${JSON.stringify(X.headers)}`);if(X.body){let J=typeof X.body==="object"?JSON.stringify(JSON.stringify(X.body)):JSON.stringify(X.body);W.push(`body: ${J}`)}let Y=W.length>0?`, { ${W.join(", ")} }`:"";return Q.push(` fetch(url${Y})`),Q.push(" .then(r => r.ok ? r.json() : Promise.reject(r.statusText))"),Q.push(` .then(d => { state.${Z} = d; })`),Q.push(` .catch(e => { state.${Z} = { error: String(e) }; });`),Q.push("});"),Q.join(`
174
- `)}function n3(Z,X,z,q){return[`// ${Z}: ${X} (key: "${z}")`,"try {",` const _s = ${X}.getItem(${JSON.stringify(z)});`,` state.${Z} = _s !== null ? JSON.parse(_s) : ${JSON.stringify(q)};`,`} catch { state.${Z} = ${JSON.stringify(q)}; }`,"effect(() => {",` const v = state.${Z};`," try {",` if (v === null) ${X}.removeItem(${JSON.stringify(z)});`,` else ${X}.setItem(${JSON.stringify(z)}, JSON.stringify(v));`," } catch {}","});"].join(`
175
- `)}function o3(Z,X,z){return[`// ${Z}: Cookie (name: "${X}")`,"{",` const _m = document.cookie.match(new RegExp("(?:^|; )${X}=([^;]*)"));`,` try { state.${Z} = _m ? JSON.parse(decodeURIComponent(_m[1])) : ${JSON.stringify(z)}; }`,` catch { state.${Z} = _m ? _m[1] : ${JSON.stringify(z)}; }`,"}"].join(`
176
- `)}function _0(Z){if(Z.startsWith("#/state/"))return Z.slice(8).replaceAll("/","_");return Z.replaceAll("/","_")}function S8(Z,X,z){if(Z.has(X))return;if(z.startsWith("#/state/")){let G=z.slice(8).split("/");Z.set(X,`() => state.${G.join(".")}`)}else Z.set(X,`() => state.${z}`)}var Q6=T(()=>{W1();b0();$0()});var Y6={};k8(Y6,{compileClassJson:()=>r3});function r3(Z,X={}){let z=Z.title;if(!z)throw Error("compileClassJson: missing title (class name)");let q=s3(Z.extends),G=Z.$defs,Q=G?.fields??{},W=G?.constructor,Y=typeof W==="object"?W:void 0,J=G?.methods??{},U=["// Generated by @jxsuite/compiler from .class.json — do not edit manually"];if(Z.$id)U.push(`// Source: ${Z.$id}`);U.push("");let K=q!=="Object"?` extends ${q}`:"";U.push(`class ${z}${K} {`);for(let[V,M]of Object.entries(Q)){if(M.scope!=="static")continue;let H=M.identifier??V,F=M.access==="private"?"#":"",A=M.initializer!==void 0?JSON.stringify(M.initializer):M.default!==void 0?JSON.stringify(M.default):"null";U.push(` static ${F}${H} = ${A};`)}for(let[V,M]of Object.entries(Q)){if(M.scope==="static")continue;if(M.access!=="private")continue;let H=M.identifier??V;U.push(` #${H};`)}if(Object.keys(Q).length>0)U.push("");if(U.push(" constructor(config = {}) {"),Y?.superCall||q!=="Object"){let V=Y?.superCall?.arguments?Y.superCall.arguments.join(", "):"";U.push(` super(${V});`)}for(let[V,M]of Object.entries(Q)){if(M.scope==="static")continue;let H=M.identifier??V,F=M.access==="private"?"#":"",A=M.initializer!==void 0?JSON.stringify(M.initializer):M.default!==void 0?JSON.stringify(M.default):"null";U.push(` this.${F}${H} = config.${H} !== undefined ? config.${H} : ${A};`)}if(Y?.body){let V=Array.isArray(Y.body)?Y.body:[Y.body];for(let M of V)U.push(` ${M}`)}U.push(" }");for(let[V,M]of Object.entries(J)){let H=M.identifier??V,F=M.scope==="static",B=M.access==="private"?"#":"",D=F?"static ":"",$=M.returnType?.$ref?.includes("Promise")||t3(M)?"async ":"",w=J6(M.parameters??[]),R=a3(M.body);if(U.push(""),M.role==="accessor"){if(M.getter)U.push(` ${D}get ${B}${H}() {`),U.push(` ${M.getter.body}`),U.push(" }");if(M.setter){let N=J6(M.setter.parameters??[]);U.push(` ${D}set ${B}${H}(${N}) {`),U.push(` ${M.setter.body}`),U.push(" }")}}else{U.push(` ${D}${$}${B}${H}(${w}) {`);for(let N of R)U.push(` ${N}`);U.push(" }")}}return U.push("}"),U.push(""),U.push(`export { ${z} };`),U.push(`export default ${z};`),U.push(""),U.join(`
177
- `)}function s3(Z){if(!Z)return"Object";if(typeof Z==="string")return Z;if(Z.$ref){let X=Z.$ref.match(/([A-Za-z0-9_]+)\.class\.json/);return X?X[1]:"Object"}return"Object"}function J6(Z){return Z.map((X)=>{if(X.$ref)return X.$ref.split("/").pop();let z=X.identifier??X.name;return typeof z==="string"?z:"arg"}).join(", ")}function a3(Z){if(!Z)return[""];return Array.isArray(Z)?Z:[Z]}function t3(Z){return(Array.isArray(Z.body)?Z.body.join(`
178
- `):Z.body??"").includes("await ")}import{readFileSync as e3}from"node:fs";async function Z7(Z,X={}){let{title:z="Jx App",reactivitySrc:q=Y1,litHtmlSrc:G=U1,projectStyle:Q=null}=X,W;if(typeof Z==="string"){let Y=e3(Z,"utf8");if(Z.endsWith(".json"))W=_1(Y,Z);else{let{extname:J}=await import("node:path"),U=J(Z).toLowerCase(),K=X.formats?.byExtension?.(U,"parse");if(!K){let{unknownFormatError:V}=await Promise.resolve().then(() => (_8(),j8));throw V(Z,U)}W=await K.call("parse",Y)}}else W=Z;if(f8(W)){let{compileClassJson:Y}=await Promise.resolve().then(() => Y6),J=Y(W,X),U=typeof Z==="string"?Z.replace(/\.class\.json$/,".js"):`${W.title}.js`;return{files:[{content:J,path:U}],html:""}}if(!u1(W))return Z6(W,{litHtmlSrc:G,projectStyle:Q,reactivitySrc:q,title:z});if(W.tagName&&W.tagName.includes("-")){let{tagName:Y}=W,J=K1(Y),K={content:G1(W,J,[]),path:`${Y}.js`,tagName:Y},V=k0(W,W.$media??{}),M=`<!DOCTYPE html>
178
+ `;if(new Set(["input","br","hr","img","meta","link"]).has(X))return`<${X}${W}>`;return`<${X}${W}>${Q}</${X}>`}function e9(Z){if(typeof Z==="string")return i(Z)?a2(Z):d(Z);if(typeof Z==="number"||typeof Z==="boolean")return d(String(Z));if(G2(Z))return Z3(Z);return G8(Z)}function Z3(Z){let{items:X}=Z,W=I2(X)?`state.${p2(X.$ref)}`:JSON.stringify(X??[]),Q=G8(Z.map);return`\${(${W} ?? []).map((item, index) => html\`${Q}\`)}`}function a2(Z){return Z.replaceAll("$map.","")}function y4(Z,X,W,Q,J,Y,G,V){let U=[],{needsLit:q}=G,H=X.length>0;U.push("// Generated by @jxsuite/compiler — do not edit manually");let F=["reactive","effect"];if(H)F.push("computed");if(U.push(`import { ${F.join(", ")} } from '@vue/reactivity';`),q)U.push("import { html, render } from 'lit-html';");for(let[B,M]of Y)U.push(`import { ${[...M].join(", ")} } from '${B}';`);U.push("","const state = reactive({");for(let[B,M]of Z)U.push(` ${B}: ${JSON.stringify(M)},`);if(U.push("});",""),J.length>0){for(let B of J)U.push(B);U.push("")}if(X.length>0){for(let[B,M]of X)U.push(`state.${B} = computed(${M});`);U.push("")}if(W.length>0){U.push("const bind = {");for(let[B,M]of W)U.push(` ${B}: ${M},`);U.push("};")}else U.push("const bind = {};");if(U.push(""),Q.length>0){U.push("const on = {");for(let[B,M]of Q){let L=M.args??["state"],E=L.map((C)=>C==="state"?"state":"e").join(", ");U.push(` ${B}: (e) => { const fn = (${L.join(", ")}) => { ${M.body} }; fn(${E}); },`)}U.push("};")}else U.push("const on = {};");if(U.push("","function hydrate(root) {"," root.querySelectorAll('[data-bind]').forEach(el => {"," [...el.attributes].forEach(a => {"," if (a.name.startsWith(':')) {"," const parts = a.name.slice(1).split('.');"," const key = a.value;"),q)U.push(" if (parts[0] === 'render') {"," effect(() => { render(bind[key](), el); });"," } else if (parts[0] === 'style' && parts.length > 1) {");else U.push(" if (parts[0] === 'style' && parts.length > 1) {");return U.push(" effect(() => { el.style[parts[1]] = bind[key](); });"," } else if (parts[0] === 'attr' && parts.length > 1) {"," effect(() => { el.setAttribute(parts[1], bind[key]()); });"," } else {"," const prop = parts[0].replace(/-([a-z])/g, (_, c) => c.toUpperCase());"," effect(() => { el[prop] = bind[key](); });"," }"," } else if (a.name.startsWith('@')) {"," el.addEventListener(a.name.slice(1), on[a.value]);"," }"," });"," });","}","","hydrate(document);",""),U.join(`
179
+ `)}function h4(Z,X){let{url:W}=X,Q=X.method??"GET",J=i(W);if(X.manual)return`// ${Z}: manual Request — fetch triggered by user action`;let Y=[`// ${Z}: auto-fetch from ${J?"(dynamic URL)":W}`,"effect(() => {"];if(J)Y.push(` const url = \`${W}\`;`,' if (!url || url === "undefined" || url.includes("undefined")) return;');else Y.push(` const url = ${JSON.stringify(W)};`);let G=[];if(Q!=="GET")G.push(`method: ${JSON.stringify(Q)}`);if(X.headers)G.push(`headers: ${JSON.stringify(X.headers)}`);if(X.body){let U=typeof X.body==="object"?JSON.stringify(JSON.stringify(X.body)):JSON.stringify(X.body);G.push(`body: ${U}`)}let V=G.length>0?`, { ${G.join(", ")} }`:"";return Y.push(` fetch(url${V})`," .then(r => r.ok ? r.json() : Promise.reject(r.statusText))",` .then(d => { state.${Z} = d; })`,` .catch(e => { state.${Z} = { error: String(e) }; });`,"});"),Y.join(`
180
+ `)}function m4(Z,X,W,Q){return[`// ${Z}: ${X} (key: "${W}")`,"try {",` const _s = ${X}.getItem(${JSON.stringify(W)});`,` state.${Z} = _s !== null ? JSON.parse(_s) : ${JSON.stringify(Q)};`,`} catch { state.${Z} = ${JSON.stringify(Q)}; }`,"effect(() => {",` const v = state.${Z};`," try {",` if (v === null) ${X}.removeItem(${JSON.stringify(W)});`,` else ${X}.setItem(${JSON.stringify(W)}, JSON.stringify(v));`," } catch {}","});"].join(`
181
+ `)}function u4(Z,X,W){return[`// ${Z}: Cookie (name: "${X}")`,"{",` const _m = document.cookie.match(new RegExp("(?:^|; )${X}=([^;]*)"));`,` try { state.${Z} = _m ? JSON.parse(decodeURIComponent(_m[1])) : ${JSON.stringify(W)}; }`,` catch { state.${Z} = _m ? _m[1] : ${JSON.stringify(W)}; }`,"}"].join(`
182
+ `)}function p2(Z){if(Z.startsWith("#/state/"))return Z.slice(8).replaceAll("/","_");return Z.replaceAll("/","_")}function W8(Z,X,W){if(Z.has(X))return;if(W.startsWith("#/state/")){let J=W.slice(8).split("/");Z.set(X,`() => state.${J.join(".")}`)}else Z.set(X,`() => state.${W}`)}var J8=p(()=>{A0();n2();f2()});var z3={};q8(z3,{compileClassJson:()=>f4});function f4(Z,X={}){let W=Z.title;if(!W)throw Error("compileClassJson: missing title (class name)");let Q=c4(Z.extends),J=Z.$defs,Y=J?.fields??{},G=J?.constructor,V=typeof G==="object"?G:void 0,U=J?.methods??{},q=["// Generated by @jxsuite/compiler from .class.json — do not edit manually"];if(Z.$id)q.push(`// Source: ${Z.$id}`);q.push("");let H=Q!=="Object"?` extends ${Q}`:"";q.push(`class ${W}${H} {`);for(let[F,B]of Object.entries(Y)){if(B.scope!=="static")continue;let M=B.identifier??F,L=B.access==="private"?"#":"",E=B.initializer!==void 0?JSON.stringify(B.initializer):B.default!==void 0?JSON.stringify(B.default):"null";q.push(` static ${L}${M} = ${E};`)}for(let[F,B]of Object.entries(Y)){if(B.scope==="static")continue;if(B.access!=="private")continue;let M=B.identifier??F;q.push(` #${M};`)}if(Object.keys(Y).length>0)q.push("");if(q.push(" constructor(config = {}) {"),V?.superCall||Q!=="Object"){let F=V?.superCall?.arguments?V.superCall.arguments.join(", "):"";q.push(` super(${F});`)}for(let[F,B]of Object.entries(Y)){if(B.scope==="static")continue;let M=B.identifier??F,L=B.access==="private"?"#":"",E=B.initializer!==void 0?JSON.stringify(B.initializer):B.default!==void 0?JSON.stringify(B.default):"null";q.push(` this.${L}${M} = config.${M} !== undefined ? config.${M} : ${E};`)}if(V?.body){let F=Array.isArray(V.body)?V.body:[V.body];for(let B of F)q.push(` ${B}`)}q.push(" }");for(let[F,B]of Object.entries(U)){let M=B.identifier??F,L=B.scope==="static",C=B.access==="private"?"#":"",_=L?"static ":"",x=B.returnType?.$ref?.includes("Promise")||d4(B)?"async ":"",y=X3(B.parameters??[]),u=p4(B.body);if(q.push(""),B.role==="accessor"){if(B.getter)q.push(` ${_}get ${C}${M}() {`,` ${B.getter.body}`," }");if(B.setter){let f=X3(B.setter.parameters??[]);q.push(` ${_}set ${C}${M}(${f}) {`,` ${B.setter.body}`," }")}}else{q.push(` ${_}${x}${C}${M}(${y}) {`);for(let f of u)q.push(` ${f}`);q.push(" }")}}return q.push("}","",`export { ${W} };`,`export default ${W};`,""),q.join(`
183
+ `)}function c4(Z){if(!Z)return"Object";if(typeof Z==="string")return Z;if(Z.$ref){let X=Z.$ref.match(/([A-Za-z0-9_]+)\.class\.json/);return X?X[1]:"Object"}return"Object"}function X3(Z){return Z.map((X)=>{if(X.$ref)return X.$ref.split("/").pop();let W=X.identifier??X.name;return typeof W==="string"?W:"arg"}).join(", ")}function p4(Z){if(!Z)return[""];return Array.isArray(Z)?Z:[Z]}function d4(Z){return(Array.isArray(Z.body)?Z.body.join(`
184
+ `):Z.body??"").includes("await ")}import{readFileSync as l4}from"node:fs";async function i4(Z,X={}){let{title:W="Jx App",reactivitySrc:Q=d0,litHtmlSrc:J=l0,projectStyle:Y=null}=X,G;if(typeof Z==="string"){let V=l4(Z,"utf8");if(Z.endsWith(".json"))G=J1(V,Z);else{let{extname:U}=await import("node:path"),q=U(Z).toLowerCase(),H=X.formats?.byExtension?.(q,"parse");if(!H){let{unknownFormatError:F}=await Promise.resolve().then(() => (Z8(),e1));throw F(Z,q)}G=await H.call("parse",V)}}else G=Z;if($8(G)){let{compileClassJson:V}=await Promise.resolve().then(() => z3),U=V(G,X),q=typeof Z==="string"?Z.replace(/\.class\.json$/,".js"):`${G.title}.js`;return{files:[{content:U,path:q}],html:""}}if(!i0(G))return r9(G,{litHtmlSrc:J,projectStyle:Y,reactivitySrc:Q,title:W});if(G.tagName&&G.tagName.includes("-")){let{tagName:V}=G,U=n0(V),H={content:_0(G,U,[]),path:`${V}.js`,tagName:V},F=J0(G,G.$media??{}),B=`<!DOCTYPE html>
179
185
  <html lang="en">
180
186
  <head>
181
187
  <meta charset="utf-8">
182
188
  <meta name="viewport" content="width=device-width, initial-scale=1">
183
- <title>${C(z)}</title>
189
+ <title>${d(W)}</title>
184
190
  <script type="importmap">
185
191
  {
186
192
  "imports": {
187
- "@vue/reactivity": "${q}",
188
- "lit-html": "${G}"
193
+ "@vue/reactivity": "${Q}",
194
+ "lit-html": "${J}"
189
195
  }
190
196
  }
191
197
  </script>
192
- ${V}
198
+ ${F}
193
199
  </head>
194
200
  <body>
195
- <${Y}></${Y}>
196
- <script type="module" src="./${Y}.js"></script>
201
+ <${V}></${V}>
202
+ <script type="module" src="./${V}.js"></script>
197
203
  </body>
198
- </html>`;return{files:[K],html:M}}return q6(W,{litHtmlSrc:G,projectStyle:Q,reactivitySrc:q,title:z})}async function Rz(Z,X){let[z,q]=await Promise.all([Z7(Z),mZ(Z)]),{writeFileSync:G,mkdirSync:Q}=await import("node:fs"),{dirname:W,join:Y}=await import("node:path");if(X){G(X,z.html,"utf8"),console.error(`Written to ${X}`);let J=W(X);for(let U of z.files){let K=Y(J,U.path);Q(W(K),{recursive:!0}),G(K,U.content,"utf8"),console.error(`Written to ${K}`)}}else process.stdout.write(z.html);if(q&&X){let J=X.replace(/(\.[^.]+)?$/,"-server.js");G(J,q,"utf8"),console.error(`Server handler written to ${J}`)}}var X7=T(()=>{b0();uZ();E8();z6();Q6();$0();R8()});X7();export{Rz as runCli,u1 as isDynamic,P3 as compileSiteServer,mZ as compileServer,h3 as compileElementPage,sZ as compileElement,q6 as compileClient,Z7 as compile};
204
+ </html>`;return{files:[H],html:B}}return Q8(G,{litHtmlSrc:J,projectStyle:Y,reactivitySrc:Q,title:W})}async function S7(Z,X){let[W,Q]=await Promise.all([i4(Z),o1(Z)]),{writeFileSync:J,mkdirSync:Y}=await import("node:fs"),{dirname:G,join:V}=await import("node:path");if(X){J(X,W.html,"utf8"),console.error(`Written to ${X}`);let U=G(X);for(let q of W.files){let H=V(U,q.path);Y(G(H),{recursive:!0}),J(H,q.content,"utf8"),console.error(`Written to ${H}`)}}else process.stdout.write(W.html);if(Q&&X){let U=X.replace(/(\.[^.]+)?$/,"-server.js");J(U,Q,"utf8"),console.error(`Server handler written to ${U}`)}}var n4=p(()=>{n2();r1();U1();a9();J8();f2();a1();n2();r1();U1();J8()});n4();export{S7 as runCli,i0 as isDynamic,w4 as compileSiteServer,o1 as compileServer,S4 as compileElementPage,l9 as compileElement,Q8 as compileClient,i4 as compile};