@paroicms/site-generator-plugin 0.15.0 → 0.15.1

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.
@@ -113,7 +113,7 @@ ${i}</tr>
113
113
  `}tablecell(i){const n=this.parser.parseInline(i.tokens),r=i.header?"th":"td";return(i.align?`<${r} align="${i.align}">`:`<${r}>`)+n+`</${r}>
114
114
  `}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Pt(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:n,tokens:r}){const s=this.parser.parseInline(r),o=tm(i);if(o===null)return s;i=o;let f='<a href="'+i+'"';return n&&(f+=' title="'+Pt(n)+'"'),f+=">"+s+"</a>",f}image({href:i,title:n,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));const o=tm(i);if(o===null)return Pt(r);i=o;let f=`<img src="${i}" alt="${r}"`;return n&&(f+=` title="${Pt(n)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Pt(i.text)}},pc=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}},ma=class Zo{constructor(n){Oe(this,"options");Oe(this,"renderer");Oe(this,"textRenderer");this.options=n||mn,this.options.renderer=this.options.renderer||new es,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new pc}static parse(n,r){return new Zo(r).parse(n)}static parseInline(n,r){return new Zo(r).parseInline(n)}parse(n,r=!0){var o,f;let s="";for(let p=0;p<n.length;p++){const h=n[p];if((f=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&f[h.type]){const d=h,v=this.options.extensions.renderers[d.type].call({parser:this},d);if(v!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)){s+=v||"";continue}}const m=h;switch(m.type){case"space":{s+=this.renderer.space(m);continue}case"hr":{s+=this.renderer.hr(m);continue}case"heading":{s+=this.renderer.heading(m);continue}case"code":{s+=this.renderer.code(m);continue}case"table":{s+=this.renderer.table(m);continue}case"blockquote":{s+=this.renderer.blockquote(m);continue}case"list":{s+=this.renderer.list(m);continue}case"html":{s+=this.renderer.html(m);continue}case"paragraph":{s+=this.renderer.paragraph(m);continue}case"text":{let d=m,v=this.renderer.text(d);for(;p+1<n.length&&n[p+1].type==="text";)d=n[++p],v+=`
115
115
  `+this.renderer.text(d);r?s+=this.renderer.paragraph({type:"paragraph",raw:v,text:v,tokens:[{type:"text",raw:v,text:v,escaped:!0}]}):s+=v;continue}default:{const d='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return s}parseInline(n,r=this.renderer){var o,f;let s="";for(let p=0;p<n.length;p++){const h=n[p];if((f=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&f[h.type]){const d=this.options.extensions.renderers[h.type].call({parser:this},h);if(d!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(h.type)){s+=d||"";continue}}const m=h;switch(m.type){case"escape":{s+=r.text(m);break}case"html":{s+=r.html(m);break}case"link":{s+=r.link(m);break}case"image":{s+=r.image(m);break}case"strong":{s+=r.strong(m);break}case"em":{s+=r.em(m);break}case"codespan":{s+=r.codespan(m);break}case"br":{s+=r.br(m);break}case"del":{s+=r.del(m);break}case"text":{s+=r.text(m);break}default:{const d='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return s}},Mo,Kr=(Mo=class{constructor(i){Oe(this,"options");Oe(this,"block");this.options=i||mn}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}provideLexer(){return this.block?pa.lex:pa.lexInline}provideParser(){return this.block?ma.parse:ma.parseInline}},Oe(Mo,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Mo),oN=class{constructor(...i){Oe(this,"defaults",rc());Oe(this,"options",this.setOptions);Oe(this,"parse",this.parseMarkdown(!0));Oe(this,"parseInline",this.parseMarkdown(!1));Oe(this,"Parser",ma);Oe(this,"Renderer",es);Oe(this,"TextRenderer",pc);Oe(this,"Lexer",pa);Oe(this,"Tokenizer",Ir);Oe(this,"Hooks",Kr);this.use(...i)}walkTokens(i,n){var s,o;let r=[];for(const f of i)switch(r=r.concat(n.call(this,f)),f.type){case"table":{const p=f;for(const h of p.header)r=r.concat(this.walkTokens(h.tokens,n));for(const h of p.rows)for(const m of h)r=r.concat(this.walkTokens(m.tokens,n));break}case"list":{const p=f;r=r.concat(this.walkTokens(p.items,n));break}default:{const p=f;(o=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&o[p.type]?this.defaults.extensions.childTokens[p.type].forEach(h=>{const m=p[h].flat(1/0);r=r.concat(this.walkTokens(m,n))}):p.tokens&&(r=r.concat(this.walkTokens(p.tokens,n)))}}return r}use(...i){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(r=>{const s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const f=n.renderers[o.name];f?n.renderers[o.name]=function(...p){let h=o.renderer.apply(this,p);return h===!1&&(h=f.apply(this,p)),h}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const f=n[o.level];f?f.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),s.extensions=n),r.renderer){const o=this.defaults.renderer||new es(this.defaults);for(const f in r.renderer){if(!(f in o))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;const p=f,h=r.renderer[p],m=o[p];o[p]=(...d)=>{let v=h.apply(o,d);return v===!1&&(v=m.apply(o,d)),v||""}}s.renderer=o}if(r.tokenizer){const o=this.defaults.tokenizer||new Ir(this.defaults);for(const f in r.tokenizer){if(!(f in o))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;const p=f,h=r.tokenizer[p],m=o[p];o[p]=(...d)=>{let v=h.apply(o,d);return v===!1&&(v=m.apply(o,d)),v}}s.tokenizer=o}if(r.hooks){const o=this.defaults.hooks||new Kr;for(const f in r.hooks){if(!(f in o))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;const p=f,h=r.hooks[p],m=o[p];Kr.passThroughHooks.has(f)?o[p]=d=>{if(this.defaults.async)return Promise.resolve(h.call(o,d)).then(x=>m.call(o,x));const v=h.call(o,d);return m.call(o,v)}:o[p]=(...d)=>{let v=h.apply(o,d);return v===!1&&(v=m.apply(o,d)),v}}s.hooks=o}if(r.walkTokens){const o=this.defaults.walkTokens,f=r.walkTokens;s.walkTokens=function(p){let h=[];return h.push(f.call(this,p)),o&&(h=h.concat(o.call(this,p))),h}}this.defaults={...this.defaults,...s}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,n){return pa.lex(i,n??this.defaults)}parser(i,n){return ma.parse(i,n??this.defaults)}parseMarkdown(i){return(r,s)=>{const o={...s},f={...this.defaults,...o},p=this.onError(!!f.silent,!!f.async);if(this.defaults.async===!0&&o.async===!1)return p(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return p(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return p(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));f.hooks&&(f.hooks.options=f,f.hooks.block=i);const h=f.hooks?f.hooks.provideLexer():i?pa.lex:pa.lexInline,m=f.hooks?f.hooks.provideParser():i?ma.parse:ma.parseInline;if(f.async)return Promise.resolve(f.hooks?f.hooks.preprocess(r):r).then(d=>h(d,f)).then(d=>f.hooks?f.hooks.processAllTokens(d):d).then(d=>f.walkTokens?Promise.all(this.walkTokens(d,f.walkTokens)).then(()=>d):d).then(d=>m(d,f)).then(d=>f.hooks?f.hooks.postprocess(d):d).catch(p);try{f.hooks&&(r=f.hooks.preprocess(r));let d=h(r,f);f.hooks&&(d=f.hooks.processAllTokens(d)),f.walkTokens&&this.walkTokens(d,f.walkTokens);let v=m(d,f);return f.hooks&&(v=f.hooks.postprocess(v)),v}catch(d){return p(d)}}}onError(i,n){return r=>{if(r.message+=`
116
- Please report this to https://github.com/markedjs/marked.`,i){const s="<p>An error occurred:</p><pre>"+Pt(r.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}},dn=new oN;function Re(i,n){return dn.parse(i,n)}Re.options=Re.setOptions=function(i){return dn.setOptions(i),Re.defaults=dn.defaults,Am(Re.defaults),Re};Re.getDefaults=rc;Re.defaults=mn;Re.use=function(...i){return dn.use(...i),Re.defaults=dn.defaults,Am(Re.defaults),Re};Re.walkTokens=function(i,n){return dn.walkTokens(i,n)};Re.parseInline=dn.parseInline;Re.Parser=ma;Re.parser=ma.parse;Re.Renderer=es;Re.TextRenderer=pc;Re.Lexer=pa;Re.lexer=pa.lex;Re.Tokenizer=Ir;Re.Hooks=Kr;Re.parse=Re;Re.options;Re.setOptions;Re.use;Re.walkTokens;Re.parseInline;ma.parse;pa.lex;function cN(i){if(!i)return"";try{return Re.parse(i,{async:!1,gfm:!0,breaks:!0})}catch(n){return console.error("Error rendering markdown:",n),i}}function Ni({content:i,title:n,variant:r="default",className:s="",children:o}){const f=["Explanation",`Explanation-${r}`,s].filter(Boolean).join(" ");return b.jsxs("div",{className:f,children:[n&&b.jsx("h3",{className:"Explanation-title",children:n}),b.jsx("div",{className:"Explanation-content markdown-content",dangerouslySetInnerHTML:{__html:cN(i)}}),o]})}function fN({isOpen:i,title:n,message:r,confirmLabel:s,cancelLabel:o,onConfirm:f,onCancel:p}){const{t:h}=ot(),[m,d]=T.useState(!0);if(!i)return null;const v=async()=>{await f({withSampleData:m})},x=S=>{S.key==="Escape"&&p()};return b.jsxs("div",{className:"ConfirmDialog",children:[b.jsx("div",{className:"ConfirmDialog-backdrop",onClick:p,onKeyDown:x,tabIndex:0,role:"button","aria-label":"Close dialog"}),b.jsxs("div",{className:"ConfirmDialog-container",children:[b.jsx("div",{className:"ConfirmDialog-header",children:b.jsx("h3",{className:"ConfirmDialog-title",children:n})}),b.jsxs("div",{className:"ConfirmDialog-body",children:[b.jsx("p",{children:r}),b.jsx("div",{className:"ConfirmDialog-checkbox mt-3",children:b.jsxs("label",{children:[b.jsx("input",{type:"checkbox",checked:m,onChange:S=>d(S.target.checked)}),b.jsx("span",{className:"ml-2",children:h("generateSiteWithData")})]})})]}),b.jsxs("div",{className:"ConfirmDialog-footer",children:[b.jsx(rt,{onClick:p,severity:"secondary",className:"ConfirmDialog-button",children:o||h("cancel")}),b.jsx(rt,{onClick:v,className:"ConfirmDialog-button",children:s||h("confirm")})]})]})]})}function M(){return M=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var s in r)({}).hasOwnProperty.call(r,s)&&(i[s]=r[s])}return i},M.apply(null,arguments)}function ge(i,n){if(i==null)return{};var r={};for(var s in i)if({}.hasOwnProperty.call(i,s)){if(n.indexOf(s)!==-1)continue;r[s]=i[s]}return r}var Vm={},$m=T.createContext(Vm),dN=(i,n)=>M({},i,n),hN=()=>T.useContext($m),mc=T.createContext(()=>{});mc.displayName="JVR.DispatchShowTools";function pN(){return T.useReducer(dN,Vm)}function qm(){return T.useContext(mc)}var Gm=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx($m.Provider,{value:n,children:b.jsx(mc.Provider,{value:r,children:s})})};Gm.displayName="JVR.ShowTools";var Ym={},Qm=T.createContext(Ym),mN=(i,n)=>M({},i,n),ss=()=>T.useContext(Qm),gc=T.createContext(()=>{});gc.displayName="JVR.DispatchExpands";function gN(){return T.useReducer(mN,Ym)}function vN(){return T.useContext(gc)}var Zm=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(Qm.Provider,{value:n,children:b.jsx(gc.Provider,{value:r,children:s})})};Zm.displayName="JVR.Expands";var Km={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Xm=T.createContext(Km),yN=(i,n)=>M({},i,n),Le=()=>T.useContext(Xm),vc=T.createContext(()=>{});vc.displayName="JVR.DispatchTypes";function bN(){return T.useReducer(yN,Km)}function SN(){return T.useContext(vc)}function Jm(i){var{initial:n,dispatch:r,children:s}=i;return b.jsx(Xm.Provider,{value:n,children:b.jsx(vc.Provider,{value:r,children:s})})}Jm.displayName="JVR.Types";var xN=["style"];function Fm(i){var{style:n}=i,r=ge(i,xN),s=M({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},n);return b.jsx("svg",M({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:s},r,{children:b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Fm.displayName="JVR.TriangleArrow";var Pm={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:b.jsx(Fm,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},Wm=T.createContext(Pm),NN=(i,n)=>M({},i,n),mt=()=>T.useContext(Wm),yc=T.createContext(()=>{});yc.displayName="JVR.DispatchSymbols";function EN(){return T.useReducer(NN,Pm)}function RN(){return T.useContext(yc)}var Im=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(Wm.Provider,{value:n,children:b.jsx(yc.Provider,{value:r,children:s})})};Im.displayName="JVR.Symbols";var eg={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},tg=T.createContext(eg),TN=(i,n)=>M({},i,n),Bt=()=>T.useContext(tg),bc=T.createContext(()=>{});bc.displayName="JVR.DispatchSection";function wN(){return T.useReducer(TN,eg)}function CN(){return T.useContext(bc)}var ag=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(tg.Provider,{value:n,children:b.jsx(bc.Provider,{value:r,children:s})})};ag.displayName="JVR.Section";var ng={objectSortKeys:!1,indentWidth:15},Sc=T.createContext(ng);Sc.displayName="JVR.Context";var lg=T.createContext(()=>{});lg.displayName="JVR.DispatchContext";function jN(i,n){return M({},i,n)}var gn=()=>T.useContext(Sc),ig=i=>{var{children:n,initialState:r,initialTypes:s}=i,[o,f]=T.useReducer(jN,Object.assign({},ng,r)),[p,h]=pN(),[m,d]=gN(),[v,x]=bN(),[S,C]=EN(),[E,z]=wN();return T.useEffect(()=>f(M({},r)),[r]),b.jsx(Sc.Provider,{value:o,children:b.jsx(lg.Provider,{value:f,children:b.jsx(Gm,{initial:p,dispatch:h,children:b.jsx(Zm,{initial:m,dispatch:d,children:b.jsx(Jm,{initial:M({},v,s),dispatch:x,children:b.jsx(Im,{initial:S,dispatch:C,children:b.jsx(ag,{initial:E,dispatch:z,children:n})})})})})})})};ig.displayName="JVR.Provider";function AN(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var ON=["isNumber","value","parentValue","keyName","keys"],kN=["as","render"],LN=["as","render"],zN=["as","render"],DN=["as","style","render"],_N=["as","render"],MN=["as","render"],UN=["as","render"],BN=["as","render"],Ko=i=>{var{Quote:n={}}=mt(),{isNumber:r,value:s,parentValue:o,keyName:f,keys:p}=i,h=ge(i,ON);if(r)return null;var{as:m,render:d}=n,v=ge(n,kN),x=m||"span",S=M({},h,v),C={value:s,parentValue:o,keyName:f,keys:p||(f?[f]:[])},E=d&&typeof d=="function"&&d(S,C);return E||b.jsx(x,M({},S))};Ko.displayName="JVR.Quote";var yi=i=>{var{ValueQuote:n={}}=mt(),r=M({},(AN(i),i)),{as:s,render:o}=n,f=ge(n,LN),p=s||"span",h=M({},r,f),m=o&&typeof o=="function"&&o(h,{});return m||b.jsx(p,M({},h))};yi.displayName="JVR.ValueQuote";var rg=i=>{var{value:n,parentValue:r,keyName:s,keys:o}=i,{Colon:f={}}=mt(),{as:p,render:h}=f,m=ge(f,zN),d=p||"span",v=h&&typeof h=="function"&&h(m,{value:n,parentValue:r,keyName:s,keys:o||(s?[s]:[])});return v||b.jsx(d,M({},m))};rg.displayName="JVR.Colon";var sg=i=>{var{Arrow:n={}}=mt(),r=ss(),{expandKey:s,style:o,value:f,parentValue:p,keyName:h,keys:m}=i,d=!!r[s],{as:v,style:x,render:S}=n,C=ge(n,DN),E=v||"span",z=S&&typeof S=="function",B=M({},C,{"data-expanded":d,style:M({},x,o)}),U={value:f,parentValue:p,keyName:h,keys:m||(h?[h]:[])},D=z&&S(B,U);return D||b.jsx(E,M({},C,{style:M({},x,o)}))};sg.displayName="JVR.Arrow";var ug=i=>{var{isBrackets:n,value:r,parentValue:s,keyName:o,keys:f}=i,{BracketsLeft:p={},BraceLeft:h={}}=mt(),m={value:r,parentValue:s,keyName:o,keys:f||(o?[o]:[])};if(n){var{as:d,render:v}=p,x=ge(p,_N),S=d||"span",C=v&&typeof v=="function"&&v(x,m);return C||b.jsx(S,M({},x))}var{as:E,render:z}=h,B=ge(h,MN),U=E||"span",D=z&&typeof z=="function"&&z(B,m);return D||b.jsx(U,M({},B))};ug.displayName="JVR.BracketsOpen";var xc=i=>{var{isBrackets:n,isVisiable:r,value:s,parentValue:o,keyName:f,keys:p}=i,h={value:s,parentValue:o,keyName:f,keys:p||(f?[f]:[])};if(!r)return null;var{BracketsRight:m={},BraceRight:d={}}=mt();if(n){var{as:v,render:x}=m,S=ge(m,UN),C=v||"span",E=x&&typeof x=="function"&&x(S,h);return E||b.jsx(C,M({},S))}var{as:z,render:B}=d,U=ge(d,BN),D=z||"span",G=B&&typeof B=="function"&&B(U,h);return G||b.jsx(D,M({},U))};xc.displayName="JVR.BracketsClose";var og=i=>{var n,{value:r,expandKey:s,level:o,keys:f=[]}=i,p=ss(),h=Array.isArray(r),{collapsed:m,shouldExpandNodeInitially:d}=gn(),v=r instanceof Set,x=typeof m=="boolean"?m:typeof m=="number"?o>m:!1,S=(n=p[s])!=null?n:x,C=Object.keys(r).length;if(p[s]===void 0&&d&&d(S,{value:r,keys:f,level:o})||S||C===0)return null;var E={paddingLeft:4};return b.jsx("div",{style:E,children:b.jsx(xc,{isBrackets:h||v,isVisiable:!0})})};og.displayName="JVR.NestedClose";var HN=["as","render"],VN=["as","render"],$N=["as","render"],qN=["as","render"],GN=["as","render"],YN=["as","render"],QN=["as","render"],ZN=["as","render"],KN=["as","render"],XN=["as","render"],JN=["as","render"],FN=["as","render"],PN=["as","render"],Xo=i=>{if(i===void 0)return"0n";if(typeof i=="string")try{i=BigInt(i)}catch{return"0n"}return i?i.toString()+"n":"0n"},cg=i=>{var{value:n,keyName:r}=i,{Set:s={},displayDataTypes:o}=Le(),f=n instanceof Set;if(!f||!o)return null;var{as:p,render:h}=s,m=ge(s,HN),d=h&&typeof h=="function",v=d&&h(m,{type:"type",value:n,keyName:r});if(v)return v;var x=p||"span";return b.jsx(x,M({},m))};cg.displayName="JVR.SetComp";var fg=i=>{var{value:n,keyName:r}=i,{Map:s={},displayDataTypes:o}=Le(),f=n instanceof Map;if(!f||!o)return null;var{as:p,render:h}=s,m=ge(s,VN),d=h&&typeof h=="function",v=d&&h(m,{type:"type",value:n,keyName:r});if(v)return v;var x=p||"span";return b.jsx(x,M({},m))};fg.displayName="JVR.MapComp";var Yt={opacity:.75,paddingRight:4},dg=i=>{var{children:n="",keyName:r}=i,{Str:s={},displayDataTypes:o}=Le(),{shortenTextAfterLength:f=30,stringEllipsis:p="..."}=gn(),{as:h,render:m}=s,d=ge(s,$N),v=n,[x,S]=T.useState(f&&v.length>f);T.useEffect(()=>S(f&&v.length>f),[f]);var C=h||"span",E=M({},Yt,s.style||{});f>0&&(d.style=M({},d.style,{cursor:v.length<=f?"initial":"pointer"}),v.length>f&&(d.onClick=()=>{S(!x)}));var z=x?""+v.slice(0,f)+p:v,B=m&&typeof m=="function",U=B&&m(M({},d,{style:E}),{type:"type",value:n,keyName:r}),D=x?"w-rjv-value w-rjv-value-short":"w-rjv-value",G=B&&m(M({},d,{children:z,className:D}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(U||b.jsx(C,M({},d,{style:E}))),G||b.jsxs(T.Fragment,{children:[b.jsx(yi,{}),b.jsx(C,M({},d,{className:D,children:z})),b.jsx(yi,{})]})]})};dg.displayName="JVR.TypeString";var hg=i=>{var{children:n,keyName:r}=i,{True:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,qN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsx(m,M({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};hg.displayName="JVR.TypeTrue";var pg=i=>{var{children:n,keyName:r}=i,{False:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,GN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsx(m,M({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};pg.displayName="JVR.TypeFalse";var mg=i=>{var{children:n,keyName:r}=i,{Float:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,YN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsx(m,M({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};mg.displayName="JVR.TypeFloat";var gg=i=>{var{children:n,keyName:r}=i,{Int:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,QN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsx(m,M({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};gg.displayName="JVR.TypeInt";var vg=i=>{var{children:n,keyName:r}=i,{Bigint:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,ZN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsx(m,M({},h,{className:"w-rjv-value",children:Xo(n==null?void 0:n.toString())}))]})};vg.displayName="JVR.TypeFloat";var yg=i=>{var{children:n,keyName:r}=i,{Url:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,KN),m=f||"span",d=M({},Yt,s.style),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n==null?void 0:n.href,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsxs("a",M({href:n==null?void 0:n.href,target:"_blank"},h,{className:"w-rjv-value",children:[b.jsx(yi,{}),n==null?void 0:n.href,b.jsx(yi,{})]}))]})};yg.displayName="JVR.TypeUrl";var bg=i=>{var{children:n,keyName:r}=i,{Date:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,XN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=n instanceof Date?n.toLocaleString():n,C=v&&p(M({},h,{children:S,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),C||b.jsx(m,M({},h,{className:"w-rjv-value",children:S}))]})};bg.displayName="JVR.TypeDate";var Sg=i=>{var{children:n,keyName:r}=i,{Undefined:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,JN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S]})};Sg.displayName="JVR.TypeUndefined";var xg=i=>{var{children:n,keyName:r}=i,{Null:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,FN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S]})};xg.displayName="JVR.TypeNull";var Ng=i=>{var{children:n,keyName:r}=i,{Nan:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,PN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n==null?void 0:n.toString(),className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S]})};Ng.displayName="JVR.TypeNan";var WN=i=>Number(i)===i&&i%1!==0||isNaN(i),Eg=i=>{var{value:n,keyName:r}=i,s={keyName:r};return n instanceof URL?b.jsx(yg,M({},s,{children:n})):typeof n=="string"?b.jsx(dg,M({},s,{children:n})):n===!0?b.jsx(hg,M({},s,{children:n})):n===!1?b.jsx(pg,M({},s,{children:n})):n===null?b.jsx(xg,M({},s,{children:n})):n===void 0?b.jsx(Sg,M({},s,{children:n})):n instanceof Date?b.jsx(bg,M({},s,{children:n})):typeof n=="number"&&isNaN(n)?b.jsx(Ng,M({},s,{children:n})):typeof n=="number"&&WN(n)?b.jsx(mg,M({},s,{children:n})):typeof n=="bigint"?b.jsx(vg,M({},s,{children:n})):typeof n=="number"?b.jsx(gg,M({},s,{children:n})):null};Eg.displayName="JVR.Value";function Qa(i,n,r){var s=RN(),o=[i.className,n.className].filter(Boolean).join(" "),f=M({},i,n,{className:o,style:M({},i.style,n.style),children:n.children||i.children});T.useEffect(()=>s({[r]:f}),[n])}function Ct(i,n,r){var s=SN(),o=[i.className,n.className].filter(Boolean).join(" "),f=M({},i,n,{className:o,style:M({},i.style,n.style),children:n.children||i.children});T.useEffect(()=>s({[r]:f}),[n])}function sl(i,n,r){var s=CN(),o=[i.className,n.className].filter(Boolean).join(" "),f=M({},i,n,{className:o,style:M({},i.style,n.style),children:n.children||i.children});T.useEffect(()=>s({[r]:f}),[n])}var IN=["as","render"],Rg=i=>{var{KeyName:n={}}=Bt();return sl(n,i,"KeyName"),null};Rg.displayName="JVR.KeyName";var Tg=i=>{var{children:n,value:r,parentValue:s,keyName:o,keys:f}=i,p=typeof n=="number",h={color:p?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:m={}}=Bt(),{as:d,render:v}=m,x=ge(m,IN);x.style=M({},x.style,h);var S=d||"span",C=v&&typeof v=="function"&&v(M({},x,{children:n}),{value:r,parentValue:s,keyName:o,keys:f||(o?[o]:[])});return C||b.jsx(S,M({},x,{children:n}))};Tg.displayName="JVR.KeyNameComp";var eE=["children","value","parentValue","keyName","keys"],tE=["as","render","children"],wg=i=>{var{Row:n={}}=Bt();return sl(n,i,"Row"),null};wg.displayName="JVR.Row";var Cg=i=>{var{children:n,value:r,parentValue:s,keyName:o,keys:f}=i,p=ge(i,eE),{Row:h={}}=Bt(),{as:m,render:d}=h,v=ge(h,tE),x=m||"div",S=d&&typeof d=="function"&&d(M({},p,v,{children:n}),{value:r,keyName:o,parentValue:s,keys:f});return S||b.jsx(x,M({},p,v,{children:n}))};Cg.displayName="JVR.RowComp";function aE(i){var n=T.useRef();return T.useEffect(()=>{n.current=i}),n.current}function nE(i){var{value:n,highlightUpdates:r,highlightContainer:s}=i,o=aE(n),f=T.useMemo(()=>{if(!r||o===void 0)return!1;if(typeof n!=typeof o)return!0;if(typeof n=="number")return isNaN(n)&&isNaN(o)?!1:n!==o;if(Array.isArray(n)!==Array.isArray(o))return!0;if(typeof n=="object"||typeof n=="function")return!1;if(n!==o)return!0},[r,n]);T.useEffect(()=>{s&&s.current&&f&&"animate"in s.current&&s.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[f,n,s])}var lE=["keyName","value","parentValue","expandKey","keys"],iE=["as","render"],Nc=i=>{var{keyName:n,value:r,parentValue:s,expandKey:o,keys:f}=i,p=ge(i,lE),{onCopied:h,enableClipboard:m}=gn(),d=hN(),v=d[o],[x,S]=T.useState(!1),{Copied:C={}}=Bt();if(m===!1||!v)return null;var E=K=>{K.stopPropagation();var ue="";typeof r=="number"&&r===1/0?ue="Infinity":typeof r=="number"&&isNaN(r)?ue="NaN":typeof r=="bigint"?ue=Xo(r):r instanceof Date?ue=r.toLocaleString():ue=JSON.stringify(r,(ee,F)=>typeof F=="bigint"?Xo(F):F,2),h&&h(ue,r),S(!0);var re=navigator.clipboard||{writeText(ee){return new Promise((F,ne)=>{var pe=document.createElement("textarea");pe.style.position="absolute",pe.style.opacity="0",pe.style.left="-99999999px",pe.value=ee,document.body.appendChild(pe),pe.select(),document.execCommand("copy")?F():ne(),pe.remove()})}};re.writeText(ue).then(()=>{var ee=setTimeout(()=>{S(!1),clearTimeout(ee)},3e3)}).catch(ee=>{})},z={style:{display:"inline-flex"},fill:x?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:E},{render:B}=C,U=ge(C,iE),D=M({},U,p,z,{style:M({},U.style,p.style,z.style)}),G=B&&typeof B=="function",J=G&&B(M({},D,{"data-copied":x}),{value:r,keyName:n,keys:f,parentValue:s});return J||(x?b.jsx("svg",M({viewBox:"0 0 32 36"},D,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):b.jsx("svg",M({viewBox:"0 0 32 36"},D,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};Nc.displayName="JVR.Copied";function jg(){var i=T.useRef(null);return i.current===null&&(i.current="custom-id-"+Math.random().toString(36).substr(2,9)),i.current}var Ag=i=>{var n,{value:r,expandKey:s="",level:o,keys:f=[]}=i,p=ss(),{objectSortKeys:h,indentWidth:m,collapsed:d,shouldExpandNodeInitially:v}=gn(),x=Array.isArray(r),S=typeof d=="boolean"?d:typeof d=="number"?o>d:!1,C=(n=p[s])!=null?n:S;if(p[s]===void 0&&v&&v(C,{value:r,keys:f,level:o})||C)return null;var E=x?Object.entries(r).map(B=>[Number(B[0]),B[1]]):Object.entries(r);h&&(E=h===!0?E.sort((B,U)=>{var[D]=B,[G]=U;return typeof D=="string"&&typeof G=="string"?D.localeCompare(G):0}):E.sort((B,U)=>{var[D,G]=B,[J,K]=U;return typeof D=="string"&&typeof J=="string"?h(D,J,G,K):0}));var z={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:m,marginLeft:6};return b.jsx("div",{className:"w-rjv-wrap",style:z,children:E.map((B,U)=>{var[D,G]=B;return b.jsx(Og,{parentValue:r,keyName:D,keys:[...f,D],value:G,level:o},U)})})};Ag.displayName="JVR.KeyValues";var Ec=i=>{var{keyName:n,parentValue:r,keys:s,value:o}=i,{highlightUpdates:f}=gn(),p=typeof n=="number",h=T.useRef(null);nE({value:o,highlightUpdates:f,highlightContainer:h});var m={keyName:n,value:o,keys:s,parentValue:r};return b.jsxs(T.Fragment,{children:[b.jsxs("span",{ref:h,children:[b.jsx(Ko,M({isNumber:p,"data-placement":"left"},m)),b.jsx(Tg,M({},m,{children:n})),b.jsx(Ko,M({isNumber:p,"data-placement":"right"},m))]}),b.jsx(rg,M({},m))]})};Ec.displayName="JVR.KayName";var Og=i=>{var{keyName:n,value:r,parentValue:s,level:o=0,keys:f=[]}=i,p=qm(),h=jg(),m=Array.isArray(r),d=r instanceof Set,v=r instanceof Map,x=r instanceof Date,S=r instanceof URL,C=r&&typeof r=="object"&&!m&&!d&&!v&&!x&&!S,E=C||m||d||v;if(E){var z=d?Array.from(r):v?Object.fromEntries(r):r;return b.jsx(Rc,{keyName:n,value:z,parentValue:s,initialValue:r,keys:f,level:o+1})}var B={onMouseEnter:()=>p({[h]:!0}),onMouseLeave:()=>p({[h]:!1})};return b.jsxs(Cg,M({className:"w-rjv-line",value:r,keyName:n,keys:f,parentValue:s},B,{children:[b.jsx(Ec,{keyName:n,value:r,keys:f,parentValue:s}),b.jsx(Eg,{keyName:n,value:r}),b.jsx(Nc,{keyName:n,value:r,keys:f,parentValue:s,expandKey:h})]}))};Og.displayName="JVR.KeyValuesItem";var rE=["value","keyName"],sE=["as","render"],kg=i=>{var{CountInfoExtra:n={}}=Bt();return sl(n,i,"CountInfoExtra"),null};kg.displayName="JVR.CountInfoExtra";var Lg=i=>{var{value:n={},keyName:r}=i,s=ge(i,rE),{CountInfoExtra:o={}}=Bt(),{as:f,render:p}=o,h=ge(o,sE);if(!p&&!h.children)return null;var m=f||"span",d=p&&typeof p=="function",v=M({},h,s),x=d&&p(v,{value:n,keyName:r});return x||b.jsx(m,M({},v))};Lg.displayName="JVR.CountInfoExtraComps";var uE=["value","keyName"],oE=["as","render"],zg=i=>{var{CountInfo:n={}}=Bt();return sl(n,i,"CountInfo"),null};zg.displayName="JVR.CountInfo";var Dg=i=>{var{value:n={},keyName:r}=i,s=ge(i,uE),{displayObjectSize:o}=gn(),{CountInfo:f={}}=Bt();if(!o)return null;var{as:p,render:h}=f,m=ge(f,oE),d=p||"span";m.style=M({},m.style,i.style);var v=Object.keys(n).length;m.children||(m.children=v+" item"+(v===1?"":"s"));var x=M({},m,s),S=h&&typeof h=="function",C=S&&h(M({},x,{"data-length":v}),{value:n,keyName:r});return C||b.jsx(d,M({},x))};Dg.displayName="JVR.CountInfoComp";var cE=["as","render"],_g=i=>{var{Ellipsis:n={}}=Bt();return sl(n,i,"Ellipsis"),null};_g.displayName="JVR.Ellipsis";var Mg=i=>{var{isExpanded:n,value:r,keyName:s}=i,{Ellipsis:o={}}=Bt(),{as:f,render:p}=o,h=ge(o,cE),m=f||"span",d=p&&typeof p=="function"&&p(M({},h,{"data-expanded":n}),{value:r,keyName:s});return d||(!n||typeof r=="object"&&Object.keys(r).length==0?null:b.jsx(m,M({},h)))};Mg.displayName="JVR.EllipsisComp";var Ug=i=>{var n,{keyName:r,expandKey:s,keys:o=[],initialValue:f,value:p,parentValue:h,level:m}=i,d=ss(),v=vN(),{onExpand:x,collapsed:S,shouldExpandNodeInitially:C}=gn(),E=Array.isArray(p),z=p instanceof Set,B=typeof S=="boolean"?S:typeof S=="number"?m>S:!1,U=typeof p=="object",D=(n=d[s])!=null?n:B,G=C&&C(D,{value:p,keys:o,level:m});d[s]===void 0&&G!==void 0&&(D=G);var J=()=>{var pe={expand:!D,value:p,keyid:s,keyName:r};x&&x(pe),v({[s]:pe.expand})},K={display:"inline-flex",alignItems:"center"},ue={transform:"rotate("+(D?"-90":"0")+"deg)",transition:"all 0.3s"},re=Object.keys(p).length,ee=re!==0&&(E||z||U),F={style:K};ee&&(F.onClick=J);var ne={keyName:r,value:p,keys:o,parentValue:h};return b.jsxs("span",M({},F,{children:[ee&&b.jsx(sg,M({style:ue,expandKey:s},ne)),(r||typeof r=="number")&&b.jsx(Ec,M({},ne)),b.jsx(cg,{value:f,keyName:r}),b.jsx(fg,{value:f,keyName:r}),b.jsx(ug,M({isBrackets:E||z},ne)),b.jsx(Mg,{keyName:r,value:p,isExpanded:D}),b.jsx(xc,M({isVisiable:D||!ee,isBrackets:E||z},ne)),b.jsx(Dg,{value:p,keyName:r}),b.jsx(Lg,{value:p,keyName:r}),b.jsx(Nc,{keyName:r,value:p,expandKey:s,parentValue:h,keys:o})]}))};Ug.displayName="JVR.NestedOpen";var fE=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],Rc=T.forwardRef((i,n)=>{var{className:r="",parentValue:s,level:o=1,value:f,initialValue:p,keys:h,keyName:m}=i,d=ge(i,fE),v=qm(),x=jg(),S=[r,"w-rjv-inner"].filter(Boolean).join(" "),C={onMouseEnter:()=>v({[x]:!0}),onMouseLeave:()=>v({[x]:!1})};return b.jsxs("div",M({className:S,ref:n},d,C,{children:[b.jsx(Ug,{expandKey:x,value:f,level:o,keys:h,parentValue:s,keyName:m,initialValue:p}),b.jsx(Ag,{expandKey:x,value:f,level:o,keys:h,parentValue:s,keyName:m}),b.jsx(og,{expandKey:x,value:f,level:o,keys:h})]}))});Rc.displayName="JVR.Container";var Bg=i=>{var{BraceLeft:n={}}=mt();return Qa(n,i,"BraceLeft"),null};Bg.displayName="JVR.BraceLeft";var Hg=i=>{var{BraceRight:n={}}=mt();return Qa(n,i,"BraceRight"),null};Hg.displayName="JVR.BraceRight";var Vg=i=>{var{BracketsLeft:n={}}=mt();return Qa(n,i,"BracketsLeft"),null};Vg.displayName="JVR.BracketsLeft";var $g=i=>{var{BracketsRight:n={}}=mt();return Qa(n,i,"BracketsRight"),null};$g.displayName="JVR.BracketsRight";var qg=i=>{var{Arrow:n={}}=mt();return Qa(n,i,"Arrow"),null};qg.displayName="JVR.Arrow";var Gg=i=>{var{Colon:n={}}=mt();return Qa(n,i,"Colon"),null};Gg.displayName="JVR.Colon";var Yg=i=>{var{Quote:n={}}=mt();return Qa(n,i,"Quote"),null};Yg.displayName="JVR.Quote";var Qg=i=>{var{ValueQuote:n={}}=mt();return Qa(n,i,"ValueQuote"),null};Qg.displayName="JVR.ValueQuote";var Zg=i=>{var{Bigint:n={}}=Le();return Ct(n,i,"Bigint"),null};Zg.displayName="JVR.Bigint";var Kg=i=>{var{Date:n={}}=Le();return Ct(n,i,"Date"),null};Kg.displayName="JVR.Date";var Xg=i=>{var{False:n={}}=Le();return Ct(n,i,"False"),null};Xg.displayName="JVR.False";var Jg=i=>{var{Float:n={}}=Le();return Ct(n,i,"Float"),null};Jg.displayName="JVR.Float";var Fg=i=>{var{Int:n={}}=Le();return Ct(n,i,"Int"),null};Fg.displayName="JVR.Int";var Pg=i=>{var{Map:n={}}=Le();return Ct(n,i,"Map"),null};Pg.displayName="JVR.Map";var Wg=i=>{var{Nan:n={}}=Le();return Ct(n,i,"Nan"),null};Wg.displayName="JVR.Nan";var Ig=i=>{var{Null:n={}}=Le();return Ct(n,i,"Null"),null};Ig.displayName="JVR.Null";var ev=i=>{var{Set:n={}}=Le();return Ct(n,i,"Set"),null};ev.displayName="JVR.Set";var tv=i=>{var{Str:n={}}=Le();return Ct(n,i,"Str"),null};tv.displayName="JVR.StringText";var av=i=>{var{True:n={}}=Le();return Ct(n,i,"True"),null};av.displayName="JVR.True";var nv=i=>{var{Undefined:n={}}=Le();return Ct(n,i,"Undefined"),null};nv.displayName="JVR.Undefined";var lv=i=>{var{Url:n={}}=Le();return Ct(n,i,"Url"),null};lv.displayName="JVR.Url";var iv=i=>{var{Copied:n={}}=Bt();return sl(n,i,"Copied"),null};iv.displayName="JVR.Copied";var dE=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],Te=T.forwardRef((i,n)=>{var{className:r="",style:s,value:o,children:f,collapsed:p,shouldExpandNodeInitially:h,indentWidth:m=15,displayObjectSize:d=!0,shortenTextAfterLength:v=30,stringEllipsis:x,highlightUpdates:S=!0,enableClipboard:C=!0,displayDataTypes:E=!0,objectSortKeys:z=!1,onExpand:B,onCopied:U}=i,D=ge(i,dE),G=M({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},s),J=["w-json-view-container","w-rjv",r].filter(Boolean).join(" ");return b.jsxs(ig,{initialState:{value:o,objectSortKeys:z,indentWidth:m,shouldExpandNodeInitially:h,displayObjectSize:d,collapsed:p,enableClipboard:C,shortenTextAfterLength:v,stringEllipsis:x,highlightUpdates:S,onCopied:U,onExpand:B},initialTypes:{displayDataTypes:E},children:[b.jsx(Rc,M({value:o},D,{ref:n,className:J,style:G})),f]})});Te.Bigint=Zg;Te.Date=Kg;Te.False=Xg;Te.Float=Jg;Te.Int=Fg;Te.Map=Pg;Te.Nan=Wg;Te.Null=Ig;Te.Set=ev;Te.String=tv;Te.True=av;Te.Undefined=nv;Te.Url=lv;Te.ValueQuote=Qg;Te.Arrow=qg;Te.Colon=Gg;Te.Quote=Yg;Te.Ellipsis=_g;Te.BraceLeft=Bg;Te.BraceRight=Hg;Te.BracketsLeft=Vg;Te.BracketsRight=$g;Te.Copied=iv;Te.CountInfo=zg;Te.CountInfoExtra=kg;Te.KeyName=Rg;Te.Row=wg;Te.displayName="JVR.JsonView";var lm={"--w-rjv-font-family":"monospace","--w-rjv-color":"#002b36","--w-rjv-key-string":"#002b36","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ebebeb","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#236a7c","--w-rjv-colon-color":"#002b36","--w-rjv-brackets-color":"#236a7c","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};function hE(i){const n=Object.keys(i),r=n.length>0?n[0]:void 0;return(s,o,f={})=>{if(!r)return f.default??s;const p=i[o]??i[r],h=s.split(".");let m=p;for(const d of h){if(typeof m=="string"||!m||!(d in m))return f.default??s;m=m[d]}return typeof m=="string"?m:f.default??s}}function pE({siteSchema:i,schemaTranslate:n}){const r=new Set;return b.jsx("ul",{children:b.jsx(Jo,{schema:i,schemaT:n,typeName:"home",displayedNodeTypeNames:r})})}function Jo({schema:i,schemaT:n,typeName:r,depth:s=0,displayedNodeTypeNames:o}){const{i18n:f}=ot(),p=mE(i,r);if(!p)return null;const h=p.routingChildren||[],m=p.regularChildren||[],d=p.lists||[],v=p.documentKind==="routing",x=n(`nodeTypes.${r}.label`,f.language,{default:r});return o.has(r)?b.jsx("li",{children:b.jsxs("div",{children:[v?b.jsx("strong",{children:x}):x," (",b.jsx("code",{children:r}),")"]})}):(o.add(r),b.jsxs("li",{children:[b.jsxs("div",{children:[v?b.jsx("strong",{children:x}):x," (",b.jsx("code",{children:r}),")"]}),d.map(S=>b.jsxs("div",{style:{marginLeft:"30px",color:"#999",fontStyle:"italic"},children:[n(`nodeTypes.${r}.lists.${S.listName}.label`,f.language,{default:S.listName})," ","(",b.jsx("code",{children:S.listName})," [",b.jsx("code",{children:S.parts.join("</code>, <code>")}),"])"]},S.listName)),h.length>0&&b.jsx("ul",{children:h.map(S=>b.jsx(Jo,{schema:i,schemaT:n,typeName:S,depth:s+1,displayedNodeTypeNames:o},S))}),m.length>0&&b.jsx("ul",{children:m.map(S=>b.jsx(Jo,{schema:i,schemaT:n,typeName:S,depth:s+1,displayedNodeTypeNames:o},S))})]}))}function mE(i,n){var r;return(r=i.nodeTypes)==null?void 0:r.find(s=>s.kind==="document"&&s.typeName===n)}const qr=Te;function gE({step:i}){const{t:n}=ot(),[r,s]=T.useState("tree"),{siteSchema:o,l10n:f}=i,p=hE(f),h=(m,d)=>d.keys.length===1&&d.keys[0]==="plugins";return b.jsxs("div",{className:"SchemaViewer",children:[b.jsxs("div",{className:"SchemaViewer-tabs",children:[b.jsx(rt,{className:`SchemaViewer-tab ${r==="tree"?"active":""}`,onClick:()=>s("tree"),children:n("treeView")}),b.jsx(rt,{className:`SchemaViewer-tab ${r==="schema"?"active":""}`,onClick:()=>s("schema"),children:n("siteSchema")}),b.jsx(rt,{className:`SchemaViewer-tab ${r==="locales"?"active":""}`,onClick:()=>s("locales"),children:n("labels")})]}),b.jsxs("div",{className:"SchemaViewer-main",children:[b.jsx("div",{className:"SchemaViewer-content",style:{display:r==="tree"?"block":"none"},children:b.jsx(pE,{siteSchema:o,schemaTranslate:p})}),b.jsx("div",{className:"SchemaViewer-content",style:{display:r==="locales"?"block":"none"},children:b.jsx(qr,{value:f,style:lm,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0})}),b.jsx("div",{className:"SchemaViewer-content",style:{display:r==="schema"?"block":"none"},children:b.jsxs(qr,{value:o,style:lm,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0,shouldExpandNodeInitially:h,children:[b.jsx(qr.Colon,{render:(m,{parentValue:d})=>Array.isArray(d)&&m.children===":"?b.jsx("span",{}):b.jsx("span",{...m})}),b.jsx(qr.KeyName,{render:({...m},{parentValue:d})=>Array.isArray(d)&&Number.isFinite(m.children)?b.jsx("span",{}):b.jsx("span",{...m})})]})})]})]})}function vE({step:i}){const{t:n}=ot(),{workSession:r,appendNewStep:s}=pn(),[o,f]=T.useState(!1),[p,h]=T.useState(!1),[m,d]=T.useState(!1),[v,x]=T.useState(void 0),S=rl(),C=()=>{f(!o)},E=async B=>{if(!r)return;d(!0),x(void 0);const U=vi();if(!U){x(n("sessionExpired")),d(!1);return}try{const D=await Ga({command:"updateSiteSchema",sessionToken:U,prompt:B,fromStepNumber:i.stepNumber});D.success&&D.result?(f(!1),s(D.result),S(`/step/${D.result.stepNumber}`)):x(n("promptSubmissionFailed"))}catch(D){console.error("Error updating schema:",D),x(n("errorOccurred"))}finally{d(!1)}},z=async({withSampleData:B})=>{if(!r)return;d(!0),x(void 0),h(!1);const U=vi();if(!U){x(n("sessionExpired")),d(!1);return}try{const D=await Ga({command:"generateSite",sessionToken:U,fromStepNumber:i.stepNumber,withSampleData:B});D.success&&D.result?(s(D.result),S(`/step/${D.result.stepNumber}`)):x(n("generationFailed"))}catch(D){console.error("Error generating site:",D),x(n("errorOccurred"))}finally{d(!1)}};return b.jsx(wt,{children:b.jsxs("div",{className:"CompletedStep",children:[b.jsx(gE,{step:i}),i.explanation&&b.jsx(Ni,{content:i.explanation,title:n("explanation")}),b.jsxs("div",{className:"CompletedStep-actions",children:[b.jsx(rt,{onClick:C,className:"CompletedStep-button",children:n("modifySchema")}),b.jsx(rt,{onClick:()=>h(!0),className:"CompletedStep-button",children:n("generateTheWebsite")})]}),o&&b.jsxs("div",{className:"CompletedStep-updateForm",children:[b.jsx("h3",{children:n("updateSchema")}),b.jsx(jm,{placeholder:n("updatePromptPlaceholder"),submitLabel:n("modifySchema"),onSubmit:E,isLoading:m,error:v})]}),b.jsx(fN,{isOpen:p,title:n("generateTheWebsite"),message:n("aboutToGenerateWebsite"),confirmLabel:n("confirm"),onConfirm:z,onCancel:()=>h(!1)}),v&&!o&&b.jsx("div",{className:"Alert error",children:b.jsx("p",{children:v})})]})})}function yE({step:i}){const{t:n}=ot();return b.jsx(wt,{children:b.jsxs("div",{className:"ErrorStep",children:[b.jsx("p",{className:"ErrorStep-message",children:n("stepFailed")}),i.explanation&&b.jsx(Ni,{content:i.explanation,variant:"error"})]})})}function bE({step:i}){const{t:n}=ot(),r=()=>{const s=`
116
+ Please report this to https://github.com/markedjs/marked.`,i){const s="<p>An error occurred:</p><pre>"+Pt(r.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}},dn=new oN;function Re(i,n){return dn.parse(i,n)}Re.options=Re.setOptions=function(i){return dn.setOptions(i),Re.defaults=dn.defaults,Am(Re.defaults),Re};Re.getDefaults=rc;Re.defaults=mn;Re.use=function(...i){return dn.use(...i),Re.defaults=dn.defaults,Am(Re.defaults),Re};Re.walkTokens=function(i,n){return dn.walkTokens(i,n)};Re.parseInline=dn.parseInline;Re.Parser=ma;Re.parser=ma.parse;Re.Renderer=es;Re.TextRenderer=pc;Re.Lexer=pa;Re.lexer=pa.lex;Re.Tokenizer=Ir;Re.Hooks=Kr;Re.parse=Re;Re.options;Re.setOptions;Re.use;Re.walkTokens;Re.parseInline;ma.parse;pa.lex;function cN(i){if(!i)return"";try{return Re.parse(i,{async:!1,gfm:!0,breaks:!0})}catch(n){return console.error("Error rendering markdown:",n),i}}function Ni({content:i,title:n,variant:r="default",className:s="",children:o}){const f=["Explanation",`Explanation-${r}`,s].filter(Boolean).join(" ");return b.jsxs("div",{className:f,children:[n&&b.jsx("h3",{className:"Explanation-title",children:n}),b.jsx("div",{className:"Explanation-content markdown-content",dangerouslySetInnerHTML:{__html:cN(i)}}),o]})}function fN({isOpen:i,title:n,message:r,confirmLabel:s,cancelLabel:o,onConfirm:f,onCancel:p}){const{t:h}=ot(),[m,d]=T.useState(!0);if(!i)return null;const v=async()=>{await f({withSampleData:m})},x=S=>{S.key==="Escape"&&p()};return b.jsxs("div",{className:"ConfirmDialog",children:[b.jsx("div",{className:"ConfirmDialog-backdrop",onClick:p,onKeyDown:x,tabIndex:0,role:"button","aria-label":"Close dialog"}),b.jsxs("div",{className:"ConfirmDialog-container",children:[b.jsx("div",{className:"ConfirmDialog-header",children:b.jsx("h3",{className:"ConfirmDialog-title",children:n})}),b.jsxs("div",{className:"ConfirmDialog-body",children:[b.jsx("p",{children:r}),b.jsx("div",{className:"ConfirmDialog-checkbox mt-3",children:b.jsxs("label",{children:[b.jsx("input",{type:"checkbox",checked:m,onChange:S=>d(S.target.checked)}),b.jsx("span",{className:"ml-2",children:h("generateSiteWithData")})]})})]}),b.jsxs("div",{className:"ConfirmDialog-footer",children:[b.jsx(rt,{onClick:p,severity:"secondary",className:"ConfirmDialog-button",children:o||h("cancel")}),b.jsx(rt,{onClick:v,className:"ConfirmDialog-button",children:s||h("confirm")})]})]})]})}function M(){return M=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var s in r)({}).hasOwnProperty.call(r,s)&&(i[s]=r[s])}return i},M.apply(null,arguments)}function ge(i,n){if(i==null)return{};var r={};for(var s in i)if({}.hasOwnProperty.call(i,s)){if(n.indexOf(s)!==-1)continue;r[s]=i[s]}return r}var Vm={},$m=T.createContext(Vm),dN=(i,n)=>M({},i,n),hN=()=>T.useContext($m),mc=T.createContext(()=>{});mc.displayName="JVR.DispatchShowTools";function pN(){return T.useReducer(dN,Vm)}function qm(){return T.useContext(mc)}var Gm=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx($m.Provider,{value:n,children:b.jsx(mc.Provider,{value:r,children:s})})};Gm.displayName="JVR.ShowTools";var Ym={},Qm=T.createContext(Ym),mN=(i,n)=>M({},i,n),ss=()=>T.useContext(Qm),gc=T.createContext(()=>{});gc.displayName="JVR.DispatchExpands";function gN(){return T.useReducer(mN,Ym)}function vN(){return T.useContext(gc)}var Zm=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(Qm.Provider,{value:n,children:b.jsx(gc.Provider,{value:r,children:s})})};Zm.displayName="JVR.Expands";var Km={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Xm=T.createContext(Km),yN=(i,n)=>M({},i,n),Le=()=>T.useContext(Xm),vc=T.createContext(()=>{});vc.displayName="JVR.DispatchTypes";function bN(){return T.useReducer(yN,Km)}function SN(){return T.useContext(vc)}function Jm(i){var{initial:n,dispatch:r,children:s}=i;return b.jsx(Xm.Provider,{value:n,children:b.jsx(vc.Provider,{value:r,children:s})})}Jm.displayName="JVR.Types";var xN=["style"];function Fm(i){var{style:n}=i,r=ge(i,xN),s=M({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},n);return b.jsx("svg",M({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:s},r,{children:b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Fm.displayName="JVR.TriangleArrow";var Pm={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:b.jsx(Fm,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},Wm=T.createContext(Pm),NN=(i,n)=>M({},i,n),mt=()=>T.useContext(Wm),yc=T.createContext(()=>{});yc.displayName="JVR.DispatchSymbols";function EN(){return T.useReducer(NN,Pm)}function RN(){return T.useContext(yc)}var Im=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(Wm.Provider,{value:n,children:b.jsx(yc.Provider,{value:r,children:s})})};Im.displayName="JVR.Symbols";var eg={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},tg=T.createContext(eg),TN=(i,n)=>M({},i,n),Bt=()=>T.useContext(tg),bc=T.createContext(()=>{});bc.displayName="JVR.DispatchSection";function wN(){return T.useReducer(TN,eg)}function CN(){return T.useContext(bc)}var ag=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(tg.Provider,{value:n,children:b.jsx(bc.Provider,{value:r,children:s})})};ag.displayName="JVR.Section";var ng={objectSortKeys:!1,indentWidth:15},Sc=T.createContext(ng);Sc.displayName="JVR.Context";var lg=T.createContext(()=>{});lg.displayName="JVR.DispatchContext";function jN(i,n){return M({},i,n)}var gn=()=>T.useContext(Sc),ig=i=>{var{children:n,initialState:r,initialTypes:s}=i,[o,f]=T.useReducer(jN,Object.assign({},ng,r)),[p,h]=pN(),[m,d]=gN(),[v,x]=bN(),[S,C]=EN(),[E,z]=wN();return T.useEffect(()=>f(M({},r)),[r]),b.jsx(Sc.Provider,{value:o,children:b.jsx(lg.Provider,{value:f,children:b.jsx(Gm,{initial:p,dispatch:h,children:b.jsx(Zm,{initial:m,dispatch:d,children:b.jsx(Jm,{initial:M({},v,s),dispatch:x,children:b.jsx(Im,{initial:S,dispatch:C,children:b.jsx(ag,{initial:E,dispatch:z,children:n})})})})})})})};ig.displayName="JVR.Provider";function AN(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var ON=["isNumber","value","parentValue","keyName","keys"],kN=["as","render"],LN=["as","render"],zN=["as","render"],DN=["as","style","render"],_N=["as","render"],MN=["as","render"],UN=["as","render"],BN=["as","render"],Ko=i=>{var{Quote:n={}}=mt(),{isNumber:r,value:s,parentValue:o,keyName:f,keys:p}=i,h=ge(i,ON);if(r)return null;var{as:m,render:d}=n,v=ge(n,kN),x=m||"span",S=M({},h,v),C={value:s,parentValue:o,keyName:f,keys:p||(f?[f]:[])},E=d&&typeof d=="function"&&d(S,C);return E||b.jsx(x,M({},S))};Ko.displayName="JVR.Quote";var yi=i=>{var{ValueQuote:n={}}=mt(),r=M({},(AN(i),i)),{as:s,render:o}=n,f=ge(n,LN),p=s||"span",h=M({},r,f),m=o&&typeof o=="function"&&o(h,{});return m||b.jsx(p,M({},h))};yi.displayName="JVR.ValueQuote";var rg=i=>{var{value:n,parentValue:r,keyName:s,keys:o}=i,{Colon:f={}}=mt(),{as:p,render:h}=f,m=ge(f,zN),d=p||"span",v=h&&typeof h=="function"&&h(m,{value:n,parentValue:r,keyName:s,keys:o||(s?[s]:[])});return v||b.jsx(d,M({},m))};rg.displayName="JVR.Colon";var sg=i=>{var{Arrow:n={}}=mt(),r=ss(),{expandKey:s,style:o,value:f,parentValue:p,keyName:h,keys:m}=i,d=!!r[s],{as:v,style:x,render:S}=n,C=ge(n,DN),E=v||"span",z=S&&typeof S=="function",B=M({},C,{"data-expanded":d,style:M({},x,o)}),U={value:f,parentValue:p,keyName:h,keys:m||(h?[h]:[])},D=z&&S(B,U);return D||b.jsx(E,M({},C,{style:M({},x,o)}))};sg.displayName="JVR.Arrow";var ug=i=>{var{isBrackets:n,value:r,parentValue:s,keyName:o,keys:f}=i,{BracketsLeft:p={},BraceLeft:h={}}=mt(),m={value:r,parentValue:s,keyName:o,keys:f||(o?[o]:[])};if(n){var{as:d,render:v}=p,x=ge(p,_N),S=d||"span",C=v&&typeof v=="function"&&v(x,m);return C||b.jsx(S,M({},x))}var{as:E,render:z}=h,B=ge(h,MN),U=E||"span",D=z&&typeof z=="function"&&z(B,m);return D||b.jsx(U,M({},B))};ug.displayName="JVR.BracketsOpen";var xc=i=>{var{isBrackets:n,isVisiable:r,value:s,parentValue:o,keyName:f,keys:p}=i,h={value:s,parentValue:o,keyName:f,keys:p||(f?[f]:[])};if(!r)return null;var{BracketsRight:m={},BraceRight:d={}}=mt();if(n){var{as:v,render:x}=m,S=ge(m,UN),C=v||"span",E=x&&typeof x=="function"&&x(S,h);return E||b.jsx(C,M({},S))}var{as:z,render:B}=d,U=ge(d,BN),D=z||"span",G=B&&typeof B=="function"&&B(U,h);return G||b.jsx(D,M({},U))};xc.displayName="JVR.BracketsClose";var og=i=>{var n,{value:r,expandKey:s,level:o,keys:f=[]}=i,p=ss(),h=Array.isArray(r),{collapsed:m,shouldExpandNodeInitially:d}=gn(),v=r instanceof Set,x=typeof m=="boolean"?m:typeof m=="number"?o>m:!1,S=(n=p[s])!=null?n:x,C=Object.keys(r).length;if(p[s]===void 0&&d&&d(S,{value:r,keys:f,level:o})||S||C===0)return null;var E={paddingLeft:4};return b.jsx("div",{style:E,children:b.jsx(xc,{isBrackets:h||v,isVisiable:!0})})};og.displayName="JVR.NestedClose";var HN=["as","render"],VN=["as","render"],$N=["as","render"],qN=["as","render"],GN=["as","render"],YN=["as","render"],QN=["as","render"],ZN=["as","render"],KN=["as","render"],XN=["as","render"],JN=["as","render"],FN=["as","render"],PN=["as","render"],Xo=i=>{if(i===void 0)return"0n";if(typeof i=="string")try{i=BigInt(i)}catch{return"0n"}return i?i.toString()+"n":"0n"},cg=i=>{var{value:n,keyName:r}=i,{Set:s={},displayDataTypes:o}=Le(),f=n instanceof Set;if(!f||!o)return null;var{as:p,render:h}=s,m=ge(s,HN),d=h&&typeof h=="function",v=d&&h(m,{type:"type",value:n,keyName:r});if(v)return v;var x=p||"span";return b.jsx(x,M({},m))};cg.displayName="JVR.SetComp";var fg=i=>{var{value:n,keyName:r}=i,{Map:s={},displayDataTypes:o}=Le(),f=n instanceof Map;if(!f||!o)return null;var{as:p,render:h}=s,m=ge(s,VN),d=h&&typeof h=="function",v=d&&h(m,{type:"type",value:n,keyName:r});if(v)return v;var x=p||"span";return b.jsx(x,M({},m))};fg.displayName="JVR.MapComp";var Yt={opacity:.75,paddingRight:4},dg=i=>{var{children:n="",keyName:r}=i,{Str:s={},displayDataTypes:o}=Le(),{shortenTextAfterLength:f=30,stringEllipsis:p="..."}=gn(),{as:h,render:m}=s,d=ge(s,$N),v=n,[x,S]=T.useState(f&&v.length>f);T.useEffect(()=>S(f&&v.length>f),[f]);var C=h||"span",E=M({},Yt,s.style||{});f>0&&(d.style=M({},d.style,{cursor:v.length<=f?"initial":"pointer"}),v.length>f&&(d.onClick=()=>{S(!x)}));var z=x?""+v.slice(0,f)+p:v,B=m&&typeof m=="function",U=B&&m(M({},d,{style:E}),{type:"type",value:n,keyName:r}),D=x?"w-rjv-value w-rjv-value-short":"w-rjv-value",G=B&&m(M({},d,{children:z,className:D}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(U||b.jsx(C,M({},d,{style:E}))),G||b.jsxs(T.Fragment,{children:[b.jsx(yi,{}),b.jsx(C,M({},d,{className:D,children:z})),b.jsx(yi,{})]})]})};dg.displayName="JVR.TypeString";var hg=i=>{var{children:n,keyName:r}=i,{True:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,qN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsx(m,M({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};hg.displayName="JVR.TypeTrue";var pg=i=>{var{children:n,keyName:r}=i,{False:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,GN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsx(m,M({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};pg.displayName="JVR.TypeFalse";var mg=i=>{var{children:n,keyName:r}=i,{Float:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,YN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsx(m,M({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};mg.displayName="JVR.TypeFloat";var gg=i=>{var{children:n,keyName:r}=i,{Int:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,QN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsx(m,M({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};gg.displayName="JVR.TypeInt";var vg=i=>{var{children:n,keyName:r}=i,{Bigint:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,ZN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsx(m,M({},h,{className:"w-rjv-value",children:Xo(n==null?void 0:n.toString())}))]})};vg.displayName="JVR.TypeFloat";var yg=i=>{var{children:n,keyName:r}=i,{Url:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,KN),m=f||"span",d=M({},Yt,s.style),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n==null?void 0:n.href,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsxs("a",M({href:n==null?void 0:n.href,target:"_blank"},h,{className:"w-rjv-value",children:[b.jsx(yi,{}),n==null?void 0:n.href,b.jsx(yi,{})]}))]})};yg.displayName="JVR.TypeUrl";var bg=i=>{var{children:n,keyName:r}=i,{Date:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,XN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=n instanceof Date?n.toLocaleString():n,C=v&&p(M({},h,{children:S,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),C||b.jsx(m,M({},h,{className:"w-rjv-value",children:S}))]})};bg.displayName="JVR.TypeDate";var Sg=i=>{var{children:n,keyName:r}=i,{Undefined:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,JN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S]})};Sg.displayName="JVR.TypeUndefined";var xg=i=>{var{children:n,keyName:r}=i,{Null:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,FN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S]})};xg.displayName="JVR.TypeNull";var Ng=i=>{var{children:n,keyName:r}=i,{Nan:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,PN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n==null?void 0:n.toString(),className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S]})};Ng.displayName="JVR.TypeNan";var WN=i=>Number(i)===i&&i%1!==0||isNaN(i),Eg=i=>{var{value:n,keyName:r}=i,s={keyName:r};return n instanceof URL?b.jsx(yg,M({},s,{children:n})):typeof n=="string"?b.jsx(dg,M({},s,{children:n})):n===!0?b.jsx(hg,M({},s,{children:n})):n===!1?b.jsx(pg,M({},s,{children:n})):n===null?b.jsx(xg,M({},s,{children:n})):n===void 0?b.jsx(Sg,M({},s,{children:n})):n instanceof Date?b.jsx(bg,M({},s,{children:n})):typeof n=="number"&&isNaN(n)?b.jsx(Ng,M({},s,{children:n})):typeof n=="number"&&WN(n)?b.jsx(mg,M({},s,{children:n})):typeof n=="bigint"?b.jsx(vg,M({},s,{children:n})):typeof n=="number"?b.jsx(gg,M({},s,{children:n})):null};Eg.displayName="JVR.Value";function Qa(i,n,r){var s=RN(),o=[i.className,n.className].filter(Boolean).join(" "),f=M({},i,n,{className:o,style:M({},i.style,n.style),children:n.children||i.children});T.useEffect(()=>s({[r]:f}),[n])}function Ct(i,n,r){var s=SN(),o=[i.className,n.className].filter(Boolean).join(" "),f=M({},i,n,{className:o,style:M({},i.style,n.style),children:n.children||i.children});T.useEffect(()=>s({[r]:f}),[n])}function sl(i,n,r){var s=CN(),o=[i.className,n.className].filter(Boolean).join(" "),f=M({},i,n,{className:o,style:M({},i.style,n.style),children:n.children||i.children});T.useEffect(()=>s({[r]:f}),[n])}var IN=["as","render"],Rg=i=>{var{KeyName:n={}}=Bt();return sl(n,i,"KeyName"),null};Rg.displayName="JVR.KeyName";var Tg=i=>{var{children:n,value:r,parentValue:s,keyName:o,keys:f}=i,p=typeof n=="number",h={color:p?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:m={}}=Bt(),{as:d,render:v}=m,x=ge(m,IN);x.style=M({},x.style,h);var S=d||"span",C=v&&typeof v=="function"&&v(M({},x,{children:n}),{value:r,parentValue:s,keyName:o,keys:f||(o?[o]:[])});return C||b.jsx(S,M({},x,{children:n}))};Tg.displayName="JVR.KeyNameComp";var eE=["children","value","parentValue","keyName","keys"],tE=["as","render","children"],wg=i=>{var{Row:n={}}=Bt();return sl(n,i,"Row"),null};wg.displayName="JVR.Row";var Cg=i=>{var{children:n,value:r,parentValue:s,keyName:o,keys:f}=i,p=ge(i,eE),{Row:h={}}=Bt(),{as:m,render:d}=h,v=ge(h,tE),x=m||"div",S=d&&typeof d=="function"&&d(M({},p,v,{children:n}),{value:r,keyName:o,parentValue:s,keys:f});return S||b.jsx(x,M({},p,v,{children:n}))};Cg.displayName="JVR.RowComp";function aE(i){var n=T.useRef();return T.useEffect(()=>{n.current=i}),n.current}function nE(i){var{value:n,highlightUpdates:r,highlightContainer:s}=i,o=aE(n),f=T.useMemo(()=>{if(!r||o===void 0)return!1;if(typeof n!=typeof o)return!0;if(typeof n=="number")return isNaN(n)&&isNaN(o)?!1:n!==o;if(Array.isArray(n)!==Array.isArray(o))return!0;if(typeof n=="object"||typeof n=="function")return!1;if(n!==o)return!0},[r,n]);T.useEffect(()=>{s&&s.current&&f&&"animate"in s.current&&s.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[f,n,s])}var lE=["keyName","value","parentValue","expandKey","keys"],iE=["as","render"],Nc=i=>{var{keyName:n,value:r,parentValue:s,expandKey:o,keys:f}=i,p=ge(i,lE),{onCopied:h,enableClipboard:m}=gn(),d=hN(),v=d[o],[x,S]=T.useState(!1),{Copied:C={}}=Bt();if(m===!1||!v)return null;var E=K=>{K.stopPropagation();var ue="";typeof r=="number"&&r===1/0?ue="Infinity":typeof r=="number"&&isNaN(r)?ue="NaN":typeof r=="bigint"?ue=Xo(r):r instanceof Date?ue=r.toLocaleString():ue=JSON.stringify(r,(ee,F)=>typeof F=="bigint"?Xo(F):F,2),h&&h(ue,r),S(!0);var re=navigator.clipboard||{writeText(ee){return new Promise((F,ne)=>{var pe=document.createElement("textarea");pe.style.position="absolute",pe.style.opacity="0",pe.style.left="-99999999px",pe.value=ee,document.body.appendChild(pe),pe.select(),document.execCommand("copy")?F():ne(),pe.remove()})}};re.writeText(ue).then(()=>{var ee=setTimeout(()=>{S(!1),clearTimeout(ee)},3e3)}).catch(ee=>{})},z={style:{display:"inline-flex"},fill:x?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:E},{render:B}=C,U=ge(C,iE),D=M({},U,p,z,{style:M({},U.style,p.style,z.style)}),G=B&&typeof B=="function",J=G&&B(M({},D,{"data-copied":x}),{value:r,keyName:n,keys:f,parentValue:s});return J||(x?b.jsx("svg",M({viewBox:"0 0 32 36"},D,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):b.jsx("svg",M({viewBox:"0 0 32 36"},D,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};Nc.displayName="JVR.Copied";function jg(){var i=T.useRef(null);return i.current===null&&(i.current="custom-id-"+Math.random().toString(36).substr(2,9)),i.current}var Ag=i=>{var n,{value:r,expandKey:s="",level:o,keys:f=[]}=i,p=ss(),{objectSortKeys:h,indentWidth:m,collapsed:d,shouldExpandNodeInitially:v}=gn(),x=Array.isArray(r),S=typeof d=="boolean"?d:typeof d=="number"?o>d:!1,C=(n=p[s])!=null?n:S;if(p[s]===void 0&&v&&v(C,{value:r,keys:f,level:o})||C)return null;var E=x?Object.entries(r).map(B=>[Number(B[0]),B[1]]):Object.entries(r);h&&(E=h===!0?E.sort((B,U)=>{var[D]=B,[G]=U;return typeof D=="string"&&typeof G=="string"?D.localeCompare(G):0}):E.sort((B,U)=>{var[D,G]=B,[J,K]=U;return typeof D=="string"&&typeof J=="string"?h(D,J,G,K):0}));var z={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:m,marginLeft:6};return b.jsx("div",{className:"w-rjv-wrap",style:z,children:E.map((B,U)=>{var[D,G]=B;return b.jsx(Og,{parentValue:r,keyName:D,keys:[...f,D],value:G,level:o},U)})})};Ag.displayName="JVR.KeyValues";var Ec=i=>{var{keyName:n,parentValue:r,keys:s,value:o}=i,{highlightUpdates:f}=gn(),p=typeof n=="number",h=T.useRef(null);nE({value:o,highlightUpdates:f,highlightContainer:h});var m={keyName:n,value:o,keys:s,parentValue:r};return b.jsxs(T.Fragment,{children:[b.jsxs("span",{ref:h,children:[b.jsx(Ko,M({isNumber:p,"data-placement":"left"},m)),b.jsx(Tg,M({},m,{children:n})),b.jsx(Ko,M({isNumber:p,"data-placement":"right"},m))]}),b.jsx(rg,M({},m))]})};Ec.displayName="JVR.KayName";var Og=i=>{var{keyName:n,value:r,parentValue:s,level:o=0,keys:f=[]}=i,p=qm(),h=jg(),m=Array.isArray(r),d=r instanceof Set,v=r instanceof Map,x=r instanceof Date,S=r instanceof URL,C=r&&typeof r=="object"&&!m&&!d&&!v&&!x&&!S,E=C||m||d||v;if(E){var z=d?Array.from(r):v?Object.fromEntries(r):r;return b.jsx(Rc,{keyName:n,value:z,parentValue:s,initialValue:r,keys:f,level:o+1})}var B={onMouseEnter:()=>p({[h]:!0}),onMouseLeave:()=>p({[h]:!1})};return b.jsxs(Cg,M({className:"w-rjv-line",value:r,keyName:n,keys:f,parentValue:s},B,{children:[b.jsx(Ec,{keyName:n,value:r,keys:f,parentValue:s}),b.jsx(Eg,{keyName:n,value:r}),b.jsx(Nc,{keyName:n,value:r,keys:f,parentValue:s,expandKey:h})]}))};Og.displayName="JVR.KeyValuesItem";var rE=["value","keyName"],sE=["as","render"],kg=i=>{var{CountInfoExtra:n={}}=Bt();return sl(n,i,"CountInfoExtra"),null};kg.displayName="JVR.CountInfoExtra";var Lg=i=>{var{value:n={},keyName:r}=i,s=ge(i,rE),{CountInfoExtra:o={}}=Bt(),{as:f,render:p}=o,h=ge(o,sE);if(!p&&!h.children)return null;var m=f||"span",d=p&&typeof p=="function",v=M({},h,s),x=d&&p(v,{value:n,keyName:r});return x||b.jsx(m,M({},v))};Lg.displayName="JVR.CountInfoExtraComps";var uE=["value","keyName"],oE=["as","render"],zg=i=>{var{CountInfo:n={}}=Bt();return sl(n,i,"CountInfo"),null};zg.displayName="JVR.CountInfo";var Dg=i=>{var{value:n={},keyName:r}=i,s=ge(i,uE),{displayObjectSize:o}=gn(),{CountInfo:f={}}=Bt();if(!o)return null;var{as:p,render:h}=f,m=ge(f,oE),d=p||"span";m.style=M({},m.style,i.style);var v=Object.keys(n).length;m.children||(m.children=v+" item"+(v===1?"":"s"));var x=M({},m,s),S=h&&typeof h=="function",C=S&&h(M({},x,{"data-length":v}),{value:n,keyName:r});return C||b.jsx(d,M({},x))};Dg.displayName="JVR.CountInfoComp";var cE=["as","render"],_g=i=>{var{Ellipsis:n={}}=Bt();return sl(n,i,"Ellipsis"),null};_g.displayName="JVR.Ellipsis";var Mg=i=>{var{isExpanded:n,value:r,keyName:s}=i,{Ellipsis:o={}}=Bt(),{as:f,render:p}=o,h=ge(o,cE),m=f||"span",d=p&&typeof p=="function"&&p(M({},h,{"data-expanded":n}),{value:r,keyName:s});return d||(!n||typeof r=="object"&&Object.keys(r).length==0?null:b.jsx(m,M({},h)))};Mg.displayName="JVR.EllipsisComp";var Ug=i=>{var n,{keyName:r,expandKey:s,keys:o=[],initialValue:f,value:p,parentValue:h,level:m}=i,d=ss(),v=vN(),{onExpand:x,collapsed:S,shouldExpandNodeInitially:C}=gn(),E=Array.isArray(p),z=p instanceof Set,B=typeof S=="boolean"?S:typeof S=="number"?m>S:!1,U=typeof p=="object",D=(n=d[s])!=null?n:B,G=C&&C(D,{value:p,keys:o,level:m});d[s]===void 0&&G!==void 0&&(D=G);var J=()=>{var pe={expand:!D,value:p,keyid:s,keyName:r};x&&x(pe),v({[s]:pe.expand})},K={display:"inline-flex",alignItems:"center"},ue={transform:"rotate("+(D?"-90":"0")+"deg)",transition:"all 0.3s"},re=Object.keys(p).length,ee=re!==0&&(E||z||U),F={style:K};ee&&(F.onClick=J);var ne={keyName:r,value:p,keys:o,parentValue:h};return b.jsxs("span",M({},F,{children:[ee&&b.jsx(sg,M({style:ue,expandKey:s},ne)),(r||typeof r=="number")&&b.jsx(Ec,M({},ne)),b.jsx(cg,{value:f,keyName:r}),b.jsx(fg,{value:f,keyName:r}),b.jsx(ug,M({isBrackets:E||z},ne)),b.jsx(Mg,{keyName:r,value:p,isExpanded:D}),b.jsx(xc,M({isVisiable:D||!ee,isBrackets:E||z},ne)),b.jsx(Dg,{value:p,keyName:r}),b.jsx(Lg,{value:p,keyName:r}),b.jsx(Nc,{keyName:r,value:p,expandKey:s,parentValue:h,keys:o})]}))};Ug.displayName="JVR.NestedOpen";var fE=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],Rc=T.forwardRef((i,n)=>{var{className:r="",parentValue:s,level:o=1,value:f,initialValue:p,keys:h,keyName:m}=i,d=ge(i,fE),v=qm(),x=jg(),S=[r,"w-rjv-inner"].filter(Boolean).join(" "),C={onMouseEnter:()=>v({[x]:!0}),onMouseLeave:()=>v({[x]:!1})};return b.jsxs("div",M({className:S,ref:n},d,C,{children:[b.jsx(Ug,{expandKey:x,value:f,level:o,keys:h,parentValue:s,keyName:m,initialValue:p}),b.jsx(Ag,{expandKey:x,value:f,level:o,keys:h,parentValue:s,keyName:m}),b.jsx(og,{expandKey:x,value:f,level:o,keys:h})]}))});Rc.displayName="JVR.Container";var Bg=i=>{var{BraceLeft:n={}}=mt();return Qa(n,i,"BraceLeft"),null};Bg.displayName="JVR.BraceLeft";var Hg=i=>{var{BraceRight:n={}}=mt();return Qa(n,i,"BraceRight"),null};Hg.displayName="JVR.BraceRight";var Vg=i=>{var{BracketsLeft:n={}}=mt();return Qa(n,i,"BracketsLeft"),null};Vg.displayName="JVR.BracketsLeft";var $g=i=>{var{BracketsRight:n={}}=mt();return Qa(n,i,"BracketsRight"),null};$g.displayName="JVR.BracketsRight";var qg=i=>{var{Arrow:n={}}=mt();return Qa(n,i,"Arrow"),null};qg.displayName="JVR.Arrow";var Gg=i=>{var{Colon:n={}}=mt();return Qa(n,i,"Colon"),null};Gg.displayName="JVR.Colon";var Yg=i=>{var{Quote:n={}}=mt();return Qa(n,i,"Quote"),null};Yg.displayName="JVR.Quote";var Qg=i=>{var{ValueQuote:n={}}=mt();return Qa(n,i,"ValueQuote"),null};Qg.displayName="JVR.ValueQuote";var Zg=i=>{var{Bigint:n={}}=Le();return Ct(n,i,"Bigint"),null};Zg.displayName="JVR.Bigint";var Kg=i=>{var{Date:n={}}=Le();return Ct(n,i,"Date"),null};Kg.displayName="JVR.Date";var Xg=i=>{var{False:n={}}=Le();return Ct(n,i,"False"),null};Xg.displayName="JVR.False";var Jg=i=>{var{Float:n={}}=Le();return Ct(n,i,"Float"),null};Jg.displayName="JVR.Float";var Fg=i=>{var{Int:n={}}=Le();return Ct(n,i,"Int"),null};Fg.displayName="JVR.Int";var Pg=i=>{var{Map:n={}}=Le();return Ct(n,i,"Map"),null};Pg.displayName="JVR.Map";var Wg=i=>{var{Nan:n={}}=Le();return Ct(n,i,"Nan"),null};Wg.displayName="JVR.Nan";var Ig=i=>{var{Null:n={}}=Le();return Ct(n,i,"Null"),null};Ig.displayName="JVR.Null";var ev=i=>{var{Set:n={}}=Le();return Ct(n,i,"Set"),null};ev.displayName="JVR.Set";var tv=i=>{var{Str:n={}}=Le();return Ct(n,i,"Str"),null};tv.displayName="JVR.StringText";var av=i=>{var{True:n={}}=Le();return Ct(n,i,"True"),null};av.displayName="JVR.True";var nv=i=>{var{Undefined:n={}}=Le();return Ct(n,i,"Undefined"),null};nv.displayName="JVR.Undefined";var lv=i=>{var{Url:n={}}=Le();return Ct(n,i,"Url"),null};lv.displayName="JVR.Url";var iv=i=>{var{Copied:n={}}=Bt();return sl(n,i,"Copied"),null};iv.displayName="JVR.Copied";var dE=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],Te=T.forwardRef((i,n)=>{var{className:r="",style:s,value:o,children:f,collapsed:p,shouldExpandNodeInitially:h,indentWidth:m=15,displayObjectSize:d=!0,shortenTextAfterLength:v=30,stringEllipsis:x,highlightUpdates:S=!0,enableClipboard:C=!0,displayDataTypes:E=!0,objectSortKeys:z=!1,onExpand:B,onCopied:U}=i,D=ge(i,dE),G=M({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},s),J=["w-json-view-container","w-rjv",r].filter(Boolean).join(" ");return b.jsxs(ig,{initialState:{value:o,objectSortKeys:z,indentWidth:m,shouldExpandNodeInitially:h,displayObjectSize:d,collapsed:p,enableClipboard:C,shortenTextAfterLength:v,stringEllipsis:x,highlightUpdates:S,onCopied:U,onExpand:B},initialTypes:{displayDataTypes:E},children:[b.jsx(Rc,M({value:o},D,{ref:n,className:J,style:G})),f]})});Te.Bigint=Zg;Te.Date=Kg;Te.False=Xg;Te.Float=Jg;Te.Int=Fg;Te.Map=Pg;Te.Nan=Wg;Te.Null=Ig;Te.Set=ev;Te.String=tv;Te.True=av;Te.Undefined=nv;Te.Url=lv;Te.ValueQuote=Qg;Te.Arrow=qg;Te.Colon=Gg;Te.Quote=Yg;Te.Ellipsis=_g;Te.BraceLeft=Bg;Te.BraceRight=Hg;Te.BracketsLeft=Vg;Te.BracketsRight=$g;Te.Copied=iv;Te.CountInfo=zg;Te.CountInfoExtra=kg;Te.KeyName=Rg;Te.Row=wg;Te.displayName="JVR.JsonView";var lm={"--w-rjv-font-family":"monospace","--w-rjv-color":"#002b36","--w-rjv-key-string":"#002b36","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ebebeb","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#236a7c","--w-rjv-colon-color":"#002b36","--w-rjv-brackets-color":"#236a7c","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};function hE(i){const n=Object.keys(i),r=n.length>0?n[0]:void 0;return(s,o,f={})=>{if(!r)return f.default??s;const p=i[o]??i[r],h=s.split(".");let m=p;for(const d of h){if(typeof m=="string"||!m||!Object.prototype.hasOwnProperty.call(m,d))return f.default??s;m=m[d]}return typeof m=="string"?m:f.default??s}}function pE({siteSchema:i,schemaTranslate:n}){const r=new Set;return b.jsx("ul",{children:b.jsx(Jo,{schema:i,schemaT:n,typeName:"home",displayedNodeTypeNames:r})})}function Jo({schema:i,schemaT:n,typeName:r,depth:s=0,displayedNodeTypeNames:o}){const{i18n:f}=ot(),p=mE(i,r);if(!p)return null;const h=p.routingChildren||[],m=p.regularChildren||[],d=p.lists||[],v=p.documentKind==="routing",x=n(`nodeTypes.${r}.label`,f.language,{default:r});return o.has(r)?b.jsx("li",{children:b.jsxs("div",{children:[v?b.jsx("strong",{children:x}):x," (",b.jsx("code",{children:r}),")"]})}):(o.add(r),b.jsxs("li",{children:[b.jsxs("div",{children:[v?b.jsx("strong",{children:x}):x," (",b.jsx("code",{children:r}),")"]}),d.map(S=>b.jsxs("div",{style:{marginLeft:"30px",color:"#999",fontStyle:"italic"},children:[n(`nodeTypes.${r}.lists.${S.listName}.label`,f.language,{default:S.listName})," ","(",b.jsx("code",{children:S.listName})," [",b.jsx("code",{children:S.parts.join("</code>, <code>")}),"])"]},S.listName)),h.length>0&&b.jsx("ul",{children:h.map(S=>b.jsx(Jo,{schema:i,schemaT:n,typeName:S,depth:s+1,displayedNodeTypeNames:o},S))}),m.length>0&&b.jsx("ul",{children:m.map(S=>b.jsx(Jo,{schema:i,schemaT:n,typeName:S,depth:s+1,displayedNodeTypeNames:o},S))})]}))}function mE(i,n){var r;return(r=i.nodeTypes)==null?void 0:r.find(s=>s.kind==="document"&&s.typeName===n)}const qr=Te;function gE({step:i}){const{t:n}=ot(),[r,s]=T.useState("tree"),{siteSchema:o,l10n:f}=i,p=hE(f),h=(m,d)=>d.keys.length===1&&d.keys[0]==="plugins";return b.jsxs("div",{className:"SchemaViewer",children:[b.jsxs("div",{className:"SchemaViewer-tabs",children:[b.jsx(rt,{className:`SchemaViewer-tab ${r==="tree"?"active":""}`,onClick:()=>s("tree"),children:n("treeView")}),b.jsx(rt,{className:`SchemaViewer-tab ${r==="schema"?"active":""}`,onClick:()=>s("schema"),children:n("siteSchema")}),b.jsx(rt,{className:`SchemaViewer-tab ${r==="locales"?"active":""}`,onClick:()=>s("locales"),children:n("labels")})]}),b.jsxs("div",{className:"SchemaViewer-main",children:[b.jsx("div",{className:"SchemaViewer-content",style:{display:r==="tree"?"block":"none"},children:b.jsx(pE,{siteSchema:o,schemaTranslate:p})}),b.jsx("div",{className:"SchemaViewer-content",style:{display:r==="locales"?"block":"none"},children:b.jsx(qr,{value:f,style:lm,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0})}),b.jsx("div",{className:"SchemaViewer-content",style:{display:r==="schema"?"block":"none"},children:b.jsxs(qr,{value:o,style:lm,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0,shouldExpandNodeInitially:h,children:[b.jsx(qr.Colon,{render:(m,{parentValue:d})=>Array.isArray(d)&&m.children===":"?b.jsx("span",{}):b.jsx("span",{...m})}),b.jsx(qr.KeyName,{render:({...m},{parentValue:d})=>Array.isArray(d)&&Number.isFinite(m.children)?b.jsx("span",{}):b.jsx("span",{...m})})]})})]})]})}function vE({step:i}){const{t:n}=ot(),{workSession:r,appendNewStep:s}=pn(),[o,f]=T.useState(!1),[p,h]=T.useState(!1),[m,d]=T.useState(!1),[v,x]=T.useState(void 0),S=rl(),C=()=>{f(!o)},E=async B=>{if(!r)return;d(!0),x(void 0);const U=vi();if(!U){x(n("sessionExpired")),d(!1);return}try{const D=await Ga({command:"updateSiteSchema",sessionToken:U,prompt:B,fromStepNumber:i.stepNumber});D.success&&D.result?(f(!1),s(D.result),S(`/step/${D.result.stepNumber}`)):x(n("promptSubmissionFailed"))}catch(D){console.error("Error updating schema:",D),x(n("errorOccurred"))}finally{d(!1)}},z=async({withSampleData:B})=>{if(!r)return;d(!0),x(void 0),h(!1);const U=vi();if(!U){x(n("sessionExpired")),d(!1);return}try{const D=await Ga({command:"generateSite",sessionToken:U,fromStepNumber:i.stepNumber,withSampleData:B});D.success&&D.result?(s(D.result),S(`/step/${D.result.stepNumber}`)):x(n("generationFailed"))}catch(D){console.error("Error generating site:",D),x(n("errorOccurred"))}finally{d(!1)}};return b.jsx(wt,{children:b.jsxs("div",{className:"CompletedStep",children:[b.jsx(gE,{step:i}),i.explanation&&b.jsx(Ni,{content:i.explanation,title:n("explanation")}),b.jsxs("div",{className:"CompletedStep-actions",children:[b.jsx(rt,{onClick:C,className:"CompletedStep-button",children:n("modifySchema")}),b.jsx(rt,{onClick:()=>h(!0),className:"CompletedStep-button",children:n("generateTheWebsite")})]}),o&&b.jsxs("div",{className:"CompletedStep-updateForm",children:[b.jsx("h3",{children:n("updateSchema")}),b.jsx(jm,{placeholder:n("updatePromptPlaceholder"),submitLabel:n("modifySchema"),onSubmit:E,isLoading:m,error:v})]}),b.jsx(fN,{isOpen:p,title:n("generateTheWebsite"),message:n("aboutToGenerateWebsite"),confirmLabel:n("confirm"),onConfirm:z,onCancel:()=>h(!1)}),v&&!o&&b.jsx("div",{className:"Alert error",children:b.jsx("p",{children:v})})]})})}function yE({step:i}){const{t:n}=ot();return b.jsx(wt,{children:b.jsxs("div",{className:"ErrorStep",children:[b.jsx("p",{className:"ErrorStep-message",children:n("stepFailed")}),i.explanation&&b.jsx(Ni,{content:i.explanation,variant:"error"})]})})}function bE({step:i}){const{t:n}=ot(),r=()=>{const s=`
117
117
  ${n("siteGenerated")}
118
118
  ${n("loginEmail")}: ${i.loginEmail}
119
119
  ${n("loginPassword")}: ${i.loginPassword}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paroicms/site-generator-plugin",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "ParoiCMS Site Generator Plugin",
5
5
  "keywords": [
6
6
  "paroicms",