diff --git "a/web/blueprint/build/_app/immutable/chunks/utils.01e6ed9d.js" "b/web/blueprint/build/_app/immutable/chunks/utils.01e6ed9d.js" new file mode 100644--- /dev/null +++ "b/web/blueprint/build/_app/immutable/chunks/utils.01e6ed9d.js" @@ -0,0 +1,81 @@ +var xi=Object.defineProperty;var Bi=(i,e,t)=>e in i?xi(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Pn=(i,e,t)=>(Bi(i,typeof e!="symbol"?e+"":e,t),t);import{S as ce,i as de,s as he,e as x,b as O,a1 as ue,h as m,D as Re,E as me,F as Ue,Q as ge,k as U,l as q,m as M,I as He,H as k,K as oe,O as De,P as pt,a3 as $e,p as Tn,g as p,v as X,d as g,f as ee,C as Zt,o as pn,G as _e,y as $,a as ae,z as ie,c as fe,J as F,A as W,L as be,M as Ee,N as ye,B as K,q as ve,r as we,u as Pe,_ as xe,$ as Be,n as C,a0 as it,ab as li,w as Ze,am as An,aa as si,W as gt,x as Se,aq as In,a7 as Zi,a9 as Hi,T as Ji,U as Je,V as Xe}from"./index.4fe0636c.js";import{N as $i,a as Wi,i as Rn,h as Ki,c as Qi,q as tt,w as Gi,B as Yi,T as Xi}from"./taskMonitoringStore.9b8ee42d.js";import{j as el}from"./singletons.c8b31748.js";import{Q as tl,p as nl,d as rl,r as ze,O as Me,c as We,a as Ht,e as il,T as ll}from"./taskQueries.00b1e24e.js";import{W as oi,b as ai,S as sl,a as fi}from"./SelectItem.dd7a8f06.js";function jn(i,e,t){const r=i.slice();return r[2]=e[t].width,r}function ol(i){let e,t,r,n,l=[i[4],{style:t="width: "+i[2]+";"+i[4].style}],s={};for(let o=0;o{e=me(me({},e),Ue(T)),t(4,o=Re(e,s)),"lines"in T&&t(5,a=T.lines),"heading"in T&&t(0,f=T.heading),"paragraph"in T&&t(1,u=T.paragraph),"width"in T&&t(2,c=T.width)},i.$$.update=()=>{if(i.$$.dirty&4&&t(7,n=parseInt(c,10)),i.$$.dirty&4&&t(6,l=c.includes("px")),i.$$.dirty&238&&u)for(let T=0;T({}),Ln=i=>({}),hl=i=>({}),Dn=i=>({}),ml=i=>({}),Cn=i=>({});function zn(i){let e,t,r,n,l,s,o,a,f,u,c,d,h,y;r=new $i({props:{notificationType:"inline",kind:i[0],iconDescription:i[6]}});const _=i[13].title,I=_e(_,i,i[12],Cn),v=I||pl(i),b=i[13].subtitle,S=_e(b,i,i[12],Dn),P=S||gl(i),T=i[13].default,A=_e(T,i,i[12],null),L=i[13].actions,z=_e(L,i,i[12],Ln);let Z=!i[5]&&Mn(i),ne=[{role:i[2]},{kind:i[0]},i[10]],re={};for(let R=0;R{Z=null}),ee()):Z?(Z.p(R,E),E&32&&p(Z,1)):(Z=Mn(R),Z.c(),p(Z,1),Z.m(e,null)),He(e,re=De(ne,[(!d||E&4)&&{role:R[2]},(!d||E&1)&&{kind:R[0]},E&1024&&R[10]])),k(e,"bx--inline-notification",!0),k(e,"bx--inline-notification--low-contrast",R[1]),k(e,"bx--inline-notification--hide-close-button",R[5]),k(e,"bx--inline-notification--error",R[0]==="error"),k(e,"bx--inline-notification--info",R[0]==="info"),k(e,"bx--inline-notification--info-square",R[0]==="info-square"),k(e,"bx--inline-notification--success",R[0]==="success"),k(e,"bx--inline-notification--warning",R[0]==="warning"),k(e,"bx--inline-notification--warning-alt",R[0]==="warning-alt")},i(R){d||(p(r.$$.fragment,R),p(v,R),p(P,R),p(A,R),p(z,R),p(Z),d=!0)},o(R){g(r.$$.fragment,R),g(v,R),g(P,R),g(A,R),g(z,R),g(Z),d=!1},d(R){R&&m(e),K(r),v&&v.d(R),P&&P.d(R),A&&A.d(R),z&&z.d(R),Z&&Z.d(),h=!1,pt(y)}}}function pl(i){let e;return{c(){e=ve(i[3])},l(t){e=we(t,i[3])},m(t,r){O(t,e,r)},p(t,r){r&8&&Pe(e,t[3])},d(t){t&&m(e)}}}function gl(i){let e;return{c(){e=ve(i[4])},l(t){e=we(t,i[4])},m(t,r){O(t,e,r)},p(t,r){r&16&&Pe(e,t[4])},d(t){t&&m(e)}}}function Mn(i){let e,t;return e=new Wi({props:{iconDescription:i[7],notificationType:"inline"}}),e.$on("click",i[9]),{c(){$(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){W(e,r,n),t=!0},p(r,n){const l={};n&128&&(l.iconDescription=r[7]),e.$set(l)},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function _l(i){let e,t,r=i[8]&&zn(i);return{c(){r&&r.c(),e=x()},l(n){r&&r.l(n),e=x()},m(n,l){r&&r.m(n,l),O(n,e,l),t=!0},p(n,[l]){n[8]?r?(r.p(n,l),l&256&&p(r,1)):(r=zn(n),r.c(),p(r,1),r.m(e.parentNode,e)):r&&(X(),g(r,1,1,()=>{r=null}),ee())},i(n){t||(p(r),t=!0)},o(n){g(r),t=!1},d(n){r&&r.d(n),n&&m(e)}}}function bl(i,e,t){const r=["kind","lowContrast","timeout","role","title","subtitle","hideCloseButton","statusIconDescription","closeButtonDescription"];let n=Re(e,r),{$$slots:l={},$$scope:s}=e,{kind:o="error"}=e,{lowContrast:a=!1}=e,{timeout:f=0}=e,{role:u="alert"}=e,{title:c=""}=e,{subtitle:d=""}=e,{hideCloseButton:h=!1}=e,{statusIconDescription:y=o+" icon"}=e,{closeButtonDescription:_="Close notification"}=e;const I=Zt();let v=!0,b;function S(z){I("close",{timeout:z===!0},{cancelable:!0})&&t(8,v=!1)}pn(()=>(f&&(b=setTimeout(()=>S(!0),f)),()=>{clearTimeout(b)}));function P(z){ge.call(this,i,z)}function T(z){ge.call(this,i,z)}function A(z){ge.call(this,i,z)}function L(z){ge.call(this,i,z)}return i.$$set=z=>{e=me(me({},e),Ue(z)),t(10,n=Re(e,r)),"kind"in z&&t(0,o=z.kind),"lowContrast"in z&&t(1,a=z.lowContrast),"timeout"in z&&t(11,f=z.timeout),"role"in z&&t(2,u=z.role),"title"in z&&t(3,c=z.title),"subtitle"in z&&t(4,d=z.subtitle),"hideCloseButton"in z&&t(5,h=z.hideCloseButton),"statusIconDescription"in z&&t(6,y=z.statusIconDescription),"closeButtonDescription"in z&&t(7,_=z.closeButtonDescription),"$$scope"in z&&t(12,s=z.$$scope)},[o,a,u,c,d,h,y,_,v,S,n,f,s,l,P,T,A,L]}class El extends ce{constructor(e){super(),de(this,e,bl,_l,he,{kind:0,lowContrast:1,timeout:11,role:2,title:3,subtitle:4,hideCloseButton:5,statusIconDescription:6,closeButtonDescription:7})}}const qu=El;function Vn(i){let e,t;return{c(){e=xe("title"),t=ve(i[1])},l(r){e=Be(r,"title",{});var n=M(e);t=we(n,i[1]),n.forEach(m)},m(r,n){O(r,e,n),F(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&m(e)}}}function yl(i){let e,t,r=i[1]&&Vn(i),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],l={};for(let s=0;s{t(5,e=me(me({},e),Ue(f))),t(3,s=Re(e,l)),"size"in f&&t(0,o=f.size),"title"in f&&t(1,a=f.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||a),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ue(e),[o,a,n,s,r]}class vl extends ce{constructor(e){super(),de(this,e,kl,yl,he,{size:0,title:1})}}const wl=vl;function Un(i){let e,t;return{c(){e=xe("title"),t=ve(i[1])},l(r){e=Be(r,"title",{});var n=M(e);t=we(n,i[1]),n.forEach(m)},m(r,n){O(r,e,n),F(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&m(e)}}}function Ol(i){let e,t,r=i[1]&&Un(i),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],l={};for(let s=0;s{t(5,e=me(me({},e),Ue(f))),t(3,s=Re(e,l)),"size"in f&&t(0,o=f.size),"title"in f&&t(1,a=f.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||a),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ue(e),[o,a,n,s,r]}class Pl extends ce{constructor(e){super(),de(this,e,Sl,Ol,he,{size:0,title:1})}}const Tl=Pl;function qn(i){let e,t;return{c(){e=xe("title"),t=ve(i[1])},l(r){e=Be(r,"title",{});var n=M(e);t=we(n,i[1]),n.forEach(m)},m(r,n){O(r,e,n),F(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&m(e)}}}function Al(i){let e,t,r=i[1]&&qn(i),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],l={};for(let s=0;s{t(5,e=me(me({},e),Ue(f))),t(3,s=Re(e,l)),"size"in f&&t(0,o=f.size),"title"in f&&t(1,a=f.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||a),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ue(e),[o,a,n,s,r]}class Rl extends ce{constructor(e){super(),de(this,e,Il,Al,he,{size:0,title:1})}}const ui=Rl,jl=i=>({}),Fn=i=>({});function xn(i){let e,t;const r=i[34].label,n=_e(r,i,i[33],Fn),l=n||Nl(i);return{c(){e=U("label"),l&&l.c(),this.h()},l(s){e=q(s,"LABEL",{for:!0});var o=M(e);l&&l.l(o),o.forEach(m),this.h()},h(){C(e,"for",i[18]),k(e,"bx--label",!0),k(e,"bx--label--disabled",i[8]),k(e,"bx--visually-hidden",i[17])},m(s,o){O(s,e,o),l&&l.m(e,null),t=!0},p(s,o){n?n.p&&(!t||o[1]&4)&&be(n,r,s,s[33],t?ye(r,s[33],o,jl):Ee(s[33]),Fn):l&&l.p&&(!t||o[0]&65536)&&l.p(s,t?o:[-1,-1]),(!t||o[0]&262144)&&C(e,"for",s[18]),(!t||o[0]&256)&&k(e,"bx--label--disabled",s[8]),(!t||o[0]&131072)&&k(e,"bx--visually-hidden",s[17])},i(s){t||(p(l,s),t=!0)},o(s){g(l,s),t=!1},d(s){s&&m(e),l&&l.d(s)}}}function Nl(i){let e;return{c(){e=ve(i[16])},l(t){e=we(t,i[16])},m(t,r){O(t,e,r)},p(t,r){r[0]&65536&&Pe(e,t[16])},d(t){t&&m(e)}}}function Ll(i){let e,t,r,n=i[11]&&Bn(),l=!i[11]&&i[13]&&Zn();return{c(){n&&n.c(),e=ae(),l&&l.c(),t=x()},l(s){n&&n.l(s),e=fe(s),l&&l.l(s),t=x()},m(s,o){n&&n.m(s,o),O(s,e,o),l&&l.m(s,o),O(s,t,o),r=!0},p(s,o){s[11]?n?o[0]&2048&&p(n,1):(n=Bn(),n.c(),p(n,1),n.m(e.parentNode,e)):n&&(X(),g(n,1,1,()=>{n=null}),ee()),!s[11]&&s[13]?l?o[0]&10240&&p(l,1):(l=Zn(),l.c(),p(l,1),l.m(t.parentNode,t)):l&&(X(),g(l,1,1,()=>{l=null}),ee())},i(s){r||(p(n),p(l),r=!0)},o(s){g(n),g(l),r=!1},d(s){n&&n.d(s),s&&m(e),l&&l.d(s),s&&m(t)}}}function Dl(i){let e,t;return e=new ui({props:{class:"bx--text-input__readonly-icon"}}),{c(){$(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){W(e,r,n),t=!0},p:ue,i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function Bn(i){let e,t;return e=new oi({props:{class:"bx--number__invalid"}}),{c(){$(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){W(e,r,n),t=!0},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function Zn(i){let e,t;return e=new ai({props:{class:"bx--number__invalid bx--number__invalid--warning"}}),{c(){$(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){W(e,r,n),t=!0},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function Hn(i){let e,t,r,n,l,s,o,a,f,u,c,d,h,y,_,I,v;return r=new Tl({props:{class:"down-icon"}}),u=new wl({props:{class:"up-icon"}}),{c(){e=U("div"),t=U("button"),$(r.$$.fragment),s=ae(),o=U("div"),a=ae(),f=U("button"),$(u.$$.fragment),h=ae(),y=U("div"),this.h()},l(b){e=q(b,"DIV",{});var S=M(e);t=q(S,"BUTTON",{type:!0,tabindex:!0,title:!0,"aria-label":!0});var P=M(t);ie(r.$$.fragment,P),P.forEach(m),s=fe(S),o=q(S,"DIV",{}),M(o).forEach(m),a=fe(S),f=q(S,"BUTTON",{type:!0,tabindex:!0,title:!0,"aria-label":!0});var T=M(f);ie(u.$$.fragment,T),T.forEach(m),h=fe(S),y=q(S,"DIV",{}),M(y).forEach(m),S.forEach(m),this.h()},h(){C(t,"type","button"),C(t,"tabindex","-1"),C(t,"title",n=i[23]||i[10]),C(t,"aria-label",l=i[23]||i[10]),t.disabled=i[8],k(t,"bx--number__control-btn",!0),k(t,"down-icon",!0),k(o,"bx--number__rule-divider",!0),C(f,"type","button"),C(f,"tabindex","-1"),C(f,"title",c=i[24]||i[10]),C(f,"aria-label",d=i[24]||i[10]),f.disabled=i[8],k(f,"bx--number__control-btn",!0),k(f,"up-icon",!0),k(y,"bx--number__rule-divider",!0),k(e,"bx--number__controls",!0)},m(b,S){O(b,e,S),F(e,t),W(r,t,null),F(e,s),F(e,o),F(e,a),F(e,f),W(u,f,null),F(e,h),F(e,y),_=!0,I||(v=[oe(t,"click",i[45]),oe(f,"click",i[46])],I=!0)},p(b,S){(!_||S[0]&8389632&&n!==(n=b[23]||b[10]))&&C(t,"title",n),(!_||S[0]&8389632&&l!==(l=b[23]||b[10]))&&C(t,"aria-label",l),(!_||S[0]&256)&&(t.disabled=b[8]),(!_||S[0]&16778240&&c!==(c=b[24]||b[10]))&&C(f,"title",c),(!_||S[0]&16778240&&d!==(d=b[24]||b[10]))&&C(f,"aria-label",d),(!_||S[0]&256)&&(f.disabled=b[8])},i(b){_||(p(r.$$.fragment,b),p(u.$$.fragment,b),_=!0)},o(b){g(r.$$.fragment,b),g(u.$$.fragment,b),_=!1},d(b){b&&m(e),K(r),K(u),I=!1,pt(v)}}}function Jn(i){let e,t;return{c(){e=U("div"),t=ve(i[15]),this.h()},l(r){e=q(r,"DIV",{});var n=M(e);t=we(n,i[15]),n.forEach(m),this.h()},h(){k(e,"bx--form__helper-text",!0),k(e,"bx--form__helper-text--disabled",i[8])},m(r,n){O(r,e,n),F(e,t)},p(r,n){n[0]&32768&&Pe(t,r[15]),n[0]&256&&k(e,"bx--form__helper-text--disabled",r[8])},d(r){r&&m(e)}}}function $n(i){let e,t;return{c(){e=U("div"),t=ve(i[12]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=M(e);t=we(n,i[12]),n.forEach(m),this.h()},h(){C(e,"id",i[21]),k(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),F(e,t)},p(r,n){n[0]&4096&&Pe(t,r[12]),n[0]&2097152&&C(e,"id",r[21])},d(r){r&&m(e)}}}function Wn(i){let e,t;return{c(){e=U("div"),t=ve(i[14]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=M(e);t=we(n,i[14]),n.forEach(m),this.h()},h(){C(e,"id",i[21]),k(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),F(e,t)},p(r,n){n[0]&16384&&Pe(t,r[14]),n[0]&2097152&&C(e,"id",r[21])},d(r){r&&m(e)}}}function Cl(i){let e,t,r,n,l,s,o,a,f,u,c,d,h,y,_,I,v,b,S,P,T=(i[28].label||i[16])&&xn(i),A=[{type:"number"},{pattern:"[0-9]*"},{"aria-describedby":i[21]},{"data-invalid":s=i[22]||void 0},{"aria-invalid":o=i[22]||void 0},{"aria-label":a=i[16]?void 0:i[20]},{disabled:i[8]},{id:i[18]},{name:i[19]},{max:i[4]},{min:i[5]},{step:i[3]},{value:f=i[0]??""},{readOnly:i[7]},i[29]],L={};for(let w=0;w{T=null}),ee()),He(l,L=De(A,[{type:"number"},{pattern:"[0-9]*"},(!b||j[0]&2097152)&&{"aria-describedby":w[21]},(!b||j[0]&4194304&&s!==(s=w[22]||void 0))&&{"data-invalid":s},(!b||j[0]&4194304&&o!==(o=w[22]||void 0))&&{"aria-invalid":o},(!b||j[0]&1114112&&a!==(a=w[16]?void 0:w[20]))&&{"aria-label":a},(!b||j[0]&256)&&{disabled:w[8]},(!b||j[0]&262144)&&{id:w[18]},(!b||j[0]&524288)&&{name:w[19]},(!b||j[0]&16)&&{max:w[4]},(!b||j[0]&32)&&{min:w[5]},(!b||j[0]&8)&&{step:w[3]},(!b||j[0]&1&&f!==(f=w[0]??"")&&l.value!==f)&&{value:f},(!b||j[0]&128)&&{readOnly:w[7]},j[0]&536870912&&w[29]]));let J=c;c=ne(w),c===J?Z[c].p(w,j):(X(),g(Z[J],1,1,()=>{Z[J]=null}),ee(),d=Z[c],d?d.p(w,j):(d=Z[c]=z[c](w),d.c()),p(d,1),d.m(n,h)),w[9]?re&&(X(),g(re,1,1,()=>{re=null}),ee()):re?(re.p(w,j),j[0]&512&&p(re,1)):(re=Hn(w),re.c(),p(re,1),re.m(n,null)),(!b||j[0]&10240)&&k(n,"bx--number__input-wrapper--warning",!w[11]&&w[13]),!w[22]&&!w[13]&&w[15]?R?R.p(w,j):(R=Jn(w),R.c(),R.m(t,_)):R&&(R.d(1),R=null),w[22]?E?E.p(w,j):(E=$n(w),E.c(),E.m(t,I)):E&&(E.d(1),E=null),!w[22]&&w[13]?D?D.p(w,j):(D=Wn(w),D.c(),D.m(t,null)):D&&(D.d(1),D=null),(!b||j[0]&4194304&&v!==(v=w[22]||void 0))&&C(t,"data-invalid",v),(!b||j[0]&128)&&k(t,"bx--number--readonly",w[7]),(!b||j[0]&64)&&k(t,"bx--number--light",w[6]),(!b||j[0]&131072)&&k(t,"bx--number--nolabel",w[17]),(!b||j[0]&512)&&k(t,"bx--number--nosteppers",w[9]),(!b||j[0]&4)&&k(t,"bx--number--sm",w[2]==="sm"),(!b||j[0]&4)&&k(t,"bx--number--xl",w[2]==="xl")},i(w){b||(p(T),p(d),p(re),b=!0)},o(w){g(T),g(d),g(re),b=!1},d(w){w&&m(e),T&&T.d(),i[44](null),Z[c].d(),re&&re.d(),R&&R.d(),E&&E.d(),D&&D.d(),S=!1,pt(P)}}}function Kn(i){return i!=""?Number(i):null}function zl(i,e,t){let r,n,l,s,o;const a=["size","value","step","max","min","light","readonly","allowEmpty","disabled","hideSteppers","iconDescription","invalid","invalidText","warn","warnText","helperText","label","hideLabel","translateWithId","translationIds","id","name","ref"];let f=Re(e,a),{$$slots:u={},$$scope:c}=e;const d=li(u);let{size:h=void 0}=e,{value:y=null}=e,{step:_=1}=e,{max:I=void 0}=e,{min:v=void 0}=e,{light:b=!1}=e,{readonly:S=!1}=e,{allowEmpty:P=!1}=e,{disabled:T=!1}=e,{hideSteppers:A=!1}=e,{iconDescription:L=""}=e,{invalid:z=!1}=e,{invalidText:Z=""}=e,{warn:ne=!1}=e,{warnText:re=""}=e,{helperText:R=""}=e,{label:E=""}=e,{hideLabel:D=!1}=e,{translateWithId:w=V=>Te[V]}=e;const j={increment:"increment",decrement:"decrement"};let{id:J="ccs-"+Math.random().toString(36)}=e,{name:le=void 0}=e,{ref:se=null}=e;const Te={[j.increment]:"Increment number",[j.decrement]:"Decrement number"},Ae=Zt();function N(V){V?se.stepUp():se.stepDown(),t(0,y=+se.value),Ae("input",y),Ae("change",y)}function te({target:V}){t(0,y=Kn(V.value)),Ae("input",y)}function Ne({target:V}){Ae("change",Kn(V.value))}function Ce(V){ge.call(this,i,V)}function Wt(V){ge.call(this,i,V)}function Kt(V){ge.call(this,i,V)}function Qt(V){ge.call(this,i,V)}function Gt(V){ge.call(this,i,V)}function Yt(V){ge.call(this,i,V)}function B(V){ge.call(this,i,V)}function Mi(V){ge.call(this,i,V)}function Vi(V){ge.call(this,i,V)}function Ui(V){Ze[V?"unshift":"push"](()=>{se=V,t(1,se)})}const qi=()=>{N(!1)},Fi=()=>{N(!0)};return i.$$set=V=>{t(49,e=me(me({},e),Ue(V))),t(29,f=Re(e,a)),"size"in V&&t(2,h=V.size),"value"in V&&t(0,y=V.value),"step"in V&&t(3,_=V.step),"max"in V&&t(4,I=V.max),"min"in V&&t(5,v=V.min),"light"in V&&t(6,b=V.light),"readonly"in V&&t(7,S=V.readonly),"allowEmpty"in V&&t(30,P=V.allowEmpty),"disabled"in V&&t(8,T=V.disabled),"hideSteppers"in V&&t(9,A=V.hideSteppers),"iconDescription"in V&&t(10,L=V.iconDescription),"invalid"in V&&t(11,z=V.invalid),"invalidText"in V&&t(12,Z=V.invalidText),"warn"in V&&t(13,ne=V.warn),"warnText"in V&&t(14,re=V.warnText),"helperText"in V&&t(15,R=V.helperText),"label"in V&&t(16,E=V.label),"hideLabel"in V&&t(17,D=V.hideLabel),"translateWithId"in V&&t(31,w=V.translateWithId),"id"in V&&t(18,J=V.id),"name"in V&&t(19,le=V.name),"ref"in V&&t(1,se=V.ref),"$$scope"in V&&t(33,c=V.$$scope)},i.$$.update=()=>{i.$$.dirty[1]&1&&t(24,r=w("increment")),i.$$.dirty[1]&1&&t(23,n=w("decrement")),i.$$.dirty[0]&1073744049&&t(22,l=z&&!S||!P&&y==null||y>I||typeof y=="number"&&y({}),Qn=i=>({}),ql=i=>({}),Gn=i=>({});function Yn(i){let e,t,r,n=i[9]&&Xn(i),l=!i[22]&&i[6]&&er(i);return{c(){e=U("div"),n&&n.c(),t=ae(),l&&l.c(),this.h()},l(s){e=q(s,"DIV",{});var o=M(e);n&&n.l(o),t=fe(o),l&&l.l(o),o.forEach(m),this.h()},h(){k(e,"bx--text-input__label-helper-wrapper",!0)},m(s,o){O(s,e,o),n&&n.m(e,null),F(e,t),l&&l.m(e,null),r=!0},p(s,o){s[9]?n?(n.p(s,o),o[0]&512&&p(n,1)):(n=Xn(s),n.c(),p(n,1),n.m(e,t)):n&&(X(),g(n,1,1,()=>{n=null}),ee()),!s[22]&&s[6]?l?l.p(s,o):(l=er(s),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i(s){r||(p(n),r=!0)},o(s){g(n),r=!1},d(s){s&&m(e),n&&n.d(),l&&l.d()}}}function Xn(i){let e,t;const r=i[28].labelText,n=_e(r,i,i[27],Gn),l=n||Fl(i);return{c(){e=U("label"),l&&l.c(),this.h()},l(s){e=q(s,"LABEL",{for:!0});var o=M(e);l&&l.l(o),o.forEach(m),this.h()},h(){C(e,"for",i[7]),k(e,"bx--label",!0),k(e,"bx--visually-hidden",i[10]),k(e,"bx--label--disabled",i[5]),k(e,"bx--label--inline",i[16]),k(e,"bx--label--inline--sm",i[2]==="sm"),k(e,"bx--label--inline--xl",i[2]==="xl")},m(s,o){O(s,e,o),l&&l.m(e,null),t=!0},p(s,o){n?n.p&&(!t||o[0]&134217728)&&be(n,r,s,s[27],t?ye(r,s[27],o,ql):Ee(s[27]),Gn):l&&l.p&&(!t||o[0]&512)&&l.p(s,t?o:[-1,-1]),(!t||o[0]&128)&&C(e,"for",s[7]),(!t||o[0]&1024)&&k(e,"bx--visually-hidden",s[10]),(!t||o[0]&32)&&k(e,"bx--label--disabled",s[5]),(!t||o[0]&65536)&&k(e,"bx--label--inline",s[16]),(!t||o[0]&4)&&k(e,"bx--label--inline--sm",s[2]==="sm"),(!t||o[0]&4)&&k(e,"bx--label--inline--xl",s[2]==="xl")},i(s){t||(p(l,s),t=!0)},o(s){g(l,s),t=!1},d(s){s&&m(e),l&&l.d(s)}}}function Fl(i){let e;return{c(){e=ve(i[9])},l(t){e=we(t,i[9])},m(t,r){O(t,e,r)},p(t,r){r[0]&512&&Pe(e,t[9])},d(t){t&&m(e)}}}function er(i){let e,t;return{c(){e=U("div"),t=ve(i[6]),this.h()},l(r){e=q(r,"DIV",{});var n=M(e);t=we(n,i[6]),n.forEach(m),this.h()},h(){k(e,"bx--form__helper-text",!0),k(e,"bx--form__helper-text--disabled",i[5]),k(e,"bx--form__helper-text--inline",i[16])},m(r,n){O(r,e,n),F(e,t)},p(r,n){n[0]&64&&Pe(t,r[6]),n[0]&32&&k(e,"bx--form__helper-text--disabled",r[5]),n[0]&65536&&k(e,"bx--form__helper-text--inline",r[16])},d(r){r&&m(e)}}}function tr(i){let e,t;const r=i[28].labelText,n=_e(r,i,i[27],Qn),l=n||xl(i);return{c(){e=U("label"),l&&l.c(),this.h()},l(s){e=q(s,"LABEL",{for:!0});var o=M(e);l&&l.l(o),o.forEach(m),this.h()},h(){C(e,"for",i[7]),k(e,"bx--label",!0),k(e,"bx--visually-hidden",i[10]),k(e,"bx--label--disabled",i[5]),k(e,"bx--label--inline",i[16]),k(e,"bx--label--inline-sm",i[16]&&i[2]==="sm"),k(e,"bx--label--inline-xl",i[16]&&i[2]==="xl")},m(s,o){O(s,e,o),l&&l.m(e,null),t=!0},p(s,o){n?n.p&&(!t||o[0]&134217728)&&be(n,r,s,s[27],t?ye(r,s[27],o,Ul):Ee(s[27]),Qn):l&&l.p&&(!t||o[0]&512)&&l.p(s,t?o:[-1,-1]),(!t||o[0]&128)&&C(e,"for",s[7]),(!t||o[0]&1024)&&k(e,"bx--visually-hidden",s[10]),(!t||o[0]&32)&&k(e,"bx--label--disabled",s[5]),(!t||o[0]&65536)&&k(e,"bx--label--inline",s[16]),(!t||o[0]&65540)&&k(e,"bx--label--inline-sm",s[16]&&s[2]==="sm"),(!t||o[0]&65540)&&k(e,"bx--label--inline-xl",s[16]&&s[2]==="xl")},i(s){t||(p(l,s),t=!0)},o(s){g(l,s),t=!1},d(s){s&&m(e),l&&l.d(s)}}}function xl(i){let e;return{c(){e=ve(i[9])},l(t){e=we(t,i[9])},m(t,r){O(t,e,r)},p(t,r){r[0]&512&&Pe(e,t[9])},d(t){t&&m(e)}}}function Bl(i){let e,t,r,n=i[11]&&nr(),l=!i[11]&&i[13]&&rr();return{c(){n&&n.c(),e=ae(),l&&l.c(),t=x()},l(s){n&&n.l(s),e=fe(s),l&&l.l(s),t=x()},m(s,o){n&&n.m(s,o),O(s,e,o),l&&l.m(s,o),O(s,t,o),r=!0},p(s,o){s[11]?n?o[0]&2048&&p(n,1):(n=nr(),n.c(),p(n,1),n.m(e.parentNode,e)):n&&(X(),g(n,1,1,()=>{n=null}),ee()),!s[11]&&s[13]?l?o[0]&10240&&p(l,1):(l=rr(),l.c(),p(l,1),l.m(t.parentNode,t)):l&&(X(),g(l,1,1,()=>{l=null}),ee())},i(s){r||(p(n),p(l),r=!0)},o(s){g(n),g(l),r=!1},d(s){n&&n.d(s),s&&m(e),l&&l.d(s),s&&m(t)}}}function Zl(i){let e,t;return e=new ui({props:{class:"bx--text-input__readonly-icon"}}),{c(){$(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){W(e,r,n),t=!0},p:ue,i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function nr(i){let e,t;return e=new oi({props:{class:"bx--text-input__invalid-icon"}}),{c(){$(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){W(e,r,n),t=!0},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function rr(i){let e,t;return e=new ai({props:{class:`bx--text-input__invalid-icon + bx--text-input__invalid-icon--warning`}}),{c(){$(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){W(e,r,n),t=!0},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function ir(i){let e;return{c(){e=U("hr"),this.h()},l(t){e=q(t,"HR",{}),this.h()},h(){k(e,"bx--text-input__divider",!0)},m(t,r){O(t,e,r)},d(t){t&&m(e)}}}function lr(i){let e,t;return{c(){e=U("div"),t=ve(i[12]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=M(e);t=we(n,i[12]),n.forEach(m),this.h()},h(){C(e,"id",i[19]),k(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),F(e,t)},p(r,n){n[0]&4096&&Pe(t,r[12]),n[0]&524288&&C(e,"id",r[19])},d(r){r&&m(e)}}}function sr(i){let e,t;return{c(){e=U("div"),t=ve(i[14]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=M(e);t=we(n,i[14]),n.forEach(m),this.h()},h(){C(e,"id",i[18]),k(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),F(e,t)},p(r,n){n[0]&16384&&Pe(t,r[14]),n[0]&262144&&C(e,"id",r[18])},d(r){r&&m(e)}}}function or(i){let e,t;return{c(){e=U("div"),t=ve(i[6]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=M(e);t=we(n,i[6]),n.forEach(m),this.h()},h(){C(e,"id",i[20]),k(e,"bx--form__helper-text",!0),k(e,"bx--form__helper-text--disabled",i[5]),k(e,"bx--form__helper-text--inline",i[16])},m(r,n){O(r,e,n),F(e,t)},p(r,n){n[0]&64&&Pe(t,r[6]),n[0]&1048576&&C(e,"id",r[20]),n[0]&32&&k(e,"bx--form__helper-text--disabled",r[5]),n[0]&65536&&k(e,"bx--form__helper-text--inline",r[16])},d(r){r&&m(e)}}}function ar(i){let e,t;return{c(){e=U("div"),t=ve(i[12]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=M(e);t=we(n,i[12]),n.forEach(m),this.h()},h(){C(e,"id",i[19]),k(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),F(e,t)},p(r,n){n[0]&4096&&Pe(t,r[12]),n[0]&524288&&C(e,"id",r[19])},d(r){r&&m(e)}}}function fr(i){let e,t;return{c(){e=U("div"),t=ve(i[14]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=M(e);t=we(n,i[14]),n.forEach(m),this.h()},h(){C(e,"id",i[18]),k(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),F(e,t)},p(r,n){n[0]&16384&&Pe(t,r[14]),n[0]&262144&&C(e,"id",r[18])},d(r){r&&m(e)}}}function Hl(i){let e,t,r,n,l,s,o,a,f,u,c,d,h,y,_,I,v,b,S,P,T,A,L,z,Z=i[16]&&Yn(i),ne=!i[16]&&(i[9]||i[26].labelText)&&tr(i);const re=[Zl,Bl],R=[];function E(N,te){return N[17]?0:1}s=E(i),o=R[s]=re[s](i);let D=[{"data-invalid":u=i[21]||void 0},{"aria-invalid":c=i[21]||void 0},{"data-warn":d=i[13]||void 0},{"aria-describedby":h=i[21]?i[19]:i[13]?i[18]:i[6]?i[20]:void 0},{disabled:i[5]},{id:i[7]},{name:i[8]},{placeholder:i[3]},{required:i[15]},{readOnly:i[17]},i[25]],w={};for(let N=0;N{Z=null}),ee()),!N[16]&&(N[9]||N[26].labelText)?ne?(ne.p(N,te),te[0]&67174912&&p(ne,1)):(ne=tr(N),ne.c(),p(ne,1),ne.m(e,r)):ne&&(X(),g(ne,1,1,()=>{ne=null}),ee());let Ne=s;s=E(N),s===Ne?R[s].p(N,te):(X(),g(R[Ne],1,1,()=>{R[Ne]=null}),ee(),o=R[s],o?o.p(N,te):(o=R[s]=re[s](N),o.c()),p(o,1),o.m(l,a)),He(f,w=De(D,[(!A||te[0]&2097152&&u!==(u=N[21]||void 0))&&{"data-invalid":u},(!A||te[0]&2097152&&c!==(c=N[21]||void 0))&&{"aria-invalid":c},(!A||te[0]&8192&&d!==(d=N[13]||void 0))&&{"data-warn":d},(!A||te[0]&3940416&&h!==(h=N[21]?N[19]:N[13]?N[18]:N[6]?N[20]:void 0))&&{"aria-describedby":h},(!A||te[0]&32)&&{disabled:N[5]},(!A||te[0]&128)&&{id:N[7]},(!A||te[0]&256)&&{name:N[8]},(!A||te[0]&8)&&{placeholder:N[3]},(!A||te[0]&32768)&&{required:N[15]},(!A||te[0]&131072)&&{readOnly:N[17]},te[0]&33554432&&N[25]])),te[0]&1&&f.value!==N[0]&&An(f,N[0]),k(f,"bx--text-input",!0),k(f,"bx--text-input--light",N[4]),k(f,"bx--text-input--invalid",N[21]),k(f,"bx--text-input--warning",N[13]),k(f,"bx--text-input--sm",N[2]==="sm"),k(f,"bx--text-input--xl",N[2]==="xl"),N[22]?j||(j=ir(),j.c(),j.m(l,_)):j&&(j.d(1),j=null),N[22]&&!N[16]&&N[11]?J?J.p(N,te):(J=lr(N),J.c(),J.m(l,I)):J&&(J.d(1),J=null),N[22]&&!N[16]&&N[13]?le?le.p(N,te):(le=sr(N),le.c(),le.m(l,null)):le&&(le.d(1),le=null),(!A||te[0]&2097152&&v!==(v=N[21]||void 0))&&C(l,"data-invalid",v),(!A||te[0]&8192&&b!==(b=N[13]||void 0))&&C(l,"data-warn",b),(!A||te[0]&10240)&&k(l,"bx--text-input__field-wrapper--warning",!N[11]&&N[13]),!N[11]&&!N[13]&&!N[22]&&!N[16]&&N[6]?se?se.p(N,te):(se=or(N),se.c(),se.m(n,P)):se&&(se.d(1),se=null),!N[22]&&N[11]?Te?Te.p(N,te):(Te=ar(N),Te.c(),Te.m(n,T)):Te&&(Te.d(1),Te=null),!N[22]&&!N[11]&&N[13]?Ae?Ae.p(N,te):(Ae=fr(N),Ae.c(),Ae.m(n,null)):Ae&&(Ae.d(1),Ae=null),(!A||te[0]&65536)&&k(n,"bx--text-input__field-outer-wrapper--inline",N[16]),(!A||te[0]&65536)&&k(e,"bx--text-input-wrapper--inline",N[16]),(!A||te[0]&16)&&k(e,"bx--text-input-wrapper--light",N[4]),(!A||te[0]&131072)&&k(e,"bx--text-input-wrapper--readonly",N[17])},i(N){A||(p(Z),p(ne),p(o),A=!0)},o(N){g(Z),g(ne),g(o),A=!1},d(N){N&&m(e),Z&&Z.d(),ne&&ne.d(),R[s].d(),i[38](null),j&&j.d(),J&&J.d(),le&&le.d(),se&&se.d(),Te&&Te.d(),Ae&&Ae.d(),L=!1,pt(z)}}}function Jl(i,e,t){let r,n,l,s,o;const a=["size","value","placeholder","light","disabled","helperText","id","name","labelText","hideLabel","invalid","invalidText","warn","warnText","ref","required","inline","readonly"];let f=Re(e,a),{$$slots:u={},$$scope:c}=e;const d=li(u);let{size:h=void 0}=e,{value:y=""}=e,{placeholder:_=""}=e,{light:I=!1}=e,{disabled:v=!1}=e,{helperText:b=""}=e,{id:S="ccs-"+Math.random().toString(36)}=e,{name:P=void 0}=e,{labelText:T=""}=e,{hideLabel:A=!1}=e,{invalid:L=!1}=e,{invalidText:z=""}=e,{warn:Z=!1}=e,{warnText:ne=""}=e,{ref:re=null}=e,{required:R=!1}=e,{inline:E=!1}=e,{readonly:D=!1}=e;const w=si("Form"),j=Zt();function J(B){return f.type!=="number"?B:B!=""?Number(B):null}const le=B=>{t(0,y=J(B.target.value)),j("input",y)},se=B=>{j("change",J(B.target.value))};function Te(B){ge.call(this,i,B)}function Ae(B){ge.call(this,i,B)}function N(B){ge.call(this,i,B)}function te(B){ge.call(this,i,B)}function Ne(B){ge.call(this,i,B)}function Ce(B){ge.call(this,i,B)}function Wt(B){ge.call(this,i,B)}function Kt(B){ge.call(this,i,B)}function Qt(B){ge.call(this,i,B)}function Gt(B){Ze[B?"unshift":"push"](()=>{re=B,t(1,re)})}function Yt(){y=this.value,t(0,y)}return i.$$set=B=>{e=me(me({},e),Ue(B)),t(25,f=Re(e,a)),"size"in B&&t(2,h=B.size),"value"in B&&t(0,y=B.value),"placeholder"in B&&t(3,_=B.placeholder),"light"in B&&t(4,I=B.light),"disabled"in B&&t(5,v=B.disabled),"helperText"in B&&t(6,b=B.helperText),"id"in B&&t(7,S=B.id),"name"in B&&t(8,P=B.name),"labelText"in B&&t(9,T=B.labelText),"hideLabel"in B&&t(10,A=B.hideLabel),"invalid"in B&&t(11,L=B.invalid),"invalidText"in B&&t(12,z=B.invalidText),"warn"in B&&t(13,Z=B.warn),"warnText"in B&&t(14,ne=B.warnText),"ref"in B&&t(1,re=B.ref),"required"in B&&t(15,R=B.required),"inline"in B&&t(16,E=B.inline),"readonly"in B&&t(17,D=B.readonly),"$$scope"in B&&t(27,c=B.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&133120&&t(21,n=L&&!D),i.$$.dirty[0]&128&&t(20,l=`helper-${S}`),i.$$.dirty[0]&128&&t(19,s=`error-${S}`),i.$$.dirty[0]&128&&t(18,o=`warn-${S}`)},t(22,r=!!w&&w.isFluid),[y,re,h,_,I,v,b,S,P,T,A,L,z,Z,ne,R,E,D,o,s,l,n,r,le,se,f,d,c,u,Te,Ae,N,te,Ne,Ce,Wt,Kt,Qt,Gt,Yt]}class $l extends ce{constructor(e){super(),de(this,e,Jl,Hl,he,{size:2,value:0,placeholder:3,light:4,disabled:5,helperText:6,id:7,name:8,labelText:9,hideLabel:10,invalid:11,invalidText:12,warn:13,warnText:14,ref:1,required:15,inline:16,readonly:17},null,[-1,-1])}}const Wl=$l;class Kl extends tl{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:Rn()},t)}getOptimisticResult(e){return e.behavior=Rn(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var r,n,l,s,o,a;const{state:f}=e,u=super.createResult(e,t),{isFetching:c,isRefetching:d}=u,h=c&&((r=f.fetchMeta)==null||(n=r.fetchMore)==null?void 0:n.direction)==="forward",y=c&&((l=f.fetchMeta)==null||(s=l.fetchMore)==null?void 0:s.direction)==="backward";return{...u,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Ki(t,(o=f.data)==null?void 0:o.pages),hasPreviousPage:Qi(t,(a=f.data)==null?void 0:a.pages),isFetchingNextPage:h,isFetchingPreviousPage:y,isRefetching:d&&!h&&!y}}}function Ql(i,e,t){const r=nl(i,e,t);return rl(r,Kl)}class gn{static getSources(){return ze(Me,{method:"GET",url:"/api/v1/data_loaders/"})}static getSourceSchema(e){return ze(Me,{method:"GET",url:"/api/v1/data_loaders/{source_name}",path:{source_name:e},errors:{422:"Validation Error"}})}static load(e,t){return ze(Me,{method:"POST",url:"/api/v1/data_loaders/{source_name}/load",path:{source_name:e},body:t,mediaType:"application/json",errors:{422:"Validation Error"}})}}class Fe{static getDatasets(){return ze(Me,{method:"GET",url:"/api/v1/datasets/"})}static getManifest(e,t){return ze(Me,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}",path:{namespace:e,dataset_name:t},errors:{422:"Validation Error"}})}static deleteDataset(e,t){return ze(Me,{method:"DELETE",url:"/api/v1/datasets/{namespace}/{dataset_name}",path:{namespace:e,dataset_name:t},errors:{422:"Validation Error"}})}static computeSignal(e,t,r){return ze(Me,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/compute_signal",path:{namespace:e,dataset_name:t},body:r,mediaType:"application/json",errors:{422:"Validation Error"}})}static deleteSignal(e,t,r){return ze(Me,{method:"DELETE",url:"/api/v1/datasets/{namespace}/{dataset_name}/delete_signal",path:{namespace:e,dataset_name:t},body:r,mediaType:"application/json",errors:{422:"Validation Error"}})}static getStats(e,t,r){return ze(Me,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/stats",path:{namespace:e,dataset_name:t},body:r,mediaType:"application/json",errors:{422:"Validation Error"}})}static selectRowsDownload(e,t,r){return ze(Me,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_rows_download",path:{namespace:e,dataset_name:t},query:{url_safe_options:r},errors:{422:"Validation Error"}})}static selectRows(e,t,r){return ze(Me,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_rows",path:{namespace:e,dataset_name:t},body:r,mediaType:"application/json",errors:{422:"Validation Error"}})}static selectRowsSchema(e,t,r){return ze(Me,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_rows_schema",path:{namespace:e,dataset_name:t},body:r,mediaType:"application/json",errors:{422:"Validation Error"}})}static selectGroups(e,t,r){return ze(Me,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_groups",path:{namespace:e,dataset_name:t},body:r,mediaType:"application/json",errors:{422:"Validation Error"}})}static getMedia(e,t,r,n){return ze(Me,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}/media",path:{namespace:e,dataset_name:t},query:{item_id:r,leaf_path:n},errors:{422:"Validation Error"}})}}const Mt="*",Fu="__rowid__",st="__value__",xu={text:["string","string_span"],text_embedding:["embedding"],image:["binary"]};function Bu(i){return Gl(i)||Yl(i)}function Gl(i){return["float16","float32","float64"].indexOf(i??"")>=0}function Yl(i){return["int8","int16","int32","int64","uint8","uint16","uint32","uint64"].indexOf(i)>=0}function Zu(i){return typeof i=="string"?i:i.map(e=>e.includes(".")?`"${e}"`:e).join(".")}function Xl(i){return i.repeated_field?Xl(i.repeated_field):i.dtype&&!["embedding","binary"].includes(i.dtype)}function Hu(i){return i.dtype&&!["embedding","binary"].includes(i.dtype)}function ct(i){var t;return Array.isArray(i)?i:((t=i.match(/(?:"[^"]*"|[^.])+(?:\.+$)?/g))==null?void 0:t.map(r=>r.replace(/"/g,"")))||[]}function es(i,e){if(!i||!e||(i=ct(i),e=ct(e),i.length!==e.length))return!1;for(let t=0;tt.path.length>0)}function Qu(i){return i==null?[]:dt(i).filter(e=>e.dtype!=null)}function Gu(i,e){return e==null?[]:(e?dt(e):[]).filter(r=>r.dtype==i)}function Dt(i){let e;if(Array.isArray(i))e=[...i,...i.flatMap(Dt)];else{const{[st]:t,[yt]:r,[kt]:n,...l}=i,s=Object.values(l||{});e=[];for(const o of s)if(Array.isArray(o)){e=[...e,o];for(const a of o)e=[...e,a,...Dt(a)]}else e=[...e,o,...Dt(o)]}return e}function Yu(i,e){return dt(i).find(r=>_n(r.path,e))}function Xu(i,e){return Dt(i).filter(r=>_n(e,di.path(r)))}function ur(i,e,t=!1){return ns(e)&&(t=!0),e===i?t:e.fields!=null?Object.values(e.fields).some(r=>ur(i,r,t)):e.repeated_field!=null?ur(i,e.repeated_field,t):!1}function ns(i){return i.signal!=null}const di={path:i=>{if(!i)return;const e=i[yt];if(e==null)throw Error(`Item does not have a path defined: ${JSON.stringify(i)}`);return e},value:(i,e)=>i?i[st]:null,field:i=>{if(i)return i[kt]},dtype:i=>{const e=di.field(i);return e==null?void 0:e.dtype}};function ln(i,e){const{fields:t,repeated_field:r,...n}=i,l={...n,path:[]};if(t!=null){l.fields={};for(const[s,o]of Object.entries(t)){const a=ln(o,[...e,s]);a.path=[...e,s],l.fields[s]=a}}if(r!=null){const s=ln(r,[...e,Mt]);s.path=[...e,Mt],l.repeated_field=s}return l}function sn(i,e,t){const r=e.find(l=>_n(l.path,t));let n={};if(Array.isArray(i))return n=i.map((l,s)=>sn(l,e,[...t,s.toString()])),n[st]=null,n[yt]=t,n[kt]=r,n;if(i!=null&&typeof i=="object"){const{[st]:l,...s}=i;n=Object.entries(s).reduce((o,[a,f])=>(o[a]=sn(f,e,[...t,a]),o),{}),n[st]=l}else n[st]=i;return n[yt]=t,n[kt]=r,n}function cr(i){let e,t;return{c(){e=xe("title"),t=ve(i[1])},l(r){e=Be(r,"title",{});var n=M(e);t=we(n,i[1]),n.forEach(m)},m(r,n){O(r,e,n),F(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&m(e)}}}function rs(i){let e,t,r=i[1]&&cr(i),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],l={};for(let s=0;s{t(5,e=me(me({},e),Ue(f))),t(3,s=Re(e,l)),"size"in f&&t(0,o=f.size),"title"in f&&t(1,a=f.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||a),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ue(e),[o,a,n,s,r]}class ls extends ce{constructor(e){super(),de(this,e,is,rs,he,{size:0,title:1})}}const ec=el("goto"),Ie="datasets",dr=20,tc=We(Fe.getDatasets,Ie),nc=We(Fe.getManifest,Ie,{}),rc=We(Fe.getManifest,Ie,{select:i=>bn(i.dataset_manifest.data_schema)}),ic=We(function(e,t){return e&&t?Fe.getManifest(e,t):Promise.resolve(null)},Ie,{select:i=>i?bn(i.dataset_manifest.data_schema):null}),lc=We(gn.getSources,Ie),sc=We(gn.getSourceSchema,Ie,{select:i=>i}),oc=Ht(gn.load),ac=Ht(Fe.computeSignal,{onSuccess:i=>{tt.invalidateQueries([ll]),Gi(i.task_id,()=>{tt.invalidateQueries([Ie,"getManifest"]),tt.invalidateQueries([Ie,"selectRowsSchema"]),tt.invalidateQueries([Ie,"selectRows"])})}}),fc=Ht(Fe.deleteDataset,{onSuccess:()=>{tt.invalidateQueries([Ie])}}),uc=Ht(Fe.deleteSignal,{onSuccess:()=>{tt.invalidateQueries([Ie,"getManifest"]),tt.invalidateQueries([Ie,"selectRowsSchema"]),tt.invalidateQueries([Ie,"selectRows"])}}),cc=We(Fe.getStats,Ie),dc=il(Fe.getStats,Ie),hc=We(async function(e,t,r,n){const l=await Fe.selectRows(e,t,r);return{rows:l.rows.map(s=>ci(s,n)),total_num_rows:l.total_num_rows}},Ie),mc=We(Fe.selectRowsSchema,Ie,{select:i=>({schema:bn(i.data_schema),...i})}),pc=We(Fe.selectGroups,Ie),gc=(i,e,t,r)=>Ql({queryKey:[Ie,"selectRows",i,e,t],queryFn:({pageParam:n=0})=>Fe.selectRows(i,e,{...t,limit:t.limit||dr,offset:n*(t.limit||dr)}),select:n=>({...n,pages:n.pages.map(l=>({rows:l.rows.map(s=>ci(s,r)),total_num_rows:l.total_num_rows}))}),getNextPageParam:(n,l)=>l.length,enabled:!!r});var ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jt(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function _c(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function r(){if(this instanceof r){var n=[null];n.push.apply(n,arguments);var l=Function.bind.apply(e,n);return new l}return e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var n=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return i[r]}})}),t}function os(){const i=console.warn;console.warn=e=>{e.includes("unknown prop")||e.includes("unexpected slot")||i(e)},pn(()=>{console.warn=i})}function hr(i,e,t){const r=i.slice();return r[18]=e[t],r}function mr(i,e,t){const r=i.slice();return r[18]=e[t],r}function pr(i,e,t){const r=i.slice();return r[10]=e[t],r}function gr(i,e,t){const r=i.slice();return r[13]=e[t],r[15]=t,r}function _r(i,e,t){const r=i.slice();return r[16]=e[t],r[15]=t,r}function br(i,e,t){const r=i.slice();return r[7]=e[t],r}function as(i){let e,t,r,n;const l=[ds,cs,us],s=[];function o(a,f){return a[0]==="table"?0:a[0]==="list"?1:2}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=x()},l(a){t.l(a),r=x()},m(a,f){s[e].m(a,f),O(a,r,f),n=!0},p(a,f){let u=e;e=o(a),e===u?s[e].p(a,f):(X(),g(s[u],1,1,()=>{s[u]=null}),ee(),t=s[e],t?t.p(a,f):(t=s[e]=l[e](a),t.c()),p(t,1),t.m(r.parentNode,r))},i(a){n||(p(t),n=!0)},o(a){g(t),n=!1},d(a){s[e].d(a),a&&m(r)}}}function fs(i){let e,t,r=i[1],n=[];for(let s=0;sg(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s{K(u,1)}),ee()}l?(e=Se(l,s(o)),$(e.$$.fragment),p(e.$$.fragment,1),W(e,t.parentNode,t)):e=null}else l&&e.$set(f)},i(o){r||(e&&p(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&m(t),e&&K(e,o)}}}function cs(i){let e,t,r,n;const l=[_s,gs],s=[];function o(a,f){return a[4]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=x()},l(a){t.l(a),r=x()},m(a,f){s[e].m(a,f),O(a,r,f),n=!0},p(a,f){let u=e;e=o(a),e===u?s[e].p(a,f):(X(),g(s[u],1,1,()=>{s[u]=null}),ee(),t=s[e],t?t.p(a,f):(t=s[e]=l[e](a),t.c()),p(t,1),t.m(r.parentNode,r))},i(a){n||(p(t),n=!0)},o(a){g(t),n=!1},d(a){s[e].d(a),a&&m(r)}}}function ds(i){let e,t,r;var n=i[5].table;function l(s){return{props:{$$slots:{default:[As]},$$scope:{ctx:s}}}}return n&&(e=Se(n,l(i))),{c(){e&&$(e.$$.fragment),t=x()},l(s){e&&ie(e.$$.fragment,s),t=x()},m(s,o){e&&W(e,s,o),O(s,t,o),r=!0},p(s,o){const a={};if(o&8388716&&(a.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].table)){if(e){X();const f=e;g(f.$$.fragment,1,0,()=>{K(f,1)}),ee()}n?(e=Se(n,l(s)),$(e.$$.fragment),p(e.$$.fragment,1),W(e,t.parentNode,t)):e=null}else n&&e.$set(a)},i(s){r||(e&&p(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&m(t),e&&K(e,s)}}}function hs(i){let e=i[6].raw+"",t;return{c(){t=ve(e)},l(r){t=we(r,e)},m(r,n){O(r,t,n)},p(r,n){n&64&&e!==(e=r[6].raw+"")&&Pe(t,e)},i:ue,o:ue,d(r){r&&m(t)}}}function ms(i){let e,t;return e=new at({props:{tokens:i[1],renderers:i[5]}}),{c(){$(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){W(e,r,n),t=!0},p(r,n){const l={};n&2&&(l.tokens=r[1]),n&32&&(l.renderers=r[5]),e.$set(l)},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function ps(i){let e,t,r,n;const l=[ms,hs],s=[];function o(a,f){return a[1]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=x()},l(a){t.l(a),r=x()},m(a,f){s[e].m(a,f),O(a,r,f),n=!0},p(a,f){let u=e;e=o(a),e===u?s[e].p(a,f):(X(),g(s[u],1,1,()=>{s[u]=null}),ee(),t=s[e],t?t.p(a,f):(t=s[e]=l[e](a),t.c()),p(t,1),t.m(r.parentNode,r))},i(a){n||(p(t),n=!0)},o(a){g(t),n=!1},d(a){s[e].d(a),a&&m(r)}}}function gs(i){let e,t,r;const n=[{ordered:i[4]},i[6]];var l=i[5].list;function s(o){let a={$$slots:{default:[Es]},$$scope:{ctx:o}};for(let f=0;f{K(u,1)}),ee()}l?(e=Se(l,s(o)),$(e.$$.fragment),p(e.$$.fragment,1),W(e,t.parentNode,t)):e=null}else l&&e.$set(f)},i(o){r||(e&&p(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&m(t),e&&K(e,o)}}}function _s(i){let e,t,r;const n=[{ordered:i[4]},i[6]];var l=i[5].list;function s(o){let a={$$slots:{default:[ks]},$$scope:{ctx:o}};for(let f=0;f{K(u,1)}),ee()}l?(e=Se(l,s(o)),$(e.$$.fragment),p(e.$$.fragment,1),W(e,t.parentNode,t)):e=null}else l&&e.$set(f)},i(o){r||(e&&p(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&m(t),e&&K(e,o)}}}function bs(i){let e,t,r;return e=new at({props:{tokens:i[18].tokens,renderers:i[5]}}),{c(){$(e.$$.fragment),t=ae()},l(n){ie(e.$$.fragment,n),t=fe(n)},m(n,l){W(e,n,l),O(n,t,l),r=!0},p(n,l){const s={};l&64&&(s.tokens=n[18].tokens),l&32&&(s.renderers=n[5]),e.$set(s)},i(n){r||(p(e.$$.fragment,n),r=!0)},o(n){g(e.$$.fragment,n),r=!1},d(n){K(e,n),n&&m(t)}}}function Er(i){let e,t,r;const n=[i[18]];var l=i[5].unorderedlistitem||i[5].listitem;function s(o){let a={$$slots:{default:[bs]},$$scope:{ctx:o}};for(let f=0;f{K(u,1)}),ee()}l?(e=Se(l,s(o)),$(e.$$.fragment),p(e.$$.fragment,1),W(e,t.parentNode,t)):e=null}else l&&e.$set(f)},i(o){r||(e&&p(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&m(t),e&&K(e,o)}}}function Es(i){let e,t,r=i[6].items,n=[];for(let s=0;sg(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s{K(u,1)}),ee()}l?(e=Se(l,s(o)),$(e.$$.fragment),p(e.$$.fragment,1),W(e,t.parentNode,t)):e=null}else l&&e.$set(f)},i(o){r||(e&&p(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&m(t),e&&K(e,o)}}}function ks(i){let e,t,r=i[6].items,n=[];for(let s=0;sg(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s{K(f,1)}),ee()}n?(e=Se(n,l(s)),$(e.$$.fragment),p(e.$$.fragment,1),W(e,t.parentNode,t)):e=null}else n&&e.$set(a)},i(s){r||(e&&p(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&m(t),e&&K(e,s)}}}function ws(i){let e,t,r=i[2],n=[];for(let s=0;sg(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s{K(f,1)}),ee()}n?(e=Se(n,l(s)),$(e.$$.fragment),p(e.$$.fragment,1),W(e,t.parentNode,t)):e=null}else n&&e.$set(a)},i(s){r||(e&&p(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&m(t),e&&K(e,s)}}}function Ss(i){let e,t;return e=new at({props:{tokens:i[13].tokens,renderers:i[5]}}),{c(){$(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){W(e,r,n),t=!0},p(r,n){const l={};n&8&&(l.tokens=r[13].tokens),n&32&&(l.renderers=r[5]),e.$set(l)},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function vr(i){let e,t,r;var n=i[5].tablecell;function l(s){return{props:{header:!1,align:s[6].align[s[15]]||"center",$$slots:{default:[Ss]},$$scope:{ctx:s}}}}return n&&(e=Se(n,l(i))),{c(){e&&$(e.$$.fragment),t=x()},l(s){e&&ie(e.$$.fragment,s),t=x()},m(s,o){e&&W(e,s,o),O(s,t,o),r=!0},p(s,o){const a={};if(o&64&&(a.align=s[6].align[s[15]]||"center"),o&8388648&&(a.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].tablecell)){if(e){X();const f=e;g(f.$$.fragment,1,0,()=>{K(f,1)}),ee()}n?(e=Se(n,l(s)),$(e.$$.fragment),p(e.$$.fragment,1),W(e,t.parentNode,t)):e=null}else n&&e.$set(a)},i(s){r||(e&&p(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&m(t),e&&K(e,s)}}}function Ps(i){let e,t,r=i[10],n=[];for(let s=0;sg(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s{K(f,1)}),ee()}n?(e=Se(n,l(s)),$(e.$$.fragment),p(e.$$.fragment,1),W(e,t.parentNode,t)):e=null}else n&&e.$set(a)},i(s){r||(e&&p(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&m(t),e&&K(e,s)}}}function Ts(i){let e,t,r=i[3],n=[];for(let s=0;sg(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s{K(y,1)}),ee()}s?(e=Se(s,o(u)),$(e.$$.fragment),p(e.$$.fragment,1),W(e,t.parentNode,t)):e=null}else s&&e.$set(d);const h={};if(c&8388712&&(h.$$scope={dirty:c,ctx:u}),c&32&&a!==(a=u[5].tablebody)){if(r){X();const y=r;g(y.$$.fragment,1,0,()=>{K(y,1)}),ee()}a?(r=Se(a,f(u)),$(r.$$.fragment),p(r.$$.fragment,1),W(r,n.parentNode,n)):r=null}else a&&r.$set(h)},i(u){l||(e&&p(e.$$.fragment,u),r&&p(r.$$.fragment,u),l=!0)},o(u){e&&g(e.$$.fragment,u),r&&g(r.$$.fragment,u),l=!1},d(u){e&&K(e,u),u&&m(t),u&&m(n),r&&K(r,u)}}}function Or(i){let e,t;const r=[i[7],{renderers:i[5]}];let n={};for(let l=0;l{s[u]=null}),ee()),~e?(t=s[e],t?t.p(a,f):(t=s[e]=l[e](a),t.c()),p(t,1),t.m(r.parentNode,r)):t=null)},i(a){n||(p(t),n=!0)},o(a){g(t),n=!1},d(a){~e&&s[e].d(a),a&&m(r)}}}function Rs(i,e,t){const r=["type","tokens","header","rows","ordered","renderers"];let n=Re(e,r),{type:l=void 0}=e,{tokens:s=void 0}=e,{header:o=void 0}=e,{rows:a=void 0}=e,{ordered:f=!1}=e,{renderers:u}=e;return os(),i.$$set=c=>{e=me(me({},e),Ue(c)),t(6,n=Re(e,r)),"type"in c&&t(0,l=c.type),"tokens"in c&&t(1,s=c.tokens),"header"in c&&t(2,o=c.header),"rows"in c&&t(3,a=c.rows),"ordered"in c&&t(4,f=c.ordered),"renderers"in c&&t(5,u=c.renderers)},[l,s,o,a,f,u,n]}let at=class extends ce{constructor(e){super(),de(this,e,Rs,Is,he,{type:0,tokens:1,header:2,rows:3,ordered:4,renderers:5})}};function hi(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let ft=hi();function js(i){ft=i}const mi=/[&<>"']/,Ns=new RegExp(mi.source,"g"),pi=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ls=new RegExp(pi.source,"g"),Ds={"&":"&","<":"<",">":">",'"':""","'":"'"},Sr=i=>Ds[i];function Le(i,e){if(e){if(mi.test(i))return i.replace(Ns,Sr)}else if(pi.test(i))return i.replace(Ls,Sr);return i}const Cs=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function gi(i){return i.replace(Cs,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const zs=/(^|[^\[])\^/g;function Oe(i,e){i=typeof i=="string"?i:i.source,e=e||"";const t={replace:(r,n)=>(n=n.source||n,n=n.replace(zs,"$1"),i=i.replace(r,n),t),getRegex:()=>new RegExp(i,e)};return t}const Ms=/[^\w:]/g,Vs=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Pr(i,e,t){if(i){let r;try{r=decodeURIComponent(gi(t)).replace(Ms,"").toLowerCase()}catch{return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0)return null}e&&!Vs.test(t)&&(t=xs(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const It={},Us=/^[^:]+:\/*[^/]*$/,qs=/^([^:]+:)[\s\S]*$/,Fs=/^([^:]+:\/*[^/]*)[\s\S]*$/;function xs(i,e){It[" "+i]||(Us.test(i)?It[" "+i]=i+"/":It[" "+i]=Ct(i,"/",!0)),i=It[" "+i];const t=i.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:i.replace(qs,"$1")+e:e.charAt(0)==="/"?t?e:i.replace(Fs,"$1")+e:i+e}const Vt={exec:function(){}};function Tr(i,e){const t=i.replace(/\|/g,(l,s,o)=>{let a=!1,f=s;for(;--f>=0&&o[f]==="\\";)a=!a;return a?"|":" |"}),r=t.split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>e)r.splice(e);else for(;r.length1;)e&1&&(t+=i),e>>=1,i+=i;return t+i}function Ir(i,e,t,r){const n=e.href,l=e.title?Le(e.title):null,s=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){r.state.inLink=!0;const o={type:"link",raw:t,href:n,title:l,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,o}return{type:"image",raw:t,href:n,title:l,text:Le(s)}}function Hs(i,e){const t=i.match(/^(\s+)(?:```)/);if(t===null)return e;const r=t[1];return e.split(` +`).map(n=>{const l=n.match(/^\s+/);if(l===null)return n;const[s]=l;return s.length>=r.length?n.slice(r.length):n}).join(` +`)}class En{constructor(e){this.options=e||ft}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Ct(r,` +`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=Hs(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(/#$/.test(r)){const n=Ct(r,"#");(this.options.pedantic||!n||/ $/.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const r=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const l=this.lexer.blockTokens(r);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:l,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,l,s,o,a,f,u,c,d,h,y,_=t[1].trim();const I=_.length>1,v={type:"list",raw:"",ordered:I,start:I?+_.slice(0,-1):"",loose:!1,items:[]};_=I?`\\d{1,9}\\${_.slice(-1)}`:`\\${_}`,this.options.pedantic&&(_=I?_:"[*+-]");const b=new RegExp(`^( {0,3}${_})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(y=!1,!(!(t=b.exec(e))||this.rules.block.hr.test(e)));){if(r=t[0],e=e.substring(r.length),u=t[2].split(` +`,1)[0].replace(/^\t+/,P=>" ".repeat(3*P.length)),c=e.split(` +`,1)[0],this.options.pedantic?(s=2,h=u.trimLeft()):(s=t[2].search(/[^ ]/),s=s>4?1:s,h=u.slice(s),s+=t[1].length),a=!1,!u&&/^ *$/.test(c)&&(r+=c+` +`,e=e.substring(c.length+1),y=!0),!y){const P=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),T=new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),A=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),L=new RegExp(`^ {0,${Math.min(3,s-1)}}#`);for(;e&&(d=e.split(` +`,1)[0],c=d,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(A.test(c)||L.test(c)||P.test(c)||T.test(e)));){if(c.search(/[^ ]/)>=s||!c.trim())h+=` +`+c.slice(s);else{if(a||u.search(/[^ ]/)>=4||A.test(u)||L.test(u)||T.test(u))break;h+=` +`+c}!a&&!c.trim()&&(a=!0),r+=d+` +`,e=e.substring(d.length+1),u=c.slice(s)}}v.loose||(f?v.loose=!0:/\n *\n *$/.test(r)&&(f=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(h),n&&(l=n[0]!=="[ ] ",h=h.replace(/^\[[ xX]\] +/,""))),v.items.push({type:"list_item",raw:r,task:!!n,checked:l,loose:!1,text:h}),v.raw+=r}v.items[v.items.length-1].raw=r.trimRight(),v.items[v.items.length-1].text=h.trimRight(),v.raw=v.raw.trimRight();const S=v.items.length;for(o=0;oA.type==="space"),T=P.length>0&&P.some(A=>/\n.*\n/.test(A.raw));v.loose=T}if(v.loose)for(o=0;o$/,"$1").replace(this.rules.inline._escapes,"$1"):"",l=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:l}}}table(e){const t=this.rules.block.table.exec(e);if(t){const r={type:"table",header:Tr(t[1]).map(n=>({text:n})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(r.header.length===r.align.length){r.raw=t[0];let n=r.align.length,l,s,o,a;for(l=0;l({text:f}));for(n=r.header.length,s=0;s/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Le(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const s=Ct(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=Bs(t[2],"()");if(s>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let n=t[2],l="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);s&&(n=s[1],l=s[3])}else l=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^$/.test(r)?n=n.slice(1):n=n.slice(1,-1)),Ir(t,{href:n&&n.replace(this.rules.inline._escapes,"$1"),title:l&&l.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let n=(r[2]||r[1]).replace(/\s+/g," ");if(n=t[n.toLowerCase()],!n){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return Ir(r,n,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n||n[3]&&r.match(/[\p{L}\p{N}]/u))return;const l=n[1]||n[2]||"";if(!l||l&&(r===""||this.rules.inline.punctuation.exec(r))){const s=n[0].length-1;let o,a,f=s,u=0;const c=n[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+s);(n=c.exec(t))!=null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(a=o.length,n[3]||n[4]){f+=a;continue}else if((n[5]||n[6])&&s%3&&!((s+a)%3)){u+=a;continue}if(f-=a,f>0)continue;a=Math.min(a,a+f+u);const d=e.slice(0,s+n.index+(n[0].length-o.length)+a);if(Math.min(s,a)%2){const y=d.slice(1,-1);return{type:"em",raw:d,text:y,tokens:this.lexer.inlineTokens(y)}}const h=d.slice(2,-2);return{type:"strong",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(/\n/g," ");const n=/[^ ]/.test(r),l=/^ /.test(r)&&/ $/.test(r);return n&&l&&(r=r.substring(1,r.length-1)),r=Le(r,!0),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const r=this.rules.inline.autolink.exec(e);if(r){let n,l;return r[2]==="@"?(n=Le(this.options.mangle?t(r[1]):r[1]),l="mailto:"+n):(n=Le(r[1]),l=n),{type:"link",raw:r[0],text:n,href:l,tokens:[{type:"text",raw:n,text:n}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let n,l;if(r[2]==="@")n=Le(this.options.mangle?t(r[0]):r[0]),l="mailto:"+n;else{let s;do s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(s!==r[0]);n=Le(r[0]),r[1]==="www."?l="http://"+r[0]:l=r[0]}return{type:"link",raw:r[0],text:n,href:l,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let n;return this.lexer.state.inRawBlock?n=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Le(r[0]):r[0]:n=Le(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}}}}const G={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Vt,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};G._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;G._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;G.def=Oe(G.def).replace("label",G._label).replace("title",G._title).getRegex();G.bullet=/(?:[*+-]|\d{1,9}[.)])/;G.listItemStart=Oe(/^( *)(bull) */).replace("bull",G.bullet).getRegex();G.list=Oe(G.list).replace(/bull/g,G.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+G.def.source+")").getRegex();G._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";G._comment=/|$)/;G.html=Oe(G.html,"i").replace("comment",G._comment).replace("tag",G._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();G.paragraph=Oe(G._paragraph).replace("hr",G.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",G._tag).getRegex();G.blockquote=Oe(G.blockquote).replace("paragraph",G.paragraph).getRegex();G.normal={...G};G.gfm={...G.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};G.gfm.table=Oe(G.gfm.table).replace("hr",G.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",G._tag).getRegex();G.gfm.paragraph=Oe(G._paragraph).replace("hr",G.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",G.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",G._tag).getRegex();G.pedantic={...G.normal,html:Oe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",G._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Vt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Oe(G.normal._paragraph).replace("hr",G.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",G.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const H={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Vt,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Vt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~";H.punctuation=Oe(H.punctuation).replace(/punctuation/g,H._punctuation).getRegex();H.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;H.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;H._comment=Oe(G._comment).replace("(?:-->|$)","-->").getRegex();H.emStrong.lDelim=Oe(H.emStrong.lDelim).replace(/punct/g,H._punctuation).getRegex();H.emStrong.rDelimAst=Oe(H.emStrong.rDelimAst,"g").replace(/punct/g,H._punctuation).getRegex();H.emStrong.rDelimUnd=Oe(H.emStrong.rDelimUnd,"g").replace(/punct/g,H._punctuation).getRegex();H._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;H._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;H._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;H.autolink=Oe(H.autolink).replace("scheme",H._scheme).replace("email",H._email).getRegex();H._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;H.tag=Oe(H.tag).replace("comment",H._comment).replace("attribute",H._attribute).getRegex();H._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;H._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;H._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;H.link=Oe(H.link).replace("label",H._label).replace("href",H._href).replace("title",H._title).getRegex();H.reflink=Oe(H.reflink).replace("label",H._label).replace("ref",G._label).getRegex();H.nolink=Oe(H.nolink).replace("ref",G._label).getRegex();H.reflinkSearch=Oe(H.reflinkSearch,"g").replace("reflink",H.reflink).replace("nolink",H.nolink).getRegex();H.normal={...H};H.pedantic={...H.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Oe(/^!?\[(label)\]\((.*?)\)/).replace("label",H._label).getRegex(),reflink:Oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",H._label).getRegex()};H.gfm={...H.normal,escape:Oe(H.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),e+="&#"+r+";";return e}class Ye{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ft,this.options.tokenizer=this.options.tokenizer||new En,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:G.normal,inline:H.normal};this.options.pedantic?(t.block=G.pedantic,t.inline=H.pedantic):this.options.gfm&&(t.block=G.gfm,this.options.breaks?t.inline=H.breaks:t.inline=H.gfm),this.tokenizer.rules=t}static get rules(){return{block:G,inline:H}}static lex(e,t){return new Ye(t).lex(e)}static lexInline(e,t){return new Ye(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,` +`),this.blockTokens(e,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(o,a,f)=>a+" ".repeat(f.length));let r,n,l,s;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(r=o.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&t.length>0?t[t.length-1].raw+=` +`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=` +`+r.raw,n.text+=` +`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=` +`+r.raw,n.text+=` +`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(l=e,this.options.extensions&&this.options.extensions.startBlock){let o=1/0;const a=e.slice(1);let f;this.options.extensions.startBlock.forEach(function(u){f=u.call({lexer:this},a),typeof f=="number"&&f>=0&&(o=Math.min(o,f))}),o<1/0&&o>=0&&(l=e.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(l))){n=t[t.length-1],s&&n.type==="paragraph"?(n.raw+=` +`+r.raw,n.text+=` +`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),s=l.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&n.type==="text"?(n.raw+=` +`+r.raw,n.text+=` +`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if(e){const o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,l,s=e,o,a,f;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)u.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+Ar("a",o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,o.index)+"["+Ar("a",o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.escapedEmSt.exec(s))!=null;)s=s.slice(0,o.index+o[0].length-2)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(a||(f=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(r=u.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,s,f)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e,Rr)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e,Rr))){e=e.substring(r.raw.length),t.push(r);continue}if(l=e,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const c=e.slice(1);let d;this.options.extensions.startInline.forEach(function(h){d=h.call({lexer:this},c),typeof d=="number"&&d>=0&&(u=Math.min(u,d))}),u<1/0&&u>=0&&(l=e.substring(0,u+1))}if(r=this.tokenizer.inlineText(l,Js)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(f=r.raw.slice(-1)),a=!0,n=t[t.length-1],n&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return t}}class yn{constructor(e){this.options=e||ft}code(e,t,r){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const l=this.options.highlight(e,n);l!=null&&l!==e&&(r=!0,e=l)}return e=e.replace(/\n$/,"")+` +`,n?'
'+(r?e:Le(e,!0))+`
+`:"
"+(r?e:Le(e,!0))+`
+`}blockquote(e){return`
+${e}
+`}html(e){return e}heading(e,t,r,n){if(this.options.headerIds){const l=this.options.headerPrefix+n.slug(r);return`${e} +`}return`${e} +`}hr(){return this.options.xhtml?`
+`:`
+`}list(e,t,r){const n=t?"ol":"ul",l=t&&r!==1?' start="'+r+'"':"";return"<"+n+l+`> +`+e+" +`}listitem(e){return`
  • ${e}
  • +`}checkbox(e){return" "}paragraph(e){return`

    ${e}

    +`}table(e,t){return t&&(t=`${t}`),` + +`+e+` +`+t+`
    +`}tablerow(e){return` +${e} +`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+` +`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,r){if(e=Pr(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let n='",n}image(e,t,r){if(e=Pr(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let n=`${r}":">",n}text(e){return e}}class _i{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class kn{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do n++,r=e+"-"+n;while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}}let Pt=class on{constructor(e){this.options=e||ft,this.options.renderer=this.options.renderer||new yn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new _i,this.slugger=new kn}static parse(e,t){return new on(t).parse(e)}static parseInline(e,t){return new on(t).parseInline(e)}parse(e,t=!0){let r="",n,l,s,o,a,f,u,c,d,h,y,_,I,v,b,S,P,T,A;const L=e.length;for(n=0;n0&&b.tokens[0].type==="paragraph"?(b.tokens[0].text=T+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&b.tokens[0].tokens[0].type==="text"&&(b.tokens[0].tokens[0].text=T+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:T}):v+=T),v+=this.parse(b.tokens,I),d+=this.renderer.listitem(v,P,S);r+=this.renderer.list(d,y,_);continue}case"html":{r+=this.renderer.html(h.text);continue}case"paragraph":{r+=this.renderer.paragraph(this.parseInline(h.tokens));continue}case"text":{for(d=h.tokens?this.parseInline(h.tokens):h.text;n+1{if(r.message+=` +Please report this to https://github.com/markedjs/marked.`,i){const n="

    An error occurred:

    "+Le(r.message+"",!0)+"
    ";if(e)return Promise.resolve(n);if(t){t(null,n);return}return n}if(e)return Promise.reject(r);if(t){t(r);return}throw r}}function bi(i,e){return(t,r,n)=>{typeof r=="function"&&(n=r,r=null);const l={...r};r={...Y.defaults,...l};const s=$s(r.silent,r.async,n);if(typeof t>"u"||t===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(Zs(r),r.hooks&&(r.hooks.options=r),n){const o=r.highlight;let a;try{r.hooks&&(t=r.hooks.preprocess(t)),a=i(t,r)}catch(c){return s(c)}const f=function(c){let d;if(!c)try{r.walkTokens&&Y.walkTokens(a,r.walkTokens),d=e(a,r),r.hooks&&(d=r.hooks.postprocess(d))}catch(h){c=h}return r.highlight=o,c?s(c):n(null,d)};if(!o||o.length<3||(delete r.highlight,!a.length))return f();let u=0;Y.walkTokens(a,function(c){c.type==="code"&&(u++,setTimeout(()=>{o(c.text,c.lang,function(d,h){if(d)return f(d);h!=null&&h!==c.text&&(c.text=h,c.escaped=!0),u--,u===0&&f()})},0))}),u===0&&f();return}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(t):t).then(o=>i(o,r)).then(o=>r.walkTokens?Promise.all(Y.walkTokens(o,r.walkTokens)).then(()=>o):o).then(o=>e(o,r)).then(o=>r.hooks?r.hooks.postprocess(o):o).catch(s);try{r.hooks&&(t=r.hooks.preprocess(t));const o=i(t,r);r.walkTokens&&Y.walkTokens(o,r.walkTokens);let a=e(o,r);return r.hooks&&(a=r.hooks.postprocess(a)),a}catch(o){return s(o)}}}function Y(i,e,t){return bi(Ye.lex,Pt.parse)(i,e,t)}Y.options=Y.setOptions=function(i){return Y.defaults={...Y.defaults,...i},js(Y.defaults),Y};Y.getDefaults=hi;Y.defaults=ft;Y.use=function(...i){const e=Y.defaults.extensions||{renderers:{},childTokens:{}};i.forEach(t=>{const r={...t};if(r.async=Y.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if(n.renderer){const l=e.renderers[n.name];l?e.renderers[n.name]=function(...s){let o=n.renderer.apply(this,s);return o===!1&&(o=l.apply(this,s)),o}:e.renderers[n.name]=n.renderer}if(n.tokenizer){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[n.level]?e[n.level].unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),r.extensions=e),t.renderer){const n=Y.defaults.renderer||new yn;for(const l in t.renderer){const s=n[l];n[l]=(...o)=>{let a=t.renderer[l].apply(n,o);return a===!1&&(a=s.apply(n,o)),a}}r.renderer=n}if(t.tokenizer){const n=Y.defaults.tokenizer||new En;for(const l in t.tokenizer){const s=n[l];n[l]=(...o)=>{let a=t.tokenizer[l].apply(n,o);return a===!1&&(a=s.apply(n,o)),a}}r.tokenizer=n}if(t.hooks){const n=Y.defaults.hooks||new Ut;for(const l in t.hooks){const s=n[l];Ut.passThroughHooks.has(l)?n[l]=o=>{if(Y.defaults.async)return Promise.resolve(t.hooks[l].call(n,o)).then(f=>s.call(n,f));const a=t.hooks[l].call(n,o);return s.call(n,a)}:n[l]=(...o)=>{let a=t.hooks[l].apply(n,o);return a===!1&&(a=s.apply(n,o)),a}}r.hooks=n}if(t.walkTokens){const n=Y.defaults.walkTokens;r.walkTokens=function(l){let s=[];return s.push(t.walkTokens.call(this,l)),n&&(s=s.concat(n.call(this,l))),s}}Y.setOptions(r)})};Y.walkTokens=function(i,e){let t=[];for(const r of i)switch(t=t.concat(e.call(Y,r)),r.type){case"table":{for(const n of r.header)t=t.concat(Y.walkTokens(n.tokens,e));for(const n of r.rows)for(const l of n)t=t.concat(Y.walkTokens(l.tokens,e));break}case"list":{t=t.concat(Y.walkTokens(r.items,e));break}default:Y.defaults.extensions&&Y.defaults.extensions.childTokens&&Y.defaults.extensions.childTokens[r.type]?Y.defaults.extensions.childTokens[r.type].forEach(function(n){t=t.concat(Y.walkTokens(r[n],e))}):r.tokens&&(t=t.concat(Y.walkTokens(r.tokens,e)))}return t};Y.parseInline=bi(Ye.lexInline,Pt.parseInline);Y.Parser=Pt;Y.parser=Pt.parse;Y.Renderer=yn;Y.TextRenderer=_i;Y.Lexer=Ye;Y.lexer=Ye.lex;Y.Tokenizer=En;Y.Slugger=kn;Y.Hooks=Ut;Y.parse=Y;Y.options;Y.setOptions;Y.use;Y.walkTokens;Y.parseInline;Pt.parse;Ye.lex;const Ei={};function Ws(i){let e;return{c(){e=ve(i[1])},l(t){e=we(t,i[1])},m(t,r){O(t,e,r)},p(t,r){r&2&&Pe(e,t[1])},i:ue,o:ue,d(t){t&&m(e)}}}function Ks(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h6"),n&&n.c(),this.h()},l(l){e=q(l,"H6",{id:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&be(n,r,l,l[4],t?ye(r,l[4],s,null):Ee(l[4]),null),(!t||s&4)&&C(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Qs(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h5"),n&&n.c(),this.h()},l(l){e=q(l,"H5",{id:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&be(n,r,l,l[4],t?ye(r,l[4],s,null):Ee(l[4]),null),(!t||s&4)&&C(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Gs(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h4"),n&&n.c(),this.h()},l(l){e=q(l,"H4",{id:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&be(n,r,l,l[4],t?ye(r,l[4],s,null):Ee(l[4]),null),(!t||s&4)&&C(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Ys(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h3"),n&&n.c(),this.h()},l(l){e=q(l,"H3",{id:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&be(n,r,l,l[4],t?ye(r,l[4],s,null):Ee(l[4]),null),(!t||s&4)&&C(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Xs(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h2"),n&&n.c(),this.h()},l(l){e=q(l,"H2",{id:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&be(n,r,l,l[4],t?ye(r,l[4],s,null):Ee(l[4]),null),(!t||s&4)&&C(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function eo(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h1"),n&&n.c(),this.h()},l(l){e=q(l,"H1",{id:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&be(n,r,l,l[4],t?ye(r,l[4],s,null):Ee(l[4]),null),(!t||s&4)&&C(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function to(i){let e,t,r,n;const l=[eo,Xs,Ys,Gs,Qs,Ks,Ws],s=[];function o(a,f){return a[0]===1?0:a[0]===2?1:a[0]===3?2:a[0]===4?3:a[0]===5?4:a[0]===6?5:6}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=x()},l(a){t.l(a),r=x()},m(a,f){s[e].m(a,f),O(a,r,f),n=!0},p(a,[f]){let u=e;e=o(a),e===u?s[e].p(a,f):(X(),g(s[u],1,1,()=>{s[u]=null}),ee(),t=s[e],t?t.p(a,f):(t=s[e]=l[e](a),t.c()),p(t,1),t.m(r.parentNode,r))},i(a){n||(p(t),n=!0)},o(a){g(t),n=!1},d(a){s[e].d(a),a&&m(r)}}}function no(i,e,t){let r,{$$slots:n={},$$scope:l}=e,{depth:s}=e,{raw:o}=e,{text:a}=e;const{slug:f,getOptions:u}=si(Ei),c=u();return i.$$set=d=>{"depth"in d&&t(0,s=d.depth),"raw"in d&&t(1,o=d.raw),"text"in d&&t(3,a=d.text),"$$scope"in d&&t(4,l=d.$$scope)},i.$$.update=()=>{i.$$.dirty&8&&t(2,r=c.headerIds?c.headerPrefix+f(a):void 0)},[s,o,r,a,l,n]}class ro extends ce{constructor(e){super(),de(this,e,no,to,he,{depth:0,raw:1,text:3})}}function io(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("p"),n&&n.c()},l(l){e=q(l,"P",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ye(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function lo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class so extends ce{constructor(e){super(),de(this,e,lo,io,he,{})}}function oo(i){let e;const t=i[3].default,r=_e(t,i,i[2],null);return{c(){r&&r.c()},l(n){r&&r.l(n)},m(n,l){r&&r.m(n,l),e=!0},p(n,[l]){r&&r.p&&(!e||l&4)&&be(r,t,n,n[2],e?ye(t,n[2],l,null):Ee(n[2]),null)},i(n){e||(p(r,n),e=!0)},o(n){g(r,n),e=!1},d(n){r&&r.d(n)}}}function ao(i,e,t){let{$$slots:r={},$$scope:n}=e,{text:l}=e,{raw:s}=e;return i.$$set=o=>{"text"in o&&t(0,l=o.text),"raw"in o&&t(1,s=o.raw),"$$scope"in o&&t(2,n=o.$$scope)},[l,s,n,r]}class fo extends ce{constructor(e){super(),de(this,e,ao,oo,he,{text:0,raw:1})}}function uo(i){let e,t;return{c(){e=U("img"),this.h()},l(r){e=q(r,"IMG",{src:!0,title:!0,alt:!0}),this.h()},h(){In(e.src,t=i[0])||C(e,"src",t),C(e,"title",i[1]),C(e,"alt",i[2])},m(r,n){O(r,e,n)},p(r,[n]){n&1&&!In(e.src,t=r[0])&&C(e,"src",t),n&2&&C(e,"title",r[1]),n&4&&C(e,"alt",r[2])},i:ue,o:ue,d(r){r&&m(e)}}}function co(i,e,t){let{href:r=""}=e,{title:n=void 0}=e,{text:l=""}=e;return i.$$set=s=>{"href"in s&&t(0,r=s.href),"title"in s&&t(1,n=s.title),"text"in s&&t(2,l=s.text)},[r,n,l]}class ho extends ce{constructor(e){super(),de(this,e,co,uo,he,{href:0,title:1,text:2})}}function mo(i){let e,t;const r=i[3].default,n=_e(r,i,i[2],null);return{c(){e=U("a"),n&&n.c(),this.h()},l(l){e=q(l,"A",{href:!0,title:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"href",i[0]),C(e,"title",i[1])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&4)&&be(n,r,l,l[2],t?ye(r,l[2],s,null):Ee(l[2]),null),(!t||s&1)&&C(e,"href",l[0]),(!t||s&2)&&C(e,"title",l[1])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function po(i,e,t){let{$$slots:r={},$$scope:n}=e,{href:l=""}=e,{title:s=void 0}=e;return i.$$set=o=>{"href"in o&&t(0,l=o.href),"title"in o&&t(1,s=o.title),"$$scope"in o&&t(2,n=o.$$scope)},[l,s,n,r]}class go extends ce{constructor(e){super(),de(this,e,po,mo,he,{href:0,title:1})}}function _o(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("em"),n&&n.c()},l(l){e=q(l,"EM",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ye(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function bo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Eo extends ce{constructor(e){super(),de(this,e,bo,_o,he,{})}}function yo(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("del"),n&&n.c()},l(l){e=q(l,"DEL",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ye(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function ko(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class vo extends ce{constructor(e){super(),de(this,e,ko,yo,he,{})}}function wo(i){let e,t=i[0].replace(/`/g,"")+"",r;return{c(){e=U("code"),r=ve(t)},l(n){e=q(n,"CODE",{});var l=M(e);r=we(l,t),l.forEach(m)},m(n,l){O(n,e,l),F(e,r)},p(n,[l]){l&1&&t!==(t=n[0].replace(/`/g,"")+"")&&Pe(r,t)},i:ue,o:ue,d(n){n&&m(e)}}}function Oo(i,e,t){let{raw:r}=e;return i.$$set=n=>{"raw"in n&&t(0,r=n.raw)},[r]}class So extends ce{constructor(e){super(),de(this,e,Oo,wo,he,{raw:0})}}function Po(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("strong"),n&&n.c()},l(l){e=q(l,"STRONG",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ye(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function To(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Ao extends ce{constructor(e){super(),de(this,e,To,Po,he,{})}}function Io(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("table"),n&&n.c()},l(l){e=q(l,"TABLE",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ye(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Ro(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class jo extends ce{constructor(e){super(),de(this,e,Ro,Io,he,{})}}function No(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("thead"),n&&n.c()},l(l){e=q(l,"THEAD",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ye(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Lo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Do extends ce{constructor(e){super(),de(this,e,Lo,No,he,{})}}function Co(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("tbody"),n&&n.c()},l(l){e=q(l,"TBODY",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ye(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function zo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Mo extends ce{constructor(e){super(),de(this,e,zo,Co,he,{})}}function Vo(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("tr"),n&&n.c()},l(l){e=q(l,"TR",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ye(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Uo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class qo extends ce{constructor(e){super(),de(this,e,Uo,Vo,he,{})}}function Fo(i){let e,t;const r=i[3].default,n=_e(r,i,i[2],null);return{c(){e=U("td"),n&&n.c(),this.h()},l(l){e=q(l,"TD",{align:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"align",i[1])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&be(n,r,l,l[2],t?ye(r,l[2],s,null):Ee(l[2]),null),(!t||s&2)&&C(e,"align",l[1])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function xo(i){let e,t;const r=i[3].default,n=_e(r,i,i[2],null);return{c(){e=U("th"),n&&n.c(),this.h()},l(l){e=q(l,"TH",{align:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"align",i[1])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&be(n,r,l,l[2],t?ye(r,l[2],s,null):Ee(l[2]),null),(!t||s&2)&&C(e,"align",l[1])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Bo(i){let e,t,r,n;const l=[xo,Fo],s=[];function o(a,f){return a[0]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=x()},l(a){t.l(a),r=x()},m(a,f){s[e].m(a,f),O(a,r,f),n=!0},p(a,[f]){let u=e;e=o(a),e===u?s[e].p(a,f):(X(),g(s[u],1,1,()=>{s[u]=null}),ee(),t=s[e],t?t.p(a,f):(t=s[e]=l[e](a),t.c()),p(t,1),t.m(r.parentNode,r))},i(a){n||(p(t),n=!0)},o(a){g(t),n=!1},d(a){s[e].d(a),a&&m(r)}}}function Zo(i,e,t){let{$$slots:r={},$$scope:n}=e,{header:l}=e,{align:s}=e;return i.$$set=o=>{"header"in o&&t(0,l=o.header),"align"in o&&t(1,s=o.align),"$$scope"in o&&t(2,n=o.$$scope)},[l,s,n,r]}class Ho extends ce{constructor(e){super(),de(this,e,Zo,Bo,he,{header:0,align:1})}}function Jo(i){let e,t;const r=i[3].default,n=_e(r,i,i[2],null);return{c(){e=U("ul"),n&&n.c()},l(l){e=q(l,"UL",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&be(n,r,l,l[2],t?ye(r,l[2],s,null):Ee(l[2]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function $o(i){let e,t;const r=i[3].default,n=_e(r,i,i[2],null);return{c(){e=U("ol"),n&&n.c(),this.h()},l(l){e=q(l,"OL",{start:!0});var s=M(e);n&&n.l(s),s.forEach(m),this.h()},h(){C(e,"start",i[1])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&be(n,r,l,l[2],t?ye(r,l[2],s,null):Ee(l[2]),null),(!t||s&2)&&C(e,"start",l[1])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Wo(i){let e,t,r,n;const l=[$o,Jo],s=[];function o(a,f){return a[0]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=x()},l(a){t.l(a),r=x()},m(a,f){s[e].m(a,f),O(a,r,f),n=!0},p(a,[f]){let u=e;e=o(a),e===u?s[e].p(a,f):(X(),g(s[u],1,1,()=>{s[u]=null}),ee(),t=s[e],t?t.p(a,f):(t=s[e]=l[e](a),t.c()),p(t,1),t.m(r.parentNode,r))},i(a){n||(p(t),n=!0)},o(a){g(t),n=!1},d(a){s[e].d(a),a&&m(r)}}}function Ko(i,e,t){let{$$slots:r={},$$scope:n}=e,{ordered:l}=e,{start:s}=e;return i.$$set=o=>{"ordered"in o&&t(0,l=o.ordered),"start"in o&&t(1,s=o.start),"$$scope"in o&&t(2,n=o.$$scope)},[l,s,n,r]}class Qo extends ce{constructor(e){super(),de(this,e,Ko,Wo,he,{ordered:0,start:1})}}function Go(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("li"),n&&n.c()},l(l){e=q(l,"LI",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ye(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function Yo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Xo extends ce{constructor(e){super(),de(this,e,Yo,Go,he,{})}}function ea(i){let e;return{c(){e=U("hr")},l(t){e=q(t,"HR",{})},m(t,r){O(t,e,r)},p:ue,i:ue,o:ue,d(t){t&&m(e)}}}class ta extends ce{constructor(e){super(),de(this,e,null,ea,he,{})}}function na(i){let e,t;return{c(){e=new Zi(!1),t=x(),this.h()},l(r){e=Hi(r,!1),t=x(),this.h()},h(){e.a=t},m(r,n){e.m(i[0],r,n),O(r,t,n)},p(r,[n]){n&1&&e.p(r[0])},i:ue,o:ue,d(r){r&&m(t),r&&e.d()}}}function ra(i,e,t){let{text:r}=e;return i.$$set=n=>{"text"in n&&t(0,r=n.text)},[r]}class ia extends ce{constructor(e){super(),de(this,e,ra,na,he,{text:0})}}function la(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("blockquote"),n&&n.c()},l(l){e=q(l,"BLOCKQUOTE",{});var s=M(e);n&&n.l(s),s.forEach(m)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ye(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function sa(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class oa extends ce{constructor(e){super(),de(this,e,sa,la,he,{})}}function aa(i){let e,t,r;return{c(){e=U("pre"),t=U("code"),r=ve(i[1]),this.h()},l(n){e=q(n,"PRE",{class:!0});var l=M(e);t=q(l,"CODE",{});var s=M(t);r=we(s,i[1]),s.forEach(m),l.forEach(m),this.h()},h(){C(e,"class",i[0])},m(n,l){O(n,e,l),F(e,t),F(t,r)},p(n,[l]){l&2&&Pe(r,n[1]),l&1&&C(e,"class",n[0])},i:ue,o:ue,d(n){n&&m(e)}}}function fa(i,e,t){let{lang:r}=e,{text:n}=e;return i.$$set=l=>{"lang"in l&&t(0,r=l.lang),"text"in l&&t(1,n=l.text)},[r,n]}class ua extends ce{constructor(e){super(),de(this,e,fa,aa,he,{lang:0,text:1})}}function ca(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("br"),n&&n.c()},l(l){e=q(l,"BR",{}),n&&n.l(l)},m(l,s){O(l,e,s),n&&n.m(l,s),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&be(n,r,l,l[0],t?ye(r,l[0],s,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&m(e),n&&n.d(l)}}}function da(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class ha extends ce{constructor(e){super(),de(this,e,da,ca,he,{})}}const ma={heading:ro,paragraph:so,text:fo,image:ho,link:go,em:Eo,strong:Ao,codespan:So,del:vo,table:jo,tablehead:Do,tablebody:Mo,tablerow:qo,tablecell:Ho,list:Qo,orderedlistitem:null,unorderedlistitem:null,listitem:Xo,hr:ta,html:ia,blockquote:oa,code:ua,br:ha},pa={baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,xhtml:!1};function ga(i){let e,t;return e=new at({props:{tokens:i[0],renderers:i[1]}}),{c(){$(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){W(e,r,n),t=!0},p(r,[n]){const l={};n&1&&(l.tokens=r[0]),n&2&&(l.renderers=r[1]),e.$set(l)},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){K(e,r)}}}function _a(i,e,t){let r,n,l,s,{source:o=[]}=e,{renderers:a={}}=e,{options:f={}}=e,{isInline:u=!1}=e;const c=Zt();let d,h,y;return Ji(Ei,{slug:_=>n?n.slug(_):"",getOptions:()=>l}),pn(()=>{t(7,y=!0)}),i.$$set=_=>{"source"in _&&t(2,o=_.source),"renderers"in _&&t(3,a=_.renderers),"options"in _&&t(4,f=_.options),"isInline"in _&&t(5,u=_.isInline)},i.$$.update=()=>{i.$$.dirty&4&&t(8,r=Array.isArray(o)),i.$$.dirty&4&&(n=o?new kn:void 0),i.$$.dirty&16&&t(9,l={...pa,...f}),i.$$.dirty&869&&(r?t(0,d=o):(t(6,h=new Ye(l)),t(0,d=u?h.inlineTokens(o):h.lex(o)),c("parsed",{tokens:d}))),i.$$.dirty&8&&t(1,s={...ma,...a}),i.$$.dirty&385&&y&&!r&&c("parsed",{tokens:d})},[d,s,o,a,f,u,h,y,r,l]}class ba extends ce{constructor(e){super(),de(this,e,_a,ga,he,{source:2,renderers:3,options:4,isInline:5})}}const Ea={AdditionalItemsError:"Array at `{{pointer}}` may not have an additional item `{{key}}`",AdditionalPropertiesError:"Additional property `{{property}}` on `{{pointer}}` does not match schema `{{schema}}`",AllOfError:"Value `{{value}}` at `{{pointer}}` does not match schema of `{{allOf}}`",AnyOfError:"Value `{{value}}` at `{{pointer}}` does not match any schema of `{{anyOf}}`",ConstError:"Expected value at `{{pointer}}` to be `{{expected}}`, but value given is `{{value}}`",containsAnyError:"The array at `{{pointer}}` must contain at least one item",ContainsArrayError:"The property at `{{pointer}}` must not be an array",ContainsError:"The array at `{{pointer}}` must contain an element that matches `{{schema}}`",EnumError:"Expected given value `{{value}}` in `{{pointer}}` to be one of `{{values}}`",FormatDateError:"Value `{{value}}` at `{{pointer}}` is not a valid date",FormatDateTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid date-time",FormatEmailError:"Value `{{value}}` at `{{pointer}}` is not a valid email",FormatHostnameError:"Value `{{value}}` at `{{pointer}}` is not a valid hostname",FormatIPV4Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv4 address",FormatIPV4LeadingZeroError:"IPv4 addresses starting with zero are invalid, since they are interpreted as octals",FormatIPV6Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv6 address",FormatIPV6LeadingZeroError:"IPv6 addresses starting with zero are invalid, since they are interpreted as octals",FormatJSONPointerError:"Value `{{value}}` at `{{pointer}}` is not a valid json-pointer",FormatRegExError:"Value `{{value}}` at `{{pointer}}` is not a valid regular expression",FormatTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid time",FormatURIError:"Value `{{value}}` at `{{pointer}}` is not a valid uri",FormatURIReferenceError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-reference",FormatURITemplateError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-template",FormatURLError:"Value `{{value}}` at `{{pointer}}` is not a valid url",InvalidDataError:"No value may be specified in `{{pointer}}`",InvalidPropertyNameError:"Invalid property name `{{property}}` at `{{pointer}}`",MaximumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{maximum}}` at maximum",MaxItemsError:"Too many items in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MaxLengthError:"Value `{{pointer}}` should have a maximum length of `{{maxLength}}`, but got `{{length}}`.",MaxPropertiesError:"Too many properties in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MinimumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{minimum}}` at minimum",MinItemsError:"Too few items in `{{pointer}}`, should be at least `{{minimum}}`, but got `{{length}}`",MinItemsOneError:"At least one item is required in `{{pointer}}`",MinLengthError:"Value `{{pointer}}` should have a minimum length of `{{minLength}}`, but got `{{length}}`.",MinLengthOneError:"A value is required in `{{pointer}}`",MinPropertiesError:"Too few properties in `{{pointer}}`, should be at least `{{minimum}}`, but got `{{length}}`",MissingDependencyError:"The required propery '{{missingProperty}}' in `{{pointer}}` is missing",MissingOneOfPropertyError:"Value at `{{pointer}}` property: `{{property}}`",MultipleOfError:"Expected `{{value}}` in `{{pointer}}` to be multiple of `{{multipleOf}}`",MultipleOneOfError:"Value `{{value}}` should not match multiple schemas in oneOf `{{matches}}`",NoAdditionalPropertiesError:"Additional property `{{property}}` in `{{pointer}}` is not allowed",NotError:"Value `{{value}}` at pointer should not match schema `{{not}}`",OneOfError:"Value `{{value}}` in `{{pointer}}` does not match any given oneof schema",OneOfPropertyError:"Failed finding a matching oneOfProperty schema in `{{pointer}}` where `{{property}}` matches `{{value}}`",PatternError:"Value in `{{pointer}}` should match `{{description}}`, but received `{{received}}`",PatternPropertiesError:"Property `{{key}}` does not match any patterns in `{{pointer}}`. Valid patterns are: {{patterns}}",RequiredPropertyError:"The required property `{{key}}` is missing at `{{pointer}}`",TypeError:"Expected `{{value}}` ({{received}}) in `{{pointer}}` to be of type `{{expected}}`",UndefinedValueError:"Value must not be undefined in `{{pointer}}`",UniqueItemsError:"Expected unique items in {{pointer}}: duplicate value `{{value}}` found at {{itemPointer}} and {{duplicatePointer}}",UnknownPropertyError:"Could not find a valid schema for property `{{pointer}}` within object",ValueNotEmptyError:"A value for `{{property}}` is required at `{{pointer}}`"};function ya(i,e={}){return i.replace(/\{\{\w+\}\}/g,t=>e[t.replace(/[{}]/g,"")])}function ka(i,e,t=i){const r=Ea[i]||t;return ya(r,e)}function va(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function wa(i,e){return{type:"error",name:i,code:va(i),message:ka(i,e),data:e}}function Q(i){return wa.bind(null,i)}const Oa=Object.prototype.toString;function pe(i){const e=Oa.call(i).match(/\s([^\]]+)\]/).pop().toLowerCase();return e==="file"?"object":e}function je(i){return(i==null?void 0:i.type)==="error"}function Sa(i){return i instanceof Promise}function qt(i){return je(i)||Sa(i)}function vt(i,e=[]){for(let t=0;t0)s.push(...d);else return u}return i.errors.oneOfPropertyError({property:o,value:a,pointer:r,errors:s})}const n=[],l=[];for(let s=0;s0?l.push(...a):n.push(o)}return n.length===1?n[0]:n.length>1?i.errors.multipleOneOfError({value:e,pointer:r,matches:n}):i.errors.oneOfError({value:JSON.stringify(e),pointer:r,oneOf:t.oneOf,errors:l})}const vn=i=>JSON.parse(JSON.stringify(i));var Ta=function(e){return Aa(e)&&!Ia(e)};function Aa(i){return!!i&&typeof i=="object"}function Ia(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||Na(i)}var Ra=typeof Symbol=="function"&&Symbol.for,ja=Ra?Symbol.for("react.element"):60103;function Na(i){return i.$$typeof===ja}function La(i){return Array.isArray(i)?[]:{}}function wt(i,e){return e.clone!==!1&&e.isMergeableObject(i)?ht(La(i),i,e):i}function Da(i,e,t){return i.concat(e).map(function(r){return wt(r,t)})}function Ca(i,e){if(!e.customMerge)return ht;var t=e.customMerge(i);return typeof t=="function"?t:ht}function za(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function jr(i){return Object.keys(i).concat(za(i))}function yi(i,e){try{return e in i}catch{return!1}}function Ma(i,e){return yi(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function Va(i,e,t){var r={};return t.isMergeableObject(i)&&jr(i).forEach(function(n){r[n]=wt(i[n],t)}),jr(e).forEach(function(n){Ma(i,n)||(yi(i,n)&&t.isMergeableObject(e[n])?r[n]=Ca(n,t)(i[n],e[n],t):r[n]=wt(e[n],t))}),r}function ht(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Da,t.isMergeableObject=t.isMergeableObject||Ta,t.cloneUnlessOtherwiseSpecified=wt;var r=Array.isArray(e),n=Array.isArray(i),l=r===n;return l?r?t.arrayMerge(i,e,t):Va(i,e,t):wt(e,t)}ht.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,n){return ht(r,n,t)},{})};var Ua=ht,qa=Ua;const ki=Jt(qa),Fa=(i,e)=>e,Ot=(i,e)=>ki(i,e,{arrayMerge:Fa}),xa=(i,e)=>{const t=i.concat(e);return t.filter((r,n)=>t.indexOf(r)===n)},Ba=(i,e)=>ki(i,e,{arrayMerge:xa});function an(i,e,t){var r;const n={...(r=i.resolveRef(e))!==null&&r!==void 0?r:{}};if(n.if&&(n.then||n.else)){const l=i.isValid(t,n.if);if(l&&n.then)return an(i,n.then,t);if(!l&&n.else)return an(i,n.else,t);delete n.if,delete n.then,delete n.else}return n}function Za(i,e,t=i.rootSchema,r="#"){let n=vn(t);for(let l=0;l0)l.push(...c);else return f}return i.errors.oneOfPropertyError({property:s,value:o,pointer:r,errors:l})}const n=[];for(let l=0;l1?i.errors.multipleOneOfError({matches:n,data:e,pointer:r}):i.errors.oneOfError({value:JSON.stringify(e),pointer:r,oneOf:t.oneOf})}function Ja(i,e){return i==null||i.$ref==null?i:i.getRoot?i.getRoot().getRef(i):e.getRef(i)}function $a(i,e){if(i==null||i.$ref==null)return i;const t=e.getRef(i),r=Object.assign({},t,i);return delete r.$ref,Object.defineProperty(r,"__ref",{enumerable:!1,value:i.__ref}),Object.defineProperty(r,"getRoot",{enumerable:!1,value:i.getRoot}),r}var vi={exports:{}};(function(i,e){(function(t,r){i.exports=r()})(typeof self<"u"?self:ss,()=>(()=>{var t={d:(E,D)=>{for(var w in D)t.o(D,w)&&!t.o(E,w)&&Object.defineProperty(E,w,{enumerable:!0,get:D[w]})},o:(E,D)=>Object.prototype.hasOwnProperty.call(E,D),r:E=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})}},r={};function n(E){return E==="#"||E===""||Array.isArray(E)&&E.length===0||!1}t.r(r),t.d(r,{default:()=>R,get:()=>d,isRoot:()=>n,join:()=>ne,remove:()=>T,removeUndefinedItems:()=>P,set:()=>v,split:()=>c,splitLast:()=>re});const l=/~1/g,s=/~0/g,o=/\/+/g,a=/(^[#/]*|\/+$)/g;function f(E){return E.replace(l,"/").replace(s,"~")}function u(E){return f(decodeURIComponent(E))}function c(E){if(E==null||typeof E!="string"||n(E))return Array.isArray(E)?E:[];const D=E.indexOf("#")>=0?u:f,w=(E=(E=E.replace(o,"/")).replace(a,"")).split("/");for(let j=0,J=w.length;j0&&D[0]=="prototype"}function v(E,D,w){if(D==null)return E;const j=c(D);if(j.length===0)return E;E==null&&(E=y.test(j[0])?[]:{});let J,le,se=E;for(;j.length>1;)J=j.shift(),le=y.test(j[0]),I(J,j)||(se=S(se,J,le));return J=j.pop(),b(se,J,w),E}function b(E,D,w){let j;const J=D.match(_);D==="[]"&&Array.isArray(E)?E.push(w):J?(j=J.pop(),E[j]=w):E[D]=w}function S(E,D,w){if(E[D]!=null)return E[D];const j=w?[]:{};return b(E,D,j),j}function P(E){let D=0,w=0;for(;D+w0?null:{type:null,text:t[0],rest:i.substr(t[0].length),start:0,end:t[0].length-1,fullText:t[0],errors:[],children:[],parent:null}:null}qe.readToken=fn;function Si(i){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}qe.escapeRegExp=Si;function Pi(i){i.rest="",i.children&&i.children.forEach(e=>Pi(e))}function Ti(i,e){i.start+=e,i.end+=e,i.children&&i.children.forEach(t=>Ti(t,i.start))}function Ai(i,e){e.errors&&e.errors.length&&e.errors.forEach(t=>i.push(t)),e.children&&e.children.forEach(t=>Ai(i,t))}function lt(i){let e=Lr.exec(i),t=Dr.exec(i),r=e&&e[0]||"",n=t&&t[0]||"",l={raw:i,name:i.replace(Lr,"").replace(Dr,""),isOptional:r=="?"||r=="*",allowRepetition:r=="+"||r=="*",atLeastOne:r=="+",lookupPositive:n=="&",lookupNegative:n=="!",pinned:n=="@",lookup:!1,isLiteral:!1};return l.isLiteral=l.name[0]=="'"||l.name[0]=='"',l.lookup=l.lookupNegative||l.lookupPositive,l}qe.parseRuleName=lt;function Ii(i,e){let t=lt(i);return e.cachedRules[t.name]||null}qe.findRuleByName=Ii;function un(i,e){if(i.children){let t=i.children.filter(r=>r.type&&e.test(r.type));for(let r=0;run(r,e))}}const Xa=["EOF"];class Ri{constructor(e,t){this.grammarRules=e,this.options=t,this.cachedRules={},this.debug=t?t.debug===!0:!1;let r=[],n=[];if(e.forEach(l=>{let s=lt(l.name);if(s.name in this.cachedRules){r.push("Duplicated rule "+s.name);return}else this.cachedRules[s.name]=l;if(!l.bnf||!l.bnf.length){let o="Missing rule content, rule: "+l.name;r.indexOf(o)==-1&&r.push(o)}else l.bnf.forEach(o=>{if(typeof o[0]=="string"&<(o[0]).name==l.name){let f="Left recursion is not allowed, rule: "+l.name;r.indexOf(f)==-1&&r.push(f)}o.forEach(a=>{if(typeof a=="string"){let f=lt(a);!f.isLiteral&&n.indexOf(f.name)==-1&&Xa.indexOf(f.name)==-1&&n.push(f.name)}})});Rt==l.name&&(l.implicitWs=!1),l.implicitWs&&n.indexOf(Rt)==-1&&n.push(Rt),l.recover&&n.indexOf(l.recover)==-1&&n.push(l.recover)}),n.forEach(l=>{l in this.cachedRules||r.push("Missing rule "+l)}),r.length)throw new Error(r.join(` +`))}getAST(e,t){t||(t=this.grammarRules.filter(n=>!n.fragment&&n.name.indexOf("%")!=0)[0].name);let r=this.parse(e,t);if(r){Ai(r.errors,r),Ti(r,0),un(r,/^%/),(!this.options||!this.options.keepUpperRules)&&un(r,Nr);let n=r.rest;n&&new jt.TokenError(`Unexpected end of input: +`+n,r),Pi(r),r.rest=n}return r}emitSource(){return"CANNOT EMIT SOURCE FROM BASE Parser"}parse(e,t,r=0){let n=null,l=lt(t),s,o=this.debug&&!Nr.test(l.name);o&&console.log(new Array(r).join("│ ")+"Trying to get "+t+" from "+JSON.stringify(e.split(` +`)[0]));let a=l.name,f=Ii(l.name,this);if(l.name=="EOF"){if(e.length)return null;if(e.length==0)return{type:"EOF",text:"",rest:"",start:0,end:0,fullText:"",errors:[],children:[],parent:null}}try{if(!f&&l.isLiteral){let u=l.name.trim();if(u.startsWith('"')?u=JSON.parse(u):u.startsWith("'")&&(u=u.replace(/^'(.+)'$/,"$1").replace(/\\'/g,"'")),u==="")return{type:"%%EMPTY%%",text:"",rest:e,start:0,end:0,fullText:"",errors:[],children:[],parent:null};s=new RegExp(Si(u)),a=null}}catch(u){return u instanceof ReferenceError&&console.error(u),null}if(s){let u=fn(e,s);if(u)return u.type=a,u}else{let u=f.bnf;u instanceof Array&&u.forEach(c=>{if(n)return;let d=null,h={type:l.name,text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:e};f.fragment&&(h.fragment=!0);let y=e,_=0,I=c.length>0,v=!1;for(let b=0;b{A.start+=_,A.end+=_,A.parent=h,h.children.push(A)}):(P.parent=h,h.children.push(P))),S.lookup&&(P.lookup=!0),o&&console.log(new Array(r+1).join("│ ")+"└─ "+P.type+" "+JSON.stringify(P.text)),!S.lookup&&!P.lookup&&(h.text=h.text+P.text,h.end=h.text.length,y=y.substr(P.text.length),_+=P.text.length),h.rest=y}while(P&&S.allowRepetition&&y.length&&!P.lookup)}else{let S=fn(y,c[b]);if(!S)return;o&&console.log(new Array(r+1).join("│ ")+"└> "+JSON.stringify(S.text)+c[b].source),v=!0,S.start+=_,S.end+=_,h.text=h.text+S.text,h.end=h.text.length,y=y.substr(S.text.length),_+=S.text.length,h.rest=y}v&&(n=h,o&&console.log(new Array(r).join("│ ")+"├<─┴< PUSHING "+n.type+" "+JSON.stringify(n.text)))}),n&&f.simplifyWhenOneChildren&&n.children.length==1&&(n=n.children[0])}return n||o&&console.log(t+" NOT RESOLVED FROM "+e),n}parseRecovery(e,t,r){if(e.recover&&t.length){let n=this.debug;n&&console.log(new Array(r+1).join("│ ")+"Trying to recover until token "+e.recover+" from "+JSON.stringify(t.split(` +`)[0]+t.split(` +`)[1]));let l={type:"SyntaxError",text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:""},s;do if(s=this.parse(t,e.recover,r+1),s){new jt.TokenError('Unexpected input: "'+l.text+`" Expecting: ${e.name}`,l);break}else l.text=l.text+t[0],l.end=l.text.length,t=t.substr(1);while(!s&&t.length>0);if(l.text.length>0&&s)return n&&console.log(new Array(r+1).join("│ ")+"Recovered text: "+JSON.stringify(l.text)),l}return null}}qe.Parser=Ri;qe.default=Ri;Object.defineProperty(Oi,"__esModule",{value:!0});const _t=qe;var cn;(function(i){i.RULES=[{name:"Grammar",bnf:[["RULE_S*","%Atomic*","EOF"]]},{name:"%Atomic",bnf:[["Production","RULE_S*"]],fragment:!0},{name:"Production",bnf:[["NCName","RULE_S*",'"::="',"RULE_WHITESPACE*","Choice","RULE_WHITESPACE*","RULE_EOL+","RULE_S*"]]},{name:"NCName",bnf:[[/[a-zA-Z][a-zA-Z_0-9]*/]]},{name:"Choice",bnf:[["SequenceOrDifference","%_Choice_1*"]],fragment:!0},{name:"%_Choice_1",bnf:[["RULE_WHITESPACE*",'"|"',"RULE_WHITESPACE*","SequenceOrDifference"]],fragment:!0},{name:"SequenceOrDifference",bnf:[["Item","RULE_WHITESPACE*","%_Item_1?"]]},{name:"%_Item_1",bnf:[["Minus","Item"],["Item*"]],fragment:!0},{name:"Minus",bnf:[['"-"']]},{name:"Item",bnf:[["RULE_WHITESPACE*","%Primary","PrimaryDecoration?"]],fragment:!0},{name:"PrimaryDecoration",bnf:[['"?"'],['"*"'],['"+"']]},{name:"DecorationName",bnf:[['"ebnf://"',/[^\x5D#]+/]]},{name:"%Primary",bnf:[["NCName"],["StringLiteral"],["CharCode"],["CharClass"],["SubItem"]],fragment:!0},{name:"SubItem",bnf:[['"("',"RULE_WHITESPACE*","Choice","RULE_WHITESPACE*",'")"']]},{name:"StringLiteral",bnf:[[`'"'`,/[^"]*/,`'"'`],[`"'"`,/[^']*/,`"'"`]],pinned:1},{name:"CharCode",bnf:[['"#x"',/[0-9a-zA-Z]+/]]},{name:"CharClass",bnf:[["'['","'^'?","%RULE_CharClass_1+",'"]"']]},{name:"%RULE_CharClass_1",bnf:[["CharCodeRange"],["CharRange"],["CharCode"],["RULE_Char"]],fragment:!0},{name:"RULE_Char",bnf:[[/\x09/],[/\x0A/],[/\x0D/],[/[\x20-\x5c]/],[/[\x5e-\uD7FF]/],[/[\uE000-\uFFFD]/]]},{name:"CharRange",bnf:[["RULE_Char",'"-"',"RULE_Char"]]},{name:"CharCodeRange",bnf:[["CharCode",'"-"',"CharCode"]]},{name:"RULE_WHITESPACE",bnf:[["%RULE_WHITESPACE_CHAR*"],["Comment","RULE_WHITESPACE*"]]},{name:"RULE_S",bnf:[["RULE_WHITESPACE","RULE_S*"],["RULE_EOL","RULE_S*"]]},{name:"%RULE_WHITESPACE_CHAR",bnf:[[/\x09/],[/\x20/]],fragment:!0},{name:"Comment",bnf:[['"/*"',"%RULE_Comment_Body*",'"*/"']]},{name:"%RULE_Comment_Body",bnf:[['!"*/"',/[^*]/]],fragment:!0},{name:"RULE_EOL",bnf:[[/\x0D/,/\x0A/],[/\x0A/],[/\x0D/]]},{name:"Link",bnf:[["'['","Url","']'"]]},{name:"Url",bnf:[[/[^\x5D:/?#]/,'"://"',/[^\x5D#]+/,"%Url1?"]]},{name:"%Url1",bnf:[['"#"',"NCName"]],fragment:!0}],i.defaultParser=new _t.Parser(i.RULES,{debug:!1});const e=/^(!|&)/,t=/(\?|\+|\*)$/,r=/^%/;function n(v,b){if(typeof v=="string"){if(e.test(v))return"";if(r.test(v)){let P=t.exec(v),T=P?P[0]+" ":"";return l(v,b)?o(v,b)+T:"("+o(v,b)+")"+T}return v}else return v.source.replace(/\\(?:x|u)([a-zA-Z0-9]+)/g,"#x$1").replace(/\[\\(?:x|u)([a-zA-Z0-9]+)-\\(?:x|u)([a-zA-Z0-9]+)\]/g,"[#x$1-#x$2]")}function l(v,b){let S=_t.findRuleByName(v,b);return S&&S.bnf.length==1&&S.bnf[0].length==1&&(S.bnf[0][0]instanceof RegExp||S.bnf[0][0][0]=='"'||S.bnf[0][0][0]=="'")}function s(v,b){return v.map(S=>n(S,b)).join(" ")}function o(v,b){let S=_t.findRuleByName(v,b);return S?S.bnf.map(P=>s(P,b)).join(" | "):"RULE_NOT_FOUND {"+v+"}"}function a(v){let b=[];return v.grammarRules.forEach(S=>{if(!/^%/.test(S.name)){let P=S.recover?" /* { recoverUntil="+S.recover+" } */":"";b.push(S.name+" ::= "+o(S.name,v)+P)}}),b.join(` +`)}i.emit=a;let f=0;function u(v,b){throw console.log("reberia restar "+b+" a "+v),new Error("Difference not supported yet")}function c(v){return new RegExp(v.replace(/#x([a-zA-Z0-9]{4})/g,"\\u$1").replace(/#x([a-zA-Z0-9]{3})/g,"\\u0$1").replace(/#x([a-zA-Z0-9]{2})/g,"\\x$1").replace(/#x([a-zA-Z0-9]{1})/g,"\\x0$1"))}function d(v,b,S){let P=null,T=[];return b.children.forEach((A,L)=>{A.type=="Minus"&&u(P,A);let z=b.children[L+1];z=z&&z.type=="PrimaryDecoration"&&z.text||"";let Z="";switch(A.type){case"SubItem":let ne="%"+(S+f++);h(v,A,ne),T.push(Z+ne+z);break;case"NCName":case"StringLiteral":T.push(Z+A.text+z);break;case"CharCode":case"CharClass":if(z||Z){let re={name:"%"+(S+f++),bnf:[[c(A.text)]]};v.push(re),T.push(Z+re.name+z)}else T.push(c(A.text));break;case"PrimaryDecoration":break;default:throw new Error(" HOW SHOULD I PARSE THIS? "+A.type+" -> "+JSON.stringify(A.text))}P=A}),T}function h(v,b,S){let P=b.children.filter(L=>L.type=="SequenceOrDifference").map(L=>d(v,L,S)),T={name:S,bnf:P},A=null;P.forEach(L=>{A=A||L.recover,delete L.recover}),S.indexOf("%")==0&&(T.fragment=!0),A&&(T.recover=A),v.push(T)}function y(v,b=i.defaultParser){let S=b.getAST(v);if(!S)throw new Error("Could not parse "+v);if(S.errors&&S.errors.length)throw S.errors[0];let P=[];return S.children.filter(T=>T.type=="Production").map(T=>{let A=T.children.filter(L=>L.type=="NCName")[0].text;h(P,T,A)}),P}i.getRules=y;function _(v,b=i.defaultParser){return y(v.join(""),b)}i.Transform=_;class I extends _t.Parser{constructor(b,S){const P=S&&S.debugRulesParser===!0?new _t.Parser(i.RULES,{debug:!0}):i.defaultParser;super(y(b,P),S)}emitSource(){return a(this)}}i.Parser=I})(cn||(cn={}));var ef=Oi.default=cn;const tf="[^?/{}*,()#]+",nf=` +root ::= ("#" recursion | recursion | (query | pattern) recursion* | "#" SEP? | SEP) +recursion ::= (SEP query | pattern)* + +query ::= (ESC escaped ESC | property | all | any | regex) typecheck? lookahead? +property ::= ${tf} +regex ::= "{" [^}]+ "}" +SEP ::= "/" +all ::= "**" +any ::= "*" + +typecheck ::= "?:" ("value" | "boolean" | "string" | "number" | "object" | "array") +lookahead ::= "?" expression ((andExpr | orExpr) expression)* +andExpr ::= S? "&&" S? +orExpr ::= S? "||" S? + +expression ::= (exprProperty | ESC escaped ESC) ((isnot | is) (exprProperty | regex | ESC escaped ESC))* +exprProperty ::= [a-zA-Z0-9-_ $]+ +escaped ::= [^"]+ +is ::= ":" +isnot ::= ":!" +ESC ::= '"' + +pattern ::= S? "(" (SEP query | pattern (orPattern? pattern)*)* ")" quantifier? S? lookahead? +quantifier ::= "+" | "*" | [0-9]+ +orPattern ::= S? "," S? + +S ::= [ ]* +`,rf=new ef.Parser(nf),lf=i=>rf.getAST(i),Ve=0,mt=3,Ft=(i,e)=>`${i}/${e}`,ji=Object.prototype.toString,sf=/Object|Array/,dn=i=>sf.test(ji.call(i)),of=i=>ji.call(i).match(/\s([^\]]+)\]/).pop().toLowerCase();function Ni(i){return new RegExp(i.text.replace(/(^{|}$)/g,""))}function af(i,e){Array.isArray(i)?i.forEach(e):Object.prototype.toString.call(i)==="[object Object]"&&Object.keys(i).forEach(function(t){e(i[t],t,i)})}function Cr(i){return Array.isArray(i)?i.map(function(e,t){return`${t}`}):Object.prototype.toString.call(i)==="[object Object]"?Object.keys(i):[]}const rt={mem:[],get(i,e){const t=i[Ve][e];if(!rt.mem.includes(t))return dn(t)&&rt.mem.push(t),[t,e,i[Ve],Ft(i[mt],e)]},reset(){rt.mem.length=0}},hn={any(i,e){const t=e[Ve];return Cr(t).map(r=>[t[r],r,t,Ft(e[mt],r)])},all(i,e){const t=[e];return af(e[Ve],(r,n)=>{const l=rt.get(e,n);l&&t.push(...hn.all(i,l))}),t},regex(i,e){const t=Ni(i),r=e[Ve];return Cr(r).filter(n=>t.test(n)).map(n=>[r[n],n,r,Ft(e[mt],n)])}},xt={escaped:(i,e)=>xt.property(i,e),property:(i,e)=>{const t=i.text;if(e[Ve]&&e[Ve][t]!==void 0)return[e[Ve][t],t,e[Ve],Ft(e[mt],t)]},typecheck:(i,e)=>{const t=i.text.replace(/^\?:/,"");if(t==="value")return dn(e[Ve])?void 0:e;if(of(e[Ve])===t)return e},lookahead:(i,e)=>{let t=!0,r=!1;return i.children.forEach(n=>{if(n.type==="expression"){const l=xt.expression(n,e)!==void 0;t=r===!0?t||l:t&&l}else r=n.type==="orExpr"}),t?e:void 0},expression:(i,e)=>{const t=i.children[0].text,r=i.children[1],n=i.children[2],l=e[Ve];if(dn(l)!==!1)return ff(l[t],r,n)?e:void 0}};function ff(i,e,t){if(e===void 0)return i!==void 0;let r;const n=`${i}`;return t.type==="regex"?r=Ni(t).test(n):r=n===t.text,e.type==="isnot"&&(r=r===!1&&i!==void 0),r}function uf(i,e,t,r){const n=[];for(let l=0,s=e.length;l{if(hn[n.type])r=uf(hn[n.type],r,n,t);else if(xt[n.type])r=cf(xt[n.type],r,n,t);else throw new Error(`Unknown filter ${n.type}`)}),r}function hf(i,e,t){const r=[];let n=i;return e.children.forEach(l=>{if(l.type==="orPattern"){r.push(...n),n=i;return}n=On(n,l,t)}),r.push(...n),r}function mf(i){if(i==null)return 1;if(i==="*"||i==="+")return 1/0;const e=parseInt(i);return isNaN(e)?1:e}function pf(i,e,t){const r=[],n=e.children.find(a=>a.type==="quantifier"),l=mf(n&&n.text);let s=i;n&&n.text==="*"&&r.push(...s);let o=0;for(;s.length>0&&or=On(r,n,t)),r}function On(i,e,t){let r;return e.type==="query"?r=df(i,e,t):e.type==="pattern"?r=pf(i,e,t):r=gf(i,e,t),rt.reset(),rt.mem.push(i),r}function _f(i,e){return rt.reset(),rt.mem.push(i),On([[i,null,null,"#"]],e)}const zr={value:i=>i.map(e=>e[Ve]),pointer:i=>i.map(e=>e[mt]),all:i=>i,map:i=>{const e={};return i.forEach(t=>e[t[mt]]=t[Ve]),e}};var ot;(function(i){i.POINTER="pointer",i.VALUE="value",i.ALL="all",i.MAP="map"})(ot||(ot={}));At.POINTER=ot.POINTER;At.VALUE=ot.VALUE;At.ALL=ot.ALL;At.MAP=ot.MAP;function At(i,e,t=ot.VALUE){if(e==null)return[];e=e.replace(/(\/$)/g,""),e===""&&(e="#");const r=lf(e);if(r==null)throw new Error(`empty ast for '${e}'`);if(r.rest!=="")throw new Error(`Failed parsing queryString from: '${r.rest}'`);const n=_f(i,r);return typeof t=="function"?n.map(l=>t(...l)):zr[t]?zr[t](n):n}var Bt;(function(i){i.REPLACE_ITEMS="replace",i.INSERT_ITEMS="insert"})(Bt||(Bt={}));Bt.REPLACE_ITEMS;Bt.INSERT_ITEMS;const Qe={$ref:{type:!1},allOf:{type:!1,definitions:["allOf/*"]},anyOf:{type:!1,definitions:["anyOf/*"]},array:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","items","items/*","additionalItems"],validationKeywords:["minItems","maxItems","uniqueItems"],keywords:["items","additionalItems","minItems","maxItems","uniqueItems"]},boolean:{type:!0},enum:{type:!1},integer:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},not:{type:!1,definitions:["not"]},number:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},null:{type:!0},object:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","properties/*","additionalProperties","patternProperties/*","dependencies/*"],validationKeywords:["minProperties","maxProperties","required"],keywords:["properties","additionalProperties","patternProperties","dependencies","minProperties","maxProperties","required"]},oneOf:{type:!1,definitions:["oneOf/*"]},string:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minLength","maxLength","pattern"]}},bf=i=>Object.prototype.toString.call(i)==="[object Object]",Ef=Object.keys(Qe).filter(i=>Qe[i].type===!1),Mr=Object.prototype.hasOwnProperty;function Vr(i){if(bf(i)===!1)return;if(i.enum)return"enum";if(Qe[i.type]||Array.isArray(i.type))return i.type;const e=Ef.filter(t=>i[t]);if(e.length===1)return e[0];if(e.length===0){for(let t=0,r=Qe.object.keywords.length;tObject.prototype.toString.call(i)==="[object Object]";function kf(i){const e=[],t=Vr(i);if(t==null)return e;let r;if(Array.isArray(t)){r={};for(let n=0,l=t.length;n{At(i,n,(l,s,o,a)=>{yf(l)&&Vr(l)&&e.push({pointer:St.join(St.split(a),!1),def:l})})}),e}const vf=i=>Object.prototype.toString.call(i)==="[object Object]";function wf(i,e){if(this.callback(i,e)===!0)return;kf(i).forEach(r=>this.nextTypeDefs(r.def,St.join(e,r.pointer,!1)))}function Nt(i,e,t,r="definitions"){const n=e[r];Object.keys(n).forEach(l=>{if(n[l]===!1||vf(n[l])){i.nextTypeDefs(n[l],St.join(t,r,l,!1));return}})}function Li(i,e,t="#"){const r={callback:e,nextTypeDefs:wf};r.nextTypeDefs(i,t),i.definitions!=null&&(r.callback=(n,l)=>{e(n,l),n.definitions!=null&&Nt(r,n,l)},Nt(r,i,t)),i.$defs!=null&&(r.callback=(n,l)=>{e(n,l),n.definitions!=null&&Nt(r,n,l)},Nt(r,i,t,"$defs"))}const Of=/(#|\/)+$/,Lt=/#$/,Sf=/^[^:]+:\/\/[^/]+\//,Pf=/\/[^/]*$/,Tf=/#.*$/;function Ur(i,e){return i==null&&e==null?"#":e==null?i.replace(Lt,""):i==null?e.replace(Lt,""):e[0]==="#"?`${i.replace(Tf,"")}${e.replace(Of,"")}`:Sf.test(e)?e.replace(Lt,""):`${i.replace(Pf,"")}/${e.replace(Lt,"")}`}const bt=/(#|\/)+$/g,Af=["",null,"#"];function If(i){if(Af.includes(i))return[];if(i=i.replace(bt,""),i.indexOf("#")===-1)return[i.replace(bt,"")];if(i.indexOf("#")===0)return[i.replace(bt,"")];const e=i.split("#");return e[0]=e[0].replace(bt,""),e[1]=`#${e[1].replace(bt,"")}`,e}const Rf=/(#|\/)+$/g,jf=i=>pe(i)==="object";function et(i,e,t){if(jf(t)&&(t=t.__ref||t.$ref),t==null)return e;let r;const n=t.replace(Rf,"");if(i.remotes[n])return r=i.remotes[n],r&&r.$ref?et(i,e,r.$ref):r;if(i.ids[t])return r=ut.get(e,i.ids[t]),r&&r.$ref?et(i,e,r.$ref):r;const l=If(t);if(l.length===0)return e;if(l.length===1){if(t=l[0],i.remotes[t])return r=i.remotes[t],et(i,e,r.$ref);if(i.ids[t])return r=ut.get(e,i.ids[t]),r&&r.$ref?et(i,e,r.$ref):r}if(l.length===2){const s=l[0];if(t=l[1],i.remotes[s])return i.remotes[s].getRef?i.remotes[s].getRef(t):et(i,i.remotes[s],t);if(i.ids[s])return et(i,ut.get(e,i.ids[s]),t)}return r=ut.get(e,i.ids[t]||t),r&&r.$ref?et(i,e,r.$ref):r}const qr="__compiled",Fr="__ref",Nf="getRef",Lf="getRoot",Df=/(#|\/)+$/g;function Cf(i,e,t=e,r=!1){if(e===!0||e===!1||e===void 0||e[qr]!==void 0)return e;const n={ids:{},remotes:i.remotes},l=JSON.stringify(e),s=JSON.parse(l);if(Object.defineProperty(s,qr,{enumerable:!1,value:!0}),Object.defineProperty(s,Nf,{enumerable:!1,value:et.bind(null,n,s)}),r===!1&&l.includes("$ref")===!1)return s;s!==t&&Object.defineProperty(s,"$defs",{enumerable:!0,value:Object.assign({},t.definitions,t.$defs,s.definitions,s.$defs)});const o={},a=()=>s;return Li(s,(f,u)=>{var c;if(f.$id){if(f.$id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(u)){const I=u.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),v=ut.get(s,I);f.$id=(c=v.$id)!==null&&c!==void 0?c:f.$id}n.ids[f.$id.replace(Df,"")]=u}u=`#${u}`.replace(/##+/,"#");const d=u.replace(/\/[^/]+$/,""),h=u.replace(/\/[^/]+\/[^/]+$/,""),y=o[d]||o[h],_=Ur(y,f.$id);o[u]=_,n.ids[_]==null&&(n.ids[_]=u),f.$ref&&!f[Fr]&&(Object.defineProperty(f,Fr,{enumerable:!1,value:Ur(_,f.$ref)}),Object.defineProperty(f,Lf,{enumerable:!1,value:a}))}),s}function zf(i,e,t,r=i.rootSchema,n="#"){r=i.resolveRef(r),t(r,e,n);const l=pe(e);l==="object"?Object.keys(e).forEach(s=>{const o=i.step(s,r,e,n),a=e[s];i.each(a,t,o,`${n}/${s}`)}):l==="array"&&e.forEach((s,o)=>{const a=i.step(o,r,e,n);i.each(s,t,a,`${n}/${o}`)})}const ke={additionalItemsError:Q("AdditionalItemsError"),additionalPropertiesError:Q("AdditionalPropertiesError"),anyOfError:Q("AnyOfError"),allOfError:Q("AllOfError"),constError:Q("ConstError"),containsError:Q("ContainsError"),containsArrayError:Q("ContainsArrayError"),containsAnyError:Q("ContainsAnyError"),enumError:Q("EnumError"),formatURLError:Q("FormatURLError"),formatURIError:Q("FormatURIError"),formatURIReferenceError:Q("FormatURIReferenceError"),formatURITemplateError:Q("FormatURITemplateError"),formatDateError:Q("FormatDateaError"),formatDateTimeError:Q("FormatDateTimeError"),formatEmailError:Q("FormatEmailError"),formatHostnameError:Q("FormatHostnameError"),formatIPV4Error:Q("FormatIPV4Error"),formatIPV4LeadingZeroError:Q("FormatIPV4LeadingZeroError"),formatIPV6Error:Q("FormatIPV6Error"),formatIPV6LeadingZeroError:Q("FormatIPV6LeadingZeroError"),formatJSONPointerError:Q("FormatJSONPointerError"),formatRegExError:Q("FormatRegExError"),formatTimeError:Q("FormatTimeError"),invalidSchemaError:Q("InvalidSchemaError"),invalidDataError:Q("InvalidDataError"),invalidTypeError:Q("InvalidTypeError"),invalidPropertyNameError:Q("InvalidPropertyNameError"),maximumError:Q("MaximumError"),maxItemsError:Q("MaxItemsError"),maxLengthError:Q("MaxLengthError"),maxPropertiesError:Q("MaxPropertiesError"),minimumError:Q("MinimumError"),minItemsError:Q("MinItemsError"),minItemsOneError:Q("MinItemsOneError"),minLengthError:Q("MinLengthError"),minLengthOneError:Q("MinLengthOneError"),minPropertiesError:Q("MinPropertiesError"),missingDependencyError:Q("MissingDependencyError"),missingOneOfPropertyError:Q("MissingOneOfPropertyError"),multipleOfError:Q("MultipleOfError"),multipleOneOfError:Q("MultipleOneOfError"),noAdditionalPropertiesError:Q("NoAdditionalPropertiesError"),notError:Q("NotError"),oneOfError:Q("OneOfError"),oneOfPropertyError:Q("OneOfPropertyError"),patternError:Q("PatternError"),patternPropertiesError:Q("PatternPropertiesError"),requiredPropertyError:Q("RequiredPropertyError"),typeError:Q("TypeError"),undefinedValueError:Q("UndefinedValueError"),uniqueItemsError:Q("UniqueItemsError"),unknownPropertyError:Q("UnknownPropertyError"),valueNotEmptyError:Q("ValueNotEmptyError")};var Di={exports:{}};(function(i){(function(e){e.exports.is_uri=r,e.exports.is_http_uri=n,e.exports.is_https_uri=l,e.exports.is_web_uri=s,e.exports.isUri=r,e.exports.isHttpUri=n,e.exports.isHttpsUri=l,e.exports.isWebUri=s;var t=function(o){var a=o.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/);return a};function r(o){if(o&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(o)&&!/%[^0-9a-f]/i.test(o)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(o)){var a=[],f="",u="",c="",d="",h="",y="";if(a=t(o),f=a[1],u=a[2],c=a[3],d=a[4],h=a[5],!!(f&&f.length&&c.length>=0)){if(u&&u.length){if(!(c.length===0||/^\//.test(c)))return}else if(/^\/\//.test(c))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(f.toLowerCase()))return y+=f+":",u&&u.length&&(y+="//"+u),y+=c,d&&d.length&&(y+="?"+d),h&&h.length&&(y+="#"+h),y}}}function n(o,a){if(r(o)){var f=[],u="",c="",d="",h="",y="",_="",I="";if(f=t(o),u=f[1],c=f[2],d=f[3],y=f[4],_=f[5],!!u){if(a){if(u.toLowerCase()!="https")return}else if(u.toLowerCase()!="http")return;if(c)return/:(\d+)$/.test(c)&&(h=c.match(/:(\d+)$/)[0],c=c.replace(/:\d+$/,"")),I+=u+":",I+="//"+c,h&&(I+=h),I+=d,y&&y.length&&(I+="?"+y),_&&_.length&&(I+="#"+_),I}}}function l(o){return n(o,!0)}function s(o){return n(o)||l(o)}})(i)})(Di);var Mf=Di.exports;const xr=Jt(Mf),Vf=new RegExp("^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(([Zz])|([\\+|\\-]([01][0-9]|2[0-3]):[0-5][0-9]))$"),Uf=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,qf=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,Ff=/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,xf=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Bf=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Zf=[0,31,28,31,30,31,30,31,31,30,31,30,31],Hf=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Jf=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,$f=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Wf=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Kf={date:(i,e,t,r)=>{if(typeof t!="string")return;const n=t.match(xf);if(!n)return ke.formatDateTimeError({value:t,pointer:r});const l=+n[1],s=+n[2],o=+n[3],a=l%4===0&&(l%100!==0||l%400===0);if(!(s>=1&&s<=12&&o>=1&&o<=(s==2&&a?29:Zf[s])))return ke.formatDateError({value:t,pointer:r})},"date-time":(i,e,t,r)=>{if(typeof t=="string")return t===""||Vf.test(t)?new Date(t).toString()==="Invalid Date"?ke.formatDateTimeError({value:t,pointer:r}):void 0:ke.formatDateTimeError({value:t,pointer:r})},email:(i,e,t,r)=>{if(typeof t!="string")return;if(t[0]==='"')return ke.formatEmailError({value:t,pointer:r});const[n,l,...s]=t.split("@");if(!n||!l||s.length!==0||n.length>64||l.length>253)return ke.formatEmailError({value:t,pointer:r});if(n[0]==="."||n.endsWith(".")||n.includes(".."))return ke.formatEmailError({value:t,pointer:r});if(!/^[a-z0-9.-]+$/i.test(l)||!/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(n))return ke.formatEmailError({value:t,pointer:r});if(!l.split(".").every(o=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(o)))return ke.formatEmailError({value:t,pointer:r})},hostname:(i,e,t,r)=>{if(typeof t=="string"&&!(t===""||Ff.test(t)))return ke.formatHostnameError({value:t,pointer:r})},ipv4:(i,e,t,r)=>{if(!(typeof t!="string"||t==="")){if(t&&t[0]==="0")return ke.formatIPV4LeadingZeroError({value:t,pointer:r});if(!(t.length<=15&&Uf.test(t)))return ke.formatIPV4Error({value:t,pointer:r})}},ipv6:(i,e,t,r)=>{if(!(typeof t!="string"||t==="")){if(t&&t[0]==="0")return ke.formatIPV6LeadingZeroError({value:t,pointer:r});if(!(t.length<=45&&qf.test(t)))return ke.formatIPV6Error({value:t,pointer:r})}},"json-pointer":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!Hf.test(t))return ke.formatJSONPointerError({value:t,pointer:r})},"relative-json-pointer":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!Jf.test(t))return ke.formatJSONPointerError({value:t,pointer:r})},regex:(i,e,t,r)=>{if(typeof t=="string"&&/\\Z$/.test(t)===!1){try{new RegExp(t);return}catch{}return ke.formatRegExError({value:t,pointer:r})}if(!(typeof t=="object"||typeof t=="number"||Array.isArray(t)))return ke.formatRegExError({value:t,pointer:r})},time:(i,e,t,r)=>{if(typeof t!="string")return;const n=t.match(Bf);if(!n)return ke.formatDateTimeError({value:t,pointer:r});const l=+n[1],s=+n[2],o=+n[3],a=!!n[5];if(!((l<=23&&s<=59&&o<=59||l==23&&s==59&&o==60)&&a))return ke.formatTimeError({value:t,pointer:r})},uri:(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!xr.isUri(t))return ke.formatURIError({value:t,pointer:r})},"uri-reference":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!$f.test(t))return ke.formatURIReferenceError({value:t,pointer:r})},"uri-template":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!Wf.test(t))return ke.formatURITemplateError({value:t,pointer:r})},url:(i,e,t,r)=>{if(!(t===""||xr.isWebUri(t)))return ke.formatURLError({value:t,pointer:r})}};function Qf(i){switch(pe(i)){case"string":case"array":return i.length===0;case"null":case"undefined":return!0;case"object":return Object.keys(i).length===0;default:return!1}}const Gf={addOptionalProps:!0,removeInvalidData:!1};let Ge;function tn(i,e){const{$ref:t}=i;return t==null?!0:(Ge[e]==null||Ge[e][t]==null?0:Ge[e][t])0){if(tn(e.anyOf[0],`${r}/anyOf/0`)){const l=nn(i,e.anyOf[0],`${r}/anyOf/0`);n=Ot(n,l),n.pointer=e.anyOf[0].$ref||n.pointer}delete n.anyOf}if(Array.isArray(e.allOf)){for(let l=0,s=e.allOf.length;li&&typeof i=="object";function Ke(i,e,t,r,n){if(t==null)throw new Error(`getTemplate: missing schema for data: ${JSON.stringify(e)}`);if(r==null)throw new Error("Missing pointer");let l=Ci(i,t,e,r);if(!Br(l))return;if(r=l.pointer,l!=null&&l.const)return l.const;if(Array.isArray(l.oneOf))if(Qf(e)){const f=l.oneOf[0].type||l.type||l.const&&typeof l.const||pe(e);l={...l.oneOf[0],type:f}}else{const f=wn(i,e,l);if(je(f)){if(e!=null&&n.removeInvalidData!==!0)return e;l=l.oneOf[0],e=void 0}else l=f}if(!Br(l)||l.type==null)return;const s=Array.isArray(l.type)?Xf(l.type,e,l.default):l.type,o=pe(e);return e!=null&&o!==s&&!(o==="number"&&s==="integer")&&(e=Yf(s,e)),Zr[s]==null?n.removeInvalidData?void 0:e:Zr[s](i,l,e,r,n)}function Xf(i,e,t){if(e==null){if(t!=null){const n=pe(t);if(i.includes(n))return n}return i[0]}const r=pe(e);return i.includes(r)?r:i[0]}const Zr={null:(i,e,t)=>Et(e,t,null),string:(i,e,t)=>Et(e,t,""),number:(i,e,t)=>Et(e,t,0),integer:(i,e,t)=>Et(e,t,0),boolean:(i,e,t)=>Et(e,t,!1),object:(i,e,t,r,n)=>{var l;const s=e.default===void 0?{}:e.default,o={},a=(l=e.required)!==null&&l!==void 0?l:[];if(e.properties&&Object.keys(e.properties).forEach(f=>{const u=t==null||t[f]==null?s[f]:t[f],c=a.includes(f);(u!=null||c||n.addOptionalProps)&&(o[f]=Ke(i,u,e.properties[f],`${r}/properties/${f}`,n))}),e.dependencies&&Object.keys(e.dependencies).forEach(f=>{if(o[f]===void 0)return;const u=e.dependencies[f];if(Array.isArray(u)){u.forEach(d=>{o[d]=Ke(i,o[d],e.properties[d],`${r}/properties/${d}`,n)});return}if(pe(u)!=="object")return;const c=Ke(i,t,{...u,type:"object"},`${r}/dependencies/${f}`,n);c&&!je(c)&&Object.assign(o,c)}),t&&Object.keys(t).forEach(f=>o[f]==null&&(o[f]=t[f])),e.if&&(e.then||e.else)){const f=i.isValid(o,e.if);if(f&&e.then){const u=i.getTemplate(o,{type:"object",...e.then},n);Object.assign(o,u)}else if(!f&&e.else){const u=i.getTemplate(o,{type:"object",...e.else},n);Object.assign(o,u)}}return o},array:(i,e,t,r,n)=>{var l,s,o;const a=e.default===void 0?[]:e.default;e.minItems=e.minItems||0;const f=t||[];if(e.items==null)return f;if(Array.isArray(e.items)){for(let c=0,d=Math.max((l=e.minItems)!==null&&l!==void 0?l:0,(o=(s=e.items)===null||s===void 0?void 0:s.length)!==null&&o!==void 0?o:0);c0){const c=Math.max(e.minItems,f.length);for(let d=0;d(Ge={mi:{}},Ke(i,e,t,"#",r));function tu(i,e,t=i.rootSchema,r="#"){return i.validate(e,t,r).length===0}function mn(i,e){const t=typeof i;if(t!==typeof e)return!1;if(Array.isArray(i)){if(!Array.isArray(e))return!1;const r=i.length;if(r!==e.length)return!1;for(let n=0;n=55296&&n<=56319&&t!(i[e]===void 0||!nu.call(i,e)),ru={additionalProperties:(i,e,t,r)=>{if(e.additionalProperties===!0||e.additionalProperties==null||pe(e.patternProperties)==="object"&&e.additionalProperties===!1)return;const n=[];let l=Object.keys(t).filter(o=>Tt.propertyBlacklist.includes(o)===!1);const s=Object.keys(e.properties||{});if(pe(e.patternProperties)==="object"){const o=Object.keys(e.patternProperties).map(a=>new RegExp(a));l=l.filter(a=>{for(let f=0;f{if(Array.isArray(e.allOf)===!1)return;const n=[];return e.allOf.forEach(l=>{n.push(...i.validate(t,l,r))}),n},anyOf:(i,e,t,r)=>{if(Array.isArray(e.anyOf)!==!1){for(let n=0;n{if(pe(e.dependencies)!=="object")return;const n=[];return Object.keys(t).forEach(l=>{if(e.dependencies[l]===void 0||e.dependencies[l]===!0)return;if(e.dependencies[l]===!1){n.push(i.errors.missingDependencyError({pointer:r}));return}let s;const o=pe(e.dependencies[l]);if(o==="array")s=e.dependencies[l].filter(a=>t[a]===void 0).map(a=>i.errors.missingDependencyError({missingProperty:a,pointer:r}));else if(o==="object")s=i.validate(t,e.dependencies[l],r);else throw new Error(`Invalid dependency definition for ${r}/${l}. Must be list or schema`);n.push(...s)}),n.length>0?n:void 0},enum:(i,e,t,r)=>{const n=pe(t);if(n==="object"||n==="array"){const l=JSON.stringify(t);for(let s=0;s{if(i.validateFormat[e.format])return i.validateFormat[e.format](i,e,t,r)},items:(i,e,t,r)=>{if(e.items===!1)return Array.isArray(t)&&t.length===0?void 0:i.errors.invalidDataError({pointer:r,value:t});const n=[];for(let l=0;l{if(!isNaN(e.maximum)){if(e.maximum&&e.maximum{if(!isNaN(e.maxItems)&&e.maxItems{if(isNaN(e.maxLength))return;const n=Hr(t).length;if(e.maxLength{const n=Object.keys(t).length;if(isNaN(e.maxProperties)===!1&&e.maxProperties{if(isNaN(e.minLength))return;const n=Hr(t).length;if(e.minLength>n)return e.minLength===1?i.errors.minLengthOneError({minLength:e.minLength,length:n,pointer:r}):i.errors.minLengthError({minLength:e.minLength,length:n,pointer:r})},minimum:(i,e,t,r)=>{if(!isNaN(e.minimum)){if(e.minimum>t)return i.errors.minimumError({minimum:e.minimum,length:t,pointer:r});if(e.exclusiveMinimum===!0&&e.minimum===t)return i.errors.minimumError({minimum:e.minimum,length:t,pointer:r})}},minItems:(i,e,t,r)=>{if(!isNaN(e.minItems)&&e.minItems>t.length)return e.minItems===1?i.errors.minItemsOneError({minItems:e.minItems,length:t.length,pointer:r}):i.errors.minItemsError({minItems:e.minItems,length:t.length,pointer:r})},minProperties:(i,e,t,r)=>{if(isNaN(e.minProperties))return;const n=Object.keys(t).length;if(e.minProperties>n)return i.errors.minPropertiesError({minProperties:e.minProperties,length:n,pointer:r})},multipleOf:(i,e,t,r)=>{if(!isNaN(e.multipleOf)&&t*rn%(e.multipleOf*rn)/rn!==0)return i.errors.multipleOfError({multipleOf:e.multipleOf,value:t,pointer:r})},not:(i,e,t,r)=>{const n=[];return i.validate(t,e.not,r).length===0&&n.push(i.errors.notError({value:t,not:e.not,pointer:r})),n},oneOf:(i,e,t,r)=>{if(Array.isArray(e.oneOf)!==!1&&(e=i.resolveOneOf(t,e,r),je(e)))return e},pattern:(i,e,t,r)=>{if(new RegExp(e.pattern,"u").test(t)===!1)return i.errors.patternError({pattern:e.pattern,description:e.patternExample||e.pattern,received:t,pointer:r})},patternProperties:(i,e,t,r)=>{const n=e.properties||{},l=e.patternProperties;if(pe(l)!=="object")return;const s=[],o=Object.keys(t),a=Object.keys(l).map(f=>({regex:new RegExp(f),patternSchema:l[f]}));return o.forEach(f=>{let u=!1;for(let c=0,d=a.length;c0&&s.push(...h)}n[f]||u===!1&&e.additionalProperties===!1&&s.push(i.errors.patternPropertiesError({key:f,pointer:r,patterns:Object.keys(l).join(",")}))}),s},properties:(i,e,t,r)=>{const n=[],l=Object.keys(e.properties||{});for(let s=0;s{const n=[],l=Object.keys(e.properties||{});for(let s=0;s{if(Array.isArray(e.required)!==!1)return e.required.map(n=>{if(!Jr(t,n))return i.errors.requiredPropertyError({key:n,pointer:r})})},requiredNotEmpty:(i,e,t,r)=>{if(Array.isArray(e.required)!==!1)return e.required.map(n=>{if(t[n]==null||t[n]==="")return i.errors.valueNotEmptyError({property:n,pointer:`${r}/${n}`})})},uniqueItems:(i,e,t,r)=>{if((Array.isArray(t)&&e.uniqueItems)===!1)return;const n=[];return t.forEach((l,s)=>{for(let o=s+1;o{if(e.contains===!1)return i.errors.containsArrayError({pointer:r,value:t});if(e.contains===!0)return Array.isArray(t)&&t.length===0?i.errors.containsAnyError({pointer:r}):void 0;if(pe(e.contains)==="object"){for(let n=0;n{if(!isNaN(e.exclusiveMaximum)&&e.exclusiveMaximum<=t)return i.errors.maximumError({maximum:e.exclusiveMaximum,length:t,pointer:r})},exclusiveMinimum:(i,e,t,r)=>{if(!isNaN(e.exclusiveMinimum)&&e.exclusiveMinimum>=t)return i.errors.minimumError({minimum:e.exclusiveMinimum,length:t,pointer:r})},if:(i,e,t,r)=>{if(e.if==null)return;const n=i.validate(t,e.if,r);if(n.length===0&&e.then)return i.validate(t,e.then,r);if(n.length!==0&&e.else)return i.validate(t,e.else,r)},maximum:(i,e,t,r)=>{if(!isNaN(e.maximum)&&e.maximum&&e.maximum{if(!isNaN(e.minimum)&&e.minimum>t)return i.errors.minimumError({minimum:e.minimum,length:t,pointer:r})},patternProperties:(i,e,t,r)=>{const n=e.properties||{},l=e.patternProperties;if(pe(l)!=="object")return;const s=[],o=Object.keys(t),a=Object.keys(l).map(f=>({regex:new RegExp(f),patternSchema:l[f]}));return o.forEach(f=>{let u=!1;for(let c=0,d=a.length;c0&&s.push(...h)}n[f]||u===!1&&e.additionalProperties===!1&&s.push(i.errors.patternPropertiesError({key:f,pointer:r,patterns:Object.keys(l).join(",")}))}),s},propertyNames:(i,e,t,r)=>{if(e.propertyNames===!1)return Object.keys(t).length===0?void 0:i.errors.invalidPropertyNameError({property:Object.keys(t),pointer:r,value:t});if(e.propertyNames===!0||pe(e.propertyNames)!=="object")return;const n=[],l=Object.keys(t),s={...e.propertyNames,type:"string"};return l.forEach(o=>{const a=i.validate(o,s,`${r}/${o}`);a.length>0&&n.push(i.errors.invalidPropertyNameError({property:o,pointer:r,validationError:a[0],value:t[o]}))}),n}};function lu(i,e,t=i.rootSchema,r="#"){let n=!1,l=vn(t);for(let s=0;se.properties[t]=nt(i[t]))),e.type==="array"&&i.length===1?e.items=nt(i[0]):e.type==="array"&&(e.items=i.map(nt)),e}function su(i,e,t=i.rootSchema){const r=i.step(e,t,{},"#");return je(r)?r.code==="one-of-error"?r.data.oneOf.map(n=>i.resolveRef(n)):r:[r]}const $r={array:(i,e,t,r,n)=>{const l=pe(t.items);if(l==="object")return Array.isArray(t.items.oneOf)?i.resolveOneOf(r[e],t.items,n):Array.isArray(t.items.anyOf)?i.resolveAnyOf(r[e],t.items,n):Array.isArray(t.items.allOf)?i.resolveAllOf(r[e],t.items,n):i.resolveRef(t.items);if(l==="array"){if(t.items[e]===!0)return nt(r[e]);if(t.items[e]===!1)return ke.invalidDataError({key:e,value:r[e],pointer:n});if(t.items[e])return i.resolveRef(t.items[e]);if(t.additionalItems===!1)return ke.additionalItemsError({key:e,value:r[e],pointer:n});if(t.additionalItems===!0||t.additionalItems===void 0)return nt(r[e]);if(pe(t.additionalItems)==="object")return t.additionalItems;throw new Error(`Invalid schema ${JSON.stringify(t,null,4)} for ${JSON.stringify(r,null,4)}`)}return t.additionalItems!==!1&&r[e]?nt(r[e]):new Error(`Invalid array schema for ${e} at ${n}`)},object:(i,e,t,r,n)=>{if(Array.isArray(t.oneOf)){const o=i.resolveOneOf(r,t,n);if(t=Ot(t,o),je(t))return t}if(Array.isArray(t.anyOf)&&(t=i.resolveAnyOf(r,t,n),je(t))||Array.isArray(t.allOf)&&(t=i.resolveAllOf(r,t,n),je(t)))return t;let l;if(t.properties&&t.properties[e]!==void 0){if(l=i.resolveRef(t.properties[e]),je(l))return l;if(l&&Array.isArray(l.oneOf)){let o=i.resolveOneOf(r[e],l,`${n}/${e}`);const a=l.oneOf.findIndex(f=>f===o);return o.variableSchema=!0,o.oneOfIndex=a,o.oneOfSchema=l,o}if(l)return l}const{dependencies:s}=t;if(pe(s)==="object"){const o=Object.keys(s).filter(a=>pe(s[a])==="object");for(let a=0,f=o.length;ai.typeKeywords.array.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),object:(i,e,t,r)=>i.typeKeywords.object.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),string:(i,e,t,r)=>i.typeKeywords.string.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),integer:(i,e,t,r)=>i.typeKeywords.number.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),number:(i,e,t,r)=>i.typeKeywords.number.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),boolean:(i,e,t,r)=>i.typeKeywords.boolean.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),null:(i,e,t,r)=>i.typeKeywords.null.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r))};var au=function i(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,l;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!i(e[n],t[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(l=Object.keys(e),r=l.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[n]))return!1;for(n=r;n--!==0;){var s=l[n];if(!i(e[s],t[s]))return!1}return!0}return e!==e&&t!==t};const fu=Jt(au);function uu(i,e){const t=pe(i);return t==="number"&&(e==="integer"||Array.isArray(e)&&e.includes("integer"))?Number.isInteger(i)||isNaN(i)?"integer":"number":t}function cu(i,e,t=i.rootSchema,r="#"){if(t=i.resolveRef(t),pe(t)==="boolean")return t?[]:[i.errors.invalidDataError({value:e,pointer:r})];if(je(t))return[t];if(t.const!==void 0)return fu(t.const,e)?[]:[i.errors.constError({value:e,expected:t.const,pointer:r})];const n=uu(e,t.type),l=t.type||n;return n!==l&&(!Array.isArray(l)||!l.includes(n))?[i.errors.typeError({received:n,expected:l,value:e,pointer:r})]:i.validateType[n]==null?[i.errors.invalidTypeError({receivedType:n,pointer:r})]:vt(i.validateType[n](i,t,e,r)).filter(qt)}const zi={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","exclusiveMaximum","exclusiveMinimum","format","if","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:iu,validateType:ou,validateFormat:Kf,errors:ke,addRemoteSchema:Ga,compileSchema:Cf,createSchemaOf:nt,each:zf,eachSchema:Li,getChildSchemaSelection:su,getSchema:Ka,getTemplate:eu,isValid:tu,resolveAllOf:Za,resolveAnyOf:lu,resolveOneOf:Pa,resolveRef:Ja,step:zt,validate:cu};class du extends Qa{constructor(e,t={}){super(Ot(zi,t),e)}}({...zi});function Wr(i,e,t){const r=i.slice();return r[10]=e[t],r[11]=e,r[12]=t,r}function Kr(i){let e,t,r=i[12]+1+"",n,l,s,o,a,f,u,c,d;function h(I){i[7](I,i[12])}let y={path:i[1]+"/"+i[12],schema:i[3],rootValue:i[2],validationErrors:i[4],customComponents:i[5],required:!0};i[0][i[12]]!==void 0&&(y.value=i[0][i[12]]),o=new Sn({props:y}),Ze.push(()=>Je(o,"value",h));function _(){return i[8](i[12])}return c=new Yi({props:{size:"small",kind:"ghost",icon:ls,expressive:!1,iconDescription:"Remove",tooltipPosition:"top",tooltipAlignment:"end"}}),c.$on("click",_),{c(){e=U("div"),t=U("div"),n=ve(r),l=ae(),s=U("div"),$(o.$$.fragment),f=ae(),u=U("div"),$(c.$$.fragment),this.h()},l(I){e=q(I,"DIV",{class:!0});var v=M(e);t=q(v,"DIV",{class:!0});var b=M(t);n=we(b,r),b.forEach(m),l=fe(v),s=q(v,"DIV",{class:!0});var S=M(s);ie(o.$$.fragment,S),S.forEach(m),f=fe(v),u=q(v,"DIV",{class:!0});var P=M(u);ie(c.$$.fragment,P),P.forEach(m),v.forEach(m),this.h()},h(){C(t,"class","mt-3 w-8 shrink-0 text-lg"),C(s,"class","flex w-full grow flex-col"),C(u,"class","mt-3"),C(e,"class","flex w-full flex-row")},m(I,v){O(I,e,v),F(e,t),F(t,n),F(e,l),F(e,s),W(o,s,null),F(e,f),F(e,u),W(c,u,null),d=!0},p(I,v){i=I;const b={};v&2&&(b.path=i[1]+"/"+i[12]),v&8&&(b.schema=i[3]),v&4&&(b.rootValue=i[2]),v&16&&(b.validationErrors=i[4]),v&32&&(b.customComponents=i[5]),!a&&v&1&&(a=!0,b.value=i[0][i[12]],Xe(()=>a=!1)),o.$set(b)},i(I){d||(p(o.$$.fragment,I),p(c.$$.fragment,I),d=!0)},o(I){g(o.$$.fragment,I),g(c.$$.fragment,I),d=!1},d(I){I&&m(e),K(o),K(c)}}}function hu(i){let e,t,r,n,l,s,o,a,f=i[0]||[],u=[];for(let d=0;dg(u[d],1,1,()=>{u[d]=null});return{c(){e=U("div");for(let d=0;d0),C(e,"class","bx--form-item flex flex-col")},m(d,h){O(d,e,h);for(let y=0;y0)},i(d){if(!s){for(let h=0;h{l.splice(h,1),t(0,l)},d=()=>{t(0,l=[...l||[],r])};return i.$$set=h=>{"path"in h&&t(1,n=h.path),"value"in h&&t(0,l=h.value),"rootValue"in h&&t(2,s=h.rootValue),"schema"in h&&t(3,o=h.schema),"validationErrors"in h&&t(4,a=h.validationErrors),"customComponents"in h&&t(5,f=h.customComponents)},i.$$.update=()=>{i.$$.dirty&11&&t(6,r=o.getTemplate(void 0,o.getSchema(n+"/0",l)))},[l,n,s,o,a,f,r,u,c,d]}class pu extends ce{constructor(e){super(),de(this,e,mu,hu,he,{path:1,value:0,rootValue:2,schema:3,validationErrors:4,customComponents:5})}}function Qr(i,e,t){const r=i.slice();return r[24]=e[t],r[25]=e,r[26]=t,r}function Gr(i,e,t){const r=i.slice();return r[20]=e[t],r}function gu(i){const e=i.slice(),t=Object.keys(e[10].properties??{});return e[23]=t,e}function Yr(i){let e,t,r,n,l,s,o;const a=[bu,_u],f=[];function u(_,I){return _[10].type==="object"?0:1}e=u(i),t=f[e]=a[e](i);const c=[Tu,Pu,Su,Ou,wu,vu,ku,yu,Eu],d=[];function h(_,I){return _[8][_[2]]?0:_[10].type=="error"?1:_[10].enum?2:_[10].type=="string"?3:_[10].type=="number"?4:_[10].type=="boolean"?5:_[10].type=="array"?6:_[10].type=="object"?7:8}function y(_,I){return I===7?gu(_):_}return n=h(i),l=d[n]=c[n](y(i,n)),{c(){t.c(),r=ae(),l.c(),s=x()},l(_){t.l(_),r=fe(_),l.l(_),s=x()},m(_,I){f[e].m(_,I),O(_,r,I),d[n].m(_,I),O(_,s,I),o=!0},p(_,I){let v=e;e=u(_),e===v?f[e].p(_,I):(X(),g(f[v],1,1,()=>{f[v]=null}),ee(),t=f[e],t?t.p(_,I):(t=f[e]=a[e](_),t.c()),p(t,1),t.m(r.parentNode,r));let b=n;n=h(_),n===b?d[n].p(y(_,n),I):(X(),g(d[b],1,1,()=>{d[b]=null}),ee(),l=d[n],l?l.p(y(_,n),I):(l=d[n]=c[n](y(_,n)),l.c()),p(l,1),l.m(s.parentNode,s))},i(_){o||(p(t),p(l),o=!0)},o(_){g(t),g(l),o=!1},d(_){f[e].d(_),_&&m(r),d[n].d(_),_&&m(s)}}}function _u(i){let e,t,r,n,l=i[10].description&&i[6]&&Xr(i);return{c(){e=U("div"),t=ve(i[12]),r=ae(),l&&l.c(),n=x(),this.h()},l(s){e=q(s,"DIV",{class:!0});var o=M(e);t=we(o,i[12]),o.forEach(m),r=fe(s),l&&l.l(s),n=x(),this.h()},h(){C(e,"class","label text-s mb-2 font-medium text-gray-700")},m(s,o){O(s,e,o),F(e,t),O(s,r,o),l&&l.m(s,o),O(s,n,o)},p(s,o){o&4096&&Pe(t,s[12]),s[10].description&&s[6]?l?l.p(s,o):(l=Xr(s),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i:ue,o:ue,d(s){s&&m(e),s&&m(r),l&&l.d(s),s&&m(n)}}}function bu(i){let e,t,r=i[10].description&&i[6]&&ei(i);return{c(){r&&r.c(),e=x()},l(n){r&&r.l(n),e=x()},m(n,l){r&&r.m(n,l),O(n,e,l),t=!0},p(n,l){n[10].description&&n[6]?r?(r.p(n,l),l&1088&&p(r,1)):(r=ei(n),r.c(),p(r,1),r.m(e.parentNode,e)):r&&(X(),g(r,1,1,()=>{r=null}),ee())},i(n){t||(p(r),t=!0)},o(n){g(r),t=!1},d(n){r&&r.d(n),n&&m(e)}}}function Xr(i){let e,t=i[10].description+"",r;return{c(){e=U("div"),r=ve(t),this.h()},l(n){e=q(n,"DIV",{class:!0});var l=M(e);r=we(l,t),l.forEach(m),this.h()},h(){C(e,"class","bx--label pb-2 text-xs text-gray-500")},m(n,l){O(n,e,l),F(e,r)},p(n,l){l&1024&&t!==(t=n[10].description+"")&&Pe(r,t)},d(n){n&&m(e)}}}function ei(i){let e,t,r;return t=new ba({props:{source:i[10].description}}),{c(){e=U("div"),$(t.$$.fragment),this.h()},l(n){e=q(n,"DIV",{class:!0});var l=M(e);ie(t.$$.fragment,l),l.forEach(m),this.h()},h(){C(e,"class","description mb-4")},m(n,l){O(n,e,l),W(t,e,null),r=!0},p(n,l){const s={};l&1024&&(s.source=n[10].description),t.$set(s)},i(n){r||(p(t.$$.fragment,n),r=!0)},o(n){g(t.$$.fragment,n),r=!1},d(n){n&&m(e),K(t)}}}function Eu(i){let e,t=JSON.stringify(i[10])+"",r;return{c(){e=ve("Unknown property: "),r=ve(t)},l(n){e=we(n,"Unknown property: "),r=we(n,t)},m(n,l){O(n,e,l),O(n,r,l)},p(n,l){l&1024&&t!==(t=JSON.stringify(n[10])+"")&&Pe(r,t)},i:ue,o:ue,d(n){n&&m(e),n&&m(r)}}}function yu(i){let e,t,r=i[23],n=[];for(let s=0;sg(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;sJe(e,"value",n)),{c(){$(e.$$.fragment)},l(s){ie(e.$$.fragment,s)},m(s,o){W(e,s,o),r=!0},p(s,o){const a={};o&4&&(a.path=s[2]),o&2&&(a.schema=s[1]),o&128&&(a.validationErrors=s[7]),o&256&&(a.customComponents=s[8]),o&16&&(a.rootValue=s[4]),!t&&o&1&&(t=!0,a.value=s[0],Xe(()=>t=!1)),e.$set(a)},i(s){r||(p(e.$$.fragment,s),r=!0)},o(s){g(e.$$.fragment,s),r=!1},d(s){K(e,s)}}}function vu(i){let e,t,r,n;function l(o){i[17](o)}let s={labelA:"False",labelB:"True",labelText:i[12],hideLabel:!0};return i[0]!==void 0&&(s.toggled=i[0]),t=new Xi({props:s}),Ze.push(()=>Je(t,"toggled",l)),{c(){e=U("div"),$(t.$$.fragment)},l(o){e=q(o,"DIV",{});var a=M(e);ie(t.$$.fragment,a),a.forEach(m)},m(o,a){O(o,e,a),W(t,e,null),n=!0},p(o,a){const f={};a&4096&&(f.labelText=o[12]),!r&&a&1&&(r=!0,f.toggled=o[0],Xe(()=>r=!1)),t.$set(f)},i(o){n||(p(t.$$.fragment,o),n=!0)},o(o){g(t.$$.fragment,o),n=!1},d(o){o&&m(e),K(t)}}}function wu(i){let e,t,r;function n(s){i[16](s)}let l={name:i[2],label:i[12],hideLabel:!0,invalid:!i[0]&&i[3]};return i[0]!==void 0&&(l.value=i[0]),e=new Vl({props:l}),Ze.push(()=>Je(e,"value",n)),{c(){$(e.$$.fragment)},l(s){ie(e.$$.fragment,s)},m(s,o){W(e,s,o),r=!0},p(s,o){const a={};o&4&&(a.name=s[2]),o&4096&&(a.label=s[12]),o&9&&(a.invalid=!s[0]&&s[3]),!t&&o&1&&(t=!0,a.value=s[0],Xe(()=>t=!1)),e.$set(a)},i(s){r||(p(e.$$.fragment,s),r=!0)},o(s){g(e.$$.fragment,s),r=!1},d(s){K(e,s)}}}function Ou(i){let e,t,r;function n(s){i[15](s)}let l={name:i[2],invalid:!!i[9].length,invalidText:i[11],labelText:i[12],hideLabel:!0,placeholder:i[3]?"":"(optional)"};return i[0]!==void 0&&(l.value=i[0]),e=new Wl({props:l}),Ze.push(()=>Je(e,"value",n)),{c(){$(e.$$.fragment)},l(s){ie(e.$$.fragment,s)},m(s,o){W(e,s,o),r=!0},p(s,o){const a={};o&4&&(a.name=s[2]),o&512&&(a.invalid=!!s[9].length),o&2048&&(a.invalidText=s[11]),o&4096&&(a.labelText=s[12]),o&8&&(a.placeholder=s[3]?"":"(optional)"),!t&&o&1&&(t=!0,a.value=s[0],Xe(()=>t=!1)),e.$set(a)},i(s){r||(p(e.$$.fragment,s),r=!0)},o(s){g(e.$$.fragment,s),r=!1},d(s){K(e,s)}}}function Su(i){let e,t,r;function n(s){i[14](s)}let l={name:i[2],labelText:i[12],hideLabel:!0,$$slots:{default:[Au]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.selected=i[0]),e=new sl({props:l}),Ze.push(()=>Je(e,"selected",n)),{c(){$(e.$$.fragment)},l(s){ie(e.$$.fragment,s)},m(s,o){W(e,s,o),r=!0},p(s,o){const a={};o&4&&(a.name=s[2]),o&4096&&(a.labelText=s[12]),o&134218760&&(a.$$scope={dirty:o,ctx:s}),!t&&o&1&&(t=!0,a.selected=s[0],Xe(()=>t=!1)),e.$set(a)},i(s){r||(p(e.$$.fragment,s),r=!0)},o(s){g(e.$$.fragment,s),r=!1},d(s){K(e,s)}}}function Pu(i){let e,t=i[10].message+"",r;return{c(){e=U("div"),r=ve(t),this.h()},l(n){e=q(n,"DIV",{class:!0});var l=M(e);r=we(l,t),l.forEach(m),this.h()},h(){C(e,"class","text-red-600")},m(n,l){O(n,e,l),F(e,r)},p(n,l){l&1024&&t!==(t=n[10].message+"")&&Pe(r,t)},i:ue,o:ue,d(n){n&&m(e)}}}function Tu(i){let e,t,r,n;function l(a){i[13](a)}var s=i[8][i[2]];function o(a){let f={rootValue:a[4],invalid:!!a[9].length,invalidText:a[11]};return a[0]!==void 0&&(f.value=a[0]),{props:f}}return s&&(e=Se(s,o(i)),Ze.push(()=>Je(e,"value",l))),{c(){e&&$(e.$$.fragment),r=x()},l(a){e&&ie(e.$$.fragment,a),r=x()},m(a,f){e&&W(e,a,f),O(a,r,f),n=!0},p(a,f){const u={};if(f&16&&(u.rootValue=a[4]),f&512&&(u.invalid=!!a[9].length),f&2048&&(u.invalidText=a[11]),!t&&f&1&&(t=!0,u.value=a[0],Xe(()=>t=!1)),f&260&&s!==(s=a[8][a[2]])){if(e){X();const c=e;g(c.$$.fragment,1,0,()=>{K(c,1)}),ee()}s?(e=Se(s,o(a)),Ze.push(()=>Je(e,"value",l)),$(e.$$.fragment),p(e.$$.fragment,1),W(e,r.parentNode,r)):e=null}else s&&e.$set(u)},i(a){n||(e&&p(e.$$.fragment,a),n=!0)},o(a){e&&g(e.$$.fragment,a),n=!1},d(a){a&&m(r),e&&K(e,a)}}}function ti(i){var a;let e,t,r,n,l;function s(f){i[19](f,i[24])}let o={path:i[2]+"/"+i[24],schema:i[1],hiddenProperties:i[5],validationErrors:i[7],customComponents:i[8],rootValue:i[4],required:(a=i[10].required)==null?void 0:a.includes(i[24])};return i[0][i[24]]!==void 0&&(o.value=i[0][i[24]]),t=new Sn({props:o}),Ze.push(()=>Je(t,"value",s)),{c(){e=U("div"),$(t.$$.fragment),n=ae(),this.h()},l(f){e=q(f,"DIV",{class:!0});var u=M(e);ie(t.$$.fragment,u),n=fe(u),u.forEach(m),this.h()},h(){C(e,"class","mt-4 border-gray-300"),k(e,"border-b",i[26]r=!1)),t.$set(c),(!l||u&1024)&&k(e,"border-b",i[26]g(s[a],1,1,()=>{s[a]=null});return{c(){n&&n.c(),e=ae();for(let a=0;a{n=null}),ee()):n?(n.p(a,f),f&8&&p(n,1)):(n=ni(),n.c(),p(n,1),n.m(e.parentNode,e)),f&1024){l=a[10].enum;let u;for(u=0;u{n=null}),ee())},i(s){r||(p(n),r=!0)},o(s){g(n),r=!1},d(s){n&&n.d(s),s&&m(t)}}}function Ru(i,e,t){let r,n,l,{schema:s}=e,{path:o=""}=e,{required:a=!1}=e,{value:f}=e,{rootValue:u}=e,{hiddenProperties:c=[]}=e,{showDescription:d=!0}=e,{validationErrors:h=[]}=e,{customComponents:y}=e,_="";function I(L){f=L,t(0,f)}function v(L){f=L,t(0,f)}function b(L){f=L,t(0,f)}function S(L){f=L,t(0,f)}function P(L){f=L,t(0,f)}function T(L){f=L,t(0,f)}function A(L,z){i.$$.not_equal(f[z],L)&&(f[z]=L,t(0,f))}return i.$$set=L=>{"schema"in L&&t(1,s=L.schema),"path"in L&&t(2,o=L.path),"required"in L&&t(3,a=L.required),"value"in L&&t(0,f=L.value),"rootValue"in L&&t(4,u=L.rootValue),"hiddenProperties"in L&&t(5,c=L.hiddenProperties),"showDescription"in L&&t(6,d=L.showDescription),"validationErrors"in L&&t(7,h=L.validationErrors),"customComponents"in L&&t(8,y=L.customComponents)},i.$$.update=()=>{i.$$.dirty&1&&f===""&&t(0,f=void 0),i.$$.dirty&7&&t(10,r=s.getSchema(o,f)),i.$$.dirty&1032&&t(12,n=r.title?`${r.title} ${a?"*":""}`:""),i.$$.dirty&132&&t(9,l=h.filter(L=>{var z,Z,ne;return`${(z=L==null?void 0:L.data)==null?void 0:z.pointer}${(Z=L==null?void 0:L.data)!=null&&Z.key?"/"+((ne=L==null?void 0:L.data)==null?void 0:ne.key):""}`.replaceAll("#","")==o})),i.$$.dirty&512&&(l.length==0?t(11,_=""):l[0].code==="min-length-one-error"||l[0].code==="required-property-error"?t(11,_="Value is required"):t(11,_=l[0].message))},[f,s,o,a,u,c,d,h,y,l,r,_,n,I,v,b,S,P,T,A]}class Sn extends ce{constructor(e){super(),de(this,e,Ru,Iu,he,{schema:1,path:2,required:3,value:0,rootValue:4,hiddenProperties:5,showDescription:6,validationErrors:7,customComponents:8})}}function ii(i){let e,t,r;function n(s){i[7](s)}let l={schema:i[5],hiddenProperties:i[2],showDescription:i[3],validationErrors:i[1],customComponents:i[4],rootValue:i[0]};return i[0]!==void 0&&(l.value=i[0]),e=new Sn({props:l}),Ze.push(()=>Je(e,"value",n)),{c(){$(e.$$.fragment)},l(s){ie(e.$$.fragment,s)},m(s,o){W(e,s,o),r=!0},p(s,o){const a={};o&32&&(a.schema=s[5]),o&4&&(a.hiddenProperties=s[2]),o&8&&(a.showDescription=s[3]),o&2&&(a.validationErrors=s[1]),o&16&&(a.customComponents=s[4]),o&1&&(a.rootValue=s[0]),!t&&o&1&&(t=!0,a.value=s[0],Xe(()=>t=!1)),e.$set(a)},i(s){r||(p(e.$$.fragment,s),r=!0)},o(s){g(e.$$.fragment,s),r=!1},d(s){K(e,s)}}}function ju(i){let e,t,r=i[5]&&ii(i);return{c(){r&&r.c(),e=x()},l(n){r&&r.l(n),e=x()},m(n,l){r&&r.m(n,l),O(n,e,l),t=!0},p(n,[l]){n[5]?r?(r.p(n,l),l&32&&p(r,1)):(r=ii(n),r.c(),p(r,1),r.m(e.parentNode,e)):r&&(X(),g(r,1,1,()=>{r=null}),ee())},i(n){t||(p(r),t=!0)},o(n){g(r),t=!1},d(n){r&&r.d(n),n&&m(e)}}}function Nu(i,e,t){let r,{schema:n}=e,{value:l={}}=e,{hiddenProperties:s=[]}=e,{validationErrors:o=[]}=e,{showDescription:a=!0}=e,{customComponents:f={}}=e;function u(d){t(0,l=d.getTemplate(l,void 0,{addOptionalProps:!1}));for(const[h,y]of Object.entries(n.properties||{})){const _=y.default;_&&l[h]!=_&&t(0,l[h]=_,l)}}function c(d){l=d,t(0,l)}return i.$$set=d=>{"schema"in d&&t(6,n=d.schema),"value"in d&&t(0,l=d.value),"hiddenProperties"in d&&t(2,s=d.hiddenProperties),"validationErrors"in d&&t(1,o=d.validationErrors),"showDescription"in d&&t(3,a=d.showDescription),"customComponents"in d&&t(4,f=d.customComponents)},i.$$.update=()=>{i.$$.dirty&64&&t(5,r=typeof n=="object"?new du(n):null),i.$$.dirty&32&&r&&u(r),i.$$.dirty&33&&t(1,o=r?r.validate(l):[])},[l,o,s,a,f,r,n,c]}class Ec extends ce{constructor(e){super(),de(this,e,Nu,ju,he,{schema:6,value:0,hiddenProperties:2,validationErrors:1,showDescription:3,customComponents:4})}}function yc(i){return i!=null}function kc(i,e){return`/concepts#!/${i}/${e}`}function vc(i,e){return`/datasets#!/${i}/${e}`}export{ic as $,dc as A,mc as B,ls as C,tc as D,fc as E,vc as F,Ie as G,_c as H,qu as I,ss as J,Jt as K,di as L,Ku as M,xu as N,ba as O,Mt as P,Ec as Q,_n as R,Uu as S,Wl as T,Fu as U,st as V,Bu as W,ts as X,bn as Y,ci as Z,hc as _,dt as a,lc as a0,oc as a1,sc as a2,es as b,kc as c,ct as d,Ju as e,Wu as f,ec as g,Xu as h,$u as i,ns as j,rc as k,Dt as l,gc as m,yc as n,ac as o,Qu as p,nc as q,uc as r,Zu as s,ur as t,Xl as u,Hu as v,cc as w,pc as x,Yu as y,Gu as z};