@squiz/component-cli-lib 1.32.1-alpha.26 → 1.32.1-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.npm/_logs/{2023-05-03T01_22_31_831Z-debug-0.log → 2023-05-04T03_06_15_758Z-debug-0.log} +16 -16
- package/lib/index.js +4 -4
- package/lib/index.js.map +2 -2
- package/package.json +9 -9
- package/src/integration-tests/__components__/matrix-asset-uri/manifest.json +1 -1
- package/src/integration-tests/upload-and-render-component.integration.spec.ts +2 -2
- package/tsconfig.tsbuildinfo +1 -1
package/lib/index.js
CHANGED
|
@@ -128,7 +128,7 @@ quantifier ::= "+" | "*" | [0-9]+
|
|
|
128
128
|
orPattern ::= S? "," S?
|
|
129
129
|
|
|
130
130
|
S ::= [ ]*
|
|
131
|
-
`,$=new z.Z.Parser(D),ee=T=>$.getAST(T),_e=(T,A)=>`${T}/${A}`,re=Object.prototype.toString,me=/Object|Array/,Se=T=>me.test(re.call(T));function Ee(T){return new RegExp(T.text.replace(/(^{|}$)/g,""))}function ce(T){return Array.isArray(T)?T.map(function(A,I){return`${I}`}):Object.prototype.toString.call(T)==="[object Object]"?Object.keys(T):[]}let ue={mem:[],get(T,A){let I=T[0][A];if(!ue.mem.includes(I))return Se(I)&&ue.mem.push(I),[I,A,T[0],_e(T[3],A)]},reset(){ue.mem.length=0}},B={any(T,A){let I=A[0];return ce(I).map(U=>[I[U],U,I,_e(A[3],U)])},all(T,A){let I=[A];var U,V;return U=A[0],V=(te,W)=>{let Q=ue.get(A,W);Q&&I.push(...B.all(T,Q))},Array.isArray(U)?U.forEach(V):Object.prototype.toString.call(U)==="[object Object]"&&Object.keys(U).forEach(function(te){V(U[te],te,U)}),I},regex(T,A){let I=Ee(T),U=A[0];return ce(U).filter(V=>I.test(V)).map(V=>[U[V],V,U,_e(A[3],V)])}},K={escaped:(T,A)=>K.property(T,A),property:(T,A)=>{let I=T.text;if(A[0]&&A[0][I]!==void 0)return[A[0][I],I,A[0],_e(A[3],I)]},typecheck:(T,A)=>{let I=T.text.replace(/^\?:/,"");if(I==="value")return Se(A[0])?void 0:A;var U;return U=A[0],re.call(U).match(/\s([^\]]+)\]/).pop().toLowerCase()===I?A:void 0},lookahead:(T,A)=>{let I=!0,U=!1;return T.children.forEach(V=>{if(V.type==="expression"){let te=K.expression(V,A)!==void 0;I=U===!0?I||te:I&&te}else U=V.type==="orExpr"}),I?A:void 0},expression:(T,A)=>{let I=T.children[0].text,U=T.children[1],V=T.children[2],te=A[0];if(Se(te)!==!1)return function(W,Q,oe){if(Q===void 0)return W!==void 0;let ae,Ce=`${W}`;return oe.type==="regex"?ae=Ee(oe).test(Ce):ae=Ce===oe.text,Q.type==="isnot"&&(ae=ae===!1&&W!==void 0),ae}(te[I],U,V)?A:void 0}};function pe(T,A,I){let U=[],V=T;return A.children.forEach(te=>{if(te.type==="orPattern")return U.push(...V),void(V=T);V=se(V,te,I)}),U.push(...V),U}function ge(T,A,I){let U=[],V=A.children.find(oe=>oe.type==="quantifier"),te=function(oe){if(oe==null)return 1;if(oe==="*"||oe==="+")return 1/0;let ae=parseInt(oe);return isNaN(ae)?1:ae}(V&&V.text),W=T;V&&V.text==="*"&&U.push(...W);let Q=0;for(;W.length>0&&Q<te;)W=pe(W,A,I),U.push(...W),Q+=1;return U}function se(T,A,I){let U;return U=A.type==="query"?function(V,te,W){let Q=V;return te.children.forEach(oe=>{if(B[oe.type])Q=function(ae,Ce,Ae,ze){let st=[];for(let Ge=0,ot=Ce.length;Ge<ot;Ge+=1)st.push(...ae(Ae,Ce[Ge],Ae,ze));return st}(B[oe.type],Q,oe,W);else{if(!K[oe.type])throw new Error(`Unknown filter ${oe.type}`);Q=function(ae,Ce,Ae,ze){let st=[];for(let Ge=0,ot=Ce.length;Ge<ot;Ge+=1){let ct=ae(Ae,Ce[Ge],ze);ct&&st.push(ct)}return st}(K[oe.type],Q,oe,W)}}),Q}(T,A,I):A.type==="pattern"?ge(T,A,I):function(V,te,W){let Q=V;return te.children.forEach(oe=>Q=se(Q,oe,W)),Q}(T,A,I),ue.reset(),ue.mem.push(T),U}let ne={value:T=>T.map(A=>A[0]),pointer:T=>T.map(A=>A[3]),all:T=>T,map:T=>{let A={};return T.forEach(I=>A[I[3]]=I[0]),A}};var be;function Te(T,A,I=be.VALUE){if(A==null)return[];(A=A.replace(/(\/$)/g,""))===""&&(A="#");let U=ee(A);if(U==null)throw new Error(`empty ast for '${A}'`);if(U.rest!=="")throw new Error(`Failed parsing queryString from: '${U.rest}'`);let V=function(te,W){return ue.reset(),ue.mem.push(te),se([[te,null,null,"#"]],W)}(T,U);return typeof I=="function"?V.map(te=>I(...te)):ne[I]?ne[I](V):V}(function(T){T.POINTER="pointer",T.VALUE="value",T.ALL="all",T.MAP="map"})(be||(be={})),Te.POINTER=be.POINTER,Te.VALUE=be.VALUE,Te.ALL=be.ALL,Te.MAP=be.MAP;let We=["root","recursion"];function Ke(T,A=[]){return We.includes(T.type)?(T.children.forEach(I=>Ke(I,A)),A):(A.push(T.text),A)}function Ze(T){return T==null||T===""?[]:Ke(ee(T))}let dt=T=>JSON.parse(JSON.stringify(T)),Nt=Object.prototype.toString,Et=T=>Nt.call(T).match(/\s([^\]]+)\]/).pop().toLowerCase(),kt=new RegExp(`^("[^"]+"|${L})$`),Vt=["string","number","boolean","null"],Dt=/^\[\d*\]$/,It=/^\[(\d+)\]$/,Mt=/^".+"$/,er=/(^\[\d*\]$|^\d+$)/;function gr(T){return parseInt(T.replace(/^(\[|\]$)/,""))}function Bt(T){return Mt.test(T)?T.replace(/(^"|"$)/g,""):T}function fe(T,A,I,U){let V=T[0];if(/^\[\]$/.test(A)){V.push(I);let te=V.length-1;return[V[te],te,V,`${T[3]}/${te}}`]}if(U==null&&Et(V[A])==="object"&&Et(I)==="object")return[V[A],A,V,`${T[3]}/${A}}`];if(U===Ct.INSERT_ITEMS||U==null&&It.test(A)){let te=gr(A);return function(W,Q,oe){W.length<=Q?W[Q]=oe:W.splice(Q,0,oe)}(V,te,I),[V[te],te,V,`${T[3]}/${te}}`]}if(U===Ct.REPLACE_ITEMS||U==null){let te=gr(A);return V[te]=I,[V[te],te,V,`${T[3]}/${te}}`]}throw new Error(`Unknown array index '${A}' with force-option '${U}'`)}var pr;function Ct(T,A,I,U){if(A==null)return dt(T);if((A=A.replace(/(\/$)/g,""))==="")return dt(I);let V=dt(T),te=[[V,null,null,"#"]],W=Ze(A),Q=W.pop(),oe=Dt.test(Q)&&It.test(Q)===!1;if(kt.test(Q)===!1||oe)throw new Error(`Unsupported query '${A}' ending with non-property`);return W.forEach((ae,Ce)=>{if(ae==="__proto__"||ae==="prototyped"||ae==="constructor")return;if(kt.test(ae)===!1)return void(te=function(st,Ge){let ot=[];return st.forEach(ct=>ot.push(...Te(ct[0],Ge,be.ALL))),ot}(te,ae));let Ae=Ce>=W.length-1?Q:W[Ce+1],ze=er.test(Ae);te=function(st,Ge,ot,ct){return Ge=Bt(Ge),st.filter(ut=>!(!Array.isArray(ut[0])||!er.test(Ge))||Vt.includes(Et(ut[0][Ge]))===!1).map(ut=>{let E=ot?[]:{},M=ut[0];return Array.isArray(M)?fe(ut,Ge,E,ct):(M[Ge]=M[Ge]||E,[M[Ge],Ge,M,`${ut[3]}/${Ge}`])})}(te,ae,ze,U)}),te.forEach(ae=>{let Ce=I;Et(I)==="function"&&(Ce=I(ae[3],Q,ae[0],`${ae[3]}/${Q}`));let Ae=ae[0];if(Array.isArray(Ae))fe(ae,Q,Ce,U);else{let ze=Bt(Q);if(ze==="__proto__"||ze==="prototyped"||ze==="constructor")return;Ae[ze]=Ce}}),V}(function(T){T.REPLACE_ITEMS="replace",T.INSERT_ITEMS="insert"})(pr||(pr={})),Ct.REPLACE_ITEMS=pr.REPLACE_ITEMS,Ct.INSERT_ITEMS=pr.INSERT_ITEMS;let Yt={$ref:{type:!1},allOf:{type:!1,definitions:["allOf/*"]},anyOf:{type:!1,definitions:["anyOf/*"]},array:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","items","items/*","additionalItems"],validationKeywords:["minItems","maxItems","uniqueItems"],keywords:["items","additionalItems","minItems","maxItems","uniqueItems"]},boolean:{type:!0},enum:{type:!1},integer:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},not:{type:!1,definitions:["not"]},number:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},null:{type:!0},object:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","properties/*","additionalProperties","patternProperties/*","dependencies/*"],validationKeywords:["minProperties","maxProperties","required"],keywords:["properties","additionalProperties","patternProperties","dependencies","minProperties","maxProperties","required"]},oneOf:{type:!1,definitions:["oneOf/*"]},string:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minLength","maxLength","pattern"]}},Dr=Object.keys(Yt).filter(T=>Yt[T].type===!1),Lt=Object.prototype.hasOwnProperty;function et(T){if(A=T,Object.prototype.toString.call(A)!=="[object Object]")return;var A;if(T.enum)return"enum";if(Yt[T.type]||Array.isArray(T.type))return T.type;let I=Dr.filter(U=>T[U]);if(I.length===1)return I[0];if(I.length!==0)throw new Error(`Mutiple typeIds [${I.join(", ")}] matched in ${JSON.stringify(T)}`);for(let U=0,V=Yt.object.keywords.length;U<V;U+=1){let te=Yt.object.keywords[U];if(Lt.call(T,te))return"object"}for(let U=0,V=Yt.array.keywords.length;U<V;U+=1){let te=Yt.array.keywords[U];if(Lt.call(T,te))return"array"}}function Ft(T){let A=[],I=et(T);if(I==null)return A;let U;if(Array.isArray(I)){U={};for(let V=0,te=I.length;V<te;V+=1)Object.assign(U,Yt[I[V]])}else U=Yt[I];return U.definitions==null||U.definitions.forEach(V=>{Te(T,V,(te,W,Q,oe)=>{(ae=>Object.prototype.toString.call(ae)==="[object Object]")(te)&&et(te)&&A.push({pointer:R().join(R().split(oe),!1),def:te})})}),A}function at(T,A){this.callback(T,A)!==!0&&Ft(T).forEach(I=>this.nextTypeDefs(I.def,R().join(A,I.pointer,!1)))}function rt(T,A,I,U="definitions"){let V=A[U];Object.keys(V).forEach(te=>{if(V[te]!==!1&&(W=V[te],Object.prototype.toString.call(W)!=="[object Object]"))var W;else T.nextTypeDefs(V[te],R().join(I,U,te,!1))})}function H(T,A,I="#"){let U={callback:A,nextTypeDefs:at};U.nextTypeDefs(T,I),T.definitions!=null&&(U.callback=(V,te)=>{A(V,te),V.definitions!=null&&rt(U,V,te)},rt(U,T,I)),T.$defs!=null&&(U.callback=(V,te)=>{A(V,te),V.definitions!=null&&rt(U,V,te)},rt(U,T,I,"$defs"))}let de=/(#|\/)+$/,Z=/#$/,we=/^[^:]+:\/\/[^/]+\//,qe=/\/[^/]*$/,ye=/#.*$/;function Ie(T,A){return T==null&&A==null?"#":A==null?T.replace(Z,""):T==null?A.replace(Z,""):A[0]==="#"?`${T.replace(ye,"")}${A.replace(de,"")}`:we.test(A)?A.replace(Z,""):`${T.replace(qe,"")}/${A.replace(Z,"")}`}let Me=/(#|\/)+$/g,Re=["",null,"#"],Oe=/(#|\/)+$/g;function Je(T,A,I){if(o(I)==="object"&&(I=I.__ref||I.$ref),I==null)return A;let U,V=I.replace(Oe,"");if(T.remotes[V])return U=T.remotes[V],U&&U.$ref?Je(T,A,U.$ref):U;if(T.ids[I])return U=(0,b.get)(A,T.ids[I]),U&&U.$ref?Je(T,A,U.$ref):U;let te=function(W){if(Re.includes(W))return[];if((W=W.replace(Me,"")).indexOf("#")===-1)return[W.replace(Me,"")];if(W.indexOf("#")===0)return[W.replace(Me,"")];let Q=W.split("#");return Q[0]=Q[0].replace(Me,""),Q[1]=`#${Q[1].replace(Me,"")}`,Q}(I);if(te.length===0)return A;if(te.length===1){if(I=te[0],T.remotes[I])return U=T.remotes[I],Je(T,A,U.$ref);if(T.ids[I])return U=(0,b.get)(A,T.ids[I]),U&&U.$ref?Je(T,A,U.$ref):U}if(te.length===2){let W=te[0];if(I=te[1],T.remotes[W])return T.remotes[W].getRef?T.remotes[W].getRef(I):Je(T,T.remotes[W],I);if(T.ids[W])return Je(T,(0,b.get)(A,T.ids[W]),I)}return U=(0,b.get)(A,T.ids[I]||I),U&&U.$ref?Je(T,A,U.$ref):U}let lt="__compiled",zt="__ref",nr=/(#|\/)+$/g;function mr(T,A,I=A,U=!1){if(A===!0||A===!1||A===void 0||A[lt]!==void 0)return A;let V={ids:{},remotes:T.remotes},te=JSON.stringify(A),W=JSON.parse(te);if(Object.defineProperty(W,lt,{enumerable:!1,value:!0}),Object.defineProperty(W,"getRef",{enumerable:!1,value:Je.bind(null,V,W)}),U===!1&&te.includes("$ref")===!1)return W;W!==I&&Object.defineProperty(W,"$defs",{enumerable:!0,value:Object.assign({},I.definitions,I.$defs,W.definitions,W.$defs)});let Q={},oe=()=>W;return H(W,(ae,Ce)=>{var Ae;if(ae.$id){if(ae.$id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(Ce)){let ot=Ce.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),ct=(0,b.get)(W,ot);ae.$id=(Ae=ct.$id)!==null&&Ae!==void 0?Ae:ae.$id}V.ids[ae.$id.replace(nr,"")]=Ce}let ze=(Ce=`#${Ce}`.replace(/##+/,"#")).replace(/\/[^/]+$/,""),st=Ce.replace(/\/[^/]+\/[^/]+$/,""),Ge=Ie(Q[ze]||Q[st],ae.$id);Q[Ce]=Ge,V.ids[Ge]==null&&(V.ids[Ge]=Ce),ae.$ref&&!ae[zt]&&(Object.defineProperty(ae,zt,{enumerable:!1,value:Ie(Ge,ae.$ref)}),Object.defineProperty(ae,"getRoot",{enumerable:!1,value:oe}))}),W}function Jt(T,A,I,U=T.rootSchema,V="#"){U=T.resolveRef(U),I(U,A,V);let te=o(A);te==="object"?Object.keys(A).forEach(W=>{let Q=T.step(W,U,A,V),oe=A[W];T.each(oe,I,Q,`${V}/${W}`)}):te==="array"&&A.forEach((W,Q)=>{let oe=T.step(Q,U,A,V);T.each(W,I,oe,`${V}/${Q}`)})}let tt={additionalItemsError:i("AdditionalItemsError"),additionalPropertiesError:i("AdditionalPropertiesError"),anyOfError:i("AnyOfError"),allOfError:i("AllOfError"),constError:i("ConstError"),containsError:i("ContainsError"),containsArrayError:i("ContainsArrayError"),containsAnyError:i("ContainsAnyError"),enumError:i("EnumError"),formatURLError:i("FormatURLError"),formatURIError:i("FormatURIError"),formatURIReferenceError:i("FormatURIReferenceError"),formatURITemplateError:i("FormatURITemplateError"),formatDateError:i("FormatDateaError"),formatDateTimeError:i("FormatDateTimeError"),formatEmailError:i("FormatEmailError"),formatHostnameError:i("FormatHostnameError"),formatIPV4Error:i("FormatIPV4Error"),formatIPV4LeadingZeroError:i("FormatIPV4LeadingZeroError"),formatIPV6Error:i("FormatIPV6Error"),formatIPV6LeadingZeroError:i("FormatIPV6LeadingZeroError"),formatJSONPointerError:i("FormatJSONPointerError"),formatRegExError:i("FormatRegExError"),formatTimeError:i("FormatTimeError"),invalidSchemaError:i("InvalidSchemaError"),invalidDataError:i("InvalidDataError"),invalidTypeError:i("InvalidTypeError"),invalidPropertyNameError:i("InvalidPropertyNameError"),maximumError:i("MaximumError"),maxItemsError:i("MaxItemsError"),maxLengthError:i("MaxLengthError"),maxPropertiesError:i("MaxPropertiesError"),minimumError:i("MinimumError"),minItemsError:i("MinItemsError"),minItemsOneError:i("MinItemsOneError"),minLengthError:i("MinLengthError"),minLengthOneError:i("MinLengthOneError"),minPropertiesError:i("MinPropertiesError"),missingDependencyError:i("MissingDependencyError"),missingOneOfPropertyError:i("MissingOneOfPropertyError"),multipleOfError:i("MultipleOfError"),multipleOneOfError:i("MultipleOneOfError"),noAdditionalPropertiesError:i("NoAdditionalPropertiesError"),notError:i("NotError"),oneOfError:i("OneOfError"),oneOfPropertyError:i("OneOfPropertyError"),patternError:i("PatternError"),patternPropertiesError:i("PatternPropertiesError"),requiredPropertyError:i("RequiredPropertyError"),typeError:i("TypeError"),undefinedValueError:i("UndefinedValueError"),uniqueItemsError:i("UniqueItemsError"),unknownPropertyError:i("UnknownPropertyError"),valueNotEmptyError:i("ValueNotEmptyError")};var ui=__webpack_require__(481),Vr=__webpack_require__.n(ui);let Jn=new RegExp("^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(([Zz])|([\\+|\\-]([01][0-9]|2[0-3]):[0-5][0-9]))$"),tn=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ra=/^((([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,ps=/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,na=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ia=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,ms=[0,31,28,31,30,31,30,31,31,30,31,30,31],Ri=/^(?:\/(?:[^~/]|~0|~1)*)*$/,fs=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,sa=/^(?:[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,_s=/^(?:(?:[^\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,Bi={date:(T,A,I,U)=>{if(typeof I!="string")return;let V=I.match(na);if(!V)return tt.formatDateTimeError({value:I,pointer:U});let te=+V[1],W=+V[2],Q=+V[3];return W>=1&&W<=12&&Q>=1&&Q<=(W==2&&te%4==0&&(te%100!=0||te%400==0)?29:ms[W])?void 0:tt.formatDateError({value:I,pointer:U})},"date-time":(T,A,I,U)=>{if(typeof I=="string")return I===""||Jn.test(I)?new Date(I).toString()==="Invalid Date"?tt.formatDateTimeError({value:I,pointer:U}):void 0:tt.formatDateTimeError({value:I,pointer:U})},email:(T,A,I,U)=>{if(typeof I!="string")return;if(I[0]==='"')return tt.formatEmailError({value:I,pointer:U});let[V,te,...W]=I.split("@");return!V||!te||W.length!==0||V.length>64||te.length>253||V[0]==="."||V.endsWith(".")||V.includes("..")?tt.formatEmailError({value:I,pointer:U}):/^[a-z0-9.-]+$/i.test(te)&&/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(V)&&te.split(".").every(Q=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(Q))?void 0:tt.formatEmailError({value:I,pointer:U})},hostname:(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!ps.test(I))return tt.formatHostnameError({value:I,pointer:U})},ipv4:(T,A,I,U)=>{if(typeof I=="string"&&I!==""){if(I&&I[0]==="0")return tt.formatIPV4LeadingZeroError({value:I,pointer:U});if(!(I.length<=15&&tn.test(I)))return tt.formatIPV4Error({value:I,pointer:U})}},ipv6:(T,A,I,U)=>{if(typeof I=="string"&&I!==""){if(I&&I[0]==="0")return tt.formatIPV6LeadingZeroError({value:I,pointer:U});if(!(I.length<=45&&ra.test(I)))return tt.formatIPV6Error({value:I,pointer:U})}},"json-pointer":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!Ri.test(I))return tt.formatJSONPointerError({value:I,pointer:U})},"relative-json-pointer":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!fs.test(I))return tt.formatJSONPointerError({value:I,pointer:U})},regex:(T,A,I,U)=>{if(typeof I=="string"&&/\\Z$/.test(I)===!1){try{return void new RegExp(I)}catch{}return tt.formatRegExError({value:I,pointer:U})}if(typeof I!="object"&&typeof I!="number"&&!Array.isArray(I))return tt.formatRegExError({value:I,pointer:U})},time:(T,A,I,U)=>{if(typeof I!="string")return;let V=I.match(ia);if(!V)return tt.formatDateTimeError({value:I,pointer:U});let te=+V[1],W=+V[2],Q=+V[3],oe=!!V[5];return(te<=23&&W<=59&&Q<=59||te==23&&W==59&&Q==60)&&oe?void 0:tt.formatTimeError({value:I,pointer:U})},uri:(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!Vr().isUri(I))return tt.formatURIError({value:I,pointer:U})},"uri-reference":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!sa.test(I))return tt.formatURIReferenceError({value:I,pointer:U})},"uri-template":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!_s.test(I))return tt.formatURITemplateError({value:I,pointer:U})},url:(T,A,I,U)=>{if(I!==""&&!Vr().isWebUri(I))return tt.formatURLError({value:I,pointer:U})}},hs={addOptionalProps:!0,removeInvalidData:!1},qr;function Dn(T,A){let{$ref:I}=T;return I==null?!0:(qr[A]==null||qr[A][I]==null?0:qr[A][I])<u.GET_TEMPLATE_RECURSION_LIMIT}function Wn(T,A,I){if(I==null)throw new Error(`missing pointer ${I}`);let{$ref:U}=A;return U==null?A:(qr[I]=qr[I]||{},qr[I][U]=qr[I][U]||0,qr[I][U]+=1,T.resolveRef(A))}function Ai(T,A,I,U){if(o(A)!=="object")return Object.assign({pointer:U},A);if(Dn(A,U)===!1&&I==null)return!1;let V=m(Wn(T,A,U));if(Array.isArray(A.anyOf)&&A.anyOf.length>0){if(Dn(A.anyOf[0],`${U}/anyOf/0`)){let te=Wn(T,A.anyOf[0],`${U}/anyOf/0`);V=h(V,te),V.pointer=A.anyOf[0].$ref||V.pointer}delete V.anyOf}if(Array.isArray(A.allOf)){for(let te=0,W=A.allOf.length;te<W;te+=1)Dn(A.allOf[te],`${U}/allOf/${te}`)&&(V=h(V,Wn(T,A.allOf[te],`${U}/allOf/${te}`)),V.pointer=A.allOf[te].$ref||V.pointer);delete V.allOf}return V.pointer=V.pointer||A.$ref||U,V}let Pi=T=>T&&typeof T=="object";function Ir(T,A,I,U,V){if(I==null)throw new Error(`getTemplate: missing schema for data: ${JSON.stringify(A)}`);if(U==null)throw new Error("Missing pointer");let te=Ai(T,I,A,U);if(!Pi(te))return;if(U=te.pointer,te==null?void 0:te.const)return te.const;if(Array.isArray(te.oneOf))if(function(oe){switch(o(oe)){case"string":case"array":return oe.length===0;case"null":case"undefined":return!0;case"object":return Object.keys(oe).length===0;default:return!1}}(A)){let oe=te.oneOf[0].type||te.type||te.const&&typeof te.const||o(A);te=Object.assign(Object.assign({},te.oneOf[0]),{type:oe})}else{let oe=N(T,A,te);if(a(oe)){if(A!=null&&V.removeInvalidData!==!0)return A;te=te.oneOf[0],A=void 0}else te=oe}if(!Pi(te)||te.type==null)return;let W=Array.isArray(te.type)?function(oe,ae,Ce){if(ae==null){if(Ce!=null){let ze=o(Ce);if(oe.includes(ze))return ze}return oe[0]}let Ae=o(ae);return oe.includes(Ae)?Ae:oe[0]}(te.type,A,te.default):te.type,Q=o(A);return A==null||Q===W||Q==="number"&&W==="integer"||(A=function(oe,ae){if(oe==="string")return JSON.stringify(ae);if(typeof ae!="string")return null;try{if(typeof(ae=JSON.parse(ae))===oe)return ae}catch{}return null}(W,A)),vs[W]==null?V.removeInvalidData?void 0:A:vs[W](T,te,A,U,V)}let vs={null:(T,A,I)=>Fn(A,I,null),string:(T,A,I)=>Fn(A,I,""),number:(T,A,I)=>Fn(A,I,0),integer:(T,A,I)=>Fn(A,I,0),boolean:(T,A,I)=>Fn(A,I,!1),object:(T,A,I,U,V)=>{var te;let W=A.default===void 0?{}:A.default,Q={},oe=(te=A.required)!==null&&te!==void 0?te:[];if(A.properties&&Object.keys(A.properties).forEach(ae=>{let Ce=I==null||I[ae]==null?W[ae]:I[ae],Ae=oe.includes(ae);(Ce!=null||Ae||V.addOptionalProps)&&(Q[ae]=Ir(T,Ce,A.properties[ae],`${U}/properties/${ae}`,V))}),A.dependencies&&Object.keys(A.dependencies).forEach(ae=>{if(Q[ae]===void 0)return;let Ce=A.dependencies[ae];if(Array.isArray(Ce))return void Ce.forEach(ze=>{Q[ze]=Ir(T,Q[ze],A.properties[ze],`${U}/properties/${ze}`,V)});if(o(Ce)!=="object")return;let Ae=Ir(T,I,Object.assign(Object.assign({},Ce),{type:"object"}),`${U}/dependencies/${ae}`,V);Ae&&!a(Ae)&&Object.assign(Q,Ae)}),I&&Object.keys(I).forEach(ae=>Q[ae]==null&&(Q[ae]=I[ae])),A.if&&(A.then||A.else)){let ae=T.isValid(Q,A.if);if(ae&&A.then){let Ce=T.getTemplate(Q,Object.assign({type:"object"},A.then),V);Object.assign(Q,Ce)}else if(!ae&&A.else){let Ce=T.getTemplate(Q,Object.assign({type:"object"},A.else),V);Object.assign(Q,Ce)}}return Q},array:(T,A,I,U,V)=>{var te,W,Q;let oe=A.default===void 0?[]:A.default;A.minItems=A.minItems||0;let ae=I||[];if(A.items==null)return ae;if(Array.isArray(A.items)){for(let Ae=0,ze=Math.max((te=A.minItems)!==null&&te!==void 0?te:0,(Q=(W=A.items)===null||W===void 0?void 0:W.length)!==null&&Q!==void 0?Q:0);Ae<ze;Ae+=1)ae[Ae]=Ir(T,ae[Ae]==null?oe[Ae]:ae[Ae],A.items[Ae],`${U}/items/${Ae}`,V);return ae}if(o(A.items)!=="object")return ae;let Ce=Ai(T,A.items,I,U);if(Ce===!1)return ae;if(U=Ce.pointer||U,Ce.oneOf&&ae.length===0){let Ae=Ce.oneOf[0];for(let ze=0;ze<A.minItems;ze+=1)ae[ze]=Ir(T,ae[ze]==null?oe[ze]:ae[ze],Ae,`${U}/oneOf/0`,V);return ae}if(Ce.oneOf&&ae.length>0){let Ae=Math.max(A.minItems,ae.length);for(let ze=0;ze<Ae;ze+=1){let st=ae[ze]==null?oe[ze]:ae[ze],Ge=N(T,st,Ce);Ge==null||a(Ge)?st!=null&&V.removeInvalidData!==!0?ae[ze]=st:(st=void 0,Ge=Ce.oneOf[0],ae[ze]=Ir(T,st,Ge,`${U}/oneOf/${ze}`,V)):ae[ze]=Ir(T,st,Ge,`${U}/oneOf/${ze}`,V)}return ae}if(Ce.type){for(let Ae=0,ze=Math.max(A.minItems,ae.length);Ae<ze;Ae+=1)ae[Ae]=Ir(T,ae[Ae]==null?oe[Ae]:ae[Ae],Ce,`${U}/items`,V);return ae}return ae}};function Fn(T,A,I){return A??(T.const?T.const:T.default===void 0&&Array.isArray(T.enum)?T.enum[0]:T.default===void 0?I:T.default)}let Kn=(T,A,I=T.rootSchema,U=hs)=>(qr={mi:{}},Ir(T,A,I,"#",U));function xi(T,A,I=T.rootSchema,U="#"){return T.validate(A,I,U).length===0}function Ci(T,A){let I=typeof T;if(I!==typeof A)return!1;if(Array.isArray(T)){if(!Array.isArray(A))return!1;let U=T.length;if(U!==A.length)return!1;for(let V=0;V<U;V++)if(!Ci(T[V],A[V]))return!1;return!0}if(I==="object"){if(!T||!A)return T===A;let U=Object.keys(T),V=Object.keys(A);if(U.length!==V.length)return!1;for(let te of U)if(!Ci(T[te],A[te]))return!1;return!0}return T===A}function Ii(T){let A=[],I=0,U=T.length;for(;I<U;){let V=T.charCodeAt(I++);if(V>=55296&&V<=56319&&I<U){let te=T.charCodeAt(I++);(64512&te)==56320?A.push(((1023&V)<<10)+(1023&te)+65536):(A.push(V),I--)}else A.push(V)}return A}let Yn=u.floatingPointPrecision,ho=Object.prototype.hasOwnProperty,Ji=(T,A)=>!(T[A]===void 0||!ho.call(T,A)),vo={additionalProperties:(T,A,I,U)=>{if(A.additionalProperties===!0||A.additionalProperties==null||o(A.patternProperties)==="object"&&A.additionalProperties===!1)return;let V=[],te=Object.keys(I).filter(Q=>u.propertyBlacklist.includes(Q)===!1),W=Object.keys(A.properties||{});if(o(A.patternProperties)==="object"){let Q=Object.keys(A.patternProperties).map(oe=>new RegExp(oe));te=te.filter(oe=>{for(let ae=0;ae<Q.length;ae+=1)if(Q[ae].test(oe))return!1;return!0})}for(let Q=0,oe=te.length;Q<oe;Q+=1){let ae=te[Q];if(W.indexOf(ae)===-1){let Ce=typeof A.additionalProperties=="object";if(Ce&&Array.isArray(A.additionalProperties.oneOf)){let Ae=T.resolveOneOf(I[ae],A.additionalProperties,`${U}/${ae}`);a(Ae)?V.push(T.errors.additionalPropertiesError({schema:A.additionalProperties,property:te[Q],properties:W,pointer:U,errors:Ae.data.errors})):V.push(...T.validate(I[ae],Ae,U))}else Ce?V.push(...T.validate(I[ae],A.additionalProperties,`${U}/${ae}`)):V.push(T.errors.noAdditionalPropertiesError({property:te[Q],properties:W,pointer:U}))}}return V},allOf:(T,A,I,U)=>{if(Array.isArray(A.allOf)===!1)return;let V=[];return A.allOf.forEach(te=>{V.push(...T.validate(I,te,U))}),V},anyOf:(T,A,I,U)=>{if(Array.isArray(A.anyOf)!==!1){for(let V=0;V<A.anyOf.length;V+=1)if(T.isValid(I,A.anyOf[V]))return;return T.errors.anyOfError({anyOf:A.anyOf,value:I,pointer:U})}},dependencies:(T,A,I,U)=>{if(o(A.dependencies)!=="object")return;let V=[];return Object.keys(I).forEach(te=>{if(A.dependencies[te]===void 0||A.dependencies[te]===!0)return;if(A.dependencies[te]===!1)return void V.push(T.errors.missingDependencyError({pointer:U}));let W,Q=o(A.dependencies[te]);if(Q==="array")W=A.dependencies[te].filter(oe=>I[oe]===void 0).map(oe=>T.errors.missingDependencyError({missingProperty:oe,pointer:U}));else{if(Q!=="object")throw new Error(`Invalid dependency definition for ${U}/${te}. Must be list or schema`);W=T.validate(I,A.dependencies[te],U)}V.push(...W)}),V.length>0?V:void 0},enum:(T,A,I,U)=>{let V=o(I);if(V==="object"||V==="array"){let te=JSON.stringify(I);for(let W=0;W<A.enum.length;W+=1)if(JSON.stringify(A.enum[W])===te)return}else if(A.enum.includes(I))return;return T.errors.enumError({values:A.enum,value:I,pointer:U})},format:(T,A,I,U)=>{if(T.validateFormat[A.format])return T.validateFormat[A.format](T,A,I,U)},items:(T,A,I,U)=>{if(A.items===!1)return Array.isArray(I)&&I.length===0?void 0:T.errors.invalidDataError({pointer:U,value:I});let V=[];for(let te=0;te<I.length;te+=1){let W=I[te],Q=T.step(te,A,I,U);if(a(Q))return[Q];let oe=T.validate(W,Q,`${U}/${te}`);V.push(...oe)}return V},maximum:(T,A,I,U)=>{if(!isNaN(A.maximum))return A.maximum&&A.maximum<I||A.maximum&&A.exclusiveMaximum===!0&&A.maximum===I?T.errors.maximumError({maximum:A.maximum,length:I,pointer:U}):void 0},maxItems:(T,A,I,U)=>{if(!isNaN(A.maxItems))return A.maxItems<I.length?T.errors.maxItemsError({maximum:A.maxItems,length:I.length,pointer:U}):void 0},maxLength:(T,A,I,U)=>{if(isNaN(A.maxLength))return;let V=Ii(I).length;return A.maxLength<V?T.errors.maxLengthError({maxLength:A.maxLength,length:V,pointer:U}):void 0},maxProperties:(T,A,I,U)=>{let V=Object.keys(I).length;if(isNaN(A.maxProperties)===!1&&A.maxProperties<V)return T.errors.maxPropertiesError({maxProperties:A.maxProperties,length:V,pointer:U})},minLength:(T,A,I,U)=>{if(isNaN(A.minLength))return;let V=Ii(I).length;return A.minLength>V?A.minLength===1?T.errors.minLengthOneError({minLength:A.minLength,length:V,pointer:U}):T.errors.minLengthError({minLength:A.minLength,length:V,pointer:U}):void 0},minimum:(T,A,I,U)=>{if(!isNaN(A.minimum))return A.minimum>I||A.exclusiveMinimum===!0&&A.minimum===I?T.errors.minimumError({minimum:A.minimum,length:I,pointer:U}):void 0},minItems:(T,A,I,U)=>{if(!isNaN(A.minItems))return A.minItems>I.length?A.minItems===1?T.errors.minItemsOneError({minItems:A.minItems,length:I.length,pointer:U}):T.errors.minItemsError({minItems:A.minItems,length:I.length,pointer:U}):void 0},minProperties:(T,A,I,U)=>{if(isNaN(A.minProperties))return;let V=Object.keys(I).length;return A.minProperties>V?T.errors.minPropertiesError({minProperties:A.minProperties,length:V,pointer:U}):void 0},multipleOf:(T,A,I,U)=>{if(!isNaN(A.multipleOf))return I*Yn%(A.multipleOf*Yn)/Yn!=0?T.errors.multipleOfError({multipleOf:A.multipleOf,value:I,pointer:U}):void 0},not:(T,A,I,U)=>{let V=[];return T.validate(I,A.not,U).length===0&&V.push(T.errors.notError({value:I,not:A.not,pointer:U})),V},oneOf:(T,A,I,U)=>{if(Array.isArray(A.oneOf)!==!1)return a(A=T.resolveOneOf(I,A,U))?A:void 0},pattern:(T,A,I,U)=>{if(new RegExp(A.pattern,"u").test(I)===!1)return T.errors.patternError({pattern:A.pattern,description:A.patternExample||A.pattern,received:I,pointer:U})},patternProperties:(T,A,I,U)=>{let V=A.properties||{},te=A.patternProperties;if(o(te)!=="object")return;let W=[],Q=Object.keys(I),oe=Object.keys(te).map(ae=>({regex:new RegExp(ae),patternSchema:te[ae]}));return Q.forEach(ae=>{let Ce=!1;for(let Ae=0,ze=oe.length;Ae<ze;Ae+=1)if(oe[Ae].regex.test(ae)){Ce=!0;let st=T.validate(I[ae],oe[Ae].patternSchema,`${U}/${ae}`);st&&st.length>0&&W.push(...st)}V[ae]||Ce===!1&&A.additionalProperties===!1&&W.push(T.errors.patternPropertiesError({key:ae,pointer:U,patterns:Object.keys(te).join(",")}))}),W},properties:(T,A,I,U)=>{let V=[],te=Object.keys(A.properties||{});for(let W=0;W<te.length;W+=1){let Q=te[W];if(Ji(I,Q)){let oe=T.step(Q,A,I,U),ae=T.validate(I[Q],oe,`${U}/${Q}`);V.push(...ae)}}return V},propertiesRequired:(T,A,I,U)=>{let V=[],te=Object.keys(A.properties||{});for(let W=0;W<te.length;W+=1){let Q=te[W];if(I[Q]===void 0)V.push(T.errors.requiredPropertyError({key:Q,pointer:U}));else{let oe=T.step(Q,A,I,U),ae=T.validate(I[Q],oe,`${U}/${Q}`);V.push(...ae)}}return V},required:(T,A,I,U)=>{if(Array.isArray(A.required)!==!1)return A.required.map(V=>{if(!Ji(I,V))return T.errors.requiredPropertyError({key:V,pointer:U})})},requiredNotEmpty:(T,A,I,U)=>{if(Array.isArray(A.required)!==!1)return A.required.map(V=>{if(I[V]==null||I[V]==="")return T.errors.valueNotEmptyError({property:V,pointer:`${U}/${V}`})})},uniqueItems:(T,A,I,U)=>{if((Array.isArray(I)&&A.uniqueItems)===!1)return;let V=[];return I.forEach((te,W)=>{for(let Q=W+1;Q<I.length;Q+=1)Ci(te,I[Q])&&V.push(T.errors.uniqueItemsError({pointer:U,itemPointer:`${U}/${W}`,duplicatePointer:`${U}/${Q}`,value:JSON.stringify(te)}))}),V}},gs=vo,Bs=Object.assign(Object.assign({},gs),{contains:(T,A,I,U)=>{if(A.contains===!1)return T.errors.containsArrayError({pointer:U,value:I});if(A.contains===!0)return Array.isArray(I)&&I.length===0?T.errors.containsAnyError({pointer:U}):void 0;if(o(A.contains)==="object"){for(let V=0;V<I.length;V+=1)if(T.isValid(I[V],A.contains))return;return T.errors.containsError({pointer:U,schema:JSON.stringify(A.contains)})}},exclusiveMaximum:(T,A,I,U)=>{if(!isNaN(A.exclusiveMaximum))return A.exclusiveMaximum<=I?T.errors.maximumError({maximum:A.exclusiveMaximum,length:I,pointer:U}):void 0},exclusiveMinimum:(T,A,I,U)=>{if(!isNaN(A.exclusiveMinimum))return A.exclusiveMinimum>=I?T.errors.minimumError({minimum:A.exclusiveMinimum,length:I,pointer:U}):void 0},if:(T,A,I,U)=>{if(A.if==null)return;let V=T.validate(I,A.if,U);return V.length===0&&A.then?T.validate(I,A.then,U):V.length!==0&&A.else?T.validate(I,A.else,U):void 0},maximum:(T,A,I,U)=>{if(!isNaN(A.maximum))return A.maximum&&A.maximum<I?T.errors.maximumError({maximum:A.maximum,length:I,pointer:U}):void 0},minimum:(T,A,I,U)=>{if(!isNaN(A.minimum))return A.minimum>I?T.errors.minimumError({minimum:A.minimum,length:I,pointer:U}):void 0},patternProperties:(T,A,I,U)=>{let V=A.properties||{},te=A.patternProperties;if(o(te)!=="object")return;let W=[],Q=Object.keys(I),oe=Object.keys(te).map(ae=>({regex:new RegExp(ae),patternSchema:te[ae]}));return Q.forEach(ae=>{let Ce=!1;for(let Ae=0,ze=oe.length;Ae<ze;Ae+=1)if(oe[Ae].regex.test(ae)){if(Ce=!0,oe[Ae].patternSchema===!1)return void W.push(T.errors.patternPropertiesError({key:ae,pointer:U,patterns:Object.keys(te).join(",")}));let st=T.validate(I[ae],oe[Ae].patternSchema,`${U}/${ae}`);st&&st.length>0&&W.push(...st)}V[ae]||Ce===!1&&A.additionalProperties===!1&&W.push(T.errors.patternPropertiesError({key:ae,pointer:U,patterns:Object.keys(te).join(",")}))}),W},propertyNames:(T,A,I,U)=>{if(A.propertyNames===!1)return Object.keys(I).length===0?void 0:T.errors.invalidPropertyNameError({property:Object.keys(I),pointer:U,value:I});if(A.propertyNames===!0||o(A.propertyNames)!=="object")return;let V=[],te=Object.keys(I),W=Object.assign(Object.assign({},A.propertyNames),{type:"string"});return te.forEach(Q=>{let oe=T.validate(Q,W,`${U}/${Q}`);oe.length>0&&V.push(T.errors.invalidPropertyNameError({property:Q,pointer:U,validationError:oe[0],value:I[Q]}))}),V}}),Js=Bs;function qi(T,A,I=T.rootSchema,U="#"){let V=!1,te=m(I);for(let W=0;W<I.anyOf.length;W+=1){let Q=T.resolveRef(I.anyOf[W]);T.isValid(A,I.anyOf[W],U)&&(V=!0,te=h(te,Q))}return V===!1?tt.anyOfError({value:A,pointer:U,anyOf:JSON.stringify(I.anyOf)}):(delete te.anyOf,te)}function xr(T){let A={type:o(T)};return A.type==="object"&&(A.properties={},Object.keys(T).forEach(I=>A.properties[I]=xr(T[I]))),A.type==="array"&&T.length===1?A.items=xr(T[0]):A.type==="array"&&(A.items=T.map(xr)),A}function pi(T,A,I=T.rootSchema){let U=T.step(A,I,{},"#");return a(U)?U.code==="one-of-error"?U.data.oneOf.map(V=>T.resolveRef(V)):U:[U]}let mi={array:(T,A,I,U,V)=>{let te=o(I.items);if(te==="object")return Array.isArray(I.items.oneOf)?T.resolveOneOf(U[A],I.items,V):Array.isArray(I.items.anyOf)?T.resolveAnyOf(U[A],I.items,V):Array.isArray(I.items.allOf)?T.resolveAllOf(U[A],I.items,V):T.resolveRef(I.items);if(te==="array"){if(I.items[A]===!0)return xr(U[A]);if(I.items[A]===!1)return tt.invalidDataError({key:A,value:U[A],pointer:V});if(I.items[A])return T.resolveRef(I.items[A]);if(I.additionalItems===!1)return tt.additionalItemsError({key:A,value:U[A],pointer:V});if(I.additionalItems===!0||I.additionalItems===void 0)return xr(U[A]);if(o(I.additionalItems)==="object")return I.additionalItems;throw new Error(`Invalid schema ${JSON.stringify(I,null,4)} for ${JSON.stringify(U,null,4)}`)}return I.additionalItems!==!1&&U[A]?xr(U[A]):new Error(`Invalid array schema for ${A} at ${V}`)},object:(T,A,I,U,V)=>{if(Array.isArray(I.oneOf)){let Q=T.resolveOneOf(U,I,V);if(a(I=h(I,Q)))return I}if(Array.isArray(I.anyOf)&&a(I=T.resolveAnyOf(U,I,V))||Array.isArray(I.allOf)&&a(I=T.resolveAllOf(U,I,V)))return I;let te;if(I.properties&&I.properties[A]!==void 0){if(te=T.resolveRef(I.properties[A]),a(te))return te;if(te&&Array.isArray(te.oneOf)){let Q=T.resolveOneOf(U[A],te,`${V}/${A}`),oe=te.oneOf.findIndex(ae=>ae===Q);return Q.variableSchema=!0,Q.oneOfIndex=oe,Q.oneOfSchema=te,Q}if(te)return te}let{dependencies:W}=I;if(o(W)==="object"){let Q=Object.keys(W).filter(oe=>o(W[oe])==="object");for(let oe=0,ae=Q.length;oe<ae;oe+=1){let Ce=Q[oe],Ae=Nr(T,A,W[Ce],U,`${V}/${Ce}`);if(!a(Ae))return Ae}}if(I.if&&(I.then||I.else)){let Q=T.isValid(U,I.if);if(Q&&I.then){let oe=Nr(T,A,I.then,U,V);if(typeof oe.type=="string"&&oe.type!=="error")return oe}if(!Q&&I.else){let oe=Nr(T,A,I.else,U,V);if(typeof oe.type=="string"&&oe.type!=="error")return oe}}if(o(I.patternProperties)==="object"){let Q,oe=Object.keys(I.patternProperties);for(let ae=0,Ce=oe.length;ae<Ce;ae+=1)if(Q=new RegExp(oe[ae]),Q.test(A))return I.patternProperties[oe[ae]]}return o(I.additionalProperties)==="object"?I.additionalProperties:I.additionalProperties===!0?xr(U[A]):tt.unknownPropertyError({property:A,value:U,pointer:`${V}`})}};function Nr(T,A,I,U,V="#"){if(Array.isArray(I.type)){let Q=o(U);return I.type.includes(Q)?mi[Q](T,`${A}`,I,U,V):T.errors.typeError({value:U,pointer:V,expected:I.type,received:Q})}let te=I.type||o(U),W=mi[te];return W?W(T,`${A}`,I,U,V):new Error(`Unsupported schema type ${I.type} for key ${A}`)}let Wi={array:(T,A,I,U)=>T.typeKeywords.array.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),object:(T,A,I,U)=>T.typeKeywords.object.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),string:(T,A,I,U)=>T.typeKeywords.string.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),integer:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),number:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),boolean:(T,A,I,U)=>T.typeKeywords.boolean.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),null:(T,A,I,U)=>T.typeKeywords.null.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U))};var An=__webpack_require__(63),ys=__webpack_require__.n(An);function Ti(T,A,I=T.rootSchema,U="#"){if(o(I=T.resolveRef(I))==="boolean")return I?[]:[T.errors.invalidDataError({value:A,pointer:U})];if(a(I))return[I];if(I.const!==void 0)return ys()(I.const,A)?[]:[T.errors.constError({value:A,expected:I.const,pointer:U})];let V=function(W,Q){let oe=o(W);return oe==="number"&&(Q==="integer"||Array.isArray(Q)&&Q.includes("integer"))?Number.isInteger(W)||isNaN(W)?"integer":"number":oe}(A,I.type),te=I.type||V;return V===te||Array.isArray(te)&&te.includes(V)?T.validateType[V]==null?[T.errors.invalidTypeError({receivedType:V,pointer:U})]:d(T.validateType[V](T,I,A,U)).filter(c):[T.errors.typeError({received:V,expected:te,value:A,pointer:U})]}let fi={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","exclusiveMaximum","exclusiveMinimum","format","if","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:Js,validateType:Wi,validateFormat:Bi,errors:tt,addRemoteSchema:ie,compileSchema:mr,createSchemaOf:xr,each:Jt,eachSchema:H,getChildSchemaSelection:pi,getSchema:k,getTemplate:Kn,isValid:xi,resolveAllOf:j,resolveAnyOf:qi,resolveOneOf:f,resolveRef:C,step:Nr,validate:Ti};class oa extends Y{constructor(A,I={}){super(h(fi,I),A)}}let Ss=Object.assign(Object.assign({},fi),{resolveOneOf:N,resolveRef:q});class Ws extends Y{constructor(A,I={}){super(h(Ss,I),A)}}class Ln{constructor(A,I){this.core=new Ws(A),this.schema=A,this.data=I,this.cache={}}updateData(A){this.data=A,this.cache={}}updateSchema(A){this.schema=A,this.core.setSchema(A),this.cache={}}get(A,I){if(I){let Q=k(this.core,A,I,this.schema);return m(Q)}if(A==="#")return this.schema;if(this.cache[A])return this.cache[A];let U=R().join(A,".."),V=this.cache[U];V==null&&(V=k(this.core,U,this.data,this.schema),V.variableSchema!==!0&&(this.cache[U]=m(V)));let te=R().split(A).pop(),W=k(this.core,te,R().get(this.data,U),this.cache[U]);return W=m(W),W.variableSchema!==!0&&(this.cache[A]=W),W}}function _i(T,A,I){let{schema:U,pointer:V,onError:te}=Object.assign({schema:T.rootSchema,pointer:"#"},I),W=T.validate(A,U,V);if(te){W=d(W);let Q=function(oe){return function ae(Ce){return Array.isArray(Ce)?((Ce=d(Ce)).forEach(ae),Ce):(a(Ce)&&oe(Ce),Ce)}}(te);for(let oe=0;oe<W.length;oe+=1)W[oe]instanceof Promise?W[oe].then(Q):a(W[oe])&&te(W[oe])}return Promise.all(W).then(d).then(Q=>Q.filter(l)).catch(Q=>{throw console.log("Failed resolving promises",Q.message),console.log(Q.stack),Q})}let ws="__compiled",Ki="__ref",Ks=/(#|\/)+$/g,Oi={typeKeywords:{array:["allOf","anyOf","enum","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["enum","not","allOf","anyOf","oneOf"],object:["additionalProperties","dependencies","enum","format","minProperties","maxProperties","patternProperties","properties","required","not","oneOf","allOf","anyOf"],string:["allOf","anyOf","enum","format","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","format","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:gs,validateType:{array:(T,A,I,U)=>T.typeKeywords.array.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),object:(T,A,I,U)=>T.typeKeywords.object.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),string:(T,A,I,U)=>T.typeKeywords.string.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),integer:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),number:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),boolean:(T,A,I,U)=>T.typeKeywords.boolean.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),null:(T,A,I,U)=>T.typeKeywords.null.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U))},validateFormat:Bi,errors:tt,addRemoteSchema:ie,compileSchema:function(T,A,I=A,U=!1){if(!A||A[ws]!==void 0)return A;let V={ids:{},remotes:T.remotes},te=JSON.stringify(A),W=JSON.parse(te);if(Object.defineProperty(W,ws,{enumerable:!1,value:!0}),Object.defineProperty(W,"getRef",{enumerable:!1,value:Je.bind(null,V,W)}),U===!1&&te.includes("$ref")===!1)return W;A!==I&&Object.defineProperty(W,"definitions",{enumerable:!1,value:Object.assign({},I.definitions,I.$defs,A.definitions,A.$defs)});let Q={},oe=()=>W;return H(W,(ae,Ce)=>{var Ae;if(ae.id){if(ae.id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(Ce)){let ot=Ce.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),ct=(0,b.get)(W,ot);ae.id=(Ae=ct.id)!==null&&Ae!==void 0?Ae:ae.id}V.ids[ae.id.replace(Ks,"")]=Ce}let ze=(Ce=`#${Ce}`.replace(/##+/,"#")).replace(/\/[^/]+$/,""),st=Ce.replace(/\/[^/]+\/[^/]+$/,""),Ge=Ie(Q[ze]||Q[st],ae.id);Q[Ce]=Ge,V.ids[Ge]==null&&(V.ids[Ge]=Ce),ae.$ref&&!ae[Ki]&&(Object.defineProperty(ae,Ki,{enumerable:!1,value:Ie(Ge,ae.$ref)}),Object.defineProperty(ae,"getRoot",{enumerable:!1,value:oe}))}),W},createSchemaOf:xr,each:Jt,eachSchema:H,getChildSchemaSelection:pi,getSchema:k,getTemplate:Kn,isValid:xi,resolveAllOf:j,resolveAnyOf:qi,resolveOneOf:f,resolveRef:C,step:Nr,validate:Ti};class hi extends Y{constructor(A,I={}){super(h(Oi,I),A)}}let Ys={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["enum","exclusiveMaximum","exclusiveMinimum","format","maximum","minimum","multipleOf","not","oneOf","allOf","anyOf","if"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:Js,validateType:Wi,validateFormat:Bi,errors:tt,addRemoteSchema:ie,compileSchema:mr,createSchemaOf:xr,each:Jt,eachSchema:H,getChildSchemaSelection:pi,getSchema:k,getTemplate:Kn,isValid:xi,resolveAllOf:j,resolveAnyOf:qi,resolveOneOf:f,resolveRef:C,step:Nr,validate:Ti};class go extends Y{constructor(A,I={}){super(h(Ys,I),A)}}let Qs={strings:e}})(),__webpack_exports__})())});var g$=P(Xx=>{"use strict";Object.defineProperty(Xx,"__esModule",{value:!0});Xx.isMatrixAssetUri=void 0;function mQe(e){return typeof e!="string"?!1:/^matrix-asset:\/\/[a-zA-Z0-9.-]+\/[a-zA-Z0-9\/._-]+\/?([0-9]+(?:\:[0-9a-z\-\._/]+\$?)?)?$/.test(e)}Xx.isMatrixAssetUri=mQe});var boe=P(Zx=>{"use strict";Object.defineProperty(Zx,"__esModule",{value:!0});Zx.customFormatValidators=void 0;var fQe=Qx(),_Qe=g$();Zx.customFormatValidators={"matrix-asset-uri":(e,t,r)=>{if((0,_Qe.isMatrixAssetUri)(r)===!1)throw new fQe.SchemaValidationError(`value "${r}" isn't a valid matrix asset uri`)}}});var S$=P(eC=>{"use strict";Object.defineProperty(eC,"__esModule",{value:!0});eC.JsonResolutionError=void 0;var y$=class extends Error{constructor(t,r,n){super(`Error resolving JSON at ${r}: ${t.message}`),this.pointer=r,this.value=n}};eC.JsonResolutionError=y$});var Ioe=P(zr=>{"use strict";var Sd=zr&&zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zr,"__esModule",{value:!0});zr.JsonValidationService=zr.JSONSchemaService=zr.ManifestV1MetaSchema=zr.RenderInputMetaSchema=zr.ComponentInputMetaSchema=zr.RenderInputSchema=zr.ComponentInputSchema=void 0;var hQe=Sd(d$()),R$=Sd(m$()),Aoe=Sd(p$()),tC=Sd(f$()),Poe=Sd(_$()),qg=Sd(Eoe()),xoe=Sd(l$()),Coe=Sd(c$()),w$=Qx(),Tg=v$(),Nm=v$(),vQe=boe(),gQe=S$(),Nu={...Nm.draft07Config,validateFormat:{...Nm.draft07Config.validateFormat,...vQe.customFormatValidators},errors:{...Nm.draft07Config.errors,enumError(e){let t="[]";return e.values&&Array.isArray(e.values)&&(e.values.length<5?t=`[${e.values.join(", ")}]`:t=`[${e.values.slice(0,5).join(", ")}, ... ${e.values.length-5} more]`),{type:"error",name:"EnumError",code:"enum-error",message:`Expected given value \`${e.value}\` in ${e.pointer}\` to be one of \`${t}\``,data:e}},anyOfError(e){let t=`Value \`${e.value}\` at`;return typeof e.value=="object"&&(t="Object at"),Array.isArray(e.value)&&(t="Array at"),{type:"error",name:"AnyOfError",code:"any-of-error",message:`${t} \`${e.pointer}\` does not match any schema`,data:e}}}},Roe=new Tg.Draft07(xoe.default,Nu);zr.ComponentInputSchema=new Tg.Draft({...Nu,resolveRef(e,t){let r=Nm.draft07Config.resolveRef(e,t);return r&&(r.type==="FormattedText"?Roe.rootSchema:Array.isArray(r.type)&&r.type.includes("FormattedText")?{...e,...Roe.rootSchema,type:r.type.filter(n=>n!=="FormattedText").concat(xoe.default.type)}:r)}},R$.default);zr.ComponentInputSchema.addRemoteSchema("DxComponentInputSchema.json/DxContentMetaSchema.json",tC.default);zr.RenderInputSchema=new Tg.Draft({...Nu,resolveRef(e,t){let r=Nm.draft07Config.resolveRef(e,t);return r&&(r.type==="FormattedText"?{type:"string"}:Array.isArray(r.type)&&r.type.includes("FormattedText")?{...e,type:r.type.filter(n=>n!=="FormattedText").concat("string")}:r)}});var ku=new Tg.Draft07(Coe.default,Nu);ku.addRemoteSchema("DxComponentInputSchema.json/DxContentMetaSchema.json",tC.default);ku.addRemoteSchema("/DxComponentInputSchema.json",zr.ComponentInputSchema.getSchema());ku.addRemoteSchema("/DxComponentIcons.json",Aoe.default);ku.addRemoteSchema("/MatrixAssetSchema.json",Poe.default);ku.addRemoteSchema("http://json-schema.org/draft-07/schema",qg.default);ku.addRemoteSchema("http://json-schema.org/draft-07/schema#",qg.default);zr.ComponentInputMetaSchema={root:R$.default,remotes:{"DxComponentInputSchema.json/DxContentMetaSchema.json":tC.default}};zr.RenderInputMetaSchema={root:qg.default};zr.ManifestV1MetaSchema={root:Coe.default,remotes:{"DxComponentInputSchema.json/DxContentMetaSchema.json":tC.default,"/DxComponentInputSchema.json":R$.default,"/DxComponentIcons.json":Aoe.default,"/MatrixAssetSchema.json":Poe.default,"http://json-schema.org/draft-07/schema":qg.default,"http://json-schema.org/draft-07/schema#":qg.default}};var E$=class{constructor(t,r){this.typeResolver=t,this.schema=new Tg.Draft({...Nu,resolveRef:(n,i)=>this.doResolveRef(n,i),validate:(n,i,s,o)=>Nu.validate(n,i,s,o),resolveOneOf:(n,i,s,o)=>Nu.resolveOneOf(n,i,s,o)},r.root);for(let[n,i]of Object.entries(r.remotes||{}))this.schema.addRemoteSchema(n,i);for(let n of this.typeResolver.validationSchemaDefinitions)this.schema.addRemoteSchema(`/${n.title}.json`,n),this.schema.addRemoteSchema(`#/${n.title}.json`,n)}doResolveRef(t,r){let n=Nm.draft07Config.resolveRef(t,r);if(!n||!this.typeResolver.isPrimitiveType(n.type))return n;let s={oneOf:this.typeResolver.getValidationSchemaForPrimitive(n.type).map(o=>({$ref:`${o.title}.json`}))};return this.schema.compileSchema(s)}validateInput(t,r=this.schema.rootSchema){r=this.schema.compileSchema(r);let n=this.schema.validate(t,r);return this.processValidationResult(n)}processValidationResult(t){if(t.length>0)throw new w$.SchemaValidationError(t.map(r=>r.message).join(`,
|
|
131
|
+
`,$=new z.Z.Parser(D),ee=T=>$.getAST(T),_e=(T,A)=>`${T}/${A}`,re=Object.prototype.toString,me=/Object|Array/,Se=T=>me.test(re.call(T));function Ee(T){return new RegExp(T.text.replace(/(^{|}$)/g,""))}function ce(T){return Array.isArray(T)?T.map(function(A,I){return`${I}`}):Object.prototype.toString.call(T)==="[object Object]"?Object.keys(T):[]}let ue={mem:[],get(T,A){let I=T[0][A];if(!ue.mem.includes(I))return Se(I)&&ue.mem.push(I),[I,A,T[0],_e(T[3],A)]},reset(){ue.mem.length=0}},B={any(T,A){let I=A[0];return ce(I).map(U=>[I[U],U,I,_e(A[3],U)])},all(T,A){let I=[A];var U,V;return U=A[0],V=(te,W)=>{let Q=ue.get(A,W);Q&&I.push(...B.all(T,Q))},Array.isArray(U)?U.forEach(V):Object.prototype.toString.call(U)==="[object Object]"&&Object.keys(U).forEach(function(te){V(U[te],te,U)}),I},regex(T,A){let I=Ee(T),U=A[0];return ce(U).filter(V=>I.test(V)).map(V=>[U[V],V,U,_e(A[3],V)])}},K={escaped:(T,A)=>K.property(T,A),property:(T,A)=>{let I=T.text;if(A[0]&&A[0][I]!==void 0)return[A[0][I],I,A[0],_e(A[3],I)]},typecheck:(T,A)=>{let I=T.text.replace(/^\?:/,"");if(I==="value")return Se(A[0])?void 0:A;var U;return U=A[0],re.call(U).match(/\s([^\]]+)\]/).pop().toLowerCase()===I?A:void 0},lookahead:(T,A)=>{let I=!0,U=!1;return T.children.forEach(V=>{if(V.type==="expression"){let te=K.expression(V,A)!==void 0;I=U===!0?I||te:I&&te}else U=V.type==="orExpr"}),I?A:void 0},expression:(T,A)=>{let I=T.children[0].text,U=T.children[1],V=T.children[2],te=A[0];if(Se(te)!==!1)return function(W,Q,oe){if(Q===void 0)return W!==void 0;let ae,Ce=`${W}`;return oe.type==="regex"?ae=Ee(oe).test(Ce):ae=Ce===oe.text,Q.type==="isnot"&&(ae=ae===!1&&W!==void 0),ae}(te[I],U,V)?A:void 0}};function pe(T,A,I){let U=[],V=T;return A.children.forEach(te=>{if(te.type==="orPattern")return U.push(...V),void(V=T);V=se(V,te,I)}),U.push(...V),U}function ge(T,A,I){let U=[],V=A.children.find(oe=>oe.type==="quantifier"),te=function(oe){if(oe==null)return 1;if(oe==="*"||oe==="+")return 1/0;let ae=parseInt(oe);return isNaN(ae)?1:ae}(V&&V.text),W=T;V&&V.text==="*"&&U.push(...W);let Q=0;for(;W.length>0&&Q<te;)W=pe(W,A,I),U.push(...W),Q+=1;return U}function se(T,A,I){let U;return U=A.type==="query"?function(V,te,W){let Q=V;return te.children.forEach(oe=>{if(B[oe.type])Q=function(ae,Ce,Ae,ze){let st=[];for(let Ge=0,ot=Ce.length;Ge<ot;Ge+=1)st.push(...ae(Ae,Ce[Ge],Ae,ze));return st}(B[oe.type],Q,oe,W);else{if(!K[oe.type])throw new Error(`Unknown filter ${oe.type}`);Q=function(ae,Ce,Ae,ze){let st=[];for(let Ge=0,ot=Ce.length;Ge<ot;Ge+=1){let ct=ae(Ae,Ce[Ge],ze);ct&&st.push(ct)}return st}(K[oe.type],Q,oe,W)}}),Q}(T,A,I):A.type==="pattern"?ge(T,A,I):function(V,te,W){let Q=V;return te.children.forEach(oe=>Q=se(Q,oe,W)),Q}(T,A,I),ue.reset(),ue.mem.push(T),U}let ne={value:T=>T.map(A=>A[0]),pointer:T=>T.map(A=>A[3]),all:T=>T,map:T=>{let A={};return T.forEach(I=>A[I[3]]=I[0]),A}};var be;function Te(T,A,I=be.VALUE){if(A==null)return[];(A=A.replace(/(\/$)/g,""))===""&&(A="#");let U=ee(A);if(U==null)throw new Error(`empty ast for '${A}'`);if(U.rest!=="")throw new Error(`Failed parsing queryString from: '${U.rest}'`);let V=function(te,W){return ue.reset(),ue.mem.push(te),se([[te,null,null,"#"]],W)}(T,U);return typeof I=="function"?V.map(te=>I(...te)):ne[I]?ne[I](V):V}(function(T){T.POINTER="pointer",T.VALUE="value",T.ALL="all",T.MAP="map"})(be||(be={})),Te.POINTER=be.POINTER,Te.VALUE=be.VALUE,Te.ALL=be.ALL,Te.MAP=be.MAP;let We=["root","recursion"];function Ke(T,A=[]){return We.includes(T.type)?(T.children.forEach(I=>Ke(I,A)),A):(A.push(T.text),A)}function Ze(T){return T==null||T===""?[]:Ke(ee(T))}let dt=T=>JSON.parse(JSON.stringify(T)),Nt=Object.prototype.toString,Et=T=>Nt.call(T).match(/\s([^\]]+)\]/).pop().toLowerCase(),kt=new RegExp(`^("[^"]+"|${L})$`),Vt=["string","number","boolean","null"],Dt=/^\[\d*\]$/,It=/^\[(\d+)\]$/,Mt=/^".+"$/,er=/(^\[\d*\]$|^\d+$)/;function gr(T){return parseInt(T.replace(/^(\[|\]$)/,""))}function Bt(T){return Mt.test(T)?T.replace(/(^"|"$)/g,""):T}function fe(T,A,I,U){let V=T[0];if(/^\[\]$/.test(A)){V.push(I);let te=V.length-1;return[V[te],te,V,`${T[3]}/${te}}`]}if(U==null&&Et(V[A])==="object"&&Et(I)==="object")return[V[A],A,V,`${T[3]}/${A}}`];if(U===Ct.INSERT_ITEMS||U==null&&It.test(A)){let te=gr(A);return function(W,Q,oe){W.length<=Q?W[Q]=oe:W.splice(Q,0,oe)}(V,te,I),[V[te],te,V,`${T[3]}/${te}}`]}if(U===Ct.REPLACE_ITEMS||U==null){let te=gr(A);return V[te]=I,[V[te],te,V,`${T[3]}/${te}}`]}throw new Error(`Unknown array index '${A}' with force-option '${U}'`)}var pr;function Ct(T,A,I,U){if(A==null)return dt(T);if((A=A.replace(/(\/$)/g,""))==="")return dt(I);let V=dt(T),te=[[V,null,null,"#"]],W=Ze(A),Q=W.pop(),oe=Dt.test(Q)&&It.test(Q)===!1;if(kt.test(Q)===!1||oe)throw new Error(`Unsupported query '${A}' ending with non-property`);return W.forEach((ae,Ce)=>{if(ae==="__proto__"||ae==="prototyped"||ae==="constructor")return;if(kt.test(ae)===!1)return void(te=function(st,Ge){let ot=[];return st.forEach(ct=>ot.push(...Te(ct[0],Ge,be.ALL))),ot}(te,ae));let Ae=Ce>=W.length-1?Q:W[Ce+1],ze=er.test(Ae);te=function(st,Ge,ot,ct){return Ge=Bt(Ge),st.filter(ut=>!(!Array.isArray(ut[0])||!er.test(Ge))||Vt.includes(Et(ut[0][Ge]))===!1).map(ut=>{let E=ot?[]:{},M=ut[0];return Array.isArray(M)?fe(ut,Ge,E,ct):(M[Ge]=M[Ge]||E,[M[Ge],Ge,M,`${ut[3]}/${Ge}`])})}(te,ae,ze,U)}),te.forEach(ae=>{let Ce=I;Et(I)==="function"&&(Ce=I(ae[3],Q,ae[0],`${ae[3]}/${Q}`));let Ae=ae[0];if(Array.isArray(Ae))fe(ae,Q,Ce,U);else{let ze=Bt(Q);if(ze==="__proto__"||ze==="prototyped"||ze==="constructor")return;Ae[ze]=Ce}}),V}(function(T){T.REPLACE_ITEMS="replace",T.INSERT_ITEMS="insert"})(pr||(pr={})),Ct.REPLACE_ITEMS=pr.REPLACE_ITEMS,Ct.INSERT_ITEMS=pr.INSERT_ITEMS;let Yt={$ref:{type:!1},allOf:{type:!1,definitions:["allOf/*"]},anyOf:{type:!1,definitions:["anyOf/*"]},array:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","items","items/*","additionalItems"],validationKeywords:["minItems","maxItems","uniqueItems"],keywords:["items","additionalItems","minItems","maxItems","uniqueItems"]},boolean:{type:!0},enum:{type:!1},integer:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},not:{type:!1,definitions:["not"]},number:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},null:{type:!0},object:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","properties/*","additionalProperties","patternProperties/*","dependencies/*"],validationKeywords:["minProperties","maxProperties","required"],keywords:["properties","additionalProperties","patternProperties","dependencies","minProperties","maxProperties","required"]},oneOf:{type:!1,definitions:["oneOf/*"]},string:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minLength","maxLength","pattern"]}},Dr=Object.keys(Yt).filter(T=>Yt[T].type===!1),Lt=Object.prototype.hasOwnProperty;function et(T){if(A=T,Object.prototype.toString.call(A)!=="[object Object]")return;var A;if(T.enum)return"enum";if(Yt[T.type]||Array.isArray(T.type))return T.type;let I=Dr.filter(U=>T[U]);if(I.length===1)return I[0];if(I.length!==0)throw new Error(`Mutiple typeIds [${I.join(", ")}] matched in ${JSON.stringify(T)}`);for(let U=0,V=Yt.object.keywords.length;U<V;U+=1){let te=Yt.object.keywords[U];if(Lt.call(T,te))return"object"}for(let U=0,V=Yt.array.keywords.length;U<V;U+=1){let te=Yt.array.keywords[U];if(Lt.call(T,te))return"array"}}function Ft(T){let A=[],I=et(T);if(I==null)return A;let U;if(Array.isArray(I)){U={};for(let V=0,te=I.length;V<te;V+=1)Object.assign(U,Yt[I[V]])}else U=Yt[I];return U.definitions==null||U.definitions.forEach(V=>{Te(T,V,(te,W,Q,oe)=>{(ae=>Object.prototype.toString.call(ae)==="[object Object]")(te)&&et(te)&&A.push({pointer:R().join(R().split(oe),!1),def:te})})}),A}function at(T,A){this.callback(T,A)!==!0&&Ft(T).forEach(I=>this.nextTypeDefs(I.def,R().join(A,I.pointer,!1)))}function rt(T,A,I,U="definitions"){let V=A[U];Object.keys(V).forEach(te=>{if(V[te]!==!1&&(W=V[te],Object.prototype.toString.call(W)!=="[object Object]"))var W;else T.nextTypeDefs(V[te],R().join(I,U,te,!1))})}function H(T,A,I="#"){let U={callback:A,nextTypeDefs:at};U.nextTypeDefs(T,I),T.definitions!=null&&(U.callback=(V,te)=>{A(V,te),V.definitions!=null&&rt(U,V,te)},rt(U,T,I)),T.$defs!=null&&(U.callback=(V,te)=>{A(V,te),V.definitions!=null&&rt(U,V,te)},rt(U,T,I,"$defs"))}let de=/(#|\/)+$/,Z=/#$/,we=/^[^:]+:\/\/[^/]+\//,qe=/\/[^/]*$/,ye=/#.*$/;function Ie(T,A){return T==null&&A==null?"#":A==null?T.replace(Z,""):T==null?A.replace(Z,""):A[0]==="#"?`${T.replace(ye,"")}${A.replace(de,"")}`:we.test(A)?A.replace(Z,""):`${T.replace(qe,"")}/${A.replace(Z,"")}`}let Me=/(#|\/)+$/g,Re=["",null,"#"],Oe=/(#|\/)+$/g;function Je(T,A,I){if(o(I)==="object"&&(I=I.__ref||I.$ref),I==null)return A;let U,V=I.replace(Oe,"");if(T.remotes[V])return U=T.remotes[V],U&&U.$ref?Je(T,A,U.$ref):U;if(T.ids[I])return U=(0,b.get)(A,T.ids[I]),U&&U.$ref?Je(T,A,U.$ref):U;let te=function(W){if(Re.includes(W))return[];if((W=W.replace(Me,"")).indexOf("#")===-1)return[W.replace(Me,"")];if(W.indexOf("#")===0)return[W.replace(Me,"")];let Q=W.split("#");return Q[0]=Q[0].replace(Me,""),Q[1]=`#${Q[1].replace(Me,"")}`,Q}(I);if(te.length===0)return A;if(te.length===1){if(I=te[0],T.remotes[I])return U=T.remotes[I],Je(T,A,U.$ref);if(T.ids[I])return U=(0,b.get)(A,T.ids[I]),U&&U.$ref?Je(T,A,U.$ref):U}if(te.length===2){let W=te[0];if(I=te[1],T.remotes[W])return T.remotes[W].getRef?T.remotes[W].getRef(I):Je(T,T.remotes[W],I);if(T.ids[W])return Je(T,(0,b.get)(A,T.ids[W]),I)}return U=(0,b.get)(A,T.ids[I]||I),U&&U.$ref?Je(T,A,U.$ref):U}let lt="__compiled",zt="__ref",nr=/(#|\/)+$/g;function mr(T,A,I=A,U=!1){if(A===!0||A===!1||A===void 0||A[lt]!==void 0)return A;let V={ids:{},remotes:T.remotes},te=JSON.stringify(A),W=JSON.parse(te);if(Object.defineProperty(W,lt,{enumerable:!1,value:!0}),Object.defineProperty(W,"getRef",{enumerable:!1,value:Je.bind(null,V,W)}),U===!1&&te.includes("$ref")===!1)return W;W!==I&&Object.defineProperty(W,"$defs",{enumerable:!0,value:Object.assign({},I.definitions,I.$defs,W.definitions,W.$defs)});let Q={},oe=()=>W;return H(W,(ae,Ce)=>{var Ae;if(ae.$id){if(ae.$id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(Ce)){let ot=Ce.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),ct=(0,b.get)(W,ot);ae.$id=(Ae=ct.$id)!==null&&Ae!==void 0?Ae:ae.$id}V.ids[ae.$id.replace(nr,"")]=Ce}let ze=(Ce=`#${Ce}`.replace(/##+/,"#")).replace(/\/[^/]+$/,""),st=Ce.replace(/\/[^/]+\/[^/]+$/,""),Ge=Ie(Q[ze]||Q[st],ae.$id);Q[Ce]=Ge,V.ids[Ge]==null&&(V.ids[Ge]=Ce),ae.$ref&&!ae[zt]&&(Object.defineProperty(ae,zt,{enumerable:!1,value:Ie(Ge,ae.$ref)}),Object.defineProperty(ae,"getRoot",{enumerable:!1,value:oe}))}),W}function Jt(T,A,I,U=T.rootSchema,V="#"){U=T.resolveRef(U),I(U,A,V);let te=o(A);te==="object"?Object.keys(A).forEach(W=>{let Q=T.step(W,U,A,V),oe=A[W];T.each(oe,I,Q,`${V}/${W}`)}):te==="array"&&A.forEach((W,Q)=>{let oe=T.step(Q,U,A,V);T.each(W,I,oe,`${V}/${Q}`)})}let tt={additionalItemsError:i("AdditionalItemsError"),additionalPropertiesError:i("AdditionalPropertiesError"),anyOfError:i("AnyOfError"),allOfError:i("AllOfError"),constError:i("ConstError"),containsError:i("ContainsError"),containsArrayError:i("ContainsArrayError"),containsAnyError:i("ContainsAnyError"),enumError:i("EnumError"),formatURLError:i("FormatURLError"),formatURIError:i("FormatURIError"),formatURIReferenceError:i("FormatURIReferenceError"),formatURITemplateError:i("FormatURITemplateError"),formatDateError:i("FormatDateaError"),formatDateTimeError:i("FormatDateTimeError"),formatEmailError:i("FormatEmailError"),formatHostnameError:i("FormatHostnameError"),formatIPV4Error:i("FormatIPV4Error"),formatIPV4LeadingZeroError:i("FormatIPV4LeadingZeroError"),formatIPV6Error:i("FormatIPV6Error"),formatIPV6LeadingZeroError:i("FormatIPV6LeadingZeroError"),formatJSONPointerError:i("FormatJSONPointerError"),formatRegExError:i("FormatRegExError"),formatTimeError:i("FormatTimeError"),invalidSchemaError:i("InvalidSchemaError"),invalidDataError:i("InvalidDataError"),invalidTypeError:i("InvalidTypeError"),invalidPropertyNameError:i("InvalidPropertyNameError"),maximumError:i("MaximumError"),maxItemsError:i("MaxItemsError"),maxLengthError:i("MaxLengthError"),maxPropertiesError:i("MaxPropertiesError"),minimumError:i("MinimumError"),minItemsError:i("MinItemsError"),minItemsOneError:i("MinItemsOneError"),minLengthError:i("MinLengthError"),minLengthOneError:i("MinLengthOneError"),minPropertiesError:i("MinPropertiesError"),missingDependencyError:i("MissingDependencyError"),missingOneOfPropertyError:i("MissingOneOfPropertyError"),multipleOfError:i("MultipleOfError"),multipleOneOfError:i("MultipleOneOfError"),noAdditionalPropertiesError:i("NoAdditionalPropertiesError"),notError:i("NotError"),oneOfError:i("OneOfError"),oneOfPropertyError:i("OneOfPropertyError"),patternError:i("PatternError"),patternPropertiesError:i("PatternPropertiesError"),requiredPropertyError:i("RequiredPropertyError"),typeError:i("TypeError"),undefinedValueError:i("UndefinedValueError"),uniqueItemsError:i("UniqueItemsError"),unknownPropertyError:i("UnknownPropertyError"),valueNotEmptyError:i("ValueNotEmptyError")};var ui=__webpack_require__(481),Vr=__webpack_require__.n(ui);let Jn=new RegExp("^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(([Zz])|([\\+|\\-]([01][0-9]|2[0-3]):[0-5][0-9]))$"),tn=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ra=/^((([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,ps=/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,na=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ia=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,ms=[0,31,28,31,30,31,30,31,31,30,31,30,31],Ri=/^(?:\/(?:[^~/]|~0|~1)*)*$/,fs=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,sa=/^(?:[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,_s=/^(?:(?:[^\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,Bi={date:(T,A,I,U)=>{if(typeof I!="string")return;let V=I.match(na);if(!V)return tt.formatDateTimeError({value:I,pointer:U});let te=+V[1],W=+V[2],Q=+V[3];return W>=1&&W<=12&&Q>=1&&Q<=(W==2&&te%4==0&&(te%100!=0||te%400==0)?29:ms[W])?void 0:tt.formatDateError({value:I,pointer:U})},"date-time":(T,A,I,U)=>{if(typeof I=="string")return I===""||Jn.test(I)?new Date(I).toString()==="Invalid Date"?tt.formatDateTimeError({value:I,pointer:U}):void 0:tt.formatDateTimeError({value:I,pointer:U})},email:(T,A,I,U)=>{if(typeof I!="string")return;if(I[0]==='"')return tt.formatEmailError({value:I,pointer:U});let[V,te,...W]=I.split("@");return!V||!te||W.length!==0||V.length>64||te.length>253||V[0]==="."||V.endsWith(".")||V.includes("..")?tt.formatEmailError({value:I,pointer:U}):/^[a-z0-9.-]+$/i.test(te)&&/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(V)&&te.split(".").every(Q=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(Q))?void 0:tt.formatEmailError({value:I,pointer:U})},hostname:(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!ps.test(I))return tt.formatHostnameError({value:I,pointer:U})},ipv4:(T,A,I,U)=>{if(typeof I=="string"&&I!==""){if(I&&I[0]==="0")return tt.formatIPV4LeadingZeroError({value:I,pointer:U});if(!(I.length<=15&&tn.test(I)))return tt.formatIPV4Error({value:I,pointer:U})}},ipv6:(T,A,I,U)=>{if(typeof I=="string"&&I!==""){if(I&&I[0]==="0")return tt.formatIPV6LeadingZeroError({value:I,pointer:U});if(!(I.length<=45&&ra.test(I)))return tt.formatIPV6Error({value:I,pointer:U})}},"json-pointer":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!Ri.test(I))return tt.formatJSONPointerError({value:I,pointer:U})},"relative-json-pointer":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!fs.test(I))return tt.formatJSONPointerError({value:I,pointer:U})},regex:(T,A,I,U)=>{if(typeof I=="string"&&/\\Z$/.test(I)===!1){try{return void new RegExp(I)}catch{}return tt.formatRegExError({value:I,pointer:U})}if(typeof I!="object"&&typeof I!="number"&&!Array.isArray(I))return tt.formatRegExError({value:I,pointer:U})},time:(T,A,I,U)=>{if(typeof I!="string")return;let V=I.match(ia);if(!V)return tt.formatDateTimeError({value:I,pointer:U});let te=+V[1],W=+V[2],Q=+V[3],oe=!!V[5];return(te<=23&&W<=59&&Q<=59||te==23&&W==59&&Q==60)&&oe?void 0:tt.formatTimeError({value:I,pointer:U})},uri:(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!Vr().isUri(I))return tt.formatURIError({value:I,pointer:U})},"uri-reference":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!sa.test(I))return tt.formatURIReferenceError({value:I,pointer:U})},"uri-template":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!_s.test(I))return tt.formatURITemplateError({value:I,pointer:U})},url:(T,A,I,U)=>{if(I!==""&&!Vr().isWebUri(I))return tt.formatURLError({value:I,pointer:U})}},hs={addOptionalProps:!0,removeInvalidData:!1},qr;function Dn(T,A){let{$ref:I}=T;return I==null?!0:(qr[A]==null||qr[A][I]==null?0:qr[A][I])<u.GET_TEMPLATE_RECURSION_LIMIT}function Wn(T,A,I){if(I==null)throw new Error(`missing pointer ${I}`);let{$ref:U}=A;return U==null?A:(qr[I]=qr[I]||{},qr[I][U]=qr[I][U]||0,qr[I][U]+=1,T.resolveRef(A))}function Ai(T,A,I,U){if(o(A)!=="object")return Object.assign({pointer:U},A);if(Dn(A,U)===!1&&I==null)return!1;let V=m(Wn(T,A,U));if(Array.isArray(A.anyOf)&&A.anyOf.length>0){if(Dn(A.anyOf[0],`${U}/anyOf/0`)){let te=Wn(T,A.anyOf[0],`${U}/anyOf/0`);V=h(V,te),V.pointer=A.anyOf[0].$ref||V.pointer}delete V.anyOf}if(Array.isArray(A.allOf)){for(let te=0,W=A.allOf.length;te<W;te+=1)Dn(A.allOf[te],`${U}/allOf/${te}`)&&(V=h(V,Wn(T,A.allOf[te],`${U}/allOf/${te}`)),V.pointer=A.allOf[te].$ref||V.pointer);delete V.allOf}return V.pointer=V.pointer||A.$ref||U,V}let Pi=T=>T&&typeof T=="object";function Ir(T,A,I,U,V){if(I==null)throw new Error(`getTemplate: missing schema for data: ${JSON.stringify(A)}`);if(U==null)throw new Error("Missing pointer");let te=Ai(T,I,A,U);if(!Pi(te))return;if(U=te.pointer,te==null?void 0:te.const)return te.const;if(Array.isArray(te.oneOf))if(function(oe){switch(o(oe)){case"string":case"array":return oe.length===0;case"null":case"undefined":return!0;case"object":return Object.keys(oe).length===0;default:return!1}}(A)){let oe=te.oneOf[0].type||te.type||te.const&&typeof te.const||o(A);te=Object.assign(Object.assign({},te.oneOf[0]),{type:oe})}else{let oe=N(T,A,te);if(a(oe)){if(A!=null&&V.removeInvalidData!==!0)return A;te=te.oneOf[0],A=void 0}else te=oe}if(!Pi(te)||te.type==null)return;let W=Array.isArray(te.type)?function(oe,ae,Ce){if(ae==null){if(Ce!=null){let ze=o(Ce);if(oe.includes(ze))return ze}return oe[0]}let Ae=o(ae);return oe.includes(Ae)?Ae:oe[0]}(te.type,A,te.default):te.type,Q=o(A);return A==null||Q===W||Q==="number"&&W==="integer"||(A=function(oe,ae){if(oe==="string")return JSON.stringify(ae);if(typeof ae!="string")return null;try{if(typeof(ae=JSON.parse(ae))===oe)return ae}catch{}return null}(W,A)),vs[W]==null?V.removeInvalidData?void 0:A:vs[W](T,te,A,U,V)}let vs={null:(T,A,I)=>Fn(A,I,null),string:(T,A,I)=>Fn(A,I,""),number:(T,A,I)=>Fn(A,I,0),integer:(T,A,I)=>Fn(A,I,0),boolean:(T,A,I)=>Fn(A,I,!1),object:(T,A,I,U,V)=>{var te;let W=A.default===void 0?{}:A.default,Q={},oe=(te=A.required)!==null&&te!==void 0?te:[];if(A.properties&&Object.keys(A.properties).forEach(ae=>{let Ce=I==null||I[ae]==null?W[ae]:I[ae],Ae=oe.includes(ae);(Ce!=null||Ae||V.addOptionalProps)&&(Q[ae]=Ir(T,Ce,A.properties[ae],`${U}/properties/${ae}`,V))}),A.dependencies&&Object.keys(A.dependencies).forEach(ae=>{if(Q[ae]===void 0)return;let Ce=A.dependencies[ae];if(Array.isArray(Ce))return void Ce.forEach(ze=>{Q[ze]=Ir(T,Q[ze],A.properties[ze],`${U}/properties/${ze}`,V)});if(o(Ce)!=="object")return;let Ae=Ir(T,I,Object.assign(Object.assign({},Ce),{type:"object"}),`${U}/dependencies/${ae}`,V);Ae&&!a(Ae)&&Object.assign(Q,Ae)}),I&&Object.keys(I).forEach(ae=>Q[ae]==null&&(Q[ae]=I[ae])),A.if&&(A.then||A.else)){let ae=T.isValid(Q,A.if);if(ae&&A.then){let Ce=T.getTemplate(Q,Object.assign({type:"object"},A.then),V);Object.assign(Q,Ce)}else if(!ae&&A.else){let Ce=T.getTemplate(Q,Object.assign({type:"object"},A.else),V);Object.assign(Q,Ce)}}return Q},array:(T,A,I,U,V)=>{var te,W,Q;let oe=A.default===void 0?[]:A.default;A.minItems=A.minItems||0;let ae=I||[];if(A.items==null)return ae;if(Array.isArray(A.items)){for(let Ae=0,ze=Math.max((te=A.minItems)!==null&&te!==void 0?te:0,(Q=(W=A.items)===null||W===void 0?void 0:W.length)!==null&&Q!==void 0?Q:0);Ae<ze;Ae+=1)ae[Ae]=Ir(T,ae[Ae]==null?oe[Ae]:ae[Ae],A.items[Ae],`${U}/items/${Ae}`,V);return ae}if(o(A.items)!=="object")return ae;let Ce=Ai(T,A.items,I,U);if(Ce===!1)return ae;if(U=Ce.pointer||U,Ce.oneOf&&ae.length===0){let Ae=Ce.oneOf[0];for(let ze=0;ze<A.minItems;ze+=1)ae[ze]=Ir(T,ae[ze]==null?oe[ze]:ae[ze],Ae,`${U}/oneOf/0`,V);return ae}if(Ce.oneOf&&ae.length>0){let Ae=Math.max(A.minItems,ae.length);for(let ze=0;ze<Ae;ze+=1){let st=ae[ze]==null?oe[ze]:ae[ze],Ge=N(T,st,Ce);Ge==null||a(Ge)?st!=null&&V.removeInvalidData!==!0?ae[ze]=st:(st=void 0,Ge=Ce.oneOf[0],ae[ze]=Ir(T,st,Ge,`${U}/oneOf/${ze}`,V)):ae[ze]=Ir(T,st,Ge,`${U}/oneOf/${ze}`,V)}return ae}if(Ce.type){for(let Ae=0,ze=Math.max(A.minItems,ae.length);Ae<ze;Ae+=1)ae[Ae]=Ir(T,ae[Ae]==null?oe[Ae]:ae[Ae],Ce,`${U}/items`,V);return ae}return ae}};function Fn(T,A,I){return A??(T.const?T.const:T.default===void 0&&Array.isArray(T.enum)?T.enum[0]:T.default===void 0?I:T.default)}let Kn=(T,A,I=T.rootSchema,U=hs)=>(qr={mi:{}},Ir(T,A,I,"#",U));function xi(T,A,I=T.rootSchema,U="#"){return T.validate(A,I,U).length===0}function Ci(T,A){let I=typeof T;if(I!==typeof A)return!1;if(Array.isArray(T)){if(!Array.isArray(A))return!1;let U=T.length;if(U!==A.length)return!1;for(let V=0;V<U;V++)if(!Ci(T[V],A[V]))return!1;return!0}if(I==="object"){if(!T||!A)return T===A;let U=Object.keys(T),V=Object.keys(A);if(U.length!==V.length)return!1;for(let te of U)if(!Ci(T[te],A[te]))return!1;return!0}return T===A}function Ii(T){let A=[],I=0,U=T.length;for(;I<U;){let V=T.charCodeAt(I++);if(V>=55296&&V<=56319&&I<U){let te=T.charCodeAt(I++);(64512&te)==56320?A.push(((1023&V)<<10)+(1023&te)+65536):(A.push(V),I--)}else A.push(V)}return A}let Yn=u.floatingPointPrecision,ho=Object.prototype.hasOwnProperty,Ji=(T,A)=>!(T[A]===void 0||!ho.call(T,A)),vo={additionalProperties:(T,A,I,U)=>{if(A.additionalProperties===!0||A.additionalProperties==null||o(A.patternProperties)==="object"&&A.additionalProperties===!1)return;let V=[],te=Object.keys(I).filter(Q=>u.propertyBlacklist.includes(Q)===!1),W=Object.keys(A.properties||{});if(o(A.patternProperties)==="object"){let Q=Object.keys(A.patternProperties).map(oe=>new RegExp(oe));te=te.filter(oe=>{for(let ae=0;ae<Q.length;ae+=1)if(Q[ae].test(oe))return!1;return!0})}for(let Q=0,oe=te.length;Q<oe;Q+=1){let ae=te[Q];if(W.indexOf(ae)===-1){let Ce=typeof A.additionalProperties=="object";if(Ce&&Array.isArray(A.additionalProperties.oneOf)){let Ae=T.resolveOneOf(I[ae],A.additionalProperties,`${U}/${ae}`);a(Ae)?V.push(T.errors.additionalPropertiesError({schema:A.additionalProperties,property:te[Q],properties:W,pointer:U,errors:Ae.data.errors})):V.push(...T.validate(I[ae],Ae,U))}else Ce?V.push(...T.validate(I[ae],A.additionalProperties,`${U}/${ae}`)):V.push(T.errors.noAdditionalPropertiesError({property:te[Q],properties:W,pointer:U}))}}return V},allOf:(T,A,I,U)=>{if(Array.isArray(A.allOf)===!1)return;let V=[];return A.allOf.forEach(te=>{V.push(...T.validate(I,te,U))}),V},anyOf:(T,A,I,U)=>{if(Array.isArray(A.anyOf)!==!1){for(let V=0;V<A.anyOf.length;V+=1)if(T.isValid(I,A.anyOf[V]))return;return T.errors.anyOfError({anyOf:A.anyOf,value:I,pointer:U})}},dependencies:(T,A,I,U)=>{if(o(A.dependencies)!=="object")return;let V=[];return Object.keys(I).forEach(te=>{if(A.dependencies[te]===void 0||A.dependencies[te]===!0)return;if(A.dependencies[te]===!1)return void V.push(T.errors.missingDependencyError({pointer:U}));let W,Q=o(A.dependencies[te]);if(Q==="array")W=A.dependencies[te].filter(oe=>I[oe]===void 0).map(oe=>T.errors.missingDependencyError({missingProperty:oe,pointer:U}));else{if(Q!=="object")throw new Error(`Invalid dependency definition for ${U}/${te}. Must be list or schema`);W=T.validate(I,A.dependencies[te],U)}V.push(...W)}),V.length>0?V:void 0},enum:(T,A,I,U)=>{let V=o(I);if(V==="object"||V==="array"){let te=JSON.stringify(I);for(let W=0;W<A.enum.length;W+=1)if(JSON.stringify(A.enum[W])===te)return}else if(A.enum.includes(I))return;return T.errors.enumError({values:A.enum,value:I,pointer:U})},format:(T,A,I,U)=>{if(T.validateFormat[A.format])return T.validateFormat[A.format](T,A,I,U)},items:(T,A,I,U)=>{if(A.items===!1)return Array.isArray(I)&&I.length===0?void 0:T.errors.invalidDataError({pointer:U,value:I});let V=[];for(let te=0;te<I.length;te+=1){let W=I[te],Q=T.step(te,A,I,U);if(a(Q))return[Q];let oe=T.validate(W,Q,`${U}/${te}`);V.push(...oe)}return V},maximum:(T,A,I,U)=>{if(!isNaN(A.maximum))return A.maximum&&A.maximum<I||A.maximum&&A.exclusiveMaximum===!0&&A.maximum===I?T.errors.maximumError({maximum:A.maximum,length:I,pointer:U}):void 0},maxItems:(T,A,I,U)=>{if(!isNaN(A.maxItems))return A.maxItems<I.length?T.errors.maxItemsError({maximum:A.maxItems,length:I.length,pointer:U}):void 0},maxLength:(T,A,I,U)=>{if(isNaN(A.maxLength))return;let V=Ii(I).length;return A.maxLength<V?T.errors.maxLengthError({maxLength:A.maxLength,length:V,pointer:U}):void 0},maxProperties:(T,A,I,U)=>{let V=Object.keys(I).length;if(isNaN(A.maxProperties)===!1&&A.maxProperties<V)return T.errors.maxPropertiesError({maxProperties:A.maxProperties,length:V,pointer:U})},minLength:(T,A,I,U)=>{if(isNaN(A.minLength))return;let V=Ii(I).length;return A.minLength>V?A.minLength===1?T.errors.minLengthOneError({minLength:A.minLength,length:V,pointer:U}):T.errors.minLengthError({minLength:A.minLength,length:V,pointer:U}):void 0},minimum:(T,A,I,U)=>{if(!isNaN(A.minimum))return A.minimum>I||A.exclusiveMinimum===!0&&A.minimum===I?T.errors.minimumError({minimum:A.minimum,length:I,pointer:U}):void 0},minItems:(T,A,I,U)=>{if(!isNaN(A.minItems))return A.minItems>I.length?A.minItems===1?T.errors.minItemsOneError({minItems:A.minItems,length:I.length,pointer:U}):T.errors.minItemsError({minItems:A.minItems,length:I.length,pointer:U}):void 0},minProperties:(T,A,I,U)=>{if(isNaN(A.minProperties))return;let V=Object.keys(I).length;return A.minProperties>V?T.errors.minPropertiesError({minProperties:A.minProperties,length:V,pointer:U}):void 0},multipleOf:(T,A,I,U)=>{if(!isNaN(A.multipleOf))return I*Yn%(A.multipleOf*Yn)/Yn!=0?T.errors.multipleOfError({multipleOf:A.multipleOf,value:I,pointer:U}):void 0},not:(T,A,I,U)=>{let V=[];return T.validate(I,A.not,U).length===0&&V.push(T.errors.notError({value:I,not:A.not,pointer:U})),V},oneOf:(T,A,I,U)=>{if(Array.isArray(A.oneOf)!==!1)return a(A=T.resolveOneOf(I,A,U))?A:void 0},pattern:(T,A,I,U)=>{if(new RegExp(A.pattern,"u").test(I)===!1)return T.errors.patternError({pattern:A.pattern,description:A.patternExample||A.pattern,received:I,pointer:U})},patternProperties:(T,A,I,U)=>{let V=A.properties||{},te=A.patternProperties;if(o(te)!=="object")return;let W=[],Q=Object.keys(I),oe=Object.keys(te).map(ae=>({regex:new RegExp(ae),patternSchema:te[ae]}));return Q.forEach(ae=>{let Ce=!1;for(let Ae=0,ze=oe.length;Ae<ze;Ae+=1)if(oe[Ae].regex.test(ae)){Ce=!0;let st=T.validate(I[ae],oe[Ae].patternSchema,`${U}/${ae}`);st&&st.length>0&&W.push(...st)}V[ae]||Ce===!1&&A.additionalProperties===!1&&W.push(T.errors.patternPropertiesError({key:ae,pointer:U,patterns:Object.keys(te).join(",")}))}),W},properties:(T,A,I,U)=>{let V=[],te=Object.keys(A.properties||{});for(let W=0;W<te.length;W+=1){let Q=te[W];if(Ji(I,Q)){let oe=T.step(Q,A,I,U),ae=T.validate(I[Q],oe,`${U}/${Q}`);V.push(...ae)}}return V},propertiesRequired:(T,A,I,U)=>{let V=[],te=Object.keys(A.properties||{});for(let W=0;W<te.length;W+=1){let Q=te[W];if(I[Q]===void 0)V.push(T.errors.requiredPropertyError({key:Q,pointer:U}));else{let oe=T.step(Q,A,I,U),ae=T.validate(I[Q],oe,`${U}/${Q}`);V.push(...ae)}}return V},required:(T,A,I,U)=>{if(Array.isArray(A.required)!==!1)return A.required.map(V=>{if(!Ji(I,V))return T.errors.requiredPropertyError({key:V,pointer:U})})},requiredNotEmpty:(T,A,I,U)=>{if(Array.isArray(A.required)!==!1)return A.required.map(V=>{if(I[V]==null||I[V]==="")return T.errors.valueNotEmptyError({property:V,pointer:`${U}/${V}`})})},uniqueItems:(T,A,I,U)=>{if((Array.isArray(I)&&A.uniqueItems)===!1)return;let V=[];return I.forEach((te,W)=>{for(let Q=W+1;Q<I.length;Q+=1)Ci(te,I[Q])&&V.push(T.errors.uniqueItemsError({pointer:U,itemPointer:`${U}/${W}`,duplicatePointer:`${U}/${Q}`,value:JSON.stringify(te)}))}),V}},gs=vo,Bs=Object.assign(Object.assign({},gs),{contains:(T,A,I,U)=>{if(A.contains===!1)return T.errors.containsArrayError({pointer:U,value:I});if(A.contains===!0)return Array.isArray(I)&&I.length===0?T.errors.containsAnyError({pointer:U}):void 0;if(o(A.contains)==="object"){for(let V=0;V<I.length;V+=1)if(T.isValid(I[V],A.contains))return;return T.errors.containsError({pointer:U,schema:JSON.stringify(A.contains)})}},exclusiveMaximum:(T,A,I,U)=>{if(!isNaN(A.exclusiveMaximum))return A.exclusiveMaximum<=I?T.errors.maximumError({maximum:A.exclusiveMaximum,length:I,pointer:U}):void 0},exclusiveMinimum:(T,A,I,U)=>{if(!isNaN(A.exclusiveMinimum))return A.exclusiveMinimum>=I?T.errors.minimumError({minimum:A.exclusiveMinimum,length:I,pointer:U}):void 0},if:(T,A,I,U)=>{if(A.if==null)return;let V=T.validate(I,A.if,U);return V.length===0&&A.then?T.validate(I,A.then,U):V.length!==0&&A.else?T.validate(I,A.else,U):void 0},maximum:(T,A,I,U)=>{if(!isNaN(A.maximum))return A.maximum&&A.maximum<I?T.errors.maximumError({maximum:A.maximum,length:I,pointer:U}):void 0},minimum:(T,A,I,U)=>{if(!isNaN(A.minimum))return A.minimum>I?T.errors.minimumError({minimum:A.minimum,length:I,pointer:U}):void 0},patternProperties:(T,A,I,U)=>{let V=A.properties||{},te=A.patternProperties;if(o(te)!=="object")return;let W=[],Q=Object.keys(I),oe=Object.keys(te).map(ae=>({regex:new RegExp(ae),patternSchema:te[ae]}));return Q.forEach(ae=>{let Ce=!1;for(let Ae=0,ze=oe.length;Ae<ze;Ae+=1)if(oe[Ae].regex.test(ae)){if(Ce=!0,oe[Ae].patternSchema===!1)return void W.push(T.errors.patternPropertiesError({key:ae,pointer:U,patterns:Object.keys(te).join(",")}));let st=T.validate(I[ae],oe[Ae].patternSchema,`${U}/${ae}`);st&&st.length>0&&W.push(...st)}V[ae]||Ce===!1&&A.additionalProperties===!1&&W.push(T.errors.patternPropertiesError({key:ae,pointer:U,patterns:Object.keys(te).join(",")}))}),W},propertyNames:(T,A,I,U)=>{if(A.propertyNames===!1)return Object.keys(I).length===0?void 0:T.errors.invalidPropertyNameError({property:Object.keys(I),pointer:U,value:I});if(A.propertyNames===!0||o(A.propertyNames)!=="object")return;let V=[],te=Object.keys(I),W=Object.assign(Object.assign({},A.propertyNames),{type:"string"});return te.forEach(Q=>{let oe=T.validate(Q,W,`${U}/${Q}`);oe.length>0&&V.push(T.errors.invalidPropertyNameError({property:Q,pointer:U,validationError:oe[0],value:I[Q]}))}),V}}),Js=Bs;function qi(T,A,I=T.rootSchema,U="#"){let V=!1,te=m(I);for(let W=0;W<I.anyOf.length;W+=1){let Q=T.resolveRef(I.anyOf[W]);T.isValid(A,I.anyOf[W],U)&&(V=!0,te=h(te,Q))}return V===!1?tt.anyOfError({value:A,pointer:U,anyOf:JSON.stringify(I.anyOf)}):(delete te.anyOf,te)}function xr(T){let A={type:o(T)};return A.type==="object"&&(A.properties={},Object.keys(T).forEach(I=>A.properties[I]=xr(T[I]))),A.type==="array"&&T.length===1?A.items=xr(T[0]):A.type==="array"&&(A.items=T.map(xr)),A}function pi(T,A,I=T.rootSchema){let U=T.step(A,I,{},"#");return a(U)?U.code==="one-of-error"?U.data.oneOf.map(V=>T.resolveRef(V)):U:[U]}let mi={array:(T,A,I,U,V)=>{let te=o(I.items);if(te==="object")return Array.isArray(I.items.oneOf)?T.resolveOneOf(U[A],I.items,V):Array.isArray(I.items.anyOf)?T.resolveAnyOf(U[A],I.items,V):Array.isArray(I.items.allOf)?T.resolveAllOf(U[A],I.items,V):T.resolveRef(I.items);if(te==="array"){if(I.items[A]===!0)return xr(U[A]);if(I.items[A]===!1)return tt.invalidDataError({key:A,value:U[A],pointer:V});if(I.items[A])return T.resolveRef(I.items[A]);if(I.additionalItems===!1)return tt.additionalItemsError({key:A,value:U[A],pointer:V});if(I.additionalItems===!0||I.additionalItems===void 0)return xr(U[A]);if(o(I.additionalItems)==="object")return I.additionalItems;throw new Error(`Invalid schema ${JSON.stringify(I,null,4)} for ${JSON.stringify(U,null,4)}`)}return I.additionalItems!==!1&&U[A]?xr(U[A]):new Error(`Invalid array schema for ${A} at ${V}`)},object:(T,A,I,U,V)=>{if(Array.isArray(I.oneOf)){let Q=T.resolveOneOf(U,I,V);if(a(I=h(I,Q)))return I}if(Array.isArray(I.anyOf)&&a(I=T.resolveAnyOf(U,I,V))||Array.isArray(I.allOf)&&a(I=T.resolveAllOf(U,I,V)))return I;let te;if(I.properties&&I.properties[A]!==void 0){if(te=T.resolveRef(I.properties[A]),a(te))return te;if(te&&Array.isArray(te.oneOf)){let Q=T.resolveOneOf(U[A],te,`${V}/${A}`),oe=te.oneOf.findIndex(ae=>ae===Q);return Q.variableSchema=!0,Q.oneOfIndex=oe,Q.oneOfSchema=te,Q}if(te)return te}let{dependencies:W}=I;if(o(W)==="object"){let Q=Object.keys(W).filter(oe=>o(W[oe])==="object");for(let oe=0,ae=Q.length;oe<ae;oe+=1){let Ce=Q[oe],Ae=Nr(T,A,W[Ce],U,`${V}/${Ce}`);if(!a(Ae))return Ae}}if(I.if&&(I.then||I.else)){let Q=T.isValid(U,I.if);if(Q&&I.then){let oe=Nr(T,A,I.then,U,V);if(typeof oe.type=="string"&&oe.type!=="error")return oe}if(!Q&&I.else){let oe=Nr(T,A,I.else,U,V);if(typeof oe.type=="string"&&oe.type!=="error")return oe}}if(o(I.patternProperties)==="object"){let Q,oe=Object.keys(I.patternProperties);for(let ae=0,Ce=oe.length;ae<Ce;ae+=1)if(Q=new RegExp(oe[ae]),Q.test(A))return I.patternProperties[oe[ae]]}return o(I.additionalProperties)==="object"?I.additionalProperties:I.additionalProperties===!0?xr(U[A]):tt.unknownPropertyError({property:A,value:U,pointer:`${V}`})}};function Nr(T,A,I,U,V="#"){if(Array.isArray(I.type)){let Q=o(U);return I.type.includes(Q)?mi[Q](T,`${A}`,I,U,V):T.errors.typeError({value:U,pointer:V,expected:I.type,received:Q})}let te=I.type||o(U),W=mi[te];return W?W(T,`${A}`,I,U,V):new Error(`Unsupported schema type ${I.type} for key ${A}`)}let Wi={array:(T,A,I,U)=>T.typeKeywords.array.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),object:(T,A,I,U)=>T.typeKeywords.object.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),string:(T,A,I,U)=>T.typeKeywords.string.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),integer:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),number:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),boolean:(T,A,I,U)=>T.typeKeywords.boolean.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),null:(T,A,I,U)=>T.typeKeywords.null.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U))};var An=__webpack_require__(63),ys=__webpack_require__.n(An);function Ti(T,A,I=T.rootSchema,U="#"){if(o(I=T.resolveRef(I))==="boolean")return I?[]:[T.errors.invalidDataError({value:A,pointer:U})];if(a(I))return[I];if(I.const!==void 0)return ys()(I.const,A)?[]:[T.errors.constError({value:A,expected:I.const,pointer:U})];let V=function(W,Q){let oe=o(W);return oe==="number"&&(Q==="integer"||Array.isArray(Q)&&Q.includes("integer"))?Number.isInteger(W)||isNaN(W)?"integer":"number":oe}(A,I.type),te=I.type||V;return V===te||Array.isArray(te)&&te.includes(V)?T.validateType[V]==null?[T.errors.invalidTypeError({receivedType:V,pointer:U})]:d(T.validateType[V](T,I,A,U)).filter(c):[T.errors.typeError({received:V,expected:te,value:A,pointer:U})]}let fi={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","exclusiveMaximum","exclusiveMinimum","format","if","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:Js,validateType:Wi,validateFormat:Bi,errors:tt,addRemoteSchema:ie,compileSchema:mr,createSchemaOf:xr,each:Jt,eachSchema:H,getChildSchemaSelection:pi,getSchema:k,getTemplate:Kn,isValid:xi,resolveAllOf:j,resolveAnyOf:qi,resolveOneOf:f,resolveRef:C,step:Nr,validate:Ti};class oa extends Y{constructor(A,I={}){super(h(fi,I),A)}}let Ss=Object.assign(Object.assign({},fi),{resolveOneOf:N,resolveRef:q});class Ws extends Y{constructor(A,I={}){super(h(Ss,I),A)}}class Ln{constructor(A,I){this.core=new Ws(A),this.schema=A,this.data=I,this.cache={}}updateData(A){this.data=A,this.cache={}}updateSchema(A){this.schema=A,this.core.setSchema(A),this.cache={}}get(A,I){if(I){let Q=k(this.core,A,I,this.schema);return m(Q)}if(A==="#")return this.schema;if(this.cache[A])return this.cache[A];let U=R().join(A,".."),V=this.cache[U];V==null&&(V=k(this.core,U,this.data,this.schema),V.variableSchema!==!0&&(this.cache[U]=m(V)));let te=R().split(A).pop(),W=k(this.core,te,R().get(this.data,U),this.cache[U]);return W=m(W),W.variableSchema!==!0&&(this.cache[A]=W),W}}function _i(T,A,I){let{schema:U,pointer:V,onError:te}=Object.assign({schema:T.rootSchema,pointer:"#"},I),W=T.validate(A,U,V);if(te){W=d(W);let Q=function(oe){return function ae(Ce){return Array.isArray(Ce)?((Ce=d(Ce)).forEach(ae),Ce):(a(Ce)&&oe(Ce),Ce)}}(te);for(let oe=0;oe<W.length;oe+=1)W[oe]instanceof Promise?W[oe].then(Q):a(W[oe])&&te(W[oe])}return Promise.all(W).then(d).then(Q=>Q.filter(l)).catch(Q=>{throw console.log("Failed resolving promises",Q.message),console.log(Q.stack),Q})}let ws="__compiled",Ki="__ref",Ks=/(#|\/)+$/g,Oi={typeKeywords:{array:["allOf","anyOf","enum","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["enum","not","allOf","anyOf","oneOf"],object:["additionalProperties","dependencies","enum","format","minProperties","maxProperties","patternProperties","properties","required","not","oneOf","allOf","anyOf"],string:["allOf","anyOf","enum","format","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","format","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:gs,validateType:{array:(T,A,I,U)=>T.typeKeywords.array.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),object:(T,A,I,U)=>T.typeKeywords.object.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),string:(T,A,I,U)=>T.typeKeywords.string.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),integer:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),number:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),boolean:(T,A,I,U)=>T.typeKeywords.boolean.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),null:(T,A,I,U)=>T.typeKeywords.null.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U))},validateFormat:Bi,errors:tt,addRemoteSchema:ie,compileSchema:function(T,A,I=A,U=!1){if(!A||A[ws]!==void 0)return A;let V={ids:{},remotes:T.remotes},te=JSON.stringify(A),W=JSON.parse(te);if(Object.defineProperty(W,ws,{enumerable:!1,value:!0}),Object.defineProperty(W,"getRef",{enumerable:!1,value:Je.bind(null,V,W)}),U===!1&&te.includes("$ref")===!1)return W;A!==I&&Object.defineProperty(W,"definitions",{enumerable:!1,value:Object.assign({},I.definitions,I.$defs,A.definitions,A.$defs)});let Q={},oe=()=>W;return H(W,(ae,Ce)=>{var Ae;if(ae.id){if(ae.id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(Ce)){let ot=Ce.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),ct=(0,b.get)(W,ot);ae.id=(Ae=ct.id)!==null&&Ae!==void 0?Ae:ae.id}V.ids[ae.id.replace(Ks,"")]=Ce}let ze=(Ce=`#${Ce}`.replace(/##+/,"#")).replace(/\/[^/]+$/,""),st=Ce.replace(/\/[^/]+\/[^/]+$/,""),Ge=Ie(Q[ze]||Q[st],ae.id);Q[Ce]=Ge,V.ids[Ge]==null&&(V.ids[Ge]=Ce),ae.$ref&&!ae[Ki]&&(Object.defineProperty(ae,Ki,{enumerable:!1,value:Ie(Ge,ae.$ref)}),Object.defineProperty(ae,"getRoot",{enumerable:!1,value:oe}))}),W},createSchemaOf:xr,each:Jt,eachSchema:H,getChildSchemaSelection:pi,getSchema:k,getTemplate:Kn,isValid:xi,resolveAllOf:j,resolveAnyOf:qi,resolveOneOf:f,resolveRef:C,step:Nr,validate:Ti};class hi extends Y{constructor(A,I={}){super(h(Oi,I),A)}}let Ys={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["enum","exclusiveMaximum","exclusiveMinimum","format","maximum","minimum","multipleOf","not","oneOf","allOf","anyOf","if"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:Js,validateType:Wi,validateFormat:Bi,errors:tt,addRemoteSchema:ie,compileSchema:mr,createSchemaOf:xr,each:Jt,eachSchema:H,getChildSchemaSelection:pi,getSchema:k,getTemplate:Kn,isValid:xi,resolveAllOf:j,resolveAnyOf:qi,resolveOneOf:f,resolveRef:C,step:Nr,validate:Ti};class go extends Y{constructor(A,I={}){super(h(Ys,I),A)}}let Qs={strings:e}})(),__webpack_exports__})())});var g$=P(Xx=>{"use strict";Object.defineProperty(Xx,"__esModule",{value:!0});Xx.isMatrixAssetUri=void 0;function mQe(e){return typeof e!="string"?!1:/^matrix-asset:\/\/[a-zA-Z0-9.-]+\/\d+(?::.+)?$/.test(e)}Xx.isMatrixAssetUri=mQe});var boe=P(Zx=>{"use strict";Object.defineProperty(Zx,"__esModule",{value:!0});Zx.customFormatValidators=void 0;var fQe=Qx(),_Qe=g$();Zx.customFormatValidators={"matrix-asset-uri":(e,t,r)=>{if((0,_Qe.isMatrixAssetUri)(r)===!1)throw new fQe.SchemaValidationError(`value "${r}" isn't a valid matrix asset uri`)}}});var S$=P(eC=>{"use strict";Object.defineProperty(eC,"__esModule",{value:!0});eC.JsonResolutionError=void 0;var y$=class extends Error{constructor(t,r,n){super(`Error resolving JSON at ${r}: ${t.message}`),this.pointer=r,this.value=n}};eC.JsonResolutionError=y$});var Ioe=P(zr=>{"use strict";var Sd=zr&&zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zr,"__esModule",{value:!0});zr.JsonValidationService=zr.JSONSchemaService=zr.ManifestV1MetaSchema=zr.RenderInputMetaSchema=zr.ComponentInputMetaSchema=zr.RenderInputSchema=zr.ComponentInputSchema=void 0;var hQe=Sd(d$()),R$=Sd(m$()),Aoe=Sd(p$()),tC=Sd(f$()),Poe=Sd(_$()),qg=Sd(Eoe()),xoe=Sd(l$()),Coe=Sd(c$()),w$=Qx(),Tg=v$(),Nm=v$(),vQe=boe(),gQe=S$(),Nu={...Nm.draft07Config,validateFormat:{...Nm.draft07Config.validateFormat,...vQe.customFormatValidators},errors:{...Nm.draft07Config.errors,enumError(e){let t="[]";return e.values&&Array.isArray(e.values)&&(e.values.length<5?t=`[${e.values.join(", ")}]`:t=`[${e.values.slice(0,5).join(", ")}, ... ${e.values.length-5} more]`),{type:"error",name:"EnumError",code:"enum-error",message:`Expected given value \`${e.value}\` in ${e.pointer}\` to be one of \`${t}\``,data:e}},anyOfError(e){let t=`Value \`${e.value}\` at`;return typeof e.value=="object"&&(t="Object at"),Array.isArray(e.value)&&(t="Array at"),{type:"error",name:"AnyOfError",code:"any-of-error",message:`${t} \`${e.pointer}\` does not match any schema`,data:e}}}},Roe=new Tg.Draft07(xoe.default,Nu);zr.ComponentInputSchema=new Tg.Draft({...Nu,resolveRef(e,t){let r=Nm.draft07Config.resolveRef(e,t);return r&&(r.type==="FormattedText"?Roe.rootSchema:Array.isArray(r.type)&&r.type.includes("FormattedText")?{...e,...Roe.rootSchema,type:r.type.filter(n=>n!=="FormattedText").concat(xoe.default.type)}:r)}},R$.default);zr.ComponentInputSchema.addRemoteSchema("DxComponentInputSchema.json/DxContentMetaSchema.json",tC.default);zr.RenderInputSchema=new Tg.Draft({...Nu,resolveRef(e,t){let r=Nm.draft07Config.resolveRef(e,t);return r&&(r.type==="FormattedText"?{type:"string"}:Array.isArray(r.type)&&r.type.includes("FormattedText")?{...e,type:r.type.filter(n=>n!=="FormattedText").concat("string")}:r)}});var ku=new Tg.Draft07(Coe.default,Nu);ku.addRemoteSchema("DxComponentInputSchema.json/DxContentMetaSchema.json",tC.default);ku.addRemoteSchema("/DxComponentInputSchema.json",zr.ComponentInputSchema.getSchema());ku.addRemoteSchema("/DxComponentIcons.json",Aoe.default);ku.addRemoteSchema("/MatrixAssetSchema.json",Poe.default);ku.addRemoteSchema("http://json-schema.org/draft-07/schema",qg.default);ku.addRemoteSchema("http://json-schema.org/draft-07/schema#",qg.default);zr.ComponentInputMetaSchema={root:R$.default,remotes:{"DxComponentInputSchema.json/DxContentMetaSchema.json":tC.default}};zr.RenderInputMetaSchema={root:qg.default};zr.ManifestV1MetaSchema={root:Coe.default,remotes:{"DxComponentInputSchema.json/DxContentMetaSchema.json":tC.default,"/DxComponentInputSchema.json":R$.default,"/DxComponentIcons.json":Aoe.default,"/MatrixAssetSchema.json":Poe.default,"http://json-schema.org/draft-07/schema":qg.default,"http://json-schema.org/draft-07/schema#":qg.default}};var E$=class{constructor(t,r){this.typeResolver=t,this.schema=new Tg.Draft({...Nu,resolveRef:(n,i)=>this.doResolveRef(n,i),validate:(n,i,s,o)=>Nu.validate(n,i,s,o),resolveOneOf:(n,i,s,o)=>Nu.resolveOneOf(n,i,s,o)},r.root);for(let[n,i]of Object.entries(r.remotes||{}))this.schema.addRemoteSchema(n,i);for(let n of this.typeResolver.validationSchemaDefinitions)this.schema.addRemoteSchema(`/${n.title}.json`,n),this.schema.addRemoteSchema(`#/${n.title}.json`,n)}doResolveRef(t,r){let n=Nm.draft07Config.resolveRef(t,r);if(!n||!this.typeResolver.isPrimitiveType(n.type))return n;let s={oneOf:this.typeResolver.getValidationSchemaForPrimitive(n.type).map(o=>({$ref:`${o.title}.json`}))};return this.schema.compileSchema(s)}validateInput(t,r=this.schema.rootSchema){r=this.schema.compileSchema(r);let n=this.schema.validate(t,r);return this.processValidationResult(n)}processValidationResult(t){if(t.length>0)throw new w$.SchemaValidationError(t.map(r=>r.message).join(`,
|
|
132
132
|
`));return!0}async resolveInput(t,r){let n=[];this.schema.each(t,(s,o,a)=>{if(!this.typeResolver.isResolvableSchema(s))return;let l=s.oneOfSchema.oneOf.map(p=>p.$ref.replace(".json","")).find(p=>this.typeResolver.isPrimitiveType(p));if(!l)return;let d=this.typeResolver.tryGetResolver(l,s);if(!d)return;let u=Promise.resolve().then(()=>d(o)).then(p=>f=>hQe.default.set(f,a,p)).catch(p=>Promise.reject(new gQe.JsonResolutionError(p,a,o)));n.push(u)},r);let i=[];for(let s of await Promise.allSettled(n)){if(s.status==="rejected"){i.push(s.reason);continue}t=s.value(t)}if(i.length)throw new Error(`Error(s) occurred when resolving JSON:
|
|
133
133
|
${i.join(`
|
|
134
134
|
`)}`);return t}};zr.JSONSchemaService=E$;var b$=class{validateManifest(t,r){switch(r){case"v1":{let n=ku.validate(t);return this.processValidationResult(n)}default:throw new w$.SchemaValidationError("Invalid manifest version")}}validateContentSchema(t){return this.processValidationResult(zr.ComponentInputSchema.validate(t))}validateComponentInput(t,r){let n=zr.ComponentInputSchema.compileSchema(t),i=zr.ComponentInputSchema.validate(r,n);return this.processValidationResult(i)}validateRenderInput(t,r){let n=zr.RenderInputSchema.compileSchema(t),i=zr.RenderInputSchema.validate(r,n);return this.processValidationResult(i)}processValidationResult(t){if(t.length>0)throw new w$.SchemaValidationError(t.map(r=>r.message).join(`,
|
|
@@ -273,7 +273,7 @@ quantifier ::= "+" | "*" | [0-9]+
|
|
|
273
273
|
orPattern ::= S? "," S?
|
|
274
274
|
|
|
275
275
|
S ::= [ ]*
|
|
276
|
-
`,$=new z.Z.Parser(D),ee=T=>$.getAST(T),_e=(T,A)=>`${T}/${A}`,re=Object.prototype.toString,me=/Object|Array/,Se=T=>me.test(re.call(T));function Ee(T){return new RegExp(T.text.replace(/(^{|}$)/g,""))}function ce(T){return Array.isArray(T)?T.map(function(A,I){return`${I}`}):Object.prototype.toString.call(T)==="[object Object]"?Object.keys(T):[]}let ue={mem:[],get(T,A){let I=T[0][A];if(!ue.mem.includes(I))return Se(I)&&ue.mem.push(I),[I,A,T[0],_e(T[3],A)]},reset(){ue.mem.length=0}},B={any(T,A){let I=A[0];return ce(I).map(U=>[I[U],U,I,_e(A[3],U)])},all(T,A){let I=[A];var U,V;return U=A[0],V=(te,W)=>{let Q=ue.get(A,W);Q&&I.push(...B.all(T,Q))},Array.isArray(U)?U.forEach(V):Object.prototype.toString.call(U)==="[object Object]"&&Object.keys(U).forEach(function(te){V(U[te],te,U)}),I},regex(T,A){let I=Ee(T),U=A[0];return ce(U).filter(V=>I.test(V)).map(V=>[U[V],V,U,_e(A[3],V)])}},K={escaped:(T,A)=>K.property(T,A),property:(T,A)=>{let I=T.text;if(A[0]&&A[0][I]!==void 0)return[A[0][I],I,A[0],_e(A[3],I)]},typecheck:(T,A)=>{let I=T.text.replace(/^\?:/,"");if(I==="value")return Se(A[0])?void 0:A;var U;return U=A[0],re.call(U).match(/\s([^\]]+)\]/).pop().toLowerCase()===I?A:void 0},lookahead:(T,A)=>{let I=!0,U=!1;return T.children.forEach(V=>{if(V.type==="expression"){let te=K.expression(V,A)!==void 0;I=U===!0?I||te:I&&te}else U=V.type==="orExpr"}),I?A:void 0},expression:(T,A)=>{let I=T.children[0].text,U=T.children[1],V=T.children[2],te=A[0];if(Se(te)!==!1)return function(W,Q,oe){if(Q===void 0)return W!==void 0;let ae,Ce=`${W}`;return oe.type==="regex"?ae=Ee(oe).test(Ce):ae=Ce===oe.text,Q.type==="isnot"&&(ae=ae===!1&&W!==void 0),ae}(te[I],U,V)?A:void 0}};function pe(T,A,I){let U=[],V=T;return A.children.forEach(te=>{if(te.type==="orPattern")return U.push(...V),void(V=T);V=se(V,te,I)}),U.push(...V),U}function ge(T,A,I){let U=[],V=A.children.find(oe=>oe.type==="quantifier"),te=function(oe){if(oe==null)return 1;if(oe==="*"||oe==="+")return 1/0;let ae=parseInt(oe);return isNaN(ae)?1:ae}(V&&V.text),W=T;V&&V.text==="*"&&U.push(...W);let Q=0;for(;W.length>0&&Q<te;)W=pe(W,A,I),U.push(...W),Q+=1;return U}function se(T,A,I){let U;return U=A.type==="query"?function(V,te,W){let Q=V;return te.children.forEach(oe=>{if(B[oe.type])Q=function(ae,Ce,Ae,ze){let st=[];for(let Ge=0,ot=Ce.length;Ge<ot;Ge+=1)st.push(...ae(Ae,Ce[Ge],Ae,ze));return st}(B[oe.type],Q,oe,W);else{if(!K[oe.type])throw new Error(`Unknown filter ${oe.type}`);Q=function(ae,Ce,Ae,ze){let st=[];for(let Ge=0,ot=Ce.length;Ge<ot;Ge+=1){let ct=ae(Ae,Ce[Ge],ze);ct&&st.push(ct)}return st}(K[oe.type],Q,oe,W)}}),Q}(T,A,I):A.type==="pattern"?ge(T,A,I):function(V,te,W){let Q=V;return te.children.forEach(oe=>Q=se(Q,oe,W)),Q}(T,A,I),ue.reset(),ue.mem.push(T),U}let ne={value:T=>T.map(A=>A[0]),pointer:T=>T.map(A=>A[3]),all:T=>T,map:T=>{let A={};return T.forEach(I=>A[I[3]]=I[0]),A}};var be;function Te(T,A,I=be.VALUE){if(A==null)return[];(A=A.replace(/(\/$)/g,""))===""&&(A="#");let U=ee(A);if(U==null)throw new Error(`empty ast for '${A}'`);if(U.rest!=="")throw new Error(`Failed parsing queryString from: '${U.rest}'`);let V=function(te,W){return ue.reset(),ue.mem.push(te),se([[te,null,null,"#"]],W)}(T,U);return typeof I=="function"?V.map(te=>I(...te)):ne[I]?ne[I](V):V}(function(T){T.POINTER="pointer",T.VALUE="value",T.ALL="all",T.MAP="map"})(be||(be={})),Te.POINTER=be.POINTER,Te.VALUE=be.VALUE,Te.ALL=be.ALL,Te.MAP=be.MAP;let We=["root","recursion"];function Ke(T,A=[]){return We.includes(T.type)?(T.children.forEach(I=>Ke(I,A)),A):(A.push(T.text),A)}function Ze(T){return T==null||T===""?[]:Ke(ee(T))}let dt=T=>JSON.parse(JSON.stringify(T)),Nt=Object.prototype.toString,Et=T=>Nt.call(T).match(/\s([^\]]+)\]/).pop().toLowerCase(),kt=new RegExp(`^("[^"]+"|${L})$`),Vt=["string","number","boolean","null"],Dt=/^\[\d*\]$/,It=/^\[(\d+)\]$/,Mt=/^".+"$/,er=/(^\[\d*\]$|^\d+$)/;function gr(T){return parseInt(T.replace(/^(\[|\]$)/,""))}function Bt(T){return Mt.test(T)?T.replace(/(^"|"$)/g,""):T}function fe(T,A,I,U){let V=T[0];if(/^\[\]$/.test(A)){V.push(I);let te=V.length-1;return[V[te],te,V,`${T[3]}/${te}}`]}if(U==null&&Et(V[A])==="object"&&Et(I)==="object")return[V[A],A,V,`${T[3]}/${A}}`];if(U===Ct.INSERT_ITEMS||U==null&&It.test(A)){let te=gr(A);return function(W,Q,oe){W.length<=Q?W[Q]=oe:W.splice(Q,0,oe)}(V,te,I),[V[te],te,V,`${T[3]}/${te}}`]}if(U===Ct.REPLACE_ITEMS||U==null){let te=gr(A);return V[te]=I,[V[te],te,V,`${T[3]}/${te}}`]}throw new Error(`Unknown array index '${A}' with force-option '${U}'`)}var pr;function Ct(T,A,I,U){if(A==null)return dt(T);if((A=A.replace(/(\/$)/g,""))==="")return dt(I);let V=dt(T),te=[[V,null,null,"#"]],W=Ze(A),Q=W.pop(),oe=Dt.test(Q)&&It.test(Q)===!1;if(kt.test(Q)===!1||oe)throw new Error(`Unsupported query '${A}' ending with non-property`);return W.forEach((ae,Ce)=>{if(ae==="__proto__"||ae==="prototyped"||ae==="constructor")return;if(kt.test(ae)===!1)return void(te=function(st,Ge){let ot=[];return st.forEach(ct=>ot.push(...Te(ct[0],Ge,be.ALL))),ot}(te,ae));let Ae=Ce>=W.length-1?Q:W[Ce+1],ze=er.test(Ae);te=function(st,Ge,ot,ct){return Ge=Bt(Ge),st.filter(ut=>!(!Array.isArray(ut[0])||!er.test(Ge))||Vt.includes(Et(ut[0][Ge]))===!1).map(ut=>{let E=ot?[]:{},M=ut[0];return Array.isArray(M)?fe(ut,Ge,E,ct):(M[Ge]=M[Ge]||E,[M[Ge],Ge,M,`${ut[3]}/${Ge}`])})}(te,ae,ze,U)}),te.forEach(ae=>{let Ce=I;Et(I)==="function"&&(Ce=I(ae[3],Q,ae[0],`${ae[3]}/${Q}`));let Ae=ae[0];if(Array.isArray(Ae))fe(ae,Q,Ce,U);else{let ze=Bt(Q);if(ze==="__proto__"||ze==="prototyped"||ze==="constructor")return;Ae[ze]=Ce}}),V}(function(T){T.REPLACE_ITEMS="replace",T.INSERT_ITEMS="insert"})(pr||(pr={})),Ct.REPLACE_ITEMS=pr.REPLACE_ITEMS,Ct.INSERT_ITEMS=pr.INSERT_ITEMS;let Yt={$ref:{type:!1},allOf:{type:!1,definitions:["allOf/*"]},anyOf:{type:!1,definitions:["anyOf/*"]},array:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","items","items/*","additionalItems"],validationKeywords:["minItems","maxItems","uniqueItems"],keywords:["items","additionalItems","minItems","maxItems","uniqueItems"]},boolean:{type:!0},enum:{type:!1},integer:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},not:{type:!1,definitions:["not"]},number:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},null:{type:!0},object:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","properties/*","additionalProperties","patternProperties/*","dependencies/*"],validationKeywords:["minProperties","maxProperties","required"],keywords:["properties","additionalProperties","patternProperties","dependencies","minProperties","maxProperties","required"]},oneOf:{type:!1,definitions:["oneOf/*"]},string:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minLength","maxLength","pattern"]}},Dr=Object.keys(Yt).filter(T=>Yt[T].type===!1),Lt=Object.prototype.hasOwnProperty;function et(T){if(A=T,Object.prototype.toString.call(A)!=="[object Object]")return;var A;if(T.enum)return"enum";if(Yt[T.type]||Array.isArray(T.type))return T.type;let I=Dr.filter(U=>T[U]);if(I.length===1)return I[0];if(I.length!==0)throw new Error(`Mutiple typeIds [${I.join(", ")}] matched in ${JSON.stringify(T)}`);for(let U=0,V=Yt.object.keywords.length;U<V;U+=1){let te=Yt.object.keywords[U];if(Lt.call(T,te))return"object"}for(let U=0,V=Yt.array.keywords.length;U<V;U+=1){let te=Yt.array.keywords[U];if(Lt.call(T,te))return"array"}}function Ft(T){let A=[],I=et(T);if(I==null)return A;let U;if(Array.isArray(I)){U={};for(let V=0,te=I.length;V<te;V+=1)Object.assign(U,Yt[I[V]])}else U=Yt[I];return U.definitions==null||U.definitions.forEach(V=>{Te(T,V,(te,W,Q,oe)=>{(ae=>Object.prototype.toString.call(ae)==="[object Object]")(te)&&et(te)&&A.push({pointer:R().join(R().split(oe),!1),def:te})})}),A}function at(T,A){this.callback(T,A)!==!0&&Ft(T).forEach(I=>this.nextTypeDefs(I.def,R().join(A,I.pointer,!1)))}function rt(T,A,I,U="definitions"){let V=A[U];Object.keys(V).forEach(te=>{if(V[te]!==!1&&(W=V[te],Object.prototype.toString.call(W)!=="[object Object]"))var W;else T.nextTypeDefs(V[te],R().join(I,U,te,!1))})}function H(T,A,I="#"){let U={callback:A,nextTypeDefs:at};U.nextTypeDefs(T,I),T.definitions!=null&&(U.callback=(V,te)=>{A(V,te),V.definitions!=null&&rt(U,V,te)},rt(U,T,I)),T.$defs!=null&&(U.callback=(V,te)=>{A(V,te),V.definitions!=null&&rt(U,V,te)},rt(U,T,I,"$defs"))}let de=/(#|\/)+$/,Z=/#$/,we=/^[^:]+:\/\/[^/]+\//,qe=/\/[^/]*$/,ye=/#.*$/;function Ie(T,A){return T==null&&A==null?"#":A==null?T.replace(Z,""):T==null?A.replace(Z,""):A[0]==="#"?`${T.replace(ye,"")}${A.replace(de,"")}`:we.test(A)?A.replace(Z,""):`${T.replace(qe,"")}/${A.replace(Z,"")}`}let Me=/(#|\/)+$/g,Re=["",null,"#"],Oe=/(#|\/)+$/g;function Je(T,A,I){if(o(I)==="object"&&(I=I.__ref||I.$ref),I==null)return A;let U,V=I.replace(Oe,"");if(T.remotes[V])return U=T.remotes[V],U&&U.$ref?Je(T,A,U.$ref):U;if(T.ids[I])return U=(0,b.get)(A,T.ids[I]),U&&U.$ref?Je(T,A,U.$ref):U;let te=function(W){if(Re.includes(W))return[];if((W=W.replace(Me,"")).indexOf("#")===-1)return[W.replace(Me,"")];if(W.indexOf("#")===0)return[W.replace(Me,"")];let Q=W.split("#");return Q[0]=Q[0].replace(Me,""),Q[1]=`#${Q[1].replace(Me,"")}`,Q}(I);if(te.length===0)return A;if(te.length===1){if(I=te[0],T.remotes[I])return U=T.remotes[I],Je(T,A,U.$ref);if(T.ids[I])return U=(0,b.get)(A,T.ids[I]),U&&U.$ref?Je(T,A,U.$ref):U}if(te.length===2){let W=te[0];if(I=te[1],T.remotes[W])return T.remotes[W].getRef?T.remotes[W].getRef(I):Je(T,T.remotes[W],I);if(T.ids[W])return Je(T,(0,b.get)(A,T.ids[W]),I)}return U=(0,b.get)(A,T.ids[I]||I),U&&U.$ref?Je(T,A,U.$ref):U}let lt="__compiled",zt="__ref",nr=/(#|\/)+$/g;function mr(T,A,I=A,U=!1){if(A===!0||A===!1||A===void 0||A[lt]!==void 0)return A;let V={ids:{},remotes:T.remotes},te=JSON.stringify(A),W=JSON.parse(te);if(Object.defineProperty(W,lt,{enumerable:!1,value:!0}),Object.defineProperty(W,"getRef",{enumerable:!1,value:Je.bind(null,V,W)}),U===!1&&te.includes("$ref")===!1)return W;W!==I&&Object.defineProperty(W,"$defs",{enumerable:!0,value:Object.assign({},I.definitions,I.$defs,W.definitions,W.$defs)});let Q={},oe=()=>W;return H(W,(ae,Ce)=>{var Ae;if(ae.$id){if(ae.$id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(Ce)){let ot=Ce.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),ct=(0,b.get)(W,ot);ae.$id=(Ae=ct.$id)!==null&&Ae!==void 0?Ae:ae.$id}V.ids[ae.$id.replace(nr,"")]=Ce}let ze=(Ce=`#${Ce}`.replace(/##+/,"#")).replace(/\/[^/]+$/,""),st=Ce.replace(/\/[^/]+\/[^/]+$/,""),Ge=Ie(Q[ze]||Q[st],ae.$id);Q[Ce]=Ge,V.ids[Ge]==null&&(V.ids[Ge]=Ce),ae.$ref&&!ae[zt]&&(Object.defineProperty(ae,zt,{enumerable:!1,value:Ie(Ge,ae.$ref)}),Object.defineProperty(ae,"getRoot",{enumerable:!1,value:oe}))}),W}function Jt(T,A,I,U=T.rootSchema,V="#"){U=T.resolveRef(U),I(U,A,V);let te=o(A);te==="object"?Object.keys(A).forEach(W=>{let Q=T.step(W,U,A,V),oe=A[W];T.each(oe,I,Q,`${V}/${W}`)}):te==="array"&&A.forEach((W,Q)=>{let oe=T.step(Q,U,A,V);T.each(W,I,oe,`${V}/${Q}`)})}let tt={additionalItemsError:i("AdditionalItemsError"),additionalPropertiesError:i("AdditionalPropertiesError"),anyOfError:i("AnyOfError"),allOfError:i("AllOfError"),constError:i("ConstError"),containsError:i("ContainsError"),containsArrayError:i("ContainsArrayError"),containsAnyError:i("ContainsAnyError"),enumError:i("EnumError"),formatURLError:i("FormatURLError"),formatURIError:i("FormatURIError"),formatURIReferenceError:i("FormatURIReferenceError"),formatURITemplateError:i("FormatURITemplateError"),formatDateError:i("FormatDateaError"),formatDateTimeError:i("FormatDateTimeError"),formatEmailError:i("FormatEmailError"),formatHostnameError:i("FormatHostnameError"),formatIPV4Error:i("FormatIPV4Error"),formatIPV4LeadingZeroError:i("FormatIPV4LeadingZeroError"),formatIPV6Error:i("FormatIPV6Error"),formatIPV6LeadingZeroError:i("FormatIPV6LeadingZeroError"),formatJSONPointerError:i("FormatJSONPointerError"),formatRegExError:i("FormatRegExError"),formatTimeError:i("FormatTimeError"),invalidSchemaError:i("InvalidSchemaError"),invalidDataError:i("InvalidDataError"),invalidTypeError:i("InvalidTypeError"),invalidPropertyNameError:i("InvalidPropertyNameError"),maximumError:i("MaximumError"),maxItemsError:i("MaxItemsError"),maxLengthError:i("MaxLengthError"),maxPropertiesError:i("MaxPropertiesError"),minimumError:i("MinimumError"),minItemsError:i("MinItemsError"),minItemsOneError:i("MinItemsOneError"),minLengthError:i("MinLengthError"),minLengthOneError:i("MinLengthOneError"),minPropertiesError:i("MinPropertiesError"),missingDependencyError:i("MissingDependencyError"),missingOneOfPropertyError:i("MissingOneOfPropertyError"),multipleOfError:i("MultipleOfError"),multipleOneOfError:i("MultipleOneOfError"),noAdditionalPropertiesError:i("NoAdditionalPropertiesError"),notError:i("NotError"),oneOfError:i("OneOfError"),oneOfPropertyError:i("OneOfPropertyError"),patternError:i("PatternError"),patternPropertiesError:i("PatternPropertiesError"),requiredPropertyError:i("RequiredPropertyError"),typeError:i("TypeError"),undefinedValueError:i("UndefinedValueError"),uniqueItemsError:i("UniqueItemsError"),unknownPropertyError:i("UnknownPropertyError"),valueNotEmptyError:i("ValueNotEmptyError")};var ui=__webpack_require__(481),Vr=__webpack_require__.n(ui);let Jn=new RegExp("^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(([Zz])|([\\+|\\-]([01][0-9]|2[0-3]):[0-5][0-9]))$"),tn=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ra=/^((([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,ps=/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,na=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ia=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,ms=[0,31,28,31,30,31,30,31,31,30,31,30,31],Ri=/^(?:\/(?:[^~/]|~0|~1)*)*$/,fs=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,sa=/^(?:[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,_s=/^(?:(?:[^\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,Bi={date:(T,A,I,U)=>{if(typeof I!="string")return;let V=I.match(na);if(!V)return tt.formatDateTimeError({value:I,pointer:U});let te=+V[1],W=+V[2],Q=+V[3];return W>=1&&W<=12&&Q>=1&&Q<=(W==2&&te%4==0&&(te%100!=0||te%400==0)?29:ms[W])?void 0:tt.formatDateError({value:I,pointer:U})},"date-time":(T,A,I,U)=>{if(typeof I=="string")return I===""||Jn.test(I)?new Date(I).toString()==="Invalid Date"?tt.formatDateTimeError({value:I,pointer:U}):void 0:tt.formatDateTimeError({value:I,pointer:U})},email:(T,A,I,U)=>{if(typeof I!="string")return;if(I[0]==='"')return tt.formatEmailError({value:I,pointer:U});let[V,te,...W]=I.split("@");return!V||!te||W.length!==0||V.length>64||te.length>253||V[0]==="."||V.endsWith(".")||V.includes("..")?tt.formatEmailError({value:I,pointer:U}):/^[a-z0-9.-]+$/i.test(te)&&/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(V)&&te.split(".").every(Q=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(Q))?void 0:tt.formatEmailError({value:I,pointer:U})},hostname:(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!ps.test(I))return tt.formatHostnameError({value:I,pointer:U})},ipv4:(T,A,I,U)=>{if(typeof I=="string"&&I!==""){if(I&&I[0]==="0")return tt.formatIPV4LeadingZeroError({value:I,pointer:U});if(!(I.length<=15&&tn.test(I)))return tt.formatIPV4Error({value:I,pointer:U})}},ipv6:(T,A,I,U)=>{if(typeof I=="string"&&I!==""){if(I&&I[0]==="0")return tt.formatIPV6LeadingZeroError({value:I,pointer:U});if(!(I.length<=45&&ra.test(I)))return tt.formatIPV6Error({value:I,pointer:U})}},"json-pointer":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!Ri.test(I))return tt.formatJSONPointerError({value:I,pointer:U})},"relative-json-pointer":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!fs.test(I))return tt.formatJSONPointerError({value:I,pointer:U})},regex:(T,A,I,U)=>{if(typeof I=="string"&&/\\Z$/.test(I)===!1){try{return void new RegExp(I)}catch{}return tt.formatRegExError({value:I,pointer:U})}if(typeof I!="object"&&typeof I!="number"&&!Array.isArray(I))return tt.formatRegExError({value:I,pointer:U})},time:(T,A,I,U)=>{if(typeof I!="string")return;let V=I.match(ia);if(!V)return tt.formatDateTimeError({value:I,pointer:U});let te=+V[1],W=+V[2],Q=+V[3],oe=!!V[5];return(te<=23&&W<=59&&Q<=59||te==23&&W==59&&Q==60)&&oe?void 0:tt.formatTimeError({value:I,pointer:U})},uri:(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!Vr().isUri(I))return tt.formatURIError({value:I,pointer:U})},"uri-reference":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!sa.test(I))return tt.formatURIReferenceError({value:I,pointer:U})},"uri-template":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!_s.test(I))return tt.formatURITemplateError({value:I,pointer:U})},url:(T,A,I,U)=>{if(I!==""&&!Vr().isWebUri(I))return tt.formatURLError({value:I,pointer:U})}},hs={addOptionalProps:!0,removeInvalidData:!1},qr;function Dn(T,A){let{$ref:I}=T;return I==null?!0:(qr[A]==null||qr[A][I]==null?0:qr[A][I])<u.GET_TEMPLATE_RECURSION_LIMIT}function Wn(T,A,I){if(I==null)throw new Error(`missing pointer ${I}`);let{$ref:U}=A;return U==null?A:(qr[I]=qr[I]||{},qr[I][U]=qr[I][U]||0,qr[I][U]+=1,T.resolveRef(A))}function Ai(T,A,I,U){if(o(A)!=="object")return Object.assign({pointer:U},A);if(Dn(A,U)===!1&&I==null)return!1;let V=m(Wn(T,A,U));if(Array.isArray(A.anyOf)&&A.anyOf.length>0){if(Dn(A.anyOf[0],`${U}/anyOf/0`)){let te=Wn(T,A.anyOf[0],`${U}/anyOf/0`);V=h(V,te),V.pointer=A.anyOf[0].$ref||V.pointer}delete V.anyOf}if(Array.isArray(A.allOf)){for(let te=0,W=A.allOf.length;te<W;te+=1)Dn(A.allOf[te],`${U}/allOf/${te}`)&&(V=h(V,Wn(T,A.allOf[te],`${U}/allOf/${te}`)),V.pointer=A.allOf[te].$ref||V.pointer);delete V.allOf}return V.pointer=V.pointer||A.$ref||U,V}let Pi=T=>T&&typeof T=="object";function Ir(T,A,I,U,V){if(I==null)throw new Error(`getTemplate: missing schema for data: ${JSON.stringify(A)}`);if(U==null)throw new Error("Missing pointer");let te=Ai(T,I,A,U);if(!Pi(te))return;if(U=te.pointer,te==null?void 0:te.const)return te.const;if(Array.isArray(te.oneOf))if(function(oe){switch(o(oe)){case"string":case"array":return oe.length===0;case"null":case"undefined":return!0;case"object":return Object.keys(oe).length===0;default:return!1}}(A)){let oe=te.oneOf[0].type||te.type||te.const&&typeof te.const||o(A);te=Object.assign(Object.assign({},te.oneOf[0]),{type:oe})}else{let oe=N(T,A,te);if(a(oe)){if(A!=null&&V.removeInvalidData!==!0)return A;te=te.oneOf[0],A=void 0}else te=oe}if(!Pi(te)||te.type==null)return;let W=Array.isArray(te.type)?function(oe,ae,Ce){if(ae==null){if(Ce!=null){let ze=o(Ce);if(oe.includes(ze))return ze}return oe[0]}let Ae=o(ae);return oe.includes(Ae)?Ae:oe[0]}(te.type,A,te.default):te.type,Q=o(A);return A==null||Q===W||Q==="number"&&W==="integer"||(A=function(oe,ae){if(oe==="string")return JSON.stringify(ae);if(typeof ae!="string")return null;try{if(typeof(ae=JSON.parse(ae))===oe)return ae}catch{}return null}(W,A)),vs[W]==null?V.removeInvalidData?void 0:A:vs[W](T,te,A,U,V)}let vs={null:(T,A,I)=>Fn(A,I,null),string:(T,A,I)=>Fn(A,I,""),number:(T,A,I)=>Fn(A,I,0),integer:(T,A,I)=>Fn(A,I,0),boolean:(T,A,I)=>Fn(A,I,!1),object:(T,A,I,U,V)=>{var te;let W=A.default===void 0?{}:A.default,Q={},oe=(te=A.required)!==null&&te!==void 0?te:[];if(A.properties&&Object.keys(A.properties).forEach(ae=>{let Ce=I==null||I[ae]==null?W[ae]:I[ae],Ae=oe.includes(ae);(Ce!=null||Ae||V.addOptionalProps)&&(Q[ae]=Ir(T,Ce,A.properties[ae],`${U}/properties/${ae}`,V))}),A.dependencies&&Object.keys(A.dependencies).forEach(ae=>{if(Q[ae]===void 0)return;let Ce=A.dependencies[ae];if(Array.isArray(Ce))return void Ce.forEach(ze=>{Q[ze]=Ir(T,Q[ze],A.properties[ze],`${U}/properties/${ze}`,V)});if(o(Ce)!=="object")return;let Ae=Ir(T,I,Object.assign(Object.assign({},Ce),{type:"object"}),`${U}/dependencies/${ae}`,V);Ae&&!a(Ae)&&Object.assign(Q,Ae)}),I&&Object.keys(I).forEach(ae=>Q[ae]==null&&(Q[ae]=I[ae])),A.if&&(A.then||A.else)){let ae=T.isValid(Q,A.if);if(ae&&A.then){let Ce=T.getTemplate(Q,Object.assign({type:"object"},A.then),V);Object.assign(Q,Ce)}else if(!ae&&A.else){let Ce=T.getTemplate(Q,Object.assign({type:"object"},A.else),V);Object.assign(Q,Ce)}}return Q},array:(T,A,I,U,V)=>{var te,W,Q;let oe=A.default===void 0?[]:A.default;A.minItems=A.minItems||0;let ae=I||[];if(A.items==null)return ae;if(Array.isArray(A.items)){for(let Ae=0,ze=Math.max((te=A.minItems)!==null&&te!==void 0?te:0,(Q=(W=A.items)===null||W===void 0?void 0:W.length)!==null&&Q!==void 0?Q:0);Ae<ze;Ae+=1)ae[Ae]=Ir(T,ae[Ae]==null?oe[Ae]:ae[Ae],A.items[Ae],`${U}/items/${Ae}`,V);return ae}if(o(A.items)!=="object")return ae;let Ce=Ai(T,A.items,I,U);if(Ce===!1)return ae;if(U=Ce.pointer||U,Ce.oneOf&&ae.length===0){let Ae=Ce.oneOf[0];for(let ze=0;ze<A.minItems;ze+=1)ae[ze]=Ir(T,ae[ze]==null?oe[ze]:ae[ze],Ae,`${U}/oneOf/0`,V);return ae}if(Ce.oneOf&&ae.length>0){let Ae=Math.max(A.minItems,ae.length);for(let ze=0;ze<Ae;ze+=1){let st=ae[ze]==null?oe[ze]:ae[ze],Ge=N(T,st,Ce);Ge==null||a(Ge)?st!=null&&V.removeInvalidData!==!0?ae[ze]=st:(st=void 0,Ge=Ce.oneOf[0],ae[ze]=Ir(T,st,Ge,`${U}/oneOf/${ze}`,V)):ae[ze]=Ir(T,st,Ge,`${U}/oneOf/${ze}`,V)}return ae}if(Ce.type){for(let Ae=0,ze=Math.max(A.minItems,ae.length);Ae<ze;Ae+=1)ae[Ae]=Ir(T,ae[Ae]==null?oe[Ae]:ae[Ae],Ce,`${U}/items`,V);return ae}return ae}};function Fn(T,A,I){return A??(T.const?T.const:T.default===void 0&&Array.isArray(T.enum)?T.enum[0]:T.default===void 0?I:T.default)}let Kn=(T,A,I=T.rootSchema,U=hs)=>(qr={mi:{}},Ir(T,A,I,"#",U));function xi(T,A,I=T.rootSchema,U="#"){return T.validate(A,I,U).length===0}function Ci(T,A){let I=typeof T;if(I!==typeof A)return!1;if(Array.isArray(T)){if(!Array.isArray(A))return!1;let U=T.length;if(U!==A.length)return!1;for(let V=0;V<U;V++)if(!Ci(T[V],A[V]))return!1;return!0}if(I==="object"){if(!T||!A)return T===A;let U=Object.keys(T),V=Object.keys(A);if(U.length!==V.length)return!1;for(let te of U)if(!Ci(T[te],A[te]))return!1;return!0}return T===A}function Ii(T){let A=[],I=0,U=T.length;for(;I<U;){let V=T.charCodeAt(I++);if(V>=55296&&V<=56319&&I<U){let te=T.charCodeAt(I++);(64512&te)==56320?A.push(((1023&V)<<10)+(1023&te)+65536):(A.push(V),I--)}else A.push(V)}return A}let Yn=u.floatingPointPrecision,ho=Object.prototype.hasOwnProperty,Ji=(T,A)=>!(T[A]===void 0||!ho.call(T,A)),vo={additionalProperties:(T,A,I,U)=>{if(A.additionalProperties===!0||A.additionalProperties==null||o(A.patternProperties)==="object"&&A.additionalProperties===!1)return;let V=[],te=Object.keys(I).filter(Q=>u.propertyBlacklist.includes(Q)===!1),W=Object.keys(A.properties||{});if(o(A.patternProperties)==="object"){let Q=Object.keys(A.patternProperties).map(oe=>new RegExp(oe));te=te.filter(oe=>{for(let ae=0;ae<Q.length;ae+=1)if(Q[ae].test(oe))return!1;return!0})}for(let Q=0,oe=te.length;Q<oe;Q+=1){let ae=te[Q];if(W.indexOf(ae)===-1){let Ce=typeof A.additionalProperties=="object";if(Ce&&Array.isArray(A.additionalProperties.oneOf)){let Ae=T.resolveOneOf(I[ae],A.additionalProperties,`${U}/${ae}`);a(Ae)?V.push(T.errors.additionalPropertiesError({schema:A.additionalProperties,property:te[Q],properties:W,pointer:U,errors:Ae.data.errors})):V.push(...T.validate(I[ae],Ae,U))}else Ce?V.push(...T.validate(I[ae],A.additionalProperties,`${U}/${ae}`)):V.push(T.errors.noAdditionalPropertiesError({property:te[Q],properties:W,pointer:U}))}}return V},allOf:(T,A,I,U)=>{if(Array.isArray(A.allOf)===!1)return;let V=[];return A.allOf.forEach(te=>{V.push(...T.validate(I,te,U))}),V},anyOf:(T,A,I,U)=>{if(Array.isArray(A.anyOf)!==!1){for(let V=0;V<A.anyOf.length;V+=1)if(T.isValid(I,A.anyOf[V]))return;return T.errors.anyOfError({anyOf:A.anyOf,value:I,pointer:U})}},dependencies:(T,A,I,U)=>{if(o(A.dependencies)!=="object")return;let V=[];return Object.keys(I).forEach(te=>{if(A.dependencies[te]===void 0||A.dependencies[te]===!0)return;if(A.dependencies[te]===!1)return void V.push(T.errors.missingDependencyError({pointer:U}));let W,Q=o(A.dependencies[te]);if(Q==="array")W=A.dependencies[te].filter(oe=>I[oe]===void 0).map(oe=>T.errors.missingDependencyError({missingProperty:oe,pointer:U}));else{if(Q!=="object")throw new Error(`Invalid dependency definition for ${U}/${te}. Must be list or schema`);W=T.validate(I,A.dependencies[te],U)}V.push(...W)}),V.length>0?V:void 0},enum:(T,A,I,U)=>{let V=o(I);if(V==="object"||V==="array"){let te=JSON.stringify(I);for(let W=0;W<A.enum.length;W+=1)if(JSON.stringify(A.enum[W])===te)return}else if(A.enum.includes(I))return;return T.errors.enumError({values:A.enum,value:I,pointer:U})},format:(T,A,I,U)=>{if(T.validateFormat[A.format])return T.validateFormat[A.format](T,A,I,U)},items:(T,A,I,U)=>{if(A.items===!1)return Array.isArray(I)&&I.length===0?void 0:T.errors.invalidDataError({pointer:U,value:I});let V=[];for(let te=0;te<I.length;te+=1){let W=I[te],Q=T.step(te,A,I,U);if(a(Q))return[Q];let oe=T.validate(W,Q,`${U}/${te}`);V.push(...oe)}return V},maximum:(T,A,I,U)=>{if(!isNaN(A.maximum))return A.maximum&&A.maximum<I||A.maximum&&A.exclusiveMaximum===!0&&A.maximum===I?T.errors.maximumError({maximum:A.maximum,length:I,pointer:U}):void 0},maxItems:(T,A,I,U)=>{if(!isNaN(A.maxItems))return A.maxItems<I.length?T.errors.maxItemsError({maximum:A.maxItems,length:I.length,pointer:U}):void 0},maxLength:(T,A,I,U)=>{if(isNaN(A.maxLength))return;let V=Ii(I).length;return A.maxLength<V?T.errors.maxLengthError({maxLength:A.maxLength,length:V,pointer:U}):void 0},maxProperties:(T,A,I,U)=>{let V=Object.keys(I).length;if(isNaN(A.maxProperties)===!1&&A.maxProperties<V)return T.errors.maxPropertiesError({maxProperties:A.maxProperties,length:V,pointer:U})},minLength:(T,A,I,U)=>{if(isNaN(A.minLength))return;let V=Ii(I).length;return A.minLength>V?A.minLength===1?T.errors.minLengthOneError({minLength:A.minLength,length:V,pointer:U}):T.errors.minLengthError({minLength:A.minLength,length:V,pointer:U}):void 0},minimum:(T,A,I,U)=>{if(!isNaN(A.minimum))return A.minimum>I||A.exclusiveMinimum===!0&&A.minimum===I?T.errors.minimumError({minimum:A.minimum,length:I,pointer:U}):void 0},minItems:(T,A,I,U)=>{if(!isNaN(A.minItems))return A.minItems>I.length?A.minItems===1?T.errors.minItemsOneError({minItems:A.minItems,length:I.length,pointer:U}):T.errors.minItemsError({minItems:A.minItems,length:I.length,pointer:U}):void 0},minProperties:(T,A,I,U)=>{if(isNaN(A.minProperties))return;let V=Object.keys(I).length;return A.minProperties>V?T.errors.minPropertiesError({minProperties:A.minProperties,length:V,pointer:U}):void 0},multipleOf:(T,A,I,U)=>{if(!isNaN(A.multipleOf))return I*Yn%(A.multipleOf*Yn)/Yn!=0?T.errors.multipleOfError({multipleOf:A.multipleOf,value:I,pointer:U}):void 0},not:(T,A,I,U)=>{let V=[];return T.validate(I,A.not,U).length===0&&V.push(T.errors.notError({value:I,not:A.not,pointer:U})),V},oneOf:(T,A,I,U)=>{if(Array.isArray(A.oneOf)!==!1)return a(A=T.resolveOneOf(I,A,U))?A:void 0},pattern:(T,A,I,U)=>{if(new RegExp(A.pattern,"u").test(I)===!1)return T.errors.patternError({pattern:A.pattern,description:A.patternExample||A.pattern,received:I,pointer:U})},patternProperties:(T,A,I,U)=>{let V=A.properties||{},te=A.patternProperties;if(o(te)!=="object")return;let W=[],Q=Object.keys(I),oe=Object.keys(te).map(ae=>({regex:new RegExp(ae),patternSchema:te[ae]}));return Q.forEach(ae=>{let Ce=!1;for(let Ae=0,ze=oe.length;Ae<ze;Ae+=1)if(oe[Ae].regex.test(ae)){Ce=!0;let st=T.validate(I[ae],oe[Ae].patternSchema,`${U}/${ae}`);st&&st.length>0&&W.push(...st)}V[ae]||Ce===!1&&A.additionalProperties===!1&&W.push(T.errors.patternPropertiesError({key:ae,pointer:U,patterns:Object.keys(te).join(",")}))}),W},properties:(T,A,I,U)=>{let V=[],te=Object.keys(A.properties||{});for(let W=0;W<te.length;W+=1){let Q=te[W];if(Ji(I,Q)){let oe=T.step(Q,A,I,U),ae=T.validate(I[Q],oe,`${U}/${Q}`);V.push(...ae)}}return V},propertiesRequired:(T,A,I,U)=>{let V=[],te=Object.keys(A.properties||{});for(let W=0;W<te.length;W+=1){let Q=te[W];if(I[Q]===void 0)V.push(T.errors.requiredPropertyError({key:Q,pointer:U}));else{let oe=T.step(Q,A,I,U),ae=T.validate(I[Q],oe,`${U}/${Q}`);V.push(...ae)}}return V},required:(T,A,I,U)=>{if(Array.isArray(A.required)!==!1)return A.required.map(V=>{if(!Ji(I,V))return T.errors.requiredPropertyError({key:V,pointer:U})})},requiredNotEmpty:(T,A,I,U)=>{if(Array.isArray(A.required)!==!1)return A.required.map(V=>{if(I[V]==null||I[V]==="")return T.errors.valueNotEmptyError({property:V,pointer:`${U}/${V}`})})},uniqueItems:(T,A,I,U)=>{if((Array.isArray(I)&&A.uniqueItems)===!1)return;let V=[];return I.forEach((te,W)=>{for(let Q=W+1;Q<I.length;Q+=1)Ci(te,I[Q])&&V.push(T.errors.uniqueItemsError({pointer:U,itemPointer:`${U}/${W}`,duplicatePointer:`${U}/${Q}`,value:JSON.stringify(te)}))}),V}},gs=vo,Bs=Object.assign(Object.assign({},gs),{contains:(T,A,I,U)=>{if(A.contains===!1)return T.errors.containsArrayError({pointer:U,value:I});if(A.contains===!0)return Array.isArray(I)&&I.length===0?T.errors.containsAnyError({pointer:U}):void 0;if(o(A.contains)==="object"){for(let V=0;V<I.length;V+=1)if(T.isValid(I[V],A.contains))return;return T.errors.containsError({pointer:U,schema:JSON.stringify(A.contains)})}},exclusiveMaximum:(T,A,I,U)=>{if(!isNaN(A.exclusiveMaximum))return A.exclusiveMaximum<=I?T.errors.maximumError({maximum:A.exclusiveMaximum,length:I,pointer:U}):void 0},exclusiveMinimum:(T,A,I,U)=>{if(!isNaN(A.exclusiveMinimum))return A.exclusiveMinimum>=I?T.errors.minimumError({minimum:A.exclusiveMinimum,length:I,pointer:U}):void 0},if:(T,A,I,U)=>{if(A.if==null)return;let V=T.validate(I,A.if,U);return V.length===0&&A.then?T.validate(I,A.then,U):V.length!==0&&A.else?T.validate(I,A.else,U):void 0},maximum:(T,A,I,U)=>{if(!isNaN(A.maximum))return A.maximum&&A.maximum<I?T.errors.maximumError({maximum:A.maximum,length:I,pointer:U}):void 0},minimum:(T,A,I,U)=>{if(!isNaN(A.minimum))return A.minimum>I?T.errors.minimumError({minimum:A.minimum,length:I,pointer:U}):void 0},patternProperties:(T,A,I,U)=>{let V=A.properties||{},te=A.patternProperties;if(o(te)!=="object")return;let W=[],Q=Object.keys(I),oe=Object.keys(te).map(ae=>({regex:new RegExp(ae),patternSchema:te[ae]}));return Q.forEach(ae=>{let Ce=!1;for(let Ae=0,ze=oe.length;Ae<ze;Ae+=1)if(oe[Ae].regex.test(ae)){if(Ce=!0,oe[Ae].patternSchema===!1)return void W.push(T.errors.patternPropertiesError({key:ae,pointer:U,patterns:Object.keys(te).join(",")}));let st=T.validate(I[ae],oe[Ae].patternSchema,`${U}/${ae}`);st&&st.length>0&&W.push(...st)}V[ae]||Ce===!1&&A.additionalProperties===!1&&W.push(T.errors.patternPropertiesError({key:ae,pointer:U,patterns:Object.keys(te).join(",")}))}),W},propertyNames:(T,A,I,U)=>{if(A.propertyNames===!1)return Object.keys(I).length===0?void 0:T.errors.invalidPropertyNameError({property:Object.keys(I),pointer:U,value:I});if(A.propertyNames===!0||o(A.propertyNames)!=="object")return;let V=[],te=Object.keys(I),W=Object.assign(Object.assign({},A.propertyNames),{type:"string"});return te.forEach(Q=>{let oe=T.validate(Q,W,`${U}/${Q}`);oe.length>0&&V.push(T.errors.invalidPropertyNameError({property:Q,pointer:U,validationError:oe[0],value:I[Q]}))}),V}}),Js=Bs;function qi(T,A,I=T.rootSchema,U="#"){let V=!1,te=m(I);for(let W=0;W<I.anyOf.length;W+=1){let Q=T.resolveRef(I.anyOf[W]);T.isValid(A,I.anyOf[W],U)&&(V=!0,te=h(te,Q))}return V===!1?tt.anyOfError({value:A,pointer:U,anyOf:JSON.stringify(I.anyOf)}):(delete te.anyOf,te)}function xr(T){let A={type:o(T)};return A.type==="object"&&(A.properties={},Object.keys(T).forEach(I=>A.properties[I]=xr(T[I]))),A.type==="array"&&T.length===1?A.items=xr(T[0]):A.type==="array"&&(A.items=T.map(xr)),A}function pi(T,A,I=T.rootSchema){let U=T.step(A,I,{},"#");return a(U)?U.code==="one-of-error"?U.data.oneOf.map(V=>T.resolveRef(V)):U:[U]}let mi={array:(T,A,I,U,V)=>{let te=o(I.items);if(te==="object")return Array.isArray(I.items.oneOf)?T.resolveOneOf(U[A],I.items,V):Array.isArray(I.items.anyOf)?T.resolveAnyOf(U[A],I.items,V):Array.isArray(I.items.allOf)?T.resolveAllOf(U[A],I.items,V):T.resolveRef(I.items);if(te==="array"){if(I.items[A]===!0)return xr(U[A]);if(I.items[A]===!1)return tt.invalidDataError({key:A,value:U[A],pointer:V});if(I.items[A])return T.resolveRef(I.items[A]);if(I.additionalItems===!1)return tt.additionalItemsError({key:A,value:U[A],pointer:V});if(I.additionalItems===!0||I.additionalItems===void 0)return xr(U[A]);if(o(I.additionalItems)==="object")return I.additionalItems;throw new Error(`Invalid schema ${JSON.stringify(I,null,4)} for ${JSON.stringify(U,null,4)}`)}return I.additionalItems!==!1&&U[A]?xr(U[A]):new Error(`Invalid array schema for ${A} at ${V}`)},object:(T,A,I,U,V)=>{if(Array.isArray(I.oneOf)){let Q=T.resolveOneOf(U,I,V);if(a(I=h(I,Q)))return I}if(Array.isArray(I.anyOf)&&a(I=T.resolveAnyOf(U,I,V))||Array.isArray(I.allOf)&&a(I=T.resolveAllOf(U,I,V)))return I;let te;if(I.properties&&I.properties[A]!==void 0){if(te=T.resolveRef(I.properties[A]),a(te))return te;if(te&&Array.isArray(te.oneOf)){let Q=T.resolveOneOf(U[A],te,`${V}/${A}`),oe=te.oneOf.findIndex(ae=>ae===Q);return Q.variableSchema=!0,Q.oneOfIndex=oe,Q.oneOfSchema=te,Q}if(te)return te}let{dependencies:W}=I;if(o(W)==="object"){let Q=Object.keys(W).filter(oe=>o(W[oe])==="object");for(let oe=0,ae=Q.length;oe<ae;oe+=1){let Ce=Q[oe],Ae=Nr(T,A,W[Ce],U,`${V}/${Ce}`);if(!a(Ae))return Ae}}if(I.if&&(I.then||I.else)){let Q=T.isValid(U,I.if);if(Q&&I.then){let oe=Nr(T,A,I.then,U,V);if(typeof oe.type=="string"&&oe.type!=="error")return oe}if(!Q&&I.else){let oe=Nr(T,A,I.else,U,V);if(typeof oe.type=="string"&&oe.type!=="error")return oe}}if(o(I.patternProperties)==="object"){let Q,oe=Object.keys(I.patternProperties);for(let ae=0,Ce=oe.length;ae<Ce;ae+=1)if(Q=new RegExp(oe[ae]),Q.test(A))return I.patternProperties[oe[ae]]}return o(I.additionalProperties)==="object"?I.additionalProperties:I.additionalProperties===!0?xr(U[A]):tt.unknownPropertyError({property:A,value:U,pointer:`${V}`})}};function Nr(T,A,I,U,V="#"){if(Array.isArray(I.type)){let Q=o(U);return I.type.includes(Q)?mi[Q](T,`${A}`,I,U,V):T.errors.typeError({value:U,pointer:V,expected:I.type,received:Q})}let te=I.type||o(U),W=mi[te];return W?W(T,`${A}`,I,U,V):new Error(`Unsupported schema type ${I.type} for key ${A}`)}let Wi={array:(T,A,I,U)=>T.typeKeywords.array.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),object:(T,A,I,U)=>T.typeKeywords.object.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),string:(T,A,I,U)=>T.typeKeywords.string.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),integer:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),number:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),boolean:(T,A,I,U)=>T.typeKeywords.boolean.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),null:(T,A,I,U)=>T.typeKeywords.null.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U))};var An=__webpack_require__(63),ys=__webpack_require__.n(An);function Ti(T,A,I=T.rootSchema,U="#"){if(o(I=T.resolveRef(I))==="boolean")return I?[]:[T.errors.invalidDataError({value:A,pointer:U})];if(a(I))return[I];if(I.const!==void 0)return ys()(I.const,A)?[]:[T.errors.constError({value:A,expected:I.const,pointer:U})];let V=function(W,Q){let oe=o(W);return oe==="number"&&(Q==="integer"||Array.isArray(Q)&&Q.includes("integer"))?Number.isInteger(W)||isNaN(W)?"integer":"number":oe}(A,I.type),te=I.type||V;return V===te||Array.isArray(te)&&te.includes(V)?T.validateType[V]==null?[T.errors.invalidTypeError({receivedType:V,pointer:U})]:d(T.validateType[V](T,I,A,U)).filter(c):[T.errors.typeError({received:V,expected:te,value:A,pointer:U})]}let fi={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","exclusiveMaximum","exclusiveMinimum","format","if","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:Js,validateType:Wi,validateFormat:Bi,errors:tt,addRemoteSchema:ie,compileSchema:mr,createSchemaOf:xr,each:Jt,eachSchema:H,getChildSchemaSelection:pi,getSchema:k,getTemplate:Kn,isValid:xi,resolveAllOf:j,resolveAnyOf:qi,resolveOneOf:f,resolveRef:C,step:Nr,validate:Ti};class oa extends Y{constructor(A,I={}){super(h(fi,I),A)}}let Ss=Object.assign(Object.assign({},fi),{resolveOneOf:N,resolveRef:q});class Ws extends Y{constructor(A,I={}){super(h(Ss,I),A)}}class Ln{constructor(A,I){this.core=new Ws(A),this.schema=A,this.data=I,this.cache={}}updateData(A){this.data=A,this.cache={}}updateSchema(A){this.schema=A,this.core.setSchema(A),this.cache={}}get(A,I){if(I){let Q=k(this.core,A,I,this.schema);return m(Q)}if(A==="#")return this.schema;if(this.cache[A])return this.cache[A];let U=R().join(A,".."),V=this.cache[U];V==null&&(V=k(this.core,U,this.data,this.schema),V.variableSchema!==!0&&(this.cache[U]=m(V)));let te=R().split(A).pop(),W=k(this.core,te,R().get(this.data,U),this.cache[U]);return W=m(W),W.variableSchema!==!0&&(this.cache[A]=W),W}}function _i(T,A,I){let{schema:U,pointer:V,onError:te}=Object.assign({schema:T.rootSchema,pointer:"#"},I),W=T.validate(A,U,V);if(te){W=d(W);let Q=function(oe){return function ae(Ce){return Array.isArray(Ce)?((Ce=d(Ce)).forEach(ae),Ce):(a(Ce)&&oe(Ce),Ce)}}(te);for(let oe=0;oe<W.length;oe+=1)W[oe]instanceof Promise?W[oe].then(Q):a(W[oe])&&te(W[oe])}return Promise.all(W).then(d).then(Q=>Q.filter(l)).catch(Q=>{throw console.log("Failed resolving promises",Q.message),console.log(Q.stack),Q})}let ws="__compiled",Ki="__ref",Ks=/(#|\/)+$/g,Oi={typeKeywords:{array:["allOf","anyOf","enum","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["enum","not","allOf","anyOf","oneOf"],object:["additionalProperties","dependencies","enum","format","minProperties","maxProperties","patternProperties","properties","required","not","oneOf","allOf","anyOf"],string:["allOf","anyOf","enum","format","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","format","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:gs,validateType:{array:(T,A,I,U)=>T.typeKeywords.array.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),object:(T,A,I,U)=>T.typeKeywords.object.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),string:(T,A,I,U)=>T.typeKeywords.string.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),integer:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),number:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),boolean:(T,A,I,U)=>T.typeKeywords.boolean.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),null:(T,A,I,U)=>T.typeKeywords.null.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U))},validateFormat:Bi,errors:tt,addRemoteSchema:ie,compileSchema:function(T,A,I=A,U=!1){if(!A||A[ws]!==void 0)return A;let V={ids:{},remotes:T.remotes},te=JSON.stringify(A),W=JSON.parse(te);if(Object.defineProperty(W,ws,{enumerable:!1,value:!0}),Object.defineProperty(W,"getRef",{enumerable:!1,value:Je.bind(null,V,W)}),U===!1&&te.includes("$ref")===!1)return W;A!==I&&Object.defineProperty(W,"definitions",{enumerable:!1,value:Object.assign({},I.definitions,I.$defs,A.definitions,A.$defs)});let Q={},oe=()=>W;return H(W,(ae,Ce)=>{var Ae;if(ae.id){if(ae.id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(Ce)){let ot=Ce.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),ct=(0,b.get)(W,ot);ae.id=(Ae=ct.id)!==null&&Ae!==void 0?Ae:ae.id}V.ids[ae.id.replace(Ks,"")]=Ce}let ze=(Ce=`#${Ce}`.replace(/##+/,"#")).replace(/\/[^/]+$/,""),st=Ce.replace(/\/[^/]+\/[^/]+$/,""),Ge=Ie(Q[ze]||Q[st],ae.id);Q[Ce]=Ge,V.ids[Ge]==null&&(V.ids[Ge]=Ce),ae.$ref&&!ae[Ki]&&(Object.defineProperty(ae,Ki,{enumerable:!1,value:Ie(Ge,ae.$ref)}),Object.defineProperty(ae,"getRoot",{enumerable:!1,value:oe}))}),W},createSchemaOf:xr,each:Jt,eachSchema:H,getChildSchemaSelection:pi,getSchema:k,getTemplate:Kn,isValid:xi,resolveAllOf:j,resolveAnyOf:qi,resolveOneOf:f,resolveRef:C,step:Nr,validate:Ti};class hi extends Y{constructor(A,I={}){super(h(Oi,I),A)}}let Ys={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["enum","exclusiveMaximum","exclusiveMinimum","format","maximum","minimum","multipleOf","not","oneOf","allOf","anyOf","if"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:Js,validateType:Wi,validateFormat:Bi,errors:tt,addRemoteSchema:ie,compileSchema:mr,createSchemaOf:xr,each:Jt,eachSchema:H,getChildSchemaSelection:pi,getSchema:k,getTemplate:Kn,isValid:xi,resolveAllOf:j,resolveAnyOf:qi,resolveOneOf:f,resolveRef:C,step:Nr,validate:Ti};class go extends Y{constructor(A,I={}){super(h(Ys,I),A)}}let Qs={strings:e}})(),__webpack_exports__})())}}),require_matrixAssetValidator=__commonJS({"../dx-json-schema-lib/lib/validators/utils/matrixAssetValidator.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isMatrixAssetUri=void 0;function t(r){return typeof r!="string"?!1:/^matrix-asset:\/\/[a-zA-Z0-9.-]+\/[a-zA-Z0-9\/._-]+\/?([0-9]+(?:\:[0-9a-z\-\._/]+\$?)?)?$/.test(r)}e.isMatrixAssetUri=t}}),require_customFormatValidators=__commonJS({"../dx-json-schema-lib/lib/validators/customFormatValidators.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.customFormatValidators=void 0;var t=require_SchemaValidationError(),r=require_matrixAssetValidator();e.customFormatValidators={"matrix-asset-uri":(n,i,s)=>{if((0,r.isMatrixAssetUri)(s)===!1)throw new t.SchemaValidationError(`value "${s}" isn't a valid matrix asset uri`)}}}}),require_JsonResolutionError=__commonJS({"../dx-json-schema-lib/lib/errors/JsonResolutionError.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JsonResolutionError=void 0;var t=class extends Error{constructor(r,n,i){super(`Error resolving JSON at ${n}: ${r.message}`),this.pointer=n,this.value=i}};e.JsonResolutionError=t}}),require_JsonValidationService=__commonJS({"../dx-json-schema-lib/lib/JsonValidationService.js"(e){"use strict";var t=e&&e.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0}),e.JsonValidationService=e.JSONSchemaService=e.ManifestV1MetaSchema=e.RenderInputMetaSchema=e.ComponentInputMetaSchema=e.RenderInputSchema=e.ComponentInputSchema=void 0;var r=t(require_jsonQuery()),n=t(require_DxComponentInputSchema()),i=t(require_DxComponentIcons()),s=t(require_DxContentMetaSchema()),o=t(require_MatrixAssetSchema()),a=t(require_Draft_07()),c=t(require_formattedText2()),l=t(require_v12()),d=require_SchemaValidationError(),u=require_jsonSchemaLibrary(),p=require_jsonSchemaLibrary(),f=require_customFormatValidators(),m=require_JsonResolutionError(),v={...p.draft07Config,validateFormat:{...p.draft07Config.validateFormat,...f.customFormatValidators},errors:{...p.draft07Config.errors,enumError(w){let j="[]";return w.values&&Array.isArray(w.values)&&(w.values.length<5?j=`[${w.values.join(", ")}]`:j=`[${w.values.slice(0,5).join(", ")}, ... ${w.values.length-5} more]`),{type:"error",name:"EnumError",code:"enum-error",message:`Expected given value \`${w.value}\` in ${w.pointer}\` to be one of \`${j}\``,data:w}},anyOfError(w){let j=`Value \`${w.value}\` at`;return typeof w.value=="object"&&(j="Object at"),Array.isArray(w.value)&&(j="Array at"),{type:"error",name:"AnyOfError",code:"any-of-error",message:`${j} \`${w.pointer}\` does not match any schema`,data:w}}}},g=new u.Draft07(c.default,v);e.ComponentInputSchema=new u.Draft({...v,resolveRef(w,j){let x=p.draft07Config.resolveRef(w,j);return x&&(x.type==="FormattedText"?g.rootSchema:Array.isArray(x.type)&&x.type.includes("FormattedText")?{...w,...g.rootSchema,type:x.type.filter(O=>O!=="FormattedText").concat(c.default.type)}:x)}},n.default),e.ComponentInputSchema.addRemoteSchema("DxComponentInputSchema.json/DxContentMetaSchema.json",s.default),e.RenderInputSchema=new u.Draft({...v,resolveRef(w,j){let x=p.draft07Config.resolveRef(w,j);return x&&(x.type==="FormattedText"?{type:"string"}:Array.isArray(x.type)&&x.type.includes("FormattedText")?{...w,type:x.type.filter(O=>O!=="FormattedText").concat("string")}:x)}});var y=new u.Draft07(l.default,v);y.addRemoteSchema("DxComponentInputSchema.json/DxContentMetaSchema.json",s.default),y.addRemoteSchema("/DxComponentInputSchema.json",e.ComponentInputSchema.getSchema()),y.addRemoteSchema("/DxComponentIcons.json",i.default),y.addRemoteSchema("/MatrixAssetSchema.json",o.default),y.addRemoteSchema("http://json-schema.org/draft-07/schema",a.default),y.addRemoteSchema("http://json-schema.org/draft-07/schema#",a.default),e.ComponentInputMetaSchema={root:n.default,remotes:{"DxComponentInputSchema.json/DxContentMetaSchema.json":s.default}},e.RenderInputMetaSchema={root:a.default},e.ManifestV1MetaSchema={root:l.default,remotes:{"DxComponentInputSchema.json/DxContentMetaSchema.json":s.default,"/DxComponentInputSchema.json":n.default,"/DxComponentIcons.json":i.default,"/MatrixAssetSchema.json":o.default,"http://json-schema.org/draft-07/schema":a.default,"http://json-schema.org/draft-07/schema#":a.default}};var h=class{constructor(w,j){this.typeResolver=w,this.schema=new u.Draft({...v,resolveRef:(x,O)=>this.doResolveRef(x,O),validate:(x,O,N,C)=>v.validate(x,O,N,C),resolveOneOf:(x,O,N,C)=>v.resolveOneOf(x,O,N,C)},j.root);for(let[x,O]of Object.entries(j.remotes||{}))this.schema.addRemoteSchema(x,O);for(let x of this.typeResolver.validationSchemaDefinitions)this.schema.addRemoteSchema(`/${x.title}.json`,x),this.schema.addRemoteSchema(`#/${x.title}.json`,x)}doResolveRef(w,j){let x=p.draft07Config.resolveRef(w,j);if(!x||!this.typeResolver.isPrimitiveType(x.type))return x;let N={oneOf:this.typeResolver.getValidationSchemaForPrimitive(x.type).map(C=>({$ref:`${C.title}.json`}))};return this.schema.compileSchema(N)}validateInput(w,j=this.schema.rootSchema){j=this.schema.compileSchema(j);let x=this.schema.validate(w,j);return this.processValidationResult(x)}processValidationResult(w){if(w.length>0)throw new d.SchemaValidationError(w.map(j=>j.message).join(`,
|
|
276
|
+
`,$=new z.Z.Parser(D),ee=T=>$.getAST(T),_e=(T,A)=>`${T}/${A}`,re=Object.prototype.toString,me=/Object|Array/,Se=T=>me.test(re.call(T));function Ee(T){return new RegExp(T.text.replace(/(^{|}$)/g,""))}function ce(T){return Array.isArray(T)?T.map(function(A,I){return`${I}`}):Object.prototype.toString.call(T)==="[object Object]"?Object.keys(T):[]}let ue={mem:[],get(T,A){let I=T[0][A];if(!ue.mem.includes(I))return Se(I)&&ue.mem.push(I),[I,A,T[0],_e(T[3],A)]},reset(){ue.mem.length=0}},B={any(T,A){let I=A[0];return ce(I).map(U=>[I[U],U,I,_e(A[3],U)])},all(T,A){let I=[A];var U,V;return U=A[0],V=(te,W)=>{let Q=ue.get(A,W);Q&&I.push(...B.all(T,Q))},Array.isArray(U)?U.forEach(V):Object.prototype.toString.call(U)==="[object Object]"&&Object.keys(U).forEach(function(te){V(U[te],te,U)}),I},regex(T,A){let I=Ee(T),U=A[0];return ce(U).filter(V=>I.test(V)).map(V=>[U[V],V,U,_e(A[3],V)])}},K={escaped:(T,A)=>K.property(T,A),property:(T,A)=>{let I=T.text;if(A[0]&&A[0][I]!==void 0)return[A[0][I],I,A[0],_e(A[3],I)]},typecheck:(T,A)=>{let I=T.text.replace(/^\?:/,"");if(I==="value")return Se(A[0])?void 0:A;var U;return U=A[0],re.call(U).match(/\s([^\]]+)\]/).pop().toLowerCase()===I?A:void 0},lookahead:(T,A)=>{let I=!0,U=!1;return T.children.forEach(V=>{if(V.type==="expression"){let te=K.expression(V,A)!==void 0;I=U===!0?I||te:I&&te}else U=V.type==="orExpr"}),I?A:void 0},expression:(T,A)=>{let I=T.children[0].text,U=T.children[1],V=T.children[2],te=A[0];if(Se(te)!==!1)return function(W,Q,oe){if(Q===void 0)return W!==void 0;let ae,Ce=`${W}`;return oe.type==="regex"?ae=Ee(oe).test(Ce):ae=Ce===oe.text,Q.type==="isnot"&&(ae=ae===!1&&W!==void 0),ae}(te[I],U,V)?A:void 0}};function pe(T,A,I){let U=[],V=T;return A.children.forEach(te=>{if(te.type==="orPattern")return U.push(...V),void(V=T);V=se(V,te,I)}),U.push(...V),U}function ge(T,A,I){let U=[],V=A.children.find(oe=>oe.type==="quantifier"),te=function(oe){if(oe==null)return 1;if(oe==="*"||oe==="+")return 1/0;let ae=parseInt(oe);return isNaN(ae)?1:ae}(V&&V.text),W=T;V&&V.text==="*"&&U.push(...W);let Q=0;for(;W.length>0&&Q<te;)W=pe(W,A,I),U.push(...W),Q+=1;return U}function se(T,A,I){let U;return U=A.type==="query"?function(V,te,W){let Q=V;return te.children.forEach(oe=>{if(B[oe.type])Q=function(ae,Ce,Ae,ze){let st=[];for(let Ge=0,ot=Ce.length;Ge<ot;Ge+=1)st.push(...ae(Ae,Ce[Ge],Ae,ze));return st}(B[oe.type],Q,oe,W);else{if(!K[oe.type])throw new Error(`Unknown filter ${oe.type}`);Q=function(ae,Ce,Ae,ze){let st=[];for(let Ge=0,ot=Ce.length;Ge<ot;Ge+=1){let ct=ae(Ae,Ce[Ge],ze);ct&&st.push(ct)}return st}(K[oe.type],Q,oe,W)}}),Q}(T,A,I):A.type==="pattern"?ge(T,A,I):function(V,te,W){let Q=V;return te.children.forEach(oe=>Q=se(Q,oe,W)),Q}(T,A,I),ue.reset(),ue.mem.push(T),U}let ne={value:T=>T.map(A=>A[0]),pointer:T=>T.map(A=>A[3]),all:T=>T,map:T=>{let A={};return T.forEach(I=>A[I[3]]=I[0]),A}};var be;function Te(T,A,I=be.VALUE){if(A==null)return[];(A=A.replace(/(\/$)/g,""))===""&&(A="#");let U=ee(A);if(U==null)throw new Error(`empty ast for '${A}'`);if(U.rest!=="")throw new Error(`Failed parsing queryString from: '${U.rest}'`);let V=function(te,W){return ue.reset(),ue.mem.push(te),se([[te,null,null,"#"]],W)}(T,U);return typeof I=="function"?V.map(te=>I(...te)):ne[I]?ne[I](V):V}(function(T){T.POINTER="pointer",T.VALUE="value",T.ALL="all",T.MAP="map"})(be||(be={})),Te.POINTER=be.POINTER,Te.VALUE=be.VALUE,Te.ALL=be.ALL,Te.MAP=be.MAP;let We=["root","recursion"];function Ke(T,A=[]){return We.includes(T.type)?(T.children.forEach(I=>Ke(I,A)),A):(A.push(T.text),A)}function Ze(T){return T==null||T===""?[]:Ke(ee(T))}let dt=T=>JSON.parse(JSON.stringify(T)),Nt=Object.prototype.toString,Et=T=>Nt.call(T).match(/\s([^\]]+)\]/).pop().toLowerCase(),kt=new RegExp(`^("[^"]+"|${L})$`),Vt=["string","number","boolean","null"],Dt=/^\[\d*\]$/,It=/^\[(\d+)\]$/,Mt=/^".+"$/,er=/(^\[\d*\]$|^\d+$)/;function gr(T){return parseInt(T.replace(/^(\[|\]$)/,""))}function Bt(T){return Mt.test(T)?T.replace(/(^"|"$)/g,""):T}function fe(T,A,I,U){let V=T[0];if(/^\[\]$/.test(A)){V.push(I);let te=V.length-1;return[V[te],te,V,`${T[3]}/${te}}`]}if(U==null&&Et(V[A])==="object"&&Et(I)==="object")return[V[A],A,V,`${T[3]}/${A}}`];if(U===Ct.INSERT_ITEMS||U==null&&It.test(A)){let te=gr(A);return function(W,Q,oe){W.length<=Q?W[Q]=oe:W.splice(Q,0,oe)}(V,te,I),[V[te],te,V,`${T[3]}/${te}}`]}if(U===Ct.REPLACE_ITEMS||U==null){let te=gr(A);return V[te]=I,[V[te],te,V,`${T[3]}/${te}}`]}throw new Error(`Unknown array index '${A}' with force-option '${U}'`)}var pr;function Ct(T,A,I,U){if(A==null)return dt(T);if((A=A.replace(/(\/$)/g,""))==="")return dt(I);let V=dt(T),te=[[V,null,null,"#"]],W=Ze(A),Q=W.pop(),oe=Dt.test(Q)&&It.test(Q)===!1;if(kt.test(Q)===!1||oe)throw new Error(`Unsupported query '${A}' ending with non-property`);return W.forEach((ae,Ce)=>{if(ae==="__proto__"||ae==="prototyped"||ae==="constructor")return;if(kt.test(ae)===!1)return void(te=function(st,Ge){let ot=[];return st.forEach(ct=>ot.push(...Te(ct[0],Ge,be.ALL))),ot}(te,ae));let Ae=Ce>=W.length-1?Q:W[Ce+1],ze=er.test(Ae);te=function(st,Ge,ot,ct){return Ge=Bt(Ge),st.filter(ut=>!(!Array.isArray(ut[0])||!er.test(Ge))||Vt.includes(Et(ut[0][Ge]))===!1).map(ut=>{let E=ot?[]:{},M=ut[0];return Array.isArray(M)?fe(ut,Ge,E,ct):(M[Ge]=M[Ge]||E,[M[Ge],Ge,M,`${ut[3]}/${Ge}`])})}(te,ae,ze,U)}),te.forEach(ae=>{let Ce=I;Et(I)==="function"&&(Ce=I(ae[3],Q,ae[0],`${ae[3]}/${Q}`));let Ae=ae[0];if(Array.isArray(Ae))fe(ae,Q,Ce,U);else{let ze=Bt(Q);if(ze==="__proto__"||ze==="prototyped"||ze==="constructor")return;Ae[ze]=Ce}}),V}(function(T){T.REPLACE_ITEMS="replace",T.INSERT_ITEMS="insert"})(pr||(pr={})),Ct.REPLACE_ITEMS=pr.REPLACE_ITEMS,Ct.INSERT_ITEMS=pr.INSERT_ITEMS;let Yt={$ref:{type:!1},allOf:{type:!1,definitions:["allOf/*"]},anyOf:{type:!1,definitions:["anyOf/*"]},array:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","items","items/*","additionalItems"],validationKeywords:["minItems","maxItems","uniqueItems"],keywords:["items","additionalItems","minItems","maxItems","uniqueItems"]},boolean:{type:!0},enum:{type:!1},integer:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},not:{type:!1,definitions:["not"]},number:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},null:{type:!0},object:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","properties/*","additionalProperties","patternProperties/*","dependencies/*"],validationKeywords:["minProperties","maxProperties","required"],keywords:["properties","additionalProperties","patternProperties","dependencies","minProperties","maxProperties","required"]},oneOf:{type:!1,definitions:["oneOf/*"]},string:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minLength","maxLength","pattern"]}},Dr=Object.keys(Yt).filter(T=>Yt[T].type===!1),Lt=Object.prototype.hasOwnProperty;function et(T){if(A=T,Object.prototype.toString.call(A)!=="[object Object]")return;var A;if(T.enum)return"enum";if(Yt[T.type]||Array.isArray(T.type))return T.type;let I=Dr.filter(U=>T[U]);if(I.length===1)return I[0];if(I.length!==0)throw new Error(`Mutiple typeIds [${I.join(", ")}] matched in ${JSON.stringify(T)}`);for(let U=0,V=Yt.object.keywords.length;U<V;U+=1){let te=Yt.object.keywords[U];if(Lt.call(T,te))return"object"}for(let U=0,V=Yt.array.keywords.length;U<V;U+=1){let te=Yt.array.keywords[U];if(Lt.call(T,te))return"array"}}function Ft(T){let A=[],I=et(T);if(I==null)return A;let U;if(Array.isArray(I)){U={};for(let V=0,te=I.length;V<te;V+=1)Object.assign(U,Yt[I[V]])}else U=Yt[I];return U.definitions==null||U.definitions.forEach(V=>{Te(T,V,(te,W,Q,oe)=>{(ae=>Object.prototype.toString.call(ae)==="[object Object]")(te)&&et(te)&&A.push({pointer:R().join(R().split(oe),!1),def:te})})}),A}function at(T,A){this.callback(T,A)!==!0&&Ft(T).forEach(I=>this.nextTypeDefs(I.def,R().join(A,I.pointer,!1)))}function rt(T,A,I,U="definitions"){let V=A[U];Object.keys(V).forEach(te=>{if(V[te]!==!1&&(W=V[te],Object.prototype.toString.call(W)!=="[object Object]"))var W;else T.nextTypeDefs(V[te],R().join(I,U,te,!1))})}function H(T,A,I="#"){let U={callback:A,nextTypeDefs:at};U.nextTypeDefs(T,I),T.definitions!=null&&(U.callback=(V,te)=>{A(V,te),V.definitions!=null&&rt(U,V,te)},rt(U,T,I)),T.$defs!=null&&(U.callback=(V,te)=>{A(V,te),V.definitions!=null&&rt(U,V,te)},rt(U,T,I,"$defs"))}let de=/(#|\/)+$/,Z=/#$/,we=/^[^:]+:\/\/[^/]+\//,qe=/\/[^/]*$/,ye=/#.*$/;function Ie(T,A){return T==null&&A==null?"#":A==null?T.replace(Z,""):T==null?A.replace(Z,""):A[0]==="#"?`${T.replace(ye,"")}${A.replace(de,"")}`:we.test(A)?A.replace(Z,""):`${T.replace(qe,"")}/${A.replace(Z,"")}`}let Me=/(#|\/)+$/g,Re=["",null,"#"],Oe=/(#|\/)+$/g;function Je(T,A,I){if(o(I)==="object"&&(I=I.__ref||I.$ref),I==null)return A;let U,V=I.replace(Oe,"");if(T.remotes[V])return U=T.remotes[V],U&&U.$ref?Je(T,A,U.$ref):U;if(T.ids[I])return U=(0,b.get)(A,T.ids[I]),U&&U.$ref?Je(T,A,U.$ref):U;let te=function(W){if(Re.includes(W))return[];if((W=W.replace(Me,"")).indexOf("#")===-1)return[W.replace(Me,"")];if(W.indexOf("#")===0)return[W.replace(Me,"")];let Q=W.split("#");return Q[0]=Q[0].replace(Me,""),Q[1]=`#${Q[1].replace(Me,"")}`,Q}(I);if(te.length===0)return A;if(te.length===1){if(I=te[0],T.remotes[I])return U=T.remotes[I],Je(T,A,U.$ref);if(T.ids[I])return U=(0,b.get)(A,T.ids[I]),U&&U.$ref?Je(T,A,U.$ref):U}if(te.length===2){let W=te[0];if(I=te[1],T.remotes[W])return T.remotes[W].getRef?T.remotes[W].getRef(I):Je(T,T.remotes[W],I);if(T.ids[W])return Je(T,(0,b.get)(A,T.ids[W]),I)}return U=(0,b.get)(A,T.ids[I]||I),U&&U.$ref?Je(T,A,U.$ref):U}let lt="__compiled",zt="__ref",nr=/(#|\/)+$/g;function mr(T,A,I=A,U=!1){if(A===!0||A===!1||A===void 0||A[lt]!==void 0)return A;let V={ids:{},remotes:T.remotes},te=JSON.stringify(A),W=JSON.parse(te);if(Object.defineProperty(W,lt,{enumerable:!1,value:!0}),Object.defineProperty(W,"getRef",{enumerable:!1,value:Je.bind(null,V,W)}),U===!1&&te.includes("$ref")===!1)return W;W!==I&&Object.defineProperty(W,"$defs",{enumerable:!0,value:Object.assign({},I.definitions,I.$defs,W.definitions,W.$defs)});let Q={},oe=()=>W;return H(W,(ae,Ce)=>{var Ae;if(ae.$id){if(ae.$id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(Ce)){let ot=Ce.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),ct=(0,b.get)(W,ot);ae.$id=(Ae=ct.$id)!==null&&Ae!==void 0?Ae:ae.$id}V.ids[ae.$id.replace(nr,"")]=Ce}let ze=(Ce=`#${Ce}`.replace(/##+/,"#")).replace(/\/[^/]+$/,""),st=Ce.replace(/\/[^/]+\/[^/]+$/,""),Ge=Ie(Q[ze]||Q[st],ae.$id);Q[Ce]=Ge,V.ids[Ge]==null&&(V.ids[Ge]=Ce),ae.$ref&&!ae[zt]&&(Object.defineProperty(ae,zt,{enumerable:!1,value:Ie(Ge,ae.$ref)}),Object.defineProperty(ae,"getRoot",{enumerable:!1,value:oe}))}),W}function Jt(T,A,I,U=T.rootSchema,V="#"){U=T.resolveRef(U),I(U,A,V);let te=o(A);te==="object"?Object.keys(A).forEach(W=>{let Q=T.step(W,U,A,V),oe=A[W];T.each(oe,I,Q,`${V}/${W}`)}):te==="array"&&A.forEach((W,Q)=>{let oe=T.step(Q,U,A,V);T.each(W,I,oe,`${V}/${Q}`)})}let tt={additionalItemsError:i("AdditionalItemsError"),additionalPropertiesError:i("AdditionalPropertiesError"),anyOfError:i("AnyOfError"),allOfError:i("AllOfError"),constError:i("ConstError"),containsError:i("ContainsError"),containsArrayError:i("ContainsArrayError"),containsAnyError:i("ContainsAnyError"),enumError:i("EnumError"),formatURLError:i("FormatURLError"),formatURIError:i("FormatURIError"),formatURIReferenceError:i("FormatURIReferenceError"),formatURITemplateError:i("FormatURITemplateError"),formatDateError:i("FormatDateaError"),formatDateTimeError:i("FormatDateTimeError"),formatEmailError:i("FormatEmailError"),formatHostnameError:i("FormatHostnameError"),formatIPV4Error:i("FormatIPV4Error"),formatIPV4LeadingZeroError:i("FormatIPV4LeadingZeroError"),formatIPV6Error:i("FormatIPV6Error"),formatIPV6LeadingZeroError:i("FormatIPV6LeadingZeroError"),formatJSONPointerError:i("FormatJSONPointerError"),formatRegExError:i("FormatRegExError"),formatTimeError:i("FormatTimeError"),invalidSchemaError:i("InvalidSchemaError"),invalidDataError:i("InvalidDataError"),invalidTypeError:i("InvalidTypeError"),invalidPropertyNameError:i("InvalidPropertyNameError"),maximumError:i("MaximumError"),maxItemsError:i("MaxItemsError"),maxLengthError:i("MaxLengthError"),maxPropertiesError:i("MaxPropertiesError"),minimumError:i("MinimumError"),minItemsError:i("MinItemsError"),minItemsOneError:i("MinItemsOneError"),minLengthError:i("MinLengthError"),minLengthOneError:i("MinLengthOneError"),minPropertiesError:i("MinPropertiesError"),missingDependencyError:i("MissingDependencyError"),missingOneOfPropertyError:i("MissingOneOfPropertyError"),multipleOfError:i("MultipleOfError"),multipleOneOfError:i("MultipleOneOfError"),noAdditionalPropertiesError:i("NoAdditionalPropertiesError"),notError:i("NotError"),oneOfError:i("OneOfError"),oneOfPropertyError:i("OneOfPropertyError"),patternError:i("PatternError"),patternPropertiesError:i("PatternPropertiesError"),requiredPropertyError:i("RequiredPropertyError"),typeError:i("TypeError"),undefinedValueError:i("UndefinedValueError"),uniqueItemsError:i("UniqueItemsError"),unknownPropertyError:i("UnknownPropertyError"),valueNotEmptyError:i("ValueNotEmptyError")};var ui=__webpack_require__(481),Vr=__webpack_require__.n(ui);let Jn=new RegExp("^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(([Zz])|([\\+|\\-]([01][0-9]|2[0-3]):[0-5][0-9]))$"),tn=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ra=/^((([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,ps=/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,na=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ia=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,ms=[0,31,28,31,30,31,30,31,31,30,31,30,31],Ri=/^(?:\/(?:[^~/]|~0|~1)*)*$/,fs=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,sa=/^(?:[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,_s=/^(?:(?:[^\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,Bi={date:(T,A,I,U)=>{if(typeof I!="string")return;let V=I.match(na);if(!V)return tt.formatDateTimeError({value:I,pointer:U});let te=+V[1],W=+V[2],Q=+V[3];return W>=1&&W<=12&&Q>=1&&Q<=(W==2&&te%4==0&&(te%100!=0||te%400==0)?29:ms[W])?void 0:tt.formatDateError({value:I,pointer:U})},"date-time":(T,A,I,U)=>{if(typeof I=="string")return I===""||Jn.test(I)?new Date(I).toString()==="Invalid Date"?tt.formatDateTimeError({value:I,pointer:U}):void 0:tt.formatDateTimeError({value:I,pointer:U})},email:(T,A,I,U)=>{if(typeof I!="string")return;if(I[0]==='"')return tt.formatEmailError({value:I,pointer:U});let[V,te,...W]=I.split("@");return!V||!te||W.length!==0||V.length>64||te.length>253||V[0]==="."||V.endsWith(".")||V.includes("..")?tt.formatEmailError({value:I,pointer:U}):/^[a-z0-9.-]+$/i.test(te)&&/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(V)&&te.split(".").every(Q=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(Q))?void 0:tt.formatEmailError({value:I,pointer:U})},hostname:(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!ps.test(I))return tt.formatHostnameError({value:I,pointer:U})},ipv4:(T,A,I,U)=>{if(typeof I=="string"&&I!==""){if(I&&I[0]==="0")return tt.formatIPV4LeadingZeroError({value:I,pointer:U});if(!(I.length<=15&&tn.test(I)))return tt.formatIPV4Error({value:I,pointer:U})}},ipv6:(T,A,I,U)=>{if(typeof I=="string"&&I!==""){if(I&&I[0]==="0")return tt.formatIPV6LeadingZeroError({value:I,pointer:U});if(!(I.length<=45&&ra.test(I)))return tt.formatIPV6Error({value:I,pointer:U})}},"json-pointer":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!Ri.test(I))return tt.formatJSONPointerError({value:I,pointer:U})},"relative-json-pointer":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!fs.test(I))return tt.formatJSONPointerError({value:I,pointer:U})},regex:(T,A,I,U)=>{if(typeof I=="string"&&/\\Z$/.test(I)===!1){try{return void new RegExp(I)}catch{}return tt.formatRegExError({value:I,pointer:U})}if(typeof I!="object"&&typeof I!="number"&&!Array.isArray(I))return tt.formatRegExError({value:I,pointer:U})},time:(T,A,I,U)=>{if(typeof I!="string")return;let V=I.match(ia);if(!V)return tt.formatDateTimeError({value:I,pointer:U});let te=+V[1],W=+V[2],Q=+V[3],oe=!!V[5];return(te<=23&&W<=59&&Q<=59||te==23&&W==59&&Q==60)&&oe?void 0:tt.formatTimeError({value:I,pointer:U})},uri:(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!Vr().isUri(I))return tt.formatURIError({value:I,pointer:U})},"uri-reference":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!sa.test(I))return tt.formatURIReferenceError({value:I,pointer:U})},"uri-template":(T,A,I,U)=>{if(typeof I=="string"&&I!==""&&!_s.test(I))return tt.formatURITemplateError({value:I,pointer:U})},url:(T,A,I,U)=>{if(I!==""&&!Vr().isWebUri(I))return tt.formatURLError({value:I,pointer:U})}},hs={addOptionalProps:!0,removeInvalidData:!1},qr;function Dn(T,A){let{$ref:I}=T;return I==null?!0:(qr[A]==null||qr[A][I]==null?0:qr[A][I])<u.GET_TEMPLATE_RECURSION_LIMIT}function Wn(T,A,I){if(I==null)throw new Error(`missing pointer ${I}`);let{$ref:U}=A;return U==null?A:(qr[I]=qr[I]||{},qr[I][U]=qr[I][U]||0,qr[I][U]+=1,T.resolveRef(A))}function Ai(T,A,I,U){if(o(A)!=="object")return Object.assign({pointer:U},A);if(Dn(A,U)===!1&&I==null)return!1;let V=m(Wn(T,A,U));if(Array.isArray(A.anyOf)&&A.anyOf.length>0){if(Dn(A.anyOf[0],`${U}/anyOf/0`)){let te=Wn(T,A.anyOf[0],`${U}/anyOf/0`);V=h(V,te),V.pointer=A.anyOf[0].$ref||V.pointer}delete V.anyOf}if(Array.isArray(A.allOf)){for(let te=0,W=A.allOf.length;te<W;te+=1)Dn(A.allOf[te],`${U}/allOf/${te}`)&&(V=h(V,Wn(T,A.allOf[te],`${U}/allOf/${te}`)),V.pointer=A.allOf[te].$ref||V.pointer);delete V.allOf}return V.pointer=V.pointer||A.$ref||U,V}let Pi=T=>T&&typeof T=="object";function Ir(T,A,I,U,V){if(I==null)throw new Error(`getTemplate: missing schema for data: ${JSON.stringify(A)}`);if(U==null)throw new Error("Missing pointer");let te=Ai(T,I,A,U);if(!Pi(te))return;if(U=te.pointer,te==null?void 0:te.const)return te.const;if(Array.isArray(te.oneOf))if(function(oe){switch(o(oe)){case"string":case"array":return oe.length===0;case"null":case"undefined":return!0;case"object":return Object.keys(oe).length===0;default:return!1}}(A)){let oe=te.oneOf[0].type||te.type||te.const&&typeof te.const||o(A);te=Object.assign(Object.assign({},te.oneOf[0]),{type:oe})}else{let oe=N(T,A,te);if(a(oe)){if(A!=null&&V.removeInvalidData!==!0)return A;te=te.oneOf[0],A=void 0}else te=oe}if(!Pi(te)||te.type==null)return;let W=Array.isArray(te.type)?function(oe,ae,Ce){if(ae==null){if(Ce!=null){let ze=o(Ce);if(oe.includes(ze))return ze}return oe[0]}let Ae=o(ae);return oe.includes(Ae)?Ae:oe[0]}(te.type,A,te.default):te.type,Q=o(A);return A==null||Q===W||Q==="number"&&W==="integer"||(A=function(oe,ae){if(oe==="string")return JSON.stringify(ae);if(typeof ae!="string")return null;try{if(typeof(ae=JSON.parse(ae))===oe)return ae}catch{}return null}(W,A)),vs[W]==null?V.removeInvalidData?void 0:A:vs[W](T,te,A,U,V)}let vs={null:(T,A,I)=>Fn(A,I,null),string:(T,A,I)=>Fn(A,I,""),number:(T,A,I)=>Fn(A,I,0),integer:(T,A,I)=>Fn(A,I,0),boolean:(T,A,I)=>Fn(A,I,!1),object:(T,A,I,U,V)=>{var te;let W=A.default===void 0?{}:A.default,Q={},oe=(te=A.required)!==null&&te!==void 0?te:[];if(A.properties&&Object.keys(A.properties).forEach(ae=>{let Ce=I==null||I[ae]==null?W[ae]:I[ae],Ae=oe.includes(ae);(Ce!=null||Ae||V.addOptionalProps)&&(Q[ae]=Ir(T,Ce,A.properties[ae],`${U}/properties/${ae}`,V))}),A.dependencies&&Object.keys(A.dependencies).forEach(ae=>{if(Q[ae]===void 0)return;let Ce=A.dependencies[ae];if(Array.isArray(Ce))return void Ce.forEach(ze=>{Q[ze]=Ir(T,Q[ze],A.properties[ze],`${U}/properties/${ze}`,V)});if(o(Ce)!=="object")return;let Ae=Ir(T,I,Object.assign(Object.assign({},Ce),{type:"object"}),`${U}/dependencies/${ae}`,V);Ae&&!a(Ae)&&Object.assign(Q,Ae)}),I&&Object.keys(I).forEach(ae=>Q[ae]==null&&(Q[ae]=I[ae])),A.if&&(A.then||A.else)){let ae=T.isValid(Q,A.if);if(ae&&A.then){let Ce=T.getTemplate(Q,Object.assign({type:"object"},A.then),V);Object.assign(Q,Ce)}else if(!ae&&A.else){let Ce=T.getTemplate(Q,Object.assign({type:"object"},A.else),V);Object.assign(Q,Ce)}}return Q},array:(T,A,I,U,V)=>{var te,W,Q;let oe=A.default===void 0?[]:A.default;A.minItems=A.minItems||0;let ae=I||[];if(A.items==null)return ae;if(Array.isArray(A.items)){for(let Ae=0,ze=Math.max((te=A.minItems)!==null&&te!==void 0?te:0,(Q=(W=A.items)===null||W===void 0?void 0:W.length)!==null&&Q!==void 0?Q:0);Ae<ze;Ae+=1)ae[Ae]=Ir(T,ae[Ae]==null?oe[Ae]:ae[Ae],A.items[Ae],`${U}/items/${Ae}`,V);return ae}if(o(A.items)!=="object")return ae;let Ce=Ai(T,A.items,I,U);if(Ce===!1)return ae;if(U=Ce.pointer||U,Ce.oneOf&&ae.length===0){let Ae=Ce.oneOf[0];for(let ze=0;ze<A.minItems;ze+=1)ae[ze]=Ir(T,ae[ze]==null?oe[ze]:ae[ze],Ae,`${U}/oneOf/0`,V);return ae}if(Ce.oneOf&&ae.length>0){let Ae=Math.max(A.minItems,ae.length);for(let ze=0;ze<Ae;ze+=1){let st=ae[ze]==null?oe[ze]:ae[ze],Ge=N(T,st,Ce);Ge==null||a(Ge)?st!=null&&V.removeInvalidData!==!0?ae[ze]=st:(st=void 0,Ge=Ce.oneOf[0],ae[ze]=Ir(T,st,Ge,`${U}/oneOf/${ze}`,V)):ae[ze]=Ir(T,st,Ge,`${U}/oneOf/${ze}`,V)}return ae}if(Ce.type){for(let Ae=0,ze=Math.max(A.minItems,ae.length);Ae<ze;Ae+=1)ae[Ae]=Ir(T,ae[Ae]==null?oe[Ae]:ae[Ae],Ce,`${U}/items`,V);return ae}return ae}};function Fn(T,A,I){return A??(T.const?T.const:T.default===void 0&&Array.isArray(T.enum)?T.enum[0]:T.default===void 0?I:T.default)}let Kn=(T,A,I=T.rootSchema,U=hs)=>(qr={mi:{}},Ir(T,A,I,"#",U));function xi(T,A,I=T.rootSchema,U="#"){return T.validate(A,I,U).length===0}function Ci(T,A){let I=typeof T;if(I!==typeof A)return!1;if(Array.isArray(T)){if(!Array.isArray(A))return!1;let U=T.length;if(U!==A.length)return!1;for(let V=0;V<U;V++)if(!Ci(T[V],A[V]))return!1;return!0}if(I==="object"){if(!T||!A)return T===A;let U=Object.keys(T),V=Object.keys(A);if(U.length!==V.length)return!1;for(let te of U)if(!Ci(T[te],A[te]))return!1;return!0}return T===A}function Ii(T){let A=[],I=0,U=T.length;for(;I<U;){let V=T.charCodeAt(I++);if(V>=55296&&V<=56319&&I<U){let te=T.charCodeAt(I++);(64512&te)==56320?A.push(((1023&V)<<10)+(1023&te)+65536):(A.push(V),I--)}else A.push(V)}return A}let Yn=u.floatingPointPrecision,ho=Object.prototype.hasOwnProperty,Ji=(T,A)=>!(T[A]===void 0||!ho.call(T,A)),vo={additionalProperties:(T,A,I,U)=>{if(A.additionalProperties===!0||A.additionalProperties==null||o(A.patternProperties)==="object"&&A.additionalProperties===!1)return;let V=[],te=Object.keys(I).filter(Q=>u.propertyBlacklist.includes(Q)===!1),W=Object.keys(A.properties||{});if(o(A.patternProperties)==="object"){let Q=Object.keys(A.patternProperties).map(oe=>new RegExp(oe));te=te.filter(oe=>{for(let ae=0;ae<Q.length;ae+=1)if(Q[ae].test(oe))return!1;return!0})}for(let Q=0,oe=te.length;Q<oe;Q+=1){let ae=te[Q];if(W.indexOf(ae)===-1){let Ce=typeof A.additionalProperties=="object";if(Ce&&Array.isArray(A.additionalProperties.oneOf)){let Ae=T.resolveOneOf(I[ae],A.additionalProperties,`${U}/${ae}`);a(Ae)?V.push(T.errors.additionalPropertiesError({schema:A.additionalProperties,property:te[Q],properties:W,pointer:U,errors:Ae.data.errors})):V.push(...T.validate(I[ae],Ae,U))}else Ce?V.push(...T.validate(I[ae],A.additionalProperties,`${U}/${ae}`)):V.push(T.errors.noAdditionalPropertiesError({property:te[Q],properties:W,pointer:U}))}}return V},allOf:(T,A,I,U)=>{if(Array.isArray(A.allOf)===!1)return;let V=[];return A.allOf.forEach(te=>{V.push(...T.validate(I,te,U))}),V},anyOf:(T,A,I,U)=>{if(Array.isArray(A.anyOf)!==!1){for(let V=0;V<A.anyOf.length;V+=1)if(T.isValid(I,A.anyOf[V]))return;return T.errors.anyOfError({anyOf:A.anyOf,value:I,pointer:U})}},dependencies:(T,A,I,U)=>{if(o(A.dependencies)!=="object")return;let V=[];return Object.keys(I).forEach(te=>{if(A.dependencies[te]===void 0||A.dependencies[te]===!0)return;if(A.dependencies[te]===!1)return void V.push(T.errors.missingDependencyError({pointer:U}));let W,Q=o(A.dependencies[te]);if(Q==="array")W=A.dependencies[te].filter(oe=>I[oe]===void 0).map(oe=>T.errors.missingDependencyError({missingProperty:oe,pointer:U}));else{if(Q!=="object")throw new Error(`Invalid dependency definition for ${U}/${te}. Must be list or schema`);W=T.validate(I,A.dependencies[te],U)}V.push(...W)}),V.length>0?V:void 0},enum:(T,A,I,U)=>{let V=o(I);if(V==="object"||V==="array"){let te=JSON.stringify(I);for(let W=0;W<A.enum.length;W+=1)if(JSON.stringify(A.enum[W])===te)return}else if(A.enum.includes(I))return;return T.errors.enumError({values:A.enum,value:I,pointer:U})},format:(T,A,I,U)=>{if(T.validateFormat[A.format])return T.validateFormat[A.format](T,A,I,U)},items:(T,A,I,U)=>{if(A.items===!1)return Array.isArray(I)&&I.length===0?void 0:T.errors.invalidDataError({pointer:U,value:I});let V=[];for(let te=0;te<I.length;te+=1){let W=I[te],Q=T.step(te,A,I,U);if(a(Q))return[Q];let oe=T.validate(W,Q,`${U}/${te}`);V.push(...oe)}return V},maximum:(T,A,I,U)=>{if(!isNaN(A.maximum))return A.maximum&&A.maximum<I||A.maximum&&A.exclusiveMaximum===!0&&A.maximum===I?T.errors.maximumError({maximum:A.maximum,length:I,pointer:U}):void 0},maxItems:(T,A,I,U)=>{if(!isNaN(A.maxItems))return A.maxItems<I.length?T.errors.maxItemsError({maximum:A.maxItems,length:I.length,pointer:U}):void 0},maxLength:(T,A,I,U)=>{if(isNaN(A.maxLength))return;let V=Ii(I).length;return A.maxLength<V?T.errors.maxLengthError({maxLength:A.maxLength,length:V,pointer:U}):void 0},maxProperties:(T,A,I,U)=>{let V=Object.keys(I).length;if(isNaN(A.maxProperties)===!1&&A.maxProperties<V)return T.errors.maxPropertiesError({maxProperties:A.maxProperties,length:V,pointer:U})},minLength:(T,A,I,U)=>{if(isNaN(A.minLength))return;let V=Ii(I).length;return A.minLength>V?A.minLength===1?T.errors.minLengthOneError({minLength:A.minLength,length:V,pointer:U}):T.errors.minLengthError({minLength:A.minLength,length:V,pointer:U}):void 0},minimum:(T,A,I,U)=>{if(!isNaN(A.minimum))return A.minimum>I||A.exclusiveMinimum===!0&&A.minimum===I?T.errors.minimumError({minimum:A.minimum,length:I,pointer:U}):void 0},minItems:(T,A,I,U)=>{if(!isNaN(A.minItems))return A.minItems>I.length?A.minItems===1?T.errors.minItemsOneError({minItems:A.minItems,length:I.length,pointer:U}):T.errors.minItemsError({minItems:A.minItems,length:I.length,pointer:U}):void 0},minProperties:(T,A,I,U)=>{if(isNaN(A.minProperties))return;let V=Object.keys(I).length;return A.minProperties>V?T.errors.minPropertiesError({minProperties:A.minProperties,length:V,pointer:U}):void 0},multipleOf:(T,A,I,U)=>{if(!isNaN(A.multipleOf))return I*Yn%(A.multipleOf*Yn)/Yn!=0?T.errors.multipleOfError({multipleOf:A.multipleOf,value:I,pointer:U}):void 0},not:(T,A,I,U)=>{let V=[];return T.validate(I,A.not,U).length===0&&V.push(T.errors.notError({value:I,not:A.not,pointer:U})),V},oneOf:(T,A,I,U)=>{if(Array.isArray(A.oneOf)!==!1)return a(A=T.resolveOneOf(I,A,U))?A:void 0},pattern:(T,A,I,U)=>{if(new RegExp(A.pattern,"u").test(I)===!1)return T.errors.patternError({pattern:A.pattern,description:A.patternExample||A.pattern,received:I,pointer:U})},patternProperties:(T,A,I,U)=>{let V=A.properties||{},te=A.patternProperties;if(o(te)!=="object")return;let W=[],Q=Object.keys(I),oe=Object.keys(te).map(ae=>({regex:new RegExp(ae),patternSchema:te[ae]}));return Q.forEach(ae=>{let Ce=!1;for(let Ae=0,ze=oe.length;Ae<ze;Ae+=1)if(oe[Ae].regex.test(ae)){Ce=!0;let st=T.validate(I[ae],oe[Ae].patternSchema,`${U}/${ae}`);st&&st.length>0&&W.push(...st)}V[ae]||Ce===!1&&A.additionalProperties===!1&&W.push(T.errors.patternPropertiesError({key:ae,pointer:U,patterns:Object.keys(te).join(",")}))}),W},properties:(T,A,I,U)=>{let V=[],te=Object.keys(A.properties||{});for(let W=0;W<te.length;W+=1){let Q=te[W];if(Ji(I,Q)){let oe=T.step(Q,A,I,U),ae=T.validate(I[Q],oe,`${U}/${Q}`);V.push(...ae)}}return V},propertiesRequired:(T,A,I,U)=>{let V=[],te=Object.keys(A.properties||{});for(let W=0;W<te.length;W+=1){let Q=te[W];if(I[Q]===void 0)V.push(T.errors.requiredPropertyError({key:Q,pointer:U}));else{let oe=T.step(Q,A,I,U),ae=T.validate(I[Q],oe,`${U}/${Q}`);V.push(...ae)}}return V},required:(T,A,I,U)=>{if(Array.isArray(A.required)!==!1)return A.required.map(V=>{if(!Ji(I,V))return T.errors.requiredPropertyError({key:V,pointer:U})})},requiredNotEmpty:(T,A,I,U)=>{if(Array.isArray(A.required)!==!1)return A.required.map(V=>{if(I[V]==null||I[V]==="")return T.errors.valueNotEmptyError({property:V,pointer:`${U}/${V}`})})},uniqueItems:(T,A,I,U)=>{if((Array.isArray(I)&&A.uniqueItems)===!1)return;let V=[];return I.forEach((te,W)=>{for(let Q=W+1;Q<I.length;Q+=1)Ci(te,I[Q])&&V.push(T.errors.uniqueItemsError({pointer:U,itemPointer:`${U}/${W}`,duplicatePointer:`${U}/${Q}`,value:JSON.stringify(te)}))}),V}},gs=vo,Bs=Object.assign(Object.assign({},gs),{contains:(T,A,I,U)=>{if(A.contains===!1)return T.errors.containsArrayError({pointer:U,value:I});if(A.contains===!0)return Array.isArray(I)&&I.length===0?T.errors.containsAnyError({pointer:U}):void 0;if(o(A.contains)==="object"){for(let V=0;V<I.length;V+=1)if(T.isValid(I[V],A.contains))return;return T.errors.containsError({pointer:U,schema:JSON.stringify(A.contains)})}},exclusiveMaximum:(T,A,I,U)=>{if(!isNaN(A.exclusiveMaximum))return A.exclusiveMaximum<=I?T.errors.maximumError({maximum:A.exclusiveMaximum,length:I,pointer:U}):void 0},exclusiveMinimum:(T,A,I,U)=>{if(!isNaN(A.exclusiveMinimum))return A.exclusiveMinimum>=I?T.errors.minimumError({minimum:A.exclusiveMinimum,length:I,pointer:U}):void 0},if:(T,A,I,U)=>{if(A.if==null)return;let V=T.validate(I,A.if,U);return V.length===0&&A.then?T.validate(I,A.then,U):V.length!==0&&A.else?T.validate(I,A.else,U):void 0},maximum:(T,A,I,U)=>{if(!isNaN(A.maximum))return A.maximum&&A.maximum<I?T.errors.maximumError({maximum:A.maximum,length:I,pointer:U}):void 0},minimum:(T,A,I,U)=>{if(!isNaN(A.minimum))return A.minimum>I?T.errors.minimumError({minimum:A.minimum,length:I,pointer:U}):void 0},patternProperties:(T,A,I,U)=>{let V=A.properties||{},te=A.patternProperties;if(o(te)!=="object")return;let W=[],Q=Object.keys(I),oe=Object.keys(te).map(ae=>({regex:new RegExp(ae),patternSchema:te[ae]}));return Q.forEach(ae=>{let Ce=!1;for(let Ae=0,ze=oe.length;Ae<ze;Ae+=1)if(oe[Ae].regex.test(ae)){if(Ce=!0,oe[Ae].patternSchema===!1)return void W.push(T.errors.patternPropertiesError({key:ae,pointer:U,patterns:Object.keys(te).join(",")}));let st=T.validate(I[ae],oe[Ae].patternSchema,`${U}/${ae}`);st&&st.length>0&&W.push(...st)}V[ae]||Ce===!1&&A.additionalProperties===!1&&W.push(T.errors.patternPropertiesError({key:ae,pointer:U,patterns:Object.keys(te).join(",")}))}),W},propertyNames:(T,A,I,U)=>{if(A.propertyNames===!1)return Object.keys(I).length===0?void 0:T.errors.invalidPropertyNameError({property:Object.keys(I),pointer:U,value:I});if(A.propertyNames===!0||o(A.propertyNames)!=="object")return;let V=[],te=Object.keys(I),W=Object.assign(Object.assign({},A.propertyNames),{type:"string"});return te.forEach(Q=>{let oe=T.validate(Q,W,`${U}/${Q}`);oe.length>0&&V.push(T.errors.invalidPropertyNameError({property:Q,pointer:U,validationError:oe[0],value:I[Q]}))}),V}}),Js=Bs;function qi(T,A,I=T.rootSchema,U="#"){let V=!1,te=m(I);for(let W=0;W<I.anyOf.length;W+=1){let Q=T.resolveRef(I.anyOf[W]);T.isValid(A,I.anyOf[W],U)&&(V=!0,te=h(te,Q))}return V===!1?tt.anyOfError({value:A,pointer:U,anyOf:JSON.stringify(I.anyOf)}):(delete te.anyOf,te)}function xr(T){let A={type:o(T)};return A.type==="object"&&(A.properties={},Object.keys(T).forEach(I=>A.properties[I]=xr(T[I]))),A.type==="array"&&T.length===1?A.items=xr(T[0]):A.type==="array"&&(A.items=T.map(xr)),A}function pi(T,A,I=T.rootSchema){let U=T.step(A,I,{},"#");return a(U)?U.code==="one-of-error"?U.data.oneOf.map(V=>T.resolveRef(V)):U:[U]}let mi={array:(T,A,I,U,V)=>{let te=o(I.items);if(te==="object")return Array.isArray(I.items.oneOf)?T.resolveOneOf(U[A],I.items,V):Array.isArray(I.items.anyOf)?T.resolveAnyOf(U[A],I.items,V):Array.isArray(I.items.allOf)?T.resolveAllOf(U[A],I.items,V):T.resolveRef(I.items);if(te==="array"){if(I.items[A]===!0)return xr(U[A]);if(I.items[A]===!1)return tt.invalidDataError({key:A,value:U[A],pointer:V});if(I.items[A])return T.resolveRef(I.items[A]);if(I.additionalItems===!1)return tt.additionalItemsError({key:A,value:U[A],pointer:V});if(I.additionalItems===!0||I.additionalItems===void 0)return xr(U[A]);if(o(I.additionalItems)==="object")return I.additionalItems;throw new Error(`Invalid schema ${JSON.stringify(I,null,4)} for ${JSON.stringify(U,null,4)}`)}return I.additionalItems!==!1&&U[A]?xr(U[A]):new Error(`Invalid array schema for ${A} at ${V}`)},object:(T,A,I,U,V)=>{if(Array.isArray(I.oneOf)){let Q=T.resolveOneOf(U,I,V);if(a(I=h(I,Q)))return I}if(Array.isArray(I.anyOf)&&a(I=T.resolveAnyOf(U,I,V))||Array.isArray(I.allOf)&&a(I=T.resolveAllOf(U,I,V)))return I;let te;if(I.properties&&I.properties[A]!==void 0){if(te=T.resolveRef(I.properties[A]),a(te))return te;if(te&&Array.isArray(te.oneOf)){let Q=T.resolveOneOf(U[A],te,`${V}/${A}`),oe=te.oneOf.findIndex(ae=>ae===Q);return Q.variableSchema=!0,Q.oneOfIndex=oe,Q.oneOfSchema=te,Q}if(te)return te}let{dependencies:W}=I;if(o(W)==="object"){let Q=Object.keys(W).filter(oe=>o(W[oe])==="object");for(let oe=0,ae=Q.length;oe<ae;oe+=1){let Ce=Q[oe],Ae=Nr(T,A,W[Ce],U,`${V}/${Ce}`);if(!a(Ae))return Ae}}if(I.if&&(I.then||I.else)){let Q=T.isValid(U,I.if);if(Q&&I.then){let oe=Nr(T,A,I.then,U,V);if(typeof oe.type=="string"&&oe.type!=="error")return oe}if(!Q&&I.else){let oe=Nr(T,A,I.else,U,V);if(typeof oe.type=="string"&&oe.type!=="error")return oe}}if(o(I.patternProperties)==="object"){let Q,oe=Object.keys(I.patternProperties);for(let ae=0,Ce=oe.length;ae<Ce;ae+=1)if(Q=new RegExp(oe[ae]),Q.test(A))return I.patternProperties[oe[ae]]}return o(I.additionalProperties)==="object"?I.additionalProperties:I.additionalProperties===!0?xr(U[A]):tt.unknownPropertyError({property:A,value:U,pointer:`${V}`})}};function Nr(T,A,I,U,V="#"){if(Array.isArray(I.type)){let Q=o(U);return I.type.includes(Q)?mi[Q](T,`${A}`,I,U,V):T.errors.typeError({value:U,pointer:V,expected:I.type,received:Q})}let te=I.type||o(U),W=mi[te];return W?W(T,`${A}`,I,U,V):new Error(`Unsupported schema type ${I.type} for key ${A}`)}let Wi={array:(T,A,I,U)=>T.typeKeywords.array.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),object:(T,A,I,U)=>T.typeKeywords.object.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),string:(T,A,I,U)=>T.typeKeywords.string.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),integer:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),number:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),boolean:(T,A,I,U)=>T.typeKeywords.boolean.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),null:(T,A,I,U)=>T.typeKeywords.null.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U))};var An=__webpack_require__(63),ys=__webpack_require__.n(An);function Ti(T,A,I=T.rootSchema,U="#"){if(o(I=T.resolveRef(I))==="boolean")return I?[]:[T.errors.invalidDataError({value:A,pointer:U})];if(a(I))return[I];if(I.const!==void 0)return ys()(I.const,A)?[]:[T.errors.constError({value:A,expected:I.const,pointer:U})];let V=function(W,Q){let oe=o(W);return oe==="number"&&(Q==="integer"||Array.isArray(Q)&&Q.includes("integer"))?Number.isInteger(W)||isNaN(W)?"integer":"number":oe}(A,I.type),te=I.type||V;return V===te||Array.isArray(te)&&te.includes(V)?T.validateType[V]==null?[T.errors.invalidTypeError({receivedType:V,pointer:U})]:d(T.validateType[V](T,I,A,U)).filter(c):[T.errors.typeError({received:V,expected:te,value:A,pointer:U})]}let fi={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","exclusiveMaximum","exclusiveMinimum","format","if","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:Js,validateType:Wi,validateFormat:Bi,errors:tt,addRemoteSchema:ie,compileSchema:mr,createSchemaOf:xr,each:Jt,eachSchema:H,getChildSchemaSelection:pi,getSchema:k,getTemplate:Kn,isValid:xi,resolveAllOf:j,resolveAnyOf:qi,resolveOneOf:f,resolveRef:C,step:Nr,validate:Ti};class oa extends Y{constructor(A,I={}){super(h(fi,I),A)}}let Ss=Object.assign(Object.assign({},fi),{resolveOneOf:N,resolveRef:q});class Ws extends Y{constructor(A,I={}){super(h(Ss,I),A)}}class Ln{constructor(A,I){this.core=new Ws(A),this.schema=A,this.data=I,this.cache={}}updateData(A){this.data=A,this.cache={}}updateSchema(A){this.schema=A,this.core.setSchema(A),this.cache={}}get(A,I){if(I){let Q=k(this.core,A,I,this.schema);return m(Q)}if(A==="#")return this.schema;if(this.cache[A])return this.cache[A];let U=R().join(A,".."),V=this.cache[U];V==null&&(V=k(this.core,U,this.data,this.schema),V.variableSchema!==!0&&(this.cache[U]=m(V)));let te=R().split(A).pop(),W=k(this.core,te,R().get(this.data,U),this.cache[U]);return W=m(W),W.variableSchema!==!0&&(this.cache[A]=W),W}}function _i(T,A,I){let{schema:U,pointer:V,onError:te}=Object.assign({schema:T.rootSchema,pointer:"#"},I),W=T.validate(A,U,V);if(te){W=d(W);let Q=function(oe){return function ae(Ce){return Array.isArray(Ce)?((Ce=d(Ce)).forEach(ae),Ce):(a(Ce)&&oe(Ce),Ce)}}(te);for(let oe=0;oe<W.length;oe+=1)W[oe]instanceof Promise?W[oe].then(Q):a(W[oe])&&te(W[oe])}return Promise.all(W).then(d).then(Q=>Q.filter(l)).catch(Q=>{throw console.log("Failed resolving promises",Q.message),console.log(Q.stack),Q})}let ws="__compiled",Ki="__ref",Ks=/(#|\/)+$/g,Oi={typeKeywords:{array:["allOf","anyOf","enum","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["enum","not","allOf","anyOf","oneOf"],object:["additionalProperties","dependencies","enum","format","minProperties","maxProperties","patternProperties","properties","required","not","oneOf","allOf","anyOf"],string:["allOf","anyOf","enum","format","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","format","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:gs,validateType:{array:(T,A,I,U)=>T.typeKeywords.array.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),object:(T,A,I,U)=>T.typeKeywords.object.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),string:(T,A,I,U)=>T.typeKeywords.string.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),integer:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),number:(T,A,I,U)=>T.typeKeywords.number.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),boolean:(T,A,I,U)=>T.typeKeywords.boolean.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U)),null:(T,A,I,U)=>T.typeKeywords.null.filter(V=>A&&A[V]!=null).map(V=>T.validateKeyword[V](T,A,I,U))},validateFormat:Bi,errors:tt,addRemoteSchema:ie,compileSchema:function(T,A,I=A,U=!1){if(!A||A[ws]!==void 0)return A;let V={ids:{},remotes:T.remotes},te=JSON.stringify(A),W=JSON.parse(te);if(Object.defineProperty(W,ws,{enumerable:!1,value:!0}),Object.defineProperty(W,"getRef",{enumerable:!1,value:Je.bind(null,V,W)}),U===!1&&te.includes("$ref")===!1)return W;A!==I&&Object.defineProperty(W,"definitions",{enumerable:!1,value:Object.assign({},I.definitions,I.$defs,A.definitions,A.$defs)});let Q={},oe=()=>W;return H(W,(ae,Ce)=>{var Ae;if(ae.id){if(ae.id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(Ce)){let ot=Ce.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),ct=(0,b.get)(W,ot);ae.id=(Ae=ct.id)!==null&&Ae!==void 0?Ae:ae.id}V.ids[ae.id.replace(Ks,"")]=Ce}let ze=(Ce=`#${Ce}`.replace(/##+/,"#")).replace(/\/[^/]+$/,""),st=Ce.replace(/\/[^/]+\/[^/]+$/,""),Ge=Ie(Q[ze]||Q[st],ae.id);Q[Ce]=Ge,V.ids[Ge]==null&&(V.ids[Ge]=Ce),ae.$ref&&!ae[Ki]&&(Object.defineProperty(ae,Ki,{enumerable:!1,value:Ie(Ge,ae.$ref)}),Object.defineProperty(ae,"getRoot",{enumerable:!1,value:oe}))}),W},createSchemaOf:xr,each:Jt,eachSchema:H,getChildSchemaSelection:pi,getSchema:k,getTemplate:Kn,isValid:xi,resolveAllOf:j,resolveAnyOf:qi,resolveOneOf:f,resolveRef:C,step:Nr,validate:Ti};class hi extends Y{constructor(A,I={}){super(h(Oi,I),A)}}let Ys={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["enum","exclusiveMaximum","exclusiveMinimum","format","maximum","minimum","multipleOf","not","oneOf","allOf","anyOf","if"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:Js,validateType:Wi,validateFormat:Bi,errors:tt,addRemoteSchema:ie,compileSchema:mr,createSchemaOf:xr,each:Jt,eachSchema:H,getChildSchemaSelection:pi,getSchema:k,getTemplate:Kn,isValid:xi,resolveAllOf:j,resolveAnyOf:qi,resolveOneOf:f,resolveRef:C,step:Nr,validate:Ti};class go extends Y{constructor(A,I={}){super(h(Ys,I),A)}}let Qs={strings:e}})(),__webpack_exports__})())}}),require_matrixAssetValidator=__commonJS({"../dx-json-schema-lib/lib/validators/utils/matrixAssetValidator.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isMatrixAssetUri=void 0;function t(r){return typeof r!="string"?!1:/^matrix-asset:\/\/[a-zA-Z0-9.-]+\/\d+(?::.+)?$/.test(r)}e.isMatrixAssetUri=t}}),require_customFormatValidators=__commonJS({"../dx-json-schema-lib/lib/validators/customFormatValidators.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.customFormatValidators=void 0;var t=require_SchemaValidationError(),r=require_matrixAssetValidator();e.customFormatValidators={"matrix-asset-uri":(n,i,s)=>{if((0,r.isMatrixAssetUri)(s)===!1)throw new t.SchemaValidationError(`value "${s}" isn't a valid matrix asset uri`)}}}}),require_JsonResolutionError=__commonJS({"../dx-json-schema-lib/lib/errors/JsonResolutionError.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JsonResolutionError=void 0;var t=class extends Error{constructor(r,n,i){super(`Error resolving JSON at ${n}: ${r.message}`),this.pointer=n,this.value=i}};e.JsonResolutionError=t}}),require_JsonValidationService=__commonJS({"../dx-json-schema-lib/lib/JsonValidationService.js"(e){"use strict";var t=e&&e.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0}),e.JsonValidationService=e.JSONSchemaService=e.ManifestV1MetaSchema=e.RenderInputMetaSchema=e.ComponentInputMetaSchema=e.RenderInputSchema=e.ComponentInputSchema=void 0;var r=t(require_jsonQuery()),n=t(require_DxComponentInputSchema()),i=t(require_DxComponentIcons()),s=t(require_DxContentMetaSchema()),o=t(require_MatrixAssetSchema()),a=t(require_Draft_07()),c=t(require_formattedText2()),l=t(require_v12()),d=require_SchemaValidationError(),u=require_jsonSchemaLibrary(),p=require_jsonSchemaLibrary(),f=require_customFormatValidators(),m=require_JsonResolutionError(),v={...p.draft07Config,validateFormat:{...p.draft07Config.validateFormat,...f.customFormatValidators},errors:{...p.draft07Config.errors,enumError(w){let j="[]";return w.values&&Array.isArray(w.values)&&(w.values.length<5?j=`[${w.values.join(", ")}]`:j=`[${w.values.slice(0,5).join(", ")}, ... ${w.values.length-5} more]`),{type:"error",name:"EnumError",code:"enum-error",message:`Expected given value \`${w.value}\` in ${w.pointer}\` to be one of \`${j}\``,data:w}},anyOfError(w){let j=`Value \`${w.value}\` at`;return typeof w.value=="object"&&(j="Object at"),Array.isArray(w.value)&&(j="Array at"),{type:"error",name:"AnyOfError",code:"any-of-error",message:`${j} \`${w.pointer}\` does not match any schema`,data:w}}}},g=new u.Draft07(c.default,v);e.ComponentInputSchema=new u.Draft({...v,resolveRef(w,j){let x=p.draft07Config.resolveRef(w,j);return x&&(x.type==="FormattedText"?g.rootSchema:Array.isArray(x.type)&&x.type.includes("FormattedText")?{...w,...g.rootSchema,type:x.type.filter(O=>O!=="FormattedText").concat(c.default.type)}:x)}},n.default),e.ComponentInputSchema.addRemoteSchema("DxComponentInputSchema.json/DxContentMetaSchema.json",s.default),e.RenderInputSchema=new u.Draft({...v,resolveRef(w,j){let x=p.draft07Config.resolveRef(w,j);return x&&(x.type==="FormattedText"?{type:"string"}:Array.isArray(x.type)&&x.type.includes("FormattedText")?{...w,type:x.type.filter(O=>O!=="FormattedText").concat("string")}:x)}});var y=new u.Draft07(l.default,v);y.addRemoteSchema("DxComponentInputSchema.json/DxContentMetaSchema.json",s.default),y.addRemoteSchema("/DxComponentInputSchema.json",e.ComponentInputSchema.getSchema()),y.addRemoteSchema("/DxComponentIcons.json",i.default),y.addRemoteSchema("/MatrixAssetSchema.json",o.default),y.addRemoteSchema("http://json-schema.org/draft-07/schema",a.default),y.addRemoteSchema("http://json-schema.org/draft-07/schema#",a.default),e.ComponentInputMetaSchema={root:n.default,remotes:{"DxComponentInputSchema.json/DxContentMetaSchema.json":s.default}},e.RenderInputMetaSchema={root:a.default},e.ManifestV1MetaSchema={root:l.default,remotes:{"DxComponentInputSchema.json/DxContentMetaSchema.json":s.default,"/DxComponentInputSchema.json":n.default,"/DxComponentIcons.json":i.default,"/MatrixAssetSchema.json":o.default,"http://json-schema.org/draft-07/schema":a.default,"http://json-schema.org/draft-07/schema#":a.default}};var h=class{constructor(w,j){this.typeResolver=w,this.schema=new u.Draft({...v,resolveRef:(x,O)=>this.doResolveRef(x,O),validate:(x,O,N,C)=>v.validate(x,O,N,C),resolveOneOf:(x,O,N,C)=>v.resolveOneOf(x,O,N,C)},j.root);for(let[x,O]of Object.entries(j.remotes||{}))this.schema.addRemoteSchema(x,O);for(let x of this.typeResolver.validationSchemaDefinitions)this.schema.addRemoteSchema(`/${x.title}.json`,x),this.schema.addRemoteSchema(`#/${x.title}.json`,x)}doResolveRef(w,j){let x=p.draft07Config.resolveRef(w,j);if(!x||!this.typeResolver.isPrimitiveType(x.type))return x;let N={oneOf:this.typeResolver.getValidationSchemaForPrimitive(x.type).map(C=>({$ref:`${C.title}.json`}))};return this.schema.compileSchema(N)}validateInput(w,j=this.schema.rootSchema){j=this.schema.compileSchema(j);let x=this.schema.validate(w,j);return this.processValidationResult(x)}processValidationResult(w){if(w.length>0)throw new d.SchemaValidationError(w.map(j=>j.message).join(`,
|
|
277
277
|
`));return!0}async resolveInput(w,j){let x=[];this.schema.each(w,(N,C,q)=>{if(!this.typeResolver.isResolvableSchema(N))return;let R=N.oneOfSchema.oneOf.map(G=>G.$ref.replace(".json","")).find(G=>this.typeResolver.isPrimitiveType(G));if(!R)return;let F=this.typeResolver.tryGetResolver(R,N);if(!F)return;let k=Promise.resolve().then(()=>F(C)).then(G=>Y=>r.default.set(Y,q,G)).catch(G=>Promise.reject(new m.JsonResolutionError(G,q,C)));x.push(k)},j);let O=[];for(let N of await Promise.allSettled(x)){if(N.status==="rejected"){O.push(N.reason);continue}w=N.value(w)}if(O.length)throw new Error(`Error(s) occurred when resolving JSON:
|
|
278
278
|
${O.join(`
|
|
279
279
|
`)}`);return w}};e.JSONSchemaService=h;var S=class{validateManifest(w,j){switch(j){case"v1":{let x=y.validate(w);return this.processValidationResult(x)}default:throw new d.SchemaValidationError("Invalid manifest version")}}validateContentSchema(w){return this.processValidationResult(e.ComponentInputSchema.validate(w))}validateComponentInput(w,j){let x=e.ComponentInputSchema.compileSchema(w),O=e.ComponentInputSchema.validate(j,x);return this.processValidationResult(O)}validateRenderInput(w,j){let x=e.RenderInputSchema.compileSchema(w),O=e.RenderInputSchema.validate(j,x);return this.processValidationResult(O)}processValidationResult(w){if(w.length>0)throw new d.SchemaValidationError(w.map(j=>j.message).join(`,
|
|
@@ -344,7 +344,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
344
344
|
JOIN component_set_component_version as cscv ON
|
|
345
345
|
cv.component_name = cscv.component_name AND
|
|
346
346
|
cv.version = cscv.component_version
|
|
347
|
-
WHERE cscv.component_set_web_path=$1 ${n}`;return(await this.executeQueryRaw(s,i)).map(a=>({componentName:a.component_name,version:a.version,displayName:a.display_name,description:a.description,icon:a.icon?a.icon:void 0,environmentVariables:a.env_vars}))}async getComponentByNameAndVersion(t,r){return await this.findOne({componentName:t,version:r})}async componentVersionExists(t,r){return await this.getComponentByNameAndVersion(t,r)!=null}async addComponentVersion(t,r,n,i,s){if(hrt.test(r)===!1)throw new Error("ComponentVersion does not follow the semver convention. Component version must be in the form of major.minor.patch");return await this.create({componentName:t,version:r,description:i||"",displayName:n||"",icon:s})}};GC.ComponentVersionRepository=F3});var z3=P(BC=>{"use strict";Object.defineProperty(BC,"__esModule",{value:!0});BC.createComponentRepositories=void 0;var vrt=Y$(),grt=Uae(),yrt=zle(),Srt=I3(),wrt=ide(),Ert=k3(),brt=L3();function Rrt(e){return{component:new Ert.ComponentRepository(e),componentVersion:new brt.ComponentVersionRepository(e),componentSet:new Srt.ComponentSetRepository(e),componentSetComponentVersion:new vrt.ComponentSetComponentVersionRepository(e),componentSetComponentVersionExcluded:new grt.ComponentSetComponentVersionExcludedRepository(e),componentSetComponentVersionEditable:new yrt.ComponentSetComponentVersionEditableRepository(e),componentSetRule:new wrt.ComponentSetRuleRepository(e)}}BC.createComponentRepositories=Rrt});var ode=P(U3=>{"use strict";Object.defineProperty(U3,"__esModule",{value:!0});U3.default=["20220704054051_initial.sql","20220718172237_adding_component_sets.sql","20220728113941_add_env_vars_field.sql","20220817113300_removing_null_props_from_jsonb.sql","20223525103556_component_set_rule.sql","20221027151225_dummy.sql","20221117151200_add_detail_columns_to_component_version.js","20221220151200_add_required_to_manifests.js","20221222151200_add_required_to_manifests.js","20230111095522_update_environment_property.js","20230203084900_ensure_static_root_exists.js","20230210143300_lowercase_all_uri_names.js","20230217151212_component_set_component_version_updates.sql","20230218121212_add_component_set_rules.js"]});var cde=P(Jm=>{"use strict";var Art=Jm&&Jm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jm,"__esModule",{value:!0});Jm.createConnectionManager=void 0;var ade=cl(),Prt=z3(),xrt=Art(ode());async function Crt(e,t,r){let n=await(0,ade.getConnectionInfo)(t);return new ade.ConnectionManager(e,n,r,xrt.default,Prt.createComponentRepositories)}Jm.createConnectionManager=Crt});var lde=P(ml=>{"use strict";var Irt=ml&&ml.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),$3=ml&&ml.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Irt(t,e,r)};Object.defineProperty(ml,"__esModule",{value:!0});$3(zae(),ml);$3(z3(),ml);$3(cde(),ml)});var Xg=P(JC=>{"use strict";Object.defineProperty(JC,"__esModule",{value:!0});JC.ManifestValidationError=void 0;var V3=class extends Error{constructor(t,r){super(t),this.stack=r==null?void 0:r.stack,this.name="ManifestValidationError"}};JC.ManifestValidationError=V3});var H3=P(Wm=>{"use strict";var qrt=Wm&&Wm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wm,"__esModule",{value:!0});Wm.getComponentFileSystemFolder=void 0;var Trt=qrt(require("path"));function Ort(e,t){return Trt.default.join(e,t)}Wm.getComponentFileSystemFolder=Ort});var KC=P(WC=>{"use strict";Object.defineProperty(WC,"__esModule",{value:!0});WC.getComponentName=void 0;function jrt(e,t){return`${e}/${t}`}WC.getComponentName=jrt});var dde=P(Km=>{"use strict";var Nrt=Km&&Km.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Km,"__esModule",{value:!0});Km.moveFilesAndDirectories=void 0;var G3=Nrt(require("fs/promises"));async function krt(e,t){if(await Mrt(e)===!1)throw new Error(`Source directory "${e}" does not exist`);await G3.default.cp(e,t,{recursive:!0,force:!0}),await G3.default.rm(e,{recursive:!0,force:!0})}Km.moveFilesAndDirectories=krt;async function Mrt(e){try{return await G3.default.stat(e),!0}catch(t){if((t==null?void 0:t.code)==="ENOENT")return!1;throw t}}});var pde=P(Qm=>{"use strict";var ude=Qm&&Qm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qm,"__esModule",{value:!0});Qm.ComponentService=void 0;var ks=ude(require("path")),ga=ude(Hp()),ic=Br(),Drt=Xg(),Zg=H3(),Ym=KC(),Frt=yd(),Lrt=dde(),B3=class{constructor(t,r,n,i){this.db=t,this.logger=r,this.dataMountPoint=n,this.manifestService=i}async getComponentVersionForWeb(t,r,n){await this.assertComponentVersionExists(r,t,n);let i=await this.db.repositories.componentVersion.findOne({componentName:(0,Ym.getComponentName)(t,r),version:n});if(!i)throw new ic.ResourceNotFoundError(`${t}/${r} ${n} could not be found`);let s=await this.db.repositories.componentSet.findAllSetsComponentVersionIsIn(t,r,n);return{namespace:t,name:r,version:n,description:i.description,displayName:i.displayName,icon:i.icon,sets:s.map(o=>({displayName:o.displayName,webPath:o.webPath}))}}async getComponentForWeb(t,r){let n=(0,Ym.getComponentName)(t,r);if(await this.assertComponentExists(r,t),await this.db.repositories.component.componentExists(n)==!1)throw new ic.ResourceNotFoundError(`${t}/${r} could not be found`);return{versions:(await this.db.repositories.componentVersion.find({componentName:n})).map(o=>({description:o.description,displayName:o.displayName,icon:o.icon,version:o.version}))}}async getPaginatedComponents(t=1,r=[],n="asc",i=20,s=null){let o=await this.db.repositories.componentVersion.getPaginatedMaxComponentVersion(t,r,n,i,s),a=[];for(let c of o.items){let l=(await this.db.repositories.componentSet.findAllSetsComponentIsIn(c.componentName)).map(d=>({displayName:d.displayName,webPath:d.webPath}));a.push({name:c.componentName,includedInSets:l.length,componentSets:l,latestVersion:{description:c.description,displayName:c.displayName,icon:c.icon,version:c.version}})}return{items:a,pageInfo:(0,ic.getPageInfo)(t,o.pageSize,o.totalCount)}}async saveComponent(t){let r;try{let o=ks.default.join(t,"manifest.json");r=await this.manifestService.readManifest(o),await this.manifestService.assertManifestIsValid(o,r.getModel(),{tempLocation:!0})}catch(o){if(o instanceof Drt.ManifestValidationError||o instanceof Frt.SchemaValidationError){let a=new ic.BadRequestError(o.message);throw a.stack=o.stack,a}else throw o}let n=r.getName(),i=r.getVersion();if(await this.componentVersionExists(n,i))throw new ic.BadRequestError(`Component ${n} ${i} already exists`);let s=await this.getValidComponentDestinationPath(n,i);return await this.moveFilesAndUpdateDb(r,t,s),{name:n,version:i,manifest:r}}async componentVersionExists(t,r){return await this.db.repositories.componentVersion.getComponentByNameAndVersion(t,r)!==void 0}async deleteComponent(t,r){let n=(0,Ym.getComponentName)(t,r),i=(0,Zg.getComponentFileSystemFolder)(t,r);this.assertValidComponentName(r,t),await this.assertComponentExists(r,t);let s=ks.default.join(this.dataMountPoint,i);try{await this.db.repositories.componentVersion.delete({componentName:n})}catch(c){this.logger.error(c)}try{await this.db.repositories.component.delete({name:n})}catch(c){this.logger.error(c)}try{await ga.default.rm(s,{force:!0,recursive:!0})}catch(c){this.logger.error(c)}let o=await this.db.repositories.component.componentExists(n),a=await ga.default.pathExists(s);if(o)throw new Error(`failed to remove ${n} from DB`);if(a)throw new Error(`failed to remove ${n} files from the disk`)}async deleteComponentVersion(t,r,n){let i=(0,Ym.getComponentName)(t,r),s=(0,Zg.getComponentFileSystemFolder)(t,r);this.assertValidComponentVersion(r,t,n),await this.assertComponentVersionExists(r,t,n);let o=ks.default.join(this.dataMountPoint,s,n);try{await this.db.repositories.componentVersion.delete({componentName:i,version:n}),await ga.default.rm(o,{force:!0,recursive:!0})}catch(l){this.logger.error(l)}let a=await this.db.repositories.componentVersion.componentVersionExists(i,n),c=await ga.default.pathExists(o);if(a)throw new Error(`failed to remove ${i} from DB`);if(c)throw new Error(`failed to remove ${i} files from the disk`)}assertValidComponentName(t,r){let n=(0,Zg.getComponentFileSystemFolder)(r,t),i=ks.default.resolve(this.dataMountPoint),s=ks.default.join(this.dataMountPoint,n);if(ks.default.resolve(this.dataMountPoint)+ks.default.sep+n!==s||i===s)throw new ic.ResourceNotFoundError(`component name ${n} is invalid`)}assertValidComponentVersion(t,r,n){let i=(0,Zg.getComponentFileSystemFolder)(r,t),s=ks.default.join(ks.default.resolve(this.dataMountPoint),i,n);if([ks.default.resolve(this.dataMountPoint),i,n].join(ks.default.sep)!==s)throw new ic.ResourceNotFoundError(`Component version ${n} is invalid`)}async assertComponentExists(t,r){let n=(0,Ym.getComponentName)(r,t),i=(0,Zg.getComponentFileSystemFolder)(r,t),s=ks.default.join(this.dataMountPoint,i);if(!await this.db.repositories.component.componentExists(n)&&!await ga.default.pathExists(s))throw new ic.ResourceNotFoundError(`Component ${n} not found`)}async assertComponentVersionExists(t,r,n){let i=(0,Ym.getComponentName)(r,t);await this.assertComponentExists(t,r);let s=ks.default.join(this.dataMountPoint,i,n);if(!await this.db.repositories.componentVersion.componentVersionExists(i,n)&&!await ga.default.pathExists(s))throw new ic.ResourceNotFoundError(`Component version ${n} for component ${i} not found`)}async moveFilesAndUpdateDb(t,r,n){try{await(0,Lrt.moveFilesAndDirectories)(r,n)}catch(i){throw ga.default.rm(r,{force:!0,recursive:!0}),i}try{await ga.default.chmod(n,"755")}catch(i){throw ga.default.rm(n,{force:!0,recursive:!0}),i}try{await this.addComponentVersion(t)}catch(i){throw ga.default.rm(n,{force:!0,recursive:!0}),i}}async addComponentVersion(t){let r=t.getVersion(),n=t.getName(),{displayName:i,description:s,icon:o}=t.getModel();await this.db.repositories.component.componentExists(n)===!1&&await this.db.repositories.component.addComponent(n),await this.db.repositories.componentVersion.addComponentVersion(n,r,i,s,o)}async getValidComponentDestinationPath(t,r){let n=ks.default.join(this.dataMountPoint,t,r);if(await ga.default.pathExists(n))throw new ic.BadRequestError(`${t} version ${r} already exists and cannot be uploaded`);return n}};Qm.ComponentService=B3});var ey=P(sc=>{"use strict";var zrt=sc&&sc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sc,"__esModule",{value:!0});sc.AbstractManifest=sc.schemaVersionRegex=sc.SCHEMA_VERSIONS=void 0;var Urt=zrt(require("util")),$rt=KC(),Vrt=yd();sc.SCHEMA_VERSIONS=Object.keys(Vrt.MANIFEST_MODELS);sc.schemaVersionRegex=/\/schemas\/(?<schema>v\d+)\.json#?$/;var J3=class{constructor(t){this.manifest=t}getNamespace(){return this.manifest.namespace}getName(){return(0,$rt.getComponentName)(this.manifest.namespace,this.manifest.name)}getVersion(){return this.manifest.version}getInputSchemas(){return this.manifest.functions.map(t=>({name:t.name,schema:t.input})).filter(t=>!Urt.default.isDeepStrictEqual(t.schema,{}))}};sc.AbstractManifest=J3});var W3=P(YC=>{"use strict";Object.defineProperty(YC,"__esModule",{value:!0});YC.isValidManifestVersion=void 0;var Hrt=ey();function Grt(e){return typeof e=="string"?Hrt.SCHEMA_VERSIONS.includes(e):!1}YC.isValidManifestVersion=Grt});var Y3=P(QC=>{"use strict";Object.defineProperty(QC,"__esModule",{value:!0});QC.getAndAssertManifestVersion=void 0;var mde=ey(),K3=Xg(),Brt=W3();function Jrt(e){var t;if(!e.$schema)throw new K3.ManifestValidationError("Could not determine manifest version. Your manifest must have a $schema property defined.");let r=mde.schemaVersionRegex.exec(e.$schema),n=(t=r==null?void 0:r.groups)===null||t===void 0?void 0:t.schema;if(n===void 0)throw new K3.ManifestValidationError("Could not determine manifest version from $schema value.");if((0,Brt.isValidManifestVersion)(n))return n;throw new K3.ManifestValidationError(`manifest version "${n}" isn't a valid version. Valid versions are "${mde.SCHEMA_VERSIONS.join('", "')}"`)}QC.getAndAssertManifestVersion=Jrt});var X3=P(Xm=>{"use strict";var _de=Xm&&Xm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xm,"__esModule",{value:!0});Xm.ManifestV1=void 0;var Wrt=ey(),Pd=Br(),fl=_de(require("path")),fde=Hp(),Krt=_de(require("fs/promises")),Q3=class extends Wrt.AbstractManifest{constructor(t,r){super(t),this.manifest=t,this.manifestPath=r}getSchemaVersion(){return"v1"}getModel(){return this.manifest}getComponentFunctionByName(t=""){let r=this.getModel();if(!t)if(r.mainFunction)t=r.mainFunction;else throw new Pd.ResourceNotFoundError("Component main function is not defined");let n=r.functions.find(i=>i.name===t);if(!n)throw new Pd.ResourceNotFoundError(`"${t}" function for ${this.getName()} ${this.getVersion()} could not be found`);return n}async getComponentFunctionEntryFilePath(t){let r=this.getComponentDirectory();return fl.default.resolve(fl.default.join(r,t.entry))}getComponentDirectory(){return fl.default.resolve(fl.default.join(this.manifestPath,".."))}async getManifestPath(){return this.manifestPath}getFunctionPreviewConfiguration(t,r){var n;let i=(n=this.manifest.previews)===null||n===void 0?void 0:n[t];if(i===void 0){let o;if(this.manifest.previews){let a=Object.keys(this.manifest.previews).join(", ");o=`Component has not defined preview with key "${t}", the defined preview keys for this component are "${a}"`}else o="Component has no previews defined";throw new Pd.ResourceNotFoundError(o)}return i.functionData[r.name]}async getFunctionPreviewData(t){var r;switch((r=t==null?void 0:t.inputData)===null||r===void 0?void 0:r.type){case"file":{let n=fl.default.resolve(this.getComponentDirectory(),t.inputData.path);if(fl.default.dirname(n).startsWith(this.getComponentDirectory())===!1)throw new Pd.BadRequestError(`Preview inputData file "${t.inputData.path}" is outside the component directory`);if(await(0,fde.pathExists)(n)===!1)throw new Pd.BadRequestError(`Preview inputData file "${t.inputData.path}" does not exist`);return this.loadDataFromFile(n)}case"inline":return t.inputData.value;default:throw new Error("Unknown Preview Configuration Type")}}async getMockedUriObject(t){let r=this.manifest.mockedUris!==void 0?this.manifest.mockedUris[t]:void 0;if(r===void 0)throw new Pd.BadRequestError(`Mocked URI object "${t}" not defined in the manifest`);switch(r.type){case"file":{let n=fl.default.resolve(this.getComponentDirectory(),r.path);if(fl.default.dirname(n).startsWith(this.getComponentDirectory())===!1)throw new Pd.BadRequestError(`Mocked URI object file "${r.path}" is outside the component directory`);if(await(0,fde.pathExists)(n)===!1)throw new Pd.BadRequestError(`Mocked URI object file "${r.path}" does not exist`);return this.loadDataFromFile(n)}case"inline":return r.value;default:throw new Error("Unknown Mocked URL object type")}}async loadDataFromFile(t){switch(fl.default.extname(t)){case".json":{let r=await Krt.default.readFile(t,{encoding:"utf-8"});return JSON.parse(r)}case".js":return require(t);default:throw new Error("Unknown filetype to load data")}}};Xm.ManifestV1=Q3});var Z3=P(XC=>{"use strict";Object.defineProperty(XC,"__esModule",{value:!0});XC.assertFuncEntryFilesAreValid=void 0;var hde=Br();async function Yrt(e,t,r){if((0,hde.isPathTryingToAccessOutsideOfRoot)(e,r.entry))throw new Error(`access to component "${r.name}'s" entry file "${r.entry}" outside the parent directory in "${t.name} ${t.version}" is not allowed`);if(!await(0,hde.isReadable)(e,r.entry))throw new Error(`"${r.name}'s" entry file "${r.entry}" is inaccessible`)}XC.assertFuncEntryFilesAreValid=Yrt});var e5=P(Zm=>{"use strict";var Qrt=Zm&&Zm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zm,"__esModule",{value:!0});Zm.assertStaticFilesAreValid=void 0;var Xrt=Qrt(require("path")),vde=Br();async function Zrt(e,t,r,n){let i=Xrt.default.join(e,n),s=r.output.staticFiles||[];for(let o of s){if(o.file.filepath.startsWith("http://")||o.file.filepath.startsWith("https://"))continue;if((0,vde.isPathTryingToAccessOutsideOfRoot)(i,o.file.filepath))throw new Error(`access to a static file "${o.file.filepath}" for "${r.name}" outside the parent directory in "${t.name} ${t.version}" is not allowed`);if(!await(0,vde.isReadable)(i,o.file.filepath))throw new Error(`"${r.name}'s" static file "${o.file.filepath}" is inaccessible`)}}Zm.assertStaticFilesAreValid=Zrt});var gde=P(ZC=>{"use strict";Object.defineProperty(ZC,"__esModule",{value:!0});ZC.assertStaticFilesHaveAbsolutePath=void 0;async function ent(e){let t=e.output.staticFiles||[];for(let r of t)if(!(r.file.filepath.startsWith("http://")||r.file.filepath.startsWith("https://")))throw new Error(`function ${e.name} defines static files but manifest has no staticFiles.locationRoot defined`)}ZC.assertStaticFilesHaveAbsolutePath=ent});var r5=P(eI=>{"use strict";Object.defineProperty(eI,"__esModule",{value:!0});eI.ComponentSchemaValidationServiceFactory=void 0;var ef=yd(),t5=class{static create(){return new ef.JSONSchemaService(new ef.TypeResolver([ef.SquizImageType,ef.BaseFormattedTextType,ef.SquizLinkType]),ef.ManifestV1MetaSchema)}};eI.ComponentSchemaValidationServiceFactory=t5});var i5=P(tI=>{"use strict";Object.defineProperty(tI,"__esModule",{value:!0});tI.ComponentInputValidationServiceFactory=void 0;var tf=yd(),n5=class{static create(){return new tf.JSONSchemaService(new tf.TypeResolver([tf.SquizImageType,tf.ComponentInputFormattedTextType,tf.SquizLinkType]),tf.ComponentInputMetaSchema)}};tI.ComponentInputValidationServiceFactory=n5});var nI=P(rf=>{"use strict";var wde=rf&&rf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rf,"__esModule",{value:!0});rf.AbstractManifestService=void 0;var ty=Br(),Yu=Xg(),yde=Y3(),tnt=X3(),s5=wde(Hp()),Sde=Z3(),rnt=e5(),rI=wde(require("path")),nnt=gde(),int=r5(),snt=i5(),o5=class{constructor(t){this.logger=t,this.jsonValidationService=int.ComponentSchemaValidationServiceFactory.create(),this.inputValidationService=snt.ComponentInputValidationServiceFactory.create()}async loadManifest(t,r,n,i){let s;try{let o=await this.getManifestPath(t,r,n);return s=await this.readManifest(o),await this.assertManifestIsValid(o,s.getModel(),i),s}catch(o){if(o instanceof ty.ResourceNotFoundError){this.logger.error(o);let a=o;throw s===void 0&&(a=new ty.ResourceNotFoundError(`manifest for ${t}/${r} ${n} could not be found`)),a.stack=o.stack,a}throw o}}async readManifest(t){if(await s5.default.pathExists(t)){let r=JSON.parse(await s5.default.readFile(t,{encoding:"utf-8"}));return await this.assertManifestMeetsSchemaVersion(r),this.getManifest(r,t)}throw new ty.ResourceNotFoundError("manifest could not be found")}getManifest(t,r){let n=(0,yde.getAndAssertManifestVersion)(t);if(n==="v1")return new tnt.ManifestV1(t,r);throw new Yu.ManifestValidationError(`Unsupported manifest schema version ${n}`)}async assertManifestIsValid(t,r,n){let i=this.getManifest(r,t),s;n&&"validateFunction"in n&&(s=i.getComponentFunctionByName(n.validateFunction)),this.assertThatMainFunctionExists(r),await this.assertStaticFileLocationNotOutsideOfRoot(t,r),await this.assertFuncEntryFilesAreValid(t,r,s),await this.assertStaticFilesAreValid(t,r,s),await this.assertPreviewDataIsValid(t,r,i,s),await this.assertMockedUriObjectsAreValid(t,r,i)}async assertPreviewDataIsValid(t,r,n,i=void 0){if(!r.previews)return;let s="";try{for(let[o,a]of Object.entries(r.previews)){s=o;for(let[c,l]of Object.entries(a.functionData)){let d=n.getComponentFunctionByName(c);if(i===void 0||i.name===d.name){let u=await n.getFunctionPreviewData(l);this.inputValidationService.validateInput(u,d.input)}}}}catch(o){if(o instanceof Error){let a=`Invalid preview data for preview "${s}": ${o.message}`;throw new Yu.ManifestValidationError(a,o)}throw o}}async assertMockedUriObjectsAreValid(t,r,n){if(r.mockedUris)try{for(let[i,s]of Object.entries(r.mockedUris)){let o=await n.getMockedUriObject(i)}}catch(i){throw i instanceof Error?new Yu.ManifestValidationError(i.message,i):i}}assertThatMainFunctionExists(t){if(!t.functions.find(r=>r.name===t.mainFunction))throw new Yu.ManifestValidationError(`"${t.name} ${t.version}" main function could not be found in function list`)}async assertStaticFileLocationNotOutsideOfRoot(t,r){var n;let i=rI.default.resolve(t,".."),s=(n=r.staticFiles)===null||n===void 0?void 0:n.locationRoot;if(s){if((0,ty.isPathTryingToAccessOutsideOfRoot)(i,s))throw new Error(`access to a static file locationRoot outside the parent directory in "${r.name} ${r.version}" is not allowed`);if(!await(0,ty.isReadable)(i,s))throw new Error(`static root ${s} from "${r.name} ${r.version}" is not accessible`)}}async assertStaticFilesAreValid(t,r,n=void 0){let i=rI.default.resolve(t,"..");n!==void 0&&await this.assertFunctionStaticFilesAreValid(n,r,i);for(let s of r.functions)await this.assertFunctionStaticFilesAreValid(s,r,i)}async assertFunctionStaticFilesAreValid(t,r,n){var i;let s=(i=r.staticFiles)===null||i===void 0?void 0:i.locationRoot;if(t.output.responseType==="html"){if(s===void 0&&t.output.staticFiles&&t.output.staticFiles.length>0)try{await(0,nnt.assertStaticFilesHaveAbsolutePath)(t)}catch(o){throw o instanceof Error?new Yu.ManifestValidationError(o.message,o):o}else if(s)try{await(0,rnt.assertStaticFilesAreValid)(n,r,t,s)}catch(o){throw o instanceof Error?new Yu.ManifestValidationError(o.message,o):o}}}async assertFuncEntryFilesAreValid(t,r,n=void 0){let i=rI.default.resolve(t,"..");try{if(n!==void 0)await(0,Sde.assertFuncEntryFilesAreValid)(i,r,n);else for(let s of r.functions)await(0,Sde.assertFuncEntryFilesAreValid)(i,r,s)}catch(s){throw s instanceof Error?new Yu.ManifestValidationError(s.message,s):s}}async assertManifestMeetsSchemaVersion(t){(0,yde.getAndAssertManifestVersion)(t),this.jsonValidationService.validateInput(t)}async isComponentDirectory(t){return s5.default.pathExists(rI.default.join(t,"manifest.json"))}};rf.AbstractManifestService=o5});var bde=P(nf=>{"use strict";var Ede=nf&&nf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nf,"__esModule",{value:!0});nf.ManifestServiceForDev=void 0;var a5=Ede(require("path")),ont=Ede(require("fs/promises")),ant=nI(),cnt=Br(),lnt=KC(),c5=class extends ant.AbstractManifestService{constructor(t,r){super(r),this.componentMountPoint=t,this.logger=r,this.foundManifests=[]}async listAllComponentManifests(){return this.foundManifests.length===0&&(this.foundManifests=await this.recursivelyLookForManifests(this.componentMountPoint)),this.foundManifests.map(t=>t.manifest)}async getManifestPath(t,r,n){this.foundManifests.length===0&&(this.foundManifests=await this.recursivelyLookForManifests(this.componentMountPoint));let i=this.foundManifests.find(s=>s.manifest.getName()===(0,lnt.getComponentName)(t,r)&&s.manifest.getVersion()===n);if(i)return a5.default.join(i.directory,"manifest.json");throw new cnt.ResourceNotFoundError("manifest could not be found")}async recursivelyLookForManifests(t,r=10){if(await this.isComponentDirectory(t)){let o=await this.tryToReadManifest(a5.default.join(t,"manifest.json"));return o?[{directory:t,manifest:o}]:[]}if(r===0)return[];let i=(await ont.default.readdir(t,{withFileTypes:!0,encoding:"utf-8"})).filter(o=>o.isDirectory());return(await Promise.all(i.map(o=>this.recursivelyLookForManifests(a5.default.join(t,o.name),r-1)))).flat()}async tryToReadManifest(t){let r;try{r=await this.readManifest(t)}catch(n){if(n&&n.message)this.logger.warn(`found manifest ${t}, but failed schema validation because: ${n.message}`);else throw n}if(r)try{await this.assertManifestIsValid(t,r.getModel())}catch(n){if(n&&n.message)this.logger.warn(`found manifest ${t}, but failed to load manifest because: ${n.message}`);else throw n}return r}};nf.ManifestServiceForDev=c5});var d5=P(iI=>{"use strict";Object.defineProperty(iI,"__esModule",{value:!0});iI.ManifestLocationError=void 0;var l5=class extends Error{constructor(t,r,n){super(t),this.manifest=r,this.stack=n==null?void 0:n.stack,this.name="ManifestLocationError"}};iI.ManifestLocationError=l5});var Pde=P(sf=>{"use strict";var Ade=sf&&sf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sf,"__esModule",{value:!0});sf.ManifestServiceForProduction=void 0;var Qu=Ade(require("path")),ry=Ade(require("fs/promises")),dnt=nI(),Rde=d5(),u5=class extends dnt.AbstractManifestService{constructor(t,r){super(r),this.componentMountPoint=t,this.logger=r}async listAllComponentManifests(){let t=await ry.default.readdir(this.componentMountPoint,{encoding:"utf-8"}),r=[];for(let n of t){let i=Qu.default.join(this.componentMountPoint,n);if((await ry.default.stat(i)).isDirectory()){let s=await ry.default.readdir(i,{encoding:"utf-8"});for(let o of s)try{let a=Qu.default.join(i,o);if((await ry.default.stat(a)).isDirectory()){let c=await ry.default.readdir(a,{encoding:"utf-8"});for(let l of c){let d=Qu.default.join(a,l);if(await this.isComponentDirectory(d))try{let u=Qu.default.join(d,"manifest.json"),p=await this.readManifest(u);await this.assertManifestVersionIsTheSameAsFileSystemVersion(u,p.getModel()),r.push(p)}catch{}}}}catch{}}}return r}async assertManifestIsValid(t,r,n){await super.assertManifestIsValid(t,r,n),(n==null?void 0:n.tempLocation)!==!0&&await this.assertManifestVersionIsTheSameAsFileSystemVersion(t,r)}async getManifestPath(t,r,n){return Qu.default.join(this.componentMountPoint,t,r,n,"manifest.json")}async assertManifestVersionIsTheSameAsFileSystemVersion(t,r){let n=this.getManifest(r,t),i=Qu.default.join(n.getName(),n.getVersion(),"manifest.json");if(!t.endsWith(i)){let s=t.split(Qu.default.sep).reverse(),o=s[1],a=s[3];throw o!==n.getVersion()?new Rde.ManifestLocationError(`manifest version miss match, expected version ${o} but found ${n.getVersion()}`,r):new Rde.ManifestLocationError(`manifest namespace miss match, expected namespace ${a} but found ${n.getNamespace()}`,r)}}};sf.ManifestServiceForProduction=u5});var Cde=P((u8t,xde)=>{"use strict";xde.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var jde=P((p8t,Ode)=>{"use strict";var Tde="%[a-f0-9]{2}",Ide=new RegExp("("+Tde+")|([^%]+?)","gi"),qde=new RegExp("("+Tde+")+","gi");function p5(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],p5(r),p5(n))}function unt(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Ide)||[],r=1;r<t.length;r++)e=p5(t,r).join(""),t=e.match(Ide)||[];return e}}function pnt(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=qde.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=unt(r[0]);n!==r[0]&&(t[r[0]]=n)}r=qde.exec(e)}t["%C2"]="\uFFFD";for(var i=Object.keys(t),s=0;s<i.length;s++){var o=i[s];e=e.replace(new RegExp(o,"g"),t[o])}return e}Ode.exports=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return pnt(e)}}});var kde=P((m8t,Nde)=>{"use strict";Nde.exports=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];let r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}});var Dde=P((f8t,Mde)=>{"use strict";Mde.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),s=0;s<n.length;s++){var o=n[s],a=e[o];(i?t.indexOf(o)!==-1:t(o,a,e))&&(r[o]=a)}return r}});var sI=P(Ms=>{"use strict";var mnt=Cde(),fnt=jde(),Lde=kde(),_nt=Dde(),hnt=e=>e==null,m5=Symbol("encodeFragmentIdentifier");function vnt(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[bn(t,e),"[",i,"]"].join("")]:[...r,[bn(t,e),"[",bn(i,e),"]=",bn(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[bn(t,e),"[]"].join("")]:[...r,[bn(t,e),"[]=",bn(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[bn(t,e),":list="].join("")]:[...r,[bn(t,e),":list=",bn(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[bn(r,e),t,bn(i,e)].join("")]:[[n,bn(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,bn(t,e)]:[...r,[bn(t,e),"=",bn(n,e)].join("")]}}function gnt(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let s=typeof n=="string"&&n.includes(e.arrayFormatSeparator),o=typeof n=="string"&&!s&&_l(n,e).includes(e.arrayFormatSeparator);n=o?_l(n,e):n;let a=s||o?n.split(e.arrayFormatSeparator).map(c=>_l(c,e)):n===null?n:_l(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let s=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!s){i[r]=n&&_l(n,e);return}let o=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>_l(a,e));if(i[r]===void 0){i[r]=o;return}i[r]=[].concat(i[r],o)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function zde(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function bn(e,t){return t.encode?t.strict?mnt(e):encodeURIComponent(e):e}function _l(e,t){return t.decode?fnt(e):e}function Ude(e){return Array.isArray(e)?e.sort():typeof e=="object"?Ude(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function $de(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function ynt(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function Vde(e){e=$de(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function Fde(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function Hde(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),zde(t.arrayFormatSeparator);let r=gnt(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[s,o]=Lde(t.decode?i.replace(/\+/g," "):i,"=");o=o===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?o:_l(o,t),r(_l(s,t),o,n)}for(let i of Object.keys(n)){let s=n[i];if(typeof s=="object"&&s!==null)for(let o of Object.keys(s))s[o]=Fde(s[o],t);else n[i]=Fde(s,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,s)=>{let o=n[s];return Boolean(o)&&typeof o=="object"&&!Array.isArray(o)?i[s]=Ude(o):i[s]=o,i},Object.create(null))}Ms.extract=Vde;Ms.parse=Hde;Ms.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),zde(t.arrayFormatSeparator);let r=o=>t.skipNull&&hnt(e[o])||t.skipEmptyString&&e[o]==="",n=vnt(t),i={};for(let o of Object.keys(e))r(o)||(i[o]=e[o]);let s=Object.keys(i);return t.sort!==!1&&s.sort(t.sort),s.map(o=>{let a=e[o];return a===void 0?"":a===null?bn(o,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?bn(o,t)+"[]":a.reduce(n(o),[]).join("&"):bn(o,t)+"="+bn(a,t)}).filter(o=>o.length>0).join("&")};Ms.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=Lde(e,"#");return Object.assign({url:r.split("?")[0]||"",query:Hde(Vde(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:_l(n,t)}:{})};Ms.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[m5]:!0},t);let r=$de(e.url).split("?")[0]||"",n=Ms.extract(e.url),i=Ms.parse(n,{sort:!1}),s=Object.assign(i,e.query),o=Ms.stringify(s,t);o&&(o=`?${o}`);let a=ynt(e.url);return e.fragmentIdentifier&&(a=`#${t[m5]?bn(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${o}${a}`};Ms.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[m5]:!1},r);let{url:n,query:i,fragmentIdentifier:s}=Ms.parseUrl(e,r);return Ms.stringifyUrl({url:n,query:_nt(i,t),fragmentIdentifier:s},r)};Ms.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,s)=>!t(i,s);return Ms.pick(e,n,r)}});var f5=P(of=>{"use strict";var Snt=of&&of.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(of,"__esModule",{value:!0});of.convertFunctionStaticFilesToFqdn=void 0;var wnt=Br(),Ent=Snt(sI());function bnt(e,t,r,n,i){if(t.startsWith("https://")||t.startsWith("http://"))return t;let s=(0,wnt.joinAbsoluteUrlPath)(e,"s",n,i,t);return Ent.default.stringifyUrl({url:s,query:{_componentSet:r}},{skipNull:!0,encode:!0,arrayFormat:"bracket"})}of.convertFunctionStaticFilesToFqdn=bnt});var Gde=P(af=>{"use strict";var Rnt=af&&af.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(af,"__esModule",{value:!0});af.convertFunctionStaticFilesToFqdnForPreview=void 0;var Ant=Br(),Pnt=Rnt(sI());function xnt(e,t,r,n,i){if(t.startsWith("https://")||t.startsWith("http://"))return t;let s=(0,Ant.joinAbsoluteUrlPath)(e,"s",r,n,t);return Pnt.default.stringifyUrl({url:s,query:{_previewKey:i}},{skipNull:!0,encode:!0,arrayFormat:"bracket"})}af.convertFunctionStaticFilesToFqdnForPreview=xnt});var Jde=P(oI=>{"use strict";Object.defineProperty(oI,"__esModule",{value:!0});oI.ComponentFunctionService=void 0;var _5=Br(),Bde=f5(),Cnt=Gde(),Int=r5(),qnt=i5(),h5=class{constructor(t){this.rootUrl=t,this.schemaValidationService=Int.ComponentSchemaValidationServiceFactory.create(),this.inputValidationService=qnt.ComponentInputValidationServiceFactory.create()}getFunctionDefinitionFromManifest(t,r){return r.getModel().functions.find(i=>i.name===t)}prepareComponentFunctionForWebResponse(t,r,n){var i;return t.output.responseType==="html"&&(t.output.staticFiles=(i=t.output.staticFiles)===null||i===void 0?void 0:i.map(s=>({...s,file:{...s.file,filepath:(0,Bde.convertFunctionStaticFilesToFqdn)(this.rootUrl,s.file.filepath,n,r.getName(),r.getVersion())}}))),t}prepareManifestForWebResponse(t,r){let n=t.getModel(),i={...n,functions:[]};for(let s of n.functions)if(s.output.responseType==="html"&&s.output.staticFiles){let o={...s,output:{...s.output,staticFiles:s.output.staticFiles.map(a=>({...a,file:{...a.file,filepath:(0,Bde.convertFunctionStaticFilesToFqdn)(this.rootUrl,a.file.filepath,r,t.getName(),t.getVersion())}}))}};i.functions.push(o)}else i.functions.push(s);return i}prepareComponentFunctionForPreview(t,r,n){var i;return t.output.responseType==="html"&&(t.output.staticFiles=(i=t.output.staticFiles)===null||i===void 0?void 0:i.map(s=>({...s,file:{...s.file,filepath:(0,Cnt.convertFunctionStaticFilesToFqdnForPreview)(this.rootUrl,s.file.filepath,r.getName(),r.getVersion(),n)}}))),t}prepareManifestForPreview(t,r){let n=t.getModel(),i={...n,functions:[]};for(let s of n.functions){let o=this.prepareComponentFunctionForPreview(s,t,r);i.functions.push(o)}return i}assertInputValidForComponentFunction(t,r){if(t===void 0)throw new _5.BadRequestError(`input value for ${r.name} cannot be undefined`);this.schemaValidationService.validateInput(t,r.input)}assertRenderInputValidForComponentFunction(t,r){if(t===void 0)throw new _5.BadRequestError(`input value for ${r.name} cannot be undefined`);this.inputValidationService.validateInput(t,r.input)}assertOutputValidForComponentFunction(t,r){if(r===void 0)throw new Error(`input value for ${r} cannot be undefined`);if(t===void 0)throw new Error(`input value for ${r.name} cannot be undefined`);let n=this.getOutputValidationSchema(r.output);this.schemaValidationService.validateInput(t,n)}getOutputValidationSchema(t){let r=t.responseType;switch(r){case"html":return{type:"string",minLength:0};case"json":{let n=t;if(n.definition)return n.definition;throw new Error("definition is missing for the json")}default:(0,_5.never)(r)}}};oI.ComponentFunctionService=h5});var g5=P(Hn=>{"use strict";var Tnt=Hn&&Hn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),oo=Hn&&Hn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Tnt(t,e,r)};Object.defineProperty(Hn,"__esModule",{value:!0});oo(nI(),Hn);oo(bde(),Hn);oo(Pde(),Hn);oo(Jde(),Hn);oo(Z3(),Hn);oo(e5(),Hn);oo(Y3(),Hn);oo(W3(),Hn);oo(ey(),Hn);oo(J$(),Hn);oo(X3(),Hn);oo(d5(),Hn);oo(Xg(),Hn)});var Wde=P(aI=>{"use strict";Object.defineProperty(aI,"__esModule",{value:!0});aI.ComponentContentUriResolverForPreview=void 0;var Ont=g5(),y5=class{constructor(t,r){this.manifest=t,this.manifestService=new Ont.ManifestV1(t,r??"")}async resolveUri(t){return await this.manifestService.getMockedUriObject(t)}};aI.ComponentContentUriResolverForPreview=y5});var Yde=P(Kde=>{"use strict";Object.defineProperty(Kde,"__esModule",{value:!0})});var Xde=P(Qde=>{"use strict";Object.defineProperty(Qde,"__esModule",{value:!0})});var eue=P(Zde=>{"use strict";Object.defineProperty(Zde,"__esModule",{value:!0})});var tue=P(cf=>{"use strict";var jnt=cf&&cf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cf,"__esModule",{value:!0});cf.createComponentContextualFunctions=void 0;var cI=jnt(sI()),ny=Br(),Nnt=require("crypto");function knt(e){let t=(0,ny.joinAbsoluteUrlPath)(e.rootUrl,"r",e.componentName,e.manifest.version),r=(0,ny.joinAbsoluteUrlPath)(e.rootUrl,"s",e.componentName,e.manifest.version);return{getStaticResourceUrl:n=>{if(typeof n!="string")throw new Error("getStaticResourceUrl: first argument must be a string");let i=(0,ny.joinAbsoluteUrlPath)(r,n).split("?")[0];return e.withPreviewKey?cI.default.stringifyUrl({url:i,query:{_previewKey:e.withPreviewKey}},{skipNull:!0,encode:!0,arrayFormat:"bracket"}):cI.default.stringifyUrl({url:i,query:{_componentSet:e.set.webPath}},{skipNull:!0,encode:!0,arrayFormat:"bracket"})},getFunctionUrl:(n,i={})=>{if(typeof n!="string")throw new Error("getFunctionUrl: first argument must be a string");return n=n.toLowerCase(),e.withPreviewKey?cI.default.stringifyUrl({url:(0,ny.joinAbsoluteUrlPath)(t,n),query:{...i,_previewKey:e.withPreviewKey}},{skipNull:!0,encode:!0,arrayFormat:"bracket"}):cI.default.stringifyUrl({url:(0,ny.joinAbsoluteUrlPath)(t,n),query:{...i,_componentSet:e.set.webPath}},{skipNull:!0,encode:!0,arrayFormat:"bracket"})},resolveUri:async n=>{if(typeof n!="string")throw new Error("resolveUri: first argument must be a string");if(e.requestId===void 0)throw new Error("resolveUri: request id is undefined");let i=(0,Nnt.randomUUID)();return e.webRequestEvents.emit("uri-request",n,e.requestId,i),await new Promise((o,a)=>{let c=(l,d,u)=>{i==u&&(e.webRequestEvents.removeListener("uri-response",c),l.status==="fulfilled"&&o(l.value),l.status==="rejected"&&a(l.reason))};e.webRequestEvents.on("uri-response",c)})}}}cf.createComponentContextualFunctions=knt});var rue=P(lI=>{"use strict";Object.defineProperty(lI,"__esModule",{value:!0});lI.ComponentError=void 0;var Mnt=Br(),S5=class extends Mnt.ErrorWithHttpStatusCode{constructor(t,r,n,i,s,o,a=500){super(a,(r==null?void 0:r.message)||"An error occurred with no additional information available"),this.requestId=t,this.error=r,this.functionName=n,this.componentName=i,this.componentVersion=s,this.setWebPath=o,this.name="ComponentError",this.stack=r==null?void 0:r.stack}};lI.ComponentError=S5});var nue=P(ni=>{"use strict";var Dnt=ni&&ni.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Lo=ni&&ni.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Dnt(t,e,r)};Object.defineProperty(ni,"__esModule",{value:!0});Lo(j3(),ni);Lo(D3(),ni);Lo(k3(),ni);Lo(L3(),ni);Lo(pde(),ni);Lo(Wde(),ni);Lo(Yde(),ni);Lo(Xde(),ni);Lo(eue(),ni);Lo(tue(),ni);Lo(rue(),ni);Lo(H3(),ni)});var iue=P(dI=>{"use strict";Object.defineProperty(dI,"__esModule",{value:!0});dI.ContentItemService=void 0;var w5=class{constructor(t){this.api=t}async getContentItem(t,r){var n;try{let i={};return r&&(i["x-api-key"]=r),(await this.api.getContentItem(t,{resolveDynamicContent:!0},{headers:i})).data.content}catch(i){let s=i;if(((n=s.response)===null||n===void 0?void 0:n.status)===404)return;throw this.handleAxiosError(s)}}handleAxiosError(t){var r;let{response:n}=t;if(!n||typeof t=="object"&&!t.isAxiosError)return t;throw new Error(`Error occurred in Component Content Item service: ${(r=n.data)===null||r===void 0?void 0:r.message}`)}};dI.ContentItemService=w5});var b5=P(Ds=>{"use strict";var Fnt=Ds&&Ds.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.Api=Ds.HttpClient=Ds.ContentType=Ds.ContentSchemaType=void 0;var Lnt;(function(e){e.Component="component",e.User="user"})(Lnt=Ds.ContentSchemaType||(Ds.ContentSchemaType={}));var znt=Fnt(require("axios")),hl;(function(e){e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain"})(hl=Ds.ContentType||(Ds.ContentType={}));var uI=class{constructor({securityWorker:t,secure:r,format:n,...i}={}){this.securityData=null,this.setSecurityData=s=>{this.securityData=s},this.request=async({secure:s,path:o,type:a,query:c,format:l,body:d,...u})=>{let p=(typeof s=="boolean"?s:this.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},f=this.mergeRequestParams(u,p),m=l||this.format||void 0;return a===hl.FormData&&d&&d!==null&&typeof d=="object"&&(d=this.createFormData(d)),a===hl.Text&&d&&d!==null&&typeof d!="string"&&(d=JSON.stringify(d)),this.instance.request({...f,headers:{...f.headers||{},...a&&a!==hl.FormData?{"Content-Type":a}:{}},params:c,responseType:m,data:d,url:o})},this.instance=znt.default.create({...i,baseURL:i.baseURL||"/"}),this.secure=r,this.format=n,this.securityWorker=t}mergeRequestParams(t,r){let n=t.method||r&&r.method;return{...this.instance.defaults,...t,...r||{},headers:{...n&&this.instance.defaults.headers[n.toLowerCase()]||{},...t.headers||{},...r&&r.headers||{}}}}stringifyFormItem(t){return typeof t=="object"&&t!==null?JSON.stringify(t):`${t}`}createFormData(t){return Object.keys(t||{}).reduce((r,n)=>{let i=t[n],s=i instanceof Array?i:[i];for(let o of s){let a=o instanceof Blob||o instanceof File;r.append(n,a?o:this.stringifyFormItem(o))}return r},new FormData)}};Ds.HttpClient=uI;var E5=class extends uI{constructor(){super(...arguments),this.getRoot=(t={})=>this.request({path:"/",method:"GET",...t}),this.contentItem={createContentItem:(t,r={})=>this.request({path:"/content-item",method:"POST",body:t,secure:!0,type:hl.Json,...r}),getPaginatedContentItems:(t,r={})=>this.request({path:"/content-item",method:"GET",query:t,secure:!0,format:"json",...r}),updateContentItem:(t,r,n={})=>this.request({path:`/content-item/${t}`,method:"PATCH",body:r,secure:!0,type:hl.Json,format:"json",...n}),getContentItem:(t,r,n={})=>this.request({path:`/content-item/${t}`,method:"GET",query:r,secure:!0,format:"json",...n}),deleteContentItemById:(t,r={})=>this.request({path:`/content-item/${t}`,method:"DELETE",secure:!0,format:"json",...r})},this.contentSchema={createContentSchema:(t,r={})=>this.request({path:"/content-schema",method:"POST",body:t,secure:!0,type:hl.Json,format:"json",...r}),getPaginatedContentSchemas:(t,r={})=>this.request({path:"/content-schema",method:"GET",query:t,secure:!0,format:"json",...r}),getContentSchemaSchema:(t,r={})=>this.request({path:"/content-schema/{schemaName*.json}",method:"GET",secure:!0,format:"json",...r}),getContentSchema:(t,r={})=>this.request({path:"/content-schema/{schemaName*}",method:"GET",secure:!0,format:"json",...r}),updateContentSchema:(t={})=>this.request({path:"/content-schema/{schemaName*}",method:"PATCH",secure:!0,...t}),deleteContentSchema:(t,r={})=>this.request({path:"/content-schema/{schemaName*}",method:"DELETE",secure:!0,format:"json",...r})},this.health={getHealthInfo:(t={})=>this.request({path:"/health",method:"GET",format:"json",...t})},this.dynamicContent={getDynamicContentItem:(t,r={})=>this.request({path:"/dynamic-content",method:"GET",query:t,secure:!0,format:"json",...r})},this.matrixQuery={getPaginatedAssets:(t,r,n={})=>this.request({path:`/matrix-query/${t}`,method:"GET",query:r,secure:!0,format:"json",...n}),getAsset:(t,r,n={})=>this.request({path:`/matrix-query/${t}/asset`,method:"GET",query:r,secure:!0,format:"json",...n})},this.settings={getMatrixIdentifiers:(t={})=>this.request({path:"/settings/matrix-identifiers",method:"GET",secure:!0,format:"json",...t}),createMatrixIdentifier:(t,r={})=>this.request({path:"/settings/matrix-identifiers",method:"POST",body:t,secure:!0,type:hl.Json,format:"json",...r}),updateMatrixIdentifier:(t,r,n={})=>this.request({path:`/settings/matrix-identifiers/${t}`,method:"PATCH",body:r,secure:!0,type:hl.Json,format:"json",...n}),getMatrixIdentifier:(t,r={})=>this.request({path:`/settings/matrix-identifiers/${t}`,method:"GET",secure:!0,format:"json",...r}),deleteMatrixIdentifier:(t,r={})=>this.request({path:`/settings/matrix-identifiers/${t}`,method:"DELETE",secure:!0,...r})}}};Ds.Api=E5});var sue=P(zo=>{"use strict";var Unt=zo&&zo.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),$nt=zo&&zo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Vnt=zo&&zo.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Unt(t,e,r);return $nt(t,e),t};Object.defineProperty(zo,"__esModule",{value:!0});zo.ContentApi=zo.ContentApiService=void 0;var Hnt=b5();Object.defineProperty(zo,"ContentApiService",{enumerable:!0,get:function(){return Hnt.Api}});zo.ContentApi=Vnt(b5())});var R5=P(pI=>{"use strict";Object.defineProperty(pI,"__esModule",{value:!0});pI.getContentSchemaName=void 0;function Gnt(e,t,r){return[e,t,r].join("/")}pI.getContentSchemaName=Gnt});var oue=P(mI=>{"use strict";Object.defineProperty(mI,"__esModule",{value:!0});mI.ComponentContentSchemaService=void 0;var Bnt=sue(),Jnt=R5(),A5=class{constructor(t){this.api=t}async createComponentContentSchemas(t,r){let n=t.getInputSchemas();for(let i of n)if(i.schema&&Object.keys(i.schema).length){let s=(0,Jnt.getContentSchemaName)(t.getName(),t.getVersion(),i.name);await this.createContentSchema(s,i.schema,r)}}async createContentSchema(t,r,n){try{let i={"Content-Type":"application/json"};n&&(i["x-api-key"]=n),await this.api.createContentSchema({contentSchemaType:Bnt.ContentApi.ContentSchemaType.Component,schema:r,name:t},{headers:i})}catch(i){throw this.handleAxiosError(i)}}handleAxiosError(t){var r;let{response:n}=t;if(!n||typeof t=="object"&&!t.isAxiosError)return t;throw new Error(`Error occurred when creating content schema: ${(r=n.data)===null||r===void 0?void 0:r.message}`)}};mI.ComponentContentSchemaService=A5});var aue=P(fI=>{"use strict";Object.defineProperty(fI,"__esModule",{value:!0});fI.DynamicContentItemService=void 0;var P5=class{constructor(t){this.api=t}async getDynamicContentItem(t,r){try{let n={};return r&&(n["x-api-key"]=r),(await this.api.getDynamicContentItem({_contentUri:t},{headers:n})).data}catch(n){let i=n;throw this.handleAxiosError(i)}}handleAxiosError(t){var r;let{response:n}=t;if(!n||typeof t=="object"&&!t.isAxiosError)return t;throw new Error(`Error occurred when resolving content from uri: ${(r=n.data)===null||r===void 0?void 0:r.message}`)}};fI.DynamicContentItemService=P5});var cue=P(oc=>{"use strict";var Wnt=oc&&oc.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),_I=oc&&oc.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Wnt(t,e,r)};Object.defineProperty(oc,"__esModule",{value:!0});_I(iue(),oc);_I(oue(),oc);_I(aue(),oc);_I(R5(),oc)});var lue=P(Xu=>{"use strict";var Knt=Xu&&Xu.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ynt=Xu&&Xu.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Knt(t,e,r)};Object.defineProperty(Xu,"__esModule",{value:!0});Ynt(f5(),Xu)});var uue=P(df=>{"use strict";var due=df&&df.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(df,"__esModule",{value:!0});df.ComponentFixture=void 0;var lf=due(require("fs/promises")),ao=due(require("path")),Qnt=require("crypto"),Xnt=require("child_process"),Znt="some-namespace",iy=class{static async setupFullComponentDirectory(t,{raw:r=!1}={}){let n=await this.createFixtureDirectory(),{directory:i,version:s}=await this.createVersionDirectory(n),o=await this.createManifest(i,{version:s,staticFilesRoot:"static"});return await lf.default.writeFile(ao.default.join(i,"main.js"),eit(t,{raw:r})),await lf.default.mkdir(ao.default.join(i,"static")),await lf.default.writeFile(ao.default.join(i,"static","static.txt"),"hello"),{fixtureDirectory:n,componentDirectory:i,version:s,manifest:o,componentName:ao.default.basename(n)}}static async createFixtureDirectory(){let t=tit(),r=ao.default.join(this.fixtureRootDirectory,t);return await lf.default.mkdir(r,{recursive:!0}),r}static async createVersionDirectory(t){let r="1.0.1",n=ao.default.join(t,r);return await lf.default.mkdir(n),{directory:n,version:r}}static async createManifest(t,r={}){var n,i,s,o;let c={$schema:"http://localhost:3000/schemas/v1.json#",name:ao.default.basename(t)===r.version?ao.default.basename(ao.default.dirname(t)):ao.default.basename(t),namespace:this.namespace,displayName:"some-display-name",description:"some-description",version:(n=r.version)!==null&&n!==void 0?n:"1.0.0",mainFunction:(i=r.mainFunction)!==null&&i!==void 0?i:"main",functions:[{name:(s=r.mainFunction)!==null&&s!==void 0?s:"main",entry:((o=r.mainFunction)!==null&&o!==void 0?o:"main")+".js",input:{},output:{responseType:"html"}}]};return r.staticFilesRoot&&(c.staticFiles={locationRoot:r.staticFilesRoot}),await lf.default.writeFile(ao.default.join(t,"manifest.json"),JSON.stringify(c)),c}};df.ComponentFixture=iy;iy.fixtureRootDirectory=ao.default.join(rit(),"fixtures");iy.namespace=Znt;function eit(e,{raw:t=!1}={}){return t?`module.exports = (input, info) => ${e}`:typeof e=="string"?`module.exports = () => "${e}"`:`module.exports = () => JSON.parse(${JSON.stringify(e)})`}function tit(){return"test-"+(0,Qnt.randomUUID)()}function rit(){var e;if(process.env.NODE_ENV!=="test")return(e=process.env.DATA_MOUNT_POINT)!==null&&e!==void 0?e:"";let t=(0,Xnt.execSync)("git rev-parse --show-toplevel",{encoding:"utf-8"}).replace(/\n$/,"");return ao.default.resolve(t,"test-components")}});var x5=P(Gn=>{"use strict";var pue=Gn&&Gn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),nit=Gn&&Gn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Zu=Gn&&Gn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&pue(t,e,r)},iit=Gn&&Gn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&pue(t,e,r);return nit(t,e),t};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.TestHelpers=void 0;Zu(J$(),Gn);Zu(lde(),Gn);Zu(C3(),Gn);Zu(nue(),Gn);Zu(cue(),Gn);Zu(lue(),Gn);Zu(g5(),Gn);Gn.TestHelpers=iit(uue())});var wue=P((V8t,Sue)=>{"use strict";Sue.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0}});var Rue=P((H8t,bue)=>{"use strict";var Eue=typeof Symbol<"u"&&Symbol,lit=wue();bue.exports=function(){return typeof Eue!="function"||typeof Symbol!="function"||typeof Eue("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:lit()}});var Pue=P((G8t,Aue)=>{"use strict";var dit="Function.prototype.bind called on incompatible ",T5=Array.prototype.slice,uit=Object.prototype.toString,pit="[object Function]";Aue.exports=function(t){var r=this;if(typeof r!="function"||uit.call(r)!==pit)throw new TypeError(dit+r);for(var n=T5.call(arguments,1),i,s=function(){if(this instanceof i){var d=r.apply(this,n.concat(T5.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(T5.call(arguments)))},o=Math.max(0,r.length-n.length),a=[],c=0;c<o;c++)a.push("$"+c);if(i=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var l=function(){};l.prototype=r.prototype,i.prototype=new l,l.prototype=null}return i}});var vI=P((B8t,xue)=>{"use strict";var mit=Pue();xue.exports=Function.prototype.bind||mit});var Iue=P((J8t,Cue)=>{"use strict";var fit=vI();Cue.exports=fit.call(Function.call,Object.prototype.hasOwnProperty)});var SI=P((W8t,Nue)=>{"use strict";var rr,ff=SyntaxError,jue=Function,mf=TypeError,O5=function(e){try{return jue('"use strict"; return ('+e+").constructor;")()}catch{}},ep=Object.getOwnPropertyDescriptor;if(ep)try{ep({},"")}catch{ep=null}var j5=function(){throw new mf},_it=ep?function(){try{return arguments.callee,j5}catch{try{return ep(arguments,"callee").get}catch{return j5}}}():j5,uf=Rue()(),ac=Object.getPrototypeOf||function(e){return e.__proto__},pf={},hit=typeof Uint8Array>"u"?rr:ac(Uint8Array),tp={"%AggregateError%":typeof AggregateError>"u"?rr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?rr:ArrayBuffer,"%ArrayIteratorPrototype%":uf?ac([][Symbol.iterator]()):rr,"%AsyncFromSyncIteratorPrototype%":rr,"%AsyncFunction%":pf,"%AsyncGenerator%":pf,"%AsyncGeneratorFunction%":pf,"%AsyncIteratorPrototype%":pf,"%Atomics%":typeof Atomics>"u"?rr:Atomics,"%BigInt%":typeof BigInt>"u"?rr:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?rr:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?rr:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?rr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?rr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?rr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?rr:FinalizationRegistry,"%Function%":jue,"%GeneratorFunction%":pf,"%Int8Array%":typeof Int8Array>"u"?rr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?rr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?rr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":uf?ac(ac([][Symbol.iterator]())):rr,"%JSON%":typeof JSON=="object"?JSON:rr,"%Map%":typeof Map>"u"?rr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!uf?rr:ac(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?rr:Promise,"%Proxy%":typeof Proxy>"u"?rr:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?rr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?rr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!uf?rr:ac(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?rr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":uf?ac(""[Symbol.iterator]()):rr,"%Symbol%":uf?Symbol:rr,"%SyntaxError%":ff,"%ThrowTypeError%":_it,"%TypedArray%":hit,"%TypeError%":mf,"%Uint8Array%":typeof Uint8Array>"u"?rr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?rr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?rr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?rr:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?rr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?rr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?rr:WeakSet};try{null.error}catch(e){que=ac(ac(e)),tp["%Error.prototype%"]=que}var que,vit=function e(t){var r;if(t==="%AsyncFunction%")r=O5("async function () {}");else if(t==="%GeneratorFunction%")r=O5("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=O5("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=ac(i.prototype))}return tp[t]=r,r},Tue={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},oy=vI(),gI=Iue(),git=oy.call(Function.call,Array.prototype.concat),yit=oy.call(Function.apply,Array.prototype.splice),Oue=oy.call(Function.call,String.prototype.replace),yI=oy.call(Function.call,String.prototype.slice),Sit=oy.call(Function.call,RegExp.prototype.exec),wit=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Eit=/\\(\\)?/g,bit=function(t){var r=yI(t,0,1),n=yI(t,-1);if(r==="%"&&n!=="%")throw new ff("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ff("invalid intrinsic syntax, expected opening `%`");var i=[];return Oue(t,wit,function(s,o,a,c){i[i.length]=a?Oue(c,Eit,"$1"):o||s}),i},Rit=function(t,r){var n=t,i;if(gI(Tue,n)&&(i=Tue[n],n="%"+i[0]+"%"),gI(tp,n)){var s=tp[n];if(s===pf&&(s=vit(n)),typeof s>"u"&&!r)throw new mf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new ff("intrinsic "+t+" does not exist!")};Nue.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new mf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new mf('"allowMissing" argument must be a boolean');if(Sit(/^%?[^%]*%?$/,t)===null)throw new ff("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=bit(t),i=n.length>0?n[0]:"",s=Rit("%"+i+"%",r),o=s.name,a=s.value,c=!1,l=s.alias;l&&(i=l[0],yit(n,git([0,1],l)));for(var d=1,u=!0;d<n.length;d+=1){var p=n[d],f=yI(p,0,1),m=yI(p,-1);if((f==='"'||f==="'"||f==="`"||m==='"'||m==="'"||m==="`")&&f!==m)throw new ff("property names with quotes must have matching quotes");if((p==="constructor"||!u)&&(c=!0),i+="."+p,o="%"+i+"%",gI(tp,o))a=tp[o];else if(a!=null){if(!(p in a)){if(!r)throw new mf("base intrinsic for "+t+" exists, but the property is not available.");return}if(ep&&d+1>=n.length){var v=ep(a,p);u=!!v,u&&"get"in v&&!("originalValue"in v.get)?a=v.get:a=a[p]}else u=gI(a,p),a=a[p];u&&!c&&(tp[o]=a)}}return a}});var zue=P((K8t,wI)=>{"use strict";var N5=vI(),_f=SI(),Due=_f("%Function.prototype.apply%"),Fue=_f("%Function.prototype.call%"),Lue=_f("%Reflect.apply%",!0)||N5.call(Fue,Due),kue=_f("%Object.getOwnPropertyDescriptor%",!0),rp=_f("%Object.defineProperty%",!0),Ait=_f("%Math.max%");if(rp)try{rp({},"a",{value:1})}catch{rp=null}wI.exports=function(t){var r=Lue(N5,Fue,arguments);if(kue&&rp){var n=kue(r,"length");n.configurable&&rp(r,"length",{value:1+Ait(0,t.length-(arguments.length-1))})}return r};var Mue=function(){return Lue(N5,Due,arguments)};rp?rp(wI.exports,"apply",{value:Mue}):wI.exports.apply=Mue});var Hue=P((Y8t,Vue)=>{"use strict";var Uue=SI(),$ue=zue(),Pit=$ue(Uue("String.prototype.indexOf"));Vue.exports=function(t,r){var n=Uue(t,!!r);return typeof n=="function"&&Pit(t,".prototype.")>-1?$ue(n):n}});var Bue=P((Q8t,Gue)=>{Gue.exports=require("util").inspect});var ppe=P((X8t,upe)=>{var H5=typeof Map=="function"&&Map.prototype,k5=Object.getOwnPropertyDescriptor&&H5?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,bI=H5&&k5&&typeof k5.get=="function"?k5.get:null,Jue=H5&&Map.prototype.forEach,G5=typeof Set=="function"&&Set.prototype,M5=Object.getOwnPropertyDescriptor&&G5?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,RI=G5&&M5&&typeof M5.get=="function"?M5.get:null,Wue=G5&&Set.prototype.forEach,xit=typeof WeakMap=="function"&&WeakMap.prototype,cy=xit?WeakMap.prototype.has:null,Cit=typeof WeakSet=="function"&&WeakSet.prototype,ly=Cit?WeakSet.prototype.has:null,Iit=typeof WeakRef=="function"&&WeakRef.prototype,Kue=Iit?WeakRef.prototype.deref:null,qit=Boolean.prototype.valueOf,Tit=Object.prototype.toString,Oit=Function.prototype.toString,jit=String.prototype.match,B5=String.prototype.slice,Cd=String.prototype.replace,Nit=String.prototype.toUpperCase,Yue=String.prototype.toLowerCase,spe=RegExp.prototype.test,Que=Array.prototype.concat,cc=Array.prototype.join,kit=Array.prototype.slice,Xue=Math.floor,L5=typeof BigInt=="function"?BigInt.prototype.valueOf:null,D5=Object.getOwnPropertySymbols,z5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",zi=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hf||"symbol")?Symbol.toStringTag:null,ope=Object.prototype.propertyIsEnumerable,Zue=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function epe(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||spe.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Xue(-e):Xue(e);if(n!==e){var i=String(n),s=B5.call(t,i.length+1);return Cd.call(i,r,"$&_")+"."+Cd.call(Cd.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Cd.call(t,r,"$&_")}var U5=Bue(),tpe=U5.custom,rpe=cpe(tpe)?tpe:null;upe.exports=function e(t,r,n,i){var s=r||{};if(xd(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xd(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=xd(s,"customInspect")?s.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xd(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(xd(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=s.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return dpe(t,s);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return a?epe(t,c):c}if(typeof t=="bigint"){var l=String(t)+"n";return a?epe(t,l):l}var d=typeof s.depth>"u"?5:s.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return $5(t)?"[Array]":"[Object]";var u=Zit(s,n);if(typeof i>"u")i=[];else if(lpe(i,t)>=0)return"[Circular]";function p(F,k,G){if(k&&(i=kit.call(i),i.push(k)),G){var Y={depth:s.depth};return xd(s,"quoteStyle")&&(Y.quoteStyle=s.quoteStyle),e(F,Y,n+1,i)}return e(F,s,n+1,i)}if(typeof t=="function"&&!npe(t)){var f=Hit(t),m=EI(t,p);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(m.length>0?" { "+cc.call(m,", ")+" }":"")}if(cpe(t)){var v=hf?Cd.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):z5.call(t);return typeof t=="object"&&!hf?ay(v):v}if(Yit(t)){for(var g="<"+Yue.call(String(t.nodeName)),y=t.attributes||[],h=0;h<y.length;h++)g+=" "+y[h].name+"="+ape(Mit(y[h].value),"double",s);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Yue.call(String(t.nodeName))+">",g}if($5(t)){if(t.length===0)return"[]";var S=EI(t,p);return u&&!Xit(S)?"["+V5(S,u)+"]":"[ "+cc.call(S,", ")+" ]"}if(Fit(t)){var w=EI(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!ope.call(t,"cause")?"{ ["+String(t)+"] "+cc.call(Que.call("[cause]: "+p(t.cause),w),", ")+" }":w.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+cc.call(w,", ")+" }"}if(typeof t=="object"&&o){if(rpe&&typeof t[rpe]=="function"&&U5)return U5(t,{depth:d-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Git(t)){var j=[];return Jue&&Jue.call(t,function(F,k){j.push(p(k,t,!0)+" => "+p(F,t))}),ipe("Map",bI.call(t),j,u)}if(Wit(t)){var x=[];return Wue&&Wue.call(t,function(F){x.push(p(F,t))}),ipe("Set",RI.call(t),x,u)}if(Bit(t))return F5("WeakMap");if(Kit(t))return F5("WeakSet");if(Jit(t))return F5("WeakRef");if(zit(t))return ay(p(Number(t)));if($it(t))return ay(p(L5.call(t)));if(Uit(t))return ay(qit.call(t));if(Lit(t))return ay(p(String(t)));if(!Dit(t)&&!npe(t)){var O=EI(t,p),N=Zue?Zue(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",q=!N&&zi&&Object(t)===t&&zi in t?B5.call(Id(t),8,-1):C?"Object":"",b=N||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",R=b+(q||C?"["+cc.call(Que.call([],q||[],C||[]),": ")+"] ":"");return O.length===0?R+"{}":u?R+"{"+V5(O,u)+"}":R+"{ "+cc.call(O,", ")+" }"}return String(t)};function ape(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function Mit(e){return Cd.call(String(e),/"/g,""")}function $5(e){return Id(e)==="[object Array]"&&(!zi||!(typeof e=="object"&&zi in e))}function Dit(e){return Id(e)==="[object Date]"&&(!zi||!(typeof e=="object"&&zi in e))}function npe(e){return Id(e)==="[object RegExp]"&&(!zi||!(typeof e=="object"&&zi in e))}function Fit(e){return Id(e)==="[object Error]"&&(!zi||!(typeof e=="object"&&zi in e))}function Lit(e){return Id(e)==="[object String]"&&(!zi||!(typeof e=="object"&&zi in e))}function zit(e){return Id(e)==="[object Number]"&&(!zi||!(typeof e=="object"&&zi in e))}function Uit(e){return Id(e)==="[object Boolean]"&&(!zi||!(typeof e=="object"&&zi in e))}function cpe(e){if(hf)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!z5)return!1;try{return z5.call(e),!0}catch{}return!1}function $it(e){if(!e||typeof e!="object"||!L5)return!1;try{return L5.call(e),!0}catch{}return!1}var Vit=Object.prototype.hasOwnProperty||function(e){return e in this};function xd(e,t){return Vit.call(e,t)}function Id(e){return Tit.call(e)}function Hit(e){if(e.name)return e.name;var t=jit.call(Oit.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function lpe(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Git(e){if(!bI||!e||typeof e!="object")return!1;try{bI.call(e);try{RI.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Bit(e){if(!cy||!e||typeof e!="object")return!1;try{cy.call(e,cy);try{ly.call(e,ly)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Jit(e){if(!Kue||!e||typeof e!="object")return!1;try{return Kue.call(e),!0}catch{}return!1}function Wit(e){if(!RI||!e||typeof e!="object")return!1;try{RI.call(e);try{bI.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Kit(e){if(!ly||!e||typeof e!="object")return!1;try{ly.call(e,ly);try{cy.call(e,cy)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Yit(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function dpe(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return dpe(B5.call(e,0,t.maxStringLength),t)+n}var i=Cd.call(Cd.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Qit);return ape(i,"single",t)}function Qit(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Nit.call(t.toString(16))}function ay(e){return"Object("+e+")"}function F5(e){return e+" { ? }"}function ipe(e,t,r,n){var i=n?V5(r,n):cc.call(r,", ");return e+" ("+t+") {"+i+"}"}function Xit(e){for(var t=0;t<e.length;t++)if(lpe(e[t],`
|
|
347
|
+
WHERE cscv.component_set_web_path=$1 ${n}`;return(await this.executeQueryRaw(s,i)).map(a=>({componentName:a.component_name,version:a.version,displayName:a.display_name,description:a.description,icon:a.icon?a.icon:void 0,environmentVariables:a.env_vars}))}async getComponentByNameAndVersion(t,r){return await this.findOne({componentName:t,version:r})}async componentVersionExists(t,r){return await this.getComponentByNameAndVersion(t,r)!=null}async addComponentVersion(t,r,n,i,s){if(hrt.test(r)===!1)throw new Error("ComponentVersion does not follow the semver convention. Component version must be in the form of major.minor.patch");return await this.create({componentName:t,version:r,description:i||"",displayName:n||"",icon:s})}};GC.ComponentVersionRepository=F3});var z3=P(BC=>{"use strict";Object.defineProperty(BC,"__esModule",{value:!0});BC.createComponentRepositories=void 0;var vrt=Y$(),grt=Uae(),yrt=zle(),Srt=I3(),wrt=ide(),Ert=k3(),brt=L3();function Rrt(e){return{component:new Ert.ComponentRepository(e),componentVersion:new brt.ComponentVersionRepository(e),componentSet:new Srt.ComponentSetRepository(e),componentSetComponentVersion:new vrt.ComponentSetComponentVersionRepository(e),componentSetComponentVersionExcluded:new grt.ComponentSetComponentVersionExcludedRepository(e),componentSetComponentVersionEditable:new yrt.ComponentSetComponentVersionEditableRepository(e),componentSetRule:new wrt.ComponentSetRuleRepository(e)}}BC.createComponentRepositories=Rrt});var ode=P(U3=>{"use strict";Object.defineProperty(U3,"__esModule",{value:!0});U3.default=["20220704054051_initial.sql","20220718172237_adding_component_sets.sql","20220728113941_add_env_vars_field.sql","20220817113300_removing_null_props_from_jsonb.sql","20223525103556_component_set_rule.sql","20221027151225_dummy.sql","20221117151200_add_detail_columns_to_component_version.js","20221220151200_add_required_to_manifests.js","20221222151200_add_required_to_manifests.js","20230111095522_update_environment_property.js","20230203084900_ensure_static_root_exists.js","20230210143300_lowercase_all_uri_names.js","20230217151212_component_set_component_version_updates.sql","20230218121212_add_component_set_rules.js"]});var cde=P(Jm=>{"use strict";var Art=Jm&&Jm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jm,"__esModule",{value:!0});Jm.createConnectionManager=void 0;var ade=cl(),Prt=z3(),xrt=Art(ode());async function Crt(e,t,r){let n=await(0,ade.getConnectionInfo)(t);return new ade.ConnectionManager(e,n,r,xrt.default,Prt.createComponentRepositories)}Jm.createConnectionManager=Crt});var lde=P(ml=>{"use strict";var Irt=ml&&ml.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),$3=ml&&ml.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Irt(t,e,r)};Object.defineProperty(ml,"__esModule",{value:!0});$3(zae(),ml);$3(z3(),ml);$3(cde(),ml)});var Xg=P(JC=>{"use strict";Object.defineProperty(JC,"__esModule",{value:!0});JC.ManifestValidationError=void 0;var V3=class extends Error{constructor(t,r){super(t),this.stack=r==null?void 0:r.stack,this.name="ManifestValidationError"}};JC.ManifestValidationError=V3});var H3=P(Wm=>{"use strict";var qrt=Wm&&Wm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wm,"__esModule",{value:!0});Wm.getComponentFileSystemFolder=void 0;var Trt=qrt(require("path"));function Ort(e,t){return Trt.default.join(e,t)}Wm.getComponentFileSystemFolder=Ort});var KC=P(WC=>{"use strict";Object.defineProperty(WC,"__esModule",{value:!0});WC.getComponentName=void 0;function jrt(e,t){return`${e}/${t}`}WC.getComponentName=jrt});var dde=P(Km=>{"use strict";var Nrt=Km&&Km.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Km,"__esModule",{value:!0});Km.moveFilesAndDirectories=void 0;var G3=Nrt(require("fs/promises"));async function krt(e,t){if(await Mrt(e)===!1)throw new Error(`Source directory "${e}" does not exist`);await G3.default.cp(e,t,{recursive:!0,force:!0}),await G3.default.rm(e,{recursive:!0,force:!0})}Km.moveFilesAndDirectories=krt;async function Mrt(e){try{return await G3.default.stat(e),!0}catch(t){if((t==null?void 0:t.code)==="ENOENT")return!1;throw t}}});var pde=P(Qm=>{"use strict";var ude=Qm&&Qm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qm,"__esModule",{value:!0});Qm.ComponentService=void 0;var ks=ude(require("path")),ga=ude(Hp()),ic=Br(),Drt=Xg(),Zg=H3(),Ym=KC(),Frt=yd(),Lrt=dde(),B3=class{constructor(t,r,n,i){this.db=t,this.logger=r,this.dataMountPoint=n,this.manifestService=i}async getComponentVersionForWeb(t,r,n){await this.assertComponentVersionExists(r,t,n);let i=await this.db.repositories.componentVersion.findOne({componentName:(0,Ym.getComponentName)(t,r),version:n});if(!i)throw new ic.ResourceNotFoundError(`${t}/${r} ${n} could not be found`);let s=await this.db.repositories.componentSet.findAllSetsComponentVersionIsIn(t,r,n);return{namespace:t,name:r,version:n,description:i.description,displayName:i.displayName,icon:i.icon,sets:s.map(o=>({displayName:o.displayName,webPath:o.webPath}))}}async getComponentForWeb(t,r){let n=(0,Ym.getComponentName)(t,r);if(await this.assertComponentExists(r,t),await this.db.repositories.component.componentExists(n)==!1)throw new ic.ResourceNotFoundError(`${t}/${r} could not be found`);return{versions:(await this.db.repositories.componentVersion.find({componentName:n})).map(o=>({description:o.description,displayName:o.displayName,icon:o.icon,version:o.version}))}}async getPaginatedComponents(t=1,r=[],n="asc",i=20,s=null){let o=await this.db.repositories.componentVersion.getPaginatedMaxComponentVersion(t,r,n,i,s),a=[];for(let c of o.items){let l=(await this.db.repositories.componentSet.findAllSetsComponentIsIn(c.componentName)).map(d=>({displayName:d.displayName,webPath:d.webPath}));a.push({name:c.componentName,includedInSets:l.length,componentSets:l,latestVersion:{description:c.description,displayName:c.displayName,icon:c.icon,version:c.version}})}return{items:a,pageInfo:(0,ic.getPageInfo)(t,o.pageSize,o.totalCount)}}async saveComponent(t){let r;try{let o=ks.default.join(t,"manifest.json");r=await this.manifestService.readManifest(o),await this.manifestService.assertManifestIsValid(o,r.getModel(),{tempLocation:!0})}catch(o){if(o instanceof Drt.ManifestValidationError||o instanceof Frt.SchemaValidationError){let a=new ic.BadRequestError(o.message);throw a.stack=o.stack,a}else throw o}let n=r.getName(),i=r.getVersion();if(await this.componentVersionExists(n,i))throw new ic.BadRequestError(`Component ${n} ${i} already exists`);let s=await this.getValidComponentDestinationPath(n,i);return await this.moveFilesAndUpdateDb(r,t,s),{name:n,version:i,manifest:r}}async componentVersionExists(t,r){return await this.db.repositories.componentVersion.getComponentByNameAndVersion(t,r)!==void 0}async deleteComponent(t,r){let n=(0,Ym.getComponentName)(t,r),i=(0,Zg.getComponentFileSystemFolder)(t,r);this.assertValidComponentName(r,t),await this.assertComponentExists(r,t);let s=ks.default.join(this.dataMountPoint,i);try{await this.db.repositories.componentVersion.delete({componentName:n})}catch(c){this.logger.error(c)}try{await this.db.repositories.component.delete({name:n})}catch(c){this.logger.error(c)}try{await ga.default.rm(s,{force:!0,recursive:!0})}catch(c){this.logger.error(c)}let o=await this.db.repositories.component.componentExists(n),a=await ga.default.pathExists(s);if(o)throw new Error(`failed to remove ${n} from DB`);if(a)throw new Error(`failed to remove ${n} files from the disk`)}async deleteComponentVersion(t,r,n){let i=(0,Ym.getComponentName)(t,r),s=(0,Zg.getComponentFileSystemFolder)(t,r);this.assertValidComponentVersion(r,t,n),await this.assertComponentVersionExists(r,t,n);let o=ks.default.join(this.dataMountPoint,s,n);try{await this.db.repositories.componentVersion.delete({componentName:i,version:n}),await ga.default.rm(o,{force:!0,recursive:!0})}catch(l){this.logger.error(l)}let a=await this.db.repositories.componentVersion.componentVersionExists(i,n),c=await ga.default.pathExists(o);if(a)throw new Error(`failed to remove ${i} from DB`);if(c)throw new Error(`failed to remove ${i} files from the disk`)}assertValidComponentName(t,r){let n=(0,Zg.getComponentFileSystemFolder)(r,t),i=ks.default.resolve(this.dataMountPoint),s=ks.default.join(this.dataMountPoint,n);if(ks.default.resolve(this.dataMountPoint)+ks.default.sep+n!==s||i===s)throw new ic.ResourceNotFoundError(`component name ${n} is invalid`)}assertValidComponentVersion(t,r,n){let i=(0,Zg.getComponentFileSystemFolder)(r,t),s=ks.default.join(ks.default.resolve(this.dataMountPoint),i,n);if([ks.default.resolve(this.dataMountPoint),i,n].join(ks.default.sep)!==s)throw new ic.ResourceNotFoundError(`Component version ${n} is invalid`)}async assertComponentExists(t,r){let n=(0,Ym.getComponentName)(r,t),i=(0,Zg.getComponentFileSystemFolder)(r,t),s=ks.default.join(this.dataMountPoint,i);if(!await this.db.repositories.component.componentExists(n)&&!await ga.default.pathExists(s))throw new ic.ResourceNotFoundError(`Component ${n} not found`)}async assertComponentVersionExists(t,r,n){let i=(0,Ym.getComponentName)(r,t);await this.assertComponentExists(t,r);let s=ks.default.join(this.dataMountPoint,i,n);if(!await this.db.repositories.componentVersion.componentVersionExists(i,n)&&!await ga.default.pathExists(s))throw new ic.ResourceNotFoundError(`Component version ${n} for component ${i} not found`)}async moveFilesAndUpdateDb(t,r,n){try{await(0,Lrt.moveFilesAndDirectories)(r,n)}catch(i){throw ga.default.rm(r,{force:!0,recursive:!0}),i}try{await ga.default.chmod(n,"755")}catch(i){throw ga.default.rm(n,{force:!0,recursive:!0}),i}try{await this.addComponentVersion(t)}catch(i){throw ga.default.rm(n,{force:!0,recursive:!0}),i}}async addComponentVersion(t){let r=t.getVersion(),n=t.getName(),{displayName:i,description:s,icon:o}=t.getModel();await this.db.repositories.component.componentExists(n)===!1&&await this.db.repositories.component.addComponent(n),await this.db.repositories.componentVersion.addComponentVersion(n,r,i,s,o)}async getValidComponentDestinationPath(t,r){let n=ks.default.join(this.dataMountPoint,t,r);if(await ga.default.pathExists(n))throw new ic.BadRequestError(`${t} version ${r} already exists and cannot be uploaded`);return n}};Qm.ComponentService=B3});var ey=P(sc=>{"use strict";var zrt=sc&&sc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sc,"__esModule",{value:!0});sc.AbstractManifest=sc.schemaVersionRegex=sc.SCHEMA_VERSIONS=void 0;var Urt=zrt(require("util")),$rt=KC(),Vrt=yd();sc.SCHEMA_VERSIONS=Object.keys(Vrt.MANIFEST_MODELS);sc.schemaVersionRegex=/\/schemas\/(?<schema>v\d+)\.json#?$/;var J3=class{constructor(t){this.manifest=t}getNamespace(){return this.manifest.namespace}getName(){return(0,$rt.getComponentName)(this.manifest.namespace,this.manifest.name)}getVersion(){return this.manifest.version}getInputSchemas(){return this.manifest.functions.map(t=>({name:t.name,schema:t.input})).filter(t=>!Urt.default.isDeepStrictEqual(t.schema,{}))}};sc.AbstractManifest=J3});var W3=P(YC=>{"use strict";Object.defineProperty(YC,"__esModule",{value:!0});YC.isValidManifestVersion=void 0;var Hrt=ey();function Grt(e){return typeof e=="string"?Hrt.SCHEMA_VERSIONS.includes(e):!1}YC.isValidManifestVersion=Grt});var Y3=P(QC=>{"use strict";Object.defineProperty(QC,"__esModule",{value:!0});QC.getAndAssertManifestVersion=void 0;var mde=ey(),K3=Xg(),Brt=W3();function Jrt(e){var t;if(!e.$schema)throw new K3.ManifestValidationError("Could not determine manifest version. Your manifest must have a $schema property defined.");let r=mde.schemaVersionRegex.exec(e.$schema),n=(t=r==null?void 0:r.groups)===null||t===void 0?void 0:t.schema;if(n===void 0)throw new K3.ManifestValidationError("Could not determine manifest version from $schema value.");if((0,Brt.isValidManifestVersion)(n))return n;throw new K3.ManifestValidationError(`manifest version "${n}" isn't a valid version. Valid versions are "${mde.SCHEMA_VERSIONS.join('", "')}"`)}QC.getAndAssertManifestVersion=Jrt});var X3=P(Xm=>{"use strict";var _de=Xm&&Xm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xm,"__esModule",{value:!0});Xm.ManifestV1=void 0;var Wrt=ey(),Pd=Br(),fl=_de(require("path")),fde=Hp(),Krt=_de(require("fs/promises")),Q3=class extends Wrt.AbstractManifest{constructor(t,r){super(t),this.manifest=t,this.manifestPath=r}getSchemaVersion(){return"v1"}getModel(){return this.manifest}getComponentFunctionByName(t=""){let r=this.getModel();if(!t)if(r.mainFunction)t=r.mainFunction;else throw new Pd.ResourceNotFoundError("Component main function is not defined");let n=r.functions.find(i=>i.name===t);if(!n)throw new Pd.ResourceNotFoundError(`"${t}" function for ${this.getName()} ${this.getVersion()} could not be found`);return n}async getComponentFunctionEntryFilePath(t){let r=this.getComponentDirectory();return fl.default.resolve(fl.default.join(r,t.entry))}getComponentDirectory(){return fl.default.resolve(fl.default.join(this.manifestPath,".."))}async getManifestPath(){return this.manifestPath}getFunctionPreviewConfiguration(t,r){var n;let i=(n=this.manifest.previews)===null||n===void 0?void 0:n[t];if(i===void 0){let o;if(this.manifest.previews){let a=Object.keys(this.manifest.previews).join(", ");o=`Component has not defined preview with key "${t}", the defined preview keys for this component are "${a}"`}else o="Component has no previews defined";throw new Pd.ResourceNotFoundError(o)}return i.functionData[r.name]}async getFunctionPreviewData(t){var r;switch((r=t==null?void 0:t.inputData)===null||r===void 0?void 0:r.type){case"file":{let n=fl.default.resolve(this.getComponentDirectory(),t.inputData.path);if(fl.default.dirname(n).startsWith(this.getComponentDirectory())===!1)throw new Pd.BadRequestError(`Preview inputData file "${t.inputData.path}" is outside the component directory`);if(await(0,fde.pathExists)(n)===!1)throw new Pd.BadRequestError(`Preview inputData file "${t.inputData.path}" does not exist`);return this.loadDataFromFile(n)}case"inline":return t.inputData.value;default:throw new Error("Unknown Preview Configuration Type")}}async getMockedUriObject(t){let r=this.manifest.mockedUris!==void 0?this.manifest.mockedUris[t]:void 0;if(r===void 0)throw new Pd.BadRequestError(`Mocked URI object "${t}" not defined in the manifest`);switch(r.type){case"file":{let n=fl.default.resolve(this.getComponentDirectory(),r.path);if(fl.default.dirname(n).startsWith(this.getComponentDirectory())===!1)throw new Pd.BadRequestError(`Mocked URI object file "${r.path}" is outside the component directory`);if(await(0,fde.pathExists)(n)===!1)throw new Pd.BadRequestError(`Mocked URI object file "${r.path}" does not exist`);return this.loadDataFromFile(n)}case"inline":return r.value;default:throw new Error("Unknown Mocked URL object type")}}async loadDataFromFile(t){switch(fl.default.extname(t)){case".json":{let r=await Krt.default.readFile(t,{encoding:"utf-8"});return JSON.parse(r)}case".js":return require(t);default:throw new Error("Unknown filetype to load data")}}};Xm.ManifestV1=Q3});var Z3=P(XC=>{"use strict";Object.defineProperty(XC,"__esModule",{value:!0});XC.assertFuncEntryFilesAreValid=void 0;var hde=Br();async function Yrt(e,t,r){if((0,hde.isPathTryingToAccessOutsideOfRoot)(e,r.entry))throw new Error(`access to component "${r.name}'s" entry file "${r.entry}" outside the parent directory in "${t.name} ${t.version}" is not allowed`);if(!await(0,hde.isReadable)(e,r.entry))throw new Error(`"${r.name}'s" entry file "${r.entry}" is inaccessible`)}XC.assertFuncEntryFilesAreValid=Yrt});var e5=P(Zm=>{"use strict";var Qrt=Zm&&Zm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zm,"__esModule",{value:!0});Zm.assertStaticFilesAreValid=void 0;var Xrt=Qrt(require("path")),vde=Br();async function Zrt(e,t,r,n){let i=Xrt.default.join(e,n),s=r.output.staticFiles||[];for(let o of s){if(o.file.filepath.startsWith("http://")||o.file.filepath.startsWith("https://"))continue;if((0,vde.isPathTryingToAccessOutsideOfRoot)(i,o.file.filepath))throw new Error(`access to a static file "${o.file.filepath}" for "${r.name}" outside the parent directory in "${t.name} ${t.version}" is not allowed`);if(!await(0,vde.isReadable)(i,o.file.filepath))throw new Error(`"${r.name}'s" static file "${o.file.filepath}" is inaccessible`)}}Zm.assertStaticFilesAreValid=Zrt});var gde=P(ZC=>{"use strict";Object.defineProperty(ZC,"__esModule",{value:!0});ZC.assertStaticFilesHaveAbsolutePath=void 0;async function ent(e){let t=e.output.staticFiles||[];for(let r of t)if(!(r.file.filepath.startsWith("http://")||r.file.filepath.startsWith("https://")))throw new Error(`function ${e.name} defines static files but manifest has no staticFiles.locationRoot defined`)}ZC.assertStaticFilesHaveAbsolutePath=ent});var r5=P(eI=>{"use strict";Object.defineProperty(eI,"__esModule",{value:!0});eI.ComponentSchemaValidationServiceFactory=void 0;var ef=yd(),t5=class{static create(){return new ef.JSONSchemaService(new ef.TypeResolver([ef.SquizImageType,ef.BaseFormattedTextType,ef.SquizLinkType]),ef.ManifestV1MetaSchema)}};eI.ComponentSchemaValidationServiceFactory=t5});var i5=P(tI=>{"use strict";Object.defineProperty(tI,"__esModule",{value:!0});tI.ComponentInputValidationServiceFactory=void 0;var tf=yd(),n5=class{static create(){return new tf.JSONSchemaService(new tf.TypeResolver([tf.SquizImageType,tf.ComponentInputFormattedTextType,tf.SquizLinkType]),tf.ComponentInputMetaSchema)}};tI.ComponentInputValidationServiceFactory=n5});var nI=P(rf=>{"use strict";var wde=rf&&rf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rf,"__esModule",{value:!0});rf.AbstractManifestService=void 0;var ty=Br(),Yu=Xg(),yde=Y3(),tnt=X3(),s5=wde(Hp()),Sde=Z3(),rnt=e5(),rI=wde(require("path")),nnt=gde(),int=r5(),snt=i5(),o5=class{constructor(t){this.logger=t,this.jsonValidationService=int.ComponentSchemaValidationServiceFactory.create(),this.inputValidationService=snt.ComponentInputValidationServiceFactory.create()}async loadManifest(t,r,n,i){let s;try{let o=await this.getManifestPath(t,r,n);return s=await this.readManifest(o),await this.assertManifestIsValid(o,s.getModel(),i),s}catch(o){if(o instanceof ty.ResourceNotFoundError){this.logger.error(o);let a=o;throw s===void 0&&(a=new ty.ResourceNotFoundError(`manifest for ${t}/${r} ${n} could not be found`)),a.stack=o.stack,a}throw o}}async readManifest(t){if(await s5.default.pathExists(t)){let r=JSON.parse(await s5.default.readFile(t,{encoding:"utf-8"}));return await this.assertManifestMeetsSchemaVersion(r),this.getManifest(r,t)}throw new ty.ResourceNotFoundError("manifest could not be found")}getManifest(t,r){let n=(0,yde.getAndAssertManifestVersion)(t);if(n==="v1")return new tnt.ManifestV1(t,r);throw new Yu.ManifestValidationError(`Unsupported manifest schema version ${n}`)}async assertManifestIsValid(t,r,n){let i=this.getManifest(r,t),s;n&&"validateFunction"in n&&(s=i.getComponentFunctionByName(n.validateFunction)),this.assertThatMainFunctionExists(r),await this.assertStaticFileLocationNotOutsideOfRoot(t,r),await this.assertFuncEntryFilesAreValid(t,r,s),await this.assertStaticFilesAreValid(t,r,s),await this.assertPreviewDataIsValid(t,r,i,s),await this.assertMockedUriObjectsAreValid(t,r,i)}async assertPreviewDataIsValid(t,r,n,i=void 0){if(!r.previews)return;let s="";try{for(let[o,a]of Object.entries(r.previews)){s=o;for(let[c,l]of Object.entries(a.functionData)){let d=n.getComponentFunctionByName(c);if(i===void 0||i.name===d.name){let u=await n.getFunctionPreviewData(l);this.inputValidationService.validateInput(u,d.input)}}}}catch(o){if(o instanceof Error){let a=`Invalid preview data for preview "${s}": ${o.message}`;throw new Yu.ManifestValidationError(a,o)}throw o}}async assertMockedUriObjectsAreValid(t,r,n){if(r.mockedUris)try{for(let[i,s]of Object.entries(r.mockedUris)){let o=await n.getMockedUriObject(i)}}catch(i){throw i instanceof Error?new Yu.ManifestValidationError(i.message,i):i}}assertThatMainFunctionExists(t){if(!t.functions.find(r=>r.name===t.mainFunction))throw new Yu.ManifestValidationError(`"${t.name} ${t.version}" main function could not be found in function list`)}async assertStaticFileLocationNotOutsideOfRoot(t,r){var n;let i=rI.default.resolve(t,".."),s=(n=r.staticFiles)===null||n===void 0?void 0:n.locationRoot;if(s){if((0,ty.isPathTryingToAccessOutsideOfRoot)(i,s))throw new Error(`access to a static file locationRoot outside the parent directory in "${r.name} ${r.version}" is not allowed`);if(!await(0,ty.isReadable)(i,s))throw new Error(`static root ${s} from "${r.name} ${r.version}" is not accessible`)}}async assertStaticFilesAreValid(t,r,n=void 0){let i=rI.default.resolve(t,"..");n!==void 0&&await this.assertFunctionStaticFilesAreValid(n,r,i);for(let s of r.functions)await this.assertFunctionStaticFilesAreValid(s,r,i)}async assertFunctionStaticFilesAreValid(t,r,n){var i;let s=(i=r.staticFiles)===null||i===void 0?void 0:i.locationRoot;if(t.output.responseType==="html"){if(s===void 0&&t.output.staticFiles&&t.output.staticFiles.length>0)try{await(0,nnt.assertStaticFilesHaveAbsolutePath)(t)}catch(o){throw o instanceof Error?new Yu.ManifestValidationError(o.message,o):o}else if(s)try{await(0,rnt.assertStaticFilesAreValid)(n,r,t,s)}catch(o){throw o instanceof Error?new Yu.ManifestValidationError(o.message,o):o}}}async assertFuncEntryFilesAreValid(t,r,n=void 0){let i=rI.default.resolve(t,"..");try{if(n!==void 0)await(0,Sde.assertFuncEntryFilesAreValid)(i,r,n);else for(let s of r.functions)await(0,Sde.assertFuncEntryFilesAreValid)(i,r,s)}catch(s){throw s instanceof Error?new Yu.ManifestValidationError(s.message,s):s}}async assertManifestMeetsSchemaVersion(t){(0,yde.getAndAssertManifestVersion)(t),this.jsonValidationService.validateInput(t)}async isComponentDirectory(t){return s5.default.pathExists(rI.default.join(t,"manifest.json"))}};rf.AbstractManifestService=o5});var bde=P(nf=>{"use strict";var Ede=nf&&nf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nf,"__esModule",{value:!0});nf.ManifestServiceForDev=void 0;var a5=Ede(require("path")),ont=Ede(require("fs/promises")),ant=nI(),cnt=Br(),lnt=KC(),c5=class extends ant.AbstractManifestService{constructor(t,r){super(r),this.componentMountPoint=t,this.logger=r,this.foundManifests=[]}async listAllComponentManifests(){return this.foundManifests.length===0&&(this.foundManifests=await this.recursivelyLookForManifests(this.componentMountPoint)),this.foundManifests.map(t=>t.manifest)}async getManifestPath(t,r,n){this.foundManifests.length===0&&(this.foundManifests=await this.recursivelyLookForManifests(this.componentMountPoint));let i=this.foundManifests.find(s=>s.manifest.getName()===(0,lnt.getComponentName)(t,r)&&s.manifest.getVersion()===n);if(i)return a5.default.join(i.directory,"manifest.json");throw new cnt.ResourceNotFoundError("manifest could not be found")}async recursivelyLookForManifests(t,r=10){if(await this.isComponentDirectory(t)){let o=await this.tryToReadManifest(a5.default.join(t,"manifest.json"));return o?[{directory:t,manifest:o}]:[]}if(r===0)return[];let i=(await ont.default.readdir(t,{withFileTypes:!0,encoding:"utf-8"})).filter(o=>o.isDirectory());return(await Promise.all(i.map(o=>this.recursivelyLookForManifests(a5.default.join(t,o.name),r-1)))).flat()}async tryToReadManifest(t){let r;try{r=await this.readManifest(t)}catch(n){if(n&&n.message)this.logger.warn(`found manifest ${t}, but failed schema validation because: ${n.message}`);else throw n}if(r)try{await this.assertManifestIsValid(t,r.getModel())}catch(n){if(n&&n.message)this.logger.warn(`found manifest ${t}, but failed to load manifest because: ${n.message}`);else throw n}return r}};nf.ManifestServiceForDev=c5});var d5=P(iI=>{"use strict";Object.defineProperty(iI,"__esModule",{value:!0});iI.ManifestLocationError=void 0;var l5=class extends Error{constructor(t,r,n){super(t),this.manifest=r,this.stack=n==null?void 0:n.stack,this.name="ManifestLocationError"}};iI.ManifestLocationError=l5});var Pde=P(sf=>{"use strict";var Ade=sf&&sf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sf,"__esModule",{value:!0});sf.ManifestServiceForProduction=void 0;var Qu=Ade(require("path")),ry=Ade(require("fs/promises")),dnt=nI(),Rde=d5(),u5=class extends dnt.AbstractManifestService{constructor(t,r){super(r),this.componentMountPoint=t,this.logger=r}async listAllComponentManifests(){let t=await ry.default.readdir(this.componentMountPoint,{encoding:"utf-8"}),r=[];for(let n of t){let i=Qu.default.join(this.componentMountPoint,n);if((await ry.default.stat(i)).isDirectory()){let s=await ry.default.readdir(i,{encoding:"utf-8"});for(let o of s)try{let a=Qu.default.join(i,o);if((await ry.default.stat(a)).isDirectory()){let c=await ry.default.readdir(a,{encoding:"utf-8"});for(let l of c){let d=Qu.default.join(a,l);if(await this.isComponentDirectory(d))try{let u=Qu.default.join(d,"manifest.json"),p=await this.readManifest(u);await this.assertManifestVersionIsTheSameAsFileSystemVersion(u,p.getModel()),r.push(p)}catch{}}}}catch{}}}return r}async assertManifestIsValid(t,r,n){await super.assertManifestIsValid(t,r,n),(n==null?void 0:n.tempLocation)!==!0&&await this.assertManifestVersionIsTheSameAsFileSystemVersion(t,r)}async getManifestPath(t,r,n){return Qu.default.join(this.componentMountPoint,t,r,n,"manifest.json")}async assertManifestVersionIsTheSameAsFileSystemVersion(t,r){let n=this.getManifest(r,t),i=Qu.default.join(n.getName(),n.getVersion(),"manifest.json");if(!t.endsWith(i)){let s=t.split(Qu.default.sep).reverse(),o=s[1],a=s[3];throw o!==n.getVersion()?new Rde.ManifestLocationError(`manifest version miss match, expected version ${o} but found ${n.getVersion()}`,r):new Rde.ManifestLocationError(`manifest namespace miss match, expected namespace ${a} but found ${n.getNamespace()}`,r)}}};sf.ManifestServiceForProduction=u5});var Cde=P((u8t,xde)=>{"use strict";xde.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var jde=P((p8t,Ode)=>{"use strict";var Tde="%[a-f0-9]{2}",Ide=new RegExp("("+Tde+")|([^%]+?)","gi"),qde=new RegExp("("+Tde+")+","gi");function p5(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],p5(r),p5(n))}function unt(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Ide)||[],r=1;r<t.length;r++)e=p5(t,r).join(""),t=e.match(Ide)||[];return e}}function pnt(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=qde.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=unt(r[0]);n!==r[0]&&(t[r[0]]=n)}r=qde.exec(e)}t["%C2"]="\uFFFD";for(var i=Object.keys(t),s=0;s<i.length;s++){var o=i[s];e=e.replace(new RegExp(o,"g"),t[o])}return e}Ode.exports=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return pnt(e)}}});var kde=P((m8t,Nde)=>{"use strict";Nde.exports=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];let r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}});var Dde=P((f8t,Mde)=>{"use strict";Mde.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),s=0;s<n.length;s++){var o=n[s],a=e[o];(i?t.indexOf(o)!==-1:t(o,a,e))&&(r[o]=a)}return r}});var sI=P(Ms=>{"use strict";var mnt=Cde(),fnt=jde(),Lde=kde(),_nt=Dde(),hnt=e=>e==null,m5=Symbol("encodeFragmentIdentifier");function vnt(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[bn(t,e),"[",i,"]"].join("")]:[...r,[bn(t,e),"[",bn(i,e),"]=",bn(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[bn(t,e),"[]"].join("")]:[...r,[bn(t,e),"[]=",bn(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[bn(t,e),":list="].join("")]:[...r,[bn(t,e),":list=",bn(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[bn(r,e),t,bn(i,e)].join("")]:[[n,bn(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,bn(t,e)]:[...r,[bn(t,e),"=",bn(n,e)].join("")]}}function gnt(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let s=typeof n=="string"&&n.includes(e.arrayFormatSeparator),o=typeof n=="string"&&!s&&_l(n,e).includes(e.arrayFormatSeparator);n=o?_l(n,e):n;let a=s||o?n.split(e.arrayFormatSeparator).map(c=>_l(c,e)):n===null?n:_l(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let s=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!s){i[r]=n&&_l(n,e);return}let o=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>_l(a,e));if(i[r]===void 0){i[r]=o;return}i[r]=[].concat(i[r],o)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function zde(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function bn(e,t){return t.encode?t.strict?mnt(e):encodeURIComponent(e):e}function _l(e,t){return t.decode?fnt(e):e}function Ude(e){return Array.isArray(e)?e.sort():typeof e=="object"?Ude(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function $de(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function ynt(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function Vde(e){e=$de(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function Fde(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function Hde(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),zde(t.arrayFormatSeparator);let r=gnt(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[s,o]=Lde(t.decode?i.replace(/\+/g," "):i,"=");o=o===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?o:_l(o,t),r(_l(s,t),o,n)}for(let i of Object.keys(n)){let s=n[i];if(typeof s=="object"&&s!==null)for(let o of Object.keys(s))s[o]=Fde(s[o],t);else n[i]=Fde(s,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,s)=>{let o=n[s];return Boolean(o)&&typeof o=="object"&&!Array.isArray(o)?i[s]=Ude(o):i[s]=o,i},Object.create(null))}Ms.extract=Vde;Ms.parse=Hde;Ms.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),zde(t.arrayFormatSeparator);let r=o=>t.skipNull&&hnt(e[o])||t.skipEmptyString&&e[o]==="",n=vnt(t),i={};for(let o of Object.keys(e))r(o)||(i[o]=e[o]);let s=Object.keys(i);return t.sort!==!1&&s.sort(t.sort),s.map(o=>{let a=e[o];return a===void 0?"":a===null?bn(o,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?bn(o,t)+"[]":a.reduce(n(o),[]).join("&"):bn(o,t)+"="+bn(a,t)}).filter(o=>o.length>0).join("&")};Ms.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=Lde(e,"#");return Object.assign({url:r.split("?")[0]||"",query:Hde(Vde(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:_l(n,t)}:{})};Ms.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[m5]:!0},t);let r=$de(e.url).split("?")[0]||"",n=Ms.extract(e.url),i=Ms.parse(n,{sort:!1}),s=Object.assign(i,e.query),o=Ms.stringify(s,t);o&&(o=`?${o}`);let a=ynt(e.url);return e.fragmentIdentifier&&(a=`#${t[m5]?bn(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${o}${a}`};Ms.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[m5]:!1},r);let{url:n,query:i,fragmentIdentifier:s}=Ms.parseUrl(e,r);return Ms.stringifyUrl({url:n,query:_nt(i,t),fragmentIdentifier:s},r)};Ms.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,s)=>!t(i,s);return Ms.pick(e,n,r)}});var f5=P(of=>{"use strict";var Snt=of&&of.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(of,"__esModule",{value:!0});of.convertFunctionStaticFilesToFqdn=void 0;var wnt=Br(),Ent=Snt(sI());function bnt(e,t,r,n,i){if(t.startsWith("https://")||t.startsWith("http://"))return t;let s=(0,wnt.joinAbsoluteUrlPath)(e,"s",n,i,t);return Ent.default.stringifyUrl({url:s,query:{_componentSet:r}},{skipNull:!0,encode:!0,arrayFormat:"bracket"})}of.convertFunctionStaticFilesToFqdn=bnt});var Gde=P(af=>{"use strict";var Rnt=af&&af.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(af,"__esModule",{value:!0});af.convertFunctionStaticFilesToFqdnForPreview=void 0;var Ant=Br(),Pnt=Rnt(sI());function xnt(e,t,r,n,i){if(t.startsWith("https://")||t.startsWith("http://"))return t;let s=(0,Ant.joinAbsoluteUrlPath)(e,"s",r,n,t);return Pnt.default.stringifyUrl({url:s,query:{_previewKey:i}},{skipNull:!0,encode:!0,arrayFormat:"bracket"})}af.convertFunctionStaticFilesToFqdnForPreview=xnt});var Jde=P(oI=>{"use strict";Object.defineProperty(oI,"__esModule",{value:!0});oI.ComponentFunctionService=void 0;var _5=Br(),Bde=f5(),Cnt=Gde(),Int=r5(),qnt=i5(),h5=class{constructor(t){this.rootUrl=t,this.schemaValidationService=Int.ComponentSchemaValidationServiceFactory.create(),this.inputValidationService=qnt.ComponentInputValidationServiceFactory.create()}getFunctionDefinitionFromManifest(t,r){return r.getModel().functions.find(i=>i.name===t)}prepareComponentFunctionForWebResponse(t,r,n){var i;return t.output.responseType==="html"&&(t.output.staticFiles=(i=t.output.staticFiles)===null||i===void 0?void 0:i.map(s=>({...s,file:{...s.file,filepath:(0,Bde.convertFunctionStaticFilesToFqdn)(this.rootUrl,s.file.filepath,n,r.getName(),r.getVersion())}}))),t}prepareManifestForWebResponse(t,r){let n=t.getModel(),i={...n,functions:[]};for(let s of n.functions)if(s.output.responseType==="html"&&s.output.staticFiles){let o={...s,output:{...s.output,staticFiles:s.output.staticFiles.map(a=>({...a,file:{...a.file,filepath:(0,Bde.convertFunctionStaticFilesToFqdn)(this.rootUrl,a.file.filepath,r,t.getName(),t.getVersion())}}))}};i.functions.push(o)}else i.functions.push(s);return i}prepareComponentFunctionForPreview(t,r,n){var i;return t.output.responseType==="html"&&(t.output.staticFiles=(i=t.output.staticFiles)===null||i===void 0?void 0:i.map(s=>({...s,file:{...s.file,filepath:(0,Cnt.convertFunctionStaticFilesToFqdnForPreview)(this.rootUrl,s.file.filepath,r.getName(),r.getVersion(),n)}}))),t}prepareManifestForPreview(t,r){let n=t.getModel(),i={...n,functions:[]};for(let s of n.functions){let o=this.prepareComponentFunctionForPreview(s,t,r);i.functions.push(o)}return i}assertInputValidForComponentFunction(t,r){if(t===void 0)throw new _5.BadRequestError(`input value for ${r.name} cannot be undefined`);this.schemaValidationService.validateInput(t,r.input)}assertRenderInputValidForComponentFunction(t,r){if(t===void 0)throw new _5.BadRequestError(`input value for ${r.name} cannot be undefined`);this.inputValidationService.validateInput(t,r.input)}assertOutputValidForComponentFunction(t,r){if(r===void 0)throw new Error(`input value for ${r} cannot be undefined`);if(t===void 0)throw new Error(`input value for ${r.name} cannot be undefined`);let n=this.getOutputValidationSchema(r.output);this.schemaValidationService.validateInput(t,n)}getOutputValidationSchema(t){let r=t.responseType;switch(r){case"html":return{type:"string",minLength:0};case"json":{let n=t;if(n.definition)return n.definition;throw new Error("definition is missing for the json")}default:(0,_5.never)(r)}}};oI.ComponentFunctionService=h5});var g5=P(Hn=>{"use strict";var Tnt=Hn&&Hn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),oo=Hn&&Hn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Tnt(t,e,r)};Object.defineProperty(Hn,"__esModule",{value:!0});oo(nI(),Hn);oo(bde(),Hn);oo(Pde(),Hn);oo(Jde(),Hn);oo(Z3(),Hn);oo(e5(),Hn);oo(Y3(),Hn);oo(W3(),Hn);oo(ey(),Hn);oo(J$(),Hn);oo(X3(),Hn);oo(d5(),Hn);oo(Xg(),Hn)});var Wde=P(aI=>{"use strict";Object.defineProperty(aI,"__esModule",{value:!0});aI.ComponentContentUriResolverForPreview=void 0;var Ont=g5(),y5=class{constructor(t,r){this.manifest=t,this.manifestService=new Ont.ManifestV1(t,r??"")}async resolveUri(t){return await this.manifestService.getMockedUriObject(t)}};aI.ComponentContentUriResolverForPreview=y5});var Yde=P(Kde=>{"use strict";Object.defineProperty(Kde,"__esModule",{value:!0})});var Xde=P(Qde=>{"use strict";Object.defineProperty(Qde,"__esModule",{value:!0})});var eue=P(Zde=>{"use strict";Object.defineProperty(Zde,"__esModule",{value:!0})});var tue=P(cf=>{"use strict";var jnt=cf&&cf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cf,"__esModule",{value:!0});cf.createComponentContextualFunctions=void 0;var cI=jnt(sI()),ny=Br(),Nnt=require("crypto");function knt(e){let t=(0,ny.joinAbsoluteUrlPath)(e.rootUrl,"r",e.componentName,e.manifest.version),r=(0,ny.joinAbsoluteUrlPath)(e.rootUrl,"s",e.componentName,e.manifest.version);return{getStaticResourceUrl:n=>{if(typeof n!="string")throw new Error("getStaticResourceUrl: first argument must be a string");let i=(0,ny.joinAbsoluteUrlPath)(r,n).split("?")[0];return e.withPreviewKey?cI.default.stringifyUrl({url:i,query:{_previewKey:e.withPreviewKey}},{skipNull:!0,encode:!0,arrayFormat:"bracket"}):cI.default.stringifyUrl({url:i,query:{_componentSet:e.set.webPath}},{skipNull:!0,encode:!0,arrayFormat:"bracket"})},getFunctionUrl:(n,i={})=>{if(typeof n!="string")throw new Error("getFunctionUrl: first argument must be a string");return n=n.toLowerCase(),e.withPreviewKey?cI.default.stringifyUrl({url:(0,ny.joinAbsoluteUrlPath)(t,n),query:{...i,_previewKey:e.withPreviewKey}},{skipNull:!0,encode:!0,arrayFormat:"bracket"}):cI.default.stringifyUrl({url:(0,ny.joinAbsoluteUrlPath)(t,n),query:{...i,_componentSet:e.set.webPath}},{skipNull:!0,encode:!0,arrayFormat:"bracket"})},resolveUri:async n=>{if(typeof n!="string")throw new Error("resolveUri: first argument must be a string");if(e.requestId===void 0)throw new Error("resolveUri: request id is undefined");let i=(0,Nnt.randomUUID)();return e.webRequestEvents.emit("uri-request",n,e.requestId,i),await new Promise((o,a)=>{let c=(l,d,u)=>{i==u&&(e.webRequestEvents.removeListener("uri-response",c),l.status==="fulfilled"&&o(l.value),l.status==="rejected"&&a(l.reason))};e.webRequestEvents.on("uri-response",c)})}}}cf.createComponentContextualFunctions=knt});var rue=P(lI=>{"use strict";Object.defineProperty(lI,"__esModule",{value:!0});lI.ComponentError=void 0;var Mnt=Br(),S5=class extends Mnt.ErrorWithHttpStatusCode{constructor(t,r,n,i,s,o,a=500){super(a,(r==null?void 0:r.message)||"An error occurred with no additional information available"),this.requestId=t,this.error=r,this.functionName=n,this.componentName=i,this.componentVersion=s,this.setWebPath=o,this.name="ComponentError",this.stack=r==null?void 0:r.stack}};lI.ComponentError=S5});var nue=P(ni=>{"use strict";var Dnt=ni&&ni.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Lo=ni&&ni.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Dnt(t,e,r)};Object.defineProperty(ni,"__esModule",{value:!0});Lo(j3(),ni);Lo(D3(),ni);Lo(k3(),ni);Lo(L3(),ni);Lo(pde(),ni);Lo(Wde(),ni);Lo(Yde(),ni);Lo(Xde(),ni);Lo(eue(),ni);Lo(tue(),ni);Lo(rue(),ni);Lo(H3(),ni)});var iue=P(dI=>{"use strict";Object.defineProperty(dI,"__esModule",{value:!0});dI.ContentItemService=void 0;var w5=class{constructor(t){this.api=t}async getContentItem(t,r){var n;try{let i={};return r&&(i["x-api-key"]=r),(await this.api.getContentItem(t,{resolveDynamicContent:!0},{headers:i})).data.content}catch(i){let s=i;if(((n=s.response)===null||n===void 0?void 0:n.status)===404)return;throw this.handleAxiosError(s)}}handleAxiosError(t){var r;let{response:n}=t;if(!n||typeof t=="object"&&!t.isAxiosError)return t;throw new Error(`Error occurred in Component Content Item service: ${(r=n.data)===null||r===void 0?void 0:r.message}`)}};dI.ContentItemService=w5});var b5=P(Ds=>{"use strict";var Fnt=Ds&&Ds.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.Api=Ds.HttpClient=Ds.ContentType=Ds.ContentSchemaType=void 0;var Lnt;(function(e){e.Component="component",e.User="user"})(Lnt=Ds.ContentSchemaType||(Ds.ContentSchemaType={}));var znt=Fnt(require("axios")),hl;(function(e){e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain"})(hl=Ds.ContentType||(Ds.ContentType={}));var uI=class{constructor({securityWorker:t,secure:r,format:n,...i}={}){this.securityData=null,this.setSecurityData=s=>{this.securityData=s},this.request=async({secure:s,path:o,type:a,query:c,format:l,body:d,...u})=>{let p=(typeof s=="boolean"?s:this.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},f=this.mergeRequestParams(u,p),m=l||this.format||void 0;return a===hl.FormData&&d&&d!==null&&typeof d=="object"&&(d=this.createFormData(d)),a===hl.Text&&d&&d!==null&&typeof d!="string"&&(d=JSON.stringify(d)),this.instance.request({...f,headers:{...f.headers||{},...a&&a!==hl.FormData?{"Content-Type":a}:{}},params:c,responseType:m,data:d,url:o})},this.instance=znt.default.create({...i,baseURL:i.baseURL||"/"}),this.secure=r,this.format=n,this.securityWorker=t}mergeRequestParams(t,r){let n=t.method||r&&r.method;return{...this.instance.defaults,...t,...r||{},headers:{...n&&this.instance.defaults.headers[n.toLowerCase()]||{},...t.headers||{},...r&&r.headers||{}}}}stringifyFormItem(t){return typeof t=="object"&&t!==null?JSON.stringify(t):`${t}`}createFormData(t){return Object.keys(t||{}).reduce((r,n)=>{let i=t[n],s=i instanceof Array?i:[i];for(let o of s){let a=o instanceof Blob||o instanceof File;r.append(n,a?o:this.stringifyFormItem(o))}return r},new FormData)}};Ds.HttpClient=uI;var E5=class extends uI{constructor(){super(...arguments),this.getRoot=(t={})=>this.request({path:"/",method:"GET",...t}),this.contentItem={createContentItem:(t,r,n={})=>this.request({path:"/content-item",method:"POST",query:r,body:t,secure:!0,type:hl.Json,...n}),getPaginatedContentItems:(t,r={})=>this.request({path:"/content-item",method:"GET",query:t,secure:!0,format:"json",...r}),updateContentItem:(t,r,n={})=>this.request({path:`/content-item/${t}`,method:"PATCH",body:r,secure:!0,type:hl.Json,format:"json",...n}),getContentItem:(t,r,n={})=>this.request({path:`/content-item/${t}`,method:"GET",query:r,secure:!0,format:"json",...n}),deleteContentItemById:(t,r={})=>this.request({path:`/content-item/${t}`,method:"DELETE",secure:!0,format:"json",...r})},this.contentSchema={createContentSchema:(t,r={})=>this.request({path:"/content-schema",method:"POST",body:t,secure:!0,type:hl.Json,format:"json",...r}),getPaginatedContentSchemas:(t,r={})=>this.request({path:"/content-schema",method:"GET",query:t,secure:!0,format:"json",...r}),getContentSchemaSchema:(t,r={})=>this.request({path:"/content-schema/{schemaName*.json}",method:"GET",secure:!0,format:"json",...r}),getContentSchema:(t,r={})=>this.request({path:"/content-schema/{schemaName*}",method:"GET",secure:!0,format:"json",...r}),updateContentSchema:(t={})=>this.request({path:"/content-schema/{schemaName*}",method:"PATCH",secure:!0,...t}),deleteContentSchema:(t,r={})=>this.request({path:"/content-schema/{schemaName*}",method:"DELETE",secure:!0,format:"json",...r})},this.health={getHealthInfo:(t={})=>this.request({path:"/health",method:"GET",format:"json",...t})},this.dynamicContent={getDynamicContentItem:(t,r={})=>this.request({path:"/dynamic-content",method:"GET",query:t,secure:!0,format:"json",...r})},this.matrixQuery={getPaginatedAssets:(t,r,n={})=>this.request({path:`/matrix-query/${t}`,method:"GET",query:r,secure:!0,format:"json",...n}),getAsset:(t,r,n={})=>this.request({path:`/matrix-query/${t}/asset`,method:"GET",query:r,secure:!0,format:"json",...n})},this.settings={getMatrixIdentifiers:(t={})=>this.request({path:"/settings/matrix-identifiers",method:"GET",secure:!0,format:"json",...t}),createMatrixIdentifier:(t,r={})=>this.request({path:"/settings/matrix-identifiers",method:"POST",body:t,secure:!0,type:hl.Json,format:"json",...r}),updateMatrixIdentifier:(t,r,n={})=>this.request({path:`/settings/matrix-identifiers/${t}`,method:"PATCH",body:r,secure:!0,type:hl.Json,format:"json",...n}),getMatrixIdentifier:(t,r={})=>this.request({path:`/settings/matrix-identifiers/${t}`,method:"GET",secure:!0,format:"json",...r}),deleteMatrixIdentifier:(t,r={})=>this.request({path:`/settings/matrix-identifiers/${t}`,method:"DELETE",secure:!0,...r})}}};Ds.Api=E5});var sue=P(zo=>{"use strict";var Unt=zo&&zo.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),$nt=zo&&zo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Vnt=zo&&zo.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Unt(t,e,r);return $nt(t,e),t};Object.defineProperty(zo,"__esModule",{value:!0});zo.ContentApi=zo.ContentApiService=void 0;var Hnt=b5();Object.defineProperty(zo,"ContentApiService",{enumerable:!0,get:function(){return Hnt.Api}});zo.ContentApi=Vnt(b5())});var R5=P(pI=>{"use strict";Object.defineProperty(pI,"__esModule",{value:!0});pI.getContentSchemaName=void 0;function Gnt(e,t,r){return[e,t,r].join("/")}pI.getContentSchemaName=Gnt});var oue=P(mI=>{"use strict";Object.defineProperty(mI,"__esModule",{value:!0});mI.ComponentContentSchemaService=void 0;var Bnt=sue(),Jnt=R5(),A5=class{constructor(t){this.api=t}async createComponentContentSchemas(t,r){let n=t.getInputSchemas();for(let i of n)if(i.schema&&Object.keys(i.schema).length){let s=(0,Jnt.getContentSchemaName)(t.getName(),t.getVersion(),i.name);await this.createContentSchema(s,i.schema,r)}}async createContentSchema(t,r,n){try{let i={"Content-Type":"application/json"};n&&(i["x-api-key"]=n),await this.api.createContentSchema({contentSchemaType:Bnt.ContentApi.ContentSchemaType.Component,schema:r,name:t},{headers:i})}catch(i){throw this.handleAxiosError(i)}}handleAxiosError(t){var r;let{response:n}=t;if(!n||typeof t=="object"&&!t.isAxiosError)return t;throw new Error(`Error occurred when creating content schema: ${(r=n.data)===null||r===void 0?void 0:r.message}`)}};mI.ComponentContentSchemaService=A5});var aue=P(fI=>{"use strict";Object.defineProperty(fI,"__esModule",{value:!0});fI.DynamicContentItemService=void 0;var P5=class{constructor(t){this.api=t}async getDynamicContentItem(t,r){try{let n={};return r&&(n["x-api-key"]=r),(await this.api.getDynamicContentItem({_contentUri:t},{headers:n})).data}catch(n){let i=n;throw this.handleAxiosError(i)}}handleAxiosError(t){var r;let{response:n}=t;if(!n||typeof t=="object"&&!t.isAxiosError)return t;throw new Error(`Error occurred when resolving content from uri: ${(r=n.data)===null||r===void 0?void 0:r.message}`)}};fI.DynamicContentItemService=P5});var cue=P(oc=>{"use strict";var Wnt=oc&&oc.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),_I=oc&&oc.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Wnt(t,e,r)};Object.defineProperty(oc,"__esModule",{value:!0});_I(iue(),oc);_I(oue(),oc);_I(aue(),oc);_I(R5(),oc)});var lue=P(Xu=>{"use strict";var Knt=Xu&&Xu.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ynt=Xu&&Xu.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Knt(t,e,r)};Object.defineProperty(Xu,"__esModule",{value:!0});Ynt(f5(),Xu)});var uue=P(df=>{"use strict";var due=df&&df.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(df,"__esModule",{value:!0});df.ComponentFixture=void 0;var lf=due(require("fs/promises")),ao=due(require("path")),Qnt=require("crypto"),Xnt=require("child_process"),Znt="some-namespace",iy=class{static async setupFullComponentDirectory(t,{raw:r=!1}={}){let n=await this.createFixtureDirectory(),{directory:i,version:s}=await this.createVersionDirectory(n),o=await this.createManifest(i,{version:s,staticFilesRoot:"static"});return await lf.default.writeFile(ao.default.join(i,"main.js"),eit(t,{raw:r})),await lf.default.mkdir(ao.default.join(i,"static")),await lf.default.writeFile(ao.default.join(i,"static","static.txt"),"hello"),{fixtureDirectory:n,componentDirectory:i,version:s,manifest:o,componentName:ao.default.basename(n)}}static async createFixtureDirectory(){let t=tit(),r=ao.default.join(this.fixtureRootDirectory,t);return await lf.default.mkdir(r,{recursive:!0}),r}static async createVersionDirectory(t){let r="1.0.1",n=ao.default.join(t,r);return await lf.default.mkdir(n),{directory:n,version:r}}static async createManifest(t,r={}){var n,i,s,o;let c={$schema:"http://localhost:3000/schemas/v1.json#",name:ao.default.basename(t)===r.version?ao.default.basename(ao.default.dirname(t)):ao.default.basename(t),namespace:this.namespace,displayName:"some-display-name",description:"some-description",version:(n=r.version)!==null&&n!==void 0?n:"1.0.0",mainFunction:(i=r.mainFunction)!==null&&i!==void 0?i:"main",functions:[{name:(s=r.mainFunction)!==null&&s!==void 0?s:"main",entry:((o=r.mainFunction)!==null&&o!==void 0?o:"main")+".js",input:{},output:{responseType:"html"}}]};return r.staticFilesRoot&&(c.staticFiles={locationRoot:r.staticFilesRoot}),await lf.default.writeFile(ao.default.join(t,"manifest.json"),JSON.stringify(c)),c}};df.ComponentFixture=iy;iy.fixtureRootDirectory=ao.default.join(rit(),"fixtures");iy.namespace=Znt;function eit(e,{raw:t=!1}={}){return t?`module.exports = (input, info) => ${e}`:typeof e=="string"?`module.exports = () => "${e}"`:`module.exports = () => JSON.parse(${JSON.stringify(e)})`}function tit(){return"test-"+(0,Qnt.randomUUID)()}function rit(){var e;if(process.env.NODE_ENV!=="test")return(e=process.env.DATA_MOUNT_POINT)!==null&&e!==void 0?e:"";let t=(0,Xnt.execSync)("git rev-parse --show-toplevel",{encoding:"utf-8"}).replace(/\n$/,"");return ao.default.resolve(t,"test-components")}});var x5=P(Gn=>{"use strict";var pue=Gn&&Gn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),nit=Gn&&Gn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Zu=Gn&&Gn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&pue(t,e,r)},iit=Gn&&Gn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&pue(t,e,r);return nit(t,e),t};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.TestHelpers=void 0;Zu(J$(),Gn);Zu(lde(),Gn);Zu(C3(),Gn);Zu(nue(),Gn);Zu(cue(),Gn);Zu(lue(),Gn);Zu(g5(),Gn);Gn.TestHelpers=iit(uue())});var wue=P((V8t,Sue)=>{"use strict";Sue.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0}});var Rue=P((H8t,bue)=>{"use strict";var Eue=typeof Symbol<"u"&&Symbol,lit=wue();bue.exports=function(){return typeof Eue!="function"||typeof Symbol!="function"||typeof Eue("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:lit()}});var Pue=P((G8t,Aue)=>{"use strict";var dit="Function.prototype.bind called on incompatible ",T5=Array.prototype.slice,uit=Object.prototype.toString,pit="[object Function]";Aue.exports=function(t){var r=this;if(typeof r!="function"||uit.call(r)!==pit)throw new TypeError(dit+r);for(var n=T5.call(arguments,1),i,s=function(){if(this instanceof i){var d=r.apply(this,n.concat(T5.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(T5.call(arguments)))},o=Math.max(0,r.length-n.length),a=[],c=0;c<o;c++)a.push("$"+c);if(i=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var l=function(){};l.prototype=r.prototype,i.prototype=new l,l.prototype=null}return i}});var vI=P((B8t,xue)=>{"use strict";var mit=Pue();xue.exports=Function.prototype.bind||mit});var Iue=P((J8t,Cue)=>{"use strict";var fit=vI();Cue.exports=fit.call(Function.call,Object.prototype.hasOwnProperty)});var SI=P((W8t,Nue)=>{"use strict";var rr,ff=SyntaxError,jue=Function,mf=TypeError,O5=function(e){try{return jue('"use strict"; return ('+e+").constructor;")()}catch{}},ep=Object.getOwnPropertyDescriptor;if(ep)try{ep({},"")}catch{ep=null}var j5=function(){throw new mf},_it=ep?function(){try{return arguments.callee,j5}catch{try{return ep(arguments,"callee").get}catch{return j5}}}():j5,uf=Rue()(),ac=Object.getPrototypeOf||function(e){return e.__proto__},pf={},hit=typeof Uint8Array>"u"?rr:ac(Uint8Array),tp={"%AggregateError%":typeof AggregateError>"u"?rr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?rr:ArrayBuffer,"%ArrayIteratorPrototype%":uf?ac([][Symbol.iterator]()):rr,"%AsyncFromSyncIteratorPrototype%":rr,"%AsyncFunction%":pf,"%AsyncGenerator%":pf,"%AsyncGeneratorFunction%":pf,"%AsyncIteratorPrototype%":pf,"%Atomics%":typeof Atomics>"u"?rr:Atomics,"%BigInt%":typeof BigInt>"u"?rr:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?rr:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?rr:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?rr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?rr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?rr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?rr:FinalizationRegistry,"%Function%":jue,"%GeneratorFunction%":pf,"%Int8Array%":typeof Int8Array>"u"?rr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?rr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?rr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":uf?ac(ac([][Symbol.iterator]())):rr,"%JSON%":typeof JSON=="object"?JSON:rr,"%Map%":typeof Map>"u"?rr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!uf?rr:ac(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?rr:Promise,"%Proxy%":typeof Proxy>"u"?rr:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?rr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?rr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!uf?rr:ac(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?rr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":uf?ac(""[Symbol.iterator]()):rr,"%Symbol%":uf?Symbol:rr,"%SyntaxError%":ff,"%ThrowTypeError%":_it,"%TypedArray%":hit,"%TypeError%":mf,"%Uint8Array%":typeof Uint8Array>"u"?rr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?rr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?rr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?rr:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?rr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?rr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?rr:WeakSet};try{null.error}catch(e){que=ac(ac(e)),tp["%Error.prototype%"]=que}var que,vit=function e(t){var r;if(t==="%AsyncFunction%")r=O5("async function () {}");else if(t==="%GeneratorFunction%")r=O5("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=O5("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=ac(i.prototype))}return tp[t]=r,r},Tue={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},oy=vI(),gI=Iue(),git=oy.call(Function.call,Array.prototype.concat),yit=oy.call(Function.apply,Array.prototype.splice),Oue=oy.call(Function.call,String.prototype.replace),yI=oy.call(Function.call,String.prototype.slice),Sit=oy.call(Function.call,RegExp.prototype.exec),wit=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Eit=/\\(\\)?/g,bit=function(t){var r=yI(t,0,1),n=yI(t,-1);if(r==="%"&&n!=="%")throw new ff("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ff("invalid intrinsic syntax, expected opening `%`");var i=[];return Oue(t,wit,function(s,o,a,c){i[i.length]=a?Oue(c,Eit,"$1"):o||s}),i},Rit=function(t,r){var n=t,i;if(gI(Tue,n)&&(i=Tue[n],n="%"+i[0]+"%"),gI(tp,n)){var s=tp[n];if(s===pf&&(s=vit(n)),typeof s>"u"&&!r)throw new mf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new ff("intrinsic "+t+" does not exist!")};Nue.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new mf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new mf('"allowMissing" argument must be a boolean');if(Sit(/^%?[^%]*%?$/,t)===null)throw new ff("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=bit(t),i=n.length>0?n[0]:"",s=Rit("%"+i+"%",r),o=s.name,a=s.value,c=!1,l=s.alias;l&&(i=l[0],yit(n,git([0,1],l)));for(var d=1,u=!0;d<n.length;d+=1){var p=n[d],f=yI(p,0,1),m=yI(p,-1);if((f==='"'||f==="'"||f==="`"||m==='"'||m==="'"||m==="`")&&f!==m)throw new ff("property names with quotes must have matching quotes");if((p==="constructor"||!u)&&(c=!0),i+="."+p,o="%"+i+"%",gI(tp,o))a=tp[o];else if(a!=null){if(!(p in a)){if(!r)throw new mf("base intrinsic for "+t+" exists, but the property is not available.");return}if(ep&&d+1>=n.length){var v=ep(a,p);u=!!v,u&&"get"in v&&!("originalValue"in v.get)?a=v.get:a=a[p]}else u=gI(a,p),a=a[p];u&&!c&&(tp[o]=a)}}return a}});var zue=P((K8t,wI)=>{"use strict";var N5=vI(),_f=SI(),Due=_f("%Function.prototype.apply%"),Fue=_f("%Function.prototype.call%"),Lue=_f("%Reflect.apply%",!0)||N5.call(Fue,Due),kue=_f("%Object.getOwnPropertyDescriptor%",!0),rp=_f("%Object.defineProperty%",!0),Ait=_f("%Math.max%");if(rp)try{rp({},"a",{value:1})}catch{rp=null}wI.exports=function(t){var r=Lue(N5,Fue,arguments);if(kue&&rp){var n=kue(r,"length");n.configurable&&rp(r,"length",{value:1+Ait(0,t.length-(arguments.length-1))})}return r};var Mue=function(){return Lue(N5,Due,arguments)};rp?rp(wI.exports,"apply",{value:Mue}):wI.exports.apply=Mue});var Hue=P((Y8t,Vue)=>{"use strict";var Uue=SI(),$ue=zue(),Pit=$ue(Uue("String.prototype.indexOf"));Vue.exports=function(t,r){var n=Uue(t,!!r);return typeof n=="function"&&Pit(t,".prototype.")>-1?$ue(n):n}});var Bue=P((Q8t,Gue)=>{Gue.exports=require("util").inspect});var ppe=P((X8t,upe)=>{var H5=typeof Map=="function"&&Map.prototype,k5=Object.getOwnPropertyDescriptor&&H5?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,bI=H5&&k5&&typeof k5.get=="function"?k5.get:null,Jue=H5&&Map.prototype.forEach,G5=typeof Set=="function"&&Set.prototype,M5=Object.getOwnPropertyDescriptor&&G5?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,RI=G5&&M5&&typeof M5.get=="function"?M5.get:null,Wue=G5&&Set.prototype.forEach,xit=typeof WeakMap=="function"&&WeakMap.prototype,cy=xit?WeakMap.prototype.has:null,Cit=typeof WeakSet=="function"&&WeakSet.prototype,ly=Cit?WeakSet.prototype.has:null,Iit=typeof WeakRef=="function"&&WeakRef.prototype,Kue=Iit?WeakRef.prototype.deref:null,qit=Boolean.prototype.valueOf,Tit=Object.prototype.toString,Oit=Function.prototype.toString,jit=String.prototype.match,B5=String.prototype.slice,Cd=String.prototype.replace,Nit=String.prototype.toUpperCase,Yue=String.prototype.toLowerCase,spe=RegExp.prototype.test,Que=Array.prototype.concat,cc=Array.prototype.join,kit=Array.prototype.slice,Xue=Math.floor,L5=typeof BigInt=="function"?BigInt.prototype.valueOf:null,D5=Object.getOwnPropertySymbols,z5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",zi=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hf||"symbol")?Symbol.toStringTag:null,ope=Object.prototype.propertyIsEnumerable,Zue=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function epe(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||spe.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Xue(-e):Xue(e);if(n!==e){var i=String(n),s=B5.call(t,i.length+1);return Cd.call(i,r,"$&_")+"."+Cd.call(Cd.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Cd.call(t,r,"$&_")}var U5=Bue(),tpe=U5.custom,rpe=cpe(tpe)?tpe:null;upe.exports=function e(t,r,n,i){var s=r||{};if(xd(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xd(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=xd(s,"customInspect")?s.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xd(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(xd(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=s.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return dpe(t,s);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return a?epe(t,c):c}if(typeof t=="bigint"){var l=String(t)+"n";return a?epe(t,l):l}var d=typeof s.depth>"u"?5:s.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return $5(t)?"[Array]":"[Object]";var u=Zit(s,n);if(typeof i>"u")i=[];else if(lpe(i,t)>=0)return"[Circular]";function p(F,k,G){if(k&&(i=kit.call(i),i.push(k)),G){var Y={depth:s.depth};return xd(s,"quoteStyle")&&(Y.quoteStyle=s.quoteStyle),e(F,Y,n+1,i)}return e(F,s,n+1,i)}if(typeof t=="function"&&!npe(t)){var f=Hit(t),m=EI(t,p);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(m.length>0?" { "+cc.call(m,", ")+" }":"")}if(cpe(t)){var v=hf?Cd.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):z5.call(t);return typeof t=="object"&&!hf?ay(v):v}if(Yit(t)){for(var g="<"+Yue.call(String(t.nodeName)),y=t.attributes||[],h=0;h<y.length;h++)g+=" "+y[h].name+"="+ape(Mit(y[h].value),"double",s);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Yue.call(String(t.nodeName))+">",g}if($5(t)){if(t.length===0)return"[]";var S=EI(t,p);return u&&!Xit(S)?"["+V5(S,u)+"]":"[ "+cc.call(S,", ")+" ]"}if(Fit(t)){var w=EI(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!ope.call(t,"cause")?"{ ["+String(t)+"] "+cc.call(Que.call("[cause]: "+p(t.cause),w),", ")+" }":w.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+cc.call(w,", ")+" }"}if(typeof t=="object"&&o){if(rpe&&typeof t[rpe]=="function"&&U5)return U5(t,{depth:d-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Git(t)){var j=[];return Jue&&Jue.call(t,function(F,k){j.push(p(k,t,!0)+" => "+p(F,t))}),ipe("Map",bI.call(t),j,u)}if(Wit(t)){var x=[];return Wue&&Wue.call(t,function(F){x.push(p(F,t))}),ipe("Set",RI.call(t),x,u)}if(Bit(t))return F5("WeakMap");if(Kit(t))return F5("WeakSet");if(Jit(t))return F5("WeakRef");if(zit(t))return ay(p(Number(t)));if($it(t))return ay(p(L5.call(t)));if(Uit(t))return ay(qit.call(t));if(Lit(t))return ay(p(String(t)));if(!Dit(t)&&!npe(t)){var O=EI(t,p),N=Zue?Zue(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",q=!N&&zi&&Object(t)===t&&zi in t?B5.call(Id(t),8,-1):C?"Object":"",b=N||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",R=b+(q||C?"["+cc.call(Que.call([],q||[],C||[]),": ")+"] ":"");return O.length===0?R+"{}":u?R+"{"+V5(O,u)+"}":R+"{ "+cc.call(O,", ")+" }"}return String(t)};function ape(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function Mit(e){return Cd.call(String(e),/"/g,""")}function $5(e){return Id(e)==="[object Array]"&&(!zi||!(typeof e=="object"&&zi in e))}function Dit(e){return Id(e)==="[object Date]"&&(!zi||!(typeof e=="object"&&zi in e))}function npe(e){return Id(e)==="[object RegExp]"&&(!zi||!(typeof e=="object"&&zi in e))}function Fit(e){return Id(e)==="[object Error]"&&(!zi||!(typeof e=="object"&&zi in e))}function Lit(e){return Id(e)==="[object String]"&&(!zi||!(typeof e=="object"&&zi in e))}function zit(e){return Id(e)==="[object Number]"&&(!zi||!(typeof e=="object"&&zi in e))}function Uit(e){return Id(e)==="[object Boolean]"&&(!zi||!(typeof e=="object"&&zi in e))}function cpe(e){if(hf)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!z5)return!1;try{return z5.call(e),!0}catch{}return!1}function $it(e){if(!e||typeof e!="object"||!L5)return!1;try{return L5.call(e),!0}catch{}return!1}var Vit=Object.prototype.hasOwnProperty||function(e){return e in this};function xd(e,t){return Vit.call(e,t)}function Id(e){return Tit.call(e)}function Hit(e){if(e.name)return e.name;var t=jit.call(Oit.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function lpe(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Git(e){if(!bI||!e||typeof e!="object")return!1;try{bI.call(e);try{RI.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Bit(e){if(!cy||!e||typeof e!="object")return!1;try{cy.call(e,cy);try{ly.call(e,ly)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Jit(e){if(!Kue||!e||typeof e!="object")return!1;try{return Kue.call(e),!0}catch{}return!1}function Wit(e){if(!RI||!e||typeof e!="object")return!1;try{RI.call(e);try{bI.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Kit(e){if(!ly||!e||typeof e!="object")return!1;try{ly.call(e,ly);try{cy.call(e,cy)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Yit(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function dpe(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return dpe(B5.call(e,0,t.maxStringLength),t)+n}var i=Cd.call(Cd.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Qit);return ape(i,"single",t)}function Qit(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Nit.call(t.toString(16))}function ay(e){return"Object("+e+")"}function F5(e){return e+" { ? }"}function ipe(e,t,r,n){var i=n?V5(r,n):cc.call(r,", ");return e+" ("+t+") {"+i+"}"}function Xit(e){for(var t=0;t<e.length;t++)if(lpe(e[t],`
|
|
348
348
|
`)>=0)return!1;return!0}function Zit(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=cc.call(Array(e.indent+1)," ");else return null;return{base:r,prev:cc.call(Array(t+1),r)}}function V5(e,t){if(e.length===0)return"";var r=`
|
|
349
349
|
`+t.prev+t.base;return r+cc.call(e,","+r)+`
|
|
350
350
|
`+t.prev}function EI(e,t){var r=$5(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=xd(e,i)?t(e[i],e):""}var s=typeof D5=="function"?D5(e):[],o;if(hf){o={};for(var a=0;a<s.length;a++)o["$"+s[a]]=s[a]}for(var c in e)xd(e,c)&&(r&&String(Number(c))===c&&c<e.length||hf&&o["$"+c]instanceof Symbol||(spe.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if(typeof D5=="function")for(var l=0;l<s.length;l++)ope.call(e,s[l])&&n.push("["+t(s[l])+"]: "+t(e[s[l]],e));return n}});var K5=P((Z8t,mpe)=>{"use strict";var J5=SI(),vf=Hue(),est=ppe(),tst=J5("%TypeError%"),AI=J5("%WeakMap%",!0),PI=J5("%Map%",!0),rst=vf("WeakMap.prototype.get",!0),nst=vf("WeakMap.prototype.set",!0),ist=vf("WeakMap.prototype.has",!0),sst=vf("Map.prototype.get",!0),ost=vf("Map.prototype.set",!0),ast=vf("Map.prototype.has",!0),W5=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},cst=function(e,t){var r=W5(e,t);return r&&r.value},lst=function(e,t,r){var n=W5(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},dst=function(e,t){return!!W5(e,t)};mpe.exports=function(){var t,r,n,i={assert:function(s){if(!i.has(s))throw new tst("Side channel does not contain "+est(s))},get:function(s){if(AI&&s&&(typeof s=="object"||typeof s=="function")){if(t)return rst(t,s)}else if(PI){if(r)return sst(r,s)}else if(n)return cst(n,s)},has:function(s){if(AI&&s&&(typeof s=="object"||typeof s=="function")){if(t)return ist(t,s)}else if(PI){if(r)return ast(r,s)}else if(n)return dst(n,s);return!1},set:function(s,o){AI&&s&&(typeof s=="object"||typeof s=="function")?(t||(t=new AI),nst(t,s,o)):PI?(r||(r=new PI),ost(r,s,o)):(n||(n={key:{},next:null}),lst(n,s,o))}};return i}});var xI=P((eWt,fpe)=>{"use strict";var ust=String.prototype.replace,pst=/%20/g,Y5={RFC1738:"RFC1738",RFC3986:"RFC3986"};fpe.exports={default:Y5.RFC3986,formatters:{RFC1738:function(e){return ust.call(e,pst,"+")},RFC3986:function(e){return String(e)}},RFC1738:Y5.RFC1738,RFC3986:Y5.RFC3986}});var X5=P((tWt,hpe)=>{"use strict";var mst=xI(),Q5=Object.prototype.hasOwnProperty,np=Array.isArray,lc=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),fst=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(np(n)){for(var i=[],s=0;s<n.length;++s)typeof n[s]<"u"&&i.push(n[s]);r.obj[r.prop]=i}}},_pe=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},_st=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(np(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Q5.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return np(t)&&!np(r)&&(i=_pe(t,n)),np(t)&&np(r)?(r.forEach(function(s,o){if(Q5.call(t,o)){var a=t[o];a&&typeof a=="object"&&s&&typeof s=="object"?t[o]=e(a,s,n):t.push(s)}else t[o]=s}),t):Object.keys(r).reduce(function(s,o){var a=r[o];return Q5.call(s,o)?s[o]=e(s[o],a,n):s[o]=a,s},i)},hst=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},vst=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},gst=function(t,r,n,i,s){if(t.length===0)return t;var o=t;if(typeof t=="symbol"?o=Symbol.prototype.toString.call(t):typeof t!="string"&&(o=String(t)),n==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var a="",c=0;c<o.length;++c){var l=o.charCodeAt(c);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||s===mst.RFC1738&&(l===40||l===41)){a+=o.charAt(c);continue}if(l<128){a=a+lc[l];continue}if(l<2048){a=a+(lc[192|l>>6]+lc[128|l&63]);continue}if(l<55296||l>=57344){a=a+(lc[224|l>>12]+lc[128|l>>6&63]+lc[128|l&63]);continue}c+=1,l=65536+((l&1023)<<10|o.charCodeAt(c)&1023),a+=lc[240|l>>18]+lc[128|l>>12&63]+lc[128|l>>6&63]+lc[128|l&63]}return a},yst=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var s=r[i],o=s.obj[s.prop],a=Object.keys(o),c=0;c<a.length;++c){var l=a[c],d=o[l];typeof d=="object"&&d!==null&&n.indexOf(d)===-1&&(r.push({obj:o,prop:l}),n.push(d))}return fst(r),t},Sst=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},wst=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Est=function(t,r){return[].concat(t,r)},bst=function(t,r){if(np(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)};hpe.exports={arrayToObject:_pe,assign:hst,combine:Est,compact:yst,decode:vst,encode:gst,isBuffer:wst,isRegExp:Sst,maybeMap:bst,merge:_st}});var Epe=P((rWt,wpe)=>{"use strict";var ype=K5(),CI=X5(),dy=xI(),Rst=Object.prototype.hasOwnProperty,vpe={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},vl=Array.isArray,Ast=Array.prototype.push,Spe=function(e,t){Ast.apply(e,vl(t)?t:[t])},Pst=Date.prototype.toISOString,gpe=dy.default,Ui={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:CI.encode,encodeValuesOnly:!1,format:gpe,formatter:dy.formatters[gpe],indices:!1,serializeDate:function(t){return Pst.call(t)},skipNulls:!1,strictNullHandling:!1},xst=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Z5={},Cst=function e(t,r,n,i,s,o,a,c,l,d,u,p,f,m,v,g){for(var y=t,h=g,S=0,w=!1;(h=h.get(Z5))!==void 0&&!w;){var j=h.get(t);if(S+=1,typeof j<"u"){if(j===S)throw new RangeError("Cyclic object value");w=!0}typeof h.get(Z5)>"u"&&(S=0)}if(typeof c=="function"?y=c(r,y):y instanceof Date?y=u(y):n==="comma"&&vl(y)&&(y=CI.maybeMap(y,function(Y){return Y instanceof Date?u(Y):Y})),y===null){if(s)return a&&!m?a(r,Ui.encoder,v,"key",p):r;y=""}if(xst(y)||CI.isBuffer(y)){if(a){var x=m?r:a(r,Ui.encoder,v,"key",p);return[f(x)+"="+f(a(y,Ui.encoder,v,"value",p))]}return[f(r)+"="+f(String(y))]}var O=[];if(typeof y>"u")return O;var N;if(n==="comma"&&vl(y))m&&a&&(y=CI.maybeMap(y,a)),N=[{value:y.length>0?y.join(",")||null:void 0}];else if(vl(c))N=c;else{var C=Object.keys(y);N=l?C.sort(l):C}for(var q=i&&vl(y)&&y.length===1?r+"[]":r,b=0;b<N.length;++b){var R=N[b],F=typeof R=="object"&&typeof R.value<"u"?R.value:y[R];if(!(o&&F===null)){var k=vl(y)?typeof n=="function"?n(q,R):q:q+(d?"."+R:"["+R+"]");g.set(t,S);var G=ype();G.set(Z5,g),Spe(O,e(F,k,n,i,s,o,n==="comma"&&m&&vl(y)?null:a,c,l,d,u,p,f,m,v,G))}}return O},Ist=function(t){if(!t)return Ui;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Ui.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=dy.default;if(typeof t.format<"u"){if(!Rst.call(dy.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=dy.formatters[n],s=Ui.filter;return(typeof t.filter=="function"||vl(t.filter))&&(s=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Ui.addQueryPrefix,allowDots:typeof t.allowDots>"u"?Ui.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ui.charsetSentinel,delimiter:typeof t.delimiter>"u"?Ui.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Ui.encode,encoder:typeof t.encoder=="function"?t.encoder:Ui.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Ui.encodeValuesOnly,filter:s,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Ui.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Ui.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ui.strictNullHandling}};wpe.exports=function(e,t){var r=e,n=Ist(t),i,s;typeof n.filter=="function"?(s=n.filter,r=s("",r)):vl(n.filter)&&(s=n.filter,i=s);var o=[];if(typeof r!="object"||r===null)return"";var a;t&&t.arrayFormat in vpe?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var c=vpe[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=c==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var d=ype(),u=0;u<i.length;++u){var p=i[u];n.skipNulls&&r[p]===null||Spe(o,Cst(r[p],p,c,l,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,d))}var f=o.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),f.length>0?m+f:""}});var Ape=P((nWt,Rpe)=>{"use strict";var gf=X5(),eV=Object.prototype.hasOwnProperty,qst=Array.isArray,ii={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:gf.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Tst=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},bpe=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Ost="utf8=%26%2310003%3B",jst="utf8=%E2%9C%93",Nst=function(t,r){var n={},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,s=r.parameterLimit===1/0?void 0:r.parameterLimit,o=i.split(r.delimiter,s),a=-1,c,l=r.charset;if(r.charsetSentinel)for(c=0;c<o.length;++c)o[c].indexOf("utf8=")===0&&(o[c]===jst?l="utf-8":o[c]===Ost&&(l="iso-8859-1"),a=c,c=o.length);for(c=0;c<o.length;++c)if(c!==a){var d=o[c],u=d.indexOf("]="),p=u===-1?d.indexOf("="):u+1,f,m;p===-1?(f=r.decoder(d,ii.decoder,l,"key"),m=r.strictNullHandling?null:""):(f=r.decoder(d.slice(0,p),ii.decoder,l,"key"),m=gf.maybeMap(bpe(d.slice(p+1),r),function(v){return r.decoder(v,ii.decoder,l,"value")})),m&&r.interpretNumericEntities&&l==="iso-8859-1"&&(m=Tst(m)),d.indexOf("[]=")>-1&&(m=qst(m)?[m]:m),eV.call(n,f)?n[f]=gf.combine(n[f],m):n[f]=m}return n},kst=function(e,t,r,n){for(var i=n?t:bpe(t,r),s=e.length-1;s>=0;--s){var o,a=e[s];if(a==="[]"&&r.parseArrays)o=[].concat(i);else{o=r.plainObjects?Object.create(null):{};var c=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,l=parseInt(c,10);!r.parseArrays&&c===""?o={0:i}:!isNaN(l)&&a!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(o=[],o[l]=i):c!=="__proto__"&&(o[c]=i)}i=o}return i},Mst=function(t,r,n,i){if(t){var s=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(s),l=c?s.slice(0,c.index):s,d=[];if(l){if(!n.plainObjects&&eV.call(Object.prototype,l)&&!n.allowPrototypes)return;d.push(l)}for(var u=0;n.depth>0&&(c=a.exec(s))!==null&&u<n.depth;){if(u+=1,!n.plainObjects&&eV.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(c[1])}return c&&d.push("["+s.slice(c.index)+"]"),kst(d,r,n,i)}},Dst=function(t){if(!t)return ii;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?ii.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?ii.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:ii.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:ii.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:ii.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ii.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:ii.comma,decoder:typeof t.decoder=="function"?t.decoder:ii.decoder,delimiter:typeof t.delimiter=="string"||gf.isRegExp(t.delimiter)?t.delimiter:ii.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:ii.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:ii.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:ii.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:ii.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ii.strictNullHandling}};Rpe.exports=function(e,t){var r=Dst(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?Nst(e,r):e,i=r.plainObjects?Object.create(null):{},s=Object.keys(n),o=0;o<s.length;++o){var a=s[o],c=Mst(a,n[a],r,typeof e=="string");i=gf.merge(i,c,r)}return r.allowSparse===!0?i:gf.compact(i)}});var tV=P((iWt,Ppe)=>{"use strict";var Fst=Epe(),Lst=Ape(),zst=xI();Ppe.exports={formats:zst,parse:Lst,stringify:Fst}});var Cpe=P((sWt,xpe)=>{"use strict";function II(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}II.prototype.define=function(e,t){for(let r in e){let n=e[r].map(function(i){return i.toLowerCase()});r=r.toLowerCase();for(let i=0;i<n.length;i++){let s=n[i];if(s[0]!=="*"){if(!t&&s in this._types)throw new Error('Attempt to change mapping for "'+s+'" extension from "'+this._types[s]+'" to "'+r+'". Pass `force=true` to allow this, otherwise remove "'+s+'" from the list of extensions for "'+r+'".');this._types[s]=r}}if(t||!this._extensions[r]){let i=n[0];this._extensions[r]=i[0]!=="*"?i:i.substr(1)}}};II.prototype.getType=function(e){e=String(e);let t=e.replace(/^.*[/\\]/,"").toLowerCase(),r=t.replace(/^.*\./,"").toLowerCase(),n=t.length<e.length;return(r.length<t.length-1||!n)&&this._types[r]||null};II.prototype.getExtension=function(e){return e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1,e&&this._extensions[e.toLowerCase()]||null};xpe.exports=II});var qpe=P((oWt,Ipe)=>{Ipe.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}});var Ope=P((aWt,Tpe)=>{Tpe.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}});var Npe=P((cWt,jpe)=>{"use strict";var Ust=Cpe();jpe.exports=new Ust(qpe(),Ope())});var rV=P((lWt,Mpe)=>{"use strict";var kpe=require("http");Mpe.exports=$st()||Vst();function $st(){return kpe.METHODS&&kpe.METHODS.map(function(t){return t.toLowerCase()})}function Vst(){return["get","post","put","head","delete","options","trace","copy","lock","mkcol","move","purge","propfind","proppatch","unlock","report","mkactivity","checkout","merge","m-search","notify","subscribe","unsubscribe","patch","search","connect"]}});var iV=P((dWt,Fpe)=>{"use strict";var Dpe=require("fs"),Hst=require("crypto"),{EventEmitter:Gst}=require("events"),nV=class extends Gst{constructor({filepath:t,newFilename:r,originalFilename:n,mimetype:i,hashAlgorithm:s}){super(),this.lastModifiedDate=null,Object.assign(this,{filepath:t,newFilename:r,originalFilename:n,mimetype:i,hashAlgorithm:s}),this.size=0,this._writeStream=null,typeof this.hashAlgorithm=="string"?this.hash=Hst.createHash(this.hashAlgorithm):this.hash=null}open(){this._writeStream=new Dpe.WriteStream(this.filepath),this._writeStream.on("error",t=>{this.emit("error",t)})}toJSON(){let t={size:this.size,filepath:this.filepath,newFilename:this.newFilename,mimetype:this.mimetype,mtime:this.lastModifiedDate,length:this.length,originalFilename:this.originalFilename};return this.hash&&this.hash!==""&&(t.hash=this.hash),t}toString(){return`PersistentFile: ${this.newFilename}, Original: ${this.originalFilename}, Path: ${this.filepath}`}write(t,r){if(this.hash&&this.hash.update(t),this._writeStream.closed){r();return}this._writeStream.write(t,()=>{this.lastModifiedDate=new Date,this.size+=t.length,this.emit("progress",this.size),r()})}end(t){this.hash&&(this.hash=this.hash.digest("hex")),this._writeStream.end(()=>{this.emit("end"),t()})}destroy(){this._writeStream.destroy(),Dpe.unlink(this.filepath,()=>{})}};Fpe.exports=nV});var oV=P((uWt,Lpe)=>{"use strict";var Bst=require("crypto"),{EventEmitter:Jst}=require("events"),sV=class extends Jst{constructor({filepath:t,newFilename:r,originalFilename:n,mimetype:i,hashAlgorithm:s,createFileWriteStream:o}){super(),this.lastModifiedDate=null,Object.assign(this,{filepath:t,newFilename:r,originalFilename:n,mimetype:i,hashAlgorithm:s,createFileWriteStream:o}),this.size=0,this._writeStream=null,typeof this.hashAlgorithm=="string"?this.hash=Bst.createHash(this.hashAlgorithm):this.hash=null}open(){this._writeStream=this.createFileWriteStream(this),this._writeStream.on("error",t=>{this.emit("error",t)})}destroy(){this._writeStream.destroy()}toJSON(){let t={size:this.size,newFilename:this.newFilename,length:this.length,originalFilename:this.originalFilename,mimetype:this.mimetype};return this.hash&&this.hash!==""&&(t.hash=this.hash),t}toString(){return`VolatileFile: ${this.originalFilename}`}write(t,r){if(this.hash&&this.hash.update(t),this._writeStream.closed||this._writeStream.destroyed){r();return}this._writeStream.write(t,()=>{this.size+=t.length,this.emit("progress",this.size),r()})}end(t){this.hash&&(this.hash=this.hash.digest("hex")),this._writeStream.end(()=>{this.emit("end"),t()})}};Lpe.exports=sV});var Upe=P((pWt,zpe)=>{var aV=256,cV=[];for(;aV--;)cV[aV]=(aV+256).toString(16).substring(1);zpe.exports=function(e){e=e||16;var t="",r=0;return function(){if(!t||r===256){for(t="",r=(1+e)/2|0;r--;)t+=cV[256*Math.random()|0];t=t.substring(r=0,e-2)}return t+cV[r++]}}});var lV=P((mWt,Vpe)=>{Vpe.exports=$pe;function $pe(e,t){if(e&&t)return $pe(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){r[n]=e[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=e.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var Bpe=P((fWt,dV)=>{var Hpe=lV();dV.exports=Hpe(qI);dV.exports.strict=Hpe(Gpe);qI.proto=qI(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return qI(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Gpe(this)},configurable:!0})});function qI(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Gpe(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});var Qpe=P((_Wt,Ype)=>{"use strict";var TI,Wst=typeof setImmediate=="function";Ype.exports=Wpe;function Wpe(e){uc.length||(Kpe(),uV=!0),uc[uc.length]=e}var uc=[],uV=!1,dc=0,Kst=1024;function Jpe(){for(;dc<uc.length;){var e=dc;if(dc=dc+1,uc[e].call(),dc>Kst){for(var t=0,r=uc.length-dc;t<r;t++)uc[t]=uc[t+dc];uc.length-=dc,dc=0}}uc.length=0,dc=0,uV=!1}Wpe.requestFlush=Kpe;function Kpe(){var e=process.domain;e&&(TI||(TI=require("domain")),TI.active=process.domain=null),uV&&Wst?setImmediate(Jpe):process.nextTick(Jpe),e&&(TI.active=process.domain=e)}});var tme=P((hWt,eme)=>{"use strict";var Xpe=Qpe(),pV=[];eme.exports=Yst;function Yst(e){var t;pV.length?t=pV.pop():t=new Zpe,t.task=e,t.domain=process.domain,Xpe(t)}function Zpe(){this.task=null,this.domain=null}Zpe.prototype.call=function(){this.domain&&this.domain.enter();var e=!0;try{this.task.call(),e=!1,this.domain&&this.domain.exit()}finally{e&&Xpe.requestFlush(),this.task=null,this.domain=null,pV.push(this)}}});var ime=P((vWt,nme)=>{var Qst=lV();nme.exports=Qst(Xst);var rme=tme();function Xst(e){var t=!0;return rme(function(){t=!1}),function(){var n=arguments,i=this;t?rme(function(){e.apply(i,n)}):e.apply(i,n)}}});var OI=P((gWt,sme)=>{"use strict";var Zst=String.prototype.replace,eot=/%20/g,mV={RFC1738:"RFC1738",RFC3986:"RFC3986"};sme.exports={default:mV.RFC3986,formatters:{RFC1738:function(e){return Zst.call(e,eot,"+")},RFC3986:function(e){return String(e)}},RFC1738:mV.RFC1738,RFC3986:mV.RFC3986}});var _V=P((yWt,ame)=>{"use strict";var tot=OI(),fV=Object.prototype.hasOwnProperty,ip=Array.isArray,pc=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),rot=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(ip(n)){for(var i=[],s=0;s<n.length;++s)typeof n[s]<"u"&&i.push(n[s]);r.obj[r.prop]=i}}},ome=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},not=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(ip(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!fV.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return ip(t)&&!ip(r)&&(i=ome(t,n)),ip(t)&&ip(r)?(r.forEach(function(s,o){if(fV.call(t,o)){var a=t[o];a&&typeof a=="object"&&s&&typeof s=="object"?t[o]=e(a,s,n):t.push(s)}else t[o]=s}),t):Object.keys(r).reduce(function(s,o){var a=r[o];return fV.call(s,o)?s[o]=e(s[o],a,n):s[o]=a,s},i)},iot=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},sot=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},oot=function(t,r,n,i,s){if(t.length===0)return t;var o=t;if(typeof t=="symbol"?o=Symbol.prototype.toString.call(t):typeof t!="string"&&(o=String(t)),n==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var a="",c=0;c<o.length;++c){var l=o.charCodeAt(c);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||s===tot.RFC1738&&(l===40||l===41)){a+=o.charAt(c);continue}if(l<128){a=a+pc[l];continue}if(l<2048){a=a+(pc[192|l>>6]+pc[128|l&63]);continue}if(l<55296||l>=57344){a=a+(pc[224|l>>12]+pc[128|l>>6&63]+pc[128|l&63]);continue}c+=1,l=65536+((l&1023)<<10|o.charCodeAt(c)&1023),a+=pc[240|l>>18]+pc[128|l>>12&63]+pc[128|l>>6&63]+pc[128|l&63]}return a},aot=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var s=r[i],o=s.obj[s.prop],a=Object.keys(o),c=0;c<a.length;++c){var l=a[c],d=o[l];typeof d=="object"&&d!==null&&n.indexOf(d)===-1&&(r.push({obj:o,prop:l}),n.push(d))}return rot(r),t},cot=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},lot=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},dot=function(t,r){return[].concat(t,r)},uot=function(t,r){if(ip(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)};ame.exports={arrayToObject:ome,assign:iot,combine:dot,compact:aot,decode:sot,encode:oot,isBuffer:lot,isRegExp:cot,maybeMap:uot,merge:not}});var mme=P((SWt,pme)=>{"use strict";var dme=K5(),jI=_V(),uy=OI(),pot=Object.prototype.hasOwnProperty,cme={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},gl=Array.isArray,mot=Array.prototype.push,ume=function(e,t){mot.apply(e,gl(t)?t:[t])},fot=Date.prototype.toISOString,lme=uy.default,$i={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:jI.encode,encodeValuesOnly:!1,format:lme,formatter:uy.formatters[lme],indices:!1,serializeDate:function(t){return fot.call(t)},skipNulls:!1,strictNullHandling:!1},_ot=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},hV={},hot=function e(t,r,n,i,s,o,a,c,l,d,u,p,f,m,v,g){for(var y=t,h=g,S=0,w=!1;(h=h.get(hV))!==void 0&&!w;){var j=h.get(t);if(S+=1,typeof j<"u"){if(j===S)throw new RangeError("Cyclic object value");w=!0}typeof h.get(hV)>"u"&&(S=0)}if(typeof c=="function"?y=c(r,y):y instanceof Date?y=u(y):n==="comma"&&gl(y)&&(y=jI.maybeMap(y,function(Y){return Y instanceof Date?u(Y):Y})),y===null){if(s)return a&&!m?a(r,$i.encoder,v,"key",p):r;y=""}if(_ot(y)||jI.isBuffer(y)){if(a){var x=m?r:a(r,$i.encoder,v,"key",p);return[f(x)+"="+f(a(y,$i.encoder,v,"value",p))]}return[f(r)+"="+f(String(y))]}var O=[];if(typeof y>"u")return O;var N;if(n==="comma"&&gl(y))m&&a&&(y=jI.maybeMap(y,a)),N=[{value:y.length>0?y.join(",")||null:void 0}];else if(gl(c))N=c;else{var C=Object.keys(y);N=l?C.sort(l):C}for(var q=i&&gl(y)&&y.length===1?r+"[]":r,b=0;b<N.length;++b){var R=N[b],F=typeof R=="object"&&typeof R.value<"u"?R.value:y[R];if(!(o&&F===null)){var k=gl(y)?typeof n=="function"?n(q,R):q:q+(d?"."+R:"["+R+"]");g.set(t,S);var G=dme();G.set(hV,g),ume(O,e(F,k,n,i,s,o,n==="comma"&&m&&gl(y)?null:a,c,l,d,u,p,f,m,v,G))}}return O},vot=function(t){if(!t)return $i;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||$i.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=uy.default;if(typeof t.format<"u"){if(!pot.call(uy.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=uy.formatters[n],s=$i.filter;return(typeof t.filter=="function"||gl(t.filter))&&(s=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:$i.addQueryPrefix,allowDots:typeof t.allowDots>"u"?$i.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:$i.charsetSentinel,delimiter:typeof t.delimiter>"u"?$i.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:$i.encode,encoder:typeof t.encoder=="function"?t.encoder:$i.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:$i.encodeValuesOnly,filter:s,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:$i.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:$i.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:$i.strictNullHandling}};pme.exports=function(e,t){var r=e,n=vot(t),i,s;typeof n.filter=="function"?(s=n.filter,r=s("",r)):gl(n.filter)&&(s=n.filter,i=s);var o=[];if(typeof r!="object"||r===null)return"";var a;t&&t.arrayFormat in cme?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var c=cme[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=c==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var d=dme(),u=0;u<i.length;++u){var p=i[u];n.skipNulls&&r[p]===null||ume(o,hot(r[p],p,c,l,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,d))}var f=o.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),f.length>0?m+f:""}});var hme=P((wWt,_me)=>{"use strict";var yf=_V(),vV=Object.prototype.hasOwnProperty,got=Array.isArray,si={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:yf.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},yot=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},fme=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Sot="utf8=%26%2310003%3B",wot="utf8=%E2%9C%93",Eot=function(t,r){var n={},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,s=r.parameterLimit===1/0?void 0:r.parameterLimit,o=i.split(r.delimiter,s),a=-1,c,l=r.charset;if(r.charsetSentinel)for(c=0;c<o.length;++c)o[c].indexOf("utf8=")===0&&(o[c]===wot?l="utf-8":o[c]===Sot&&(l="iso-8859-1"),a=c,c=o.length);for(c=0;c<o.length;++c)if(c!==a){var d=o[c],u=d.indexOf("]="),p=u===-1?d.indexOf("="):u+1,f,m;p===-1?(f=r.decoder(d,si.decoder,l,"key"),m=r.strictNullHandling?null:""):(f=r.decoder(d.slice(0,p),si.decoder,l,"key"),m=yf.maybeMap(fme(d.slice(p+1),r),function(v){return r.decoder(v,si.decoder,l,"value")})),m&&r.interpretNumericEntities&&l==="iso-8859-1"&&(m=yot(m)),d.indexOf("[]=")>-1&&(m=got(m)?[m]:m),vV.call(n,f)?n[f]=yf.combine(n[f],m):n[f]=m}return n},bot=function(e,t,r,n){for(var i=n?t:fme(t,r),s=e.length-1;s>=0;--s){var o,a=e[s];if(a==="[]"&&r.parseArrays)o=[].concat(i);else{o=r.plainObjects?Object.create(null):{};var c=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,l=parseInt(c,10);!r.parseArrays&&c===""?o={0:i}:!isNaN(l)&&a!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(o=[],o[l]=i):c!=="__proto__"&&(o[c]=i)}i=o}return i},Rot=function(t,r,n,i){if(t){var s=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(s),l=c?s.slice(0,c.index):s,d=[];if(l){if(!n.plainObjects&&vV.call(Object.prototype,l)&&!n.allowPrototypes)return;d.push(l)}for(var u=0;n.depth>0&&(c=a.exec(s))!==null&&u<n.depth;){if(u+=1,!n.plainObjects&&vV.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(c[1])}return c&&d.push("["+s.slice(c.index)+"]"),bot(d,r,n,i)}},Aot=function(t){if(!t)return si;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?si.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?si.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:si.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:si.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:si.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:si.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:si.comma,decoder:typeof t.decoder=="function"?t.decoder:si.decoder,delimiter:typeof t.delimiter=="string"||yf.isRegExp(t.delimiter)?t.delimiter:si.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:si.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:si.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:si.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:si.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:si.strictNullHandling}};_me.exports=function(e,t){var r=Aot(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?Eot(e,r):e,i=r.plainObjects?Object.create(null):{},s=Object.keys(n),o=0;o<s.length;++o){var a=s[o],c=Rot(a,n[a],r,typeof e=="string");i=yf.merge(i,c,r)}return r.allowSparse===!0?i:yf.compact(i)}});var gme=P((EWt,vme)=>{"use strict";var Pot=mme(),xot=hme(),Cot=OI();vme.exports={formats:Cot,parse:xot,stringify:Pot}});var yV=P((bWt,yme)=>{"use strict";var{Transform:Iot}=require("stream"),gV=class extends Iot{constructor(t,r={}){super(),this.globalOptions={...r},this.incomingForm=t}_flush(t){this.incomingForm.ended=!0,this.incomingForm._maybeEnd(),t()}};yme.exports=gV});var py=P((RWt,Sme)=>{var qot=class extends Error{constructor(e,t,r=500){super(e),this.code=t,this.httpCode=r}};Sme.exports={missingPlugin:1e3,pluginFunction:1001,aborted:1002,noParser:1003,uninitializedParser:1004,filenameNotString:1005,maxFieldsSizeExceeded:1006,maxFieldsExceeded:1007,smallerThanMinFileSize:1008,biggerThanMaxFileSize:1009,noEmptyFiles:1010,missingContentType:1011,malformedMultipart:1012,missingMultipartBoundary:1013,unknownTransferEncoding:1014,FormidableError:qot}});var DI=P((MI,bme)=>{"use strict";var{Transform:Tot}=require("stream"),Eme=py(),{FormidableError:Oot}=Eme,co=0,lr={PARSER_UNINITIALIZED:co++,START:co++,START_BOUNDARY:co++,HEADER_FIELD_START:co++,HEADER_FIELD:co++,HEADER_VALUE_START:co++,HEADER_VALUE:co++,HEADER_VALUE_ALMOST_DONE:co++,HEADERS_ALMOST_DONE:co++,PART_DATA_START:co++,PART_DATA:co++,PART_END:co++,END:co++},wme=1,qd={PART_BOUNDARY:wme,LAST_BOUNDARY:wme*=2},NI=10,kI=13,jot=32,my=45,Not=58,kot=97,Mot=122;function Dot(e){return e|32}MI.STATES={};Object.keys(lr).forEach(e=>{MI.STATES[e]=lr[e]});var Sf=class extends Tot{constructor(t={}){super({readableObjectMode:!0}),this.boundary=null,this.boundaryChars=null,this.lookbehind=null,this.bufferLength=0,this.state=lr.PARSER_UNINITIALIZED,this.globalOptions={...t},this.index=null,this.flags=0}_flush(t){this.state===lr.HEADER_FIELD_START&&this.index===0||this.state===lr.PART_DATA&&this.index===this.boundary.length?(this._handleCallback("partEnd"),this._handleCallback("end"),t()):this.state!==lr.END&&t(new Oot(`MultipartParser.end(): stream ended unexpectedly: ${this.explain()}`,Eme.malformedMultipart,400))}initWithBoundary(t){this.boundary=Buffer.from(`\r
|
|
@@ -467,7 +467,7 @@ json-schema-library/dist/jsonSchemaLibrary.js:
|
|
|
467
467
|
*/
|
|
468
468
|
/**
|
|
469
469
|
* @title @squiz/content-api
|
|
470
|
-
* @version 1.32.1-alpha.
|
|
470
|
+
* @version 1.32.1-alpha.28
|
|
471
471
|
* @license ISC
|
|
472
472
|
* @baseUrl /
|
|
473
473
|
* @contact
|