@ambita/design-system 5.3.1-1841.0 → 5.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/ds.js +8 -8
  2. package/dist/ds.mjs +1826 -1824
  3. package/dist/ds.umd.js +13 -13
  4. package/dist/index.css +1 -1
  5. package/dist/types/src/components/Button/constants.d.ts +2 -0
  6. package/dist/types/src/components/Checkbox/constants.d.ts +1 -0
  7. package/dist/types/src/components/CheckboxGroup/CheckboxGroup.vue.d.ts +1 -1
  8. package/dist/types/src/components/Definition/Definition.vue.d.ts +1 -1
  9. package/dist/types/src/components/Details/Details.vue.d.ts +1 -1
  10. package/dist/types/src/components/DirectionalArrow/constants.d.ts +1 -0
  11. package/dist/types/src/components/FormElement/FormElement.vue.d.ts +1 -1
  12. package/dist/types/src/components/Input/Input.vue.d.ts +1 -1
  13. package/dist/types/src/components/JsonForm/Components/Checkboxes.vue.d.ts +1 -1
  14. package/dist/types/src/components/JsonForm/Components/RadioButtons.vue.d.ts +1 -1
  15. package/dist/types/src/components/JsonForm/Controls/Array.vue.d.ts +2 -2
  16. package/dist/types/src/components/JsonForm/Controls/Number.vue.d.ts +3 -3
  17. package/dist/types/src/components/JsonForm/Controls/String.vue.d.ts +3 -3
  18. package/dist/types/src/components/JsonForm/Renderers/Array.vue.d.ts +2 -2
  19. package/dist/types/src/components/JsonForm/Renderers/Integer.vue.d.ts +3 -3
  20. package/dist/types/src/components/JsonForm/Renderers/Number.vue.d.ts +3 -3
  21. package/dist/types/src/components/JsonForm/Renderers/String.vue.d.ts +3 -3
  22. package/dist/types/src/components/Link/constants.d.ts +1 -0
  23. package/dist/types/src/components/Modal/constants.d.ts +2 -0
  24. package/dist/types/src/components/Notification/Notification.vue.d.ts +6 -3
  25. package/dist/types/src/components/Notification/Notifications.vue.d.ts +5 -3
  26. package/dist/types/src/components/Notification/constants.d.ts +2 -0
  27. package/dist/types/src/components/RadioGroup/RadioGroup.vue.d.ts +1 -1
  28. package/dist/types/src/components/RadioGroup/constants.d.ts +1 -0
  29. package/dist/types/src/components/Select/Select.vue.d.ts +1 -1
  30. package/dist/types/src/components/Spinner/constants.d.ts +1 -0
  31. package/dist/types/src/components/StatusBadge/constants.d.ts +2 -2
  32. package/dist/types/src/components/TextArea/TextArea.vue.d.ts +4 -2
  33. package/dist/types/src/components/TextArea/constants.d.ts +1 -0
  34. package/dist/types/src/components/Upload/Upload.vue.d.ts +1 -1
  35. package/dist/types/tsconfig.app.tsbuildinfo +1 -1
  36. package/package.json +1 -1
package/dist/ds.js CHANGED
@@ -1,14 +1,14 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),k2=u.defineComponent({name:"aux-button",props:{primary:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"medium",validator:e=>["small","medium"].includes(e)},dataTestid:{type:String,required:!1},stackDirection:{type:String,required:!1,default:"horizontal",validator:e=>["none","horizontal","vertical"].includes(e)}},setup(e){return{classes:u.computed(()=>({"aux-button":!0,"aux-button--primary":e.primary,"aux-button--secondary":!e.primary,[`aux-button--${e.size}`]:!0,[`aux-button--${e.stackDirection}`]:!0}))}}}),re=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},N2=["disabled","data-testid"],D2={key:0,class:"aux-button-container-left"},L2={key:1,class:"aux-button-container-right"};function B2(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("button",{type:"button",disabled:e.disabled,class:u.normalizeClass(e.classes),"data-testid":e.dataTestid},[e.$slots.left?(u.openBlock(),u.createElementBlock("span",D2,[u.renderSlot(e.$slots,"left",{},void 0,!0)])):u.createCommentVNode("",!0),u.renderSlot(e.$slots,"default",{},void 0,!0),e.$slots.right?(u.openBlock(),u.createElementBlock("span",L2,[u.renderSlot(e.$slots,"right",{},void 0,!0)])):u.createCommentVNode("",!0)],10,N2)}const Ai=re(k2,[["render",B2],["__scopeId","data-v-fe2b7dce"]]),M2=["success","info","warning","error"],F2={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function j2(e,t){return u.openBlock(),u.createElementBlock("svg",F2,t[0]||(t[0]=[u.createElementVNode("path",{d:"M177.787 98.476a8 8 0 0 1-.264 11.31l-58.666 56a8 8 0 0 1-11.047.001l-29.334-28a8 8 0 1 1 11.047-11.574l23.81 22.728 53.143-50.728a8 8 0 0 1 11.31.263M232 128A104 104 0 1 1 128 24a104.12 104.12 0 0 1 104 104m-16 0a88 88 0 1 0-88 88 88.1 88.1 0 0 0 88-88"},null,-1)]))}const Du={render:j2},x2={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function V2(e,t){return u.openBlock(),u.createElementBlock("svg",x2,t[0]||(t[0]=[u.createElementVNode("path",{d:"M128 24a104 104 0 1 0 104 104A104.12 104.12 0 0 0 128 24m0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88M116 84a12 12 0 1 1 12 12 12 12 0 0 1-12-12m28 92a8 8 0 0 1-8 8h-8a8 8 0 0 1-8-8v-48a8 8 0 0 1 0-16h8a8 8 0 0 1 8 8v48a8 8 0 0 1 8 8"},null,-1)]))}const Lu={render:V2},U2={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function W2(e,t){return u.openBlock(),u.createElementBlock("svg",U2,t[0]||(t[0]=[u.createElementVNode("path",{d:"M128 24a104 104 0 1 0 104 104A104.12 104.12 0 0 0 128 24m0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88m-8-80V80a8 8 0 1 1 16 0v56a8 8 0 1 1-16 0m20 36a12 12 0 1 1-12-12 12 12 0 0 1 12 12"},null,-1)]))}const Cp={render:W2},z2={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function q2(e,t){return u.openBlock(),u.createElementBlock("svg",z2,t[0]||(t[0]=[u.createElementVNode("path",{d:"M120 144V96a8 8 0 0 1 16 0v48a8 8 0 0 1-16 0m8 24a12 12 0 1 0 12 12 12 12 0 0 0-12-12m108.768 43.981a23.75 23.75 0 0 1-20.791 12.011H40.023a24 24 0 0 1-20.771-36.022l87.977-151.993a24 24 0 0 1 41.543 0l87.976 151.992a23.75 23.75 0 0 1 .02 24.012M222.9 195.984 134.924 43.992a8 8 0 0 0-13.848 0L33.1 195.984a8 8 0 0 0 6.923 12.008h175.954a8 8 0 0 0 6.923-12.008"},null,-1)]))}const li={render:q2};var nt=[];for(var fu=0;fu<256;++fu)nt.push((fu+256).toString(16).slice(1));function G2(e,t=0){return(nt[e[t+0]]+nt[e[t+1]]+nt[e[t+2]]+nt[e[t+3]]+"-"+nt[e[t+4]]+nt[e[t+5]]+"-"+nt[e[t+6]]+nt[e[t+7]]+"-"+nt[e[t+8]]+nt[e[t+9]]+"-"+nt[e[t+10]]+nt[e[t+11]]+nt[e[t+12]]+nt[e[t+13]]+nt[e[t+14]]+nt[e[t+15]]).toLowerCase()}var Uo,H2=new Uint8Array(16);function K2(){if(!Uo&&(Uo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Uo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Uo(H2)}var J2=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Op={randomUUID:J2};function Ke(e,t,n){if(Op.randomUUID&&!t&&!e)return Op.randomUUID();e=e||{};var o=e.random||(e.rng||K2)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=o[s];return t}return G2(o)}const Y2=u.defineComponent({name:"aux-banner",props:{type:{type:String,default:"info",validator:e=>M2.includes(e)},title:{type:String},dataTestid:{type:String,required:!1}},setup(e){const t=u.computed(()=>{if(e.title)return e.title;switch(e.type){case"error":return"Feil. ";case"warning":return"Advarsel. ";case"success":return"Suksess. ";default:return"Info."}}),n=u.computed(()=>({"aux-banner":!0,[`aux-banner--${e.type}`]:!0})),o=u.computed(()=>({icon:!0,[`icon--${e.type}`]:!0}));return{icon:u.computed(()=>{switch(e.type){case"error":return li;case"warning":return Cp;case"success":return Du;default:return Lu}}),uuid:Ke(),classes:n,srOnlyMessage:t,iconClasses:o}},components:{SuccessBannerIcon:Du,InfoBannerIcon:Lu,WarningBannerIcon:Cp,ErrorBannerIcon:li}}),Z2=["aria-labelledby","data-testid"],X2=["id"],Q2=["id","data-testid"];function eS(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(e.classes),role:"region","aria-labelledby":`${e.uuid} message-${e.uuid}`,"data-testid":e.dataTestid},[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.icon),{class:u.normalizeClass(e.iconClasses),"aria-hidden":"true"},null,8,["class"])),u.createElementVNode("span",{id:e.uuid,class:"screen-reader-message"},u.toDisplayString(e.srOnlyMessage),9,X2),u.createElementVNode("span",{id:`message-${e.uuid}`,class:"message","data-testid":`${e.dataTestid}-message`},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,Q2)],10,Z2)}const tS=re(Y2,[["render",eS],["__scopeId","data-v-7fdaa1e0"]]),rS=u.defineComponent({name:"aux-spinner",props:{size:{type:String,default:"large",validator:function(e){return["small","medium","large"].includes(e)}}},setup(e,t){const n=u.computed(()=>({"aux-spinner":!0,[`aux-spinner--${e.size}`]:!0})),o=u.computed(()=>t.slots.default&&e.size!=="small");return e.size==="small"&&t.slots.default&&console.error("AuxSpinner: Label is not displayed for small sizes"),{classes:n,showLabel:o}}}),nS={key:0,class:"aux-spinner-label"};function aS(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(e.classes)},[t[0]||(t[0]=u.createElementVNode("div",{class:"aux-spinner-indicator"},null,-1)),e.showLabel?(u.openBlock(),u.createElementBlock("div",nS,[u.renderSlot(e.$slots,"default",{},void 0,!0)])):u.createCommentVNode("",!0)],2)}const oS=re(rS,[["render",aS],["__scopeId","data-v-dfc87c44"]]),iS=["blue","green","red","yellow","black"],sS=u.defineComponent({name:"aux-pill",props:{color:{type:String,default:"black",validator:e=>[...iS].includes(e)}},setup(e){return console.warn("Pills erstattes med med AuxTag"),{classes:u.computed(()=>({"aux-pill":!0,[`aux-pill--${e.color}`]:!0}))}}});function uS(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("span",{class:u.normalizeClass(e.classes)},[u.renderSlot(e.$slots,"default",{},void 0,!0)],2)}const lS=re(sS,[["render",uS],["__scopeId","data-v-6bd2fe2b"]]),cS=u.defineComponent({name:"aux-radio",props:{value:{type:[String,Number]},disabled:{type:Boolean,default:!1},id:{type:String,default:Ke},name:{type:String,required:!0},selected:{type:[String,Number],required:!0}},emits:["change"],setup(e,{emit:t}){return{isSelected:u.computed(()=>e.value===e.selected),change:s=>{t("change",s.target.value)}}}}),dS={class:"aux-radio"},fS=["value","disabled","id","name","checked"],pS=["for"];function hS(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",dS,[u.createElementVNode("input",{type:"radio",value:e.value,disabled:e.disabled,id:e.id,name:e.name,checked:e.isSelected,onChange:t[0]||(t[0]=(...c)=>e.change&&e.change(...c))},null,40,fS),u.createElementVNode("label",{for:e.id},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,pS)])}const mS=re(cS,[["render",hS],["__scopeId","data-v-3ca6a357"]]),gS=u.defineComponent({name:"aux-link",props:{size:{type:String,default:"small",validator:e=>["small","medium"].includes(e)},href:{type:String,required:!1}},emits:["click"],setup(e,{slots:t}){const n=u.computed(()=>e.href?"a":"button"),o=u.computed(()=>({"aux-link":!0,[`aux-link--${e.size}`]:!0,"aux-link-icon-left":t.left,"aux-link-icon-right":t.right}));return{componentType:n,classes:o}}}),vS={key:0,class:"aux-link-container-left"},yS={key:1,class:"aux-link-container-right"};function _S(e,t,n,o,s,l){return u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.componentType),{href:e.href,class:u.normalizeClass(e.classes),onClick:t[0]||(t[0]=c=>e.$emit("click",c))},{default:u.withCtx(()=>[e.$slots.left?(u.openBlock(),u.createElementBlock("div",vS,[u.renderSlot(e.$slots,"left",{},void 0,!0)])):u.createCommentVNode("",!0),u.renderSlot(e.$slots,"default",{},void 0,!0),e.$slots.right?(u.openBlock(),u.createElementBlock("div",yS,[u.renderSlot(e.$slots,"right",{},void 0,!0)])):u.createCommentVNode("",!0)]),_:3},8,["href","class"])}const Wm=re(gS,[["render",_S],["__scopeId","data-v-d3682c90"]]),$S={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function bS(e,t){return u.openBlock(),u.createElementBlock("svg",$S,t[0]||(t[0]=[u.createElementVNode("path",{d:"M96 220a12 12 0 0 1-8.485-20.485L159.029 128 87.515 56.485a12 12 0 0 1 16.97-16.97l80 80a12 12 0 0 1 0 16.97l-80 80A11.96 11.96 0 0 1 96 220"},null,-1)]))}const wS={render:bS},ES=u.defineComponent({name:"aux-directional-arrow",components:{CaretRightIcon:wS},props:{direction:{type:String,require:!0,default:"down",validator:function(e){return["up","down","left","right"].includes(e)}}},setup(e){return{classes:u.computed(()=>({"aux-arrow":!0,[`aux-arrow--${e.direction}`]:!0}))}}});function SS(e,t,n,o,s,l){const c=u.resolveComponent("CaretRightIcon");return u.openBlock(),u.createBlock(c,{class:u.normalizeClass(e.classes)},null,8,["class"])}const zm=re(ES,[["render",SS],["__scopeId","data-v-d1e09832"]]),AS=u.defineComponent({name:"aux-details",components:{AuxLink:Wm,AuxDirectionalArrow:zm},setup(){const e=u.reactive({isOpen:!1}),t=()=>{e.isOpen=!e.isOpen},n=u.computed(()=>e.isOpen?"up":"down");return{state:e,toggleOpen:t,arrowDirection:n}}}),CS=["open"];function OS(e,t,n,o,s,l){const c=u.resolveComponent("AuxDirectionalArrow"),f=u.resolveComponent("AuxLink");return u.openBlock(),u.createElementBlock("details",{class:"aux-details",open:e.state.isOpen},[u.createElementVNode("summary",null,[u.createVNode(f,{onClick:t[0]||(t[0]=h=>e.toggleOpen())},{left:u.withCtx(()=>[u.createVNode(c,{direction:e.arrowDirection},null,8,["direction"])]),default:u.withCtx(()=>[u.renderSlot(e.$slots,"label",{},void 0,!0)]),_:3})]),u.createElementVNode("div",null,[u.renderSlot(e.$slots,"content",{},void 0,!0)])],8,CS)}const qm=re(AS,[["render",OS],["__scopeId","data-v-46bb2c12"]]),TS=u.defineComponent({name:"aux-form-element",components:{AuxDetails:qm},props:{label:{type:String,required:!0,default:"Label is not defined"},description:{type:String,required:!1},descriptionLabel:{type:String,required:!1},hideLabel:{type:Boolean,required:!1,default:!1},id:{type:String,required:!0}}}),IS={class:"aux-form-element"},PS=["for"],RS={key:0},kS={key:1,class:"aux-form-element-description"};function NS(e,t,n,o,s,l){const c=u.resolveComponent("AuxDetails");return u.openBlock(),u.createElementBlock("div",IS,[u.createElementVNode("label",{class:u.normalizeClass({"aux-form-label":!0,"aux-form-label-hidden":e.hideLabel}),for:e.id},u.toDisplayString(e.label),11,PS),e.descriptionLabel?(u.openBlock(),u.createElementBlock("span",RS,[u.createVNode(c,null,{label:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.descriptionLabel),1)]),content:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.description),1)]),_:1})])):u.createCommentVNode("",!0),e.description&&!e.descriptionLabel?(u.openBlock(),u.createElementBlock("span",kS,u.toDisplayString(e.description),1)):u.createCommentVNode("",!0),u.renderSlot(e.$slots,"default",{},void 0,!0)])}const qr=re(TS,[["render",NS],["__scopeId","data-v-ce98c0cc"]]),DS=u.defineComponent({name:"aux-radio-group-card-element",props:{value:{type:String},disabled:{type:Boolean,default:!1},id:{type:String,default:Ke},name:{type:String,required:!0},selected:{type:String,required:!0}},emits:["change"],setup(e,{emit:t}){return{isSelected:u.computed(()=>e.value===e.selected.toString()),change:s=>{t("change",s.target.value)}}}}),LS=["value","disabled","id","name"];function BS(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("label",{class:u.normalizeClass({"aux-card-layout":!0,"aux-card-layout--selected":e.isSelected,"aux-card-layout--disabled":e.disabled})},[u.createElementVNode("input",{type:"radio",value:e.value,disabled:e.disabled,id:e.id,name:e.name,onChange:t[0]||(t[0]=u.withModifiers((...c)=>e.change&&e.change(...c),["stop"]))},null,40,LS),u.createElementVNode("span",null,[u.renderSlot(e.$slots,"default",{},void 0,!0)])],2)}const Tp=re(DS,[["render",BS],["__scopeId","data-v-5dfa60ec"]]),MS=u.defineComponent({name:"aux-radio-group-element-group-element",props:{value:{type:String},disabled:{type:Boolean,default:!1},id:{type:String,default:Ke},name:{type:String,required:!0},selected:{type:String,required:!0}},emits:["change"],setup(e,{emit:t}){return{isSelected:u.computed(()=>e.value==e.selected),change:s=>{t("change",s.target.value)}}}}),FS=["value","disabled","id","name","checked"],jS=["for"];function xS(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass({"aux-radio-group-element":!0,"aux-radio-group-element--selected":e.isSelected,"aux-radio-group-element--disabled":e.disabled})},[u.createElementVNode("input",{type:"radio",value:e.value,disabled:e.disabled,id:e.id,name:e.name,checked:e.isSelected,onChange:t[0]||(t[0]=(...c)=>e.change&&e.change(...c))},null,40,FS),u.createElementVNode("label",{for:e.id},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,jS)],2)}const Ip=re(MS,[["render",xS],["__scopeId","data-v-96dea0f7"]]),VS=u.defineComponent({name:"aux-radio-group",components:{AuxRadioGroupCardElement:Tp,AuxRadioGroupElement:Ip,FormElement:qr},props:{label:{type:String,required:!0},items:{type:Array,required:!0},id:{type:String,default:Ke},description:{type:String},descriptionLabel:{type:String,required:!1},hideLabel:{type:Boolean,required:!1},name:{type:String,required:!0},selected:{type:String||Number,default:""},layout:{type:String,validator:e=>["card","regular"].includes(e),default:"regular"}},emits:["update:selected"],setup(e,{emit:t}){const n=u.reactive({selected:e.selected.toString()}),o=l=>{n.selected=l,t("update:selected",l)},s=u.computed(()=>e.layout==="card"?Tp:Ip);return{state:n,changeEvent:o,radioType:s}}});function US(e,t,n,o,s,l){const c=u.resolveComponent("FormElement");return u.openBlock(),u.createBlock(c,{id:e.id,label:e.label,"hide-label":e.hideLabel,"description-label":e.descriptionLabel,description:e.description},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.items,(f,h)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.radioType),{key:h,value:f.value,name:e.name||e.id,selected:e.state.selected,disabled:f.disabled,onChange:e.changeEvent},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(f.label),1)]),_:2},1064,["value","name","selected","disabled","onChange"]))),128))]),_:1},8,["id","label","hide-label","description-label","description"])}const Gm=re(VS,[["render",US]]),WS={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function zS(e,t){return u.openBlock(),u.createElementBlock("svg",WS,t[0]||(t[0]=[u.createElementVNode("path",{d:"M205.657 194.343a8 8 0 1 1-11.314 11.314L128 139.313l-66.343 66.344a8 8 0 0 1-11.314-11.314L116.687 128 50.343 61.657a8 8 0 0 1 11.314-11.314L128 116.687l66.343-66.344a8 8 0 0 1 11.314 11.314L139.313 128Z"},null,-1)]))}const Hm={render:zS},qS=u.defineComponent({name:"aux-input",props:{label:{type:String,required:!0},id:{type:String,default:Ke},name:{type:String,required:!1},value:{type:[String,Number]},modelValue:{type:[String,Number]},placeholder:String,description:String,descriptionLabel:{type:String,required:!1},type:{type:String,default:"text"},clearable:{type:Boolean,default:!1},hideLabel:{type:Boolean,default:!1},fieldWidth:{type:String,default:"60ch"},min:{type:Number},max:{type:Number},disabled:{type:Boolean,default:!1,required:!1}},emits:["focus","blur","input","update:modelValue"],setup(e,{slots:t,emit:n}){const o=u.computed(()=>t.left),s=u.computed(()=>e.clearable||t.right),l=u.ref(null);return{inputFieldEl:l,focus:()=>{l.value&&l.value.focus()},hasLeftIcon:o,hasRightIcon:s,handleInput(f){const h=f.target;h&&(n("input",h.value),n("update:modelValue",h.value))}}},components:{ClearIcon:Hm,FormElement:qr}}),GS=["value","placeholder","type","name","id","min","max","disabled"];function HS(e,t,n,o,s,l){const c=u.resolveComponent("ClearIcon"),f=u.resolveComponent("FormElement");return u.openBlock(),u.createBlock(f,{class:u.normalizeClass({"aux-textfield":!0,[`aux-textfield-${e.type}`]:!0}),label:e.label,"hide-label":e.hideLabel,description:e.description,"description-label":e.descriptionLabel,id:e.id},{default:u.withCtx(()=>[u.createElementVNode("div",{class:u.normalizeClass({"aux-input-textfield-container":!0,"aux-input-textfield--icon-right":e.hasRightIcon,"aux-input-textfield--icon-left":e.hasLeftIcon}),style:u.normalizeStyle({maxWidth:e.fieldWidth})},[u.createElementVNode("input",{class:"aux-input-textfield",ref:"inputFieldEl",value:e.modelValue||e.value,placeholder:e.placeholder,type:e.type,name:e.name||e.id,id:e.id,min:e.min,max:e.max,disabled:e.disabled,onFocus:t[0]||(t[0]=h=>e.$emit("focus",h.target.value)),onBlur:t[1]||(t[1]=h=>e.$emit("blur",h.target.value)),onInput:t[2]||(t[2]=(...h)=>e.handleInput&&e.handleInput(...h))},null,40,GS),e.hasLeftIcon?(u.openBlock(),u.createElementBlock("div",{key:0,class:"aux-input-textfield-left-icon",onClick:t[3]||(t[3]=(...h)=>e.focus&&e.focus(...h))},[u.renderSlot(e.$slots,"left",{},void 0,!0)])):u.createCommentVNode("",!0),e.hasRightIcon?(u.openBlock(),u.createElementBlock("div",{key:1,class:"aux-input-textfield-right-icon",onClick:t[5]||(t[5]=(...h)=>e.focus&&e.focus(...h))},[e.clearable&&e.value?(u.openBlock(),u.createBlock(c,{key:0,onClick:t[4]||(t[4]=h=>e.$emit("input","")),class:"aux-input-textfield-clear-icon"})):u.renderSlot(e.$slots,"right",{key:1},void 0,!0)])):u.createCommentVNode("",!0)],6)]),_:3},8,["class","label","hide-label","description","description-label","id"])}const ol=re(qS,[["render",HS],["__scopeId","data-v-fcd12a41"]]),KS=u.defineComponent({name:"aux-definition",props:{label:{type:String,required:!0},suffix:{type:String,default:":"},vertical:{type:Boolean,default:!1},dataTestid:{type:String,required:!1},size:{type:String,required:!1,default:"small",validator:e=>{const t=["small","medium","large"],n=t.includes(e);return n||console.error(`AuxDefinition: props.size must be one of ${t.join(", ")}`),n}}},setup(e){const t=u.computed(()=>({"aux-definition":!0,"aux-definition--vertical":e.vertical||e.size!=="small",[`aux-definition-value--${e.size}`]:!0}));return!e.vertical&&e.size!=="small"&&console.warn("AuxDefinition: Horizontal layout is only supported for props.size.small"),{classes:t}}}),JS=["data-testid"],YS=["data-testid"],ZS=["data-testid"];function XS(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(e.classes),"data-testid":e.dataTestid},[u.createElementVNode("dt",{class:"aux-definition-label","data-testid":`${e.dataTestid}-label`},u.toDisplayString(e.label)+u.toDisplayString(e.suffix),9,YS),u.createElementVNode("dd",{class:"aux-definition-value","data-testid":`${e.dataTestid}-value`},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,ZS)],10,JS)}const QS=re(KS,[["render",XS],["__scopeId","data-v-6a580377"]]),eA={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",preserveAspectRatio:"xMinYMid meet",viewBox:"0 0 694.11 164.663"};function tA(e,t){return u.openBlock(),u.createElementBlock("svg",eA,t[0]||(t[0]=[u.createElementVNode("path",{fill:"currentcolor",d:"M101.071 48.106h-5.002c-5.439 0-9.889 4.451-9.889 9.892v.155c-8.794-6.17-19.177-10.047-30.702-10.047-15.85 0-29.602 6.764-39.627 17.485C5.876 76.03.058 90.393.002 106.385l-.002.236c0 15.848 5.827 30.302 15.85 41.022 10.025 10.493 23.778 17.02 39.627 17.02 11.525 0 21.909-3.648 30.705-9.814.04 5.403 4.472 9.814 9.886 9.814h5.002c5.437 0 9.887-4.453 9.887-9.889V57.998c.001-5.44-4.45-9.892-9.886-9.892M86.18 108.901c-.508 8.609-3.876 16.153-9.021 21.729-5.595 5.826-13.522 9.089-21.681 9.089-8.389 0-16.316-3.263-21.677-9.089-5.595-6.063-8.859-14.453-8.859-24.009q.002-.12.003-.236c.051-9.691 3.305-17.993 8.856-23.777 5.36-6.293 13.288-9.556 21.677-9.556 8.159 0 16.086 3.263 21.681 9.556 5.145 5.36 8.513 12.888 9.021 21.68v4.6129999999999995M281.806 48.106H150.147c-5.439 0-9.891 4.451-9.891 9.892v96.776c0 5.436 4.451 9.889 9.891 9.889h4.999c5.439 0 9.89-4.453 9.89-9.889V72.887h38.551v81.888c0 5.436 4.451 9.889 9.89 9.889h4.999c5.439 0 9.889-4.453 9.889-9.889V72.887h38.551v81.888c0 5.436 4.452 9.889 9.889 9.889h5.001c5.44 0 9.889-4.453 9.889-9.889V57.998c0-5.44-4.448-9.892-9.889-9.892M684.222 48.106h-5.001c-5.44 0-9.889 4.451-9.889 9.892v.155c-8.794-6.17-19.178-10.047-30.702-10.047-15.85 0-29.601 6.764-39.626 17.485-9.976 10.438-15.791 24.801-15.848 40.793q-.001.117-.003.236c0 15.848 5.827 30.302 15.851 41.022 10.025 10.493 23.776 17.02 39.626 17.02 11.525 0 21.908-3.648 30.702-9.814.041 5.403 4.475 9.814 9.889 9.814h5.001c5.438 0 9.889-4.453 9.889-9.889V57.998c-.001-5.44-4.452-9.892-9.889-9.892m-14.89 60.801c-.511 8.608-3.878 16.147-9.023 21.723-5.595 5.826-13.519 9.089-21.68 9.089-8.391 0-16.315-3.263-21.679-9.089-5.594-6.063-8.855-14.453-8.855-24.009q0-.12.003-.236c.051-9.691 3.305-17.993 8.852-23.777 5.363-6.293 13.288-9.556 21.679-9.556 8.16 0 16.085 3.263 21.68 9.556 5.145 5.357 8.512 12.886 9.023 21.672v4.627M470.419 48.106h-5c-5.438 0-9.891 4.451-9.891 9.892v96.776c0 5.436 4.452 9.889 9.891 9.889h5c5.439 0 9.889-4.453 9.889-9.889V57.998c0-5.44-4.451-9.892-9.889-9.892M433.659 106.385c-.124-31.832-25.25-58.278-56.643-58.278-11.422 0-22.608 3.731-31.234 9.792l-.008-46.522c0-5.437-4.448-9.889-9.888-9.889h-5.002000000000001c-5.439 0-9.889 4.452-9.889 9.889v143.398c0 5.436 4.449 9.889 9.889 9.889h5.002000000000001c5.382 0 9.792-4.359 9.884-9.717 8.785 5.886 19.79 9.717 31.246 9.717 31.471 0 56.647-26.575 56.647-58.042q-.003-.12-.004-.237m-34.731 23.311c-5.827 6.06-13.52 9.559-21.912 9.559-8.623 0-16.084-3.499-21.911-9.559-5.827-5.827-9.323-14.22-9.323-23.075l.001-.236c.059-9.232 3.542-17.532 9.322-23.311 5.827-6.06 13.288-9.559 21.911-9.559 8.393 0 16.085 3.499 21.912 9.559 5.78 5.778 9.264 14.079 9.323 23.311l.002.236c0 8.856-3.495 17.248-9.325 23.075M565.793 48.106h-15.241v-36.73c0-5.437-4.45-9.889-9.889-9.889h-5.001c-5.438 0-9.889 4.452-9.889 9.889v36.73h-15.241c-5.44 0-9.889 4.451-9.889 9.892v4.999c0 5.439 4.449 9.89 9.889 9.89h15.241v81.888c0 5.436 4.451 9.889 9.889 9.889h5.001c5.438 0 9.889-4.453 9.889-9.889V72.887h15.241c5.44 0 9.889-4.45 9.889-9.89v-4.999c0-5.44-4.449-9.892-9.889-9.892",class:"ambita-logo__svg__path"},null,-1),u.createElementVNode("circle",{cx:"467.919",cy:"13.877",r:"13.878",fill:"currentcolor",class:"ambita-logo__svg__path"},null,-1)]))}const rA={render:tA},nA=u.defineComponent({name:"aux-logo",components:{Logo:rA},props:{inverted:{type:Boolean,default:!1}}});function aA(e,t,n,o,s,l){const c=u.resolveComponent("Logo",!0);return u.openBlock(),u.createBlock(c,{class:u.normalizeClass(["aux-logo",{"aux-invert":e.inverted}])},null,8,["class"])}const oA=re(nA,[["render",aA],["__scopeId","data-v-59a647db"]]),iA=u.defineComponent({name:"aux-checkbox-regular",props:{value:{type:[String,Number,Boolean]},disabled:{type:Boolean},id:{type:String,default:Ke},name:{type:String,required:!1},selected:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){return{changeEvent:o=>{const s=o.target;t("change",{checked:s.checked,option:s.value})}}}}),sA={class:"aux-checkbox"},uA=["id","value","disabled","checked","name",".indeterminate"],lA=["for"];function cA(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",sA,[u.createElementVNode("input",{type:"checkbox",id:e.id,value:e.value,disabled:e.disabled,checked:e.selected,name:e.name||e.id,".indeterminate":e.indeterminate,onChange:t[0]||(t[0]=(...c)=>e.changeEvent&&e.changeEvent(...c))},null,40,uA),u.createElementVNode("label",{for:e.id},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,lA)])}const Pp=re(iA,[["render",cA],["__scopeId","data-v-da26c979"]]),dA=u.defineComponent({name:"aux-checkbox-card",props:{value:{type:[String,Number,Boolean]},disabled:{type:Boolean},id:{type:String,default:Ke},name:{type:String,required:!1},selected:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){return{changeEvent:o=>{const s=o.target;t("change",{checked:s.checked,option:s.value})}}}}),fA=["id","value","disabled","checked","name",".indeterminate"];function pA(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("label",{class:u.normalizeClass({"aux-card-layout":!0,"aux-card-layout--selected":e.selected,"aux-card-layout--indeterminate":e.indeterminate,"aux-card-layout--disabled":e.disabled})},[u.createElementVNode("input",{type:"checkbox",id:e.id,value:e.value,disabled:e.disabled,checked:e.selected,name:e.name||e.id,".indeterminate":e.indeterminate,onChange:t[0]||(t[0]=(...c)=>e.changeEvent&&e.changeEvent(...c))},null,40,fA),u.renderSlot(e.$slots,"default",{},void 0,!0)],2)}const Rp=re(dA,[["render",pA],["__scopeId","data-v-55a0bfca"]]),hA=u.defineComponent({name:"aux-checkbox",components:{AuxCheckboxRegular:Pp,AuxCheckboxCard:Rp},props:{value:{type:[String,Number,Boolean]},disabled:{type:Boolean},id:{type:String,default:Ke},name:{type:String,required:!1},selected:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},layout:{type:String,validator:e=>["card","regular"].includes(e),default:"regular"}},emits:["change","update:selected"],setup(e,{emit:t}){const n=s=>{e.layout==="card"&&t("update:selected",s),t("change",s)},o=u.computed(()=>e.layout==="card"?Rp:Pp);return{changeEvent:n,checkboxType:o}}});function mA(e,t,n,o,s,l){return u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.checkboxType),{id:e.id,value:e.value,disabled:e.disabled,selected:e.selected,name:e.name||e.id,indeterminate:e.indeterminate,onChange:e.changeEvent},{default:u.withCtx(()=>[u.renderSlot(e.$slots,"default")]),_:3},40,["id","value","disabled","selected","name","indeterminate","onChange"])}const il=re(hA,[["render",mA]]),gA=u.defineComponent({name:"aux-checkbox-group-card-element",props:{id:{type:String,default:Ke},name:{type:String,required:!0},value:{type:String},disabled:{type:Boolean,default:!1},checked:{type:Boolean,required:!0}},emits:["change"],setup(e,{emit:t}){return{change:()=>{t("change",e.value)}}}}),vA=["id","value","disabled","checked","name"];function yA(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("label",{class:u.normalizeClass({"aux-card-layout":!0,"aux-card-layout--selected":e.checked,"aux-card-layout--disabled":e.disabled})},[u.createElementVNode("input",{type:"checkbox",id:e.id,value:e.value,disabled:e.disabled,checked:e.checked,name:e.name||e.id,onChange:t[0]||(t[0]=(...c)=>e.change&&e.change(...c))},null,40,vA),u.createElementVNode("span",null,[u.renderSlot(e.$slots,"default",{},void 0,!0)])],2)}const kp=re(gA,[["render",yA],["__scopeId","data-v-a08bcdba"]]),_A=u.defineComponent({name:"aux-checkbox-group-element",props:{value:{type:String},disabled:{type:Boolean,default:!1},id:{type:String,default:Ke},name:{type:String,required:!0},checked:{type:Boolean,required:!0}},emits:["change"],setup(e,{emit:t}){return{change:()=>{t("change",e.value)}}}}),$A={class:"aux-checkbox"},bA=["value","disabled","id","name","checked"],wA=["for"];function EA(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",$A,[u.createElementVNode("input",{type:"checkbox",value:e.value,disabled:e.disabled,id:e.id,name:e.name,checked:e.checked,onChange:t[0]||(t[0]=(...c)=>e.change&&e.change(...c))},null,40,bA),u.createElementVNode("label",{for:e.id},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,wA)])}const Np=re(_A,[["render",EA],["__scopeId","data-v-c91aa24c"]]),SA=u.defineComponent({name:"aux-checkbox-group",components:{AuxCheckboxGroupCardElement:kp,AuxCheckboxGroupElement:Np,FormElement:qr},props:{label:{type:String,required:!0},items:{type:Array,required:!0},id:{type:String,default:Ke},description:{type:String},descriptionLabel:{type:String,required:!1},hideLabel:{type:Boolean,required:!1},name:{type:String,required:!0},dataTestid:{type:String,required:!1},layout:{type:String,validator:e=>["card","regular"].includes(e),default:"regular"}},emits:["change"],setup(e,{emit:t}){const n=u.reactive({items:e.items}),o=l=>{n.items=n.items.map(c=>(c.value===l&&(c.checked=!c.checked),c)),t("change",n.items)},s=u.computed(()=>e.layout==="card"?kp:Np);return{changeEvent:o,CheckboxType:s,state:n}}});function AA(e,t,n,o,s,l){const c=u.resolveComponent("FormElement");return u.openBlock(),u.createBlock(c,{id:e.id,label:e.label,"hide-label":e.hideLabel,"description-label":e.descriptionLabel,description:e.description,"data-testid":e.dataTestid},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.state.items,(f,h)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.CheckboxType),{key:h,value:f.value,name:e.name||e.id,checked:f.checked,disabled:f.disabled,"data-testid":`${h}-checkbox`,onChange:e.changeEvent},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(f.label),1)]),_:2},1064,["value","name","checked","disabled","data-testid","onChange"]))),128))]),_:1},8,["id","label","hide-label","description-label","description","data-testid"])}const CA=re(SA,[["render",AA]]),OA=u.defineComponent({name:"aux-select",props:{items:{type:Array,required:!0},label:{type:String,required:!1},required:{type:Boolean,default:!1},id:{type:String,default:Ke},name:{type:String,required:!1},hideLabel:{type:Boolean,default:!1},description:{type:String},descriptionLabel:{type:String,required:!1},value:{type:[String,Number,Array]},modelValue:{type:[String,Number,Array]}},emits:["change","focus","blur","update:modelValue"],setup(e,{emit:t}){const n=u.reactive({value:e.modelValue||e.value}),o=c=>{c.target&&(n.value=c.target.value,t("change",c.target.value),t("update:modelValue",c.target.value))},s=c=>{c.target&&t("focus",c.target.value)},l=c=>{c.target&&t("blur",c.target.value)};return u.watch(()=>e.value,c=>n.value=c),u.watch(()=>e.modelValue,c=>n.value=c),{state:n,updateValue:o,focusEmit:s,blurEmit:l}},components:{FormElement:qr}}),TA=["value","name","id"],IA=["value","disabled"];function PA(e,t,n,o,s,l){const c=u.resolveComponent("FormElement");return u.openBlock(),u.createBlock(c,{label:e.label,"hide-label":e.hideLabel,"description-label":e.descriptionLabel,description:e.description,id:e.id,class:"aux-select"},{default:u.withCtx(()=>[u.createElementVNode("select",{class:"aux-input-select",value:e.state.value,name:e.name,id:e.id,onFocus:t[0]||(t[0]=(...f)=>e.focusEmit&&e.focusEmit(...f)),onBlur:t[1]||(t[1]=(...f)=>e.blurEmit&&e.blurEmit(...f)),onChange:t[2]||(t[2]=(...f)=>e.updateValue&&e.updateValue(...f))},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.items,f=>(u.openBlock(),u.createElementBlock("option",{key:f.value.toString(),value:f.value,disabled:f.disabled||!1},u.toDisplayString(f.label),9,IA))),128))],40,TA)]),_:1},8,["label","hide-label","description-label","description","id"])}const sl=re(OA,[["render",PA],["__scopeId","data-v-960128ff"]]),RA=u.defineComponent({name:"aux-modal-actions",props:{actions:{type:Array,default:()=>[]}},emits:["action-clicked"],setup(e,{emit:t}){return{actionsOrganized:u.computed(()=>{const o=[],s=[],l=[];e.actions.forEach(f=>{f.primary?o.push(f):f.destructive?l.push(f):s.push(f)});const c=[...o,...s,...l];return c.length>3?(console.error("Modals should not have more than 3 actions"),[]):o.length>1?(console.error("Modals should only have one primary action"),[]):o.length===0&&c.length>0?(console.error("Modals should have a primary action"),[]):c}),emit:t}},components:{AuxButton:Ai}});function kA(e,t,n,o,s,l){const c=u.resolveComponent("AuxButton");return u.openBlock(),u.createElementBlock("div",null,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.actionsOrganized,f=>(u.openBlock(),u.createBlock(c,{key:f.label,primary:f.primary,"stack-direction":"none",size:"medium",onClick:h=>e.emit("action-clicked",f.emit),"data-testid":f.testid},u.createSlots({default:u.withCtx(()=>[u.createTextVNode(" "+u.toDisplayString(f.label),1)]),_:2},[f.icon?{name:"left",fn:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(f.icon)))]),key:"0"}:void 0]),1032,["primary","onClick","data-testid"]))),128))])}const NA=re(RA,[["render",kA]]),DA=u.defineComponent({name:"aux-modal",props:{actions:{type:Array,default:()=>[]},id:{type:String,default:Ke},size:{type:String,default:"medium",validator:e=>["small","medium","large","x-large"].includes(e)},title:{type:String,validator:e=>e.length>100?(console.error(`Title should not be longer than 100 characters. Your title is ${e.length} characters long`),!1):!0},buttonsMobileLayout:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},dataTestid:{type:String,required:!1},disableCloseOnOutsideClick:{type:Boolean,required:!1}},setup(e,{emit:t}){const n=u.ref(null),o=()=>{n.value&&n.value.focus()},l=window.matchMedia("(max-width: 450px)"),c=u.ref(l.matches),f=e.buttonsMobileLayout==="vertical"&&c,h=u.ref(null);let g;const y=()=>{t("close-modal")},w=b=>{t(b),t("action-clicked",b)},C={"aux-modal":!0,[`aux-modal--${e.size}`]:!0},I=b=>{if(!e.disableCloseOnOutsideClick){const R=h.value;b.target===R&&y()}},O=()=>{u.nextTick(()=>{g=h.value,g.addEventListener("click",I),g.addEventListener("cancel",y),g.addEventListener("close",y),g.showModal(),o()})},N=b=>{c.value=b.matches};l.addEventListener("change",N);const A=b=>{if(e.dataTestid)return`${e.dataTestid}-${b}`};return u.onMounted(()=>{O()}),u.onUnmounted(()=>{g.removeEventListener("click",I),l.removeEventListener("change",N)}),{closeModal:y,modalClasses:C,propagateEvent:w,emit:t,closeButton:n,getTestId:A,modal:h,useVerticalLayout:f}},components:{CloseIcon:Hm,Actions:NA}}),LA=["aria-labelledby","aria-describedby"],BA={class:"header"},MA=["id","data-testid"],FA=["data-testid"],jA=["id","data-testid"],xA={key:0,class:"footer-content"};function VA(e,t,n,o,s,l){const c=u.resolveComponent("CloseIcon"),f=u.resolveComponent("Actions");return u.openBlock(),u.createElementBlock("dialog",{class:u.normalizeClass(e.modalClasses),"aria-labelledby":`${e.id}-title`,"aria-describedby":`${e.id}-content`,ref:"modal"},[u.createElementVNode("div",BA,[e.title?(u.openBlock(),u.createElementBlock("h2",{key:0,id:`${e.id}-title`,"data-testid":e.getTestId("title")},u.toDisplayString(e.title),9,MA)):u.createCommentVNode("",!0),u.createElementVNode("button",{class:"close",onClick:t[0]||(t[0]=(...h)=>e.closeModal&&e.closeModal(...h)),"aria-label":"Lukk","data-testid":e.getTestId("close"),ref:"closeButton"},[u.createVNode(c,{class:"close-icon","aria-hidden":"true"})],8,FA)]),u.createElementVNode("main",{class:u.normalizeClass({"main-with-footer":e.actions.length>0||e.$slots.footerRight,"main-no-footer":!(e.actions.length>0||e.$slots.footerRight)})},[u.createElementVNode("div",{id:`${e.id}-content`,class:"content","data-testid":e.getTestId("content")},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,jA)],2),e.actions.length>0||e.$slots.footerRight?(u.openBlock(),u.createElementBlock("footer",xA,[u.createVNode(f,{actions:e.actions,onActionClicked:e.propagateEvent,class:u.normalizeClass({"footer-buttons-layout--horizontal":!e.useVerticalLayout,"footer-buttons-layout--vertical":e.useVerticalLayout})},null,8,["actions","onActionClicked","class"]),u.renderSlot(e.$slots,"footerRight",{},void 0,!0)])):u.createCommentVNode("",!0)],10,LA)}const UA=re(DA,[["render",VA],["__scopeId","data-v-9fa24a52"]]),WA=u.defineComponent({name:"aux-textarea",props:{modelValue:{type:[String,Number]},label:{type:String,required:!0},id:{type:String,default:Ke},description:{type:String},descriptionLabel:{type:String,required:!1},hideLabel:{type:Boolean,default:!1},name:{type:String,required:!1},placeholder:{type:String},resize:{type:String,default:"vertical"},height:{type:Number,default:7},width:{type:String,default:"60ch"},required:{type:Boolean,default:!1},value:{type:[String,Number],default:""}},emits:["blur","update:modelValue","input"],setup(e,{emit:t}){return{styles:u.computed(()=>({resize:e.resize,"max-width":e.width})),blurEmit(o){o.target&&t("blur",o.target.value)},handleInput(o){o.target&&(t("input",o.target.value),t("update:modelValue",o.target.value))}}},components:{FormElement:qr}}),zA=["placeholder","id","rows","name","required","resize","value"];function qA(e,t,n,o,s,l){const c=u.resolveComponent("FormElement");return u.openBlock(),u.createBlock(c,{class:"aux-textarea",id:e.id,label:e.label,"hide-label":e.hideLabel,"description-label":e.descriptionLabel,description:e.description},{default:u.withCtx(()=>[u.createElementVNode("textarea",{class:"aux-input-textarea",placeholder:e.placeholder,id:e.id,rows:e.height,name:e.name,required:e.required,resize:e.resize,style:u.normalizeStyle(e.styles),value:e.modelValue||e.value,onBlur:t[0]||(t[0]=(...f)=>e.blurEmit&&e.blurEmit(...f)),onInput:t[1]||(t[1]=(...f)=>e.handleInput&&e.handleInput(...f))},` test
2
- `,44,zA)]),_:1},8,["id","label","hide-label","description-label","description"])}const GA=re(WA,[["render",qA],["__scopeId","data-v-bcace8de"]]),HA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function KA(e,t){return u.openBlock(),u.createElementBlock("svg",HA,t[0]||(t[0]=[u.createElementVNode("path",{d:"M215.996 48H176v-8a24.027 24.027 0 0 0-24-24h-48a24.027 24.027 0 0 0-24 24v8H39.996a8 8 0 0 0 0 16h8v144a16.02 16.02 0 0 0 16 16h128a16.02 16.02 0 0 0 16-16V64h8a8 8 0 0 0 0-16M96 40a8.01 8.01 0 0 1 8-8h48a8.01 8.01 0 0 1 8 8v8H96Zm95.996 168h-128V64h128ZM112 104v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0m48 0v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0"},null,-1)]))}const JA={render:KA},YA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function ZA(e,t){return u.openBlock(),u.createElementBlock("svg",YA,t[0]||(t[0]=[u.createElementVNode("path",{d:"M180.68 95.714a12 12 0 0 1-.394 16.966l-58.666 56a12 12 0 0 1-16.572 0l-29.334-28a12 12 0 1 1 16.57-17.36l21.05 20.09 50.38-48.09a12 12 0 0 1 16.966.394M236 128A108 108 0 1 1 128 20a108.12 108.12 0 0 1 108 108m-24 0a84 84 0 1 0-84 84 84.095 84.095 0 0 0 84-84"},null,-1)]))}const XA={render:ZA},QA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function eC(e,t){return u.openBlock(),u.createElementBlock("svg",QA,t[0]||(t[0]=[u.createElementVNode("path",{d:"M116 144V96a12 12 0 0 1 24 0v48a12 12 0 0 1-24 0m12 20a16 16 0 1 0 16 16 16 16 0 0 0-16-16m112.232 49.979a27.71 27.71 0 0 1-24.255 14.013H40.023a28 28 0 0 1-24.233-42.026l87.977-151.993a28 28 0 0 1 48.466 0l87.977 151.992a27.71 27.71 0 0 1 .022 28.014m-20.794-15.99L131.462 45.995a4 4 0 0 0-6.924 0L36.562 197.988a4 4 0 0 0 3.461 6.004h175.954a4 4 0 0 0 3.461-6.004"},null,-1)]))}const tC={render:eC},rC=u.defineComponent({name:"aux-file",props:{file:{type:File},filename:{type:String,required:!0},filePath:{type:String,required:!1},time:{type:String,required:!0},percentage:{type:Number},uuid:{type:String,required:!0},failed:{type:Boolean,default:!1}},emits:["remove-file"],setup(e,{emit:t}){return{removeFile:()=>{t("remove-file",e.uuid)}}},components:{Button:Ai,TrashIcon:JA,CheckCircleIcon:XA,WarningIcon:tC}}),nC={class:"aux-file"},aC=["href"],oC={key:1,class:"aux-filename"},iC={class:"aux-file-uploaded-date"},sC={class:"aux-file-status"},uC=["value"],lC={key:2,class:"aux-error"};function cC(e,t,n,o,s,l){const c=u.resolveComponent("CheckCircleIcon"),f=u.resolveComponent("WarningIcon"),h=u.resolveComponent("TrashIcon");return u.openBlock(),u.createElementBlock("li",nC,[u.createElementVNode("div",null,[e.filePath?(u.openBlock(),u.createElementBlock("a",{key:0,href:e.filePath,class:"aux-filename-link"},u.toDisplayString(e.filename),9,aC)):(u.openBlock(),u.createElementBlock("span",oC,u.toDisplayString(e.filename),1)),u.createElementVNode("span",iC," ("+u.toDisplayString(e.time)+")",1)]),u.createElementVNode("div",sC,[e.percentage&&e.percentage<100&&!e.failed?(u.openBlock(),u.createElementBlock("progress",{key:0,max:"100",value:e.percentage},null,8,uC)):u.createCommentVNode("",!0),e.percentage===100&&!e.failed?(u.openBlock(),u.createBlock(c,{key:1,class:"aux-checkmark-icon"})):u.createCommentVNode("",!0),e.failed?(u.openBlock(),u.createElementBlock("span",lC,[e.failed?(u.openBlock(),u.createBlock(f,{key:0,class:"aux-error-icon"})):u.createCommentVNode("",!0),t[1]||(t[1]=u.createTextVNode(" Filopplastning feilet "))])):u.createCommentVNode("",!0),u.createElementVNode("button",{class:"aux-remove-button",onClick:t[0]||(t[0]=(...g)=>e.removeFile&&e.removeFile(...g))},[u.createVNode(h,{class:"aux-trash-icon"})])])])}const dC=re(rC,[["render",cC],["__scopeId","data-v-ef471a90"]]),fC=u.defineComponent({name:"aux-upload",props:{files:{type:Array,default:()=>[]},id:{type:String,default:Ke},label:{type:String},description:{type:String},hideLabel:{type:Boolean,default:!1},maxFileSize:{type:Number,default:Number},maxAttachmentCount:{type:Number}},emits:["file-added","file-removed"],setup(e,{emit:t}){const n="aux-input-upload-field-wrapper--drag",o="aux-input-upload-field-wrapper--no-drag",s=u.ref(),l=u.ref(),c=u.ref(""),f=[],h=u.reactive({fileList:e.files,isOver:!1,message:""}),g=u.computed(()=>({"aux-input-upload-field-wrapper":!0,[n]:h.isOver,[o]:!h.isOver})),y=u.computed(()=>h.fileList.length!==0),w=()=>{s.value.classList.contains(o)&&(h.isOver=!0)},C=()=>{h.isOver=!1},I=b=>{O(b);const R=l.value;if(h.isOver=!1,R.files.length>0){const M=new Date(Date.now()).toLocaleString("nb-NO",{timeZone:"UTC"});R.files.forEach(U=>{U.uuid=Ke();const G={uuid:U.uuid,filename:U.name,time:M,file:U};f.push(G),t("file-added",G)})}},O=b=>{const M=b.target.files;N(M)},N=b=>{const R=f&&f.length,M=Object.keys(b),U=e==null?void 0:e.maxAttachmentCount,G=e==null?void 0:e.maxFileSize,se=M.length+R>U;M.reduce((X,he)=>{const ue=b[he].size/1024/1024,Te=ue>=G,Ee=ue<=0;switch(!0){case se:return c.value=`For mange filer, maksimalt antall tillatt: ${e==null?void 0:e.maxAttachmentCount}`,c.value;case Te:return c.value=`Filen er for stor: ${ue.toFixed(0)}MB. Maks størrelse: ${G}MB`,c.value;case Ee:return c.value=`Filen er for liten: ${ue.toFixed(0)}MB.`,c.value;default:return c.value=X,X}},"")},A=b=>{l.value.value="",t("file-removed",b)};return u.watch(()=>e.files,b=>{h.fileList=b},{deep:!0}),{removeFile:A,filesUploaded:y,state:h,dragLeave:C,addFile:I,wrapperClasses:g,dragover:w,inputField:l,inputFieldWrapper:s,errorMessage:c,handleFile:O,filesCollection:f,setWarning:N}},components:{FileComponent:dC,FormElement:qr}}),pC={for:"assets",class:"aux-helptext"},hC={key:0,class:"aux-label"},mC={key:1,class:"aux-label"},gC={key:0,class:"aux-file-list"},vC={key:1,class:"aux-error"};function yC(e,t,n,o,s,l){const c=u.resolveComponent("FileComponent"),f=u.resolveComponent("FormElement");return u.openBlock(),u.createBlock(f,{class:"aux-upload-field",id:e.id,label:e.label,description:e.description,"hide-label":e.hideLabel},{default:u.withCtx(()=>[u.createElementVNode("div",{ref:"inputFieldWrapper",class:u.normalizeClass(e.wrapperClasses),onDragleave:t[1]||(t[1]=(...h)=>e.dragLeave&&e.dragLeave(...h)),onDragover:t[2]||(t[2]=(...h)=>e.dragover&&e.dragover(...h)),onDrop:t[3]||(t[3]=(...h)=>e.dragLeave&&e.dragLeave(...h))},[u.createElementVNode("input",{class:"aux-input-file-upload",ref:"inputField",name:"assets",id:"assets",type:"file",accept:".pdf, .png, .jpeg",multiple:"",onChange:t[0]||(t[0]=(...h)=>e.addFile&&e.addFile(...h))},null,544),u.createElementVNode("label",pC,[e.state.isOver?(u.openBlock(),u.createElementBlock("span",hC,"Slipp for å laste opp")):(u.openBlock(),u.createElementBlock("span",mC,t[4]||(t[4]=[u.createElementVNode("span",{class:"aux-faux-link"}," Last opp vedlegg ",-1),u.createTextVNode(" eller dra og slipp her ")])))])],34),e.filesUploaded?(u.openBlock(),u.createElementBlock("ul",gC,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.state.fileList,h=>(u.openBlock(),u.createBlock(c,{key:h.uuid,time:h.time,file:h.file,filename:h.filename,filePath:h.filePath,uuid:h.uuid,failed:h.failed,percentage:h.percentage,onRemoveFile:e.removeFile},null,8,["time","file","filename","filePath","uuid","failed","percentage","onRemoveFile"]))),128))])):u.createCommentVNode("",!0),e.errorMessage?(u.openBlock(),u.createElementBlock("span",vC,u.toDisplayString(e.errorMessage),1)):u.createCommentVNode("",!0)]),_:1},8,["id","label","description","hide-label"])}const _C=re(fC,[["render",yC],["__scopeId","data-v-ec61b4a4"]]),$C=u.defineComponent({name:"aux-card"}),bC={class:"aux-card"};function wC(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",bC,[u.renderSlot(e.$slots,"default",{},void 0,!0)])}const EC=re($C,[["render",wC],["__scopeId","data-v-277be13b"]]),SC=["grey-2","yellow","red","mint-3","mint-1","blue","purple-1","purple-2"],AC=u.defineComponent({name:"aux-tag",props:{color:{type:String,default:"grey-2",validator:e=>[...SC].includes(e)}},setup(e){return{classes:u.computed(()=>({"aux-tag":!0,[`aux-tag--${e.color}`]:!0}))}}});function CC(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("span",{class:u.normalizeClass(e.classes)},[u.renderSlot(e.$slots,"default",{},void 0,!0)],2)}const OC=re(AC,[["render",CC],["__scopeId","data-v-bdd2205a"]]),TC={},IC={},PC={},RC={dateStyle:"short"},kC={dateStyle:"full"},NC={timeStyle:"short"},DC={timeStyle:"medium"},LC={dateAndTime:TC,dateAndTimeWithSeconds:IC,date:RC,dateFull:kC,dateWithWeekDay:PC,time:NC,timeWithSeconds:DC},Xo=(e,t)=>new Date(e).toLocaleString("nb-NB",LC[t]),BC=(e,t)=>{const n=Xo(e,"date");if(t==="dateAndTimeWithSeconds"){const s=Xo(e,"timeWithSeconds");return`${n} - kl. ${s}`}else if(t==="dateWithWeekDay")return`${e.toLocaleString("nb-NB",{weekday:"long"})} ${n}`;const o=Xo(e,"time");return`${n} - kl. ${o}`};function Yt(e,t="dateAndTime"){return t==="dateAndTime"||t==="dateAndTimeWithSeconds"||t==="dateWithWeekDay"?BC(e,t):Xo(e,t)}const MC=u.defineComponent({name:"aux-time",props:{date:{type:String,required:!0},format:{type:String,required:!1}},setup(){return{formatDate:Yt,formatFirstDate:(n,o="dateAndTime")=>{const s=Yt(new Date(n),"dateFull").split(" ");switch(o){case"date":return Yt(new Date(n),"date");case"dateAndTimeWithSeconds":return`${Yt(new Date(n),"date")} - `;case"dateFull":return`${s[0]} ${s[1]} `;case"time":return Yt(new Date(n),"time");case"timeWithSeconds":return Yt(new Date(n),"timeWithSeconds");default:return`${Yt(new Date(n),"date")} - `}},formatSecondDate:(n,o="dateAndTime")=>{const s=Yt(new Date(n),"dateFull").split(" ");switch(o){case"date":return;case"dateAndTimeWithSeconds":return`kl. ${Yt(new Date(n),"timeWithSeconds")}`;case"dateFull":return`${s[2]} ${s[3]}`;case"time":break;case"timeWithSeconds":break;default:return`kl. ${Yt(new Date(n),"time")}`}}}}}),FC={class:"date-time"},jC={class:"date-time-element"},xC={class:"date-time-element"};function VC(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("span",FC,[u.createElementVNode("span",jC,u.toDisplayString(e.formatFirstDate(e.date,e.format)),1),t[0]||(t[0]=u.createElementVNode("wbr",null,null,-1)),u.createElementVNode("span",xC,u.toDisplayString(e.formatSecondDate(e.date,e.format)),1)])}const UC=re(MC,[["render",VC],["__scopeId","data-v-6ba3306a"]]),WC=u.defineComponent({name:"aux-toggle",props:{id:{type:String,default:Ke},label:{type:String,required:!1},offLabel:{type:String,default:"Av"},onLabel:{type:String,default:"På"},checked:{type:Boolean,default:!1},hideLabel:{type:Boolean,default:!1},hideOffLabel:{type:Boolean,default:!1},hideOnLabel:{type:Boolean,default:!1},dataTestid:{type:String,required:!1}},emits:["change"],setup(e,{emit:t}){const n=u.ref(null),o=u.ref(null),s=u.ref(!1),l=()=>{s.value=!s.value,n.value&&o.value&&(s.value?n.value.click():o.value.click())},c=()=>{if(n.value){s.value=n.value.checked;const y=h.value;t("change",s.value,y)}},f=y=>{if(e.dataTestid)return`${e.dataTestid}-${y}`},h=u.computed(()=>e.onLabel!==void 0&&e.offLabel!==void 0?s.value?e.onLabel:e.offLabel:"På"),g=u.computed(()=>e.onLabel!==void 0&&e.offLabel!==void 0?s.value?e.offLabel:e.onLabel:"Av");return{activeText:h,inactiveText:g,getTestId:f,change:c,toggle:l,active:s,radioOn:n,radioOff:o}},beforeMount(){this.$props.checked!==void 0&&(this.active=this.$props.checked)}}),zC=["data-testid"],qC=["data-testId"],GC=["id","name","checked","data-testid"],HC=["for","data-testId"],KC={"aria-hidden":"true"},JC=["aria-label","data-testId"],YC=["id","name","checked","data-testid"],ZC=["for","data-testId"],XC={"aria-hidden":"true"};function QC(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("fieldset",{class:"aux-toggle","data-testid":e.dataTestid},[u.createElementVNode("legend",{class:u.normalizeClass({"aux-toggle-legend":!0,"aux-toggle-hidden":e.hideLabel}),"data-testId":e.getTestId("legend")},u.toDisplayString(e.label),11,qC),u.createElementVNode("input",{type:"radio",tabindex:"-1",class:"aux-toggle-radio aux-toggle-radio-off",id:`${e.id}-off`,name:e.id,ref:"radioOff",checked:!e.checked,"data-testid":e.getTestId("radioOff"),onChange:t[0]||(t[0]=(...c)=>e.change&&e.change(...c))},null,40,GC),u.createElementVNode("label",{for:`${e.id}-off`,class:u.normalizeClass({"aux-toggle-label":!0,"aux-toggle-label-off":!0,"aux-toggle-hidden":e.hideOffLabel}),"data-testId":e.getTestId("labelOff")},[u.createTextVNode(u.toDisplayString(e.offLabel)+" ",1),u.createElementVNode("span",KC,u.toDisplayString(e.offLabel),1)],10,HC),u.createElementVNode("button",{class:u.normalizeClass({"aux-toggle-button":!0,"aux-toggle-button-pressed":e.active}),"aria-label":`${e.label} er satt til ${e.activeText}. Trykk for å endre til ${e.inactiveText}.`,"data-testId":e.getTestId("button"),onClick:t[1]||(t[1]=u.withModifiers((...c)=>e.toggle&&e.toggle(...c),["prevent"]))},null,10,JC),u.createElementVNode("input",{type:"radio",tabindex:"-1",class:"aux-toggle-radio aux-toggle-radio-on",id:`${e.id}-on`,name:e.id,ref:"radioOn",checked:e.checked,"data-testid":e.getTestId("radioOn"),onChange:t[2]||(t[2]=(...c)=>e.change&&e.change(...c))},null,40,YC),u.createElementVNode("label",{for:`${e.id}-on`,class:u.normalizeClass({"aux-toggle-label":!0,"aux-toggle-label-on":!0,"aux-toggle-hidden":e.hideOnLabel}),"data-testId":e.getTestId("labelOn")},[u.createTextVNode(u.toDisplayString(e.onLabel)+" ",1),u.createElementVNode("span",XC,u.toDisplayString(e.onLabel),1)],10,ZC)],8,zC)}const eO=re(WC,[["render",QC],["__scopeId","data-v-724c3167"]]),tO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function rO(e,t){return u.openBlock(),u.createElementBlock("svg",tO,t[0]||(t[0]=[u.createElementVNode("path",{d:"M96 216a8 8 0 0 1-5.657-13.657L164.686 128 90.343 53.657a8 8 0 0 1 11.314-11.314l80 80a8 8 0 0 1 0 11.314l-80 80A7.98 7.98 0 0 1 96 216"},null,-1)]))}const nO={render:rO},aO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function oO(e,t){return u.openBlock(),u.createElementBlock("svg",aO,t[0]||(t[0]=[u.createElementVNode("path",{d:"M160 216a7.98 7.98 0 0 1-5.657-2.343l-80-80a8 8 0 0 1 0-11.314l80-80a8 8 0 0 1 11.314 11.314L91.314 128l74.343 74.343A8 8 0 0 1 160 216"},null,-1)]))}const iO={render:oO},sO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function uO(e,t){return u.openBlock(),u.createElementBlock("svg",sO,t[0]||(t[0]=[u.createElementVNode("path",{d:"M140.001 128a12 12 0 1 1-12-12 12 12 0 0 1 12 12m-76-12a12 12 0 1 0 12 12 12 12 0 0 0-12-12m128 0a12 12 0 1 0 12 12 12 12 0 0 0-12-12"},null,-1)]))}const lO={render:uO},cO=u.defineComponent({name:"aux-pagination",emits:["change"],props:{config:{type:Object,required:!0},width:{type:Number,required:!1,default:5,validator:e=>{const t=e%2!==1;return t&&console.error("Width need to be an odd number"),!t}},dataTestId:{type:String,required:!1}},setup(e,{emit:t}){const n=u.ref(0),o=u.ref(!1),s=u.ref(),l=new ResizeObserver(X=>{for(const te of X){const ue=te.contentBoxSize[0].inlineSize;o.value=ue<=470}});u.onMounted(()=>{l.observe(s.value)});const c=()=>M.value-w()<=1,f=()=>M.value+w()>=R.value,h=()=>{let X=M.value+w();return c()&&(X=e.width+1),X},g=()=>{let X=M.value-w();return X<=1?X=2:f()&&(X=R.value-e.width),X-1},y=()=>{const X=[];for(let he=1;he<R.value;he++)X.push(he);return X},w=()=>Math.floor(e.width/2),C=X=>{n.value=(X-1)*e.config.limit,t("change",{offset:n.value,currentPage:M.value,width:e.width,config:e.config})},I=()=>{C(M.value+1)},O=()=>{C(M.value-1)},N=X=>{C(X)},A=()=>{C(M.value-e.width)},b=()=>{C(M.value+e.width)},R=u.computed(()=>Math.ceil(e.config.totalCount/e.config.limit)),M=u.computed(()=>n.value/e.config.limit+1),U=u.computed(()=>{const X=y(),he=[...X.slice(g(),h())];return M.value-w()>2&&(he.shift(),he.unshift("ellipsis-left")),M.value+w()<X.length&&(he.pop(),he.push("ellipsis-right")),he.unshift(1),he.push(R.value),he}),G=u.computed(()=>Object.prototype.hasOwnProperty.call(e.config,"offset")&&Object.prototype.hasOwnProperty.call(e.config,"limit")&&Object.prototype.hasOwnProperty.call(e.config,"totalCount"));return(()=>{n.value=e.config.offset,G.value||console.warn("Pagination require: offset, limit, and totalCount")})(),{totalPages:R,generateButtons:U,goToSelectedPage:N,goToPreviousPage:O,goToNextPage:I,skipBackward:A,skipForward:b,currentPage:M,isSmallScreen:o,auxPaginationWrapper:s}},components:{CaretRightIcon:nO,CaretLeftIcon:iO,AuxButton:Ai,EllipsisIcon:lO}}),dO={key:0,class:"aux-pagination",ref:"auxPaginationWrapper"},fO={key:0,class:"aux-pagination-small-device","aria-live":"polite"},pO={key:0,class:"aux-ellipsis aux-pagination-item"},hO={"aria-hidden":"true"},mO={"aria-hidden":"true"},gO={class:"aux-sr-only"},vO={key:2,class:"aux-ellipsis aux-pagination-item"};function yO(e,t,n,o,s,l){const c=u.resolveComponent("CaretLeftIcon"),f=u.resolveComponent("AuxButton"),h=u.resolveComponent("EllipsisIcon"),g=u.resolveComponent("CaretRightIcon");return e.totalPages>1?(u.openBlock(),u.createElementBlock("div",dO,[u.createVNode(f,{size:"small",class:"aux-pagination-item",primary:"",disabled:e.currentPage===1,onClick:e.goToPreviousPage},{default:u.withCtx(()=>[u.createVNode(c,{class:"icon"}),t[0]||(t[0]=u.createElementVNode("span",{class:"aux-sr-only"},"Gå til forrige side",-1))]),_:1},8,["disabled","onClick"]),e.isSmallScreen?(u.openBlock(),u.createElementBlock("span",fO," Side "+u.toDisplayString(e.currentPage)+" av "+u.toDisplayString(e.totalPages),1)):u.createCommentVNode("",!0),e.isSmallScreen?u.createCommentVNode("",!0):(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:1},u.renderList(e.generateButtons,(y,w)=>(u.openBlock(),u.createElementBlock(u.Fragment,{key:w},[y==="ellipsis-left"?(u.openBlock(),u.createElementBlock("div",pO,[u.createVNode(h,{class:"icon"})])):u.createCommentVNode("",!0),typeof y=="number"?(u.openBlock(),u.createBlock(f,{key:1,size:"small",class:"aux-pagination-item",disabled:e.currentPage===y,onClick:C=>e.goToSelectedPage(y)},{default:u.withCtx(()=>[y===1?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[t[1]||(t[1]=u.createElementVNode("span",{class:"aux-sr-only"},"Gå til første side",-1)),u.createElementVNode("span",hO,u.toDisplayString(y),1)],64)):y===e.totalPages?(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[t[2]||(t[2]=u.createElementVNode("span",{class:"aux-sr-only"},"Gå til siste side",-1)),u.createElementVNode("span",mO,u.toDisplayString(y),1)],64)):y!==1&&y!==e.totalPages?(u.openBlock(),u.createElementBlock(u.Fragment,{key:2},[t[3]||(t[3]=u.createElementVNode("span",{class:"aux-sr-only"},"Gå til side ",-1)),u.createTextVNode(" "+u.toDisplayString(y)+" ",1),u.createElementVNode("span",gO," av totalt "+u.toDisplayString(e.totalPages),1)],64)):u.createCommentVNode("",!0)]),_:2},1032,["disabled","onClick"])):u.createCommentVNode("",!0),y==="ellipsis-right"?(u.openBlock(),u.createElementBlock("div",vO,[u.createVNode(h,{class:"icon"})])):u.createCommentVNode("",!0)],64))),128)),u.createVNode(f,{size:"small",class:"aux-pagination-item",primary:"",disabled:e.currentPage===e.totalPages,onClick:e.goToNextPage},{default:u.withCtx(()=>[u.createVNode(g,{class:"icon"}),t[4]||(t[4]=u.createElementVNode("span",{class:"aux-sr-only"},"Gå til neste side",-1))]),_:1},8,["disabled","onClick"])],512)):u.createCommentVNode("",!0)}const _O=re(cO,[["render",yO],["__scopeId","data-v-25d5b90c"]]),$O=u.defineComponent({name:"AuxAriaAnnouncer",props:{priority:{type:String,default:"polite",validator:e=>{const t=["polite","off","assertive"],n=t.includes(e);return n||console.error(`Priority needs to be one of these: ${t.join(",")}`),n}}}}),bO=["aria-live"];function wO(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("p",{class:"aux-sr-only","aria-live":e.priority},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,bO)}const EO=re($O,[["render",wO],["__scopeId","data-v-5f63c119"]]),SO=u.defineComponent({name:"aux-notification",props:{type:{type:String,required:!0},id:{type:String,required:!0}},emits:["remove-notification"],setup(e,{emit:t}){const n=u.ref(!1),o=u.computed(()=>({"aux-notification":!0,[`aux-notification--${e.type}`]:e.type,"aux-notification-show":n.value})),s=()=>{t("remove-notification",e.id)};setTimeout(()=>{n.value=!0},100),setTimeout(()=>{s()},6e3);const l=u.computed(()=>{switch(e.type){case"error":return li;case"warning":return li;case"success":return Du;default:return Lu}});return{classes:o,icon:l,removeNotification:s}}});function AO(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("li",{class:u.normalizeClass(e.classes),onClick:t[0]||(t[0]=(...c)=>e.removeNotification&&e.removeNotification(...c))},[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.icon),{class:"aux-icon","aria-hidden":"true"})),u.renderSlot(e.$slots,"default",{},void 0,!0)],2)}const CO=re(SO,[["render",AO],["__scopeId","data-v-d478a453"]]),OO=u.defineComponent({name:"aux-notifications",props:{notifications:{type:Array,default:()=>[]}},emits:["remove-notification"],setup(e,{emit:t}){return{removeNotification:o=>{t("remove-notification",o)}}},components:{Notification:CO}}),TO={class:"aux-notifications"};function IO(e,t,n,o,s,l){const c=u.resolveComponent("Notification");return u.openBlock(),u.createElementBlock("ul",TO,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.notifications,f=>(u.openBlock(),u.createBlock(c,{key:f.id,id:f.id,type:f.type,onRemoveNotification:e.removeNotification},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(f.message),1)]),_:2},1032,["id","type","onRemoveNotification"]))),128))])}const PO=re(OO,[["render",IO],["__scopeId","data-v-58b84b39"]]);var Er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var RO=typeof Er=="object"&&Er&&Er.Object===Object&&Er,Km=RO,kO=Km,NO=typeof self=="object"&&self&&self.Object===Object&&self,DO=kO||NO||Function("return this")(),St=DO,LO=St,BO=LO.Symbol,zn=BO,Dp=zn,Jm=Object.prototype,MO=Jm.hasOwnProperty,FO=Jm.toString,wa=Dp?Dp.toStringTag:void 0;function jO(e){var t=MO.call(e,wa),n=e[wa];try{e[wa]=void 0;var o=!0}catch{}var s=FO.call(e);return o&&(t?e[wa]=n:delete e[wa]),s}var xO=jO,VO=Object.prototype,UO=VO.toString;function WO(e){return UO.call(e)}var zO=WO,Lp=zn,qO=xO,GO=zO,HO="[object Null]",KO="[object Undefined]",Bp=Lp?Lp.toStringTag:void 0;function JO(e){return e==null?e===void 0?KO:HO:Bp&&Bp in Object(e)?qO(e):GO(e)}var Gr=JO;function YO(e){return e!=null&&typeof e=="object"}var Nt=YO,ZO=Gr,XO=Nt,QO="[object Symbol]";function eT(e){return typeof e=="symbol"||XO(e)&&ZO(e)==QO}var qn=eT,tT=qn;function rT(e,t,n){for(var o=-1,s=e.length;++o<s;){var l=e[o],c=t(l);if(c!=null&&(f===void 0?c===c&&!tT(c):n(c,f)))var f=c,h=l}return h}var nT=rT;function aT(e,t){return e>t}var oT=aT;function iT(){this.__data__=[],this.size=0}var sT=iT;function uT(e,t){return e===t||e!==e&&t!==t}var Ma=uT,lT=Ma;function cT(e,t){for(var n=e.length;n--;)if(lT(e[n][0],t))return n;return-1}var Ci=cT,dT=Ci,fT=Array.prototype,pT=fT.splice;function hT(e){var t=this.__data__,n=dT(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():pT.call(t,n,1),--this.size,!0}var mT=hT,gT=Ci;function vT(e){var t=this.__data__,n=gT(t,e);return n<0?void 0:t[n][1]}var yT=vT,_T=Ci;function $T(e){return _T(this.__data__,e)>-1}var bT=$T,wT=Ci;function ET(e,t){var n=this.__data__,o=wT(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}var ST=ET,AT=sT,CT=mT,OT=yT,TT=bT,IT=ST;function Gn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Gn.prototype.clear=AT;Gn.prototype.delete=CT;Gn.prototype.get=OT;Gn.prototype.has=TT;Gn.prototype.set=IT;var Oi=Gn,PT=Oi;function RT(){this.__data__=new PT,this.size=0}var kT=RT;function NT(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var DT=NT;function LT(e){return this.__data__.get(e)}var BT=LT;function MT(e){return this.__data__.has(e)}var FT=MT;function jT(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Wt=jT,xT=Gr,VT=Wt,UT="[object AsyncFunction]",WT="[object Function]",zT="[object GeneratorFunction]",qT="[object Proxy]";function GT(e){if(!VT(e))return!1;var t=xT(e);return t==WT||t==zT||t==UT||t==qT}var Ti=GT,HT=St,KT=HT["__core-js_shared__"],JT=KT,pu=JT,Mp=function(){var e=/[^.]+$/.exec(pu&&pu.keys&&pu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function YT(e){return!!Mp&&Mp in e}var ZT=YT,XT=Function.prototype,QT=XT.toString;function eI(e){if(e!=null){try{return QT.call(e)}catch{}try{return e+""}catch{}}return""}var Ym=eI,tI=Ti,rI=ZT,nI=Wt,aI=Ym,oI=/[\\^$.*+?()[\]{}|]/g,iI=/^\[object .+?Constructor\]$/,sI=Function.prototype,uI=Object.prototype,lI=sI.toString,cI=uI.hasOwnProperty,dI=RegExp("^"+lI.call(cI).replace(oI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fI(e){if(!nI(e)||rI(e))return!1;var t=tI(e)?dI:iI;return t.test(aI(e))}var pI=fI;function hI(e,t){return e==null?void 0:e[t]}var mI=hI,gI=pI,vI=mI;function yI(e,t){var n=vI(e,t);return gI(n)?n:void 0}var hn=yI,_I=hn,$I=St,bI=_I($I,"Map"),ul=bI,wI=hn,EI=wI(Object,"create"),Ii=EI,Fp=Ii;function SI(){this.__data__=Fp?Fp(null):{},this.size=0}var AI=SI;function CI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var OI=CI,TI=Ii,II="__lodash_hash_undefined__",PI=Object.prototype,RI=PI.hasOwnProperty;function kI(e){var t=this.__data__;if(TI){var n=t[e];return n===II?void 0:n}return RI.call(t,e)?t[e]:void 0}var NI=kI,DI=Ii,LI=Object.prototype,BI=LI.hasOwnProperty;function MI(e){var t=this.__data__;return DI?t[e]!==void 0:BI.call(t,e)}var FI=MI,jI=Ii,xI="__lodash_hash_undefined__";function VI(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=jI&&t===void 0?xI:t,this}var UI=VI,WI=AI,zI=OI,qI=NI,GI=FI,HI=UI;function Hn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Hn.prototype.clear=WI;Hn.prototype.delete=zI;Hn.prototype.get=qI;Hn.prototype.has=GI;Hn.prototype.set=HI;var KI=Hn,jp=KI,JI=Oi,YI=ul;function ZI(){this.size=0,this.__data__={hash:new jp,map:new(YI||JI),string:new jp}}var XI=ZI;function QI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var e8=QI,t8=e8;function r8(e,t){var n=e.__data__;return t8(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Pi=r8,n8=Pi;function a8(e){var t=n8(this,e).delete(e);return this.size-=t?1:0,t}var o8=a8,i8=Pi;function s8(e){return i8(this,e).get(e)}var u8=s8,l8=Pi;function c8(e){return l8(this,e).has(e)}var d8=c8,f8=Pi;function p8(e,t){var n=f8(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}var h8=p8,m8=XI,g8=o8,v8=u8,y8=d8,_8=h8;function Kn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Kn.prototype.clear=m8;Kn.prototype.delete=g8;Kn.prototype.get=v8;Kn.prototype.has=y8;Kn.prototype.set=_8;var ll=Kn,$8=Oi,b8=ul,w8=ll,E8=200;function S8(e,t){var n=this.__data__;if(n instanceof $8){var o=n.__data__;if(!b8||o.length<E8-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new w8(o)}return n.set(e,t),this.size=n.size,this}var A8=S8,C8=Oi,O8=kT,T8=DT,I8=BT,P8=FT,R8=A8;function Jn(e){var t=this.__data__=new C8(e);this.size=t.size}Jn.prototype.clear=O8;Jn.prototype.delete=T8;Jn.prototype.get=I8;Jn.prototype.has=P8;Jn.prototype.set=R8;var Ri=Jn,k8="__lodash_hash_undefined__";function N8(e){return this.__data__.set(e,k8),this}var D8=N8;function L8(e){return this.__data__.has(e)}var B8=L8,M8=ll,F8=D8,j8=B8;function ci(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new M8;++t<n;)this.add(e[t])}ci.prototype.add=ci.prototype.push=F8;ci.prototype.has=j8;var x8=ci;function V8(e,t){for(var n=-1,o=e==null?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}var U8=V8;function W8(e,t){return e.has(t)}var z8=W8,q8=x8,G8=U8,H8=z8,K8=1,J8=2;function Y8(e,t,n,o,s,l){var c=n&K8,f=e.length,h=t.length;if(f!=h&&!(c&&h>f))return!1;var g=l.get(e),y=l.get(t);if(g&&y)return g==t&&y==e;var w=-1,C=!0,I=n&J8?new q8:void 0;for(l.set(e,t),l.set(t,e);++w<f;){var O=e[w],N=t[w];if(o)var A=c?o(N,O,w,t,e,l):o(O,N,w,e,t,l);if(A!==void 0){if(A)continue;C=!1;break}if(I){if(!G8(t,function(b,R){if(!H8(I,R)&&(O===b||s(O,b,n,o,l)))return I.push(R)})){C=!1;break}}else if(!(O===N||s(O,N,n,o,l))){C=!1;break}}return l.delete(e),l.delete(t),C}var Zm=Y8,Z8=St,X8=Z8.Uint8Array,Xm=X8;function Q8(e){var t=-1,n=Array(e.size);return e.forEach(function(o,s){n[++t]=[s,o]}),n}var eP=Q8;function tP(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var rP=tP,xp=zn,Vp=Xm,nP=Ma,aP=Zm,oP=eP,iP=rP,sP=1,uP=2,lP="[object Boolean]",cP="[object Date]",dP="[object Error]",fP="[object Map]",pP="[object Number]",hP="[object RegExp]",mP="[object Set]",gP="[object String]",vP="[object Symbol]",yP="[object ArrayBuffer]",_P="[object DataView]",Up=xp?xp.prototype:void 0,hu=Up?Up.valueOf:void 0;function $P(e,t,n,o,s,l,c){switch(n){case _P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case yP:return!(e.byteLength!=t.byteLength||!l(new Vp(e),new Vp(t)));case lP:case cP:case pP:return nP(+e,+t);case dP:return e.name==t.name&&e.message==t.message;case hP:case gP:return e==t+"";case fP:var f=oP;case mP:var h=o&sP;if(f||(f=iP),e.size!=t.size&&!h)return!1;var g=c.get(e);if(g)return g==t;o|=uP,c.set(e,t);var y=aP(f(e),f(t),o,s,l,c);return c.delete(e),y;case vP:if(hu)return hu.call(e)==hu.call(t)}return!1}var bP=$P;function wP(e,t){for(var n=-1,o=t.length,s=e.length;++n<o;)e[s+n]=t[n];return e}var cl=wP,EP=Array.isArray,Qe=EP;const SP=Xe(Qe);var AP=cl,CP=Qe;function OP(e,t,n){var o=t(e);return CP(e)?o:AP(o,n(e))}var Qm=OP;function TP(e,t){for(var n=-1,o=e==null?0:e.length,s=0,l=[];++n<o;){var c=e[n];t(c,n,e)&&(l[s++]=c)}return l}var eg=TP;function IP(){return[]}var tg=IP,PP=eg,RP=tg,kP=Object.prototype,NP=kP.propertyIsEnumerable,Wp=Object.getOwnPropertySymbols,DP=Wp?function(e){return e==null?[]:(e=Object(e),PP(Wp(e),function(t){return NP.call(e,t)}))}:RP,dl=DP;function LP(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var BP=LP,MP=Gr,FP=Nt,jP="[object Arguments]";function xP(e){return FP(e)&&MP(e)==jP}var VP=xP,zp=VP,UP=Nt,rg=Object.prototype,WP=rg.hasOwnProperty,zP=rg.propertyIsEnumerable,qP=zp(function(){return arguments}())?zp:function(e){return UP(e)&&WP.call(e,"callee")&&!zP.call(e,"callee")},Fa=qP,di={exports:{}};function GP(){return!1}var HP=GP;di.exports;(function(e,t){var n=St,o=HP,s=t&&!t.nodeType&&t,l=s&&!0&&e&&!e.nodeType&&e,c=l&&l.exports===s,f=c?n.Buffer:void 0,h=f?f.isBuffer:void 0,g=h||o;e.exports=g})(di,di.exports);var ja=di.exports,KP=9007199254740991,JP=/^(?:0|[1-9]\d*)$/;function YP(e,t){var n=typeof e;return t=t??KP,!!t&&(n=="number"||n!="symbol"&&JP.test(e))&&e>-1&&e%1==0&&e<t}var xa=YP,ZP=9007199254740991;function XP(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ZP}var fl=XP,QP=Gr,eR=fl,tR=Nt,rR="[object Arguments]",nR="[object Array]",aR="[object Boolean]",oR="[object Date]",iR="[object Error]",sR="[object Function]",uR="[object Map]",lR="[object Number]",cR="[object Object]",dR="[object RegExp]",fR="[object Set]",pR="[object String]",hR="[object WeakMap]",mR="[object ArrayBuffer]",gR="[object DataView]",vR="[object Float32Array]",yR="[object Float64Array]",_R="[object Int8Array]",$R="[object Int16Array]",bR="[object Int32Array]",wR="[object Uint8Array]",ER="[object Uint8ClampedArray]",SR="[object Uint16Array]",AR="[object Uint32Array]",De={};De[vR]=De[yR]=De[_R]=De[$R]=De[bR]=De[wR]=De[ER]=De[SR]=De[AR]=!0;De[rR]=De[nR]=De[mR]=De[aR]=De[gR]=De[oR]=De[iR]=De[sR]=De[uR]=De[lR]=De[cR]=De[dR]=De[fR]=De[pR]=De[hR]=!1;function CR(e){return tR(e)&&eR(e.length)&&!!De[QP(e)]}var OR=CR;function TR(e){return function(t){return e(t)}}var pl=TR,fi={exports:{}};fi.exports;(function(e,t){var n=Km,o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,c=l&&n.process,f=function(){try{var h=s&&s.require&&s.require("util").types;return h||c&&c.binding&&c.binding("util")}catch{}}();e.exports=f})(fi,fi.exports);var hl=fi.exports,IR=OR,PR=pl,qp=hl,Gp=qp&&qp.isTypedArray,RR=Gp?PR(Gp):IR,ki=RR,kR=BP,NR=Fa,DR=Qe,LR=ja,BR=xa,MR=ki,FR=Object.prototype,jR=FR.hasOwnProperty;function xR(e,t){var n=DR(e),o=!n&&NR(e),s=!n&&!o&&LR(e),l=!n&&!o&&!s&&MR(e),c=n||o||s||l,f=c?kR(e.length,String):[],h=f.length;for(var g in e)(t||jR.call(e,g))&&!(c&&(g=="length"||s&&(g=="offset"||g=="parent")||l&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||BR(g,h)))&&f.push(g);return f}var ng=xR,VR=Object.prototype;function UR(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||VR;return e===n}var Ni=UR;function WR(e,t){return function(n){return e(t(n))}}var ag=WR,zR=ag,qR=zR(Object.keys,Object),GR=qR,HR=Ni,KR=GR,JR=Object.prototype,YR=JR.hasOwnProperty;function ZR(e){if(!HR(e))return KR(e);var t=[];for(var n in Object(e))YR.call(e,n)&&n!="constructor"&&t.push(n);return t}var ml=ZR,XR=Ti,QR=fl;function e9(e){return e!=null&&QR(e.length)&&!XR(e)}var Hr=e9,t9=ng,r9=ml,n9=Hr;function a9(e){return n9(e)?t9(e):r9(e)}var Kr=a9;const o9=Xe(Kr);var i9=Qm,s9=dl,u9=Kr;function l9(e){return i9(e,u9,s9)}var og=l9,Hp=og,c9=1,d9=Object.prototype,f9=d9.hasOwnProperty;function p9(e,t,n,o,s,l){var c=n&c9,f=Hp(e),h=f.length,g=Hp(t),y=g.length;if(h!=y&&!c)return!1;for(var w=h;w--;){var C=f[w];if(!(c?C in t:f9.call(t,C)))return!1}var I=l.get(e),O=l.get(t);if(I&&O)return I==t&&O==e;var N=!0;l.set(e,t),l.set(t,e);for(var A=c;++w<h;){C=f[w];var b=e[C],R=t[C];if(o)var M=c?o(R,b,C,t,e,l):o(b,R,C,e,t,l);if(!(M===void 0?b===R||s(b,R,n,o,l):M)){N=!1;break}A||(A=C=="constructor")}if(N&&!A){var U=e.constructor,G=t.constructor;U!=G&&"constructor"in e&&"constructor"in t&&!(typeof U=="function"&&U instanceof U&&typeof G=="function"&&G instanceof G)&&(N=!1)}return l.delete(e),l.delete(t),N}var h9=p9,m9=hn,g9=St,v9=m9(g9,"DataView"),y9=v9,_9=hn,$9=St,b9=_9($9,"Promise"),w9=b9,E9=hn,S9=St,A9=E9(S9,"Set"),C9=A9,O9=hn,T9=St,I9=O9(T9,"WeakMap"),ig=I9,Bu=y9,Mu=ul,Fu=w9,ju=C9,xu=ig,sg=Gr,Yn=Ym,Kp="[object Map]",P9="[object Object]",Jp="[object Promise]",Yp="[object Set]",Zp="[object WeakMap]",Xp="[object DataView]",R9=Yn(Bu),k9=Yn(Mu),N9=Yn(Fu),D9=Yn(ju),L9=Yn(xu),sn=sg;(Bu&&sn(new Bu(new ArrayBuffer(1)))!=Xp||Mu&&sn(new Mu)!=Kp||Fu&&sn(Fu.resolve())!=Jp||ju&&sn(new ju)!=Yp||xu&&sn(new xu)!=Zp)&&(sn=function(e){var t=sg(e),n=t==P9?e.constructor:void 0,o=n?Yn(n):"";if(o)switch(o){case R9:return Xp;case k9:return Kp;case N9:return Jp;case D9:return Yp;case L9:return Zp}return t});var Zn=sn,mu=Ri,B9=Zm,M9=bP,F9=h9,Qp=Zn,eh=Qe,th=ja,j9=ki,x9=1,rh="[object Arguments]",nh="[object Array]",Wo="[object Object]",V9=Object.prototype,ah=V9.hasOwnProperty;function U9(e,t,n,o,s,l){var c=eh(e),f=eh(t),h=c?nh:Qp(e),g=f?nh:Qp(t);h=h==rh?Wo:h,g=g==rh?Wo:g;var y=h==Wo,w=g==Wo,C=h==g;if(C&&th(e)){if(!th(t))return!1;c=!0,y=!1}if(C&&!y)return l||(l=new mu),c||j9(e)?B9(e,t,n,o,s,l):M9(e,t,h,n,o,s,l);if(!(n&x9)){var I=y&&ah.call(e,"__wrapped__"),O=w&&ah.call(t,"__wrapped__");if(I||O){var N=I?e.value():e,A=O?t.value():t;return l||(l=new mu),s(N,A,n,o,l)}}return C?(l||(l=new mu),F9(e,t,n,o,s,l)):!1}var W9=U9,z9=W9,oh=Nt;function ug(e,t,n,o,s){return e===t?!0:e==null||t==null||!oh(e)&&!oh(t)?e!==e&&t!==t:z9(e,t,n,o,ug,s)}var gl=ug,q9=Ri,G9=gl,H9=1,K9=2;function J9(e,t,n,o){var s=n.length,l=s,c=!o;if(e==null)return!l;for(e=Object(e);s--;){var f=n[s];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++s<l;){f=n[s];var h=f[0],g=e[h],y=f[1];if(c&&f[2]){if(g===void 0&&!(h in e))return!1}else{var w=new q9;if(o)var C=o(g,y,h,e,t,w);if(!(C===void 0?G9(y,g,H9|K9,o,w):C))return!1}}return!0}var Y9=J9,Z9=Wt;function X9(e){return e===e&&!Z9(e)}var lg=X9,Q9=lg,ek=Kr;function tk(e){for(var t=ek(e),n=t.length;n--;){var o=t[n],s=e[o];t[n]=[o,s,Q9(s)]}return t}var rk=tk;function nk(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var cg=nk,ak=Y9,ok=rk,ik=cg;function sk(e){var t=ok(e);return t.length==1&&t[0][2]?ik(t[0][0],t[0][1]):function(n){return n===e||ak(n,e,t)}}var uk=sk,lk=Qe,ck=qn,dk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fk=/^\w*$/;function pk(e,t){if(lk(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ck(e)?!0:fk.test(e)||!dk.test(e)||t!=null&&e in Object(t)}var vl=pk,dg=ll,hk="Expected a function";function yl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(hk);var n=function(){var o=arguments,s=t?t.apply(this,o):o[0],l=n.cache;if(l.has(s))return l.get(s);var c=e.apply(this,o);return n.cache=l.set(s,c)||l,c};return n.cache=new(yl.Cache||dg),n}yl.Cache=dg;var mk=yl,gk=mk,vk=500;function yk(e){var t=gk(e,function(o){return n.size===vk&&n.clear(),o}),n=t.cache;return t}var _k=yk,$k=_k,bk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wk=/\\(\\)?/g,Ek=$k(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(bk,function(n,o,s,l){t.push(s?l.replace(wk,"$1"):o||n)}),t}),fg=Ek;function Sk(e,t){for(var n=-1,o=e==null?0:e.length,s=Array(o);++n<o;)s[n]=t(e[n],n,e);return s}var _l=Sk,ih=zn,Ak=_l,Ck=Qe,Ok=qn,Tk=1/0,sh=ih?ih.prototype:void 0,uh=sh?sh.toString:void 0;function pg(e){if(typeof e=="string")return e;if(Ck(e))return Ak(e,pg)+"";if(Ok(e))return uh?uh.call(e):"";var t=e+"";return t=="0"&&1/e==-Tk?"-0":t}var Ik=pg,Pk=Ik;function Rk(e){return e==null?"":Pk(e)}var Va=Rk,kk=Qe,Nk=vl,Dk=fg,Lk=Va;function Bk(e,t){return kk(e)?e:Nk(e,t)?[e]:Dk(Lk(e))}var Di=Bk,Mk=qn,Fk=1/0;function jk(e){if(typeof e=="string"||Mk(e))return e;var t=e+"";return t=="0"&&1/e==-Fk?"-0":t}var mn=jk,xk=Di,Vk=mn;function Uk(e,t){t=xk(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Vk(t[n++])];return n&&n==o?e:void 0}var $l=Uk,Wk=$l;function zk(e,t,n){var o=e==null?void 0:Wk(e,t);return o===void 0?n:o}var hg=zk;const ct=Xe(hg);function qk(e,t){return e!=null&&t in Object(e)}var Gk=qk,Hk=Di,Kk=Fa,Jk=Qe,Yk=xa,Zk=fl,Xk=mn;function Qk(e,t,n){t=Hk(t,e);for(var o=-1,s=t.length,l=!1;++o<s;){var c=Xk(t[o]);if(!(l=e!=null&&n(e,c)))break;e=e[c]}return l||++o!=s?l:(s=e==null?0:e.length,!!s&&Zk(s)&&Yk(c,s)&&(Jk(e)||Kk(e)))}var mg=Qk,e4=Gk,t4=mg;function r4(e,t){return e!=null&&t4(e,t,e4)}var n4=r4,a4=gl,o4=hg,i4=n4,s4=vl,u4=lg,l4=cg,c4=mn,d4=1,f4=2;function p4(e,t){return s4(e)&&u4(t)?l4(c4(e),t):function(n){var o=o4(n,e);return o===void 0&&o===t?i4(n,e):a4(t,o,d4|f4)}}var h4=p4;function m4(e){return e}var Li=m4;function g4(e){return function(t){return t==null?void 0:t[e]}}var v4=g4,y4=$l;function _4(e){return function(t){return y4(t,e)}}var $4=_4,b4=v4,w4=$4,E4=vl,S4=mn;function A4(e){return E4(e)?b4(S4(e)):w4(e)}var C4=A4,O4=uk,T4=h4,I4=Li,P4=Qe,R4=C4;function k4(e){return typeof e=="function"?e:e==null?I4:typeof e=="object"?P4(e)?T4(e[0],e[1]):O4(e):R4(e)}var Ua=k4,N4=nT,D4=oT,L4=Ua;function B4(e,t){return e&&e.length?N4(e,L4(t),D4):void 0}var M4=B4;const bl=Xe(M4);var F4=ml,j4=Zn,x4=Fa,V4=Qe,U4=Hr,W4=ja,z4=Ni,q4=ki,G4="[object Map]",H4="[object Set]",K4=Object.prototype,J4=K4.hasOwnProperty;function Y4(e){if(e==null)return!0;if(U4(e)&&(V4(e)||typeof e=="string"||typeof e.splice=="function"||W4(e)||q4(e)||x4(e)))return!e.length;var t=j4(e);if(t==G4||t==H4)return!e.size;if(z4(e))return!F4(e).length;for(var n in e)if(J4.call(e,n))return!1;return!0}var Z4=Y4;const Oe=Xe(Z4);function X4(e,t,n,o){var s=-1,l=e==null?0:e.length;for(o&&l&&(n=e[++s]);++s<l;)n=t(n,e[s],s,e);return n}var Q4=X4;function eN(e){return function(t){return e==null?void 0:e[t]}}var tN=eN,rN=tN,nN={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},aN=rN(nN),oN=aN,iN=oN,sN=Va,uN=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lN="\\u0300-\\u036f",cN="\\ufe20-\\ufe2f",dN="\\u20d0-\\u20ff",fN=lN+cN+dN,pN="["+fN+"]",hN=RegExp(pN,"g");function mN(e){return e=sN(e),e&&e.replace(uN,iN).replace(hN,"")}var gN=mN,vN=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function yN(e){return e.match(vN)||[]}var _N=yN,$N=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function bN(e){return $N.test(e)}var wN=bN,gg="\\ud800-\\udfff",EN="\\u0300-\\u036f",SN="\\ufe20-\\ufe2f",AN="\\u20d0-\\u20ff",CN=EN+SN+AN,vg="\\u2700-\\u27bf",yg="a-z\\xdf-\\xf6\\xf8-\\xff",ON="\\xac\\xb1\\xd7\\xf7",TN="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",IN="\\u2000-\\u206f",PN=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_g="A-Z\\xc0-\\xd6\\xd8-\\xde",RN="\\ufe0e\\ufe0f",$g=ON+TN+IN+PN,bg="['’]",lh="["+$g+"]",kN="["+CN+"]",wg="\\d+",NN="["+vg+"]",Eg="["+yg+"]",Sg="[^"+gg+$g+wg+vg+yg+_g+"]",DN="\\ud83c[\\udffb-\\udfff]",LN="(?:"+kN+"|"+DN+")",BN="[^"+gg+"]",Ag="(?:\\ud83c[\\udde6-\\uddff]){2}",Cg="[\\ud800-\\udbff][\\udc00-\\udfff]",Bn="["+_g+"]",MN="\\u200d",ch="(?:"+Eg+"|"+Sg+")",FN="(?:"+Bn+"|"+Sg+")",dh="(?:"+bg+"(?:d|ll|m|re|s|t|ve))?",fh="(?:"+bg+"(?:D|LL|M|RE|S|T|VE))?",Og=LN+"?",Tg="["+RN+"]?",jN="(?:"+MN+"(?:"+[BN,Ag,Cg].join("|")+")"+Tg+Og+")*",xN="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",VN="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",UN=Tg+Og+jN,WN="(?:"+[NN,Ag,Cg].join("|")+")"+UN,zN=RegExp([Bn+"?"+Eg+"+"+dh+"(?="+[lh,Bn,"$"].join("|")+")",FN+"+"+fh+"(?="+[lh,Bn+ch,"$"].join("|")+")",Bn+"?"+ch+"+"+dh,Bn+"+"+fh,VN,xN,wg,WN].join("|"),"g");function qN(e){return e.match(zN)||[]}var GN=qN,HN=_N,KN=wN,JN=Va,YN=GN;function ZN(e,t,n){return e=JN(e),t=n?void 0:t,t===void 0?KN(e)?YN(e):HN(e):e.match(t)||[]}var XN=ZN,QN=Q4,e3=gN,t3=XN,r3="['’]",n3=RegExp(r3,"g");function a3(e){return function(t){return QN(t3(e3(t).replace(n3,"")),e,"")}}var o3=a3;function i3(e,t,n){var o=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(s);++o<s;)l[o]=e[o+t];return l}var Ig=i3,s3=Ig;function u3(e,t,n){var o=e.length;return n=n===void 0?o:n,!t&&n>=o?e:s3(e,t,n)}var l3=u3,c3="\\ud800-\\udfff",d3="\\u0300-\\u036f",f3="\\ufe20-\\ufe2f",p3="\\u20d0-\\u20ff",h3=d3+f3+p3,m3="\\ufe0e\\ufe0f",g3="\\u200d",v3=RegExp("["+g3+c3+h3+m3+"]");function y3(e){return v3.test(e)}var Pg=y3;function _3(e){return e.split("")}var $3=_3,Rg="\\ud800-\\udfff",b3="\\u0300-\\u036f",w3="\\ufe20-\\ufe2f",E3="\\u20d0-\\u20ff",S3=b3+w3+E3,A3="\\ufe0e\\ufe0f",C3="["+Rg+"]",Vu="["+S3+"]",Uu="\\ud83c[\\udffb-\\udfff]",O3="(?:"+Vu+"|"+Uu+")",kg="[^"+Rg+"]",Ng="(?:\\ud83c[\\udde6-\\uddff]){2}",Dg="[\\ud800-\\udbff][\\udc00-\\udfff]",T3="\\u200d",Lg=O3+"?",Bg="["+A3+"]?",I3="(?:"+T3+"(?:"+[kg,Ng,Dg].join("|")+")"+Bg+Lg+")*",P3=Bg+Lg+I3,R3="(?:"+[kg+Vu+"?",Vu,Ng,Dg,C3].join("|")+")",k3=RegExp(Uu+"(?="+Uu+")|"+R3+P3,"g");function N3(e){return e.match(k3)||[]}var D3=N3,L3=$3,B3=Pg,M3=D3;function F3(e){return B3(e)?M3(e):L3(e)}var j3=F3,x3=l3,V3=Pg,U3=j3,W3=Va;function z3(e){return function(t){t=W3(t);var n=V3(t)?U3(t):void 0,o=n?n[0]:t.charAt(0),s=n?x3(n,1).join(""):t.slice(1);return o[e]()+s}}var q3=z3,G3=q3,H3=G3("toUpperCase"),K3=H3,J3=o3,Y3=K3,Z3=J3(function(e,t,n){return e+(n?" ":"")+Y3(t)}),X3=Z3;const Mg=Xe(X3);var Q3=Math.ceil,eD=Math.max;function tD(e,t,n,o){for(var s=-1,l=eD(Q3((t-e)/(n||1)),0),c=Array(l);l--;)c[o?l:++s]=e,e+=n;return c}var rD=tD,nD=Ma,aD=Hr,oD=xa,iD=Wt;function sD(e,t,n){if(!iD(n))return!1;var o=typeof t;return(o=="number"?aD(n)&&oD(t,n.length):o=="string"&&t in n)?nD(n[t],e):!1}var Fg=sD,uD=/\s/;function lD(e){for(var t=e.length;t--&&uD.test(e.charAt(t)););return t}var cD=lD,dD=cD,fD=/^\s+/;function pD(e){return e&&e.slice(0,dD(e)+1).replace(fD,"")}var hD=pD,mD=hD,ph=Wt,gD=qn,hh=NaN,vD=/^[-+]0x[0-9a-f]+$/i,yD=/^0b[01]+$/i,_D=/^0o[0-7]+$/i,$D=parseInt;function bD(e){if(typeof e=="number")return e;if(gD(e))return hh;if(ph(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ph(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=mD(e);var n=yD.test(e);return n||_D.test(e)?$D(e.slice(2),n?2:8):vD.test(e)?hh:+e}var wD=bD,ED=wD,mh=1/0,SD=17976931348623157e292;function AD(e){if(!e)return e===0?e:0;if(e=ED(e),e===mh||e===-mh){var t=e<0?-1:1;return t*SD}return e===e?e:0}var jg=AD,CD=rD,OD=Fg,gu=jg;function TD(e){return function(t,n,o){return o&&typeof o!="number"&&OD(t,n,o)&&(n=o=void 0),t=gu(t),n===void 0?(n=t,t=0):n=gu(n),o=o===void 0?t<n?1:-1:gu(o),CD(t,n,o,e)}}var ID=TD,PD=ID,RD=PD(),kD=RD;const ND=Xe(kD);var DD=Object.prototype,LD=DD.hasOwnProperty;function BD(e,t){return e!=null&&LD.call(e,t)}var MD=BD,FD=MD,jD=mg;function xD(e,t){return e!=null&&jD(e,t,FD)}var VD=xD;const UD=Xe(VD);var WD=Ua,zD=Hr,qD=Kr;function GD(e){return function(t,n,o){var s=Object(t);if(!zD(t)){var l=WD(n);t=qD(t),n=function(f){return l(s[f],f,s)}}var c=e(t,n,o);return c>-1?s[l?t[c]:c]:void 0}}var HD=GD;function KD(e,t,n,o){for(var s=e.length,l=n+(o?1:-1);o?l--:++l<s;)if(t(e[l],l,e))return l;return-1}var xg=KD,JD=jg;function YD(e){var t=JD(e),n=t%1;return t===t?n?t-n:t:0}var Bi=YD,ZD=xg,XD=Ua,QD=Bi,eL=Math.max;function tL(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var s=n==null?0:QD(n);return s<0&&(s=eL(o+s,0)),ZD(e,XD(t),s)}var rL=tL,nL=HD,aL=rL,oL=nL(aL),iL=oL;const sL=Xe(iL);function uL(e){return e!==e}var lL=uL;function cL(e,t,n){for(var o=n-1,s=e.length;++o<s;)if(e[o]===t)return o;return-1}var dL=cL,fL=xg,pL=lL,hL=dL;function mL(e,t,n){return t===t?hL(e,t,n):fL(e,pL,n)}var Vg=mL,gL=Gr,vL=Qe,yL=Nt,_L="[object String]";function $L(e){return typeof e=="string"||!vL(e)&&yL(e)&&gL(e)==_L}var bL=$L,wL=_l;function EL(e,t){return wL(t,function(n){return e[n]})}var SL=EL,AL=SL,CL=Kr;function OL(e){return e==null?[]:AL(e,CL(e))}var TL=OL,IL=Vg,PL=Hr,RL=bL,kL=Bi,NL=TL,DL=Math.max;function LL(e,t,n,o){e=PL(e)?e:NL(e),n=n&&!o?kL(n):0;var s=e.length;return n<0&&(n=DL(s+n,0)),RL(e)?n<=s&&e.indexOf(t,n)>-1:!!s&&IL(e,t,n)>-1}var BL=LL;const ML=Xe(BL);var Wu={exports:{}},Ug={},Qt={},Vn={},Wa={},ge={},Da={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(R){if(super(),!e.IDENTIFIER.test(R))throw new Error("CodeGen: name must be a valid identifier");this.str=R}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class o extends t{constructor(R){super(),this._items=typeof R=="string"?[R]:R}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const R=this._items[0];return R===""||R==='""'}get str(){var R;return(R=this._str)!==null&&R!==void 0?R:this._str=this._items.reduce((M,U)=>`${M}${U}`,"")}get names(){var R;return(R=this._names)!==null&&R!==void 0?R:this._names=this._items.reduce((M,U)=>(U instanceof n&&(M[U.str]=(M[U.str]||0)+1),M),{})}}e._Code=o,e.nil=new o("");function s(b,...R){const M=[b[0]];let U=0;for(;U<R.length;)f(M,R[U]),M.push(b[++U]);return new o(M)}e._=s;const l=new o("+");function c(b,...R){const M=[I(b[0])];let U=0;for(;U<R.length;)M.push(l),f(M,R[U]),M.push(l,I(b[++U]));return h(M),new o(M)}e.str=c;function f(b,R){R instanceof o?b.push(...R._items):R instanceof n?b.push(R):b.push(w(R))}e.addCodeArg=f;function h(b){let R=1;for(;R<b.length-1;){if(b[R]===l){const M=g(b[R-1],b[R+1]);if(M!==void 0){b.splice(R-1,3,M);continue}b[R++]="+"}R++}}function g(b,R){if(R==='""')return b;if(b==='""')return R;if(typeof b=="string")return R instanceof n||b[b.length-1]!=='"'?void 0:typeof R!="string"?`${b.slice(0,-1)}${R}"`:R[0]==='"'?b.slice(0,-1)+R.slice(1):void 0;if(typeof R=="string"&&R[0]==='"'&&!(b instanceof n))return`"${b}${R.slice(1)}`}function y(b,R){return R.emptyStr()?b:b.emptyStr()?R:c`${b}${R}`}e.strConcat=y;function w(b){return typeof b=="number"||typeof b=="boolean"||b===null?b:I(Array.isArray(b)?b.join(","):b)}function C(b){return new o(I(b))}e.stringify=C;function I(b){return JSON.stringify(b).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=I;function O(b){return typeof b=="string"&&e.IDENTIFIER.test(b)?new o(`.${b}`):s`[${b}]`}e.getProperty=O;function N(b){if(typeof b=="string"&&e.IDENTIFIER.test(b))return new o(`${b}`);throw new Error(`CodeGen: invalid export name: ${b}, use explicit $id name mapping`)}e.getEsmExportName=N;function A(b){return new o(b.toString())}e.regexpCode=A})(Da);var zu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Da;class n extends Error{constructor(g){super(`CodeGen: "code" for ${g} not defined`),this.value=g.value}}var o;(function(h){h[h.Started=0]="Started",h[h.Completed=1]="Completed"})(o||(e.UsedValueState=o={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class s{constructor({prefixes:g,parent:y}={}){this._names={},this._prefixes=g,this._parent=y}toName(g){return g instanceof t.Name?g:this.name(g)}name(g){return new t.Name(this._newName(g))}_newName(g){const y=this._names[g]||this._nameGroup(g);return`${g}${y.index++}`}_nameGroup(g){var y,w;if(!((w=(y=this._parent)===null||y===void 0?void 0:y._prefixes)===null||w===void 0)&&w.has(g)||this._prefixes&&!this._prefixes.has(g))throw new Error(`CodeGen: prefix "${g}" is not allowed in this scope`);return this._names[g]={prefix:g,index:0}}}e.Scope=s;class l extends t.Name{constructor(g,y){super(y),this.prefix=g}setValue(g,{property:y,itemIndex:w}){this.value=g,this.scopePath=(0,t._)`.${new t.Name(y)}[${w}]`}}e.ValueScopeName=l;const c=(0,t._)`\n`;class f extends s{constructor(g){super(g),this._values={},this._scope=g.scope,this.opts={...g,_n:g.lines?c:t.nil}}get(){return this._scope}name(g){return new l(g,this._newName(g))}value(g,y){var w;if(y.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const C=this.toName(g),{prefix:I}=C,O=(w=y.key)!==null&&w!==void 0?w:y.ref;let N=this._values[I];if(N){const R=N.get(O);if(R)return R}else N=this._values[I]=new Map;N.set(O,C);const A=this._scope[I]||(this._scope[I]=[]),b=A.length;return A[b]=y.ref,C.setValue(y,{property:I,itemIndex:b}),C}getValue(g,y){const w=this._values[g];if(w)return w.get(y)}scopeRefs(g,y=this._values){return this._reduceValues(y,w=>{if(w.scopePath===void 0)throw new Error(`CodeGen: name "${w}" has no value`);return(0,t._)`${g}${w.scopePath}`})}scopeCode(g=this._values,y,w){return this._reduceValues(g,C=>{if(C.value===void 0)throw new Error(`CodeGen: name "${C}" has no value`);return C.value.code},y,w)}_reduceValues(g,y,w={},C){let I=t.nil;for(const O in g){const N=g[O];if(!N)continue;const A=w[O]=w[O]||new Map;N.forEach(b=>{if(A.has(b))return;A.set(b,o.Started);let R=y(b);if(R){const M=this.opts.es5?e.varKinds.var:e.varKinds.const;I=(0,t._)`${I}${M} ${b} = ${R};${this.opts._n}`}else if(R=C==null?void 0:C(b))I=(0,t._)`${I}${R}${this.opts._n}`;else throw new n(b);A.set(b,o.Completed)})}return I}}e.ValueScope=f})(zu);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Da,n=zu;var o=Da;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return o.Name}});var s=zu;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class l{optimizeNodes(){return this}optimizeNames(_,$){return this}}class c extends l{constructor(_,$,T){super(),this.varKind=_,this.name=$,this.rhs=T}render({es5:_,_n:$}){const T=_?n.varKinds.var:this.varKind,j=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${j};`+$}optimizeNames(_,$){if(_[this.name.str])return this.rhs&&(this.rhs=We(this.rhs,_,$)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class f extends l{constructor(_,$,T){super(),this.lhs=_,this.rhs=$,this.sideEffects=T}render({_n:_}){return`${this.lhs} = ${this.rhs};`+_}optimizeNames(_,$){if(!(this.lhs instanceof t.Name&&!_[this.lhs.str]&&!this.sideEffects))return this.rhs=We(this.rhs,_,$),this}get names(){const _=this.lhs instanceof t.Name?{}:{...this.lhs.names};return Je(_,this.rhs)}}class h extends f{constructor(_,$,T,j){super(_,T,j),this.op=$}render({_n:_}){return`${this.lhs} ${this.op}= ${this.rhs};`+_}}class g extends l{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`${this.label}:`+_}}class y extends l{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`break${this.label?` ${this.label}`:""};`+_}}class w extends l{constructor(_){super(),this.error=_}render({_n:_}){return`throw ${this.error};`+_}get names(){return this.error.names}}class C extends l{constructor(_){super(),this.code=_}render({_n:_}){return`${this.code};`+_}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(_,$){return this.code=We(this.code,_,$),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class I extends l{constructor(_=[]){super(),this.nodes=_}render(_){return this.nodes.reduce(($,T)=>$+T.render(_),"")}optimizeNodes(){const{nodes:_}=this;let $=_.length;for(;$--;){const T=_[$].optimizeNodes();Array.isArray(T)?_.splice($,1,...T):T?_[$]=T:_.splice($,1)}return _.length>0?this:void 0}optimizeNames(_,$){const{nodes:T}=this;let j=T.length;for(;j--;){const W=T[j];W.optimizeNames(_,$)||(dt(_,W.names),T.splice(j,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((_,$)=>Ee(_,$.names),{})}}class O extends I{render(_){return"{"+_._n+super.render(_)+"}"+_._n}}class N extends I{}class A extends O{}A.kind="else";class b extends O{constructor(_,$){super($),this.condition=_}render(_){let $=`if(${this.condition})`+super.render(_);return this.else&&($+="else "+this.else.render(_)),$}optimizeNodes(){super.optimizeNodes();const _=this.condition;if(_===!0)return this.nodes;let $=this.else;if($){const T=$.optimizeNodes();$=this.else=Array.isArray(T)?new A(T):T}if($)return _===!1?$ instanceof b?$:$.nodes:this.nodes.length?this:new b(Tr(_),$ instanceof b?[$]:$.nodes);if(!(_===!1||!this.nodes.length))return this}optimizeNames(_,$){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(_,$),!!(super.optimizeNames(_,$)||this.else))return this.condition=We(this.condition,_,$),this}get names(){const _=super.names;return Je(_,this.condition),this.else&&Ee(_,this.else.names),_}}b.kind="if";class R extends O{}R.kind="for";class M extends R{constructor(_){super(),this.iteration=_}render(_){return`for(${this.iteration})`+super.render(_)}optimizeNames(_,$){if(super.optimizeNames(_,$))return this.iteration=We(this.iteration,_,$),this}get names(){return Ee(super.names,this.iteration.names)}}class U extends R{constructor(_,$,T,j){super(),this.varKind=_,this.name=$,this.from=T,this.to=j}render(_){const $=_.es5?n.varKinds.var:this.varKind,{name:T,from:j,to:W}=this;return`for(${$} ${T}=${j}; ${T}<${W}; ${T}++)`+super.render(_)}get names(){const _=Je(super.names,this.from);return Je(_,this.to)}}class G extends R{constructor(_,$,T,j){super(),this.loop=_,this.varKind=$,this.name=T,this.iterable=j}render(_){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(_)}optimizeNames(_,$){if(super.optimizeNames(_,$))return this.iterable=We(this.iterable,_,$),this}get names(){return Ee(super.names,this.iterable.names)}}class se extends O{constructor(_,$,T){super(),this.name=_,this.args=$,this.async=T}render(_){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(_)}}se.kind="func";class X extends I{render(_){return"return "+super.render(_)}}X.kind="return";class he extends O{render(_){let $="try"+super.render(_);return this.catch&&($+=this.catch.render(_)),this.finally&&($+=this.finally.render(_)),$}optimizeNodes(){var _,$;return super.optimizeNodes(),(_=this.catch)===null||_===void 0||_.optimizeNodes(),($=this.finally)===null||$===void 0||$.optimizeNodes(),this}optimizeNames(_,$){var T,j;return super.optimizeNames(_,$),(T=this.catch)===null||T===void 0||T.optimizeNames(_,$),(j=this.finally)===null||j===void 0||j.optimizeNames(_,$),this}get names(){const _=super.names;return this.catch&&Ee(_,this.catch.names),this.finally&&Ee(_,this.finally.names),_}}class te extends O{constructor(_){super(),this.error=_}render(_){return`catch(${this.error})`+super.render(_)}}te.kind="catch";class ue extends O{render(_){return"finally"+super.render(_)}}ue.kind="finally";class Te{constructor(_,$={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...$,_n:$.lines?`
3
- `:""},this._extScope=_,this._scope=new n.Scope({parent:_}),this._nodes=[new N]}toString(){return this._root.render(this.opts)}name(_){return this._scope.name(_)}scopeName(_){return this._extScope.name(_)}scopeValue(_,$){const T=this._extScope.value(_,$);return(this._values[T.prefix]||(this._values[T.prefix]=new Set)).add(T),T}getScopeValue(_,$){return this._extScope.getValue(_,$)}scopeRefs(_){return this._extScope.scopeRefs(_,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(_,$,T,j){const W=this._scope.toName($);return T!==void 0&&j&&(this._constants[W.str]=T),this._leafNode(new c(_,W,T)),W}const(_,$,T){return this._def(n.varKinds.const,_,$,T)}let(_,$,T){return this._def(n.varKinds.let,_,$,T)}var(_,$,T){return this._def(n.varKinds.var,_,$,T)}assign(_,$,T){return this._leafNode(new f(_,$,T))}add(_,$){return this._leafNode(new h(_,e.operators.ADD,$))}code(_){return typeof _=="function"?_():_!==t.nil&&this._leafNode(new C(_)),this}object(..._){const $=["{"];for(const[T,j]of _)$.length>1&&$.push(","),$.push(T),(T!==j||this.opts.es5)&&($.push(":"),(0,t.addCodeArg)($,j));return $.push("}"),new t._Code($)}if(_,$,T){if(this._blockNode(new b(_)),$&&T)this.code($).else().code(T).endIf();else if($)this.code($).endIf();else if(T)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(_){return this._elseNode(new b(_))}else(){return this._elseNode(new A)}endIf(){return this._endBlockNode(b,A)}_for(_,$){return this._blockNode(_),$&&this.code($).endFor(),this}for(_,$){return this._for(new M(_),$)}forRange(_,$,T,j,W=this.opts.es5?n.varKinds.var:n.varKinds.let){const J=this._scope.toName(_);return this._for(new U(W,J,$,T),()=>j(J))}forOf(_,$,T,j=n.varKinds.const){const W=this._scope.toName(_);if(this.opts.es5){const J=$ instanceof t.Name?$:this.var("_arr",$);return this.forRange("_i",0,(0,t._)`${J}.length`,ie=>{this.var(W,(0,t._)`${J}[${ie}]`),T(W)})}return this._for(new G("of",j,W,$),()=>T(W))}forIn(_,$,T,j=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(_,(0,t._)`Object.keys(${$})`,T);const W=this._scope.toName(_);return this._for(new G("in",j,W,$),()=>T(W))}endFor(){return this._endBlockNode(R)}label(_){return this._leafNode(new g(_))}break(_){return this._leafNode(new y(_))}return(_){const $=new X;if(this._blockNode($),this.code(_),$.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(X)}try(_,$,T){if(!$&&!T)throw new Error('CodeGen: "try" without "catch" and "finally"');const j=new he;if(this._blockNode(j),this.code(_),$){const W=this.name("e");this._currNode=j.catch=new te(W),$(W)}return T&&(this._currNode=j.finally=new ue,this.code(T)),this._endBlockNode(te,ue)}throw(_){return this._leafNode(new w(_))}block(_,$){return this._blockStarts.push(this._nodes.length),_&&this.code(_).endBlock($),this}endBlock(_){const $=this._blockStarts.pop();if($===void 0)throw new Error("CodeGen: not in self-balancing block");const T=this._nodes.length-$;if(T<0||_!==void 0&&T!==_)throw new Error(`CodeGen: wrong number of nodes: ${T} vs ${_} expected`);return this._nodes.length=$,this}func(_,$=t.nil,T,j){return this._blockNode(new se(_,$,T)),j&&this.code(j).endFunc(),this}endFunc(){return this._endBlockNode(se)}optimize(_=1){for(;_-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(_){return this._currNode.nodes.push(_),this}_blockNode(_){this._currNode.nodes.push(_),this._nodes.push(_)}_endBlockNode(_,$){const T=this._currNode;if(T instanceof _||$&&T instanceof $)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${$?`${_.kind}/${$.kind}`:_.kind}"`)}_elseNode(_){const $=this._currNode;if(!($ instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=$.else=_,this}get _root(){return this._nodes[0]}get _currNode(){const _=this._nodes;return _[_.length-1]}set _currNode(_){const $=this._nodes;$[$.length-1]=_}}e.CodeGen=Te;function Ee(L,_){for(const $ in _)L[$]=(L[$]||0)+(_[$]||0);return L}function Je(L,_){return _ instanceof t._CodeOrName?Ee(L,_.names):L}function We(L,_,$){if(L instanceof t.Name)return T(L);if(!j(L))return L;return new t._Code(L._items.reduce((W,J)=>(J instanceof t.Name&&(J=T(J)),J instanceof t._Code?W.push(...J._items):W.push(J),W),[]));function T(W){const J=$[W.str];return J===void 0||_[W.str]!==1?W:(delete _[W.str],J)}function j(W){return W instanceof t._Code&&W._items.some(J=>J instanceof t.Name&&_[J.str]===1&&$[J.str]!==void 0)}}function dt(L,_){for(const $ in _)L[$]=(L[$]||0)-(_[$]||0)}function Tr(L){return typeof L=="boolean"||typeof L=="number"||L===null?!L:(0,t._)`!${q(L)}`}e.not=Tr;const At=D(e.operators.AND);function ft(...L){return L.reduce(At)}e.and=ft;const Ir=D(e.operators.OR);function H(...L){return L.reduce(Ir)}e.or=H;function D(L){return(_,$)=>_===t.nil?$:$===t.nil?_:(0,t._)`${q(_)} ${L} ${q($)}`}function q(L){return L instanceof t.Name?L:(0,t._)`(${L})`}})(ge);var Y={};Object.defineProperty(Y,"__esModule",{value:!0});Y.checkStrictMode=Y.getErrorPath=Y.Type=Y.useFunc=Y.setEvaluated=Y.evaluatedPropsToName=Y.mergeEvaluated=Y.eachItem=Y.unescapeJsonPointer=Y.escapeJsonPointer=Y.escapeFragment=Y.unescapeFragment=Y.schemaRefOrVal=Y.schemaHasRulesButRef=Y.schemaHasRules=Y.checkUnknownRules=Y.alwaysValidSchema=Y.toHash=void 0;const Pe=ge,FL=Da;function jL(e){const t={};for(const n of e)t[n]=!0;return t}Y.toHash=jL;function xL(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Wg(e,t),!zg(t,e.self.RULES.all))}Y.alwaysValidSchema=xL;function Wg(e,t=e.schema){const{opts:n,self:o}=e;if(!n.strictSchema||typeof t=="boolean")return;const s=o.RULES.keywords;for(const l in t)s[l]||Hg(e,`unknown keyword: "${l}"`)}Y.checkUnknownRules=Wg;function zg(e,t){if(typeof e=="boolean")return!e;for(const n in e)if(t[n])return!0;return!1}Y.schemaHasRules=zg;function VL(e,t){if(typeof e=="boolean")return!e;for(const n in e)if(n!=="$ref"&&t.all[n])return!0;return!1}Y.schemaHasRulesButRef=VL;function UL({topSchemaRef:e,schemaPath:t},n,o,s){if(!s){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,Pe._)`${n}`}return(0,Pe._)`${e}${t}${(0,Pe.getProperty)(o)}`}Y.schemaRefOrVal=UL;function WL(e){return qg(decodeURIComponent(e))}Y.unescapeFragment=WL;function zL(e){return encodeURIComponent(wl(e))}Y.escapeFragment=zL;function wl(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}Y.escapeJsonPointer=wl;function qg(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}Y.unescapeJsonPointer=qg;function qL(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)}Y.eachItem=qL;function gh({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:o}){return(s,l,c,f)=>{const h=c===void 0?l:c instanceof Pe.Name?(l instanceof Pe.Name?e(s,l,c):t(s,l,c),c):l instanceof Pe.Name?(t(s,c,l),l):n(l,c);return f===Pe.Name&&!(h instanceof Pe.Name)?o(s,h):h}}Y.mergeEvaluated={props:gh({mergeNames:(e,t,n)=>e.if((0,Pe._)`${n} !== true && ${t} !== undefined`,()=>{e.if((0,Pe._)`${t} === true`,()=>e.assign(n,!0),()=>e.assign(n,(0,Pe._)`${n} || {}`).code((0,Pe._)`Object.assign(${n}, ${t})`))}),mergeToName:(e,t,n)=>e.if((0,Pe._)`${n} !== true`,()=>{t===!0?e.assign(n,!0):(e.assign(n,(0,Pe._)`${n} || {}`),El(e,n,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Gg}),items:gh({mergeNames:(e,t,n)=>e.if((0,Pe._)`${n} !== true && ${t} !== undefined`,()=>e.assign(n,(0,Pe._)`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`)),mergeToName:(e,t,n)=>e.if((0,Pe._)`${n} !== true`,()=>e.assign(n,t===!0?!0:(0,Pe._)`${n} > ${t} ? ${n} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Gg(e,t){if(t===!0)return e.var("props",!0);const n=e.var("props",(0,Pe._)`{}`);return t!==void 0&&El(e,n,t),n}Y.evaluatedPropsToName=Gg;function El(e,t,n){Object.keys(n).forEach(o=>e.assign((0,Pe._)`${t}${(0,Pe.getProperty)(o)}`,!0))}Y.setEvaluated=El;const vh={};function GL(e,t){return e.scopeValue("func",{ref:t,code:vh[t.code]||(vh[t.code]=new FL._Code(t.code))})}Y.useFunc=GL;var qu;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(qu||(Y.Type=qu={}));function HL(e,t,n){if(e instanceof Pe.Name){const o=t===qu.Num;return n?o?(0,Pe._)`"[" + ${e} + "]"`:(0,Pe._)`"['" + ${e} + "']"`:o?(0,Pe._)`"/" + ${e}`:(0,Pe._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,Pe.getProperty)(e).toString():"/"+wl(e)}Y.getErrorPath=HL;function Hg(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,n===!0)throw new Error(t);e.self.logger.warn(t)}}Y.checkStrictMode=Hg;var sr={};Object.defineProperty(sr,"__esModule",{value:!0});const ut=ge,KL={data:new ut.Name("data"),valCxt:new ut.Name("valCxt"),instancePath:new ut.Name("instancePath"),parentData:new ut.Name("parentData"),parentDataProperty:new ut.Name("parentDataProperty"),rootData:new ut.Name("rootData"),dynamicAnchors:new ut.Name("dynamicAnchors"),vErrors:new ut.Name("vErrors"),errors:new ut.Name("errors"),this:new ut.Name("this"),self:new ut.Name("self"),scope:new ut.Name("scope"),json:new ut.Name("json"),jsonPos:new ut.Name("jsonPos"),jsonLen:new ut.Name("jsonLen"),jsonPart:new ut.Name("jsonPart")};sr.default=KL;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=ge,n=Y,o=sr;e.keywordError={message:({keyword:A})=>(0,t.str)`must pass "${A}" keyword validation`},e.keyword$DataError={message:({keyword:A,schemaType:b})=>b?(0,t.str)`"${A}" keyword must be ${b} ($data)`:(0,t.str)`"${A}" keyword is invalid ($data)`};function s(A,b=e.keywordError,R,M){const{it:U}=A,{gen:G,compositeRule:se,allErrors:X}=U,he=w(A,b,R);M??(se||X)?h(G,he):g(U,(0,t._)`[${he}]`)}e.reportError=s;function l(A,b=e.keywordError,R){const{it:M}=A,{gen:U,compositeRule:G,allErrors:se}=M,X=w(A,b,R);h(U,X),G||se||g(M,o.default.vErrors)}e.reportExtraError=l;function c(A,b){A.assign(o.default.errors,b),A.if((0,t._)`${o.default.vErrors} !== null`,()=>A.if(b,()=>A.assign((0,t._)`${o.default.vErrors}.length`,b),()=>A.assign(o.default.vErrors,null)))}e.resetErrorsCount=c;function f({gen:A,keyword:b,schemaValue:R,data:M,errsCount:U,it:G}){if(U===void 0)throw new Error("ajv implementation error");const se=A.name("err");A.forRange("i",U,o.default.errors,X=>{A.const(se,(0,t._)`${o.default.vErrors}[${X}]`),A.if((0,t._)`${se}.instancePath === undefined`,()=>A.assign((0,t._)`${se}.instancePath`,(0,t.strConcat)(o.default.instancePath,G.errorPath))),A.assign((0,t._)`${se}.schemaPath`,(0,t.str)`${G.errSchemaPath}/${b}`),G.opts.verbose&&(A.assign((0,t._)`${se}.schema`,R),A.assign((0,t._)`${se}.data`,M))})}e.extendErrors=f;function h(A,b){const R=A.const("err",b);A.if((0,t._)`${o.default.vErrors} === null`,()=>A.assign(o.default.vErrors,(0,t._)`[${R}]`),(0,t._)`${o.default.vErrors}.push(${R})`),A.code((0,t._)`${o.default.errors}++`)}function g(A,b){const{gen:R,validateName:M,schemaEnv:U}=A;U.$async?R.throw((0,t._)`new ${A.ValidationError}(${b})`):(R.assign((0,t._)`${M}.errors`,b),R.return(!1))}const y={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function w(A,b,R){const{createErrors:M}=A.it;return M===!1?(0,t._)`{}`:C(A,b,R)}function C(A,b,R={}){const{gen:M,it:U}=A,G=[I(U,R),O(A,R)];return N(A,b,G),M.object(...G)}function I({errorPath:A},{instancePath:b}){const R=b?(0,t.str)`${A}${(0,n.getErrorPath)(b,n.Type.Str)}`:A;return[o.default.instancePath,(0,t.strConcat)(o.default.instancePath,R)]}function O({keyword:A,it:{errSchemaPath:b}},{schemaPath:R,parentSchema:M}){let U=M?b:(0,t.str)`${b}/${A}`;return R&&(U=(0,t.str)`${U}${(0,n.getErrorPath)(R,n.Type.Str)}`),[y.schemaPath,U]}function N(A,{params:b,message:R},M){const{keyword:U,data:G,schemaValue:se,it:X}=A,{opts:he,propertyName:te,topSchemaRef:ue,schemaPath:Te}=X;M.push([y.keyword,U],[y.params,typeof b=="function"?b(A):b||(0,t._)`{}`]),he.messages&&M.push([y.message,typeof R=="function"?R(A):R]),he.verbose&&M.push([y.schema,se],[y.parentSchema,(0,t._)`${ue}${Te}`],[o.default.data,G]),te&&M.push([y.propertyName,te])}})(Wa);Object.defineProperty(Vn,"__esModule",{value:!0});Vn.boolOrEmptySchema=Vn.topBoolOrEmptySchema=void 0;const JL=Wa,YL=ge,ZL=sr,XL={message:"boolean schema is false"};function QL(e){const{gen:t,schema:n,validateName:o}=e;n===!1?Kg(e,!1):typeof n=="object"&&n.$async===!0?t.return(ZL.default.data):(t.assign((0,YL._)`${o}.errors`,null),t.return(!0))}Vn.topBoolOrEmptySchema=QL;function eB(e,t){const{gen:n,schema:o}=e;o===!1?(n.var(t,!1),Kg(e)):n.var(t,!0)}Vn.boolOrEmptySchema=eB;function Kg(e,t){const{gen:n,data:o}=e,s={gen:n,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,JL.reportError)(s,XL,void 0,t)}var He={},fn={};Object.defineProperty(fn,"__esModule",{value:!0});fn.getRules=fn.isJSONType=void 0;const tB=["string","number","integer","boolean","null","object","array"],rB=new Set(tB);function nB(e){return typeof e=="string"&&rB.has(e)}fn.isJSONType=nB;function aB(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}fn.getRules=aB;var Sr={};Object.defineProperty(Sr,"__esModule",{value:!0});Sr.shouldUseRule=Sr.shouldUseGroup=Sr.schemaHasRulesForType=void 0;function oB({schema:e,self:t},n){const o=t.RULES.types[n];return o&&o!==!0&&Jg(e,o)}Sr.schemaHasRulesForType=oB;function Jg(e,t){return t.rules.some(n=>Yg(e,n))}Sr.shouldUseGroup=Jg;function Yg(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(o=>e[o]!==void 0))}Sr.shouldUseRule=Yg;Object.defineProperty(He,"__esModule",{value:!0});He.reportTypeError=He.checkDataTypes=He.checkDataType=He.coerceAndCheckDataType=He.getJSONTypes=He.getSchemaTypes=He.DataType=void 0;const iB=fn,sB=Sr,uB=Wa,pe=ge,Zg=Y;var jn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(jn||(He.DataType=jn={}));function lB(e){const t=Xg(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}He.getSchemaTypes=lB;function Xg(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(iB.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}He.getJSONTypes=Xg;function cB(e,t){const{gen:n,data:o,opts:s}=e,l=dB(t,s.coerceTypes),c=t.length>0&&!(l.length===0&&t.length===1&&(0,sB.schemaHasRulesForType)(e,t[0]));if(c){const f=Sl(t,o,s.strictNumbers,jn.Wrong);n.if(f,()=>{l.length?fB(e,t,l):Al(e)})}return c}He.coerceAndCheckDataType=cB;const Qg=new Set(["string","number","integer","boolean","null"]);function dB(e,t){return t?e.filter(n=>Qg.has(n)||t==="array"&&n==="array"):[]}function fB(e,t,n){const{gen:o,data:s,opts:l}=e,c=o.let("dataType",(0,pe._)`typeof ${s}`),f=o.let("coerced",(0,pe._)`undefined`);l.coerceTypes==="array"&&o.if((0,pe._)`${c} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>o.assign(s,(0,pe._)`${s}[0]`).assign(c,(0,pe._)`typeof ${s}`).if(Sl(t,s,l.strictNumbers),()=>o.assign(f,s))),o.if((0,pe._)`${f} !== undefined`);for(const g of n)(Qg.has(g)||g==="array"&&l.coerceTypes==="array")&&h(g);o.else(),Al(e),o.endIf(),o.if((0,pe._)`${f} !== undefined`,()=>{o.assign(s,f),pB(e,f)});function h(g){switch(g){case"string":o.elseIf((0,pe._)`${c} == "number" || ${c} == "boolean"`).assign(f,(0,pe._)`"" + ${s}`).elseIf((0,pe._)`${s} === null`).assign(f,(0,pe._)`""`);return;case"number":o.elseIf((0,pe._)`${c} == "boolean" || ${s} === null
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),kS=["small","medium"],NS=["none","horizontal","vertical"],DS=u.defineComponent({name:"aux-button",props:{primary:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"medium",validator:e=>kS.includes(e)},dataTestid:{type:String,required:!1},stackDirection:{type:String,required:!1,default:"horizontal",validator:e=>NS.includes(e)}},setup(e){return{classes:u.computed(()=>({"aux-button":!0,"aux-button--primary":e.primary,"aux-button--secondary":!e.primary,[`aux-button--${e.size}`]:!0,[`aux-button--${e.stackDirection}`]:!0}))}}}),re=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},LS=["disabled","data-testid"],BS={key:0,class:"aux-button-container-left"},MS={key:1,class:"aux-button-container-right"};function FS(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("button",{type:"button",disabled:e.disabled,class:u.normalizeClass(e.classes),"data-testid":e.dataTestid},[e.$slots.left?(u.openBlock(),u.createElementBlock("span",BS,[u.renderSlot(e.$slots,"left",{},void 0,!0)])):u.createCommentVNode("",!0),u.renderSlot(e.$slots,"default",{},void 0,!0),e.$slots.right?(u.openBlock(),u.createElementBlock("span",MS,[u.renderSlot(e.$slots,"right",{},void 0,!0)])):u.createCommentVNode("",!0)],10,LS)}const Ai=re(DS,[["render",FS],["__scopeId","data-v-2dd22e7f"]]),jS=["success","info","warning","error"],xS={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function VS(e,t){return u.openBlock(),u.createElementBlock("svg",xS,t[0]||(t[0]=[u.createElementVNode("path",{d:"M177.787 98.476a8 8 0 0 1-.264 11.31l-58.666 56a8 8 0 0 1-11.047.001l-29.334-28a8 8 0 1 1 11.047-11.574l23.81 22.728 53.143-50.728a8 8 0 0 1 11.31.263M232 128A104 104 0 1 1 128 24a104.12 104.12 0 0 1 104 104m-16 0a88 88 0 1 0-88 88 88.1 88.1 0 0 0 88-88"},null,-1)]))}const Du={render:VS},US={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function WS(e,t){return u.openBlock(),u.createElementBlock("svg",US,t[0]||(t[0]=[u.createElementVNode("path",{d:"M128 24a104 104 0 1 0 104 104A104.12 104.12 0 0 0 128 24m0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88M116 84a12 12 0 1 1 12 12 12 12 0 0 1-12-12m28 92a8 8 0 0 1-8 8h-8a8 8 0 0 1-8-8v-48a8 8 0 0 1 0-16h8a8 8 0 0 1 8 8v48a8 8 0 0 1 8 8"},null,-1)]))}const Lu={render:WS},zS={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function qS(e,t){return u.openBlock(),u.createElementBlock("svg",zS,t[0]||(t[0]=[u.createElementVNode("path",{d:"M128 24a104 104 0 1 0 104 104A104.12 104.12 0 0 0 128 24m0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88m-8-80V80a8 8 0 1 1 16 0v56a8 8 0 1 1-16 0m20 36a12 12 0 1 1-12-12 12 12 0 0 1 12 12"},null,-1)]))}const Cp={render:qS},GS={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function HS(e,t){return u.openBlock(),u.createElementBlock("svg",GS,t[0]||(t[0]=[u.createElementVNode("path",{d:"M120 144V96a8 8 0 0 1 16 0v48a8 8 0 0 1-16 0m8 24a12 12 0 1 0 12 12 12 12 0 0 0-12-12m108.768 43.981a23.75 23.75 0 0 1-20.791 12.011H40.023a24 24 0 0 1-20.771-36.022l87.977-151.993a24 24 0 0 1 41.543 0l87.976 151.992a23.75 23.75 0 0 1 .02 24.012M222.9 195.984 134.924 43.992a8 8 0 0 0-13.848 0L33.1 195.984a8 8 0 0 0 6.923 12.008h175.954a8 8 0 0 0 6.923-12.008"},null,-1)]))}const li={render:HS};var nt=[];for(var fu=0;fu<256;++fu)nt.push((fu+256).toString(16).slice(1));function KS(e,t=0){return(nt[e[t+0]]+nt[e[t+1]]+nt[e[t+2]]+nt[e[t+3]]+"-"+nt[e[t+4]]+nt[e[t+5]]+"-"+nt[e[t+6]]+nt[e[t+7]]+"-"+nt[e[t+8]]+nt[e[t+9]]+"-"+nt[e[t+10]]+nt[e[t+11]]+nt[e[t+12]]+nt[e[t+13]]+nt[e[t+14]]+nt[e[t+15]]).toLowerCase()}var Uo,JS=new Uint8Array(16);function YS(){if(!Uo&&(Uo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Uo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Uo(JS)}var ZS=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Op={randomUUID:ZS};function Ke(e,t,n){if(Op.randomUUID&&!t&&!e)return Op.randomUUID();e=e||{};var o=e.random||(e.rng||YS)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=o[s];return t}return KS(o)}const XS=u.defineComponent({name:"aux-banner",props:{type:{type:String,default:"info",validator:e=>jS.includes(e)},title:{type:String},dataTestid:{type:String,required:!1}},setup(e){const t=u.computed(()=>{if(e.title)return e.title;switch(e.type){case"error":return"Feil. ";case"warning":return"Advarsel. ";case"success":return"Suksess. ";default:return"Info."}}),n=u.computed(()=>({"aux-banner":!0,[`aux-banner--${e.type}`]:!0})),o=u.computed(()=>({icon:!0,[`icon--${e.type}`]:!0}));return{icon:u.computed(()=>{switch(e.type){case"error":return li;case"warning":return Cp;case"success":return Du;default:return Lu}}),uuid:Ke(),classes:n,srOnlyMessage:t,iconClasses:o}},components:{SuccessBannerIcon:Du,InfoBannerIcon:Lu,WarningBannerIcon:Cp,ErrorBannerIcon:li}}),QS=["aria-labelledby","data-testid"],e2=["id"],t2=["id","data-testid"];function r2(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(e.classes),role:"region","aria-labelledby":`${e.uuid} message-${e.uuid}`,"data-testid":e.dataTestid},[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.icon),{class:u.normalizeClass(e.iconClasses),"aria-hidden":"true"},null,8,["class"])),u.createElementVNode("span",{id:e.uuid,class:"screen-reader-message"},u.toDisplayString(e.srOnlyMessage),9,e2),u.createElementVNode("span",{id:`message-${e.uuid}`,class:"message","data-testid":`${e.dataTestid}-message`},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,t2)],10,QS)}const n2=re(XS,[["render",r2],["__scopeId","data-v-7fdaa1e0"]]),a2=["small","medium","large"],o2=u.defineComponent({name:"aux-spinner",props:{size:{type:String,default:"large",validator:function(e){return a2.includes(e)}}},setup(e,t){const n=u.computed(()=>({"aux-spinner":!0,[`aux-spinner--${e.size}`]:!0})),o=u.computed(()=>t.slots.default&&e.size!=="small");return e.size==="small"&&t.slots.default&&console.error("AuxSpinner: Label is not displayed for small sizes"),{classes:n,showLabel:o}}}),i2={key:0,class:"aux-spinner-label"};function s2(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(e.classes)},[t[0]||(t[0]=u.createElementVNode("div",{class:"aux-spinner-indicator"},null,-1)),e.showLabel?(u.openBlock(),u.createElementBlock("div",i2,[u.renderSlot(e.$slots,"default",{},void 0,!0)])):u.createCommentVNode("",!0)],2)}const u2=re(o2,[["render",s2],["__scopeId","data-v-6713c90a"]]),l2=["blue","green","red","yellow","black"],c2=u.defineComponent({name:"aux-pill",props:{color:{type:String,default:"black",validator:e=>[...l2].includes(e)}},setup(e){return console.warn("Pills erstattes med med AuxTag"),{classes:u.computed(()=>({"aux-pill":!0,[`aux-pill--${e.color}`]:!0}))}}});function d2(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("span",{class:u.normalizeClass(e.classes)},[u.renderSlot(e.$slots,"default",{},void 0,!0)],2)}const f2=re(c2,[["render",d2],["__scopeId","data-v-6bd2fe2b"]]),p2=u.defineComponent({name:"aux-radio",props:{value:{type:[String,Number]},disabled:{type:Boolean,default:!1},id:{type:String,default:Ke},name:{type:String,required:!0},selected:{type:[String,Number],required:!0}},emits:["change"],setup(e,{emit:t}){return{isSelected:u.computed(()=>e.value===e.selected),change:s=>{t("change",s.target.value)}}}}),h2={class:"aux-radio"},m2=["value","disabled","id","name","checked"],g2=["for"];function v2(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",h2,[u.createElementVNode("input",{type:"radio",value:e.value,disabled:e.disabled,id:e.id,name:e.name,checked:e.isSelected,onChange:t[0]||(t[0]=(...c)=>e.change&&e.change(...c))},null,40,m2),u.createElementVNode("label",{for:e.id},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,g2)])}const y2=re(p2,[["render",v2],["__scopeId","data-v-3ca6a357"]]),_2=["small","medium"],$2=u.defineComponent({name:"aux-link",props:{size:{type:String,default:"small",validator:e=>_2.includes(e)},href:{type:String,required:!1}},emits:["click"],setup(e,{slots:t}){const n=u.computed(()=>e.href?"a":"button"),o=u.computed(()=>({"aux-link":!0,[`aux-link--${e.size}`]:!0,"aux-link-icon-left":t.left,"aux-link-icon-right":t.right}));return{componentType:n,classes:o}}}),b2={key:0,class:"aux-link-container-left"},w2={key:1,class:"aux-link-container-right"};function E2(e,t,n,o,s,l){return u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.componentType),{href:e.href,class:u.normalizeClass(e.classes),onClick:t[0]||(t[0]=c=>e.$emit("click",c))},{default:u.withCtx(()=>[e.$slots.left?(u.openBlock(),u.createElementBlock("div",b2,[u.renderSlot(e.$slots,"left",{},void 0,!0)])):u.createCommentVNode("",!0),u.renderSlot(e.$slots,"default",{},void 0,!0),e.$slots.right?(u.openBlock(),u.createElementBlock("div",w2,[u.renderSlot(e.$slots,"right",{},void 0,!0)])):u.createCommentVNode("",!0)]),_:3},8,["href","class"])}const Wm=re($2,[["render",E2],["__scopeId","data-v-0553dc0d"]]),S2={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function A2(e,t){return u.openBlock(),u.createElementBlock("svg",S2,t[0]||(t[0]=[u.createElementVNode("path",{d:"M96 220a12 12 0 0 1-8.485-20.485L159.029 128 87.515 56.485a12 12 0 0 1 16.97-16.97l80 80a12 12 0 0 1 0 16.97l-80 80A11.96 11.96 0 0 1 96 220"},null,-1)]))}const C2={render:A2},O2=["up","down","left","right"],T2=u.defineComponent({name:"aux-directional-arrow",components:{CaretRightIcon:C2},props:{direction:{type:String,require:!0,default:"down",validator:function(e){return O2.includes(e)}}},setup(e){return{classes:u.computed(()=>({"aux-arrow":!0,[`aux-arrow--${e.direction}`]:!0}))}}});function I2(e,t,n,o,s,l){const c=u.resolveComponent("CaretRightIcon");return u.openBlock(),u.createBlock(c,{class:u.normalizeClass(e.classes)},null,8,["class"])}const zm=re(T2,[["render",I2],["__scopeId","data-v-9a0ab2a3"]]),P2=u.defineComponent({name:"aux-details",components:{AuxLink:Wm,AuxDirectionalArrow:zm},setup(){const e=u.reactive({isOpen:!1}),t=()=>{e.isOpen=!e.isOpen},n=u.computed(()=>e.isOpen?"up":"down");return{state:e,toggleOpen:t,arrowDirection:n}}}),R2=["open"];function k2(e,t,n,o,s,l){const c=u.resolveComponent("AuxDirectionalArrow"),f=u.resolveComponent("AuxLink");return u.openBlock(),u.createElementBlock("details",{class:"aux-details",open:e.state.isOpen},[u.createElementVNode("summary",null,[u.createVNode(f,{onClick:t[0]||(t[0]=h=>e.toggleOpen())},{left:u.withCtx(()=>[u.createVNode(c,{direction:e.arrowDirection},null,8,["direction"])]),default:u.withCtx(()=>[u.renderSlot(e.$slots,"label",{},void 0,!0)]),_:3})]),u.createElementVNode("div",null,[u.renderSlot(e.$slots,"content",{},void 0,!0)])],8,R2)}const qm=re(P2,[["render",k2],["__scopeId","data-v-46bb2c12"]]),N2=u.defineComponent({name:"aux-form-element",components:{AuxDetails:qm},props:{label:{type:String,required:!0,default:"Label is not defined"},description:{type:String,required:!1},descriptionLabel:{type:String,required:!1},hideLabel:{type:Boolean,required:!1,default:!1},id:{type:String,required:!0}}}),D2={class:"aux-form-element"},L2=["for"],B2={key:0},M2={key:1,class:"aux-form-element-description"};function F2(e,t,n,o,s,l){const c=u.resolveComponent("AuxDetails");return u.openBlock(),u.createElementBlock("div",D2,[u.createElementVNode("label",{class:u.normalizeClass({"aux-form-label":!0,"aux-form-label-hidden":e.hideLabel}),for:e.id},u.toDisplayString(e.label),11,L2),e.descriptionLabel?(u.openBlock(),u.createElementBlock("span",B2,[u.createVNode(c,null,{label:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.descriptionLabel),1)]),content:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.description),1)]),_:1})])):u.createCommentVNode("",!0),e.description&&!e.descriptionLabel?(u.openBlock(),u.createElementBlock("span",M2,u.toDisplayString(e.description),1)):u.createCommentVNode("",!0),u.renderSlot(e.$slots,"default",{},void 0,!0)])}const qr=re(N2,[["render",F2],["__scopeId","data-v-ce98c0cc"]]),j2=u.defineComponent({name:"aux-radio-group-card-element",props:{value:{type:String},disabled:{type:Boolean,default:!1},id:{type:String,default:Ke},name:{type:String,required:!0},selected:{type:String,required:!0}},emits:["change"],setup(e,{emit:t}){return{isSelected:u.computed(()=>e.value===e.selected.toString()),change:s=>{t("change",s.target.value)}}}}),x2=["value","disabled","id","name"];function V2(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("label",{class:u.normalizeClass({"aux-card-layout":!0,"aux-card-layout--selected":e.isSelected,"aux-card-layout--disabled":e.disabled})},[u.createElementVNode("input",{type:"radio",value:e.value,disabled:e.disabled,id:e.id,name:e.name,onChange:t[0]||(t[0]=u.withModifiers((...c)=>e.change&&e.change(...c),["stop"]))},null,40,x2),u.createElementVNode("span",null,[u.renderSlot(e.$slots,"default",{},void 0,!0)])],2)}const Tp=re(j2,[["render",V2],["__scopeId","data-v-5dfa60ec"]]),U2=u.defineComponent({name:"aux-radio-group-element-group-element",props:{value:{type:String},disabled:{type:Boolean,default:!1},id:{type:String,default:Ke},name:{type:String,required:!0},selected:{type:String,required:!0}},emits:["change"],setup(e,{emit:t}){return{isSelected:u.computed(()=>e.value==e.selected),change:s=>{t("change",s.target.value)}}}}),W2=["value","disabled","id","name","checked"],z2=["for"];function q2(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass({"aux-radio-group-element":!0,"aux-radio-group-element--selected":e.isSelected,"aux-radio-group-element--disabled":e.disabled})},[u.createElementVNode("input",{type:"radio",value:e.value,disabled:e.disabled,id:e.id,name:e.name,checked:e.isSelected,onChange:t[0]||(t[0]=(...c)=>e.change&&e.change(...c))},null,40,W2),u.createElementVNode("label",{for:e.id},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,z2)],2)}const Ip=re(U2,[["render",q2],["__scopeId","data-v-96dea0f7"]]),G2=["card","regular"],H2=u.defineComponent({name:"aux-radio-group",components:{AuxRadioGroupCardElement:Tp,AuxRadioGroupElement:Ip,FormElement:qr},props:{label:{type:String,required:!0},items:{type:Array,required:!0},id:{type:String,default:Ke},description:{type:String},descriptionLabel:{type:String,required:!1},hideLabel:{type:Boolean,required:!1},name:{type:String,required:!0},selected:{type:String||Number,default:""},layout:{type:String,validator:e=>G2.includes(e),default:"regular"}},emits:["update:selected"],setup(e,{emit:t}){const n=u.reactive({selected:e.selected.toString()}),o=l=>{n.selected=l,t("update:selected",l)},s=u.computed(()=>e.layout==="card"?Tp:Ip);return{state:n,changeEvent:o,radioType:s}}});function K2(e,t,n,o,s,l){const c=u.resolveComponent("FormElement");return u.openBlock(),u.createBlock(c,{id:e.id,label:e.label,"hide-label":e.hideLabel,"description-label":e.descriptionLabel,description:e.description},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.items,(f,h)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.radioType),{key:h,value:f.value,name:e.name||e.id,selected:e.state.selected,disabled:f.disabled,onChange:e.changeEvent},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(f.label),1)]),_:2},1064,["value","name","selected","disabled","onChange"]))),128))]),_:1},8,["id","label","hide-label","description-label","description"])}const Gm=re(H2,[["render",K2]]),J2={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function Y2(e,t){return u.openBlock(),u.createElementBlock("svg",J2,t[0]||(t[0]=[u.createElementVNode("path",{d:"M205.657 194.343a8 8 0 1 1-11.314 11.314L128 139.313l-66.343 66.344a8 8 0 0 1-11.314-11.314L116.687 128 50.343 61.657a8 8 0 0 1 11.314-11.314L128 116.687l66.343-66.344a8 8 0 0 1 11.314 11.314L139.313 128Z"},null,-1)]))}const Hm={render:Y2},Z2=u.defineComponent({name:"aux-input",props:{label:{type:String,required:!0},id:{type:String,default:Ke},name:{type:String,required:!1},value:{type:[String,Number]},modelValue:{type:[String,Number]},placeholder:String,description:String,descriptionLabel:{type:String,required:!1},type:{type:String,default:"text"},clearable:{type:Boolean,default:!1},hideLabel:{type:Boolean,default:!1},fieldWidth:{type:String,default:"60ch"},min:{type:Number},max:{type:Number},disabled:{type:Boolean,default:!1,required:!1}},emits:["focus","blur","input","update:modelValue"],setup(e,{slots:t,emit:n}){const o=u.computed(()=>t.left),s=u.computed(()=>e.clearable||t.right),l=u.ref(null);return{inputFieldEl:l,focus:()=>{l.value&&l.value.focus()},hasLeftIcon:o,hasRightIcon:s,handleInput(f){const h=f.target;h&&(n("input",h.value),n("update:modelValue",h.value))}}},components:{ClearIcon:Hm,FormElement:qr}}),X2=["value","placeholder","type","name","id","min","max","disabled"];function Q2(e,t,n,o,s,l){const c=u.resolveComponent("ClearIcon"),f=u.resolveComponent("FormElement");return u.openBlock(),u.createBlock(f,{class:u.normalizeClass({"aux-textfield":!0,[`aux-textfield-${e.type}`]:!0}),label:e.label,"hide-label":e.hideLabel,description:e.description,"description-label":e.descriptionLabel,id:e.id},{default:u.withCtx(()=>[u.createElementVNode("div",{class:u.normalizeClass({"aux-input-textfield-container":!0,"aux-input-textfield--icon-right":e.hasRightIcon,"aux-input-textfield--icon-left":e.hasLeftIcon}),style:u.normalizeStyle({maxWidth:e.fieldWidth})},[u.createElementVNode("input",{class:"aux-input-textfield",ref:"inputFieldEl",value:e.modelValue||e.value,placeholder:e.placeholder,type:e.type,name:e.name||e.id,id:e.id,min:e.min,max:e.max,disabled:e.disabled,onFocus:t[0]||(t[0]=h=>e.$emit("focus",h.target.value)),onBlur:t[1]||(t[1]=h=>e.$emit("blur",h.target.value)),onInput:t[2]||(t[2]=(...h)=>e.handleInput&&e.handleInput(...h))},null,40,X2),e.hasLeftIcon?(u.openBlock(),u.createElementBlock("div",{key:0,class:"aux-input-textfield-left-icon",onClick:t[3]||(t[3]=(...h)=>e.focus&&e.focus(...h))},[u.renderSlot(e.$slots,"left",{},void 0,!0)])):u.createCommentVNode("",!0),e.hasRightIcon?(u.openBlock(),u.createElementBlock("div",{key:1,class:"aux-input-textfield-right-icon",onClick:t[5]||(t[5]=(...h)=>e.focus&&e.focus(...h))},[e.clearable&&e.value?(u.openBlock(),u.createBlock(c,{key:0,onClick:t[4]||(t[4]=h=>e.$emit("input","")),class:"aux-input-textfield-clear-icon"})):u.renderSlot(e.$slots,"right",{key:1},void 0,!0)])):u.createCommentVNode("",!0)],6)]),_:3},8,["class","label","hide-label","description","description-label","id"])}const ol=re(Z2,[["render",Q2],["__scopeId","data-v-fcd12a41"]]),eA=u.defineComponent({name:"aux-definition",props:{label:{type:String,required:!0},suffix:{type:String,default:":"},vertical:{type:Boolean,default:!1},dataTestid:{type:String,required:!1},size:{type:String,required:!1,default:"small",validator:e=>{const t=["small","medium","large"],n=t.includes(e);return n||console.error(`AuxDefinition: props.size must be one of ${t.join(", ")}`),n}}},setup(e){const t=u.computed(()=>({"aux-definition":!0,"aux-definition--vertical":e.vertical||e.size!=="small",[`aux-definition-value--${e.size}`]:!0}));return!e.vertical&&e.size!=="small"&&console.warn("AuxDefinition: Horizontal layout is only supported for props.size.small"),{classes:t}}}),tA=["data-testid"],rA=["data-testid"],nA=["data-testid"];function aA(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(e.classes),"data-testid":e.dataTestid},[u.createElementVNode("dt",{class:"aux-definition-label","data-testid":`${e.dataTestid}-label`},u.toDisplayString(e.label)+u.toDisplayString(e.suffix),9,rA),u.createElementVNode("dd",{class:"aux-definition-value","data-testid":`${e.dataTestid}-value`},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,nA)],10,tA)}const oA=re(eA,[["render",aA],["__scopeId","data-v-6a580377"]]),iA={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",preserveAspectRatio:"xMinYMid meet",viewBox:"0 0 694.11 164.663"};function sA(e,t){return u.openBlock(),u.createElementBlock("svg",iA,t[0]||(t[0]=[u.createElementVNode("path",{fill:"currentcolor",d:"M101.071 48.106h-5.002c-5.439 0-9.889 4.451-9.889 9.892v.155c-8.794-6.17-19.177-10.047-30.702-10.047-15.85 0-29.602 6.764-39.627 17.485C5.876 76.03.058 90.393.002 106.385l-.002.236c0 15.848 5.827 30.302 15.85 41.022 10.025 10.493 23.778 17.02 39.627 17.02 11.525 0 21.909-3.648 30.705-9.814.04 5.403 4.472 9.814 9.886 9.814h5.002c5.437 0 9.887-4.453 9.887-9.889V57.998c.001-5.44-4.45-9.892-9.886-9.892M86.18 108.901c-.508 8.609-3.876 16.153-9.021 21.729-5.595 5.826-13.522 9.089-21.681 9.089-8.389 0-16.316-3.263-21.677-9.089-5.595-6.063-8.859-14.453-8.859-24.009q.002-.12.003-.236c.051-9.691 3.305-17.993 8.856-23.777 5.36-6.293 13.288-9.556 21.677-9.556 8.159 0 16.086 3.263 21.681 9.556 5.145 5.36 8.513 12.888 9.021 21.68v4.6129999999999995M281.806 48.106H150.147c-5.439 0-9.891 4.451-9.891 9.892v96.776c0 5.436 4.451 9.889 9.891 9.889h4.999c5.439 0 9.89-4.453 9.89-9.889V72.887h38.551v81.888c0 5.436 4.451 9.889 9.89 9.889h4.999c5.439 0 9.889-4.453 9.889-9.889V72.887h38.551v81.888c0 5.436 4.452 9.889 9.889 9.889h5.001c5.44 0 9.889-4.453 9.889-9.889V57.998c0-5.44-4.448-9.892-9.889-9.892M684.222 48.106h-5.001c-5.44 0-9.889 4.451-9.889 9.892v.155c-8.794-6.17-19.178-10.047-30.702-10.047-15.85 0-29.601 6.764-39.626 17.485-9.976 10.438-15.791 24.801-15.848 40.793q-.001.117-.003.236c0 15.848 5.827 30.302 15.851 41.022 10.025 10.493 23.776 17.02 39.626 17.02 11.525 0 21.908-3.648 30.702-9.814.041 5.403 4.475 9.814 9.889 9.814h5.001c5.438 0 9.889-4.453 9.889-9.889V57.998c-.001-5.44-4.452-9.892-9.889-9.892m-14.89 60.801c-.511 8.608-3.878 16.147-9.023 21.723-5.595 5.826-13.519 9.089-21.68 9.089-8.391 0-16.315-3.263-21.679-9.089-5.594-6.063-8.855-14.453-8.855-24.009q0-.12.003-.236c.051-9.691 3.305-17.993 8.852-23.777 5.363-6.293 13.288-9.556 21.679-9.556 8.16 0 16.085 3.263 21.68 9.556 5.145 5.357 8.512 12.886 9.023 21.672v4.627M470.419 48.106h-5c-5.438 0-9.891 4.451-9.891 9.892v96.776c0 5.436 4.452 9.889 9.891 9.889h5c5.439 0 9.889-4.453 9.889-9.889V57.998c0-5.44-4.451-9.892-9.889-9.892M433.659 106.385c-.124-31.832-25.25-58.278-56.643-58.278-11.422 0-22.608 3.731-31.234 9.792l-.008-46.522c0-5.437-4.448-9.889-9.888-9.889h-5.002000000000001c-5.439 0-9.889 4.452-9.889 9.889v143.398c0 5.436 4.449 9.889 9.889 9.889h5.002000000000001c5.382 0 9.792-4.359 9.884-9.717 8.785 5.886 19.79 9.717 31.246 9.717 31.471 0 56.647-26.575 56.647-58.042q-.003-.12-.004-.237m-34.731 23.311c-5.827 6.06-13.52 9.559-21.912 9.559-8.623 0-16.084-3.499-21.911-9.559-5.827-5.827-9.323-14.22-9.323-23.075l.001-.236c.059-9.232 3.542-17.532 9.322-23.311 5.827-6.06 13.288-9.559 21.911-9.559 8.393 0 16.085 3.499 21.912 9.559 5.78 5.778 9.264 14.079 9.323 23.311l.002.236c0 8.856-3.495 17.248-9.325 23.075M565.793 48.106h-15.241v-36.73c0-5.437-4.45-9.889-9.889-9.889h-5.001c-5.438 0-9.889 4.452-9.889 9.889v36.73h-15.241c-5.44 0-9.889 4.451-9.889 9.892v4.999c0 5.439 4.449 9.89 9.889 9.89h15.241v81.888c0 5.436 4.451 9.889 9.889 9.889h5.001c5.438 0 9.889-4.453 9.889-9.889V72.887h15.241c5.44 0 9.889-4.45 9.889-9.89v-4.999c0-5.44-4.449-9.892-9.889-9.892",class:"ambita-logo__svg__path"},null,-1),u.createElementVNode("circle",{cx:"467.919",cy:"13.877",r:"13.878",fill:"currentcolor",class:"ambita-logo__svg__path"},null,-1)]))}const uA={render:sA},lA=u.defineComponent({name:"aux-logo",components:{Logo:uA},props:{inverted:{type:Boolean,default:!1}}});function cA(e,t,n,o,s,l){const c=u.resolveComponent("Logo",!0);return u.openBlock(),u.createBlock(c,{class:u.normalizeClass(["aux-logo",{"aux-invert":e.inverted}])},null,8,["class"])}const dA=re(lA,[["render",cA],["__scopeId","data-v-59a647db"]]),fA=u.defineComponent({name:"aux-checkbox-regular",props:{value:{type:[String,Number,Boolean]},disabled:{type:Boolean},id:{type:String,default:Ke},name:{type:String,required:!1},selected:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){return{changeEvent:o=>{const s=o.target;t("change",{checked:s.checked,option:s.value})}}}}),pA={class:"aux-checkbox"},hA=["id","value","disabled","checked","name",".indeterminate"],mA=["for"];function gA(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",pA,[u.createElementVNode("input",{type:"checkbox",id:e.id,value:e.value,disabled:e.disabled,checked:e.selected,name:e.name||e.id,".indeterminate":e.indeterminate,onChange:t[0]||(t[0]=(...c)=>e.changeEvent&&e.changeEvent(...c))},null,40,hA),u.createElementVNode("label",{for:e.id},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,mA)])}const Pp=re(fA,[["render",gA],["__scopeId","data-v-da26c979"]]),vA=u.defineComponent({name:"aux-checkbox-card",props:{value:{type:[String,Number,Boolean]},disabled:{type:Boolean},id:{type:String,default:Ke},name:{type:String,required:!1},selected:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){return{changeEvent:o=>{const s=o.target;t("change",{checked:s.checked,option:s.value})}}}}),yA=["id","value","disabled","checked","name",".indeterminate"];function _A(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("label",{class:u.normalizeClass({"aux-card-layout":!0,"aux-card-layout--selected":e.selected,"aux-card-layout--indeterminate":e.indeterminate,"aux-card-layout--disabled":e.disabled})},[u.createElementVNode("input",{type:"checkbox",id:e.id,value:e.value,disabled:e.disabled,checked:e.selected,name:e.name||e.id,".indeterminate":e.indeterminate,onChange:t[0]||(t[0]=(...c)=>e.changeEvent&&e.changeEvent(...c))},null,40,yA),u.renderSlot(e.$slots,"default",{},void 0,!0)],2)}const Rp=re(vA,[["render",_A],["__scopeId","data-v-55a0bfca"]]),$A=["card","regular"],bA=u.defineComponent({name:"aux-checkbox",components:{AuxCheckboxRegular:Pp,AuxCheckboxCard:Rp},props:{value:{type:[String,Number,Boolean]},disabled:{type:Boolean},id:{type:String,default:Ke},name:{type:String,required:!1},selected:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},layout:{type:String,validator:e=>$A.includes(e),default:"regular"}},emits:["change","update:selected"],setup(e,{emit:t}){const n=s=>{e.layout==="card"&&t("update:selected",s),t("change",s)},o=u.computed(()=>e.layout==="card"?Rp:Pp);return{changeEvent:n,checkboxType:o}}});function wA(e,t,n,o,s,l){return u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.checkboxType),{id:e.id,value:e.value,disabled:e.disabled,selected:e.selected,name:e.name||e.id,indeterminate:e.indeterminate,onChange:e.changeEvent},{default:u.withCtx(()=>[u.renderSlot(e.$slots,"default")]),_:3},40,["id","value","disabled","selected","name","indeterminate","onChange"])}const il=re(bA,[["render",wA]]),EA=u.defineComponent({name:"aux-checkbox-group-card-element",props:{id:{type:String,default:Ke},name:{type:String,required:!0},value:{type:String},disabled:{type:Boolean,default:!1},checked:{type:Boolean,required:!0}},emits:["change"],setup(e,{emit:t}){return{change:()=>{t("change",e.value)}}}}),SA=["id","value","disabled","checked","name"];function AA(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("label",{class:u.normalizeClass({"aux-card-layout":!0,"aux-card-layout--selected":e.checked,"aux-card-layout--disabled":e.disabled})},[u.createElementVNode("input",{type:"checkbox",id:e.id,value:e.value,disabled:e.disabled,checked:e.checked,name:e.name||e.id,onChange:t[0]||(t[0]=(...c)=>e.change&&e.change(...c))},null,40,SA),u.createElementVNode("span",null,[u.renderSlot(e.$slots,"default",{},void 0,!0)])],2)}const kp=re(EA,[["render",AA],["__scopeId","data-v-a08bcdba"]]),CA=u.defineComponent({name:"aux-checkbox-group-element",props:{value:{type:String},disabled:{type:Boolean,default:!1},id:{type:String,default:Ke},name:{type:String,required:!0},checked:{type:Boolean,required:!0}},emits:["change"],setup(e,{emit:t}){return{change:()=>{t("change",e.value)}}}}),OA={class:"aux-checkbox"},TA=["value","disabled","id","name","checked"],IA=["for"];function PA(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",OA,[u.createElementVNode("input",{type:"checkbox",value:e.value,disabled:e.disabled,id:e.id,name:e.name,checked:e.checked,onChange:t[0]||(t[0]=(...c)=>e.change&&e.change(...c))},null,40,TA),u.createElementVNode("label",{for:e.id},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,IA)])}const Np=re(CA,[["render",PA],["__scopeId","data-v-c91aa24c"]]),RA=u.defineComponent({name:"aux-checkbox-group",components:{AuxCheckboxGroupCardElement:kp,AuxCheckboxGroupElement:Np,FormElement:qr},props:{label:{type:String,required:!0},items:{type:Array,required:!0},id:{type:String,default:Ke},description:{type:String},descriptionLabel:{type:String,required:!1},hideLabel:{type:Boolean,required:!1},name:{type:String,required:!0},dataTestid:{type:String,required:!1},layout:{type:String,validator:e=>["card","regular"].includes(e),default:"regular"}},emits:["change"],setup(e,{emit:t}){const n=u.reactive({items:e.items}),o=l=>{n.items=n.items.map(c=>(c.value===l&&(c.checked=!c.checked),c)),t("change",n.items)},s=u.computed(()=>e.layout==="card"?kp:Np);return{changeEvent:o,CheckboxType:s,state:n}}});function kA(e,t,n,o,s,l){const c=u.resolveComponent("FormElement");return u.openBlock(),u.createBlock(c,{id:e.id,label:e.label,"hide-label":e.hideLabel,"description-label":e.descriptionLabel,description:e.description,"data-testid":e.dataTestid},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.state.items,(f,h)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.CheckboxType),{key:h,value:f.value,name:e.name||e.id,checked:f.checked,disabled:f.disabled,"data-testid":`${h}-checkbox`,onChange:e.changeEvent},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(f.label),1)]),_:2},1064,["value","name","checked","disabled","data-testid","onChange"]))),128))]),_:1},8,["id","label","hide-label","description-label","description","data-testid"])}const NA=re(RA,[["render",kA]]),DA=u.defineComponent({name:"aux-select",props:{items:{type:Array,required:!0},label:{type:String,required:!1},required:{type:Boolean,default:!1},id:{type:String,default:Ke},name:{type:String,required:!1},hideLabel:{type:Boolean,default:!1},description:{type:String},descriptionLabel:{type:String,required:!1},value:{type:[String,Number,Array]},modelValue:{type:[String,Number,Array]}},emits:["change","focus","blur","update:modelValue"],setup(e,{emit:t}){const n=u.reactive({value:e.modelValue||e.value}),o=c=>{c.target&&(n.value=c.target.value,t("change",c.target.value),t("update:modelValue",c.target.value))},s=c=>{c.target&&t("focus",c.target.value)},l=c=>{c.target&&t("blur",c.target.value)};return u.watch(()=>e.value,c=>n.value=c),u.watch(()=>e.modelValue,c=>n.value=c),{state:n,updateValue:o,focusEmit:s,blurEmit:l}},components:{FormElement:qr}}),LA=["value","name","id"],BA=["value","disabled"];function MA(e,t,n,o,s,l){const c=u.resolveComponent("FormElement");return u.openBlock(),u.createBlock(c,{label:e.label,"hide-label":e.hideLabel,"description-label":e.descriptionLabel,description:e.description,id:e.id,class:"aux-select"},{default:u.withCtx(()=>[u.createElementVNode("select",{class:"aux-input-select",value:e.state.value,name:e.name,id:e.id,onFocus:t[0]||(t[0]=(...f)=>e.focusEmit&&e.focusEmit(...f)),onBlur:t[1]||(t[1]=(...f)=>e.blurEmit&&e.blurEmit(...f)),onChange:t[2]||(t[2]=(...f)=>e.updateValue&&e.updateValue(...f))},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.items,f=>(u.openBlock(),u.createElementBlock("option",{key:f.value.toString(),value:f.value,disabled:f.disabled||!1},u.toDisplayString(f.label),9,BA))),128))],40,LA)]),_:1},8,["label","hide-label","description-label","description","id"])}const sl=re(DA,[["render",MA],["__scopeId","data-v-960128ff"]]),FA=u.defineComponent({name:"aux-modal-actions",props:{actions:{type:Array,default:()=>[]}},emits:["action-clicked"],setup(e,{emit:t}){return{actionsOrganized:u.computed(()=>{const o=[],s=[],l=[];e.actions.forEach(f=>{f.primary?o.push(f):f.destructive?l.push(f):s.push(f)});const c=[...o,...s,...l];return c.length>3?(console.error("Modals should not have more than 3 actions"),[]):o.length>1?(console.error("Modals should only have one primary action"),[]):o.length===0&&c.length>0?(console.error("Modals should have a primary action"),[]):c}),emit:t}},components:{AuxButton:Ai}});function jA(e,t,n,o,s,l){const c=u.resolveComponent("AuxButton");return u.openBlock(),u.createElementBlock("div",null,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.actionsOrganized,f=>(u.openBlock(),u.createBlock(c,{key:f.label,primary:f.primary,"stack-direction":"none",size:"medium",onClick:h=>e.emit("action-clicked",f.emit),"data-testid":f.testid},u.createSlots({default:u.withCtx(()=>[u.createTextVNode(" "+u.toDisplayString(f.label),1)]),_:2},[f.icon?{name:"left",fn:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(f.icon)))]),key:"0"}:void 0]),1032,["primary","onClick","data-testid"]))),128))])}const xA=re(FA,[["render",jA]]),VA=["vertical","horizontal"],UA=["small","medium","large","x-large"],WA=u.defineComponent({name:"aux-modal",props:{actions:{type:Array,default:()=>[]},id:{type:String,default:Ke},size:{type:String,default:"medium",validator:e=>UA.includes(e)},title:{type:String,validator:e=>e.length>100?(console.error(`Title should not be longer than 100 characters. Your title is ${e.length} characters long`),!1):!0},buttonsMobileLayout:{type:String,default:"vertical",validator:e=>VA.includes(e)},dataTestid:{type:String,required:!1},disableCloseOnOutsideClick:{type:Boolean,required:!1}},setup(e,{emit:t}){const n=u.ref(null),o=()=>{n.value&&n.value.focus()},l=window.matchMedia("(max-width: 450px)"),c=u.ref(l.matches),f=e.buttonsMobileLayout==="vertical"&&c,h=u.ref(null);let g;const y=()=>{t("close-modal")},w=b=>{t(b),t("action-clicked",b)},C={"aux-modal":!0,[`aux-modal--${e.size}`]:!0},I=b=>{if(!e.disableCloseOnOutsideClick){const R=h.value;b.target===R&&y()}},O=()=>{u.nextTick(()=>{g=h.value,g.addEventListener("click",I),g.addEventListener("cancel",y),g.addEventListener("close",y),g.showModal(),o()})},N=b=>{c.value=b.matches};l.addEventListener("change",N);const A=b=>{if(e.dataTestid)return`${e.dataTestid}-${b}`};return u.onMounted(()=>{O()}),u.onUnmounted(()=>{g.removeEventListener("click",I),l.removeEventListener("change",N)}),{closeModal:y,modalClasses:C,propagateEvent:w,emit:t,closeButton:n,getTestId:A,modal:h,useVerticalLayout:f}},components:{CloseIcon:Hm,Actions:xA}}),zA=["aria-labelledby","aria-describedby"],qA={class:"header"},GA=["id","data-testid"],HA=["data-testid"],KA=["id","data-testid"],JA={key:0,class:"footer-content"};function YA(e,t,n,o,s,l){const c=u.resolveComponent("CloseIcon"),f=u.resolveComponent("Actions");return u.openBlock(),u.createElementBlock("dialog",{class:u.normalizeClass(e.modalClasses),"aria-labelledby":`${e.id}-title`,"aria-describedby":`${e.id}-content`,ref:"modal"},[u.createElementVNode("div",qA,[e.title?(u.openBlock(),u.createElementBlock("h2",{key:0,id:`${e.id}-title`,"data-testid":e.getTestId("title")},u.toDisplayString(e.title),9,GA)):u.createCommentVNode("",!0),u.createElementVNode("button",{class:"close",onClick:t[0]||(t[0]=(...h)=>e.closeModal&&e.closeModal(...h)),"aria-label":"Lukk","data-testid":e.getTestId("close"),ref:"closeButton"},[u.createVNode(c,{class:"close-icon","aria-hidden":"true"})],8,HA)]),u.createElementVNode("main",{class:u.normalizeClass({"main-with-footer":e.actions.length>0||e.$slots.footerRight,"main-no-footer":!(e.actions.length>0||e.$slots.footerRight)})},[u.createElementVNode("div",{id:`${e.id}-content`,class:"content","data-testid":e.getTestId("content")},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,KA)],2),e.actions.length>0||e.$slots.footerRight?(u.openBlock(),u.createElementBlock("footer",JA,[u.createVNode(f,{actions:e.actions,onActionClicked:e.propagateEvent,class:u.normalizeClass({"footer-buttons-layout--horizontal":!e.useVerticalLayout,"footer-buttons-layout--vertical":e.useVerticalLayout})},null,8,["actions","onActionClicked","class"]),u.renderSlot(e.$slots,"footerRight",{},void 0,!0)])):u.createCommentVNode("",!0)],10,zA)}const ZA=re(WA,[["render",YA],["__scopeId","data-v-12e6ff87"]]),XA=["horizontal","vertical","none","auto","both"],QA=u.defineComponent({name:"aux-textarea",props:{modelValue:{type:[String,Number]},label:{type:String,required:!0},id:{type:String,default:Ke},description:{type:String},descriptionLabel:{type:String,required:!1},hideLabel:{type:Boolean,default:!1},name:{type:String,required:!1},placeholder:{type:String},resize:{type:String,validator:e=>XA.includes(e),default:"vertical"},height:{type:Number,default:7},width:{type:String,default:"60ch"},required:{type:Boolean,default:!1},value:{type:[String,Number],default:""}},emits:["blur","update:modelValue","input"],setup(e,{emit:t}){return{styles:u.computed(()=>({resize:e.resize,"max-width":e.width})),blurEmit(o){o.target&&t("blur",o.target.value)},handleInput(o){o.target&&(t("input",o.target.value),t("update:modelValue",o.target.value))}}},components:{FormElement:qr}}),eC=["placeholder","id","rows","name","required","resize","value"];function tC(e,t,n,o,s,l){const c=u.resolveComponent("FormElement");return u.openBlock(),u.createBlock(c,{class:"aux-textarea",id:e.id,label:e.label,"hide-label":e.hideLabel,"description-label":e.descriptionLabel,description:e.description},{default:u.withCtx(()=>[u.createElementVNode("textarea",{class:"aux-input-textarea",placeholder:e.placeholder,id:e.id,rows:e.height,name:e.name,required:e.required,resize:e.resize,style:u.normalizeStyle(e.styles),value:e.modelValue||e.value,onBlur:t[0]||(t[0]=(...f)=>e.blurEmit&&e.blurEmit(...f)),onInput:t[1]||(t[1]=(...f)=>e.handleInput&&e.handleInput(...f))},` test
2
+ `,44,eC)]),_:1},8,["id","label","hide-label","description-label","description"])}const rC=re(QA,[["render",tC],["__scopeId","data-v-22791e38"]]),nC={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function aC(e,t){return u.openBlock(),u.createElementBlock("svg",nC,t[0]||(t[0]=[u.createElementVNode("path",{d:"M215.996 48H176v-8a24.027 24.027 0 0 0-24-24h-48a24.027 24.027 0 0 0-24 24v8H39.996a8 8 0 0 0 0 16h8v144a16.02 16.02 0 0 0 16 16h128a16.02 16.02 0 0 0 16-16V64h8a8 8 0 0 0 0-16M96 40a8.01 8.01 0 0 1 8-8h48a8.01 8.01 0 0 1 8 8v8H96Zm95.996 168h-128V64h128ZM112 104v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0m48 0v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0"},null,-1)]))}const oC={render:aC},iC={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function sC(e,t){return u.openBlock(),u.createElementBlock("svg",iC,t[0]||(t[0]=[u.createElementVNode("path",{d:"M180.68 95.714a12 12 0 0 1-.394 16.966l-58.666 56a12 12 0 0 1-16.572 0l-29.334-28a12 12 0 1 1 16.57-17.36l21.05 20.09 50.38-48.09a12 12 0 0 1 16.966.394M236 128A108 108 0 1 1 128 20a108.12 108.12 0 0 1 108 108m-24 0a84 84 0 1 0-84 84 84.095 84.095 0 0 0 84-84"},null,-1)]))}const uC={render:sC},lC={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function cC(e,t){return u.openBlock(),u.createElementBlock("svg",lC,t[0]||(t[0]=[u.createElementVNode("path",{d:"M116 144V96a12 12 0 0 1 24 0v48a12 12 0 0 1-24 0m12 20a16 16 0 1 0 16 16 16 16 0 0 0-16-16m112.232 49.979a27.71 27.71 0 0 1-24.255 14.013H40.023a28 28 0 0 1-24.233-42.026l87.977-151.993a28 28 0 0 1 48.466 0l87.977 151.992a27.71 27.71 0 0 1 .022 28.014m-20.794-15.99L131.462 45.995a4 4 0 0 0-6.924 0L36.562 197.988a4 4 0 0 0 3.461 6.004h175.954a4 4 0 0 0 3.461-6.004"},null,-1)]))}const dC={render:cC},fC=u.defineComponent({name:"aux-file",props:{file:{type:File},filename:{type:String,required:!0},filePath:{type:String,required:!1},time:{type:String,required:!0},percentage:{type:Number},uuid:{type:String,required:!0},failed:{type:Boolean,default:!1}},emits:["remove-file"],setup(e,{emit:t}){return{removeFile:()=>{t("remove-file",e.uuid)}}},components:{Button:Ai,TrashIcon:oC,CheckCircleIcon:uC,WarningIcon:dC}}),pC={class:"aux-file"},hC=["href"],mC={key:1,class:"aux-filename"},gC={class:"aux-file-uploaded-date"},vC={class:"aux-file-status"},yC=["value"],_C={key:2,class:"aux-error"};function $C(e,t,n,o,s,l){const c=u.resolveComponent("CheckCircleIcon"),f=u.resolveComponent("WarningIcon"),h=u.resolveComponent("TrashIcon");return u.openBlock(),u.createElementBlock("li",pC,[u.createElementVNode("div",null,[e.filePath?(u.openBlock(),u.createElementBlock("a",{key:0,href:e.filePath,class:"aux-filename-link"},u.toDisplayString(e.filename),9,hC)):(u.openBlock(),u.createElementBlock("span",mC,u.toDisplayString(e.filename),1)),u.createElementVNode("span",gC," ("+u.toDisplayString(e.time)+")",1)]),u.createElementVNode("div",vC,[e.percentage&&e.percentage<100&&!e.failed?(u.openBlock(),u.createElementBlock("progress",{key:0,max:"100",value:e.percentage},null,8,yC)):u.createCommentVNode("",!0),e.percentage===100&&!e.failed?(u.openBlock(),u.createBlock(c,{key:1,class:"aux-checkmark-icon"})):u.createCommentVNode("",!0),e.failed?(u.openBlock(),u.createElementBlock("span",_C,[e.failed?(u.openBlock(),u.createBlock(f,{key:0,class:"aux-error-icon"})):u.createCommentVNode("",!0),t[1]||(t[1]=u.createTextVNode(" Filopplastning feilet "))])):u.createCommentVNode("",!0),u.createElementVNode("button",{class:"aux-remove-button",onClick:t[0]||(t[0]=(...g)=>e.removeFile&&e.removeFile(...g))},[u.createVNode(h,{class:"aux-trash-icon"})])])])}const bC=re(fC,[["render",$C],["__scopeId","data-v-ef471a90"]]),wC=u.defineComponent({name:"aux-upload",props:{files:{type:Array,default:()=>[]},id:{type:String,default:Ke},label:{type:String},description:{type:String},hideLabel:{type:Boolean,default:!1},maxFileSize:{type:Number,default:Number},maxAttachmentCount:{type:Number}},emits:["file-added","file-removed"],setup(e,{emit:t}){const n="aux-input-upload-field-wrapper--drag",o="aux-input-upload-field-wrapper--no-drag",s=u.ref(),l=u.ref(),c=u.ref(""),f=[],h=u.reactive({fileList:e.files,isOver:!1,message:""}),g=u.computed(()=>({"aux-input-upload-field-wrapper":!0,[n]:h.isOver,[o]:!h.isOver})),y=u.computed(()=>h.fileList.length!==0),w=()=>{s.value.classList.contains(o)&&(h.isOver=!0)},C=()=>{h.isOver=!1},I=b=>{O(b);const R=l.value;if(h.isOver=!1,R.files.length>0){const M=new Date(Date.now()).toLocaleString("nb-NO",{timeZone:"UTC"});R.files.forEach(U=>{U.uuid=Ke();const G={uuid:U.uuid,filename:U.name,time:M,file:U};f.push(G),t("file-added",G)})}},O=b=>{const M=b.target.files;N(M)},N=b=>{const R=f&&f.length,M=Object.keys(b),U=e==null?void 0:e.maxAttachmentCount,G=e==null?void 0:e.maxFileSize,se=M.length+R>U;M.reduce((X,he)=>{const ue=b[he].size/1024/1024,Te=ue>=G,Ee=ue<=0;switch(!0){case se:return c.value=`For mange filer, maksimalt antall tillatt: ${e==null?void 0:e.maxAttachmentCount}`,c.value;case Te:return c.value=`Filen er for stor: ${ue.toFixed(0)}MB. Maks størrelse: ${G}MB`,c.value;case Ee:return c.value=`Filen er for liten: ${ue.toFixed(0)}MB.`,c.value;default:return c.value=X,X}},"")},A=b=>{l.value.value="",t("file-removed",b)};return u.watch(()=>e.files,b=>{h.fileList=b},{deep:!0}),{removeFile:A,filesUploaded:y,state:h,dragLeave:C,addFile:I,wrapperClasses:g,dragover:w,inputField:l,inputFieldWrapper:s,errorMessage:c,handleFile:O,filesCollection:f,setWarning:N}},components:{FileComponent:bC,FormElement:qr}}),EC={for:"assets",class:"aux-helptext"},SC={key:0,class:"aux-label"},AC={key:1,class:"aux-label"},CC={key:0,class:"aux-file-list"},OC={key:1,class:"aux-error"};function TC(e,t,n,o,s,l){const c=u.resolveComponent("FileComponent"),f=u.resolveComponent("FormElement");return u.openBlock(),u.createBlock(f,{class:"aux-upload-field",id:e.id,label:e.label,description:e.description,"hide-label":e.hideLabel},{default:u.withCtx(()=>[u.createElementVNode("div",{ref:"inputFieldWrapper",class:u.normalizeClass(e.wrapperClasses),onDragleave:t[1]||(t[1]=(...h)=>e.dragLeave&&e.dragLeave(...h)),onDragover:t[2]||(t[2]=(...h)=>e.dragover&&e.dragover(...h)),onDrop:t[3]||(t[3]=(...h)=>e.dragLeave&&e.dragLeave(...h))},[u.createElementVNode("input",{class:"aux-input-file-upload",ref:"inputField",name:"assets",id:"assets",type:"file",accept:".pdf, .png, .jpeg",multiple:"",onChange:t[0]||(t[0]=(...h)=>e.addFile&&e.addFile(...h))},null,544),u.createElementVNode("label",EC,[e.state.isOver?(u.openBlock(),u.createElementBlock("span",SC,"Slipp for å laste opp")):(u.openBlock(),u.createElementBlock("span",AC,t[4]||(t[4]=[u.createElementVNode("span",{class:"aux-faux-link"}," Last opp vedlegg ",-1),u.createTextVNode(" eller dra og slipp her ")])))])],34),e.filesUploaded?(u.openBlock(),u.createElementBlock("ul",CC,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.state.fileList,h=>(u.openBlock(),u.createBlock(c,{key:h.uuid,time:h.time,file:h.file,filename:h.filename,filePath:h.filePath,uuid:h.uuid,failed:h.failed,percentage:h.percentage,onRemoveFile:e.removeFile},null,8,["time","file","filename","filePath","uuid","failed","percentage","onRemoveFile"]))),128))])):u.createCommentVNode("",!0),e.errorMessage?(u.openBlock(),u.createElementBlock("span",OC,u.toDisplayString(e.errorMessage),1)):u.createCommentVNode("",!0)]),_:1},8,["id","label","description","hide-label"])}const IC=re(wC,[["render",TC],["__scopeId","data-v-ec61b4a4"]]),PC=u.defineComponent({name:"aux-card"}),RC={class:"aux-card"};function kC(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",RC,[u.renderSlot(e.$slots,"default",{},void 0,!0)])}const NC=re(PC,[["render",kC],["__scopeId","data-v-277be13b"]]),DC=["grey-2","yellow","red","mint-3","mint-1","blue","purple-1","purple-2"],LC=u.defineComponent({name:"aux-tag",props:{color:{type:String,default:"grey-2",validator:e=>[...DC].includes(e)}},setup(e){return{classes:u.computed(()=>({"aux-tag":!0,[`aux-tag--${e.color}`]:!0}))}}});function BC(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("span",{class:u.normalizeClass(e.classes)},[u.renderSlot(e.$slots,"default",{},void 0,!0)],2)}const MC=re(LC,[["render",BC],["__scopeId","data-v-bdd2205a"]]),FC={},jC={},xC={},VC={dateStyle:"short"},UC={dateStyle:"full"},WC={timeStyle:"short"},zC={timeStyle:"medium"},qC={dateAndTime:FC,dateAndTimeWithSeconds:jC,date:VC,dateFull:UC,dateWithWeekDay:xC,time:WC,timeWithSeconds:zC},Xo=(e,t)=>new Date(e).toLocaleString("nb-NB",qC[t]),GC=(e,t)=>{const n=Xo(e,"date");if(t==="dateAndTimeWithSeconds"){const s=Xo(e,"timeWithSeconds");return`${n} - kl. ${s}`}else if(t==="dateWithWeekDay")return`${e.toLocaleString("nb-NB",{weekday:"long"})} ${n}`;const o=Xo(e,"time");return`${n} - kl. ${o}`};function Yt(e,t="dateAndTime"){return t==="dateAndTime"||t==="dateAndTimeWithSeconds"||t==="dateWithWeekDay"?GC(e,t):Xo(e,t)}const HC=u.defineComponent({name:"aux-time",props:{date:{type:String,required:!0},format:{type:String,required:!1}},setup(){return{formatDate:Yt,formatFirstDate:(n,o="dateAndTime")=>{const s=Yt(new Date(n),"dateFull").split(" ");switch(o){case"date":return Yt(new Date(n),"date");case"dateAndTimeWithSeconds":return`${Yt(new Date(n),"date")} - `;case"dateFull":return`${s[0]} ${s[1]} `;case"time":return Yt(new Date(n),"time");case"timeWithSeconds":return Yt(new Date(n),"timeWithSeconds");default:return`${Yt(new Date(n),"date")} - `}},formatSecondDate:(n,o="dateAndTime")=>{const s=Yt(new Date(n),"dateFull").split(" ");switch(o){case"date":return;case"dateAndTimeWithSeconds":return`kl. ${Yt(new Date(n),"timeWithSeconds")}`;case"dateFull":return`${s[2]} ${s[3]}`;case"time":break;case"timeWithSeconds":break;default:return`kl. ${Yt(new Date(n),"time")}`}}}}}),KC={class:"date-time"},JC={class:"date-time-element"},YC={class:"date-time-element"};function ZC(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("span",KC,[u.createElementVNode("span",JC,u.toDisplayString(e.formatFirstDate(e.date,e.format)),1),t[0]||(t[0]=u.createElementVNode("wbr",null,null,-1)),u.createElementVNode("span",YC,u.toDisplayString(e.formatSecondDate(e.date,e.format)),1)])}const XC=re(HC,[["render",ZC],["__scopeId","data-v-6ba3306a"]]),QC=u.defineComponent({name:"aux-toggle",props:{id:{type:String,default:Ke},label:{type:String,required:!1},offLabel:{type:String,default:"Av"},onLabel:{type:String,default:"På"},checked:{type:Boolean,default:!1},hideLabel:{type:Boolean,default:!1},hideOffLabel:{type:Boolean,default:!1},hideOnLabel:{type:Boolean,default:!1},dataTestid:{type:String,required:!1}},emits:["change"],setup(e,{emit:t}){const n=u.ref(null),o=u.ref(null),s=u.ref(!1),l=()=>{s.value=!s.value,n.value&&o.value&&(s.value?n.value.click():o.value.click())},c=()=>{if(n.value){s.value=n.value.checked;const y=h.value;t("change",s.value,y)}},f=y=>{if(e.dataTestid)return`${e.dataTestid}-${y}`},h=u.computed(()=>e.onLabel!==void 0&&e.offLabel!==void 0?s.value?e.onLabel:e.offLabel:"På"),g=u.computed(()=>e.onLabel!==void 0&&e.offLabel!==void 0?s.value?e.offLabel:e.onLabel:"Av");return{activeText:h,inactiveText:g,getTestId:f,change:c,toggle:l,active:s,radioOn:n,radioOff:o}},beforeMount(){this.$props.checked!==void 0&&(this.active=this.$props.checked)}}),eO=["data-testid"],tO=["data-testId"],rO=["id","name","checked","data-testid"],nO=["for","data-testId"],aO={"aria-hidden":"true"},oO=["aria-label","data-testId"],iO=["id","name","checked","data-testid"],sO=["for","data-testId"],uO={"aria-hidden":"true"};function lO(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("fieldset",{class:"aux-toggle","data-testid":e.dataTestid},[u.createElementVNode("legend",{class:u.normalizeClass({"aux-toggle-legend":!0,"aux-toggle-hidden":e.hideLabel}),"data-testId":e.getTestId("legend")},u.toDisplayString(e.label),11,tO),u.createElementVNode("input",{type:"radio",tabindex:"-1",class:"aux-toggle-radio aux-toggle-radio-off",id:`${e.id}-off`,name:e.id,ref:"radioOff",checked:!e.checked,"data-testid":e.getTestId("radioOff"),onChange:t[0]||(t[0]=(...c)=>e.change&&e.change(...c))},null,40,rO),u.createElementVNode("label",{for:`${e.id}-off`,class:u.normalizeClass({"aux-toggle-label":!0,"aux-toggle-label-off":!0,"aux-toggle-hidden":e.hideOffLabel}),"data-testId":e.getTestId("labelOff")},[u.createTextVNode(u.toDisplayString(e.offLabel)+" ",1),u.createElementVNode("span",aO,u.toDisplayString(e.offLabel),1)],10,nO),u.createElementVNode("button",{class:u.normalizeClass({"aux-toggle-button":!0,"aux-toggle-button-pressed":e.active}),"aria-label":`${e.label} er satt til ${e.activeText}. Trykk for å endre til ${e.inactiveText}.`,"data-testId":e.getTestId("button"),onClick:t[1]||(t[1]=u.withModifiers((...c)=>e.toggle&&e.toggle(...c),["prevent"]))},null,10,oO),u.createElementVNode("input",{type:"radio",tabindex:"-1",class:"aux-toggle-radio aux-toggle-radio-on",id:`${e.id}-on`,name:e.id,ref:"radioOn",checked:e.checked,"data-testid":e.getTestId("radioOn"),onChange:t[2]||(t[2]=(...c)=>e.change&&e.change(...c))},null,40,iO),u.createElementVNode("label",{for:`${e.id}-on`,class:u.normalizeClass({"aux-toggle-label":!0,"aux-toggle-label-on":!0,"aux-toggle-hidden":e.hideOnLabel}),"data-testId":e.getTestId("labelOn")},[u.createTextVNode(u.toDisplayString(e.onLabel)+" ",1),u.createElementVNode("span",uO,u.toDisplayString(e.onLabel),1)],10,sO)],8,eO)}const cO=re(QC,[["render",lO],["__scopeId","data-v-724c3167"]]),dO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function fO(e,t){return u.openBlock(),u.createElementBlock("svg",dO,t[0]||(t[0]=[u.createElementVNode("path",{d:"M96 216a8 8 0 0 1-5.657-13.657L164.686 128 90.343 53.657a8 8 0 0 1 11.314-11.314l80 80a8 8 0 0 1 0 11.314l-80 80A7.98 7.98 0 0 1 96 216"},null,-1)]))}const pO={render:fO},hO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function mO(e,t){return u.openBlock(),u.createElementBlock("svg",hO,t[0]||(t[0]=[u.createElementVNode("path",{d:"M160 216a7.98 7.98 0 0 1-5.657-2.343l-80-80a8 8 0 0 1 0-11.314l80-80a8 8 0 0 1 11.314 11.314L91.314 128l74.343 74.343A8 8 0 0 1 160 216"},null,-1)]))}const gO={render:mO},vO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function yO(e,t){return u.openBlock(),u.createElementBlock("svg",vO,t[0]||(t[0]=[u.createElementVNode("path",{d:"M140.001 128a12 12 0 1 1-12-12 12 12 0 0 1 12 12m-76-12a12 12 0 1 0 12 12 12 12 0 0 0-12-12m128 0a12 12 0 1 0 12 12 12 12 0 0 0-12-12"},null,-1)]))}const _O={render:yO},$O=u.defineComponent({name:"aux-pagination",emits:["change"],props:{config:{type:Object,required:!0},width:{type:Number,required:!1,default:5,validator:e=>{const t=e%2!==1;return t&&console.error("Width need to be an odd number"),!t}},dataTestId:{type:String,required:!1}},setup(e,{emit:t}){const n=u.ref(0),o=u.ref(!1),s=u.ref(),l=new ResizeObserver(X=>{for(const te of X){const ue=te.contentBoxSize[0].inlineSize;o.value=ue<=470}});u.onMounted(()=>{l.observe(s.value)});const c=()=>M.value-w()<=1,f=()=>M.value+w()>=R.value,h=()=>{let X=M.value+w();return c()&&(X=e.width+1),X},g=()=>{let X=M.value-w();return X<=1?X=2:f()&&(X=R.value-e.width),X-1},y=()=>{const X=[];for(let he=1;he<R.value;he++)X.push(he);return X},w=()=>Math.floor(e.width/2),C=X=>{n.value=(X-1)*e.config.limit,t("change",{offset:n.value,currentPage:M.value,width:e.width,config:e.config})},I=()=>{C(M.value+1)},O=()=>{C(M.value-1)},N=X=>{C(X)},A=()=>{C(M.value-e.width)},b=()=>{C(M.value+e.width)},R=u.computed(()=>Math.ceil(e.config.totalCount/e.config.limit)),M=u.computed(()=>n.value/e.config.limit+1),U=u.computed(()=>{const X=y(),he=[...X.slice(g(),h())];return M.value-w()>2&&(he.shift(),he.unshift("ellipsis-left")),M.value+w()<X.length&&(he.pop(),he.push("ellipsis-right")),he.unshift(1),he.push(R.value),he}),G=u.computed(()=>Object.prototype.hasOwnProperty.call(e.config,"offset")&&Object.prototype.hasOwnProperty.call(e.config,"limit")&&Object.prototype.hasOwnProperty.call(e.config,"totalCount"));return(()=>{n.value=e.config.offset,G.value||console.warn("Pagination require: offset, limit, and totalCount")})(),{totalPages:R,generateButtons:U,goToSelectedPage:N,goToPreviousPage:O,goToNextPage:I,skipBackward:A,skipForward:b,currentPage:M,isSmallScreen:o,auxPaginationWrapper:s}},components:{CaretRightIcon:pO,CaretLeftIcon:gO,AuxButton:Ai,EllipsisIcon:_O}}),bO={key:0,class:"aux-pagination",ref:"auxPaginationWrapper"},wO={key:0,class:"aux-pagination-small-device","aria-live":"polite"},EO={key:0,class:"aux-ellipsis aux-pagination-item"},SO={"aria-hidden":"true"},AO={"aria-hidden":"true"},CO={class:"aux-sr-only"},OO={key:2,class:"aux-ellipsis aux-pagination-item"};function TO(e,t,n,o,s,l){const c=u.resolveComponent("CaretLeftIcon"),f=u.resolveComponent("AuxButton"),h=u.resolveComponent("EllipsisIcon"),g=u.resolveComponent("CaretRightIcon");return e.totalPages>1?(u.openBlock(),u.createElementBlock("div",bO,[u.createVNode(f,{size:"small",class:"aux-pagination-item",primary:"",disabled:e.currentPage===1,onClick:e.goToPreviousPage},{default:u.withCtx(()=>[u.createVNode(c,{class:"icon"}),t[0]||(t[0]=u.createElementVNode("span",{class:"aux-sr-only"},"Gå til forrige side",-1))]),_:1},8,["disabled","onClick"]),e.isSmallScreen?(u.openBlock(),u.createElementBlock("span",wO," Side "+u.toDisplayString(e.currentPage)+" av "+u.toDisplayString(e.totalPages),1)):u.createCommentVNode("",!0),e.isSmallScreen?u.createCommentVNode("",!0):(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:1},u.renderList(e.generateButtons,(y,w)=>(u.openBlock(),u.createElementBlock(u.Fragment,{key:w},[y==="ellipsis-left"?(u.openBlock(),u.createElementBlock("div",EO,[u.createVNode(h,{class:"icon"})])):u.createCommentVNode("",!0),typeof y=="number"?(u.openBlock(),u.createBlock(f,{key:1,size:"small",class:"aux-pagination-item",disabled:e.currentPage===y,onClick:C=>e.goToSelectedPage(y)},{default:u.withCtx(()=>[y===1?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[t[1]||(t[1]=u.createElementVNode("span",{class:"aux-sr-only"},"Gå til første side",-1)),u.createElementVNode("span",SO,u.toDisplayString(y),1)],64)):y===e.totalPages?(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[t[2]||(t[2]=u.createElementVNode("span",{class:"aux-sr-only"},"Gå til siste side",-1)),u.createElementVNode("span",AO,u.toDisplayString(y),1)],64)):y!==1&&y!==e.totalPages?(u.openBlock(),u.createElementBlock(u.Fragment,{key:2},[t[3]||(t[3]=u.createElementVNode("span",{class:"aux-sr-only"},"Gå til side ",-1)),u.createTextVNode(" "+u.toDisplayString(y)+" ",1),u.createElementVNode("span",CO," av totalt "+u.toDisplayString(e.totalPages),1)],64)):u.createCommentVNode("",!0)]),_:2},1032,["disabled","onClick"])):u.createCommentVNode("",!0),y==="ellipsis-right"?(u.openBlock(),u.createElementBlock("div",OO,[u.createVNode(h,{class:"icon"})])):u.createCommentVNode("",!0)],64))),128)),u.createVNode(f,{size:"small",class:"aux-pagination-item",primary:"",disabled:e.currentPage===e.totalPages,onClick:e.goToNextPage},{default:u.withCtx(()=>[u.createVNode(g,{class:"icon"}),t[4]||(t[4]=u.createElementVNode("span",{class:"aux-sr-only"},"Gå til neste side",-1))]),_:1},8,["disabled","onClick"])],512)):u.createCommentVNode("",!0)}const IO=re($O,[["render",TO],["__scopeId","data-v-25d5b90c"]]),PO=u.defineComponent({name:"AuxAriaAnnouncer",props:{priority:{type:String,default:"polite",validator:e=>{const t=["polite","off","assertive"],n=t.includes(e);return n||console.error(`Priority needs to be one of these: ${t.join(",")}`),n}}}}),RO=["aria-live"];function kO(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("p",{class:"aux-sr-only","aria-live":e.priority},[u.renderSlot(e.$slots,"default",{},void 0,!0)],8,RO)}const NO=re(PO,[["render",kO],["__scopeId","data-v-5f63c119"]]),DO=["success","error","warning","info"],LO=u.defineComponent({name:"aux-notification",props:{type:{type:String,validator:e=>DO.includes(e),required:!0},id:{type:String,required:!0}},emits:["remove-notification"],setup(e,{emit:t}){const n=u.ref(!1),o=u.computed(()=>({"aux-notification":!0,[`aux-notification--${e.type}`]:e.type,"aux-notification-show":n.value})),s=()=>{t("remove-notification",e.id)};setTimeout(()=>{n.value=!0},100),setTimeout(()=>{s()},6e3);const l=u.computed(()=>{switch(e.type){case"error":return li;case"warning":return li;case"success":return Du;default:return Lu}});return{classes:o,icon:l,removeNotification:s}}});function BO(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("li",{class:u.normalizeClass(e.classes),onClick:t[0]||(t[0]=(...c)=>e.removeNotification&&e.removeNotification(...c))},[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.icon),{class:"aux-icon","aria-hidden":"true"})),u.renderSlot(e.$slots,"default",{},void 0,!0)],2)}const MO=re(LO,[["render",BO],["__scopeId","data-v-d0340cd1"]]),FO=u.defineComponent({name:"aux-notifications",props:{notifications:{type:Array,default:()=>[]}},emits:["remove-notification"],setup(e,{emit:t}){return{removeNotification:o=>{t("remove-notification",o)}}},components:{Notification:MO}}),jO={class:"aux-notifications"};function xO(e,t,n,o,s,l){const c=u.resolveComponent("Notification");return u.openBlock(),u.createElementBlock("ul",jO,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.notifications,f=>(u.openBlock(),u.createBlock(c,{key:f.id,id:f.id,type:f.type,onRemoveNotification:e.removeNotification},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(f.message),1)]),_:2},1032,["id","type","onRemoveNotification"]))),128))])}const VO=re(FO,[["render",xO],["__scopeId","data-v-58b84b39"]]);var Er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var UO=typeof Er=="object"&&Er&&Er.Object===Object&&Er,Km=UO,WO=Km,zO=typeof self=="object"&&self&&self.Object===Object&&self,qO=WO||zO||Function("return this")(),St=qO,GO=St,HO=GO.Symbol,zn=HO,Dp=zn,Jm=Object.prototype,KO=Jm.hasOwnProperty,JO=Jm.toString,wa=Dp?Dp.toStringTag:void 0;function YO(e){var t=KO.call(e,wa),n=e[wa];try{e[wa]=void 0;var o=!0}catch{}var s=JO.call(e);return o&&(t?e[wa]=n:delete e[wa]),s}var ZO=YO,XO=Object.prototype,QO=XO.toString;function eT(e){return QO.call(e)}var tT=eT,Lp=zn,rT=ZO,nT=tT,aT="[object Null]",oT="[object Undefined]",Bp=Lp?Lp.toStringTag:void 0;function iT(e){return e==null?e===void 0?oT:aT:Bp&&Bp in Object(e)?rT(e):nT(e)}var Gr=iT;function sT(e){return e!=null&&typeof e=="object"}var Nt=sT,uT=Gr,lT=Nt,cT="[object Symbol]";function dT(e){return typeof e=="symbol"||lT(e)&&uT(e)==cT}var qn=dT,fT=qn;function pT(e,t,n){for(var o=-1,s=e.length;++o<s;){var l=e[o],c=t(l);if(c!=null&&(f===void 0?c===c&&!fT(c):n(c,f)))var f=c,h=l}return h}var hT=pT;function mT(e,t){return e>t}var gT=mT;function vT(){this.__data__=[],this.size=0}var yT=vT;function _T(e,t){return e===t||e!==e&&t!==t}var Ma=_T,$T=Ma;function bT(e,t){for(var n=e.length;n--;)if($T(e[n][0],t))return n;return-1}var Ci=bT,wT=Ci,ET=Array.prototype,ST=ET.splice;function AT(e){var t=this.__data__,n=wT(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():ST.call(t,n,1),--this.size,!0}var CT=AT,OT=Ci;function TT(e){var t=this.__data__,n=OT(t,e);return n<0?void 0:t[n][1]}var IT=TT,PT=Ci;function RT(e){return PT(this.__data__,e)>-1}var kT=RT,NT=Ci;function DT(e,t){var n=this.__data__,o=NT(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}var LT=DT,BT=yT,MT=CT,FT=IT,jT=kT,xT=LT;function Gn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Gn.prototype.clear=BT;Gn.prototype.delete=MT;Gn.prototype.get=FT;Gn.prototype.has=jT;Gn.prototype.set=xT;var Oi=Gn,VT=Oi;function UT(){this.__data__=new VT,this.size=0}var WT=UT;function zT(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var qT=zT;function GT(e){return this.__data__.get(e)}var HT=GT;function KT(e){return this.__data__.has(e)}var JT=KT;function YT(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Wt=YT,ZT=Gr,XT=Wt,QT="[object AsyncFunction]",eI="[object Function]",tI="[object GeneratorFunction]",rI="[object Proxy]";function nI(e){if(!XT(e))return!1;var t=ZT(e);return t==eI||t==tI||t==QT||t==rI}var Ti=nI,aI=St,oI=aI["__core-js_shared__"],iI=oI,pu=iI,Mp=function(){var e=/[^.]+$/.exec(pu&&pu.keys&&pu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sI(e){return!!Mp&&Mp in e}var uI=sI,lI=Function.prototype,cI=lI.toString;function dI(e){if(e!=null){try{return cI.call(e)}catch{}try{return e+""}catch{}}return""}var Ym=dI,fI=Ti,pI=uI,hI=Wt,mI=Ym,gI=/[\\^$.*+?()[\]{}|]/g,vI=/^\[object .+?Constructor\]$/,yI=Function.prototype,_I=Object.prototype,$I=yI.toString,bI=_I.hasOwnProperty,wI=RegExp("^"+$I.call(bI).replace(gI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function EI(e){if(!hI(e)||pI(e))return!1;var t=fI(e)?wI:vI;return t.test(mI(e))}var SI=EI;function AI(e,t){return e==null?void 0:e[t]}var CI=AI,OI=SI,TI=CI;function II(e,t){var n=TI(e,t);return OI(n)?n:void 0}var hn=II,PI=hn,RI=St,kI=PI(RI,"Map"),ul=kI,NI=hn,DI=NI(Object,"create"),Ii=DI,Fp=Ii;function LI(){this.__data__=Fp?Fp(null):{},this.size=0}var BI=LI;function MI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var FI=MI,jI=Ii,xI="__lodash_hash_undefined__",VI=Object.prototype,UI=VI.hasOwnProperty;function WI(e){var t=this.__data__;if(jI){var n=t[e];return n===xI?void 0:n}return UI.call(t,e)?t[e]:void 0}var zI=WI,qI=Ii,GI=Object.prototype,HI=GI.hasOwnProperty;function KI(e){var t=this.__data__;return qI?t[e]!==void 0:HI.call(t,e)}var JI=KI,YI=Ii,ZI="__lodash_hash_undefined__";function XI(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=YI&&t===void 0?ZI:t,this}var QI=XI,e8=BI,t8=FI,r8=zI,n8=JI,a8=QI;function Hn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Hn.prototype.clear=e8;Hn.prototype.delete=t8;Hn.prototype.get=r8;Hn.prototype.has=n8;Hn.prototype.set=a8;var o8=Hn,jp=o8,i8=Oi,s8=ul;function u8(){this.size=0,this.__data__={hash:new jp,map:new(s8||i8),string:new jp}}var l8=u8;function c8(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var d8=c8,f8=d8;function p8(e,t){var n=e.__data__;return f8(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Pi=p8,h8=Pi;function m8(e){var t=h8(this,e).delete(e);return this.size-=t?1:0,t}var g8=m8,v8=Pi;function y8(e){return v8(this,e).get(e)}var _8=y8,$8=Pi;function b8(e){return $8(this,e).has(e)}var w8=b8,E8=Pi;function S8(e,t){var n=E8(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}var A8=S8,C8=l8,O8=g8,T8=_8,I8=w8,P8=A8;function Kn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Kn.prototype.clear=C8;Kn.prototype.delete=O8;Kn.prototype.get=T8;Kn.prototype.has=I8;Kn.prototype.set=P8;var ll=Kn,R8=Oi,k8=ul,N8=ll,D8=200;function L8(e,t){var n=this.__data__;if(n instanceof R8){var o=n.__data__;if(!k8||o.length<D8-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new N8(o)}return n.set(e,t),this.size=n.size,this}var B8=L8,M8=Oi,F8=WT,j8=qT,x8=HT,V8=JT,U8=B8;function Jn(e){var t=this.__data__=new M8(e);this.size=t.size}Jn.prototype.clear=F8;Jn.prototype.delete=j8;Jn.prototype.get=x8;Jn.prototype.has=V8;Jn.prototype.set=U8;var Ri=Jn,W8="__lodash_hash_undefined__";function z8(e){return this.__data__.set(e,W8),this}var q8=z8;function G8(e){return this.__data__.has(e)}var H8=G8,K8=ll,J8=q8,Y8=H8;function ci(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new K8;++t<n;)this.add(e[t])}ci.prototype.add=ci.prototype.push=J8;ci.prototype.has=Y8;var Z8=ci;function X8(e,t){for(var n=-1,o=e==null?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}var Q8=X8;function eP(e,t){return e.has(t)}var tP=eP,rP=Z8,nP=Q8,aP=tP,oP=1,iP=2;function sP(e,t,n,o,s,l){var c=n&oP,f=e.length,h=t.length;if(f!=h&&!(c&&h>f))return!1;var g=l.get(e),y=l.get(t);if(g&&y)return g==t&&y==e;var w=-1,C=!0,I=n&iP?new rP:void 0;for(l.set(e,t),l.set(t,e);++w<f;){var O=e[w],N=t[w];if(o)var A=c?o(N,O,w,t,e,l):o(O,N,w,e,t,l);if(A!==void 0){if(A)continue;C=!1;break}if(I){if(!nP(t,function(b,R){if(!aP(I,R)&&(O===b||s(O,b,n,o,l)))return I.push(R)})){C=!1;break}}else if(!(O===N||s(O,N,n,o,l))){C=!1;break}}return l.delete(e),l.delete(t),C}var Zm=sP,uP=St,lP=uP.Uint8Array,Xm=lP;function cP(e){var t=-1,n=Array(e.size);return e.forEach(function(o,s){n[++t]=[s,o]}),n}var dP=cP;function fP(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var pP=fP,xp=zn,Vp=Xm,hP=Ma,mP=Zm,gP=dP,vP=pP,yP=1,_P=2,$P="[object Boolean]",bP="[object Date]",wP="[object Error]",EP="[object Map]",SP="[object Number]",AP="[object RegExp]",CP="[object Set]",OP="[object String]",TP="[object Symbol]",IP="[object ArrayBuffer]",PP="[object DataView]",Up=xp?xp.prototype:void 0,hu=Up?Up.valueOf:void 0;function RP(e,t,n,o,s,l,c){switch(n){case PP:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case IP:return!(e.byteLength!=t.byteLength||!l(new Vp(e),new Vp(t)));case $P:case bP:case SP:return hP(+e,+t);case wP:return e.name==t.name&&e.message==t.message;case AP:case OP:return e==t+"";case EP:var f=gP;case CP:var h=o&yP;if(f||(f=vP),e.size!=t.size&&!h)return!1;var g=c.get(e);if(g)return g==t;o|=_P,c.set(e,t);var y=mP(f(e),f(t),o,s,l,c);return c.delete(e),y;case TP:if(hu)return hu.call(e)==hu.call(t)}return!1}var kP=RP;function NP(e,t){for(var n=-1,o=t.length,s=e.length;++n<o;)e[s+n]=t[n];return e}var cl=NP,DP=Array.isArray,Qe=DP;const LP=Xe(Qe);var BP=cl,MP=Qe;function FP(e,t,n){var o=t(e);return MP(e)?o:BP(o,n(e))}var Qm=FP;function jP(e,t){for(var n=-1,o=e==null?0:e.length,s=0,l=[];++n<o;){var c=e[n];t(c,n,e)&&(l[s++]=c)}return l}var eg=jP;function xP(){return[]}var tg=xP,VP=eg,UP=tg,WP=Object.prototype,zP=WP.propertyIsEnumerable,Wp=Object.getOwnPropertySymbols,qP=Wp?function(e){return e==null?[]:(e=Object(e),VP(Wp(e),function(t){return zP.call(e,t)}))}:UP,dl=qP;function GP(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var HP=GP,KP=Gr,JP=Nt,YP="[object Arguments]";function ZP(e){return JP(e)&&KP(e)==YP}var XP=ZP,zp=XP,QP=Nt,rg=Object.prototype,eR=rg.hasOwnProperty,tR=rg.propertyIsEnumerable,rR=zp(function(){return arguments}())?zp:function(e){return QP(e)&&eR.call(e,"callee")&&!tR.call(e,"callee")},Fa=rR,di={exports:{}};function nR(){return!1}var aR=nR;di.exports;(function(e,t){var n=St,o=aR,s=t&&!t.nodeType&&t,l=s&&!0&&e&&!e.nodeType&&e,c=l&&l.exports===s,f=c?n.Buffer:void 0,h=f?f.isBuffer:void 0,g=h||o;e.exports=g})(di,di.exports);var ja=di.exports,oR=9007199254740991,iR=/^(?:0|[1-9]\d*)$/;function sR(e,t){var n=typeof e;return t=t??oR,!!t&&(n=="number"||n!="symbol"&&iR.test(e))&&e>-1&&e%1==0&&e<t}var xa=sR,uR=9007199254740991;function lR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=uR}var fl=lR,cR=Gr,dR=fl,fR=Nt,pR="[object Arguments]",hR="[object Array]",mR="[object Boolean]",gR="[object Date]",vR="[object Error]",yR="[object Function]",_R="[object Map]",$R="[object Number]",bR="[object Object]",wR="[object RegExp]",ER="[object Set]",SR="[object String]",AR="[object WeakMap]",CR="[object ArrayBuffer]",OR="[object DataView]",TR="[object Float32Array]",IR="[object Float64Array]",PR="[object Int8Array]",RR="[object Int16Array]",kR="[object Int32Array]",NR="[object Uint8Array]",DR="[object Uint8ClampedArray]",LR="[object Uint16Array]",BR="[object Uint32Array]",De={};De[TR]=De[IR]=De[PR]=De[RR]=De[kR]=De[NR]=De[DR]=De[LR]=De[BR]=!0;De[pR]=De[hR]=De[CR]=De[mR]=De[OR]=De[gR]=De[vR]=De[yR]=De[_R]=De[$R]=De[bR]=De[wR]=De[ER]=De[SR]=De[AR]=!1;function MR(e){return fR(e)&&dR(e.length)&&!!De[cR(e)]}var FR=MR;function jR(e){return function(t){return e(t)}}var pl=jR,fi={exports:{}};fi.exports;(function(e,t){var n=Km,o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,c=l&&n.process,f=function(){try{var h=s&&s.require&&s.require("util").types;return h||c&&c.binding&&c.binding("util")}catch{}}();e.exports=f})(fi,fi.exports);var hl=fi.exports,xR=FR,VR=pl,qp=hl,Gp=qp&&qp.isTypedArray,UR=Gp?VR(Gp):xR,ki=UR,WR=HP,zR=Fa,qR=Qe,GR=ja,HR=xa,KR=ki,JR=Object.prototype,YR=JR.hasOwnProperty;function ZR(e,t){var n=qR(e),o=!n&&zR(e),s=!n&&!o&&GR(e),l=!n&&!o&&!s&&KR(e),c=n||o||s||l,f=c?WR(e.length,String):[],h=f.length;for(var g in e)(t||YR.call(e,g))&&!(c&&(g=="length"||s&&(g=="offset"||g=="parent")||l&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||HR(g,h)))&&f.push(g);return f}var ng=ZR,XR=Object.prototype;function QR(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||XR;return e===n}var Ni=QR;function e9(e,t){return function(n){return e(t(n))}}var ag=e9,t9=ag,r9=t9(Object.keys,Object),n9=r9,a9=Ni,o9=n9,i9=Object.prototype,s9=i9.hasOwnProperty;function u9(e){if(!a9(e))return o9(e);var t=[];for(var n in Object(e))s9.call(e,n)&&n!="constructor"&&t.push(n);return t}var ml=u9,l9=Ti,c9=fl;function d9(e){return e!=null&&c9(e.length)&&!l9(e)}var Hr=d9,f9=ng,p9=ml,h9=Hr;function m9(e){return h9(e)?f9(e):p9(e)}var Kr=m9;const g9=Xe(Kr);var v9=Qm,y9=dl,_9=Kr;function $9(e){return v9(e,_9,y9)}var og=$9,Hp=og,b9=1,w9=Object.prototype,E9=w9.hasOwnProperty;function S9(e,t,n,o,s,l){var c=n&b9,f=Hp(e),h=f.length,g=Hp(t),y=g.length;if(h!=y&&!c)return!1;for(var w=h;w--;){var C=f[w];if(!(c?C in t:E9.call(t,C)))return!1}var I=l.get(e),O=l.get(t);if(I&&O)return I==t&&O==e;var N=!0;l.set(e,t),l.set(t,e);for(var A=c;++w<h;){C=f[w];var b=e[C],R=t[C];if(o)var M=c?o(R,b,C,t,e,l):o(b,R,C,e,t,l);if(!(M===void 0?b===R||s(b,R,n,o,l):M)){N=!1;break}A||(A=C=="constructor")}if(N&&!A){var U=e.constructor,G=t.constructor;U!=G&&"constructor"in e&&"constructor"in t&&!(typeof U=="function"&&U instanceof U&&typeof G=="function"&&G instanceof G)&&(N=!1)}return l.delete(e),l.delete(t),N}var A9=S9,C9=hn,O9=St,T9=C9(O9,"DataView"),I9=T9,P9=hn,R9=St,k9=P9(R9,"Promise"),N9=k9,D9=hn,L9=St,B9=D9(L9,"Set"),M9=B9,F9=hn,j9=St,x9=F9(j9,"WeakMap"),ig=x9,Bu=I9,Mu=ul,Fu=N9,ju=M9,xu=ig,sg=Gr,Yn=Ym,Kp="[object Map]",V9="[object Object]",Jp="[object Promise]",Yp="[object Set]",Zp="[object WeakMap]",Xp="[object DataView]",U9=Yn(Bu),W9=Yn(Mu),z9=Yn(Fu),q9=Yn(ju),G9=Yn(xu),sn=sg;(Bu&&sn(new Bu(new ArrayBuffer(1)))!=Xp||Mu&&sn(new Mu)!=Kp||Fu&&sn(Fu.resolve())!=Jp||ju&&sn(new ju)!=Yp||xu&&sn(new xu)!=Zp)&&(sn=function(e){var t=sg(e),n=t==V9?e.constructor:void 0,o=n?Yn(n):"";if(o)switch(o){case U9:return Xp;case W9:return Kp;case z9:return Jp;case q9:return Yp;case G9:return Zp}return t});var Zn=sn,mu=Ri,H9=Zm,K9=kP,J9=A9,Qp=Zn,eh=Qe,th=ja,Y9=ki,Z9=1,rh="[object Arguments]",nh="[object Array]",Wo="[object Object]",X9=Object.prototype,ah=X9.hasOwnProperty;function Q9(e,t,n,o,s,l){var c=eh(e),f=eh(t),h=c?nh:Qp(e),g=f?nh:Qp(t);h=h==rh?Wo:h,g=g==rh?Wo:g;var y=h==Wo,w=g==Wo,C=h==g;if(C&&th(e)){if(!th(t))return!1;c=!0,y=!1}if(C&&!y)return l||(l=new mu),c||Y9(e)?H9(e,t,n,o,s,l):K9(e,t,h,n,o,s,l);if(!(n&Z9)){var I=y&&ah.call(e,"__wrapped__"),O=w&&ah.call(t,"__wrapped__");if(I||O){var N=I?e.value():e,A=O?t.value():t;return l||(l=new mu),s(N,A,n,o,l)}}return C?(l||(l=new mu),J9(e,t,n,o,s,l)):!1}var ek=Q9,tk=ek,oh=Nt;function ug(e,t,n,o,s){return e===t?!0:e==null||t==null||!oh(e)&&!oh(t)?e!==e&&t!==t:tk(e,t,n,o,ug,s)}var gl=ug,rk=Ri,nk=gl,ak=1,ok=2;function ik(e,t,n,o){var s=n.length,l=s,c=!o;if(e==null)return!l;for(e=Object(e);s--;){var f=n[s];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++s<l;){f=n[s];var h=f[0],g=e[h],y=f[1];if(c&&f[2]){if(g===void 0&&!(h in e))return!1}else{var w=new rk;if(o)var C=o(g,y,h,e,t,w);if(!(C===void 0?nk(y,g,ak|ok,o,w):C))return!1}}return!0}var sk=ik,uk=Wt;function lk(e){return e===e&&!uk(e)}var lg=lk,ck=lg,dk=Kr;function fk(e){for(var t=dk(e),n=t.length;n--;){var o=t[n],s=e[o];t[n]=[o,s,ck(s)]}return t}var pk=fk;function hk(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var cg=hk,mk=sk,gk=pk,vk=cg;function yk(e){var t=gk(e);return t.length==1&&t[0][2]?vk(t[0][0],t[0][1]):function(n){return n===e||mk(n,e,t)}}var _k=yk,$k=Qe,bk=qn,wk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ek=/^\w*$/;function Sk(e,t){if($k(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||bk(e)?!0:Ek.test(e)||!wk.test(e)||t!=null&&e in Object(t)}var vl=Sk,dg=ll,Ak="Expected a function";function yl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ak);var n=function(){var o=arguments,s=t?t.apply(this,o):o[0],l=n.cache;if(l.has(s))return l.get(s);var c=e.apply(this,o);return n.cache=l.set(s,c)||l,c};return n.cache=new(yl.Cache||dg),n}yl.Cache=dg;var Ck=yl,Ok=Ck,Tk=500;function Ik(e){var t=Ok(e,function(o){return n.size===Tk&&n.clear(),o}),n=t.cache;return t}var Pk=Ik,Rk=Pk,kk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nk=/\\(\\)?/g,Dk=Rk(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(kk,function(n,o,s,l){t.push(s?l.replace(Nk,"$1"):o||n)}),t}),fg=Dk;function Lk(e,t){for(var n=-1,o=e==null?0:e.length,s=Array(o);++n<o;)s[n]=t(e[n],n,e);return s}var _l=Lk,ih=zn,Bk=_l,Mk=Qe,Fk=qn,jk=1/0,sh=ih?ih.prototype:void 0,uh=sh?sh.toString:void 0;function pg(e){if(typeof e=="string")return e;if(Mk(e))return Bk(e,pg)+"";if(Fk(e))return uh?uh.call(e):"";var t=e+"";return t=="0"&&1/e==-jk?"-0":t}var xk=pg,Vk=xk;function Uk(e){return e==null?"":Vk(e)}var Va=Uk,Wk=Qe,zk=vl,qk=fg,Gk=Va;function Hk(e,t){return Wk(e)?e:zk(e,t)?[e]:qk(Gk(e))}var Di=Hk,Kk=qn,Jk=1/0;function Yk(e){if(typeof e=="string"||Kk(e))return e;var t=e+"";return t=="0"&&1/e==-Jk?"-0":t}var mn=Yk,Zk=Di,Xk=mn;function Qk(e,t){t=Zk(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Xk(t[n++])];return n&&n==o?e:void 0}var $l=Qk,eN=$l;function tN(e,t,n){var o=e==null?void 0:eN(e,t);return o===void 0?n:o}var hg=tN;const ct=Xe(hg);function rN(e,t){return e!=null&&t in Object(e)}var nN=rN,aN=Di,oN=Fa,iN=Qe,sN=xa,uN=fl,lN=mn;function cN(e,t,n){t=aN(t,e);for(var o=-1,s=t.length,l=!1;++o<s;){var c=lN(t[o]);if(!(l=e!=null&&n(e,c)))break;e=e[c]}return l||++o!=s?l:(s=e==null?0:e.length,!!s&&uN(s)&&sN(c,s)&&(iN(e)||oN(e)))}var mg=cN,dN=nN,fN=mg;function pN(e,t){return e!=null&&fN(e,t,dN)}var hN=pN,mN=gl,gN=hg,vN=hN,yN=vl,_N=lg,$N=cg,bN=mn,wN=1,EN=2;function SN(e,t){return yN(e)&&_N(t)?$N(bN(e),t):function(n){var o=gN(n,e);return o===void 0&&o===t?vN(n,e):mN(t,o,wN|EN)}}var AN=SN;function CN(e){return e}var Li=CN;function ON(e){return function(t){return t==null?void 0:t[e]}}var TN=ON,IN=$l;function PN(e){return function(t){return IN(t,e)}}var RN=PN,kN=TN,NN=RN,DN=vl,LN=mn;function BN(e){return DN(e)?kN(LN(e)):NN(e)}var MN=BN,FN=_k,jN=AN,xN=Li,VN=Qe,UN=MN;function WN(e){return typeof e=="function"?e:e==null?xN:typeof e=="object"?VN(e)?jN(e[0],e[1]):FN(e):UN(e)}var Ua=WN,zN=hT,qN=gT,GN=Ua;function HN(e,t){return e&&e.length?zN(e,GN(t),qN):void 0}var KN=HN;const bl=Xe(KN);var JN=ml,YN=Zn,ZN=Fa,XN=Qe,QN=Hr,e4=ja,t4=Ni,r4=ki,n4="[object Map]",a4="[object Set]",o4=Object.prototype,i4=o4.hasOwnProperty;function s4(e){if(e==null)return!0;if(QN(e)&&(XN(e)||typeof e=="string"||typeof e.splice=="function"||e4(e)||r4(e)||ZN(e)))return!e.length;var t=YN(e);if(t==n4||t==a4)return!e.size;if(t4(e))return!JN(e).length;for(var n in e)if(i4.call(e,n))return!1;return!0}var u4=s4;const Oe=Xe(u4);function l4(e,t,n,o){var s=-1,l=e==null?0:e.length;for(o&&l&&(n=e[++s]);++s<l;)n=t(n,e[s],s,e);return n}var c4=l4;function d4(e){return function(t){return e==null?void 0:e[t]}}var f4=d4,p4=f4,h4={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},m4=p4(h4),g4=m4,v4=g4,y4=Va,_4=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$4="\\u0300-\\u036f",b4="\\ufe20-\\ufe2f",w4="\\u20d0-\\u20ff",E4=$4+b4+w4,S4="["+E4+"]",A4=RegExp(S4,"g");function C4(e){return e=y4(e),e&&e.replace(_4,v4).replace(A4,"")}var O4=C4,T4=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function I4(e){return e.match(T4)||[]}var P4=I4,R4=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function k4(e){return R4.test(e)}var N4=k4,gg="\\ud800-\\udfff",D4="\\u0300-\\u036f",L4="\\ufe20-\\ufe2f",B4="\\u20d0-\\u20ff",M4=D4+L4+B4,vg="\\u2700-\\u27bf",yg="a-z\\xdf-\\xf6\\xf8-\\xff",F4="\\xac\\xb1\\xd7\\xf7",j4="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",x4="\\u2000-\\u206f",V4=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_g="A-Z\\xc0-\\xd6\\xd8-\\xde",U4="\\ufe0e\\ufe0f",$g=F4+j4+x4+V4,bg="['’]",lh="["+$g+"]",W4="["+M4+"]",wg="\\d+",z4="["+vg+"]",Eg="["+yg+"]",Sg="[^"+gg+$g+wg+vg+yg+_g+"]",q4="\\ud83c[\\udffb-\\udfff]",G4="(?:"+W4+"|"+q4+")",H4="[^"+gg+"]",Ag="(?:\\ud83c[\\udde6-\\uddff]){2}",Cg="[\\ud800-\\udbff][\\udc00-\\udfff]",Bn="["+_g+"]",K4="\\u200d",ch="(?:"+Eg+"|"+Sg+")",J4="(?:"+Bn+"|"+Sg+")",dh="(?:"+bg+"(?:d|ll|m|re|s|t|ve))?",fh="(?:"+bg+"(?:D|LL|M|RE|S|T|VE))?",Og=G4+"?",Tg="["+U4+"]?",Y4="(?:"+K4+"(?:"+[H4,Ag,Cg].join("|")+")"+Tg+Og+")*",Z4="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",X4="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Q4=Tg+Og+Y4,e3="(?:"+[z4,Ag,Cg].join("|")+")"+Q4,t3=RegExp([Bn+"?"+Eg+"+"+dh+"(?="+[lh,Bn,"$"].join("|")+")",J4+"+"+fh+"(?="+[lh,Bn+ch,"$"].join("|")+")",Bn+"?"+ch+"+"+dh,Bn+"+"+fh,X4,Z4,wg,e3].join("|"),"g");function r3(e){return e.match(t3)||[]}var n3=r3,a3=P4,o3=N4,i3=Va,s3=n3;function u3(e,t,n){return e=i3(e),t=n?void 0:t,t===void 0?o3(e)?s3(e):a3(e):e.match(t)||[]}var l3=u3,c3=c4,d3=O4,f3=l3,p3="['’]",h3=RegExp(p3,"g");function m3(e){return function(t){return c3(f3(d3(t).replace(h3,"")),e,"")}}var g3=m3;function v3(e,t,n){var o=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(s);++o<s;)l[o]=e[o+t];return l}var Ig=v3,y3=Ig;function _3(e,t,n){var o=e.length;return n=n===void 0?o:n,!t&&n>=o?e:y3(e,t,n)}var $3=_3,b3="\\ud800-\\udfff",w3="\\u0300-\\u036f",E3="\\ufe20-\\ufe2f",S3="\\u20d0-\\u20ff",A3=w3+E3+S3,C3="\\ufe0e\\ufe0f",O3="\\u200d",T3=RegExp("["+O3+b3+A3+C3+"]");function I3(e){return T3.test(e)}var Pg=I3;function P3(e){return e.split("")}var R3=P3,Rg="\\ud800-\\udfff",k3="\\u0300-\\u036f",N3="\\ufe20-\\ufe2f",D3="\\u20d0-\\u20ff",L3=k3+N3+D3,B3="\\ufe0e\\ufe0f",M3="["+Rg+"]",Vu="["+L3+"]",Uu="\\ud83c[\\udffb-\\udfff]",F3="(?:"+Vu+"|"+Uu+")",kg="[^"+Rg+"]",Ng="(?:\\ud83c[\\udde6-\\uddff]){2}",Dg="[\\ud800-\\udbff][\\udc00-\\udfff]",j3="\\u200d",Lg=F3+"?",Bg="["+B3+"]?",x3="(?:"+j3+"(?:"+[kg,Ng,Dg].join("|")+")"+Bg+Lg+")*",V3=Bg+Lg+x3,U3="(?:"+[kg+Vu+"?",Vu,Ng,Dg,M3].join("|")+")",W3=RegExp(Uu+"(?="+Uu+")|"+U3+V3,"g");function z3(e){return e.match(W3)||[]}var q3=z3,G3=R3,H3=Pg,K3=q3;function J3(e){return H3(e)?K3(e):G3(e)}var Y3=J3,Z3=$3,X3=Pg,Q3=Y3,eD=Va;function tD(e){return function(t){t=eD(t);var n=X3(t)?Q3(t):void 0,o=n?n[0]:t.charAt(0),s=n?Z3(n,1).join(""):t.slice(1);return o[e]()+s}}var rD=tD,nD=rD,aD=nD("toUpperCase"),oD=aD,iD=g3,sD=oD,uD=iD(function(e,t,n){return e+(n?" ":"")+sD(t)}),lD=uD;const Mg=Xe(lD);var cD=Math.ceil,dD=Math.max;function fD(e,t,n,o){for(var s=-1,l=dD(cD((t-e)/(n||1)),0),c=Array(l);l--;)c[o?l:++s]=e,e+=n;return c}var pD=fD,hD=Ma,mD=Hr,gD=xa,vD=Wt;function yD(e,t,n){if(!vD(n))return!1;var o=typeof t;return(o=="number"?mD(n)&&gD(t,n.length):o=="string"&&t in n)?hD(n[t],e):!1}var Fg=yD,_D=/\s/;function $D(e){for(var t=e.length;t--&&_D.test(e.charAt(t)););return t}var bD=$D,wD=bD,ED=/^\s+/;function SD(e){return e&&e.slice(0,wD(e)+1).replace(ED,"")}var AD=SD,CD=AD,ph=Wt,OD=qn,hh=NaN,TD=/^[-+]0x[0-9a-f]+$/i,ID=/^0b[01]+$/i,PD=/^0o[0-7]+$/i,RD=parseInt;function kD(e){if(typeof e=="number")return e;if(OD(e))return hh;if(ph(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ph(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=CD(e);var n=ID.test(e);return n||PD.test(e)?RD(e.slice(2),n?2:8):TD.test(e)?hh:+e}var ND=kD,DD=ND,mh=1/0,LD=17976931348623157e292;function BD(e){if(!e)return e===0?e:0;if(e=DD(e),e===mh||e===-mh){var t=e<0?-1:1;return t*LD}return e===e?e:0}var jg=BD,MD=pD,FD=Fg,gu=jg;function jD(e){return function(t,n,o){return o&&typeof o!="number"&&FD(t,n,o)&&(n=o=void 0),t=gu(t),n===void 0?(n=t,t=0):n=gu(n),o=o===void 0?t<n?1:-1:gu(o),MD(t,n,o,e)}}var xD=jD,VD=xD,UD=VD(),WD=UD;const zD=Xe(WD);var qD=Object.prototype,GD=qD.hasOwnProperty;function HD(e,t){return e!=null&&GD.call(e,t)}var KD=HD,JD=KD,YD=mg;function ZD(e,t){return e!=null&&YD(e,t,JD)}var XD=ZD;const QD=Xe(XD);var eL=Ua,tL=Hr,rL=Kr;function nL(e){return function(t,n,o){var s=Object(t);if(!tL(t)){var l=eL(n);t=rL(t),n=function(f){return l(s[f],f,s)}}var c=e(t,n,o);return c>-1?s[l?t[c]:c]:void 0}}var aL=nL;function oL(e,t,n,o){for(var s=e.length,l=n+(o?1:-1);o?l--:++l<s;)if(t(e[l],l,e))return l;return-1}var xg=oL,iL=jg;function sL(e){var t=iL(e),n=t%1;return t===t?n?t-n:t:0}var Bi=sL,uL=xg,lL=Ua,cL=Bi,dL=Math.max;function fL(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var s=n==null?0:cL(n);return s<0&&(s=dL(o+s,0)),uL(e,lL(t),s)}var pL=fL,hL=aL,mL=pL,gL=hL(mL),vL=gL;const yL=Xe(vL);function _L(e){return e!==e}var $L=_L;function bL(e,t,n){for(var o=n-1,s=e.length;++o<s;)if(e[o]===t)return o;return-1}var wL=bL,EL=xg,SL=$L,AL=wL;function CL(e,t,n){return t===t?AL(e,t,n):EL(e,SL,n)}var Vg=CL,OL=Gr,TL=Qe,IL=Nt,PL="[object String]";function RL(e){return typeof e=="string"||!TL(e)&&IL(e)&&OL(e)==PL}var kL=RL,NL=_l;function DL(e,t){return NL(t,function(n){return e[n]})}var LL=DL,BL=LL,ML=Kr;function FL(e){return e==null?[]:BL(e,ML(e))}var jL=FL,xL=Vg,VL=Hr,UL=kL,WL=Bi,zL=jL,qL=Math.max;function GL(e,t,n,o){e=VL(e)?e:zL(e),n=n&&!o?WL(n):0;var s=e.length;return n<0&&(n=qL(s+n,0)),UL(e)?n<=s&&e.indexOf(t,n)>-1:!!s&&xL(e,t,n)>-1}var HL=GL;const KL=Xe(HL);var Wu={exports:{}},Ug={},Qt={},Vn={},Wa={},ge={},Da={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(R){if(super(),!e.IDENTIFIER.test(R))throw new Error("CodeGen: name must be a valid identifier");this.str=R}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class o extends t{constructor(R){super(),this._items=typeof R=="string"?[R]:R}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const R=this._items[0];return R===""||R==='""'}get str(){var R;return(R=this._str)!==null&&R!==void 0?R:this._str=this._items.reduce((M,U)=>`${M}${U}`,"")}get names(){var R;return(R=this._names)!==null&&R!==void 0?R:this._names=this._items.reduce((M,U)=>(U instanceof n&&(M[U.str]=(M[U.str]||0)+1),M),{})}}e._Code=o,e.nil=new o("");function s(b,...R){const M=[b[0]];let U=0;for(;U<R.length;)f(M,R[U]),M.push(b[++U]);return new o(M)}e._=s;const l=new o("+");function c(b,...R){const M=[I(b[0])];let U=0;for(;U<R.length;)M.push(l),f(M,R[U]),M.push(l,I(b[++U]));return h(M),new o(M)}e.str=c;function f(b,R){R instanceof o?b.push(...R._items):R instanceof n?b.push(R):b.push(w(R))}e.addCodeArg=f;function h(b){let R=1;for(;R<b.length-1;){if(b[R]===l){const M=g(b[R-1],b[R+1]);if(M!==void 0){b.splice(R-1,3,M);continue}b[R++]="+"}R++}}function g(b,R){if(R==='""')return b;if(b==='""')return R;if(typeof b=="string")return R instanceof n||b[b.length-1]!=='"'?void 0:typeof R!="string"?`${b.slice(0,-1)}${R}"`:R[0]==='"'?b.slice(0,-1)+R.slice(1):void 0;if(typeof R=="string"&&R[0]==='"'&&!(b instanceof n))return`"${b}${R.slice(1)}`}function y(b,R){return R.emptyStr()?b:b.emptyStr()?R:c`${b}${R}`}e.strConcat=y;function w(b){return typeof b=="number"||typeof b=="boolean"||b===null?b:I(Array.isArray(b)?b.join(","):b)}function C(b){return new o(I(b))}e.stringify=C;function I(b){return JSON.stringify(b).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=I;function O(b){return typeof b=="string"&&e.IDENTIFIER.test(b)?new o(`.${b}`):s`[${b}]`}e.getProperty=O;function N(b){if(typeof b=="string"&&e.IDENTIFIER.test(b))return new o(`${b}`);throw new Error(`CodeGen: invalid export name: ${b}, use explicit $id name mapping`)}e.getEsmExportName=N;function A(b){return new o(b.toString())}e.regexpCode=A})(Da);var zu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Da;class n extends Error{constructor(g){super(`CodeGen: "code" for ${g} not defined`),this.value=g.value}}var o;(function(h){h[h.Started=0]="Started",h[h.Completed=1]="Completed"})(o||(e.UsedValueState=o={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class s{constructor({prefixes:g,parent:y}={}){this._names={},this._prefixes=g,this._parent=y}toName(g){return g instanceof t.Name?g:this.name(g)}name(g){return new t.Name(this._newName(g))}_newName(g){const y=this._names[g]||this._nameGroup(g);return`${g}${y.index++}`}_nameGroup(g){var y,w;if(!((w=(y=this._parent)===null||y===void 0?void 0:y._prefixes)===null||w===void 0)&&w.has(g)||this._prefixes&&!this._prefixes.has(g))throw new Error(`CodeGen: prefix "${g}" is not allowed in this scope`);return this._names[g]={prefix:g,index:0}}}e.Scope=s;class l extends t.Name{constructor(g,y){super(y),this.prefix=g}setValue(g,{property:y,itemIndex:w}){this.value=g,this.scopePath=(0,t._)`.${new t.Name(y)}[${w}]`}}e.ValueScopeName=l;const c=(0,t._)`\n`;class f extends s{constructor(g){super(g),this._values={},this._scope=g.scope,this.opts={...g,_n:g.lines?c:t.nil}}get(){return this._scope}name(g){return new l(g,this._newName(g))}value(g,y){var w;if(y.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const C=this.toName(g),{prefix:I}=C,O=(w=y.key)!==null&&w!==void 0?w:y.ref;let N=this._values[I];if(N){const R=N.get(O);if(R)return R}else N=this._values[I]=new Map;N.set(O,C);const A=this._scope[I]||(this._scope[I]=[]),b=A.length;return A[b]=y.ref,C.setValue(y,{property:I,itemIndex:b}),C}getValue(g,y){const w=this._values[g];if(w)return w.get(y)}scopeRefs(g,y=this._values){return this._reduceValues(y,w=>{if(w.scopePath===void 0)throw new Error(`CodeGen: name "${w}" has no value`);return(0,t._)`${g}${w.scopePath}`})}scopeCode(g=this._values,y,w){return this._reduceValues(g,C=>{if(C.value===void 0)throw new Error(`CodeGen: name "${C}" has no value`);return C.value.code},y,w)}_reduceValues(g,y,w={},C){let I=t.nil;for(const O in g){const N=g[O];if(!N)continue;const A=w[O]=w[O]||new Map;N.forEach(b=>{if(A.has(b))return;A.set(b,o.Started);let R=y(b);if(R){const M=this.opts.es5?e.varKinds.var:e.varKinds.const;I=(0,t._)`${I}${M} ${b} = ${R};${this.opts._n}`}else if(R=C==null?void 0:C(b))I=(0,t._)`${I}${R}${this.opts._n}`;else throw new n(b);A.set(b,o.Completed)})}return I}}e.ValueScope=f})(zu);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Da,n=zu;var o=Da;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return o.Name}});var s=zu;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class l{optimizeNodes(){return this}optimizeNames(_,$){return this}}class c extends l{constructor(_,$,T){super(),this.varKind=_,this.name=$,this.rhs=T}render({es5:_,_n:$}){const T=_?n.varKinds.var:this.varKind,j=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${j};`+$}optimizeNames(_,$){if(_[this.name.str])return this.rhs&&(this.rhs=We(this.rhs,_,$)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class f extends l{constructor(_,$,T){super(),this.lhs=_,this.rhs=$,this.sideEffects=T}render({_n:_}){return`${this.lhs} = ${this.rhs};`+_}optimizeNames(_,$){if(!(this.lhs instanceof t.Name&&!_[this.lhs.str]&&!this.sideEffects))return this.rhs=We(this.rhs,_,$),this}get names(){const _=this.lhs instanceof t.Name?{}:{...this.lhs.names};return Je(_,this.rhs)}}class h extends f{constructor(_,$,T,j){super(_,T,j),this.op=$}render({_n:_}){return`${this.lhs} ${this.op}= ${this.rhs};`+_}}class g extends l{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`${this.label}:`+_}}class y extends l{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`break${this.label?` ${this.label}`:""};`+_}}class w extends l{constructor(_){super(),this.error=_}render({_n:_}){return`throw ${this.error};`+_}get names(){return this.error.names}}class C extends l{constructor(_){super(),this.code=_}render({_n:_}){return`${this.code};`+_}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(_,$){return this.code=We(this.code,_,$),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class I extends l{constructor(_=[]){super(),this.nodes=_}render(_){return this.nodes.reduce(($,T)=>$+T.render(_),"")}optimizeNodes(){const{nodes:_}=this;let $=_.length;for(;$--;){const T=_[$].optimizeNodes();Array.isArray(T)?_.splice($,1,...T):T?_[$]=T:_.splice($,1)}return _.length>0?this:void 0}optimizeNames(_,$){const{nodes:T}=this;let j=T.length;for(;j--;){const W=T[j];W.optimizeNames(_,$)||(dt(_,W.names),T.splice(j,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((_,$)=>Ee(_,$.names),{})}}class O extends I{render(_){return"{"+_._n+super.render(_)+"}"+_._n}}class N extends I{}class A extends O{}A.kind="else";class b extends O{constructor(_,$){super($),this.condition=_}render(_){let $=`if(${this.condition})`+super.render(_);return this.else&&($+="else "+this.else.render(_)),$}optimizeNodes(){super.optimizeNodes();const _=this.condition;if(_===!0)return this.nodes;let $=this.else;if($){const T=$.optimizeNodes();$=this.else=Array.isArray(T)?new A(T):T}if($)return _===!1?$ instanceof b?$:$.nodes:this.nodes.length?this:new b(Tr(_),$ instanceof b?[$]:$.nodes);if(!(_===!1||!this.nodes.length))return this}optimizeNames(_,$){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(_,$),!!(super.optimizeNames(_,$)||this.else))return this.condition=We(this.condition,_,$),this}get names(){const _=super.names;return Je(_,this.condition),this.else&&Ee(_,this.else.names),_}}b.kind="if";class R extends O{}R.kind="for";class M extends R{constructor(_){super(),this.iteration=_}render(_){return`for(${this.iteration})`+super.render(_)}optimizeNames(_,$){if(super.optimizeNames(_,$))return this.iteration=We(this.iteration,_,$),this}get names(){return Ee(super.names,this.iteration.names)}}class U extends R{constructor(_,$,T,j){super(),this.varKind=_,this.name=$,this.from=T,this.to=j}render(_){const $=_.es5?n.varKinds.var:this.varKind,{name:T,from:j,to:W}=this;return`for(${$} ${T}=${j}; ${T}<${W}; ${T}++)`+super.render(_)}get names(){const _=Je(super.names,this.from);return Je(_,this.to)}}class G extends R{constructor(_,$,T,j){super(),this.loop=_,this.varKind=$,this.name=T,this.iterable=j}render(_){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(_)}optimizeNames(_,$){if(super.optimizeNames(_,$))return this.iterable=We(this.iterable,_,$),this}get names(){return Ee(super.names,this.iterable.names)}}class se extends O{constructor(_,$,T){super(),this.name=_,this.args=$,this.async=T}render(_){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(_)}}se.kind="func";class X extends I{render(_){return"return "+super.render(_)}}X.kind="return";class he extends O{render(_){let $="try"+super.render(_);return this.catch&&($+=this.catch.render(_)),this.finally&&($+=this.finally.render(_)),$}optimizeNodes(){var _,$;return super.optimizeNodes(),(_=this.catch)===null||_===void 0||_.optimizeNodes(),($=this.finally)===null||$===void 0||$.optimizeNodes(),this}optimizeNames(_,$){var T,j;return super.optimizeNames(_,$),(T=this.catch)===null||T===void 0||T.optimizeNames(_,$),(j=this.finally)===null||j===void 0||j.optimizeNames(_,$),this}get names(){const _=super.names;return this.catch&&Ee(_,this.catch.names),this.finally&&Ee(_,this.finally.names),_}}class te extends O{constructor(_){super(),this.error=_}render(_){return`catch(${this.error})`+super.render(_)}}te.kind="catch";class ue extends O{render(_){return"finally"+super.render(_)}}ue.kind="finally";class Te{constructor(_,$={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...$,_n:$.lines?`
3
+ `:""},this._extScope=_,this._scope=new n.Scope({parent:_}),this._nodes=[new N]}toString(){return this._root.render(this.opts)}name(_){return this._scope.name(_)}scopeName(_){return this._extScope.name(_)}scopeValue(_,$){const T=this._extScope.value(_,$);return(this._values[T.prefix]||(this._values[T.prefix]=new Set)).add(T),T}getScopeValue(_,$){return this._extScope.getValue(_,$)}scopeRefs(_){return this._extScope.scopeRefs(_,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(_,$,T,j){const W=this._scope.toName($);return T!==void 0&&j&&(this._constants[W.str]=T),this._leafNode(new c(_,W,T)),W}const(_,$,T){return this._def(n.varKinds.const,_,$,T)}let(_,$,T){return this._def(n.varKinds.let,_,$,T)}var(_,$,T){return this._def(n.varKinds.var,_,$,T)}assign(_,$,T){return this._leafNode(new f(_,$,T))}add(_,$){return this._leafNode(new h(_,e.operators.ADD,$))}code(_){return typeof _=="function"?_():_!==t.nil&&this._leafNode(new C(_)),this}object(..._){const $=["{"];for(const[T,j]of _)$.length>1&&$.push(","),$.push(T),(T!==j||this.opts.es5)&&($.push(":"),(0,t.addCodeArg)($,j));return $.push("}"),new t._Code($)}if(_,$,T){if(this._blockNode(new b(_)),$&&T)this.code($).else().code(T).endIf();else if($)this.code($).endIf();else if(T)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(_){return this._elseNode(new b(_))}else(){return this._elseNode(new A)}endIf(){return this._endBlockNode(b,A)}_for(_,$){return this._blockNode(_),$&&this.code($).endFor(),this}for(_,$){return this._for(new M(_),$)}forRange(_,$,T,j,W=this.opts.es5?n.varKinds.var:n.varKinds.let){const J=this._scope.toName(_);return this._for(new U(W,J,$,T),()=>j(J))}forOf(_,$,T,j=n.varKinds.const){const W=this._scope.toName(_);if(this.opts.es5){const J=$ instanceof t.Name?$:this.var("_arr",$);return this.forRange("_i",0,(0,t._)`${J}.length`,ie=>{this.var(W,(0,t._)`${J}[${ie}]`),T(W)})}return this._for(new G("of",j,W,$),()=>T(W))}forIn(_,$,T,j=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(_,(0,t._)`Object.keys(${$})`,T);const W=this._scope.toName(_);return this._for(new G("in",j,W,$),()=>T(W))}endFor(){return this._endBlockNode(R)}label(_){return this._leafNode(new g(_))}break(_){return this._leafNode(new y(_))}return(_){const $=new X;if(this._blockNode($),this.code(_),$.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(X)}try(_,$,T){if(!$&&!T)throw new Error('CodeGen: "try" without "catch" and "finally"');const j=new he;if(this._blockNode(j),this.code(_),$){const W=this.name("e");this._currNode=j.catch=new te(W),$(W)}return T&&(this._currNode=j.finally=new ue,this.code(T)),this._endBlockNode(te,ue)}throw(_){return this._leafNode(new w(_))}block(_,$){return this._blockStarts.push(this._nodes.length),_&&this.code(_).endBlock($),this}endBlock(_){const $=this._blockStarts.pop();if($===void 0)throw new Error("CodeGen: not in self-balancing block");const T=this._nodes.length-$;if(T<0||_!==void 0&&T!==_)throw new Error(`CodeGen: wrong number of nodes: ${T} vs ${_} expected`);return this._nodes.length=$,this}func(_,$=t.nil,T,j){return this._blockNode(new se(_,$,T)),j&&this.code(j).endFunc(),this}endFunc(){return this._endBlockNode(se)}optimize(_=1){for(;_-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(_){return this._currNode.nodes.push(_),this}_blockNode(_){this._currNode.nodes.push(_),this._nodes.push(_)}_endBlockNode(_,$){const T=this._currNode;if(T instanceof _||$&&T instanceof $)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${$?`${_.kind}/${$.kind}`:_.kind}"`)}_elseNode(_){const $=this._currNode;if(!($ instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=$.else=_,this}get _root(){return this._nodes[0]}get _currNode(){const _=this._nodes;return _[_.length-1]}set _currNode(_){const $=this._nodes;$[$.length-1]=_}}e.CodeGen=Te;function Ee(L,_){for(const $ in _)L[$]=(L[$]||0)+(_[$]||0);return L}function Je(L,_){return _ instanceof t._CodeOrName?Ee(L,_.names):L}function We(L,_,$){if(L instanceof t.Name)return T(L);if(!j(L))return L;return new t._Code(L._items.reduce((W,J)=>(J instanceof t.Name&&(J=T(J)),J instanceof t._Code?W.push(...J._items):W.push(J),W),[]));function T(W){const J=$[W.str];return J===void 0||_[W.str]!==1?W:(delete _[W.str],J)}function j(W){return W instanceof t._Code&&W._items.some(J=>J instanceof t.Name&&_[J.str]===1&&$[J.str]!==void 0)}}function dt(L,_){for(const $ in _)L[$]=(L[$]||0)-(_[$]||0)}function Tr(L){return typeof L=="boolean"||typeof L=="number"||L===null?!L:(0,t._)`!${q(L)}`}e.not=Tr;const At=D(e.operators.AND);function ft(...L){return L.reduce(At)}e.and=ft;const Ir=D(e.operators.OR);function H(...L){return L.reduce(Ir)}e.or=H;function D(L){return(_,$)=>_===t.nil?$:$===t.nil?_:(0,t._)`${q(_)} ${L} ${q($)}`}function q(L){return L instanceof t.Name?L:(0,t._)`(${L})`}})(ge);var Y={};Object.defineProperty(Y,"__esModule",{value:!0});Y.checkStrictMode=Y.getErrorPath=Y.Type=Y.useFunc=Y.setEvaluated=Y.evaluatedPropsToName=Y.mergeEvaluated=Y.eachItem=Y.unescapeJsonPointer=Y.escapeJsonPointer=Y.escapeFragment=Y.unescapeFragment=Y.schemaRefOrVal=Y.schemaHasRulesButRef=Y.schemaHasRules=Y.checkUnknownRules=Y.alwaysValidSchema=Y.toHash=void 0;const Pe=ge,JL=Da;function YL(e){const t={};for(const n of e)t[n]=!0;return t}Y.toHash=YL;function ZL(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Wg(e,t),!zg(t,e.self.RULES.all))}Y.alwaysValidSchema=ZL;function Wg(e,t=e.schema){const{opts:n,self:o}=e;if(!n.strictSchema||typeof t=="boolean")return;const s=o.RULES.keywords;for(const l in t)s[l]||Hg(e,`unknown keyword: "${l}"`)}Y.checkUnknownRules=Wg;function zg(e,t){if(typeof e=="boolean")return!e;for(const n in e)if(t[n])return!0;return!1}Y.schemaHasRules=zg;function XL(e,t){if(typeof e=="boolean")return!e;for(const n in e)if(n!=="$ref"&&t.all[n])return!0;return!1}Y.schemaHasRulesButRef=XL;function QL({topSchemaRef:e,schemaPath:t},n,o,s){if(!s){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,Pe._)`${n}`}return(0,Pe._)`${e}${t}${(0,Pe.getProperty)(o)}`}Y.schemaRefOrVal=QL;function eB(e){return qg(decodeURIComponent(e))}Y.unescapeFragment=eB;function tB(e){return encodeURIComponent(wl(e))}Y.escapeFragment=tB;function wl(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}Y.escapeJsonPointer=wl;function qg(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}Y.unescapeJsonPointer=qg;function rB(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)}Y.eachItem=rB;function gh({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:o}){return(s,l,c,f)=>{const h=c===void 0?l:c instanceof Pe.Name?(l instanceof Pe.Name?e(s,l,c):t(s,l,c),c):l instanceof Pe.Name?(t(s,c,l),l):n(l,c);return f===Pe.Name&&!(h instanceof Pe.Name)?o(s,h):h}}Y.mergeEvaluated={props:gh({mergeNames:(e,t,n)=>e.if((0,Pe._)`${n} !== true && ${t} !== undefined`,()=>{e.if((0,Pe._)`${t} === true`,()=>e.assign(n,!0),()=>e.assign(n,(0,Pe._)`${n} || {}`).code((0,Pe._)`Object.assign(${n}, ${t})`))}),mergeToName:(e,t,n)=>e.if((0,Pe._)`${n} !== true`,()=>{t===!0?e.assign(n,!0):(e.assign(n,(0,Pe._)`${n} || {}`),El(e,n,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Gg}),items:gh({mergeNames:(e,t,n)=>e.if((0,Pe._)`${n} !== true && ${t} !== undefined`,()=>e.assign(n,(0,Pe._)`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`)),mergeToName:(e,t,n)=>e.if((0,Pe._)`${n} !== true`,()=>e.assign(n,t===!0?!0:(0,Pe._)`${n} > ${t} ? ${n} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Gg(e,t){if(t===!0)return e.var("props",!0);const n=e.var("props",(0,Pe._)`{}`);return t!==void 0&&El(e,n,t),n}Y.evaluatedPropsToName=Gg;function El(e,t,n){Object.keys(n).forEach(o=>e.assign((0,Pe._)`${t}${(0,Pe.getProperty)(o)}`,!0))}Y.setEvaluated=El;const vh={};function nB(e,t){return e.scopeValue("func",{ref:t,code:vh[t.code]||(vh[t.code]=new JL._Code(t.code))})}Y.useFunc=nB;var qu;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(qu||(Y.Type=qu={}));function aB(e,t,n){if(e instanceof Pe.Name){const o=t===qu.Num;return n?o?(0,Pe._)`"[" + ${e} + "]"`:(0,Pe._)`"['" + ${e} + "']"`:o?(0,Pe._)`"/" + ${e}`:(0,Pe._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,Pe.getProperty)(e).toString():"/"+wl(e)}Y.getErrorPath=aB;function Hg(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,n===!0)throw new Error(t);e.self.logger.warn(t)}}Y.checkStrictMode=Hg;var sr={};Object.defineProperty(sr,"__esModule",{value:!0});const ut=ge,oB={data:new ut.Name("data"),valCxt:new ut.Name("valCxt"),instancePath:new ut.Name("instancePath"),parentData:new ut.Name("parentData"),parentDataProperty:new ut.Name("parentDataProperty"),rootData:new ut.Name("rootData"),dynamicAnchors:new ut.Name("dynamicAnchors"),vErrors:new ut.Name("vErrors"),errors:new ut.Name("errors"),this:new ut.Name("this"),self:new ut.Name("self"),scope:new ut.Name("scope"),json:new ut.Name("json"),jsonPos:new ut.Name("jsonPos"),jsonLen:new ut.Name("jsonLen"),jsonPart:new ut.Name("jsonPart")};sr.default=oB;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=ge,n=Y,o=sr;e.keywordError={message:({keyword:A})=>(0,t.str)`must pass "${A}" keyword validation`},e.keyword$DataError={message:({keyword:A,schemaType:b})=>b?(0,t.str)`"${A}" keyword must be ${b} ($data)`:(0,t.str)`"${A}" keyword is invalid ($data)`};function s(A,b=e.keywordError,R,M){const{it:U}=A,{gen:G,compositeRule:se,allErrors:X}=U,he=w(A,b,R);M??(se||X)?h(G,he):g(U,(0,t._)`[${he}]`)}e.reportError=s;function l(A,b=e.keywordError,R){const{it:M}=A,{gen:U,compositeRule:G,allErrors:se}=M,X=w(A,b,R);h(U,X),G||se||g(M,o.default.vErrors)}e.reportExtraError=l;function c(A,b){A.assign(o.default.errors,b),A.if((0,t._)`${o.default.vErrors} !== null`,()=>A.if(b,()=>A.assign((0,t._)`${o.default.vErrors}.length`,b),()=>A.assign(o.default.vErrors,null)))}e.resetErrorsCount=c;function f({gen:A,keyword:b,schemaValue:R,data:M,errsCount:U,it:G}){if(U===void 0)throw new Error("ajv implementation error");const se=A.name("err");A.forRange("i",U,o.default.errors,X=>{A.const(se,(0,t._)`${o.default.vErrors}[${X}]`),A.if((0,t._)`${se}.instancePath === undefined`,()=>A.assign((0,t._)`${se}.instancePath`,(0,t.strConcat)(o.default.instancePath,G.errorPath))),A.assign((0,t._)`${se}.schemaPath`,(0,t.str)`${G.errSchemaPath}/${b}`),G.opts.verbose&&(A.assign((0,t._)`${se}.schema`,R),A.assign((0,t._)`${se}.data`,M))})}e.extendErrors=f;function h(A,b){const R=A.const("err",b);A.if((0,t._)`${o.default.vErrors} === null`,()=>A.assign(o.default.vErrors,(0,t._)`[${R}]`),(0,t._)`${o.default.vErrors}.push(${R})`),A.code((0,t._)`${o.default.errors}++`)}function g(A,b){const{gen:R,validateName:M,schemaEnv:U}=A;U.$async?R.throw((0,t._)`new ${A.ValidationError}(${b})`):(R.assign((0,t._)`${M}.errors`,b),R.return(!1))}const y={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function w(A,b,R){const{createErrors:M}=A.it;return M===!1?(0,t._)`{}`:C(A,b,R)}function C(A,b,R={}){const{gen:M,it:U}=A,G=[I(U,R),O(A,R)];return N(A,b,G),M.object(...G)}function I({errorPath:A},{instancePath:b}){const R=b?(0,t.str)`${A}${(0,n.getErrorPath)(b,n.Type.Str)}`:A;return[o.default.instancePath,(0,t.strConcat)(o.default.instancePath,R)]}function O({keyword:A,it:{errSchemaPath:b}},{schemaPath:R,parentSchema:M}){let U=M?b:(0,t.str)`${b}/${A}`;return R&&(U=(0,t.str)`${U}${(0,n.getErrorPath)(R,n.Type.Str)}`),[y.schemaPath,U]}function N(A,{params:b,message:R},M){const{keyword:U,data:G,schemaValue:se,it:X}=A,{opts:he,propertyName:te,topSchemaRef:ue,schemaPath:Te}=X;M.push([y.keyword,U],[y.params,typeof b=="function"?b(A):b||(0,t._)`{}`]),he.messages&&M.push([y.message,typeof R=="function"?R(A):R]),he.verbose&&M.push([y.schema,se],[y.parentSchema,(0,t._)`${ue}${Te}`],[o.default.data,G]),te&&M.push([y.propertyName,te])}})(Wa);Object.defineProperty(Vn,"__esModule",{value:!0});Vn.boolOrEmptySchema=Vn.topBoolOrEmptySchema=void 0;const iB=Wa,sB=ge,uB=sr,lB={message:"boolean schema is false"};function cB(e){const{gen:t,schema:n,validateName:o}=e;n===!1?Kg(e,!1):typeof n=="object"&&n.$async===!0?t.return(uB.default.data):(t.assign((0,sB._)`${o}.errors`,null),t.return(!0))}Vn.topBoolOrEmptySchema=cB;function dB(e,t){const{gen:n,schema:o}=e;o===!1?(n.var(t,!1),Kg(e)):n.var(t,!0)}Vn.boolOrEmptySchema=dB;function Kg(e,t){const{gen:n,data:o}=e,s={gen:n,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,iB.reportError)(s,lB,void 0,t)}var He={},fn={};Object.defineProperty(fn,"__esModule",{value:!0});fn.getRules=fn.isJSONType=void 0;const fB=["string","number","integer","boolean","null","object","array"],pB=new Set(fB);function hB(e){return typeof e=="string"&&pB.has(e)}fn.isJSONType=hB;function mB(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}fn.getRules=mB;var Sr={};Object.defineProperty(Sr,"__esModule",{value:!0});Sr.shouldUseRule=Sr.shouldUseGroup=Sr.schemaHasRulesForType=void 0;function gB({schema:e,self:t},n){const o=t.RULES.types[n];return o&&o!==!0&&Jg(e,o)}Sr.schemaHasRulesForType=gB;function Jg(e,t){return t.rules.some(n=>Yg(e,n))}Sr.shouldUseGroup=Jg;function Yg(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(o=>e[o]!==void 0))}Sr.shouldUseRule=Yg;Object.defineProperty(He,"__esModule",{value:!0});He.reportTypeError=He.checkDataTypes=He.checkDataType=He.coerceAndCheckDataType=He.getJSONTypes=He.getSchemaTypes=He.DataType=void 0;const vB=fn,yB=Sr,_B=Wa,pe=ge,Zg=Y;var jn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(jn||(He.DataType=jn={}));function $B(e){const t=Xg(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}He.getSchemaTypes=$B;function Xg(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(vB.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}He.getJSONTypes=Xg;function bB(e,t){const{gen:n,data:o,opts:s}=e,l=wB(t,s.coerceTypes),c=t.length>0&&!(l.length===0&&t.length===1&&(0,yB.schemaHasRulesForType)(e,t[0]));if(c){const f=Sl(t,o,s.strictNumbers,jn.Wrong);n.if(f,()=>{l.length?EB(e,t,l):Al(e)})}return c}He.coerceAndCheckDataType=bB;const Qg=new Set(["string","number","integer","boolean","null"]);function wB(e,t){return t?e.filter(n=>Qg.has(n)||t==="array"&&n==="array"):[]}function EB(e,t,n){const{gen:o,data:s,opts:l}=e,c=o.let("dataType",(0,pe._)`typeof ${s}`),f=o.let("coerced",(0,pe._)`undefined`);l.coerceTypes==="array"&&o.if((0,pe._)`${c} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>o.assign(s,(0,pe._)`${s}[0]`).assign(c,(0,pe._)`typeof ${s}`).if(Sl(t,s,l.strictNumbers),()=>o.assign(f,s))),o.if((0,pe._)`${f} !== undefined`);for(const g of n)(Qg.has(g)||g==="array"&&l.coerceTypes==="array")&&h(g);o.else(),Al(e),o.endIf(),o.if((0,pe._)`${f} !== undefined`,()=>{o.assign(s,f),SB(e,f)});function h(g){switch(g){case"string":o.elseIf((0,pe._)`${c} == "number" || ${c} == "boolean"`).assign(f,(0,pe._)`"" + ${s}`).elseIf((0,pe._)`${s} === null`).assign(f,(0,pe._)`""`);return;case"number":o.elseIf((0,pe._)`${c} == "boolean" || ${s} === null
4
4
  || (${c} == "string" && ${s} && ${s} == +${s})`).assign(f,(0,pe._)`+${s}`);return;case"integer":o.elseIf((0,pe._)`${c} === "boolean" || ${s} === null
5
5
  || (${c} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(f,(0,pe._)`+${s}`);return;case"boolean":o.elseIf((0,pe._)`${s} === "false" || ${s} === 0 || ${s} === null`).assign(f,!1).elseIf((0,pe._)`${s} === "true" || ${s} === 1`).assign(f,!0);return;case"null":o.elseIf((0,pe._)`${s} === "" || ${s} === 0 || ${s} === false`),o.assign(f,null);return;case"array":o.elseIf((0,pe._)`${c} === "string" || ${c} === "number"
6
- || ${c} === "boolean" || ${s} === null`).assign(f,(0,pe._)`[${s}]`)}}}function pB({gen:e,parentData:t,parentDataProperty:n},o){e.if((0,pe._)`${t} !== undefined`,()=>e.assign((0,pe._)`${t}[${n}]`,o))}function Gu(e,t,n,o=jn.Correct){const s=o===jn.Correct?pe.operators.EQ:pe.operators.NEQ;let l;switch(e){case"null":return(0,pe._)`${t} ${s} null`;case"array":l=(0,pe._)`Array.isArray(${t})`;break;case"object":l=(0,pe._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":l=c((0,pe._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":l=c();break;default:return(0,pe._)`typeof ${t} ${s} ${e}`}return o===jn.Correct?l:(0,pe.not)(l);function c(f=pe.nil){return(0,pe.and)((0,pe._)`typeof ${t} == "number"`,f,n?(0,pe._)`isFinite(${t})`:pe.nil)}}He.checkDataType=Gu;function Sl(e,t,n,o){if(e.length===1)return Gu(e[0],t,n,o);let s;const l=(0,Zg.toHash)(e);if(l.array&&l.object){const c=(0,pe._)`typeof ${t} != "object"`;s=l.null?c:(0,pe._)`!${t} || ${c}`,delete l.null,delete l.array,delete l.object}else s=pe.nil;l.number&&delete l.integer;for(const c in l)s=(0,pe.and)(s,Gu(c,t,n,o));return s}He.checkDataTypes=Sl;const hB={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,pe._)`{type: ${e}}`:(0,pe._)`{type: ${t}}`};function Al(e){const t=mB(e);(0,uB.reportError)(t,hB)}He.reportTypeError=Al;function mB(e){const{gen:t,data:n,schema:o}=e,s=(0,Zg.schemaRefOrVal)(e,o,"type");return{gen:t,keyword:"type",data:n,schema:o.type,schemaCode:s,schemaValue:s,parentSchema:o,params:{},it:e}}var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.assignDefaults=void 0;const Nn=ge,gB=Y;function vB(e,t){const{properties:n,items:o}=e.schema;if(t==="object"&&n)for(const s in n)yh(e,s,n[s].default);else t==="array"&&Array.isArray(o)&&o.forEach((s,l)=>yh(e,l,s.default))}Mi.assignDefaults=vB;function yh(e,t,n){const{gen:o,compositeRule:s,data:l,opts:c}=e;if(n===void 0)return;const f=(0,Nn._)`${l}${(0,Nn.getProperty)(t)}`;if(s){(0,gB.checkStrictMode)(e,`default is ignored for: ${f}`);return}let h=(0,Nn._)`${f} === undefined`;c.useDefaults==="empty"&&(h=(0,Nn._)`${h} || ${f} === null || ${f} === ""`),o.if(h,(0,Nn._)`${f} = ${(0,Nn.stringify)(n)}`)}var ar={},ye={};Object.defineProperty(ye,"__esModule",{value:!0});ye.validateUnion=ye.validateArray=ye.usePattern=ye.callValidateCode=ye.schemaProperties=ye.allSchemaProperties=ye.noPropertyInData=ye.propertyInData=ye.isOwnProperty=ye.hasPropFunc=ye.reportMissingProp=ye.checkMissingProp=ye.checkReportMissingProp=void 0;const Le=ge,Cl=Y,xr=sr,yB=Y;function _B(e,t){const{gen:n,data:o,it:s}=e;n.if(Tl(n,o,t,s.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Le._)`${t}`},!0),e.error()})}ye.checkReportMissingProp=_B;function $B({gen:e,data:t,it:{opts:n}},o,s){return(0,Le.or)(...o.map(l=>(0,Le.and)(Tl(e,t,l,n.ownProperties),(0,Le._)`${s} = ${l}`)))}ye.checkMissingProp=$B;function bB(e,t){e.setParams({missingProperty:t},!0),e.error()}ye.reportMissingProp=bB;function ev(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Le._)`Object.prototype.hasOwnProperty`})}ye.hasPropFunc=ev;function Ol(e,t,n){return(0,Le._)`${ev(e)}.call(${t}, ${n})`}ye.isOwnProperty=Ol;function wB(e,t,n,o){const s=(0,Le._)`${t}${(0,Le.getProperty)(n)} !== undefined`;return o?(0,Le._)`${s} && ${Ol(e,t,n)}`:s}ye.propertyInData=wB;function Tl(e,t,n,o){const s=(0,Le._)`${t}${(0,Le.getProperty)(n)} === undefined`;return o?(0,Le.or)(s,(0,Le.not)(Ol(e,t,n))):s}ye.noPropertyInData=Tl;function tv(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}ye.allSchemaProperties=tv;function EB(e,t){return tv(t).filter(n=>!(0,Cl.alwaysValidSchema)(e,t[n]))}ye.schemaProperties=EB;function SB({schemaCode:e,data:t,it:{gen:n,topSchemaRef:o,schemaPath:s,errorPath:l},it:c},f,h,g){const y=g?(0,Le._)`${e}, ${t}, ${o}${s}`:t,w=[[xr.default.instancePath,(0,Le.strConcat)(xr.default.instancePath,l)],[xr.default.parentData,c.parentData],[xr.default.parentDataProperty,c.parentDataProperty],[xr.default.rootData,xr.default.rootData]];c.opts.dynamicRef&&w.push([xr.default.dynamicAnchors,xr.default.dynamicAnchors]);const C=(0,Le._)`${y}, ${n.object(...w)}`;return h!==Le.nil?(0,Le._)`${f}.call(${h}, ${C})`:(0,Le._)`${f}(${C})`}ye.callValidateCode=SB;const AB=(0,Le._)`new RegExp`;function CB({gen:e,it:{opts:t}},n){const o=t.unicodeRegExp?"u":"",{regExp:s}=t.code,l=s(n,o);return e.scopeValue("pattern",{key:l.toString(),ref:l,code:(0,Le._)`${s.code==="new RegExp"?AB:(0,yB.useFunc)(e,s)}(${n}, ${o})`})}ye.usePattern=CB;function OB(e){const{gen:t,data:n,keyword:o,it:s}=e,l=t.name("valid");if(s.allErrors){const f=t.let("valid",!0);return c(()=>t.assign(f,!1)),f}return t.var(l,!0),c(()=>t.break()),l;function c(f){const h=t.const("len",(0,Le._)`${n}.length`);t.forRange("i",0,h,g=>{e.subschema({keyword:o,dataProp:g,dataPropType:Cl.Type.Num},l),t.if((0,Le.not)(l),f)})}}ye.validateArray=OB;function TB(e){const{gen:t,schema:n,keyword:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(h=>(0,Cl.alwaysValidSchema)(s,h))&&!s.opts.unevaluated)return;const c=t.let("valid",!1),f=t.name("_valid");t.block(()=>n.forEach((h,g)=>{const y=e.subschema({keyword:o,schemaProp:g,compositeRule:!0},f);t.assign(c,(0,Le._)`${c} || ${f}`),e.mergeValidEvaluated(y,f)||t.if((0,Le.not)(c))})),e.result(c,()=>e.reset(),()=>e.error(!0))}ye.validateUnion=TB;Object.defineProperty(ar,"__esModule",{value:!0});ar.validateKeywordUsage=ar.validSchemaType=ar.funcKeywordCode=ar.macroKeywordCode=void 0;const vt=ge,un=sr,IB=ye,PB=Wa;function RB(e,t){const{gen:n,keyword:o,schema:s,parentSchema:l,it:c}=e,f=t.macro.call(c.self,s,l,c),h=rv(n,o,f);c.opts.validateSchema!==!1&&c.self.validateSchema(f,!0);const g=n.name("valid");e.subschema({schema:f,schemaPath:vt.nil,errSchemaPath:`${c.errSchemaPath}/${o}`,topSchemaRef:h,compositeRule:!0},g),e.pass(g,()=>e.error(!0))}ar.macroKeywordCode=RB;function kB(e,t){var n;const{gen:o,keyword:s,schema:l,parentSchema:c,$data:f,it:h}=e;DB(h,t);const g=!f&&t.compile?t.compile.call(h.self,l,c,h):t.validate,y=rv(o,s,g),w=o.let("valid");e.block$data(w,C),e.ok((n=t.valid)!==null&&n!==void 0?n:w);function C(){if(t.errors===!1)N(),t.modifying&&_h(e),A(()=>e.error());else{const b=t.async?I():O();t.modifying&&_h(e),A(()=>NB(e,b))}}function I(){const b=o.let("ruleErrs",null);return o.try(()=>N((0,vt._)`await `),R=>o.assign(w,!1).if((0,vt._)`${R} instanceof ${h.ValidationError}`,()=>o.assign(b,(0,vt._)`${R}.errors`),()=>o.throw(R))),b}function O(){const b=(0,vt._)`${y}.errors`;return o.assign(b,null),N(vt.nil),b}function N(b=t.async?(0,vt._)`await `:vt.nil){const R=h.opts.passContext?un.default.this:un.default.self,M=!("compile"in t&&!f||t.schema===!1);o.assign(w,(0,vt._)`${b}${(0,IB.callValidateCode)(e,y,R,M)}`,t.modifying)}function A(b){var R;o.if((0,vt.not)((R=t.valid)!==null&&R!==void 0?R:w),b)}}ar.funcKeywordCode=kB;function _h(e){const{gen:t,data:n,it:o}=e;t.if(o.parentData,()=>t.assign(n,(0,vt._)`${o.parentData}[${o.parentDataProperty}]`))}function NB(e,t){const{gen:n}=e;n.if((0,vt._)`Array.isArray(${t})`,()=>{n.assign(un.default.vErrors,(0,vt._)`${un.default.vErrors} === null ? ${t} : ${un.default.vErrors}.concat(${t})`).assign(un.default.errors,(0,vt._)`${un.default.vErrors}.length`),(0,PB.extendErrors)(e)},()=>e.error())}function DB({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function rv(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,vt.stringify)(n)})}function LB(e,t,n=!1){return!t.length||t.some(o=>o==="array"?Array.isArray(e):o==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==o||n&&typeof e>"u")}ar.validSchemaType=LB;function BB({schema:e,opts:t,self:n,errSchemaPath:o},s,l){if(Array.isArray(s.keyword)?!s.keyword.includes(l):s.keyword!==l)throw new Error("ajv implementation error");const c=s.dependencies;if(c!=null&&c.some(f=>!Object.prototype.hasOwnProperty.call(e,f)))throw new Error(`parent schema must have dependencies of ${l}: ${c.join(",")}`);if(s.validateSchema&&!s.validateSchema(e[l])){const h=`keyword "${l}" value is invalid at path "${o}": `+n.errorsText(s.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(h);else throw new Error(h)}}ar.validateKeywordUsage=BB;var zr={};Object.defineProperty(zr,"__esModule",{value:!0});zr.extendSubschemaMode=zr.extendSubschemaData=zr.getSubschema=void 0;const nr=ge,nv=Y;function MB(e,{keyword:t,schemaProp:n,schema:o,schemaPath:s,errSchemaPath:l,topSchemaRef:c}){if(t!==void 0&&o!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const f=e.schema[t];return n===void 0?{schema:f,schemaPath:(0,nr._)`${e.schemaPath}${(0,nr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:f[n],schemaPath:(0,nr._)`${e.schemaPath}${(0,nr.getProperty)(t)}${(0,nr.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,nv.escapeFragment)(n)}`}}if(o!==void 0){if(s===void 0||l===void 0||c===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:s,topSchemaRef:c,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')}zr.getSubschema=MB;function FB(e,t,{dataProp:n,dataPropType:o,data:s,dataTypes:l,propertyName:c}){if(s!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:f}=t;if(n!==void 0){const{errorPath:g,dataPathArr:y,opts:w}=t,C=f.let("data",(0,nr._)`${t.data}${(0,nr.getProperty)(n)}`,!0);h(C),e.errorPath=(0,nr.str)`${g}${(0,nv.getErrorPath)(n,o,w.jsPropertySyntax)}`,e.parentDataProperty=(0,nr._)`${n}`,e.dataPathArr=[...y,e.parentDataProperty]}if(s!==void 0){const g=s instanceof nr.Name?s:f.let("data",s,!0);h(g),c!==void 0&&(e.propertyName=c)}l&&(e.dataTypes=l);function h(g){e.data=g,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,g]}}zr.extendSubschemaData=FB;function jB(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:o,createErrors:s,allErrors:l}){o!==void 0&&(e.compositeRule=o),s!==void 0&&(e.createErrors=s),l!==void 0&&(e.allErrors=l),e.jtdDiscriminator=t,e.jtdMetadata=n}zr.extendSubschemaMode=jB;var ot={},av=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var o,s,l;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(s=o;s--!==0;)if(!e(t[s],n[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(l=Object.keys(t),o=l.length,o!==Object.keys(n).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,l[s]))return!1;for(s=o;s--!==0;){var c=l[s];if(!e(t[c],n[c]))return!1}return!0}return t!==t&&n!==n},ov={exports:{}},Ur=ov.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var o=typeof n=="function"?n:n.pre||function(){},s=n.post||function(){};Qo(t,o,s,e,"",e)};Ur.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Ur.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Ur.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Ur.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Qo(e,t,n,o,s,l,c,f,h,g){if(o&&typeof o=="object"&&!Array.isArray(o)){t(o,s,l,c,f,h,g);for(var y in o){var w=o[y];if(Array.isArray(w)){if(y in Ur.arrayKeywords)for(var C=0;C<w.length;C++)Qo(e,t,n,w[C],s+"/"+y+"/"+C,l,s,y,o,C)}else if(y in Ur.propsKeywords){if(w&&typeof w=="object")for(var I in w)Qo(e,t,n,w[I],s+"/"+y+"/"+xB(I),l,s,y,o,I)}else(y in Ur.keywords||e.allKeys&&!(y in Ur.skipKeywords))&&Qo(e,t,n,w,s+"/"+y,l,s,y,o)}n(o,s,l,c,f,h,g)}}function xB(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var VB=ov.exports;Object.defineProperty(ot,"__esModule",{value:!0});ot.getSchemaRefs=ot.resolveUrl=ot.normalizeId=ot._getFullPath=ot.getFullPath=ot.inlineRef=void 0;const UB=Y,WB=av,zB=VB,qB=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function GB(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Hu(e):t?iv(e)<=t:!1}ot.inlineRef=GB;const HB=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Hu(e){for(const t in e){if(HB.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(Hu)||typeof n=="object"&&Hu(n))return!0}return!1}function iv(e){let t=0;for(const n in e){if(n==="$ref")return 1/0;if(t++,!qB.has(n)&&(typeof e[n]=="object"&&(0,UB.eachItem)(e[n],o=>t+=iv(o)),t===1/0))return 1/0}return t}function sv(e,t="",n){n!==!1&&(t=xn(t));const o=e.parse(t);return uv(e,o)}ot.getFullPath=sv;function uv(e,t){return e.serialize(t).split("#")[0]+"#"}ot._getFullPath=uv;const KB=/#\/?$/;function xn(e){return e?e.replace(KB,""):""}ot.normalizeId=xn;function JB(e,t,n){return n=xn(n),e.resolve(t,n)}ot.resolveUrl=JB;const YB=/^[a-z_][-a-z0-9._]*$/i;function ZB(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:o}=this.opts,s=xn(e[n]||t),l={"":s},c=sv(o,s,!1),f={},h=new Set;return zB(e,{allKeys:!0},(w,C,I,O)=>{if(O===void 0)return;const N=c+C;let A=l[O];typeof w[n]=="string"&&(A=b.call(this,w[n])),R.call(this,w.$anchor),R.call(this,w.$dynamicAnchor),l[C]=A;function b(M){const U=this.opts.uriResolver.resolve;if(M=xn(A?U(A,M):M),h.has(M))throw y(M);h.add(M);let G=this.refs[M];return typeof G=="string"&&(G=this.refs[G]),typeof G=="object"?g(w,G.schema,M):M!==xn(N)&&(M[0]==="#"?(g(w,f[M],M),f[M]=w):this.refs[M]=N),M}function R(M){if(typeof M=="string"){if(!YB.test(M))throw new Error(`invalid anchor "${M}"`);b.call(this,`#${M}`)}}}),f;function g(w,C,I){if(C!==void 0&&!WB(w,C))throw y(I)}function y(w){return new Error(`reference "${w}" resolves to more than one schema`)}}ot.getSchemaRefs=ZB;Object.defineProperty(Qt,"__esModule",{value:!0});Qt.getData=Qt.KeywordCxt=Qt.validateFunctionCode=void 0;const lv=Vn,$h=He,Il=Sr,pi=He,XB=Mi,Ta=ar,vu=zr,ee=ge,le=sr,QB=ot,Ar=Y,Ea=Wa;function eM(e){if(fv(e)&&(pv(e),dv(e))){nM(e);return}cv(e,()=>(0,lv.topBoolOrEmptySchema)(e))}Qt.validateFunctionCode=eM;function cv({gen:e,validateName:t,schema:n,schemaEnv:o,opts:s},l){s.code.es5?e.func(t,(0,ee._)`${le.default.data}, ${le.default.valCxt}`,o.$async,()=>{e.code((0,ee._)`"use strict"; ${bh(n,s)}`),rM(e,s),e.code(l)}):e.func(t,(0,ee._)`${le.default.data}, ${tM(s)}`,o.$async,()=>e.code(bh(n,s)).code(l))}function tM(e){return(0,ee._)`{${le.default.instancePath}="", ${le.default.parentData}, ${le.default.parentDataProperty}, ${le.default.rootData}=${le.default.data}${e.dynamicRef?(0,ee._)`, ${le.default.dynamicAnchors}={}`:ee.nil}}={}`}function rM(e,t){e.if(le.default.valCxt,()=>{e.var(le.default.instancePath,(0,ee._)`${le.default.valCxt}.${le.default.instancePath}`),e.var(le.default.parentData,(0,ee._)`${le.default.valCxt}.${le.default.parentData}`),e.var(le.default.parentDataProperty,(0,ee._)`${le.default.valCxt}.${le.default.parentDataProperty}`),e.var(le.default.rootData,(0,ee._)`${le.default.valCxt}.${le.default.rootData}`),t.dynamicRef&&e.var(le.default.dynamicAnchors,(0,ee._)`${le.default.valCxt}.${le.default.dynamicAnchors}`)},()=>{e.var(le.default.instancePath,(0,ee._)`""`),e.var(le.default.parentData,(0,ee._)`undefined`),e.var(le.default.parentDataProperty,(0,ee._)`undefined`),e.var(le.default.rootData,le.default.data),t.dynamicRef&&e.var(le.default.dynamicAnchors,(0,ee._)`{}`)})}function nM(e){const{schema:t,opts:n,gen:o}=e;cv(e,()=>{n.$comment&&t.$comment&&mv(e),uM(e),o.let(le.default.vErrors,null),o.let(le.default.errors,0),n.unevaluated&&aM(e),hv(e),dM(e)})}function aM(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,ee._)`${n}.evaluated`),t.if((0,ee._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,ee._)`${e.evaluated}.props`,(0,ee._)`undefined`)),t.if((0,ee._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,ee._)`${e.evaluated}.items`,(0,ee._)`undefined`))}function bh(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,ee._)`/*# sourceURL=${n} */`:ee.nil}function oM(e,t){if(fv(e)&&(pv(e),dv(e))){iM(e,t);return}(0,lv.boolOrEmptySchema)(e,t)}function dv({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function fv(e){return typeof e.schema!="boolean"}function iM(e,t){const{schema:n,gen:o,opts:s}=e;s.$comment&&n.$comment&&mv(e),lM(e),cM(e);const l=o.const("_errs",le.default.errors);hv(e,l),o.var(t,(0,ee._)`${l} === ${le.default.errors}`)}function pv(e){(0,Ar.checkUnknownRules)(e),sM(e)}function hv(e,t){if(e.opts.jtd)return wh(e,[],!1,t);const n=(0,$h.getSchemaTypes)(e.schema),o=(0,$h.coerceAndCheckDataType)(e,n);wh(e,n,!o,t)}function sM(e){const{schema:t,errSchemaPath:n,opts:o,self:s}=e;t.$ref&&o.ignoreKeywordsWithRef&&(0,Ar.schemaHasRulesButRef)(t,s.RULES)&&s.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function uM(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Ar.checkStrictMode)(e,"default is ignored in the schema root")}function lM(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,QB.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function cM(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function mv({gen:e,schemaEnv:t,schema:n,errSchemaPath:o,opts:s}){const l=n.$comment;if(s.$comment===!0)e.code((0,ee._)`${le.default.self}.logger.log(${l})`);else if(typeof s.$comment=="function"){const c=(0,ee.str)`${o}/$comment`,f=e.scopeValue("root",{ref:t.root});e.code((0,ee._)`${le.default.self}.opts.$comment(${l}, ${c}, ${f}.schema)`)}}function dM(e){const{gen:t,schemaEnv:n,validateName:o,ValidationError:s,opts:l}=e;n.$async?t.if((0,ee._)`${le.default.errors} === 0`,()=>t.return(le.default.data),()=>t.throw((0,ee._)`new ${s}(${le.default.vErrors})`)):(t.assign((0,ee._)`${o}.errors`,le.default.vErrors),l.unevaluated&&fM(e),t.return((0,ee._)`${le.default.errors} === 0`))}function fM({gen:e,evaluated:t,props:n,items:o}){n instanceof ee.Name&&e.assign((0,ee._)`${t}.props`,n),o instanceof ee.Name&&e.assign((0,ee._)`${t}.items`,o)}function wh(e,t,n,o){const{gen:s,schema:l,data:c,allErrors:f,opts:h,self:g}=e,{RULES:y}=g;if(l.$ref&&(h.ignoreKeywordsWithRef||!(0,Ar.schemaHasRulesButRef)(l,y))){s.block(()=>yv(e,"$ref",y.all.$ref.definition));return}h.jtd||pM(e,t),s.block(()=>{for(const C of y.rules)w(C);w(y.post)});function w(C){(0,Il.shouldUseGroup)(l,C)&&(C.type?(s.if((0,pi.checkDataType)(C.type,c,h.strictNumbers)),Eh(e,C),t.length===1&&t[0]===C.type&&n&&(s.else(),(0,pi.reportTypeError)(e)),s.endIf()):Eh(e,C),f||s.if((0,ee._)`${le.default.errors} === ${o||0}`))}}function Eh(e,t){const{gen:n,schema:o,opts:{useDefaults:s}}=e;s&&(0,XB.assignDefaults)(e,t.type),n.block(()=>{for(const l of t.rules)(0,Il.shouldUseRule)(o,l)&&yv(e,l.keyword,l.definition,t.type)})}function pM(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(hM(e,t),e.opts.allowUnionTypes||mM(e,t),gM(e,e.dataTypes))}function hM(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{gv(e.dataTypes,n)||Pl(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),yM(e,t)}}function mM(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Pl(e,"use allowUnionTypes to allow union type keyword")}function gM(e,t){const n=e.self.RULES.all;for(const o in n){const s=n[o];if(typeof s=="object"&&(0,Il.shouldUseRule)(e.schema,s)){const{type:l}=s.definition;l.length&&!l.some(c=>vM(t,c))&&Pl(e,`missing type "${l.join(",")}" for keyword "${o}"`)}}}function vM(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function gv(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function yM(e,t){const n=[];for(const o of e.dataTypes)gv(t,o)?n.push(o):t.includes("integer")&&o==="number"&&n.push("integer");e.dataTypes=n}function Pl(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,Ar.checkStrictMode)(e,t,e.opts.strictTypes)}class vv{constructor(t,n,o){if((0,Ta.validateKeywordUsage)(t,n,o),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=o,this.data=t.data,this.schema=t.schema[o],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ar.schemaRefOrVal)(t,this.schema,o,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",_v(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ta.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${o} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",le.default.errors))}result(t,n,o){this.failResult((0,ee.not)(t),n,o)}failResult(t,n,o){this.gen.if(t),o?o():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,ee.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,ee._)`${n} !== undefined && (${(0,ee.or)(this.invalid$data(),t)})`)}error(t,n,o){if(n){this.setParams(n),this._error(t,o),this.setParams({});return}this._error(t,o)}_error(t,n){(t?Ea.reportExtraError:Ea.reportError)(this,this.def.error,n)}$dataError(){(0,Ea.reportError)(this,this.def.$dataError||Ea.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ea.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,o=ee.nil){this.gen.block(()=>{this.check$data(t,o),n()})}check$data(t=ee.nil,n=ee.nil){if(!this.$data)return;const{gen:o,schemaCode:s,schemaType:l,def:c}=this;o.if((0,ee.or)((0,ee._)`${s} === undefined`,n)),t!==ee.nil&&o.assign(t,!0),(l.length||c.validateSchema)&&(o.elseIf(this.invalid$data()),this.$dataError(),t!==ee.nil&&o.assign(t,!1)),o.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:o,def:s,it:l}=this;return(0,ee.or)(c(),f());function c(){if(o.length){if(!(n instanceof ee.Name))throw new Error("ajv implementation error");const h=Array.isArray(o)?o:[o];return(0,ee._)`${(0,pi.checkDataTypes)(h,n,l.opts.strictNumbers,pi.DataType.Wrong)}`}return ee.nil}function f(){if(s.validateSchema){const h=t.scopeValue("validate$data",{ref:s.validateSchema});return(0,ee._)`!${h}(${n})`}return ee.nil}}subschema(t,n){const o=(0,vu.getSubschema)(this.it,t);(0,vu.extendSubschemaData)(o,this.it,t),(0,vu.extendSubschemaMode)(o,t);const s={...this.it,...o,items:void 0,props:void 0};return oM(s,n),s}mergeEvaluated(t,n){const{it:o,gen:s}=this;o.opts.unevaluated&&(o.props!==!0&&t.props!==void 0&&(o.props=Ar.mergeEvaluated.props(s,t.props,o.props,n)),o.items!==!0&&t.items!==void 0&&(o.items=Ar.mergeEvaluated.items(s,t.items,o.items,n)))}mergeValidEvaluated(t,n){const{it:o,gen:s}=this;if(o.opts.unevaluated&&(o.props!==!0||o.items!==!0))return s.if(n,()=>this.mergeEvaluated(t,ee.Name)),!0}}Qt.KeywordCxt=vv;function yv(e,t,n,o){const s=new vv(e,n,t);"code"in n?n.code(s,o):s.$data&&n.validate?(0,Ta.funcKeywordCode)(s,n):"macro"in n?(0,Ta.macroKeywordCode)(s,n):(n.compile||n.validate)&&(0,Ta.funcKeywordCode)(s,n)}const _M=/^\/(?:[^~]|~0|~1)*$/,$M=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function _v(e,{dataLevel:t,dataNames:n,dataPathArr:o}){let s,l;if(e==="")return le.default.rootData;if(e[0]==="/"){if(!_M.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);s=e,l=le.default.rootData}else{const g=$M.exec(e);if(!g)throw new Error(`Invalid JSON-pointer: ${e}`);const y=+g[1];if(s=g[2],s==="#"){if(y>=t)throw new Error(h("property/index",y));return o[t-y]}if(y>t)throw new Error(h("data",y));if(l=n[t-y],!s)return l}let c=l;const f=s.split("/");for(const g of f)g&&(l=(0,ee._)`${l}${(0,ee.getProperty)((0,Ar.unescapeJsonPointer)(g))}`,c=(0,ee._)`${c} && ${l}`);return c;function h(g,y){return`Cannot access ${g} ${y} levels up, current level is ${t}`}}Qt.getData=_v;var za={};Object.defineProperty(za,"__esModule",{value:!0});class bM extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}za.default=bM;var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});const yu=ot;class wM extends Error{constructor(t,n,o,s){super(s||`can't resolve reference ${o} from id ${n}`),this.missingRef=(0,yu.resolveUrl)(t,n,o),this.missingSchema=(0,yu.normalizeId)((0,yu.getFullPath)(t,this.missingRef))}}Xn.default=wM;var Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et.resolveSchema=Et.getCompilingSchema=Et.resolveRef=Et.compileSchema=Et.SchemaEnv=void 0;const Jt=ge,EM=za,on=sr,Xt=ot,Sh=Y,SM=Qt;class Fi{constructor(t){var n;this.refs={},this.dynamicAnchors={};let o;typeof t.schema=="object"&&(o=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,Xt.normalizeId)(o==null?void 0:o[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=o==null?void 0:o.$async,this.refs={}}}Et.SchemaEnv=Fi;function Rl(e){const t=$v.call(this,e);if(t)return t;const n=(0,Xt.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:o,lines:s}=this.opts.code,{ownProperties:l}=this.opts,c=new Jt.CodeGen(this.scope,{es5:o,lines:s,ownProperties:l});let f;e.$async&&(f=c.scopeValue("Error",{ref:EM.default,code:(0,Jt._)`require("ajv/dist/runtime/validation_error").default`}));const h=c.scopeName("validate");e.validateName=h;const g={gen:c,allErrors:this.opts.allErrors,data:on.default.data,parentData:on.default.parentData,parentDataProperty:on.default.parentDataProperty,dataNames:[on.default.data],dataPathArr:[Jt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:c.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Jt.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Jt.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Jt._)`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e),(0,SM.validateFunctionCode)(g),c.optimize(this.opts.code.optimize);const w=c.toString();y=`${c.scopeRefs(on.default.scope)}return ${w}`,this.opts.code.process&&(y=this.opts.code.process(y,e));const I=new Function(`${on.default.self}`,`${on.default.scope}`,y)(this,this.scope.get());if(this.scope.value(h,{ref:I}),I.errors=null,I.schema=e.schema,I.schemaEnv=e,e.$async&&(I.$async=!0),this.opts.code.source===!0&&(I.source={validateName:h,validateCode:w,scopeValues:c._values}),this.opts.unevaluated){const{props:O,items:N}=g;I.evaluated={props:O instanceof Jt.Name?void 0:O,items:N instanceof Jt.Name?void 0:N,dynamicProps:O instanceof Jt.Name,dynamicItems:N instanceof Jt.Name},I.source&&(I.source.evaluated=(0,Jt.stringify)(I.evaluated))}return e.validate=I,e}catch(w){throw delete e.validate,delete e.validateName,y&&this.logger.error("Error compiling schema, function code:",y),w}finally{this._compilations.delete(e)}}Et.compileSchema=Rl;function AM(e,t,n){var o;n=(0,Xt.resolveUrl)(this.opts.uriResolver,t,n);const s=e.refs[n];if(s)return s;let l=TM.call(this,e,n);if(l===void 0){const c=(o=e.localRefs)===null||o===void 0?void 0:o[n],{schemaId:f}=this.opts;c&&(l=new Fi({schema:c,schemaId:f,root:e,baseId:t}))}if(l!==void 0)return e.refs[n]=CM.call(this,l)}Et.resolveRef=AM;function CM(e){return(0,Xt.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Rl.call(this,e)}function $v(e){for(const t of this._compilations)if(OM(t,e))return t}Et.getCompilingSchema=$v;function OM(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function TM(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||ji.call(this,e,t)}function ji(e,t){const n=this.opts.uriResolver.parse(t),o=(0,Xt._getFullPath)(this.opts.uriResolver,n);let s=(0,Xt.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&o===s)return _u.call(this,n,e);const l=(0,Xt.normalizeId)(o),c=this.refs[l]||this.schemas[l];if(typeof c=="string"){const f=ji.call(this,e,c);return typeof(f==null?void 0:f.schema)!="object"?void 0:_u.call(this,n,f)}if(typeof(c==null?void 0:c.schema)=="object"){if(c.validate||Rl.call(this,c),l===(0,Xt.normalizeId)(t)){const{schema:f}=c,{schemaId:h}=this.opts,g=f[h];return g&&(s=(0,Xt.resolveUrl)(this.opts.uriResolver,s,g)),new Fi({schema:f,schemaId:h,root:e,baseId:s})}return _u.call(this,n,c)}}Et.resolveSchema=ji;const IM=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function _u(e,{baseId:t,schema:n,root:o}){var s;if(((s=e.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(const f of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const h=n[(0,Sh.unescapeFragment)(f)];if(h===void 0)return;n=h;const g=typeof n=="object"&&n[this.opts.schemaId];!IM.has(f)&&g&&(t=(0,Xt.resolveUrl)(this.opts.uriResolver,t,g))}let l;if(typeof n!="boolean"&&n.$ref&&!(0,Sh.schemaHasRulesButRef)(n,this.RULES)){const f=(0,Xt.resolveUrl)(this.opts.uriResolver,t,n.$ref);l=ji.call(this,o,f)}const{schemaId:c}=this.opts;if(l=l||new Fi({schema:n,schemaId:c,root:o,baseId:t}),l.schema!==l.root.schema)return l}const PM="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",RM="Meta-schema for $data reference (JSON AnySchema extension proposal)",kM="object",NM=["$data"],DM={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},LM=!1,BM={$id:PM,description:RM,type:kM,required:NM,properties:DM,additionalProperties:LM};var kl={},xi={exports:{}};const MM={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};var FM={HEX:MM};const{HEX:jM}=FM;function bv(e){if(Ev(e,".")<3)return{host:e,isIPV4:!1};const t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[n]=t;return n?{host:VM(n,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function Ku(e,t=!1){let n="",o=!0;for(const s of e){if(jM[s]===void 0)return;s!=="0"&&o===!0&&(o=!1),o||(n+=s)}return t&&n.length===0&&(n="0"),n}function xM(e){let t=0;const n={error:!1,address:"",zone:""},o=[],s=[];let l=!1,c=!1,f=!1;function h(){if(s.length){if(l===!1){const g=Ku(s);if(g!==void 0)o.push(g);else return n.error=!0,!1}s.length=0}return!0}for(let g=0;g<e.length;g++){const y=e[g];if(!(y==="["||y==="]"))if(y===":"){if(c===!0&&(f=!0),!h())break;if(t++,o.push(":"),t>7){n.error=!0;break}g-1>=0&&e[g-1]===":"&&(c=!0);continue}else if(y==="%"){if(!h())break;l=!0}else{s.push(y);continue}}return s.length&&(l?n.zone=s.join(""):f?o.push(s.join("")):o.push(Ku(s))),n.address=o.join(""),n}function wv(e,t={}){if(Ev(e,":")<2)return{host:e,isIPV6:!1};const n=xM(e);if(n.error)return{host:e,isIPV6:!1};{let o=n.address,s=n.address;return n.zone&&(o+="%"+n.zone,s+="%25"+n.zone),{host:o,escapedHost:s,isIPV6:!0}}}function VM(e,t){let n="",o=!0;const s=e.length;for(let l=0;l<s;l++){const c=e[l];c==="0"&&o?(l+1<=s&&e[l+1]===t||l+1===s)&&(n+=c,o=!1):(c===t?o=!0:o=!1,n+=c)}return n}function Ev(e,t){let n=0;for(let o=0;o<e.length;o++)e[o]===t&&n++;return n}const Ah=/^\.\.?\//u,Ch=/^\/\.(?:\/|$)/u,Oh=/^\/\.\.(?:\/|$)/u,UM=/^\/?(?:.|\n)*?(?=\/|$)/u;function WM(e){const t=[];for(;e.length;)if(e.match(Ah))e=e.replace(Ah,"");else if(e.match(Ch))e=e.replace(Ch,"/");else if(e.match(Oh))e=e.replace(Oh,"/"),t.pop();else if(e==="."||e==="..")e="";else{const n=e.match(UM);if(n){const o=n[0];e=e.slice(o.length),t.push(o)}else throw new Error("Unexpected dot segment condition")}return t.join("")}function zM(e,t){const n=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=n(e.scheme)),e.userinfo!==void 0&&(e.userinfo=n(e.userinfo)),e.host!==void 0&&(e.host=n(e.host)),e.path!==void 0&&(e.path=n(e.path)),e.query!==void 0&&(e.query=n(e.query)),e.fragment!==void 0&&(e.fragment=n(e.fragment)),e}function qM(e,t){const n=[];if(e.userinfo!==void 0&&(n.push(e.userinfo),n.push("@")),e.host!==void 0){let o=unescape(e.host);const s=bv(o);if(s.isIPV4)o=s.host;else{const l=wv(s.host,{isIPV4:!1});l.isIPV6===!0?o=`[${l.escapedHost}]`:o=e.host}n.push(o)}return(typeof e.port=="number"||typeof e.port=="string")&&(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var GM={recomposeAuthority:qM,normalizeComponentEncoding:zM,removeDotSegments:WM,normalizeIPv4:bv,normalizeIPv6:wv,stringArrayToHexStripped:Ku};const HM=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,KM=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Sv(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function Av(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function Cv(e){const t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function JM(e){return e.secure=Sv(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function YM(e){if((e.port===(Sv(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,n]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}function ZM(e,t){if(!e.path)return e.error="URN can not be parsed",e;const n=e.path.match(KM);if(n){const o=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const s=`${o}:${t.nid||e.nid}`,l=Nl[s];e.path=void 0,l&&(e=l.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function XM(e,t){const n=t.scheme||e.scheme||"urn",o=e.nid.toLowerCase(),s=`${n}:${t.nid||o}`,l=Nl[s];l&&(e=l.serialize(e,t));const c=e,f=e.nss;return c.path=`${o||t.nid}:${f}`,t.skipEscape=!0,c}function QM(e,t){const n=e;return n.uuid=n.nss,n.nss=void 0,!t.tolerant&&(!n.uuid||!HM.test(n.uuid))&&(n.error=n.error||"UUID is not valid."),n}function e5(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t}const Ov={scheme:"http",domainHost:!0,parse:Av,serialize:Cv},t5={scheme:"https",domainHost:Ov.domainHost,parse:Av,serialize:Cv},ei={scheme:"ws",domainHost:!0,parse:JM,serialize:YM},r5={scheme:"wss",domainHost:ei.domainHost,parse:ei.parse,serialize:ei.serialize},n5={scheme:"urn",parse:ZM,serialize:XM,skipNormalize:!0},a5={scheme:"urn:uuid",parse:QM,serialize:e5,skipNormalize:!0},Nl={http:Ov,https:t5,ws:ei,wss:r5,urn:n5,"urn:uuid":a5};var o5=Nl;const{normalizeIPv6:i5,normalizeIPv4:s5,removeDotSegments:Ca,recomposeAuthority:u5,normalizeComponentEncoding:zo}=GM,Dl=o5;function l5(e,t){return typeof e=="string"?e=or(Cr(e,t),t):typeof e=="object"&&(e=Cr(or(e,t),t)),e}function c5(e,t,n){const o=Object.assign({scheme:"null"},n),s=Tv(Cr(e,o),Cr(t,o),o,!0);return or(s,{...o,skipEscape:!0})}function Tv(e,t,n,o){const s={};return o||(e=Cr(or(e,n),n),t=Cr(or(t,n),n)),n=n||{},!n.tolerant&&t.scheme?(s.scheme=t.scheme,s.userinfo=t.userinfo,s.host=t.host,s.port=t.port,s.path=Ca(t.path||""),s.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(s.userinfo=t.userinfo,s.host=t.host,s.port=t.port,s.path=Ca(t.path||""),s.query=t.query):(t.path?(t.path.charAt(0)==="/"?s.path=Ca(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?s.path="/"+t.path:e.path?s.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:s.path=t.path,s.path=Ca(s.path)),s.query=t.query):(s.path=e.path,t.query!==void 0?s.query=t.query:s.query=e.query),s.userinfo=e.userinfo,s.host=e.host,s.port=e.port),s.scheme=e.scheme),s.fragment=t.fragment,s}function d5(e,t,n){return typeof e=="string"?(e=unescape(e),e=or(zo(Cr(e,n),!0),{...n,skipEscape:!0})):typeof e=="object"&&(e=or(zo(e,!0),{...n,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=or(zo(Cr(t,n),!0),{...n,skipEscape:!0})):typeof t=="object"&&(t=or(zo(t,!0),{...n,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function or(e,t){const n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},o=Object.assign({},t),s=[],l=Dl[(o.scheme||n.scheme||"").toLowerCase()];l&&l.serialize&&l.serialize(n,o),n.path!==void 0&&(o.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),n.scheme!==void 0&&(n.path=n.path.split("%3A").join(":")))),o.reference!=="suffix"&&n.scheme&&s.push(n.scheme,":");const c=u5(n,o);if(c!==void 0&&(o.reference!=="suffix"&&s.push("//"),s.push(c),n.path&&n.path.charAt(0)!=="/"&&s.push("/")),n.path!==void 0){let f=n.path;!o.absolutePath&&(!l||!l.absolutePath)&&(f=Ca(f)),c===void 0&&(f=f.replace(/^\/\//u,"/%2F")),s.push(f)}return n.query!==void 0&&s.push("?",n.query),n.fragment!==void 0&&s.push("#",n.fragment),s.join("")}const f5=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function p5(e){let t=0;for(let n=0,o=e.length;n<o;++n)if(t=e.charCodeAt(n),t>126||f5[t])return!0;return!1}const h5=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Cr(e,t){const n=Object.assign({},t),o={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},s=e.indexOf("%")!==-1;let l=!1;n.reference==="suffix"&&(e=(n.scheme?n.scheme+":":"")+"//"+e);const c=e.match(h5);if(c){if(o.scheme=c[1],o.userinfo=c[3],o.host=c[4],o.port=parseInt(c[5],10),o.path=c[6]||"",o.query=c[7],o.fragment=c[8],isNaN(o.port)&&(o.port=c[5]),o.host){const h=s5(o.host);if(h.isIPV4===!1){const g=i5(h.host,{isIPV4:!1});o.host=g.host.toLowerCase(),l=g.isIPV6}else o.host=h.host,l=!0}o.scheme===void 0&&o.userinfo===void 0&&o.host===void 0&&o.port===void 0&&!o.path&&o.query===void 0?o.reference="same-document":o.scheme===void 0?o.reference="relative":o.fragment===void 0?o.reference="absolute":o.reference="uri",n.reference&&n.reference!=="suffix"&&n.reference!==o.reference&&(o.error=o.error||"URI is not a "+n.reference+" reference.");const f=Dl[(n.scheme||o.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!f||!f.unicodeSupport)&&o.host&&(n.domainHost||f&&f.domainHost)&&l===!1&&p5(o.host))try{o.host=URL.domainToASCII(o.host.toLowerCase())}catch(h){o.error=o.error||"Host's domain name can not be converted to ASCII: "+h}(!f||f&&!f.skipNormalize)&&(s&&o.scheme!==void 0&&(o.scheme=unescape(o.scheme)),s&&o.host!==void 0&&(o.host=unescape(o.host)),o.path!==void 0&&o.path.length&&(o.path=escape(unescape(o.path))),o.fragment!==void 0&&o.fragment.length&&(o.fragment=encodeURI(decodeURIComponent(o.fragment)))),f&&f.parse&&f.parse(o,n)}else o.error=o.error||"URI can not be parsed.";return o}const Ll={SCHEMES:Dl,normalize:l5,resolve:c5,resolveComponents:Tv,equal:d5,serialize:or,parse:Cr};xi.exports=Ll;xi.exports.default=Ll;xi.exports.fastUri=Ll;var m5=xi.exports;Object.defineProperty(kl,"__esModule",{value:!0});const Iv=m5;Iv.code='require("ajv/dist/runtime/uri").default';kl.default=Iv;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Qt;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=ge;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const o=za,s=Xn,l=fn,c=Et,f=ge,h=ot,g=He,y=Y,w=BM,C=kl,I=(H,D)=>new RegExp(H,D);I.code="new RegExp";const O=["removeAdditional","useDefaults","coerceTypes"],N=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),A={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},R=200;function M(H){var D,q,L,_,$,T,j,W,J,ie,we,Be,et,Ye,zt,na,Ct,vn,aa,ur,pt,lr,Pr,oa,cr;const Jr=H.strict,dr=(D=H.code)===null||D===void 0?void 0:D.optimize,fr=dr===!0||dr===void 0?1:dr||0,yn=(L=(q=H.code)===null||q===void 0?void 0:q.regExp)!==null&&L!==void 0?L:I,ia=(_=H.uriResolver)!==null&&_!==void 0?_:C.default;return{strictSchema:(T=($=H.strictSchema)!==null&&$!==void 0?$:Jr)!==null&&T!==void 0?T:!0,strictNumbers:(W=(j=H.strictNumbers)!==null&&j!==void 0?j:Jr)!==null&&W!==void 0?W:!0,strictTypes:(ie=(J=H.strictTypes)!==null&&J!==void 0?J:Jr)!==null&&ie!==void 0?ie:"log",strictTuples:(Be=(we=H.strictTuples)!==null&&we!==void 0?we:Jr)!==null&&Be!==void 0?Be:"log",strictRequired:(Ye=(et=H.strictRequired)!==null&&et!==void 0?et:Jr)!==null&&Ye!==void 0?Ye:!1,code:H.code?{...H.code,optimize:fr,regExp:yn}:{optimize:fr,regExp:yn},loopRequired:(zt=H.loopRequired)!==null&&zt!==void 0?zt:R,loopEnum:(na=H.loopEnum)!==null&&na!==void 0?na:R,meta:(Ct=H.meta)!==null&&Ct!==void 0?Ct:!0,messages:(vn=H.messages)!==null&&vn!==void 0?vn:!0,inlineRefs:(aa=H.inlineRefs)!==null&&aa!==void 0?aa:!0,schemaId:(ur=H.schemaId)!==null&&ur!==void 0?ur:"$id",addUsedSchema:(pt=H.addUsedSchema)!==null&&pt!==void 0?pt:!0,validateSchema:(lr=H.validateSchema)!==null&&lr!==void 0?lr:!0,validateFormats:(Pr=H.validateFormats)!==null&&Pr!==void 0?Pr:!0,unicodeRegExp:(oa=H.unicodeRegExp)!==null&&oa!==void 0?oa:!0,int32range:(cr=H.int32range)!==null&&cr!==void 0?cr:!0,uriResolver:ia}}class U{constructor(D={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,D=this.opts={...D,...M(D)};const{es5:q,lines:L}=this.opts.code;this.scope=new f.ValueScope({scope:{},prefixes:N,es5:q,lines:L}),this.logger=Ee(D.logger);const _=D.validateFormats;D.validateFormats=!1,this.RULES=(0,l.getRules)(),G.call(this,A,D,"NOT SUPPORTED"),G.call(this,b,D,"DEPRECATED","warn"),this._metaOpts=ue.call(this),D.formats&&he.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),D.keywords&&te.call(this,D.keywords),typeof D.meta=="object"&&this.addMetaSchema(D.meta),X.call(this),D.validateFormats=_}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:D,meta:q,schemaId:L}=this.opts;let _=w;L==="id"&&(_={...w},_.id=_.$id,delete _.$id),q&&D&&this.addMetaSchema(_,_[L],!1)}defaultMeta(){const{meta:D,schemaId:q}=this.opts;return this.opts.defaultMeta=typeof D=="object"?D[q]||D:void 0}validate(D,q){let L;if(typeof D=="string"){if(L=this.getSchema(D),!L)throw new Error(`no schema with key or ref "${D}"`)}else L=this.compile(D);const _=L(q);return"$async"in L||(this.errors=L.errors),_}compile(D,q){const L=this._addSchema(D,q);return L.validate||this._compileSchemaEnv(L)}compileAsync(D,q){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:L}=this.opts;return _.call(this,D,q);async function _(ie,we){await $.call(this,ie.$schema);const Be=this._addSchema(ie,we);return Be.validate||T.call(this,Be)}async function $(ie){ie&&!this.getSchema(ie)&&await _.call(this,{$ref:ie},!0)}async function T(ie){try{return this._compileSchemaEnv(ie)}catch(we){if(!(we instanceof s.default))throw we;return j.call(this,we),await W.call(this,we.missingSchema),T.call(this,ie)}}function j({missingSchema:ie,missingRef:we}){if(this.refs[ie])throw new Error(`AnySchema ${ie} is loaded but ${we} cannot be resolved`)}async function W(ie){const we=await J.call(this,ie);this.refs[ie]||await $.call(this,we.$schema),this.refs[ie]||this.addSchema(we,ie,q)}async function J(ie){const we=this._loading[ie];if(we)return we;try{return await(this._loading[ie]=L(ie))}finally{delete this._loading[ie]}}}addSchema(D,q,L,_=this.opts.validateSchema){if(Array.isArray(D)){for(const T of D)this.addSchema(T,void 0,L,_);return this}let $;if(typeof D=="object"){const{schemaId:T}=this.opts;if($=D[T],$!==void 0&&typeof $!="string")throw new Error(`schema ${T} must be string`)}return q=(0,h.normalizeId)(q||$),this._checkUnique(q),this.schemas[q]=this._addSchema(D,L,q,_,!0),this}addMetaSchema(D,q,L=this.opts.validateSchema){return this.addSchema(D,q,!0,L),this}validateSchema(D,q){if(typeof D=="boolean")return!0;let L;if(L=D.$schema,L!==void 0&&typeof L!="string")throw new Error("$schema must be a string");if(L=L||this.opts.defaultMeta||this.defaultMeta(),!L)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const _=this.validate(L,D);if(!_&&q){const $="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error($);else throw new Error($)}return _}getSchema(D){let q;for(;typeof(q=se.call(this,D))=="string";)D=q;if(q===void 0){const{schemaId:L}=this.opts,_=new c.SchemaEnv({schema:{},schemaId:L});if(q=c.resolveSchema.call(this,_,D),!q)return;this.refs[D]=q}return q.validate||this._compileSchemaEnv(q)}removeSchema(D){if(D instanceof RegExp)return this._removeAllSchemas(this.schemas,D),this._removeAllSchemas(this.refs,D),this;switch(typeof D){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const q=se.call(this,D);return typeof q=="object"&&this._cache.delete(q.schema),delete this.schemas[D],delete this.refs[D],this}case"object":{const q=D;this._cache.delete(q);let L=D[this.opts.schemaId];return L&&(L=(0,h.normalizeId)(L),delete this.schemas[L],delete this.refs[L]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(D){for(const q of D)this.addKeyword(q);return this}addKeyword(D,q){let L;if(typeof D=="string")L=D,typeof q=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),q.keyword=L);else if(typeof D=="object"&&q===void 0){if(q=D,L=q.keyword,Array.isArray(L)&&!L.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(We.call(this,L,q),!q)return(0,y.eachItem)(L,$=>dt.call(this,$)),this;At.call(this,q);const _={...q,type:(0,g.getJSONTypes)(q.type),schemaType:(0,g.getJSONTypes)(q.schemaType)};return(0,y.eachItem)(L,_.type.length===0?$=>dt.call(this,$,_):$=>_.type.forEach(T=>dt.call(this,$,_,T))),this}getKeyword(D){const q=this.RULES.all[D];return typeof q=="object"?q.definition:!!q}removeKeyword(D){const{RULES:q}=this;delete q.keywords[D],delete q.all[D];for(const L of q.rules){const _=L.rules.findIndex($=>$.keyword===D);_>=0&&L.rules.splice(_,1)}return this}addFormat(D,q){return typeof q=="string"&&(q=new RegExp(q)),this.formats[D]=q,this}errorsText(D=this.errors,{separator:q=", ",dataVar:L="data"}={}){return!D||D.length===0?"No errors":D.map(_=>`${L}${_.instancePath} ${_.message}`).reduce((_,$)=>_+q+$)}$dataMetaSchema(D,q){const L=this.RULES.all;D=JSON.parse(JSON.stringify(D));for(const _ of q){const $=_.split("/").slice(1);let T=D;for(const j of $)T=T[j];for(const j in L){const W=L[j];if(typeof W!="object")continue;const{$data:J}=W.definition,ie=T[j];J&&ie&&(T[j]=Ir(ie))}}return D}_removeAllSchemas(D,q){for(const L in D){const _=D[L];(!q||q.test(L))&&(typeof _=="string"?delete D[L]:_&&!_.meta&&(this._cache.delete(_.schema),delete D[L]))}}_addSchema(D,q,L,_=this.opts.validateSchema,$=this.opts.addUsedSchema){let T;const{schemaId:j}=this.opts;if(typeof D=="object")T=D[j];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof D!="boolean")throw new Error("schema must be object or boolean")}let W=this._cache.get(D);if(W!==void 0)return W;L=(0,h.normalizeId)(T||L);const J=h.getSchemaRefs.call(this,D,L);return W=new c.SchemaEnv({schema:D,schemaId:j,meta:q,baseId:L,localRefs:J}),this._cache.set(W.schema,W),$&&!L.startsWith("#")&&(L&&this._checkUnique(L),this.refs[L]=W),_&&this.validateSchema(D,!0),W}_checkUnique(D){if(this.schemas[D]||this.refs[D])throw new Error(`schema with key or id "${D}" already exists`)}_compileSchemaEnv(D){if(D.meta?this._compileMetaSchema(D):c.compileSchema.call(this,D),!D.validate)throw new Error("ajv implementation error");return D.validate}_compileMetaSchema(D){const q=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,D)}finally{this.opts=q}}}U.ValidationError=o.default,U.MissingRefError=s.default,e.default=U;function G(H,D,q,L="error"){for(const _ in H){const $=_;$ in D&&this.logger[L](`${q}: option ${_}. ${H[$]}`)}}function se(H){return H=(0,h.normalizeId)(H),this.schemas[H]||this.refs[H]}function X(){const H=this.opts.schemas;if(H)if(Array.isArray(H))this.addSchema(H);else for(const D in H)this.addSchema(H[D],D)}function he(){for(const H in this.opts.formats){const D=this.opts.formats[H];D&&this.addFormat(H,D)}}function te(H){if(Array.isArray(H)){this.addVocabulary(H);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const D in H){const q=H[D];q.keyword||(q.keyword=D),this.addKeyword(q)}}function ue(){const H={...this.opts};for(const D of O)delete H[D];return H}const Te={log(){},warn(){},error(){}};function Ee(H){if(H===!1)return Te;if(H===void 0)return console;if(H.log&&H.warn&&H.error)return H;throw new Error("logger must implement log, warn and error methods")}const Je=/^[a-z_$][a-z0-9_$:-]*$/i;function We(H,D){const{RULES:q}=this;if((0,y.eachItem)(H,L=>{if(q.keywords[L])throw new Error(`Keyword ${L} is already defined`);if(!Je.test(L))throw new Error(`Keyword ${L} has invalid name`)}),!!D&&D.$data&&!("code"in D||"validate"in D))throw new Error('$data keyword must have "code" or "validate" function')}function dt(H,D,q){var L;const _=D==null?void 0:D.post;if(q&&_)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:$}=this;let T=_?$.post:$.rules.find(({type:W})=>W===q);if(T||(T={type:q,rules:[]},$.rules.push(T)),$.keywords[H]=!0,!D)return;const j={keyword:H,definition:{...D,type:(0,g.getJSONTypes)(D.type),schemaType:(0,g.getJSONTypes)(D.schemaType)}};D.before?Tr.call(this,T,j,D.before):T.rules.push(j),$.all[H]=j,(L=D.implements)===null||L===void 0||L.forEach(W=>this.addKeyword(W))}function Tr(H,D,q){const L=H.rules.findIndex(_=>_.keyword===q);L>=0?H.rules.splice(L,0,D):(H.rules.push(D),this.logger.warn(`rule ${q} is not defined`))}function At(H){let{metaSchema:D}=H;D!==void 0&&(H.$data&&this.opts.$data&&(D=Ir(D)),H.validateSchema=this.compile(D,!0))}const ft={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Ir(H){return{anyOf:[H,ft]}}})(Ug);var Bl={},Ml={},Fl={};Object.defineProperty(Fl,"__esModule",{value:!0});const g5={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Fl.default=g5;var pn={};Object.defineProperty(pn,"__esModule",{value:!0});pn.callRef=pn.getValidate=void 0;const v5=Xn,Th=ye,wt=ge,Dn=sr,Ih=Et,qo=Y,y5={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:o}=e,{baseId:s,schemaEnv:l,validateName:c,opts:f,self:h}=o,{root:g}=l;if((n==="#"||n==="#/")&&s===g.baseId)return w();const y=Ih.resolveRef.call(h,g,s,n);if(y===void 0)throw new v5.default(o.opts.uriResolver,s,n);if(y instanceof Ih.SchemaEnv)return C(y);return I(y);function w(){if(l===g)return ti(e,c,l,l.$async);const O=t.scopeValue("root",{ref:g});return ti(e,(0,wt._)`${O}.validate`,g,g.$async)}function C(O){const N=Pv(e,O);ti(e,N,O,O.$async)}function I(O){const N=t.scopeValue("schema",f.code.source===!0?{ref:O,code:(0,wt.stringify)(O)}:{ref:O}),A=t.name("valid"),b=e.subschema({schema:O,dataTypes:[],schemaPath:wt.nil,topSchemaRef:N,errSchemaPath:n},A);e.mergeEvaluated(b),e.ok(A)}}};function Pv(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,wt._)`${n.scopeValue("wrapper",{ref:t})}.validate`}pn.getValidate=Pv;function ti(e,t,n,o){const{gen:s,it:l}=e,{allErrors:c,schemaEnv:f,opts:h}=l,g=h.passContext?Dn.default.this:wt.nil;o?y():w();function y(){if(!f.$async)throw new Error("async schema referenced by sync schema");const O=s.let("valid");s.try(()=>{s.code((0,wt._)`await ${(0,Th.callValidateCode)(e,t,g)}`),I(t),c||s.assign(O,!0)},N=>{s.if((0,wt._)`!(${N} instanceof ${l.ValidationError})`,()=>s.throw(N)),C(N),c||s.assign(O,!1)}),e.ok(O)}function w(){e.result((0,Th.callValidateCode)(e,t,g),()=>I(t),()=>C(t))}function C(O){const N=(0,wt._)`${O}.errors`;s.assign(Dn.default.vErrors,(0,wt._)`${Dn.default.vErrors} === null ? ${N} : ${Dn.default.vErrors}.concat(${N})`),s.assign(Dn.default.errors,(0,wt._)`${Dn.default.vErrors}.length`)}function I(O){var N;if(!l.opts.unevaluated)return;const A=(N=n==null?void 0:n.validate)===null||N===void 0?void 0:N.evaluated;if(l.props!==!0)if(A&&!A.dynamicProps)A.props!==void 0&&(l.props=qo.mergeEvaluated.props(s,A.props,l.props));else{const b=s.var("props",(0,wt._)`${O}.evaluated.props`);l.props=qo.mergeEvaluated.props(s,b,l.props,wt.Name)}if(l.items!==!0)if(A&&!A.dynamicItems)A.items!==void 0&&(l.items=qo.mergeEvaluated.items(s,A.items,l.items));else{const b=s.var("items",(0,wt._)`${O}.evaluated.items`);l.items=qo.mergeEvaluated.items(s,b,l.items,wt.Name)}}}pn.callRef=ti;pn.default=y5;Object.defineProperty(Ml,"__esModule",{value:!0});const _5=Fl,$5=pn,b5=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",_5.default,$5.default];Ml.default=b5;var jl={},xl={};Object.defineProperty(xl,"__esModule",{value:!0});const hi=ge,Vr=hi.operators,mi={maximum:{okStr:"<=",ok:Vr.LTE,fail:Vr.GT},minimum:{okStr:">=",ok:Vr.GTE,fail:Vr.LT},exclusiveMaximum:{okStr:"<",ok:Vr.LT,fail:Vr.GTE},exclusiveMinimum:{okStr:">",ok:Vr.GT,fail:Vr.LTE}},w5={message:({keyword:e,schemaCode:t})=>(0,hi.str)`must be ${mi[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,hi._)`{comparison: ${mi[e].okStr}, limit: ${t}}`},E5={keyword:Object.keys(mi),type:"number",schemaType:"number",$data:!0,error:w5,code(e){const{keyword:t,data:n,schemaCode:o}=e;e.fail$data((0,hi._)`${n} ${mi[t].fail} ${o} || isNaN(${n})`)}};xl.default=E5;var Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});const Ia=ge,S5={message:({schemaCode:e})=>(0,Ia.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Ia._)`{multipleOf: ${e}}`},A5={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:S5,code(e){const{gen:t,data:n,schemaCode:o,it:s}=e,l=s.opts.multipleOfPrecision,c=t.let("res"),f=l?(0,Ia._)`Math.abs(Math.round(${c}) - ${c}) > 1e-${l}`:(0,Ia._)`${c} !== parseInt(${c})`;e.fail$data((0,Ia._)`(${o} === 0 || (${c} = ${n}/${o}, ${f}))`)}};Vl.default=A5;var Ul={},Wl={};Object.defineProperty(Wl,"__esModule",{value:!0});function Rv(e){const t=e.length;let n=0,o=0,s;for(;o<t;)n++,s=e.charCodeAt(o++),s>=55296&&s<=56319&&o<t&&(s=e.charCodeAt(o),(s&64512)===56320&&o++);return n}Wl.default=Rv;Rv.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(Ul,"__esModule",{value:!0});const ln=ge,C5=Y,O5=Wl,T5={message({keyword:e,schemaCode:t}){const n=e==="maxLength"?"more":"fewer";return(0,ln.str)`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>(0,ln._)`{limit: ${e}}`},I5={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:T5,code(e){const{keyword:t,data:n,schemaCode:o,it:s}=e,l=t==="maxLength"?ln.operators.GT:ln.operators.LT,c=s.opts.unicode===!1?(0,ln._)`${n}.length`:(0,ln._)`${(0,C5.useFunc)(e.gen,O5.default)}(${n})`;e.fail$data((0,ln._)`${c} ${l} ${o}`)}};Ul.default=I5;var zl={};Object.defineProperty(zl,"__esModule",{value:!0});const P5=ye,gi=ge,R5={message:({schemaCode:e})=>(0,gi.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,gi._)`{pattern: ${e}}`},k5={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:R5,code(e){const{data:t,$data:n,schema:o,schemaCode:s,it:l}=e,c=l.opts.unicodeRegExp?"u":"",f=n?(0,gi._)`(new RegExp(${s}, ${c}))`:(0,P5.usePattern)(e,o);e.fail$data((0,gi._)`!${f}.test(${t})`)}};zl.default=k5;var ql={};Object.defineProperty(ql,"__esModule",{value:!0});const Pa=ge,N5={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,Pa.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,Pa._)`{limit: ${e}}`},D5={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:N5,code(e){const{keyword:t,data:n,schemaCode:o}=e,s=t==="maxProperties"?Pa.operators.GT:Pa.operators.LT;e.fail$data((0,Pa._)`Object.keys(${n}).length ${s} ${o}`)}};ql.default=D5;var Gl={};Object.defineProperty(Gl,"__esModule",{value:!0});const Sa=ye,Ra=ge,L5=Y,B5={message:({params:{missingProperty:e}})=>(0,Ra.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Ra._)`{missingProperty: ${e}}`},M5={keyword:"required",type:"object",schemaType:"array",$data:!0,error:B5,code(e){const{gen:t,schema:n,schemaCode:o,data:s,$data:l,it:c}=e,{opts:f}=c;if(!l&&n.length===0)return;const h=n.length>=f.loopRequired;if(c.allErrors?g():y(),f.strictRequired){const I=e.parentSchema.properties,{definedProperties:O}=e.it;for(const N of n)if((I==null?void 0:I[N])===void 0&&!O.has(N)){const A=c.schemaEnv.baseId+c.errSchemaPath,b=`required property "${N}" is not defined at "${A}" (strictRequired)`;(0,L5.checkStrictMode)(c,b,c.opts.strictRequired)}}function g(){if(h||l)e.block$data(Ra.nil,w);else for(const I of n)(0,Sa.checkReportMissingProp)(e,I)}function y(){const I=t.let("missing");if(h||l){const O=t.let("valid",!0);e.block$data(O,()=>C(I,O)),e.ok(O)}else t.if((0,Sa.checkMissingProp)(e,n,I)),(0,Sa.reportMissingProp)(e,I),t.else()}function w(){t.forOf("prop",o,I=>{e.setParams({missingProperty:I}),t.if((0,Sa.noPropertyInData)(t,s,I,f.ownProperties),()=>e.error())})}function C(I,O){e.setParams({missingProperty:I}),t.forOf(I,o,()=>{t.assign(O,(0,Sa.propertyInData)(t,s,I,f.ownProperties)),t.if((0,Ra.not)(O),()=>{e.error(),t.break()})},Ra.nil)}}};Gl.default=M5;var Hl={};Object.defineProperty(Hl,"__esModule",{value:!0});const ka=ge,F5={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,ka.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,ka._)`{limit: ${e}}`},j5={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:F5,code(e){const{keyword:t,data:n,schemaCode:o}=e,s=t==="maxItems"?ka.operators.GT:ka.operators.LT;e.fail$data((0,ka._)`${n}.length ${s} ${o}`)}};Hl.default=j5;var Kl={},qa={};Object.defineProperty(qa,"__esModule",{value:!0});const kv=av;kv.code='require("ajv/dist/runtime/equal").default';qa.default=kv;Object.defineProperty(Kl,"__esModule",{value:!0});const $u=He,at=ge,x5=Y,V5=qa,U5={message:({params:{i:e,j:t}})=>(0,at.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,at._)`{i: ${e}, j: ${t}}`},W5={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:U5,code(e){const{gen:t,data:n,$data:o,schema:s,parentSchema:l,schemaCode:c,it:f}=e;if(!o&&!s)return;const h=t.let("valid"),g=l.items?(0,$u.getSchemaTypes)(l.items):[];e.block$data(h,y,(0,at._)`${c} === false`),e.ok(h);function y(){const O=t.let("i",(0,at._)`${n}.length`),N=t.let("j");e.setParams({i:O,j:N}),t.assign(h,!0),t.if((0,at._)`${O} > 1`,()=>(w()?C:I)(O,N))}function w(){return g.length>0&&!g.some(O=>O==="object"||O==="array")}function C(O,N){const A=t.name("item"),b=(0,$u.checkDataTypes)(g,A,f.opts.strictNumbers,$u.DataType.Wrong),R=t.const("indices",(0,at._)`{}`);t.for((0,at._)`;${O}--;`,()=>{t.let(A,(0,at._)`${n}[${O}]`),t.if(b,(0,at._)`continue`),g.length>1&&t.if((0,at._)`typeof ${A} == "string"`,(0,at._)`${A} += "_"`),t.if((0,at._)`typeof ${R}[${A}] == "number"`,()=>{t.assign(N,(0,at._)`${R}[${A}]`),e.error(),t.assign(h,!1).break()}).code((0,at._)`${R}[${A}] = ${O}`)})}function I(O,N){const A=(0,x5.useFunc)(t,V5.default),b=t.name("outer");t.label(b).for((0,at._)`;${O}--;`,()=>t.for((0,at._)`${N} = ${O}; ${N}--;`,()=>t.if((0,at._)`${A}(${n}[${O}], ${n}[${N}])`,()=>{e.error(),t.assign(h,!1).break(b)})))}}};Kl.default=W5;var Jl={};Object.defineProperty(Jl,"__esModule",{value:!0});const Ju=ge,z5=Y,q5=qa,G5={message:"must be equal to constant",params:({schemaCode:e})=>(0,Ju._)`{allowedValue: ${e}}`},H5={keyword:"const",$data:!0,error:G5,code(e){const{gen:t,data:n,$data:o,schemaCode:s,schema:l}=e;o||l&&typeof l=="object"?e.fail$data((0,Ju._)`!${(0,z5.useFunc)(t,q5.default)}(${n}, ${s})`):e.fail((0,Ju._)`${l} !== ${n}`)}};Jl.default=H5;var Yl={};Object.defineProperty(Yl,"__esModule",{value:!0});const Oa=ge,K5=Y,J5=qa,Y5={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Oa._)`{allowedValues: ${e}}`},Z5={keyword:"enum",schemaType:"array",$data:!0,error:Y5,code(e){const{gen:t,data:n,$data:o,schema:s,schemaCode:l,it:c}=e;if(!o&&s.length===0)throw new Error("enum must have non-empty array");const f=s.length>=c.opts.loopEnum;let h;const g=()=>h??(h=(0,K5.useFunc)(t,J5.default));let y;if(f||o)y=t.let("valid"),e.block$data(y,w);else{if(!Array.isArray(s))throw new Error("ajv implementation error");const I=t.const("vSchema",l);y=(0,Oa.or)(...s.map((O,N)=>C(I,N)))}e.pass(y);function w(){t.assign(y,!1),t.forOf("v",l,I=>t.if((0,Oa._)`${g()}(${n}, ${I})`,()=>t.assign(y,!0).break()))}function C(I,O){const N=s[O];return typeof N=="object"&&N!==null?(0,Oa._)`${g()}(${n}, ${I}[${O}])`:(0,Oa._)`${n} === ${N}`}}};Yl.default=Z5;Object.defineProperty(jl,"__esModule",{value:!0});const X5=xl,Q5=Vl,e6=Ul,t6=zl,r6=ql,n6=Gl,a6=Hl,o6=Kl,i6=Jl,s6=Yl,u6=[X5.default,Q5.default,e6.default,t6.default,r6.default,n6.default,a6.default,o6.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},i6.default,s6.default];jl.default=u6;var Zl={},Qn={};Object.defineProperty(Qn,"__esModule",{value:!0});Qn.validateAdditionalItems=void 0;const cn=ge,Yu=Y,l6={message:({params:{len:e}})=>(0,cn.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,cn._)`{limit: ${e}}`},c6={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:l6,code(e){const{parentSchema:t,it:n}=e,{items:o}=t;if(!Array.isArray(o)){(0,Yu.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}Nv(e,o)}};function Nv(e,t){const{gen:n,schema:o,data:s,keyword:l,it:c}=e;c.items=!0;const f=n.const("len",(0,cn._)`${s}.length`);if(o===!1)e.setParams({len:t.length}),e.pass((0,cn._)`${f} <= ${t.length}`);else if(typeof o=="object"&&!(0,Yu.alwaysValidSchema)(c,o)){const g=n.var("valid",(0,cn._)`${f} <= ${t.length}`);n.if((0,cn.not)(g),()=>h(g)),e.ok(g)}function h(g){n.forRange("i",t.length,f,y=>{e.subschema({keyword:l,dataProp:y,dataPropType:Yu.Type.Num},g),c.allErrors||n.if((0,cn.not)(g),()=>n.break())})}}Qn.validateAdditionalItems=Nv;Qn.default=c6;var Xl={},ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.validateTuple=void 0;const Ph=ge,ri=Y,d6=ye,f6={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return Dv(e,"additionalItems",t);n.items=!0,!(0,ri.alwaysValidSchema)(n,t)&&e.ok((0,d6.validateArray)(e))}};function Dv(e,t,n=e.schema){const{gen:o,parentSchema:s,data:l,keyword:c,it:f}=e;y(s),f.opts.unevaluated&&n.length&&f.items!==!0&&(f.items=ri.mergeEvaluated.items(o,n.length,f.items));const h=o.name("valid"),g=o.const("len",(0,Ph._)`${l}.length`);n.forEach((w,C)=>{(0,ri.alwaysValidSchema)(f,w)||(o.if((0,Ph._)`${g} > ${C}`,()=>e.subschema({keyword:c,schemaProp:C,dataProp:C},h)),e.ok(h))});function y(w){const{opts:C,errSchemaPath:I}=f,O=n.length,N=O===w.minItems&&(O===w.maxItems||w[t]===!1);if(C.strictTuples&&!N){const A=`"${c}" is ${O}-tuple, but minItems or maxItems/${t} are not specified or different at path "${I}"`;(0,ri.checkStrictMode)(f,A,C.strictTuples)}}}ea.validateTuple=Dv;ea.default=f6;Object.defineProperty(Xl,"__esModule",{value:!0});const p6=ea,h6={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,p6.validateTuple)(e,"items")};Xl.default=h6;var Ql={};Object.defineProperty(Ql,"__esModule",{value:!0});const Rh=ge,m6=Y,g6=ye,v6=Qn,y6={message:({params:{len:e}})=>(0,Rh.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Rh._)`{limit: ${e}}`},_6={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:y6,code(e){const{schema:t,parentSchema:n,it:o}=e,{prefixItems:s}=n;o.items=!0,!(0,m6.alwaysValidSchema)(o,t)&&(s?(0,v6.validateAdditionalItems)(e,s):e.ok((0,g6.validateArray)(e)))}};Ql.default=_6;var ec={};Object.defineProperty(ec,"__esModule",{value:!0});const Ut=ge,Go=Y,$6={message:({params:{min:e,max:t}})=>t===void 0?(0,Ut.str)`must contain at least ${e} valid item(s)`:(0,Ut.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Ut._)`{minContains: ${e}}`:(0,Ut._)`{minContains: ${e}, maxContains: ${t}}`},b6={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:$6,code(e){const{gen:t,schema:n,parentSchema:o,data:s,it:l}=e;let c,f;const{minContains:h,maxContains:g}=o;l.opts.next?(c=h===void 0?1:h,f=g):c=1;const y=t.const("len",(0,Ut._)`${s}.length`);if(e.setParams({min:c,max:f}),f===void 0&&c===0){(0,Go.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&c>f){(0,Go.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Go.alwaysValidSchema)(l,n)){let N=(0,Ut._)`${y} >= ${c}`;f!==void 0&&(N=(0,Ut._)`${N} && ${y} <= ${f}`),e.pass(N);return}l.items=!0;const w=t.name("valid");f===void 0&&c===1?I(w,()=>t.if(w,()=>t.break())):c===0?(t.let(w,!0),f!==void 0&&t.if((0,Ut._)`${s}.length > 0`,C)):(t.let(w,!1),C()),e.result(w,()=>e.reset());function C(){const N=t.name("_valid"),A=t.let("count",0);I(N,()=>t.if(N,()=>O(A)))}function I(N,A){t.forRange("i",0,y,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:Go.Type.Num,compositeRule:!0},N),A()})}function O(N){t.code((0,Ut._)`${N}++`),f===void 0?t.if((0,Ut._)`${N} >= ${c}`,()=>t.assign(w,!0).break()):(t.if((0,Ut._)`${N} > ${f}`,()=>t.assign(w,!1).break()),c===1?t.assign(w,!0):t.if((0,Ut._)`${N} >= ${c}`,()=>t.assign(w,!0)))}}};ec.default=b6;var Lv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ge,n=Y,o=ye;e.error={message:({params:{property:h,depsCount:g,deps:y}})=>{const w=g===1?"property":"properties";return(0,t.str)`must have ${w} ${y} when property ${h} is present`},params:({params:{property:h,depsCount:g,deps:y,missingProperty:w}})=>(0,t._)`{property: ${h},
6
+ || ${c} === "boolean" || ${s} === null`).assign(f,(0,pe._)`[${s}]`)}}}function SB({gen:e,parentData:t,parentDataProperty:n},o){e.if((0,pe._)`${t} !== undefined`,()=>e.assign((0,pe._)`${t}[${n}]`,o))}function Gu(e,t,n,o=jn.Correct){const s=o===jn.Correct?pe.operators.EQ:pe.operators.NEQ;let l;switch(e){case"null":return(0,pe._)`${t} ${s} null`;case"array":l=(0,pe._)`Array.isArray(${t})`;break;case"object":l=(0,pe._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":l=c((0,pe._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":l=c();break;default:return(0,pe._)`typeof ${t} ${s} ${e}`}return o===jn.Correct?l:(0,pe.not)(l);function c(f=pe.nil){return(0,pe.and)((0,pe._)`typeof ${t} == "number"`,f,n?(0,pe._)`isFinite(${t})`:pe.nil)}}He.checkDataType=Gu;function Sl(e,t,n,o){if(e.length===1)return Gu(e[0],t,n,o);let s;const l=(0,Zg.toHash)(e);if(l.array&&l.object){const c=(0,pe._)`typeof ${t} != "object"`;s=l.null?c:(0,pe._)`!${t} || ${c}`,delete l.null,delete l.array,delete l.object}else s=pe.nil;l.number&&delete l.integer;for(const c in l)s=(0,pe.and)(s,Gu(c,t,n,o));return s}He.checkDataTypes=Sl;const AB={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,pe._)`{type: ${e}}`:(0,pe._)`{type: ${t}}`};function Al(e){const t=CB(e);(0,_B.reportError)(t,AB)}He.reportTypeError=Al;function CB(e){const{gen:t,data:n,schema:o}=e,s=(0,Zg.schemaRefOrVal)(e,o,"type");return{gen:t,keyword:"type",data:n,schema:o.type,schemaCode:s,schemaValue:s,parentSchema:o,params:{},it:e}}var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.assignDefaults=void 0;const Nn=ge,OB=Y;function TB(e,t){const{properties:n,items:o}=e.schema;if(t==="object"&&n)for(const s in n)yh(e,s,n[s].default);else t==="array"&&Array.isArray(o)&&o.forEach((s,l)=>yh(e,l,s.default))}Mi.assignDefaults=TB;function yh(e,t,n){const{gen:o,compositeRule:s,data:l,opts:c}=e;if(n===void 0)return;const f=(0,Nn._)`${l}${(0,Nn.getProperty)(t)}`;if(s){(0,OB.checkStrictMode)(e,`default is ignored for: ${f}`);return}let h=(0,Nn._)`${f} === undefined`;c.useDefaults==="empty"&&(h=(0,Nn._)`${h} || ${f} === null || ${f} === ""`),o.if(h,(0,Nn._)`${f} = ${(0,Nn.stringify)(n)}`)}var ar={},ye={};Object.defineProperty(ye,"__esModule",{value:!0});ye.validateUnion=ye.validateArray=ye.usePattern=ye.callValidateCode=ye.schemaProperties=ye.allSchemaProperties=ye.noPropertyInData=ye.propertyInData=ye.isOwnProperty=ye.hasPropFunc=ye.reportMissingProp=ye.checkMissingProp=ye.checkReportMissingProp=void 0;const Le=ge,Cl=Y,xr=sr,IB=Y;function PB(e,t){const{gen:n,data:o,it:s}=e;n.if(Tl(n,o,t,s.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Le._)`${t}`},!0),e.error()})}ye.checkReportMissingProp=PB;function RB({gen:e,data:t,it:{opts:n}},o,s){return(0,Le.or)(...o.map(l=>(0,Le.and)(Tl(e,t,l,n.ownProperties),(0,Le._)`${s} = ${l}`)))}ye.checkMissingProp=RB;function kB(e,t){e.setParams({missingProperty:t},!0),e.error()}ye.reportMissingProp=kB;function ev(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Le._)`Object.prototype.hasOwnProperty`})}ye.hasPropFunc=ev;function Ol(e,t,n){return(0,Le._)`${ev(e)}.call(${t}, ${n})`}ye.isOwnProperty=Ol;function NB(e,t,n,o){const s=(0,Le._)`${t}${(0,Le.getProperty)(n)} !== undefined`;return o?(0,Le._)`${s} && ${Ol(e,t,n)}`:s}ye.propertyInData=NB;function Tl(e,t,n,o){const s=(0,Le._)`${t}${(0,Le.getProperty)(n)} === undefined`;return o?(0,Le.or)(s,(0,Le.not)(Ol(e,t,n))):s}ye.noPropertyInData=Tl;function tv(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}ye.allSchemaProperties=tv;function DB(e,t){return tv(t).filter(n=>!(0,Cl.alwaysValidSchema)(e,t[n]))}ye.schemaProperties=DB;function LB({schemaCode:e,data:t,it:{gen:n,topSchemaRef:o,schemaPath:s,errorPath:l},it:c},f,h,g){const y=g?(0,Le._)`${e}, ${t}, ${o}${s}`:t,w=[[xr.default.instancePath,(0,Le.strConcat)(xr.default.instancePath,l)],[xr.default.parentData,c.parentData],[xr.default.parentDataProperty,c.parentDataProperty],[xr.default.rootData,xr.default.rootData]];c.opts.dynamicRef&&w.push([xr.default.dynamicAnchors,xr.default.dynamicAnchors]);const C=(0,Le._)`${y}, ${n.object(...w)}`;return h!==Le.nil?(0,Le._)`${f}.call(${h}, ${C})`:(0,Le._)`${f}(${C})`}ye.callValidateCode=LB;const BB=(0,Le._)`new RegExp`;function MB({gen:e,it:{opts:t}},n){const o=t.unicodeRegExp?"u":"",{regExp:s}=t.code,l=s(n,o);return e.scopeValue("pattern",{key:l.toString(),ref:l,code:(0,Le._)`${s.code==="new RegExp"?BB:(0,IB.useFunc)(e,s)}(${n}, ${o})`})}ye.usePattern=MB;function FB(e){const{gen:t,data:n,keyword:o,it:s}=e,l=t.name("valid");if(s.allErrors){const f=t.let("valid",!0);return c(()=>t.assign(f,!1)),f}return t.var(l,!0),c(()=>t.break()),l;function c(f){const h=t.const("len",(0,Le._)`${n}.length`);t.forRange("i",0,h,g=>{e.subschema({keyword:o,dataProp:g,dataPropType:Cl.Type.Num},l),t.if((0,Le.not)(l),f)})}}ye.validateArray=FB;function jB(e){const{gen:t,schema:n,keyword:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(h=>(0,Cl.alwaysValidSchema)(s,h))&&!s.opts.unevaluated)return;const c=t.let("valid",!1),f=t.name("_valid");t.block(()=>n.forEach((h,g)=>{const y=e.subschema({keyword:o,schemaProp:g,compositeRule:!0},f);t.assign(c,(0,Le._)`${c} || ${f}`),e.mergeValidEvaluated(y,f)||t.if((0,Le.not)(c))})),e.result(c,()=>e.reset(),()=>e.error(!0))}ye.validateUnion=jB;Object.defineProperty(ar,"__esModule",{value:!0});ar.validateKeywordUsage=ar.validSchemaType=ar.funcKeywordCode=ar.macroKeywordCode=void 0;const vt=ge,un=sr,xB=ye,VB=Wa;function UB(e,t){const{gen:n,keyword:o,schema:s,parentSchema:l,it:c}=e,f=t.macro.call(c.self,s,l,c),h=rv(n,o,f);c.opts.validateSchema!==!1&&c.self.validateSchema(f,!0);const g=n.name("valid");e.subschema({schema:f,schemaPath:vt.nil,errSchemaPath:`${c.errSchemaPath}/${o}`,topSchemaRef:h,compositeRule:!0},g),e.pass(g,()=>e.error(!0))}ar.macroKeywordCode=UB;function WB(e,t){var n;const{gen:o,keyword:s,schema:l,parentSchema:c,$data:f,it:h}=e;qB(h,t);const g=!f&&t.compile?t.compile.call(h.self,l,c,h):t.validate,y=rv(o,s,g),w=o.let("valid");e.block$data(w,C),e.ok((n=t.valid)!==null&&n!==void 0?n:w);function C(){if(t.errors===!1)N(),t.modifying&&_h(e),A(()=>e.error());else{const b=t.async?I():O();t.modifying&&_h(e),A(()=>zB(e,b))}}function I(){const b=o.let("ruleErrs",null);return o.try(()=>N((0,vt._)`await `),R=>o.assign(w,!1).if((0,vt._)`${R} instanceof ${h.ValidationError}`,()=>o.assign(b,(0,vt._)`${R}.errors`),()=>o.throw(R))),b}function O(){const b=(0,vt._)`${y}.errors`;return o.assign(b,null),N(vt.nil),b}function N(b=t.async?(0,vt._)`await `:vt.nil){const R=h.opts.passContext?un.default.this:un.default.self,M=!("compile"in t&&!f||t.schema===!1);o.assign(w,(0,vt._)`${b}${(0,xB.callValidateCode)(e,y,R,M)}`,t.modifying)}function A(b){var R;o.if((0,vt.not)((R=t.valid)!==null&&R!==void 0?R:w),b)}}ar.funcKeywordCode=WB;function _h(e){const{gen:t,data:n,it:o}=e;t.if(o.parentData,()=>t.assign(n,(0,vt._)`${o.parentData}[${o.parentDataProperty}]`))}function zB(e,t){const{gen:n}=e;n.if((0,vt._)`Array.isArray(${t})`,()=>{n.assign(un.default.vErrors,(0,vt._)`${un.default.vErrors} === null ? ${t} : ${un.default.vErrors}.concat(${t})`).assign(un.default.errors,(0,vt._)`${un.default.vErrors}.length`),(0,VB.extendErrors)(e)},()=>e.error())}function qB({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function rv(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,vt.stringify)(n)})}function GB(e,t,n=!1){return!t.length||t.some(o=>o==="array"?Array.isArray(e):o==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==o||n&&typeof e>"u")}ar.validSchemaType=GB;function HB({schema:e,opts:t,self:n,errSchemaPath:o},s,l){if(Array.isArray(s.keyword)?!s.keyword.includes(l):s.keyword!==l)throw new Error("ajv implementation error");const c=s.dependencies;if(c!=null&&c.some(f=>!Object.prototype.hasOwnProperty.call(e,f)))throw new Error(`parent schema must have dependencies of ${l}: ${c.join(",")}`);if(s.validateSchema&&!s.validateSchema(e[l])){const h=`keyword "${l}" value is invalid at path "${o}": `+n.errorsText(s.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(h);else throw new Error(h)}}ar.validateKeywordUsage=HB;var zr={};Object.defineProperty(zr,"__esModule",{value:!0});zr.extendSubschemaMode=zr.extendSubschemaData=zr.getSubschema=void 0;const nr=ge,nv=Y;function KB(e,{keyword:t,schemaProp:n,schema:o,schemaPath:s,errSchemaPath:l,topSchemaRef:c}){if(t!==void 0&&o!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const f=e.schema[t];return n===void 0?{schema:f,schemaPath:(0,nr._)`${e.schemaPath}${(0,nr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:f[n],schemaPath:(0,nr._)`${e.schemaPath}${(0,nr.getProperty)(t)}${(0,nr.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,nv.escapeFragment)(n)}`}}if(o!==void 0){if(s===void 0||l===void 0||c===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:s,topSchemaRef:c,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')}zr.getSubschema=KB;function JB(e,t,{dataProp:n,dataPropType:o,data:s,dataTypes:l,propertyName:c}){if(s!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:f}=t;if(n!==void 0){const{errorPath:g,dataPathArr:y,opts:w}=t,C=f.let("data",(0,nr._)`${t.data}${(0,nr.getProperty)(n)}`,!0);h(C),e.errorPath=(0,nr.str)`${g}${(0,nv.getErrorPath)(n,o,w.jsPropertySyntax)}`,e.parentDataProperty=(0,nr._)`${n}`,e.dataPathArr=[...y,e.parentDataProperty]}if(s!==void 0){const g=s instanceof nr.Name?s:f.let("data",s,!0);h(g),c!==void 0&&(e.propertyName=c)}l&&(e.dataTypes=l);function h(g){e.data=g,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,g]}}zr.extendSubschemaData=JB;function YB(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:o,createErrors:s,allErrors:l}){o!==void 0&&(e.compositeRule=o),s!==void 0&&(e.createErrors=s),l!==void 0&&(e.allErrors=l),e.jtdDiscriminator=t,e.jtdMetadata=n}zr.extendSubschemaMode=YB;var ot={},av=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var o,s,l;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(s=o;s--!==0;)if(!e(t[s],n[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(l=Object.keys(t),o=l.length,o!==Object.keys(n).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,l[s]))return!1;for(s=o;s--!==0;){var c=l[s];if(!e(t[c],n[c]))return!1}return!0}return t!==t&&n!==n},ov={exports:{}},Ur=ov.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var o=typeof n=="function"?n:n.pre||function(){},s=n.post||function(){};Qo(t,o,s,e,"",e)};Ur.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Ur.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Ur.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Ur.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Qo(e,t,n,o,s,l,c,f,h,g){if(o&&typeof o=="object"&&!Array.isArray(o)){t(o,s,l,c,f,h,g);for(var y in o){var w=o[y];if(Array.isArray(w)){if(y in Ur.arrayKeywords)for(var C=0;C<w.length;C++)Qo(e,t,n,w[C],s+"/"+y+"/"+C,l,s,y,o,C)}else if(y in Ur.propsKeywords){if(w&&typeof w=="object")for(var I in w)Qo(e,t,n,w[I],s+"/"+y+"/"+ZB(I),l,s,y,o,I)}else(y in Ur.keywords||e.allKeys&&!(y in Ur.skipKeywords))&&Qo(e,t,n,w,s+"/"+y,l,s,y,o)}n(o,s,l,c,f,h,g)}}function ZB(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var XB=ov.exports;Object.defineProperty(ot,"__esModule",{value:!0});ot.getSchemaRefs=ot.resolveUrl=ot.normalizeId=ot._getFullPath=ot.getFullPath=ot.inlineRef=void 0;const QB=Y,eM=av,tM=XB,rM=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function nM(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Hu(e):t?iv(e)<=t:!1}ot.inlineRef=nM;const aM=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Hu(e){for(const t in e){if(aM.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(Hu)||typeof n=="object"&&Hu(n))return!0}return!1}function iv(e){let t=0;for(const n in e){if(n==="$ref")return 1/0;if(t++,!rM.has(n)&&(typeof e[n]=="object"&&(0,QB.eachItem)(e[n],o=>t+=iv(o)),t===1/0))return 1/0}return t}function sv(e,t="",n){n!==!1&&(t=xn(t));const o=e.parse(t);return uv(e,o)}ot.getFullPath=sv;function uv(e,t){return e.serialize(t).split("#")[0]+"#"}ot._getFullPath=uv;const oM=/#\/?$/;function xn(e){return e?e.replace(oM,""):""}ot.normalizeId=xn;function iM(e,t,n){return n=xn(n),e.resolve(t,n)}ot.resolveUrl=iM;const sM=/^[a-z_][-a-z0-9._]*$/i;function uM(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:o}=this.opts,s=xn(e[n]||t),l={"":s},c=sv(o,s,!1),f={},h=new Set;return tM(e,{allKeys:!0},(w,C,I,O)=>{if(O===void 0)return;const N=c+C;let A=l[O];typeof w[n]=="string"&&(A=b.call(this,w[n])),R.call(this,w.$anchor),R.call(this,w.$dynamicAnchor),l[C]=A;function b(M){const U=this.opts.uriResolver.resolve;if(M=xn(A?U(A,M):M),h.has(M))throw y(M);h.add(M);let G=this.refs[M];return typeof G=="string"&&(G=this.refs[G]),typeof G=="object"?g(w,G.schema,M):M!==xn(N)&&(M[0]==="#"?(g(w,f[M],M),f[M]=w):this.refs[M]=N),M}function R(M){if(typeof M=="string"){if(!sM.test(M))throw new Error(`invalid anchor "${M}"`);b.call(this,`#${M}`)}}}),f;function g(w,C,I){if(C!==void 0&&!eM(w,C))throw y(I)}function y(w){return new Error(`reference "${w}" resolves to more than one schema`)}}ot.getSchemaRefs=uM;Object.defineProperty(Qt,"__esModule",{value:!0});Qt.getData=Qt.KeywordCxt=Qt.validateFunctionCode=void 0;const lv=Vn,$h=He,Il=Sr,pi=He,lM=Mi,Ta=ar,vu=zr,ee=ge,le=sr,cM=ot,Ar=Y,Ea=Wa;function dM(e){if(fv(e)&&(pv(e),dv(e))){hM(e);return}cv(e,()=>(0,lv.topBoolOrEmptySchema)(e))}Qt.validateFunctionCode=dM;function cv({gen:e,validateName:t,schema:n,schemaEnv:o,opts:s},l){s.code.es5?e.func(t,(0,ee._)`${le.default.data}, ${le.default.valCxt}`,o.$async,()=>{e.code((0,ee._)`"use strict"; ${bh(n,s)}`),pM(e,s),e.code(l)}):e.func(t,(0,ee._)`${le.default.data}, ${fM(s)}`,o.$async,()=>e.code(bh(n,s)).code(l))}function fM(e){return(0,ee._)`{${le.default.instancePath}="", ${le.default.parentData}, ${le.default.parentDataProperty}, ${le.default.rootData}=${le.default.data}${e.dynamicRef?(0,ee._)`, ${le.default.dynamicAnchors}={}`:ee.nil}}={}`}function pM(e,t){e.if(le.default.valCxt,()=>{e.var(le.default.instancePath,(0,ee._)`${le.default.valCxt}.${le.default.instancePath}`),e.var(le.default.parentData,(0,ee._)`${le.default.valCxt}.${le.default.parentData}`),e.var(le.default.parentDataProperty,(0,ee._)`${le.default.valCxt}.${le.default.parentDataProperty}`),e.var(le.default.rootData,(0,ee._)`${le.default.valCxt}.${le.default.rootData}`),t.dynamicRef&&e.var(le.default.dynamicAnchors,(0,ee._)`${le.default.valCxt}.${le.default.dynamicAnchors}`)},()=>{e.var(le.default.instancePath,(0,ee._)`""`),e.var(le.default.parentData,(0,ee._)`undefined`),e.var(le.default.parentDataProperty,(0,ee._)`undefined`),e.var(le.default.rootData,le.default.data),t.dynamicRef&&e.var(le.default.dynamicAnchors,(0,ee._)`{}`)})}function hM(e){const{schema:t,opts:n,gen:o}=e;cv(e,()=>{n.$comment&&t.$comment&&mv(e),_M(e),o.let(le.default.vErrors,null),o.let(le.default.errors,0),n.unevaluated&&mM(e),hv(e),wM(e)})}function mM(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,ee._)`${n}.evaluated`),t.if((0,ee._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,ee._)`${e.evaluated}.props`,(0,ee._)`undefined`)),t.if((0,ee._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,ee._)`${e.evaluated}.items`,(0,ee._)`undefined`))}function bh(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,ee._)`/*# sourceURL=${n} */`:ee.nil}function gM(e,t){if(fv(e)&&(pv(e),dv(e))){vM(e,t);return}(0,lv.boolOrEmptySchema)(e,t)}function dv({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function fv(e){return typeof e.schema!="boolean"}function vM(e,t){const{schema:n,gen:o,opts:s}=e;s.$comment&&n.$comment&&mv(e),$M(e),bM(e);const l=o.const("_errs",le.default.errors);hv(e,l),o.var(t,(0,ee._)`${l} === ${le.default.errors}`)}function pv(e){(0,Ar.checkUnknownRules)(e),yM(e)}function hv(e,t){if(e.opts.jtd)return wh(e,[],!1,t);const n=(0,$h.getSchemaTypes)(e.schema),o=(0,$h.coerceAndCheckDataType)(e,n);wh(e,n,!o,t)}function yM(e){const{schema:t,errSchemaPath:n,opts:o,self:s}=e;t.$ref&&o.ignoreKeywordsWithRef&&(0,Ar.schemaHasRulesButRef)(t,s.RULES)&&s.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function _M(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Ar.checkStrictMode)(e,"default is ignored in the schema root")}function $M(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,cM.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function bM(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function mv({gen:e,schemaEnv:t,schema:n,errSchemaPath:o,opts:s}){const l=n.$comment;if(s.$comment===!0)e.code((0,ee._)`${le.default.self}.logger.log(${l})`);else if(typeof s.$comment=="function"){const c=(0,ee.str)`${o}/$comment`,f=e.scopeValue("root",{ref:t.root});e.code((0,ee._)`${le.default.self}.opts.$comment(${l}, ${c}, ${f}.schema)`)}}function wM(e){const{gen:t,schemaEnv:n,validateName:o,ValidationError:s,opts:l}=e;n.$async?t.if((0,ee._)`${le.default.errors} === 0`,()=>t.return(le.default.data),()=>t.throw((0,ee._)`new ${s}(${le.default.vErrors})`)):(t.assign((0,ee._)`${o}.errors`,le.default.vErrors),l.unevaluated&&EM(e),t.return((0,ee._)`${le.default.errors} === 0`))}function EM({gen:e,evaluated:t,props:n,items:o}){n instanceof ee.Name&&e.assign((0,ee._)`${t}.props`,n),o instanceof ee.Name&&e.assign((0,ee._)`${t}.items`,o)}function wh(e,t,n,o){const{gen:s,schema:l,data:c,allErrors:f,opts:h,self:g}=e,{RULES:y}=g;if(l.$ref&&(h.ignoreKeywordsWithRef||!(0,Ar.schemaHasRulesButRef)(l,y))){s.block(()=>yv(e,"$ref",y.all.$ref.definition));return}h.jtd||SM(e,t),s.block(()=>{for(const C of y.rules)w(C);w(y.post)});function w(C){(0,Il.shouldUseGroup)(l,C)&&(C.type?(s.if((0,pi.checkDataType)(C.type,c,h.strictNumbers)),Eh(e,C),t.length===1&&t[0]===C.type&&n&&(s.else(),(0,pi.reportTypeError)(e)),s.endIf()):Eh(e,C),f||s.if((0,ee._)`${le.default.errors} === ${o||0}`))}}function Eh(e,t){const{gen:n,schema:o,opts:{useDefaults:s}}=e;s&&(0,lM.assignDefaults)(e,t.type),n.block(()=>{for(const l of t.rules)(0,Il.shouldUseRule)(o,l)&&yv(e,l.keyword,l.definition,t.type)})}function SM(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(AM(e,t),e.opts.allowUnionTypes||CM(e,t),OM(e,e.dataTypes))}function AM(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{gv(e.dataTypes,n)||Pl(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),IM(e,t)}}function CM(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Pl(e,"use allowUnionTypes to allow union type keyword")}function OM(e,t){const n=e.self.RULES.all;for(const o in n){const s=n[o];if(typeof s=="object"&&(0,Il.shouldUseRule)(e.schema,s)){const{type:l}=s.definition;l.length&&!l.some(c=>TM(t,c))&&Pl(e,`missing type "${l.join(",")}" for keyword "${o}"`)}}}function TM(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function gv(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function IM(e,t){const n=[];for(const o of e.dataTypes)gv(t,o)?n.push(o):t.includes("integer")&&o==="number"&&n.push("integer");e.dataTypes=n}function Pl(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,Ar.checkStrictMode)(e,t,e.opts.strictTypes)}class vv{constructor(t,n,o){if((0,Ta.validateKeywordUsage)(t,n,o),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=o,this.data=t.data,this.schema=t.schema[o],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ar.schemaRefOrVal)(t,this.schema,o,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",_v(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ta.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${o} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",le.default.errors))}result(t,n,o){this.failResult((0,ee.not)(t),n,o)}failResult(t,n,o){this.gen.if(t),o?o():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,ee.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,ee._)`${n} !== undefined && (${(0,ee.or)(this.invalid$data(),t)})`)}error(t,n,o){if(n){this.setParams(n),this._error(t,o),this.setParams({});return}this._error(t,o)}_error(t,n){(t?Ea.reportExtraError:Ea.reportError)(this,this.def.error,n)}$dataError(){(0,Ea.reportError)(this,this.def.$dataError||Ea.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ea.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,o=ee.nil){this.gen.block(()=>{this.check$data(t,o),n()})}check$data(t=ee.nil,n=ee.nil){if(!this.$data)return;const{gen:o,schemaCode:s,schemaType:l,def:c}=this;o.if((0,ee.or)((0,ee._)`${s} === undefined`,n)),t!==ee.nil&&o.assign(t,!0),(l.length||c.validateSchema)&&(o.elseIf(this.invalid$data()),this.$dataError(),t!==ee.nil&&o.assign(t,!1)),o.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:o,def:s,it:l}=this;return(0,ee.or)(c(),f());function c(){if(o.length){if(!(n instanceof ee.Name))throw new Error("ajv implementation error");const h=Array.isArray(o)?o:[o];return(0,ee._)`${(0,pi.checkDataTypes)(h,n,l.opts.strictNumbers,pi.DataType.Wrong)}`}return ee.nil}function f(){if(s.validateSchema){const h=t.scopeValue("validate$data",{ref:s.validateSchema});return(0,ee._)`!${h}(${n})`}return ee.nil}}subschema(t,n){const o=(0,vu.getSubschema)(this.it,t);(0,vu.extendSubschemaData)(o,this.it,t),(0,vu.extendSubschemaMode)(o,t);const s={...this.it,...o,items:void 0,props:void 0};return gM(s,n),s}mergeEvaluated(t,n){const{it:o,gen:s}=this;o.opts.unevaluated&&(o.props!==!0&&t.props!==void 0&&(o.props=Ar.mergeEvaluated.props(s,t.props,o.props,n)),o.items!==!0&&t.items!==void 0&&(o.items=Ar.mergeEvaluated.items(s,t.items,o.items,n)))}mergeValidEvaluated(t,n){const{it:o,gen:s}=this;if(o.opts.unevaluated&&(o.props!==!0||o.items!==!0))return s.if(n,()=>this.mergeEvaluated(t,ee.Name)),!0}}Qt.KeywordCxt=vv;function yv(e,t,n,o){const s=new vv(e,n,t);"code"in n?n.code(s,o):s.$data&&n.validate?(0,Ta.funcKeywordCode)(s,n):"macro"in n?(0,Ta.macroKeywordCode)(s,n):(n.compile||n.validate)&&(0,Ta.funcKeywordCode)(s,n)}const PM=/^\/(?:[^~]|~0|~1)*$/,RM=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function _v(e,{dataLevel:t,dataNames:n,dataPathArr:o}){let s,l;if(e==="")return le.default.rootData;if(e[0]==="/"){if(!PM.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);s=e,l=le.default.rootData}else{const g=RM.exec(e);if(!g)throw new Error(`Invalid JSON-pointer: ${e}`);const y=+g[1];if(s=g[2],s==="#"){if(y>=t)throw new Error(h("property/index",y));return o[t-y]}if(y>t)throw new Error(h("data",y));if(l=n[t-y],!s)return l}let c=l;const f=s.split("/");for(const g of f)g&&(l=(0,ee._)`${l}${(0,ee.getProperty)((0,Ar.unescapeJsonPointer)(g))}`,c=(0,ee._)`${c} && ${l}`);return c;function h(g,y){return`Cannot access ${g} ${y} levels up, current level is ${t}`}}Qt.getData=_v;var za={};Object.defineProperty(za,"__esModule",{value:!0});class kM extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}za.default=kM;var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});const yu=ot;class NM extends Error{constructor(t,n,o,s){super(s||`can't resolve reference ${o} from id ${n}`),this.missingRef=(0,yu.resolveUrl)(t,n,o),this.missingSchema=(0,yu.normalizeId)((0,yu.getFullPath)(t,this.missingRef))}}Xn.default=NM;var Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et.resolveSchema=Et.getCompilingSchema=Et.resolveRef=Et.compileSchema=Et.SchemaEnv=void 0;const Jt=ge,DM=za,on=sr,Xt=ot,Sh=Y,LM=Qt;class Fi{constructor(t){var n;this.refs={},this.dynamicAnchors={};let o;typeof t.schema=="object"&&(o=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,Xt.normalizeId)(o==null?void 0:o[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=o==null?void 0:o.$async,this.refs={}}}Et.SchemaEnv=Fi;function Rl(e){const t=$v.call(this,e);if(t)return t;const n=(0,Xt.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:o,lines:s}=this.opts.code,{ownProperties:l}=this.opts,c=new Jt.CodeGen(this.scope,{es5:o,lines:s,ownProperties:l});let f;e.$async&&(f=c.scopeValue("Error",{ref:DM.default,code:(0,Jt._)`require("ajv/dist/runtime/validation_error").default`}));const h=c.scopeName("validate");e.validateName=h;const g={gen:c,allErrors:this.opts.allErrors,data:on.default.data,parentData:on.default.parentData,parentDataProperty:on.default.parentDataProperty,dataNames:[on.default.data],dataPathArr:[Jt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:c.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Jt.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Jt.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Jt._)`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e),(0,LM.validateFunctionCode)(g),c.optimize(this.opts.code.optimize);const w=c.toString();y=`${c.scopeRefs(on.default.scope)}return ${w}`,this.opts.code.process&&(y=this.opts.code.process(y,e));const I=new Function(`${on.default.self}`,`${on.default.scope}`,y)(this,this.scope.get());if(this.scope.value(h,{ref:I}),I.errors=null,I.schema=e.schema,I.schemaEnv=e,e.$async&&(I.$async=!0),this.opts.code.source===!0&&(I.source={validateName:h,validateCode:w,scopeValues:c._values}),this.opts.unevaluated){const{props:O,items:N}=g;I.evaluated={props:O instanceof Jt.Name?void 0:O,items:N instanceof Jt.Name?void 0:N,dynamicProps:O instanceof Jt.Name,dynamicItems:N instanceof Jt.Name},I.source&&(I.source.evaluated=(0,Jt.stringify)(I.evaluated))}return e.validate=I,e}catch(w){throw delete e.validate,delete e.validateName,y&&this.logger.error("Error compiling schema, function code:",y),w}finally{this._compilations.delete(e)}}Et.compileSchema=Rl;function BM(e,t,n){var o;n=(0,Xt.resolveUrl)(this.opts.uriResolver,t,n);const s=e.refs[n];if(s)return s;let l=jM.call(this,e,n);if(l===void 0){const c=(o=e.localRefs)===null||o===void 0?void 0:o[n],{schemaId:f}=this.opts;c&&(l=new Fi({schema:c,schemaId:f,root:e,baseId:t}))}if(l!==void 0)return e.refs[n]=MM.call(this,l)}Et.resolveRef=BM;function MM(e){return(0,Xt.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Rl.call(this,e)}function $v(e){for(const t of this._compilations)if(FM(t,e))return t}Et.getCompilingSchema=$v;function FM(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function jM(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||ji.call(this,e,t)}function ji(e,t){const n=this.opts.uriResolver.parse(t),o=(0,Xt._getFullPath)(this.opts.uriResolver,n);let s=(0,Xt.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&o===s)return _u.call(this,n,e);const l=(0,Xt.normalizeId)(o),c=this.refs[l]||this.schemas[l];if(typeof c=="string"){const f=ji.call(this,e,c);return typeof(f==null?void 0:f.schema)!="object"?void 0:_u.call(this,n,f)}if(typeof(c==null?void 0:c.schema)=="object"){if(c.validate||Rl.call(this,c),l===(0,Xt.normalizeId)(t)){const{schema:f}=c,{schemaId:h}=this.opts,g=f[h];return g&&(s=(0,Xt.resolveUrl)(this.opts.uriResolver,s,g)),new Fi({schema:f,schemaId:h,root:e,baseId:s})}return _u.call(this,n,c)}}Et.resolveSchema=ji;const xM=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function _u(e,{baseId:t,schema:n,root:o}){var s;if(((s=e.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(const f of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const h=n[(0,Sh.unescapeFragment)(f)];if(h===void 0)return;n=h;const g=typeof n=="object"&&n[this.opts.schemaId];!xM.has(f)&&g&&(t=(0,Xt.resolveUrl)(this.opts.uriResolver,t,g))}let l;if(typeof n!="boolean"&&n.$ref&&!(0,Sh.schemaHasRulesButRef)(n,this.RULES)){const f=(0,Xt.resolveUrl)(this.opts.uriResolver,t,n.$ref);l=ji.call(this,o,f)}const{schemaId:c}=this.opts;if(l=l||new Fi({schema:n,schemaId:c,root:o,baseId:t}),l.schema!==l.root.schema)return l}const VM="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",UM="Meta-schema for $data reference (JSON AnySchema extension proposal)",WM="object",zM=["$data"],qM={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},GM=!1,HM={$id:VM,description:UM,type:WM,required:zM,properties:qM,additionalProperties:GM};var kl={},xi={exports:{}};const KM={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};var JM={HEX:KM};const{HEX:YM}=JM;function bv(e){if(Ev(e,".")<3)return{host:e,isIPV4:!1};const t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[n]=t;return n?{host:XM(n,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function Ku(e,t=!1){let n="",o=!0;for(const s of e){if(YM[s]===void 0)return;s!=="0"&&o===!0&&(o=!1),o||(n+=s)}return t&&n.length===0&&(n="0"),n}function ZM(e){let t=0;const n={error:!1,address:"",zone:""},o=[],s=[];let l=!1,c=!1,f=!1;function h(){if(s.length){if(l===!1){const g=Ku(s);if(g!==void 0)o.push(g);else return n.error=!0,!1}s.length=0}return!0}for(let g=0;g<e.length;g++){const y=e[g];if(!(y==="["||y==="]"))if(y===":"){if(c===!0&&(f=!0),!h())break;if(t++,o.push(":"),t>7){n.error=!0;break}g-1>=0&&e[g-1]===":"&&(c=!0);continue}else if(y==="%"){if(!h())break;l=!0}else{s.push(y);continue}}return s.length&&(l?n.zone=s.join(""):f?o.push(s.join("")):o.push(Ku(s))),n.address=o.join(""),n}function wv(e,t={}){if(Ev(e,":")<2)return{host:e,isIPV6:!1};const n=ZM(e);if(n.error)return{host:e,isIPV6:!1};{let o=n.address,s=n.address;return n.zone&&(o+="%"+n.zone,s+="%25"+n.zone),{host:o,escapedHost:s,isIPV6:!0}}}function XM(e,t){let n="",o=!0;const s=e.length;for(let l=0;l<s;l++){const c=e[l];c==="0"&&o?(l+1<=s&&e[l+1]===t||l+1===s)&&(n+=c,o=!1):(c===t?o=!0:o=!1,n+=c)}return n}function Ev(e,t){let n=0;for(let o=0;o<e.length;o++)e[o]===t&&n++;return n}const Ah=/^\.\.?\//u,Ch=/^\/\.(?:\/|$)/u,Oh=/^\/\.\.(?:\/|$)/u,QM=/^\/?(?:.|\n)*?(?=\/|$)/u;function e5(e){const t=[];for(;e.length;)if(e.match(Ah))e=e.replace(Ah,"");else if(e.match(Ch))e=e.replace(Ch,"/");else if(e.match(Oh))e=e.replace(Oh,"/"),t.pop();else if(e==="."||e==="..")e="";else{const n=e.match(QM);if(n){const o=n[0];e=e.slice(o.length),t.push(o)}else throw new Error("Unexpected dot segment condition")}return t.join("")}function t5(e,t){const n=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=n(e.scheme)),e.userinfo!==void 0&&(e.userinfo=n(e.userinfo)),e.host!==void 0&&(e.host=n(e.host)),e.path!==void 0&&(e.path=n(e.path)),e.query!==void 0&&(e.query=n(e.query)),e.fragment!==void 0&&(e.fragment=n(e.fragment)),e}function r5(e,t){const n=[];if(e.userinfo!==void 0&&(n.push(e.userinfo),n.push("@")),e.host!==void 0){let o=unescape(e.host);const s=bv(o);if(s.isIPV4)o=s.host;else{const l=wv(s.host,{isIPV4:!1});l.isIPV6===!0?o=`[${l.escapedHost}]`:o=e.host}n.push(o)}return(typeof e.port=="number"||typeof e.port=="string")&&(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var n5={recomposeAuthority:r5,normalizeComponentEncoding:t5,removeDotSegments:e5,normalizeIPv4:bv,normalizeIPv6:wv,stringArrayToHexStripped:Ku};const a5=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,o5=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Sv(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function Av(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function Cv(e){const t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function i5(e){return e.secure=Sv(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function s5(e){if((e.port===(Sv(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,n]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}function u5(e,t){if(!e.path)return e.error="URN can not be parsed",e;const n=e.path.match(o5);if(n){const o=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const s=`${o}:${t.nid||e.nid}`,l=Nl[s];e.path=void 0,l&&(e=l.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function l5(e,t){const n=t.scheme||e.scheme||"urn",o=e.nid.toLowerCase(),s=`${n}:${t.nid||o}`,l=Nl[s];l&&(e=l.serialize(e,t));const c=e,f=e.nss;return c.path=`${o||t.nid}:${f}`,t.skipEscape=!0,c}function c5(e,t){const n=e;return n.uuid=n.nss,n.nss=void 0,!t.tolerant&&(!n.uuid||!a5.test(n.uuid))&&(n.error=n.error||"UUID is not valid."),n}function d5(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t}const Ov={scheme:"http",domainHost:!0,parse:Av,serialize:Cv},f5={scheme:"https",domainHost:Ov.domainHost,parse:Av,serialize:Cv},ei={scheme:"ws",domainHost:!0,parse:i5,serialize:s5},p5={scheme:"wss",domainHost:ei.domainHost,parse:ei.parse,serialize:ei.serialize},h5={scheme:"urn",parse:u5,serialize:l5,skipNormalize:!0},m5={scheme:"urn:uuid",parse:c5,serialize:d5,skipNormalize:!0},Nl={http:Ov,https:f5,ws:ei,wss:p5,urn:h5,"urn:uuid":m5};var g5=Nl;const{normalizeIPv6:v5,normalizeIPv4:y5,removeDotSegments:Ca,recomposeAuthority:_5,normalizeComponentEncoding:zo}=n5,Dl=g5;function $5(e,t){return typeof e=="string"?e=or(Cr(e,t),t):typeof e=="object"&&(e=Cr(or(e,t),t)),e}function b5(e,t,n){const o=Object.assign({scheme:"null"},n),s=Tv(Cr(e,o),Cr(t,o),o,!0);return or(s,{...o,skipEscape:!0})}function Tv(e,t,n,o){const s={};return o||(e=Cr(or(e,n),n),t=Cr(or(t,n),n)),n=n||{},!n.tolerant&&t.scheme?(s.scheme=t.scheme,s.userinfo=t.userinfo,s.host=t.host,s.port=t.port,s.path=Ca(t.path||""),s.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(s.userinfo=t.userinfo,s.host=t.host,s.port=t.port,s.path=Ca(t.path||""),s.query=t.query):(t.path?(t.path.charAt(0)==="/"?s.path=Ca(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?s.path="/"+t.path:e.path?s.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:s.path=t.path,s.path=Ca(s.path)),s.query=t.query):(s.path=e.path,t.query!==void 0?s.query=t.query:s.query=e.query),s.userinfo=e.userinfo,s.host=e.host,s.port=e.port),s.scheme=e.scheme),s.fragment=t.fragment,s}function w5(e,t,n){return typeof e=="string"?(e=unescape(e),e=or(zo(Cr(e,n),!0),{...n,skipEscape:!0})):typeof e=="object"&&(e=or(zo(e,!0),{...n,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=or(zo(Cr(t,n),!0),{...n,skipEscape:!0})):typeof t=="object"&&(t=or(zo(t,!0),{...n,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function or(e,t){const n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},o=Object.assign({},t),s=[],l=Dl[(o.scheme||n.scheme||"").toLowerCase()];l&&l.serialize&&l.serialize(n,o),n.path!==void 0&&(o.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),n.scheme!==void 0&&(n.path=n.path.split("%3A").join(":")))),o.reference!=="suffix"&&n.scheme&&s.push(n.scheme,":");const c=_5(n,o);if(c!==void 0&&(o.reference!=="suffix"&&s.push("//"),s.push(c),n.path&&n.path.charAt(0)!=="/"&&s.push("/")),n.path!==void 0){let f=n.path;!o.absolutePath&&(!l||!l.absolutePath)&&(f=Ca(f)),c===void 0&&(f=f.replace(/^\/\//u,"/%2F")),s.push(f)}return n.query!==void 0&&s.push("?",n.query),n.fragment!==void 0&&s.push("#",n.fragment),s.join("")}const E5=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function S5(e){let t=0;for(let n=0,o=e.length;n<o;++n)if(t=e.charCodeAt(n),t>126||E5[t])return!0;return!1}const A5=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Cr(e,t){const n=Object.assign({},t),o={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},s=e.indexOf("%")!==-1;let l=!1;n.reference==="suffix"&&(e=(n.scheme?n.scheme+":":"")+"//"+e);const c=e.match(A5);if(c){if(o.scheme=c[1],o.userinfo=c[3],o.host=c[4],o.port=parseInt(c[5],10),o.path=c[6]||"",o.query=c[7],o.fragment=c[8],isNaN(o.port)&&(o.port=c[5]),o.host){const h=y5(o.host);if(h.isIPV4===!1){const g=v5(h.host,{isIPV4:!1});o.host=g.host.toLowerCase(),l=g.isIPV6}else o.host=h.host,l=!0}o.scheme===void 0&&o.userinfo===void 0&&o.host===void 0&&o.port===void 0&&!o.path&&o.query===void 0?o.reference="same-document":o.scheme===void 0?o.reference="relative":o.fragment===void 0?o.reference="absolute":o.reference="uri",n.reference&&n.reference!=="suffix"&&n.reference!==o.reference&&(o.error=o.error||"URI is not a "+n.reference+" reference.");const f=Dl[(n.scheme||o.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!f||!f.unicodeSupport)&&o.host&&(n.domainHost||f&&f.domainHost)&&l===!1&&S5(o.host))try{o.host=URL.domainToASCII(o.host.toLowerCase())}catch(h){o.error=o.error||"Host's domain name can not be converted to ASCII: "+h}(!f||f&&!f.skipNormalize)&&(s&&o.scheme!==void 0&&(o.scheme=unescape(o.scheme)),s&&o.host!==void 0&&(o.host=unescape(o.host)),o.path!==void 0&&o.path.length&&(o.path=escape(unescape(o.path))),o.fragment!==void 0&&o.fragment.length&&(o.fragment=encodeURI(decodeURIComponent(o.fragment)))),f&&f.parse&&f.parse(o,n)}else o.error=o.error||"URI can not be parsed.";return o}const Ll={SCHEMES:Dl,normalize:$5,resolve:b5,resolveComponents:Tv,equal:w5,serialize:or,parse:Cr};xi.exports=Ll;xi.exports.default=Ll;xi.exports.fastUri=Ll;var C5=xi.exports;Object.defineProperty(kl,"__esModule",{value:!0});const Iv=C5;Iv.code='require("ajv/dist/runtime/uri").default';kl.default=Iv;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Qt;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=ge;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const o=za,s=Xn,l=fn,c=Et,f=ge,h=ot,g=He,y=Y,w=HM,C=kl,I=(H,D)=>new RegExp(H,D);I.code="new RegExp";const O=["removeAdditional","useDefaults","coerceTypes"],N=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),A={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},R=200;function M(H){var D,q,L,_,$,T,j,W,J,ie,we,Be,et,Ye,zt,na,Ct,vn,aa,ur,pt,lr,Pr,oa,cr;const Jr=H.strict,dr=(D=H.code)===null||D===void 0?void 0:D.optimize,fr=dr===!0||dr===void 0?1:dr||0,yn=(L=(q=H.code)===null||q===void 0?void 0:q.regExp)!==null&&L!==void 0?L:I,ia=(_=H.uriResolver)!==null&&_!==void 0?_:C.default;return{strictSchema:(T=($=H.strictSchema)!==null&&$!==void 0?$:Jr)!==null&&T!==void 0?T:!0,strictNumbers:(W=(j=H.strictNumbers)!==null&&j!==void 0?j:Jr)!==null&&W!==void 0?W:!0,strictTypes:(ie=(J=H.strictTypes)!==null&&J!==void 0?J:Jr)!==null&&ie!==void 0?ie:"log",strictTuples:(Be=(we=H.strictTuples)!==null&&we!==void 0?we:Jr)!==null&&Be!==void 0?Be:"log",strictRequired:(Ye=(et=H.strictRequired)!==null&&et!==void 0?et:Jr)!==null&&Ye!==void 0?Ye:!1,code:H.code?{...H.code,optimize:fr,regExp:yn}:{optimize:fr,regExp:yn},loopRequired:(zt=H.loopRequired)!==null&&zt!==void 0?zt:R,loopEnum:(na=H.loopEnum)!==null&&na!==void 0?na:R,meta:(Ct=H.meta)!==null&&Ct!==void 0?Ct:!0,messages:(vn=H.messages)!==null&&vn!==void 0?vn:!0,inlineRefs:(aa=H.inlineRefs)!==null&&aa!==void 0?aa:!0,schemaId:(ur=H.schemaId)!==null&&ur!==void 0?ur:"$id",addUsedSchema:(pt=H.addUsedSchema)!==null&&pt!==void 0?pt:!0,validateSchema:(lr=H.validateSchema)!==null&&lr!==void 0?lr:!0,validateFormats:(Pr=H.validateFormats)!==null&&Pr!==void 0?Pr:!0,unicodeRegExp:(oa=H.unicodeRegExp)!==null&&oa!==void 0?oa:!0,int32range:(cr=H.int32range)!==null&&cr!==void 0?cr:!0,uriResolver:ia}}class U{constructor(D={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,D=this.opts={...D,...M(D)};const{es5:q,lines:L}=this.opts.code;this.scope=new f.ValueScope({scope:{},prefixes:N,es5:q,lines:L}),this.logger=Ee(D.logger);const _=D.validateFormats;D.validateFormats=!1,this.RULES=(0,l.getRules)(),G.call(this,A,D,"NOT SUPPORTED"),G.call(this,b,D,"DEPRECATED","warn"),this._metaOpts=ue.call(this),D.formats&&he.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),D.keywords&&te.call(this,D.keywords),typeof D.meta=="object"&&this.addMetaSchema(D.meta),X.call(this),D.validateFormats=_}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:D,meta:q,schemaId:L}=this.opts;let _=w;L==="id"&&(_={...w},_.id=_.$id,delete _.$id),q&&D&&this.addMetaSchema(_,_[L],!1)}defaultMeta(){const{meta:D,schemaId:q}=this.opts;return this.opts.defaultMeta=typeof D=="object"?D[q]||D:void 0}validate(D,q){let L;if(typeof D=="string"){if(L=this.getSchema(D),!L)throw new Error(`no schema with key or ref "${D}"`)}else L=this.compile(D);const _=L(q);return"$async"in L||(this.errors=L.errors),_}compile(D,q){const L=this._addSchema(D,q);return L.validate||this._compileSchemaEnv(L)}compileAsync(D,q){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:L}=this.opts;return _.call(this,D,q);async function _(ie,we){await $.call(this,ie.$schema);const Be=this._addSchema(ie,we);return Be.validate||T.call(this,Be)}async function $(ie){ie&&!this.getSchema(ie)&&await _.call(this,{$ref:ie},!0)}async function T(ie){try{return this._compileSchemaEnv(ie)}catch(we){if(!(we instanceof s.default))throw we;return j.call(this,we),await W.call(this,we.missingSchema),T.call(this,ie)}}function j({missingSchema:ie,missingRef:we}){if(this.refs[ie])throw new Error(`AnySchema ${ie} is loaded but ${we} cannot be resolved`)}async function W(ie){const we=await J.call(this,ie);this.refs[ie]||await $.call(this,we.$schema),this.refs[ie]||this.addSchema(we,ie,q)}async function J(ie){const we=this._loading[ie];if(we)return we;try{return await(this._loading[ie]=L(ie))}finally{delete this._loading[ie]}}}addSchema(D,q,L,_=this.opts.validateSchema){if(Array.isArray(D)){for(const T of D)this.addSchema(T,void 0,L,_);return this}let $;if(typeof D=="object"){const{schemaId:T}=this.opts;if($=D[T],$!==void 0&&typeof $!="string")throw new Error(`schema ${T} must be string`)}return q=(0,h.normalizeId)(q||$),this._checkUnique(q),this.schemas[q]=this._addSchema(D,L,q,_,!0),this}addMetaSchema(D,q,L=this.opts.validateSchema){return this.addSchema(D,q,!0,L),this}validateSchema(D,q){if(typeof D=="boolean")return!0;let L;if(L=D.$schema,L!==void 0&&typeof L!="string")throw new Error("$schema must be a string");if(L=L||this.opts.defaultMeta||this.defaultMeta(),!L)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const _=this.validate(L,D);if(!_&&q){const $="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error($);else throw new Error($)}return _}getSchema(D){let q;for(;typeof(q=se.call(this,D))=="string";)D=q;if(q===void 0){const{schemaId:L}=this.opts,_=new c.SchemaEnv({schema:{},schemaId:L});if(q=c.resolveSchema.call(this,_,D),!q)return;this.refs[D]=q}return q.validate||this._compileSchemaEnv(q)}removeSchema(D){if(D instanceof RegExp)return this._removeAllSchemas(this.schemas,D),this._removeAllSchemas(this.refs,D),this;switch(typeof D){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const q=se.call(this,D);return typeof q=="object"&&this._cache.delete(q.schema),delete this.schemas[D],delete this.refs[D],this}case"object":{const q=D;this._cache.delete(q);let L=D[this.opts.schemaId];return L&&(L=(0,h.normalizeId)(L),delete this.schemas[L],delete this.refs[L]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(D){for(const q of D)this.addKeyword(q);return this}addKeyword(D,q){let L;if(typeof D=="string")L=D,typeof q=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),q.keyword=L);else if(typeof D=="object"&&q===void 0){if(q=D,L=q.keyword,Array.isArray(L)&&!L.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(We.call(this,L,q),!q)return(0,y.eachItem)(L,$=>dt.call(this,$)),this;At.call(this,q);const _={...q,type:(0,g.getJSONTypes)(q.type),schemaType:(0,g.getJSONTypes)(q.schemaType)};return(0,y.eachItem)(L,_.type.length===0?$=>dt.call(this,$,_):$=>_.type.forEach(T=>dt.call(this,$,_,T))),this}getKeyword(D){const q=this.RULES.all[D];return typeof q=="object"?q.definition:!!q}removeKeyword(D){const{RULES:q}=this;delete q.keywords[D],delete q.all[D];for(const L of q.rules){const _=L.rules.findIndex($=>$.keyword===D);_>=0&&L.rules.splice(_,1)}return this}addFormat(D,q){return typeof q=="string"&&(q=new RegExp(q)),this.formats[D]=q,this}errorsText(D=this.errors,{separator:q=", ",dataVar:L="data"}={}){return!D||D.length===0?"No errors":D.map(_=>`${L}${_.instancePath} ${_.message}`).reduce((_,$)=>_+q+$)}$dataMetaSchema(D,q){const L=this.RULES.all;D=JSON.parse(JSON.stringify(D));for(const _ of q){const $=_.split("/").slice(1);let T=D;for(const j of $)T=T[j];for(const j in L){const W=L[j];if(typeof W!="object")continue;const{$data:J}=W.definition,ie=T[j];J&&ie&&(T[j]=Ir(ie))}}return D}_removeAllSchemas(D,q){for(const L in D){const _=D[L];(!q||q.test(L))&&(typeof _=="string"?delete D[L]:_&&!_.meta&&(this._cache.delete(_.schema),delete D[L]))}}_addSchema(D,q,L,_=this.opts.validateSchema,$=this.opts.addUsedSchema){let T;const{schemaId:j}=this.opts;if(typeof D=="object")T=D[j];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof D!="boolean")throw new Error("schema must be object or boolean")}let W=this._cache.get(D);if(W!==void 0)return W;L=(0,h.normalizeId)(T||L);const J=h.getSchemaRefs.call(this,D,L);return W=new c.SchemaEnv({schema:D,schemaId:j,meta:q,baseId:L,localRefs:J}),this._cache.set(W.schema,W),$&&!L.startsWith("#")&&(L&&this._checkUnique(L),this.refs[L]=W),_&&this.validateSchema(D,!0),W}_checkUnique(D){if(this.schemas[D]||this.refs[D])throw new Error(`schema with key or id "${D}" already exists`)}_compileSchemaEnv(D){if(D.meta?this._compileMetaSchema(D):c.compileSchema.call(this,D),!D.validate)throw new Error("ajv implementation error");return D.validate}_compileMetaSchema(D){const q=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,D)}finally{this.opts=q}}}U.ValidationError=o.default,U.MissingRefError=s.default,e.default=U;function G(H,D,q,L="error"){for(const _ in H){const $=_;$ in D&&this.logger[L](`${q}: option ${_}. ${H[$]}`)}}function se(H){return H=(0,h.normalizeId)(H),this.schemas[H]||this.refs[H]}function X(){const H=this.opts.schemas;if(H)if(Array.isArray(H))this.addSchema(H);else for(const D in H)this.addSchema(H[D],D)}function he(){for(const H in this.opts.formats){const D=this.opts.formats[H];D&&this.addFormat(H,D)}}function te(H){if(Array.isArray(H)){this.addVocabulary(H);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const D in H){const q=H[D];q.keyword||(q.keyword=D),this.addKeyword(q)}}function ue(){const H={...this.opts};for(const D of O)delete H[D];return H}const Te={log(){},warn(){},error(){}};function Ee(H){if(H===!1)return Te;if(H===void 0)return console;if(H.log&&H.warn&&H.error)return H;throw new Error("logger must implement log, warn and error methods")}const Je=/^[a-z_$][a-z0-9_$:-]*$/i;function We(H,D){const{RULES:q}=this;if((0,y.eachItem)(H,L=>{if(q.keywords[L])throw new Error(`Keyword ${L} is already defined`);if(!Je.test(L))throw new Error(`Keyword ${L} has invalid name`)}),!!D&&D.$data&&!("code"in D||"validate"in D))throw new Error('$data keyword must have "code" or "validate" function')}function dt(H,D,q){var L;const _=D==null?void 0:D.post;if(q&&_)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:$}=this;let T=_?$.post:$.rules.find(({type:W})=>W===q);if(T||(T={type:q,rules:[]},$.rules.push(T)),$.keywords[H]=!0,!D)return;const j={keyword:H,definition:{...D,type:(0,g.getJSONTypes)(D.type),schemaType:(0,g.getJSONTypes)(D.schemaType)}};D.before?Tr.call(this,T,j,D.before):T.rules.push(j),$.all[H]=j,(L=D.implements)===null||L===void 0||L.forEach(W=>this.addKeyword(W))}function Tr(H,D,q){const L=H.rules.findIndex(_=>_.keyword===q);L>=0?H.rules.splice(L,0,D):(H.rules.push(D),this.logger.warn(`rule ${q} is not defined`))}function At(H){let{metaSchema:D}=H;D!==void 0&&(H.$data&&this.opts.$data&&(D=Ir(D)),H.validateSchema=this.compile(D,!0))}const ft={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Ir(H){return{anyOf:[H,ft]}}})(Ug);var Bl={},Ml={},Fl={};Object.defineProperty(Fl,"__esModule",{value:!0});const O5={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Fl.default=O5;var pn={};Object.defineProperty(pn,"__esModule",{value:!0});pn.callRef=pn.getValidate=void 0;const T5=Xn,Th=ye,wt=ge,Dn=sr,Ih=Et,qo=Y,I5={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:o}=e,{baseId:s,schemaEnv:l,validateName:c,opts:f,self:h}=o,{root:g}=l;if((n==="#"||n==="#/")&&s===g.baseId)return w();const y=Ih.resolveRef.call(h,g,s,n);if(y===void 0)throw new T5.default(o.opts.uriResolver,s,n);if(y instanceof Ih.SchemaEnv)return C(y);return I(y);function w(){if(l===g)return ti(e,c,l,l.$async);const O=t.scopeValue("root",{ref:g});return ti(e,(0,wt._)`${O}.validate`,g,g.$async)}function C(O){const N=Pv(e,O);ti(e,N,O,O.$async)}function I(O){const N=t.scopeValue("schema",f.code.source===!0?{ref:O,code:(0,wt.stringify)(O)}:{ref:O}),A=t.name("valid"),b=e.subschema({schema:O,dataTypes:[],schemaPath:wt.nil,topSchemaRef:N,errSchemaPath:n},A);e.mergeEvaluated(b),e.ok(A)}}};function Pv(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,wt._)`${n.scopeValue("wrapper",{ref:t})}.validate`}pn.getValidate=Pv;function ti(e,t,n,o){const{gen:s,it:l}=e,{allErrors:c,schemaEnv:f,opts:h}=l,g=h.passContext?Dn.default.this:wt.nil;o?y():w();function y(){if(!f.$async)throw new Error("async schema referenced by sync schema");const O=s.let("valid");s.try(()=>{s.code((0,wt._)`await ${(0,Th.callValidateCode)(e,t,g)}`),I(t),c||s.assign(O,!0)},N=>{s.if((0,wt._)`!(${N} instanceof ${l.ValidationError})`,()=>s.throw(N)),C(N),c||s.assign(O,!1)}),e.ok(O)}function w(){e.result((0,Th.callValidateCode)(e,t,g),()=>I(t),()=>C(t))}function C(O){const N=(0,wt._)`${O}.errors`;s.assign(Dn.default.vErrors,(0,wt._)`${Dn.default.vErrors} === null ? ${N} : ${Dn.default.vErrors}.concat(${N})`),s.assign(Dn.default.errors,(0,wt._)`${Dn.default.vErrors}.length`)}function I(O){var N;if(!l.opts.unevaluated)return;const A=(N=n==null?void 0:n.validate)===null||N===void 0?void 0:N.evaluated;if(l.props!==!0)if(A&&!A.dynamicProps)A.props!==void 0&&(l.props=qo.mergeEvaluated.props(s,A.props,l.props));else{const b=s.var("props",(0,wt._)`${O}.evaluated.props`);l.props=qo.mergeEvaluated.props(s,b,l.props,wt.Name)}if(l.items!==!0)if(A&&!A.dynamicItems)A.items!==void 0&&(l.items=qo.mergeEvaluated.items(s,A.items,l.items));else{const b=s.var("items",(0,wt._)`${O}.evaluated.items`);l.items=qo.mergeEvaluated.items(s,b,l.items,wt.Name)}}}pn.callRef=ti;pn.default=I5;Object.defineProperty(Ml,"__esModule",{value:!0});const P5=Fl,R5=pn,k5=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",P5.default,R5.default];Ml.default=k5;var jl={},xl={};Object.defineProperty(xl,"__esModule",{value:!0});const hi=ge,Vr=hi.operators,mi={maximum:{okStr:"<=",ok:Vr.LTE,fail:Vr.GT},minimum:{okStr:">=",ok:Vr.GTE,fail:Vr.LT},exclusiveMaximum:{okStr:"<",ok:Vr.LT,fail:Vr.GTE},exclusiveMinimum:{okStr:">",ok:Vr.GT,fail:Vr.LTE}},N5={message:({keyword:e,schemaCode:t})=>(0,hi.str)`must be ${mi[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,hi._)`{comparison: ${mi[e].okStr}, limit: ${t}}`},D5={keyword:Object.keys(mi),type:"number",schemaType:"number",$data:!0,error:N5,code(e){const{keyword:t,data:n,schemaCode:o}=e;e.fail$data((0,hi._)`${n} ${mi[t].fail} ${o} || isNaN(${n})`)}};xl.default=D5;var Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});const Ia=ge,L5={message:({schemaCode:e})=>(0,Ia.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Ia._)`{multipleOf: ${e}}`},B5={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:L5,code(e){const{gen:t,data:n,schemaCode:o,it:s}=e,l=s.opts.multipleOfPrecision,c=t.let("res"),f=l?(0,Ia._)`Math.abs(Math.round(${c}) - ${c}) > 1e-${l}`:(0,Ia._)`${c} !== parseInt(${c})`;e.fail$data((0,Ia._)`(${o} === 0 || (${c} = ${n}/${o}, ${f}))`)}};Vl.default=B5;var Ul={},Wl={};Object.defineProperty(Wl,"__esModule",{value:!0});function Rv(e){const t=e.length;let n=0,o=0,s;for(;o<t;)n++,s=e.charCodeAt(o++),s>=55296&&s<=56319&&o<t&&(s=e.charCodeAt(o),(s&64512)===56320&&o++);return n}Wl.default=Rv;Rv.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(Ul,"__esModule",{value:!0});const ln=ge,M5=Y,F5=Wl,j5={message({keyword:e,schemaCode:t}){const n=e==="maxLength"?"more":"fewer";return(0,ln.str)`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>(0,ln._)`{limit: ${e}}`},x5={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:j5,code(e){const{keyword:t,data:n,schemaCode:o,it:s}=e,l=t==="maxLength"?ln.operators.GT:ln.operators.LT,c=s.opts.unicode===!1?(0,ln._)`${n}.length`:(0,ln._)`${(0,M5.useFunc)(e.gen,F5.default)}(${n})`;e.fail$data((0,ln._)`${c} ${l} ${o}`)}};Ul.default=x5;var zl={};Object.defineProperty(zl,"__esModule",{value:!0});const V5=ye,gi=ge,U5={message:({schemaCode:e})=>(0,gi.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,gi._)`{pattern: ${e}}`},W5={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:U5,code(e){const{data:t,$data:n,schema:o,schemaCode:s,it:l}=e,c=l.opts.unicodeRegExp?"u":"",f=n?(0,gi._)`(new RegExp(${s}, ${c}))`:(0,V5.usePattern)(e,o);e.fail$data((0,gi._)`!${f}.test(${t})`)}};zl.default=W5;var ql={};Object.defineProperty(ql,"__esModule",{value:!0});const Pa=ge,z5={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,Pa.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,Pa._)`{limit: ${e}}`},q5={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:z5,code(e){const{keyword:t,data:n,schemaCode:o}=e,s=t==="maxProperties"?Pa.operators.GT:Pa.operators.LT;e.fail$data((0,Pa._)`Object.keys(${n}).length ${s} ${o}`)}};ql.default=q5;var Gl={};Object.defineProperty(Gl,"__esModule",{value:!0});const Sa=ye,Ra=ge,G5=Y,H5={message:({params:{missingProperty:e}})=>(0,Ra.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Ra._)`{missingProperty: ${e}}`},K5={keyword:"required",type:"object",schemaType:"array",$data:!0,error:H5,code(e){const{gen:t,schema:n,schemaCode:o,data:s,$data:l,it:c}=e,{opts:f}=c;if(!l&&n.length===0)return;const h=n.length>=f.loopRequired;if(c.allErrors?g():y(),f.strictRequired){const I=e.parentSchema.properties,{definedProperties:O}=e.it;for(const N of n)if((I==null?void 0:I[N])===void 0&&!O.has(N)){const A=c.schemaEnv.baseId+c.errSchemaPath,b=`required property "${N}" is not defined at "${A}" (strictRequired)`;(0,G5.checkStrictMode)(c,b,c.opts.strictRequired)}}function g(){if(h||l)e.block$data(Ra.nil,w);else for(const I of n)(0,Sa.checkReportMissingProp)(e,I)}function y(){const I=t.let("missing");if(h||l){const O=t.let("valid",!0);e.block$data(O,()=>C(I,O)),e.ok(O)}else t.if((0,Sa.checkMissingProp)(e,n,I)),(0,Sa.reportMissingProp)(e,I),t.else()}function w(){t.forOf("prop",o,I=>{e.setParams({missingProperty:I}),t.if((0,Sa.noPropertyInData)(t,s,I,f.ownProperties),()=>e.error())})}function C(I,O){e.setParams({missingProperty:I}),t.forOf(I,o,()=>{t.assign(O,(0,Sa.propertyInData)(t,s,I,f.ownProperties)),t.if((0,Ra.not)(O),()=>{e.error(),t.break()})},Ra.nil)}}};Gl.default=K5;var Hl={};Object.defineProperty(Hl,"__esModule",{value:!0});const ka=ge,J5={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,ka.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,ka._)`{limit: ${e}}`},Y5={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:J5,code(e){const{keyword:t,data:n,schemaCode:o}=e,s=t==="maxItems"?ka.operators.GT:ka.operators.LT;e.fail$data((0,ka._)`${n}.length ${s} ${o}`)}};Hl.default=Y5;var Kl={},qa={};Object.defineProperty(qa,"__esModule",{value:!0});const kv=av;kv.code='require("ajv/dist/runtime/equal").default';qa.default=kv;Object.defineProperty(Kl,"__esModule",{value:!0});const $u=He,at=ge,Z5=Y,X5=qa,Q5={message:({params:{i:e,j:t}})=>(0,at.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,at._)`{i: ${e}, j: ${t}}`},e6={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Q5,code(e){const{gen:t,data:n,$data:o,schema:s,parentSchema:l,schemaCode:c,it:f}=e;if(!o&&!s)return;const h=t.let("valid"),g=l.items?(0,$u.getSchemaTypes)(l.items):[];e.block$data(h,y,(0,at._)`${c} === false`),e.ok(h);function y(){const O=t.let("i",(0,at._)`${n}.length`),N=t.let("j");e.setParams({i:O,j:N}),t.assign(h,!0),t.if((0,at._)`${O} > 1`,()=>(w()?C:I)(O,N))}function w(){return g.length>0&&!g.some(O=>O==="object"||O==="array")}function C(O,N){const A=t.name("item"),b=(0,$u.checkDataTypes)(g,A,f.opts.strictNumbers,$u.DataType.Wrong),R=t.const("indices",(0,at._)`{}`);t.for((0,at._)`;${O}--;`,()=>{t.let(A,(0,at._)`${n}[${O}]`),t.if(b,(0,at._)`continue`),g.length>1&&t.if((0,at._)`typeof ${A} == "string"`,(0,at._)`${A} += "_"`),t.if((0,at._)`typeof ${R}[${A}] == "number"`,()=>{t.assign(N,(0,at._)`${R}[${A}]`),e.error(),t.assign(h,!1).break()}).code((0,at._)`${R}[${A}] = ${O}`)})}function I(O,N){const A=(0,Z5.useFunc)(t,X5.default),b=t.name("outer");t.label(b).for((0,at._)`;${O}--;`,()=>t.for((0,at._)`${N} = ${O}; ${N}--;`,()=>t.if((0,at._)`${A}(${n}[${O}], ${n}[${N}])`,()=>{e.error(),t.assign(h,!1).break(b)})))}}};Kl.default=e6;var Jl={};Object.defineProperty(Jl,"__esModule",{value:!0});const Ju=ge,t6=Y,r6=qa,n6={message:"must be equal to constant",params:({schemaCode:e})=>(0,Ju._)`{allowedValue: ${e}}`},a6={keyword:"const",$data:!0,error:n6,code(e){const{gen:t,data:n,$data:o,schemaCode:s,schema:l}=e;o||l&&typeof l=="object"?e.fail$data((0,Ju._)`!${(0,t6.useFunc)(t,r6.default)}(${n}, ${s})`):e.fail((0,Ju._)`${l} !== ${n}`)}};Jl.default=a6;var Yl={};Object.defineProperty(Yl,"__esModule",{value:!0});const Oa=ge,o6=Y,i6=qa,s6={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Oa._)`{allowedValues: ${e}}`},u6={keyword:"enum",schemaType:"array",$data:!0,error:s6,code(e){const{gen:t,data:n,$data:o,schema:s,schemaCode:l,it:c}=e;if(!o&&s.length===0)throw new Error("enum must have non-empty array");const f=s.length>=c.opts.loopEnum;let h;const g=()=>h??(h=(0,o6.useFunc)(t,i6.default));let y;if(f||o)y=t.let("valid"),e.block$data(y,w);else{if(!Array.isArray(s))throw new Error("ajv implementation error");const I=t.const("vSchema",l);y=(0,Oa.or)(...s.map((O,N)=>C(I,N)))}e.pass(y);function w(){t.assign(y,!1),t.forOf("v",l,I=>t.if((0,Oa._)`${g()}(${n}, ${I})`,()=>t.assign(y,!0).break()))}function C(I,O){const N=s[O];return typeof N=="object"&&N!==null?(0,Oa._)`${g()}(${n}, ${I}[${O}])`:(0,Oa._)`${n} === ${N}`}}};Yl.default=u6;Object.defineProperty(jl,"__esModule",{value:!0});const l6=xl,c6=Vl,d6=Ul,f6=zl,p6=ql,h6=Gl,m6=Hl,g6=Kl,v6=Jl,y6=Yl,_6=[l6.default,c6.default,d6.default,f6.default,p6.default,h6.default,m6.default,g6.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},v6.default,y6.default];jl.default=_6;var Zl={},Qn={};Object.defineProperty(Qn,"__esModule",{value:!0});Qn.validateAdditionalItems=void 0;const cn=ge,Yu=Y,$6={message:({params:{len:e}})=>(0,cn.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,cn._)`{limit: ${e}}`},b6={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:$6,code(e){const{parentSchema:t,it:n}=e,{items:o}=t;if(!Array.isArray(o)){(0,Yu.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}Nv(e,o)}};function Nv(e,t){const{gen:n,schema:o,data:s,keyword:l,it:c}=e;c.items=!0;const f=n.const("len",(0,cn._)`${s}.length`);if(o===!1)e.setParams({len:t.length}),e.pass((0,cn._)`${f} <= ${t.length}`);else if(typeof o=="object"&&!(0,Yu.alwaysValidSchema)(c,o)){const g=n.var("valid",(0,cn._)`${f} <= ${t.length}`);n.if((0,cn.not)(g),()=>h(g)),e.ok(g)}function h(g){n.forRange("i",t.length,f,y=>{e.subschema({keyword:l,dataProp:y,dataPropType:Yu.Type.Num},g),c.allErrors||n.if((0,cn.not)(g),()=>n.break())})}}Qn.validateAdditionalItems=Nv;Qn.default=b6;var Xl={},ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.validateTuple=void 0;const Ph=ge,ri=Y,w6=ye,E6={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return Dv(e,"additionalItems",t);n.items=!0,!(0,ri.alwaysValidSchema)(n,t)&&e.ok((0,w6.validateArray)(e))}};function Dv(e,t,n=e.schema){const{gen:o,parentSchema:s,data:l,keyword:c,it:f}=e;y(s),f.opts.unevaluated&&n.length&&f.items!==!0&&(f.items=ri.mergeEvaluated.items(o,n.length,f.items));const h=o.name("valid"),g=o.const("len",(0,Ph._)`${l}.length`);n.forEach((w,C)=>{(0,ri.alwaysValidSchema)(f,w)||(o.if((0,Ph._)`${g} > ${C}`,()=>e.subschema({keyword:c,schemaProp:C,dataProp:C},h)),e.ok(h))});function y(w){const{opts:C,errSchemaPath:I}=f,O=n.length,N=O===w.minItems&&(O===w.maxItems||w[t]===!1);if(C.strictTuples&&!N){const A=`"${c}" is ${O}-tuple, but minItems or maxItems/${t} are not specified or different at path "${I}"`;(0,ri.checkStrictMode)(f,A,C.strictTuples)}}}ea.validateTuple=Dv;ea.default=E6;Object.defineProperty(Xl,"__esModule",{value:!0});const S6=ea,A6={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,S6.validateTuple)(e,"items")};Xl.default=A6;var Ql={};Object.defineProperty(Ql,"__esModule",{value:!0});const Rh=ge,C6=Y,O6=ye,T6=Qn,I6={message:({params:{len:e}})=>(0,Rh.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Rh._)`{limit: ${e}}`},P6={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:I6,code(e){const{schema:t,parentSchema:n,it:o}=e,{prefixItems:s}=n;o.items=!0,!(0,C6.alwaysValidSchema)(o,t)&&(s?(0,T6.validateAdditionalItems)(e,s):e.ok((0,O6.validateArray)(e)))}};Ql.default=P6;var ec={};Object.defineProperty(ec,"__esModule",{value:!0});const Ut=ge,Go=Y,R6={message:({params:{min:e,max:t}})=>t===void 0?(0,Ut.str)`must contain at least ${e} valid item(s)`:(0,Ut.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Ut._)`{minContains: ${e}}`:(0,Ut._)`{minContains: ${e}, maxContains: ${t}}`},k6={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:R6,code(e){const{gen:t,schema:n,parentSchema:o,data:s,it:l}=e;let c,f;const{minContains:h,maxContains:g}=o;l.opts.next?(c=h===void 0?1:h,f=g):c=1;const y=t.const("len",(0,Ut._)`${s}.length`);if(e.setParams({min:c,max:f}),f===void 0&&c===0){(0,Go.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&c>f){(0,Go.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Go.alwaysValidSchema)(l,n)){let N=(0,Ut._)`${y} >= ${c}`;f!==void 0&&(N=(0,Ut._)`${N} && ${y} <= ${f}`),e.pass(N);return}l.items=!0;const w=t.name("valid");f===void 0&&c===1?I(w,()=>t.if(w,()=>t.break())):c===0?(t.let(w,!0),f!==void 0&&t.if((0,Ut._)`${s}.length > 0`,C)):(t.let(w,!1),C()),e.result(w,()=>e.reset());function C(){const N=t.name("_valid"),A=t.let("count",0);I(N,()=>t.if(N,()=>O(A)))}function I(N,A){t.forRange("i",0,y,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:Go.Type.Num,compositeRule:!0},N),A()})}function O(N){t.code((0,Ut._)`${N}++`),f===void 0?t.if((0,Ut._)`${N} >= ${c}`,()=>t.assign(w,!0).break()):(t.if((0,Ut._)`${N} > ${f}`,()=>t.assign(w,!1).break()),c===1?t.assign(w,!0):t.if((0,Ut._)`${N} >= ${c}`,()=>t.assign(w,!0)))}}};ec.default=k6;var Lv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ge,n=Y,o=ye;e.error={message:({params:{property:h,depsCount:g,deps:y}})=>{const w=g===1?"property":"properties";return(0,t.str)`must have ${w} ${y} when property ${h} is present`},params:({params:{property:h,depsCount:g,deps:y,missingProperty:w}})=>(0,t._)`{property: ${h},
7
7
  missingProperty: ${w},
8
8
  depsCount: ${g},
9
- deps: ${y}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(h){const[g,y]=l(h);c(h,g),f(h,y)}};function l({schema:h}){const g={},y={};for(const w in h){if(w==="__proto__")continue;const C=Array.isArray(h[w])?g:y;C[w]=h[w]}return[g,y]}function c(h,g=h.schema){const{gen:y,data:w,it:C}=h;if(Object.keys(g).length===0)return;const I=y.let("missing");for(const O in g){const N=g[O];if(N.length===0)continue;const A=(0,o.propertyInData)(y,w,O,C.opts.ownProperties);h.setParams({property:O,depsCount:N.length,deps:N.join(", ")}),C.allErrors?y.if(A,()=>{for(const b of N)(0,o.checkReportMissingProp)(h,b)}):(y.if((0,t._)`${A} && (${(0,o.checkMissingProp)(h,N,I)})`),(0,o.reportMissingProp)(h,I),y.else())}}e.validatePropertyDeps=c;function f(h,g=h.schema){const{gen:y,data:w,keyword:C,it:I}=h,O=y.name("valid");for(const N in g)(0,n.alwaysValidSchema)(I,g[N])||(y.if((0,o.propertyInData)(y,w,N,I.opts.ownProperties),()=>{const A=h.subschema({keyword:C,schemaProp:N},O);h.mergeValidEvaluated(A,O)},()=>y.var(O,!0)),h.ok(O))}e.validateSchemaDeps=f,e.default=s})(Lv);var tc={};Object.defineProperty(tc,"__esModule",{value:!0});const Bv=ge,w6=Y,E6={message:"property name must be valid",params:({params:e})=>(0,Bv._)`{propertyName: ${e.propertyName}}`},S6={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:E6,code(e){const{gen:t,schema:n,data:o,it:s}=e;if((0,w6.alwaysValidSchema)(s,n))return;const l=t.name("valid");t.forIn("key",o,c=>{e.setParams({propertyName:c}),e.subschema({keyword:"propertyNames",data:c,dataTypes:["string"],propertyName:c,compositeRule:!0},l),t.if((0,Bv.not)(l),()=>{e.error(!0),s.allErrors||t.break()})}),e.ok(l)}};tc.default=S6;var Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});const Ho=ye,Zt=ge,A6=sr,Ko=Y,C6={message:"must NOT have additional properties",params:({params:e})=>(0,Zt._)`{additionalProperty: ${e.additionalProperty}}`},O6={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:C6,code(e){const{gen:t,schema:n,parentSchema:o,data:s,errsCount:l,it:c}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:f,opts:h}=c;if(c.props=!0,h.removeAdditional!=="all"&&(0,Ko.alwaysValidSchema)(c,n))return;const g=(0,Ho.allSchemaProperties)(o.properties),y=(0,Ho.allSchemaProperties)(o.patternProperties);w(),e.ok((0,Zt._)`${l} === ${A6.default.errors}`);function w(){t.forIn("key",s,A=>{!g.length&&!y.length?O(A):t.if(C(A),()=>O(A))})}function C(A){let b;if(g.length>8){const R=(0,Ko.schemaRefOrVal)(c,o.properties,"properties");b=(0,Ho.isOwnProperty)(t,R,A)}else g.length?b=(0,Zt.or)(...g.map(R=>(0,Zt._)`${A} === ${R}`)):b=Zt.nil;return y.length&&(b=(0,Zt.or)(b,...y.map(R=>(0,Zt._)`${(0,Ho.usePattern)(e,R)}.test(${A})`))),(0,Zt.not)(b)}function I(A){t.code((0,Zt._)`delete ${s}[${A}]`)}function O(A){if(h.removeAdditional==="all"||h.removeAdditional&&n===!1){I(A);return}if(n===!1){e.setParams({additionalProperty:A}),e.error(),f||t.break();return}if(typeof n=="object"&&!(0,Ko.alwaysValidSchema)(c,n)){const b=t.name("valid");h.removeAdditional==="failing"?(N(A,b,!1),t.if((0,Zt.not)(b),()=>{e.reset(),I(A)})):(N(A,b),f||t.if((0,Zt.not)(b),()=>t.break()))}}function N(A,b,R){const M={keyword:"additionalProperties",dataProp:A,dataPropType:Ko.Type.Str};R===!1&&Object.assign(M,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(M,b)}}};Vi.default=O6;var rc={};Object.defineProperty(rc,"__esModule",{value:!0});const T6=Qt,kh=ye,bu=Y,Nh=Vi,I6={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:o,data:s,it:l}=e;l.opts.removeAdditional==="all"&&o.additionalProperties===void 0&&Nh.default.code(new T6.KeywordCxt(l,Nh.default,"additionalProperties"));const c=(0,kh.allSchemaProperties)(n);for(const w of c)l.definedProperties.add(w);l.opts.unevaluated&&c.length&&l.props!==!0&&(l.props=bu.mergeEvaluated.props(t,(0,bu.toHash)(c),l.props));const f=c.filter(w=>!(0,bu.alwaysValidSchema)(l,n[w]));if(f.length===0)return;const h=t.name("valid");for(const w of f)g(w)?y(w):(t.if((0,kh.propertyInData)(t,s,w,l.opts.ownProperties)),y(w),l.allErrors||t.else().var(h,!0),t.endIf()),e.it.definedProperties.add(w),e.ok(h);function g(w){return l.opts.useDefaults&&!l.compositeRule&&n[w].default!==void 0}function y(w){e.subschema({keyword:"properties",schemaProp:w,dataProp:w},h)}}};rc.default=I6;var nc={};Object.defineProperty(nc,"__esModule",{value:!0});const Dh=ye,Jo=ge,Lh=Y,Bh=Y,P6={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:o,parentSchema:s,it:l}=e,{opts:c}=l,f=(0,Dh.allSchemaProperties)(n),h=f.filter(N=>(0,Lh.alwaysValidSchema)(l,n[N]));if(f.length===0||h.length===f.length&&(!l.opts.unevaluated||l.props===!0))return;const g=c.strictSchema&&!c.allowMatchingProperties&&s.properties,y=t.name("valid");l.props!==!0&&!(l.props instanceof Jo.Name)&&(l.props=(0,Bh.evaluatedPropsToName)(t,l.props));const{props:w}=l;C();function C(){for(const N of f)g&&I(N),l.allErrors?O(N):(t.var(y,!0),O(N),t.if(y))}function I(N){for(const A in g)new RegExp(N).test(A)&&(0,Lh.checkStrictMode)(l,`property ${A} matches pattern ${N} (use allowMatchingProperties)`)}function O(N){t.forIn("key",o,A=>{t.if((0,Jo._)`${(0,Dh.usePattern)(e,N)}.test(${A})`,()=>{const b=h.includes(N);b||e.subschema({keyword:"patternProperties",schemaProp:N,dataProp:A,dataPropType:Bh.Type.Str},y),l.opts.unevaluated&&w!==!0?t.assign((0,Jo._)`${w}[${A}]`,!0):!b&&!l.allErrors&&t.if((0,Jo.not)(y),()=>t.break())})})}}};nc.default=P6;var ac={};Object.defineProperty(ac,"__esModule",{value:!0});const R6=Y,k6={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:o}=e;if((0,R6.alwaysValidSchema)(o,n)){e.fail();return}const s=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),e.failResult(s,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};ac.default=k6;var oc={};Object.defineProperty(oc,"__esModule",{value:!0});const N6=ye,D6={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:N6.validateUnion,error:{message:"must match a schema in anyOf"}};oc.default=D6;var ic={};Object.defineProperty(ic,"__esModule",{value:!0});const ni=ge,L6=Y,B6={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,ni._)`{passingSchemas: ${e.passing}}`},M6={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:B6,code(e){const{gen:t,schema:n,parentSchema:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(s.opts.discriminator&&o.discriminator)return;const l=n,c=t.let("valid",!1),f=t.let("passing",null),h=t.name("_valid");e.setParams({passing:f}),t.block(g),e.result(c,()=>e.reset(),()=>e.error(!0));function g(){l.forEach((y,w)=>{let C;(0,L6.alwaysValidSchema)(s,y)?t.var(h,!0):C=e.subschema({keyword:"oneOf",schemaProp:w,compositeRule:!0},h),w>0&&t.if((0,ni._)`${h} && ${c}`).assign(c,!1).assign(f,(0,ni._)`[${f}, ${w}]`).else(),t.if(h,()=>{t.assign(c,!0),t.assign(f,w),C&&e.mergeEvaluated(C,ni.Name)})})}}};ic.default=M6;var sc={};Object.defineProperty(sc,"__esModule",{value:!0});const F6=Y,j6={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const s=t.name("valid");n.forEach((l,c)=>{if((0,F6.alwaysValidSchema)(o,l))return;const f=e.subschema({keyword:"allOf",schemaProp:c},s);e.ok(s),e.mergeEvaluated(f)})}};sc.default=j6;var uc={};Object.defineProperty(uc,"__esModule",{value:!0});const vi=ge,Mv=Y,x6={message:({params:e})=>(0,vi.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,vi._)`{failingKeyword: ${e.ifClause}}`},V6={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:x6,code(e){const{gen:t,parentSchema:n,it:o}=e;n.then===void 0&&n.else===void 0&&(0,Mv.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const s=Mh(o,"then"),l=Mh(o,"else");if(!s&&!l)return;const c=t.let("valid",!0),f=t.name("_valid");if(h(),e.reset(),s&&l){const y=t.let("ifClause");e.setParams({ifClause:y}),t.if(f,g("then",y),g("else",y))}else s?t.if(f,g("then")):t.if((0,vi.not)(f),g("else"));e.pass(c,()=>e.error(!0));function h(){const y=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);e.mergeEvaluated(y)}function g(y,w){return()=>{const C=e.subschema({keyword:y},f);t.assign(c,f),e.mergeValidEvaluated(C,c),w?t.assign(w,(0,vi._)`${y}`):e.setParams({ifClause:y})}}}};function Mh(e,t){const n=e.schema[t];return n!==void 0&&!(0,Mv.alwaysValidSchema)(e,n)}uc.default=V6;var lc={};Object.defineProperty(lc,"__esModule",{value:!0});const U6=Y,W6={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,U6.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};lc.default=W6;Object.defineProperty(Zl,"__esModule",{value:!0});const z6=Qn,q6=Xl,G6=ea,H6=Ql,K6=ec,J6=Lv,Y6=tc,Z6=Vi,X6=rc,Q6=nc,eF=ac,tF=oc,rF=ic,nF=sc,aF=uc,oF=lc;function iF(e=!1){const t=[eF.default,tF.default,rF.default,nF.default,aF.default,oF.default,Y6.default,Z6.default,J6.default,X6.default,Q6.default];return e?t.push(q6.default,H6.default):t.push(z6.default,G6.default),t.push(K6.default),t}Zl.default=iF;var cc={},dc={};Object.defineProperty(dc,"__esModule",{value:!0});const Ue=ge,sF={message:({schemaCode:e})=>(0,Ue.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ue._)`{format: ${e}}`},uF={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:sF,code(e,t){const{gen:n,data:o,$data:s,schema:l,schemaCode:c,it:f}=e,{opts:h,errSchemaPath:g,schemaEnv:y,self:w}=f;if(!h.validateFormats)return;s?C():I();function C(){const O=n.scopeValue("formats",{ref:w.formats,code:h.code.formats}),N=n.const("fDef",(0,Ue._)`${O}[${c}]`),A=n.let("fType"),b=n.let("format");n.if((0,Ue._)`typeof ${N} == "object" && !(${N} instanceof RegExp)`,()=>n.assign(A,(0,Ue._)`${N}.type || "string"`).assign(b,(0,Ue._)`${N}.validate`),()=>n.assign(A,(0,Ue._)`"string"`).assign(b,N)),e.fail$data((0,Ue.or)(R(),M()));function R(){return h.strictSchema===!1?Ue.nil:(0,Ue._)`${c} && !${b}`}function M(){const U=y.$async?(0,Ue._)`(${N}.async ? await ${b}(${o}) : ${b}(${o}))`:(0,Ue._)`${b}(${o})`,G=(0,Ue._)`(typeof ${b} == "function" ? ${U} : ${b}.test(${o}))`;return(0,Ue._)`${b} && ${b} !== true && ${A} === ${t} && !${G}`}}function I(){const O=w.formats[l];if(!O){R();return}if(O===!0)return;const[N,A,b]=M(O);N===t&&e.pass(U());function R(){if(h.strictSchema===!1){w.logger.warn(G());return}throw new Error(G());function G(){return`unknown format "${l}" ignored in schema at path "${g}"`}}function M(G){const se=G instanceof RegExp?(0,Ue.regexpCode)(G):h.code.formats?(0,Ue._)`${h.code.formats}${(0,Ue.getProperty)(l)}`:void 0,X=n.scopeValue("formats",{key:l,ref:G,code:se});return typeof G=="object"&&!(G instanceof RegExp)?[G.type||"string",G.validate,(0,Ue._)`${X}.validate`]:["string",G,X]}function U(){if(typeof O=="object"&&!(O instanceof RegExp)&&O.async){if(!y.$async)throw new Error("async format in sync schema");return(0,Ue._)`await ${b}(${o})`}return typeof A=="function"?(0,Ue._)`${b}(${o})`:(0,Ue._)`${b}.test(${o})`}}}};dc.default=uF;Object.defineProperty(cc,"__esModule",{value:!0});const lF=dc,cF=[lF.default];cc.default=cF;var Un={};Object.defineProperty(Un,"__esModule",{value:!0});Un.contentVocabulary=Un.metadataVocabulary=void 0;Un.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Un.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(Bl,"__esModule",{value:!0});const dF=Ml,fF=jl,pF=Zl,hF=cc,Fh=Un,mF=[dF.default,fF.default,(0,pF.default)(),hF.default,Fh.metadataVocabulary,Fh.contentVocabulary];Bl.default=mF;var fc={},Ui={};Object.defineProperty(Ui,"__esModule",{value:!0});Ui.DiscrError=void 0;var jh;(function(e){e.Tag="tag",e.Mapping="mapping"})(jh||(Ui.DiscrError=jh={}));Object.defineProperty(fc,"__esModule",{value:!0});const Mn=ge,Zu=Ui,xh=Et,gF=Xn,vF=Y,yF={message:({params:{discrError:e,tagName:t}})=>e===Zu.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,Mn._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},_F={keyword:"discriminator",type:"object",schemaType:"object",error:yF,code(e){const{gen:t,data:n,schema:o,parentSchema:s,it:l}=e,{oneOf:c}=s;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=o.propertyName;if(typeof f!="string")throw new Error("discriminator: requires propertyName");if(o.mapping)throw new Error("discriminator: mapping is not supported");if(!c)throw new Error("discriminator: requires oneOf keyword");const h=t.let("valid",!1),g=t.const("tag",(0,Mn._)`${n}${(0,Mn.getProperty)(f)}`);t.if((0,Mn._)`typeof ${g} == "string"`,()=>y(),()=>e.error(!1,{discrError:Zu.DiscrError.Tag,tag:g,tagName:f})),e.ok(h);function y(){const I=C();t.if(!1);for(const O in I)t.elseIf((0,Mn._)`${g} === ${O}`),t.assign(h,w(I[O]));t.else(),e.error(!1,{discrError:Zu.DiscrError.Mapping,tag:g,tagName:f}),t.endIf()}function w(I){const O=t.name("valid"),N=e.subschema({keyword:"oneOf",schemaProp:I},O);return e.mergeEvaluated(N,Mn.Name),O}function C(){var I;const O={},N=b(s);let A=!0;for(let U=0;U<c.length;U++){let G=c[U];if(G!=null&&G.$ref&&!(0,vF.schemaHasRulesButRef)(G,l.self.RULES)){const X=G.$ref;if(G=xh.resolveRef.call(l.self,l.schemaEnv.root,l.baseId,X),G instanceof xh.SchemaEnv&&(G=G.schema),G===void 0)throw new gF.default(l.opts.uriResolver,l.baseId,X)}const se=(I=G==null?void 0:G.properties)===null||I===void 0?void 0:I[f];if(typeof se!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);A=A&&(N||b(G)),R(se,U)}if(!A)throw new Error(`discriminator: "${f}" must be required`);return O;function b({required:U}){return Array.isArray(U)&&U.includes(f)}function R(U,G){if(U.const)M(U.const,G);else if(U.enum)for(const se of U.enum)M(se,G);else throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`)}function M(U,G){if(typeof U!="string"||U in O)throw new Error(`discriminator: "${f}" values must be unique strings`);O[U]=G}}}};fc.default=_F;const $F="http://json-schema.org/draft-07/schema#",bF="http://json-schema.org/draft-07/schema#",wF="Core schema meta-schema",EF={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},SF=["object","boolean"],AF={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},CF={$schema:$F,$id:bF,title:wF,definitions:EF,type:SF,properties:AF,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=Ug,o=Bl,s=fc,l=CF,c=["/properties"],f="http://json-schema.org/draft-07/schema";class h extends n.default{_addVocabularies(){super._addVocabularies(),o.default.forEach(O=>this.addVocabulary(O)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const O=this.opts.$data?this.$dataMetaSchema(l,c):l;this.addMetaSchema(O,f,!1),this.refs["http://json-schema.org/schema"]=f}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(f)?f:void 0)}}t.Ajv=h,e.exports=t=h,e.exports.Ajv=h,Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var g=Qt;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return g.KeywordCxt}});var y=ge;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return y._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return y.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return y.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return y.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return y.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return y.CodeGen}});var w=za;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return w.default}});var C=Xn;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return C.default}})})(Wu,Wu.exports);var Fv=Wu.exports;const OF=Xe(Fv);var Xu={exports:{}},jv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(te,ue){return{validate:te,compare:ue}}e.fullFormats={date:t(l,c),time:t(h,g),"date-time":t(w,C),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:N,"uri-reference":/^(?:[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,"uri-template":/^(?:(?:[^\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,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([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,regex:he,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:b,int32:{type:"number",validate:U},int64:{type:"number",validate:G},float:{type:"number",validate:se},double:{type:"number",validate:se},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,c),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,g),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,C),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(te){return te%4===0&&(te%100!==0||te%400===0)}const o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,s=[0,31,28,31,30,31,30,31,31,30,31,30,31];function l(te){const ue=o.exec(te);if(!ue)return!1;const Te=+ue[1],Ee=+ue[2],Je=+ue[3];return Ee>=1&&Ee<=12&&Je>=1&&Je<=(Ee===2&&n(Te)?29:s[Ee])}function c(te,ue){if(te&&ue)return te>ue?1:te<ue?-1:0}const f=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function h(te,ue){const Te=f.exec(te);if(!Te)return!1;const Ee=+Te[1],Je=+Te[2],We=+Te[3],dt=Te[5];return(Ee<=23&&Je<=59&&We<=59||Ee===23&&Je===59&&We===60)&&(!ue||dt!=="")}function g(te,ue){if(!(te&&ue))return;const Te=f.exec(te),Ee=f.exec(ue);if(Te&&Ee)return te=Te[1]+Te[2]+Te[3]+(Te[4]||""),ue=Ee[1]+Ee[2]+Ee[3]+(Ee[4]||""),te>ue?1:te<ue?-1:0}const y=/t|\s/i;function w(te){const ue=te.split(y);return ue.length===2&&l(ue[0])&&h(ue[1],!0)}function C(te,ue){if(!(te&&ue))return;const[Te,Ee]=te.split(y),[Je,We]=ue.split(y),dt=c(Te,Je);if(dt!==void 0)return dt||g(Ee,We)}const I=/\/|:/,O=/^(?:[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;function N(te){return I.test(te)&&O.test(te)}const A=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function b(te){return A.lastIndex=0,A.test(te)}const R=-(2**31),M=2**31-1;function U(te){return Number.isInteger(te)&&te<=M&&te>=R}function G(te){return Number.isInteger(te)}function se(){return!0}const X=/[^\\]\\Z/;function he(te){if(X.test(te))return!1;try{return new RegExp(te),!0}catch{return!1}}})(jv);var xv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Fv,n=ge,o=n.operators,s={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},l={message:({keyword:f,schemaCode:h})=>n.str`should be ${s[f].okStr} ${h}`,params:({keyword:f,schemaCode:h})=>n._`{comparison: ${s[f].okStr}, limit: ${h}}`};e.formatLimitDefinition={keyword:Object.keys(s),type:"string",schemaType:"string",$data:!0,error:l,code(f){const{gen:h,data:g,schemaCode:y,keyword:w,it:C}=f,{opts:I,self:O}=C;if(!I.validateFormats)return;const N=new t.KeywordCxt(C,O.RULES.all.format.definition,"format");N.$data?A():b();function A(){const M=h.scopeValue("formats",{ref:O.formats,code:I.code.formats}),U=h.const("fmt",n._`${M}[${N.schemaCode}]`);f.fail$data(n.or(n._`typeof ${U} != "object"`,n._`${U} instanceof RegExp`,n._`typeof ${U}.compare != "function"`,R(U)))}function b(){const M=N.schema,U=O.formats[M];if(!U||U===!0)return;if(typeof U!="object"||U instanceof RegExp||typeof U.compare!="function")throw new Error(`"${w}": format "${M}" does not define "compare" function`);const G=h.scopeValue("formats",{key:M,ref:U,code:I.code.formats?n._`${I.code.formats}${n.getProperty(M)}`:void 0});f.fail$data(R(G))}function R(M){return n._`${M}.compare(${g}, ${y}) ${s[w].fail} 0`}},dependencies:["format"]};const c=f=>(f.addKeyword(e.formatLimitDefinition),f);e.default=c})(xv);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=jv,o=xv,s=ge,l=new s.Name("fullFormats"),c=new s.Name("fastFormats"),f=(g,y={keywords:!0})=>{if(Array.isArray(y))return h(g,y,n.fullFormats,l),g;const[w,C]=y.mode==="fast"?[n.fastFormats,c]:[n.fullFormats,l],I=y.formats||n.formatNames;return h(g,I,w,C),y.keywords&&o.default(g),g};f.get=(g,y="full")=>{const C=(y==="fast"?n.fastFormats:n.fullFormats)[g];if(!C)throw new Error(`Unknown format "${g}"`);return C};function h(g,y,w,C){var I,O;(I=(O=g.opts.code).formats)!==null&&I!==void 0||(O.formats=s._`require("ajv-formats/dist/formats").${C}`);for(const N of y)g.addFormat(N,w[N])}e.exports=t=f,Object.defineProperty(t,"__esModule",{value:!0}),t.default=f})(Xu,Xu.exports);var TF=Xu.exports;const IF=Xe(TF);function PF(e){return function(t,n,o){for(var s=-1,l=Object(t),c=o(t),f=c.length;f--;){var h=c[e?f:++s];if(n(l[h],h,l)===!1)break}return t}}var RF=PF,kF=RF,NF=kF(),Vv=NF,DF=Vv,LF=Kr;function BF(e,t){return e&&DF(e,t,LF)}var MF=BF,FF=Hr;function jF(e,t){return function(n,o){if(n==null)return n;if(!FF(n))return e(n,o);for(var s=n.length,l=t?s:-1,c=Object(n);(t?l--:++l<s)&&o(c[l],l,c)!==!1;);return n}}var xF=jF,VF=MF,UF=xF,WF=UF(VF),zF=WF,qF=zF;function GF(e,t){var n=[];return qF(e,function(o,s,l){t(o,s,l)&&n.push(o)}),n}var HF=GF,KF=eg,JF=HF,YF=Ua,ZF=Qe;function XF(e,t){var n=ZF(e)?KF:JF;return n(e,YF(t))}var QF=XF;const Vh=Xe(QF);var ej=gl;function tj(e,t){return ej(e,t)}var rj=tj;const Uv=Xe(rj);var nj=hn,aj=function(){try{var e=nj(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Wv=aj,Uh=Wv;function oj(e,t,n){t=="__proto__"&&Uh?Uh(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var pc=oj,ij=pc,sj=Ma;function uj(e,t,n){(n!==void 0&&!sj(e[t],n)||n===void 0&&!(t in e))&&ij(e,t,n)}var zv=uj,yi={exports:{}};yi.exports;(function(e,t){var n=St,o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,c=l?n.Buffer:void 0,f=c?c.allocUnsafe:void 0;function h(g,y){if(y)return g.slice();var w=g.length,C=f?f(w):new g.constructor(w);return g.copy(C),C}e.exports=h})(yi,yi.exports);var qv=yi.exports,Wh=Xm;function lj(e){var t=new e.constructor(e.byteLength);return new Wh(t).set(new Wh(e)),t}var hc=lj,cj=hc;function dj(e,t){var n=t?cj(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Gv=dj;function fj(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}var Ga=fj,pj=Wt,zh=Object.create,hj=function(){function e(){}return function(t){if(!pj(t))return{};if(zh)return zh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Wi=hj,mj=ag,gj=mj(Object.getPrototypeOf,Object),mc=gj,vj=Wi,yj=mc,_j=Ni;function $j(e){return typeof e.constructor=="function"&&!_j(e)?vj(yj(e)):{}}var Hv=$j,bj=Hr,wj=Nt;function Ej(e){return wj(e)&&bj(e)}var Sj=Ej,Aj=Gr,Cj=mc,Oj=Nt,Tj="[object Object]",Ij=Function.prototype,Pj=Object.prototype,Kv=Ij.toString,Rj=Pj.hasOwnProperty,kj=Kv.call(Object);function Nj(e){if(!Oj(e)||Aj(e)!=Tj)return!1;var t=Cj(e);if(t===null)return!0;var n=Rj.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Kv.call(n)==kj}var Jv=Nj;function Dj(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Yv=Dj,Lj=pc,Bj=Ma,Mj=Object.prototype,Fj=Mj.hasOwnProperty;function jj(e,t,n){var o=e[t];(!(Fj.call(e,t)&&Bj(o,n))||n===void 0&&!(t in e))&&Lj(e,t,n)}var gc=jj,xj=gc,Vj=pc;function Uj(e,t,n,o){var s=!n;n||(n={});for(var l=-1,c=t.length;++l<c;){var f=t[l],h=o?o(n[f],e[f],f,n,e):void 0;h===void 0&&(h=e[f]),s?Vj(n,f,h):xj(n,f,h)}return n}var Ha=Uj;function Wj(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var zj=Wj,qj=Wt,Gj=Ni,Hj=zj,Kj=Object.prototype,Jj=Kj.hasOwnProperty;function Yj(e){if(!qj(e))return Hj(e);var t=Gj(e),n=[];for(var o in e)o=="constructor"&&(t||!Jj.call(e,o))||n.push(o);return n}var Zj=Yj,Xj=ng,Qj=Zj,ex=Hr;function tx(e){return ex(e)?Xj(e,!0):Qj(e)}var Ka=tx,rx=Ha,nx=Ka;function ax(e){return rx(e,nx(e))}var ox=ax,qh=zv,ix=qv,sx=Gv,ux=Ga,lx=Hv,Gh=Fa,Hh=Qe,cx=Sj,dx=ja,fx=Ti,px=Wt,hx=Jv,mx=ki,Kh=Yv,gx=ox;function vx(e,t,n,o,s,l,c){var f=Kh(e,n),h=Kh(t,n),g=c.get(h);if(g){qh(e,n,g);return}var y=l?l(f,h,n+"",e,t,c):void 0,w=y===void 0;if(w){var C=Hh(h),I=!C&&dx(h),O=!C&&!I&&mx(h);y=h,C||I||O?Hh(f)?y=f:cx(f)?y=ux(f):I?(w=!1,y=ix(h,!0)):O?(w=!1,y=sx(h,!0)):y=[]:hx(h)||Gh(h)?(y=f,Gh(f)?y=gx(f):(!px(f)||fx(f))&&(y=lx(h))):w=!1}w&&(c.set(h,y),s(y,h,o,l,c),c.delete(h)),qh(e,n,y)}var yx=vx,_x=Ri,$x=zv,bx=Vv,wx=yx,Ex=Wt,Sx=Ka,Ax=Yv;function Zv(e,t,n,o,s){e!==t&&bx(t,function(l,c){if(s||(s=new _x),Ex(l))wx(e,t,c,n,Zv,o,s);else{var f=o?o(Ax(e,c),l,c+"",e,t,s):void 0;f===void 0&&(f=l),$x(e,c,f)}},Sx)}var Cx=Zv;function Ox(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var vc=Ox,Tx=vc,Jh=Math.max;function Ix(e,t,n){return t=Jh(t===void 0?e.length-1:t,0),function(){for(var o=arguments,s=-1,l=Jh(o.length-t,0),c=Array(l);++s<l;)c[s]=o[t+s];s=-1;for(var f=Array(t+1);++s<t;)f[s]=o[s];return f[t]=n(c),Tx(e,this,f)}}var Xv=Ix;function Px(e){return function(){return e}}var Rx=Px,kx=Rx,Yh=Wv,Nx=Li,Dx=Yh?function(e,t){return Yh(e,"toString",{configurable:!0,enumerable:!1,value:kx(t),writable:!0})}:Nx,Lx=Dx,Bx=800,Mx=16,Fx=Date.now;function jx(e){var t=0,n=0;return function(){var o=Fx(),s=Mx-(o-n);if(n=o,s>0){if(++t>=Bx)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Qv=jx,xx=Lx,Vx=Qv,Ux=Vx(xx),yc=Ux,Wx=Li,zx=Xv,qx=yc;function Gx(e,t){return qx(zx(e,t,Wx),e+"")}var Hx=Gx,Kx=Hx,Jx=Fg;function Yx(e){return Kx(function(t,n){var o=-1,s=n.length,l=s>1?n[s-1]:void 0,c=s>2?n[2]:void 0;for(l=e.length>3&&typeof l=="function"?(s--,l):void 0,c&&Jx(n[0],n[1],c)&&(l=s<3?void 0:l,s=1),t=Object(t);++o<s;){var f=n[o];f&&e(t,f,o,l)}return t})}var Zx=Yx,Xx=Cx,Qx=Zx,eV=Qx(function(e,t,n){Xx(e,t,n)}),tV=eV;const rV=Xe(tV);function nV(e,t){for(var n=-1,o=e==null?0:e.length;++n<o&&t(e[n],n,e)!==!1;);return e}var _c=nV,aV=Ha,oV=Kr;function iV(e,t){return e&&aV(t,oV(t),e)}var e0=iV,sV=Ha,uV=Ka;function lV(e,t){return e&&sV(t,uV(t),e)}var cV=lV,dV=Ha,fV=dl;function pV(e,t){return dV(e,fV(e),t)}var hV=pV,mV=cl,gV=mc,vV=dl,yV=tg,_V=Object.getOwnPropertySymbols,$V=_V?function(e){for(var t=[];e;)mV(t,vV(e)),e=gV(e);return t}:yV,t0=$V,bV=Ha,wV=t0;function EV(e,t){return bV(e,wV(e),t)}var SV=EV,AV=Qm,CV=t0,OV=Ka;function TV(e){return AV(e,OV,CV)}var IV=TV,PV=Object.prototype,RV=PV.hasOwnProperty;function kV(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&RV.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var NV=kV,DV=hc;function LV(e,t){var n=t?DV(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var BV=LV,MV=/\w*$/;function FV(e){var t=new e.constructor(e.source,MV.exec(e));return t.lastIndex=e.lastIndex,t}var jV=FV,Zh=zn,Xh=Zh?Zh.prototype:void 0,Qh=Xh?Xh.valueOf:void 0;function xV(e){return Qh?Object(Qh.call(e)):{}}var VV=xV,UV=hc,WV=BV,zV=jV,qV=VV,GV=Gv,HV="[object Boolean]",KV="[object Date]",JV="[object Map]",YV="[object Number]",ZV="[object RegExp]",XV="[object Set]",QV="[object String]",eU="[object Symbol]",tU="[object ArrayBuffer]",rU="[object DataView]",nU="[object Float32Array]",aU="[object Float64Array]",oU="[object Int8Array]",iU="[object Int16Array]",sU="[object Int32Array]",uU="[object Uint8Array]",lU="[object Uint8ClampedArray]",cU="[object Uint16Array]",dU="[object Uint32Array]";function fU(e,t,n){var o=e.constructor;switch(t){case tU:return UV(e);case HV:case KV:return new o(+e);case rU:return WV(e,n);case nU:case aU:case oU:case iU:case sU:case uU:case lU:case cU:case dU:return GV(e,n);case JV:return new o;case YV:case QV:return new o(e);case ZV:return zV(e);case XV:return new o;case eU:return qV(e)}}var pU=fU,hU=Zn,mU=Nt,gU="[object Map]";function vU(e){return mU(e)&&hU(e)==gU}var yU=vU,_U=yU,$U=pl,em=hl,tm=em&&em.isMap,bU=tm?$U(tm):_U,wU=bU,EU=Zn,SU=Nt,AU="[object Set]";function CU(e){return SU(e)&&EU(e)==AU}var OU=CU,TU=OU,IU=pl,rm=hl,nm=rm&&rm.isSet,PU=nm?IU(nm):TU,RU=PU,kU=Ri,NU=_c,DU=gc,LU=e0,BU=cV,MU=qv,FU=Ga,jU=hV,xU=SV,VU=og,UU=IV,WU=Zn,zU=NV,qU=pU,GU=Hv,HU=Qe,KU=ja,JU=wU,YU=Wt,ZU=RU,XU=Kr,QU=Ka,e7=1,t7=2,r7=4,r0="[object Arguments]",n7="[object Array]",a7="[object Boolean]",o7="[object Date]",i7="[object Error]",n0="[object Function]",s7="[object GeneratorFunction]",u7="[object Map]",l7="[object Number]",a0="[object Object]",c7="[object RegExp]",d7="[object Set]",f7="[object String]",p7="[object Symbol]",h7="[object WeakMap]",m7="[object ArrayBuffer]",g7="[object DataView]",v7="[object Float32Array]",y7="[object Float64Array]",_7="[object Int8Array]",$7="[object Int16Array]",b7="[object Int32Array]",w7="[object Uint8Array]",E7="[object Uint8ClampedArray]",S7="[object Uint16Array]",A7="[object Uint32Array]",ke={};ke[r0]=ke[n7]=ke[m7]=ke[g7]=ke[a7]=ke[o7]=ke[v7]=ke[y7]=ke[_7]=ke[$7]=ke[b7]=ke[u7]=ke[l7]=ke[a0]=ke[c7]=ke[d7]=ke[f7]=ke[p7]=ke[w7]=ke[E7]=ke[S7]=ke[A7]=!0;ke[i7]=ke[n0]=ke[h7]=!1;function ai(e,t,n,o,s,l){var c,f=t&e7,h=t&t7,g=t&r7;if(n&&(c=s?n(e,o,s,l):n(e)),c!==void 0)return c;if(!YU(e))return e;var y=HU(e);if(y){if(c=zU(e),!f)return FU(e,c)}else{var w=WU(e),C=w==n0||w==s7;if(KU(e))return MU(e,f);if(w==a0||w==r0||C&&!s){if(c=h||C?{}:GU(e),!f)return h?xU(e,BU(c,e)):jU(e,LU(c,e))}else{if(!ke[w])return s?e:{};c=qU(e,w,f)}}l||(l=new kU);var I=l.get(e);if(I)return I;l.set(e,c),ZU(e)?e.forEach(function(A){c.add(ai(A,t,n,A,e,l))}):JU(e)&&e.forEach(function(A,b){c.set(b,ai(A,t,n,b,e,l))});var O=g?h?UU:VU:h?QU:XU,N=y?void 0:O(e);return NU(N||e,function(A,b){N&&(b=A,A=e[b]),DU(c,b,ai(A,t,n,b,e,l))}),c}var $c=ai,C7=$c,O7=1,T7=4;function I7(e){return C7(e,O7|T7)}var P7=I7;const am=Xe(P7);var o0={};(function(e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,o={};for(var s in n){var l=n[s];t.call(o,l)?o[l].push(s):o[l]=[s]}return o}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}})(o0);var wu,om;function bc(){return om||(om=1,wu={}),wu}var Ge=o0,R7=bc(),im=Array.prototype.push;function k7(e,t){return t==2?function(n,o){return e.apply(void 0,arguments)}:function(n){return e.apply(void 0,arguments)}}function Eu(e,t){return t==2?function(n,o){return e(n,o)}:function(n){return e(n)}}function sm(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function N7(e){return function(t){return e({},t)}}function D7(e,t){return function(){for(var n=arguments.length,o=n-1,s=Array(n);n--;)s[n]=arguments[n];var l=s[t],c=s.slice(0,t);return l&&im.apply(c,l),t!=o&&im.apply(c,s.slice(t+1)),e.apply(this,c)}}function Su(e,t){return function(){var n=arguments.length;if(n){for(var o=Array(n);n--;)o[n]=arguments[n];var s=o[0]=t.apply(void 0,o);return e.apply(void 0,o),s}}}function Qu(e,t,n,o){var s=typeof t=="function",l=t===Object(t);if(l&&(o=n,n=t,t=void 0),n==null)throw new TypeError;o||(o={});var c={cap:"cap"in o?o.cap:!0,curry:"curry"in o?o.curry:!0,fixed:"fixed"in o?o.fixed:!0,immutable:"immutable"in o?o.immutable:!0,rearg:"rearg"in o?o.rearg:!0},f=s?n:R7,h="curry"in o&&o.curry,g="fixed"in o&&o.fixed,y="rearg"in o&&o.rearg,w=s?n.runInContext():void 0,C=s?n:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},I=C.ary,O=C.assign,N=C.clone,A=C.curry,b=C.forEach,R=C.isArray,M=C.isError,U=C.isFunction,G=C.isWeakMap,se=C.keys,X=C.rearg,he=C.toInteger,te=C.toPath,ue=se(Ge.aryMethod),Te={castArray:function($){return function(){var T=arguments[0];return R(T)?$(sm(T)):$.apply(void 0,arguments)}},iteratee:function($){return function(){var T=arguments[0],j=arguments[1],W=$(T,j),J=W.length;return c.cap&&typeof j=="number"?(j=j>2?j-2:1,J&&J<=j?W:Eu(W,j)):W}},mixin:function($){return function(T){var j=this;if(!U(j))return $(j,Object(T));var W=[];return b(se(T),function(J){U(T[J])&&W.push([J,j.prototype[J]])}),$(j,Object(T)),b(W,function(J){var ie=J[1];U(ie)?j.prototype[J[0]]=ie:delete j.prototype[J[0]]}),j}},nthArg:function($){return function(T){var j=T<0?1:he(T)+1;return A($(T),j)}},rearg:function($){return function(T,j){var W=j?j.length:0;return A($(T,j),W)}},runInContext:function($){return function(T){return Qu(e,$(T),o)}}};function Ee($,T){if(c.cap){var j=Ge.iterateeRearg[$];if(j)return H(T,j);var W=!s&&Ge.iterateeAry[$];if(W)return Ir(T,W)}return T}function Je($,T,j){return h||c.curry&&j>1?A(T,j):T}function We($,T,j){if(c.fixed&&(g||!Ge.skipFixed[$])){var W=Ge.methodSpread[$],J=W&&W.start;return J===void 0?I(T,j):D7(T,J)}return T}function dt($,T,j){return c.rearg&&j>1&&(y||!Ge.skipRearg[$])?X(T,Ge.methodRearg[$]||Ge.aryRearg[j]):T}function Tr($,T){T=te(T);for(var j=-1,W=T.length,J=W-1,ie=N(Object($)),we=ie;we!=null&&++j<W;){var Be=T[j],et=we[Be];et!=null&&!(U(et)||M(et)||G(et))&&(we[Be]=N(j==J?et:Object(et))),we=we[Be]}return ie}function At($){return L.runInContext.convert($)(void 0)}function ft($,T){var j=Ge.aliasToReal[$]||$,W=Ge.remap[j]||j,J=o;return function(ie){var we=s?w:C,Be=s?w[W]:T,et=O(O({},J),ie);return Qu(we,j,Be,et)}}function Ir($,T){return D($,function(j){return typeof j=="function"?Eu(j,T):j})}function H($,T){return D($,function(j){var W=T.length;return k7(X(Eu(j,W),T),W)})}function D($,T){return function(){var j=arguments.length;if(!j)return $();for(var W=Array(j);j--;)W[j]=arguments[j];var J=c.rearg?0:j-1;return W[J]=T(W[J]),$.apply(void 0,W)}}function q($,T,j){var W,J=Ge.aliasToReal[$]||$,ie=T,we=Te[J];return we?ie=we(T):c.immutable&&(Ge.mutate.array[J]?ie=Su(T,sm):Ge.mutate.object[J]?ie=Su(T,N7(T)):Ge.mutate.set[J]&&(ie=Su(T,Tr))),b(ue,function(Be){return b(Ge.aryMethod[Be],function(et){if(J==et){var Ye=Ge.methodSpread[J],zt=Ye&&Ye.afterRearg;return W=zt?We(J,dt(J,ie,Be),Be):dt(J,We(J,ie,Be),Be),W=Ee(J,W),W=Je(J,W,Be),!1}}),!W}),W||(W=ie),W==T&&(W=h?A(W,1):function(){return T.apply(this,arguments)}),W.convert=ft(J,T),W.placeholder=T.placeholder=j,W}if(!l)return q(t,n,f);var L=n,_=[];return b(ue,function($){b(Ge.aryMethod[$],function(T){var j=L[Ge.remap[T]||T];j&&_.push([T,q(T,j,L)])})}),b(se(L),function($){var T=L[$];if(typeof T=="function"){for(var j=_.length;j--;)if(_[j][0]==$)return;T.convert=ft($,T),_.push([$,T])}}),b(_,function($){L[$[0]]=$[1]}),L.convert=At,L.placeholder=L,b(se(L),function($){b(Ge.realToAlias[$]||[],function(T){L[T]=L[$]})}),L}var L7=Qu,um=ig,B7=um&&new um,i0=B7,M7=Li,lm=i0,F7=lm?function(e,t){return lm.set(e,t),e}:M7,s0=F7,j7=Wi,x7=Wt;function V7(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=j7(e.prototype),o=e.apply(n,t);return x7(o)?o:n}}var zi=V7,U7=zi,W7=St,z7=1;function q7(e,t,n){var o=t&z7,s=U7(e);function l(){var c=this&&this!==W7&&this instanceof l?s:e;return c.apply(o?n:this,arguments)}return l}var G7=q7,H7=Math.max;function K7(e,t,n,o){for(var s=-1,l=e.length,c=n.length,f=-1,h=t.length,g=H7(l-c,0),y=Array(h+g),w=!o;++f<h;)y[f]=t[f];for(;++s<c;)(w||s<l)&&(y[n[s]]=e[s]);for(;g--;)y[f++]=e[s++];return y}var u0=K7,J7=Math.max;function Y7(e,t,n,o){for(var s=-1,l=e.length,c=-1,f=n.length,h=-1,g=t.length,y=J7(l-f,0),w=Array(y+g),C=!o;++s<y;)w[s]=e[s];for(var I=s;++h<g;)w[I+h]=t[h];for(;++c<f;)(C||s<l)&&(w[I+n[c]]=e[s++]);return w}var l0=Y7;function Z7(e,t){for(var n=e.length,o=0;n--;)e[n]===t&&++o;return o}var X7=Z7;function Q7(){}var wc=Q7,eW=Wi,tW=wc,rW=4294967295;function _i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=rW,this.__views__=[]}_i.prototype=eW(tW.prototype);_i.prototype.constructor=_i;var Ec=_i;function nW(){}var aW=nW,cm=i0,oW=aW,iW=cm?function(e){return cm.get(e)}:oW,c0=iW,sW={},uW=sW,dm=uW,lW=Object.prototype,cW=lW.hasOwnProperty;function dW(e){for(var t=e.name+"",n=dm[t],o=cW.call(dm,t)?n.length:0;o--;){var s=n[o],l=s.func;if(l==null||l==e)return s.name}return t}var fW=dW,pW=Wi,hW=wc;function $i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}$i.prototype=pW(hW.prototype);$i.prototype.constructor=$i;var d0=$i,mW=Ec,gW=d0,vW=Ga;function yW(e){if(e instanceof mW)return e.clone();var t=new gW(e.__wrapped__,e.__chain__);return t.__actions__=vW(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var _W=yW,$W=Ec,fm=d0,bW=wc,wW=Qe,EW=Nt,SW=_W,AW=Object.prototype,CW=AW.hasOwnProperty;function bi(e){if(EW(e)&&!wW(e)&&!(e instanceof $W)){if(e instanceof fm)return e;if(CW.call(e,"__wrapped__"))return SW(e)}return new fm(e)}bi.prototype=bW.prototype;bi.prototype.constructor=bi;var OW=bi,TW=Ec,IW=c0,PW=fW,RW=OW;function kW(e){var t=PW(e),n=RW[t];if(typeof n!="function"||!(t in TW.prototype))return!1;if(e===n)return!0;var o=IW(n);return!!o&&e===o[0]}var NW=kW,DW=s0,LW=Qv,BW=LW(DW),f0=BW,MW=/\{\n\/\* \[wrapped with (.+)\] \*/,FW=/,? & /;function jW(e){var t=e.match(MW);return t?t[1].split(FW):[]}var xW=jW,VW=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function UW(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(VW,`{
9
+ deps: ${y}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(h){const[g,y]=l(h);c(h,g),f(h,y)}};function l({schema:h}){const g={},y={};for(const w in h){if(w==="__proto__")continue;const C=Array.isArray(h[w])?g:y;C[w]=h[w]}return[g,y]}function c(h,g=h.schema){const{gen:y,data:w,it:C}=h;if(Object.keys(g).length===0)return;const I=y.let("missing");for(const O in g){const N=g[O];if(N.length===0)continue;const A=(0,o.propertyInData)(y,w,O,C.opts.ownProperties);h.setParams({property:O,depsCount:N.length,deps:N.join(", ")}),C.allErrors?y.if(A,()=>{for(const b of N)(0,o.checkReportMissingProp)(h,b)}):(y.if((0,t._)`${A} && (${(0,o.checkMissingProp)(h,N,I)})`),(0,o.reportMissingProp)(h,I),y.else())}}e.validatePropertyDeps=c;function f(h,g=h.schema){const{gen:y,data:w,keyword:C,it:I}=h,O=y.name("valid");for(const N in g)(0,n.alwaysValidSchema)(I,g[N])||(y.if((0,o.propertyInData)(y,w,N,I.opts.ownProperties),()=>{const A=h.subschema({keyword:C,schemaProp:N},O);h.mergeValidEvaluated(A,O)},()=>y.var(O,!0)),h.ok(O))}e.validateSchemaDeps=f,e.default=s})(Lv);var tc={};Object.defineProperty(tc,"__esModule",{value:!0});const Bv=ge,N6=Y,D6={message:"property name must be valid",params:({params:e})=>(0,Bv._)`{propertyName: ${e.propertyName}}`},L6={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:D6,code(e){const{gen:t,schema:n,data:o,it:s}=e;if((0,N6.alwaysValidSchema)(s,n))return;const l=t.name("valid");t.forIn("key",o,c=>{e.setParams({propertyName:c}),e.subschema({keyword:"propertyNames",data:c,dataTypes:["string"],propertyName:c,compositeRule:!0},l),t.if((0,Bv.not)(l),()=>{e.error(!0),s.allErrors||t.break()})}),e.ok(l)}};tc.default=L6;var Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});const Ho=ye,Zt=ge,B6=sr,Ko=Y,M6={message:"must NOT have additional properties",params:({params:e})=>(0,Zt._)`{additionalProperty: ${e.additionalProperty}}`},F6={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:M6,code(e){const{gen:t,schema:n,parentSchema:o,data:s,errsCount:l,it:c}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:f,opts:h}=c;if(c.props=!0,h.removeAdditional!=="all"&&(0,Ko.alwaysValidSchema)(c,n))return;const g=(0,Ho.allSchemaProperties)(o.properties),y=(0,Ho.allSchemaProperties)(o.patternProperties);w(),e.ok((0,Zt._)`${l} === ${B6.default.errors}`);function w(){t.forIn("key",s,A=>{!g.length&&!y.length?O(A):t.if(C(A),()=>O(A))})}function C(A){let b;if(g.length>8){const R=(0,Ko.schemaRefOrVal)(c,o.properties,"properties");b=(0,Ho.isOwnProperty)(t,R,A)}else g.length?b=(0,Zt.or)(...g.map(R=>(0,Zt._)`${A} === ${R}`)):b=Zt.nil;return y.length&&(b=(0,Zt.or)(b,...y.map(R=>(0,Zt._)`${(0,Ho.usePattern)(e,R)}.test(${A})`))),(0,Zt.not)(b)}function I(A){t.code((0,Zt._)`delete ${s}[${A}]`)}function O(A){if(h.removeAdditional==="all"||h.removeAdditional&&n===!1){I(A);return}if(n===!1){e.setParams({additionalProperty:A}),e.error(),f||t.break();return}if(typeof n=="object"&&!(0,Ko.alwaysValidSchema)(c,n)){const b=t.name("valid");h.removeAdditional==="failing"?(N(A,b,!1),t.if((0,Zt.not)(b),()=>{e.reset(),I(A)})):(N(A,b),f||t.if((0,Zt.not)(b),()=>t.break()))}}function N(A,b,R){const M={keyword:"additionalProperties",dataProp:A,dataPropType:Ko.Type.Str};R===!1&&Object.assign(M,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(M,b)}}};Vi.default=F6;var rc={};Object.defineProperty(rc,"__esModule",{value:!0});const j6=Qt,kh=ye,bu=Y,Nh=Vi,x6={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:o,data:s,it:l}=e;l.opts.removeAdditional==="all"&&o.additionalProperties===void 0&&Nh.default.code(new j6.KeywordCxt(l,Nh.default,"additionalProperties"));const c=(0,kh.allSchemaProperties)(n);for(const w of c)l.definedProperties.add(w);l.opts.unevaluated&&c.length&&l.props!==!0&&(l.props=bu.mergeEvaluated.props(t,(0,bu.toHash)(c),l.props));const f=c.filter(w=>!(0,bu.alwaysValidSchema)(l,n[w]));if(f.length===0)return;const h=t.name("valid");for(const w of f)g(w)?y(w):(t.if((0,kh.propertyInData)(t,s,w,l.opts.ownProperties)),y(w),l.allErrors||t.else().var(h,!0),t.endIf()),e.it.definedProperties.add(w),e.ok(h);function g(w){return l.opts.useDefaults&&!l.compositeRule&&n[w].default!==void 0}function y(w){e.subschema({keyword:"properties",schemaProp:w,dataProp:w},h)}}};rc.default=x6;var nc={};Object.defineProperty(nc,"__esModule",{value:!0});const Dh=ye,Jo=ge,Lh=Y,Bh=Y,V6={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:o,parentSchema:s,it:l}=e,{opts:c}=l,f=(0,Dh.allSchemaProperties)(n),h=f.filter(N=>(0,Lh.alwaysValidSchema)(l,n[N]));if(f.length===0||h.length===f.length&&(!l.opts.unevaluated||l.props===!0))return;const g=c.strictSchema&&!c.allowMatchingProperties&&s.properties,y=t.name("valid");l.props!==!0&&!(l.props instanceof Jo.Name)&&(l.props=(0,Bh.evaluatedPropsToName)(t,l.props));const{props:w}=l;C();function C(){for(const N of f)g&&I(N),l.allErrors?O(N):(t.var(y,!0),O(N),t.if(y))}function I(N){for(const A in g)new RegExp(N).test(A)&&(0,Lh.checkStrictMode)(l,`property ${A} matches pattern ${N} (use allowMatchingProperties)`)}function O(N){t.forIn("key",o,A=>{t.if((0,Jo._)`${(0,Dh.usePattern)(e,N)}.test(${A})`,()=>{const b=h.includes(N);b||e.subschema({keyword:"patternProperties",schemaProp:N,dataProp:A,dataPropType:Bh.Type.Str},y),l.opts.unevaluated&&w!==!0?t.assign((0,Jo._)`${w}[${A}]`,!0):!b&&!l.allErrors&&t.if((0,Jo.not)(y),()=>t.break())})})}}};nc.default=V6;var ac={};Object.defineProperty(ac,"__esModule",{value:!0});const U6=Y,W6={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:o}=e;if((0,U6.alwaysValidSchema)(o,n)){e.fail();return}const s=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),e.failResult(s,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};ac.default=W6;var oc={};Object.defineProperty(oc,"__esModule",{value:!0});const z6=ye,q6={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:z6.validateUnion,error:{message:"must match a schema in anyOf"}};oc.default=q6;var ic={};Object.defineProperty(ic,"__esModule",{value:!0});const ni=ge,G6=Y,H6={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,ni._)`{passingSchemas: ${e.passing}}`},K6={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:H6,code(e){const{gen:t,schema:n,parentSchema:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(s.opts.discriminator&&o.discriminator)return;const l=n,c=t.let("valid",!1),f=t.let("passing",null),h=t.name("_valid");e.setParams({passing:f}),t.block(g),e.result(c,()=>e.reset(),()=>e.error(!0));function g(){l.forEach((y,w)=>{let C;(0,G6.alwaysValidSchema)(s,y)?t.var(h,!0):C=e.subschema({keyword:"oneOf",schemaProp:w,compositeRule:!0},h),w>0&&t.if((0,ni._)`${h} && ${c}`).assign(c,!1).assign(f,(0,ni._)`[${f}, ${w}]`).else(),t.if(h,()=>{t.assign(c,!0),t.assign(f,w),C&&e.mergeEvaluated(C,ni.Name)})})}}};ic.default=K6;var sc={};Object.defineProperty(sc,"__esModule",{value:!0});const J6=Y,Y6={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const s=t.name("valid");n.forEach((l,c)=>{if((0,J6.alwaysValidSchema)(o,l))return;const f=e.subschema({keyword:"allOf",schemaProp:c},s);e.ok(s),e.mergeEvaluated(f)})}};sc.default=Y6;var uc={};Object.defineProperty(uc,"__esModule",{value:!0});const vi=ge,Mv=Y,Z6={message:({params:e})=>(0,vi.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,vi._)`{failingKeyword: ${e.ifClause}}`},X6={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Z6,code(e){const{gen:t,parentSchema:n,it:o}=e;n.then===void 0&&n.else===void 0&&(0,Mv.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const s=Mh(o,"then"),l=Mh(o,"else");if(!s&&!l)return;const c=t.let("valid",!0),f=t.name("_valid");if(h(),e.reset(),s&&l){const y=t.let("ifClause");e.setParams({ifClause:y}),t.if(f,g("then",y),g("else",y))}else s?t.if(f,g("then")):t.if((0,vi.not)(f),g("else"));e.pass(c,()=>e.error(!0));function h(){const y=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);e.mergeEvaluated(y)}function g(y,w){return()=>{const C=e.subschema({keyword:y},f);t.assign(c,f),e.mergeValidEvaluated(C,c),w?t.assign(w,(0,vi._)`${y}`):e.setParams({ifClause:y})}}}};function Mh(e,t){const n=e.schema[t];return n!==void 0&&!(0,Mv.alwaysValidSchema)(e,n)}uc.default=X6;var lc={};Object.defineProperty(lc,"__esModule",{value:!0});const Q6=Y,eF={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,Q6.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};lc.default=eF;Object.defineProperty(Zl,"__esModule",{value:!0});const tF=Qn,rF=Xl,nF=ea,aF=Ql,oF=ec,iF=Lv,sF=tc,uF=Vi,lF=rc,cF=nc,dF=ac,fF=oc,pF=ic,hF=sc,mF=uc,gF=lc;function vF(e=!1){const t=[dF.default,fF.default,pF.default,hF.default,mF.default,gF.default,sF.default,uF.default,iF.default,lF.default,cF.default];return e?t.push(rF.default,aF.default):t.push(tF.default,nF.default),t.push(oF.default),t}Zl.default=vF;var cc={},dc={};Object.defineProperty(dc,"__esModule",{value:!0});const Ue=ge,yF={message:({schemaCode:e})=>(0,Ue.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ue._)`{format: ${e}}`},_F={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:yF,code(e,t){const{gen:n,data:o,$data:s,schema:l,schemaCode:c,it:f}=e,{opts:h,errSchemaPath:g,schemaEnv:y,self:w}=f;if(!h.validateFormats)return;s?C():I();function C(){const O=n.scopeValue("formats",{ref:w.formats,code:h.code.formats}),N=n.const("fDef",(0,Ue._)`${O}[${c}]`),A=n.let("fType"),b=n.let("format");n.if((0,Ue._)`typeof ${N} == "object" && !(${N} instanceof RegExp)`,()=>n.assign(A,(0,Ue._)`${N}.type || "string"`).assign(b,(0,Ue._)`${N}.validate`),()=>n.assign(A,(0,Ue._)`"string"`).assign(b,N)),e.fail$data((0,Ue.or)(R(),M()));function R(){return h.strictSchema===!1?Ue.nil:(0,Ue._)`${c} && !${b}`}function M(){const U=y.$async?(0,Ue._)`(${N}.async ? await ${b}(${o}) : ${b}(${o}))`:(0,Ue._)`${b}(${o})`,G=(0,Ue._)`(typeof ${b} == "function" ? ${U} : ${b}.test(${o}))`;return(0,Ue._)`${b} && ${b} !== true && ${A} === ${t} && !${G}`}}function I(){const O=w.formats[l];if(!O){R();return}if(O===!0)return;const[N,A,b]=M(O);N===t&&e.pass(U());function R(){if(h.strictSchema===!1){w.logger.warn(G());return}throw new Error(G());function G(){return`unknown format "${l}" ignored in schema at path "${g}"`}}function M(G){const se=G instanceof RegExp?(0,Ue.regexpCode)(G):h.code.formats?(0,Ue._)`${h.code.formats}${(0,Ue.getProperty)(l)}`:void 0,X=n.scopeValue("formats",{key:l,ref:G,code:se});return typeof G=="object"&&!(G instanceof RegExp)?[G.type||"string",G.validate,(0,Ue._)`${X}.validate`]:["string",G,X]}function U(){if(typeof O=="object"&&!(O instanceof RegExp)&&O.async){if(!y.$async)throw new Error("async format in sync schema");return(0,Ue._)`await ${b}(${o})`}return typeof A=="function"?(0,Ue._)`${b}(${o})`:(0,Ue._)`${b}.test(${o})`}}}};dc.default=_F;Object.defineProperty(cc,"__esModule",{value:!0});const $F=dc,bF=[$F.default];cc.default=bF;var Un={};Object.defineProperty(Un,"__esModule",{value:!0});Un.contentVocabulary=Un.metadataVocabulary=void 0;Un.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Un.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(Bl,"__esModule",{value:!0});const wF=Ml,EF=jl,SF=Zl,AF=cc,Fh=Un,CF=[wF.default,EF.default,(0,SF.default)(),AF.default,Fh.metadataVocabulary,Fh.contentVocabulary];Bl.default=CF;var fc={},Ui={};Object.defineProperty(Ui,"__esModule",{value:!0});Ui.DiscrError=void 0;var jh;(function(e){e.Tag="tag",e.Mapping="mapping"})(jh||(Ui.DiscrError=jh={}));Object.defineProperty(fc,"__esModule",{value:!0});const Mn=ge,Zu=Ui,xh=Et,OF=Xn,TF=Y,IF={message:({params:{discrError:e,tagName:t}})=>e===Zu.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,Mn._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},PF={keyword:"discriminator",type:"object",schemaType:"object",error:IF,code(e){const{gen:t,data:n,schema:o,parentSchema:s,it:l}=e,{oneOf:c}=s;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=o.propertyName;if(typeof f!="string")throw new Error("discriminator: requires propertyName");if(o.mapping)throw new Error("discriminator: mapping is not supported");if(!c)throw new Error("discriminator: requires oneOf keyword");const h=t.let("valid",!1),g=t.const("tag",(0,Mn._)`${n}${(0,Mn.getProperty)(f)}`);t.if((0,Mn._)`typeof ${g} == "string"`,()=>y(),()=>e.error(!1,{discrError:Zu.DiscrError.Tag,tag:g,tagName:f})),e.ok(h);function y(){const I=C();t.if(!1);for(const O in I)t.elseIf((0,Mn._)`${g} === ${O}`),t.assign(h,w(I[O]));t.else(),e.error(!1,{discrError:Zu.DiscrError.Mapping,tag:g,tagName:f}),t.endIf()}function w(I){const O=t.name("valid"),N=e.subschema({keyword:"oneOf",schemaProp:I},O);return e.mergeEvaluated(N,Mn.Name),O}function C(){var I;const O={},N=b(s);let A=!0;for(let U=0;U<c.length;U++){let G=c[U];if(G!=null&&G.$ref&&!(0,TF.schemaHasRulesButRef)(G,l.self.RULES)){const X=G.$ref;if(G=xh.resolveRef.call(l.self,l.schemaEnv.root,l.baseId,X),G instanceof xh.SchemaEnv&&(G=G.schema),G===void 0)throw new OF.default(l.opts.uriResolver,l.baseId,X)}const se=(I=G==null?void 0:G.properties)===null||I===void 0?void 0:I[f];if(typeof se!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);A=A&&(N||b(G)),R(se,U)}if(!A)throw new Error(`discriminator: "${f}" must be required`);return O;function b({required:U}){return Array.isArray(U)&&U.includes(f)}function R(U,G){if(U.const)M(U.const,G);else if(U.enum)for(const se of U.enum)M(se,G);else throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`)}function M(U,G){if(typeof U!="string"||U in O)throw new Error(`discriminator: "${f}" values must be unique strings`);O[U]=G}}}};fc.default=PF;const RF="http://json-schema.org/draft-07/schema#",kF="http://json-schema.org/draft-07/schema#",NF="Core schema meta-schema",DF={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},LF=["object","boolean"],BF={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},MF={$schema:RF,$id:kF,title:NF,definitions:DF,type:LF,properties:BF,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=Ug,o=Bl,s=fc,l=MF,c=["/properties"],f="http://json-schema.org/draft-07/schema";class h extends n.default{_addVocabularies(){super._addVocabularies(),o.default.forEach(O=>this.addVocabulary(O)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const O=this.opts.$data?this.$dataMetaSchema(l,c):l;this.addMetaSchema(O,f,!1),this.refs["http://json-schema.org/schema"]=f}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(f)?f:void 0)}}t.Ajv=h,e.exports=t=h,e.exports.Ajv=h,Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var g=Qt;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return g.KeywordCxt}});var y=ge;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return y._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return y.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return y.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return y.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return y.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return y.CodeGen}});var w=za;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return w.default}});var C=Xn;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return C.default}})})(Wu,Wu.exports);var Fv=Wu.exports;const FF=Xe(Fv);var Xu={exports:{}},jv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(te,ue){return{validate:te,compare:ue}}e.fullFormats={date:t(l,c),time:t(h,g),"date-time":t(w,C),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:N,"uri-reference":/^(?:[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,"uri-template":/^(?:(?:[^\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,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([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,regex:he,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:b,int32:{type:"number",validate:U},int64:{type:"number",validate:G},float:{type:"number",validate:se},double:{type:"number",validate:se},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,c),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,g),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,C),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(te){return te%4===0&&(te%100!==0||te%400===0)}const o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,s=[0,31,28,31,30,31,30,31,31,30,31,30,31];function l(te){const ue=o.exec(te);if(!ue)return!1;const Te=+ue[1],Ee=+ue[2],Je=+ue[3];return Ee>=1&&Ee<=12&&Je>=1&&Je<=(Ee===2&&n(Te)?29:s[Ee])}function c(te,ue){if(te&&ue)return te>ue?1:te<ue?-1:0}const f=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function h(te,ue){const Te=f.exec(te);if(!Te)return!1;const Ee=+Te[1],Je=+Te[2],We=+Te[3],dt=Te[5];return(Ee<=23&&Je<=59&&We<=59||Ee===23&&Je===59&&We===60)&&(!ue||dt!=="")}function g(te,ue){if(!(te&&ue))return;const Te=f.exec(te),Ee=f.exec(ue);if(Te&&Ee)return te=Te[1]+Te[2]+Te[3]+(Te[4]||""),ue=Ee[1]+Ee[2]+Ee[3]+(Ee[4]||""),te>ue?1:te<ue?-1:0}const y=/t|\s/i;function w(te){const ue=te.split(y);return ue.length===2&&l(ue[0])&&h(ue[1],!0)}function C(te,ue){if(!(te&&ue))return;const[Te,Ee]=te.split(y),[Je,We]=ue.split(y),dt=c(Te,Je);if(dt!==void 0)return dt||g(Ee,We)}const I=/\/|:/,O=/^(?:[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;function N(te){return I.test(te)&&O.test(te)}const A=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function b(te){return A.lastIndex=0,A.test(te)}const R=-(2**31),M=2**31-1;function U(te){return Number.isInteger(te)&&te<=M&&te>=R}function G(te){return Number.isInteger(te)}function se(){return!0}const X=/[^\\]\\Z/;function he(te){if(X.test(te))return!1;try{return new RegExp(te),!0}catch{return!1}}})(jv);var xv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Fv,n=ge,o=n.operators,s={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},l={message:({keyword:f,schemaCode:h})=>n.str`should be ${s[f].okStr} ${h}`,params:({keyword:f,schemaCode:h})=>n._`{comparison: ${s[f].okStr}, limit: ${h}}`};e.formatLimitDefinition={keyword:Object.keys(s),type:"string",schemaType:"string",$data:!0,error:l,code(f){const{gen:h,data:g,schemaCode:y,keyword:w,it:C}=f,{opts:I,self:O}=C;if(!I.validateFormats)return;const N=new t.KeywordCxt(C,O.RULES.all.format.definition,"format");N.$data?A():b();function A(){const M=h.scopeValue("formats",{ref:O.formats,code:I.code.formats}),U=h.const("fmt",n._`${M}[${N.schemaCode}]`);f.fail$data(n.or(n._`typeof ${U} != "object"`,n._`${U} instanceof RegExp`,n._`typeof ${U}.compare != "function"`,R(U)))}function b(){const M=N.schema,U=O.formats[M];if(!U||U===!0)return;if(typeof U!="object"||U instanceof RegExp||typeof U.compare!="function")throw new Error(`"${w}": format "${M}" does not define "compare" function`);const G=h.scopeValue("formats",{key:M,ref:U,code:I.code.formats?n._`${I.code.formats}${n.getProperty(M)}`:void 0});f.fail$data(R(G))}function R(M){return n._`${M}.compare(${g}, ${y}) ${s[w].fail} 0`}},dependencies:["format"]};const c=f=>(f.addKeyword(e.formatLimitDefinition),f);e.default=c})(xv);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=jv,o=xv,s=ge,l=new s.Name("fullFormats"),c=new s.Name("fastFormats"),f=(g,y={keywords:!0})=>{if(Array.isArray(y))return h(g,y,n.fullFormats,l),g;const[w,C]=y.mode==="fast"?[n.fastFormats,c]:[n.fullFormats,l],I=y.formats||n.formatNames;return h(g,I,w,C),y.keywords&&o.default(g),g};f.get=(g,y="full")=>{const C=(y==="fast"?n.fastFormats:n.fullFormats)[g];if(!C)throw new Error(`Unknown format "${g}"`);return C};function h(g,y,w,C){var I,O;(I=(O=g.opts.code).formats)!==null&&I!==void 0||(O.formats=s._`require("ajv-formats/dist/formats").${C}`);for(const N of y)g.addFormat(N,w[N])}e.exports=t=f,Object.defineProperty(t,"__esModule",{value:!0}),t.default=f})(Xu,Xu.exports);var jF=Xu.exports;const xF=Xe(jF);function VF(e){return function(t,n,o){for(var s=-1,l=Object(t),c=o(t),f=c.length;f--;){var h=c[e?f:++s];if(n(l[h],h,l)===!1)break}return t}}var UF=VF,WF=UF,zF=WF(),Vv=zF,qF=Vv,GF=Kr;function HF(e,t){return e&&qF(e,t,GF)}var KF=HF,JF=Hr;function YF(e,t){return function(n,o){if(n==null)return n;if(!JF(n))return e(n,o);for(var s=n.length,l=t?s:-1,c=Object(n);(t?l--:++l<s)&&o(c[l],l,c)!==!1;);return n}}var ZF=YF,XF=KF,QF=ZF,ej=QF(XF),tj=ej,rj=tj;function nj(e,t){var n=[];return rj(e,function(o,s,l){t(o,s,l)&&n.push(o)}),n}var aj=nj,oj=eg,ij=aj,sj=Ua,uj=Qe;function lj(e,t){var n=uj(e)?oj:ij;return n(e,sj(t))}var cj=lj;const Vh=Xe(cj);var dj=gl;function fj(e,t){return dj(e,t)}var pj=fj;const Uv=Xe(pj);var hj=hn,mj=function(){try{var e=hj(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Wv=mj,Uh=Wv;function gj(e,t,n){t=="__proto__"&&Uh?Uh(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var pc=gj,vj=pc,yj=Ma;function _j(e,t,n){(n!==void 0&&!yj(e[t],n)||n===void 0&&!(t in e))&&vj(e,t,n)}var zv=_j,yi={exports:{}};yi.exports;(function(e,t){var n=St,o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,c=l?n.Buffer:void 0,f=c?c.allocUnsafe:void 0;function h(g,y){if(y)return g.slice();var w=g.length,C=f?f(w):new g.constructor(w);return g.copy(C),C}e.exports=h})(yi,yi.exports);var qv=yi.exports,Wh=Xm;function $j(e){var t=new e.constructor(e.byteLength);return new Wh(t).set(new Wh(e)),t}var hc=$j,bj=hc;function wj(e,t){var n=t?bj(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Gv=wj;function Ej(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}var Ga=Ej,Sj=Wt,zh=Object.create,Aj=function(){function e(){}return function(t){if(!Sj(t))return{};if(zh)return zh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Wi=Aj,Cj=ag,Oj=Cj(Object.getPrototypeOf,Object),mc=Oj,Tj=Wi,Ij=mc,Pj=Ni;function Rj(e){return typeof e.constructor=="function"&&!Pj(e)?Tj(Ij(e)):{}}var Hv=Rj,kj=Hr,Nj=Nt;function Dj(e){return Nj(e)&&kj(e)}var Lj=Dj,Bj=Gr,Mj=mc,Fj=Nt,jj="[object Object]",xj=Function.prototype,Vj=Object.prototype,Kv=xj.toString,Uj=Vj.hasOwnProperty,Wj=Kv.call(Object);function zj(e){if(!Fj(e)||Bj(e)!=jj)return!1;var t=Mj(e);if(t===null)return!0;var n=Uj.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Kv.call(n)==Wj}var Jv=zj;function qj(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Yv=qj,Gj=pc,Hj=Ma,Kj=Object.prototype,Jj=Kj.hasOwnProperty;function Yj(e,t,n){var o=e[t];(!(Jj.call(e,t)&&Hj(o,n))||n===void 0&&!(t in e))&&Gj(e,t,n)}var gc=Yj,Zj=gc,Xj=pc;function Qj(e,t,n,o){var s=!n;n||(n={});for(var l=-1,c=t.length;++l<c;){var f=t[l],h=o?o(n[f],e[f],f,n,e):void 0;h===void 0&&(h=e[f]),s?Xj(n,f,h):Zj(n,f,h)}return n}var Ha=Qj;function ex(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var tx=ex,rx=Wt,nx=Ni,ax=tx,ox=Object.prototype,ix=ox.hasOwnProperty;function sx(e){if(!rx(e))return ax(e);var t=nx(e),n=[];for(var o in e)o=="constructor"&&(t||!ix.call(e,o))||n.push(o);return n}var ux=sx,lx=ng,cx=ux,dx=Hr;function fx(e){return dx(e)?lx(e,!0):cx(e)}var Ka=fx,px=Ha,hx=Ka;function mx(e){return px(e,hx(e))}var gx=mx,qh=zv,vx=qv,yx=Gv,_x=Ga,$x=Hv,Gh=Fa,Hh=Qe,bx=Lj,wx=ja,Ex=Ti,Sx=Wt,Ax=Jv,Cx=ki,Kh=Yv,Ox=gx;function Tx(e,t,n,o,s,l,c){var f=Kh(e,n),h=Kh(t,n),g=c.get(h);if(g){qh(e,n,g);return}var y=l?l(f,h,n+"",e,t,c):void 0,w=y===void 0;if(w){var C=Hh(h),I=!C&&wx(h),O=!C&&!I&&Cx(h);y=h,C||I||O?Hh(f)?y=f:bx(f)?y=_x(f):I?(w=!1,y=vx(h,!0)):O?(w=!1,y=yx(h,!0)):y=[]:Ax(h)||Gh(h)?(y=f,Gh(f)?y=Ox(f):(!Sx(f)||Ex(f))&&(y=$x(h))):w=!1}w&&(c.set(h,y),s(y,h,o,l,c),c.delete(h)),qh(e,n,y)}var Ix=Tx,Px=Ri,Rx=zv,kx=Vv,Nx=Ix,Dx=Wt,Lx=Ka,Bx=Yv;function Zv(e,t,n,o,s){e!==t&&kx(t,function(l,c){if(s||(s=new Px),Dx(l))Nx(e,t,c,n,Zv,o,s);else{var f=o?o(Bx(e,c),l,c+"",e,t,s):void 0;f===void 0&&(f=l),Rx(e,c,f)}},Lx)}var Mx=Zv;function Fx(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var vc=Fx,jx=vc,Jh=Math.max;function xx(e,t,n){return t=Jh(t===void 0?e.length-1:t,0),function(){for(var o=arguments,s=-1,l=Jh(o.length-t,0),c=Array(l);++s<l;)c[s]=o[t+s];s=-1;for(var f=Array(t+1);++s<t;)f[s]=o[s];return f[t]=n(c),jx(e,this,f)}}var Xv=xx;function Vx(e){return function(){return e}}var Ux=Vx,Wx=Ux,Yh=Wv,zx=Li,qx=Yh?function(e,t){return Yh(e,"toString",{configurable:!0,enumerable:!1,value:Wx(t),writable:!0})}:zx,Gx=qx,Hx=800,Kx=16,Jx=Date.now;function Yx(e){var t=0,n=0;return function(){var o=Jx(),s=Kx-(o-n);if(n=o,s>0){if(++t>=Hx)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Qv=Yx,Zx=Gx,Xx=Qv,Qx=Xx(Zx),yc=Qx,eV=Li,tV=Xv,rV=yc;function nV(e,t){return rV(tV(e,t,eV),e+"")}var aV=nV,oV=aV,iV=Fg;function sV(e){return oV(function(t,n){var o=-1,s=n.length,l=s>1?n[s-1]:void 0,c=s>2?n[2]:void 0;for(l=e.length>3&&typeof l=="function"?(s--,l):void 0,c&&iV(n[0],n[1],c)&&(l=s<3?void 0:l,s=1),t=Object(t);++o<s;){var f=n[o];f&&e(t,f,o,l)}return t})}var uV=sV,lV=Mx,cV=uV,dV=cV(function(e,t,n){lV(e,t,n)}),fV=dV;const pV=Xe(fV);function hV(e,t){for(var n=-1,o=e==null?0:e.length;++n<o&&t(e[n],n,e)!==!1;);return e}var _c=hV,mV=Ha,gV=Kr;function vV(e,t){return e&&mV(t,gV(t),e)}var e0=vV,yV=Ha,_V=Ka;function $V(e,t){return e&&yV(t,_V(t),e)}var bV=$V,wV=Ha,EV=dl;function SV(e,t){return wV(e,EV(e),t)}var AV=SV,CV=cl,OV=mc,TV=dl,IV=tg,PV=Object.getOwnPropertySymbols,RV=PV?function(e){for(var t=[];e;)CV(t,TV(e)),e=OV(e);return t}:IV,t0=RV,kV=Ha,NV=t0;function DV(e,t){return kV(e,NV(e),t)}var LV=DV,BV=Qm,MV=t0,FV=Ka;function jV(e){return BV(e,FV,MV)}var xV=jV,VV=Object.prototype,UV=VV.hasOwnProperty;function WV(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&UV.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var zV=WV,qV=hc;function GV(e,t){var n=t?qV(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var HV=GV,KV=/\w*$/;function JV(e){var t=new e.constructor(e.source,KV.exec(e));return t.lastIndex=e.lastIndex,t}var YV=JV,Zh=zn,Xh=Zh?Zh.prototype:void 0,Qh=Xh?Xh.valueOf:void 0;function ZV(e){return Qh?Object(Qh.call(e)):{}}var XV=ZV,QV=hc,eU=HV,tU=YV,rU=XV,nU=Gv,aU="[object Boolean]",oU="[object Date]",iU="[object Map]",sU="[object Number]",uU="[object RegExp]",lU="[object Set]",cU="[object String]",dU="[object Symbol]",fU="[object ArrayBuffer]",pU="[object DataView]",hU="[object Float32Array]",mU="[object Float64Array]",gU="[object Int8Array]",vU="[object Int16Array]",yU="[object Int32Array]",_U="[object Uint8Array]",$U="[object Uint8ClampedArray]",bU="[object Uint16Array]",wU="[object Uint32Array]";function EU(e,t,n){var o=e.constructor;switch(t){case fU:return QV(e);case aU:case oU:return new o(+e);case pU:return eU(e,n);case hU:case mU:case gU:case vU:case yU:case _U:case $U:case bU:case wU:return nU(e,n);case iU:return new o;case sU:case cU:return new o(e);case uU:return tU(e);case lU:return new o;case dU:return rU(e)}}var SU=EU,AU=Zn,CU=Nt,OU="[object Map]";function TU(e){return CU(e)&&AU(e)==OU}var IU=TU,PU=IU,RU=pl,em=hl,tm=em&&em.isMap,kU=tm?RU(tm):PU,NU=kU,DU=Zn,LU=Nt,BU="[object Set]";function MU(e){return LU(e)&&DU(e)==BU}var FU=MU,jU=FU,xU=pl,rm=hl,nm=rm&&rm.isSet,VU=nm?xU(nm):jU,UU=VU,WU=Ri,zU=_c,qU=gc,GU=e0,HU=bV,KU=qv,JU=Ga,YU=AV,ZU=LV,XU=og,QU=xV,e7=Zn,t7=zV,r7=SU,n7=Hv,a7=Qe,o7=ja,i7=NU,s7=Wt,u7=UU,l7=Kr,c7=Ka,d7=1,f7=2,p7=4,r0="[object Arguments]",h7="[object Array]",m7="[object Boolean]",g7="[object Date]",v7="[object Error]",n0="[object Function]",y7="[object GeneratorFunction]",_7="[object Map]",$7="[object Number]",a0="[object Object]",b7="[object RegExp]",w7="[object Set]",E7="[object String]",S7="[object Symbol]",A7="[object WeakMap]",C7="[object ArrayBuffer]",O7="[object DataView]",T7="[object Float32Array]",I7="[object Float64Array]",P7="[object Int8Array]",R7="[object Int16Array]",k7="[object Int32Array]",N7="[object Uint8Array]",D7="[object Uint8ClampedArray]",L7="[object Uint16Array]",B7="[object Uint32Array]",ke={};ke[r0]=ke[h7]=ke[C7]=ke[O7]=ke[m7]=ke[g7]=ke[T7]=ke[I7]=ke[P7]=ke[R7]=ke[k7]=ke[_7]=ke[$7]=ke[a0]=ke[b7]=ke[w7]=ke[E7]=ke[S7]=ke[N7]=ke[D7]=ke[L7]=ke[B7]=!0;ke[v7]=ke[n0]=ke[A7]=!1;function ai(e,t,n,o,s,l){var c,f=t&d7,h=t&f7,g=t&p7;if(n&&(c=s?n(e,o,s,l):n(e)),c!==void 0)return c;if(!s7(e))return e;var y=a7(e);if(y){if(c=t7(e),!f)return JU(e,c)}else{var w=e7(e),C=w==n0||w==y7;if(o7(e))return KU(e,f);if(w==a0||w==r0||C&&!s){if(c=h||C?{}:n7(e),!f)return h?ZU(e,HU(c,e)):YU(e,GU(c,e))}else{if(!ke[w])return s?e:{};c=r7(e,w,f)}}l||(l=new WU);var I=l.get(e);if(I)return I;l.set(e,c),u7(e)?e.forEach(function(A){c.add(ai(A,t,n,A,e,l))}):i7(e)&&e.forEach(function(A,b){c.set(b,ai(A,t,n,b,e,l))});var O=g?h?QU:XU:h?c7:l7,N=y?void 0:O(e);return zU(N||e,function(A,b){N&&(b=A,A=e[b]),qU(c,b,ai(A,t,n,b,e,l))}),c}var $c=ai,M7=$c,F7=1,j7=4;function x7(e){return M7(e,F7|j7)}var V7=x7;const am=Xe(V7);var o0={};(function(e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,o={};for(var s in n){var l=n[s];t.call(o,l)?o[l].push(s):o[l]=[s]}return o}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}})(o0);var wu,om;function bc(){return om||(om=1,wu={}),wu}var Ge=o0,U7=bc(),im=Array.prototype.push;function W7(e,t){return t==2?function(n,o){return e.apply(void 0,arguments)}:function(n){return e.apply(void 0,arguments)}}function Eu(e,t){return t==2?function(n,o){return e(n,o)}:function(n){return e(n)}}function sm(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function z7(e){return function(t){return e({},t)}}function q7(e,t){return function(){for(var n=arguments.length,o=n-1,s=Array(n);n--;)s[n]=arguments[n];var l=s[t],c=s.slice(0,t);return l&&im.apply(c,l),t!=o&&im.apply(c,s.slice(t+1)),e.apply(this,c)}}function Su(e,t){return function(){var n=arguments.length;if(n){for(var o=Array(n);n--;)o[n]=arguments[n];var s=o[0]=t.apply(void 0,o);return e.apply(void 0,o),s}}}function Qu(e,t,n,o){var s=typeof t=="function",l=t===Object(t);if(l&&(o=n,n=t,t=void 0),n==null)throw new TypeError;o||(o={});var c={cap:"cap"in o?o.cap:!0,curry:"curry"in o?o.curry:!0,fixed:"fixed"in o?o.fixed:!0,immutable:"immutable"in o?o.immutable:!0,rearg:"rearg"in o?o.rearg:!0},f=s?n:U7,h="curry"in o&&o.curry,g="fixed"in o&&o.fixed,y="rearg"in o&&o.rearg,w=s?n.runInContext():void 0,C=s?n:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},I=C.ary,O=C.assign,N=C.clone,A=C.curry,b=C.forEach,R=C.isArray,M=C.isError,U=C.isFunction,G=C.isWeakMap,se=C.keys,X=C.rearg,he=C.toInteger,te=C.toPath,ue=se(Ge.aryMethod),Te={castArray:function($){return function(){var T=arguments[0];return R(T)?$(sm(T)):$.apply(void 0,arguments)}},iteratee:function($){return function(){var T=arguments[0],j=arguments[1],W=$(T,j),J=W.length;return c.cap&&typeof j=="number"?(j=j>2?j-2:1,J&&J<=j?W:Eu(W,j)):W}},mixin:function($){return function(T){var j=this;if(!U(j))return $(j,Object(T));var W=[];return b(se(T),function(J){U(T[J])&&W.push([J,j.prototype[J]])}),$(j,Object(T)),b(W,function(J){var ie=J[1];U(ie)?j.prototype[J[0]]=ie:delete j.prototype[J[0]]}),j}},nthArg:function($){return function(T){var j=T<0?1:he(T)+1;return A($(T),j)}},rearg:function($){return function(T,j){var W=j?j.length:0;return A($(T,j),W)}},runInContext:function($){return function(T){return Qu(e,$(T),o)}}};function Ee($,T){if(c.cap){var j=Ge.iterateeRearg[$];if(j)return H(T,j);var W=!s&&Ge.iterateeAry[$];if(W)return Ir(T,W)}return T}function Je($,T,j){return h||c.curry&&j>1?A(T,j):T}function We($,T,j){if(c.fixed&&(g||!Ge.skipFixed[$])){var W=Ge.methodSpread[$],J=W&&W.start;return J===void 0?I(T,j):q7(T,J)}return T}function dt($,T,j){return c.rearg&&j>1&&(y||!Ge.skipRearg[$])?X(T,Ge.methodRearg[$]||Ge.aryRearg[j]):T}function Tr($,T){T=te(T);for(var j=-1,W=T.length,J=W-1,ie=N(Object($)),we=ie;we!=null&&++j<W;){var Be=T[j],et=we[Be];et!=null&&!(U(et)||M(et)||G(et))&&(we[Be]=N(j==J?et:Object(et))),we=we[Be]}return ie}function At($){return L.runInContext.convert($)(void 0)}function ft($,T){var j=Ge.aliasToReal[$]||$,W=Ge.remap[j]||j,J=o;return function(ie){var we=s?w:C,Be=s?w[W]:T,et=O(O({},J),ie);return Qu(we,j,Be,et)}}function Ir($,T){return D($,function(j){return typeof j=="function"?Eu(j,T):j})}function H($,T){return D($,function(j){var W=T.length;return W7(X(Eu(j,W),T),W)})}function D($,T){return function(){var j=arguments.length;if(!j)return $();for(var W=Array(j);j--;)W[j]=arguments[j];var J=c.rearg?0:j-1;return W[J]=T(W[J]),$.apply(void 0,W)}}function q($,T,j){var W,J=Ge.aliasToReal[$]||$,ie=T,we=Te[J];return we?ie=we(T):c.immutable&&(Ge.mutate.array[J]?ie=Su(T,sm):Ge.mutate.object[J]?ie=Su(T,z7(T)):Ge.mutate.set[J]&&(ie=Su(T,Tr))),b(ue,function(Be){return b(Ge.aryMethod[Be],function(et){if(J==et){var Ye=Ge.methodSpread[J],zt=Ye&&Ye.afterRearg;return W=zt?We(J,dt(J,ie,Be),Be):dt(J,We(J,ie,Be),Be),W=Ee(J,W),W=Je(J,W,Be),!1}}),!W}),W||(W=ie),W==T&&(W=h?A(W,1):function(){return T.apply(this,arguments)}),W.convert=ft(J,T),W.placeholder=T.placeholder=j,W}if(!l)return q(t,n,f);var L=n,_=[];return b(ue,function($){b(Ge.aryMethod[$],function(T){var j=L[Ge.remap[T]||T];j&&_.push([T,q(T,j,L)])})}),b(se(L),function($){var T=L[$];if(typeof T=="function"){for(var j=_.length;j--;)if(_[j][0]==$)return;T.convert=ft($,T),_.push([$,T])}}),b(_,function($){L[$[0]]=$[1]}),L.convert=At,L.placeholder=L,b(se(L),function($){b(Ge.realToAlias[$]||[],function(T){L[T]=L[$]})}),L}var G7=Qu,um=ig,H7=um&&new um,i0=H7,K7=Li,lm=i0,J7=lm?function(e,t){return lm.set(e,t),e}:K7,s0=J7,Y7=Wi,Z7=Wt;function X7(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Y7(e.prototype),o=e.apply(n,t);return Z7(o)?o:n}}var zi=X7,Q7=zi,eW=St,tW=1;function rW(e,t,n){var o=t&tW,s=Q7(e);function l(){var c=this&&this!==eW&&this instanceof l?s:e;return c.apply(o?n:this,arguments)}return l}var nW=rW,aW=Math.max;function oW(e,t,n,o){for(var s=-1,l=e.length,c=n.length,f=-1,h=t.length,g=aW(l-c,0),y=Array(h+g),w=!o;++f<h;)y[f]=t[f];for(;++s<c;)(w||s<l)&&(y[n[s]]=e[s]);for(;g--;)y[f++]=e[s++];return y}var u0=oW,iW=Math.max;function sW(e,t,n,o){for(var s=-1,l=e.length,c=-1,f=n.length,h=-1,g=t.length,y=iW(l-f,0),w=Array(y+g),C=!o;++s<y;)w[s]=e[s];for(var I=s;++h<g;)w[I+h]=t[h];for(;++c<f;)(C||s<l)&&(w[I+n[c]]=e[s++]);return w}var l0=sW;function uW(e,t){for(var n=e.length,o=0;n--;)e[n]===t&&++o;return o}var lW=uW;function cW(){}var wc=cW,dW=Wi,fW=wc,pW=4294967295;function _i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=pW,this.__views__=[]}_i.prototype=dW(fW.prototype);_i.prototype.constructor=_i;var Ec=_i;function hW(){}var mW=hW,cm=i0,gW=mW,vW=cm?function(e){return cm.get(e)}:gW,c0=vW,yW={},_W=yW,dm=_W,$W=Object.prototype,bW=$W.hasOwnProperty;function wW(e){for(var t=e.name+"",n=dm[t],o=bW.call(dm,t)?n.length:0;o--;){var s=n[o],l=s.func;if(l==null||l==e)return s.name}return t}var EW=wW,SW=Wi,AW=wc;function $i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}$i.prototype=SW(AW.prototype);$i.prototype.constructor=$i;var d0=$i,CW=Ec,OW=d0,TW=Ga;function IW(e){if(e instanceof CW)return e.clone();var t=new OW(e.__wrapped__,e.__chain__);return t.__actions__=TW(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var PW=IW,RW=Ec,fm=d0,kW=wc,NW=Qe,DW=Nt,LW=PW,BW=Object.prototype,MW=BW.hasOwnProperty;function bi(e){if(DW(e)&&!NW(e)&&!(e instanceof RW)){if(e instanceof fm)return e;if(MW.call(e,"__wrapped__"))return LW(e)}return new fm(e)}bi.prototype=kW.prototype;bi.prototype.constructor=bi;var FW=bi,jW=Ec,xW=c0,VW=EW,UW=FW;function WW(e){var t=VW(e),n=UW[t];if(typeof n!="function"||!(t in jW.prototype))return!1;if(e===n)return!0;var o=xW(n);return!!o&&e===o[0]}var zW=WW,qW=s0,GW=Qv,HW=GW(qW),f0=HW,KW=/\{\n\/\* \[wrapped with (.+)\] \*/,JW=/,? & /;function YW(e){var t=e.match(KW);return t?t[1].split(JW):[]}var ZW=YW,XW=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function QW(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(XW,`{
10
10
  /* [wrapped with `+t+`] */
11
- `)}var WW=UW,zW=Vg;function qW(e,t){var n=e==null?0:e.length;return!!n&&zW(e,t,0)>-1}var GW=qW,HW=_c,KW=GW,JW=1,YW=2,ZW=8,XW=16,QW=32,ez=64,tz=128,rz=256,nz=512,az=[["ary",tz],["bind",JW],["bindKey",YW],["curry",ZW],["curryRight",XW],["flip",nz],["partial",QW],["partialRight",ez],["rearg",rz]];function oz(e,t){return HW(az,function(n){var o="_."+n[0];t&n[1]&&!KW(e,o)&&e.push(o)}),e.sort()}var iz=oz,sz=xW,uz=WW,lz=yc,cz=iz;function dz(e,t,n){var o=t+"";return lz(e,uz(o,cz(sz(o),n)))}var p0=dz,fz=NW,pz=f0,hz=p0,mz=1,gz=2,vz=4,yz=8,pm=32,hm=64;function _z(e,t,n,o,s,l,c,f,h,g){var y=t&yz,w=y?c:void 0,C=y?void 0:c,I=y?l:void 0,O=y?void 0:l;t|=y?pm:hm,t&=~(y?hm:pm),t&vz||(t&=~(mz|gz));var N=[e,t,s,I,w,O,C,f,h,g],A=n.apply(void 0,N);return fz(e)&&pz(A,N),A.placeholder=o,hz(A,e,t)}var h0=_z;function $z(e){var t=e;return t.placeholder}var m0=$z,bz=Ga,wz=xa,Ez=Math.min;function Sz(e,t){for(var n=e.length,o=Ez(t.length,n),s=bz(e);o--;){var l=t[o];e[o]=wz(l,n)?s[l]:void 0}return e}var Az=Sz,mm="__lodash_placeholder__";function Cz(e,t){for(var n=-1,o=e.length,s=0,l=[];++n<o;){var c=e[n];(c===t||c===mm)&&(e[n]=mm,l[s++]=n)}return l}var Sc=Cz,Oz=u0,Tz=l0,Iz=X7,gm=zi,Pz=h0,Rz=m0,kz=Az,Nz=Sc,Dz=St,Lz=1,Bz=2,Mz=8,Fz=16,jz=128,xz=512;function g0(e,t,n,o,s,l,c,f,h,g){var y=t&jz,w=t&Lz,C=t&Bz,I=t&(Mz|Fz),O=t&xz,N=C?void 0:gm(e);function A(){for(var b=arguments.length,R=Array(b),M=b;M--;)R[M]=arguments[M];if(I)var U=Rz(A),G=Iz(R,U);if(o&&(R=Oz(R,o,s,I)),l&&(R=Tz(R,l,c,I)),b-=G,I&&b<g){var se=Nz(R,U);return Pz(e,t,g0,A.placeholder,n,R,se,f,h,g-b)}var X=w?n:this,he=C?X[e]:e;return b=R.length,f?R=kz(R,f):O&&b>1&&R.reverse(),y&&h<b&&(R.length=h),this&&this!==Dz&&this instanceof A&&(he=N||gm(he)),he.apply(X,R)}return A}var v0=g0,Vz=vc,Uz=zi,Wz=v0,zz=h0,qz=m0,Gz=Sc,Hz=St;function Kz(e,t,n){var o=Uz(e);function s(){for(var l=arguments.length,c=Array(l),f=l,h=qz(s);f--;)c[f]=arguments[f];var g=l<3&&c[0]!==h&&c[l-1]!==h?[]:Gz(c,h);if(l-=g.length,l<n)return zz(e,t,Wz,s.placeholder,void 0,c,g,void 0,void 0,n-l);var y=this&&this!==Hz&&this instanceof s?o:e;return Vz(y,this,c)}return s}var Jz=Kz,Yz=vc,Zz=zi,Xz=St,Qz=1;function eq(e,t,n,o){var s=t&Qz,l=Zz(e);function c(){for(var f=-1,h=arguments.length,g=-1,y=o.length,w=Array(y+h),C=this&&this!==Xz&&this instanceof c?l:e;++g<y;)w[g]=o[g];for(;h--;)w[g++]=arguments[++f];return Yz(C,s?n:this,w)}return c}var tq=eq,rq=u0,nq=l0,vm=Sc,ym="__lodash_placeholder__",Au=1,aq=2,oq=4,_m=8,Aa=128,$m=256,iq=Math.min;function sq(e,t){var n=e[1],o=t[1],s=n|o,l=s<(Au|aq|Aa),c=o==Aa&&n==_m||o==Aa&&n==$m&&e[7].length<=t[8]||o==(Aa|$m)&&t[7].length<=t[8]&&n==_m;if(!(l||c))return e;o&Au&&(e[2]=t[2],s|=n&Au?0:oq);var f=t[3];if(f){var h=e[3];e[3]=h?rq(h,f,t[4]):f,e[4]=h?vm(e[3],ym):t[4]}return f=t[5],f&&(h=e[5],e[5]=h?nq(h,f,t[6]):f,e[6]=h?vm(e[5],ym):t[6]),f=t[7],f&&(e[7]=f),o&Aa&&(e[8]=e[8]==null?t[8]:iq(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=s,e}var uq=sq,lq=s0,cq=G7,dq=Jz,fq=v0,pq=tq,hq=c0,mq=uq,gq=f0,vq=p0,bm=Bi,yq="Expected a function",wm=1,_q=2,Cu=8,Ou=16,Tu=32,Em=64,Sm=Math.max;function $q(e,t,n,o,s,l,c,f){var h=t&_q;if(!h&&typeof e!="function")throw new TypeError(yq);var g=o?o.length:0;if(g||(t&=~(Tu|Em),o=s=void 0),c=c===void 0?c:Sm(bm(c),0),f=f===void 0?f:bm(f),g-=s?s.length:0,t&Em){var y=o,w=s;o=s=void 0}var C=h?void 0:hq(e),I=[e,t,n,o,s,y,w,l,c,f];if(C&&mq(I,C),e=I[0],t=I[1],n=I[2],o=I[3],s=I[4],f=I[9]=I[9]===void 0?h?0:e.length:Sm(I[9]-g,0),!f&&t&(Cu|Ou)&&(t&=~(Cu|Ou)),!t||t==wm)var O=cq(e,t,n);else t==Cu||t==Ou?O=dq(e,t,f):(t==Tu||t==(wm|Tu))&&!s.length?O=pq(e,t,n,o):O=fq.apply(void 0,I);var N=C?lq:gq;return vq(N(O,I),e,t)}var Ac=$q,bq=Ac,wq=128;function Eq(e,t,n){return t=n?void 0:t,t=e&&t==null?e.length:t,bq(e,wq,void 0,void 0,void 0,void 0,t)}var Sq=Eq,Aq=$c,Cq=4;function Oq(e){return Aq(e,Cq)}var Tq=Oq,Iq=Ac,Pq=8;function Cc(e,t,n){t=n?void 0:t;var o=Iq(e,Pq,void 0,void 0,void 0,void 0,void 0,t);return o.placeholder=Cc.placeholder,o}Cc.placeholder={};var Rq=Cc,kq=Gr,Nq=Nt,Dq=Jv,Lq="[object DOMException]",Bq="[object Error]";function Mq(e){if(!Nq(e))return!1;var t=kq(e);return t==Bq||t==Lq||typeof e.message=="string"&&typeof e.name=="string"&&!Dq(e)}var Fq=Mq,jq=Zn,xq=Nt,Vq="[object WeakMap]";function Uq(e){return xq(e)&&jq(e)==Vq}var Wq=Uq,zq=$c,qq=Ua,Gq=1;function Hq(e){return qq(typeof e=="function"?e:zq(e,Gq))}var Kq=Hq,Am=zn,Jq=Fa,Yq=Qe,Cm=Am?Am.isConcatSpreadable:void 0;function Zq(e){return Yq(e)||Jq(e)||!!(Cm&&e&&e[Cm])}var Xq=Zq,Qq=cl,eG=Xq;function y0(e,t,n,o,s){var l=-1,c=e.length;for(n||(n=eG),s||(s=[]);++l<c;){var f=e[l];t>0&&n(f)?t>1?y0(f,t-1,n,o,s):Qq(s,f):o||(s[s.length]=f)}return s}var tG=y0,rG=tG;function nG(e){var t=e==null?0:e.length;return t?rG(e,1):[]}var aG=nG,oG=aG,iG=Xv,sG=yc;function uG(e){return sG(iG(e,void 0,oG),e+"")}var lG=uG,cG=Ac,dG=lG,fG=256,pG=dG(function(e,t){return cG(e,fG,void 0,void 0,void 0,t)}),hG=pG,mG=_l,gG=Ga,vG=Qe,yG=qn,_G=fg,$G=mn,bG=Va;function wG(e){return vG(e)?mG(e,$G):yG(e)?[e]:gG(_G(bG(e)))}var EG=wG,SG={ary:Sq,assign:e0,clone:Tq,curry:Rq,forEach:_c,isArray:Qe,isError:Fq,isFunction:Ti,isWeakMap:Wq,iteratee:Kq,keys:ml,rearg:hG,toInteger:Bi,toPath:EG},AG=L7,CG=SG;function OG(e,t,n){return AG(CG,e,t,n)}var _0=OG,Iu,Om;function TG(){if(Om)return Iu;Om=1;var e=gc,t=Di,n=xa,o=Wt,s=mn;function l(c,f,h,g){if(!o(c))return c;f=t(f,c);for(var y=-1,w=f.length,C=w-1,I=c;I!=null&&++y<w;){var O=s(f[y]),N=h;if(O==="__proto__"||O==="constructor"||O==="prototype")return c;if(y!=C){var A=I[O];N=g?g(A,O,I):void 0,N===void 0&&(N=o(A)?A:n(f[y+1])?[]:{})}e(I,O,N),I=I[O]}return c}return Iu=l,Iu}var Pu,Tm;function IG(){if(Tm)return Pu;Tm=1;var e=TG();function t(n,o,s){return n==null?n:e(n,o,s)}return Pu=t,Pu}var PG=_0,$0=PG("set",IG());$0.placeholder=bc();var RG=$0;const kG=Xe(RG);function NG(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var DG=NG,LG=$l,BG=Ig;function MG(e,t){return t.length<2?e:LG(e,BG(t,0,-1))}var FG=MG,jG=Di,xG=DG,VG=FG,UG=mn;function WG(e,t){return t=jG(t,e),e=VG(e,t),e==null||delete e[UG(xG(t))]}var zG=WG,Ru,Im;function qG(){if(Im)return Ru;Im=1;var e=zG;function t(n,o){return n==null?!0:e(n,o)}return Ru=t,Ru}var GG=_0,b0=GG("unset",qG());b0.placeholder=bc();var HG=b0;const KG=Xe(HG);var wi={exports:{}};/**
11
+ `)}var ez=QW,tz=Vg;function rz(e,t){var n=e==null?0:e.length;return!!n&&tz(e,t,0)>-1}var nz=rz,az=_c,oz=nz,iz=1,sz=2,uz=8,lz=16,cz=32,dz=64,fz=128,pz=256,hz=512,mz=[["ary",fz],["bind",iz],["bindKey",sz],["curry",uz],["curryRight",lz],["flip",hz],["partial",cz],["partialRight",dz],["rearg",pz]];function gz(e,t){return az(mz,function(n){var o="_."+n[0];t&n[1]&&!oz(e,o)&&e.push(o)}),e.sort()}var vz=gz,yz=ZW,_z=ez,$z=yc,bz=vz;function wz(e,t,n){var o=t+"";return $z(e,_z(o,bz(yz(o),n)))}var p0=wz,Ez=zW,Sz=f0,Az=p0,Cz=1,Oz=2,Tz=4,Iz=8,pm=32,hm=64;function Pz(e,t,n,o,s,l,c,f,h,g){var y=t&Iz,w=y?c:void 0,C=y?void 0:c,I=y?l:void 0,O=y?void 0:l;t|=y?pm:hm,t&=~(y?hm:pm),t&Tz||(t&=~(Cz|Oz));var N=[e,t,s,I,w,O,C,f,h,g],A=n.apply(void 0,N);return Ez(e)&&Sz(A,N),A.placeholder=o,Az(A,e,t)}var h0=Pz;function Rz(e){var t=e;return t.placeholder}var m0=Rz,kz=Ga,Nz=xa,Dz=Math.min;function Lz(e,t){for(var n=e.length,o=Dz(t.length,n),s=kz(e);o--;){var l=t[o];e[o]=Nz(l,n)?s[l]:void 0}return e}var Bz=Lz,mm="__lodash_placeholder__";function Mz(e,t){for(var n=-1,o=e.length,s=0,l=[];++n<o;){var c=e[n];(c===t||c===mm)&&(e[n]=mm,l[s++]=n)}return l}var Sc=Mz,Fz=u0,jz=l0,xz=lW,gm=zi,Vz=h0,Uz=m0,Wz=Bz,zz=Sc,qz=St,Gz=1,Hz=2,Kz=8,Jz=16,Yz=128,Zz=512;function g0(e,t,n,o,s,l,c,f,h,g){var y=t&Yz,w=t&Gz,C=t&Hz,I=t&(Kz|Jz),O=t&Zz,N=C?void 0:gm(e);function A(){for(var b=arguments.length,R=Array(b),M=b;M--;)R[M]=arguments[M];if(I)var U=Uz(A),G=xz(R,U);if(o&&(R=Fz(R,o,s,I)),l&&(R=jz(R,l,c,I)),b-=G,I&&b<g){var se=zz(R,U);return Vz(e,t,g0,A.placeholder,n,R,se,f,h,g-b)}var X=w?n:this,he=C?X[e]:e;return b=R.length,f?R=Wz(R,f):O&&b>1&&R.reverse(),y&&h<b&&(R.length=h),this&&this!==qz&&this instanceof A&&(he=N||gm(he)),he.apply(X,R)}return A}var v0=g0,Xz=vc,Qz=zi,eq=v0,tq=h0,rq=m0,nq=Sc,aq=St;function oq(e,t,n){var o=Qz(e);function s(){for(var l=arguments.length,c=Array(l),f=l,h=rq(s);f--;)c[f]=arguments[f];var g=l<3&&c[0]!==h&&c[l-1]!==h?[]:nq(c,h);if(l-=g.length,l<n)return tq(e,t,eq,s.placeholder,void 0,c,g,void 0,void 0,n-l);var y=this&&this!==aq&&this instanceof s?o:e;return Xz(y,this,c)}return s}var iq=oq,sq=vc,uq=zi,lq=St,cq=1;function dq(e,t,n,o){var s=t&cq,l=uq(e);function c(){for(var f=-1,h=arguments.length,g=-1,y=o.length,w=Array(y+h),C=this&&this!==lq&&this instanceof c?l:e;++g<y;)w[g]=o[g];for(;h--;)w[g++]=arguments[++f];return sq(C,s?n:this,w)}return c}var fq=dq,pq=u0,hq=l0,vm=Sc,ym="__lodash_placeholder__",Au=1,mq=2,gq=4,_m=8,Aa=128,$m=256,vq=Math.min;function yq(e,t){var n=e[1],o=t[1],s=n|o,l=s<(Au|mq|Aa),c=o==Aa&&n==_m||o==Aa&&n==$m&&e[7].length<=t[8]||o==(Aa|$m)&&t[7].length<=t[8]&&n==_m;if(!(l||c))return e;o&Au&&(e[2]=t[2],s|=n&Au?0:gq);var f=t[3];if(f){var h=e[3];e[3]=h?pq(h,f,t[4]):f,e[4]=h?vm(e[3],ym):t[4]}return f=t[5],f&&(h=e[5],e[5]=h?hq(h,f,t[6]):f,e[6]=h?vm(e[5],ym):t[6]),f=t[7],f&&(e[7]=f),o&Aa&&(e[8]=e[8]==null?t[8]:vq(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=s,e}var _q=yq,$q=s0,bq=nW,wq=iq,Eq=v0,Sq=fq,Aq=c0,Cq=_q,Oq=f0,Tq=p0,bm=Bi,Iq="Expected a function",wm=1,Pq=2,Cu=8,Ou=16,Tu=32,Em=64,Sm=Math.max;function Rq(e,t,n,o,s,l,c,f){var h=t&Pq;if(!h&&typeof e!="function")throw new TypeError(Iq);var g=o?o.length:0;if(g||(t&=~(Tu|Em),o=s=void 0),c=c===void 0?c:Sm(bm(c),0),f=f===void 0?f:bm(f),g-=s?s.length:0,t&Em){var y=o,w=s;o=s=void 0}var C=h?void 0:Aq(e),I=[e,t,n,o,s,y,w,l,c,f];if(C&&Cq(I,C),e=I[0],t=I[1],n=I[2],o=I[3],s=I[4],f=I[9]=I[9]===void 0?h?0:e.length:Sm(I[9]-g,0),!f&&t&(Cu|Ou)&&(t&=~(Cu|Ou)),!t||t==wm)var O=bq(e,t,n);else t==Cu||t==Ou?O=wq(e,t,f):(t==Tu||t==(wm|Tu))&&!s.length?O=Sq(e,t,n,o):O=Eq.apply(void 0,I);var N=C?$q:Oq;return Tq(N(O,I),e,t)}var Ac=Rq,kq=Ac,Nq=128;function Dq(e,t,n){return t=n?void 0:t,t=e&&t==null?e.length:t,kq(e,Nq,void 0,void 0,void 0,void 0,t)}var Lq=Dq,Bq=$c,Mq=4;function Fq(e){return Bq(e,Mq)}var jq=Fq,xq=Ac,Vq=8;function Cc(e,t,n){t=n?void 0:t;var o=xq(e,Vq,void 0,void 0,void 0,void 0,void 0,t);return o.placeholder=Cc.placeholder,o}Cc.placeholder={};var Uq=Cc,Wq=Gr,zq=Nt,qq=Jv,Gq="[object DOMException]",Hq="[object Error]";function Kq(e){if(!zq(e))return!1;var t=Wq(e);return t==Hq||t==Gq||typeof e.message=="string"&&typeof e.name=="string"&&!qq(e)}var Jq=Kq,Yq=Zn,Zq=Nt,Xq="[object WeakMap]";function Qq(e){return Zq(e)&&Yq(e)==Xq}var eG=Qq,tG=$c,rG=Ua,nG=1;function aG(e){return rG(typeof e=="function"?e:tG(e,nG))}var oG=aG,Am=zn,iG=Fa,sG=Qe,Cm=Am?Am.isConcatSpreadable:void 0;function uG(e){return sG(e)||iG(e)||!!(Cm&&e&&e[Cm])}var lG=uG,cG=cl,dG=lG;function y0(e,t,n,o,s){var l=-1,c=e.length;for(n||(n=dG),s||(s=[]);++l<c;){var f=e[l];t>0&&n(f)?t>1?y0(f,t-1,n,o,s):cG(s,f):o||(s[s.length]=f)}return s}var fG=y0,pG=fG;function hG(e){var t=e==null?0:e.length;return t?pG(e,1):[]}var mG=hG,gG=mG,vG=Xv,yG=yc;function _G(e){return yG(vG(e,void 0,gG),e+"")}var $G=_G,bG=Ac,wG=$G,EG=256,SG=wG(function(e,t){return bG(e,EG,void 0,void 0,void 0,t)}),AG=SG,CG=_l,OG=Ga,TG=Qe,IG=qn,PG=fg,RG=mn,kG=Va;function NG(e){return TG(e)?CG(e,RG):IG(e)?[e]:OG(PG(kG(e)))}var DG=NG,LG={ary:Lq,assign:e0,clone:jq,curry:Uq,forEach:_c,isArray:Qe,isError:Jq,isFunction:Ti,isWeakMap:eG,iteratee:oG,keys:ml,rearg:AG,toInteger:Bi,toPath:DG},BG=G7,MG=LG;function FG(e,t,n){return BG(MG,e,t,n)}var _0=FG,Iu,Om;function jG(){if(Om)return Iu;Om=1;var e=gc,t=Di,n=xa,o=Wt,s=mn;function l(c,f,h,g){if(!o(c))return c;f=t(f,c);for(var y=-1,w=f.length,C=w-1,I=c;I!=null&&++y<w;){var O=s(f[y]),N=h;if(O==="__proto__"||O==="constructor"||O==="prototype")return c;if(y!=C){var A=I[O];N=g?g(A,O,I):void 0,N===void 0&&(N=o(A)?A:n(f[y+1])?[]:{})}e(I,O,N),I=I[O]}return c}return Iu=l,Iu}var Pu,Tm;function xG(){if(Tm)return Pu;Tm=1;var e=jG();function t(n,o,s){return n==null?n:e(n,o,s)}return Pu=t,Pu}var VG=_0,$0=VG("set",xG());$0.placeholder=bc();var UG=$0;const WG=Xe(UG);function zG(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var qG=zG,GG=$l,HG=Ig;function KG(e,t){return t.length<2?e:GG(e,HG(t,0,-1))}var JG=KG,YG=Di,ZG=qG,XG=JG,QG=mn;function eH(e,t){return t=YG(t,e),e=XG(e,t),e==null||delete e[QG(ZG(t))]}var tH=eH,Ru,Im;function rH(){if(Im)return Ru;Im=1;var e=tH;function t(n,o){return n==null?!0:e(n,o)}return Ru=t,Ru}var nH=_0,b0=nH("unset",rH());b0.placeholder=bc();var aH=b0;const oH=Xe(aH);var wi={exports:{}};/**
12
12
  * @license
13
13
  * Lodash <https://lodash.com/>
14
14
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -34,5 +34,5 @@ __p += '`),be&&(z+=`' +
34
34
  function print() { __p += __j.call(arguments, '') }
35
35
  `:`;
36
36
  `)+z+`return __p
37
- }`;var me=Ep(function(){return Se(v,Q+"return "+z).apply(n,E)});if(me.source=z,tu(me))throw me;return me}function jE(r){return Ae(r).toLowerCase()}function xE(r){return Ae(r).toUpperCase()}function VE(r,a,i){if(r=Ae(r),r&&(i||a===n))return Rd(r);if(!r||!(a=It(a)))return r;var d=qt(r),p=qt(a),v=kd(d,p),E=Nd(d,p)+1;return Fr(d,v,E).join("")}function UE(r,a,i){if(r=Ae(r),r&&(i||a===n))return r.slice(0,Ld(r)+1);if(!r||!(a=It(a)))return r;var d=qt(r),p=Nd(d,qt(a))+1;return Fr(d,0,p).join("")}function WE(r,a,i){if(r=Ae(r),r&&(i||a===n))return r.replace(ts,"");if(!r||!(a=It(a)))return r;var d=qt(r),p=kd(d,qt(a));return Fr(d,p).join("")}function zE(r,a){var i=ue,d=Te;if(Fe(a)){var p="separator"in a?a.separator:p;i="length"in a?fe(a.length):i,d="omission"in a?It(a.omission):d}r=Ae(r);var v=r.length;if(bn(r)){var E=qt(r);v=E.length}if(i>=v)return r;var S=i-wn(d);if(S<1)return d;var k=E?Fr(E,0,S).join(""):r.slice(0,S);if(p===n)return k+d;if(E&&(S+=k.length-S),ru(p)){if(r.slice(S).search(p)){var x,V=k;for(p.global||(p=ys(p.source,Ae(Qc.exec(p))+"g")),p.lastIndex=0;x=p.exec(V);)var z=x.index;k=k.slice(0,z===n?S:z)}}else if(r.indexOf(It(p),S)!=S){var K=k.lastIndexOf(p);K>-1&&(k=k.slice(0,K))}return k+d}function qE(r){return r=Ae(r),r&&r1.test(r)?r.replace(Yc,$y):r}var GE=In(function(r,a,i){return r+(i?" ":"")+a.toUpperCase()}),ou=Sf("toUpperCase");function wp(r,a,i){return r=Ae(r),a=i?n:a,a===n?my(r)?Ey(r):iy(r):r.match(a)||[]}var Ep=ve(function(r,a){try{return Ot(r,n,a)}catch(i){return tu(i)?i:new ce(i)}}),HE=vr(function(r,a){return Lt(a,function(i){i=rr(i),mr(r,i,Qs(r[i],r))}),r});function KE(r){var a=r==null?0:r.length,i=ne();return r=a?Me(r,function(d){if(typeof d[1]!="function")throw new Bt(c);return[i(d[0]),d[1]]}):[],ve(function(d){for(var p=-1;++p<a;){var v=r[p];if(Ot(v[0],this,d))return Ot(v[1],this,d)}})}function JE(r){return $_(Ft(r,w))}function iu(r){return function(){return r}}function YE(r,a){return r==null||r!==r?a:r}var ZE=Cf(),XE=Cf(!0);function bt(r){return r}function su(r){return tf(typeof r=="function"?r:Ft(r,w))}function QE(r){return nf(Ft(r,w))}function e2(r,a){return af(r,Ft(a,w))}var t2=ve(function(r,a){return function(i){return ma(i,r,a)}}),r2=ve(function(r,a){return function(i){return ma(r,i,a)}});function uu(r,a,i){var d=Ze(a),p=wo(a,d);i==null&&!(Fe(a)&&(p.length||!d.length))&&(i=a,a=r,r=this,p=wo(a,Ze(a)));var v=!(Fe(i)&&"chain"in i)||!!i.chain,E=_r(r);return Lt(p,function(S){var k=a[S];r[S]=k,E&&(r.prototype[S]=function(){var x=this.__chain__;if(v||x){var V=r(this.__wrapped__),z=V.__actions__=yt(this.__actions__);return z.push({func:k,args:arguments,thisArg:r}),V.__chain__=x,V}return k.apply(r,kr([this.value()],arguments))})}),r}function n2(){return tt._===this&&(tt._=Iy),this}function lu(){}function a2(r){return r=fe(r),ve(function(a){return of(a,r)})}var o2=xs(Me),i2=xs(Cd),s2=xs(ds);function Sp(r){return Hs(r)?fs(rr(r)):M_(r)}function u2(r){return function(a){return r==null?n:tn(r,a)}}var l2=Tf(),c2=Tf(!0);function cu(){return[]}function du(){return!1}function d2(){return{}}function f2(){return""}function p2(){return!0}function h2(r,a){if(r=fe(r),r<1||r>ft)return[];var i=D,d=it(r,D);a=ne(a),r-=D;for(var p=ms(d,a);++i<r;)a(i);return p}function m2(r){return de(r)?Me(r,rr):Pt(r)?[r]:yt(zf(Ae(r)))}function g2(r){var a=++Oy;return Ae(r)+a}var v2=To(function(r,a){return r+a},0),y2=Vs("ceil"),_2=To(function(r,a){return r/a},1),$2=Vs("floor");function b2(r){return r&&r.length?bo(r,bt,Cs):n}function w2(r,a){return r&&r.length?bo(r,ne(a,2),Cs):n}function E2(r){return Id(r,bt)}function S2(r,a){return Id(r,ne(a,2))}function A2(r){return r&&r.length?bo(r,bt,Ps):n}function C2(r,a){return r&&r.length?bo(r,ne(a,2),Ps):n}var O2=To(function(r,a){return r*a},1),T2=Vs("round"),I2=To(function(r,a){return r-a},0);function P2(r){return r&&r.length?hs(r,bt):0}function R2(r,a){return r&&r.length?hs(r,ne(a,2)):0}return m.after=Qb,m.ary=tp,m.assign=xw,m.assignIn=mp,m.assignInWith=Vo,m.assignWith=Vw,m.at=Uw,m.before=rp,m.bind=Qs,m.bindAll=HE,m.bindKey=np,m.castArray=dw,m.chain=Xf,m.chunk=$$,m.compact=b$,m.concat=w$,m.cond=KE,m.conforms=JE,m.constant=iu,m.countBy=Pb,m.create=Ww,m.curry=ap,m.curryRight=op,m.debounce=ip,m.defaults=zw,m.defaultsDeep=qw,m.defer=ew,m.delay=tw,m.difference=E$,m.differenceBy=S$,m.differenceWith=A$,m.drop=C$,m.dropRight=O$,m.dropRightWhile=T$,m.dropWhile=I$,m.fill=P$,m.filter=kb,m.flatMap=Lb,m.flatMapDeep=Bb,m.flatMapDepth=Mb,m.flatten=Kf,m.flattenDeep=R$,m.flattenDepth=k$,m.flip=rw,m.flow=ZE,m.flowRight=XE,m.fromPairs=N$,m.functions=Xw,m.functionsIn=Qw,m.groupBy=Fb,m.initial=L$,m.intersection=B$,m.intersectionBy=M$,m.intersectionWith=F$,m.invert=tE,m.invertBy=rE,m.invokeMap=xb,m.iteratee=su,m.keyBy=Vb,m.keys=Ze,m.keysIn=$t,m.map=Lo,m.mapKeys=aE,m.mapValues=oE,m.matches=QE,m.matchesProperty=e2,m.memoize=Mo,m.merge=iE,m.mergeWith=gp,m.method=t2,m.methodOf=r2,m.mixin=uu,m.negate=Fo,m.nthArg=a2,m.omit=sE,m.omitBy=uE,m.once=nw,m.orderBy=Ub,m.over=o2,m.overArgs=aw,m.overEvery=i2,m.overSome=s2,m.partial=eu,m.partialRight=sp,m.partition=Wb,m.pick=lE,m.pickBy=vp,m.property=Sp,m.propertyOf=u2,m.pull=U$,m.pullAll=Yf,m.pullAllBy=W$,m.pullAllWith=z$,m.pullAt=q$,m.range=l2,m.rangeRight=c2,m.rearg=ow,m.reject=Gb,m.remove=G$,m.rest=iw,m.reverse=Zs,m.sampleSize=Kb,m.set=dE,m.setWith=fE,m.shuffle=Jb,m.slice=H$,m.sortBy=Xb,m.sortedUniq=eb,m.sortedUniqBy=tb,m.split=LE,m.spread=sw,m.tail=rb,m.take=nb,m.takeRight=ab,m.takeRightWhile=ob,m.takeWhile=ib,m.tap=bb,m.throttle=uw,m.thru=Do,m.toArray=fp,m.toPairs=yp,m.toPairsIn=_p,m.toPath=m2,m.toPlainObject=hp,m.transform=pE,m.unary=lw,m.union=sb,m.unionBy=ub,m.unionWith=lb,m.uniq=cb,m.uniqBy=db,m.uniqWith=fb,m.unset=hE,m.unzip=Xs,m.unzipWith=Zf,m.update=mE,m.updateWith=gE,m.values=kn,m.valuesIn=vE,m.without=pb,m.words=wp,m.wrap=cw,m.xor=hb,m.xorBy=mb,m.xorWith=gb,m.zip=vb,m.zipObject=yb,m.zipObjectDeep=_b,m.zipWith=$b,m.entries=yp,m.entriesIn=_p,m.extend=mp,m.extendWith=Vo,uu(m,m),m.add=v2,m.attempt=Ep,m.camelCase=bE,m.capitalize=$p,m.ceil=y2,m.clamp=yE,m.clone=fw,m.cloneDeep=hw,m.cloneDeepWith=mw,m.cloneWith=pw,m.conformsTo=gw,m.deburr=bp,m.defaultTo=YE,m.divide=_2,m.endsWith=wE,m.eq=Ht,m.escape=EE,m.escapeRegExp=SE,m.every=Rb,m.find=Nb,m.findIndex=Gf,m.findKey=Gw,m.findLast=Db,m.findLastIndex=Hf,m.findLastKey=Hw,m.floor=$2,m.forEach=Qf,m.forEachRight=ep,m.forIn=Kw,m.forInRight=Jw,m.forOwn=Yw,m.forOwnRight=Zw,m.get=nu,m.gt=vw,m.gte=yw,m.has=eE,m.hasIn=au,m.head=Jf,m.identity=bt,m.includes=jb,m.indexOf=D$,m.inRange=_E,m.invoke=nE,m.isArguments=an,m.isArray=de,m.isArrayBuffer=_w,m.isArrayLike=_t,m.isArrayLikeObject=xe,m.isBoolean=$w,m.isBuffer=jr,m.isDate=bw,m.isElement=ww,m.isEmpty=Ew,m.isEqual=Sw,m.isEqualWith=Aw,m.isError=tu,m.isFinite=Cw,m.isFunction=_r,m.isInteger=up,m.isLength=jo,m.isMap=lp,m.isMatch=Ow,m.isMatchWith=Tw,m.isNaN=Iw,m.isNative=Pw,m.isNil=kw,m.isNull=Rw,m.isNumber=cp,m.isObject=Fe,m.isObjectLike=je,m.isPlainObject=ba,m.isRegExp=ru,m.isSafeInteger=Nw,m.isSet=dp,m.isString=xo,m.isSymbol=Pt,m.isTypedArray=Rn,m.isUndefined=Dw,m.isWeakMap=Lw,m.isWeakSet=Bw,m.join=j$,m.kebabCase=AE,m.last=xt,m.lastIndexOf=x$,m.lowerCase=CE,m.lowerFirst=OE,m.lt=Mw,m.lte=Fw,m.max=b2,m.maxBy=w2,m.mean=E2,m.meanBy=S2,m.min=A2,m.minBy=C2,m.stubArray=cu,m.stubFalse=du,m.stubObject=d2,m.stubString=f2,m.stubTrue=p2,m.multiply=O2,m.nth=V$,m.noConflict=n2,m.noop=lu,m.now=Bo,m.pad=TE,m.padEnd=IE,m.padStart=PE,m.parseInt=RE,m.random=$E,m.reduce=zb,m.reduceRight=qb,m.repeat=kE,m.replace=NE,m.result=cE,m.round=T2,m.runInContext=P,m.sample=Hb,m.size=Yb,m.snakeCase=DE,m.some=Zb,m.sortedIndex=K$,m.sortedIndexBy=J$,m.sortedIndexOf=Y$,m.sortedLastIndex=Z$,m.sortedLastIndexBy=X$,m.sortedLastIndexOf=Q$,m.startCase=BE,m.startsWith=ME,m.subtract=I2,m.sum=P2,m.sumBy=R2,m.template=FE,m.times=h2,m.toFinite=$r,m.toInteger=fe,m.toLength=pp,m.toLower=jE,m.toNumber=Vt,m.toSafeInteger=jw,m.toString=Ae,m.toUpper=xE,m.trim=VE,m.trimEnd=UE,m.trimStart=WE,m.truncate=zE,m.unescape=qE,m.uniqueId=g2,m.upperCase=GE,m.upperFirst=ou,m.each=Qf,m.eachRight=ep,m.first=Jf,uu(m,function(){var r={};return er(m,function(a,i){Ce.call(m.prototype,i)||(r[i]=a)}),r}(),{chain:!1}),m.VERSION=o,Lt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){m[r].placeholder=m}),Lt(["drop","take"],function(r,a){$e.prototype[r]=function(i){i=i===n?1:qe(fe(i),0);var d=this.__filtered__&&!a?new $e(this):this.clone();return d.__filtered__?d.__takeCount__=it(i,d.__takeCount__):d.__views__.push({size:it(i,D),type:r+(d.__dir__<0?"Right":"")}),d},$e.prototype[r+"Right"]=function(i){return this.reverse()[r](i).reverse()}}),Lt(["filter","map","takeWhile"],function(r,a){var i=a+1,d=i==We||i==Tr;$e.prototype[r]=function(p){var v=this.clone();return v.__iteratees__.push({iteratee:ne(p,3),type:i}),v.__filtered__=v.__filtered__||d,v}}),Lt(["head","last"],function(r,a){var i="take"+(a?"Right":"");$e.prototype[r]=function(){return this[i](1).value()[0]}}),Lt(["initial","tail"],function(r,a){var i="drop"+(a?"":"Right");$e.prototype[r]=function(){return this.__filtered__?new $e(this):this[i](1)}}),$e.prototype.compact=function(){return this.filter(bt)},$e.prototype.find=function(r){return this.filter(r).head()},$e.prototype.findLast=function(r){return this.reverse().find(r)},$e.prototype.invokeMap=ve(function(r,a){return typeof r=="function"?new $e(this):this.map(function(i){return ma(i,r,a)})}),$e.prototype.reject=function(r){return this.filter(Fo(ne(r)))},$e.prototype.slice=function(r,a){r=fe(r);var i=this;return i.__filtered__&&(r>0||a<0)?new $e(i):(r<0?i=i.takeRight(-r):r&&(i=i.drop(r)),a!==n&&(a=fe(a),i=a<0?i.dropRight(-a):i.take(a-r)),i)},$e.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},$e.prototype.toArray=function(){return this.take(D)},er($e.prototype,function(r,a){var i=/^(?:filter|find|map|reject)|While$/.test(a),d=/^(?:head|last)$/.test(a),p=m[d?"take"+(a=="last"?"Right":""):a],v=d||/^find/.test(a);p&&(m.prototype[a]=function(){var E=this.__wrapped__,S=d?[1]:arguments,k=E instanceof $e,x=S[0],V=k||de(E),z=function(_e){var be=p.apply(m,kr([_e],S));return d&&K?be[0]:be};V&&i&&typeof x=="function"&&x.length!=1&&(k=V=!1);var K=this.__chain__,Q=!!this.__actions__.length,ae=v&&!K,me=k&&!Q;if(!v&&V){E=me?E:new $e(this);var oe=r.apply(E,S);return oe.__actions__.push({func:Do,args:[z],thisArg:n}),new Mt(oe,K)}return ae&&me?r.apply(this,S):(oe=this.thru(z),ae?d?oe.value()[0]:oe.value():oe)})}),Lt(["pop","push","shift","sort","splice","unshift"],function(r){var a=oo[r],i=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",d=/^(?:pop|shift)$/.test(r);m.prototype[r]=function(){var p=arguments;if(d&&!this.__chain__){var v=this.value();return a.apply(de(v)?v:[],p)}return this[i](function(E){return a.apply(de(E)?E:[],p)})}}),er($e.prototype,function(r,a){var i=m[a];if(i){var d=i.name+"";Ce.call(Cn,d)||(Cn[d]=[]),Cn[d].push({name:a,func:i})}}),Cn[Oo(n,b).name]=[{name:"wrapper",func:n}],$e.prototype.clone=qy,$e.prototype.reverse=Gy,$e.prototype.value=Hy,m.prototype.at=wb,m.prototype.chain=Eb,m.prototype.commit=Sb,m.prototype.next=Ab,m.prototype.plant=Ob,m.prototype.reverse=Tb,m.prototype.toJSON=m.prototype.valueOf=m.prototype.value=Ib,m.prototype.first=m.prototype.head,ua&&(m.prototype[ua]=Cb),m},En=Sy();Yr?((Yr.exports=En)._=En,ss._=En):tt._=En}).call(Er)})(wi,wi.exports);var JG=wi.exports;const oi="additionalProperties",ii="required",YG=(e,t)=>{const n={};return e.filter(o=>{const s=t(o);return Object.prototype.hasOwnProperty.call(n,s)?!1:(n[s]=!0,!0)})};class ZG{constructor(t){this.findOption=t,this.schemaObject=n=>{const o=this.properties(n),s={type:"object",properties:o,additionalProperties:this.findOption(o)(oi)},l=this.findOption(o)(ii);return l.length>0&&(s.required=l),s},this.properties=n=>{const o={};return Object.keys(n).reduce((s,l)=>(s[l]=this.property(n[l]),s),o)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const o=n.map(this.property),s=YG(o,l=>JSON.stringify(l));return s.length===1?{type:"array",items:s[0]}:{type:"array",items:{oneOf:s}}}else return{type:"array",items:{}}}}}const w0=(e,t={})=>{const n=s=>l=>{switch(l){case oi:return Object.prototype.hasOwnProperty.call(t,oi)?t[oi]:!0;case ii:return Object.prototype.hasOwnProperty.call(t,ii)?t[ii](s):Object.keys(s);default:return}};return new ZG(n).schemaObject(e)},Oc=new Set,E0=(e,t)=>t<=1?e:e+t.toString(),XG=(e,t)=>{const n=E0(e,t);return!Oc.has(n)},Pm=e=>{e===void 0&&(e="undefined");let t=0;for(;!XG(e,t);)t++;const n=E0(e,t);return Oc.add(n),n},Rm=e=>Oc.delete(e),QG=(e,t)=>{let n=e;return!Oe(e)&&!Oe(t)&&!t.startsWith("[")&&(n=e+"."),Oe(n)?t:Oe(t)?n:`${n}${t}`},eH=e=>{const o=e.replace(/(anyOf|allOf|oneOf)\/[\d]+\//g,"").replace(/(then|else)\//g,"").split("/").map(Ja),l=o[0]==="#"||o[0]===""?2:1;return ND(l,o.length,2).map(c=>o[c])},tH=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),Ja=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),ku=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,o=Ja(n.substr(n.lastIndexOf("/")+1));return Mg(o)}return""},rH=(e,t)=>{const n=e.label;if(typeof n=="boolean")return Yo(ku(e,t),n);if(typeof n=="string")return Yo(n,!0);if(typeof n=="object"){const o=typeof n.text=="string"?n.text:ku(e,t),s=typeof n.show=="boolean"?n.show:!0;return Yo(o,s)}return Yo(ku(e,t),!0)},Yo=(e,t)=>({text:e,show:t}),el=(e,t)=>Oe(t)?e:t.split(".").reduce((o,s)=>{if(!(!o||!Object.prototype.hasOwnProperty.call(o,s)))return o[s]},e),nH=e=>e==="#"||e===void 0||e==="",La=(e,t,n)=>{const o=t==null?void 0:t.split("/").map(Ja);return si(e,o,n)},si=(e,t,n)=>{if(Oe(e))return;if(e.$ref&&(e=La(n,e.$ref,n)),!t||t.length===0)return e;const[o,...s]=t;if(nH(o))return si(e,s,n);const l=ct(e,o),c=si(l,s,n);if(c)return c;if(o==="properties"||o==="items"){let f;const h=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const g of h)if(f=si(g,[o,...s],n),f)break;return f}};var ir;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})(ir||(ir={}));const S0=(e,t)=>{if(!iH(e))return t??"";const n=eH(e.scope);return Oe(n)?t??"":QG(t,n.join("."))},A0=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",aH=e=>e.type==="Group",C0=e=>e.elements!==void 0,oH=e=>!!e&&typeof e=="object",iH=e=>oH(e)&&typeof e.scope=="string",sH=e=>!!e&&typeof e=="object",uH=e=>e.type==="OR",lH=e=>e.type==="AND",cH=e=>e.type==="LEAF",dH=e=>UD(e,"schema"),km=(e,t)=>S0(e,t),tl=(e,t,n,o)=>{if(lH(t))return t.conditions.reduce((s,l)=>s&&tl(e,l,n,o),!0);if(uH(t))return t.conditions.reduce((s,l)=>s||tl(e,l,n,o),!1);if(cH(t))return el(e,km(t,n))===t.expectedValue;if(dH(t)){const s=el(e,km(t,n));return t.failWhenUndefined&&s===void 0?!1:o.validate(t.schema,s)}else return!0},O0=(e,t,n,o)=>{const s=e.rule.condition;return tl(t,s,n,o)},fH=(e,t,n=void 0,o)=>{const s=O0(e,t,n,o);switch(e.rule.effect){case ir.HIDE:return!s;case ir.SHOW:return s;default:return!0}},pH=(e,t,n=void 0,o)=>{const s=O0(e,t,n,o);switch(e.rule.effect){case ir.DISABLE:return!s;case ir.ENABLE:return s;default:return!0}},T0=e=>!!(e.rule&&(e.rule.effect===ir.SHOW||e.rule.effect===ir.HIDE)),hH=e=>!!(e.rule&&(e.rule.effect===ir.ENABLE||e.rule.effect===ir.DISABLE)),Tc=(e,t,n=void 0,o)=>e.rule?fH(e,t,n,o):!0,mH=(e,t,n=void 0,o)=>e.rule?pH(e,t,n,o):!0,Nm=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),I0=(e,t)=>ML(Na(e),t),Na=e=>{if(Oe(e))return[];if(!Oe(e.type)&&typeof e.type=="string")return[e.type];if(SP(e.type))return e.type;if(!Oe(e.properties)||!Oe(e.additionalProperties))return["object"];if(!Oe(e.items))return["array"];if(!Oe(e.enum)){const t=new Set;return e.enum.forEach(n=>{typeof n=="string"?t.add("string"):Na(n).forEach(o=>t.add(o))}),Array.from(t)}if(!Oe(e.allOf)){const t=sL(e.allOf,n=>Na(n).length!==0);if(t)return Na(t)}return[]},Ba={schema:La,data:el},gH=e=>{const t=new OF({allErrors:!0,verbose:!0,strict:!1,addUsedSchema:!1,...e});return IF(t),t},wr=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,vH=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},rl=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=vH(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=Ja(t),t},yH=(e,t,n)=>o=>{const s=Vh(o,l=>l.keyword==="oneOf"||l.keyword==="anyOf").map(l=>rl(l));return Vh(o,l=>{if($H.indexOf(l.keyword)!==-1&&!Nm(l.parentSchema))return!1;const c=rl(l);let f=n(c);const h=l.parentSchema;return f&&!_H(h)&&!Nm(h)&&s.findIndex(g=>e.startsWith(g))!==-1&&(f=f&&Uv(h,t)),f})},_H=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),$H=["additionalProperties","allOf","anyOf","oneOf"],bH=e=>e==null?"":e.join(`
38
- `),P0=e=>({type:e,elements:[]}),ui=e=>({type:"Control",scope:e}),wH=(e,t)=>{if(!Oe(e)&&!C0(e)){const n=P0(t);return n.elements.push(e),n}return e},EH=(e,t)=>{if(!Oe(t)){const n=Mg(t);if(aH(e))e.label=n;else{const o={type:"Label",text:n};e.elements.push(o)}}},SH=e=>!Oe(e)&&(!Oe(e.oneOf)||!Oe(e.anyOf)||!Oe(e.allOf)),nl=(e,t,n,o,s,l)=>{if(!Oe(e)&&e.$ref!==void 0)return nl(La(l,e.$ref,l),t,n,o,s,l);if(SH(e)){const f=ui(n);return t.push(f),f}const c=Na(e);if(c.length===0)return null;if(c.length>1){const f=ui(n);return t.push(f),f}if(n==="#"&&c[0]==="object"){const f=P0(s);if(t.push(f),e.properties&&o9(e.properties).length>1&&EH(f,o),!Oe(e.properties)){const h=n+"/properties";Object.keys(e.properties).map(g=>{let y=e.properties[g];const w=`${h}/${tH(g)}`;y.$ref!==void 0&&(y=La(l,y.$ref,l)),nl(y,f.elements,w,g,s,l)})}return f}switch(c[0]){case"object":case"array":case"string":case"number":case"integer":case"null":case"boolean":{const f=ui(n);return t.push(f),f}default:throw new Error("Unknown type: "+JSON.stringify(e))}},R0=(e,t="VerticalLayout",n="#",o=e)=>wH(nl(e,[],n,"",t,o),t),dn={jsonSchema:w0,uiSchema:R0,controlElement:ui},Ic="jsonforms/INIT",Pc="jsonforms/UPDATE_CORE",Rc="jsonforms/SET_AJV",kc="jsonforms/UPDATE",Nc="jsonforms/UPDATE_ERRORS",AH="jsonforms/VALIDATE",k0="jsonforms/ADD_RENDERER",N0="jsonforms/REMOVE_RENDERER",D0="jsonforms/ADD_CELL",L0="jsonforms/REMOVE_CELL",Dc="jsonforms/SET_CONFIG",B0="jsonforms/ADD_UI_SCHEMA",M0="jsonforms/REMOVE_UI_SCHEMA",Lc="jsonforms/SET_SCHEMA",Bc="jsonforms/SET_UISCHEMA",Mc="jsonforms/SET_VALIDATION_MODE",Fc="jsonforms/SET_LOCALE",jc="jsonforms/SET_TRANSLATOR",xc="jsonforms/UPDATE_I18N",F0="jsonforms/ADD_DEFAULT_DATA",j0="jsonforms/REMOVE_DEFAULT_DATA",CH=e=>{if(!("type"in e)||typeof e.type!="string")return!1;switch(e.type){case"ADD":return"values"in e&&Array.isArray(e.values)&&e.values.length>0;case"REMOVE":return"indices"in e&&Array.isArray(e.indices)&&e.indices.length>0&&e.indices.every(t=>typeof t=="number");case"MOVE":return"moves"in e&&Array.isArray(e.moves)&&e.moves.length>0&&e.moves.every(t=>typeof t=="object"&&t!==null&&"from"in t&&"to"in t&&typeof t.from=="number"&&typeof t.to=="number");default:return!1}},OH=(e,t=w0(e),n,o)=>({type:Ic,data:e,schema:t,uischema:typeof n=="object"?n:R0(t),options:o}),TH=(e,t,n,o)=>({type:Pc,data:e,schema:t,uischema:n,options:o}),IH=(e,t)=>({type:F0,schemaPath:e,data:t}),PH=e=>({type:j0,schemaPath:e}),RH=e=>({type:Rc,ajv:e}),x0=(e,t,n)=>({type:kc,path:e,updater:t,context:n}),kH=e=>({type:Nc,errors:e}),NH=(e,t)=>({type:k0,tester:e,renderer:t}),DH=(e,t)=>({type:D0,tester:e,cell:t}),LH=(e,t)=>({type:L0,tester:e,cell:t}),BH=(e,t)=>({type:N0,tester:e,renderer:t}),MH=e=>({type:Dc,config:e}),FH=e=>({type:Mc,validationMode:e}),jH=(e,t)=>({type:B0,tester:e,uischema:t}),xH=e=>({type:M0,tester:e}),VH=e=>({type:Fc,locale:e}),UH=e=>({type:Lc,schema:e}),WH=(e,t)=>({type:jc,translator:e,errorTranslator:t}),zH=(e,t,n)=>({type:xc,locale:e,translator:t,errorTranslator:n}),qH=e=>({type:Bc,uischema:e});var Ln=Object.freeze({__proto__:null,INIT:Ic,UPDATE_CORE:Pc,SET_AJV:Rc,UPDATE_DATA:kc,UPDATE_ERRORS:Nc,VALIDATE:AH,ADD_RENDERER:k0,REMOVE_RENDERER:N0,ADD_CELL:D0,REMOVE_CELL:L0,SET_CONFIG:Dc,ADD_UI_SCHEMA:B0,REMOVE_UI_SCHEMA:M0,SET_SCHEMA:Lc,SET_UISCHEMA:Bc,SET_VALIDATION_MODE:Mc,SET_LOCALE:Fc,SET_TRANSLATOR:jc,UPDATE_I18N:xc,ADD_DEFAULT_DATA:F0,REMOVE_DEFAULT_DATA:j0,isUpdateArrayContext:CH,init:OH,updateCore:TH,registerDefaultData:IH,unregisterDefaultData:PH,setAjv:RH,update:x0,updateErrors:kH,registerRenderer:NH,registerCell:DH,unregisterCell:LH,unregisterRenderer:BH,setConfig:MH,setValidationMode:FH,registerUISchema:jH,unregisterUISchema:xH,setLocale:VH,setSchema:UH,setTranslator:WH,updateI18n:zH,setUISchema:qH});const GH={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},Dm=(e={})=>rV({},GH,e),Lm=(e=Dm(),t)=>{switch(t.type){case Dc:return Dm(t.config);default:return e}},HH={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},Bm=(e,t)=>t&&KH(t.options)?t.options.validationMode:e.validationMode,KH=e=>e?e.validationMode!==void 0:!1,JH=e=>e?e.additionalErrors!==void 0:!1,Mm=(e,t)=>t&&JH(t.options)?t.options.additionalErrors:e.additionalErrors,Fm=(e,t)=>{if(t){if(YH(t.options))return t.options.ajv;if(t.options!==void 0&&JG.isFunction(t.options.compile))return t.options}return e.ajv?e.ajv:gH()},YH=e=>e?e.ajv!==void 0:!1,Nu=(e=HH,t)=>{switch(t.type){case Ic:{const n=Fm(e,t),o=Bm(e,t),s=o==="NoValidation"?void 0:n.compile(t.schema),l=wr(s,t.data),c=Mm(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:c,errors:l,validator:s,ajv:n,validationMode:o}}case Pc:{const n=Fm(e,t),o=Bm(e,t);let s=e.validator,l=e.errors;e.schema!==t.schema||e.validationMode!==o||e.ajv!==n?(s=o==="NoValidation"?void 0:n.compile(t.schema),l=wr(s,t.data)):e.data!==t.data&&(l=wr(s,t.data));const c=Mm(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==l||e.validator!==s||e.validationMode!==o||e.additionalErrors!==c?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:Uv(l,e.errors)?e.errors:l,validator:s,validationMode:o,additionalErrors:c}:e}case Rc:{const n=t.ajv,o=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),s=wr(o,e.data);return{...e,validator:o,errors:s}}case Lc:{const o=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?e.ajv.compile(t.schema):e.validator,s=wr(o,e.data);return{...e,validator:o,schema:t.schema,errors:s}}case Bc:return{...e,uischema:t.uischema};case kc:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(am(e.data)),o=wr(e.validator,n);return{...e,data:n,errors:o}}else{const n=ct(e.data,t.path),o=t.updater(am(n));let s;o!==void 0?s=kG(t.path,o,e.data===void 0?{}:e.data):s=KG(t.path,e.data===void 0?{}:e.data);const l=wr(e.validator,s);return{...e,data:s,errors:l}}}case Nc:return{...e,errors:t.errors};case Mc:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=wr(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=e.ajv.compile(e.schema),o=wr(n,e.data);return{...e,validator:n,errors:o,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}};var lt;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(lt||(lt={}));lt.addTooltip,lt.addAriaLabel,lt.removeTooltip,lt.removeAriaLabel,lt.upAriaLabel,lt.up,lt.down,lt.downAriaLabel,lt.noDataMessage,lt.noSelection,lt.deleteDialogTitle,lt.deleteDialogMessage,lt.deleteDialogAccept,lt.deleteDialogDecline;var Fn;(function(e){e.clearDialogTitle="clearDialogTitle",e.clearDialogMessage="clearDialogMessage",e.clearDialogAccept="clearDialogAccept",e.clearDialogDecline="clearDialogDecline"})(Fn||(Fn={}));Fn.clearDialogTitle,Fn.clearDialogMessage,Fn.clearDialogAccept,Fn.clearDialogDecline;const V0=(e,t)=>A0(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,ZH=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",U0=(e,t,n)=>V0(e,t)??ZH(n),Ei=(e,t,n,o)=>`${U0(e,t,n)}.${o}`,Vc=(e,t)=>t,Uc=(e,t,n)=>{var f;const o=Ei(e.parentSchema,n,rl(e),`error.${e.keyword}`),s=t(o,void 0,{error:e});if(s!==void 0)return s;const l=t(`error.${e.keyword}`,void 0,{error:e});if(l!==void 0)return l;const c=t(e.message,void 0,{error:e});return c!==void 0?c:e.keyword==="required"&&((f=e.message)!=null&&f.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},W0=(e,t,n,o,s,l)=>{if(e.length>0&&n){const c=Ei(o,s,l,"error.custom"),f=n(c,void 0,{schema:o,uischema:s,path:l,errors:e});if(f!==void 0)return f}return bH(e.map(c=>t(c,n,s)))},XH=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!A0(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),o=V0(void 0,e),s=typeof o=="string"?`${o}.label`:n;return t(s,n,{uischema:e})},QH=e=>e===void 0?Vc:e.translate,eK=e=>e===void 0?Uc:e.translateError,Wc=()=>e=>QH(ct(e,"jsonforms.i18n")),z0=()=>e=>eK(ct(e,"jsonforms.i18n")),Zo={locale:"en",translate:Vc,translateError:Uc},jm=(e=Zo,t)=>{switch(t.type){case xc:{const n=t.locale??Zo.locale,o=t.translator??Zo.translate,s=t.errorTranslator??Zo.translateError;return n!==e.locale||o!==e.translate||s!==e.translateError?{...e,locale:n,translate:o,translateError:s}:e}case jc:return{...e,translate:t.translator??Vc,translateError:t.errorTranslator??Uc};case Fc:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},q0=-1,G0=e=>!Oe(e)&&e.scope!==void 0,tK=e=>(t,n,o)=>{if(Oe(t)||!G0(t)||Oe(n))return!1;const s=t.scope;if(Oe(s))return!1;let l=n;return I0(n,"object")&&(l=La(n,s,o==null?void 0:o.rootSchema)),l===void 0?!1:e(l,o==null?void 0:o.rootSchema)},ta=e=>tK(t=>!Oe(t)&&I0(t,e)),Ya=e=>t=>!Oe(t)&&t.type===e,Za=(...e)=>(t,n,o)=>e.reduce((s,l)=>s&&l(t,n,o),!0),gn=(e,t)=>(n,o,s)=>t(n,o,s)?e:q0,rK=Za(Ya("Control"),ta("boolean")),nK=Za(Ya("Control"),ta("object")),aK=Za(Ya("Control"),ta("integer")),oK=Za(Ya("Control"),ta("number")),iK=Za(Ya("Control"),ta("string")),sK=e=>(t,n,o)=>{const s=bl(e,l=>l.tester(t,n,o));if(s!==void 0&&s.tester(t,n,o)!==q0)return s.uischema},uK=(e,t,n,o,s="VerticalLayout",l,c)=>{if(l&&l.options&&l.options.detail){if(typeof l.options.detail=="string"){if(l.options.detail.toUpperCase()==="GENERATE")return typeof s=="function"?s():dn.uiSchema(t,s,void 0,c)}else if(typeof l.options.detail=="object"&&l.options.detail.type&&typeof l.options.detail.type=="string")return l.options.detail}const f=sK(e)(t,n,o);return f===void 0?typeof s=="function"?s():dn.uiSchema(t,s,"#",c):f},lK=(e,t,n)=>n(e,t),cK=(e,t,n)=>o=>{const s=o.errors??[],l=o.additionalErrors??[];return yH(e,t,n)(o.validationMode==="ValidateAndHide"?l:[...s,...l])},dK=(e,t)=>cK(e,t,n=>n===e),H0=(e,t)=>n=>dK(e,t)(n.jsonforms.core),zc=e=>mK(ct(e,"jsonforms.core")),Si=e=>gK(ct(e,"jsonforms.core")),fK=e=>vK(ct(e,"jsonforms.core")),qi=e=>yK(ct(e,"jsonforms.core")),pK=e=>ct(e,"jsonforms.renderers"),hK=e=>ct(e,"jsonforms.cells"),mK=e=>ct(e,"data"),gK=e=>ct(e,"schema"),vK=e=>ct(e,"uischema"),yK=e=>ct(e,"ajv"),Wn=e=>e.jsonforms.config,qc=(e,t,n,o,s,l)=>{var c,f,h;return(c=e==null?void 0:e.jsonforms)!=null&&c.readonly?!1:n&&hH(n)?mH(n,s,t==null?void 0:t.path,qi(e)):typeof((f=n==null?void 0:n.options)==null?void 0:f.readonly)=="boolean"?!n.options.readonly:typeof((h=n==null?void 0:n.options)==null?void 0:h.readOnly)=="boolean"?!n.options.readOnly:typeof(l==null?void 0:l.readonly)=="boolean"?!l.readonly:typeof(l==null?void 0:l.readOnly)=="boolean"?!l.readOnly:(o==null?void 0:o.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},_K=(e,t,n)=>{const o=t.split("/"),s=Ja(o[o.length-1]),c=o.slice(0,o.length-2).join("/"),f=Ba.schema(e,c,n);return f!==void 0&&f.required!==void 0&&f.required.indexOf(s)!==-1},$K=(e,t)=>{const{uischema:n}=t,o=zc(e),s=S0(n,t.path),l=t.visible===void 0||T0(n)?Tc(n,o,t.path,qi(e)):t.visible,c=n,f=t.id,h=Si(e),g=c.scope!==void 0&&_K(t.schema,c.scope,h),y=Ba.schema(t.schema||h,c.scope,h),w=H0(s,y)(e),C=y!==void 0?y.description:"",I=Ba.data(o,s),O=rH(n,y),N=O.show?O.text:"",A=Wn(e),b=qc(e,t,n,y||h,o,A),R=y??h,M=Wc()(e),U=z0()(e),G=U0(R,n,s),se=M(Ei(R,n,s,"label"),N,{schema:R,uischema:n,path:s,errors:w}),X=M(Ei(R,n,s,"description"),C,{schema:R,uischema:n,path:s,errors:w}),he=W0(w,U,M,R,n,s);return{data:I,description:X,errors:he,label:se,visible:l,enabled:b,id:f,path:s,required:g,uischema:n,schema:R,config:Wn(e),cells:t.cells||e.jsonforms.cells,rootSchema:h,i18nKeyPrefix:G}},K0=e=>({handleChange(t,n){e(x0(t,()=>n))}}),J0={visible:!0,enabled:!0,path:"",direction:"column"},bK=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":J0.direction,wK=(e,t)=>{const n=zc(e),{uischema:o}=t,s=t.visible===void 0||T0(o)?Tc(t.uischema,n,t.path,qi(e)):t.visible,l=Ba.data(n,t.path),c=Wn(e),f=qc(e,t,o,void 0,n,c),h=Wc()(e),g=sH(o)?XH(o,h):void 0;return{...J0,renderers:t.renderers||pK(e),cells:t.cells||hK(e),visible:s,enabled:f,path:t.path,data:l,uischema:t.uischema,schema:t.schema,direction:t.direction??bK(o),config:c,label:g}},EK=(e,t)=>({renderers:t.renderers||ct(e.jsonforms,"renderers"),cells:t.cells||ct(e.jsonforms,"cells"),schema:t.schema||Si(e),rootSchema:Si(e),uischema:t.uischema||fK(e),path:t.path,enabled:t.enabled,config:Wn(e)}),SK=(e,t)=>{const{id:n,schema:o,path:s,uischema:l,renderers:c,cells:f}=t,h=zc(e),g=t.visible!==void 0?t.visible:Tc(l,h,void 0,qi(e)),y=Si(e),w=Wn(e);let C;e.jsonforms.readonly===!0?C=!1:typeof t.enabled=="boolean"?C=t.enabled:C=qc(e,t,l,o||y,h,w);const I=Wc()(e),O=z0()(e),N=W0(H0(s,o)(e),O,I,o,l,s),A=Oe(N);return{data:Ba.data(h,s),visible:g,enabled:C,id:n,path:s,errors:N,isValid:A,schema:o,uischema:l,config:Wn(e),rootSchema:y,renderers:c,cells:f}},AK=(e,t)=>{const n=SK(e,t),{renderers:o,cells:s,...l}=t;return{...n,...l,cells:s||e.jsonforms.cells||[]}};function xm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,o)}return n}function Wr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xm(Object(n),!0).forEach(function(o){TK(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xm(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function CK(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OK(e){var t=CK(e,"string");return typeof t=="symbol"?t:t+""}function al(e){"@babel/helpers - typeof";return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}function TK(e,t,n){return t=OK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IK(e,t){if(e==null)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function Gc(e,t){if(e==null)return{};var n=IK(e,t),o,s;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(s=0;s<l.length;s++)o=l[s],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}var Hc=u.defineComponent({name:"UnknownRenderer"});function PK(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",null,"No applicable renderer found.")}Hc.render=PK;var RK=["control"],kK=["rootSchema"],NK=["control"],Or=function(){return{schema:{required:!0,type:[Object,Boolean]},uischema:{required:!0,type:Object},path:{required:!0,type:String},enabled:{required:!1,type:Boolean,default:void 0},renderers:{required:!1,type:Array,default:void 0},cells:{required:!1,type:Array,default:void 0},config:{required:!1,type:Object,default:void 0}}};function Kc(e,t,n){var o=u.inject("jsonforms"),s=u.inject("dispatch");if(!o||!s)throw new Error("'jsonforms' or 'dispatch' couldn't be injected. Are you within JSON Forms?");var l=u.ref(void 0),c=u.computed(function(){return Wr(Wr(Wr({},e),t({jsonforms:o},e)),{},{id:l.value})}),f=n==null?void 0:n(s);return u.onBeforeMount(function(){c.value.uischema.scope&&(l.value=Pm(c.value.uischema.scope))}),u.watch(function(){return e.schema},function(h,g){h!==g&&G0(c.value.uischema)&&(l.value&&Rm(l.value),l.value=Pm(c.value.uischema.scope))}),u.onUnmounted(function(){l.value&&(Rm(l.value),l.value=void 0)}),Wr({control:c},f)}var ra=function(t){return Kc(t,$K,K0)},DK=function(t){var n=Kc(t,wK),o=n.control,s=Gc(n,RK);return Wr({layout:o},s)},LK=function(t){var n=u.inject("jsonforms"),o=u.inject("dispatch");if(!n||!o)throw new Error("'jsonforms' or 'dispatch' couldn't be injected. Are you within JSON Forms?");var s=u.computed(function(){return EK({jsonforms:n},t)}),l=u.computed(function(){return s.value.rootSchema}),c=u.computed(function(){var f=s.value;f.rootSchema;var h=Gc(f,kK);return h});return{renderer:c,rootSchema:l}},BK=function(t){var n=Kc(t,AK,K0),o=n.control,s=Gc(n,NK);return Wr({cell:o},s)},Gi=u.defineComponent({name:"DispatchRenderer",props:Wr({},Or()),setup:function(t){return LK(t)},computed:{determinedRenderer:function(){var t=this,n={rootSchema:this.rootSchema,config:this.config},o=bl(this.renderer.renderers,function(s){return s.tester(t.renderer.uischema,t.renderer.schema,n)});return o===void 0||o.tester(this.renderer.uischema,this.renderer.schema,n)===-1?Hc:o.renderer}}});function MK(e,t,n,o,s,l){return u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.determinedRenderer),u.normalizeProps(u.guardReactiveProps(e.renderer)),null,16)}Gi.render=MK;var FK=u.defineComponent({name:"DispatchCell",props:Wr({},Or()),setup:function(t){return BK(t)},computed:{determinedCell:function(){var t=this,n={rootSchema:this.cell.rootSchema,config:this.config},o=bl(this.cell.cells,function(s){return s.tester(t.cell.uischema,t.cell.schema,n)});return o===void 0||o.tester(this.cell.uischema,this.cell.schema,n)===-1?Hc:o.cell}}});function jK(e,t,n,o,s,l){return u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.determinedCell),u.normalizeProps(u.guardReactiveProps(e.cell)),null,16)}FK.render=jK;var Vm=function(t){return t&&al(t)==="object"},xK=u.reactive([]),Y0=u.defineComponent({name:"JsonForms",components:{DispatchRenderer:Gi},provide:function(){return{jsonforms:this.jsonforms,dispatch:this.dispatch}},props:{data:{required:!0,type:[String,Number,Boolean,Array,Object]},schema:{required:!1,type:[Object,Boolean],default:void 0},uischema:{required:!1,type:Object,default:void 0},renderers:{required:!0,type:Array},cells:{required:!1,type:Array,default:function(){return[]}},config:{required:!1,type:Object,default:void 0},readonly:{required:!1,type:Boolean,default:!1},uischemas:{required:!1,type:Array,default:function(){return[]}},validationMode:{required:!1,type:String,default:"ValidateAndShow"},ajv:{required:!1,type:Object,default:void 0},i18n:{required:!1,type:Object,default:void 0},additionalErrors:{required:!1,type:Array,default:function(){return xK}},middleware:{required:!1,type:Function,default:lK}},emits:["change"],data:function(){var t,n,o=this,s,l,c,f=this.data,h=Vm(f)?f:{},g=(t=this.schema)!==null&&t!==void 0?t:dn.jsonSchema(h),y=(n=this.uischema)!==null&&n!==void 0?n:dn.uiSchema(g,void 0,void 0,g),w=function(){var I={data:f,schema:g,uischema:y},O=o.middleware(I,Ln.init(f,g,y,{validationMode:o.validationMode,ajv:o.ajv,additionalErrors:o.additionalErrors}),Nu);return O};return{schemaToUse:g,dataToUse:f,uischemaToUse:y,jsonforms:{core:w(),config:Lm(void 0,Ln.setConfig(this.config)),i18n:jm(this.i18n,Ln.updateI18n((s=this.i18n)===null||s===void 0?void 0:s.locale,(l=this.i18n)===null||l===void 0?void 0:l.translate,(c=this.i18n)===null||c===void 0?void 0:c.translateError)),renderers:this.renderers,cells:this.cells,uischemas:this.uischemas,readonly:this.readonly}}},computed:{coreDataToUpdate:function(){return[this.dataToUse,this.schemaToUse,this.uischemaToUse,this.validationMode,this.ajv,this.additionalErrors]},eventToEmit:function(){return{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors}}},watch:{schema:function(t){var n=Vm(this.data)?this.data:{};this.schemaToUse=t??dn.jsonSchema(n),this.uischema||(this.uischemaToUse=dn.uiSchema(this.schemaToUse,void 0,void 0,this.schemaToUse))},uischema:function(t){this.uischemaToUse=t??dn.uiSchema(this.schemaToUse,void 0,void 0,this.schemaToUse)},data:function(t){this.dataToUse=t},renderers:function(t){this.jsonforms.renderers=t},cells:function(t){this.jsonforms.cells=t},uischemas:function(t){this.jsonforms.uischemas=t},config:{handler:function(t){this.jsonforms.config=Lm(void 0,Ln.setConfig(t))},deep:!0},readonly:function(t){this.jsonforms.readonly=t},coreDataToUpdate:function(){this.jsonforms.core=this.middleware(this.jsonforms.core,Ln.updateCore(this.dataToUse,this.schemaToUse,this.uischemaToUse,{validationMode:this.validationMode,ajv:this.ajv,additionalErrors:this.additionalErrors}),Nu)},eventToEmit:function(t){this.$emit("change",t)},i18n:{handler:function(t){this.jsonforms.i18n=jm(this.jsonforms.i18n,Ln.updateI18n(t==null?void 0:t.locale,t==null?void 0:t.translate,t==null?void 0:t.translateError))},deep:!0}},mounted:function(){this.$emit("change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors})},methods:{dispatch:function(t){this.jsonforms.core=this.middleware(this.jsonforms.core,t,Nu)}}});function VK(e,t,n,o,s,l){var c=u.resolveComponent("dispatch-renderer");return u.openBlock(),u.createBlock(c,{schema:e.jsonforms.core.schema,uischema:e.jsonforms.core.uischema,path:""},null,8,["schema","uischema"])}Y0.render=VK;const UK=u.defineComponent({name:"aux-radiobuttons",emits:["change"],components:{RadioGroup:Gm},props:{id:{type:String,required:!0},label:{type:String,required:!0},description:{type:String,required:!1},options:{type:Array,required:!0},data:{type:[String,Array,Number],required:!1},defaultValue:{type:[String,Array,Number],required:!1},layout:{type:String,default:"regular"}},methods:{onChange(e){this.$emit("change",e)},isDefaultValue(e){return this.defaultValue===e}},setup(e){let t;return e.defaultValue&&(t=Array.isArray(e.defaultValue)?e.defaultValue[0]:e.defaultValue.toString()),e.data&&(t=Array.isArray(e.data)?e.data[0]:e.data.toString()),{uniqueID:Ke(),selected:t}}});function WK(e,t,n,o,s,l){const c=u.resolveComponent("RadioGroup");return u.openBlock(),u.createBlock(c,{id:`${e.id}-input`,label:e.label,description:e.description,items:e.options,selected:e.selected,name:e.uniqueID,layout:e.layout,"onUpdate:selected":e.onChange},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.label),1)]),_:1},8,["id","label","description","items","selected","name","layout","onUpdate:selected"])}const Jc=re(UK,[["render",WK],["__scopeId","data-v-23de796a"]]),zK=u.defineComponent({name:"aux-number-control",emits:["update-value"],components:{AuxInput:ol,RadioButtons:Jc,AuxSelect:sl},methods:{change(e){typeof e=="string"?this.$emit("update-value",parseInt(e,10)):typeof e=="number"&&this.$emit("update-value",e)}},props:{control:{type:Object,required:!0}},setup(e,{emit:t}){const n=u.shallowRef(e),{control:o}=n.value;if(!o)throw new Error("Schema is not configured correctly");const{schema:s}=o,l=u.reactive({format:s.format,default:s.default,selected:"",enums:[]});return s.enum&&s.enum.forEach((c,f)=>{const h="options"in s&&s.options&&s.options.enum_titles?s.options.enum_titles[f]:c;l.enums.push({label:h,value:c})}),!l.format&&l.enums.length?l.format="select":l.format||(l.format="text"),s.default&&t("update-value",s.default),{state:l}}});function qK(e,t,n,o,s,l){const c=u.resolveComponent("AuxInput"),f=u.resolveComponent("RadioButtons"),h=u.resolveComponent("AuxSelect");return u.openBlock(),u.createElementBlock(u.Fragment,null,[e.state.format==="text"?(u.openBlock(),u.createBlock(c,{key:0,type:"text",id:`${e.control.id}-input`,label:e.control.label,value:e.control.data||e.state.default,description:e.control.description,onBlur:e.change},null,8,["id","label","value","description","onBlur"])):u.createCommentVNode("",!0),e.state.format==="radiobuttons"?(u.openBlock(),u.createBlock(f,{key:1,id:e.control.id,label:e.control.label,description:e.control.description,options:e.state.enums,defaultValue:e.control.data||e.state.default,onChange:e.change},null,8,["id","label","description","options","defaultValue","onChange"])):u.createCommentVNode("",!0),e.state.format==="select"?(u.openBlock(),u.createBlock(h,{key:2,label:e.control.label,items:e.state.enums,value:e.control.data||e.state.default,onChange:e.change},null,8,["label","items","value","onChange"])):u.createCommentVNode("",!0)],64)}const Z0=re(zK,[["render",qK]]),GK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function HK(e,t){return u.openBlock(),u.createElementBlock("svg",GK,t[0]||(t[0]=[u.createElementVNode("path",{d:"m236.744 187.966-87.969-152a24.012 24.012 0 0 0-41.546 0v.008l-87.97 151.992a23.998 23.998 0 0 0 20.766 36.023H215.98a23.998 23.998 0 0 0 20.765-36.023m-116.75-91.969a8 8 0 1 1 16 0v48a8 8 0 1 1-16 0ZM128 192a12 12 0 1 1 12-12 12 12 0 0 1-12 12"},null,-1)]))}const Um={render:HK},KK=u.defineComponent({name:"aux-validation-wrapper",components:{ErrorIcon:Um},props:{errorMessages:{type:Array,required:!0}},setup(e){const t=u.computed(()=>Um),n=u.computed(()=>({icon:!0})),o=u.computed(()=>e.errorMessages.length>0);return{icon:t,iconClasses:n,hasErrorMessages:o}}}),JK={key:0,class:"aux-validation-wrapper-error"},YK={class:"aux-validation-wrapper-error-messages"};function ZK(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass({"aux-validation-wrapper":!0,"aux-validation-wrapper--haserror":e.hasErrorMessages})},[u.renderSlot(e.$slots,"default",{},void 0,!0),e.hasErrorMessages?(u.openBlock(),u.createElementBlock("div",JK,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.icon),{"aria-hidden":"true",class:u.normalizeClass(e.iconClasses)},null,8,["class"])),u.createElementVNode("ul",YK,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.errorMessages,(c,f)=>(u.openBlock(),u.createElementBlock("li",{key:f},u.toDisplayString(c),1))),128))])])):u.createCommentVNode("",!0)],2)}const X0=re(KK,[["render",ZK],["__scopeId","data-v-8b29f0ba"]]),XK=u.defineComponent({name:"wrapper-control",props:{control:{type:Object,required:!0},isDirty:{type:Boolean,default:!1}},methods:{isHidden(){const{schema:e}=this.control;return e&&"options"in e&&e.options&&e.options.hidden}},setup(e,{emit:t}){const n=u.computed(()=>(e.isDirty||e.control.config.showErrors)&&e.control.errors),o=u.computed(()=>e.control.errors!==""&&n.value?[e.control.errors]:[]);return e.control.schema.default&&t("update-value",e.control.schema.default),{errors:o,showErrors:n}},components:{ValidationWrapper:X0}}),QK={key:0,class:"aux-input-wrapper"};function eJ(e,t,n,o,s,l){const c=u.resolveComponent("ValidationWrapper");return e.isHidden()?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("div",QK,[u.createVNode(c,{errorMessages:e.errors},{default:u.withCtx(()=>[u.renderSlot(e.$slots,"default")]),_:3},8,["errorMessages"])]))}const Xa=re(XK,[["render",eJ]]),tJ=u.defineComponent({name:"integer-renderer",components:{NumberControl:Z0,WrapperControl:Xa},props:{...Or()},methods:{updateValue(e){this.isDirty=!0,this.handleChange(this.control.path,Number(e))}},setup(e){return{isDirty:!1,...ra(e)}}});function rJ(e,t,n,o,s,l){const c=u.resolveComponent("NumberControl"),f=u.resolveComponent("WrapperControl");return u.openBlock(),u.createBlock(f,{control:e.control,isDirty:e.isDirty},{default:u.withCtx(()=>[u.createVNode(c,{control:e.control,onUpdateValue:e.updateValue},null,8,["control","onUpdateValue"])]),_:1},8,["control","isDirty"])}const nJ=re(tJ,[["render",rJ]]),aJ=u.defineComponent({name:"aux-string-control",emits:["update-value"],components:{AuxInput:ol,RadioButtons:Jc,AuxSelect:sl},props:{control:{type:Object,required:!0}},methods:{change(e){this.$emit("update-value",e||void 0)}},setup(e,{emit:t}){var c;const n=u.shallowRef(e),{control:o}=n.value;if(!o)throw new Error("Schema is not configured correctly");const{schema:s}=o,l=u.reactive({format:s.format,default:s.default,selected:"",enums:[],layout:s&&"options"in s&&((c=s.options)!=null&&c.card_layout)?"card":"regular"});return s.enum&&s.enum.forEach((f,h)=>{const g="options"in s&&s.options&&s.options.enum_titles?s.options.enum_titles[h]:f;l.enums.push({label:g,value:f})}),!l.format&&l.enums.length?l.format="select":l.format||(l.format="text"),l.default&&t("update-value",l.default),{state:l}}});function oJ(e,t,n,o,s,l){const c=u.resolveComponent("AuxInput"),f=u.resolveComponent("RadioButtons"),h=u.resolveComponent("AuxSelect");return u.openBlock(),u.createElementBlock(u.Fragment,null,[e.state.format==="text"?(u.openBlock(),u.createBlock(c,{key:0,type:"text",id:`${e.control.id}-input`,label:e.control.label,value:e.control.data||e.state.default,description:e.control.description,onBlur:e.change},null,8,["id","label","value","description","onBlur"])):u.createCommentVNode("",!0),e.state.format==="radiobuttons"?(u.openBlock(),u.createBlock(f,{key:1,id:e.control.id,label:e.control.label,description:e.control.description,options:e.state.enums,defaultValue:e.control.data||e.state.default,layout:e.state.layout,onChange:e.change},null,8,["id","label","description","options","defaultValue","layout","onChange"])):u.createCommentVNode("",!0),e.state.format==="select"?(u.openBlock(),u.createBlock(h,{key:2,label:e.control.label,items:e.state.enums,value:e.control.data||e.state.default,onChange:e.change},null,8,["label","items","value","onChange"])):u.createCommentVNode("",!0)],64)}const iJ=re(aJ,[["render",oJ],["__scopeId","data-v-c15a6385"]]),sJ=u.defineComponent({name:"string-renderer",components:{StringControl:iJ,WrapperControl:Xa},props:{...Or()},methods:{updateValue(e){this.isDirty=!0,this.handleChange(this.control.path,e)}},setup(e){return{isDirty:!1,...ra(e)}}});function uJ(e,t,n,o,s,l){const c=u.resolveComponent("StringControl"),f=u.resolveComponent("WrapperControl");return u.openBlock(),u.createBlock(f,{control:e.control,isDirty:e.isDirty,onUpdateValue:e.updateValue},{default:u.withCtx(()=>[u.createVNode(c,{control:e.control,onUpdateValue:e.updateValue},null,8,["control","onUpdateValue"])]),_:1},8,["control","isDirty","onUpdateValue"])}const lJ=re(sJ,[["render",uJ]]),cJ=u.defineComponent({name:"number-renderer",components:{NumberControl:Z0,WrapperControl:Xa},props:{...Or()},methods:{updateValue(e){this.isDirty=!0,this.handleChange(this.control.path,Number(e))}},setup(e){return{isDirty:!1,...ra(e)}}});function dJ(e,t,n,o,s,l){const c=u.resolveComponent("NumberControl"),f=u.resolveComponent("WrapperControl");return u.openBlock(),u.createBlock(f,{control:e.control,isDirty:e.isDirty},{default:u.withCtx(()=>[u.createVNode(c,{control:e.control,onUpdateValue:e.updateValue},null,8,["control","onUpdateValue"])]),_:1},8,["control","isDirty"])}const fJ=re(cJ,[["render",dJ]]),pJ=u.defineComponent({name:"boolean-control",emits:["update-value"],components:{Checkbox:il},methods:{change(e){this.$emit("update-value",e.checked)}},props:{control:{type:Object,required:!0}},setup(e,{emit:t}){var c;const n=u.shallowRef(e),{control:o}=n.value;if(!o)throw new Error("Schema is not configured correctly");const{schema:s}=o,l=u.reactive({layout:s&&"options"in s&&((c=s.options)!=null&&c.card_layout)?"card":"regular"});return s.default&&t("update-value",s.default),{state:l}}});function hJ(e,t,n,o,s,l){const c=u.resolveComponent("Checkbox");return u.openBlock(),u.createBlock(c,{layout:e.state.layout,value:e.control.data,selected:e.control.data||e.control.schema.default,onChange:e.change},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.control.label),1)]),_:1},8,["layout","value","selected","onChange"])}const mJ=re(pJ,[["render",hJ]]),gJ=u.defineComponent({name:"boolean-renderer",components:{BooleanControl:mJ,WrapperControl:Xa},props:{...Or()},methods:{updateValue(e){this.isDirty=!0,this.handleChange(this.control.path,e)}},setup(e){return{isDirty:!1,...ra(e)}}});function vJ(e,t,n,o,s,l){const c=u.resolveComponent("BooleanControl"),f=u.resolveComponent("WrapperControl");return u.openBlock(),u.createBlock(f,{control:e.control,isDirty:e.isDirty},{default:u.withCtx(()=>[u.createVNode(c,{control:e.control,onUpdateValue:e.updateValue},null,8,["control","onUpdateValue"])]),_:1},8,["control","isDirty"])}const yJ=re(gJ,[["render",vJ]]),_J=u.defineComponent({name:"aux-checkboxes",emits:["change"],components:{Checkbox:il,FormElement:qr},props:{id:{type:String,required:!0},label:{type:String,required:!0},description:{type:String,required:!1},options:{type:Array,required:!0},data:{type:Array,required:!1},defaultValues:{type:Array,default:()=>[]},layout:{type:String,default:"regular"}},methods:{onChange(e){this.state.selected.includes(e.option)?this.state.selected=this.state.selected.filter(t=>t!==e.option):this.state.selected.push(e.option),this.$emit("change",this.state.selected)},isSelected(e){return this.state.selected.includes(e)}},setup(e){return{state:u.reactive({selected:e.data??e.defaultValues})}}});function $J(e,t,n,o,s,l){const c=u.resolveComponent("Checkbox"),f=u.resolveComponent("FormElement");return u.openBlock(),u.createBlock(f,{class:"aux-checkbox-group",id:`${e.id}-input`,label:e.label,description:e.description},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.options,h=>(u.openBlock(),u.createBlock(c,{key:h.value,value:h.value,selected:e.isSelected(h.value),layout:e.layout,onChange:e.onChange},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(h.label),1)]),_:2},1032,["value","selected","layout","onChange"]))),128))]),_:1},8,["id","label","description"])}const bJ=re(_J,[["render",$J],["__scopeId","data-v-7397e750"]]),wJ=u.defineComponent({name:"array-control",emits:["update-value"],components:{RadioButtons:Jc,Checkboxes:bJ},props:{control:{type:Object,required:!0}},methods:{onChange(e){Array.isArray(e)?this.$emit("update-value",e):this.$emit("update-value",[e])}},setup(e,{emit:t}){var c,f,h,g;const n=u.shallowRef(e),{control:o}=n.value;if(!o)throw new Error("Schema is not configured correctly");const{schema:s}=o,l=u.reactive({default:s.default,format:s.format||"checkboxes",enums:[],layout:s&&s.items&&"options"in s.items&&((f=(c=s.items)==null?void 0:c.options)!=null&&f.card_layout)?"card":"regular"});return s.items&&"enum"in s.items&&((g=(h=s.items)==null?void 0:h.enum)==null||g.forEach((y,w)=>{var C,I;if(s.items&&"options"in s.items){const O=(I=(C=s.items)==null?void 0:C.options)!=null&&I.enum_titles?s.items.options.enum_titles[w]:y;l.enums.push({label:O,value:y})}})),l.default&&!o.data&&t("update-value",l.default),{state:l}}});function EJ(e,t,n,o,s,l){const c=u.resolveComponent("Checkboxes"),f=u.resolveComponent("RadioButtons");return u.openBlock(),u.createElementBlock(u.Fragment,null,[e.state.format==="checkboxes"?(u.openBlock(),u.createBlock(c,{key:0,id:e.control.id,label:e.control.label,description:e.control.description,options:e.state.enums,data:e.control.data,defaultValues:e.state.default,layout:e.state.layout,onChange:e.onChange},null,8,["id","label","description","options","data","defaultValues","layout","onChange"])):u.createCommentVNode("",!0),e.state.format==="radiobuttons"?(u.openBlock(),u.createBlock(f,{key:1,id:e.control.id,label:e.control.label,description:e.control.description,options:e.state.enums,data:e.control.data,defaultValue:e.state.default,layout:e.state.layout,onChange:e.onChange},null,8,["id","label","description","options","data","defaultValue","layout","onChange"])):u.createCommentVNode("",!0)],64)}const SJ=re(wJ,[["render",EJ]]),AJ=u.defineComponent({name:"array-renderer",components:{ArrayControl:SJ,WrapperControl:Xa},props:{...Or()},methods:{updateValue(e){this.isDirty=!0,this.handleChange(this.control.path,e)}},setup(e){return{isDirty:!1,...ra(e)}}});function CJ(e,t,n,o,s,l){const c=u.resolveComponent("ArrayControl"),f=u.resolveComponent("WrapperControl");return u.openBlock(),u.createBlock(f,{control:e.control,isDirty:e.isDirty},{default:u.withCtx(()=>[u.createVNode(c,{control:e.control,onUpdateValue:e.updateValue},null,8,["control","onUpdateValue"])]),_:1},8,["control","isDirty"])}const OJ=re(AJ,[["render",CJ]]),TJ=u.defineComponent({name:"layout-renderer",components:{DispatchRenderer:Gi},props:{...Or()},setup(e){return DK(e)}}),IJ={key:0};function PJ(e,t,n,o,s,l){const c=u.resolveComponent("dispatch-renderer");return e.layout.visible?(u.openBlock(),u.createElementBlock("div",IJ,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.layout.uischema.elements,(f,h)=>(u.openBlock(),u.createElementBlock("div",{class:"aux-form-field",key:`${e.layout.path}-${h}`},[u.createVNode(c,{schema:e.layout.schema,uischema:f,path:e.layout.path,enabled:e.layout.enabled,renderers:e.layout.renderers,cells:e.layout.cells},null,8,["schema","uischema","path","enabled","renderers","cells"])]))),128))])):u.createCommentVNode("",!0)}const RJ=re(TJ,[["render",PJ]]),kJ=u.defineComponent({name:"object-renderer",components:{DispatchRenderer:Gi},props:{...Or()},methods:{isHidden(){const{schema:e}=this.control;return e&&"options"in e&&e.options&&e.options.hidden},generateUISchema(e){return e.uischemas=e.uischemas??[],uK(e.uischemas,e.schema,e.uischema.scope,e.path,"Group",e.uischema,e.rootSchema)}},setup(e){const t=e.path.split(".").length>1;return{...ra(e),hasIdenting:t}}}),NJ={key:0};function DJ(e,t,n,o,s,l){const c=u.resolveComponent("dispatch-renderer");return e.control.visible&&!e.isHidden()?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass({"aux-json-form-object":!0,"has-identing":e.hasIdenting})},[e.control.label?(u.openBlock(),u.createElementBlock("legend",NJ,u.toDisplayString(e.control.label),1)):u.createCommentVNode("",!0),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.generateUISchema(e.control).elements,(f,h)=>(u.openBlock(),u.createElementBlock("div",{key:`${e.control.path}-${h}`},[u.createVNode(c,{schema:e.control.schema,uischema:f,path:e.control.path,enabled:e.control.enabled,renderers:e.control.renderers,cells:e.control.cells},null,8,["schema","uischema","path","enabled","renderers","cells"])]))),128))],2)):u.createCommentVNode("",!0)}const LJ=re(kJ,[["render",DJ],["__scopeId","data-v-62c8e345"]]),BJ={renderer:u.shallowRef(lJ),tester:gn(1,iK)},MJ={renderer:u.shallowRef(fJ),tester:gn(1,oK)},FJ={renderer:u.shallowRef(nJ),tester:gn(1,aK)},jJ={renderer:u.shallowRef(yJ),tester:gn(1,rK)},xJ={renderer:u.shallowRef(OJ),tester:gn(1,ta("array"))},VJ={renderer:u.shallowRef(RJ),tester:gn(1,C0)},UJ={renderer:u.shallowRef(LJ),tester:gn(1,nK)},WJ=[BJ,MJ,FJ,jJ,xJ,VJ,UJ],zJ=u.defineComponent({name:"aux-form",props:{data:{type:Object,default:()=>({})},schema:{type:Object},showErrors:{type:Boolean,defaut:!1}},setup(e,{emit:t}){const n=u.reactive({data:e.data||{}}),o=u.computed(()=>({showErrors:e.showErrors}));return{onChange:l=>{const c=l.errors.length===0;t("updated",l.data),t("validated",c)},config:o,renderers:WJ,state:n}},components:{JsonForms:Y0}}),qJ={class:"aux-form"};function GJ(e,t,n,o,s,l){const c=u.resolveComponent("JsonForms");return u.openBlock(),u.createElementBlock("div",qJ,[e.state?(u.openBlock(),u.createBlock(c,{key:0,class:"aux-form-content",data:e.state.data,schema:e.schema,config:e.config,renderers:e.renderers,onChange:e.onChange},null,8,["data","schema","config","renderers","onChange"])):u.createCommentVNode("",!0)])}const HJ=re(zJ,[["render",GJ],["__scopeId","data-v-59062fb0"]]),KJ=["medium","large"],JJ=["success","info","warning","error","default","inactive"],YJ=u.defineComponent({name:"aux-status-badge",props:{size:{type:String,default:"medium",validator:e=>KJ.includes(e)},status:{type:String,default:"default",validator:e=>[...JJ].includes(e)}},setup(e){const t=u.computed(()=>({"aux-status-badge":!0,[`aux-status-badge--size-${e.size}`]:!0,[`aux-status-badge--${e.status}`]:!0})),n=u.computed(()=>({"aux-status-badge-dot":!0,[`aux-status-badge-dot--size-${e.size}`]:!0,[`aux-status-badge-dot--${e.status}`]:!0}));return{classes:t,dotClasses:n}}});function ZJ(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("span",{class:u.normalizeClass(e.classes)},[u.createElementVNode("span",{class:u.normalizeClass(e.dotClasses)},null,2),u.renderSlot(e.$slots,"default",{},void 0,!0)],2)}const XJ=re(YJ,[["render",ZJ],["__scopeId","data-v-bad5a6bd"]]),QJ=(e,t)=>{const n=t==="decimals"?2:0;return new Intl.NumberFormat("nb-NB",{minimumFractionDigits:n,maximumFractionDigits:n}).format(e)},eY=(e,t)=>{switch(t){case"excl":return`${e} eks. mva`;case"incl":return`${e} inkl. mva`;default:return e}},tY=(e,t)=>t==="rounded"?`${e},-`:e;function rY(e,t="decimals",n="none"){const o=QJ(e,t),s=tY(o,t);return eY(s,n)}const nY=(e,t={type:"decimals"})=>{let n=0;return t.type==="decimals"&&(n=t.decimals||1),new Intl.NumberFormat("nb-NO",{minimumFractionDigits:n,maximumFractionDigits:n}).format(e)};exports.AuxAriaAnnouncer=EO;exports.AuxBanner=tS;exports.AuxButton=Ai;exports.AuxCard=EC;exports.AuxCheckbox=il;exports.AuxCheckboxGroup=CA;exports.AuxDefinition=QS;exports.AuxDetails=qm;exports.AuxDirectionalArrow=zm;exports.AuxFormElement=qr;exports.AuxInput=ol;exports.AuxJsonForm=HJ;exports.AuxLink=Wm;exports.AuxLogo=oA;exports.AuxModal=UA;exports.AuxNotifications=PO;exports.AuxPagination=_O;exports.AuxPill=lS;exports.AuxRadio=mS;exports.AuxRadioGroup=Gm;exports.AuxSelect=sl;exports.AuxSpinner=oS;exports.AuxStatusBadge=XJ;exports.AuxTag=OC;exports.AuxTextArea=GA;exports.AuxTime=UC;exports.AuxToggle=eO;exports.AuxUpload=_C;exports.AuxValidationWrapper=X0;exports.formatDate=Yt;exports.formatNumber=nY;exports.formatPrice=rY;
37
+ }`;var me=Ep(function(){return Se(v,Q+"return "+z).apply(n,E)});if(me.source=z,tu(me))throw me;return me}function jE(r){return Ae(r).toLowerCase()}function xE(r){return Ae(r).toUpperCase()}function VE(r,a,i){if(r=Ae(r),r&&(i||a===n))return Rd(r);if(!r||!(a=It(a)))return r;var d=qt(r),p=qt(a),v=kd(d,p),E=Nd(d,p)+1;return Fr(d,v,E).join("")}function UE(r,a,i){if(r=Ae(r),r&&(i||a===n))return r.slice(0,Ld(r)+1);if(!r||!(a=It(a)))return r;var d=qt(r),p=Nd(d,qt(a))+1;return Fr(d,0,p).join("")}function WE(r,a,i){if(r=Ae(r),r&&(i||a===n))return r.replace(ts,"");if(!r||!(a=It(a)))return r;var d=qt(r),p=kd(d,qt(a));return Fr(d,p).join("")}function zE(r,a){var i=ue,d=Te;if(Fe(a)){var p="separator"in a?a.separator:p;i="length"in a?fe(a.length):i,d="omission"in a?It(a.omission):d}r=Ae(r);var v=r.length;if(bn(r)){var E=qt(r);v=E.length}if(i>=v)return r;var S=i-wn(d);if(S<1)return d;var k=E?Fr(E,0,S).join(""):r.slice(0,S);if(p===n)return k+d;if(E&&(S+=k.length-S),ru(p)){if(r.slice(S).search(p)){var x,V=k;for(p.global||(p=ys(p.source,Ae(Qc.exec(p))+"g")),p.lastIndex=0;x=p.exec(V);)var z=x.index;k=k.slice(0,z===n?S:z)}}else if(r.indexOf(It(p),S)!=S){var K=k.lastIndexOf(p);K>-1&&(k=k.slice(0,K))}return k+d}function qE(r){return r=Ae(r),r&&r1.test(r)?r.replace(Yc,$y):r}var GE=In(function(r,a,i){return r+(i?" ":"")+a.toUpperCase()}),ou=Sf("toUpperCase");function wp(r,a,i){return r=Ae(r),a=i?n:a,a===n?my(r)?Ey(r):iy(r):r.match(a)||[]}var Ep=ve(function(r,a){try{return Ot(r,n,a)}catch(i){return tu(i)?i:new ce(i)}}),HE=vr(function(r,a){return Lt(a,function(i){i=rr(i),mr(r,i,Qs(r[i],r))}),r});function KE(r){var a=r==null?0:r.length,i=ne();return r=a?Me(r,function(d){if(typeof d[1]!="function")throw new Bt(c);return[i(d[0]),d[1]]}):[],ve(function(d){for(var p=-1;++p<a;){var v=r[p];if(Ot(v[0],this,d))return Ot(v[1],this,d)}})}function JE(r){return $_(Ft(r,w))}function iu(r){return function(){return r}}function YE(r,a){return r==null||r!==r?a:r}var ZE=Cf(),XE=Cf(!0);function bt(r){return r}function su(r){return tf(typeof r=="function"?r:Ft(r,w))}function QE(r){return nf(Ft(r,w))}function eS(r,a){return af(r,Ft(a,w))}var tS=ve(function(r,a){return function(i){return ma(i,r,a)}}),rS=ve(function(r,a){return function(i){return ma(r,i,a)}});function uu(r,a,i){var d=Ze(a),p=wo(a,d);i==null&&!(Fe(a)&&(p.length||!d.length))&&(i=a,a=r,r=this,p=wo(a,Ze(a)));var v=!(Fe(i)&&"chain"in i)||!!i.chain,E=_r(r);return Lt(p,function(S){var k=a[S];r[S]=k,E&&(r.prototype[S]=function(){var x=this.__chain__;if(v||x){var V=r(this.__wrapped__),z=V.__actions__=yt(this.__actions__);return z.push({func:k,args:arguments,thisArg:r}),V.__chain__=x,V}return k.apply(r,kr([this.value()],arguments))})}),r}function nS(){return tt._===this&&(tt._=Iy),this}function lu(){}function aS(r){return r=fe(r),ve(function(a){return of(a,r)})}var oS=xs(Me),iS=xs(Cd),sS=xs(ds);function Sp(r){return Hs(r)?fs(rr(r)):M_(r)}function uS(r){return function(a){return r==null?n:tn(r,a)}}var lS=Tf(),cS=Tf(!0);function cu(){return[]}function du(){return!1}function dS(){return{}}function fS(){return""}function pS(){return!0}function hS(r,a){if(r=fe(r),r<1||r>ft)return[];var i=D,d=it(r,D);a=ne(a),r-=D;for(var p=ms(d,a);++i<r;)a(i);return p}function mS(r){return de(r)?Me(r,rr):Pt(r)?[r]:yt(zf(Ae(r)))}function gS(r){var a=++Oy;return Ae(r)+a}var vS=To(function(r,a){return r+a},0),yS=Vs("ceil"),_S=To(function(r,a){return r/a},1),$S=Vs("floor");function bS(r){return r&&r.length?bo(r,bt,Cs):n}function wS(r,a){return r&&r.length?bo(r,ne(a,2),Cs):n}function ES(r){return Id(r,bt)}function SS(r,a){return Id(r,ne(a,2))}function AS(r){return r&&r.length?bo(r,bt,Ps):n}function CS(r,a){return r&&r.length?bo(r,ne(a,2),Ps):n}var OS=To(function(r,a){return r*a},1),TS=Vs("round"),IS=To(function(r,a){return r-a},0);function PS(r){return r&&r.length?hs(r,bt):0}function RS(r,a){return r&&r.length?hs(r,ne(a,2)):0}return m.after=Qb,m.ary=tp,m.assign=xw,m.assignIn=mp,m.assignInWith=Vo,m.assignWith=Vw,m.at=Uw,m.before=rp,m.bind=Qs,m.bindAll=HE,m.bindKey=np,m.castArray=dw,m.chain=Xf,m.chunk=$$,m.compact=b$,m.concat=w$,m.cond=KE,m.conforms=JE,m.constant=iu,m.countBy=Pb,m.create=Ww,m.curry=ap,m.curryRight=op,m.debounce=ip,m.defaults=zw,m.defaultsDeep=qw,m.defer=ew,m.delay=tw,m.difference=E$,m.differenceBy=S$,m.differenceWith=A$,m.drop=C$,m.dropRight=O$,m.dropRightWhile=T$,m.dropWhile=I$,m.fill=P$,m.filter=kb,m.flatMap=Lb,m.flatMapDeep=Bb,m.flatMapDepth=Mb,m.flatten=Kf,m.flattenDeep=R$,m.flattenDepth=k$,m.flip=rw,m.flow=ZE,m.flowRight=XE,m.fromPairs=N$,m.functions=Xw,m.functionsIn=Qw,m.groupBy=Fb,m.initial=L$,m.intersection=B$,m.intersectionBy=M$,m.intersectionWith=F$,m.invert=tE,m.invertBy=rE,m.invokeMap=xb,m.iteratee=su,m.keyBy=Vb,m.keys=Ze,m.keysIn=$t,m.map=Lo,m.mapKeys=aE,m.mapValues=oE,m.matches=QE,m.matchesProperty=eS,m.memoize=Mo,m.merge=iE,m.mergeWith=gp,m.method=tS,m.methodOf=rS,m.mixin=uu,m.negate=Fo,m.nthArg=aS,m.omit=sE,m.omitBy=uE,m.once=nw,m.orderBy=Ub,m.over=oS,m.overArgs=aw,m.overEvery=iS,m.overSome=sS,m.partial=eu,m.partialRight=sp,m.partition=Wb,m.pick=lE,m.pickBy=vp,m.property=Sp,m.propertyOf=uS,m.pull=U$,m.pullAll=Yf,m.pullAllBy=W$,m.pullAllWith=z$,m.pullAt=q$,m.range=lS,m.rangeRight=cS,m.rearg=ow,m.reject=Gb,m.remove=G$,m.rest=iw,m.reverse=Zs,m.sampleSize=Kb,m.set=dE,m.setWith=fE,m.shuffle=Jb,m.slice=H$,m.sortBy=Xb,m.sortedUniq=eb,m.sortedUniqBy=tb,m.split=LE,m.spread=sw,m.tail=rb,m.take=nb,m.takeRight=ab,m.takeRightWhile=ob,m.takeWhile=ib,m.tap=bb,m.throttle=uw,m.thru=Do,m.toArray=fp,m.toPairs=yp,m.toPairsIn=_p,m.toPath=mS,m.toPlainObject=hp,m.transform=pE,m.unary=lw,m.union=sb,m.unionBy=ub,m.unionWith=lb,m.uniq=cb,m.uniqBy=db,m.uniqWith=fb,m.unset=hE,m.unzip=Xs,m.unzipWith=Zf,m.update=mE,m.updateWith=gE,m.values=kn,m.valuesIn=vE,m.without=pb,m.words=wp,m.wrap=cw,m.xor=hb,m.xorBy=mb,m.xorWith=gb,m.zip=vb,m.zipObject=yb,m.zipObjectDeep=_b,m.zipWith=$b,m.entries=yp,m.entriesIn=_p,m.extend=mp,m.extendWith=Vo,uu(m,m),m.add=vS,m.attempt=Ep,m.camelCase=bE,m.capitalize=$p,m.ceil=yS,m.clamp=yE,m.clone=fw,m.cloneDeep=hw,m.cloneDeepWith=mw,m.cloneWith=pw,m.conformsTo=gw,m.deburr=bp,m.defaultTo=YE,m.divide=_S,m.endsWith=wE,m.eq=Ht,m.escape=EE,m.escapeRegExp=SE,m.every=Rb,m.find=Nb,m.findIndex=Gf,m.findKey=Gw,m.findLast=Db,m.findLastIndex=Hf,m.findLastKey=Hw,m.floor=$S,m.forEach=Qf,m.forEachRight=ep,m.forIn=Kw,m.forInRight=Jw,m.forOwn=Yw,m.forOwnRight=Zw,m.get=nu,m.gt=vw,m.gte=yw,m.has=eE,m.hasIn=au,m.head=Jf,m.identity=bt,m.includes=jb,m.indexOf=D$,m.inRange=_E,m.invoke=nE,m.isArguments=an,m.isArray=de,m.isArrayBuffer=_w,m.isArrayLike=_t,m.isArrayLikeObject=xe,m.isBoolean=$w,m.isBuffer=jr,m.isDate=bw,m.isElement=ww,m.isEmpty=Ew,m.isEqual=Sw,m.isEqualWith=Aw,m.isError=tu,m.isFinite=Cw,m.isFunction=_r,m.isInteger=up,m.isLength=jo,m.isMap=lp,m.isMatch=Ow,m.isMatchWith=Tw,m.isNaN=Iw,m.isNative=Pw,m.isNil=kw,m.isNull=Rw,m.isNumber=cp,m.isObject=Fe,m.isObjectLike=je,m.isPlainObject=ba,m.isRegExp=ru,m.isSafeInteger=Nw,m.isSet=dp,m.isString=xo,m.isSymbol=Pt,m.isTypedArray=Rn,m.isUndefined=Dw,m.isWeakMap=Lw,m.isWeakSet=Bw,m.join=j$,m.kebabCase=AE,m.last=xt,m.lastIndexOf=x$,m.lowerCase=CE,m.lowerFirst=OE,m.lt=Mw,m.lte=Fw,m.max=bS,m.maxBy=wS,m.mean=ES,m.meanBy=SS,m.min=AS,m.minBy=CS,m.stubArray=cu,m.stubFalse=du,m.stubObject=dS,m.stubString=fS,m.stubTrue=pS,m.multiply=OS,m.nth=V$,m.noConflict=nS,m.noop=lu,m.now=Bo,m.pad=TE,m.padEnd=IE,m.padStart=PE,m.parseInt=RE,m.random=$E,m.reduce=zb,m.reduceRight=qb,m.repeat=kE,m.replace=NE,m.result=cE,m.round=TS,m.runInContext=P,m.sample=Hb,m.size=Yb,m.snakeCase=DE,m.some=Zb,m.sortedIndex=K$,m.sortedIndexBy=J$,m.sortedIndexOf=Y$,m.sortedLastIndex=Z$,m.sortedLastIndexBy=X$,m.sortedLastIndexOf=Q$,m.startCase=BE,m.startsWith=ME,m.subtract=IS,m.sum=PS,m.sumBy=RS,m.template=FE,m.times=hS,m.toFinite=$r,m.toInteger=fe,m.toLength=pp,m.toLower=jE,m.toNumber=Vt,m.toSafeInteger=jw,m.toString=Ae,m.toUpper=xE,m.trim=VE,m.trimEnd=UE,m.trimStart=WE,m.truncate=zE,m.unescape=qE,m.uniqueId=gS,m.upperCase=GE,m.upperFirst=ou,m.each=Qf,m.eachRight=ep,m.first=Jf,uu(m,function(){var r={};return er(m,function(a,i){Ce.call(m.prototype,i)||(r[i]=a)}),r}(),{chain:!1}),m.VERSION=o,Lt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){m[r].placeholder=m}),Lt(["drop","take"],function(r,a){$e.prototype[r]=function(i){i=i===n?1:qe(fe(i),0);var d=this.__filtered__&&!a?new $e(this):this.clone();return d.__filtered__?d.__takeCount__=it(i,d.__takeCount__):d.__views__.push({size:it(i,D),type:r+(d.__dir__<0?"Right":"")}),d},$e.prototype[r+"Right"]=function(i){return this.reverse()[r](i).reverse()}}),Lt(["filter","map","takeWhile"],function(r,a){var i=a+1,d=i==We||i==Tr;$e.prototype[r]=function(p){var v=this.clone();return v.__iteratees__.push({iteratee:ne(p,3),type:i}),v.__filtered__=v.__filtered__||d,v}}),Lt(["head","last"],function(r,a){var i="take"+(a?"Right":"");$e.prototype[r]=function(){return this[i](1).value()[0]}}),Lt(["initial","tail"],function(r,a){var i="drop"+(a?"":"Right");$e.prototype[r]=function(){return this.__filtered__?new $e(this):this[i](1)}}),$e.prototype.compact=function(){return this.filter(bt)},$e.prototype.find=function(r){return this.filter(r).head()},$e.prototype.findLast=function(r){return this.reverse().find(r)},$e.prototype.invokeMap=ve(function(r,a){return typeof r=="function"?new $e(this):this.map(function(i){return ma(i,r,a)})}),$e.prototype.reject=function(r){return this.filter(Fo(ne(r)))},$e.prototype.slice=function(r,a){r=fe(r);var i=this;return i.__filtered__&&(r>0||a<0)?new $e(i):(r<0?i=i.takeRight(-r):r&&(i=i.drop(r)),a!==n&&(a=fe(a),i=a<0?i.dropRight(-a):i.take(a-r)),i)},$e.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},$e.prototype.toArray=function(){return this.take(D)},er($e.prototype,function(r,a){var i=/^(?:filter|find|map|reject)|While$/.test(a),d=/^(?:head|last)$/.test(a),p=m[d?"take"+(a=="last"?"Right":""):a],v=d||/^find/.test(a);p&&(m.prototype[a]=function(){var E=this.__wrapped__,S=d?[1]:arguments,k=E instanceof $e,x=S[0],V=k||de(E),z=function(_e){var be=p.apply(m,kr([_e],S));return d&&K?be[0]:be};V&&i&&typeof x=="function"&&x.length!=1&&(k=V=!1);var K=this.__chain__,Q=!!this.__actions__.length,ae=v&&!K,me=k&&!Q;if(!v&&V){E=me?E:new $e(this);var oe=r.apply(E,S);return oe.__actions__.push({func:Do,args:[z],thisArg:n}),new Mt(oe,K)}return ae&&me?r.apply(this,S):(oe=this.thru(z),ae?d?oe.value()[0]:oe.value():oe)})}),Lt(["pop","push","shift","sort","splice","unshift"],function(r){var a=oo[r],i=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",d=/^(?:pop|shift)$/.test(r);m.prototype[r]=function(){var p=arguments;if(d&&!this.__chain__){var v=this.value();return a.apply(de(v)?v:[],p)}return this[i](function(E){return a.apply(de(E)?E:[],p)})}}),er($e.prototype,function(r,a){var i=m[a];if(i){var d=i.name+"";Ce.call(Cn,d)||(Cn[d]=[]),Cn[d].push({name:a,func:i})}}),Cn[Oo(n,b).name]=[{name:"wrapper",func:n}],$e.prototype.clone=qy,$e.prototype.reverse=Gy,$e.prototype.value=Hy,m.prototype.at=wb,m.prototype.chain=Eb,m.prototype.commit=Sb,m.prototype.next=Ab,m.prototype.plant=Ob,m.prototype.reverse=Tb,m.prototype.toJSON=m.prototype.valueOf=m.prototype.value=Ib,m.prototype.first=m.prototype.head,ua&&(m.prototype[ua]=Cb),m},En=Sy();Yr?((Yr.exports=En)._=En,ss._=En):tt._=En}).call(Er)})(wi,wi.exports);var iH=wi.exports;const oi="additionalProperties",ii="required",sH=(e,t)=>{const n={};return e.filter(o=>{const s=t(o);return Object.prototype.hasOwnProperty.call(n,s)?!1:(n[s]=!0,!0)})};class uH{constructor(t){this.findOption=t,this.schemaObject=n=>{const o=this.properties(n),s={type:"object",properties:o,additionalProperties:this.findOption(o)(oi)},l=this.findOption(o)(ii);return l.length>0&&(s.required=l),s},this.properties=n=>{const o={};return Object.keys(n).reduce((s,l)=>(s[l]=this.property(n[l]),s),o)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const o=n.map(this.property),s=sH(o,l=>JSON.stringify(l));return s.length===1?{type:"array",items:s[0]}:{type:"array",items:{oneOf:s}}}else return{type:"array",items:{}}}}}const w0=(e,t={})=>{const n=s=>l=>{switch(l){case oi:return Object.prototype.hasOwnProperty.call(t,oi)?t[oi]:!0;case ii:return Object.prototype.hasOwnProperty.call(t,ii)?t[ii](s):Object.keys(s);default:return}};return new uH(n).schemaObject(e)},Oc=new Set,E0=(e,t)=>t<=1?e:e+t.toString(),lH=(e,t)=>{const n=E0(e,t);return!Oc.has(n)},Pm=e=>{e===void 0&&(e="undefined");let t=0;for(;!lH(e,t);)t++;const n=E0(e,t);return Oc.add(n),n},Rm=e=>Oc.delete(e),cH=(e,t)=>{let n=e;return!Oe(e)&&!Oe(t)&&!t.startsWith("[")&&(n=e+"."),Oe(n)?t:Oe(t)?n:`${n}${t}`},dH=e=>{const o=e.replace(/(anyOf|allOf|oneOf)\/[\d]+\//g,"").replace(/(then|else)\//g,"").split("/").map(Ja),l=o[0]==="#"||o[0]===""?2:1;return zD(l,o.length,2).map(c=>o[c])},fH=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),Ja=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),ku=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,o=Ja(n.substr(n.lastIndexOf("/")+1));return Mg(o)}return""},pH=(e,t)=>{const n=e.label;if(typeof n=="boolean")return Yo(ku(e,t),n);if(typeof n=="string")return Yo(n,!0);if(typeof n=="object"){const o=typeof n.text=="string"?n.text:ku(e,t),s=typeof n.show=="boolean"?n.show:!0;return Yo(o,s)}return Yo(ku(e,t),!0)},Yo=(e,t)=>({text:e,show:t}),el=(e,t)=>Oe(t)?e:t.split(".").reduce((o,s)=>{if(!(!o||!Object.prototype.hasOwnProperty.call(o,s)))return o[s]},e),hH=e=>e==="#"||e===void 0||e==="",La=(e,t,n)=>{const o=t==null?void 0:t.split("/").map(Ja);return si(e,o,n)},si=(e,t,n)=>{if(Oe(e))return;if(e.$ref&&(e=La(n,e.$ref,n)),!t||t.length===0)return e;const[o,...s]=t;if(hH(o))return si(e,s,n);const l=ct(e,o),c=si(l,s,n);if(c)return c;if(o==="properties"||o==="items"){let f;const h=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const g of h)if(f=si(g,[o,...s],n),f)break;return f}};var ir;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})(ir||(ir={}));const S0=(e,t)=>{if(!vH(e))return t??"";const n=dH(e.scope);return Oe(n)?t??"":cH(t,n.join("."))},A0=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",mH=e=>e.type==="Group",C0=e=>e.elements!==void 0,gH=e=>!!e&&typeof e=="object",vH=e=>gH(e)&&typeof e.scope=="string",yH=e=>!!e&&typeof e=="object",_H=e=>e.type==="OR",$H=e=>e.type==="AND",bH=e=>e.type==="LEAF",wH=e=>QD(e,"schema"),km=(e,t)=>S0(e,t),tl=(e,t,n,o)=>{if($H(t))return t.conditions.reduce((s,l)=>s&&tl(e,l,n,o),!0);if(_H(t))return t.conditions.reduce((s,l)=>s||tl(e,l,n,o),!1);if(bH(t))return el(e,km(t,n))===t.expectedValue;if(wH(t)){const s=el(e,km(t,n));return t.failWhenUndefined&&s===void 0?!1:o.validate(t.schema,s)}else return!0},O0=(e,t,n,o)=>{const s=e.rule.condition;return tl(t,s,n,o)},EH=(e,t,n=void 0,o)=>{const s=O0(e,t,n,o);switch(e.rule.effect){case ir.HIDE:return!s;case ir.SHOW:return s;default:return!0}},SH=(e,t,n=void 0,o)=>{const s=O0(e,t,n,o);switch(e.rule.effect){case ir.DISABLE:return!s;case ir.ENABLE:return s;default:return!0}},T0=e=>!!(e.rule&&(e.rule.effect===ir.SHOW||e.rule.effect===ir.HIDE)),AH=e=>!!(e.rule&&(e.rule.effect===ir.ENABLE||e.rule.effect===ir.DISABLE)),Tc=(e,t,n=void 0,o)=>e.rule?EH(e,t,n,o):!0,CH=(e,t,n=void 0,o)=>e.rule?SH(e,t,n,o):!0,Nm=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),I0=(e,t)=>KL(Na(e),t),Na=e=>{if(Oe(e))return[];if(!Oe(e.type)&&typeof e.type=="string")return[e.type];if(LP(e.type))return e.type;if(!Oe(e.properties)||!Oe(e.additionalProperties))return["object"];if(!Oe(e.items))return["array"];if(!Oe(e.enum)){const t=new Set;return e.enum.forEach(n=>{typeof n=="string"?t.add("string"):Na(n).forEach(o=>t.add(o))}),Array.from(t)}if(!Oe(e.allOf)){const t=yL(e.allOf,n=>Na(n).length!==0);if(t)return Na(t)}return[]},Ba={schema:La,data:el},OH=e=>{const t=new FF({allErrors:!0,verbose:!0,strict:!1,addUsedSchema:!1,...e});return xF(t),t},wr=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,TH=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},rl=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=TH(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=Ja(t),t},IH=(e,t,n)=>o=>{const s=Vh(o,l=>l.keyword==="oneOf"||l.keyword==="anyOf").map(l=>rl(l));return Vh(o,l=>{if(RH.indexOf(l.keyword)!==-1&&!Nm(l.parentSchema))return!1;const c=rl(l);let f=n(c);const h=l.parentSchema;return f&&!PH(h)&&!Nm(h)&&s.findIndex(g=>e.startsWith(g))!==-1&&(f=f&&Uv(h,t)),f})},PH=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),RH=["additionalProperties","allOf","anyOf","oneOf"],kH=e=>e==null?"":e.join(`
38
+ `),P0=e=>({type:e,elements:[]}),ui=e=>({type:"Control",scope:e}),NH=(e,t)=>{if(!Oe(e)&&!C0(e)){const n=P0(t);return n.elements.push(e),n}return e},DH=(e,t)=>{if(!Oe(t)){const n=Mg(t);if(mH(e))e.label=n;else{const o={type:"Label",text:n};e.elements.push(o)}}},LH=e=>!Oe(e)&&(!Oe(e.oneOf)||!Oe(e.anyOf)||!Oe(e.allOf)),nl=(e,t,n,o,s,l)=>{if(!Oe(e)&&e.$ref!==void 0)return nl(La(l,e.$ref,l),t,n,o,s,l);if(LH(e)){const f=ui(n);return t.push(f),f}const c=Na(e);if(c.length===0)return null;if(c.length>1){const f=ui(n);return t.push(f),f}if(n==="#"&&c[0]==="object"){const f=P0(s);if(t.push(f),e.properties&&g9(e.properties).length>1&&DH(f,o),!Oe(e.properties)){const h=n+"/properties";Object.keys(e.properties).map(g=>{let y=e.properties[g];const w=`${h}/${fH(g)}`;y.$ref!==void 0&&(y=La(l,y.$ref,l)),nl(y,f.elements,w,g,s,l)})}return f}switch(c[0]){case"object":case"array":case"string":case"number":case"integer":case"null":case"boolean":{const f=ui(n);return t.push(f),f}default:throw new Error("Unknown type: "+JSON.stringify(e))}},R0=(e,t="VerticalLayout",n="#",o=e)=>NH(nl(e,[],n,"",t,o),t),dn={jsonSchema:w0,uiSchema:R0,controlElement:ui},Ic="jsonforms/INIT",Pc="jsonforms/UPDATE_CORE",Rc="jsonforms/SET_AJV",kc="jsonforms/UPDATE",Nc="jsonforms/UPDATE_ERRORS",BH="jsonforms/VALIDATE",k0="jsonforms/ADD_RENDERER",N0="jsonforms/REMOVE_RENDERER",D0="jsonforms/ADD_CELL",L0="jsonforms/REMOVE_CELL",Dc="jsonforms/SET_CONFIG",B0="jsonforms/ADD_UI_SCHEMA",M0="jsonforms/REMOVE_UI_SCHEMA",Lc="jsonforms/SET_SCHEMA",Bc="jsonforms/SET_UISCHEMA",Mc="jsonforms/SET_VALIDATION_MODE",Fc="jsonforms/SET_LOCALE",jc="jsonforms/SET_TRANSLATOR",xc="jsonforms/UPDATE_I18N",F0="jsonforms/ADD_DEFAULT_DATA",j0="jsonforms/REMOVE_DEFAULT_DATA",MH=e=>{if(!("type"in e)||typeof e.type!="string")return!1;switch(e.type){case"ADD":return"values"in e&&Array.isArray(e.values)&&e.values.length>0;case"REMOVE":return"indices"in e&&Array.isArray(e.indices)&&e.indices.length>0&&e.indices.every(t=>typeof t=="number");case"MOVE":return"moves"in e&&Array.isArray(e.moves)&&e.moves.length>0&&e.moves.every(t=>typeof t=="object"&&t!==null&&"from"in t&&"to"in t&&typeof t.from=="number"&&typeof t.to=="number");default:return!1}},FH=(e,t=w0(e),n,o)=>({type:Ic,data:e,schema:t,uischema:typeof n=="object"?n:R0(t),options:o}),jH=(e,t,n,o)=>({type:Pc,data:e,schema:t,uischema:n,options:o}),xH=(e,t)=>({type:F0,schemaPath:e,data:t}),VH=e=>({type:j0,schemaPath:e}),UH=e=>({type:Rc,ajv:e}),x0=(e,t,n)=>({type:kc,path:e,updater:t,context:n}),WH=e=>({type:Nc,errors:e}),zH=(e,t)=>({type:k0,tester:e,renderer:t}),qH=(e,t)=>({type:D0,tester:e,cell:t}),GH=(e,t)=>({type:L0,tester:e,cell:t}),HH=(e,t)=>({type:N0,tester:e,renderer:t}),KH=e=>({type:Dc,config:e}),JH=e=>({type:Mc,validationMode:e}),YH=(e,t)=>({type:B0,tester:e,uischema:t}),ZH=e=>({type:M0,tester:e}),XH=e=>({type:Fc,locale:e}),QH=e=>({type:Lc,schema:e}),eK=(e,t)=>({type:jc,translator:e,errorTranslator:t}),tK=(e,t,n)=>({type:xc,locale:e,translator:t,errorTranslator:n}),rK=e=>({type:Bc,uischema:e});var Ln=Object.freeze({__proto__:null,INIT:Ic,UPDATE_CORE:Pc,SET_AJV:Rc,UPDATE_DATA:kc,UPDATE_ERRORS:Nc,VALIDATE:BH,ADD_RENDERER:k0,REMOVE_RENDERER:N0,ADD_CELL:D0,REMOVE_CELL:L0,SET_CONFIG:Dc,ADD_UI_SCHEMA:B0,REMOVE_UI_SCHEMA:M0,SET_SCHEMA:Lc,SET_UISCHEMA:Bc,SET_VALIDATION_MODE:Mc,SET_LOCALE:Fc,SET_TRANSLATOR:jc,UPDATE_I18N:xc,ADD_DEFAULT_DATA:F0,REMOVE_DEFAULT_DATA:j0,isUpdateArrayContext:MH,init:FH,updateCore:jH,registerDefaultData:xH,unregisterDefaultData:VH,setAjv:UH,update:x0,updateErrors:WH,registerRenderer:zH,registerCell:qH,unregisterCell:GH,unregisterRenderer:HH,setConfig:KH,setValidationMode:JH,registerUISchema:YH,unregisterUISchema:ZH,setLocale:XH,setSchema:QH,setTranslator:eK,updateI18n:tK,setUISchema:rK});const nK={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},Dm=(e={})=>pV({},nK,e),Lm=(e=Dm(),t)=>{switch(t.type){case Dc:return Dm(t.config);default:return e}},aK={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},Bm=(e,t)=>t&&oK(t.options)?t.options.validationMode:e.validationMode,oK=e=>e?e.validationMode!==void 0:!1,iK=e=>e?e.additionalErrors!==void 0:!1,Mm=(e,t)=>t&&iK(t.options)?t.options.additionalErrors:e.additionalErrors,Fm=(e,t)=>{if(t){if(sK(t.options))return t.options.ajv;if(t.options!==void 0&&iH.isFunction(t.options.compile))return t.options}return e.ajv?e.ajv:OH()},sK=e=>e?e.ajv!==void 0:!1,Nu=(e=aK,t)=>{switch(t.type){case Ic:{const n=Fm(e,t),o=Bm(e,t),s=o==="NoValidation"?void 0:n.compile(t.schema),l=wr(s,t.data),c=Mm(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:c,errors:l,validator:s,ajv:n,validationMode:o}}case Pc:{const n=Fm(e,t),o=Bm(e,t);let s=e.validator,l=e.errors;e.schema!==t.schema||e.validationMode!==o||e.ajv!==n?(s=o==="NoValidation"?void 0:n.compile(t.schema),l=wr(s,t.data)):e.data!==t.data&&(l=wr(s,t.data));const c=Mm(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==l||e.validator!==s||e.validationMode!==o||e.additionalErrors!==c?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:Uv(l,e.errors)?e.errors:l,validator:s,validationMode:o,additionalErrors:c}:e}case Rc:{const n=t.ajv,o=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),s=wr(o,e.data);return{...e,validator:o,errors:s}}case Lc:{const o=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?e.ajv.compile(t.schema):e.validator,s=wr(o,e.data);return{...e,validator:o,schema:t.schema,errors:s}}case Bc:return{...e,uischema:t.uischema};case kc:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(am(e.data)),o=wr(e.validator,n);return{...e,data:n,errors:o}}else{const n=ct(e.data,t.path),o=t.updater(am(n));let s;o!==void 0?s=WG(t.path,o,e.data===void 0?{}:e.data):s=oH(t.path,e.data===void 0?{}:e.data);const l=wr(e.validator,s);return{...e,data:s,errors:l}}}case Nc:return{...e,errors:t.errors};case Mc:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=wr(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=e.ajv.compile(e.schema),o=wr(n,e.data);return{...e,validator:n,errors:o,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}};var lt;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(lt||(lt={}));lt.addTooltip,lt.addAriaLabel,lt.removeTooltip,lt.removeAriaLabel,lt.upAriaLabel,lt.up,lt.down,lt.downAriaLabel,lt.noDataMessage,lt.noSelection,lt.deleteDialogTitle,lt.deleteDialogMessage,lt.deleteDialogAccept,lt.deleteDialogDecline;var Fn;(function(e){e.clearDialogTitle="clearDialogTitle",e.clearDialogMessage="clearDialogMessage",e.clearDialogAccept="clearDialogAccept",e.clearDialogDecline="clearDialogDecline"})(Fn||(Fn={}));Fn.clearDialogTitle,Fn.clearDialogMessage,Fn.clearDialogAccept,Fn.clearDialogDecline;const V0=(e,t)=>A0(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,uK=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",U0=(e,t,n)=>V0(e,t)??uK(n),Ei=(e,t,n,o)=>`${U0(e,t,n)}.${o}`,Vc=(e,t)=>t,Uc=(e,t,n)=>{var f;const o=Ei(e.parentSchema,n,rl(e),`error.${e.keyword}`),s=t(o,void 0,{error:e});if(s!==void 0)return s;const l=t(`error.${e.keyword}`,void 0,{error:e});if(l!==void 0)return l;const c=t(e.message,void 0,{error:e});return c!==void 0?c:e.keyword==="required"&&((f=e.message)!=null&&f.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},W0=(e,t,n,o,s,l)=>{if(e.length>0&&n){const c=Ei(o,s,l,"error.custom"),f=n(c,void 0,{schema:o,uischema:s,path:l,errors:e});if(f!==void 0)return f}return kH(e.map(c=>t(c,n,s)))},lK=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!A0(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),o=V0(void 0,e),s=typeof o=="string"?`${o}.label`:n;return t(s,n,{uischema:e})},cK=e=>e===void 0?Vc:e.translate,dK=e=>e===void 0?Uc:e.translateError,Wc=()=>e=>cK(ct(e,"jsonforms.i18n")),z0=()=>e=>dK(ct(e,"jsonforms.i18n")),Zo={locale:"en",translate:Vc,translateError:Uc},jm=(e=Zo,t)=>{switch(t.type){case xc:{const n=t.locale??Zo.locale,o=t.translator??Zo.translate,s=t.errorTranslator??Zo.translateError;return n!==e.locale||o!==e.translate||s!==e.translateError?{...e,locale:n,translate:o,translateError:s}:e}case jc:return{...e,translate:t.translator??Vc,translateError:t.errorTranslator??Uc};case Fc:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},q0=-1,G0=e=>!Oe(e)&&e.scope!==void 0,fK=e=>(t,n,o)=>{if(Oe(t)||!G0(t)||Oe(n))return!1;const s=t.scope;if(Oe(s))return!1;let l=n;return I0(n,"object")&&(l=La(n,s,o==null?void 0:o.rootSchema)),l===void 0?!1:e(l,o==null?void 0:o.rootSchema)},ta=e=>fK(t=>!Oe(t)&&I0(t,e)),Ya=e=>t=>!Oe(t)&&t.type===e,Za=(...e)=>(t,n,o)=>e.reduce((s,l)=>s&&l(t,n,o),!0),gn=(e,t)=>(n,o,s)=>t(n,o,s)?e:q0,pK=Za(Ya("Control"),ta("boolean")),hK=Za(Ya("Control"),ta("object")),mK=Za(Ya("Control"),ta("integer")),gK=Za(Ya("Control"),ta("number")),vK=Za(Ya("Control"),ta("string")),yK=e=>(t,n,o)=>{const s=bl(e,l=>l.tester(t,n,o));if(s!==void 0&&s.tester(t,n,o)!==q0)return s.uischema},_K=(e,t,n,o,s="VerticalLayout",l,c)=>{if(l&&l.options&&l.options.detail){if(typeof l.options.detail=="string"){if(l.options.detail.toUpperCase()==="GENERATE")return typeof s=="function"?s():dn.uiSchema(t,s,void 0,c)}else if(typeof l.options.detail=="object"&&l.options.detail.type&&typeof l.options.detail.type=="string")return l.options.detail}const f=yK(e)(t,n,o);return f===void 0?typeof s=="function"?s():dn.uiSchema(t,s,"#",c):f},$K=(e,t,n)=>n(e,t),bK=(e,t,n)=>o=>{const s=o.errors??[],l=o.additionalErrors??[];return IH(e,t,n)(o.validationMode==="ValidateAndHide"?l:[...s,...l])},wK=(e,t)=>bK(e,t,n=>n===e),H0=(e,t)=>n=>wK(e,t)(n.jsonforms.core),zc=e=>CK(ct(e,"jsonforms.core")),Si=e=>OK(ct(e,"jsonforms.core")),EK=e=>TK(ct(e,"jsonforms.core")),qi=e=>IK(ct(e,"jsonforms.core")),SK=e=>ct(e,"jsonforms.renderers"),AK=e=>ct(e,"jsonforms.cells"),CK=e=>ct(e,"data"),OK=e=>ct(e,"schema"),TK=e=>ct(e,"uischema"),IK=e=>ct(e,"ajv"),Wn=e=>e.jsonforms.config,qc=(e,t,n,o,s,l)=>{var c,f,h;return(c=e==null?void 0:e.jsonforms)!=null&&c.readonly?!1:n&&AH(n)?CH(n,s,t==null?void 0:t.path,qi(e)):typeof((f=n==null?void 0:n.options)==null?void 0:f.readonly)=="boolean"?!n.options.readonly:typeof((h=n==null?void 0:n.options)==null?void 0:h.readOnly)=="boolean"?!n.options.readOnly:typeof(l==null?void 0:l.readonly)=="boolean"?!l.readonly:typeof(l==null?void 0:l.readOnly)=="boolean"?!l.readOnly:(o==null?void 0:o.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},PK=(e,t,n)=>{const o=t.split("/"),s=Ja(o[o.length-1]),c=o.slice(0,o.length-2).join("/"),f=Ba.schema(e,c,n);return f!==void 0&&f.required!==void 0&&f.required.indexOf(s)!==-1},RK=(e,t)=>{const{uischema:n}=t,o=zc(e),s=S0(n,t.path),l=t.visible===void 0||T0(n)?Tc(n,o,t.path,qi(e)):t.visible,c=n,f=t.id,h=Si(e),g=c.scope!==void 0&&PK(t.schema,c.scope,h),y=Ba.schema(t.schema||h,c.scope,h),w=H0(s,y)(e),C=y!==void 0?y.description:"",I=Ba.data(o,s),O=pH(n,y),N=O.show?O.text:"",A=Wn(e),b=qc(e,t,n,y||h,o,A),R=y??h,M=Wc()(e),U=z0()(e),G=U0(R,n,s),se=M(Ei(R,n,s,"label"),N,{schema:R,uischema:n,path:s,errors:w}),X=M(Ei(R,n,s,"description"),C,{schema:R,uischema:n,path:s,errors:w}),he=W0(w,U,M,R,n,s);return{data:I,description:X,errors:he,label:se,visible:l,enabled:b,id:f,path:s,required:g,uischema:n,schema:R,config:Wn(e),cells:t.cells||e.jsonforms.cells,rootSchema:h,i18nKeyPrefix:G}},K0=e=>({handleChange(t,n){e(x0(t,()=>n))}}),J0={visible:!0,enabled:!0,path:"",direction:"column"},kK=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":J0.direction,NK=(e,t)=>{const n=zc(e),{uischema:o}=t,s=t.visible===void 0||T0(o)?Tc(t.uischema,n,t.path,qi(e)):t.visible,l=Ba.data(n,t.path),c=Wn(e),f=qc(e,t,o,void 0,n,c),h=Wc()(e),g=yH(o)?lK(o,h):void 0;return{...J0,renderers:t.renderers||SK(e),cells:t.cells||AK(e),visible:s,enabled:f,path:t.path,data:l,uischema:t.uischema,schema:t.schema,direction:t.direction??kK(o),config:c,label:g}},DK=(e,t)=>({renderers:t.renderers||ct(e.jsonforms,"renderers"),cells:t.cells||ct(e.jsonforms,"cells"),schema:t.schema||Si(e),rootSchema:Si(e),uischema:t.uischema||EK(e),path:t.path,enabled:t.enabled,config:Wn(e)}),LK=(e,t)=>{const{id:n,schema:o,path:s,uischema:l,renderers:c,cells:f}=t,h=zc(e),g=t.visible!==void 0?t.visible:Tc(l,h,void 0,qi(e)),y=Si(e),w=Wn(e);let C;e.jsonforms.readonly===!0?C=!1:typeof t.enabled=="boolean"?C=t.enabled:C=qc(e,t,l,o||y,h,w);const I=Wc()(e),O=z0()(e),N=W0(H0(s,o)(e),O,I,o,l,s),A=Oe(N);return{data:Ba.data(h,s),visible:g,enabled:C,id:n,path:s,errors:N,isValid:A,schema:o,uischema:l,config:Wn(e),rootSchema:y,renderers:c,cells:f}},BK=(e,t)=>{const n=LK(e,t),{renderers:o,cells:s,...l}=t;return{...n,...l,cells:s||e.jsonforms.cells||[]}};function xm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,o)}return n}function Wr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xm(Object(n),!0).forEach(function(o){jK(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xm(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function MK(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FK(e){var t=MK(e,"string");return typeof t=="symbol"?t:t+""}function al(e){"@babel/helpers - typeof";return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}function jK(e,t,n){return t=FK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xK(e,t){if(e==null)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function Gc(e,t){if(e==null)return{};var n=xK(e,t),o,s;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(s=0;s<l.length;s++)o=l[s],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}var Hc=u.defineComponent({name:"UnknownRenderer"});function VK(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",null,"No applicable renderer found.")}Hc.render=VK;var UK=["control"],WK=["rootSchema"],zK=["control"],Or=function(){return{schema:{required:!0,type:[Object,Boolean]},uischema:{required:!0,type:Object},path:{required:!0,type:String},enabled:{required:!1,type:Boolean,default:void 0},renderers:{required:!1,type:Array,default:void 0},cells:{required:!1,type:Array,default:void 0},config:{required:!1,type:Object,default:void 0}}};function Kc(e,t,n){var o=u.inject("jsonforms"),s=u.inject("dispatch");if(!o||!s)throw new Error("'jsonforms' or 'dispatch' couldn't be injected. Are you within JSON Forms?");var l=u.ref(void 0),c=u.computed(function(){return Wr(Wr(Wr({},e),t({jsonforms:o},e)),{},{id:l.value})}),f=n==null?void 0:n(s);return u.onBeforeMount(function(){c.value.uischema.scope&&(l.value=Pm(c.value.uischema.scope))}),u.watch(function(){return e.schema},function(h,g){h!==g&&G0(c.value.uischema)&&(l.value&&Rm(l.value),l.value=Pm(c.value.uischema.scope))}),u.onUnmounted(function(){l.value&&(Rm(l.value),l.value=void 0)}),Wr({control:c},f)}var ra=function(t){return Kc(t,RK,K0)},qK=function(t){var n=Kc(t,NK),o=n.control,s=Gc(n,UK);return Wr({layout:o},s)},GK=function(t){var n=u.inject("jsonforms"),o=u.inject("dispatch");if(!n||!o)throw new Error("'jsonforms' or 'dispatch' couldn't be injected. Are you within JSON Forms?");var s=u.computed(function(){return DK({jsonforms:n},t)}),l=u.computed(function(){return s.value.rootSchema}),c=u.computed(function(){var f=s.value;f.rootSchema;var h=Gc(f,WK);return h});return{renderer:c,rootSchema:l}},HK=function(t){var n=Kc(t,BK,K0),o=n.control,s=Gc(n,zK);return Wr({cell:o},s)},Gi=u.defineComponent({name:"DispatchRenderer",props:Wr({},Or()),setup:function(t){return GK(t)},computed:{determinedRenderer:function(){var t=this,n={rootSchema:this.rootSchema,config:this.config},o=bl(this.renderer.renderers,function(s){return s.tester(t.renderer.uischema,t.renderer.schema,n)});return o===void 0||o.tester(this.renderer.uischema,this.renderer.schema,n)===-1?Hc:o.renderer}}});function KK(e,t,n,o,s,l){return u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.determinedRenderer),u.normalizeProps(u.guardReactiveProps(e.renderer)),null,16)}Gi.render=KK;var JK=u.defineComponent({name:"DispatchCell",props:Wr({},Or()),setup:function(t){return HK(t)},computed:{determinedCell:function(){var t=this,n={rootSchema:this.cell.rootSchema,config:this.config},o=bl(this.cell.cells,function(s){return s.tester(t.cell.uischema,t.cell.schema,n)});return o===void 0||o.tester(this.cell.uischema,this.cell.schema,n)===-1?Hc:o.cell}}});function YK(e,t,n,o,s,l){return u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.determinedCell),u.normalizeProps(u.guardReactiveProps(e.cell)),null,16)}JK.render=YK;var Vm=function(t){return t&&al(t)==="object"},ZK=u.reactive([]),Y0=u.defineComponent({name:"JsonForms",components:{DispatchRenderer:Gi},provide:function(){return{jsonforms:this.jsonforms,dispatch:this.dispatch}},props:{data:{required:!0,type:[String,Number,Boolean,Array,Object]},schema:{required:!1,type:[Object,Boolean],default:void 0},uischema:{required:!1,type:Object,default:void 0},renderers:{required:!0,type:Array},cells:{required:!1,type:Array,default:function(){return[]}},config:{required:!1,type:Object,default:void 0},readonly:{required:!1,type:Boolean,default:!1},uischemas:{required:!1,type:Array,default:function(){return[]}},validationMode:{required:!1,type:String,default:"ValidateAndShow"},ajv:{required:!1,type:Object,default:void 0},i18n:{required:!1,type:Object,default:void 0},additionalErrors:{required:!1,type:Array,default:function(){return ZK}},middleware:{required:!1,type:Function,default:$K}},emits:["change"],data:function(){var t,n,o=this,s,l,c,f=this.data,h=Vm(f)?f:{},g=(t=this.schema)!==null&&t!==void 0?t:dn.jsonSchema(h),y=(n=this.uischema)!==null&&n!==void 0?n:dn.uiSchema(g,void 0,void 0,g),w=function(){var I={data:f,schema:g,uischema:y},O=o.middleware(I,Ln.init(f,g,y,{validationMode:o.validationMode,ajv:o.ajv,additionalErrors:o.additionalErrors}),Nu);return O};return{schemaToUse:g,dataToUse:f,uischemaToUse:y,jsonforms:{core:w(),config:Lm(void 0,Ln.setConfig(this.config)),i18n:jm(this.i18n,Ln.updateI18n((s=this.i18n)===null||s===void 0?void 0:s.locale,(l=this.i18n)===null||l===void 0?void 0:l.translate,(c=this.i18n)===null||c===void 0?void 0:c.translateError)),renderers:this.renderers,cells:this.cells,uischemas:this.uischemas,readonly:this.readonly}}},computed:{coreDataToUpdate:function(){return[this.dataToUse,this.schemaToUse,this.uischemaToUse,this.validationMode,this.ajv,this.additionalErrors]},eventToEmit:function(){return{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors}}},watch:{schema:function(t){var n=Vm(this.data)?this.data:{};this.schemaToUse=t??dn.jsonSchema(n),this.uischema||(this.uischemaToUse=dn.uiSchema(this.schemaToUse,void 0,void 0,this.schemaToUse))},uischema:function(t){this.uischemaToUse=t??dn.uiSchema(this.schemaToUse,void 0,void 0,this.schemaToUse)},data:function(t){this.dataToUse=t},renderers:function(t){this.jsonforms.renderers=t},cells:function(t){this.jsonforms.cells=t},uischemas:function(t){this.jsonforms.uischemas=t},config:{handler:function(t){this.jsonforms.config=Lm(void 0,Ln.setConfig(t))},deep:!0},readonly:function(t){this.jsonforms.readonly=t},coreDataToUpdate:function(){this.jsonforms.core=this.middleware(this.jsonforms.core,Ln.updateCore(this.dataToUse,this.schemaToUse,this.uischemaToUse,{validationMode:this.validationMode,ajv:this.ajv,additionalErrors:this.additionalErrors}),Nu)},eventToEmit:function(t){this.$emit("change",t)},i18n:{handler:function(t){this.jsonforms.i18n=jm(this.jsonforms.i18n,Ln.updateI18n(t==null?void 0:t.locale,t==null?void 0:t.translate,t==null?void 0:t.translateError))},deep:!0}},mounted:function(){this.$emit("change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors})},methods:{dispatch:function(t){this.jsonforms.core=this.middleware(this.jsonforms.core,t,Nu)}}});function XK(e,t,n,o,s,l){var c=u.resolveComponent("dispatch-renderer");return u.openBlock(),u.createBlock(c,{schema:e.jsonforms.core.schema,uischema:e.jsonforms.core.uischema,path:""},null,8,["schema","uischema"])}Y0.render=XK;const QK=u.defineComponent({name:"aux-radiobuttons",emits:["change"],components:{RadioGroup:Gm},props:{id:{type:String,required:!0},label:{type:String,required:!0},description:{type:String,required:!1},options:{type:Array,required:!0},data:{type:[String,Array,Number],required:!1},defaultValue:{type:[String,Array,Number],required:!1},layout:{type:String,default:"regular"}},methods:{onChange(e){this.$emit("change",e)},isDefaultValue(e){return this.defaultValue===e}},setup(e){let t;return e.defaultValue&&(t=Array.isArray(e.defaultValue)?e.defaultValue[0]:e.defaultValue.toString()),e.data&&(t=Array.isArray(e.data)?e.data[0]:e.data.toString()),{uniqueID:Ke(),selected:t}}});function eJ(e,t,n,o,s,l){const c=u.resolveComponent("RadioGroup");return u.openBlock(),u.createBlock(c,{id:`${e.id}-input`,label:e.label,description:e.description,items:e.options,selected:e.selected,name:e.uniqueID,layout:e.layout,"onUpdate:selected":e.onChange},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.label),1)]),_:1},8,["id","label","description","items","selected","name","layout","onUpdate:selected"])}const Jc=re(QK,[["render",eJ],["__scopeId","data-v-23de796a"]]),tJ=u.defineComponent({name:"aux-number-control",emits:["update-value"],components:{AuxInput:ol,RadioButtons:Jc,AuxSelect:sl},methods:{change(e){typeof e=="string"?this.$emit("update-value",parseInt(e,10)):typeof e=="number"&&this.$emit("update-value",e)}},props:{control:{type:Object,required:!0}},setup(e,{emit:t}){const n=u.shallowRef(e),{control:o}=n.value;if(!o)throw new Error("Schema is not configured correctly");const{schema:s}=o,l=u.reactive({format:s.format,default:s.default,selected:"",enums:[]});return s.enum&&s.enum.forEach((c,f)=>{const h="options"in s&&s.options&&s.options.enum_titles?s.options.enum_titles[f]:c;l.enums.push({label:h,value:c})}),!l.format&&l.enums.length?l.format="select":l.format||(l.format="text"),s.default&&t("update-value",s.default),{state:l}}});function rJ(e,t,n,o,s,l){const c=u.resolveComponent("AuxInput"),f=u.resolveComponent("RadioButtons"),h=u.resolveComponent("AuxSelect");return u.openBlock(),u.createElementBlock(u.Fragment,null,[e.state.format==="text"?(u.openBlock(),u.createBlock(c,{key:0,type:"text",id:`${e.control.id}-input`,label:e.control.label,value:e.control.data||e.state.default,description:e.control.description,onBlur:e.change},null,8,["id","label","value","description","onBlur"])):u.createCommentVNode("",!0),e.state.format==="radiobuttons"?(u.openBlock(),u.createBlock(f,{key:1,id:e.control.id,label:e.control.label,description:e.control.description,options:e.state.enums,defaultValue:e.control.data||e.state.default,onChange:e.change},null,8,["id","label","description","options","defaultValue","onChange"])):u.createCommentVNode("",!0),e.state.format==="select"?(u.openBlock(),u.createBlock(h,{key:2,label:e.control.label,items:e.state.enums,value:e.control.data||e.state.default,onChange:e.change},null,8,["label","items","value","onChange"])):u.createCommentVNode("",!0)],64)}const Z0=re(tJ,[["render",rJ]]),nJ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"};function aJ(e,t){return u.openBlock(),u.createElementBlock("svg",nJ,t[0]||(t[0]=[u.createElementVNode("path",{d:"m236.744 187.966-87.969-152a24.012 24.012 0 0 0-41.546 0v.008l-87.97 151.992a23.998 23.998 0 0 0 20.766 36.023H215.98a23.998 23.998 0 0 0 20.765-36.023m-116.75-91.969a8 8 0 1 1 16 0v48a8 8 0 1 1-16 0ZM128 192a12 12 0 1 1 12-12 12 12 0 0 1-12 12"},null,-1)]))}const Um={render:aJ},oJ=u.defineComponent({name:"aux-validation-wrapper",components:{ErrorIcon:Um},props:{errorMessages:{type:Array,required:!0}},setup(e){const t=u.computed(()=>Um),n=u.computed(()=>({icon:!0})),o=u.computed(()=>e.errorMessages.length>0);return{icon:t,iconClasses:n,hasErrorMessages:o}}}),iJ={key:0,class:"aux-validation-wrapper-error"},sJ={class:"aux-validation-wrapper-error-messages"};function uJ(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass({"aux-validation-wrapper":!0,"aux-validation-wrapper--haserror":e.hasErrorMessages})},[u.renderSlot(e.$slots,"default",{},void 0,!0),e.hasErrorMessages?(u.openBlock(),u.createElementBlock("div",iJ,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.icon),{"aria-hidden":"true",class:u.normalizeClass(e.iconClasses)},null,8,["class"])),u.createElementVNode("ul",sJ,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.errorMessages,(c,f)=>(u.openBlock(),u.createElementBlock("li",{key:f},u.toDisplayString(c),1))),128))])])):u.createCommentVNode("",!0)],2)}const X0=re(oJ,[["render",uJ],["__scopeId","data-v-8b29f0ba"]]),lJ=u.defineComponent({name:"wrapper-control",props:{control:{type:Object,required:!0},isDirty:{type:Boolean,default:!1}},methods:{isHidden(){const{schema:e}=this.control;return e&&"options"in e&&e.options&&e.options.hidden}},setup(e,{emit:t}){const n=u.computed(()=>(e.isDirty||e.control.config.showErrors)&&e.control.errors),o=u.computed(()=>e.control.errors!==""&&n.value?[e.control.errors]:[]);return e.control.schema.default&&t("update-value",e.control.schema.default),{errors:o,showErrors:n}},components:{ValidationWrapper:X0}}),cJ={key:0,class:"aux-input-wrapper"};function dJ(e,t,n,o,s,l){const c=u.resolveComponent("ValidationWrapper");return e.isHidden()?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("div",cJ,[u.createVNode(c,{errorMessages:e.errors},{default:u.withCtx(()=>[u.renderSlot(e.$slots,"default")]),_:3},8,["errorMessages"])]))}const Xa=re(lJ,[["render",dJ]]),fJ=u.defineComponent({name:"integer-renderer",components:{NumberControl:Z0,WrapperControl:Xa},props:{...Or()},methods:{updateValue(e){this.isDirty=!0,this.handleChange(this.control.path,Number(e))}},setup(e){return{isDirty:!1,...ra(e)}}});function pJ(e,t,n,o,s,l){const c=u.resolveComponent("NumberControl"),f=u.resolveComponent("WrapperControl");return u.openBlock(),u.createBlock(f,{control:e.control,isDirty:e.isDirty},{default:u.withCtx(()=>[u.createVNode(c,{control:e.control,onUpdateValue:e.updateValue},null,8,["control","onUpdateValue"])]),_:1},8,["control","isDirty"])}const hJ=re(fJ,[["render",pJ]]),mJ=u.defineComponent({name:"aux-string-control",emits:["update-value"],components:{AuxInput:ol,RadioButtons:Jc,AuxSelect:sl},props:{control:{type:Object,required:!0}},methods:{change(e){this.$emit("update-value",e||void 0)}},setup(e,{emit:t}){var c;const n=u.shallowRef(e),{control:o}=n.value;if(!o)throw new Error("Schema is not configured correctly");const{schema:s}=o,l=u.reactive({format:s.format,default:s.default,selected:"",enums:[],layout:s&&"options"in s&&((c=s.options)!=null&&c.card_layout)?"card":"regular"});return s.enum&&s.enum.forEach((f,h)=>{const g="options"in s&&s.options&&s.options.enum_titles?s.options.enum_titles[h]:f;l.enums.push({label:g,value:f})}),!l.format&&l.enums.length?l.format="select":l.format||(l.format="text"),l.default&&t("update-value",l.default),{state:l}}});function gJ(e,t,n,o,s,l){const c=u.resolveComponent("AuxInput"),f=u.resolveComponent("RadioButtons"),h=u.resolveComponent("AuxSelect");return u.openBlock(),u.createElementBlock(u.Fragment,null,[e.state.format==="text"?(u.openBlock(),u.createBlock(c,{key:0,type:"text",id:`${e.control.id}-input`,label:e.control.label,value:e.control.data||e.state.default,description:e.control.description,onBlur:e.change},null,8,["id","label","value","description","onBlur"])):u.createCommentVNode("",!0),e.state.format==="radiobuttons"?(u.openBlock(),u.createBlock(f,{key:1,id:e.control.id,label:e.control.label,description:e.control.description,options:e.state.enums,defaultValue:e.control.data||e.state.default,layout:e.state.layout,onChange:e.change},null,8,["id","label","description","options","defaultValue","layout","onChange"])):u.createCommentVNode("",!0),e.state.format==="select"?(u.openBlock(),u.createBlock(h,{key:2,label:e.control.label,items:e.state.enums,value:e.control.data||e.state.default,onChange:e.change},null,8,["label","items","value","onChange"])):u.createCommentVNode("",!0)],64)}const vJ=re(mJ,[["render",gJ],["__scopeId","data-v-c15a6385"]]),yJ=u.defineComponent({name:"string-renderer",components:{StringControl:vJ,WrapperControl:Xa},props:{...Or()},methods:{updateValue(e){this.isDirty=!0,this.handleChange(this.control.path,e)}},setup(e){return{isDirty:!1,...ra(e)}}});function _J(e,t,n,o,s,l){const c=u.resolveComponent("StringControl"),f=u.resolveComponent("WrapperControl");return u.openBlock(),u.createBlock(f,{control:e.control,isDirty:e.isDirty,onUpdateValue:e.updateValue},{default:u.withCtx(()=>[u.createVNode(c,{control:e.control,onUpdateValue:e.updateValue},null,8,["control","onUpdateValue"])]),_:1},8,["control","isDirty","onUpdateValue"])}const $J=re(yJ,[["render",_J]]),bJ=u.defineComponent({name:"number-renderer",components:{NumberControl:Z0,WrapperControl:Xa},props:{...Or()},methods:{updateValue(e){this.isDirty=!0,this.handleChange(this.control.path,Number(e))}},setup(e){return{isDirty:!1,...ra(e)}}});function wJ(e,t,n,o,s,l){const c=u.resolveComponent("NumberControl"),f=u.resolveComponent("WrapperControl");return u.openBlock(),u.createBlock(f,{control:e.control,isDirty:e.isDirty},{default:u.withCtx(()=>[u.createVNode(c,{control:e.control,onUpdateValue:e.updateValue},null,8,["control","onUpdateValue"])]),_:1},8,["control","isDirty"])}const EJ=re(bJ,[["render",wJ]]),SJ=u.defineComponent({name:"boolean-control",emits:["update-value"],components:{Checkbox:il},methods:{change(e){this.$emit("update-value",e.checked)}},props:{control:{type:Object,required:!0}},setup(e,{emit:t}){var c;const n=u.shallowRef(e),{control:o}=n.value;if(!o)throw new Error("Schema is not configured correctly");const{schema:s}=o,l=u.reactive({layout:s&&"options"in s&&((c=s.options)!=null&&c.card_layout)?"card":"regular"});return s.default&&t("update-value",s.default),{state:l}}});function AJ(e,t,n,o,s,l){const c=u.resolveComponent("Checkbox");return u.openBlock(),u.createBlock(c,{layout:e.state.layout,value:e.control.data,selected:e.control.data||e.control.schema.default,onChange:e.change},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.control.label),1)]),_:1},8,["layout","value","selected","onChange"])}const CJ=re(SJ,[["render",AJ]]),OJ=u.defineComponent({name:"boolean-renderer",components:{BooleanControl:CJ,WrapperControl:Xa},props:{...Or()},methods:{updateValue(e){this.isDirty=!0,this.handleChange(this.control.path,e)}},setup(e){return{isDirty:!1,...ra(e)}}});function TJ(e,t,n,o,s,l){const c=u.resolveComponent("BooleanControl"),f=u.resolveComponent("WrapperControl");return u.openBlock(),u.createBlock(f,{control:e.control,isDirty:e.isDirty},{default:u.withCtx(()=>[u.createVNode(c,{control:e.control,onUpdateValue:e.updateValue},null,8,["control","onUpdateValue"])]),_:1},8,["control","isDirty"])}const IJ=re(OJ,[["render",TJ]]),PJ=u.defineComponent({name:"aux-checkboxes",emits:["change"],components:{Checkbox:il,FormElement:qr},props:{id:{type:String,required:!0},label:{type:String,required:!0},description:{type:String,required:!1},options:{type:Array,required:!0},data:{type:Array,required:!1},defaultValues:{type:Array,default:()=>[]},layout:{type:String,default:"regular"}},methods:{onChange(e){this.state.selected.includes(e.option)?this.state.selected=this.state.selected.filter(t=>t!==e.option):this.state.selected.push(e.option),this.$emit("change",this.state.selected)},isSelected(e){return this.state.selected.includes(e)}},setup(e){return{state:u.reactive({selected:e.data??e.defaultValues})}}});function RJ(e,t,n,o,s,l){const c=u.resolveComponent("Checkbox"),f=u.resolveComponent("FormElement");return u.openBlock(),u.createBlock(f,{class:"aux-checkbox-group",id:`${e.id}-input`,label:e.label,description:e.description},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.options,h=>(u.openBlock(),u.createBlock(c,{key:h.value,value:h.value,selected:e.isSelected(h.value),layout:e.layout,onChange:e.onChange},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(h.label),1)]),_:2},1032,["value","selected","layout","onChange"]))),128))]),_:1},8,["id","label","description"])}const kJ=re(PJ,[["render",RJ],["__scopeId","data-v-7397e750"]]),NJ=u.defineComponent({name:"array-control",emits:["update-value"],components:{RadioButtons:Jc,Checkboxes:kJ},props:{control:{type:Object,required:!0}},methods:{onChange(e){Array.isArray(e)?this.$emit("update-value",e):this.$emit("update-value",[e])}},setup(e,{emit:t}){var c,f,h,g;const n=u.shallowRef(e),{control:o}=n.value;if(!o)throw new Error("Schema is not configured correctly");const{schema:s}=o,l=u.reactive({default:s.default,format:s.format||"checkboxes",enums:[],layout:s&&s.items&&"options"in s.items&&((f=(c=s.items)==null?void 0:c.options)!=null&&f.card_layout)?"card":"regular"});return s.items&&"enum"in s.items&&((g=(h=s.items)==null?void 0:h.enum)==null||g.forEach((y,w)=>{var C,I;if(s.items&&"options"in s.items){const O=(I=(C=s.items)==null?void 0:C.options)!=null&&I.enum_titles?s.items.options.enum_titles[w]:y;l.enums.push({label:O,value:y})}})),l.default&&!o.data&&t("update-value",l.default),{state:l}}});function DJ(e,t,n,o,s,l){const c=u.resolveComponent("Checkboxes"),f=u.resolveComponent("RadioButtons");return u.openBlock(),u.createElementBlock(u.Fragment,null,[e.state.format==="checkboxes"?(u.openBlock(),u.createBlock(c,{key:0,id:e.control.id,label:e.control.label,description:e.control.description,options:e.state.enums,data:e.control.data,defaultValues:e.state.default,layout:e.state.layout,onChange:e.onChange},null,8,["id","label","description","options","data","defaultValues","layout","onChange"])):u.createCommentVNode("",!0),e.state.format==="radiobuttons"?(u.openBlock(),u.createBlock(f,{key:1,id:e.control.id,label:e.control.label,description:e.control.description,options:e.state.enums,data:e.control.data,defaultValue:e.state.default,layout:e.state.layout,onChange:e.onChange},null,8,["id","label","description","options","data","defaultValue","layout","onChange"])):u.createCommentVNode("",!0)],64)}const LJ=re(NJ,[["render",DJ]]),BJ=u.defineComponent({name:"array-renderer",components:{ArrayControl:LJ,WrapperControl:Xa},props:{...Or()},methods:{updateValue(e){this.isDirty=!0,this.handleChange(this.control.path,e)}},setup(e){return{isDirty:!1,...ra(e)}}});function MJ(e,t,n,o,s,l){const c=u.resolveComponent("ArrayControl"),f=u.resolveComponent("WrapperControl");return u.openBlock(),u.createBlock(f,{control:e.control,isDirty:e.isDirty},{default:u.withCtx(()=>[u.createVNode(c,{control:e.control,onUpdateValue:e.updateValue},null,8,["control","onUpdateValue"])]),_:1},8,["control","isDirty"])}const FJ=re(BJ,[["render",MJ]]),jJ=u.defineComponent({name:"layout-renderer",components:{DispatchRenderer:Gi},props:{...Or()},setup(e){return qK(e)}}),xJ={key:0};function VJ(e,t,n,o,s,l){const c=u.resolveComponent("dispatch-renderer");return e.layout.visible?(u.openBlock(),u.createElementBlock("div",xJ,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.layout.uischema.elements,(f,h)=>(u.openBlock(),u.createElementBlock("div",{class:"aux-form-field",key:`${e.layout.path}-${h}`},[u.createVNode(c,{schema:e.layout.schema,uischema:f,path:e.layout.path,enabled:e.layout.enabled,renderers:e.layout.renderers,cells:e.layout.cells},null,8,["schema","uischema","path","enabled","renderers","cells"])]))),128))])):u.createCommentVNode("",!0)}const UJ=re(jJ,[["render",VJ]]),WJ=u.defineComponent({name:"object-renderer",components:{DispatchRenderer:Gi},props:{...Or()},methods:{isHidden(){const{schema:e}=this.control;return e&&"options"in e&&e.options&&e.options.hidden},generateUISchema(e){return e.uischemas=e.uischemas??[],_K(e.uischemas,e.schema,e.uischema.scope,e.path,"Group",e.uischema,e.rootSchema)}},setup(e){const t=e.path.split(".").length>1;return{...ra(e),hasIdenting:t}}}),zJ={key:0};function qJ(e,t,n,o,s,l){const c=u.resolveComponent("dispatch-renderer");return e.control.visible&&!e.isHidden()?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass({"aux-json-form-object":!0,"has-identing":e.hasIdenting})},[e.control.label?(u.openBlock(),u.createElementBlock("legend",zJ,u.toDisplayString(e.control.label),1)):u.createCommentVNode("",!0),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.generateUISchema(e.control).elements,(f,h)=>(u.openBlock(),u.createElementBlock("div",{key:`${e.control.path}-${h}`},[u.createVNode(c,{schema:e.control.schema,uischema:f,path:e.control.path,enabled:e.control.enabled,renderers:e.control.renderers,cells:e.control.cells},null,8,["schema","uischema","path","enabled","renderers","cells"])]))),128))],2)):u.createCommentVNode("",!0)}const GJ=re(WJ,[["render",qJ],["__scopeId","data-v-62c8e345"]]),HJ={renderer:u.shallowRef($J),tester:gn(1,vK)},KJ={renderer:u.shallowRef(EJ),tester:gn(1,gK)},JJ={renderer:u.shallowRef(hJ),tester:gn(1,mK)},YJ={renderer:u.shallowRef(IJ),tester:gn(1,pK)},ZJ={renderer:u.shallowRef(FJ),tester:gn(1,ta("array"))},XJ={renderer:u.shallowRef(UJ),tester:gn(1,C0)},QJ={renderer:u.shallowRef(GJ),tester:gn(1,hK)},eY=[HJ,KJ,JJ,YJ,ZJ,XJ,QJ],tY=u.defineComponent({name:"aux-form",props:{data:{type:Object,default:()=>({})},schema:{type:Object},showErrors:{type:Boolean,defaut:!1}},setup(e,{emit:t}){const n=u.reactive({data:e.data||{}}),o=u.computed(()=>({showErrors:e.showErrors}));return{onChange:l=>{const c=l.errors.length===0;t("updated",l.data),t("validated",c)},config:o,renderers:eY,state:n}},components:{JsonForms:Y0}}),rY={class:"aux-form"};function nY(e,t,n,o,s,l){const c=u.resolveComponent("JsonForms");return u.openBlock(),u.createElementBlock("div",rY,[e.state?(u.openBlock(),u.createBlock(c,{key:0,class:"aux-form-content",data:e.state.data,schema:e.schema,config:e.config,renderers:e.renderers,onChange:e.onChange},null,8,["data","schema","config","renderers","onChange"])):u.createCommentVNode("",!0)])}const aY=re(tY,[["render",nY],["__scopeId","data-v-59062fb0"]]),oY=["medium","large"],iY=["success","info","warning","error","default","inactive"],sY=u.defineComponent({name:"aux-status-badge",props:{size:{type:String,default:"medium",validator:e=>oY.includes(e)},status:{type:String,default:"default",validator:e=>[...iY].includes(e)}},setup(e){const t=u.computed(()=>({"aux-status-badge":!0,[`aux-status-badge--size-${e.size}`]:!0,[`aux-status-badge--${e.status}`]:!0})),n=u.computed(()=>({"aux-status-badge-dot":!0,[`aux-status-badge-dot--size-${e.size}`]:!0,[`aux-status-badge-dot--${e.status}`]:!0}));return{classes:t,dotClasses:n}}});function uY(e,t,n,o,s,l){return u.openBlock(),u.createElementBlock("span",{class:u.normalizeClass(e.classes)},[u.createElementVNode("span",{class:u.normalizeClass(e.dotClasses)},null,2),u.renderSlot(e.$slots,"default",{},void 0,!0)],2)}const lY=re(sY,[["render",uY],["__scopeId","data-v-721f4ee1"]]),cY=(e,t)=>{const n=t==="decimals"?2:0;return new Intl.NumberFormat("nb-NB",{minimumFractionDigits:n,maximumFractionDigits:n}).format(e)},dY=(e,t)=>{switch(t){case"excl":return`${e} eks. mva`;case"incl":return`${e} inkl. mva`;default:return e}},fY=(e,t)=>t==="rounded"?`${e},-`:e;function pY(e,t="decimals",n="none"){const o=cY(e,t),s=fY(o,t);return dY(s,n)}const hY=(e,t={type:"decimals"})=>{let n=0;return t.type==="decimals"&&(n=t.decimals||1),new Intl.NumberFormat("nb-NO",{minimumFractionDigits:n,maximumFractionDigits:n}).format(e)};exports.AuxAriaAnnouncer=NO;exports.AuxBanner=n2;exports.AuxButton=Ai;exports.AuxCard=NC;exports.AuxCheckbox=il;exports.AuxCheckboxGroup=NA;exports.AuxDefinition=oA;exports.AuxDetails=qm;exports.AuxDirectionalArrow=zm;exports.AuxFormElement=qr;exports.AuxInput=ol;exports.AuxJsonForm=aY;exports.AuxLink=Wm;exports.AuxLogo=dA;exports.AuxModal=ZA;exports.AuxNotifications=VO;exports.AuxPagination=IO;exports.AuxPill=f2;exports.AuxRadio=y2;exports.AuxRadioGroup=Gm;exports.AuxSelect=sl;exports.AuxSpinner=u2;exports.AuxStatusBadge=lY;exports.AuxTag=MC;exports.AuxTextArea=rC;exports.AuxTime=XC;exports.AuxToggle=cO;exports.AuxUpload=IC;exports.AuxValidationWrapper=X0;exports.formatDate=Yt;exports.formatNumber=hY;exports.formatPrice=pY;