@rjsf/utils
Advanced tools
Comparing version 5.5.2 to 5.6.0
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lodash/isEqualWith"),r=require("lodash/get"),t=require("lodash/isEmpty"),n=require("jsonpointer"),i=require("lodash/omit"),o=require("lodash/has"),a=require("lodash/isObject"),u=require("lodash/isString"),s=require("lodash/reduce"),f=require("lodash/times"),d=require("lodash/set"),l=require("json-schema-merge-allof"),c=require("lodash/union"),p=require("lodash/isEqual"),v=require("lodash/cloneDeep"),m=require("react/jsx-runtime"),y=require("react"),h=require("react-is");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=g(e),O=g(r),x=g(t),A=g(n),S=g(i),E=g(o),I=g(a),w=g(u),_=g(s),j=g(f),T=g(d),W=g(l),D=g(c),P=g(p),N=g(v),F=g(h);function U(e){return!("undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Date&&e instanceof Date||"object"!=typeof e||null===e||Array.isArray(e))}function C(){return C=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},C.apply(this,arguments)}function R(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function q(e,r){if(null==e)return{};var t,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r.indexOf(t=o[n])>=0||(i[t]=e[t]);return i}function k(e,r){return void 0===e&&(e={}),void 0===r&&(r={}),Object.keys(e).filter((function(e){return 0===e.indexOf("ui:")})).reduce((function(r,t){var n,i=e[t];return"ui:widget"===t&&U(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):"ui:options"===t&&U(i)?C({},r,i):C({},r,((n={})[t.substring(3)]=i,n))}),C({},r))}function $(e,r){return b.default(e,r,(function(e,r){if("function"==typeof e&&"function"==typeof r)return!0}))}function L(e,r){var t=r[e];return[S.default(r,[e]),t]}function M(e,r){void 0===r&&(r={});var t=e||"";if(!t.startsWith("#"))throw new Error("Could not find a definition for "+e+".");t=decodeURIComponent(t.substring(1));var n=A.default.get(r,t);if(void 0===n)throw new Error("Could not find a definition for "+e+".");if(n.$ref){var i=L("$ref",n),o=i[0],a=M(i[1],r);return Object.keys(o).length>0?C({},o,a):a}return n}function Y(e,r,t,n){if(void 0===r)return 0;for(var i=0;i<t.length;i++){var o=t[i];if(o.properties){var a={anyOf:Object.keys(o.properties).map((function(e){return{required:[e]}}))},u=void 0;if(o.anyOf){var s=C({},(R(o),o));s.allOf=s.allOf?s.allOf.slice():[],s.allOf.push(a),u=s}else u=Object.assign({},o,a);if(delete u.required,e.isValid(u,r,n))return i}else if(e.isValid(o,r,n))return i}return 0}function K(e,r,t,n){return Y(e,r,t,n)}function B(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}function V(e){var r=e.type;return!r&&e.const?B(e.const):!r&&e.enum?"string":r||!e.properties&&!e.additionalProperties?(Array.isArray(r)&&2===r.length&&r.includes("null")&&(r=r.find((function(e){return"null"!==e}))),r):"object"}function H(e,r){var t=Object.assign({},e);return Object.keys(r).reduce((function(t,n){var i=e?e[n]:{},o=r[n];return t[n]=e&&n in e&&U(o)?H(i,o):e&&r&&("object"===V(e)||"object"===V(r))&&"required"===n&&Array.isArray(i)&&Array.isArray(o)?D.default(i,o):o,t}),t)}var G=["if","then","else"],z=["$ref"],J=["allOf"],Q=["dependencies"],X=["oneOf"];function Z(e,r,t,n){return ee(e,C({},M(r.$ref,t),q(r,z)),t,n)}function ee(e,r,t,n){if(void 0===t&&(t={}),!U(r))return{};var i=function(e,r,t,n){if(void 0===t&&(t={}),"$ref"in r)return Z(e,r,t,n);if("dependencies"in r){var i=re(e,r,t,n);return ee(e,i,t,n)}return"allOf"in r?C({},r,{allOf:r.allOf.map((function(r){return ee(e,r,t,n)}))}):r}(e,r,t,n);if("if"in r)return function(e,r,t,n){var i=r.if,o=r.then,a=r.else,u=q(r,G),s=e.isValid(i,n,t)?o:a;return ee(e,s&&"boolean"!=typeof s?H(u,ee(e,s,t,n)):u,t,n)}(e,r,t,n);var o=n||{};if("allOf"in r)try{i=W.default(i,{deep:!1})}catch(e){return console.warn("could not merge subschemas in allOf:\n",e),q(i,J)}return"additionalProperties"in i&&!1!==i.additionalProperties?function(e,r,t,n){var i=C({},r,{properties:C({},r.properties)}),o=n&&U(n)?n:{};return Object.keys(o).forEach((function(r){var n;r in i.properties||(n="boolean"!=typeof i.additionalProperties?"$ref"in i.additionalProperties?ee(e,{$ref:O.default(i.additionalProperties,["$ref"])},t,o):"type"in i.additionalProperties?C({},i.additionalProperties):"anyOf"in i.additionalProperties||"oneOf"in i.additionalProperties?C({type:"object"},i.additionalProperties):{type:B(O.default(o,[r]))}:{type:B(O.default(o,[r]))},i.properties[r]=n,T.default(i.properties,[r,"__additional_property"],!0))})),i}(e,i,t,o):i}function re(e,r,t,n){var i=r.dependencies,o=q(r,Q);return Array.isArray(o.oneOf)?o=o.oneOf[K(e,n,o.oneOf,t)]:Array.isArray(o.anyOf)&&(o=o.anyOf[K(e,n,o.anyOf,t)]),te(e,i,o,t,n)}function te(e,r,t,n,i){var o=t;for(var a in r)if(void 0!==O.default(i,[a])&&(!o.properties||a in o.properties)){var u=L(a,r),s=u[0],f=u[1];return Array.isArray(f)?o=ne(o,f):U(f)&&(o=ie(e,o,n,a,f,i)),te(e,s,o,n,i)}return o}function ne(e,r){return r?C({},e,{required:Array.isArray(e.required)?Array.from(new Set([].concat(e.required,r))):r}):e}function ie(e,r,t,n,i,o){var a=ee(e,i,t,o),u=a.oneOf;if(r=H(r,q(a,X)),void 0===u)return r;var s=u.map((function(r){return"boolean"!=typeof r&&"$ref"in r?Z(e,r,t,o):r}));return function(e,r,t,n,i,o){var a=i.filter((function(r){if("boolean"==typeof r||!r||!r.properties)return!1;var i=r.properties[n];if(i){var a,u={type:"object",properties:(a={},a[n]=i,a)};return e.isValid(u,o,t)}return!1}));if(1!==a.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),r;var u=a[0],s=C({},u,{properties:L(n,u.properties)[0]});return H(r,ee(e,s,t,o))}(e,r,t,n,s,o)}var oe,ae={type:"object",properties:{__not_really_there__:{type:"number"}}};function ue(e,r,t,n){void 0===n&&(n={});var i=0;return t&&(I.default(t.properties)?i+=_.default(t.properties,(function(t,i,o){var a=O.default(n,o);if("boolean"==typeof i)return t;if(E.default(i,"$ref")){var u=ee(e,i,r,a);return t+ue(e,r,u,a||{})}if(E.default(i,"oneOf")&&a)return t+se(e,r,a,O.default(i,"oneOf"));if("object"===i.type)return t+ue(e,r,i,a||{});if(i.type===B(a)){var s=t+1;return i.default?s+=a===i.default?1:-1:i.const&&(s+=a===i.const?1:-1),s}return t}),0):w.default(t.type)&&t.type===B(n)&&(i+=1)),i}function se(e,r,t,n,i){void 0===i&&(i=-1);var o=n.reduce((function(n,i,o){return 1===K(e,t,[ae,i],r)&&n.push(o),n}),[]);return 1===o.length?o[0]:(o.length||j.default(n.length,(function(e){return o.push(e)})),o.reduce((function(i,o){var a=i.bestScore,u=n[o];E.default(u,"$ref")&&(u=ee(e,u,r,t));var s=ue(e,r,u,t);return s>a?{bestIndex:o,bestScore:s}:i}),{bestIndex:i,bestScore:0}).bestIndex)}function fe(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((function(e){return U(e)}))}function de(e,r){if(Array.isArray(r)){var t=Array.isArray(e)?e:[];return r.map((function(e,r){return t[r]?de(t[r],e):e}))}if(U(r)){var n=Object.assign({},e);return Object.keys(r).reduce((function(t,n){return t[n]=de(e?O.default(e,n):{},O.default(r,n)),t}),n)}return r}function le(e,r,t){return void 0===t&&(t=!1),Object.keys(r).reduce((function(n,i){var o=e?e[i]:{},a=r[i];if(e&&i in e&&U(a))n[i]=le(o,a,t);else if(t&&Array.isArray(o)&&Array.isArray(a)){var u=a;"preventDuplicates"===t&&(u=a.reduce((function(e,r){return o.includes(r)||e.push(r),e}),[])),n[i]=o.concat(u)}else n[i]=a;return n}),Object.assign({},e))}function ce(e){return Array.isArray(e.enum)&&1===e.enum.length||"const"in e}function pe(e,r,t){void 0===t&&(t={});var n=ee(e,r,t,void 0),i=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(i)&&i.every((function(e){return"boolean"!=typeof e&&ce(e)}))}function ve(e,r,t){return!(!r.uniqueItems||!r.items||"boolean"==typeof r.items)&&pe(e,r.items,t)}function me(e,r,t){if(void 0===r&&(r=oe.Ignore),void 0===t&&(t=-1),t>=0){if(Array.isArray(e.items)&&t<e.items.length){var n=e.items[t];if("boolean"!=typeof n)return n}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return r!==oe.Ignore&&U(e.additionalItems)?e.additionalItems:{}}function ye(e,r,t,n,i){void 0===i&&(i=[]),n?e[r]=t:U(t)?x.default(t)&&!i.includes(r)||(e[r]=t):void 0!==t&&(e[r]=t)}function he(e,r,t,n,i,o,a){void 0===n&&(n={}),void 0===o&&(o=!1),void 0===a&&(a=[]);var u=U(i)?i:{},s=U(r)?r:{},f=t;if(U(f)&&U(s.default))f=le(f,s.default);else if("default"in s)f=s.default;else if("$ref"in s){var d=s.$ref;if(!a.includes(d)){var l=M(d,n);return he(e,l,f,n,u,o,a.concat(d))}}else{if("dependencies"in s){var c=re(e,s,n,u);return he(e,c,f,n,u,o,a)}if(fe(s))f=s.items.map((function(r,i){return he(e,r,Array.isArray(t)?t[i]:void 0,n,u,o,a)}));else if("oneOf"in s){if(0===s.oneOf.length)return;s=s.oneOf[se(e,n,x.default(u)?void 0:u,s.oneOf,0)]}else if("anyOf"in s){if(0===s.anyOf.length)return;s=s.anyOf[se(e,n,x.default(u)?void 0:u,s.anyOf,0)]}}switch(void 0===f&&(f=s.default),V(s)){case"object":var p=Object.keys(s.properties||{}).reduce((function(r,t){return ye(r,t,he(e,O.default(s,["properties",t]),O.default(f,[t]),n,O.default(u,[t]),!0===o,a),o,s.required),r}),{});if(s.additionalProperties){var v=U(s.additionalProperties)?s.additionalProperties:{},m=new Set;U(f)&&Object.keys(f).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),U(u)&&Object.keys(u).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),m.forEach((function(r){var t=he(e,v,O.default(f,[r]),n,O.default(u,[r]),!0===o,a);ye(p,r,t,o)}))}return p;case"array":if(Array.isArray(f)&&(f=f.map((function(r,t){var i=me(s,oe.Fallback,t);return he(e,i,r,n,void 0,void 0,a)}))),Array.isArray(i)){var y=me(s);f=i.map((function(r,t){return he(e,y,O.default(f,[t]),n,r,void 0,a)}))}if(s.minItems){if(!ve(e,s,n)){var h=Array.isArray(f)?f.length:0;if(s.minItems>h){var g=f||[],b=me(s,oe.Invert),A=b.default,S=new Array(s.minItems-h).fill(he(e,b,A,n,void 0,void 0,a));return g.concat(S)}}return f||[]}}return f}function ge(e,r,t,n,i){if(void 0===i&&(i=!1),!U(r))throw new Error("Invalid schema: "+r);var o=he(e,ee(e,r,n,t),void 0,n,t,i);return null==t||"number"==typeof t&&isNaN(t)?o:U(t)||Array.isArray(t)?de(o,t):t}function be(e){return void 0===e&&(e={}),"widget"in k(e)&&"hidden"!==k(e).widget}function Oe(e,r,t,n){if(void 0===t&&(t={}),"files"===t["ui:widget"])return!0;if(r.items){var i=ee(e,r.items,n);return"string"===i.type&&"data-url"===i.format}return!1}function xe(e,r,t,n,i){void 0===t&&(t={});var o=k(t,i).label,a=!(void 0!==o&&!o),u=V(r);return"array"===u&&(a=ve(e,r,n)||Oe(e,r,t,n)||be(t)),"object"===u&&(a=!1),"boolean"!==u||t["ui:widget"]||(a=!1),t["ui:field"]&&(a=!1),a}function Ae(e,r,t){if(!t)return r;var n=r.errors,i=r.errorSchema,o=e.toErrorList(t),a=t;return x.default(i)||(a=le(i,t,!0),o=[].concat(n).concat(o)),{errorSchema:a,errors:o}}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(oe||(oe={}));var Se=Symbol("no Value");function Ee(e,r,t,n,i){var o;if(void 0===i&&(i={}),E.default(t,"properties")){var a={};if(E.default(n,"properties")){var u=O.default(n,"properties",{});Object.keys(u).forEach((function(e){E.default(i,e)&&(a[e]=void 0)}))}var s=Object.keys(O.default(t,"properties",{})),f={};s.forEach((function(o){var u=O.default(i,o),s=O.default(n,["properties",o],{}),d=O.default(t,["properties",o],{});E.default(s,"$ref")&&(s=ee(e,s,r,u)),E.default(d,"$ref")&&(d=ee(e,d,r,u));var l=O.default(s,"type"),c=O.default(d,"type");if(!l||l===c)if(E.default(a,o)&&delete a[o],"object"===c||"array"===c&&Array.isArray(u)){var p=Ee(e,r,d,s,u);void 0===p&&"array"!==c||(f[o]=p)}else{var v=O.default(d,"default",Se),m=O.default(s,"default",Se);v!==Se&&v!==u&&(m===u?a[o]=v:!0===O.default(d,"readOnly")&&(a[o]=void 0));var y=O.default(d,"const",Se),h=O.default(s,"const",Se);y!==Se&&y!==u&&(a[o]=h===u?y:void 0)}})),o=C({},i,a,f)}else if("array"===O.default(n,"type")&&"array"===O.default(t,"type")&&Array.isArray(i)){var d=O.default(n,"items"),l=O.default(t,"items");if("object"!=typeof d||"object"!=typeof l||Array.isArray(d)||Array.isArray(l))"boolean"==typeof d&&"boolean"==typeof l&&d===l&&(o=i);else{E.default(d,"$ref")&&(d=ee(e,d,r,i)),E.default(l,"$ref")&&(l=ee(e,l,r,i));var c=O.default(d,"type"),p=O.default(l,"type");if(!c||c===p){var v=O.default(t,"maxItems",-1);o="object"===p?i.reduce((function(t,n){var i=Ee(e,r,l,d,n);return void 0!==i&&(v<0||t.length<v)&&t.push(i),t}),[]):v>0&&i.length>v?i.slice(0,v):i}}}return o}function Ie(e,r,t,n,i,o,a,u){if(void 0===u&&(u=[]),"$ref"in r||"dependencies"in r||"allOf"in r){var s=ee(e,r,o,a);if(-1===u.findIndex((function(e){return P.default(e,s)})))return Ie(e,s,t,n,i,o,a,u.concat(s))}if("items"in r&&!O.default(r,["items","$ref"]))return Ie(e,O.default(r,"items"),t,n,i,o,a,u);var f={$id:i||t};if("object"===r.type&&"properties"in r)for(var d in r.properties){var l=O.default(r,["properties",d]),c=f.$id+n+d;f[d]=Ie(e,U(l)?l:{},t,n,c,o,O.default(a,[d]),u)}return f}function we(e,r,t,n,i,o,a){return void 0===o&&(o="root"),void 0===a&&(a="_"),Ie(e,r,o,a,t,n,i)}function _e(e,r,t,n,i,o){var a;if(void 0===o&&(o=[]),"$ref"in r||"dependencies"in r||"allOf"in r){var u=ee(e,r,n,i);if(-1===o.findIndex((function(e){return P.default(e,u)})))return _e(e,u,t,n,i,o.concat(u))}var s=((a={}).$name=t.replace(/^\./,""),a);if("oneOf"in r){var f=se(e,n,i,r.oneOf,0);return _e(e,r.oneOf[f],t,n,i,o)}if("anyOf"in r){var d=se(e,n,i,r.anyOf,0);return _e(e,r.anyOf[d],t,n,i,o)}if("additionalProperties"in r&&!1!==r.additionalProperties&&T.default(s,"__rjsf_additionalProperties",!0),"items"in r&&Array.isArray(i))i.forEach((function(i,a){s[a]=_e(e,r.items,t+"."+a,n,i,o)}));else if("properties"in r)for(var l in r.properties){var c=O.default(r,["properties",l]);s[l]=_e(e,c,t+"."+l,n,O.default(i,[l]),o)}return s}function je(e,r,t,n,i){return void 0===t&&(t=""),_e(e,r,t,n,i)}var Te=function(){function e(e,r){this.rootSchema=void 0,this.validator=void 0,this.rootSchema=r,this.validator=e}var r=e.prototype;return r.getValidator=function(){return this.validator},r.doesSchemaUtilsDiffer=function(e,r){return!(!e||!r||this.validator===e&&$(this.rootSchema,r))},r.getDefaultFormState=function(e,r,t){return void 0===t&&(t=!1),ge(this.validator,e,r,this.rootSchema,t)},r.getDisplayLabel=function(e,r,t){return xe(this.validator,e,r,this.rootSchema,t)},r.getClosestMatchingOption=function(e,r,t){return se(this.validator,this.rootSchema,e,r,t)},r.getFirstMatchingOption=function(e,r){return K(this.validator,e,r,this.rootSchema)},r.getMatchingOption=function(e,r){return Y(this.validator,e,r,this.rootSchema)},r.isFilesArray=function(e,r){return Oe(this.validator,e,r,this.rootSchema)},r.isMultiSelect=function(e){return ve(this.validator,e,this.rootSchema)},r.isSelect=function(e){return pe(this.validator,e,this.rootSchema)},r.mergeValidationData=function(e,r){return Ae(this.validator,e,r)},r.retrieveSchema=function(e,r){return ee(this.validator,e,this.rootSchema,r)},r.sanitizeDataForNewSchema=function(e,r,t){return Ee(this.validator,this.rootSchema,e,r,t)},r.toIdSchema=function(e,r,t,n,i){return void 0===n&&(n="root"),void 0===i&&(i="_"),we(this.validator,e,r,this.rootSchema,t,n,i)},r.toPathSchema=function(e,r,t){return je(this.validator,e,r,this.rootSchema,t)},e}();function We(e,r){var t=e;if(Array.isArray(r)){var n=t.split(/(%\d)/);r.forEach((function(e,r){var t=n.findIndex((function(e){return e==="%"+(r+1)}));t>=0&&(n[t]=e)})),t=n.join("")}return t}function De(e,r,t){if(void 0===r&&(r=[]),Array.isArray(e))return e.map((function(e){return De(e,r)})).filter((function(e){return e}));var n=""===e||null===e?-1:Number(e),i=r[n];return i?i.value:t}function Pe(e,r){return Array.isArray(r)?r.some((function(r){return P.default(r,e)})):P.default(r,e)}var Ne=function(){function e(e){this.errorSchema={},this.resetAllErrors(e)}var r,t,n=e.prototype;return n.getOrCreateErrorBlock=function(e){var r=Array.isArray(e)&&e.length>0||"string"==typeof e?O.default(this.errorSchema,e):this.errorSchema;return!r&&e&&T.default(this.errorSchema,e,r={}),r},n.resetAllErrors=function(e){return this.errorSchema=e?N.default(e):{},this},n.addErrors=function(e,r){var t,n=this.getOrCreateErrorBlock(r),i=O.default(n,"__errors");return Array.isArray(i)||(n.__errors=i=[]),Array.isArray(e)?(t=i).push.apply(t,e):i.push(e),this},n.setErrors=function(e,r){var t=this.getOrCreateErrorBlock(r),n=Array.isArray(e)?[].concat(e):[e];return T.default(t,"__errors",n),this},n.clearErrors=function(e){var r=this.getOrCreateErrorBlock(e);return T.default(r,"__errors",[]),this},r=e,(t=[{key:"ErrorSchema",get:function(){return this.errorSchema}}])&&function(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i),n)}var i}(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),e}();function Fe(e){var r={};return e.multipleOf&&(r.step=e.multipleOf),(e.minimum||0===e.minimum)&&(r.min=e.minimum),(e.maximum||0===e.maximum)&&(r.max=e.maximum),r}var Ue,Ce={props:{disabled:!1},submitText:"Submit",norender:!1},Re=["options"],qe={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function ke(e,r,t){void 0===t&&(t={});var n=V(e);if("function"==typeof r||r&&F.default.isForwardRef(y.createElement(r))||F.default.isMemo(r))return function(e){var r=O.default(e,"MergedWidget");if(!r){var t=e.defaultProps&&e.defaultProps.options||{};T.default(e,"MergedWidget",r=function(r){var n=r.options,i=q(r,Re);return m.jsx(e,C({options:C({},t,n)},i))})}return r}(r);if("string"!=typeof r)throw new Error("Unsupported widget definition: "+typeof r);if(r in t)return ke(e,t[r],t);if("string"==typeof n){if(!(n in qe))throw new Error("No widget for type '"+n+"'");if(r in qe[n])return ke(e,t[qe[n][r]],t)}throw new Error("No widget '"+r+"' for type '"+n+"'")}function $e(e,r){return(w.default(e)?e:e.$id)+"__"+r}function Le(e){return $e(e,"description")}function Me(e){return $e(e,"error")}function Ye(e){return $e(e,"examples")}function Ke(e){return $e(e,"help")}function Be(e){if("enum"in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if("const"in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function Ve(e,r){for(var t=String(e);t.length<r;)t="0"+t;return t}exports.TranslatableString=void 0,(Ue=exports.TranslatableString||(exports.TranslatableString={})).ArrayItemTitle="Item",Ue.MissingItems="Missing items definition",Ue.YesLabel="Yes",Ue.NoLabel="No",Ue.CloseLabel="Close",Ue.ErrorsLabel="Errors",Ue.NewStringDefault="New Value",Ue.AddButton="Add",Ue.AddItemButton="Add Item",Ue.CopyButton="Copy",Ue.MoveDownButton="Move down",Ue.MoveUpButton="Move up",Ue.RemoveButton="Remove",Ue.NowLabel="Now",Ue.ClearLabel="Clear",Ue.AriaDateLabel="Select a date",Ue.PreviewLabel="Preview",Ue.DecrementAriaLabel="Decrease value by 1",Ue.IncrementAriaLabel="Increase value by 1",Ue.UnknownFieldType="Unknown field type %1",Ue.OptionPrefix="Option %1",Ue.TitleOptionPrefix="%1 option %2",Ue.KeyLabel="%1 Key",Ue.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',Ue.UnsupportedField="Unsupported field schema.",Ue.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",Ue.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",Ue.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",Ue.FilesInfo="<strong>%1</strong> (%2, %3 bytes)",exports.ADDITIONAL_PROPERTIES_KEY="additionalProperties",exports.ADDITIONAL_PROPERTY_FLAG="__additional_property",exports.ALL_OF_KEY="allOf",exports.ANY_OF_KEY="anyOf",exports.CONST_KEY="const",exports.DEFAULT_KEY="default",exports.DEFINITIONS_KEY="definitions",exports.DEPENDENCIES_KEY="dependencies",exports.ENUM_KEY="enum",exports.ERRORS_KEY="__errors",exports.ErrorSchemaBuilder=Ne,exports.ID_KEY="$id",exports.ITEMS_KEY="items",exports.NAME_KEY="$name",exports.ONE_OF_KEY="oneOf",exports.PROPERTIES_KEY="properties",exports.REF_KEY="$ref",exports.REQUIRED_KEY="required",exports.RJSF_ADDITONAL_PROPERTIES_FLAG="__rjsf_additionalProperties",exports.SUBMIT_BTN_OPTIONS_KEY="submitButtonOptions",exports.UI_FIELD_KEY="ui:field",exports.UI_GLOBAL_OPTIONS_KEY="ui:globalOptions",exports.UI_OPTIONS_KEY="ui:options",exports.UI_WIDGET_KEY="ui:widget",exports.allowAdditionalItems=function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),U(e.additionalItems)},exports.ariaDescribedByIds=function(e,r){void 0===r&&(r=!1);var t=r?" "+Ye(e):"";return Me(e)+" "+Le(e)+" "+Ke(e)+t},exports.asNumber=function(e){if(""!==e){if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;var r=Number(e);return"number"!=typeof r||Number.isNaN(r)?e:r}},exports.canExpand=function(e,r,t){if(void 0===r&&(r={}),!e.additionalProperties)return!1;var n=k(r).expandable,i=void 0===n||n;return!1===i?i:void 0===e.maxProperties||!t||Object.keys(t).length<e.maxProperties},exports.createSchemaUtils=function(e,r){return new Te(e,r)},exports.dataURItoBlob=function(e){var r,t=e.split(","),n=t[0].split(";"),i=n[0].replace("data:",""),o=n.filter((function(e){return"name"===e.split("=")[0]}));r=1!==o.length?"unknown":decodeURI(o[0].split("=")[1]);try{for(var a=atob(t[1]),u=[],s=0;s<a.length;s++)u.push(a.charCodeAt(s));return{blob:new window.Blob([new Uint8Array(u)],{type:i}),name:r}}catch(r){return{blob:{size:0,type:r.message},name:e}}},exports.deepEquals=$,exports.descriptionId=Le,exports.englishStringTranslator=function(e,r){return We(e,r)},exports.enumOptionsDeselectValue=function(e,r,t){void 0===t&&(t=[]);var n=De(e,t);return Array.isArray(r)?r.filter((function(e){return!P.default(e,n)})):P.default(n,r)?void 0:r},exports.enumOptionsIndexForValue=function(e,r,t){void 0===r&&(r=[]),void 0===t&&(t=!1);var n=r.map((function(r,t){return Pe(r.value,e)?String(t):void 0})).filter((function(e){return void 0!==e}));return t?n:n[0]},exports.enumOptionsIsSelected=Pe,exports.enumOptionsSelectValue=function(e,r,t){void 0===t&&(t=[]);var n=De(e,t);if(n){var i=t.findIndex((function(e){return n===e.value})),o=t.map((function(e){return e.value}));return r.slice(0,i).concat(n,r.slice(i)).sort((function(e,r){return Number(o.indexOf(e)>o.indexOf(r))}))}return r},exports.enumOptionsValueForIndex=De,exports.errorId=Me,exports.examplesId=Ye,exports.findSchemaDefinition=M,exports.getClosestMatchingOption=se,exports.getDefaultFormState=ge,exports.getDisplayLabel=xe,exports.getFirstMatchingOption=K,exports.getInputProps=function(e,r,t,n){void 0===t&&(t={}),void 0===n&&(n=!0);var i=C({type:r||"text"},Fe(e));return t.inputType?i.type=t.inputType:r||("number"===e.type?(i.type="number",n&&void 0===i.step&&(i.step="any")):"integer"===e.type&&(i.type="number",void 0===i.step&&(i.step=1))),t.autocomplete&&(i.autoComplete=t.autocomplete),i},exports.getMatchingOption=Y,exports.getSchemaType=V,exports.getSubmitButtonOptions=function(e){void 0===e&&(e={});var r=k(e);return r&&r.submitButtonOptions?C({},Ce,r.submitButtonOptions):Ce},exports.getTemplate=function(e,r,t){void 0===t&&(t={});var n=r.templates;return"ButtonTemplates"===e?n[e]:t[e]||n[e]},exports.getUiOptions=k,exports.getWidget=ke,exports.guessType=B,exports.hasWidget=function(e,r,t){void 0===t&&(t={});try{return ke(e,r,t),!0}catch(e){var n=e;if(n.message&&(n.message.startsWith("No widget")||n.message.startsWith("Unsupported widget")))return!1;throw e}},exports.helpId=Ke,exports.isConstant=ce,exports.isCustomWidget=be,exports.isFilesArray=Oe,exports.isFixedItems=fe,exports.isMultiSelect=ve,exports.isObject=U,exports.isSelect=pe,exports.labelValue=function(e,r,t){return r?t:e},exports.localToUTC=function(e){return e?new Date(e).toJSON():void 0},exports.mergeDefaultsWithFormData=de,exports.mergeObjects=le,exports.mergeSchemas=H,exports.mergeValidationData=Ae,exports.optionId=function(e,r){return e+"-"+r},exports.optionsList=function(e){var r=e;if(e.enum)return e.enum.map((function(e,t){return{label:r.enumNames&&r.enumNames[t]||String(e),value:e}}));var t=e.oneOf||e.anyOf;return t&&t.map((function(e){var r=e,t=Be(r);return{schema:r,label:r.title||String(t),value:t}}))},exports.orderProperties=function(e,r){if(!Array.isArray(r))return e;var t,n=function(e){return e.reduce((function(e,r){return e[r]=!0,e}),{})},i=n(e),o=r.filter((function(e){return"*"===e||i[e]})),a=n(o),u=e.filter((function(e){return!a[e]})),s=o.indexOf("*");if(-1===s){if(u.length)throw new Error("uiSchema order list does not contain "+((t=u).length>1?"properties '"+t.join("', '")+"'":"property '"+t[0]+"'"));return o}if(s!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var f=[].concat(o);return f.splice.apply(f,[s,1].concat(u)),f},exports.pad=Ve,exports.parseDateString=function(e,r){if(void 0===r&&(r=!0),!e)return{year:-1,month:-1,day:-1,hour:r?-1:0,minute:r?-1:0,second:r?-1:0};var t=new Date(e);if(Number.isNaN(t.getTime()))throw new Error("Unable to parse date "+e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:r?t.getUTCHours():0,minute:r?t.getUTCMinutes():0,second:r?t.getUTCSeconds():0}},exports.rangeSpec=Fe,exports.replaceStringParameters=We,exports.retrieveSchema=ee,exports.sanitizeDataForNewSchema=Ee,exports.schemaRequiresTrueValue=function e(r){return!!r.const||!(!r.enum||1!==r.enum.length||!0!==r.enum[0])||(r.anyOf&&1===r.anyOf.length?e(r.anyOf[0]):r.oneOf&&1===r.oneOf.length?e(r.oneOf[0]):!!r.allOf&&r.allOf.some((function(r){return e(r)})))},exports.shouldRender=function(e,r,t){var n=e.state;return!$(e.props,r)||!$(n,t)},exports.titleId=function(e){return $e(e,"title")},exports.toConstant=Be,exports.toDateString=function(e,r){void 0===r&&(r=!0);var t=e.hour,n=e.minute,i=e.second,o=Date.UTC(e.year,e.month-1,e.day,void 0===t?0:t,void 0===n?0:n,void 0===i?0:i),a=new Date(o).toJSON();return r?a:a.slice(0,10)},exports.toIdSchema=we,exports.toPathSchema=je,exports.utcToLocal=function(e){if(!e)return"";var r=new Date(e);return Ve(r.getFullYear(),4)+"-"+Ve(r.getMonth()+1,2)+"-"+Ve(r.getDate(),2)+"T"+Ve(r.getHours(),2)+":"+Ve(r.getMinutes(),2)+":"+Ve(r.getSeconds(),2)+"."+Ve(r.getMilliseconds(),3)}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lodash/isPlainObject"),r=require("lodash/isEqualWith"),t=require("lodash/get"),n=require("lodash/isEmpty"),i=require("jsonpointer"),o=require("lodash/omit"),a=require("lodash/has"),u=require("lodash/isObject"),s=require("lodash/isString"),f=require("lodash/reduce"),d=require("lodash/times"),l=require("lodash/set"),c=require("json-schema-merge-allof"),p=require("lodash/union"),v=require("lodash/isEqual"),m=require("lodash/cloneDeep"),y=require("react/jsx-runtime"),h=require("react"),g=require("react-is"),b=require("lodash/toPath");function O(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var x=O(e),A=O(r),S=O(t),E=O(n),_=O(i),I=O(o),w=O(a),j=O(u),T=O(s),P=O(f),W=O(d),D=O(l),N=O(c),F=O(p),U=O(v),C=O(m),R=O(g),k=O(b);function q(e){return!("undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Date&&e instanceof Date||"object"!=typeof e||null===e||Array.isArray(e))}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},$.apply(this,arguments)}function L(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function M(e,r){if(null==e)return{};var t,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r.indexOf(t=o[n])>=0||(i[t]=e[t]);return i}function Y(e,r){return void 0===e&&(e={}),void 0===r&&(r={}),Object.keys(e).filter((function(e){return 0===e.indexOf("ui:")})).reduce((function(r,t){var n,i=e[t];return"ui:widget"===t&&q(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):"ui:options"===t&&q(i)?$({},r,i):$({},r,((n={})[t.substring(3)]=i,n))}),$({},r))}function K(e,r){return A.default(e,r,(function(e,r){if("function"==typeof e&&"function"==typeof r)return!0}))}function B(e,r){var t=r[e];return[I.default(r,[e]),t]}function V(e,r){void 0===r&&(r={});var t=e||"";if(!t.startsWith("#"))throw new Error("Could not find a definition for "+e+".");t=decodeURIComponent(t.substring(1));var n=_.default.get(r,t);if(void 0===n)throw new Error("Could not find a definition for "+e+".");if(n.$ref){var i=B("$ref",n),o=i[0],a=V(i[1],r);return Object.keys(o).length>0?$({},o,a):a}return n}function H(e,r,t,n,i){if(void 0===r)return 0;for(var o=0;o<t.length;o++){var a=t[o];if(i&&w.default(a,["properties",i])){var u=S.default(r,i),s=S.default(a,["properties",i],{});if(e.isValid(s,u,n))return o}else if(a.properties){var f={anyOf:Object.keys(a.properties).map((function(e){return{required:[e]}}))},d=void 0;if(a.anyOf){var l=$({},(L(a),a));l.allOf=l.allOf?l.allOf.slice():[],l.allOf.push(f),d=l}else d=Object.assign({},a,f);if(delete d.required,e.isValid(d,r,n))return o}else if(e.isValid(a,r,n))return o}return 0}function G(e,r,t,n,i){return H(e,r,t,n,i)}function z(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}function J(e){var r=e.type;return!r&&e.const?z(e.const):!r&&e.enum?"string":r||!e.properties&&!e.additionalProperties?(Array.isArray(r)&&2===r.length&&r.includes("null")&&(r=r.find((function(e){return"null"!==e}))),r):"object"}function Q(e,r){var t=Object.assign({},e);return Object.keys(r).reduce((function(t,n){var i=e?e[n]:{},o=r[n];return t[n]=e&&n in e&&q(o)?Q(i,o):e&&r&&("object"===J(e)||"object"===J(r))&&"required"===n&&Array.isArray(i)&&Array.isArray(o)?F.default(i,o):o,t}),t)}var X=["if","then","else"],Z=["$ref"],ee=["allOf"],re=["dependencies"],te=["oneOf"];function ne(e,r,t,n){return ie(e,$({},V(r.$ref,t),M(r,Z)),t,n)}function ie(e,r,t,n){if(void 0===t&&(t={}),!q(r))return{};var i=function(e,r,t,n){if(void 0===t&&(t={}),"$ref"in r)return ne(e,r,t,n);if("dependencies"in r){var i=oe(e,r,t,n);return ie(e,i,t,n)}return"allOf"in r?$({},r,{allOf:r.allOf.map((function(r){return ie(e,r,t,n)}))}):r}(e,r,t,n);if("if"in r)return function(e,r,t,n){var i=r.if,o=r.then,a=r.else,u=M(r,X),s=e.isValid(i,n,t)?o:a;return ie(e,s&&"boolean"!=typeof s?Q(u,ie(e,s,t,n)):u,t,n)}(e,r,t,n);var o=n||{};if("allOf"in r)try{i=N.default(i,{deep:!1})}catch(e){return console.warn("could not merge subschemas in allOf:\n",e),M(i,ee)}return"additionalProperties"in i&&!1!==i.additionalProperties?function(e,r,t,n){var i=$({},r,{properties:$({},r.properties)}),o=n&&q(n)?n:{};return Object.keys(o).forEach((function(r){var n;r in i.properties||(n="boolean"!=typeof i.additionalProperties?"$ref"in i.additionalProperties?ie(e,{$ref:S.default(i.additionalProperties,["$ref"])},t,o):"type"in i.additionalProperties?$({},i.additionalProperties):"anyOf"in i.additionalProperties||"oneOf"in i.additionalProperties?$({type:"object"},i.additionalProperties):{type:z(S.default(o,[r]))}:{type:z(S.default(o,[r]))},i.properties[r]=n,D.default(i.properties,[r,"__additional_property"],!0))})),i}(e,i,t,o):i}function oe(e,r,t,n){var i=r.dependencies,o=M(r,re);return Array.isArray(o.oneOf)?o=o.oneOf[G(e,n,o.oneOf,t)]:Array.isArray(o.anyOf)&&(o=o.anyOf[G(e,n,o.anyOf,t)]),ae(e,i,o,t,n)}function ae(e,r,t,n,i){var o=t;for(var a in r)if(void 0!==S.default(i,[a])&&(!o.properties||a in o.properties)){var u=B(a,r),s=u[0],f=u[1];return Array.isArray(f)?o=ue(o,f):q(f)&&(o=se(e,o,n,a,f,i)),ae(e,s,o,n,i)}return o}function ue(e,r){return r?$({},e,{required:Array.isArray(e.required)?Array.from(new Set([].concat(e.required,r))):r}):e}function se(e,r,t,n,i,o){var a=ie(e,i,t,o),u=a.oneOf;if(r=Q(r,M(a,te)),void 0===u)return r;var s=u.map((function(r){return"boolean"!=typeof r&&"$ref"in r?ne(e,r,t,o):r}));return function(e,r,t,n,i,o){var a=i.filter((function(r){if("boolean"==typeof r||!r||!r.properties)return!1;var i=r.properties[n];if(i){var a,u={type:"object",properties:(a={},a[n]=i,a)};return e.isValid(u,o,t)}return!1}));if(1!==a.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),r;var u=a[0],s=$({},u,{properties:B(n,u.properties)[0]});return Q(r,ie(e,s,t,o))}(e,r,t,n,s,o)}var fe,de={type:"object",properties:{__not_really_there__:{type:"number"}}};function le(e,r,t,n){void 0===n&&(n={});var i=0;return t&&(j.default(t.properties)?i+=P.default(t.properties,(function(t,i,o){var a=S.default(n,o);if("boolean"==typeof i)return t;if(w.default(i,"$ref")){var u=ie(e,i,r,a);return t+le(e,r,u,a||{})}if(w.default(i,"oneOf")&&a)return t+ce(e,r,a,S.default(i,"oneOf"));if("object"===i.type)return t+le(e,r,i,a||{});if(i.type===z(a)){var s=t+1;return i.default?s+=a===i.default?1:-1:i.const&&(s+=a===i.const?1:-1),s}return t}),0):T.default(t.type)&&t.type===z(n)&&(i+=1)),i}function ce(e,r,t,n,i,o){void 0===i&&(i=-1);var a=n.reduce((function(n,i,a){return 1===G(e,t,[de,i],r,o)&&n.push(a),n}),[]);return 1===a.length?a[0]:(a.length||W.default(n.length,(function(e){return a.push(e)})),a.reduce((function(i,o){var a=i.bestScore,u=n[o];w.default(u,"$ref")&&(u=ie(e,u,r,t));var s=le(e,r,u,t);return s>a?{bestIndex:o,bestScore:s}:i}),{bestIndex:i,bestScore:0}).bestIndex)}function pe(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((function(e){return q(e)}))}function ve(e,r){if(Array.isArray(r)){var t=Array.isArray(e)?e:[];return r.map((function(e,r){return t[r]?ve(t[r],e):e}))}if(q(r)){var n=Object.assign({},e);return Object.keys(r).reduce((function(t,n){return t[n]=ve(e?S.default(e,n):{},S.default(r,n)),t}),n)}return r}function me(e,r,t){return void 0===t&&(t=!1),Object.keys(r).reduce((function(n,i){var o=e?e[i]:{},a=r[i];if(e&&i in e&&q(a))n[i]=me(o,a,t);else if(t&&Array.isArray(o)&&Array.isArray(a)){var u=a;"preventDuplicates"===t&&(u=a.reduce((function(e,r){return o.includes(r)||e.push(r),e}),[])),n[i]=o.concat(u)}else n[i]=a;return n}),Object.assign({},e))}function ye(e){return Array.isArray(e.enum)&&1===e.enum.length||"const"in e}function he(e,r,t){void 0===t&&(t={});var n=ie(e,r,t,void 0),i=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(i)&&i.every((function(e){return"boolean"!=typeof e&&ye(e)}))}function ge(e,r,t){return!(!r.uniqueItems||!r.items||"boolean"==typeof r.items)&&he(e,r.items,t)}function be(e,r,t){if(void 0===r&&(r=fe.Ignore),void 0===t&&(t=-1),t>=0){if(Array.isArray(e.items)&&t<e.items.length){var n=e.items[t];if("boolean"!=typeof n)return n}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return r!==fe.Ignore&&q(e.additionalItems)?e.additionalItems:{}}function Oe(e,r,t,n,i){void 0===i&&(i=[]),n?e[r]=t:q(t)?E.default(t)&&!i.includes(r)||(e[r]=t):void 0!==t&&(e[r]=t)}function xe(e,r,t,n,i,o,a){void 0===n&&(n={}),void 0===o&&(o=!1),void 0===a&&(a=[]);var u=q(i)?i:{},s=q(r)?r:{},f=t;if(q(f)&&q(s.default))f=me(f,s.default);else if("default"in s)f=s.default;else if("$ref"in s){var d=s.$ref;if(!a.includes(d)){var l=V(d,n);return xe(e,l,f,n,u,o,a.concat(d))}}else{if("dependencies"in s){var c=oe(e,s,n,u);return xe(e,c,f,n,u,o,a)}if(pe(s))f=s.items.map((function(r,i){return xe(e,r,Array.isArray(t)?t[i]:void 0,n,u,o,a)}));else if("oneOf"in s){if(0===s.oneOf.length)return;s=s.oneOf[ce(e,n,E.default(u)?void 0:u,s.oneOf,0)]}else if("anyOf"in s){if(0===s.anyOf.length)return;s=s.anyOf[ce(e,n,E.default(u)?void 0:u,s.anyOf,0)]}}switch(void 0===f&&(f=s.default),J(s)){case"object":var p=Object.keys(s.properties||{}).reduce((function(r,t){return Oe(r,t,xe(e,S.default(s,["properties",t]),S.default(f,[t]),n,S.default(u,[t]),!0===o,a),o,s.required),r}),{});if(s.additionalProperties){var v=q(s.additionalProperties)?s.additionalProperties:{},m=new Set;q(f)&&Object.keys(f).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),q(u)&&Object.keys(u).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),m.forEach((function(r){var t=xe(e,v,S.default(f,[r]),n,S.default(u,[r]),!0===o,a);Oe(p,r,t,o)}))}return p;case"array":if(Array.isArray(f)&&(f=f.map((function(r,t){var i=be(s,fe.Fallback,t);return xe(e,i,r,n,void 0,void 0,a)}))),Array.isArray(i)){var y=be(s);f=i.map((function(r,t){return xe(e,y,S.default(f,[t]),n,r,void 0,a)}))}if(s.minItems){if(!ge(e,s,n)){var h=Array.isArray(f)?f.length:0;if(s.minItems>h){var g=f||[],b=be(s,fe.Invert),O=b.default,x=new Array(s.minItems-h).fill(xe(e,b,O,n,void 0,void 0,a));return g.concat(x)}}return f||[]}}return f}function Ae(e,r,t,n,i){if(void 0===i&&(i=!1),!q(r))throw new Error("Invalid schema: "+r);var o=xe(e,ie(e,r,n,t),void 0,n,t,i);return null==t||"number"==typeof t&&isNaN(t)?o:q(t)||Array.isArray(t)?ve(o,t):t}function Se(e){return void 0===e&&(e={}),"widget"in Y(e)&&"hidden"!==Y(e).widget}function Ee(e,r,t,n){if(void 0===t&&(t={}),"files"===t["ui:widget"])return!0;if(r.items){var i=ie(e,r.items,n);return"string"===i.type&&"data-url"===i.format}return!1}function _e(e,r,t,n,i){void 0===t&&(t={});var o=Y(t,i).label,a=!(void 0!==o&&!o),u=J(r);return"array"===u&&(a=ge(e,r,n)||Ee(e,r,t,n)||Se(t)),"object"===u&&(a=!1),"boolean"!==u||t["ui:widget"]||(a=!1),t["ui:field"]&&(a=!1),a}function Ie(e,r,t){if(!t)return r;var n=r.errors,i=r.errorSchema,o=e.toErrorList(t),a=t;return E.default(i)||(a=me(i,t,!0),o=[].concat(n).concat(o)),{errorSchema:a,errors:o}}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(fe||(fe={}));var we=Symbol("no Value");function je(e,r,t,n,i){var o;if(void 0===i&&(i={}),w.default(t,"properties")){var a={};if(w.default(n,"properties")){var u=S.default(n,"properties",{});Object.keys(u).forEach((function(e){w.default(i,e)&&(a[e]=void 0)}))}var s=Object.keys(S.default(t,"properties",{})),f={};s.forEach((function(o){var u=S.default(i,o),s=S.default(n,["properties",o],{}),d=S.default(t,["properties",o],{});w.default(s,"$ref")&&(s=ie(e,s,r,u)),w.default(d,"$ref")&&(d=ie(e,d,r,u));var l=S.default(s,"type"),c=S.default(d,"type");if(!l||l===c)if(w.default(a,o)&&delete a[o],"object"===c||"array"===c&&Array.isArray(u)){var p=je(e,r,d,s,u);void 0===p&&"array"!==c||(f[o]=p)}else{var v=S.default(d,"default",we),m=S.default(s,"default",we);v!==we&&v!==u&&(m===u?a[o]=v:!0===S.default(d,"readOnly")&&(a[o]=void 0));var y=S.default(d,"const",we),h=S.default(s,"const",we);y!==we&&y!==u&&(a[o]=h===u?y:void 0)}})),o=$({},i,a,f)}else if("array"===S.default(n,"type")&&"array"===S.default(t,"type")&&Array.isArray(i)){var d=S.default(n,"items"),l=S.default(t,"items");if("object"!=typeof d||"object"!=typeof l||Array.isArray(d)||Array.isArray(l))"boolean"==typeof d&&"boolean"==typeof l&&d===l&&(o=i);else{w.default(d,"$ref")&&(d=ie(e,d,r,i)),w.default(l,"$ref")&&(l=ie(e,l,r,i));var c=S.default(d,"type"),p=S.default(l,"type");if(!c||c===p){var v=S.default(t,"maxItems",-1);o="object"===p?i.reduce((function(t,n){var i=je(e,r,l,d,n);return void 0!==i&&(v<0||t.length<v)&&t.push(i),t}),[]):v>0&&i.length>v?i.slice(0,v):i}}}return o}function Te(e,r,t,n,i,o,a,u){if(void 0===u&&(u=[]),"$ref"in r||"dependencies"in r||"allOf"in r){var s=ie(e,r,o,a);if(-1===u.findIndex((function(e){return U.default(e,s)})))return Te(e,s,t,n,i,o,a,u.concat(s))}if("items"in r&&!S.default(r,["items","$ref"]))return Te(e,S.default(r,"items"),t,n,i,o,a,u);var f={$id:i||t};if("object"===J(r)&&"properties"in r)for(var d in r.properties){var l=S.default(r,["properties",d]),c=f.$id+n+d;f[d]=Te(e,q(l)?l:{},t,n,c,o,S.default(a,[d]),u)}return f}function Pe(e,r,t,n,i,o,a){return void 0===o&&(o="root"),void 0===a&&(a="_"),Te(e,r,o,a,t,n,i)}function We(e,r,t,n,i,o){var a;if(void 0===o&&(o=[]),"$ref"in r||"dependencies"in r||"allOf"in r){var u=ie(e,r,n,i);if(-1===o.findIndex((function(e){return U.default(e,u)})))return We(e,u,t,n,i,o.concat(u))}var s=((a={}).$name=t.replace(/^\./,""),a);if("oneOf"in r){var f=ce(e,n,i,r.oneOf,0);return We(e,r.oneOf[f],t,n,i,o)}if("anyOf"in r){var d=ce(e,n,i,r.anyOf,0);return We(e,r.anyOf[d],t,n,i,o)}if("additionalProperties"in r&&!1!==r.additionalProperties&&D.default(s,"__rjsf_additionalProperties",!0),"items"in r&&Array.isArray(i))i.forEach((function(i,a){s[a]=We(e,r.items,t+"."+a,n,i,o)}));else if("properties"in r)for(var l in r.properties){var c=S.default(r,["properties",l]);s[l]=We(e,c,t+"."+l,n,S.default(i,[l]),o)}return s}function De(e,r,t,n,i){return void 0===t&&(t=""),We(e,r,t,n,i)}var Ne=function(){function e(e,r){this.rootSchema=void 0,this.validator=void 0,this.rootSchema=r,this.validator=e}var r=e.prototype;return r.getValidator=function(){return this.validator},r.doesSchemaUtilsDiffer=function(e,r){return!(!e||!r||this.validator===e&&K(this.rootSchema,r))},r.getDefaultFormState=function(e,r,t){return void 0===t&&(t=!1),Ae(this.validator,e,r,this.rootSchema,t)},r.getDisplayLabel=function(e,r,t){return _e(this.validator,e,r,this.rootSchema,t)},r.getClosestMatchingOption=function(e,r,t,n){return ce(this.validator,this.rootSchema,e,r,t,n)},r.getFirstMatchingOption=function(e,r,t){return G(this.validator,e,r,this.rootSchema,t)},r.getMatchingOption=function(e,r,t){return H(this.validator,e,r,this.rootSchema,t)},r.isFilesArray=function(e,r){return Ee(this.validator,e,r,this.rootSchema)},r.isMultiSelect=function(e){return ge(this.validator,e,this.rootSchema)},r.isSelect=function(e){return he(this.validator,e,this.rootSchema)},r.mergeValidationData=function(e,r){return Ie(this.validator,e,r)},r.retrieveSchema=function(e,r){return ie(this.validator,e,this.rootSchema,r)},r.sanitizeDataForNewSchema=function(e,r,t){return je(this.validator,this.rootSchema,e,r,t)},r.toIdSchema=function(e,r,t,n,i){return void 0===n&&(n="root"),void 0===i&&(i="_"),Pe(this.validator,e,r,this.rootSchema,t,n,i)},r.toPathSchema=function(e,r,t){return De(this.validator,e,r,this.rootSchema,t)},e}();function Fe(e,r){var t=e;if(Array.isArray(r)){var n=t.split(/(%\d)/);r.forEach((function(e,r){var t=n.findIndex((function(e){return e==="%"+(r+1)}));t>=0&&(n[t]=e)})),t=n.join("")}return t}function Ue(e,r,t){if(void 0===r&&(r=[]),Array.isArray(e))return e.map((function(e){return Ue(e,r)})).filter((function(e){return e}));var n=""===e||null===e?-1:Number(e),i=r[n];return i?i.value:t}function Ce(e,r){return Array.isArray(r)?r.some((function(r){return U.default(r,e)})):U.default(r,e)}var Re=function(){function e(e){this.errorSchema={},this.resetAllErrors(e)}var r,t,n=e.prototype;return n.getOrCreateErrorBlock=function(e){var r=Array.isArray(e)&&e.length>0||"string"==typeof e?S.default(this.errorSchema,e):this.errorSchema;return!r&&e&&D.default(this.errorSchema,e,r={}),r},n.resetAllErrors=function(e){return this.errorSchema=e?C.default(e):{},this},n.addErrors=function(e,r){var t,n=this.getOrCreateErrorBlock(r),i=S.default(n,"__errors");return Array.isArray(i)||(n.__errors=i=[]),Array.isArray(e)?(t=i).push.apply(t,e):i.push(e),this},n.setErrors=function(e,r){var t=this.getOrCreateErrorBlock(r),n=Array.isArray(e)?[].concat(e):[e];return D.default(t,"__errors",n),this},n.clearErrors=function(e){var r=this.getOrCreateErrorBlock(e);return D.default(r,"__errors",[]),this},r=e,(t=[{key:"ErrorSchema",get:function(){return this.errorSchema}}])&&function(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i),n)}var i}(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),e}();function ke(e){var r={};return e.multipleOf&&(r.step=e.multipleOf),(e.minimum||0===e.minimum)&&(r.min=e.minimum),(e.maximum||0===e.maximum)&&(r.max=e.maximum),r}var qe,$e={props:{disabled:!1},submitText:"Submit",norender:!1},Le=["options"],Me={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function Ye(e,r,t){void 0===t&&(t={});var n=J(e);if("function"==typeof r||r&&R.default.isForwardRef(h.createElement(r))||R.default.isMemo(r))return function(e){var r=S.default(e,"MergedWidget");if(!r){var t=e.defaultProps&&e.defaultProps.options||{};D.default(e,"MergedWidget",r=function(r){var n=r.options,i=M(r,Le);return y.jsx(e,$({options:$({},t,n)},i))})}return r}(r);if("string"!=typeof r)throw new Error("Unsupported widget definition: "+typeof r);if(r in t)return Ye(e,t[r],t);if("string"==typeof n){if(!(n in Me))throw new Error("No widget for type '"+n+"'");if(r in Me[n])return Ye(e,t[Me[n][r]],t)}throw new Error("No widget '"+r+"' for type '"+n+"'")}function Ke(e,r){return(T.default(e)?e:e.$id)+"__"+r}function Be(e){return Ke(e,"description")}function Ve(e){return Ke(e,"error")}function He(e){return Ke(e,"examples")}function Ge(e){return Ke(e,"help")}function ze(e){if("enum"in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if("const"in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function Je(e,r){for(var t=String(e);t.length<r;)t="0"+t;return t}function Qe(e,r){if(void 0===r&&(r=[]),!e)return[];var t=[];return"__errors"in e&&(t=t.concat(e.__errors.map((function(e){var t="."+r.join(".");return{property:t,message:e,stack:t+" "+e}})))),Object.keys(e).reduce((function(t,n){if("__errors"!==n){var i=e[n];x.default(i)&&(t=t.concat(Qe(i,[].concat(r,[n]))))}return t}),t)}exports.TranslatableString=void 0,(qe=exports.TranslatableString||(exports.TranslatableString={})).ArrayItemTitle="Item",qe.MissingItems="Missing items definition",qe.YesLabel="Yes",qe.NoLabel="No",qe.CloseLabel="Close",qe.ErrorsLabel="Errors",qe.NewStringDefault="New Value",qe.AddButton="Add",qe.AddItemButton="Add Item",qe.CopyButton="Copy",qe.MoveDownButton="Move down",qe.MoveUpButton="Move up",qe.RemoveButton="Remove",qe.NowLabel="Now",qe.ClearLabel="Clear",qe.AriaDateLabel="Select a date",qe.PreviewLabel="Preview",qe.DecrementAriaLabel="Decrease value by 1",qe.IncrementAriaLabel="Increase value by 1",qe.UnknownFieldType="Unknown field type %1",qe.OptionPrefix="Option %1",qe.TitleOptionPrefix="%1 option %2",qe.KeyLabel="%1 Key",qe.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',qe.UnsupportedField="Unsupported field schema.",qe.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",qe.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",qe.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",qe.FilesInfo="<strong>%1</strong> (%2, %3 bytes)",exports.ADDITIONAL_PROPERTIES_KEY="additionalProperties",exports.ADDITIONAL_PROPERTY_FLAG="__additional_property",exports.ALL_OF_KEY="allOf",exports.ANY_OF_KEY="anyOf",exports.CONST_KEY="const",exports.DEFAULT_KEY="default",exports.DEFINITIONS_KEY="definitions",exports.DEPENDENCIES_KEY="dependencies",exports.ENUM_KEY="enum",exports.ERRORS_KEY="__errors",exports.ErrorSchemaBuilder=Re,exports.ID_KEY="$id",exports.ITEMS_KEY="items",exports.NAME_KEY="$name",exports.ONE_OF_KEY="oneOf",exports.PROPERTIES_KEY="properties",exports.REF_KEY="$ref",exports.REQUIRED_KEY="required",exports.RJSF_ADDITONAL_PROPERTIES_FLAG="__rjsf_additionalProperties",exports.ROOT_SCHEMA_PREFIX="__rjsf_rootSchema",exports.SUBMIT_BTN_OPTIONS_KEY="submitButtonOptions",exports.UI_FIELD_KEY="ui:field",exports.UI_GLOBAL_OPTIONS_KEY="ui:globalOptions",exports.UI_OPTIONS_KEY="ui:options",exports.UI_WIDGET_KEY="ui:widget",exports.allowAdditionalItems=function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),q(e.additionalItems)},exports.ariaDescribedByIds=function(e,r){void 0===r&&(r=!1);var t=r?" "+He(e):"";return Ve(e)+" "+Be(e)+" "+Ge(e)+t},exports.asNumber=function(e){if(""!==e){if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;var r=Number(e);return"number"!=typeof r||Number.isNaN(r)?e:r}},exports.canExpand=function(e,r,t){if(void 0===r&&(r={}),!e.additionalProperties)return!1;var n=Y(r).expandable,i=void 0===n||n;return!1===i?i:void 0===e.maxProperties||!t||Object.keys(t).length<e.maxProperties},exports.createErrorHandler=function e(r){var t,n=((t={}).__errors=[],t.addError=function(e){this.__errors.push(e)},t);if(Array.isArray(r))return r.reduce((function(r,t,n){var i;return $({},r,((i={})[n]=e(t),i))}),n);if(x.default(r)){var i=r;return Object.keys(i).reduce((function(r,t){var n;return $({},r,((n={})[t]=e(i[t]),n))}),n)}return n},exports.createSchemaUtils=function(e,r){return new Ne(e,r)},exports.dataURItoBlob=function(e){var r,t=e.split(","),n=t[0].split(";"),i=n[0].replace("data:",""),o=n.filter((function(e){return"name"===e.split("=")[0]}));r=1!==o.length?"unknown":decodeURI(o[0].split("=")[1]);try{for(var a=atob(t[1]),u=[],s=0;s<a.length;s++)u.push(a.charCodeAt(s));return{blob:new window.Blob([new Uint8Array(u)],{type:i}),name:r}}catch(r){return{blob:{size:0,type:r.message},name:e}}},exports.deepEquals=K,exports.descriptionId=Be,exports.englishStringTranslator=function(e,r){return Fe(e,r)},exports.enumOptionsDeselectValue=function(e,r,t){void 0===t&&(t=[]);var n=Ue(e,t);return Array.isArray(r)?r.filter((function(e){return!U.default(e,n)})):U.default(n,r)?void 0:r},exports.enumOptionsIndexForValue=function(e,r,t){void 0===r&&(r=[]),void 0===t&&(t=!1);var n=r.map((function(r,t){return Ce(r.value,e)?String(t):void 0})).filter((function(e){return void 0!==e}));return t?n:n[0]},exports.enumOptionsIsSelected=Ce,exports.enumOptionsSelectValue=function(e,r,t){void 0===t&&(t=[]);var n=Ue(e,t);if(n){var i=t.findIndex((function(e){return n===e.value})),o=t.map((function(e){return e.value}));return r.slice(0,i).concat(n,r.slice(i)).sort((function(e,r){return Number(o.indexOf(e)>o.indexOf(r))}))}return r},exports.enumOptionsValueForIndex=Ue,exports.errorId=Ve,exports.examplesId=He,exports.findSchemaDefinition=V,exports.getClosestMatchingOption=ce,exports.getDefaultFormState=Ae,exports.getDisplayLabel=_e,exports.getFirstMatchingOption=G,exports.getInputProps=function(e,r,t,n){void 0===t&&(t={}),void 0===n&&(n=!0);var i=$({type:r||"text"},ke(e));return t.inputType?i.type=t.inputType:r||("number"===e.type?(i.type="number",n&&void 0===i.step&&(i.step="any")):"integer"===e.type&&(i.type="number",void 0===i.step&&(i.step=1))),t.autocomplete&&(i.autoComplete=t.autocomplete),i},exports.getMatchingOption=H,exports.getSchemaType=J,exports.getSubmitButtonOptions=function(e){void 0===e&&(e={});var r=Y(e);return r&&r.submitButtonOptions?$({},$e,r.submitButtonOptions):$e},exports.getTemplate=function(e,r,t){void 0===t&&(t={});var n=r.templates;return"ButtonTemplates"===e?n[e]:t[e]||n[e]},exports.getUiOptions=Y,exports.getWidget=Ye,exports.guessType=z,exports.hasWidget=function(e,r,t){void 0===t&&(t={});try{return Ye(e,r,t),!0}catch(e){var n=e;if(n.message&&(n.message.startsWith("No widget")||n.message.startsWith("Unsupported widget")))return!1;throw e}},exports.helpId=Ge,exports.isConstant=ye,exports.isCustomWidget=Se,exports.isFilesArray=Ee,exports.isFixedItems=pe,exports.isMultiSelect=ge,exports.isObject=q,exports.isSelect=he,exports.labelValue=function(e,r,t){return r?t:e},exports.localToUTC=function(e){return e?new Date(e).toJSON():void 0},exports.mergeDefaultsWithFormData=ve,exports.mergeObjects=me,exports.mergeSchemas=Q,exports.mergeValidationData=Ie,exports.optionId=function(e,r){return e+"-"+r},exports.optionsList=function(e){var r=e;if(e.enum)return e.enum.map((function(e,t){return{label:r.enumNames&&r.enumNames[t]||String(e),value:e}}));var t=e.oneOf||e.anyOf;return t&&t.map((function(e){var r=e,t=ze(r);return{schema:r,label:r.title||String(t),value:t}}))},exports.orderProperties=function(e,r){if(!Array.isArray(r))return e;var t,n=function(e){return e.reduce((function(e,r){return e[r]=!0,e}),{})},i=n(e),o=r.filter((function(e){return"*"===e||i[e]})),a=n(o),u=e.filter((function(e){return!a[e]})),s=o.indexOf("*");if(-1===s){if(u.length)throw new Error("uiSchema order list does not contain "+((t=u).length>1?"properties '"+t.join("', '")+"'":"property '"+t[0]+"'"));return o}if(s!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var f=[].concat(o);return f.splice.apply(f,[s,1].concat(u)),f},exports.pad=Je,exports.parseDateString=function(e,r){if(void 0===r&&(r=!0),!e)return{year:-1,month:-1,day:-1,hour:r?-1:0,minute:r?-1:0,second:r?-1:0};var t=new Date(e);if(Number.isNaN(t.getTime()))throw new Error("Unable to parse date "+e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:r?t.getUTCHours():0,minute:r?t.getUTCMinutes():0,second:r?t.getUTCSeconds():0}},exports.rangeSpec=ke,exports.replaceStringParameters=Fe,exports.retrieveSchema=ie,exports.sanitizeDataForNewSchema=je,exports.schemaRequiresTrueValue=function e(r){return!!r.const||!(!r.enum||1!==r.enum.length||!0!==r.enum[0])||(r.anyOf&&1===r.anyOf.length?e(r.anyOf[0]):r.oneOf&&1===r.oneOf.length?e(r.oneOf[0]):!!r.allOf&&r.allOf.some((function(r){return e(r)})))},exports.shouldRender=function(e,r,t){var n=e.state;return!K(e.props,r)||!K(n,t)},exports.titleId=function(e){return Ke(e,"title")},exports.toConstant=ze,exports.toDateString=function(e,r){void 0===r&&(r=!0);var t=e.hour,n=e.minute,i=e.second,o=Date.UTC(e.year,e.month-1,e.day,void 0===t?0:t,void 0===n?0:n,void 0===i?0:i),a=new Date(o).toJSON();return r?a:a.slice(0,10)},exports.toErrorList=Qe,exports.toErrorSchema=function(e){var r=new Re;return e.length&&e.forEach((function(e){var t=e.property,n=e.message,i="."===t?[]:k.default(t);i.length>0&&""===i[0]&&i.splice(0,1),n&&r.addErrors(n,i)})),r.ErrorSchema},exports.toIdSchema=Pe,exports.toPathSchema=De,exports.unwrapErrorHandler=function e(r){return Object.keys(r).reduce((function(t,n){if("addError"===n)return t;var i,o,a=r[n];return x.default(a)?$({},t,((o={})[n]=e(a),o)):$({},t,((i={})[n]=a,i))}),{})},exports.utcToLocal=function(e){if(!e)return"";var r=new Date(e);return Je(r.getFullYear(),4)+"-"+Je(r.getMonth()+1,2)+"-"+Je(r.getDate(),2)+"T"+Je(r.getHours(),2)+":"+Je(r.getMinutes(),2)+":"+Je(r.getSeconds(),2)+"."+Je(r.getMilliseconds(),3)},exports.validationDataMerge=function(e,r){if(!r)return e;var t=e.errors,n=e.errorSchema,i=Qe(r),o=r;return E.default(n)||(o=me(n,r,!0),i=[].concat(t).concat(i)),{errorSchema:o,errors:i}},exports.withIdRefPrefix=function e(r){return r.constructor===Object?function(r){for(var t in r){var n=r[t];r[t]="$ref"===t&&"string"==typeof n&&n.startsWith("#")?"__rjsf_rootSchema"+n:e(n)}return r}($({},r)):Array.isArray(r)?function(r){for(var t=0;t<r.length;t++)r[t]=e(r[t]);return r}([].concat(r)):r}; | ||
//# sourceMappingURL=utils.cjs.production.min.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("lodash-es/isEqualWith"),require("lodash-es/get"),require("lodash-es/isEmpty"),require("jsonpointer"),require("lodash-es/omit"),require("lodash-es/has"),require("lodash-es/isObject"),require("lodash-es/isString"),require("lodash-es/reduce"),require("lodash-es/times"),require("lodash-es/set"),require("json-schema-merge-allof"),require("lodash-es/union"),require("lodash-es/isEqual"),require("lodash-es/cloneDeep"),require("react/jsx-runtime"),require("react"),require("react-is")):"function"==typeof define&&define.amd?define(["exports","lodash-es/isEqualWith","lodash-es/get","lodash-es/isEmpty","jsonpointer","lodash-es/omit","lodash-es/has","lodash-es/isObject","lodash-es/isString","lodash-es/reduce","lodash-es/times","lodash-es/set","json-schema-merge-allof","lodash-es/union","lodash-es/isEqual","lodash-es/cloneDeep","react/jsx-runtime","react","react-is"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@rjsf/utils"]={},e.isEqualWith,e.get,e.isEmpty,e.jsonpointer,e.omit,e.has,e.isObject$1,e.isString,e.reduce,e.times,e.set,e.mergeAllOf,e.union,e.isEqual,e.cloneDeep,e.jsxRuntime,e.React,e.ReactIs)}(this,(function(e,t,r,n,i,o,a,u,s,d,f,l,c,p,v,m,y,h,g){"use strict";function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var O=b(t),A=b(r),S=b(n),E=b(i),I=b(o),w=b(a),j=b(u),T=b(s),_=b(d),W=b(f),D=b(l),x=b(c),P=b(p),N=b(v),F=b(m),U=b(g);function R(e){return!("undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Date&&e instanceof Date||"object"!=typeof e||null===e||Array.isArray(e))}function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},q.apply(this,arguments)}function C(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function k(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}var L="__additional_property",M="additionalProperties",Y="allOf",K="anyOf",B="const",$="default",V="dependencies",H="enum",G="__errors",z="items",J="oneOf",Q="properties",X="required",Z="$ref",ee="__rjsf_additionalProperties",te="ui:widget",re="ui:options";function ne(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(e).filter((function(e){return 0===e.indexOf("ui:")})).reduce((function(t,r){var n,i=e[r];return r===te&&R(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),t):r===re&&R(i)?q({},t,i):q({},t,((n={})[r.substring(3)]=i,n))}),q({},t))}function ie(e,t){return O.default(e,t,(function(e,t){if("function"==typeof e&&"function"==typeof t)return!0}))}function oe(e,t){var r=t[e];return[I.default(t,[e]),r]}function ae(e,t){void 0===t&&(t={});var r=e||"";if(!r.startsWith("#"))throw new Error("Could not find a definition for "+e+".");r=decodeURIComponent(r.substring(1));var n=E.default.get(t,r);if(void 0===n)throw new Error("Could not find a definition for "+e+".");if(n.$ref){var i=oe(Z,n),o=i[0],a=ae(i[1],t);return Object.keys(o).length>0?q({},o,a):a}return n}function ue(e,t,r,n){if(void 0===t)return 0;for(var i=0;i<r.length;i++){var o=r[i];if(o.properties){var a={anyOf:Object.keys(o.properties).map((function(e){return{required:[e]}}))},u=void 0;if(o.anyOf){var s=q({},(C(o),o));s.allOf=s.allOf?s.allOf.slice():[],s.allOf.push(a),u=s}else u=Object.assign({},o,a);if(delete u.required,e.isValid(u,t,n))return i}else if(e.isValid(o,t,n))return i}return 0}function se(e,t,r,n){return ue(e,t,r,n)}function de(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}function fe(e){var t=e.type;return!t&&e.const?de(e.const):!t&&e.enum?"string":t||!e.properties&&!e.additionalProperties?(Array.isArray(t)&&2===t.length&&t.includes("null")&&(t=t.find((function(e){return"null"!==e}))),t):"object"}function le(e,t){var r=Object.assign({},e);return Object.keys(t).reduce((function(r,n){var i=e?e[n]:{},o=t[n];return r[n]=e&&n in e&&R(o)?le(i,o):e&&t&&("object"===fe(e)||"object"===fe(t))&&n===X&&Array.isArray(i)&&Array.isArray(o)?P.default(i,o):o,r}),r)}var ce=["if","then","else"],pe=["$ref"],ve=["allOf"],me=["dependencies"],ye=["oneOf"];function he(e,t,r,n){return ge(e,q({},ae(t.$ref,r),k(t,pe)),r,n)}function ge(e,t,r,n){if(void 0===r&&(r={}),!R(t))return{};var i=function(e,t,r,n){if(void 0===r&&(r={}),Z in t)return he(e,t,r,n);if(V in t){var i=be(e,t,r,n);return ge(e,i,r,n)}return Y in t?q({},t,{allOf:t.allOf.map((function(t){return ge(e,t,r,n)}))}):t}(e,t,r,n);if("if"in t)return function(e,t,r,n){var i=t.if,o=t.then,a=t.else,u=k(t,ce),s=e.isValid(i,n,r)?o:a;return ge(e,s&&"boolean"!=typeof s?le(u,ge(e,s,r,n)):u,r,n)}(e,t,r,n);var o=n||{};if(Y in t)try{i=x.default(i,{deep:!1})}catch(e){return console.warn("could not merge subschemas in allOf:\n",e),k(i,ve)}return M in i&&!1!==i.additionalProperties?function(e,t,r,n){var i=q({},t,{properties:q({},t.properties)}),o=n&&R(n)?n:{};return Object.keys(o).forEach((function(t){var n;t in i.properties||(n="boolean"!=typeof i.additionalProperties?Z in i.additionalProperties?ge(e,{$ref:A.default(i.additionalProperties,[Z])},r,o):"type"in i.additionalProperties?q({},i.additionalProperties):K in i.additionalProperties||J in i.additionalProperties?q({type:"object"},i.additionalProperties):{type:de(A.default(o,[t]))}:{type:de(A.default(o,[t]))},i.properties[t]=n,D.default(i.properties,[t,L],!0))})),i}(e,i,r,o):i}function be(e,t,r,n){var i=t.dependencies,o=k(t,me);return Array.isArray(o.oneOf)?o=o.oneOf[se(e,n,o.oneOf,r)]:Array.isArray(o.anyOf)&&(o=o.anyOf[se(e,n,o.anyOf,r)]),Oe(e,i,o,r,n)}function Oe(e,t,r,n,i){var o=r;for(var a in t)if(void 0!==A.default(i,[a])&&(!o.properties||a in o.properties)){var u=oe(a,t),s=u[0],d=u[1];return Array.isArray(d)?o=Ae(o,d):R(d)&&(o=Se(e,o,n,a,d,i)),Oe(e,s,o,n,i)}return o}function Ae(e,t){return t?q({},e,{required:Array.isArray(e.required)?Array.from(new Set([].concat(e.required,t))):t}):e}function Se(e,t,r,n,i,o){var a=ge(e,i,r,o),u=a.oneOf;if(t=le(t,k(a,ye)),void 0===u)return t;var s=u.map((function(t){return"boolean"!=typeof t&&Z in t?he(e,t,r,o):t}));return function(e,t,r,n,i,o){var a=i.filter((function(t){if("boolean"==typeof t||!t||!t.properties)return!1;var i=t.properties[n];if(i){var a,u={type:"object",properties:(a={},a[n]=i,a)};return e.isValid(u,o,r)}return!1}));if(1!==a.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),t;var u=a[0],s=q({},u,{properties:oe(n,u.properties)[0]});return le(t,ge(e,s,r,o))}(e,t,r,n,s,o)}var Ee,Ie={type:"object",properties:{__not_really_there__:{type:"number"}}};function we(e,t,r,n){void 0===n&&(n={});var i=0;return r&&(j.default(r.properties)?i+=_.default(r.properties,(function(r,i,o){var a=A.default(n,o);if("boolean"==typeof i)return r;if(w.default(i,Z)){var u=ge(e,i,t,a);return r+we(e,t,u,a||{})}if(w.default(i,J)&&a)return r+je(e,t,a,A.default(i,J));if("object"===i.type)return r+we(e,t,i,a||{});if(i.type===de(a)){var s=r+1;return i.default?s+=a===i.default?1:-1:i.const&&(s+=a===i.const?1:-1),s}return r}),0):T.default(r.type)&&r.type===de(n)&&(i+=1)),i}function je(e,t,r,n,i){void 0===i&&(i=-1);var o=n.reduce((function(n,i,o){return 1===se(e,r,[Ie,i],t)&&n.push(o),n}),[]);return 1===o.length?o[0]:(o.length||W.default(n.length,(function(e){return o.push(e)})),o.reduce((function(i,o){var a=i.bestScore,u=n[o];w.default(u,Z)&&(u=ge(e,u,t,r));var s=we(e,t,u,r);return s>a?{bestIndex:o,bestScore:s}:i}),{bestIndex:i,bestScore:0}).bestIndex)}function Te(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((function(e){return R(e)}))}function _e(e,t){if(Array.isArray(t)){var r=Array.isArray(e)?e:[];return t.map((function(e,t){return r[t]?_e(r[t],e):e}))}if(R(t)){var n=Object.assign({},e);return Object.keys(t).reduce((function(r,n){return r[n]=_e(e?A.default(e,n):{},A.default(t,n)),r}),n)}return t}function We(e,t,r){return void 0===r&&(r=!1),Object.keys(t).reduce((function(n,i){var o=e?e[i]:{},a=t[i];if(e&&i in e&&R(a))n[i]=We(o,a,r);else if(r&&Array.isArray(o)&&Array.isArray(a)){var u=a;"preventDuplicates"===r&&(u=a.reduce((function(e,t){return o.includes(t)||e.push(t),e}),[])),n[i]=o.concat(u)}else n[i]=a;return n}),Object.assign({},e))}function De(e){return Array.isArray(e.enum)&&1===e.enum.length||B in e}function xe(e,t,r){void 0===r&&(r={});var n=ge(e,t,r,void 0),i=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(i)&&i.every((function(e){return"boolean"!=typeof e&&De(e)}))}function Pe(e,t,r){return!(!t.uniqueItems||!t.items||"boolean"==typeof t.items)&&xe(e,t.items,r)}function Ne(e,t,r){if(void 0===t&&(t=Ee.Ignore),void 0===r&&(r=-1),r>=0){if(Array.isArray(e.items)&&r<e.items.length){var n=e.items[r];if("boolean"!=typeof n)return n}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return t!==Ee.Ignore&&R(e.additionalItems)?e.additionalItems:{}}function Fe(e,t,r,n,i){void 0===i&&(i=[]),n?e[t]=r:R(r)?S.default(r)&&!i.includes(t)||(e[t]=r):void 0!==r&&(e[t]=r)}function Ue(e,t,r,n,i,o,a){void 0===n&&(n={}),void 0===o&&(o=!1),void 0===a&&(a=[]);var u=R(i)?i:{},s=R(t)?t:{},d=r;if(R(d)&&R(s.default))d=We(d,s.default);else if($ in s)d=s.default;else if(Z in s){var f=s.$ref;if(!a.includes(f)){var l=ae(f,n);return Ue(e,l,d,n,u,o,a.concat(f))}}else{if(V in s){var c=be(e,s,n,u);return Ue(e,c,d,n,u,o,a)}if(Te(s))d=s.items.map((function(t,i){return Ue(e,t,Array.isArray(r)?r[i]:void 0,n,u,o,a)}));else if(J in s){if(0===s.oneOf.length)return;s=s.oneOf[je(e,n,S.default(u)?void 0:u,s.oneOf,0)]}else if(K in s){if(0===s.anyOf.length)return;s=s.anyOf[je(e,n,S.default(u)?void 0:u,s.anyOf,0)]}}switch(void 0===d&&(d=s.default),fe(s)){case"object":var p=Object.keys(s.properties||{}).reduce((function(t,r){return Fe(t,r,Ue(e,A.default(s,[Q,r]),A.default(d,[r]),n,A.default(u,[r]),!0===o,a),o,s.required),t}),{});if(s.additionalProperties){var v=R(s.additionalProperties)?s.additionalProperties:{},m=new Set;R(d)&&Object.keys(d).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),R(u)&&Object.keys(u).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),m.forEach((function(t){var r=Ue(e,v,A.default(d,[t]),n,A.default(u,[t]),!0===o,a);Fe(p,t,r,o)}))}return p;case"array":if(Array.isArray(d)&&(d=d.map((function(t,r){var i=Ne(s,Ee.Fallback,r);return Ue(e,i,t,n,void 0,void 0,a)}))),Array.isArray(i)){var y=Ne(s);d=i.map((function(t,r){return Ue(e,y,A.default(d,[r]),n,t,void 0,a)}))}if(s.minItems){if(!Pe(e,s,n)){var h=Array.isArray(d)?d.length:0;if(s.minItems>h){var g=d||[],b=Ne(s,Ee.Invert),O=b.default,E=new Array(s.minItems-h).fill(Ue(e,b,O,n,void 0,void 0,a));return g.concat(E)}}return d||[]}}return d}function Re(e,t,r,n,i){if(void 0===i&&(i=!1),!R(t))throw new Error("Invalid schema: "+t);var o=Ue(e,ge(e,t,n,r),void 0,n,r,i);return null==r||"number"==typeof r&&isNaN(r)?o:R(r)||Array.isArray(r)?_e(o,r):r}function qe(e){return void 0===e&&(e={}),"widget"in ne(e)&&"hidden"!==ne(e).widget}function Ce(e,t,r,n){if(void 0===r&&(r={}),"files"===r["ui:widget"])return!0;if(t.items){var i=ge(e,t.items,n);return"string"===i.type&&"data-url"===i.format}return!1}function ke(e,t,r,n,i){void 0===r&&(r={});var o=ne(r,i).label,a=!(void 0!==o&&!o),u=fe(t);return"array"===u&&(a=Pe(e,t,n)||Ce(e,t,r,n)||qe(r)),"object"===u&&(a=!1),"boolean"!==u||r["ui:widget"]||(a=!1),r["ui:field"]&&(a=!1),a}function Le(e,t,r){if(!r)return t;var n=t.errors,i=t.errorSchema,o=e.toErrorList(r),a=r;return S.default(i)||(a=We(i,r,!0),o=[].concat(n).concat(o)),{errorSchema:a,errors:o}}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(Ee||(Ee={}));var Me=Symbol("no Value");function Ye(e,t,r,n,i){var o;if(void 0===i&&(i={}),w.default(r,Q)){var a={};if(w.default(n,Q)){var u=A.default(n,Q,{});Object.keys(u).forEach((function(e){w.default(i,e)&&(a[e]=void 0)}))}var s=Object.keys(A.default(r,Q,{})),d={};s.forEach((function(o){var u=A.default(i,o),s=A.default(n,[Q,o],{}),f=A.default(r,[Q,o],{});w.default(s,Z)&&(s=ge(e,s,t,u)),w.default(f,Z)&&(f=ge(e,f,t,u));var l=A.default(s,"type"),c=A.default(f,"type");if(!l||l===c)if(w.default(a,o)&&delete a[o],"object"===c||"array"===c&&Array.isArray(u)){var p=Ye(e,t,f,s,u);void 0===p&&"array"!==c||(d[o]=p)}else{var v=A.default(f,"default",Me),m=A.default(s,"default",Me);v!==Me&&v!==u&&(m===u?a[o]=v:!0===A.default(f,"readOnly")&&(a[o]=void 0));var y=A.default(f,"const",Me),h=A.default(s,"const",Me);y!==Me&&y!==u&&(a[o]=h===u?y:void 0)}})),o=q({},i,a,d)}else if("array"===A.default(n,"type")&&"array"===A.default(r,"type")&&Array.isArray(i)){var f=A.default(n,"items"),l=A.default(r,"items");if("object"!=typeof f||"object"!=typeof l||Array.isArray(f)||Array.isArray(l))"boolean"==typeof f&&"boolean"==typeof l&&f===l&&(o=i);else{w.default(f,Z)&&(f=ge(e,f,t,i)),w.default(l,Z)&&(l=ge(e,l,t,i));var c=A.default(f,"type"),p=A.default(l,"type");if(!c||c===p){var v=A.default(r,"maxItems",-1);o="object"===p?i.reduce((function(r,n){var i=Ye(e,t,l,f,n);return void 0!==i&&(v<0||r.length<v)&&r.push(i),r}),[]):v>0&&i.length>v?i.slice(0,v):i}}}return o}function Ke(e,t,r,n,i,o,a,u){if(void 0===u&&(u=[]),Z in t||V in t||Y in t){var s=ge(e,t,o,a);if(-1===u.findIndex((function(e){return N.default(e,s)})))return Ke(e,s,r,n,i,o,a,u.concat(s))}if(z in t&&!A.default(t,[z,Z]))return Ke(e,A.default(t,z),r,n,i,o,a,u);var d={$id:i||r};if("object"===t.type&&Q in t)for(var f in t.properties){var l=A.default(t,[Q,f]),c=d.$id+n+f;d[f]=Ke(e,R(l)?l:{},r,n,c,o,A.default(a,[f]),u)}return d}function Be(e,t,r,n,i,o,a){return void 0===o&&(o="root"),void 0===a&&(a="_"),Ke(e,t,o,a,r,n,i)}function $e(e,t,r,n,i,o){var a;if(void 0===o&&(o=[]),Z in t||V in t||Y in t){var u=ge(e,t,n,i);if(-1===o.findIndex((function(e){return N.default(e,u)})))return $e(e,u,r,n,i,o.concat(u))}var s=((a={}).$name=r.replace(/^\./,""),a);if(J in t){var d=je(e,n,i,t.oneOf,0);return $e(e,t.oneOf[d],r,n,i,o)}if(K in t){var f=je(e,n,i,t.anyOf,0);return $e(e,t.anyOf[f],r,n,i,o)}if(M in t&&!1!==t.additionalProperties&&D.default(s,ee,!0),z in t&&Array.isArray(i))i.forEach((function(i,a){s[a]=$e(e,t.items,r+"."+a,n,i,o)}));else if(Q in t)for(var l in t.properties){var c=A.default(t,[Q,l]);s[l]=$e(e,c,r+"."+l,n,A.default(i,[l]),o)}return s}function Ve(e,t,r,n,i){return void 0===r&&(r=""),$e(e,t,r,n,i)}var He=function(){function e(e,t){this.rootSchema=void 0,this.validator=void 0,this.rootSchema=t,this.validator=e}var t=e.prototype;return t.getValidator=function(){return this.validator},t.doesSchemaUtilsDiffer=function(e,t){return!(!e||!t||this.validator===e&&ie(this.rootSchema,t))},t.getDefaultFormState=function(e,t,r){return void 0===r&&(r=!1),Re(this.validator,e,t,this.rootSchema,r)},t.getDisplayLabel=function(e,t,r){return ke(this.validator,e,t,this.rootSchema,r)},t.getClosestMatchingOption=function(e,t,r){return je(this.validator,this.rootSchema,e,t,r)},t.getFirstMatchingOption=function(e,t){return se(this.validator,e,t,this.rootSchema)},t.getMatchingOption=function(e,t){return ue(this.validator,e,t,this.rootSchema)},t.isFilesArray=function(e,t){return Ce(this.validator,e,t,this.rootSchema)},t.isMultiSelect=function(e){return Pe(this.validator,e,this.rootSchema)},t.isSelect=function(e){return xe(this.validator,e,this.rootSchema)},t.mergeValidationData=function(e,t){return Le(this.validator,e,t)},t.retrieveSchema=function(e,t){return ge(this.validator,e,this.rootSchema,t)},t.sanitizeDataForNewSchema=function(e,t,r){return Ye(this.validator,this.rootSchema,e,t,r)},t.toIdSchema=function(e,t,r,n,i){return void 0===n&&(n="root"),void 0===i&&(i="_"),Be(this.validator,e,t,this.rootSchema,r,n,i)},t.toPathSchema=function(e,t,r){return Ve(this.validator,e,t,this.rootSchema,r)},e}();function Ge(e,t){var r=e;if(Array.isArray(t)){var n=r.split(/(%\d)/);t.forEach((function(e,t){var r=n.findIndex((function(e){return e==="%"+(t+1)}));r>=0&&(n[r]=e)})),r=n.join("")}return r}function ze(e,t,r){if(void 0===t&&(t=[]),Array.isArray(e))return e.map((function(e){return ze(e,t)})).filter((function(e){return e}));var n=""===e||null===e?-1:Number(e),i=t[n];return i?i.value:r}function Je(e,t){return Array.isArray(t)?t.some((function(t){return N.default(t,e)})):N.default(t,e)}var Qe=function(){function e(e){this.errorSchema={},this.resetAllErrors(e)}var t,r,n=e.prototype;return n.getOrCreateErrorBlock=function(e){var t=Array.isArray(e)&&e.length>0||"string"==typeof e?A.default(this.errorSchema,e):this.errorSchema;return!t&&e&&D.default(this.errorSchema,e,t={}),t},n.resetAllErrors=function(e){return this.errorSchema=e?F.default(e):{},this},n.addErrors=function(e,t){var r,n=this.getOrCreateErrorBlock(t),i=A.default(n,G);return Array.isArray(i)||(n.__errors=i=[]),Array.isArray(e)?(r=i).push.apply(r,e):i.push(e),this},n.setErrors=function(e,t){var r=this.getOrCreateErrorBlock(t),n=Array.isArray(e)?[].concat(e):[e];return D.default(r,G,n),this},n.clearErrors=function(e){var t=this.getOrCreateErrorBlock(e);return D.default(t,G,[]),this},t=e,(r=[{key:"ErrorSchema",get:function(){return this.errorSchema}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i),n)}var i}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Xe(e){var t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||0===e.minimum)&&(t.min=e.minimum),(e.maximum||0===e.maximum)&&(t.max=e.maximum),t}var Ze,et={props:{disabled:!1},submitText:"Submit",norender:!1},tt=["options"],rt={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function nt(e,t,r){void 0===r&&(r={});var n=fe(e);if("function"==typeof t||t&&U.default.isForwardRef(h.createElement(t))||U.default.isMemo(t))return function(e){var t=A.default(e,"MergedWidget");if(!t){var r=e.defaultProps&&e.defaultProps.options||{};D.default(e,"MergedWidget",t=function(t){var n=t.options,i=k(t,tt);return y.jsx(e,q({options:q({},r,n)},i))})}return t}(t);if("string"!=typeof t)throw new Error("Unsupported widget definition: "+typeof t);if(t in r)return nt(e,r[t],r);if("string"==typeof n){if(!(n in rt))throw new Error("No widget for type '"+n+"'");if(t in rt[n])return nt(e,r[rt[n][t]],r)}throw new Error("No widget '"+t+"' for type '"+n+"'")}function it(e,t){return(T.default(e)?e:e.$id)+"__"+t}function ot(e){return it(e,"description")}function at(e){return it(e,"error")}function ut(e){return it(e,"examples")}function st(e){return it(e,"help")}function dt(e){if(H in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(B in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function ft(e,t){for(var r=String(e);r.length<t;)r="0"+r;return r}e.TranslatableString=void 0,(Ze=e.TranslatableString||(e.TranslatableString={})).ArrayItemTitle="Item",Ze.MissingItems="Missing items definition",Ze.YesLabel="Yes",Ze.NoLabel="No",Ze.CloseLabel="Close",Ze.ErrorsLabel="Errors",Ze.NewStringDefault="New Value",Ze.AddButton="Add",Ze.AddItemButton="Add Item",Ze.CopyButton="Copy",Ze.MoveDownButton="Move down",Ze.MoveUpButton="Move up",Ze.RemoveButton="Remove",Ze.NowLabel="Now",Ze.ClearLabel="Clear",Ze.AriaDateLabel="Select a date",Ze.PreviewLabel="Preview",Ze.DecrementAriaLabel="Decrease value by 1",Ze.IncrementAriaLabel="Increase value by 1",Ze.UnknownFieldType="Unknown field type %1",Ze.OptionPrefix="Option %1",Ze.TitleOptionPrefix="%1 option %2",Ze.KeyLabel="%1 Key",Ze.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',Ze.UnsupportedField="Unsupported field schema.",Ze.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",Ze.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",Ze.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",Ze.FilesInfo="<strong>%1</strong> (%2, %3 bytes)",e.ADDITIONAL_PROPERTIES_KEY=M,e.ADDITIONAL_PROPERTY_FLAG=L,e.ALL_OF_KEY=Y,e.ANY_OF_KEY=K,e.CONST_KEY=B,e.DEFAULT_KEY=$,e.DEFINITIONS_KEY="definitions",e.DEPENDENCIES_KEY=V,e.ENUM_KEY=H,e.ERRORS_KEY=G,e.ErrorSchemaBuilder=Qe,e.ID_KEY="$id",e.ITEMS_KEY=z,e.NAME_KEY="$name",e.ONE_OF_KEY=J,e.PROPERTIES_KEY=Q,e.REF_KEY=Z,e.REQUIRED_KEY=X,e.RJSF_ADDITONAL_PROPERTIES_FLAG=ee,e.SUBMIT_BTN_OPTIONS_KEY="submitButtonOptions",e.UI_FIELD_KEY="ui:field",e.UI_GLOBAL_OPTIONS_KEY="ui:globalOptions",e.UI_OPTIONS_KEY=re,e.UI_WIDGET_KEY=te,e.allowAdditionalItems=function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),R(e.additionalItems)},e.ariaDescribedByIds=function(e,t){void 0===t&&(t=!1);var r=t?" "+ut(e):"";return at(e)+" "+ot(e)+" "+st(e)+r},e.asNumber=function(e){if(""!==e){if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;var t=Number(e);return"number"!=typeof t||Number.isNaN(t)?e:t}},e.canExpand=function(e,t,r){if(void 0===t&&(t={}),!e.additionalProperties)return!1;var n=ne(t).expandable,i=void 0===n||n;return!1===i?i:void 0===e.maxProperties||!r||Object.keys(r).length<e.maxProperties},e.createSchemaUtils=function(e,t){return new He(e,t)},e.dataURItoBlob=function(e){var t,r=e.split(","),n=r[0].split(";"),i=n[0].replace("data:",""),o=n.filter((function(e){return"name"===e.split("=")[0]}));t=1!==o.length?"unknown":decodeURI(o[0].split("=")[1]);try{for(var a=atob(r[1]),u=[],s=0;s<a.length;s++)u.push(a.charCodeAt(s));return{blob:new window.Blob([new Uint8Array(u)],{type:i}),name:t}}catch(t){return{blob:{size:0,type:t.message},name:e}}},e.deepEquals=ie,e.descriptionId=ot,e.englishStringTranslator=function(e,t){return Ge(e,t)},e.enumOptionsDeselectValue=function(e,t,r){void 0===r&&(r=[]);var n=ze(e,r);return Array.isArray(t)?t.filter((function(e){return!N.default(e,n)})):N.default(n,t)?void 0:t},e.enumOptionsIndexForValue=function(e,t,r){void 0===t&&(t=[]),void 0===r&&(r=!1);var n=t.map((function(t,r){return Je(t.value,e)?String(r):void 0})).filter((function(e){return void 0!==e}));return r?n:n[0]},e.enumOptionsIsSelected=Je,e.enumOptionsSelectValue=function(e,t,r){void 0===r&&(r=[]);var n=ze(e,r);if(n){var i=r.findIndex((function(e){return n===e.value})),o=r.map((function(e){return e.value}));return t.slice(0,i).concat(n,t.slice(i)).sort((function(e,t){return Number(o.indexOf(e)>o.indexOf(t))}))}return t},e.enumOptionsValueForIndex=ze,e.errorId=at,e.examplesId=ut,e.findSchemaDefinition=ae,e.getClosestMatchingOption=je,e.getDefaultFormState=Re,e.getDisplayLabel=ke,e.getFirstMatchingOption=se,e.getInputProps=function(e,t,r,n){void 0===r&&(r={}),void 0===n&&(n=!0);var i=q({type:t||"text"},Xe(e));return r.inputType?i.type=r.inputType:t||("number"===e.type?(i.type="number",n&&void 0===i.step&&(i.step="any")):"integer"===e.type&&(i.type="number",void 0===i.step&&(i.step=1))),r.autocomplete&&(i.autoComplete=r.autocomplete),i},e.getMatchingOption=ue,e.getSchemaType=fe,e.getSubmitButtonOptions=function(e){void 0===e&&(e={});var t=ne(e);return t&&t.submitButtonOptions?q({},et,t.submitButtonOptions):et},e.getTemplate=function(e,t,r){void 0===r&&(r={});var n=t.templates;return"ButtonTemplates"===e?n[e]:r[e]||n[e]},e.getUiOptions=ne,e.getWidget=nt,e.guessType=de,e.hasWidget=function(e,t,r){void 0===r&&(r={});try{return nt(e,t,r),!0}catch(e){var n=e;if(n.message&&(n.message.startsWith("No widget")||n.message.startsWith("Unsupported widget")))return!1;throw e}},e.helpId=st,e.isConstant=De,e.isCustomWidget=qe,e.isFilesArray=Ce,e.isFixedItems=Te,e.isMultiSelect=Pe,e.isObject=R,e.isSelect=xe,e.labelValue=function(e,t,r){return t?r:e},e.localToUTC=function(e){return e?new Date(e).toJSON():void 0},e.mergeDefaultsWithFormData=_e,e.mergeObjects=We,e.mergeSchemas=le,e.mergeValidationData=Le,e.optionId=function(e,t){return e+"-"+t},e.optionsList=function(e){var t=e;if(e.enum)return e.enum.map((function(e,r){return{label:t.enumNames&&t.enumNames[r]||String(e),value:e}}));var r=e.oneOf||e.anyOf;return r&&r.map((function(e){var t=e,r=dt(t);return{schema:t,label:t.title||String(r),value:r}}))},e.orderProperties=function(e,t){if(!Array.isArray(t))return e;var r,n=function(e){return e.reduce((function(e,t){return e[t]=!0,e}),{})},i=n(e),o=t.filter((function(e){return"*"===e||i[e]})),a=n(o),u=e.filter((function(e){return!a[e]})),s=o.indexOf("*");if(-1===s){if(u.length)throw new Error("uiSchema order list does not contain "+((r=u).length>1?"properties '"+r.join("', '")+"'":"property '"+r[0]+"'"));return o}if(s!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var d=[].concat(o);return d.splice.apply(d,[s,1].concat(u)),d},e.pad=ft,e.parseDateString=function(e,t){if(void 0===t&&(t=!0),!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};var r=new Date(e);if(Number.isNaN(r.getTime()))throw new Error("Unable to parse date "+e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:t?r.getUTCHours():0,minute:t?r.getUTCMinutes():0,second:t?r.getUTCSeconds():0}},e.rangeSpec=Xe,e.replaceStringParameters=Ge,e.retrieveSchema=ge,e.sanitizeDataForNewSchema=Ye,e.schemaRequiresTrueValue=function e(t){return!!t.const||!(!t.enum||1!==t.enum.length||!0!==t.enum[0])||(t.anyOf&&1===t.anyOf.length?e(t.anyOf[0]):t.oneOf&&1===t.oneOf.length?e(t.oneOf[0]):!!t.allOf&&t.allOf.some((function(t){return e(t)})))},e.shouldRender=function(e,t,r){var n=e.state;return!ie(e.props,t)||!ie(n,r)},e.titleId=function(e){return it(e,"title")},e.toConstant=dt,e.toDateString=function(e,t){void 0===t&&(t=!0);var r=e.hour,n=e.minute,i=e.second,o=Date.UTC(e.year,e.month-1,e.day,void 0===r?0:r,void 0===n?0:n,void 0===i?0:i),a=new Date(o).toJSON();return t?a:a.slice(0,10)},e.toIdSchema=Be,e.toPathSchema=Ve,e.utcToLocal=function(e){if(!e)return"";var t=new Date(e);return ft(t.getFullYear(),4)+"-"+ft(t.getMonth()+1,2)+"-"+ft(t.getDate(),2)+"T"+ft(t.getHours(),2)+":"+ft(t.getMinutes(),2)+":"+ft(t.getSeconds(),2)+"."+ft(t.getMilliseconds(),3)},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("lodash-es/isPlainObject"),require("lodash-es/isEqualWith"),require("lodash-es/get"),require("lodash-es/isEmpty"),require("jsonpointer"),require("lodash-es/omit"),require("lodash-es/has"),require("lodash-es/isObject"),require("lodash-es/isString"),require("lodash-es/reduce"),require("lodash-es/times"),require("lodash-es/set"),require("json-schema-merge-allof"),require("lodash-es/union"),require("lodash-es/isEqual"),require("lodash-es/cloneDeep"),require("react/jsx-runtime"),require("react"),require("react-is"),require("lodash-es/toPath")):"function"==typeof define&&define.amd?define(["exports","lodash-es/isPlainObject","lodash-es/isEqualWith","lodash-es/get","lodash-es/isEmpty","jsonpointer","lodash-es/omit","lodash-es/has","lodash-es/isObject","lodash-es/isString","lodash-es/reduce","lodash-es/times","lodash-es/set","json-schema-merge-allof","lodash-es/union","lodash-es/isEqual","lodash-es/cloneDeep","react/jsx-runtime","react","react-is","lodash-es/toPath"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self)["@rjsf/utils"]={},e.isPlainObject,e.isEqualWith,e.get,e.isEmpty,e.jsonpointer,e.omit,e.has,e.isObject$1,e.isString,e.reduce,e.times,e.set,e.mergeAllOf,e.union,e.isEqual,e.cloneDeep,e.jsxRuntime,e.React,e.ReactIs,e.toPath)}(this,(function(e,r,t,n,i,o,a,u,s,d,f,l,c,p,v,m,h,y,g,b,O){"use strict";function A(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var S=A(r),E=A(t),I=A(n),w=A(i),j=A(o),_=A(a),T=A(u),P=A(s),W=A(d),D=A(f),x=A(l),N=A(c),F=A(p),U=A(v),R=A(m),q=A(h),C=A(b),k=A(O);function L(e){return!("undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Date&&e instanceof Date||"object"!=typeof e||null===e||Array.isArray(e))}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},M.apply(this,arguments)}function Y(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function K(e,r){if(null==e)return{};var t,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r.indexOf(t=o[n])>=0||(i[t]=e[t]);return i}var B="__additional_property",V="additionalProperties",$="allOf",H="anyOf",G="const",z="default",J="dependencies",Q="enum",X="__errors",Z="items",ee="oneOf",re="properties",te="required",ne="$ref",ie="__rjsf_additionalProperties",oe="__rjsf_rootSchema",ae="ui:widget",ue="ui:options";function se(e,r){return void 0===e&&(e={}),void 0===r&&(r={}),Object.keys(e).filter((function(e){return 0===e.indexOf("ui:")})).reduce((function(r,t){var n,i=e[t];return t===ae&&L(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):t===ue&&L(i)?M({},r,i):M({},r,((n={})[t.substring(3)]=i,n))}),M({},r))}function de(e,r){return E.default(e,r,(function(e,r){if("function"==typeof e&&"function"==typeof r)return!0}))}function fe(e,r){var t=r[e];return[_.default(r,[e]),t]}function le(e,r){void 0===r&&(r={});var t=e||"";if(!t.startsWith("#"))throw new Error("Could not find a definition for "+e+".");t=decodeURIComponent(t.substring(1));var n=j.default.get(r,t);if(void 0===n)throw new Error("Could not find a definition for "+e+".");if(n.$ref){var i=fe(ne,n),o=i[0],a=le(i[1],r);return Object.keys(o).length>0?M({},o,a):a}return n}function ce(e,r,t,n,i){if(void 0===r)return 0;for(var o=0;o<t.length;o++){var a=t[o];if(i&&T.default(a,[re,i])){var u=I.default(r,i),s=I.default(a,[re,i],{});if(e.isValid(s,u,n))return o}else if(a.properties){var d={anyOf:Object.keys(a.properties).map((function(e){return{required:[e]}}))},f=void 0;if(a.anyOf){var l=M({},(Y(a),a));l.allOf=l.allOf?l.allOf.slice():[],l.allOf.push(d),f=l}else f=Object.assign({},a,d);if(delete f.required,e.isValid(f,r,n))return o}else if(e.isValid(a,r,n))return o}return 0}function pe(e,r,t,n,i){return ce(e,r,t,n,i)}function ve(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}function me(e){var r=e.type;return!r&&e.const?ve(e.const):!r&&e.enum?"string":r||!e.properties&&!e.additionalProperties?(Array.isArray(r)&&2===r.length&&r.includes("null")&&(r=r.find((function(e){return"null"!==e}))),r):"object"}function he(e,r){var t=Object.assign({},e);return Object.keys(r).reduce((function(t,n){var i=e?e[n]:{},o=r[n];return t[n]=e&&n in e&&L(o)?he(i,o):e&&r&&("object"===me(e)||"object"===me(r))&&n===te&&Array.isArray(i)&&Array.isArray(o)?U.default(i,o):o,t}),t)}var ye=["if","then","else"],ge=["$ref"],be=["allOf"],Oe=["dependencies"],Ae=["oneOf"];function Se(e,r,t,n){return Ee(e,M({},le(r.$ref,t),K(r,ge)),t,n)}function Ee(e,r,t,n){if(void 0===t&&(t={}),!L(r))return{};var i=function(e,r,t,n){if(void 0===t&&(t={}),ne in r)return Se(e,r,t,n);if(J in r){var i=Ie(e,r,t,n);return Ee(e,i,t,n)}return $ in r?M({},r,{allOf:r.allOf.map((function(r){return Ee(e,r,t,n)}))}):r}(e,r,t,n);if("if"in r)return function(e,r,t,n){var i=r.if,o=r.then,a=r.else,u=K(r,ye),s=e.isValid(i,n,t)?o:a;return Ee(e,s&&"boolean"!=typeof s?he(u,Ee(e,s,t,n)):u,t,n)}(e,r,t,n);var o=n||{};if($ in r)try{i=F.default(i,{deep:!1})}catch(e){return console.warn("could not merge subschemas in allOf:\n",e),K(i,be)}return V in i&&!1!==i.additionalProperties?function(e,r,t,n){var i=M({},r,{properties:M({},r.properties)}),o=n&&L(n)?n:{};return Object.keys(o).forEach((function(r){var n;r in i.properties||(n="boolean"!=typeof i.additionalProperties?ne in i.additionalProperties?Ee(e,{$ref:I.default(i.additionalProperties,[ne])},t,o):"type"in i.additionalProperties?M({},i.additionalProperties):H in i.additionalProperties||ee in i.additionalProperties?M({type:"object"},i.additionalProperties):{type:ve(I.default(o,[r]))}:{type:ve(I.default(o,[r]))},i.properties[r]=n,N.default(i.properties,[r,B],!0))})),i}(e,i,t,o):i}function Ie(e,r,t,n){var i=r.dependencies,o=K(r,Oe);return Array.isArray(o.oneOf)?o=o.oneOf[pe(e,n,o.oneOf,t)]:Array.isArray(o.anyOf)&&(o=o.anyOf[pe(e,n,o.anyOf,t)]),we(e,i,o,t,n)}function we(e,r,t,n,i){var o=t;for(var a in r)if(void 0!==I.default(i,[a])&&(!o.properties||a in o.properties)){var u=fe(a,r),s=u[0],d=u[1];return Array.isArray(d)?o=je(o,d):L(d)&&(o=_e(e,o,n,a,d,i)),we(e,s,o,n,i)}return o}function je(e,r){return r?M({},e,{required:Array.isArray(e.required)?Array.from(new Set([].concat(e.required,r))):r}):e}function _e(e,r,t,n,i,o){var a=Ee(e,i,t,o),u=a.oneOf;if(r=he(r,K(a,Ae)),void 0===u)return r;var s=u.map((function(r){return"boolean"!=typeof r&&ne in r?Se(e,r,t,o):r}));return function(e,r,t,n,i,o){var a=i.filter((function(r){if("boolean"==typeof r||!r||!r.properties)return!1;var i=r.properties[n];if(i){var a,u={type:"object",properties:(a={},a[n]=i,a)};return e.isValid(u,o,t)}return!1}));if(1!==a.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),r;var u=a[0],s=M({},u,{properties:fe(n,u.properties)[0]});return he(r,Ee(e,s,t,o))}(e,r,t,n,s,o)}var Te,Pe={type:"object",properties:{__not_really_there__:{type:"number"}}};function We(e,r,t,n){void 0===n&&(n={});var i=0;return t&&(P.default(t.properties)?i+=D.default(t.properties,(function(t,i,o){var a=I.default(n,o);if("boolean"==typeof i)return t;if(T.default(i,ne)){var u=Ee(e,i,r,a);return t+We(e,r,u,a||{})}if(T.default(i,ee)&&a)return t+De(e,r,a,I.default(i,ee));if("object"===i.type)return t+We(e,r,i,a||{});if(i.type===ve(a)){var s=t+1;return i.default?s+=a===i.default?1:-1:i.const&&(s+=a===i.const?1:-1),s}return t}),0):W.default(t.type)&&t.type===ve(n)&&(i+=1)),i}function De(e,r,t,n,i,o){void 0===i&&(i=-1);var a=n.reduce((function(n,i,a){return 1===pe(e,t,[Pe,i],r,o)&&n.push(a),n}),[]);return 1===a.length?a[0]:(a.length||x.default(n.length,(function(e){return a.push(e)})),a.reduce((function(i,o){var a=i.bestScore,u=n[o];T.default(u,ne)&&(u=Ee(e,u,r,t));var s=We(e,r,u,t);return s>a?{bestIndex:o,bestScore:s}:i}),{bestIndex:i,bestScore:0}).bestIndex)}function xe(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((function(e){return L(e)}))}function Ne(e,r){if(Array.isArray(r)){var t=Array.isArray(e)?e:[];return r.map((function(e,r){return t[r]?Ne(t[r],e):e}))}if(L(r)){var n=Object.assign({},e);return Object.keys(r).reduce((function(t,n){return t[n]=Ne(e?I.default(e,n):{},I.default(r,n)),t}),n)}return r}function Fe(e,r,t){return void 0===t&&(t=!1),Object.keys(r).reduce((function(n,i){var o=e?e[i]:{},a=r[i];if(e&&i in e&&L(a))n[i]=Fe(o,a,t);else if(t&&Array.isArray(o)&&Array.isArray(a)){var u=a;"preventDuplicates"===t&&(u=a.reduce((function(e,r){return o.includes(r)||e.push(r),e}),[])),n[i]=o.concat(u)}else n[i]=a;return n}),Object.assign({},e))}function Ue(e){return Array.isArray(e.enum)&&1===e.enum.length||G in e}function Re(e,r,t){void 0===t&&(t={});var n=Ee(e,r,t,void 0),i=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(i)&&i.every((function(e){return"boolean"!=typeof e&&Ue(e)}))}function qe(e,r,t){return!(!r.uniqueItems||!r.items||"boolean"==typeof r.items)&&Re(e,r.items,t)}function Ce(e,r,t){if(void 0===r&&(r=Te.Ignore),void 0===t&&(t=-1),t>=0){if(Array.isArray(e.items)&&t<e.items.length){var n=e.items[t];if("boolean"!=typeof n)return n}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return r!==Te.Ignore&&L(e.additionalItems)?e.additionalItems:{}}function ke(e,r,t,n,i){void 0===i&&(i=[]),n?e[r]=t:L(t)?w.default(t)&&!i.includes(r)||(e[r]=t):void 0!==t&&(e[r]=t)}function Le(e,r,t,n,i,o,a){void 0===n&&(n={}),void 0===o&&(o=!1),void 0===a&&(a=[]);var u=L(i)?i:{},s=L(r)?r:{},d=t;if(L(d)&&L(s.default))d=Fe(d,s.default);else if(z in s)d=s.default;else if(ne in s){var f=s.$ref;if(!a.includes(f)){var l=le(f,n);return Le(e,l,d,n,u,o,a.concat(f))}}else{if(J in s){var c=Ie(e,s,n,u);return Le(e,c,d,n,u,o,a)}if(xe(s))d=s.items.map((function(r,i){return Le(e,r,Array.isArray(t)?t[i]:void 0,n,u,o,a)}));else if(ee in s){if(0===s.oneOf.length)return;s=s.oneOf[De(e,n,w.default(u)?void 0:u,s.oneOf,0)]}else if(H in s){if(0===s.anyOf.length)return;s=s.anyOf[De(e,n,w.default(u)?void 0:u,s.anyOf,0)]}}switch(void 0===d&&(d=s.default),me(s)){case"object":var p=Object.keys(s.properties||{}).reduce((function(r,t){return ke(r,t,Le(e,I.default(s,[re,t]),I.default(d,[t]),n,I.default(u,[t]),!0===o,a),o,s.required),r}),{});if(s.additionalProperties){var v=L(s.additionalProperties)?s.additionalProperties:{},m=new Set;L(d)&&Object.keys(d).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),L(u)&&Object.keys(u).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),m.forEach((function(r){var t=Le(e,v,I.default(d,[r]),n,I.default(u,[r]),!0===o,a);ke(p,r,t,o)}))}return p;case"array":if(Array.isArray(d)&&(d=d.map((function(r,t){var i=Ce(s,Te.Fallback,t);return Le(e,i,r,n,void 0,void 0,a)}))),Array.isArray(i)){var h=Ce(s);d=i.map((function(r,t){return Le(e,h,I.default(d,[t]),n,r,void 0,a)}))}if(s.minItems){if(!qe(e,s,n)){var y=Array.isArray(d)?d.length:0;if(s.minItems>y){var g=d||[],b=Ce(s,Te.Invert),O=b.default,A=new Array(s.minItems-y).fill(Le(e,b,O,n,void 0,void 0,a));return g.concat(A)}}return d||[]}}return d}function Me(e,r,t,n,i){if(void 0===i&&(i=!1),!L(r))throw new Error("Invalid schema: "+r);var o=Le(e,Ee(e,r,n,t),void 0,n,t,i);return null==t||"number"==typeof t&&isNaN(t)?o:L(t)||Array.isArray(t)?Ne(o,t):t}function Ye(e){return void 0===e&&(e={}),"widget"in se(e)&&"hidden"!==se(e).widget}function Ke(e,r,t,n){if(void 0===t&&(t={}),"files"===t["ui:widget"])return!0;if(r.items){var i=Ee(e,r.items,n);return"string"===i.type&&"data-url"===i.format}return!1}function Be(e,r,t,n,i){void 0===t&&(t={});var o=se(t,i).label,a=!(void 0!==o&&!o),u=me(r);return"array"===u&&(a=qe(e,r,n)||Ke(e,r,t,n)||Ye(t)),"object"===u&&(a=!1),"boolean"!==u||t["ui:widget"]||(a=!1),t["ui:field"]&&(a=!1),a}function Ve(e,r,t){if(!t)return r;var n=r.errors,i=r.errorSchema,o=e.toErrorList(t),a=t;return w.default(i)||(a=Fe(i,t,!0),o=[].concat(n).concat(o)),{errorSchema:a,errors:o}}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(Te||(Te={}));var $e=Symbol("no Value");function He(e,r,t,n,i){var o;if(void 0===i&&(i={}),T.default(t,re)){var a={};if(T.default(n,re)){var u=I.default(n,re,{});Object.keys(u).forEach((function(e){T.default(i,e)&&(a[e]=void 0)}))}var s=Object.keys(I.default(t,re,{})),d={};s.forEach((function(o){var u=I.default(i,o),s=I.default(n,[re,o],{}),f=I.default(t,[re,o],{});T.default(s,ne)&&(s=Ee(e,s,r,u)),T.default(f,ne)&&(f=Ee(e,f,r,u));var l=I.default(s,"type"),c=I.default(f,"type");if(!l||l===c)if(T.default(a,o)&&delete a[o],"object"===c||"array"===c&&Array.isArray(u)){var p=He(e,r,f,s,u);void 0===p&&"array"!==c||(d[o]=p)}else{var v=I.default(f,"default",$e),m=I.default(s,"default",$e);v!==$e&&v!==u&&(m===u?a[o]=v:!0===I.default(f,"readOnly")&&(a[o]=void 0));var h=I.default(f,"const",$e),y=I.default(s,"const",$e);h!==$e&&h!==u&&(a[o]=y===u?h:void 0)}})),o=M({},i,a,d)}else if("array"===I.default(n,"type")&&"array"===I.default(t,"type")&&Array.isArray(i)){var f=I.default(n,"items"),l=I.default(t,"items");if("object"!=typeof f||"object"!=typeof l||Array.isArray(f)||Array.isArray(l))"boolean"==typeof f&&"boolean"==typeof l&&f===l&&(o=i);else{T.default(f,ne)&&(f=Ee(e,f,r,i)),T.default(l,ne)&&(l=Ee(e,l,r,i));var c=I.default(f,"type"),p=I.default(l,"type");if(!c||c===p){var v=I.default(t,"maxItems",-1);o="object"===p?i.reduce((function(t,n){var i=He(e,r,l,f,n);return void 0!==i&&(v<0||t.length<v)&&t.push(i),t}),[]):v>0&&i.length>v?i.slice(0,v):i}}}return o}function Ge(e,r,t,n,i,o,a,u){if(void 0===u&&(u=[]),ne in r||J in r||$ in r){var s=Ee(e,r,o,a);if(-1===u.findIndex((function(e){return R.default(e,s)})))return Ge(e,s,t,n,i,o,a,u.concat(s))}if(Z in r&&!I.default(r,[Z,ne]))return Ge(e,I.default(r,Z),t,n,i,o,a,u);var d={$id:i||t};if("object"===me(r)&&re in r)for(var f in r.properties){var l=I.default(r,[re,f]),c=d.$id+n+f;d[f]=Ge(e,L(l)?l:{},t,n,c,o,I.default(a,[f]),u)}return d}function ze(e,r,t,n,i,o,a){return void 0===o&&(o="root"),void 0===a&&(a="_"),Ge(e,r,o,a,t,n,i)}function Je(e,r,t,n,i,o){var a;if(void 0===o&&(o=[]),ne in r||J in r||$ in r){var u=Ee(e,r,n,i);if(-1===o.findIndex((function(e){return R.default(e,u)})))return Je(e,u,t,n,i,o.concat(u))}var s=((a={}).$name=t.replace(/^\./,""),a);if(ee in r){var d=De(e,n,i,r.oneOf,0);return Je(e,r.oneOf[d],t,n,i,o)}if(H in r){var f=De(e,n,i,r.anyOf,0);return Je(e,r.anyOf[f],t,n,i,o)}if(V in r&&!1!==r.additionalProperties&&N.default(s,ie,!0),Z in r&&Array.isArray(i))i.forEach((function(i,a){s[a]=Je(e,r.items,t+"."+a,n,i,o)}));else if(re in r)for(var l in r.properties){var c=I.default(r,[re,l]);s[l]=Je(e,c,t+"."+l,n,I.default(i,[l]),o)}return s}function Qe(e,r,t,n,i){return void 0===t&&(t=""),Je(e,r,t,n,i)}var Xe=function(){function e(e,r){this.rootSchema=void 0,this.validator=void 0,this.rootSchema=r,this.validator=e}var r=e.prototype;return r.getValidator=function(){return this.validator},r.doesSchemaUtilsDiffer=function(e,r){return!(!e||!r||this.validator===e&&de(this.rootSchema,r))},r.getDefaultFormState=function(e,r,t){return void 0===t&&(t=!1),Me(this.validator,e,r,this.rootSchema,t)},r.getDisplayLabel=function(e,r,t){return Be(this.validator,e,r,this.rootSchema,t)},r.getClosestMatchingOption=function(e,r,t,n){return De(this.validator,this.rootSchema,e,r,t,n)},r.getFirstMatchingOption=function(e,r,t){return pe(this.validator,e,r,this.rootSchema,t)},r.getMatchingOption=function(e,r,t){return ce(this.validator,e,r,this.rootSchema,t)},r.isFilesArray=function(e,r){return Ke(this.validator,e,r,this.rootSchema)},r.isMultiSelect=function(e){return qe(this.validator,e,this.rootSchema)},r.isSelect=function(e){return Re(this.validator,e,this.rootSchema)},r.mergeValidationData=function(e,r){return Ve(this.validator,e,r)},r.retrieveSchema=function(e,r){return Ee(this.validator,e,this.rootSchema,r)},r.sanitizeDataForNewSchema=function(e,r,t){return He(this.validator,this.rootSchema,e,r,t)},r.toIdSchema=function(e,r,t,n,i){return void 0===n&&(n="root"),void 0===i&&(i="_"),ze(this.validator,e,r,this.rootSchema,t,n,i)},r.toPathSchema=function(e,r,t){return Qe(this.validator,e,r,this.rootSchema,t)},e}();function Ze(e,r){var t=e;if(Array.isArray(r)){var n=t.split(/(%\d)/);r.forEach((function(e,r){var t=n.findIndex((function(e){return e==="%"+(r+1)}));t>=0&&(n[t]=e)})),t=n.join("")}return t}function er(e,r,t){if(void 0===r&&(r=[]),Array.isArray(e))return e.map((function(e){return er(e,r)})).filter((function(e){return e}));var n=""===e||null===e?-1:Number(e),i=r[n];return i?i.value:t}function rr(e,r){return Array.isArray(r)?r.some((function(r){return R.default(r,e)})):R.default(r,e)}var tr=function(){function e(e){this.errorSchema={},this.resetAllErrors(e)}var r,t,n=e.prototype;return n.getOrCreateErrorBlock=function(e){var r=Array.isArray(e)&&e.length>0||"string"==typeof e?I.default(this.errorSchema,e):this.errorSchema;return!r&&e&&N.default(this.errorSchema,e,r={}),r},n.resetAllErrors=function(e){return this.errorSchema=e?q.default(e):{},this},n.addErrors=function(e,r){var t,n=this.getOrCreateErrorBlock(r),i=I.default(n,X);return Array.isArray(i)||(n.__errors=i=[]),Array.isArray(e)?(t=i).push.apply(t,e):i.push(e),this},n.setErrors=function(e,r){var t=this.getOrCreateErrorBlock(r),n=Array.isArray(e)?[].concat(e):[e];return N.default(t,X,n),this},n.clearErrors=function(e){var r=this.getOrCreateErrorBlock(e);return N.default(r,X,[]),this},r=e,(t=[{key:"ErrorSchema",get:function(){return this.errorSchema}}])&&function(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i),n)}var i}(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),e}();function nr(e){var r={};return e.multipleOf&&(r.step=e.multipleOf),(e.minimum||0===e.minimum)&&(r.min=e.minimum),(e.maximum||0===e.maximum)&&(r.max=e.maximum),r}var ir,or={props:{disabled:!1},submitText:"Submit",norender:!1},ar=["options"],ur={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function sr(e,r,t){void 0===t&&(t={});var n=me(e);if("function"==typeof r||r&&C.default.isForwardRef(g.createElement(r))||C.default.isMemo(r))return function(e){var r=I.default(e,"MergedWidget");if(!r){var t=e.defaultProps&&e.defaultProps.options||{};N.default(e,"MergedWidget",r=function(r){var n=r.options,i=K(r,ar);return y.jsx(e,M({options:M({},t,n)},i))})}return r}(r);if("string"!=typeof r)throw new Error("Unsupported widget definition: "+typeof r);if(r in t)return sr(e,t[r],t);if("string"==typeof n){if(!(n in ur))throw new Error("No widget for type '"+n+"'");if(r in ur[n])return sr(e,t[ur[n][r]],t)}throw new Error("No widget '"+r+"' for type '"+n+"'")}function dr(e,r){return(W.default(e)?e:e.$id)+"__"+r}function fr(e){return dr(e,"description")}function lr(e){return dr(e,"error")}function cr(e){return dr(e,"examples")}function pr(e){return dr(e,"help")}function vr(e){if(Q in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(G in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function mr(e,r){for(var t=String(e);t.length<r;)t="0"+t;return t}function hr(e,r){if(void 0===r&&(r=[]),!e)return[];var t=[];return X in e&&(t=t.concat(e.__errors.map((function(e){var t="."+r.join(".");return{property:t,message:e,stack:t+" "+e}})))),Object.keys(e).reduce((function(t,n){if(n!==X){var i=e[n];S.default(i)&&(t=t.concat(hr(i,[].concat(r,[n]))))}return t}),t)}e.TranslatableString=void 0,(ir=e.TranslatableString||(e.TranslatableString={})).ArrayItemTitle="Item",ir.MissingItems="Missing items definition",ir.YesLabel="Yes",ir.NoLabel="No",ir.CloseLabel="Close",ir.ErrorsLabel="Errors",ir.NewStringDefault="New Value",ir.AddButton="Add",ir.AddItemButton="Add Item",ir.CopyButton="Copy",ir.MoveDownButton="Move down",ir.MoveUpButton="Move up",ir.RemoveButton="Remove",ir.NowLabel="Now",ir.ClearLabel="Clear",ir.AriaDateLabel="Select a date",ir.PreviewLabel="Preview",ir.DecrementAriaLabel="Decrease value by 1",ir.IncrementAriaLabel="Increase value by 1",ir.UnknownFieldType="Unknown field type %1",ir.OptionPrefix="Option %1",ir.TitleOptionPrefix="%1 option %2",ir.KeyLabel="%1 Key",ir.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',ir.UnsupportedField="Unsupported field schema.",ir.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",ir.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",ir.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",ir.FilesInfo="<strong>%1</strong> (%2, %3 bytes)",e.ADDITIONAL_PROPERTIES_KEY=V,e.ADDITIONAL_PROPERTY_FLAG=B,e.ALL_OF_KEY=$,e.ANY_OF_KEY=H,e.CONST_KEY=G,e.DEFAULT_KEY=z,e.DEFINITIONS_KEY="definitions",e.DEPENDENCIES_KEY=J,e.ENUM_KEY=Q,e.ERRORS_KEY=X,e.ErrorSchemaBuilder=tr,e.ID_KEY="$id",e.ITEMS_KEY=Z,e.NAME_KEY="$name",e.ONE_OF_KEY=ee,e.PROPERTIES_KEY=re,e.REF_KEY=ne,e.REQUIRED_KEY=te,e.RJSF_ADDITONAL_PROPERTIES_FLAG=ie,e.ROOT_SCHEMA_PREFIX=oe,e.SUBMIT_BTN_OPTIONS_KEY="submitButtonOptions",e.UI_FIELD_KEY="ui:field",e.UI_GLOBAL_OPTIONS_KEY="ui:globalOptions",e.UI_OPTIONS_KEY=ue,e.UI_WIDGET_KEY=ae,e.allowAdditionalItems=function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),L(e.additionalItems)},e.ariaDescribedByIds=function(e,r){void 0===r&&(r=!1);var t=r?" "+cr(e):"";return lr(e)+" "+fr(e)+" "+pr(e)+t},e.asNumber=function(e){if(""!==e){if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;var r=Number(e);return"number"!=typeof r||Number.isNaN(r)?e:r}},e.canExpand=function(e,r,t){if(void 0===r&&(r={}),!e.additionalProperties)return!1;var n=se(r).expandable,i=void 0===n||n;return!1===i?i:void 0===e.maxProperties||!t||Object.keys(t).length<e.maxProperties},e.createErrorHandler=function e(r){var t,n=((t={}).__errors=[],t.addError=function(e){this.__errors.push(e)},t);if(Array.isArray(r))return r.reduce((function(r,t,n){var i;return M({},r,((i={})[n]=e(t),i))}),n);if(S.default(r)){var i=r;return Object.keys(i).reduce((function(r,t){var n;return M({},r,((n={})[t]=e(i[t]),n))}),n)}return n},e.createSchemaUtils=function(e,r){return new Xe(e,r)},e.dataURItoBlob=function(e){var r,t=e.split(","),n=t[0].split(";"),i=n[0].replace("data:",""),o=n.filter((function(e){return"name"===e.split("=")[0]}));r=1!==o.length?"unknown":decodeURI(o[0].split("=")[1]);try{for(var a=atob(t[1]),u=[],s=0;s<a.length;s++)u.push(a.charCodeAt(s));return{blob:new window.Blob([new Uint8Array(u)],{type:i}),name:r}}catch(r){return{blob:{size:0,type:r.message},name:e}}},e.deepEquals=de,e.descriptionId=fr,e.englishStringTranslator=function(e,r){return Ze(e,r)},e.enumOptionsDeselectValue=function(e,r,t){void 0===t&&(t=[]);var n=er(e,t);return Array.isArray(r)?r.filter((function(e){return!R.default(e,n)})):R.default(n,r)?void 0:r},e.enumOptionsIndexForValue=function(e,r,t){void 0===r&&(r=[]),void 0===t&&(t=!1);var n=r.map((function(r,t){return rr(r.value,e)?String(t):void 0})).filter((function(e){return void 0!==e}));return t?n:n[0]},e.enumOptionsIsSelected=rr,e.enumOptionsSelectValue=function(e,r,t){void 0===t&&(t=[]);var n=er(e,t);if(n){var i=t.findIndex((function(e){return n===e.value})),o=t.map((function(e){return e.value}));return r.slice(0,i).concat(n,r.slice(i)).sort((function(e,r){return Number(o.indexOf(e)>o.indexOf(r))}))}return r},e.enumOptionsValueForIndex=er,e.errorId=lr,e.examplesId=cr,e.findSchemaDefinition=le,e.getClosestMatchingOption=De,e.getDefaultFormState=Me,e.getDisplayLabel=Be,e.getFirstMatchingOption=pe,e.getInputProps=function(e,r,t,n){void 0===t&&(t={}),void 0===n&&(n=!0);var i=M({type:r||"text"},nr(e));return t.inputType?i.type=t.inputType:r||("number"===e.type?(i.type="number",n&&void 0===i.step&&(i.step="any")):"integer"===e.type&&(i.type="number",void 0===i.step&&(i.step=1))),t.autocomplete&&(i.autoComplete=t.autocomplete),i},e.getMatchingOption=ce,e.getSchemaType=me,e.getSubmitButtonOptions=function(e){void 0===e&&(e={});var r=se(e);return r&&r.submitButtonOptions?M({},or,r.submitButtonOptions):or},e.getTemplate=function(e,r,t){void 0===t&&(t={});var n=r.templates;return"ButtonTemplates"===e?n[e]:t[e]||n[e]},e.getUiOptions=se,e.getWidget=sr,e.guessType=ve,e.hasWidget=function(e,r,t){void 0===t&&(t={});try{return sr(e,r,t),!0}catch(e){var n=e;if(n.message&&(n.message.startsWith("No widget")||n.message.startsWith("Unsupported widget")))return!1;throw e}},e.helpId=pr,e.isConstant=Ue,e.isCustomWidget=Ye,e.isFilesArray=Ke,e.isFixedItems=xe,e.isMultiSelect=qe,e.isObject=L,e.isSelect=Re,e.labelValue=function(e,r,t){return r?t:e},e.localToUTC=function(e){return e?new Date(e).toJSON():void 0},e.mergeDefaultsWithFormData=Ne,e.mergeObjects=Fe,e.mergeSchemas=he,e.mergeValidationData=Ve,e.optionId=function(e,r){return e+"-"+r},e.optionsList=function(e){var r=e;if(e.enum)return e.enum.map((function(e,t){return{label:r.enumNames&&r.enumNames[t]||String(e),value:e}}));var t=e.oneOf||e.anyOf;return t&&t.map((function(e){var r=e,t=vr(r);return{schema:r,label:r.title||String(t),value:t}}))},e.orderProperties=function(e,r){if(!Array.isArray(r))return e;var t,n=function(e){return e.reduce((function(e,r){return e[r]=!0,e}),{})},i=n(e),o=r.filter((function(e){return"*"===e||i[e]})),a=n(o),u=e.filter((function(e){return!a[e]})),s=o.indexOf("*");if(-1===s){if(u.length)throw new Error("uiSchema order list does not contain "+((t=u).length>1?"properties '"+t.join("', '")+"'":"property '"+t[0]+"'"));return o}if(s!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var d=[].concat(o);return d.splice.apply(d,[s,1].concat(u)),d},e.pad=mr,e.parseDateString=function(e,r){if(void 0===r&&(r=!0),!e)return{year:-1,month:-1,day:-1,hour:r?-1:0,minute:r?-1:0,second:r?-1:0};var t=new Date(e);if(Number.isNaN(t.getTime()))throw new Error("Unable to parse date "+e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:r?t.getUTCHours():0,minute:r?t.getUTCMinutes():0,second:r?t.getUTCSeconds():0}},e.rangeSpec=nr,e.replaceStringParameters=Ze,e.retrieveSchema=Ee,e.sanitizeDataForNewSchema=He,e.schemaRequiresTrueValue=function e(r){return!!r.const||!(!r.enum||1!==r.enum.length||!0!==r.enum[0])||(r.anyOf&&1===r.anyOf.length?e(r.anyOf[0]):r.oneOf&&1===r.oneOf.length?e(r.oneOf[0]):!!r.allOf&&r.allOf.some((function(r){return e(r)})))},e.shouldRender=function(e,r,t){var n=e.state;return!de(e.props,r)||!de(n,t)},e.titleId=function(e){return dr(e,"title")},e.toConstant=vr,e.toDateString=function(e,r){void 0===r&&(r=!0);var t=e.hour,n=e.minute,i=e.second,o=Date.UTC(e.year,e.month-1,e.day,void 0===t?0:t,void 0===n?0:n,void 0===i?0:i),a=new Date(o).toJSON();return r?a:a.slice(0,10)},e.toErrorList=hr,e.toErrorSchema=function(e){var r=new tr;return e.length&&e.forEach((function(e){var t=e.property,n=e.message,i="."===t?[]:k.default(t);i.length>0&&""===i[0]&&i.splice(0,1),n&&r.addErrors(n,i)})),r.ErrorSchema},e.toIdSchema=ze,e.toPathSchema=Qe,e.unwrapErrorHandler=function e(r){return Object.keys(r).reduce((function(t,n){if("addError"===n)return t;var i,o,a=r[n];return S.default(a)?M({},t,((o={})[n]=e(a),o)):M({},t,((i={})[n]=a,i))}),{})},e.utcToLocal=function(e){if(!e)return"";var r=new Date(e);return mr(r.getFullYear(),4)+"-"+mr(r.getMonth()+1,2)+"-"+mr(r.getDate(),2)+"T"+mr(r.getHours(),2)+":"+mr(r.getMinutes(),2)+":"+mr(r.getSeconds(),2)+"."+mr(r.getMilliseconds(),3)},e.validationDataMerge=function(e,r){if(!r)return e;var t=e.errors,n=e.errorSchema,i=hr(r),o=r;return w.default(n)||(o=Fe(n,r,!0),i=[].concat(t).concat(i)),{errorSchema:o,errors:i}},e.withIdRefPrefix=function e(r){return r.constructor===Object?function(r){for(var t in r){var n=r[t];r[t]=t===ne&&"string"==typeof n&&n.startsWith("#")?oe+n:e(n)}return r}(M({},r)):Array.isArray(r)?function(r){for(var t=0;t<r.length;t++)r[t]=e(r[t]);return r}([].concat(r)):r},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=utils.umd.production.min.js.map |
{ | ||
"name": "@rjsf/utils", | ||
"version": "5.5.2", | ||
"version": "5.6.0", | ||
"main": "dist/index.js", | ||
@@ -21,3 +21,4 @@ "module": "dist/utils.esm.js", | ||
"precommit": "lint-staged", | ||
"test": "dts test" | ||
"test": "dts test", | ||
"test:debug": "node --inspect-brk node_modules/.bin/dts test" | ||
}, | ||
@@ -55,7 +56,7 @@ "lint-staged": { | ||
"dts-cli": "^1.6.3", | ||
"eslint": "^8.37.0", | ||
"eslint": "^8.38.0", | ||
"jest-expect-message": "^1.1.3", | ||
"react": "^17.0.2", | ||
"react-test-renderer": "^17.0.2", | ||
"rimraf": "^4.4.1" | ||
"rimraf": "^5.0.0" | ||
}, | ||
@@ -80,3 +81,3 @@ "publishConfig": { | ||
"license": "Apache-2.0", | ||
"gitHead": "08efac27710f0cd11da87199cc98bf406efd8381" | ||
"gitHead": "1caa67c7dcafa76eecf938c7668b9ee799d34789" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1804006
11293