nova-ui-minified/_nuxt/ef1ed3e.js

8 lines
3.3 MiB
JavaScript
Raw Normal View History

2022-08-02 12:34:20 +02:00
/*! For license information please see LICENSES */
(this.webpackJsonp=this.webpackJsonp||[]).push([[34],[,function(e,t,r){"use strict";r.r(t),r.d(t,"isBytesLike",(function(){return A})),r.d(t,"isBytes",(function(){return f})),r.d(t,"arrayify",(function(){return l})),r.d(t,"concat",(function(){return h})),r.d(t,"stripZeros",(function(){return d})),r.d(t,"zeroPad",(function(){return m})),r.d(t,"isHexString",(function(){return y})),r.d(t,"hexlify",(function(){return I})),r.d(t,"hexDataLength",(function(){return w})),r.d(t,"hexDataSlice",(function(){return E})),r.d(t,"hexConcat",(function(){return C})),r.d(t,"hexValue",(function(){return B})),r.d(t,"hexStripZeros",(function(){return Q})),r.d(t,"hexZeroPad",(function(){return _})),r.d(t,"splitSignature",(function(){return D})),r.d(t,"joinSignature",(function(){return M}));const n=new(r(5).Logger)("bytes/5.4.0");function o(e){return!!e.toHexString}function c(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return c(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function A(e){return y(e)&&!(e.length%2)||f(e)}function f(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(null==e.length)return!1;for(let i=0;i<e.length;i++){const t=e[i];if("number"!=typeof t||t<0||t>=256||t%1)return!1}return!0}function l(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),c(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e)&&(e=e.toHexString()),y(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0x0"+r.substring(2):"right"===t.hexPad?r+="0":n.throwArgumentError("hex data is odd-length","value",e));const o=[];for(let i=0;i<r.length;i+=2)o.push(parseInt(r.substring(i,i+2),16));return c(new Uint8Array(o))}return f(e)?c(new Uint8Array(e)):n.throwArgumentError("invalid arrayify value","value",e)}function h(e){const t=e.map((e=>l(e))),r=t.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(r);return t.reduce(((e,object)=>(n.set(object,e),e+object.length)),0),c(n)}function d(e){let t=l(e);if(0===t.length)return t;let r=0;for(;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t}function m(e,t){(e=l(e)).length>t&&n.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(t);return r.set(e,t-e.length),c(r)}function y(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}const v="0123456789abcdef";function I(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=v[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e))return e.toHexString();if(y(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":n.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(f(e)){let t="0x";for(let i=0;i<e.length;i++){let r=e[i];t+=v[(240&r)>>4]+v[15&r]}return t}return n.throwArgumentError("invalid hexlify value","value",e)}function w(data){if("string"!=typeof data)data=I(data);else if(!y(data)||data.length%2)return null;return(data.length-2)/2}function E(data,e,t){return"string"!=typeof data?data=I(data):(!y(data)||data.length%2)&&n.throwArgumentError("invalid hexData","value",data),e=2+2*e,null!=t?"0x"+data.substring(e,2+2*t):"0x"+data.substring(e)}function C(e){let t="0x";return e.forEach((e=>{t+=I(e).substring(2)})),t}function B(e){const t=Q(I(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function Q(e){"string"!=typeof e&&(e=I(e)),y(e)||n.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}function _(e,t){for("string"!=typeof e?e=I(e):y(e)||n.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&n.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e
|| (${c} == "string" && ${data} && ${data} == +${data})`).assign(f,A._`+${data}`);case"integer":return void n.elseIf(A._`${c} === "boolean" || ${data} === null
|| (${c} === "string" && ${data} && ${data} == +${data} && !(${data} % 1))`).assign(f,A._`+${data}`);case"boolean":return void n.elseIf(A._`${data} === "false" || ${data} === 0 || ${data} === null`).assign(f,!1).elseIf(A._`${data} === "true" || ${data} === 1`).assign(f,!0);case"null":return n.elseIf(A._`${data} === "" || ${data} === 0 || ${data} === false`),void n.assign(f,null);case"array":n.elseIf(A._`${c} === "string" || ${c} === "number"
|| ${c} === "boolean" || ${data} === null`).assign(f,A._`[${data}]`)}}n.else(),I(e),n.endIf(),n.if(A._`${f} !== undefined`,(()=>{n.assign(data,f),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(A._`${t} !== undefined`,(()=>e.assign(A._`${t}[${r}]`,n)))}(e,f)}))}(e,t,c):I(e)}))}return f};const d=new Set(["string","number","integer","boolean","null"]);function m(e,data,t,r=l.Correct){const n=r===l.Correct?A.operators.EQ:A.operators.NEQ;let o;switch(e){case"null":return A._`${data} ${n} null`;case"array":o=A._`Array.isArray(${data})`;break;case"object":o=A._`${data} && typeof ${data} == "object" && !Array.isArray(${data})`;break;case"integer":o=c(A._`!(${data} % 1) && !isNaN(${data})`);break;case"number":o=c();break;default:return A._`typeof ${data} ${n} ${e}`}return r===l.Correct?o:(0,A.not)(o);function c(e=A.nil){return(0,A.and)(A._`typeof ${data} == "number"`,e,t?A._`isFinite(${data})`:A.nil)}}function y(e,data,t,r){if(1===e.length)return m(e[0],data,t,r);let n;const o=(0,f.toHash)(e);if(o.array&&o.object){const e=A._`typeof ${data} != "object"`;n=o.null?e:A._`!${data} || ${e}`,delete o.null,delete o.array,delete o.object}else n=A.nil;o.number&&delete o.integer;for(const e in o)n=(0,A.and)(n,m(e,data,t,r));return n}t.checkDataType=m,t.checkDataTypes=y;const v={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?A._`{type: ${e}}`:A._`{type: ${t}}`};function I(e){const t=function(e){const{gen:t,data:data,schema:r}=e,n=(0,f.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:data,schema:r.type,schemaCode:n,schemaValue:n,parentSchema:r,params:{},it:e}}(e);(0,c.reportError)(t,v)}t.reportTypeError=I},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=r(52),o=r(669),c=r(1005),A=r(670),f=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!h(e):!!t&&d(e)<=t)};const l=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function h(e){for(const t in e){if(l.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(h))return!0;if("object"==typeof r&&h(r))return!0}return!1}function d(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!f.has(r)&&("object"==typeof e[r]&&(0,n.eachItem)(e[r],(e=>t+=d(e))),t===1/0))return 1/0}return t}function m(e="",t){!1!==t&&(e=I(e));return y(A.parse(e))}function y(p){return A.serialize(p).split("#")[0]+"#"}t.getFullPath=m,t._getFullPath=y;const v=/#\/?$/;function I(e){return e?e.replace(v,""):""}t.normalizeId=I,t.resolveUrl=function(e,t){return t=I(t),A.resolve(e,t)};const w=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r}=this.opts,n=I(e[r]||t),f={"":n},l=m(n,!1),h={},d=new Set;return c(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const c=l+t;let m=f[o];function E(t){if(t=I(m?A.resolve(m,t):t),d.has(t))throw v(t);d.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?y(e,r.schema,t):t!==I(c)&&("#"===t[0]?(y(e,h[t],t),h[t]=e):this.refs[t]=c),t}function C(e){if("string"==typeof e){if(!w.test(e))throw new Error(`invalid anchor "${e}"`);E.call(this,`#${e}`)}}"string"==typeof e[r]&&(m=E.call(this,e[r])),C.call(this,e.$anchor),C.call(this,e.$dynamicAnchor),f[t]=m})),h;function y(e,t,r){if(void 0!==t&&!o(e,t))throw v(r)}function v(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){var n=r(1143),o=r(1144),c=r(1145),A=r(1146),f=r(1147);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=c,l.prototype.has=A,l.prototype.set=f,e.exports=l},function(e,t,r){var n=r(242);e.exports=function(e,t){for(var r=
missingProperty: ${o},
depsCount: ${t},
deps: ${r}}`};const A={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);f(e,t),l(e,r)}};function f(e,t=e.schema){const{gen:r,data:data,it:o}=e;if(0===Object.keys(t).length)return;const A=r.let("missing");for(const f in t){const l=t[f];if(0===l.length)continue;const h=(0,c.propertyInData)(r,data,f,o.opts.ownProperties);e.setParams({property:f,depsCount:l.length,deps:l.join(", ")}),o.allErrors?r.if(h,(()=>{for(const t of l)(0,c.checkReportMissingProp)(e,t)})):(r.if(n._`${h} && (${(0,c.checkMissingProp)(e,l,A)})`),(0,c.reportMissingProp)(e,A),r.else())}}function l(e,t=e.schema){const{gen:r,data:data,keyword:n,it:A}=e,f=r.name("valid");for(const l in t)(0,o.alwaysValidSchema)(A,t[l])||(r.if((0,c.propertyInData)(r,data,l,A.opts.ownProperties),(()=>{const t=e.subschema({keyword:n,schemaProp:l},f);e.mergeValidEvaluated(t,f)}),(()=>r.var(f,!0))),e.ok(f))}t.validatePropertyDeps=f,t.validateSchemaDeps=l,t.default=A},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(43),o=r(52),c={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>n._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:data,it:c}=e;if((0,o.alwaysValidSchema)(c,r))return;const A=t.name("valid");t.forIn("key",data,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},A),t.if((0,n.not)(A),(()=>{e.error(!0),c.allErrors||t.break()}))})),e.ok(A)}};t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(289),o=r(125),c=r(52),A=r(676),f={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:f,data:data,it:l}=e;"all"===l.opts.removeAdditional&&void 0===f.additionalProperties&&A.default.code(new n.KeywordCxt(l,A.default,"additionalProperties"));const h=(0,o.allSchemaProperties)(r);for(const e of h)l.definedProperties.add(e);l.opts.unevaluated&&h.length&&!0!==l.props&&(l.props=c.mergeEvaluated.props(t,(0,c.toHash)(h),l.props));const d=h.filter((p=>!(0,c.alwaysValidSchema)(l,r[p])));if(0===d.length)return;const m=t.name("valid");for(const r of d)y(r)?v(r):(t.if((0,o.propertyInData)(t,data,r,l.opts.ownProperties)),v(r),l.allErrors||t.else().var(m,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(m);function y(e){return l.opts.useDefaults&&!l.compositeRule&&void 0!==r[e].default}function v(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},m)}}};t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(125),o=r(43),c=r(52),A=r(52),f={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:data,parentSchema:f,it:l}=e,{opts:h}=l,d=(0,n.allSchemaProperties)(r),m=d.filter((p=>(0,c.alwaysValidSchema)(l,r[p])));if(0===d.length||m.length===d.length&&(!l.opts.unevaluated||!0===l.props))return;const y=h.strictSchema&&!h.allowMatchingProperties&&f.properties,v=t.name("valid");!0===l.props||l.props instanceof o.Name||(l.props=(0,A.evaluatedPropsToName)(t,l.props));const{props:I}=l;function w(e){for(const t in y)new RegExp(e).test(t)&&(0,c.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function E(r){t.forIn("key",data,(c=>{t.if(o._`${(0,n.usePattern)(e,r)}.test(${c})`,(()=>{const n=m.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:c,dataPropType:A.Type.Str},v),l.opts.unevaluated&&!0!==I?t.assign(o._`${I}[${c}]`,!0):n||l.allErrors||t.if((0,o.not)(v),(()=>t.break()))}))}))}!function(){for(const e of d)y&&w(e),l.allErrors?E(e):(t.var(v,!0),E(e),t.if(v))}()}};t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(52),o={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it