nsthorat's picture
Push
cc5eabb
raw
history blame
No virus
187 kB
var ui=Object.defineProperty;var ci=(i,e,t)=>e in i?ui(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var sn=(i,e,t)=>(ci(i,typeof e!="symbol"?e+"":e,t),t);import{S as ue,i as ce,s as de,E as ye,a3 as De,a4 as Me,m as C,h as p,n as I,a5 as Ye,b as v,J as q,O as Ue,$ as ae,D as ze,F as Ve,q as me,r as ge,u as Pe,k as $,a as se,l as U,c as oe,I as wt,H as S,K as be,g as m,v as Y,d as g,f as G,P as Qt,a9 as Rr,C as Yt,G as ke,L as ve,M as we,N as Oe,y as Z,z as te,A as H,B as J,Q as Re,w as $e,e as V,aa as on,ae as Tr,o as Ir,a1 as He,W as lt,x as Ee,aq as fn,ab as di,ad as hi,T as pi,U as xe,V as Je}from"./index.2add268f.js";import{W as jr,e as Nr,B as mi}from"./taskMonitoringStore.5b185d7a.js";import{T as gi,S as _i,a as Lr}from"./Toggle.beb03bec.js";function an(i){let e,t;return{c(){e=De("title"),t=me(i[1])},l(r){e=Me(r,"title",{});var n=C(e);t=ge(n,i[1]),n.forEach(p)},m(r,n){v(r,e,n),q(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&p(e)}}}function bi(i){let e,t,r=i[1]&&an(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<n.length;s+=1)l=ye(l,n[s]);return{c(){e=De("svg"),r&&r.c(),t=De("path"),this.h()},l(s){e=Me(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=C(e);r&&r.l(o),t=Me(o,"path",{d:!0}),C(t).forEach(p),o.forEach(p),this.h()},h(){I(t,"d","M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"),Ye(e,l)},m(s,o){v(s,e,o),r&&r.m(e,null),q(e,t)},p(s,[o]){s[1]?r?r.p(s,o):(r=an(s),r.c(),r.m(e,t)):r&&(r.d(1),r=null),Ye(e,l=Ue(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:ae,o:ae,d(s){s&&p(e),r&&r.d()}}}function Ei(i,e,t){let r,n;const l=["size","title"];let s=ze(e,l),{size:o=16}=e,{title:f=void 0}=e;return i.$$set=a=>{t(5,e=ye(ye({},e),Ve(a))),t(3,s=ze(e,l)),"size"in a&&t(0,o=a.size),"title"in a&&t(1,f=a.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||f),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ve(e),[o,f,n,s,r]}class yi extends ue{constructor(e){super(),ce(this,e,Ei,bi,de,{size:0,title:1})}}const ki=yi;function un(i){let e,t;return{c(){e=De("title"),t=me(i[1])},l(r){e=Me(r,"title",{});var n=C(e);t=ge(n,i[1]),n.forEach(p)},m(r,n){v(r,e,n),q(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&p(e)}}}function vi(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<n.length;s+=1)l=ye(l,n[s]);return{c(){e=De("svg"),r&&r.c(),t=De("path"),this.h()},l(s){e=Me(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=C(e);r&&r.l(o),t=Me(o,"path",{d:!0}),C(t).forEach(p),o.forEach(p),this.h()},h(){I(t,"d","M8 15H24V17H8z"),Ye(e,l)},m(s,o){v(s,e,o),r&&r.m(e,null),q(e,t)},p(s,[o]){s[1]?r?r.p(s,o):(r=un(s),r.c(),r.m(e,t)):r&&(r.d(1),r=null),Ye(e,l=Ue(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:ae,o:ae,d(s){s&&p(e),r&&r.d()}}}function wi(i,e,t){let r,n;const l=["size","title"];let s=ze(e,l),{size:o=16}=e,{title:f=void 0}=e;return i.$$set=a=>{t(5,e=ye(ye({},e),Ve(a))),t(3,s=ze(e,l)),"size"in a&&t(0,o=a.size),"title"in a&&t(1,f=a.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||f),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ve(e),[o,f,n,s,r]}class Oi extends ue{constructor(e){super(),ce(this,e,wi,vi,de,{size:0,title:1})}}const Si=Oi;function cn(i){let e,t;return{c(){e=De("title"),t=me(i[1])},l(r){e=Me(r,"title",{});var n=C(e);t=ge(n,i[1]),n.forEach(p)},m(r,n){v(r,e,n),q(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&p(e)}}}function Pi(i){let e,t,r=i[1]&&cn(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<n.length;s+=1)l=ye(l,n[s]);return{c(){e=De("svg"),r&&r.c(),t=De("path"),this.h()},l(s){e=Me(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=C(e);r&&r.l(o),t=Me(o,"path",{d:!0}),C(t).forEach(p),o.forEach(p),this.h()},h(){I(t,"d","M30 28.6L3.4 2 2 3.4l10.1 10.1L4 21.6V28h6.4l8.1-8.1L28.6 30 30 28.6zM9.6 26H6v-3.6l7.5-7.5 3.6 3.6L9.6 26zM29.4 6.2L29.4 6.2l-3.6-3.6c-.8-.8-2-.8-2.8 0l0 0 0 0-8 8 1.4 1.4L20 8.4l3.6 3.6L20 15.6l1.4 1.4 8-8C30.2 8.2 30.2 7 29.4 6.2L29.4 6.2zM25 10.6L21.4 7l3-3L28 7.6 25 10.6z"),Ye(e,l)},m(s,o){v(s,e,o),r&&r.m(e,null),q(e,t)},p(s,[o]){s[1]?r?r.p(s,o):(r=cn(s),r.c(),r.m(e,t)):r&&(r.d(1),r=null),Ye(e,l=Ue(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:ae,o:ae,d(s){s&&p(e),r&&r.d()}}}function Ai(i,e,t){let r,n;const l=["size","title"];let s=ze(e,l),{size:o=16}=e,{title:f=void 0}=e;return i.$$set=a=>{t(5,e=ye(ye({},e),Ve(a))),t(3,s=ze(e,l)),"size"in a&&t(0,o=a.size),"title"in a&&t(1,f=a.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||f),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ve(e),[o,f,n,s,r]}class Ri extends ue{constructor(e){super(),ce(this,e,Ai,Pi,de,{size:0,title:1})}}const zr=Ri,Ti=i=>({}),dn=i=>({});function hn(i){let e,t;const r=i[34].label,n=ke(r,i,i[33],dn),l=n||Ii(i);return{c(){e=$("label"),l&&l.c(),this.h()},l(s){e=U(s,"LABEL",{for:!0});var o=C(e);l&&l.l(o),o.forEach(p),this.h()},h(){I(e,"for",i[18]),S(e,"bx--label",!0),S(e,"bx--label--disabled",i[8]),S(e,"bx--visually-hidden",i[17])},m(s,o){v(s,e,o),l&&l.m(e,null),t=!0},p(s,o){n?n.p&&(!t||o[1]&4)&&ve(n,r,s,s[33],t?Oe(r,s[33],o,Ti):we(s[33]),dn):l&&l.p&&(!t||o[0]&65536)&&l.p(s,t?o:[-1,-1]),(!t||o[0]&262144)&&I(e,"for",s[18]),(!t||o[0]&256)&&S(e,"bx--label--disabled",s[8]),(!t||o[0]&131072)&&S(e,"bx--visually-hidden",s[17])},i(s){t||(m(l,s),t=!0)},o(s){g(l,s),t=!1},d(s){s&&p(e),l&&l.d(s)}}}function Ii(i){let e;return{c(){e=me(i[16])},l(t){e=ge(t,i[16])},m(t,r){v(t,e,r)},p(t,r){r[0]&65536&&Pe(e,t[16])},d(t){t&&p(e)}}}function ji(i){let e,t,r,n=i[11]&&pn(),l=!i[11]&&i[13]&&mn();return{c(){n&&n.c(),e=se(),l&&l.c(),t=V()},l(s){n&&n.l(s),e=oe(s),l&&l.l(s),t=V()},m(s,o){n&&n.m(s,o),v(s,e,o),l&&l.m(s,o),v(s,t,o),r=!0},p(s,o){s[11]?n?o[0]&2048&&m(n,1):(n=pn(),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(Y(),g(n,1,1,()=>{n=null}),G()),!s[11]&&s[13]?l?o[0]&10240&&m(l,1):(l=mn(),l.c(),m(l,1),l.m(t.parentNode,t)):l&&(Y(),g(l,1,1,()=>{l=null}),G())},i(s){r||(m(n),m(l),r=!0)},o(s){g(n),g(l),r=!1},d(s){n&&n.d(s),s&&p(e),l&&l.d(s),s&&p(t)}}}function Ni(i){let e,t;return e=new zr({props:{class:"bx--text-input__readonly-icon"}}),{c(){Z(e.$$.fragment)},l(r){te(e.$$.fragment,r)},m(r,n){H(e,r,n),t=!0},p:ae,i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){J(e,r)}}}function pn(i){let e,t;return e=new jr({props:{class:"bx--number__invalid"}}),{c(){Z(e.$$.fragment)},l(r){te(e.$$.fragment,r)},m(r,n){H(e,r,n),t=!0},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){J(e,r)}}}function mn(i){let e,t;return e=new Nr({props:{class:"bx--number__invalid bx--number__invalid--warning"}}),{c(){Z(e.$$.fragment)},l(r){te(e.$$.fragment,r)},m(r,n){H(e,r,n),t=!0},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){J(e,r)}}}function gn(i){let e,t,r,n,l,s,o,f,a,u,c,d,h,E,_,T,k;return r=new Si({props:{class:"down-icon"}}),u=new ki({props:{class:"up-icon"}}),{c(){e=$("div"),t=$("button"),Z(r.$$.fragment),s=se(),o=$("div"),f=se(),a=$("button"),Z(u.$$.fragment),h=se(),E=$("div"),this.h()},l(b){e=U(b,"DIV",{});var O=C(e);t=U(O,"BUTTON",{type:!0,tabindex:!0,title:!0,"aria-label":!0});var P=C(t);te(r.$$.fragment,P),P.forEach(p),s=oe(O),o=U(O,"DIV",{}),C(o).forEach(p),f=oe(O),a=U(O,"BUTTON",{type:!0,tabindex:!0,title:!0,"aria-label":!0});var D=C(a);te(u.$$.fragment,D),D.forEach(p),h=oe(O),E=U(O,"DIV",{}),C(E).forEach(p),O.forEach(p),this.h()},h(){I(t,"type","button"),I(t,"tabindex","-1"),I(t,"title",n=i[23]||i[10]),I(t,"aria-label",l=i[23]||i[10]),t.disabled=i[8],S(t,"bx--number__control-btn",!0),S(t,"down-icon",!0),S(o,"bx--number__rule-divider",!0),I(a,"type","button"),I(a,"tabindex","-1"),I(a,"title",c=i[24]||i[10]),I(a,"aria-label",d=i[24]||i[10]),a.disabled=i[8],S(a,"bx--number__control-btn",!0),S(a,"up-icon",!0),S(E,"bx--number__rule-divider",!0),S(e,"bx--number__controls",!0)},m(b,O){v(b,e,O),q(e,t),H(r,t,null),q(e,s),q(e,o),q(e,f),q(e,a),H(u,a,null),q(e,h),q(e,E),_=!0,T||(k=[be(t,"click",i[45]),be(a,"click",i[46])],T=!0)},p(b,O){(!_||O[0]&8389632&&n!==(n=b[23]||b[10]))&&I(t,"title",n),(!_||O[0]&8389632&&l!==(l=b[23]||b[10]))&&I(t,"aria-label",l),(!_||O[0]&256)&&(t.disabled=b[8]),(!_||O[0]&16778240&&c!==(c=b[24]||b[10]))&&I(a,"title",c),(!_||O[0]&16778240&&d!==(d=b[24]||b[10]))&&I(a,"aria-label",d),(!_||O[0]&256)&&(a.disabled=b[8])},i(b){_||(m(r.$$.fragment,b),m(u.$$.fragment,b),_=!0)},o(b){g(r.$$.fragment,b),g(u.$$.fragment,b),_=!1},d(b){b&&p(e),J(r),J(u),T=!1,Qt(k)}}}function _n(i){let e,t;return{c(){e=$("div"),t=me(i[15]),this.h()},l(r){e=U(r,"DIV",{});var n=C(e);t=ge(n,i[15]),n.forEach(p),this.h()},h(){S(e,"bx--form__helper-text",!0),S(e,"bx--form__helper-text--disabled",i[8])},m(r,n){v(r,e,n),q(e,t)},p(r,n){n[0]&32768&&Pe(t,r[15]),n[0]&256&&S(e,"bx--form__helper-text--disabled",r[8])},d(r){r&&p(e)}}}function bn(i){let e,t;return{c(){e=$("div"),t=me(i[12]),this.h()},l(r){e=U(r,"DIV",{id:!0});var n=C(e);t=ge(n,i[12]),n.forEach(p),this.h()},h(){I(e,"id",i[21]),S(e,"bx--form-requirement",!0)},m(r,n){v(r,e,n),q(e,t)},p(r,n){n[0]&4096&&Pe(t,r[12]),n[0]&2097152&&I(e,"id",r[21])},d(r){r&&p(e)}}}function En(i){let e,t;return{c(){e=$("div"),t=me(i[14]),this.h()},l(r){e=U(r,"DIV",{id:!0});var n=C(e);t=ge(n,i[14]),n.forEach(p),this.h()},h(){I(e,"id",i[21]),S(e,"bx--form-requirement",!0)},m(r,n){v(r,e,n),q(e,t)},p(r,n){n[0]&16384&&Pe(t,r[14]),n[0]&2097152&&I(e,"id",r[21])},d(r){r&&p(e)}}}function Li(i){let e,t,r,n,l,s,o,f,a,u,c,d,h,E,_,T,k,b,O,P,D=(i[28].label||i[16])&&hn(i),j=[{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":f=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:a=i[0]??""},{readOnly:i[7]},i[29]],N={};for(let y=0;y<j.length;y+=1)N=ye(N,j[y]);const fe=[Ni,ji],Q=[];function ne(y,R){return y[7]?0:1}c=ne(i),d=Q[c]=fe[c](i);let ie=!i[9]&&gn(i),le=!i[22]&&!i[13]&&i[15]&&_n(i),w=i[22]&&bn(i),L=!i[22]&&i[13]&&En(i);return{c(){e=$("div"),t=$("div"),D&&D.c(),r=se(),n=$("div"),l=$("input"),u=se(),d.c(),h=se(),ie&&ie.c(),E=se(),le&&le.c(),_=se(),w&&w.c(),T=se(),L&&L.c(),this.h()},l(y){e=U(y,"DIV",{});var R=C(e);t=U(R,"DIV",{"data-invalid":!0});var F=C(t);D&&D.l(F),r=oe(F),n=U(F,"DIV",{});var ee=C(n);l=U(ee,"INPUT",{type:!0,pattern:!0,"aria-describedby":!0,"data-invalid":!0,"aria-invalid":!0,"aria-label":!0,id:!0,name:!0,max:!0,min:!0,step:!0}),u=oe(ee),d.l(ee),h=oe(ee),ie&&ie.l(ee),ee.forEach(p),E=oe(F),le&&le.l(F),_=oe(F),w&&w.l(F),T=oe(F),L&&L.l(F),F.forEach(p),R.forEach(p),this.h()},h(){wt(l,N),S(n,"bx--number__input-wrapper",!0),S(n,"bx--number__input-wrapper--warning",!i[11]&&i[13]),I(t,"data-invalid",k=i[22]||void 0),S(t,"bx--number",!0),S(t,"bx--number--helpertext",!0),S(t,"bx--number--readonly",i[7]),S(t,"bx--number--light",i[6]),S(t,"bx--number--nolabel",i[17]),S(t,"bx--number--nosteppers",i[9]),S(t,"bx--number--sm",i[2]==="sm"),S(t,"bx--number--xl",i[2]==="xl"),S(e,"bx--form-item",!0)},m(y,R){v(y,e,R),q(e,t),D&&D.m(t,null),q(t,r),q(t,n),q(n,l),l.autofocus&&l.focus(),i[44](l),q(n,u),Q[c].m(n,null),q(n,h),ie&&ie.m(n,null),q(t,E),le&&le.m(t,null),q(t,_),w&&w.m(t,null),q(t,T),L&&L.m(t,null),b=!0,O||(P=[be(l,"change",i[27]),be(l,"input",i[26]),be(l,"keydown",i[39]),be(l,"keyup",i[40]),be(l,"focus",i[41]),be(l,"blur",i[42]),be(l,"paste",i[43]),be(e,"click",i[35]),be(e,"mouseover",i[36]),be(e,"mouseenter",i[37]),be(e,"mouseleave",i[38])],O=!0)},p(y,R){y[28].label||y[16]?D?(D.p(y,R),R[0]&268500992&&m(D,1)):(D=hn(y),D.c(),m(D,1),D.m(t,r)):D&&(Y(),g(D,1,1,()=>{D=null}),G()),wt(l,N=Ue(j,[{type:"number"},{pattern:"[0-9]*"},(!b||R[0]&2097152)&&{"aria-describedby":y[21]},(!b||R[0]&4194304&&s!==(s=y[22]||void 0))&&{"data-invalid":s},(!b||R[0]&4194304&&o!==(o=y[22]||void 0))&&{"aria-invalid":o},(!b||R[0]&1114112&&f!==(f=y[16]?void 0:y[20]))&&{"aria-label":f},(!b||R[0]&256)&&{disabled:y[8]},(!b||R[0]&262144)&&{id:y[18]},(!b||R[0]&524288)&&{name:y[19]},(!b||R[0]&16)&&{max:y[4]},(!b||R[0]&32)&&{min:y[5]},(!b||R[0]&8)&&{step:y[3]},(!b||R[0]&1&&a!==(a=y[0]??"")&&l.value!==a)&&{value:a},(!b||R[0]&128)&&{readOnly:y[7]},R[0]&536870912&&y[29]]));let F=c;c=ne(y),c===F?Q[c].p(y,R):(Y(),g(Q[F],1,1,()=>{Q[F]=null}),G(),d=Q[c],d?d.p(y,R):(d=Q[c]=fe[c](y),d.c()),m(d,1),d.m(n,h)),y[9]?ie&&(Y(),g(ie,1,1,()=>{ie=null}),G()):ie?(ie.p(y,R),R[0]&512&&m(ie,1)):(ie=gn(y),ie.c(),m(ie,1),ie.m(n,null)),(!b||R[0]&10240)&&S(n,"bx--number__input-wrapper--warning",!y[11]&&y[13]),!y[22]&&!y[13]&&y[15]?le?le.p(y,R):(le=_n(y),le.c(),le.m(t,_)):le&&(le.d(1),le=null),y[22]?w?w.p(y,R):(w=bn(y),w.c(),w.m(t,T)):w&&(w.d(1),w=null),!y[22]&&y[13]?L?L.p(y,R):(L=En(y),L.c(),L.m(t,null)):L&&(L.d(1),L=null),(!b||R[0]&4194304&&k!==(k=y[22]||void 0))&&I(t,"data-invalid",k),(!b||R[0]&128)&&S(t,"bx--number--readonly",y[7]),(!b||R[0]&64)&&S(t,"bx--number--light",y[6]),(!b||R[0]&131072)&&S(t,"bx--number--nolabel",y[17]),(!b||R[0]&512)&&S(t,"bx--number--nosteppers",y[9]),(!b||R[0]&4)&&S(t,"bx--number--sm",y[2]==="sm"),(!b||R[0]&4)&&S(t,"bx--number--xl",y[2]==="xl")},i(y){b||(m(D),m(d),m(ie),b=!0)},o(y){g(D),g(d),g(ie),b=!1},d(y){y&&p(e),D&&D.d(),i[44](null),Q[c].d(),ie&&ie.d(),le&&le.d(),w&&w.d(),L&&L.d(),O=!1,Qt(P)}}}function yn(i){return i!=""?Number(i):null}function zi(i,e,t){let r,n,l,s,o;const f=["size","value","step","max","min","light","readonly","allowEmpty","disabled","hideSteppers","iconDescription","invalid","invalidText","warn","warnText","helperText","label","hideLabel","translateWithId","translationIds","id","name","ref"];let a=ze(e,f),{$$slots:u={},$$scope:c}=e;const d=Rr(u);let{size:h=void 0}=e,{value:E=null}=e,{step:_=1}=e,{max:T=void 0}=e,{min:k=void 0}=e,{light:b=!1}=e,{readonly:O=!1}=e,{allowEmpty:P=!1}=e,{disabled:D=!1}=e,{hideSteppers:j=!1}=e,{iconDescription:N=""}=e,{invalid:fe=!1}=e,{invalidText:Q=""}=e,{warn:ne=!1}=e,{warnText:ie=""}=e,{helperText:le=""}=e,{label:w=""}=e,{hideLabel:L=!1}=e,{translateWithId:y=z=>Se[z]}=e;const R={increment:"increment",decrement:"decrement"};let{id:F="ccs-"+Math.random().toString(36)}=e,{name:ee=void 0}=e,{ref:re=null}=e;const Se={[R.increment]:"Increment number",[R.decrement]:"Decrement number"},Ae=Yt();function A(z){z?re.stepUp():re.stepDown(),t(0,E=+re.value),Ae("input",E),Ae("change",E)}function X({target:z}){t(0,E=yn(z.value)),Ae("input",E)}function Ie({target:z}){Ae("change",yn(z.value))}function Ne(z){Re.call(this,i,z)}function Nt(z){Re.call(this,i,z)}function Lt(z){Re.call(this,i,z)}function zt(z){Re.call(this,i,z)}function Ct(z){Re.call(this,i,z)}function Dt(z){Re.call(this,i,z)}function M(z){Re.call(this,i,z)}function li(z){Re.call(this,i,z)}function si(z){Re.call(this,i,z)}function oi(z){$e[z?"unshift":"push"](()=>{re=z,t(1,re)})}const fi=()=>{A(!1)},ai=()=>{A(!0)};return i.$$set=z=>{t(49,e=ye(ye({},e),Ve(z))),t(29,a=ze(e,f)),"size"in z&&t(2,h=z.size),"value"in z&&t(0,E=z.value),"step"in z&&t(3,_=z.step),"max"in z&&t(4,T=z.max),"min"in z&&t(5,k=z.min),"light"in z&&t(6,b=z.light),"readonly"in z&&t(7,O=z.readonly),"allowEmpty"in z&&t(30,P=z.allowEmpty),"disabled"in z&&t(8,D=z.disabled),"hideSteppers"in z&&t(9,j=z.hideSteppers),"iconDescription"in z&&t(10,N=z.iconDescription),"invalid"in z&&t(11,fe=z.invalid),"invalidText"in z&&t(12,Q=z.invalidText),"warn"in z&&t(13,ne=z.warn),"warnText"in z&&t(14,ie=z.warnText),"helperText"in z&&t(15,le=z.helperText),"label"in z&&t(16,w=z.label),"hideLabel"in z&&t(17,L=z.hideLabel),"translateWithId"in z&&t(31,y=z.translateWithId),"id"in z&&t(18,F=z.id),"name"in z&&t(19,ee=z.name),"ref"in z&&t(1,re=z.ref),"$$scope"in z&&t(33,c=z.$$scope)},i.$$.update=()=>{i.$$.dirty[1]&1&&t(24,r=y("increment")),i.$$.dirty[1]&1&&t(23,n=y("decrement")),i.$$.dirty[0]&1073744049&&t(22,l=fe&&!O||!P&&E==null||E>T||typeof E=="number"&&E<k),i.$$.dirty[0]&262144&&t(21,s=`error-${F}`),t(20,o=e["aria-label"]||"Numeric input field with increment and decrement buttons")},e=Ve(e),[E,re,h,_,T,k,b,O,D,j,N,fe,Q,ne,ie,le,w,L,F,ee,o,s,l,n,r,A,X,Ie,d,a,P,y,R,c,u,Ne,Nt,Lt,zt,Ct,Dt,M,li,si,oi,fi,ai]}class Ci extends ue{constructor(e){super(),ce(this,e,zi,Li,de,{size:2,value:0,step:3,max:4,min:5,light:6,readonly:7,allowEmpty:30,disabled:8,hideSteppers:9,iconDescription:10,invalid:11,invalidText:12,warn:13,warnText:14,helperText:15,label:16,hideLabel:17,translateWithId:31,translationIds:32,id:18,name:19,ref:1},null,[-1,-1])}get translationIds(){return this.$$.ctx[32]}}const Di=Ci,Mi=i=>({}),kn=i=>({}),Vi=i=>({}),vn=i=>({});function wn(i){let e,t,r,n=i[9]&&On(i),l=!i[22]&&i[6]&&Sn(i);return{c(){e=$("div"),n&&n.c(),t=se(),l&&l.c(),this.h()},l(s){e=U(s,"DIV",{});var o=C(e);n&&n.l(o),t=oe(o),l&&l.l(o),o.forEach(p),this.h()},h(){S(e,"bx--text-input__label-helper-wrapper",!0)},m(s,o){v(s,e,o),n&&n.m(e,null),q(e,t),l&&l.m(e,null),r=!0},p(s,o){s[9]?n?(n.p(s,o),o[0]&512&&m(n,1)):(n=On(s),n.c(),m(n,1),n.m(e,t)):n&&(Y(),g(n,1,1,()=>{n=null}),G()),!s[22]&&s[6]?l?l.p(s,o):(l=Sn(s),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i(s){r||(m(n),r=!0)},o(s){g(n),r=!1},d(s){s&&p(e),n&&n.d(),l&&l.d()}}}function On(i){let e,t;const r=i[28].labelText,n=ke(r,i,i[27],vn),l=n||$i(i);return{c(){e=$("label"),l&&l.c(),this.h()},l(s){e=U(s,"LABEL",{for:!0});var o=C(e);l&&l.l(o),o.forEach(p),this.h()},h(){I(e,"for",i[7]),S(e,"bx--label",!0),S(e,"bx--visually-hidden",i[10]),S(e,"bx--label--disabled",i[5]),S(e,"bx--label--inline",i[16]),S(e,"bx--label--inline--sm",i[2]==="sm"),S(e,"bx--label--inline--xl",i[2]==="xl")},m(s,o){v(s,e,o),l&&l.m(e,null),t=!0},p(s,o){n?n.p&&(!t||o[0]&134217728)&&ve(n,r,s,s[27],t?Oe(r,s[27],o,Vi):we(s[27]),vn):l&&l.p&&(!t||o[0]&512)&&l.p(s,t?o:[-1,-1]),(!t||o[0]&128)&&I(e,"for",s[7]),(!t||o[0]&1024)&&S(e,"bx--visually-hidden",s[10]),(!t||o[0]&32)&&S(e,"bx--label--disabled",s[5]),(!t||o[0]&65536)&&S(e,"bx--label--inline",s[16]),(!t||o[0]&4)&&S(e,"bx--label--inline--sm",s[2]==="sm"),(!t||o[0]&4)&&S(e,"bx--label--inline--xl",s[2]==="xl")},i(s){t||(m(l,s),t=!0)},o(s){g(l,s),t=!1},d(s){s&&p(e),l&&l.d(s)}}}function $i(i){let e;return{c(){e=me(i[9])},l(t){e=ge(t,i[9])},m(t,r){v(t,e,r)},p(t,r){r[0]&512&&Pe(e,t[9])},d(t){t&&p(e)}}}function Sn(i){let e,t;return{c(){e=$("div"),t=me(i[6]),this.h()},l(r){e=U(r,"DIV",{});var n=C(e);t=ge(n,i[6]),n.forEach(p),this.h()},h(){S(e,"bx--form__helper-text",!0),S(e,"bx--form__helper-text--disabled",i[5]),S(e,"bx--form__helper-text--inline",i[16])},m(r,n){v(r,e,n),q(e,t)},p(r,n){n[0]&64&&Pe(t,r[6]),n[0]&32&&S(e,"bx--form__helper-text--disabled",r[5]),n[0]&65536&&S(e,"bx--form__helper-text--inline",r[16])},d(r){r&&p(e)}}}function Pn(i){let e,t;const r=i[28].labelText,n=ke(r,i,i[27],kn),l=n||Ui(i);return{c(){e=$("label"),l&&l.c(),this.h()},l(s){e=U(s,"LABEL",{for:!0});var o=C(e);l&&l.l(o),o.forEach(p),this.h()},h(){I(e,"for",i[7]),S(e,"bx--label",!0),S(e,"bx--visually-hidden",i[10]),S(e,"bx--label--disabled",i[5]),S(e,"bx--label--inline",i[16]),S(e,"bx--label--inline-sm",i[16]&&i[2]==="sm"),S(e,"bx--label--inline-xl",i[16]&&i[2]==="xl")},m(s,o){v(s,e,o),l&&l.m(e,null),t=!0},p(s,o){n?n.p&&(!t||o[0]&134217728)&&ve(n,r,s,s[27],t?Oe(r,s[27],o,Mi):we(s[27]),kn):l&&l.p&&(!t||o[0]&512)&&l.p(s,t?o:[-1,-1]),(!t||o[0]&128)&&I(e,"for",s[7]),(!t||o[0]&1024)&&S(e,"bx--visually-hidden",s[10]),(!t||o[0]&32)&&S(e,"bx--label--disabled",s[5]),(!t||o[0]&65536)&&S(e,"bx--label--inline",s[16]),(!t||o[0]&65540)&&S(e,"bx--label--inline-sm",s[16]&&s[2]==="sm"),(!t||o[0]&65540)&&S(e,"bx--label--inline-xl",s[16]&&s[2]==="xl")},i(s){t||(m(l,s),t=!0)},o(s){g(l,s),t=!1},d(s){s&&p(e),l&&l.d(s)}}}function Ui(i){let e;return{c(){e=me(i[9])},l(t){e=ge(t,i[9])},m(t,r){v(t,e,r)},p(t,r){r[0]&512&&Pe(e,t[9])},d(t){t&&p(e)}}}function xi(i){let e,t,r,n=i[11]&&An(),l=!i[11]&&i[13]&&Rn();return{c(){n&&n.c(),e=se(),l&&l.c(),t=V()},l(s){n&&n.l(s),e=oe(s),l&&l.l(s),t=V()},m(s,o){n&&n.m(s,o),v(s,e,o),l&&l.m(s,o),v(s,t,o),r=!0},p(s,o){s[11]?n?o[0]&2048&&m(n,1):(n=An(),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(Y(),g(n,1,1,()=>{n=null}),G()),!s[11]&&s[13]?l?o[0]&10240&&m(l,1):(l=Rn(),l.c(),m(l,1),l.m(t.parentNode,t)):l&&(Y(),g(l,1,1,()=>{l=null}),G())},i(s){r||(m(n),m(l),r=!0)},o(s){g(n),g(l),r=!1},d(s){n&&n.d(s),s&&p(e),l&&l.d(s),s&&p(t)}}}function qi(i){let e,t;return e=new zr({props:{class:"bx--text-input__readonly-icon"}}),{c(){Z(e.$$.fragment)},l(r){te(e.$$.fragment,r)},m(r,n){H(e,r,n),t=!0},p:ae,i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){J(e,r)}}}function An(i){let e,t;return e=new jr({props:{class:"bx--text-input__invalid-icon"}}),{c(){Z(e.$$.fragment)},l(r){te(e.$$.fragment,r)},m(r,n){H(e,r,n),t=!0},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){J(e,r)}}}function Rn(i){let e,t;return e=new Nr({props:{class:`bx--text-input__invalid-icon
bx--text-input__invalid-icon--warning`}}),{c(){Z(e.$$.fragment)},l(r){te(e.$$.fragment,r)},m(r,n){H(e,r,n),t=!0},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){J(e,r)}}}function Tn(i){let e;return{c(){e=$("hr"),this.h()},l(t){e=U(t,"HR",{}),this.h()},h(){S(e,"bx--text-input__divider",!0)},m(t,r){v(t,e,r)},d(t){t&&p(e)}}}function In(i){let e,t;return{c(){e=$("div"),t=me(i[12]),this.h()},l(r){e=U(r,"DIV",{id:!0});var n=C(e);t=ge(n,i[12]),n.forEach(p),this.h()},h(){I(e,"id",i[19]),S(e,"bx--form-requirement",!0)},m(r,n){v(r,e,n),q(e,t)},p(r,n){n[0]&4096&&Pe(t,r[12]),n[0]&524288&&I(e,"id",r[19])},d(r){r&&p(e)}}}function jn(i){let e,t;return{c(){e=$("div"),t=me(i[14]),this.h()},l(r){e=U(r,"DIV",{id:!0});var n=C(e);t=ge(n,i[14]),n.forEach(p),this.h()},h(){I(e,"id",i[18]),S(e,"bx--form-requirement",!0)},m(r,n){v(r,e,n),q(e,t)},p(r,n){n[0]&16384&&Pe(t,r[14]),n[0]&262144&&I(e,"id",r[18])},d(r){r&&p(e)}}}function Nn(i){let e,t;return{c(){e=$("div"),t=me(i[6]),this.h()},l(r){e=U(r,"DIV",{id:!0});var n=C(e);t=ge(n,i[6]),n.forEach(p),this.h()},h(){I(e,"id",i[20]),S(e,"bx--form__helper-text",!0),S(e,"bx--form__helper-text--disabled",i[5]),S(e,"bx--form__helper-text--inline",i[16])},m(r,n){v(r,e,n),q(e,t)},p(r,n){n[0]&64&&Pe(t,r[6]),n[0]&1048576&&I(e,"id",r[20]),n[0]&32&&S(e,"bx--form__helper-text--disabled",r[5]),n[0]&65536&&S(e,"bx--form__helper-text--inline",r[16])},d(r){r&&p(e)}}}function Ln(i){let e,t;return{c(){e=$("div"),t=me(i[12]),this.h()},l(r){e=U(r,"DIV",{id:!0});var n=C(e);t=ge(n,i[12]),n.forEach(p),this.h()},h(){I(e,"id",i[19]),S(e,"bx--form-requirement",!0)},m(r,n){v(r,e,n),q(e,t)},p(r,n){n[0]&4096&&Pe(t,r[12]),n[0]&524288&&I(e,"id",r[19])},d(r){r&&p(e)}}}function zn(i){let e,t;return{c(){e=$("div"),t=me(i[14]),this.h()},l(r){e=U(r,"DIV",{id:!0});var n=C(e);t=ge(n,i[14]),n.forEach(p),this.h()},h(){I(e,"id",i[18]),S(e,"bx--form-requirement",!0)},m(r,n){v(r,e,n),q(e,t)},p(r,n){n[0]&16384&&Pe(t,r[14]),n[0]&262144&&I(e,"id",r[18])},d(r){r&&p(e)}}}function Fi(i){let e,t,r,n,l,s,o,f,a,u,c,d,h,E,_,T,k,b,O,P,D,j,N,fe,Q=i[16]&&wn(i),ne=!i[16]&&(i[9]||i[26].labelText)&&Pn(i);const ie=[qi,xi],le=[];function w(A,X){return A[17]?0:1}s=w(i),o=le[s]=ie[s](i);let L=[{"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]],y={};for(let A=0;A<L.length;A+=1)y=ye(y,L[A]);let R=i[22]&&Tn(),F=i[22]&&!i[16]&&i[11]&&In(i),ee=i[22]&&!i[16]&&i[13]&&jn(i),re=!i[11]&&!i[13]&&!i[22]&&!i[16]&&i[6]&&Nn(i),Se=!i[22]&&i[11]&&Ln(i),Ae=!i[22]&&!i[11]&&i[13]&&zn(i);return{c(){e=$("div"),Q&&Q.c(),t=se(),ne&&ne.c(),r=se(),n=$("div"),l=$("div"),o.c(),f=se(),a=$("input"),E=se(),R&&R.c(),_=se(),F&&F.c(),T=se(),ee&&ee.c(),O=se(),re&&re.c(),P=se(),Se&&Se.c(),D=se(),Ae&&Ae.c(),this.h()},l(A){e=U(A,"DIV",{});var X=C(e);Q&&Q.l(X),t=oe(X),ne&&ne.l(X),r=oe(X),n=U(X,"DIV",{});var Ie=C(n);l=U(Ie,"DIV",{"data-invalid":!0,"data-warn":!0});var Ne=C(l);o.l(Ne),f=oe(Ne),a=U(Ne,"INPUT",{"data-invalid":!0,"aria-invalid":!0,"data-warn":!0,"aria-describedby":!0,id:!0,name:!0,placeholder:!0}),E=oe(Ne),R&&R.l(Ne),_=oe(Ne),F&&F.l(Ne),T=oe(Ne),ee&&ee.l(Ne),Ne.forEach(p),O=oe(Ie),re&&re.l(Ie),P=oe(Ie),Se&&Se.l(Ie),D=oe(Ie),Ae&&Ae.l(Ie),Ie.forEach(p),X.forEach(p),this.h()},h(){wt(a,y),S(a,"bx--text-input",!0),S(a,"bx--text-input--light",i[4]),S(a,"bx--text-input--invalid",i[21]),S(a,"bx--text-input--warning",i[13]),S(a,"bx--text-input--sm",i[2]==="sm"),S(a,"bx--text-input--xl",i[2]==="xl"),I(l,"data-invalid",k=i[21]||void 0),I(l,"data-warn",b=i[13]||void 0),S(l,"bx--text-input__field-wrapper",!0),S(l,"bx--text-input__field-wrapper--warning",!i[11]&&i[13]),S(n,"bx--text-input__field-outer-wrapper",!0),S(n,"bx--text-input__field-outer-wrapper--inline",i[16]),S(e,"bx--form-item",!0),S(e,"bx--text-input-wrapper",!0),S(e,"bx--text-input-wrapper--inline",i[16]),S(e,"bx--text-input-wrapper--light",i[4]),S(e,"bx--text-input-wrapper--readonly",i[17])},m(A,X){v(A,e,X),Q&&Q.m(e,null),q(e,t),ne&&ne.m(e,null),q(e,r),q(e,n),q(n,l),le[s].m(l,null),q(l,f),q(l,a),a.autofocus&&a.focus(),i[38](a),on(a,i[0]),q(l,E),R&&R.m(l,null),q(l,_),F&&F.m(l,null),q(l,T),ee&&ee.m(l,null),q(n,O),re&&re.m(n,null),q(n,P),Se&&Se.m(n,null),q(n,D),Ae&&Ae.m(n,null),j=!0,N||(fe=[be(a,"input",i[39]),be(a,"change",i[24]),be(a,"input",i[23]),be(a,"keydown",i[33]),be(a,"keyup",i[34]),be(a,"focus",i[35]),be(a,"blur",i[36]),be(a,"paste",i[37]),be(e,"click",i[29]),be(e,"mouseover",i[30]),be(e,"mouseenter",i[31]),be(e,"mouseleave",i[32])],N=!0)},p(A,X){A[16]?Q?(Q.p(A,X),X[0]&65536&&m(Q,1)):(Q=wn(A),Q.c(),m(Q,1),Q.m(e,t)):Q&&(Y(),g(Q,1,1,()=>{Q=null}),G()),!A[16]&&(A[9]||A[26].labelText)?ne?(ne.p(A,X),X[0]&67174912&&m(ne,1)):(ne=Pn(A),ne.c(),m(ne,1),ne.m(e,r)):ne&&(Y(),g(ne,1,1,()=>{ne=null}),G());let Ie=s;s=w(A),s===Ie?le[s].p(A,X):(Y(),g(le[Ie],1,1,()=>{le[Ie]=null}),G(),o=le[s],o?o.p(A,X):(o=le[s]=ie[s](A),o.c()),m(o,1),o.m(l,f)),wt(a,y=Ue(L,[(!j||X[0]&2097152&&u!==(u=A[21]||void 0))&&{"data-invalid":u},(!j||X[0]&2097152&&c!==(c=A[21]||void 0))&&{"aria-invalid":c},(!j||X[0]&8192&&d!==(d=A[13]||void 0))&&{"data-warn":d},(!j||X[0]&3940416&&h!==(h=A[21]?A[19]:A[13]?A[18]:A[6]?A[20]:void 0))&&{"aria-describedby":h},(!j||X[0]&32)&&{disabled:A[5]},(!j||X[0]&128)&&{id:A[7]},(!j||X[0]&256)&&{name:A[8]},(!j||X[0]&8)&&{placeholder:A[3]},(!j||X[0]&32768)&&{required:A[15]},(!j||X[0]&131072)&&{readOnly:A[17]},X[0]&33554432&&A[25]])),X[0]&1&&a.value!==A[0]&&on(a,A[0]),S(a,"bx--text-input",!0),S(a,"bx--text-input--light",A[4]),S(a,"bx--text-input--invalid",A[21]),S(a,"bx--text-input--warning",A[13]),S(a,"bx--text-input--sm",A[2]==="sm"),S(a,"bx--text-input--xl",A[2]==="xl"),A[22]?R||(R=Tn(),R.c(),R.m(l,_)):R&&(R.d(1),R=null),A[22]&&!A[16]&&A[11]?F?F.p(A,X):(F=In(A),F.c(),F.m(l,T)):F&&(F.d(1),F=null),A[22]&&!A[16]&&A[13]?ee?ee.p(A,X):(ee=jn(A),ee.c(),ee.m(l,null)):ee&&(ee.d(1),ee=null),(!j||X[0]&2097152&&k!==(k=A[21]||void 0))&&I(l,"data-invalid",k),(!j||X[0]&8192&&b!==(b=A[13]||void 0))&&I(l,"data-warn",b),(!j||X[0]&10240)&&S(l,"bx--text-input__field-wrapper--warning",!A[11]&&A[13]),!A[11]&&!A[13]&&!A[22]&&!A[16]&&A[6]?re?re.p(A,X):(re=Nn(A),re.c(),re.m(n,P)):re&&(re.d(1),re=null),!A[22]&&A[11]?Se?Se.p(A,X):(Se=Ln(A),Se.c(),Se.m(n,D)):Se&&(Se.d(1),Se=null),!A[22]&&!A[11]&&A[13]?Ae?Ae.p(A,X):(Ae=zn(A),Ae.c(),Ae.m(n,null)):Ae&&(Ae.d(1),Ae=null),(!j||X[0]&65536)&&S(n,"bx--text-input__field-outer-wrapper--inline",A[16]),(!j||X[0]&65536)&&S(e,"bx--text-input-wrapper--inline",A[16]),(!j||X[0]&16)&&S(e,"bx--text-input-wrapper--light",A[4]),(!j||X[0]&131072)&&S(e,"bx--text-input-wrapper--readonly",A[17])},i(A){j||(m(Q),m(ne),m(o),j=!0)},o(A){g(Q),g(ne),g(o),j=!1},d(A){A&&p(e),Q&&Q.d(),ne&&ne.d(),le[s].d(),i[38](null),R&&R.d(),F&&F.d(),ee&&ee.d(),re&&re.d(),Se&&Se.d(),Ae&&Ae.d(),N=!1,Qt(fe)}}}function Bi(i,e,t){let r,n,l,s,o;const f=["size","value","placeholder","light","disabled","helperText","id","name","labelText","hideLabel","invalid","invalidText","warn","warnText","ref","required","inline","readonly"];let a=ze(e,f),{$$slots:u={},$$scope:c}=e;const d=Rr(u);let{size:h=void 0}=e,{value:E=""}=e,{placeholder:_=""}=e,{light:T=!1}=e,{disabled:k=!1}=e,{helperText:b=""}=e,{id:O="ccs-"+Math.random().toString(36)}=e,{name:P=void 0}=e,{labelText:D=""}=e,{hideLabel:j=!1}=e,{invalid:N=!1}=e,{invalidText:fe=""}=e,{warn:Q=!1}=e,{warnText:ne=""}=e,{ref:ie=null}=e,{required:le=!1}=e,{inline:w=!1}=e,{readonly:L=!1}=e;const y=Tr("Form"),R=Yt();function F(M){return a.type!=="number"?M:M!=""?Number(M):null}const ee=M=>{t(0,E=F(M.target.value)),R("input",E)},re=M=>{R("change",F(M.target.value))};function Se(M){Re.call(this,i,M)}function Ae(M){Re.call(this,i,M)}function A(M){Re.call(this,i,M)}function X(M){Re.call(this,i,M)}function Ie(M){Re.call(this,i,M)}function Ne(M){Re.call(this,i,M)}function Nt(M){Re.call(this,i,M)}function Lt(M){Re.call(this,i,M)}function zt(M){Re.call(this,i,M)}function Ct(M){$e[M?"unshift":"push"](()=>{ie=M,t(1,ie)})}function Dt(){E=this.value,t(0,E)}return i.$$set=M=>{e=ye(ye({},e),Ve(M)),t(25,a=ze(e,f)),"size"in M&&t(2,h=M.size),"value"in M&&t(0,E=M.value),"placeholder"in M&&t(3,_=M.placeholder),"light"in M&&t(4,T=M.light),"disabled"in M&&t(5,k=M.disabled),"helperText"in M&&t(6,b=M.helperText),"id"in M&&t(7,O=M.id),"name"in M&&t(8,P=M.name),"labelText"in M&&t(9,D=M.labelText),"hideLabel"in M&&t(10,j=M.hideLabel),"invalid"in M&&t(11,N=M.invalid),"invalidText"in M&&t(12,fe=M.invalidText),"warn"in M&&t(13,Q=M.warn),"warnText"in M&&t(14,ne=M.warnText),"ref"in M&&t(1,ie=M.ref),"required"in M&&t(15,le=M.required),"inline"in M&&t(16,w=M.inline),"readonly"in M&&t(17,L=M.readonly),"$$scope"in M&&t(27,c=M.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&133120&&t(21,n=N&&!L),i.$$.dirty[0]&128&&t(20,l=`helper-${O}`),i.$$.dirty[0]&128&&t(19,s=`error-${O}`),i.$$.dirty[0]&128&&t(18,o=`warn-${O}`)},t(22,r=!!y&&y.isFluid),[E,ie,h,_,T,k,b,O,P,D,j,N,fe,Q,ne,le,w,L,o,s,l,n,r,ee,re,a,d,c,u,Se,Ae,A,X,Ie,Ne,Nt,Lt,zt,Ct,Dt]}class Zi extends ue{constructor(e){super(),ce(this,e,Bi,Fi,de,{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 Hi=Zi;function Cn(i){let e,t;return{c(){e=De("title"),t=me(i[1])},l(r){e=Me(r,"title",{});var n=C(e);t=ge(n,i[1]),n.forEach(p)},m(r,n){v(r,e,n),q(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&p(e)}}}function Ji(i){let e,t,r=i[1]&&Cn(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<n.length;s+=1)l=ye(l,n[s]);return{c(){e=De("svg"),r&&r.c(),t=De("path"),this.h()},l(s){e=Me(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=C(e);r&&r.l(o),t=Me(o,"path",{d:!0}),C(t).forEach(p),o.forEach(p),this.h()},h(){I(t,"d","M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"),Ye(e,l)},m(s,o){v(s,e,o),r&&r.m(e,null),q(e,t)},p(s,[o]){s[1]?r?r.p(s,o):(r=Cn(s),r.c(),r.m(e,t)):r&&(r.d(1),r=null),Ye(e,l=Ue(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:ae,o:ae,d(s){s&&p(e),r&&r.d()}}}function Wi(i,e,t){let r,n;const l=["size","title"];let s=ze(e,l),{size:o=16}=e,{title:f=void 0}=e;return i.$$set=a=>{t(5,e=ye(ye({},e),Ve(a))),t(3,s=ze(e,l)),"size"in a&&t(0,o=a.size),"title"in a&&t(1,f=a.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||f),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ve(e),[o,f,n,s,r]}class Ki extends ue{constructor(e){super(),ce(this,e,Wi,Ji,de,{size:0,title:1})}}var Qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function It(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Aa(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 Yi(){const i=console.warn;console.warn=e=>{e.includes("unknown prop")||e.includes("unexpected slot")||i(e)},Ir(()=>{console.warn=i})}function Dn(i,e,t){const r=i.slice();return r[18]=e[t],r}function Mn(i,e,t){const r=i.slice();return r[18]=e[t],r}function Vn(i,e,t){const r=i.slice();return r[10]=e[t],r}function $n(i,e,t){const r=i.slice();return r[13]=e[t],r[15]=t,r}function Un(i,e,t){const r=i.slice();return r[16]=e[t],r[15]=t,r}function xn(i,e,t){const r=i.slice();return r[7]=e[t],r}function Gi(i){let e,t,r,n;const l=[nl,tl,el],s=[];function o(f,a){return f[0]==="table"?0:f[0]==="list"?1:2}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=V()},l(f){t.l(f),r=V()},m(f,a){s[e].m(f,a),v(f,r,a),n=!0},p(f,a){let u=e;e=o(f),e===u?s[e].p(f,a):(Y(),g(s[u],1,1,()=>{s[u]=null}),G(),t=s[e],t?t.p(f,a):(t=s[e]=l[e](f),t.c()),m(t,1),t.m(r.parentNode,r))},i(f){n||(m(t),n=!0)},o(f){g(t),n=!1},d(f){s[e].d(f),f&&p(r)}}}function Xi(i){let e,t,r=i[1],n=[];for(let s=0;s<r.length;s+=1)n[s]=Jn(xn(i,r,s));const l=s=>g(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=V()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=V()},m(s,o){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(s,o);v(s,e,o),t=!0},p(s,o){if(o&34){r=s[1];let f;for(f=0;f<r.length;f+=1){const a=xn(s,r,f);n[f]?(n[f].p(a,o),m(n[f],1)):(n[f]=Jn(a),n[f].c(),m(n[f],1),n[f].m(e.parentNode,e))}for(Y(),f=r.length;f<n.length;f+=1)l(f);G()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)m(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)g(n[o]);t=!1},d(s){He(n,s),s&&p(e)}}}function el(i){let e,t,r;const n=[i[6]];var l=i[5][i[0]];function s(o){let f={$$slots:{default:[ll]},$$scope:{ctx:o}};for(let a=0;a<n.length;a+=1)f=ye(f,n[a]);return{props:f}}return l&&(e=Ee(l,s(i))),{c(){e&&Z(e.$$.fragment),t=V()},l(o){e&&te(e.$$.fragment,o),t=V()},m(o,f){e&&H(e,o,f),v(o,t,f),r=!0},p(o,f){const a=f&64?Ue(n,[lt(o[6])]):{};if(f&8388706&&(a.$$scope={dirty:f,ctx:o}),f&33&&l!==(l=o[5][o[0]])){if(e){Y();const u=e;g(u.$$.fragment,1,0,()=>{J(u,1)}),G()}l?(e=Ee(l,s(o)),Z(e.$$.fragment),m(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else l&&e.$set(a)},i(o){r||(e&&m(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&p(t),e&&J(e,o)}}}function tl(i){let e,t,r,n;const l=[ol,sl],s=[];function o(f,a){return f[4]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=V()},l(f){t.l(f),r=V()},m(f,a){s[e].m(f,a),v(f,r,a),n=!0},p(f,a){let u=e;e=o(f),e===u?s[e].p(f,a):(Y(),g(s[u],1,1,()=>{s[u]=null}),G(),t=s[e],t?t.p(f,a):(t=s[e]=l[e](f),t.c()),m(t,1),t.m(r.parentNode,r))},i(f){n||(m(t),n=!0)},o(f){g(t),n=!1},d(f){s[e].d(f),f&&p(r)}}}function nl(i){let e,t,r;var n=i[5].table;function l(s){return{props:{$$slots:{default:[bl]},$$scope:{ctx:s}}}}return n&&(e=Ee(n,l(i))),{c(){e&&Z(e.$$.fragment),t=V()},l(s){e&&te(e.$$.fragment,s),t=V()},m(s,o){e&&H(e,s,o),v(s,t,o),r=!0},p(s,o){const f={};if(o&8388716&&(f.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].table)){if(e){Y();const a=e;g(a.$$.fragment,1,0,()=>{J(a,1)}),G()}n?(e=Ee(n,l(s)),Z(e.$$.fragment),m(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else n&&e.$set(f)},i(s){r||(e&&m(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&p(t),e&&J(e,s)}}}function rl(i){let e=i[6].raw+"",t;return{c(){t=me(e)},l(r){t=ge(r,e)},m(r,n){v(r,t,n)},p(r,n){n&64&&e!==(e=r[6].raw+"")&&Pe(t,e)},i:ae,o:ae,d(r){r&&p(t)}}}function il(i){let e,t;return e=new et({props:{tokens:i[1],renderers:i[5]}}),{c(){Z(e.$$.fragment)},l(r){te(e.$$.fragment,r)},m(r,n){H(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||(m(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){J(e,r)}}}function ll(i){let e,t,r,n;const l=[il,rl],s=[];function o(f,a){return f[1]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=V()},l(f){t.l(f),r=V()},m(f,a){s[e].m(f,a),v(f,r,a),n=!0},p(f,a){let u=e;e=o(f),e===u?s[e].p(f,a):(Y(),g(s[u],1,1,()=>{s[u]=null}),G(),t=s[e],t?t.p(f,a):(t=s[e]=l[e](f),t.c()),m(t,1),t.m(r.parentNode,r))},i(f){n||(m(t),n=!0)},o(f){g(t),n=!1},d(f){s[e].d(f),f&&p(r)}}}function sl(i){let e,t,r;const n=[{ordered:i[4]},i[6]];var l=i[5].list;function s(o){let f={$$slots:{default:[al]},$$scope:{ctx:o}};for(let a=0;a<n.length;a+=1)f=ye(f,n[a]);return{props:f}}return l&&(e=Ee(l,s(i))),{c(){e&&Z(e.$$.fragment),t=V()},l(o){e&&te(e.$$.fragment,o),t=V()},m(o,f){e&&H(e,o,f),v(o,t,f),r=!0},p(o,f){const a=f&80?Ue(n,[f&16&&{ordered:o[4]},f&64&&lt(o[6])]):{};if(f&8388704&&(a.$$scope={dirty:f,ctx:o}),f&32&&l!==(l=o[5].list)){if(e){Y();const u=e;g(u.$$.fragment,1,0,()=>{J(u,1)}),G()}l?(e=Ee(l,s(o)),Z(e.$$.fragment),m(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else l&&e.$set(a)},i(o){r||(e&&m(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&p(t),e&&J(e,o)}}}function ol(i){let e,t,r;const n=[{ordered:i[4]},i[6]];var l=i[5].list;function s(o){let f={$$slots:{default:[cl]},$$scope:{ctx:o}};for(let a=0;a<n.length;a+=1)f=ye(f,n[a]);return{props:f}}return l&&(e=Ee(l,s(i))),{c(){e&&Z(e.$$.fragment),t=V()},l(o){e&&te(e.$$.fragment,o),t=V()},m(o,f){e&&H(e,o,f),v(o,t,f),r=!0},p(o,f){const a=f&80?Ue(n,[f&16&&{ordered:o[4]},f&64&&lt(o[6])]):{};if(f&8388704&&(a.$$scope={dirty:f,ctx:o}),f&32&&l!==(l=o[5].list)){if(e){Y();const u=e;g(u.$$.fragment,1,0,()=>{J(u,1)}),G()}l?(e=Ee(l,s(o)),Z(e.$$.fragment),m(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else l&&e.$set(a)},i(o){r||(e&&m(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&p(t),e&&J(e,o)}}}function fl(i){let e,t,r;return e=new et({props:{tokens:i[18].tokens,renderers:i[5]}}),{c(){Z(e.$$.fragment),t=se()},l(n){te(e.$$.fragment,n),t=oe(n)},m(n,l){H(e,n,l),v(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||(m(e.$$.fragment,n),r=!0)},o(n){g(e.$$.fragment,n),r=!1},d(n){J(e,n),n&&p(t)}}}function qn(i){let e,t,r;const n=[i[18]];var l=i[5].unorderedlistitem||i[5].listitem;function s(o){let f={$$slots:{default:[fl]},$$scope:{ctx:o}};for(let a=0;a<n.length;a+=1)f=ye(f,n[a]);return{props:f}}return l&&(e=Ee(l,s(i))),{c(){e&&Z(e.$$.fragment),t=V()},l(o){e&&te(e.$$.fragment,o),t=V()},m(o,f){e&&H(e,o,f),v(o,t,f),r=!0},p(o,f){const a=f&64?Ue(n,[lt(o[18])]):{};if(f&8388704&&(a.$$scope={dirty:f,ctx:o}),f&32&&l!==(l=o[5].unorderedlistitem||o[5].listitem)){if(e){Y();const u=e;g(u.$$.fragment,1,0,()=>{J(u,1)}),G()}l?(e=Ee(l,s(o)),Z(e.$$.fragment),m(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else l&&e.$set(a)},i(o){r||(e&&m(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&p(t),e&&J(e,o)}}}function al(i){let e,t,r=i[6].items,n=[];for(let s=0;s<r.length;s+=1)n[s]=qn(Dn(i,r,s));const l=s=>g(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=V()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=V()},m(s,o){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(s,o);v(s,e,o),t=!0},p(s,o){if(o&96){r=s[6].items;let f;for(f=0;f<r.length;f+=1){const a=Dn(s,r,f);n[f]?(n[f].p(a,o),m(n[f],1)):(n[f]=qn(a),n[f].c(),m(n[f],1),n[f].m(e.parentNode,e))}for(Y(),f=r.length;f<n.length;f+=1)l(f);G()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)m(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)g(n[o]);t=!1},d(s){He(n,s),s&&p(e)}}}function ul(i){let e,t,r;return e=new et({props:{tokens:i[18].tokens,renderers:i[5]}}),{c(){Z(e.$$.fragment),t=se()},l(n){te(e.$$.fragment,n),t=oe(n)},m(n,l){H(e,n,l),v(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||(m(e.$$.fragment,n),r=!0)},o(n){g(e.$$.fragment,n),r=!1},d(n){J(e,n),n&&p(t)}}}function Fn(i){let e,t,r;const n=[i[18]];var l=i[5].orderedlistitem||i[5].listitem;function s(o){let f={$$slots:{default:[ul]},$$scope:{ctx:o}};for(let a=0;a<n.length;a+=1)f=ye(f,n[a]);return{props:f}}return l&&(e=Ee(l,s(i))),{c(){e&&Z(e.$$.fragment),t=V()},l(o){e&&te(e.$$.fragment,o),t=V()},m(o,f){e&&H(e,o,f),v(o,t,f),r=!0},p(o,f){const a=f&64?Ue(n,[lt(o[18])]):{};if(f&8388704&&(a.$$scope={dirty:f,ctx:o}),f&32&&l!==(l=o[5].orderedlistitem||o[5].listitem)){if(e){Y();const u=e;g(u.$$.fragment,1,0,()=>{J(u,1)}),G()}l?(e=Ee(l,s(o)),Z(e.$$.fragment),m(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else l&&e.$set(a)},i(o){r||(e&&m(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&p(t),e&&J(e,o)}}}function cl(i){let e,t,r=i[6].items,n=[];for(let s=0;s<r.length;s+=1)n[s]=Fn(Mn(i,r,s));const l=s=>g(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=V()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=V()},m(s,o){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(s,o);v(s,e,o),t=!0},p(s,o){if(o&96){r=s[6].items;let f;for(f=0;f<r.length;f+=1){const a=Mn(s,r,f);n[f]?(n[f].p(a,o),m(n[f],1)):(n[f]=Fn(a),n[f].c(),m(n[f],1),n[f].m(e.parentNode,e))}for(Y(),f=r.length;f<n.length;f+=1)l(f);G()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)m(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)g(n[o]);t=!1},d(s){He(n,s),s&&p(e)}}}function dl(i){let e,t,r;return e=new et({props:{tokens:i[16].tokens,renderers:i[5]}}),{c(){Z(e.$$.fragment),t=se()},l(n){te(e.$$.fragment,n),t=oe(n)},m(n,l){H(e,n,l),v(n,t,l),r=!0},p(n,l){const s={};l&4&&(s.tokens=n[16].tokens),l&32&&(s.renderers=n[5]),e.$set(s)},i(n){r||(m(e.$$.fragment,n),r=!0)},o(n){g(e.$$.fragment,n),r=!1},d(n){J(e,n),n&&p(t)}}}function Bn(i){let e,t,r;var n=i[5].tablecell;function l(s){return{props:{header:!0,align:s[6].align[s[15]]||"center",$$slots:{default:[dl]},$$scope:{ctx:s}}}}return n&&(e=Ee(n,l(i))),{c(){e&&Z(e.$$.fragment),t=V()},l(s){e&&te(e.$$.fragment,s),t=V()},m(s,o){e&&H(e,s,o),v(s,t,o),r=!0},p(s,o){const f={};if(o&64&&(f.align=s[6].align[s[15]]||"center"),o&8388644&&(f.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].tablecell)){if(e){Y();const a=e;g(a.$$.fragment,1,0,()=>{J(a,1)}),G()}n?(e=Ee(n,l(s)),Z(e.$$.fragment),m(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else n&&e.$set(f)},i(s){r||(e&&m(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&p(t),e&&J(e,s)}}}function hl(i){let e,t,r=i[2],n=[];for(let s=0;s<r.length;s+=1)n[s]=Bn(Un(i,r,s));const l=s=>g(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=V()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=V()},m(s,o){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(s,o);v(s,e,o),t=!0},p(s,o){if(o&100){r=s[2];let f;for(f=0;f<r.length;f+=1){const a=Un(s,r,f);n[f]?(n[f].p(a,o),m(n[f],1)):(n[f]=Bn(a),n[f].c(),m(n[f],1),n[f].m(e.parentNode,e))}for(Y(),f=r.length;f<n.length;f+=1)l(f);G()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)m(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)g(n[o]);t=!1},d(s){He(n,s),s&&p(e)}}}function pl(i){let e,t,r;var n=i[5].tablerow;function l(s){return{props:{$$slots:{default:[hl]},$$scope:{ctx:s}}}}return n&&(e=Ee(n,l(i))),{c(){e&&Z(e.$$.fragment),t=V()},l(s){e&&te(e.$$.fragment,s),t=V()},m(s,o){e&&H(e,s,o),v(s,t,o),r=!0},p(s,o){const f={};if(o&8388708&&(f.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].tablerow)){if(e){Y();const a=e;g(a.$$.fragment,1,0,()=>{J(a,1)}),G()}n?(e=Ee(n,l(s)),Z(e.$$.fragment),m(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else n&&e.$set(f)},i(s){r||(e&&m(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&p(t),e&&J(e,s)}}}function ml(i){let e,t;return e=new et({props:{tokens:i[13].tokens,renderers:i[5]}}),{c(){Z(e.$$.fragment)},l(r){te(e.$$.fragment,r)},m(r,n){H(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||(m(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){J(e,r)}}}function Zn(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:[ml]},$$scope:{ctx:s}}}}return n&&(e=Ee(n,l(i))),{c(){e&&Z(e.$$.fragment),t=V()},l(s){e&&te(e.$$.fragment,s),t=V()},m(s,o){e&&H(e,s,o),v(s,t,o),r=!0},p(s,o){const f={};if(o&64&&(f.align=s[6].align[s[15]]||"center"),o&8388648&&(f.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].tablecell)){if(e){Y();const a=e;g(a.$$.fragment,1,0,()=>{J(a,1)}),G()}n?(e=Ee(n,l(s)),Z(e.$$.fragment),m(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else n&&e.$set(f)},i(s){r||(e&&m(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&p(t),e&&J(e,s)}}}function gl(i){let e,t,r=i[10],n=[];for(let s=0;s<r.length;s+=1)n[s]=Zn($n(i,r,s));const l=s=>g(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=se()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=oe(s)},m(s,o){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(s,o);v(s,e,o),t=!0},p(s,o){if(o&104){r=s[10];let f;for(f=0;f<r.length;f+=1){const a=$n(s,r,f);n[f]?(n[f].p(a,o),m(n[f],1)):(n[f]=Zn(a),n[f].c(),m(n[f],1),n[f].m(e.parentNode,e))}for(Y(),f=r.length;f<n.length;f+=1)l(f);G()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)m(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)g(n[o]);t=!1},d(s){He(n,s),s&&p(e)}}}function Hn(i){let e,t,r;var n=i[5].tablerow;function l(s){return{props:{$$slots:{default:[gl]},$$scope:{ctx:s}}}}return n&&(e=Ee(n,l(i))),{c(){e&&Z(e.$$.fragment),t=V()},l(s){e&&te(e.$$.fragment,s),t=V()},m(s,o){e&&H(e,s,o),v(s,t,o),r=!0},p(s,o){const f={};if(o&8388712&&(f.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].tablerow)){if(e){Y();const a=e;g(a.$$.fragment,1,0,()=>{J(a,1)}),G()}n?(e=Ee(n,l(s)),Z(e.$$.fragment),m(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else n&&e.$set(f)},i(s){r||(e&&m(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&p(t),e&&J(e,s)}}}function _l(i){let e,t,r=i[3],n=[];for(let s=0;s<r.length;s+=1)n[s]=Hn(Vn(i,r,s));const l=s=>g(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=V()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=V()},m(s,o){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(s,o);v(s,e,o),t=!0},p(s,o){if(o&104){r=s[3];let f;for(f=0;f<r.length;f+=1){const a=Vn(s,r,f);n[f]?(n[f].p(a,o),m(n[f],1)):(n[f]=Hn(a),n[f].c(),m(n[f],1),n[f].m(e.parentNode,e))}for(Y(),f=r.length;f<n.length;f+=1)l(f);G()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)m(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)g(n[o]);t=!1},d(s){He(n,s),s&&p(e)}}}function bl(i){let e,t,r,n,l;var s=i[5].tablehead;function o(u){return{props:{$$slots:{default:[pl]},$$scope:{ctx:u}}}}s&&(e=Ee(s,o(i)));var f=i[5].tablebody;function a(u){return{props:{$$slots:{default:[_l]},$$scope:{ctx:u}}}}return f&&(r=Ee(f,a(i))),{c(){e&&Z(e.$$.fragment),t=se(),r&&Z(r.$$.fragment),n=V()},l(u){e&&te(e.$$.fragment,u),t=oe(u),r&&te(r.$$.fragment,u),n=V()},m(u,c){e&&H(e,u,c),v(u,t,c),r&&H(r,u,c),v(u,n,c),l=!0},p(u,c){const d={};if(c&8388708&&(d.$$scope={dirty:c,ctx:u}),c&32&&s!==(s=u[5].tablehead)){if(e){Y();const E=e;g(E.$$.fragment,1,0,()=>{J(E,1)}),G()}s?(e=Ee(s,o(u)),Z(e.$$.fragment),m(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else s&&e.$set(d);const h={};if(c&8388712&&(h.$$scope={dirty:c,ctx:u}),c&32&&f!==(f=u[5].tablebody)){if(r){Y();const E=r;g(E.$$.fragment,1,0,()=>{J(E,1)}),G()}f?(r=Ee(f,a(u)),Z(r.$$.fragment),m(r.$$.fragment,1),H(r,n.parentNode,n)):r=null}else f&&r.$set(h)},i(u){l||(e&&m(e.$$.fragment,u),r&&m(r.$$.fragment,u),l=!0)},o(u){e&&g(e.$$.fragment,u),r&&g(r.$$.fragment,u),l=!1},d(u){e&&J(e,u),u&&p(t),u&&p(n),r&&J(r,u)}}}function Jn(i){let e,t;const r=[i[7],{renderers:i[5]}];let n={};for(let l=0;l<r.length;l+=1)n=ye(n,r[l]);return e=new et({props:n}),{c(){Z(e.$$.fragment)},l(l){te(e.$$.fragment,l)},m(l,s){H(e,l,s),t=!0},p(l,s){const o=s&34?Ue(r,[s&2&&lt(l[7]),s&32&&{renderers:l[5]}]):{};e.$set(o)},i(l){t||(m(e.$$.fragment,l),t=!0)},o(l){g(e.$$.fragment,l),t=!1},d(l){J(e,l)}}}function El(i){let e,t,r,n;const l=[Xi,Gi],s=[];function o(f,a){return f[0]?f[5][f[0]]?1:-1:0}return~(e=o(i))&&(t=s[e]=l[e](i)),{c(){t&&t.c(),r=V()},l(f){t&&t.l(f),r=V()},m(f,a){~e&&s[e].m(f,a),v(f,r,a),n=!0},p(f,[a]){let u=e;e=o(f),e===u?~e&&s[e].p(f,a):(t&&(Y(),g(s[u],1,1,()=>{s[u]=null}),G()),~e?(t=s[e],t?t.p(f,a):(t=s[e]=l[e](f),t.c()),m(t,1),t.m(r.parentNode,r)):t=null)},i(f){n||(m(t),n=!0)},o(f){g(t),n=!1},d(f){~e&&s[e].d(f),f&&p(r)}}}function yl(i,e,t){const r=["type","tokens","header","rows","ordered","renderers"];let n=ze(e,r),{type:l=void 0}=e,{tokens:s=void 0}=e,{header:o=void 0}=e,{rows:f=void 0}=e,{ordered:a=!1}=e,{renderers:u}=e;return Yi(),i.$$set=c=>{e=ye(ye({},e),Ve(c)),t(6,n=ze(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,f=c.rows),"ordered"in c&&t(4,a=c.ordered),"renderers"in c&&t(5,u=c.renderers)},[l,s,o,f,a,u,n]}let et=class extends ue{constructor(e){super(),ce(this,e,yl,El,de,{type:0,tokens:1,header:2,rows:3,ordered:4,renderers:5})}};function Cr(){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 tt=Cr();function kl(i){tt=i}const Dr=/[&<>"']/,vl=new RegExp(Dr.source,"g"),Mr=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,wl=new RegExp(Mr.source,"g"),Ol={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Wn=i=>Ol[i];function je(i,e){if(e){if(Dr.test(i))return i.replace(vl,Wn)}else if(Mr.test(i))return i.replace(wl,Wn);return i}const Sl=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Vr(i){return i.replace(Sl,(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 Pl=/(^|[^\[])\^/g;function _e(i,e){i=typeof i=="string"?i:i.source,e=e||"";const t={replace:(r,n)=>(n=n.source||n,n=n.replace(Pl,"$1"),i=i.replace(r,n),t),getRegex:()=>new RegExp(i,e)};return t}const Al=/[^\w:]/g,Rl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Kn(i,e,t){if(i){let r;try{r=decodeURIComponent(Vr(t)).replace(Al,"").toLowerCase()}catch{return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0)return null}e&&!Rl.test(t)&&(t=Nl(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const gt={},Tl=/^[^:]+:\/*[^/]*$/,Il=/^([^:]+:)[\s\S]*$/,jl=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Nl(i,e){gt[" "+i]||(Tl.test(i)?gt[" "+i]=i+"/":gt[" "+i]=kt(i,"/",!0)),i=gt[" "+i];const t=i.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:i.replace(Il,"$1")+e:e.charAt(0)==="/"?t?e:i.replace(jl,"$1")+e:i+e}const Ot={exec:function(){}};function Qn(i,e){const t=i.replace(/\|/g,(l,s,o)=>{let f=!1,a=s;for(;--a>=0&&o[a]==="\\";)f=!f;return f?"|":" |"}),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.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function kt(i,e,t){const r=i.length;if(r===0)return"";let n=0;for(;n<r;){const l=i.charAt(r-n-1);if(l===e&&!t)n++;else if(l!==e&&t)n++;else break}return i.slice(0,r-n)}function Ll(i,e){if(i.indexOf(e[1])===-1)return-1;const t=i.length;let r=0,n=0;for(;n<t;n++)if(i[n]==="\\")n++;else if(i[n]===e[0])r++;else if(i[n]===e[1]&&(r--,r<0))return n;return-1}function zl(i){i&&i.sanitize&&!i.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Yn(i,e){if(e<1)return"";let t="";for(;e>1;)e&1&&(t+=i),e>>=1,i+=i;return t+i}function Gn(i,e,t,r){const n=e.href,l=e.title?je(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:je(s)}}function Cl(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 Gt{constructor(e){this.options=e||tt}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:kt(r,`
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=Cl(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=kt(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,f,a,u,c,d,h,E,_=t[1].trim();const T=_.length>1,k={type:"list",raw:"",ordered:T,start:T?+_.slice(0,-1):"",loose:!1,items:[]};_=T?`\\d{1,9}\\${_.slice(-1)}`:`\\${_}`,this.options.pedantic&&(_=T?_:"[*+-]");const b=new RegExp(`^( {0,3}${_})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(E=!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),f=!1,!u&&/^ *$/.test(c)&&(r+=c+`
`,e=e.substring(c.length+1),E=!0),!E){const P=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),D=new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),j=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),N=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," ")),!(j.test(c)||N.test(c)||P.test(c)||D.test(e)));){if(c.search(/[^ ]/)>=s||!c.trim())h+=`
`+c.slice(s);else{if(f||u.search(/[^ ]/)>=4||j.test(u)||N.test(u)||D.test(u))break;h+=`
`+c}!f&&!c.trim()&&(f=!0),r+=d+`
`,e=e.substring(d.length+1),u=c.slice(s)}}k.loose||(a?k.loose=!0:/\n *\n *$/.test(r)&&(a=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(h),n&&(l=n[0]!=="[ ] ",h=h.replace(/^\[[ xX]\] +/,""))),k.items.push({type:"list_item",raw:r,task:!!n,checked:l,loose:!1,text:h}),k.raw+=r}k.items[k.items.length-1].raw=r.trimRight(),k.items[k.items.length-1].text=h.trimRight(),k.raw=k.raw.trimRight();const O=k.items.length;for(o=0;o<O;o++)if(this.lexer.state.top=!1,k.items[o].tokens=this.lexer.blockTokens(k.items[o].text,[]),!k.loose){const P=k.items[o].tokens.filter(j=>j.type==="space"),D=P.length>0&&P.some(j=>/\n.*\n/.test(j.raw));k.loose=D}if(k.loose)for(o=0;o<O;o++)k.items[o].loose=!0;return k}}html(e){const t=this.rules.block.html.exec(e);if(t){const r={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):je(t[0]);r.type="paragraph",r.text=n,r.tokens=this.lexer.inline(n)}return r}}def(e){const t=this.rules.block.def.exec(e);if(t){const r=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$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:Qn(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,f;for(l=0;l<n;l++)/^ *-+: *$/.test(r.align[l])?r.align[l]="right":/^ *:-+: *$/.test(r.align[l])?r.align[l]="center":/^ *:-+ *$/.test(r.align[l])?r.align[l]="left":r.align[l]=null;for(n=r.rows.length,l=0;l<n;l++)r.rows[l]=Qn(r.rows[l],r.header.length).map(a=>({text:a}));for(n=r.header.length,s=0;s<n;s++)r.header[s].tokens=this.lexer.inline(r.header[s].text);for(n=r.rows.length,s=0;s<n;s++)for(f=r.rows[s],o=0;o<f.length;o++)f[o].tokens=this.lexer.inline(f[o].text);return r}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:je(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/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]):je(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)){if(!/>$/.test(r))return;const s=kt(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=Ll(t[2],"()");if(s>-1){const f=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,f).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(n)&&(this.options.pedantic&&!/>$/.test(r)?n=n.slice(1):n=n.slice(1,-1)),Gn(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 Gn(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,f,a=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(f=o.length,n[3]||n[4]){a+=f;continue}else if((n[5]||n[6])&&s%3&&!((s+f)%3)){u+=f;continue}if(a-=f,a>0)continue;f=Math.min(f,f+a+u);const d=e.slice(0,s+n.index+(n[0].length-o.length)+f);if(Math.min(s,f)%2){const E=d.slice(1,-1);return{type:"em",raw:d,text:E,tokens:this.lexer.inlineTokens(E)}}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=je(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=je(this.options.mangle?t(r[1]):r[1]),l="mailto:"+n):(n=je(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=je(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=je(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]):je(r[0]):r[0]:n=je(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}}}}const W={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]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Ot,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};W._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;W._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;W.def=_e(W.def).replace("label",W._label).replace("title",W._title).getRegex();W.bullet=/(?:[*+-]|\d{1,9}[.)])/;W.listItemStart=_e(/^( *)(bull) */).replace("bull",W.bullet).getRegex();W.list=_e(W.list).replace(/bull/g,W.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+W.def.source+")").getRegex();W._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";W._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;W.html=_e(W.html,"i").replace("comment",W._comment).replace("tag",W._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();W.paragraph=_e(W._paragraph).replace("hr",W.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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",W._tag).getRegex();W.blockquote=_e(W.blockquote).replace("paragraph",W.paragraph).getRegex();W.normal={...W};W.gfm={...W.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};W.gfm.table=_e(W.gfm.table).replace("hr",W.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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",W._tag).getRegex();W.gfm.paragraph=_e(W._paragraph).replace("hr",W.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",W.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",W._tag).getRegex();W.pedantic={...W.normal,html:_e(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",W._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:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ot,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_e(W.normal._paragraph).replace("hr",W.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",W.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const x={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ot,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\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:Ot,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};x._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";x.punctuation=_e(x.punctuation).replace(/punctuation/g,x._punctuation).getRegex();x.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;x.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;x._comment=_e(W._comment).replace("(?:-->|$)","-->").getRegex();x.emStrong.lDelim=_e(x.emStrong.lDelim).replace(/punct/g,x._punctuation).getRegex();x.emStrong.rDelimAst=_e(x.emStrong.rDelimAst,"g").replace(/punct/g,x._punctuation).getRegex();x.emStrong.rDelimUnd=_e(x.emStrong.rDelimUnd,"g").replace(/punct/g,x._punctuation).getRegex();x._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;x._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;x._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])?)+(?![-_])/;x.autolink=_e(x.autolink).replace("scheme",x._scheme).replace("email",x._email).getRegex();x._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;x.tag=_e(x.tag).replace("comment",x._comment).replace("attribute",x._attribute).getRegex();x._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;x._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;x._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;x.link=_e(x.link).replace("label",x._label).replace("href",x._href).replace("title",x._title).getRegex();x.reflink=_e(x.reflink).replace("label",x._label).replace("ref",W._label).getRegex();x.nolink=_e(x.nolink).replace("ref",W._label).getRegex();x.reflinkSearch=_e(x.reflinkSearch,"g").replace("reflink",x.reflink).replace("nolink",x.nolink).getRegex();x.normal={...x};x.pedantic={...x.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:_e(/^!?\[(label)\]\((.*?)\)/).replace("label",x._label).getRegex(),reflink:_e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",x._label).getRegex()};x.gfm={...x.normal,escape:_e(x.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]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};x.gfm.url=_e(x.gfm.url,"i").replace("email",x.gfm._extended_email).getRegex();x.breaks={...x.gfm,br:_e(x.br).replace("{2,}","*").getRegex(),text:_e(x.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function Dl(i){return i.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Xn(i){let e="",t,r;const n=i.length;for(t=0;t<n;t++)r=i.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),e+="&#"+r+";";return e}class Ze{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||tt,this.options.tokenizer=this.options.tokenizer||new Gt,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:W.normal,inline:x.normal};this.options.pedantic?(t.block=W.pedantic,t.inline=x.pedantic):this.options.gfm&&(t.block=W.gfm,this.options.breaks?t.inline=x.breaks:t.inline=x.gfm),this.tokenizer.rules=t}static get rules(){return{block:W,inline:x}}static lex(e,t){return new Ze(t).lex(e)}static lexInline(e,t){return new Ze(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,f,a)=>f+" ".repeat(a.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 f=e.slice(1);let a;this.options.extensions.startBlock.forEach(function(u){a=u.call({lexer:this},f),typeof a=="number"&&a>=0&&(o=Math.min(o,a))}),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,f,a;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)+"["+Yn("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)+"["+Yn("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(f||(a=""),f=!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,a)){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,Xn)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e,Xn))){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,Dl)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(a=r.raw.slice(-1)),f=!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 Xt{constructor(e){this.options=e||tt}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?'<pre><code class="'+this.options.langPrefix+je(n)+'">'+(r?e:je(e,!0))+`</code></pre>
`:"<pre><code>"+(r?e:je(e,!0))+`</code></pre>
`}blockquote(e){return`<blockquote>
${e}</blockquote>
`}html(e){return e}heading(e,t,r,n){if(this.options.headerIds){const l=this.options.headerPrefix+n.slug(r);return`<h${t} id="${l}">${e}</h${t}>
`}return`<h${t}>${e}</h${t}>
`}hr(){return this.options.xhtml?`<hr/>
`:`<hr>
`}list(e,t,r){const n=t?"ol":"ul",l=t&&r!==1?' start="'+r+'"':"";return"<"+n+l+`>
`+e+"</"+n+`>
`}listitem(e){return`<li>${e}</li>
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>
`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),`<table>
<thead>
`+e+`</thead>
`+t+`</table>
`}tablerow(e){return`<tr>
${e}</tr>
`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,r){if(e=Kn(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let n='<a href="'+e+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>",n}image(e,t,r){if(e=Kn(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let n=`<img src="${e}" alt="${r}"`;return t&&(n+=` title="${t}"`),n+=this.options.xhtml?"/>":">",n}text(e){return e}}class $r{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 en{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 ht=class qt{constructor(e){this.options=e||tt,this.options.renderer=this.options.renderer||new Xt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new $r,this.slugger=new en}static parse(e,t){return new qt(t).parse(e)}static parseInline(e,t){return new qt(t).parseInline(e)}parse(e,t=!0){let r="",n,l,s,o,f,a,u,c,d,h,E,_,T,k,b,O,P,D,j;const N=e.length;for(n=0;n<N;n++){if(h=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[h.type]&&(j=this.options.extensions.renderers[h.type].call({parser:this},h),j!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type))){r+=j||"";continue}switch(h.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{r+=this.renderer.heading(this.parseInline(h.tokens),h.depth,Vr(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue}case"code":{r+=this.renderer.code(h.text,h.lang,h.escaped);continue}case"table":{for(c="",u="",o=h.header.length,l=0;l<o;l++)u+=this.renderer.tablecell(this.parseInline(h.header[l].tokens),{header:!0,align:h.align[l]});for(c+=this.renderer.tablerow(u),d="",o=h.rows.length,l=0;l<o;l++){for(a=h.rows[l],u="",f=a.length,s=0;s<f;s++)u+=this.renderer.tablecell(this.parseInline(a[s].tokens),{header:!1,align:h.align[s]});d+=this.renderer.tablerow(u)}r+=this.renderer.table(c,d);continue}case"blockquote":{d=this.parse(h.tokens),r+=this.renderer.blockquote(d);continue}case"list":{for(E=h.ordered,_=h.start,T=h.loose,o=h.items.length,d="",l=0;l<o;l++)b=h.items[l],O=b.checked,P=b.task,k="",b.task&&(D=this.renderer.checkbox(O),T?b.tokens.length>0&&b.tokens[0].type==="paragraph"?(b.tokens[0].text=D+" "+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=D+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:D}):k+=D),k+=this.parse(b.tokens,T),d+=this.renderer.listitem(k,P,O);r+=this.renderer.list(d,E,_);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<N&&e[n+1].type==="text";)h=e[++n],d+=`
`+(h.tokens?this.parseInline(h.tokens):h.text);r+=t?this.renderer.paragraph(d):d;continue}default:{const fe='Token with "'+h.type+'" type was not found.';if(this.options.silent){console.error(fe);return}else throw new Error(fe)}}}return r}parseInline(e,t){t=t||this.renderer;let r="",n,l,s;const o=e.length;for(n=0;n<o;n++){if(l=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[l.type]&&(s=this.options.extensions.renderers[l.type].call({parser:this},l),s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type))){r+=s||"";continue}switch(l.type){case"escape":{r+=t.text(l.text);break}case"html":{r+=t.html(l.text);break}case"link":{r+=t.link(l.href,l.title,this.parseInline(l.tokens,t));break}case"image":{r+=t.image(l.href,l.title,l.text);break}case"strong":{r+=t.strong(this.parseInline(l.tokens,t));break}case"em":{r+=t.em(this.parseInline(l.tokens,t));break}case"codespan":{r+=t.codespan(l.text);break}case"br":{r+=t.br();break}case"del":{r+=t.del(this.parseInline(l.tokens,t));break}case"text":{r+=t.text(l.text);break}default:{const f='Token with "'+l.type+'" type was not found.';if(this.options.silent){console.error(f);return}else throw new Error(f)}}}return r}};class St{constructor(e){this.options=e||tt}preprocess(e){return e}postprocess(e){return e}}sn(St,"passThroughHooks",new Set(["preprocess","postprocess"]));function Ml(i,e,t){return r=>{if(r.message+=`
Please report this to https://github.com/markedjs/marked.`,i){const n="<p>An error occurred:</p><pre>"+je(r.message+"",!0)+"</pre>";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 Ur(i,e){return(t,r,n)=>{typeof r=="function"&&(n=r,r=null);const l={...r};r={...K.defaults,...l};const s=Ml(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(zl(r),r.hooks&&(r.hooks.options=r),n){const o=r.highlight;let f;try{r.hooks&&(t=r.hooks.preprocess(t)),f=i(t,r)}catch(c){return s(c)}const a=function(c){let d;if(!c)try{r.walkTokens&&K.walkTokens(f,r.walkTokens),d=e(f,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,!f.length))return a();let u=0;K.walkTokens(f,function(c){c.type==="code"&&(u++,setTimeout(()=>{o(c.text,c.lang,function(d,h){if(d)return a(d);h!=null&&h!==c.text&&(c.text=h,c.escaped=!0),u--,u===0&&a()})},0))}),u===0&&a();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(K.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&&K.walkTokens(o,r.walkTokens);let f=e(o,r);return r.hooks&&(f=r.hooks.postprocess(f)),f}catch(o){return s(o)}}}function K(i,e,t){return Ur(Ze.lex,ht.parse)(i,e,t)}K.options=K.setOptions=function(i){return K.defaults={...K.defaults,...i},kl(K.defaults),K};K.getDefaults=Cr;K.defaults=tt;K.use=function(...i){const e=K.defaults.extensions||{renderers:{},childTokens:{}};i.forEach(t=>{const r={...t};if(r.async=K.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=K.defaults.renderer||new Xt;for(const l in t.renderer){const s=n[l];n[l]=(...o)=>{let f=t.renderer[l].apply(n,o);return f===!1&&(f=s.apply(n,o)),f}}r.renderer=n}if(t.tokenizer){const n=K.defaults.tokenizer||new Gt;for(const l in t.tokenizer){const s=n[l];n[l]=(...o)=>{let f=t.tokenizer[l].apply(n,o);return f===!1&&(f=s.apply(n,o)),f}}r.tokenizer=n}if(t.hooks){const n=K.defaults.hooks||new St;for(const l in t.hooks){const s=n[l];St.passThroughHooks.has(l)?n[l]=o=>{if(K.defaults.async)return Promise.resolve(t.hooks[l].call(n,o)).then(a=>s.call(n,a));const f=t.hooks[l].call(n,o);return s.call(n,f)}:n[l]=(...o)=>{let f=t.hooks[l].apply(n,o);return f===!1&&(f=s.apply(n,o)),f}}r.hooks=n}if(t.walkTokens){const n=K.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}}K.setOptions(r)})};K.walkTokens=function(i,e){let t=[];for(const r of i)switch(t=t.concat(e.call(K,r)),r.type){case"table":{for(const n of r.header)t=t.concat(K.walkTokens(n.tokens,e));for(const n of r.rows)for(const l of n)t=t.concat(K.walkTokens(l.tokens,e));break}case"list":{t=t.concat(K.walkTokens(r.items,e));break}default:K.defaults.extensions&&K.defaults.extensions.childTokens&&K.defaults.extensions.childTokens[r.type]?K.defaults.extensions.childTokens[r.type].forEach(function(n){t=t.concat(K.walkTokens(r[n],e))}):r.tokens&&(t=t.concat(K.walkTokens(r.tokens,e)))}return t};K.parseInline=Ur(Ze.lexInline,ht.parseInline);K.Parser=ht;K.parser=ht.parse;K.Renderer=Xt;K.TextRenderer=$r;K.Lexer=Ze;K.lexer=Ze.lex;K.Tokenizer=Gt;K.Slugger=en;K.Hooks=St;K.parse=K;K.options;K.setOptions;K.use;K.walkTokens;K.parseInline;ht.parse;Ze.lex;const xr={};function Vl(i){let e;return{c(){e=me(i[1])},l(t){e=ge(t,i[1])},m(t,r){v(t,e,r)},p(t,r){r&2&&Pe(e,t[1])},i:ae,o:ae,d(t){t&&p(e)}}}function $l(i){let e,t;const r=i[5].default,n=ke(r,i,i[4],null);return{c(){e=$("h6"),n&&n.c(),this.h()},l(l){e=U(l,"H6",{id:!0});var s=C(e);n&&n.l(s),s.forEach(p),this.h()},h(){I(e,"id",i[2])},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&ve(n,r,l,l[4],t?Oe(r,l[4],s,null):we(l[4]),null),(!t||s&4)&&I(e,"id",l[2])},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function Ul(i){let e,t;const r=i[5].default,n=ke(r,i,i[4],null);return{c(){e=$("h5"),n&&n.c(),this.h()},l(l){e=U(l,"H5",{id:!0});var s=C(e);n&&n.l(s),s.forEach(p),this.h()},h(){I(e,"id",i[2])},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&ve(n,r,l,l[4],t?Oe(r,l[4],s,null):we(l[4]),null),(!t||s&4)&&I(e,"id",l[2])},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function xl(i){let e,t;const r=i[5].default,n=ke(r,i,i[4],null);return{c(){e=$("h4"),n&&n.c(),this.h()},l(l){e=U(l,"H4",{id:!0});var s=C(e);n&&n.l(s),s.forEach(p),this.h()},h(){I(e,"id",i[2])},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&ve(n,r,l,l[4],t?Oe(r,l[4],s,null):we(l[4]),null),(!t||s&4)&&I(e,"id",l[2])},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function ql(i){let e,t;const r=i[5].default,n=ke(r,i,i[4],null);return{c(){e=$("h3"),n&&n.c(),this.h()},l(l){e=U(l,"H3",{id:!0});var s=C(e);n&&n.l(s),s.forEach(p),this.h()},h(){I(e,"id",i[2])},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&ve(n,r,l,l[4],t?Oe(r,l[4],s,null):we(l[4]),null),(!t||s&4)&&I(e,"id",l[2])},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function Fl(i){let e,t;const r=i[5].default,n=ke(r,i,i[4],null);return{c(){e=$("h2"),n&&n.c(),this.h()},l(l){e=U(l,"H2",{id:!0});var s=C(e);n&&n.l(s),s.forEach(p),this.h()},h(){I(e,"id",i[2])},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&ve(n,r,l,l[4],t?Oe(r,l[4],s,null):we(l[4]),null),(!t||s&4)&&I(e,"id",l[2])},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function Bl(i){let e,t;const r=i[5].default,n=ke(r,i,i[4],null);return{c(){e=$("h1"),n&&n.c(),this.h()},l(l){e=U(l,"H1",{id:!0});var s=C(e);n&&n.l(s),s.forEach(p),this.h()},h(){I(e,"id",i[2])},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&ve(n,r,l,l[4],t?Oe(r,l[4],s,null):we(l[4]),null),(!t||s&4)&&I(e,"id",l[2])},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function Zl(i){let e,t,r,n;const l=[Bl,Fl,ql,xl,Ul,$l,Vl],s=[];function o(f,a){return f[0]===1?0:f[0]===2?1:f[0]===3?2:f[0]===4?3:f[0]===5?4:f[0]===6?5:6}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=V()},l(f){t.l(f),r=V()},m(f,a){s[e].m(f,a),v(f,r,a),n=!0},p(f,[a]){let u=e;e=o(f),e===u?s[e].p(f,a):(Y(),g(s[u],1,1,()=>{s[u]=null}),G(),t=s[e],t?t.p(f,a):(t=s[e]=l[e](f),t.c()),m(t,1),t.m(r.parentNode,r))},i(f){n||(m(t),n=!0)},o(f){g(t),n=!1},d(f){s[e].d(f),f&&p(r)}}}function Hl(i,e,t){let r,{$$slots:n={},$$scope:l}=e,{depth:s}=e,{raw:o}=e,{text:f}=e;const{slug:a,getOptions:u}=Tr(xr),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,f=d.text),"$$scope"in d&&t(4,l=d.$$scope)},i.$$.update=()=>{i.$$.dirty&8&&t(2,r=c.headerIds?c.headerPrefix+a(f):void 0)},[s,o,r,f,l,n]}class Jl extends ue{constructor(e){super(),ce(this,e,Hl,Zl,de,{depth:0,raw:1,text:3})}}function Wl(i){let e,t;const r=i[1].default,n=ke(r,i,i[0],null);return{c(){e=$("p"),n&&n.c()},l(l){e=U(l,"P",{});var s=C(e);n&&n.l(s),s.forEach(p)},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ve(n,r,l,l[0],t?Oe(r,l[0],s,null):we(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function Kl(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Ql extends ue{constructor(e){super(),ce(this,e,Kl,Wl,de,{})}}function Yl(i){let e;const t=i[3].default,r=ke(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)&&ve(r,t,n,n[2],e?Oe(t,n[2],l,null):we(n[2]),null)},i(n){e||(m(r,n),e=!0)},o(n){g(r,n),e=!1},d(n){r&&r.d(n)}}}function Gl(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 Xl extends ue{constructor(e){super(),ce(this,e,Gl,Yl,de,{text:0,raw:1})}}function es(i){let e,t;return{c(){e=$("img"),this.h()},l(r){e=U(r,"IMG",{src:!0,title:!0,alt:!0}),this.h()},h(){fn(e.src,t=i[0])||I(e,"src",t),I(e,"title",i[1]),I(e,"alt",i[2])},m(r,n){v(r,e,n)},p(r,[n]){n&1&&!fn(e.src,t=r[0])&&I(e,"src",t),n&2&&I(e,"title",r[1]),n&4&&I(e,"alt",r[2])},i:ae,o:ae,d(r){r&&p(e)}}}function ts(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 ns extends ue{constructor(e){super(),ce(this,e,ts,es,de,{href:0,title:1,text:2})}}function rs(i){let e,t;const r=i[3].default,n=ke(r,i,i[2],null);return{c(){e=$("a"),n&&n.c(),this.h()},l(l){e=U(l,"A",{href:!0,title:!0});var s=C(e);n&&n.l(s),s.forEach(p),this.h()},h(){I(e,"href",i[0]),I(e,"title",i[1])},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&4)&&ve(n,r,l,l[2],t?Oe(r,l[2],s,null):we(l[2]),null),(!t||s&1)&&I(e,"href",l[0]),(!t||s&2)&&I(e,"title",l[1])},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function is(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 ls extends ue{constructor(e){super(),ce(this,e,is,rs,de,{href:0,title:1})}}function ss(i){let e,t;const r=i[1].default,n=ke(r,i,i[0],null);return{c(){e=$("em"),n&&n.c()},l(l){e=U(l,"EM",{});var s=C(e);n&&n.l(s),s.forEach(p)},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ve(n,r,l,l[0],t?Oe(r,l[0],s,null):we(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function os(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class fs extends ue{constructor(e){super(),ce(this,e,os,ss,de,{})}}function as(i){let e,t;const r=i[1].default,n=ke(r,i,i[0],null);return{c(){e=$("del"),n&&n.c()},l(l){e=U(l,"DEL",{});var s=C(e);n&&n.l(s),s.forEach(p)},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ve(n,r,l,l[0],t?Oe(r,l[0],s,null):we(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function us(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class cs extends ue{constructor(e){super(),ce(this,e,us,as,de,{})}}function ds(i){let e,t=i[0].replace(/`/g,"")+"",r;return{c(){e=$("code"),r=me(t)},l(n){e=U(n,"CODE",{});var l=C(e);r=ge(l,t),l.forEach(p)},m(n,l){v(n,e,l),q(e,r)},p(n,[l]){l&1&&t!==(t=n[0].replace(/`/g,"")+"")&&Pe(r,t)},i:ae,o:ae,d(n){n&&p(e)}}}function hs(i,e,t){let{raw:r}=e;return i.$$set=n=>{"raw"in n&&t(0,r=n.raw)},[r]}class ps extends ue{constructor(e){super(),ce(this,e,hs,ds,de,{raw:0})}}function ms(i){let e,t;const r=i[1].default,n=ke(r,i,i[0],null);return{c(){e=$("strong"),n&&n.c()},l(l){e=U(l,"STRONG",{});var s=C(e);n&&n.l(s),s.forEach(p)},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ve(n,r,l,l[0],t?Oe(r,l[0],s,null):we(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function gs(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class _s extends ue{constructor(e){super(),ce(this,e,gs,ms,de,{})}}function bs(i){let e,t;const r=i[1].default,n=ke(r,i,i[0],null);return{c(){e=$("table"),n&&n.c()},l(l){e=U(l,"TABLE",{});var s=C(e);n&&n.l(s),s.forEach(p)},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ve(n,r,l,l[0],t?Oe(r,l[0],s,null):we(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function Es(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class ys extends ue{constructor(e){super(),ce(this,e,Es,bs,de,{})}}function ks(i){let e,t;const r=i[1].default,n=ke(r,i,i[0],null);return{c(){e=$("thead"),n&&n.c()},l(l){e=U(l,"THEAD",{});var s=C(e);n&&n.l(s),s.forEach(p)},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ve(n,r,l,l[0],t?Oe(r,l[0],s,null):we(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function vs(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class ws extends ue{constructor(e){super(),ce(this,e,vs,ks,de,{})}}function Os(i){let e,t;const r=i[1].default,n=ke(r,i,i[0],null);return{c(){e=$("tbody"),n&&n.c()},l(l){e=U(l,"TBODY",{});var s=C(e);n&&n.l(s),s.forEach(p)},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ve(n,r,l,l[0],t?Oe(r,l[0],s,null):we(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function Ss(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Ps extends ue{constructor(e){super(),ce(this,e,Ss,Os,de,{})}}function As(i){let e,t;const r=i[1].default,n=ke(r,i,i[0],null);return{c(){e=$("tr"),n&&n.c()},l(l){e=U(l,"TR",{});var s=C(e);n&&n.l(s),s.forEach(p)},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ve(n,r,l,l[0],t?Oe(r,l[0],s,null):we(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function Rs(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Ts extends ue{constructor(e){super(),ce(this,e,Rs,As,de,{})}}function Is(i){let e,t;const r=i[3].default,n=ke(r,i,i[2],null);return{c(){e=$("td"),n&&n.c(),this.h()},l(l){e=U(l,"TD",{align:!0});var s=C(e);n&&n.l(s),s.forEach(p),this.h()},h(){I(e,"align",i[1])},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&ve(n,r,l,l[2],t?Oe(r,l[2],s,null):we(l[2]),null),(!t||s&2)&&I(e,"align",l[1])},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function js(i){let e,t;const r=i[3].default,n=ke(r,i,i[2],null);return{c(){e=$("th"),n&&n.c(),this.h()},l(l){e=U(l,"TH",{align:!0});var s=C(e);n&&n.l(s),s.forEach(p),this.h()},h(){I(e,"align",i[1])},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&ve(n,r,l,l[2],t?Oe(r,l[2],s,null):we(l[2]),null),(!t||s&2)&&I(e,"align",l[1])},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function Ns(i){let e,t,r,n;const l=[js,Is],s=[];function o(f,a){return f[0]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=V()},l(f){t.l(f),r=V()},m(f,a){s[e].m(f,a),v(f,r,a),n=!0},p(f,[a]){let u=e;e=o(f),e===u?s[e].p(f,a):(Y(),g(s[u],1,1,()=>{s[u]=null}),G(),t=s[e],t?t.p(f,a):(t=s[e]=l[e](f),t.c()),m(t,1),t.m(r.parentNode,r))},i(f){n||(m(t),n=!0)},o(f){g(t),n=!1},d(f){s[e].d(f),f&&p(r)}}}function Ls(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 zs extends ue{constructor(e){super(),ce(this,e,Ls,Ns,de,{header:0,align:1})}}function Cs(i){let e,t;const r=i[3].default,n=ke(r,i,i[2],null);return{c(){e=$("ul"),n&&n.c()},l(l){e=U(l,"UL",{});var s=C(e);n&&n.l(s),s.forEach(p)},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&ve(n,r,l,l[2],t?Oe(r,l[2],s,null):we(l[2]),null)},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function Ds(i){let e,t;const r=i[3].default,n=ke(r,i,i[2],null);return{c(){e=$("ol"),n&&n.c(),this.h()},l(l){e=U(l,"OL",{start:!0});var s=C(e);n&&n.l(s),s.forEach(p),this.h()},h(){I(e,"start",i[1])},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&ve(n,r,l,l[2],t?Oe(r,l[2],s,null):we(l[2]),null),(!t||s&2)&&I(e,"start",l[1])},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function Ms(i){let e,t,r,n;const l=[Ds,Cs],s=[];function o(f,a){return f[0]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=V()},l(f){t.l(f),r=V()},m(f,a){s[e].m(f,a),v(f,r,a),n=!0},p(f,[a]){let u=e;e=o(f),e===u?s[e].p(f,a):(Y(),g(s[u],1,1,()=>{s[u]=null}),G(),t=s[e],t?t.p(f,a):(t=s[e]=l[e](f),t.c()),m(t,1),t.m(r.parentNode,r))},i(f){n||(m(t),n=!0)},o(f){g(t),n=!1},d(f){s[e].d(f),f&&p(r)}}}function Vs(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 $s extends ue{constructor(e){super(),ce(this,e,Vs,Ms,de,{ordered:0,start:1})}}function Us(i){let e,t;const r=i[1].default,n=ke(r,i,i[0],null);return{c(){e=$("li"),n&&n.c()},l(l){e=U(l,"LI",{});var s=C(e);n&&n.l(s),s.forEach(p)},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ve(n,r,l,l[0],t?Oe(r,l[0],s,null):we(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function xs(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class qs extends ue{constructor(e){super(),ce(this,e,xs,Us,de,{})}}function Fs(i){let e;return{c(){e=$("hr")},l(t){e=U(t,"HR",{})},m(t,r){v(t,e,r)},p:ae,i:ae,o:ae,d(t){t&&p(e)}}}class Bs extends ue{constructor(e){super(),ce(this,e,null,Fs,de,{})}}function Zs(i){let e,t;return{c(){e=new di(!1),t=V(),this.h()},l(r){e=hi(r,!1),t=V(),this.h()},h(){e.a=t},m(r,n){e.m(i[0],r,n),v(r,t,n)},p(r,[n]){n&1&&e.p(r[0])},i:ae,o:ae,d(r){r&&p(t),r&&e.d()}}}function Hs(i,e,t){let{text:r}=e;return i.$$set=n=>{"text"in n&&t(0,r=n.text)},[r]}class Js extends ue{constructor(e){super(),ce(this,e,Hs,Zs,de,{text:0})}}function Ws(i){let e,t;const r=i[1].default,n=ke(r,i,i[0],null);return{c(){e=$("blockquote"),n&&n.c()},l(l){e=U(l,"BLOCKQUOTE",{});var s=C(e);n&&n.l(s),s.forEach(p)},m(l,s){v(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ve(n,r,l,l[0],t?Oe(r,l[0],s,null):we(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(e),n&&n.d(l)}}}function Ks(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Qs extends ue{constructor(e){super(),ce(this,e,Ks,Ws,de,{})}}function Ys(i){let e,t,r;return{c(){e=$("pre"),t=$("code"),r=me(i[1]),this.h()},l(n){e=U(n,"PRE",{class:!0});var l=C(e);t=U(l,"CODE",{});var s=C(t);r=ge(s,i[1]),s.forEach(p),l.forEach(p),this.h()},h(){I(e,"class",i[0])},m(n,l){v(n,e,l),q(e,t),q(t,r)},p(n,[l]){l&2&&Pe(r,n[1]),l&1&&I(e,"class",n[0])},i:ae,o:ae,d(n){n&&p(e)}}}function Gs(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 Xs extends ue{constructor(e){super(),ce(this,e,Gs,Ys,de,{lang:0,text:1})}}function eo(i){let e,t;const r=i[1].default,n=ke(r,i,i[0],null);return{c(){e=$("br"),n&&n.c()},l(l){e=U(l,"BR",{}),n&&n.l(l)},m(l,s){v(l,e,s),n&&n.m(l,s),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ve(n,r,l,l[0],t?Oe(r,l[0],s,null):we(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&p(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 no extends ue{constructor(e){super(),ce(this,e,to,eo,de,{})}}const ro={heading:Jl,paragraph:Ql,text:Xl,image:ns,link:ls,em:fs,strong:_s,codespan:ps,del:cs,table:ys,tablehead:ws,tablebody:Ps,tablerow:Ts,tablecell:zs,list:$s,orderedlistitem:null,unorderedlistitem:null,listitem:qs,hr:Bs,html:Js,blockquote:Qs,code:Xs,br:no},io={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 lo(i){let e,t;return e=new et({props:{tokens:i[0],renderers:i[1]}}),{c(){Z(e.$$.fragment)},l(r){te(e.$$.fragment,r)},m(r,n){H(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||(m(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){J(e,r)}}}function so(i,e,t){let r,n,l,s,{source:o=[]}=e,{renderers:f={}}=e,{options:a={}}=e,{isInline:u=!1}=e;const c=Yt();let d,h,E;return pi(xr,{slug:_=>n?n.slug(_):"",getOptions:()=>l}),Ir(()=>{t(7,E=!0)}),i.$$set=_=>{"source"in _&&t(2,o=_.source),"renderers"in _&&t(3,f=_.renderers),"options"in _&&t(4,a=_.options),"isInline"in _&&t(5,u=_.isInline)},i.$$.update=()=>{i.$$.dirty&4&&t(8,r=Array.isArray(o)),i.$$.dirty&4&&(n=o?new en:void 0),i.$$.dirty&16&&t(9,l={...io,...a}),i.$$.dirty&869&&(r?t(0,d=o):(t(6,h=new Ze(l)),t(0,d=u?h.inlineTokens(o):h.lex(o)),c("parsed",{tokens:d}))),i.$$.dirty&8&&t(1,s={...ro,...f}),i.$$.dirty&385&&E&&!r&&c("parsed",{tokens:d})},[d,s,o,f,a,u,h,E,r,l]}class oo extends ue{constructor(e){super(),ce(this,e,so,lo,de,{source:2,renderers:3,options:4,isInline:5})}}const fo={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 ao(i,e={}){return i.replace(/\{\{\w+\}\}/g,t=>e[t.replace(/[{}]/g,"")])}function uo(i,e,t=i){const r=fo[i]||t;return ao(r,e)}function co(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ho(i,e){return{type:"error",name:i,code:co(i),message:uo(i,e),data:e}}function B(i){return ho.bind(null,i)}const po=Object.prototype.toString;function he(i){const e=po.call(i).match(/\s([^\]]+)\]/).pop().toLowerCase();return e==="file"?"object":e}function Te(i){return(i==null?void 0:i.type)==="error"}function mo(i){return i instanceof Promise}function Pt(i){return Te(i)||mo(i)}function at(i,e=[]){for(let t=0;t<i.length;t+=1){const r=i[t];Array.isArray(r)?at(r,e):e.push(r)}return e}const pt={DECLARATOR_ONEOF:"oneOfProperty",GET_TEMPLATE_RECURSION_LIMIT:1,floatingPointPrecision:1e4,propertyBlacklist:["_id"]},{DECLARATOR_ONEOF:Mt}=pt;function go(i,e,t=i.rootSchema,r="#"){if(e!=null&&t[Mt]){const s=[],o=t[Mt],f=e[t[Mt]];if(f===void 0)return i.errors.missingOneOfPropertyError({property:o,pointer:r});for(let a=0;a<t.oneOf.length;a+=1){const u=i.resolveRef(t.oneOf[a]),c=i.step(o,u,e,r);if(Te(c))return c;let d=at(i.validate(f,c,r));if(d=d.filter(Pt),d.length>0)s.push(...d);else return u}return i.errors.oneOfPropertyError({property:o,value:f,pointer:r,errors:s})}const n=[],l=[];for(let s=0;s<t.oneOf.length;s+=1){const o=i.resolveRef(t.oneOf[s]);let f=at(i.validate(e,o,r));f=f.filter(Pt),f.length>0?l.push(...f):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 tn=i=>JSON.parse(JSON.stringify(i));var _o=function(e){return bo(e)&&!Eo(e)};function bo(i){return!!i&&typeof i=="object"}function Eo(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||vo(i)}var yo=typeof Symbol=="function"&&Symbol.for,ko=yo?Symbol.for("react.element"):60103;function vo(i){return i.$$typeof===ko}function wo(i){return Array.isArray(i)?[]:{}}function ut(i,e){return e.clone!==!1&&e.isMergeableObject(i)?rt(wo(i),i,e):i}function Oo(i,e,t){return i.concat(e).map(function(r){return ut(r,t)})}function So(i,e){if(!e.customMerge)return rt;var t=e.customMerge(i);return typeof t=="function"?t:rt}function Po(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function er(i){return Object.keys(i).concat(Po(i))}function qr(i,e){try{return e in i}catch{return!1}}function Ao(i,e){return qr(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function Ro(i,e,t){var r={};return t.isMergeableObject(i)&&er(i).forEach(function(n){r[n]=ut(i[n],t)}),er(e).forEach(function(n){Ao(i,n)||(qr(i,n)&&t.isMergeableObject(e[n])?r[n]=So(n,t)(i[n],e[n],t):r[n]=ut(e[n],t))}),r}function rt(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Oo,t.isMergeableObject=t.isMergeableObject||_o,t.cloneUnlessOtherwiseSpecified=ut;var r=Array.isArray(e),n=Array.isArray(i),l=r===n;return l?r?t.arrayMerge(i,e,t):Ro(i,e,t):ut(e,t)}rt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,n){return rt(r,n,t)},{})};var To=rt,Io=To;const Fr=It(Io),jo=(i,e)=>e,ct=(i,e)=>Fr(i,e,{arrayMerge:jo}),No=(i,e)=>{const t=i.concat(e);return t.filter((r,n)=>t.indexOf(r)===n)},Lo=(i,e)=>Fr(i,e,{arrayMerge:No});function Ft(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 Ft(i,n.then,t);if(!l&&n.else)return Ft(i,n.else,t);delete n.if,delete n.then,delete n.else}return n}function zo(i,e,t=i.rootSchema,r="#"){let n=tn(t);for(let l=0;l<t.allOf.length;l+=1){const s=Ft(i,t.allOf[l],e);n=Lo(n,s),e=i.getTemplate(e,n)}return delete n.allOf,n}const{DECLARATOR_ONEOF:Vt}=pt;function Co(i,e,t,r){if(t==null||e.properties==null)return-1;let n=0;const l=Object.keys(e.properties);for(let s=0;s<l.length;s+=1){const o=l[s];t[o]!=null&&i.isValid(t[o],e.properties[o],r)&&(n+=1)}return n}function nn(i,e,t=i.rootSchema,r="#"){if(e!=null&&t[Vt]){const l=[],s=t[Vt],o=e[t[Vt]];if(o===void 0)return i.errors.missingOneOfPropertyError({property:s,pointer:r});for(let f=0;f<t.oneOf.length;f+=1){const a=i.resolveRef(t.oneOf[f]),u=i.step(s,a,e,r);if(Te(u))return u;let c=at(i.validate(o,u,r));if(c=c.filter(Pt),c.length>0)l.push(...c);else return a}return i.errors.oneOfPropertyError({property:s,value:o,pointer:r,errors:l})}const n=[];for(let l=0;l<t.oneOf.length;l+=1){const s=i.resolveRef(t.oneOf[l]);i.isValid(e,s,r)&&n.push(s)}if(n.length===1)return n[0];if(he(e)==="object"){let l,s=0;for(let o=0;o<t.oneOf.length;o+=1){const f=i.resolveRef(t.oneOf[o]),a=Co(i,f,e);s<a&&(s=a,l=t.oneOf[o])}return l===void 0?i.errors.oneOfError({value:JSON.stringify(e),pointer:r,oneOf:t.oneOf}):l}return n.length>1?i.errors.multipleOneOfError({matches:n,data:e,pointer:r}):i.errors.oneOfError({value:JSON.stringify(e),pointer:r,oneOf:t.oneOf})}function Do(i,e){return i==null||i.$ref==null?i:i.getRoot?i.getRoot().getRef(i):e.getRef(i)}function Mo(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 Br={exports:{}};(function(i,e){(function(t,r){i.exports=r()})(typeof self<"u"?self:Qi,()=>(()=>{var t={d:(w,L)=>{for(var y in L)t.o(L,y)&&!t.o(w,y)&&Object.defineProperty(w,y,{enumerable:!0,get:L[y]})},o:(w,L)=>Object.prototype.hasOwnProperty.call(w,L),r:w=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(w,"__esModule",{value:!0})}},r={};function n(w){return w==="#"||w===""||Array.isArray(w)&&w.length===0||!1}t.r(r),t.d(r,{default:()=>le,get:()=>d,isRoot:()=>n,join:()=>ne,remove:()=>D,removeUndefinedItems:()=>P,set:()=>k,split:()=>c,splitLast:()=>ie});const l=/~1/g,s=/~0/g,o=/\/+/g,f=/(^[#/]*|\/+$)/g;function a(w){return w.replace(l,"/").replace(s,"~")}function u(w){return a(decodeURIComponent(w))}function c(w){if(w==null||typeof w!="string"||n(w))return Array.isArray(w)?w:[];const L=w.indexOf("#")>=0?u:a,y=(w=(w=w.replace(o,"/")).replace(f,"")).split("/");for(let R=0,F=y.length;R<F;R+=1)y[R]=L(y[R]);return y}function d(w,L,y){if(L==null||w==null)return y;if(n(L))return w;const R=h(w,c(L));return R===void 0?y:R}function h(w,L){const y=L.shift();if(w!==void 0)return y!==void 0?h(w[y],L):w}const E=/^\[.*\]$/,_=/^\[(.+)\]$/;function T(w,L){return w==="__proto__"||w=="constructor"&&L.length>0&&L[0]=="prototype"}function k(w,L,y){if(L==null)return w;const R=c(L);if(R.length===0)return w;w==null&&(w=E.test(R[0])?[]:{});let F,ee,re=w;for(;R.length>1;)F=R.shift(),ee=E.test(R[0]),T(F,R)||(re=O(re,F,ee));return F=R.pop(),b(re,F,y),w}function b(w,L,y){let R;const F=L.match(_);L==="[]"&&Array.isArray(w)?w.push(y):F?(R=F.pop(),w[R]=y):w[L]=y}function O(w,L,y){if(w[L]!=null)return w[L];const R=y?[]:{};return b(w,L,R),R}function P(w){let L=0,y=0;for(;L+y<w.length;)w[L+y]===void 0&&(y+=1),w[L]=w[L+y],L+=1;return w.length=w.length-y,w}function D(w,L,y){const R=c(L),F=R.pop(),ee=d(w,R);return ee&&delete ee[F],Array.isArray(ee)&&y!==!0&&P(ee),w}const j=/\/+/g,N=/~/g,fe=/\//g;function Q(w,L){if(w.length===0)return L?"#":"";for(let y=0,R=w.length;y<R;y+=1)w[y]=w[y].replace(N,"~0").replace(fe,"~1"),L&&(w[y]=encodeURIComponent(w[y]));return((L?"#/":"/")+w.join("/")).replace(j,"/")}function ne(w,...L){const y=[];if(Array.isArray(w))return Q(w,arguments[1]===!0);const R=arguments[arguments.length-1],F=typeof R=="boolean"?R:w&&w[0]==="#";for(let re=0,Se=arguments.length;re<Se;re+=1)y.push.apply(y,c(arguments[re]));const ee=[];for(let re=0,Se=y.length;re<Se;re+=1)if(y[re]===".."){if(ee.length===0)return F?"#":"";ee.pop()}else ee.push(y[re]);return Q(ee,F)}function ie(w){const L=c(w);if(L.length===0)return typeof w=="string"&&w[0]==="#"?["#",L[0]]:["",void 0];if(L.length===1)return w[0]==="#"?["#",L[0]]:["",L[0]];const y=L.pop();return[ne(L,w[0]==="#"),y]}const le={get:d,set:k,remove:D,join:ne,split:c,splitLast:ie,isRoot:n,removeUndefinedItems:P};return r})())})(Br);var nt=Br.exports;const dt=It(nt),Vo={};function $o(i,e,t,r=i.rootSchema){const n=dt.split(e);return r=i.resolveRef(r),Zr(i,r,n,e,t)}function Zr(i,e,t,r,n=Vo){if(t.length===0)return i.resolveRef(e);const l=t.shift();return e=i.step(l,e,n,r),Te(e)?e:(n=n[l],Zr(i,e,t,`${r}/${l}`,n))}class Uo{constructor(e,t){this.remotes={},this.errors={},this.typeKeywords={},this.validateKeyword={},this.validateType={},this.validateFormat={},this.config=e,this.typeKeywords=JSON.parse(JSON.stringify(e.typeKeywords)),this.validateKeyword=Object.assign({},e.validateKeyword),this.validateType=Object.assign({},e.validateType),this.validateFormat=Object.assign({},e.validateFormat),this.errors=Object.assign({},e.errors),this.setSchema(t)}get rootSchema(){return this.__rootSchema}set rootSchema(e){e!=null&&(this.__rootSchema=this.config.compileSchema(this,e))}addRemoteSchema(e,t){this.config.addRemoteSchema(this,e,t)}compileSchema(e){var t;return this.config.compileSchema(this,e,(t=this.rootSchema)!==null&&t!==void 0?t:e)}createSchemaOf(e){return this.config.createSchemaOf(e)}each(e,t,r,n){return this.config.each(this,e,t,r,n)}eachSchema(e,t=this.rootSchema){return this.config.eachSchema(t,e)}getChildSchemaSelection(e,t){return this.config.getChildSchemaSelection(this,e,t)}getSchema(e="#",t,r){return this.config.getSchema(this,e,t,r)}getTemplate(e,t,r){return this.config.getTemplate(this,e,t,r)}isValid(e,t,r){return this.config.isValid(this,e,t,r)}resolveAnyOf(e,t,r){return this.config.resolveAnyOf(this,e,t,r)}resolveAllOf(e,t,r){return this.config.resolveAllOf(this,e,t,r)}resolveRef(e){return this.config.resolveRef(e,this.rootSchema)}resolveOneOf(e,t,r){return this.config.resolveOneOf(this,e,t,r)}setSchema(e){this.rootSchema=e}step(e,t,r,n){return this.config.step(this,e,t,r,n)}validate(e,t,r){return this.config.validate(this,e,t,r)}}function xo(i,e,t){t.id=t.id||e,i.remotes[e]=i.compileSchema(t)}var Hr={},Ce={},jt={};Object.defineProperty(jt,"__esModule",{value:!0});jt.TokenError=void 0;class qo extends Error{constructor(e,t){if(super(e),this.message=e,this.token=t,t&&t.errors)t.errors.push(this);else throw this}inspect(){return"SyntaxError: "+this.message}}jt.TokenError=qo;Object.defineProperty(Ce,"__esModule",{value:!0});Ce.Parser=Ce.findRuleByName=Ce.parseRuleName=Ce.escapeRegExp=Ce.readToken=void 0;const tr=/^[A-Z0-9_]+$/,nr=/(\?|\+|\*)$/,rr=/^(@|&|!)/,_t="WS",bt=jt;function Bt(i,e){let t=e.exec(i);return t&&t.index==0?t[0].length==0&&e.source.length>0?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}Ce.readToken=Bt;function Jr(i){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}Ce.escapeRegExp=Jr;function Wr(i){i.rest="",i.children&&i.children.forEach(e=>Wr(e))}function Kr(i,e){i.start+=e,i.end+=e,i.children&&i.children.forEach(t=>Kr(t,i.start))}function Qr(i,e){e.errors&&e.errors.length&&e.errors.forEach(t=>i.push(t)),e.children&&e.children.forEach(t=>Qr(i,t))}function Ge(i){let e=nr.exec(i),t=rr.exec(i),r=e&&e[0]||"",n=t&&t[0]||"",l={raw:i,name:i.replace(nr,"").replace(rr,""),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}Ce.parseRuleName=Ge;function Yr(i,e){let t=Ge(i);return e.cachedRules[t.name]||null}Ce.findRuleByName=Yr;function Zt(i,e){if(i.children){let t=i.children.filter(r=>r.type&&e.test(r.type));for(let r=0;r<t.length;r++){let n=i.children.indexOf(t[r]);n!=-1&&i.children.splice(n,1)}i.children.forEach(r=>Zt(r,e))}}const Fo=["EOF"];class Gr{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=Ge(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"&&Ge(o[0]).name==l.name){let a="Left recursion is not allowed, rule: "+l.name;r.indexOf(a)==-1&&r.push(a)}o.forEach(f=>{if(typeof f=="string"){let a=Ge(f);!a.isLiteral&&n.indexOf(a.name)==-1&&Fo.indexOf(a.name)==-1&&n.push(a.name)}})});_t==l.name&&(l.implicitWs=!1),l.implicitWs&&n.indexOf(_t)==-1&&n.push(_t),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){Qr(r.errors,r),Kr(r,0),Zt(r,/^%/),(!this.options||!this.options.keepUpperRules)&&Zt(r,tr);let n=r.rest;n&&new bt.TokenError(`Unexpected end of input:
`+n,r),Wr(r),r.rest=n}return r}emitSource(){return"CANNOT EMIT SOURCE FROM BASE Parser"}parse(e,t,r=0){let n=null,l=Ge(t),s,o=this.debug&&!tr.test(l.name);o&&console.log(new Array(r).join("│ ")+"Trying to get "+t+" from "+JSON.stringify(e.split(`
`)[0]));let f=l.name,a=Yr(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(!a&&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(Jr(u)),f=null}}catch(u){return u instanceof ReferenceError&&console.error(u),null}if(s){let u=Bt(e,s);if(u)return u.type=f,u}else{let u=a.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};a.fragment&&(h.fragment=!0);let E=e,_=0,T=c.length>0,k=!1;for(let b=0;b<c.length;b++)if(typeof c[b]=="string"){let O=Ge(c[b]);T=T&&O.isOptional;let P,D=!1;do{if(P=null,a.implicitWs&&(P=this.parse(E,O.name,r+1),!P)){let j;do if(j=this.parse(E,_t,r+1),j)h.text=h.text+j.text,h.end=h.text.length,j.parent=h,h.children.push(j),E=E.substr(j.text.length),_+=j.text.length;else break;while(j&&j.text.length)}if(P=P||this.parse(E,O.name,r+1),O.lookupNegative){if(P)return;break}if(O.lookupPositive&&!P)return;if(!P&&(O.isOptional||O.atLeastOne&&D))break;if(P&&a.pinned==b+1&&(d=P,o&&console.log(new Array(r+1).join("│ ")+"└─ "+P.type+" PINNED")),P||(P=this.parseRecovery(a,E,r+1)),!P)if(d)n=h,P={type:"SyntaxError",text:E,children:[],end:E.length,errors:[],fullText:"",parent:null,start:0,rest:""},E.length?new bt.TokenError(`Unexpected end of input. Expecting ${O.name} Got: ${E}`,P):new bt.TokenError(`Unexpected end of input. Missing ${O.name}`,P),o&&console.log(new Array(r+1).join("│ ")+"└─ "+P.type+" "+JSON.stringify(P.text));else return;if(D=!0,k=!0,P.type=="%%EMPTY%%")break;P.start+=_,P.end+=_,!O.lookupPositive&&P.type&&(P.fragment?P.children&&P.children.forEach(j=>{j.start+=_,j.end+=_,j.parent=h,h.children.push(j)}):(P.parent=h,h.children.push(P))),O.lookup&&(P.lookup=!0),o&&console.log(new Array(r+1).join("│ ")+"└─ "+P.type+" "+JSON.stringify(P.text)),!O.lookup&&!P.lookup&&(h.text=h.text+P.text,h.end=h.text.length,E=E.substr(P.text.length),_+=P.text.length),h.rest=E}while(P&&O.allowRepetition&&E.length&&!P.lookup)}else{let O=Bt(E,c[b]);if(!O)return;o&&console.log(new Array(r+1).join("│ ")+"└> "+JSON.stringify(O.text)+c[b].source),k=!0,O.start+=_,O.end+=_,h.text=h.text+O.text,h.end=h.text.length,E=E.substr(O.text.length),_+=O.text.length,h.rest=E}k&&(n=h,o&&console.log(new Array(r).join("│ ")+"├<─┴< PUSHING "+n.type+" "+JSON.stringify(n.text)))}),n&&a.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 bt.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}}Ce.Parser=Gr;Ce.default=Gr;Object.defineProperty(Hr,"__esModule",{value:!0});const st=Ce;var Ht;(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 st.Parser(i.RULES,{debug:!1});const e=/^(!|&)/,t=/(\?|\+|\*)$/,r=/^%/;function n(k,b){if(typeof k=="string"){if(e.test(k))return"";if(r.test(k)){let P=t.exec(k),D=P?P[0]+" ":"";return l(k,b)?o(k,b)+D:"("+o(k,b)+")"+D}return k}else return k.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(k,b){let O=st.findRuleByName(k,b);return O&&O.bnf.length==1&&O.bnf[0].length==1&&(O.bnf[0][0]instanceof RegExp||O.bnf[0][0][0]=='"'||O.bnf[0][0][0]=="'")}function s(k,b){return k.map(O=>n(O,b)).join(" ")}function o(k,b){let O=st.findRuleByName(k,b);return O?O.bnf.map(P=>s(P,b)).join(" | "):"RULE_NOT_FOUND {"+k+"}"}function f(k){let b=[];return k.grammarRules.forEach(O=>{if(!/^%/.test(O.name)){let P=O.recover?" /* { recoverUntil="+O.recover+" } */":"";b.push(O.name+" ::= "+o(O.name,k)+P)}}),b.join(`
`)}i.emit=f;let a=0;function u(k,b){throw console.log("reberia restar "+b+" a "+k),new Error("Difference not supported yet")}function c(k){return new RegExp(k.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(k,b,O){let P=null,D=[];return b.children.forEach((j,N)=>{j.type=="Minus"&&u(P,j);let fe=b.children[N+1];fe=fe&&fe.type=="PrimaryDecoration"&&fe.text||"";let Q="";switch(j.type){case"SubItem":let ne="%"+(O+a++);h(k,j,ne),D.push(Q+ne+fe);break;case"NCName":case"StringLiteral":D.push(Q+j.text+fe);break;case"CharCode":case"CharClass":if(fe||Q){let ie={name:"%"+(O+a++),bnf:[[c(j.text)]]};k.push(ie),D.push(Q+ie.name+fe)}else D.push(c(j.text));break;case"PrimaryDecoration":break;default:throw new Error(" HOW SHOULD I PARSE THIS? "+j.type+" -> "+JSON.stringify(j.text))}P=j}),D}function h(k,b,O){let P=b.children.filter(N=>N.type=="SequenceOrDifference").map(N=>d(k,N,O)),D={name:O,bnf:P},j=null;P.forEach(N=>{j=j||N.recover,delete N.recover}),O.indexOf("%")==0&&(D.fragment=!0),j&&(D.recover=j),k.push(D)}function E(k,b=i.defaultParser){let O=b.getAST(k);if(!O)throw new Error("Could not parse "+k);if(O.errors&&O.errors.length)throw O.errors[0];let P=[];return O.children.filter(D=>D.type=="Production").map(D=>{let j=D.children.filter(N=>N.type=="NCName")[0].text;h(P,D,j)}),P}i.getRules=E;function _(k,b=i.defaultParser){return E(k.join(""),b)}i.Transform=_;class T extends st.Parser{constructor(b,O){const P=O&&O.debugRulesParser===!0?new st.Parser(i.RULES,{debug:!0}):i.defaultParser;super(E(b,P),O)}emitSource(){return f(this)}}i.Parser=T})(Ht||(Ht={}));var Bo=Hr.default=Ht;const Zo="[^?/{}*,()#]+",Ho=`
root ::= ("#" recursion | recursion | (query | pattern) recursion* | "#" SEP? | SEP)
recursion ::= (SEP query | pattern)*
query ::= (ESC escaped ESC | property | all | any | regex) typecheck? lookahead?
property ::= ${Zo}
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 ::= [ ]*
`,Jo=new Bo.Parser(Ho),Wo=i=>Jo.getAST(i),Le=0,it=3,At=(i,e)=>`${i}/${e}`,Xr=Object.prototype.toString,Ko=/Object|Array/,Jt=i=>Ko.test(Xr.call(i)),Qo=i=>Xr.call(i).match(/\s([^\]]+)\]/).pop().toLowerCase();function ei(i){return new RegExp(i.text.replace(/(^{|}$)/g,""))}function Yo(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 ir(i){return Array.isArray(i)?i.map(function(e,t){return`${t}`}):Object.prototype.toString.call(i)==="[object Object]"?Object.keys(i):[]}const Qe={mem:[],get(i,e){const t=i[Le][e];if(!Qe.mem.includes(t))return Jt(t)&&Qe.mem.push(t),[t,e,i[Le],At(i[it],e)]},reset(){Qe.mem.length=0}},Wt={any(i,e){const t=e[Le];return ir(t).map(r=>[t[r],r,t,At(e[it],r)])},all(i,e){const t=[e];return Yo(e[Le],(r,n)=>{const l=Qe.get(e,n);l&&t.push(...Wt.all(i,l))}),t},regex(i,e){const t=ei(i),r=e[Le];return ir(r).filter(n=>t.test(n)).map(n=>[r[n],n,r,At(e[it],n)])}},Rt={escaped:(i,e)=>Rt.property(i,e),property:(i,e)=>{const t=i.text;if(e[Le]&&e[Le][t]!==void 0)return[e[Le][t],t,e[Le],At(e[it],t)]},typecheck:(i,e)=>{const t=i.text.replace(/^\?:/,"");if(t==="value")return Jt(e[Le])?void 0:e;if(Qo(e[Le])===t)return e},lookahead:(i,e)=>{let t=!0,r=!1;return i.children.forEach(n=>{if(n.type==="expression"){const l=Rt.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[Le];if(Jt(l)!==!1)return Go(l[t],r,n)?e:void 0}};function Go(i,e,t){if(e===void 0)return i!==void 0;let r;const n=`${i}`;return t.type==="regex"?r=ei(t).test(n):r=n===t.text,e.type==="isnot"&&(r=r===!1&&i!==void 0),r}function Xo(i,e,t,r){const n=[];for(let l=0,s=e.length;l<s;l+=1)n.push(...i(t,e[l],t,r));return n}function ef(i,e,t,r){const n=[];for(let l=0,s=e.length;l<s;l+=1){const o=i(t,e[l],r);o&&n.push(o)}return n}function tf(i,e,t){let r=i;return e.children.forEach(n=>{if(Wt[n.type])r=Xo(Wt[n.type],r,n,t);else if(Rt[n.type])r=ef(Rt[n.type],r,n,t);else throw new Error(`Unknown filter ${n.type}`)}),r}function nf(i,e,t){const r=[];let n=i;return e.children.forEach(l=>{if(l.type==="orPattern"){r.push(...n),n=i;return}n=rn(n,l,t)}),r.push(...n),r}function rf(i){if(i==null)return 1;if(i==="*"||i==="+")return 1/0;const e=parseInt(i);return isNaN(e)?1:e}function lf(i,e,t){const r=[],n=e.children.find(f=>f.type==="quantifier"),l=rf(n&&n.text);let s=i;n&&n.text==="*"&&r.push(...s);let o=0;for(;s.length>0&&o<l;)s=nf(s,e,t),r.push(...s),o+=1;return r}function sf(i,e,t){let r=i;return e.children.forEach(n=>r=rn(r,n,t)),r}function rn(i,e,t){let r;return e.type==="query"?r=tf(i,e,t):e.type==="pattern"?r=lf(i,e,t):r=sf(i,e,t),Qe.reset(),Qe.mem.push(i),r}function of(i,e){return Qe.reset(),Qe.mem.push(i),rn([[i,null,null,"#"]],e)}const lr={value:i=>i.map(e=>e[Le]),pointer:i=>i.map(e=>e[it]),all:i=>i,map:i=>{const e={};return i.forEach(t=>e[t[it]]=t[Le]),e}};var Xe;(function(i){i.POINTER="pointer",i.VALUE="value",i.ALL="all",i.MAP="map"})(Xe||(Xe={}));mt.POINTER=Xe.POINTER;mt.VALUE=Xe.VALUE;mt.ALL=Xe.ALL;mt.MAP=Xe.MAP;function mt(i,e,t=Xe.VALUE){if(e==null)return[];e=e.replace(/(\/$)/g,""),e===""&&(e="#");const r=Wo(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=of(i,r);return typeof t=="function"?n.map(l=>t(...l)):lr[t]?lr[t](n):n}var Tt;(function(i){i.REPLACE_ITEMS="replace",i.INSERT_ITEMS="insert"})(Tt||(Tt={}));Tt.REPLACE_ITEMS;Tt.INSERT_ITEMS;const Fe={$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"]}},ff=i=>Object.prototype.toString.call(i)==="[object Object]",af=Object.keys(Fe).filter(i=>Fe[i].type===!1),sr=Object.prototype.hasOwnProperty;function or(i){if(ff(i)===!1)return;if(i.enum)return"enum";if(Fe[i.type]||Array.isArray(i.type))return i.type;const e=af.filter(t=>i[t]);if(e.length===1)return e[0];if(e.length===0){for(let t=0,r=Fe.object.keywords.length;t<r;t+=1){const n=Fe.object.keywords[t];if(sr.call(i,n))return"object"}for(let t=0,r=Fe.array.keywords.length;t<r;t+=1){const n=Fe.array.keywords[t];if(sr.call(i,n))return"array"}return}throw new Error(`Mutiple typeIds [${e.join(", ")}] matched in ${JSON.stringify(i)}`)}const uf=i=>Object.prototype.toString.call(i)==="[object Object]";function cf(i){const e=[],t=or(i);if(t==null)return e;let r;if(Array.isArray(t)){r={};for(let n=0,l=t.length;n<l;n+=1)Object.assign(r,Fe[t[n]])}else r=Fe[t];return r.definitions==null||r.definitions.forEach(n=>{mt(i,n,(l,s,o,f)=>{uf(l)&&or(l)&&e.push({pointer:dt.join(dt.split(f),!1),def:l})})}),e}const df=i=>Object.prototype.toString.call(i)==="[object Object]";function hf(i,e){if(this.callback(i,e)===!0)return;cf(i).forEach(r=>this.nextTypeDefs(r.def,dt.join(e,r.pointer,!1)))}function Et(i,e,t,r="definitions"){const n=e[r];Object.keys(n).forEach(l=>{if(n[l]===!1||df(n[l])){i.nextTypeDefs(n[l],dt.join(t,r,l,!1));return}})}function ti(i,e,t="#"){const r={callback:e,nextTypeDefs:hf};r.nextTypeDefs(i,t),i.definitions!=null&&(r.callback=(n,l)=>{e(n,l),n.definitions!=null&&Et(r,n,l)},Et(r,i,t)),i.$defs!=null&&(r.callback=(n,l)=>{e(n,l),n.definitions!=null&&Et(r,n,l)},Et(r,i,t,"$defs"))}const pf=/(#|\/)+$/,yt=/#$/,mf=/^[^:]+:\/\/[^/]+\//,gf=/\/[^/]*$/,_f=/#.*$/;function fr(i,e){return i==null&&e==null?"#":e==null?i.replace(yt,""):i==null?e.replace(yt,""):e[0]==="#"?`${i.replace(_f,"")}${e.replace(pf,"")}`:mf.test(e)?e.replace(yt,""):`${i.replace(gf,"")}/${e.replace(yt,"")}`}const ot=/(#|\/)+$/g,bf=["",null,"#"];function Ef(i){if(bf.includes(i))return[];if(i=i.replace(ot,""),i.indexOf("#")===-1)return[i.replace(ot,"")];if(i.indexOf("#")===0)return[i.replace(ot,"")];const e=i.split("#");return e[0]=e[0].replace(ot,""),e[1]=`#${e[1].replace(ot,"")}`,e}const yf=/(#|\/)+$/g,kf=i=>he(i)==="object";function We(i,e,t){if(kf(t)&&(t=t.__ref||t.$ref),t==null)return e;let r;const n=t.replace(yf,"");if(i.remotes[n])return r=i.remotes[n],r&&r.$ref?We(i,e,r.$ref):r;if(i.ids[t])return r=nt.get(e,i.ids[t]),r&&r.$ref?We(i,e,r.$ref):r;const l=Ef(t);if(l.length===0)return e;if(l.length===1){if(t=l[0],i.remotes[t])return r=i.remotes[t],We(i,e,r.$ref);if(i.ids[t])return r=nt.get(e,i.ids[t]),r&&r.$ref?We(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):We(i,i.remotes[s],t);if(i.ids[s])return We(i,nt.get(e,i.ids[s]),t)}return r=nt.get(e,i.ids[t]||t),r&&r.$ref?We(i,e,r.$ref):r}const ar="__compiled",ur="__ref",vf="getRef",wf="getRoot",Of=/(#|\/)+$/g;function Sf(i,e,t=e,r=!1){if(e===!0||e===!1||e===void 0||e[ar]!==void 0)return e;const n={ids:{},remotes:i.remotes},l=JSON.stringify(e),s=JSON.parse(l);if(Object.defineProperty(s,ar,{enumerable:!1,value:!0}),Object.defineProperty(s,vf,{enumerable:!1,value:We.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={},f=()=>s;return ti(s,(a,u)=>{var c;if(a.$id){if(a.$id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(u)){const T=u.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),k=nt.get(s,T);a.$id=(c=k.$id)!==null&&c!==void 0?c:a.$id}n.ids[a.$id.replace(Of,"")]=u}u=`#${u}`.replace(/##+/,"#");const d=u.replace(/\/[^/]+$/,""),h=u.replace(/\/[^/]+\/[^/]+$/,""),E=o[d]||o[h],_=fr(E,a.$id);o[u]=_,n.ids[_]==null&&(n.ids[_]=u),a.$ref&&!a[ur]&&(Object.defineProperty(a,ur,{enumerable:!1,value:fr(_,a.$ref)}),Object.defineProperty(a,wf,{enumerable:!1,value:f}))}),s}function Pf(i,e,t,r=i.rootSchema,n="#"){r=i.resolveRef(r),t(r,e,n);const l=he(e);l==="object"?Object.keys(e).forEach(s=>{const o=i.step(s,r,e,n),f=e[s];i.each(f,t,o,`${n}/${s}`)}):l==="array"&&e.forEach((s,o)=>{const f=i.step(o,r,e,n);i.each(s,t,f,`${n}/${o}`)})}const pe={additionalItemsError:B("AdditionalItemsError"),additionalPropertiesError:B("AdditionalPropertiesError"),anyOfError:B("AnyOfError"),allOfError:B("AllOfError"),constError:B("ConstError"),containsError:B("ContainsError"),containsArrayError:B("ContainsArrayError"),containsAnyError:B("ContainsAnyError"),enumError:B("EnumError"),formatURLError:B("FormatURLError"),formatURIError:B("FormatURIError"),formatURIReferenceError:B("FormatURIReferenceError"),formatURITemplateError:B("FormatURITemplateError"),formatDateError:B("FormatDateaError"),formatDateTimeError:B("FormatDateTimeError"),formatEmailError:B("FormatEmailError"),formatHostnameError:B("FormatHostnameError"),formatIPV4Error:B("FormatIPV4Error"),formatIPV4LeadingZeroError:B("FormatIPV4LeadingZeroError"),formatIPV6Error:B("FormatIPV6Error"),formatIPV6LeadingZeroError:B("FormatIPV6LeadingZeroError"),formatJSONPointerError:B("FormatJSONPointerError"),formatRegExError:B("FormatRegExError"),formatTimeError:B("FormatTimeError"),invalidSchemaError:B("InvalidSchemaError"),invalidDataError:B("InvalidDataError"),invalidTypeError:B("InvalidTypeError"),invalidPropertyNameError:B("InvalidPropertyNameError"),maximumError:B("MaximumError"),maxItemsError:B("MaxItemsError"),maxLengthError:B("MaxLengthError"),maxPropertiesError:B("MaxPropertiesError"),minimumError:B("MinimumError"),minItemsError:B("MinItemsError"),minItemsOneError:B("MinItemsOneError"),minLengthError:B("MinLengthError"),minLengthOneError:B("MinLengthOneError"),minPropertiesError:B("MinPropertiesError"),missingDependencyError:B("MissingDependencyError"),missingOneOfPropertyError:B("MissingOneOfPropertyError"),multipleOfError:B("MultipleOfError"),multipleOneOfError:B("MultipleOneOfError"),noAdditionalPropertiesError:B("NoAdditionalPropertiesError"),notError:B("NotError"),oneOfError:B("OneOfError"),oneOfPropertyError:B("OneOfPropertyError"),patternError:B("PatternError"),patternPropertiesError:B("PatternPropertiesError"),requiredPropertyError:B("RequiredPropertyError"),typeError:B("TypeError"),undefinedValueError:B("UndefinedValueError"),uniqueItemsError:B("UniqueItemsError"),unknownPropertyError:B("UnknownPropertyError"),valueNotEmptyError:B("ValueNotEmptyError")};var ni={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 f=o.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/);return f};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 f=[],a="",u="",c="",d="",h="",E="";if(f=t(o),a=f[1],u=f[2],c=f[3],d=f[4],h=f[5],!!(a&&a.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(a.toLowerCase()))return E+=a+":",u&&u.length&&(E+="//"+u),E+=c,d&&d.length&&(E+="?"+d),h&&h.length&&(E+="#"+h),E}}}function n(o,f){if(r(o)){var a=[],u="",c="",d="",h="",E="",_="",T="";if(a=t(o),u=a[1],c=a[2],d=a[3],E=a[4],_=a[5],!!u){if(f){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+$/,"")),T+=u+":",T+="//"+c,h&&(T+=h),T+=d,E&&E.length&&(T+="?"+E),_&&_.length&&(T+="#"+_),T}}}function l(o){return n(o,!0)}function s(o){return n(o)||l(o)}})(i)})(ni);var Af=ni.exports;const cr=It(Af),Rf=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]))$"),Tf=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,If=/^((([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,jf=/^(?=.{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])?)*\.?$/,Nf=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Lf=/^(\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],Cf=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Df=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,Mf=/^(?:[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,Vf=/^(?:(?:[^\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,$f={date:(i,e,t,r)=>{if(typeof t!="string")return;const n=t.match(Nf);if(!n)return pe.formatDateTimeError({value:t,pointer:r});const l=+n[1],s=+n[2],o=+n[3],f=l%4===0&&(l%100!==0||l%400===0);if(!(s>=1&&s<=12&&o>=1&&o<=(s==2&&f?29:zf[s])))return pe.formatDateError({value:t,pointer:r})},"date-time":(i,e,t,r)=>{if(typeof t=="string")return t===""||Rf.test(t)?new Date(t).toString()==="Invalid Date"?pe.formatDateTimeError({value:t,pointer:r}):void 0:pe.formatDateTimeError({value:t,pointer:r})},email:(i,e,t,r)=>{if(typeof t!="string")return;if(t[0]==='"')return pe.formatEmailError({value:t,pointer:r});const[n,l,...s]=t.split("@");if(!n||!l||s.length!==0||n.length>64||l.length>253)return pe.formatEmailError({value:t,pointer:r});if(n[0]==="."||n.endsWith(".")||n.includes(".."))return pe.formatEmailError({value:t,pointer:r});if(!/^[a-z0-9.-]+$/i.test(l)||!/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(n))return pe.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 pe.formatEmailError({value:t,pointer:r})},hostname:(i,e,t,r)=>{if(typeof t=="string"&&!(t===""||jf.test(t)))return pe.formatHostnameError({value:t,pointer:r})},ipv4:(i,e,t,r)=>{if(!(typeof t!="string"||t==="")){if(t&&t[0]==="0")return pe.formatIPV4LeadingZeroError({value:t,pointer:r});if(!(t.length<=15&&Tf.test(t)))return pe.formatIPV4Error({value:t,pointer:r})}},ipv6:(i,e,t,r)=>{if(!(typeof t!="string"||t==="")){if(t&&t[0]==="0")return pe.formatIPV6LeadingZeroError({value:t,pointer:r});if(!(t.length<=45&&If.test(t)))return pe.formatIPV6Error({value:t,pointer:r})}},"json-pointer":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!Cf.test(t))return pe.formatJSONPointerError({value:t,pointer:r})},"relative-json-pointer":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!Df.test(t))return pe.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 pe.formatRegExError({value:t,pointer:r})}if(!(typeof t=="object"||typeof t=="number"||Array.isArray(t)))return pe.formatRegExError({value:t,pointer:r})},time:(i,e,t,r)=>{if(typeof t!="string")return;const n=t.match(Lf);if(!n)return pe.formatDateTimeError({value:t,pointer:r});const l=+n[1],s=+n[2],o=+n[3],f=!!n[5];if(!((l<=23&&s<=59&&o<=59||l==23&&s==59&&o==60)&&f))return pe.formatTimeError({value:t,pointer:r})},uri:(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!cr.isUri(t))return pe.formatURIError({value:t,pointer:r})},"uri-reference":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!Mf.test(t))return pe.formatURIReferenceError({value:t,pointer:r})},"uri-template":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!Vf.test(t))return pe.formatURITemplateError({value:t,pointer:r})},url:(i,e,t,r)=>{if(!(t===""||cr.isWebUri(t)))return pe.formatURLError({value:t,pointer:r})}};function Uf(i){switch(he(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 xf={addOptionalProps:!0,removeInvalidData:!1};let Be;function $t(i,e){const{$ref:t}=i;return t==null?!0:(Be[e]==null||Be[e][t]==null?0:Be[e][t])<pt.GET_TEMPLATE_RECURSION_LIMIT}function Ut(i,e,t){if(t==null)throw new Error(`missing pointer ${t}`);const{$ref:r}=e;return r==null?e:(Be[t]=Be[t]||{},Be[t][r]=Be[t][r]||0,Be[t][r]+=1,i.resolveRef(e))}function qf(i,e){if(i==="string")return JSON.stringify(e);if(typeof e!="string")return null;try{if(e=JSON.parse(e),typeof e===i)return e}catch{}return null}function ri(i,e,t,r){if(he(e)!=="object")return Object.assign({pointer:r},e);if($t(e,r)===!1&&t==null)return!1;let n=tn(Ut(i,e,r));if(Array.isArray(e.anyOf)&&e.anyOf.length>0){if($t(e.anyOf[0],`${r}/anyOf/0`)){const l=Ut(i,e.anyOf[0],`${r}/anyOf/0`);n=ct(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;l<s;l+=1)$t(e.allOf[l],`${r}/allOf/${l}`)&&(n=ct(n,Ut(i,e.allOf[l],`${r}/allOf/${l}`)),n.pointer=e.allOf[l].$ref||n.pointer);delete n.allOf}return n.pointer=n.pointer||e.$ref||r,n}const dr=i=>i&&typeof i=="object";function qe(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=ri(i,t,e,r);if(!dr(l))return;if(r=l.pointer,l!=null&&l.const)return l.const;if(Array.isArray(l.oneOf))if(Uf(e)){const a=l.oneOf[0].type||l.type||l.const&&typeof l.const||he(e);l={...l.oneOf[0],type:a}}else{const a=nn(i,e,l);if(Te(a)){if(e!=null&&n.removeInvalidData!==!0)return e;l=l.oneOf[0],e=void 0}else l=a}if(!dr(l)||l.type==null)return;const s=Array.isArray(l.type)?Ff(l.type,e,l.default):l.type,o=he(e);return e!=null&&o!==s&&!(o==="number"&&s==="integer")&&(e=qf(s,e)),hr[s]==null?n.removeInvalidData?void 0:e:hr[s](i,l,e,r,n)}function Ff(i,e,t){if(e==null){if(t!=null){const n=he(t);if(i.includes(n))return n}return i[0]}const r=he(e);return i.includes(r)?r:i[0]}const hr={null:(i,e,t)=>ft(e,t,null),string:(i,e,t)=>ft(e,t,""),number:(i,e,t)=>ft(e,t,0),integer:(i,e,t)=>ft(e,t,0),boolean:(i,e,t)=>ft(e,t,!1),object:(i,e,t,r,n)=>{var l;const s=e.default===void 0?{}:e.default,o={},f=(l=e.required)!==null&&l!==void 0?l:[];if(e.properties&&Object.keys(e.properties).forEach(a=>{const u=t==null||t[a]==null?s[a]:t[a],c=f.includes(a);(u!=null||c||n.addOptionalProps)&&(o[a]=qe(i,u,e.properties[a],`${r}/properties/${a}`,n))}),e.dependencies&&Object.keys(e.dependencies).forEach(a=>{if(o[a]===void 0)return;const u=e.dependencies[a];if(Array.isArray(u)){u.forEach(d=>{o[d]=qe(i,o[d],e.properties[d],`${r}/properties/${d}`,n)});return}if(he(u)!=="object")return;const c=qe(i,t,{...u,type:"object"},`${r}/dependencies/${a}`,n);c&&!Te(c)&&Object.assign(o,c)}),t&&Object.keys(t).forEach(a=>o[a]==null&&(o[a]=t[a])),e.if&&(e.then||e.else)){const a=i.isValid(o,e.if);if(a&&e.then){const u=i.getTemplate(o,{type:"object",...e.then},n);Object.assign(o,u)}else if(!a&&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 f=e.default===void 0?[]:e.default;e.minItems=e.minItems||0;const a=t||[];if(e.items==null)return a;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);c<d;c+=1)a[c]=qe(i,a[c]==null?f[c]:a[c],e.items[c],`${r}/items/${c}`,n);return a}if(he(e.items)!=="object")return a;const u=ri(i,e.items,t,r);if(u===!1)return a;if(r=u.pointer||r,u.oneOf&&a.length===0){const c=u.oneOf[0];for(let d=0;d<e.minItems;d+=1)a[d]=qe(i,a[d]==null?f[d]:a[d],c,`${r}/oneOf/0`,n);return a}if(u.oneOf&&a.length>0){const c=Math.max(e.minItems,a.length);for(let d=0;d<c;d+=1){let h=a[d]==null?f[d]:a[d],E=nn(i,h,u);E==null||Te(E)?h!=null&&n.removeInvalidData!==!0?a[d]=h:(h=void 0,E=u.oneOf[0],a[d]=qe(i,h,E,`${r}/oneOf/${d}`,n)):a[d]=qe(i,h,E,`${r}/oneOf/${d}`,n)}return a}if(u.type){for(let c=0,d=Math.max(e.minItems,a.length);c<d;c+=1)a[c]=qe(i,a[c]==null?f[c]:a[c],u,`${r}/items`,n);return a}return a}};function ft(i,e,t){return e??(i.const?i.const:i.default===void 0&&Array.isArray(i.enum)?i.enum[0]:i.default===void 0?t:i.default)}const Bf=(i,e,t=i.rootSchema,r=xf)=>(Be={mi:{}},qe(i,e,t,"#",r));function Zf(i,e,t=i.rootSchema,r="#"){return i.validate(e,t,r).length===0}function Kt(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<r;n++)if(!Kt(i[n],e[n]))return!1;return!0}if(t==="object"){if(!i||!e)return i===e;const r=Object.keys(i),n=Object.keys(e);if(r.length!==n.length)return!1;for(const s of r)if(!Kt(i[s],e[s]))return!1;return!0}return i===e}function pr(i){const e=[];let t=0;const r=i.length;for(;t<r;){const n=i.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){const l=i.charCodeAt(t++);(l&64512)==56320?e.push(((n&1023)<<10)+(l&1023)+65536):(e.push(n),t--)}else e.push(n)}return e}const xt=pt.floatingPointPrecision,Hf=Object.prototype.hasOwnProperty,mr=(i,e)=>!(i[e]===void 0||!Hf.call(i,e)),Jf={additionalProperties:(i,e,t,r)=>{if(e.additionalProperties===!0||e.additionalProperties==null||he(e.patternProperties)==="object"&&e.additionalProperties===!1)return;const n=[];let l=Object.keys(t).filter(o=>pt.propertyBlacklist.includes(o)===!1);const s=Object.keys(e.properties||{});if(he(e.patternProperties)==="object"){const o=Object.keys(e.patternProperties).map(f=>new RegExp(f));l=l.filter(f=>{for(let a=0;a<o.length;a+=1)if(o[a].test(f))return!1;return!0})}for(let o=0,f=l.length;o<f;o+=1){const a=l[o];if(s.indexOf(a)===-1){const u=typeof e.additionalProperties=="object";if(u&&Array.isArray(e.additionalProperties.oneOf)){const c=i.resolveOneOf(t[a],e.additionalProperties,`${r}/${a}`);Te(c)?n.push(i.errors.additionalPropertiesError({schema:e.additionalProperties,property:l[o],properties:s,pointer:r,errors:c.data.errors})):n.push(...i.validate(t[a],c,r))}else u?n.push(...i.validate(t[a],e.additionalProperties,`${r}/${a}`)):n.push(i.errors.noAdditionalPropertiesError({property:l[o],properties:s,pointer:r}))}}return n},allOf:(i,e,t,r)=>{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<e.anyOf.length;n+=1)if(i.isValid(t,e.anyOf[n]))return;return i.errors.anyOfError({anyOf:e.anyOf,value:t,pointer:r})}},dependencies:(i,e,t,r)=>{if(he(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=he(e.dependencies[l]);if(o==="array")s=e.dependencies[l].filter(f=>t[f]===void 0).map(f=>i.errors.missingDependencyError({missingProperty:f,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=he(t);if(n==="object"||n==="array"){const l=JSON.stringify(t);for(let s=0;s<e.enum.length;s+=1)if(JSON.stringify(e.enum[s])===l)return}else if(e.enum.includes(t))return;return i.errors.enumError({values:e.enum,value:t,pointer:r})},format:(i,e,t,r)=>{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<t.length;l+=1){const s=t[l],o=i.step(l,e,t,r);if(Te(o))return[o];const f=i.validate(s,o,`${r}/${l}`);n.push(...f)}return n},maximum:(i,e,t,r)=>{if(!isNaN(e.maximum)){if(e.maximum&&e.maximum<t)return i.errors.maximumError({maximum:e.maximum,length:t,pointer:r});if(e.maximum&&e.exclusiveMaximum===!0&&e.maximum===t)return i.errors.maximumError({maximum:e.maximum,length:t,pointer:r})}},maxItems:(i,e,t,r)=>{if(!isNaN(e.maxItems)&&e.maxItems<t.length)return i.errors.maxItemsError({maximum:e.maxItems,length:t.length,pointer:r})},maxLength:(i,e,t,r)=>{if(isNaN(e.maxLength))return;const n=pr(t).length;if(e.maxLength<n)return i.errors.maxLengthError({maxLength:e.maxLength,length:n,pointer:r})},maxProperties:(i,e,t,r)=>{const n=Object.keys(t).length;if(isNaN(e.maxProperties)===!1&&e.maxProperties<n)return i.errors.maxPropertiesError({maxProperties:e.maxProperties,length:n,pointer:r})},minLength:(i,e,t,r)=>{if(isNaN(e.minLength))return;const n=pr(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*xt%(e.multipleOf*xt)/xt!==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),Te(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(he(l)!=="object")return;const s=[],o=Object.keys(t),f=Object.keys(l).map(a=>({regex:new RegExp(a),patternSchema:l[a]}));return o.forEach(a=>{let u=!1;for(let c=0,d=f.length;c<d;c+=1)if(f[c].regex.test(a)){u=!0;const h=i.validate(t[a],f[c].patternSchema,`${r}/${a}`);h&&h.length>0&&s.push(...h)}n[a]||u===!1&&e.additionalProperties===!1&&s.push(i.errors.patternPropertiesError({key:a,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<l.length;s+=1){const o=l[s];if(mr(t,o)){const f=i.step(o,e,t,r),a=i.validate(t[o],f,`${r}/${o}`);n.push(...a)}}return n},propertiesRequired:(i,e,t,r)=>{const n=[],l=Object.keys(e.properties||{});for(let s=0;s<l.length;s+=1){const o=l[s];if(t[o]===void 0)n.push(i.errors.requiredPropertyError({key:o,pointer:r}));else{const f=i.step(o,e,t,r),a=i.validate(t[o],f,`${r}/${o}`);n.push(...a)}}return n},required:(i,e,t,r)=>{if(Array.isArray(e.required)!==!1)return e.required.map(n=>{if(!mr(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<t.length;o+=1)Kt(l,t[o])&&n.push(i.errors.uniqueItemsError({pointer:r,itemPointer:`${r}/${s}`,duplicatePointer:`${r}/${o}`,value:JSON.stringify(l)}))}),n}},Wf={...Jf,contains:(i,e,t,r)=>{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(he(e.contains)==="object"){for(let n=0;n<t.length;n+=1)if(i.isValid(t[n],e.contains))return;return i.errors.containsError({pointer:r,schema:JSON.stringify(e.contains)})}},exclusiveMaximum:(i,e,t,r)=>{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<t)return i.errors.maximumError({maximum:e.maximum,length:t,pointer:r})},minimum:(i,e,t,r)=>{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(he(l)!=="object")return;const s=[],o=Object.keys(t),f=Object.keys(l).map(a=>({regex:new RegExp(a),patternSchema:l[a]}));return o.forEach(a=>{let u=!1;for(let c=0,d=f.length;c<d;c+=1)if(f[c].regex.test(a)){if(u=!0,f[c].patternSchema===!1){s.push(i.errors.patternPropertiesError({key:a,pointer:r,patterns:Object.keys(l).join(",")}));return}const h=i.validate(t[a],f[c].patternSchema,`${r}/${a}`);h&&h.length>0&&s.push(...h)}n[a]||u===!1&&e.additionalProperties===!1&&s.push(i.errors.patternPropertiesError({key:a,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||he(e.propertyNames)!=="object")return;const n=[],l=Object.keys(t),s={...e.propertyNames,type:"string"};return l.forEach(o=>{const f=i.validate(o,s,`${r}/${o}`);f.length>0&&n.push(i.errors.invalidPropertyNameError({property:o,pointer:r,validationError:f[0],value:t[o]}))}),n}};function Kf(i,e,t=i.rootSchema,r="#"){let n=!1,l=tn(t);for(let s=0;s<t.anyOf.length;s+=1){const o=i.resolveRef(t.anyOf[s]);i.isValid(e,t.anyOf[s],r)&&(n=!0,l=ct(l,o))}return n===!1?pe.anyOfError({value:e,pointer:r,anyOf:JSON.stringify(t.anyOf)}):(delete l.anyOf,l)}function Ke(i){const e={type:he(i)};return e.type==="object"&&(e.properties={},Object.keys(i).forEach(t=>e.properties[t]=Ke(i[t]))),e.type==="array"&&i.length===1?e.items=Ke(i[0]):e.type==="array"&&(e.items=i.map(Ke)),e}function Qf(i,e,t=i.rootSchema){const r=i.step(e,t,{},"#");return Te(r)?r.code==="one-of-error"?r.data.oneOf.map(n=>i.resolveRef(n)):r:[r]}const gr={array:(i,e,t,r,n)=>{const l=he(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 Ke(r[e]);if(t.items[e]===!1)return pe.invalidDataError({key:e,value:r[e],pointer:n});if(t.items[e])return i.resolveRef(t.items[e]);if(t.additionalItems===!1)return pe.additionalItemsError({key:e,value:r[e],pointer:n});if(t.additionalItems===!0||t.additionalItems===void 0)return Ke(r[e]);if(he(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]?Ke(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=ct(t,o),Te(t))return t}if(Array.isArray(t.anyOf)&&(t=i.resolveAnyOf(r,t,n),Te(t))||Array.isArray(t.allOf)&&(t=i.resolveAllOf(r,t,n),Te(t)))return t;let l;if(t.properties&&t.properties[e]!==void 0){if(l=i.resolveRef(t.properties[e]),Te(l))return l;if(l&&Array.isArray(l.oneOf)){let o=i.resolveOneOf(r[e],l,`${n}/${e}`);const f=l.oneOf.findIndex(a=>a===o);return o.variableSchema=!0,o.oneOfIndex=f,o.oneOfSchema=l,o}if(l)return l}const{dependencies:s}=t;if(he(s)==="object"){const o=Object.keys(s).filter(f=>he(s[f])==="object");for(let f=0,a=o.length;f<a;f+=1){const u=o[f],c=vt(i,e,s[u],r,`${n}/${u}`);if(!Te(c))return c}}if(t.if&&(t.then||t.else)){const o=i.isValid(r,t.if);if(o&&t.then){const f=vt(i,e,t.then,r,n);if(typeof f.type=="string"&&f.type!=="error")return f}if(!o&&t.else){const f=vt(i,e,t.else,r,n);if(typeof f.type=="string"&&f.type!=="error")return f}}if(he(t.patternProperties)==="object"){let o;const f=Object.keys(t.patternProperties);for(let a=0,u=f.length;a<u;a+=1)if(o=new RegExp(f[a]),o.test(e))return t.patternProperties[f[a]]}return he(t.additionalProperties)==="object"?t.additionalProperties:t.additionalProperties===!0?Ke(r[e]):pe.unknownPropertyError({property:e,value:r,pointer:`${n}`})}};function vt(i,e,t,r,n="#"){if(Array.isArray(t.type)){const o=he(r);return t.type.includes(o)?gr[o](i,`${e}`,t,r,n):i.errors.typeError({value:r,pointer:n,expected:t.type,received:o})}const l=t.type||he(r),s=gr[l];return s?s(i,`${e}`,t,r,n):new Error(`Unsupported schema type ${t.type} for key ${e}`)}const Yf={array:(i,e,t,r)=>i.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 Gf=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 Xf=It(Gf);function ea(i,e){const t=he(i);return t==="number"&&(e==="integer"||Array.isArray(e)&&e.includes("integer"))?Number.isInteger(i)||isNaN(i)?"integer":"number":t}function ta(i,e,t=i.rootSchema,r="#"){if(t=i.resolveRef(t),he(t)==="boolean")return t?[]:[i.errors.invalidDataError({value:e,pointer:r})];if(Te(t))return[t];if(t.const!==void 0)return Xf(t.const,e)?[]:[i.errors.constError({value:e,expected:t.const,pointer:r})];const n=ea(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})]:at(i.validateType[n](i,t,e,r)).filter(Pt)}const ii={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:Wf,validateType:Yf,validateFormat:$f,errors:pe,addRemoteSchema:xo,compileSchema:Sf,createSchemaOf:Ke,each:Pf,eachSchema:ti,getChildSchemaSelection:Qf,getSchema:$o,getTemplate:Bf,isValid:Zf,resolveAllOf:zo,resolveAnyOf:Kf,resolveOneOf:go,resolveRef:Do,step:vt,validate:ta};class na extends Uo{constructor(e,t={}){super(ct(ii,t),e)}}({...ii});function _r(i,e,t){const r=i.slice();return r[10]=e[t],r[11]=e,r[12]=t,r}function br(i){let e,t,r=i[12]+1+"",n,l,s,o,f,a,u,c,d;function h(T){i[7](T,i[12])}let E={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&&(E.value=i[0][i[12]]),o=new ln({props:E}),$e.push(()=>xe(o,"value",h));function _(){return i[8](i[12])}return c=new mi({props:{size:"small",kind:"ghost",icon:Ki,expressive:!1,iconDescription:"Remove",tooltipPosition:"top",tooltipAlignment:"end"}}),c.$on("click",_),{c(){e=$("div"),t=$("div"),n=me(r),l=se(),s=$("div"),Z(o.$$.fragment),a=se(),u=$("div"),Z(c.$$.fragment),this.h()},l(T){e=U(T,"DIV",{class:!0});var k=C(e);t=U(k,"DIV",{class:!0});var b=C(t);n=ge(b,r),b.forEach(p),l=oe(k),s=U(k,"DIV",{class:!0});var O=C(s);te(o.$$.fragment,O),O.forEach(p),a=oe(k),u=U(k,"DIV",{class:!0});var P=C(u);te(c.$$.fragment,P),P.forEach(p),k.forEach(p),this.h()},h(){I(t,"class","mt-3 w-8 shrink-0 text-lg"),I(s,"class","flex w-full grow flex-col"),I(u,"class","mt-3"),I(e,"class","flex w-full flex-row")},m(T,k){v(T,e,k),q(e,t),q(t,n),q(e,l),q(e,s),H(o,s,null),q(e,a),q(e,u),H(c,u,null),d=!0},p(T,k){i=T;const b={};k&2&&(b.path=i[1]+"/"+i[12]),k&8&&(b.schema=i[3]),k&4&&(b.rootValue=i[2]),k&16&&(b.validationErrors=i[4]),k&32&&(b.customComponents=i[5]),!f&&k&1&&(f=!0,b.value=i[0][i[12]],Je(()=>f=!1)),o.$set(b)},i(T){d||(m(o.$$.fragment,T),m(c.$$.fragment,T),d=!0)},o(T){g(o.$$.fragment,T),g(c.$$.fragment,T),d=!1},d(T){T&&p(e),J(o),J(c)}}}function ra(i){let e,t,r,n,l,s,o,f,a=i[0]||[],u=[];for(let d=0;d<a.length;d+=1)u[d]=br(_r(i,a,d));const c=d=>g(u[d],1,1,()=>{u[d]=null});return{c(){e=$("div");for(let d=0;d<u.length;d+=1)u[d].c();t=se(),r=$("div"),n=$("button"),l=me("+ add"),this.h()},l(d){e=U(d,"DIV",{class:!0});var h=C(e);for(let T=0;T<u.length;T+=1)u[T].l(h);t=oe(h),r=U(h,"DIV",{});var E=C(r);n=U(E,"BUTTON",{class:!0});var _=C(n);l=ge(_,"+ add"),_.forEach(p),E.forEach(p),h.forEach(p),this.h()},h(){var d;I(n,"class","bg-slate-600 p-2 text-white hover:bg-slate-400"),S(n,"ml-8",((d=i[0])==null?void 0:d.length)>0),I(e,"class","bx--form-item flex flex-col")},m(d,h){v(d,e,h);for(let E=0;E<u.length;E+=1)u[E]&&u[E].m(e,null);q(e,t),q(e,r),q(r,n),q(n,l),s=!0,o||(f=be(n,"click",i[9]),o=!0)},p(d,[h]){var E;if(h&63){a=d[0]||[];let _;for(_=0;_<a.length;_+=1){const T=_r(d,a,_);u[_]?(u[_].p(T,h),m(u[_],1)):(u[_]=br(T),u[_].c(),m(u[_],1),u[_].m(e,t))}for(Y(),_=a.length;_<u.length;_+=1)c(_);G()}(!s||h&1)&&S(n,"ml-8",((E=d[0])==null?void 0:E.length)>0)},i(d){if(!s){for(let h=0;h<a.length;h+=1)m(u[h]);s=!0}},o(d){u=u.filter(Boolean);for(let h=0;h<u.length;h+=1)g(u[h]);s=!1},d(d){d&&p(e),He(u,d),o=!1,f()}}}function ia(i,e,t){let r,{path:n}=e,{value:l=[]}=e,{rootValue:s}=e,{schema:o}=e,{validationErrors:f=[]}=e,{customComponents:a}=e;function u(h,E){i.$$.not_equal(l[E],h)&&(l[E]=h,t(0,l))}const c=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,f=h.validationErrors),"customComponents"in h&&t(5,a=h.customComponents)},i.$$.update=()=>{i.$$.dirty&11&&t(6,r=o.getTemplate(void 0,o.getSchema(n+"/0",l)))},[l,n,s,o,f,a,r,u,c,d]}class la extends ue{constructor(e){super(),ce(this,e,ia,ra,de,{path:1,value:0,rootValue:2,schema:3,validationErrors:4,customComponents:5})}}function Er(i,e,t){const r=i.slice();return r[24]=e[t],r[25]=e,r[26]=t,r}function yr(i,e,t){const r=i.slice();return r[20]=e[t],r}function sa(i){const e=i.slice(),t=Object.keys(e[10].properties??{});return e[23]=t,e}function kr(i){let e,t,r,n,l,s,o;const f=[fa,oa],a=[];function u(_,T){return _[10].type==="object"?0:1}e=u(i),t=a[e]=f[e](i);const c=[_a,ga,ma,pa,ha,da,ca,ua,aa],d=[];function h(_,T){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 E(_,T){return T===7?sa(_):_}return n=h(i),l=d[n]=c[n](E(i,n)),{c(){t.c(),r=se(),l.c(),s=V()},l(_){t.l(_),r=oe(_),l.l(_),s=V()},m(_,T){a[e].m(_,T),v(_,r,T),d[n].m(_,T),v(_,s,T),o=!0},p(_,T){let k=e;e=u(_),e===k?a[e].p(_,T):(Y(),g(a[k],1,1,()=>{a[k]=null}),G(),t=a[e],t?t.p(_,T):(t=a[e]=f[e](_),t.c()),m(t,1),t.m(r.parentNode,r));let b=n;n=h(_),n===b?d[n].p(E(_,n),T):(Y(),g(d[b],1,1,()=>{d[b]=null}),G(),l=d[n],l?l.p(E(_,n),T):(l=d[n]=c[n](E(_,n)),l.c()),m(l,1),l.m(s.parentNode,s))},i(_){o||(m(t),m(l),o=!0)},o(_){g(t),g(l),o=!1},d(_){a[e].d(_),_&&p(r),d[n].d(_),_&&p(s)}}}function oa(i){let e,t,r,n,l=i[10].description&&i[6]&&vr(i);return{c(){e=$("div"),t=me(i[12]),r=se(),l&&l.c(),n=V(),this.h()},l(s){e=U(s,"DIV",{class:!0});var o=C(e);t=ge(o,i[12]),o.forEach(p),r=oe(s),l&&l.l(s),n=V(),this.h()},h(){I(e,"class","label text-s mb-2 font-medium text-gray-700")},m(s,o){v(s,e,o),q(e,t),v(s,r,o),l&&l.m(s,o),v(s,n,o)},p(s,o){o&4096&&Pe(t,s[12]),s[10].description&&s[6]?l?l.p(s,o):(l=vr(s),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i:ae,o:ae,d(s){s&&p(e),s&&p(r),l&&l.d(s),s&&p(n)}}}function fa(i){let e,t,r=i[10].description&&i[6]&&wr(i);return{c(){r&&r.c(),e=V()},l(n){r&&r.l(n),e=V()},m(n,l){r&&r.m(n,l),v(n,e,l),t=!0},p(n,l){n[10].description&&n[6]?r?(r.p(n,l),l&1088&&m(r,1)):(r=wr(n),r.c(),m(r,1),r.m(e.parentNode,e)):r&&(Y(),g(r,1,1,()=>{r=null}),G())},i(n){t||(m(r),t=!0)},o(n){g(r),t=!1},d(n){r&&r.d(n),n&&p(e)}}}function vr(i){let e,t=i[10].description+"",r;return{c(){e=$("div"),r=me(t),this.h()},l(n){e=U(n,"DIV",{class:!0});var l=C(e);r=ge(l,t),l.forEach(p),this.h()},h(){I(e,"class","bx--label pb-2 text-xs text-gray-500")},m(n,l){v(n,e,l),q(e,r)},p(n,l){l&1024&&t!==(t=n[10].description+"")&&Pe(r,t)},d(n){n&&p(e)}}}function wr(i){let e,t,r;return t=new oo({props:{source:i[10].description}}),{c(){e=$("div"),Z(t.$$.fragment),this.h()},l(n){e=U(n,"DIV",{class:!0});var l=C(e);te(t.$$.fragment,l),l.forEach(p),this.h()},h(){I(e,"class","description mb-4")},m(n,l){v(n,e,l),H(t,e,null),r=!0},p(n,l){const s={};l&1024&&(s.source=n[10].description),t.$set(s)},i(n){r||(m(t.$$.fragment,n),r=!0)},o(n){g(t.$$.fragment,n),r=!1},d(n){n&&p(e),J(t)}}}function aa(i){let e,t=JSON.stringify(i[10])+"",r;return{c(){e=me("Unknown property: "),r=me(t)},l(n){e=ge(n,"Unknown property: "),r=ge(n,t)},m(n,l){v(n,e,l),v(n,r,l)},p(n,l){l&1024&&t!==(t=JSON.stringify(n[10])+"")&&Pe(r,t)},i:ae,o:ae,d(n){n&&p(e),n&&p(r)}}}function ua(i){let e,t,r=i[23],n=[];for(let s=0;s<r.length;s+=1)n[s]=Or(Er(i,r,s));const l=s=>g(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=V()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=V()},m(s,o){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(s,o);v(s,e,o),t=!0},p(s,o){if(o&1463){r=s[23];let f;for(f=0;f<r.length;f+=1){const a=Er(s,r,f);n[f]?(n[f].p(a,o),m(n[f],1)):(n[f]=Or(a),n[f].c(),m(n[f],1),n[f].m(e.parentNode,e))}for(Y(),f=r.length;f<n.length;f+=1)l(f);G()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)m(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)g(n[o]);t=!1},d(s){He(n,s),s&&p(e)}}}function ca(i){let e,t,r;function n(s){i[18](s)}let l={path:i[2],schema:i[1],validationErrors:i[7],customComponents:i[8],rootValue:i[4]};return i[0]!==void 0&&(l.value=i[0]),e=new la({props:l}),$e.push(()=>xe(e,"value",n)),{c(){Z(e.$$.fragment)},l(s){te(e.$$.fragment,s)},m(s,o){H(e,s,o),r=!0},p(s,o){const f={};o&4&&(f.path=s[2]),o&2&&(f.schema=s[1]),o&128&&(f.validationErrors=s[7]),o&256&&(f.customComponents=s[8]),o&16&&(f.rootValue=s[4]),!t&&o&1&&(t=!0,f.value=s[0],Je(()=>t=!1)),e.$set(f)},i(s){r||(m(e.$$.fragment,s),r=!0)},o(s){g(e.$$.fragment,s),r=!1},d(s){J(e,s)}}}function da(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 gi({props:s}),$e.push(()=>xe(t,"toggled",l)),{c(){e=$("div"),Z(t.$$.fragment)},l(o){e=U(o,"DIV",{});var f=C(e);te(t.$$.fragment,f),f.forEach(p)},m(o,f){v(o,e,f),H(t,e,null),n=!0},p(o,f){const a={};f&4096&&(a.labelText=o[12]),!r&&f&1&&(r=!0,a.toggled=o[0],Je(()=>r=!1)),t.$set(a)},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){g(t.$$.fragment,o),n=!1},d(o){o&&p(e),J(t)}}}function ha(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 Di({props:l}),$e.push(()=>xe(e,"value",n)),{c(){Z(e.$$.fragment)},l(s){te(e.$$.fragment,s)},m(s,o){H(e,s,o),r=!0},p(s,o){const f={};o&4&&(f.name=s[2]),o&4096&&(f.label=s[12]),o&9&&(f.invalid=!s[0]&&s[3]),!t&&o&1&&(t=!0,f.value=s[0],Je(()=>t=!1)),e.$set(f)},i(s){r||(m(e.$$.fragment,s),r=!0)},o(s){g(e.$$.fragment,s),r=!1},d(s){J(e,s)}}}function pa(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 Hi({props:l}),$e.push(()=>xe(e,"value",n)),{c(){Z(e.$$.fragment)},l(s){te(e.$$.fragment,s)},m(s,o){H(e,s,o),r=!0},p(s,o){const f={};o&4&&(f.name=s[2]),o&512&&(f.invalid=!!s[9].length),o&2048&&(f.invalidText=s[11]),o&4096&&(f.labelText=s[12]),o&8&&(f.placeholder=s[3]?"":"(optional)"),!t&&o&1&&(t=!0,f.value=s[0],Je(()=>t=!1)),e.$set(f)},i(s){r||(m(e.$$.fragment,s),r=!0)},o(s){g(e.$$.fragment,s),r=!1},d(s){J(e,s)}}}function ma(i){let e,t,r;function n(s){i[14](s)}let l={name:i[2],labelText:i[12],hideLabel:!0,$$slots:{default:[ba]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.selected=i[0]),e=new _i({props:l}),$e.push(()=>xe(e,"selected",n)),{c(){Z(e.$$.fragment)},l(s){te(e.$$.fragment,s)},m(s,o){H(e,s,o),r=!0},p(s,o){const f={};o&4&&(f.name=s[2]),o&4096&&(f.labelText=s[12]),o&134218760&&(f.$$scope={dirty:o,ctx:s}),!t&&o&1&&(t=!0,f.selected=s[0],Je(()=>t=!1)),e.$set(f)},i(s){r||(m(e.$$.fragment,s),r=!0)},o(s){g(e.$$.fragment,s),r=!1},d(s){J(e,s)}}}function ga(i){let e,t=i[10].message+"",r;return{c(){e=$("div"),r=me(t),this.h()},l(n){e=U(n,"DIV",{class:!0});var l=C(e);r=ge(l,t),l.forEach(p),this.h()},h(){I(e,"class","text-red-600")},m(n,l){v(n,e,l),q(e,r)},p(n,l){l&1024&&t!==(t=n[10].message+"")&&Pe(r,t)},i:ae,o:ae,d(n){n&&p(e)}}}function _a(i){let e,t,r,n;function l(f){i[13](f)}var s=i[8][i[2]];function o(f){let a={rootValue:f[4],invalid:!!f[9].length,invalidText:f[11]};return f[0]!==void 0&&(a.value=f[0]),{props:a}}return s&&(e=Ee(s,o(i)),$e.push(()=>xe(e,"value",l))),{c(){e&&Z(e.$$.fragment),r=V()},l(f){e&&te(e.$$.fragment,f),r=V()},m(f,a){e&&H(e,f,a),v(f,r,a),n=!0},p(f,a){const u={};if(a&16&&(u.rootValue=f[4]),a&512&&(u.invalid=!!f[9].length),a&2048&&(u.invalidText=f[11]),!t&&a&1&&(t=!0,u.value=f[0],Je(()=>t=!1)),a&260&&s!==(s=f[8][f[2]])){if(e){Y();const c=e;g(c.$$.fragment,1,0,()=>{J(c,1)}),G()}s?(e=Ee(s,o(f)),$e.push(()=>xe(e,"value",l)),Z(e.$$.fragment),m(e.$$.fragment,1),H(e,r.parentNode,r)):e=null}else s&&e.$set(u)},i(f){n||(e&&m(e.$$.fragment,f),n=!0)},o(f){e&&g(e.$$.fragment,f),n=!1},d(f){f&&p(r),e&&J(e,f)}}}function Or(i){var f;let e,t,r,n,l;function s(a){i[19](a,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:(f=i[10].required)==null?void 0:f.includes(i[24])};return i[0][i[24]]!==void 0&&(o.value=i[0][i[24]]),t=new ln({props:o}),$e.push(()=>xe(t,"value",s)),{c(){e=$("div"),Z(t.$$.fragment),n=se(),this.h()},l(a){e=U(a,"DIV",{class:!0});var u=C(e);te(t.$$.fragment,u),n=oe(u),u.forEach(p),this.h()},h(){I(e,"class","mt-4 border-gray-300"),S(e,"border-b",i[26]<i[23].length-1)},m(a,u){v(a,e,u),H(t,e,null),q(e,n),l=!0},p(a,u){var d;i=a;const c={};u&1028&&(c.path=i[2]+"/"+i[24]),u&2&&(c.schema=i[1]),u&32&&(c.hiddenProperties=i[5]),u&128&&(c.validationErrors=i[7]),u&256&&(c.customComponents=i[8]),u&16&&(c.rootValue=i[4]),u&1024&&(c.required=(d=i[10].required)==null?void 0:d.includes(i[24])),!r&&u&1025&&(r=!0,c.value=i[0][i[24]],Je(()=>r=!1)),t.$set(c),(!l||u&1024)&&S(e,"border-b",i[26]<i[23].length-1)},i(a){l||(m(t.$$.fragment,a),l=!0)},o(a){g(t.$$.fragment,a),l=!1},d(a){a&&p(e),J(t)}}}function Sr(i){let e,t;return e=new Lr({props:{value:void 0,text:"None"}}),{c(){Z(e.$$.fragment)},l(r){te(e.$$.fragment,r)},m(r,n){H(e,r,n),t=!0},p:ae,i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){J(e,r)}}}function Pr(i){let e,t;return e=new Lr({props:{value:i[20]}}),{c(){Z(e.$$.fragment)},l(r){te(e.$$.fragment,r)},m(r,n){H(e,r,n),t=!0},p(r,n){const l={};n&1024&&(l.value=r[20]),e.$set(l)},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){J(e,r)}}}function ba(i){let e,t,r,n=!i[3]&&Sr(),l=i[10].enum,s=[];for(let f=0;f<l.length;f+=1)s[f]=Pr(yr(i,l,f));const o=f=>g(s[f],1,1,()=>{s[f]=null});return{c(){n&&n.c(),e=se();for(let f=0;f<s.length;f+=1)s[f].c();t=V()},l(f){n&&n.l(f),e=oe(f);for(let a=0;a<s.length;a+=1)s[a].l(f);t=V()},m(f,a){n&&n.m(f,a),v(f,e,a);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(f,a);v(f,t,a),r=!0},p(f,a){if(f[3]?n&&(Y(),g(n,1,1,()=>{n=null}),G()):n?(n.p(f,a),a&8&&m(n,1)):(n=Sr(),n.c(),m(n,1),n.m(e.parentNode,e)),a&1024){l=f[10].enum;let u;for(u=0;u<l.length;u+=1){const c=yr(f,l,u);s[u]?(s[u].p(c,a),m(s[u],1)):(s[u]=Pr(c),s[u].c(),m(s[u],1),s[u].m(t.parentNode,t))}for(Y(),u=l.length;u<s.length;u+=1)o(u);G()}},i(f){if(!r){m(n);for(let a=0;a<l.length;a+=1)m(s[a]);r=!0}},o(f){g(n),s=s.filter(Boolean);for(let a=0;a<s.length;a+=1)g(s[a]);r=!1},d(f){n&&n.d(f),f&&p(e),He(s,f),f&&p(t)}}}function Ea(i){var l;let e=!((l=i[5])!=null&&l.includes(i[2])),t,r,n=e&&kr(i);return{c(){n&&n.c(),t=V()},l(s){n&&n.l(s),t=V()},m(s,o){n&&n.m(s,o),v(s,t,o),r=!0},p(s,[o]){var f;o&36&&(e=!((f=s[5])!=null&&f.includes(s[2]))),e?n?(n.p(s,o),o&36&&m(n,1)):(n=kr(s),n.c(),m(n,1),n.m(t.parentNode,t)):n&&(Y(),g(n,1,1,()=>{n=null}),G())},i(s){r||(m(n),r=!0)},o(s){g(n),r=!1},d(s){n&&n.d(s),s&&p(t)}}}function ya(i,e,t){let r,n,l,{schema:s}=e,{path:o=""}=e,{required:f=!1}=e,{value:a}=e,{rootValue:u}=e,{hiddenProperties:c=[]}=e,{showDescription:d=!0}=e,{validationErrors:h=[]}=e,{customComponents:E}=e,_="";function T(N){a=N,t(0,a)}function k(N){a=N,t(0,a)}function b(N){a=N,t(0,a)}function O(N){a=N,t(0,a)}function P(N){a=N,t(0,a)}function D(N){a=N,t(0,a)}function j(N,fe){i.$$.not_equal(a[fe],N)&&(a[fe]=N,t(0,a))}return i.$$set=N=>{"schema"in N&&t(1,s=N.schema),"path"in N&&t(2,o=N.path),"required"in N&&t(3,f=N.required),"value"in N&&t(0,a=N.value),"rootValue"in N&&t(4,u=N.rootValue),"hiddenProperties"in N&&t(5,c=N.hiddenProperties),"showDescription"in N&&t(6,d=N.showDescription),"validationErrors"in N&&t(7,h=N.validationErrors),"customComponents"in N&&t(8,E=N.customComponents)},i.$$.update=()=>{i.$$.dirty&1&&a===""&&t(0,a=void 0),i.$$.dirty&7&&t(10,r=s.getSchema(o,a)),i.$$.dirty&1032&&t(12,n=r.title?`${r.title} ${f?"*":""}`:""),i.$$.dirty&132&&t(9,l=h.filter(N=>{var fe,Q,ne;return`${(fe=N==null?void 0:N.data)==null?void 0:fe.pointer}${(Q=N==null?void 0:N.data)!=null&&Q.key?"/"+((ne=N==null?void 0:N.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))},[a,s,o,f,u,c,d,h,E,l,r,_,n,T,k,b,O,P,D,j]}class ln extends ue{constructor(e){super(),ce(this,e,ya,Ea,de,{schema:1,path:2,required:3,value:0,rootValue:4,hiddenProperties:5,showDescription:6,validationErrors:7,customComponents:8})}}function Ar(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 ln({props:l}),$e.push(()=>xe(e,"value",n)),{c(){Z(e.$$.fragment)},l(s){te(e.$$.fragment,s)},m(s,o){H(e,s,o),r=!0},p(s,o){const f={};o&32&&(f.schema=s[5]),o&4&&(f.hiddenProperties=s[2]),o&8&&(f.showDescription=s[3]),o&2&&(f.validationErrors=s[1]),o&16&&(f.customComponents=s[4]),o&1&&(f.rootValue=s[0]),!t&&o&1&&(t=!0,f.value=s[0],Je(()=>t=!1)),e.$set(f)},i(s){r||(m(e.$$.fragment,s),r=!0)},o(s){g(e.$$.fragment,s),r=!1},d(s){J(e,s)}}}function ka(i){let e,t,r=i[5]&&Ar(i);return{c(){r&&r.c(),e=V()},l(n){r&&r.l(n),e=V()},m(n,l){r&&r.m(n,l),v(n,e,l),t=!0},p(n,[l]){n[5]?r?(r.p(n,l),l&32&&m(r,1)):(r=Ar(n),r.c(),m(r,1),r.m(e.parentNode,e)):r&&(Y(),g(r,1,1,()=>{r=null}),G())},i(n){t||(m(r),t=!0)},o(n){g(r),t=!1},d(n){r&&r.d(n),n&&p(e)}}}function va(i,e,t){let r,{schema:n}=e,{value:l={}}=e,{hiddenProperties:s=[]}=e,{validationErrors:o=[]}=e,{showDescription:f=!0}=e,{customComponents:a={}}=e;function u(d){t(0,l=d.getTemplate(l,void 0,{addOptionalProps:!1}));for(const[h,E]of Object.entries(n.properties||{})){const _=E.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,f=d.showDescription),"customComponents"in d&&t(4,a=d.customComponents)},i.$$.update=()=>{i.$$.dirty&64&&t(5,r=typeof n=="object"?new na(n):null),i.$$.dirty&32&&r&&u(r),i.$$.dirty&33&&t(1,o=r?r.validate(l):[])},[l,o,s,f,a,r,n,c]}class Ta extends ue{constructor(e){super(),ce(this,e,va,ka,de,{schema:6,value:0,hiddenProperties:2,validationErrors:1,showDescription:3,customComponents:4})}}export{Ki as C,Ta as J,oo as S,Hi as T,It as a,Qi as c,Aa as g};