@rjsf/utils
Advanced tools
Comparing version 5.9.0 to 5.10.0
@@ -1,2 +0,2 @@ | ||
"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"),m=require("lodash/isEqual"),v=require("lodash"),h=require("lodash/cloneDeep"),y=require("react/jsx-runtime"),g=require("react"),x=require("react-is"),b=require("lodash/toPath"),S=require("lodash/forEach");function O(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var A=O(e),E=O(r),w=O(t),_=O(n),I=O(i),D=O(o),F=O(a),j=O(u),T=O(s),W=O(f),P=O(d),N=O(l),U=O(c),q=O(p),M=O(m),L=O(h),k=O(x),C=O(b),R=O(S);function B(e){return!("undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Date&&e instanceof Date||"object"!=typeof e||null===e||Array.isArray(e))}function Y(){return Y=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},Y.apply(this,arguments)}function V(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 $="__additional_property",H="additionalProperties",J="allOf",z="anyOf",G="const",Q="default",X="dependencies",Z="enum",ee="__errors",re="$id",te="if",ne="items",ie="_$junk_option_schema_id$_",oe="$name",ae="oneOf",ue="properties",se="required",fe="submitButtonOptions",de="$ref",le="__rjsf_additionalProperties",ce="__rjsf_rootSchema",pe="ui:field",me="ui:widget",ve="ui:options";function he(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===me&&B(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):t===ve&&B(i)?Y({},r,i):Y({},r,((n={})[t.substring(3)]=i,n))}),Y({},r))}function ye(e,r){return E.default(e,r,(function(e,r){if("function"==typeof e&&"function"==typeof r)return!0}))}function ge(e,r){var t=r[e];return[D.default(r,[e]),t]}function xe(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=I.default.get(r,t);if(void 0===n)throw new Error("Could not find a definition for "+e+".");if(n[de]){var i=ge(de,n),o=i[0],a=xe(i[1],r);return Object.keys(o).length>0?Y({},o,a):a}return n}function be(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&&F.default(a,[ue,i])){var u=w.default(r,i),s=w.default(a,[ue,i],{});if(e.isValid(s,u,n))return o}else if(a[ue]){var f={anyOf:Object.keys(a[ue]).map((function(e){return{required:[e]}}))},d=void 0;if(a.anyOf){var l=Y({},(V(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 Se(e,r,t,n,i){return be(e,r,t,n,i)}function Oe(e){var r,t=w.default(e,"discriminator.propertyName",void 0);return T.default(t)?r=t:void 0!==t&&console.warn('Expecting discriminator to be a string, got "'+typeof t+'" instead'),r}function Ae(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 Ee(e){var r=e.type;return!r&&e.const?Ae(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 we(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&&B(o)?we(i,o):e&&r&&("object"===Ee(e)||"object"===Ee(r))&&n===se&&Array.isArray(i)&&Array.isArray(o)?q.default(i,o):o,t}),t)}var _e=["if","then","else"],Ie=["$ref"],De=["allOf"],Fe=["dependencies"],je=["oneOf"];function Te(e,r,t,n){return void 0===t&&(t={}),Ne(e,r,t,n)[0]}function We(e){return e.reduce((function(e,r){return r.length>1?r.flatMap((function(r){return P.default(e.length,(function(t){return[].concat(e[t]).concat(r)}))})):(e.forEach((function(e){return e.push(r[0])})),e)}),[[]])}function Pe(e,r,t,n,i){var o=r.$ref,a=K(r,Ie);return Ne(e,Y({},xe(o,t),a),t,i,n)}function Ne(e,r,t,n,i){if(void 0===i&&(i=!1),!B(r))return[{}];var o=function(e,r,t,n,i){return de in r?Pe(e,r,t,n,i):X in r?qe(e,r,t,n,i).flatMap((function(r){return Ne(e,r,t,i,n)})):J in r&&Array.isArray(r.allOf)?We(r.allOf.map((function(r){return Ne(e,r,t,i,n)}))).map((function(e){return Y({},r,{allOf:e})})):[r]}(e,r,t,i,n);return o.flatMap((function(o){var a=o;if(te in a)return function(e,r,t,n,i){var o=r.if,a=r.then,u=r.else,s=K(r,_e),f=e.isValid(o,i||{},t),d=[s],l=[];if(n)a&&"boolean"!=typeof a&&(l=l.concat(Ne(e,a,t,i,n))),u&&"boolean"!=typeof u&&(l=l.concat(Ne(e,u,t,i,n)));else{var c=f?a:u;c&&"boolean"!=typeof c&&(l=l.concat(Ne(e,c,t,i,n)))}return l.length&&(d=l.map((function(e){return we(s,e)}))),d.flatMap((function(r){return Ne(e,r,t,i,n)}))}(e,a,t,i,n);if(J in r)try{a=U.default(o,{deep:!1})}catch(e){console.warn("could not merge subschemas in allOf:\n",e);var u=a.allOf,s=K(a,De);return i&&u?[s].concat(u):s}return H in a&&!1!==a.additionalProperties?function(e,r,t,n){var i=Y({},r,{properties:Y({},r.properties)}),o=n&&B(n)?n:{};return Object.keys(o).forEach((function(r){var n;r in i.properties||(n="boolean"!=typeof i.additionalProperties?de in i.additionalProperties?Te(e,{$ref:w.default(i.additionalProperties,[de])},t,o):"type"in i.additionalProperties?Y({},i.additionalProperties):z in i.additionalProperties||ae in i.additionalProperties?Y({type:"object"},i.additionalProperties):{type:Ae(w.default(o,[r]))}:{type:Ae(w.default(o,[r]))},i.properties[r]=n,N.default(i.properties,[r,$],!0))})),i}(e,a,t,n):a}))}function Ue(e,r,t,n,i){var o;if(Array.isArray(r.oneOf)?o=r.oneOf:Array.isArray(r.anyOf)&&(o=r.anyOf),o){var a=void 0===i&&n?{}:i,u=Oe(r);o=o.map((function(r){return de in r?Pe(e,r,t,!1,a)[0]:r}));var s=Se(e,a,o,t,u);if(n)return o;r=o[s]}return[r]}function qe(e,r,t,n,i){var o=r.dependencies,a=K(r,Fe);return Ue(e,a,t,n,i).flatMap((function(r){return Me(e,o,r,t,n,i)}))}function Me(e,r,t,n,i,o){var a=[t],u=function(){if(!i&&void 0===w.default(o,[s]))return"continue";if(t.properties&&!(s in t.properties))return"continue";var u,f,d=ge(s,r),l=d[0],c=d[1];return Array.isArray(c)?a[0]=(u=t,(f=c)?Y({},u,{required:Array.isArray(u.required)?Array.from(new Set([].concat(u.required,f))):f}):u):B(c)&&(a=function(e,r,t,n,i,o,a){return Ne(e,i,t,a,o).flatMap((function(i){var u=i.oneOf,s=K(i,je);return r=we(r,s),void 0===u?r:We(u.map((function(r){return"boolean"!=typeof r&&de in r?Pe(e,r,t,o,a):[r]}))).flatMap((function(i){return function(e,r,t,n,i,o,a){var u=i.filter((function(r){if("boolean"==typeof r||!r||!r.properties)return!1;var i=r.properties[n];if(i){var u,s={type:"object",properties:(u={},u[n]=i,u)};return e.isValid(s,a,t)||o}return!1}));return o||1===u.length?u.flatMap((function(i){var u=Y({},i,{properties:ge(n,i.properties)[0]});return Ne(e,u,t,a,o).map((function(e){return we(r,e)}))})):(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[r])}(e,r,t,n,i,o,a)}))}))}(e,t,n,s,c,i,o)),{v:a.flatMap((function(r){return Me(e,l,r,n,i,o)}))}};for(var s in r){var f=u();if("continue"!==f&&"object"==typeof f)return f.v}return a}var Le,ke={type:"object",$id:ie,properties:{__not_really_there__:{type:"number"}}};function Ce(e,r,t,n){void 0===n&&(n={});var i=0;return t&&(j.default(t.properties)?i+=W.default(t.properties,(function(t,i,o){var a=w.default(n,o);if("boolean"==typeof i)return t;if(F.default(i,de)){var u=Te(e,i,r,a);return t+Ce(e,r,u,a||{})}if(F.default(i,ae)&&a)return t+Re(e,r,a,w.default(i,ae));if("object"===i.type)return t+Ce(e,r,i,a||{});if(i.type===Ae(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===Ae(n)&&(i+=1)),i}function Re(e,r,t,n,i,o){void 0===i&&(i=-1);var a=n.reduce((function(n,i,a){return 1===Se(e,t,[ke,i],r,o)&&n.push(a),n}),[]);if(1===a.length)return a[0];a.length||P.default(n.length,(function(e){return a.push(e)}));var u=new Set,s=a.reduce((function(i,o){var a=i.bestScore,s=n[o];F.default(s,de)&&(s=Te(e,s,r,t));var f=Ce(e,r,s,t);return u.add(f),f>a?{bestIndex:o,bestScore:f}:i}),{bestIndex:i,bestScore:0});return 1===u.size&&i>=0?i:s.bestIndex}function Be(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((function(e){return B(e)}))}function Ye(e,r,t){if(void 0===t&&(t=!1),Array.isArray(r)){var n=Array.isArray(e)?e:[],i=r.map((function(e,r){return n[r]?Ye(n[r],e,t):e}));return t&&i.length<n.length&&i.push.apply(i,n.slice(i.length)),i}if(B(r)){var o=Object.assign({},e);return Object.keys(r).reduce((function(n,i){return n[i]=Ye(e?w.default(e,i):{},w.default(r,i),t),n}),o)}return r}function Ve(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&&B(a))n[i]=Ve(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 Ke(e){return Array.isArray(e.enum)&&1===e.enum.length||G in e}function $e(e,r,t){void 0===t&&(t={});var n=Te(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&&Ke(e)}))}function He(e,r,t){return!(!r.uniqueItems||!r.items||"boolean"==typeof r.items)&&$e(e,r.items,t)}function Je(e,r,t){if(void 0===r&&(r=Le.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!==Le.Ignore&&B(e.additionalItems)?e.additionalItems:{}}function ze(e,r,t,n,i,o,a){void 0===o&&(o=[]),void 0===a&&(a={});var u=a.emptyObjectFields,s=void 0===u?"populateAllDefaults":u;if(n)e[r]=t;else if("skipDefaults"!==s)if(B(t)){var f=void 0===i?o.includes(r):i;_.default(t)&&!o.includes(r)||!f&&"populateRequiredDefaults"===s||(e[r]=t)}else void 0===t||"populateAllDefaults"!==s&&!o.includes(r)||(e[r]=t)}function Ge(e,r,t){var n=void 0===t?{}:t,i=n.parentDefaults,o=n.rawFormData,a=n.rootSchema,u=void 0===a?{}:a,s=n.includeUndefinedValues,f=void 0!==s&&s,d=n._recurseList,l=void 0===d?[]:d,c=n.experimental_defaultFormStateBehavior,p=void 0===c?void 0:c,m=n.required,v=B(o)?o:{},h=B(r)?r:{},y=i,g=null,x=l;if(B(y)&&B(h.default))y=Ve(y,h.default);else if(Q in h)y=h.default;else if(de in h){var b=h[de];l.includes(b)||(x=l.concat(b),g=xe(b,u))}else if(X in h)g=qe(e,h,u,!1,v)[0];else if(Be(h))y=h.items.map((function(r,t){return Ge(e,r,{rootSchema:u,includeUndefinedValues:f,_recurseList:l,experimental_defaultFormStateBehavior:p,parentDefaults:Array.isArray(i)?i[t]:void 0,rawFormData:v,required:m})}));else if(ae in h){if(0===h.oneOf.length)return;var S=Oe(h);g=h.oneOf[Re(e,u,_.default(v)?void 0:v,h.oneOf,0,S)]}else if(z in h){if(0===h.anyOf.length)return;var O=Oe(h);g=h.anyOf[Re(e,u,_.default(v)?void 0:v,h.anyOf,0,O)]}if(g)return Ge(e,g,{rootSchema:u,includeUndefinedValues:f,_recurseList:x,experimental_defaultFormStateBehavior:p,parentDefaults:y,rawFormData:v,required:m});switch(void 0===y&&(y=h.default),Ee(h)){case"object":var A=Object.keys(h.properties||{}).reduce((function(r,t){var n;return ze(r,t,Ge(e,w.default(h,[ue,t]),{rootSchema:u,_recurseList:l,experimental_defaultFormStateBehavior:p,includeUndefinedValues:!0===f,parentDefaults:w.default(y,[t]),rawFormData:w.default(v,[t]),required:null===(n=h.required)||void 0===n?void 0:n.includes(t)}),f,m,h.required,p),r}),{});if(h.additionalProperties){var E,I=B(h.additionalProperties)?h.additionalProperties:{},D=new Set;B(y)&&Object.keys(y).filter((function(e){return!h.properties||!h.properties[e]})).forEach((function(e){return D.add(e)})),B(v)&&(E=[],Object.keys(v).filter((function(e){return!h.properties||!h.properties[e]})).forEach((function(e){D.add(e),E.push(e)}))),D.forEach((function(r){var t,n=Ge(e,I,{rootSchema:u,_recurseList:l,experimental_defaultFormStateBehavior:p,includeUndefinedValues:!0===f,parentDefaults:w.default(y,[r]),rawFormData:w.default(v,[r]),required:null===(t=h.required)||void 0===t?void 0:t.includes(r)});ze(A,r,n,f,m,E)}))}return A;case"array":var F;if(Array.isArray(y)&&(y=y.map((function(r,t){var n=Je(h,Le.Fallback,t);return Ge(e,n,{rootSchema:u,_recurseList:l,experimental_defaultFormStateBehavior:p,parentDefaults:r,required:m})}))),Array.isArray(o)){var j=Je(h);y=o.map((function(r,t){return Ge(e,j,{rootSchema:u,_recurseList:l,experimental_defaultFormStateBehavior:p,rawFormData:r,parentDefaults:w.default(y,[t]),required:m})}))}if("requiredOnly"===(null==p||null===(F=p.arrayMinItems)||void 0===F?void 0:F.populate)&&!m)return y||void 0;var T=Array.isArray(y)?y.length:0;if(!h.minItems||He(e,h,u)||h.minItems<=T)return y||[];var W=y||[],P=Je(h,Le.Invert),N=P.default,U=new Array(h.minItems-T).fill(Ge(e,P,{parentDefaults:N,rootSchema:u,_recurseList:l,experimental_defaultFormStateBehavior:p,required:m}));return W.concat(U)}return y}function Qe(e,r,t,n,i,o){if(void 0===i&&(i=!1),!B(r))throw new Error("Invalid schema: "+r);var a=Ge(e,Te(e,r,n,t),{rootSchema:n,includeUndefinedValues:i,experimental_defaultFormStateBehavior:o,rawFormData:t});if(null==t||"number"==typeof t&&isNaN(t))return a;var u=((null==o?void 0:o.arrayMinItems)||{}).mergeExtraDefaults;return B(t)||Array.isArray(t)?Ye(a,t,u):t}function Xe(e){return void 0===e&&(e={}),"widget"in he(e)&&"hidden"!==he(e).widget}function Ze(e,r,t,n){if(void 0===t&&(t={}),"files"===t[me])return!0;if(r.items){var i=Te(e,r.items,n);return"string"===i.type&&"data-url"===i.format}return!1}function er(e,r,t,n,i){void 0===t&&(t={});var o=he(t,i).label,a=!(void 0!==o&&!o),u=Ee(r);return"array"===u&&(a=He(e,r,n)||Ze(e,r,t,n)||Xe(t)),"object"===u&&(a=!1),"boolean"!==u||t[me]||(a=!1),t[pe]&&(a=!1),a}function rr(e,r,t){if(!t)return r;var n=r.errors,i=r.errorSchema,o=e.toErrorList(t),a=t;return _.default(i)||(a=Ve(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"}(Le||(Le={}));var tr=Symbol("no Value");function nr(e,r,t,n,i){var o;if(void 0===i&&(i={}),F.default(t,ue)){var a={};if(F.default(n,ue)){var u=w.default(n,ue,{});Object.keys(u).forEach((function(e){F.default(i,e)&&(a[e]=void 0)}))}var s=Object.keys(w.default(t,ue,{})),f={};s.forEach((function(o){var u=w.default(i,o),s=w.default(n,[ue,o],{}),d=w.default(t,[ue,o],{});F.default(s,de)&&(s=Te(e,s,r,u)),F.default(d,de)&&(d=Te(e,d,r,u));var l=w.default(s,"type"),c=w.default(d,"type");if(!l||l===c)if(F.default(a,o)&&delete a[o],"object"===c||"array"===c&&Array.isArray(u)){var p=nr(e,r,d,s,u);void 0===p&&"array"!==c||(f[o]=p)}else{var m=w.default(d,"default",tr),v=w.default(s,"default",tr);m!==tr&&m!==u&&(v===u?a[o]=m:!0===w.default(d,"readOnly")&&(a[o]=void 0));var h=w.default(d,"const",tr),y=w.default(s,"const",tr);h!==tr&&h!==u&&(a[o]=y===u?h:void 0)}})),o=Y({},i,a,f)}else if("array"===w.default(n,"type")&&"array"===w.default(t,"type")&&Array.isArray(i)){var d=w.default(n,"items"),l=w.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{F.default(d,de)&&(d=Te(e,d,r,i)),F.default(l,de)&&(l=Te(e,l,r,i));var c=w.default(d,"type"),p=w.default(l,"type");if(!c||c===p){var m=w.default(t,"maxItems",-1);o="object"===p?i.reduce((function(t,n){var i=nr(e,r,l,d,n);return void 0!==i&&(m<0||t.length<m)&&t.push(i),t}),[]):m>0&&i.length>m?i.slice(0,m):i}}}return o}function ir(e,r,t,n,i,o,a,u){if(void 0===u&&(u=[]),de in r||X in r||J in r){var s=Te(e,r,o,a);if(-1===u.findIndex((function(e){return M.default(e,s)})))return ir(e,s,t,n,i,o,a,u.concat(s))}if(ne in r&&!w.default(r,[ne,de]))return ir(e,w.default(r,ne),t,n,i,o,a,u);var f={$id:i||t};if("object"===Ee(r)&&ue in r)for(var d in r.properties){var l=w.default(r,[ue,d]),c=f[re]+n+d;f[d]=ir(e,B(l)?l:{},t,n,c,o,w.default(a,[d]),u)}return f}function or(e,r,t,n,i,o,a){return void 0===o&&(o="root"),void 0===a&&(a="_"),ir(e,r,o,a,t,n,i)}function ar(e,r,t,n,i,o){var a;if(void 0===o&&(o=[]),de in r||X in r||J in r){var u=Te(e,r,n,i);if(-1===o.findIndex((function(e){return M.default(e,u)})))return ar(e,u,t,n,i,o.concat(u))}var s=((a={})[oe]=t.replace(/^\./,""),a);if(ae in r||z in r){var f=ae in r?r.oneOf:r.anyOf,d=Oe(r),l=Re(e,n,i,f,0,d);s=Y({},s,ar(e,f[l],t,n,i,o))}if(H in r&&!1!==r[H]&&N.default(s,le,!0),ne in r&&Array.isArray(i))i.forEach((function(i,a){s[a]=ar(e,r.items,t+"."+a,n,i,o)}));else if(ue in r)for(var c in r.properties){var p=w.default(r,[ue,c]);s[c]=ar(e,p,t+"."+c,n,w.default(i,[c]),o)}return s}function ur(e,r,t,n,i){return void 0===t&&(t=""),ar(e,r,t,n,i)}var sr=function(){function e(e,r,t){this.rootSchema=void 0,this.validator=void 0,this.experimental_defaultFormStateBehavior=void 0,this.rootSchema=r,this.validator=e,this.experimental_defaultFormStateBehavior=t}var r=e.prototype;return r.getValidator=function(){return this.validator},r.doesSchemaUtilsDiffer=function(e,r,t){return void 0===t&&(t={}),!(!e||!r||this.validator===e&&ye(this.rootSchema,r)&&ye(this.experimental_defaultFormStateBehavior,t))},r.getDefaultFormState=function(e,r,t){return void 0===t&&(t=!1),Qe(this.validator,e,r,this.rootSchema,t,this.experimental_defaultFormStateBehavior)},r.getDisplayLabel=function(e,r,t){return er(this.validator,e,r,this.rootSchema,t)},r.getClosestMatchingOption=function(e,r,t,n){return Re(this.validator,this.rootSchema,e,r,t,n)},r.getFirstMatchingOption=function(e,r,t){return Se(this.validator,e,r,this.rootSchema,t)},r.getMatchingOption=function(e,r,t){return be(this.validator,e,r,this.rootSchema,t)},r.isFilesArray=function(e,r){return Ze(this.validator,e,r,this.rootSchema)},r.isMultiSelect=function(e){return He(this.validator,e,this.rootSchema)},r.isSelect=function(e){return $e(this.validator,e,this.rootSchema)},r.mergeValidationData=function(e,r){return rr(this.validator,e,r)},r.retrieveSchema=function(e,r){return Te(this.validator,e,this.rootSchema,r)},r.sanitizeDataForNewSchema=function(e,r,t){return nr(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="_"),or(this.validator,e,r,this.rootSchema,t,n,i)},r.toPathSchema=function(e,r,t){return ur(this.validator,e,r,this.rootSchema,t)},e}();function fr(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 dr(e,r,t){if(void 0===r&&(r=[]),Array.isArray(e))return e.map((function(e){return dr(e,r)})).filter((function(e){return e}));var n=""===e||null===e?-1:Number(e),i=r[n];return i?i.value:t}function lr(e,r){return Array.isArray(r)?r.some((function(r){return M.default(r,e)})):M.default(r,e)}var cr=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?w.default(this.errorSchema,e):this.errorSchema;return!r&&e&&N.default(this.errorSchema,e,r={}),r},n.resetAllErrors=function(e){return this.errorSchema=e?L.default(e):{},this},n.addErrors=function(e,r){var t,n=this.getOrCreateErrorBlock(r),i=w.default(n,ee);return Array.isArray(i)||(n[ee]=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,ee,n),this},n.clearErrors=function(e){var r=this.getOrCreateErrorBlock(e);return N.default(r,ee,[]),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 pr(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 mr,vr={props:{disabled:!1},submitText:"Submit",norender:!1},hr=["options"],yr={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 gr(e,r,t){void 0===t&&(t={});var n=Ee(e);if("function"==typeof r||r&&k.default.isForwardRef(g.createElement(r))||k.default.isMemo(r))return function(e){var r=w.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,hr);return y.jsx(e,Y({options:Y({},t,n)},i))})}return r}(r);if("string"!=typeof r)throw new Error("Unsupported widget definition: "+typeof r);if(r in t)return gr(e,t[r],t);if("string"==typeof n){if(!(n in yr))throw new Error("No widget for type '"+n+"'");if(r in yr[n])return gr(e,t[yr[n][r]],t)}throw new Error("No widget '"+r+"' for type '"+n+"'")}function xr(e){var r=new Set;return JSON.stringify(e,(function(e,t){return r.add(e),t})),function(e){for(var r=0,t=0;t<e.length;t+=1)r=(r<<5)-r+e.charCodeAt(t),r&=r;return r.toString(16)}(JSON.stringify(e,Array.from(r).sort()))}function br(e,r){return(T.default(e)?e:e[re])+"__"+r}function Sr(e){return br(e,"description")}function Or(e){return br(e,"error")}function Ar(e){return br(e,"examples")}function Er(e){return br(e,"help")}function wr(e){if(Z 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 _r(e,r){for(var t=String(e);t.length<r;)t="0"+t;return t}function Ir(e,r){if(void 0===r&&(r=[]),!e)return[];var t=[];return ee in e&&(t=t.concat(e[ee].map((function(e){var t="."+r.join(".");return{property:t,message:e,stack:t+" "+e}})))),Object.keys(e).reduce((function(t,n){if(n!==ee){var i=e[n];A.default(i)&&(t=t.concat(Ir(i,[].concat(r,[n]))))}return t}),t)}exports.TranslatableString=void 0,(mr=exports.TranslatableString||(exports.TranslatableString={})).ArrayItemTitle="Item",mr.MissingItems="Missing items definition",mr.YesLabel="Yes",mr.NoLabel="No",mr.CloseLabel="Close",mr.ErrorsLabel="Errors",mr.NewStringDefault="New Value",mr.AddButton="Add",mr.AddItemButton="Add Item",mr.CopyButton="Copy",mr.MoveDownButton="Move down",mr.MoveUpButton="Move up",mr.RemoveButton="Remove",mr.NowLabel="Now",mr.ClearLabel="Clear",mr.AriaDateLabel="Select a date",mr.PreviewLabel="Preview",mr.DecrementAriaLabel="Decrease value by 1",mr.IncrementAriaLabel="Increase value by 1",mr.UnknownFieldType="Unknown field type %1",mr.OptionPrefix="Option %1",mr.TitleOptionPrefix="%1 option %2",mr.KeyLabel="%1 Key",mr.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',mr.UnsupportedField="Unsupported field schema.",mr.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",mr.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",mr.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",mr.FilesInfo="<strong>%1</strong> (%2, %3 bytes)";var Dr=function(){function e(e){this.rootSchema=void 0,this.schemaMap={},this.rootSchema=e,this.addSchema(e,xr(e))}var r=e.prototype;return r.addSchema=function(e,r){var t,n=w.default(e,re,r),i=Y({},e,((t={})[re]=n,t)),o=this.schemaMap[n];if(o){if(!M.default(o,i))throw console.error("existing schema:",JSON.stringify(o,null,2)),console.error("new schema:",JSON.stringify(i,null,2)),new Error("Two different schemas exist with the same key "+n+"! What a bad coincidence. If possible, try adding an $id to one of the schemas")}else this.schemaMap[n]=i},r.getSchemaMap=function(){return this.schemaMap},r.isValid=function(e,r,t){if(!M.default(t,this.rootSchema))throw new Error("Unexpectedly calling isValid() with a rootSchema that differs from the construction rootSchema");return this.addSchema(e,xr(e)),!1},r.rawValidation=function(e,r){throw new Error("Unexpectedly calling the `rawValidation()` method during schema parsing")},r.toErrorList=function(e,r){throw new Error("Unexpectedly calling the `toErrorList()` method during schema parsing")},r.validateFormData=function(e,r,t,n,i){throw new Error("Unexpectedly calling the `validateFormData()` method during schema parsing")},e}();function Fr(e,r,t,n){Ne(e,n,t,void 0,!0).forEach((function(n){-1===r.findIndex((function(e){return M.default(e,n)}))&&(r.push(n),Ue(e,n,t,!0).forEach((function(i){ue in i&&i[ue]&&R.default(n[ue],(function(n){Fr(e,r,t,n)}))})),ne in n&&!Array.isArray(n.items)&&"boolean"!=typeof n.items&&Fr(e,r,t,n.items))}))}exports.ADDITIONAL_PROPERTIES_KEY=H,exports.ADDITIONAL_PROPERTY_FLAG=$,exports.ALL_OF_KEY=J,exports.ANY_OF_KEY=z,exports.CONST_KEY=G,exports.DEFAULT_KEY=Q,exports.DEFINITIONS_KEY="definitions",exports.DEPENDENCIES_KEY=X,exports.ENUM_KEY=Z,exports.ERRORS_KEY=ee,exports.ErrorSchemaBuilder=cr,exports.ID_KEY=re,exports.IF_KEY=te,exports.ITEMS_KEY=ne,exports.JUNK_OPTION_ID=ie,exports.NAME_KEY=oe,exports.ONE_OF_KEY=ae,exports.PROPERTIES_KEY=ue,exports.REF_KEY=de,exports.REQUIRED_KEY=se,exports.RJSF_ADDITONAL_PROPERTIES_FLAG=le,exports.ROOT_SCHEMA_PREFIX=ce,exports.SUBMIT_BTN_OPTIONS_KEY=fe,exports.UI_FIELD_KEY=pe,exports.UI_GLOBAL_OPTIONS_KEY="ui:globalOptions",exports.UI_OPTIONS_KEY=ve,exports.UI_WIDGET_KEY=me,exports.allowAdditionalItems=function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),B(e.additionalItems)},exports.ariaDescribedByIds=function(e,r){void 0===r&&(r=!1);var t=r?" "+Ar(e):"";return Or(e)+" "+Sr(e)+" "+Er(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=he(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={})[ee]=[],t.addError=function(e){this[ee].push(e)},t);if(Array.isArray(r))return r.reduce((function(r,t,n){var i;return Y({},r,((i={})[n]=e(t),i))}),n);if(A.default(r)){var i=r;return Object.keys(i).reduce((function(r,t){var n;return Y({},r,((n={})[t]=e(i[t]),n))}),n)}return n},exports.createSchemaUtils=function(e,r,t){return void 0===t&&(t={}),new sr(e,r,t)},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=ye,exports.descriptionId=Sr,exports.englishStringTranslator=function(e,r){return fr(e,r)},exports.enumOptionsDeselectValue=function(e,r,t){void 0===t&&(t=[]);var n=dr(e,t);return Array.isArray(r)?r.filter((function(e){return!M.default(e,n)})):M.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 lr(r.value,e)?String(t):void 0})).filter((function(e){return void 0!==e}));return t?n:n[0]},exports.enumOptionsIsSelected=lr,exports.enumOptionsSelectValue=function(e,r,t){void 0===t&&(t=[]);var n=dr(e,t);if(!v.isNil(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=dr,exports.errorId=Or,exports.examplesId=Ar,exports.findSchemaDefinition=xe,exports.getClosestMatchingOption=Re,exports.getDefaultFormState=Qe,exports.getDiscriminatorFieldFromSchema=Oe,exports.getDisplayLabel=er,exports.getFirstMatchingOption=Se,exports.getInputProps=function(e,r,t,n){void 0===t&&(t={}),void 0===n&&(n=!0);var i=Y({type:r||"text"},pr(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=be,exports.getSchemaType=Ee,exports.getSubmitButtonOptions=function(e){void 0===e&&(e={});var r=he(e);return r&&r[fe]?Y({},vr,r[fe]):vr},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=he,exports.getWidget=gr,exports.guessType=Ae,exports.hasWidget=function(e,r,t){void 0===t&&(t={});try{return gr(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.hashForSchema=xr,exports.helpId=Er,exports.isConstant=Ke,exports.isCustomWidget=Xe,exports.isFilesArray=Ze,exports.isFixedItems=Be,exports.isMultiSelect=He,exports.isObject=B,exports.isSelect=$e,exports.labelValue=function(e,r,t){return r?t:e},exports.localToUTC=function(e){return e?new Date(e).toJSON():void 0},exports.mergeDefaultsWithFormData=Ye,exports.mergeObjects=Ve,exports.mergeSchemas=we,exports.mergeValidationData=rr,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=wr(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=_r,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=pr,exports.replaceStringParameters=fr,exports.retrieveSchema=Te,exports.sanitizeDataForNewSchema=nr,exports.schemaParser=function(e){var r=new Dr(e);return Fr(r,[],e,e),r.getSchemaMap()},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!ye(e.props,r)||!ye(n,t)},exports.titleId=function(e){return br(e,"title")},exports.toConstant=wr,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=Ir,exports.toErrorSchema=function(e){var r=new cr;return e.length&&e.forEach((function(e){var t=e.property,n=e.message,i="."===t?[]:C.default(t);i.length>0&&""===i[0]&&i.splice(0,1),n&&r.addErrors(n,i)})),r.ErrorSchema},exports.toIdSchema=or,exports.toPathSchema=ur,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 A.default(a)?Y({},t,((o={})[n]=e(a),o)):Y({},t,((i={})[n]=a,i))}),{})},exports.utcToLocal=function(e){if(!e)return"";var r=new Date(e);return _r(r.getFullYear(),4)+"-"+_r(r.getMonth()+1,2)+"-"+_r(r.getDate(),2)+"T"+_r(r.getHours(),2)+":"+_r(r.getMinutes(),2)+":"+_r(r.getSeconds(),2)+"."+_r(r.getMilliseconds(),3)},exports.validationDataMerge=function(e,r){if(!r)return e;var t=e.errors,n=e.errorSchema,i=Ir(r),o=r;return _.default(n)||(o=Ve(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]=t===de&&"string"==typeof n&&n.startsWith("#")?ce+n:e(n)}return r}(Y({},r)):Array.isArray(r)?function(r){for(var t=0;t<r.length;t++)r[t]=e(r[t]);return r}([].concat(r)):r}; | ||
"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"),m=require("lodash/isEqual"),v=require("lodash"),h=require("lodash/cloneDeep"),y=require("react/jsx-runtime"),g=require("react"),x=require("react-is"),b=require("lodash/toPath"),S=require("lodash/forEach");function O(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var A=O(e),E=O(r),w=O(t),_=O(n),I=O(i),D=O(o),F=O(a),j=O(u),T=O(s),W=O(f),P=O(d),N=O(l),U=O(c),q=O(p),M=O(m),L=O(h),k=O(x),C=O(b),R=O(S);function B(e){return!("undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Date&&e instanceof Date||"object"!=typeof e||null===e||Array.isArray(e))}function Y(){return Y=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},Y.apply(this,arguments)}function V(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 $="__additional_property",H="additionalProperties",J="allOf",z="anyOf",G="const",Q="default",X="dependencies",Z="enum",ee="__errors",re="$id",te="if",ne="items",ie="_$junk_option_schema_id$_",oe="$name",ae="oneOf",ue="properties",se="required",fe="submitButtonOptions",de="$ref",le="__rjsf_additionalProperties",ce="__rjsf_rootSchema",pe="ui:field",me="ui:widget",ve="ui:options";function he(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===me&&B(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):t===ve&&B(i)?Y({},r,i):Y({},r,((n={})[t.substring(3)]=i,n))}),Y({},r))}function ye(e,r){return E.default(e,r,(function(e,r){if("function"==typeof e&&"function"==typeof r)return!0}))}function ge(e,r){var t=r[e];return[D.default(r,[e]),t]}function xe(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=I.default.get(r,t);if(void 0===n)throw new Error("Could not find a definition for "+e+".");if(n[de]){var i=ge(de,n),o=i[0],a=xe(i[1],r);return Object.keys(o).length>0?Y({},o,a):a}return n}function be(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&&F.default(a,[ue,i])){var u=w.default(r,i),s=w.default(a,[ue,i],{});if(e.isValid(s,u,n))return o}else if(a[ue]){var f={anyOf:Object.keys(a[ue]).map((function(e){return{required:[e]}}))},d=void 0;if(a.anyOf){var l=Y({},(V(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 Se(e,r,t,n,i){return be(e,r,t,n,i)}function Oe(e){var r,t=w.default(e,"discriminator.propertyName",void 0);return T.default(t)?r=t:void 0!==t&&console.warn('Expecting discriminator to be a string, got "'+typeof t+'" instead'),r}function Ae(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 Ee(e){var r=e.type;return!r&&e.const?Ae(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 we(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&&B(o)?we(i,o):e&&r&&("object"===Ee(e)||"object"===Ee(r))&&n===se&&Array.isArray(i)&&Array.isArray(o)?q.default(i,o):o,t}),t)}var _e=["if","then","else"],Ie=["$ref"],De=["allOf"],Fe=["oneOf","anyOf"],je=["dependencies"],Te=["oneOf"];function We(e,r,t,n){return void 0===t&&(t={}),Ue(e,r,t,n)[0]}function Pe(e){return e.reduce((function(e,r){return r.length>1?r.flatMap((function(r){return P.default(e.length,(function(t){return[].concat(e[t]).concat(r)}))})):(e.forEach((function(e){return e.push(r[0])})),e)}),[[]])}function Ne(e,r,t,n,i){var o=r.$ref,a=K(r,Ie);return Ue(e,Y({},xe(o,t),a),t,i,n)}function Ue(e,r,t,n,i){if(void 0===i&&(i=!1),!B(r))return[{}];var o=function(e,r,t,n,i){return de in r?Ne(e,r,t,n,i):X in r?Me(e,r,t,n,i).flatMap((function(r){return Ue(e,r,t,i,n)})):J in r&&Array.isArray(r.allOf)?Pe(r.allOf.map((function(r){return Ue(e,r,t,i,n)}))).map((function(e){return Y({},r,{allOf:e})})):[r]}(e,r,t,i,n);return o.flatMap((function(r){var o=r;if(te in o)return function(e,r,t,n,i){var o=r.if,a=r.then,u=r.else,s=K(r,_e),f=e.isValid(o,i||{},t),d=[s],l=[];if(n)a&&"boolean"!=typeof a&&(l=l.concat(Ue(e,a,t,i,n))),u&&"boolean"!=typeof u&&(l=l.concat(Ue(e,u,t,i,n)));else{var c=f?a:u;c&&"boolean"!=typeof c&&(l=l.concat(Ue(e,c,t,i,n)))}return l.length&&(d=l.map((function(e){return we(s,e)}))),d.flatMap((function(r){return Ue(e,r,t,i,n)}))}(e,o,t,i,n);if(J in o)try{o=U.default(o,{deep:!1})}catch(e){console.warn("could not merge subschemas in allOf:\n",e);var a=o.allOf,u=K(o,De);return i&&a?[u].concat(a):u}return H in o&&!1!==o.additionalProperties?function(e,r,t,n){var i=Y({},r,{properties:Y({},r.properties)}),o=n&&B(n)?n:{};return Object.keys(o).forEach((function(r){var n;r in i.properties||(n="boolean"!=typeof i.additionalProperties?de in i.additionalProperties?We(e,{$ref:w.default(i.additionalProperties,[de])},t,o):"type"in i.additionalProperties?Y({},i.additionalProperties):z in i.additionalProperties||ae in i.additionalProperties?Y({type:"object"},i.additionalProperties):{type:Ae(w.default(o,[r]))}:{type:Ae(w.default(o,[r]))},i.properties[r]=n,N.default(i.properties,[r,$],!0))})),i}(e,o,t,n):o}))}function qe(e,r,t,n,i){var o,a=r.oneOf,u=r.anyOf,s=K(r,Fe);if(Array.isArray(a)?o=a:Array.isArray(u)&&(o=u),o){var f=void 0===i&&n?{}:i,d=Oe(r);o=o.map((function(r){return de in r?Ne(e,r,t,!1,f)[0]:r}));var l=Se(e,f,o,t,d);if(n)return o.map((function(e){return Y({},s,e)}));r=Y({},s,o[l])}return[r]}function Me(e,r,t,n,i){var o=r.dependencies,a=K(r,je);return qe(e,a,t,n,i).flatMap((function(r){return Le(e,o,r,t,n,i)}))}function Le(e,r,t,n,i,o){var a=[t],u=function(){if(!i&&void 0===w.default(o,[s]))return"continue";if(t.properties&&!(s in t.properties))return"continue";var u,f,d=ge(s,r),l=d[0],c=d[1];return Array.isArray(c)?a[0]=(u=t,(f=c)?Y({},u,{required:Array.isArray(u.required)?Array.from(new Set([].concat(u.required,f))):f}):u):B(c)&&(a=function(e,r,t,n,i,o,a){return Ue(e,i,t,a,o).flatMap((function(i){var u=i.oneOf,s=K(i,Te);return r=we(r,s),void 0===u?r:Pe(u.map((function(r){return"boolean"!=typeof r&&de in r?Ne(e,r,t,o,a):[r]}))).flatMap((function(i){return function(e,r,t,n,i,o,a){var u=i.filter((function(r){if("boolean"==typeof r||!r||!r.properties)return!1;var i=r.properties[n];if(i){var u,s={type:"object",properties:(u={},u[n]=i,u)};return e.isValid(s,a,t)||o}return!1}));return o||1===u.length?u.flatMap((function(i){var u=Y({},i,{properties:ge(n,i.properties)[0]});return Ue(e,u,t,a,o).map((function(e){return we(r,e)}))})):(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[r])}(e,r,t,n,i,o,a)}))}))}(e,t,n,s,c,i,o)),{v:a.flatMap((function(r){return Le(e,l,r,n,i,o)}))}};for(var s in r){var f=u();if("continue"!==f&&"object"==typeof f)return f.v}return a}var ke={type:"object",$id:ie,properties:{__not_really_there__:{type:"number"}}};function Ce(e,r,t,n){void 0===n&&(n={});var i=0;return t&&(j.default(t.properties)?i+=W.default(t.properties,(function(t,i,o){var a=w.default(n,o);if("boolean"==typeof i)return t;if(F.default(i,de)){var u=We(e,i,r,a);return t+Ce(e,r,u,a||{})}if((F.default(i,ae)||F.default(i,z))&&a){var s=F.default(i,ae)?ae:z,f=Oe(i);return t+Re(e,r,a,w.default(i,s),-1,f)}if("object"===i.type)return t+Ce(e,r,i,a||{});if(i.type===Ae(a)){var d=t+1;return i.default?d+=a===i.default?1:-1:i.const&&(d+=a===i.const?1:-1),d}return t}),0):T.default(t.type)&&t.type===Ae(n)&&(i+=1)),i}function Re(e,r,t,n,i,o){void 0===i&&(i=-1);var a=n.map((function(n){return F.default(n,de)?We(e,n,r,t):n})),u=a.reduce((function(n,i,a){return 1===Se(e,t,[ke,i],r,o)&&n.push(a),n}),[]);if(1===u.length)return u[0];u.length||P.default(a.length,(function(e){return u.push(e)}));var s=new Set,f=u.reduce((function(n,i){var o=n.bestScore,u=Ce(e,r,a[i],t);return s.add(u),u>o?{bestIndex:i,bestScore:u}:n}),{bestIndex:i,bestScore:0});return 1===s.size&&i>=0?i:f.bestIndex}function Be(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((function(e){return B(e)}))}function Ye(e,r,t){if(void 0===t&&(t=!1),Array.isArray(r)){var n=Array.isArray(e)?e:[],i=r.map((function(e,r){return n[r]?Ye(n[r],e,t):e}));return t&&i.length<n.length&&i.push.apply(i,n.slice(i.length)),i}if(B(r)){var o=Object.assign({},e);return Object.keys(r).reduce((function(n,i){return n[i]=Ye(e?w.default(e,i):{},w.default(r,i),t),n}),o)}return r}function Ve(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&&B(a))n[i]=Ve(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 Ke(e){return Array.isArray(e.enum)&&1===e.enum.length||G in e}function $e(e,r,t){void 0===t&&(t={});var n=We(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&&Ke(e)}))}function He(e,r,t){return!(!r.uniqueItems||!r.items||"boolean"==typeof r.items)&&$e(e,r.items,t)}var Je,ze=["oneOf"],Ge=["anyOf"];function Qe(e,r,t){if(void 0===r&&(r=Je.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!==Je.Ignore&&B(e.additionalItems)?e.additionalItems:{}}function Xe(e,r,t,n,i,o,a){void 0===o&&(o=[]),void 0===a&&(a={});var u=a.emptyObjectFields,s=void 0===u?"populateAllDefaults":u;if(n)e[r]=t;else if("skipDefaults"!==s)if(B(t)){var f=void 0===i?o.includes(r):i;_.default(t)&&!o.includes(r)||!f&&"populateRequiredDefaults"===s||(e[r]=t)}else void 0===t||"populateAllDefaults"!==s&&!o.includes(r)||(e[r]=t)}function Ze(e,r,t){var n=void 0===t?{}:t,i=n.parentDefaults,o=n.rawFormData,a=n.rootSchema,u=void 0===a?{}:a,s=n.includeUndefinedValues,f=void 0!==s&&s,d=n._recurseList,l=void 0===d?[]:d,c=n.experimental_defaultFormStateBehavior,p=void 0===c?void 0:c,m=n.required,v=B(o)?o:{},h=B(r)?r:{},y=i,g=null,x=l;if(B(y)&&B(h.default))y=Ve(y,h.default);else if(Q in h)y=h.default;else if(de in h){var b=h[de];l.includes(b)||(x=l.concat(b),g=xe(b,u))}else if(X in h)g=Me(e,h,u,!1,v)[0];else if(Be(h))y=h.items.map((function(r,t){return Ze(e,r,{rootSchema:u,includeUndefinedValues:f,_recurseList:l,experimental_defaultFormStateBehavior:p,parentDefaults:Array.isArray(i)?i[t]:void 0,rawFormData:v,required:m})}));else if(ae in h){var S=h.oneOf,O=K(h,ze);if(0===S.length)return;var A=Oe(h);g=Y({},O,g=S[Re(e,u,_.default(v)?void 0:v,S,0,A)])}else if(z in h){var E=h.anyOf,I=K(h,Ge);if(0===E.length)return;var D=Oe(h);g=Y({},I,g=E[Re(e,u,_.default(v)?void 0:v,E,0,D)])}if(g)return Ze(e,g,{rootSchema:u,includeUndefinedValues:f,_recurseList:x,experimental_defaultFormStateBehavior:p,parentDefaults:y,rawFormData:v,required:m});switch(void 0===y&&(y=h.default),Ee(h)){case"object":var F=Object.keys(h.properties||{}).reduce((function(r,t){var n;return Xe(r,t,Ze(e,w.default(h,[ue,t]),{rootSchema:u,_recurseList:l,experimental_defaultFormStateBehavior:p,includeUndefinedValues:!0===f,parentDefaults:w.default(y,[t]),rawFormData:w.default(v,[t]),required:null===(n=h.required)||void 0===n?void 0:n.includes(t)}),f,m,h.required,p),r}),{});if(h.additionalProperties){var j,T=B(h.additionalProperties)?h.additionalProperties:{},W=new Set;B(y)&&Object.keys(y).filter((function(e){return!h.properties||!h.properties[e]})).forEach((function(e){return W.add(e)})),B(v)&&(j=[],Object.keys(v).filter((function(e){return!h.properties||!h.properties[e]})).forEach((function(e){W.add(e),j.push(e)}))),W.forEach((function(r){var t,n=Ze(e,T,{rootSchema:u,_recurseList:l,experimental_defaultFormStateBehavior:p,includeUndefinedValues:!0===f,parentDefaults:w.default(y,[r]),rawFormData:w.default(v,[r]),required:null===(t=h.required)||void 0===t?void 0:t.includes(r)});Xe(F,r,n,f,m,j)}))}return F;case"array":var P;if(Array.isArray(y)&&(y=y.map((function(r,t){var n=Qe(h,Je.Fallback,t);return Ze(e,n,{rootSchema:u,_recurseList:l,experimental_defaultFormStateBehavior:p,parentDefaults:r,required:m})}))),Array.isArray(o)){var N=Qe(h);y=o.map((function(r,t){return Ze(e,N,{rootSchema:u,_recurseList:l,experimental_defaultFormStateBehavior:p,rawFormData:r,parentDefaults:w.default(y,[t]),required:m})}))}if("requiredOnly"===(null==p||null===(P=p.arrayMinItems)||void 0===P?void 0:P.populate)&&!m)return y||void 0;var U=Array.isArray(y)?y.length:0;if(!h.minItems||He(e,h,u)||h.minItems<=U)return y||[];var q=y||[],M=Qe(h,Je.Invert),L=M.default,k=new Array(h.minItems-U).fill(Ze(e,M,{parentDefaults:L,rootSchema:u,_recurseList:l,experimental_defaultFormStateBehavior:p,required:m}));return q.concat(k)}return y}function er(e,r,t,n,i,o){if(void 0===i&&(i=!1),!B(r))throw new Error("Invalid schema: "+r);var a=Ze(e,We(e,r,n,t),{rootSchema:n,includeUndefinedValues:i,experimental_defaultFormStateBehavior:o,rawFormData:t});if(null==t||"number"==typeof t&&isNaN(t))return a;var u=((null==o?void 0:o.arrayMinItems)||{}).mergeExtraDefaults;return B(t)||Array.isArray(t)?Ye(a,t,u):t}function rr(e){return void 0===e&&(e={}),"widget"in he(e)&&"hidden"!==he(e).widget}function tr(e,r,t,n){if(void 0===t&&(t={}),"files"===t[me])return!0;if(r.items){var i=We(e,r.items,n);return"string"===i.type&&"data-url"===i.format}return!1}function nr(e,r,t,n,i){void 0===t&&(t={});var o=he(t,i).label,a=!(void 0!==o&&!o),u=Ee(r);return"array"===u&&(a=He(e,r,n)||tr(e,r,t,n)||rr(t)),"object"===u&&(a=!1),"boolean"!==u||t[me]||(a=!1),t[pe]&&(a=!1),a}function ir(e,r,t){if(!t)return r;var n=r.errors,i=r.errorSchema,o=e.toErrorList(t),a=t;return _.default(i)||(a=Ve(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"}(Je||(Je={}));var or=Symbol("no Value");function ar(e,r,t,n,i){var o;if(void 0===i&&(i={}),F.default(t,ue)){var a={};if(F.default(n,ue)){var u=w.default(n,ue,{});Object.keys(u).forEach((function(e){F.default(i,e)&&(a[e]=void 0)}))}var s=Object.keys(w.default(t,ue,{})),f={};s.forEach((function(o){var u=w.default(i,o),s=w.default(n,[ue,o],{}),d=w.default(t,[ue,o],{});F.default(s,de)&&(s=We(e,s,r,u)),F.default(d,de)&&(d=We(e,d,r,u));var l=w.default(s,"type"),c=w.default(d,"type");if(!l||l===c)if(F.default(a,o)&&delete a[o],"object"===c||"array"===c&&Array.isArray(u)){var p=ar(e,r,d,s,u);void 0===p&&"array"!==c||(f[o]=p)}else{var m=w.default(d,"default",or),v=w.default(s,"default",or);m!==or&&m!==u&&(v===u?a[o]=m:!0===w.default(d,"readOnly")&&(a[o]=void 0));var h=w.default(d,"const",or),y=w.default(s,"const",or);h!==or&&h!==u&&(a[o]=y===u?h:void 0)}})),o=Y({},i,a,f)}else if("array"===w.default(n,"type")&&"array"===w.default(t,"type")&&Array.isArray(i)){var d=w.default(n,"items"),l=w.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{F.default(d,de)&&(d=We(e,d,r,i)),F.default(l,de)&&(l=We(e,l,r,i));var c=w.default(d,"type"),p=w.default(l,"type");if(!c||c===p){var m=w.default(t,"maxItems",-1);o="object"===p?i.reduce((function(t,n){var i=ar(e,r,l,d,n);return void 0!==i&&(m<0||t.length<m)&&t.push(i),t}),[]):m>0&&i.length>m?i.slice(0,m):i}}}return o}function ur(e,r,t,n,i,o,a,u){if(void 0===u&&(u=[]),de in r||X in r||J in r){var s=We(e,r,o,a);if(-1===u.findIndex((function(e){return M.default(e,s)})))return ur(e,s,t,n,i,o,a,u.concat(s))}if(ne in r&&!w.default(r,[ne,de]))return ur(e,w.default(r,ne),t,n,i,o,a,u);var f={$id:i||t};if("object"===Ee(r)&&ue in r)for(var d in r.properties){var l=w.default(r,[ue,d]),c=f[re]+n+d;f[d]=ur(e,B(l)?l:{},t,n,c,o,w.default(a,[d]),u)}return f}function sr(e,r,t,n,i,o,a){return void 0===o&&(o="root"),void 0===a&&(a="_"),ur(e,r,o,a,t,n,i)}function fr(e,r,t,n,i,o){var a;if(void 0===o&&(o=[]),de in r||X in r||J in r){var u=We(e,r,n,i);if(-1===o.findIndex((function(e){return M.default(e,u)})))return fr(e,u,t,n,i,o.concat(u))}var s=((a={})[oe]=t.replace(/^\./,""),a);if(ae in r||z in r){var f=ae in r?r.oneOf:r.anyOf,d=Oe(r),l=Re(e,n,i,f,0,d);s=Y({},s,fr(e,f[l],t,n,i,o))}if(H in r&&!1!==r[H]&&N.default(s,le,!0),ne in r&&Array.isArray(i))i.forEach((function(i,a){s[a]=fr(e,r.items,t+"."+a,n,i,o)}));else if(ue in r)for(var c in r.properties){var p=w.default(r,[ue,c]);s[c]=fr(e,p,t+"."+c,n,w.default(i,[c]),o)}return s}function dr(e,r,t,n,i){return void 0===t&&(t=""),fr(e,r,t,n,i)}var lr=function(){function e(e,r,t){this.rootSchema=void 0,this.validator=void 0,this.experimental_defaultFormStateBehavior=void 0,this.rootSchema=r,this.validator=e,this.experimental_defaultFormStateBehavior=t}var r=e.prototype;return r.getValidator=function(){return this.validator},r.doesSchemaUtilsDiffer=function(e,r,t){return void 0===t&&(t={}),!(!e||!r||this.validator===e&&ye(this.rootSchema,r)&&ye(this.experimental_defaultFormStateBehavior,t))},r.getDefaultFormState=function(e,r,t){return void 0===t&&(t=!1),er(this.validator,e,r,this.rootSchema,t,this.experimental_defaultFormStateBehavior)},r.getDisplayLabel=function(e,r,t){return nr(this.validator,e,r,this.rootSchema,t)},r.getClosestMatchingOption=function(e,r,t,n){return Re(this.validator,this.rootSchema,e,r,t,n)},r.getFirstMatchingOption=function(e,r,t){return Se(this.validator,e,r,this.rootSchema,t)},r.getMatchingOption=function(e,r,t){return be(this.validator,e,r,this.rootSchema,t)},r.isFilesArray=function(e,r){return tr(this.validator,e,r,this.rootSchema)},r.isMultiSelect=function(e){return He(this.validator,e,this.rootSchema)},r.isSelect=function(e){return $e(this.validator,e,this.rootSchema)},r.mergeValidationData=function(e,r){return ir(this.validator,e,r)},r.retrieveSchema=function(e,r){return We(this.validator,e,this.rootSchema,r)},r.sanitizeDataForNewSchema=function(e,r,t){return ar(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="_"),sr(this.validator,e,r,this.rootSchema,t,n,i)},r.toPathSchema=function(e,r,t){return dr(this.validator,e,r,this.rootSchema,t)},e}();function cr(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 pr(e,r,t){if(void 0===r&&(r=[]),Array.isArray(e))return e.map((function(e){return pr(e,r)})).filter((function(e){return e}));var n=""===e||null===e?-1:Number(e),i=r[n];return i?i.value:t}function mr(e,r){return Array.isArray(r)?r.some((function(r){return M.default(r,e)})):M.default(r,e)}var vr=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?w.default(this.errorSchema,e):this.errorSchema;return!r&&e&&N.default(this.errorSchema,e,r={}),r},n.resetAllErrors=function(e){return this.errorSchema=e?L.default(e):{},this},n.addErrors=function(e,r){var t,n=this.getOrCreateErrorBlock(r),i=w.default(n,ee);return Array.isArray(i)||(n[ee]=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,ee,n),this},n.clearErrors=function(e){var r=this.getOrCreateErrorBlock(e);return N.default(r,ee,[]),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 hr(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 yr,gr={props:{disabled:!1},submitText:"Submit",norender:!1},xr=["options"],br={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=Ee(e);if("function"==typeof r||r&&k.default.isForwardRef(g.createElement(r))||k.default.isMemo(r))return function(e){var r=w.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,xr);return y.jsx(e,Y({options:Y({},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 br))throw new Error("No widget for type '"+n+"'");if(r in br[n])return Sr(e,t[br[n][r]],t)}throw new Error("No widget '"+r+"' for type '"+n+"'")}function Or(e){var r=new Set;return JSON.stringify(e,(function(e,t){return r.add(e),t})),function(e){for(var r=0,t=0;t<e.length;t+=1)r=(r<<5)-r+e.charCodeAt(t),r&=r;return r.toString(16)}(JSON.stringify(e,Array.from(r).sort()))}function Ar(e,r){return(T.default(e)?e:e[re])+"__"+r}function Er(e){return Ar(e,"description")}function wr(e){return Ar(e,"error")}function _r(e){return Ar(e,"examples")}function Ir(e){return Ar(e,"help")}function Dr(e){if(Z 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 Fr(e,r){for(var t=String(e);t.length<r;)t="0"+t;return t}function jr(e,r){if(void 0===r&&(r=[]),!e)return[];var t=[];return ee in e&&(t=t.concat(e[ee].map((function(e){var t="."+r.join(".");return{property:t,message:e,stack:t+" "+e}})))),Object.keys(e).reduce((function(t,n){if(n!==ee){var i=e[n];A.default(i)&&(t=t.concat(jr(i,[].concat(r,[n]))))}return t}),t)}exports.TranslatableString=void 0,(yr=exports.TranslatableString||(exports.TranslatableString={})).ArrayItemTitle="Item",yr.MissingItems="Missing items definition",yr.YesLabel="Yes",yr.NoLabel="No",yr.CloseLabel="Close",yr.ErrorsLabel="Errors",yr.NewStringDefault="New Value",yr.AddButton="Add",yr.AddItemButton="Add Item",yr.CopyButton="Copy",yr.MoveDownButton="Move down",yr.MoveUpButton="Move up",yr.RemoveButton="Remove",yr.NowLabel="Now",yr.ClearLabel="Clear",yr.AriaDateLabel="Select a date",yr.PreviewLabel="Preview",yr.DecrementAriaLabel="Decrease value by 1",yr.IncrementAriaLabel="Increase value by 1",yr.UnknownFieldType="Unknown field type %1",yr.OptionPrefix="Option %1",yr.TitleOptionPrefix="%1 option %2",yr.KeyLabel="%1 Key",yr.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',yr.UnsupportedField="Unsupported field schema.",yr.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",yr.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",yr.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",yr.FilesInfo="<strong>%1</strong> (%2, %3 bytes)";var Tr=function(){function e(e){this.rootSchema=void 0,this.schemaMap={},this.rootSchema=e,this.addSchema(e,Or(e))}var r=e.prototype;return r.addSchema=function(e,r){var t,n=w.default(e,re,r),i=Y({},e,((t={})[re]=n,t)),o=this.schemaMap[n];if(o){if(!M.default(o,i))throw console.error("existing schema:",JSON.stringify(o,null,2)),console.error("new schema:",JSON.stringify(i,null,2)),new Error("Two different schemas exist with the same key "+n+"! What a bad coincidence. If possible, try adding an $id to one of the schemas")}else this.schemaMap[n]=i},r.getSchemaMap=function(){return this.schemaMap},r.isValid=function(e,r,t){if(!M.default(t,this.rootSchema))throw new Error("Unexpectedly calling isValid() with a rootSchema that differs from the construction rootSchema");return this.addSchema(e,Or(e)),!1},r.rawValidation=function(e,r){throw new Error("Unexpectedly calling the `rawValidation()` method during schema parsing")},r.toErrorList=function(e,r){throw new Error("Unexpectedly calling the `toErrorList()` method during schema parsing")},r.validateFormData=function(e,r,t,n,i){throw new Error("Unexpectedly calling the `validateFormData()` method during schema parsing")},e}();function Wr(e,r,t,n){Ue(e,n,t,void 0,!0).forEach((function(n){-1===r.findIndex((function(e){return M.default(e,n)}))&&(r.push(n),qe(e,n,t,!0).forEach((function(i){ue in i&&i[ue]&&R.default(n[ue],(function(n){Wr(e,r,t,n)}))})),ne in n&&!Array.isArray(n.items)&&"boolean"!=typeof n.items&&Wr(e,r,t,n.items))}))}exports.ADDITIONAL_PROPERTIES_KEY=H,exports.ADDITIONAL_PROPERTY_FLAG=$,exports.ALL_OF_KEY=J,exports.ANY_OF_KEY=z,exports.CONST_KEY=G,exports.DEFAULT_KEY=Q,exports.DEFINITIONS_KEY="definitions",exports.DEPENDENCIES_KEY=X,exports.ENUM_KEY=Z,exports.ERRORS_KEY=ee,exports.ErrorSchemaBuilder=vr,exports.ID_KEY=re,exports.IF_KEY=te,exports.ITEMS_KEY=ne,exports.JUNK_OPTION_ID=ie,exports.NAME_KEY=oe,exports.ONE_OF_KEY=ae,exports.PROPERTIES_KEY=ue,exports.REF_KEY=de,exports.REQUIRED_KEY=se,exports.RJSF_ADDITONAL_PROPERTIES_FLAG=le,exports.ROOT_SCHEMA_PREFIX=ce,exports.SUBMIT_BTN_OPTIONS_KEY=fe,exports.UI_FIELD_KEY=pe,exports.UI_GLOBAL_OPTIONS_KEY="ui:globalOptions",exports.UI_OPTIONS_KEY=ve,exports.UI_WIDGET_KEY=me,exports.allowAdditionalItems=function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),B(e.additionalItems)},exports.ariaDescribedByIds=function(e,r){void 0===r&&(r=!1);var t=r?" "+_r(e):"";return wr(e)+" "+Er(e)+" "+Ir(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=he(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={})[ee]=[],t.addError=function(e){this[ee].push(e)},t);if(Array.isArray(r))return r.reduce((function(r,t,n){var i;return Y({},r,((i={})[n]=e(t),i))}),n);if(A.default(r)){var i=r;return Object.keys(i).reduce((function(r,t){var n;return Y({},r,((n={})[t]=e(i[t]),n))}),n)}return n},exports.createSchemaUtils=function(e,r,t){return void 0===t&&(t={}),new lr(e,r,t)},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=ye,exports.descriptionId=Er,exports.englishStringTranslator=function(e,r){return cr(e,r)},exports.enumOptionsDeselectValue=function(e,r,t){void 0===t&&(t=[]);var n=pr(e,t);return Array.isArray(r)?r.filter((function(e){return!M.default(e,n)})):M.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 mr(r.value,e)?String(t):void 0})).filter((function(e){return void 0!==e}));return t?n:n[0]},exports.enumOptionsIsSelected=mr,exports.enumOptionsSelectValue=function(e,r,t){void 0===t&&(t=[]);var n=pr(e,t);if(!v.isNil(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=pr,exports.errorId=wr,exports.examplesId=_r,exports.findSchemaDefinition=xe,exports.getClosestMatchingOption=Re,exports.getDefaultFormState=er,exports.getDiscriminatorFieldFromSchema=Oe,exports.getDisplayLabel=nr,exports.getFirstMatchingOption=Se,exports.getInputProps=function(e,r,t,n){void 0===t&&(t={}),void 0===n&&(n=!0);var i=Y({type:r||"text"},hr(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=be,exports.getSchemaType=Ee,exports.getSubmitButtonOptions=function(e){void 0===e&&(e={});var r=he(e);return r&&r[fe]?Y({},gr,r[fe]):gr},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=he,exports.getWidget=Sr,exports.guessType=Ae,exports.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}},exports.hashForSchema=Or,exports.helpId=Ir,exports.isConstant=Ke,exports.isCustomWidget=rr,exports.isFilesArray=tr,exports.isFixedItems=Be,exports.isMultiSelect=He,exports.isObject=B,exports.isSelect=$e,exports.labelValue=function(e,r,t){return r?t:e},exports.localToUTC=function(e){return e?new Date(e).toJSON():void 0},exports.mergeDefaultsWithFormData=Ye,exports.mergeObjects=Ve,exports.mergeSchemas=we,exports.mergeValidationData=ir,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=Dr(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=Fr,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=hr,exports.replaceStringParameters=cr,exports.retrieveSchema=We,exports.sanitizeDataForNewSchema=ar,exports.schemaParser=function(e){var r=new Tr(e);return Wr(r,[],e,e),r.getSchemaMap()},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!ye(e.props,r)||!ye(n,t)},exports.titleId=function(e){return Ar(e,"title")},exports.toConstant=Dr,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=jr,exports.toErrorSchema=function(e){var r=new vr;return e.length&&e.forEach((function(e){var t=e.property,n=e.message,i="."===t?[]:C.default(t);i.length>0&&""===i[0]&&i.splice(0,1),n&&r.addErrors(n,i)})),r.ErrorSchema},exports.toIdSchema=sr,exports.toPathSchema=dr,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 A.default(a)?Y({},t,((o={})[n]=e(a),o)):Y({},t,((i={})[n]=a,i))}),{})},exports.utcToLocal=function(e){if(!e)return"";var r=new Date(e);return Fr(r.getFullYear(),4)+"-"+Fr(r.getMonth()+1,2)+"-"+Fr(r.getDate(),2)+"T"+Fr(r.getHours(),2)+":"+Fr(r.getMinutes(),2)+":"+Fr(r.getSeconds(),2)+"."+Fr(r.getMilliseconds(),3)},exports.validationDataMerge=function(e,r){if(!r)return e;var t=e.errors,n=e.errorSchema,i=jr(r),o=r;return _.default(n)||(o=Ve(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]=t===de&&"string"==typeof n&&n.startsWith("#")?ce+n:e(n)}return r}(Y({},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/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"),require("lodash-es/cloneDeep"),require("react/jsx-runtime"),require("react"),require("react-is"),require("lodash-es/toPath"),require("lodash-es/forEach")):"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","lodash-es/cloneDeep","react/jsx-runtime","react","react-is","lodash-es/toPath","lodash-es/forEach"],t):t((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.lodashEs,e.cloneDeep,e.jsxRuntime,e.React,e.ReactIs,e.toPath,e.forEach)}(this,(function(e,t,r,n,i,a,o,u,s,d,l,f,c,p,h,m,v,y,g,b,S,O,A){"use strict";function E(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var w=E(t),I=E(r),_=E(n),D=E(i),j=E(a),x=E(o),F=E(u),T=E(s),P=E(d),W=E(l),N=E(f),U=E(c),q=E(p),M=E(h),L=E(m),R=E(y),k=E(S),C=E(O),B=E(A);function Y(e){return!("undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Date&&e instanceof Date||"object"!=typeof e||null===e||Array.isArray(e))}function V(){return V=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},V.apply(this,arguments)}function K(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function $(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(i[r]=e[r]);return i}var H="__additional_property",J="additionalProperties",z="allOf",G="anyOf",Q="const",X="default",Z="dependencies",ee="enum",te="__errors",re="$id",ne="if",ie="items",ae="_$junk_option_schema_id$_",oe="$name",ue="oneOf",se="properties",de="required",le="submitButtonOptions",fe="$ref",ce="__rjsf_additionalProperties",pe="__rjsf_rootSchema",he="ui:field",me="ui:widget",ve="ui:options";function ye(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===me&&Y(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),t):r===ve&&Y(i)?V({},t,i):V({},t,((n={})[r.substring(3)]=i,n))}),V({},t))}function ge(e,t){return I.default(e,t,(function(e,t){if("function"==typeof e&&"function"==typeof t)return!0}))}function be(e,t){var r=t[e];return[x.default(t,[e]),r]}function Se(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=j.default.get(t,r);if(void 0===n)throw new Error("Could not find a definition for "+e+".");if(n[fe]){var i=be(fe,n),a=i[0],o=Se(i[1],t);return Object.keys(a).length>0?V({},a,o):o}return n}function Oe(e,t,r,n,i){if(void 0===t)return 0;for(var a=0;a<r.length;a++){var o=r[a];if(i&&F.default(o,[se,i])){var u=_.default(t,i),s=_.default(o,[se,i],{});if(e.isValid(s,u,n))return a}else if(o[se]){var d={anyOf:Object.keys(o[se]).map((function(e){return{required:[e]}}))},l=void 0;if(o.anyOf){var f=V({},(K(o),o));f.allOf=f.allOf?f.allOf.slice():[],f.allOf.push(d),l=f}else l=Object.assign({},o,d);if(delete l.required,e.isValid(l,t,n))return a}else if(e.isValid(o,t,n))return a}return 0}function Ae(e,t,r,n,i){return Oe(e,t,r,n,i)}function Ee(e){var t,r=_.default(e,"discriminator.propertyName",void 0);return P.default(r)?t=r:void 0!==r&&console.warn('Expecting discriminator to be a string, got "'+typeof r+'" instead'),t}function we(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 Ie(e){var t=e.type;return!t&&e.const?we(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 _e(e,t){var r=Object.assign({},e);return Object.keys(t).reduce((function(r,n){var i=e?e[n]:{},a=t[n];return r[n]=e&&n in e&&Y(a)?_e(i,a):e&&t&&("object"===Ie(e)||"object"===Ie(t))&&n===de&&Array.isArray(i)&&Array.isArray(a)?M.default(i,a):a,r}),r)}var De=["if","then","else"],je=["$ref"],xe=["allOf"],Fe=["dependencies"],Te=["oneOf"];function Pe(e,t,r,n){return void 0===r&&(r={}),Ue(e,t,r,n)[0]}function We(e){return e.reduce((function(e,t){return t.length>1?t.flatMap((function(t){return N.default(e.length,(function(r){return[].concat(e[r]).concat(t)}))})):(e.forEach((function(e){return e.push(t[0])})),e)}),[[]])}function Ne(e,t,r,n,i){var a=t.$ref,o=$(t,je);return Ue(e,V({},Se(a,r),o),r,i,n)}function Ue(e,t,r,n,i){if(void 0===i&&(i=!1),!Y(t))return[{}];var a=function(e,t,r,n,i){return fe in t?Ne(e,t,r,n,i):Z in t?Me(e,t,r,n,i).flatMap((function(t){return Ue(e,t,r,i,n)})):z in t&&Array.isArray(t.allOf)?We(t.allOf.map((function(t){return Ue(e,t,r,i,n)}))).map((function(e){return V({},t,{allOf:e})})):[t]}(e,t,r,i,n);return a.flatMap((function(a){var o=a;if(ne in o)return function(e,t,r,n,i){var a=t.if,o=t.then,u=t.else,s=$(t,De),d=e.isValid(a,i||{},r),l=[s],f=[];if(n)o&&"boolean"!=typeof o&&(f=f.concat(Ue(e,o,r,i,n))),u&&"boolean"!=typeof u&&(f=f.concat(Ue(e,u,r,i,n)));else{var c=d?o:u;c&&"boolean"!=typeof c&&(f=f.concat(Ue(e,c,r,i,n)))}return f.length&&(l=f.map((function(e){return _e(s,e)}))),l.flatMap((function(t){return Ue(e,t,r,i,n)}))}(e,o,r,i,n);if(z in t)try{o=q.default(a,{deep:!1})}catch(e){console.warn("could not merge subschemas in allOf:\n",e);var u=o.allOf,s=$(o,xe);return i&&u?[s].concat(u):s}return J in o&&!1!==o.additionalProperties?function(e,t,r,n){var i=V({},t,{properties:V({},t.properties)}),a=n&&Y(n)?n:{};return Object.keys(a).forEach((function(t){var n;t in i.properties||(n="boolean"!=typeof i.additionalProperties?fe in i.additionalProperties?Pe(e,{$ref:_.default(i.additionalProperties,[fe])},r,a):"type"in i.additionalProperties?V({},i.additionalProperties):G in i.additionalProperties||ue in i.additionalProperties?V({type:"object"},i.additionalProperties):{type:we(_.default(a,[t]))}:{type:we(_.default(a,[t]))},i.properties[t]=n,U.default(i.properties,[t,H],!0))})),i}(e,o,r,n):o}))}function qe(e,t,r,n,i){var a;if(Array.isArray(t.oneOf)?a=t.oneOf:Array.isArray(t.anyOf)&&(a=t.anyOf),a){var o=void 0===i&&n?{}:i,u=Ee(t);a=a.map((function(t){return fe in t?Ne(e,t,r,!1,o)[0]:t}));var s=Ae(e,o,a,r,u);if(n)return a;t=a[s]}return[t]}function Me(e,t,r,n,i){var a=t.dependencies,o=$(t,Fe);return qe(e,o,r,n,i).flatMap((function(t){return Le(e,a,t,r,n,i)}))}function Le(e,t,r,n,i,a){var o=[r],u=function(){if(!i&&void 0===_.default(a,[s]))return"continue";if(r.properties&&!(s in r.properties))return"continue";var u,d,l=be(s,t),f=l[0],c=l[1];return Array.isArray(c)?o[0]=(u=r,(d=c)?V({},u,{required:Array.isArray(u.required)?Array.from(new Set([].concat(u.required,d))):d}):u):Y(c)&&(o=function(e,t,r,n,i,a,o){return Ue(e,i,r,o,a).flatMap((function(i){var u=i.oneOf,s=$(i,Te);return t=_e(t,s),void 0===u?t:We(u.map((function(t){return"boolean"!=typeof t&&fe in t?Ne(e,t,r,a,o):[t]}))).flatMap((function(i){return function(e,t,r,n,i,a,o){var u=i.filter((function(t){if("boolean"==typeof t||!t||!t.properties)return!1;var i=t.properties[n];if(i){var u,s={type:"object",properties:(u={},u[n]=i,u)};return e.isValid(s,o,r)||a}return!1}));return a||1===u.length?u.flatMap((function(i){var u=V({},i,{properties:be(n,i.properties)[0]});return Ue(e,u,r,o,a).map((function(e){return _e(t,e)}))})):(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t])}(e,t,r,n,i,a,o)}))}))}(e,r,n,s,c,i,a)),{v:o.flatMap((function(t){return Le(e,f,t,n,i,a)}))}};for(var s in t){var d=u();if("continue"!==d&&"object"==typeof d)return d.v}return o}var Re,ke={type:"object",$id:ae,properties:{__not_really_there__:{type:"number"}}};function Ce(e,t,r,n){void 0===n&&(n={});var i=0;return r&&(T.default(r.properties)?i+=W.default(r.properties,(function(r,i,a){var o=_.default(n,a);if("boolean"==typeof i)return r;if(F.default(i,fe)){var u=Pe(e,i,t,o);return r+Ce(e,t,u,o||{})}if(F.default(i,ue)&&o)return r+Be(e,t,o,_.default(i,ue));if("object"===i.type)return r+Ce(e,t,i,o||{});if(i.type===we(o)){var s=r+1;return i.default?s+=o===i.default?1:-1:i.const&&(s+=o===i.const?1:-1),s}return r}),0):P.default(r.type)&&r.type===we(n)&&(i+=1)),i}function Be(e,t,r,n,i,a){void 0===i&&(i=-1);var o=n.reduce((function(n,i,o){return 1===Ae(e,r,[ke,i],t,a)&&n.push(o),n}),[]);if(1===o.length)return o[0];o.length||N.default(n.length,(function(e){return o.push(e)}));var u=new Set,s=o.reduce((function(i,a){var o=i.bestScore,s=n[a];F.default(s,fe)&&(s=Pe(e,s,t,r));var d=Ce(e,t,s,r);return u.add(d),d>o?{bestIndex:a,bestScore:d}:i}),{bestIndex:i,bestScore:0});return 1===u.size&&i>=0?i:s.bestIndex}function Ye(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((function(e){return Y(e)}))}function Ve(e,t,r){if(void 0===r&&(r=!1),Array.isArray(t)){var n=Array.isArray(e)?e:[],i=t.map((function(e,t){return n[t]?Ve(n[t],e,r):e}));return r&&i.length<n.length&&i.push.apply(i,n.slice(i.length)),i}if(Y(t)){var a=Object.assign({},e);return Object.keys(t).reduce((function(n,i){return n[i]=Ve(e?_.default(e,i):{},_.default(t,i),r),n}),a)}return t}function Ke(e,t,r){return void 0===r&&(r=!1),Object.keys(t).reduce((function(n,i){var a=e?e[i]:{},o=t[i];if(e&&i in e&&Y(o))n[i]=Ke(a,o,r);else if(r&&Array.isArray(a)&&Array.isArray(o)){var u=o;"preventDuplicates"===r&&(u=o.reduce((function(e,t){return a.includes(t)||e.push(t),e}),[])),n[i]=a.concat(u)}else n[i]=o;return n}),Object.assign({},e))}function $e(e){return Array.isArray(e.enum)&&1===e.enum.length||Q in e}function He(e,t,r){void 0===r&&(r={});var n=Pe(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&&$e(e)}))}function Je(e,t,r){return!(!t.uniqueItems||!t.items||"boolean"==typeof t.items)&&He(e,t.items,r)}function ze(e,t,r){if(void 0===t&&(t=Re.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!==Re.Ignore&&Y(e.additionalItems)?e.additionalItems:{}}function Ge(e,t,r,n,i,a,o){void 0===a&&(a=[]),void 0===o&&(o={});var u=o.emptyObjectFields,s=void 0===u?"populateAllDefaults":u;if(n)e[t]=r;else if("skipDefaults"!==s)if(Y(r)){var d=void 0===i?a.includes(t):i;D.default(r)&&!a.includes(t)||!d&&"populateRequiredDefaults"===s||(e[t]=r)}else void 0===r||"populateAllDefaults"!==s&&!a.includes(t)||(e[t]=r)}function Qe(e,t,r){var n=void 0===r?{}:r,i=n.parentDefaults,a=n.rawFormData,o=n.rootSchema,u=void 0===o?{}:o,s=n.includeUndefinedValues,d=void 0!==s&&s,l=n._recurseList,f=void 0===l?[]:l,c=n.experimental_defaultFormStateBehavior,p=void 0===c?void 0:c,h=n.required,m=Y(a)?a:{},v=Y(t)?t:{},y=i,g=null,b=f;if(Y(y)&&Y(v.default))y=Ke(y,v.default);else if(X in v)y=v.default;else if(fe in v){var S=v[fe];f.includes(S)||(b=f.concat(S),g=Se(S,u))}else if(Z in v)g=Me(e,v,u,!1,m)[0];else if(Ye(v))y=v.items.map((function(t,r){return Qe(e,t,{rootSchema:u,includeUndefinedValues:d,_recurseList:f,experimental_defaultFormStateBehavior:p,parentDefaults:Array.isArray(i)?i[r]:void 0,rawFormData:m,required:h})}));else if(ue in v){if(0===v.oneOf.length)return;var O=Ee(v);g=v.oneOf[Be(e,u,D.default(m)?void 0:m,v.oneOf,0,O)]}else if(G in v){if(0===v.anyOf.length)return;var A=Ee(v);g=v.anyOf[Be(e,u,D.default(m)?void 0:m,v.anyOf,0,A)]}if(g)return Qe(e,g,{rootSchema:u,includeUndefinedValues:d,_recurseList:b,experimental_defaultFormStateBehavior:p,parentDefaults:y,rawFormData:m,required:h});switch(void 0===y&&(y=v.default),Ie(v)){case"object":var E=Object.keys(v.properties||{}).reduce((function(t,r){var n;return Ge(t,r,Qe(e,_.default(v,[se,r]),{rootSchema:u,_recurseList:f,experimental_defaultFormStateBehavior:p,includeUndefinedValues:!0===d,parentDefaults:_.default(y,[r]),rawFormData:_.default(m,[r]),required:null===(n=v.required)||void 0===n?void 0:n.includes(r)}),d,h,v.required,p),t}),{});if(v.additionalProperties){var w,I=Y(v.additionalProperties)?v.additionalProperties:{},j=new Set;Y(y)&&Object.keys(y).filter((function(e){return!v.properties||!v.properties[e]})).forEach((function(e){return j.add(e)})),Y(m)&&(w=[],Object.keys(m).filter((function(e){return!v.properties||!v.properties[e]})).forEach((function(e){j.add(e),w.push(e)}))),j.forEach((function(t){var r,n=Qe(e,I,{rootSchema:u,_recurseList:f,experimental_defaultFormStateBehavior:p,includeUndefinedValues:!0===d,parentDefaults:_.default(y,[t]),rawFormData:_.default(m,[t]),required:null===(r=v.required)||void 0===r?void 0:r.includes(t)});Ge(E,t,n,d,h,w)}))}return E;case"array":var x;if(Array.isArray(y)&&(y=y.map((function(t,r){var n=ze(v,Re.Fallback,r);return Qe(e,n,{rootSchema:u,_recurseList:f,experimental_defaultFormStateBehavior:p,parentDefaults:t,required:h})}))),Array.isArray(a)){var F=ze(v);y=a.map((function(t,r){return Qe(e,F,{rootSchema:u,_recurseList:f,experimental_defaultFormStateBehavior:p,rawFormData:t,parentDefaults:_.default(y,[r]),required:h})}))}if("requiredOnly"===(null==p||null===(x=p.arrayMinItems)||void 0===x?void 0:x.populate)&&!h)return y||void 0;var T=Array.isArray(y)?y.length:0;if(!v.minItems||Je(e,v,u)||v.minItems<=T)return y||[];var P=y||[],W=ze(v,Re.Invert),N=W.default,U=new Array(v.minItems-T).fill(Qe(e,W,{parentDefaults:N,rootSchema:u,_recurseList:f,experimental_defaultFormStateBehavior:p,required:h}));return P.concat(U)}return y}function Xe(e,t,r,n,i,a){if(void 0===i&&(i=!1),!Y(t))throw new Error("Invalid schema: "+t);var o=Qe(e,Pe(e,t,n,r),{rootSchema:n,includeUndefinedValues:i,experimental_defaultFormStateBehavior:a,rawFormData:r});if(null==r||"number"==typeof r&&isNaN(r))return o;var u=((null==a?void 0:a.arrayMinItems)||{}).mergeExtraDefaults;return Y(r)||Array.isArray(r)?Ve(o,r,u):r}function Ze(e){return void 0===e&&(e={}),"widget"in ye(e)&&"hidden"!==ye(e).widget}function et(e,t,r,n){if(void 0===r&&(r={}),"files"===r[me])return!0;if(t.items){var i=Pe(e,t.items,n);return"string"===i.type&&"data-url"===i.format}return!1}function tt(e,t,r,n,i){void 0===r&&(r={});var a=ye(r,i).label,o=!(void 0!==a&&!a),u=Ie(t);return"array"===u&&(o=Je(e,t,n)||et(e,t,r,n)||Ze(r)),"object"===u&&(o=!1),"boolean"!==u||r[me]||(o=!1),r[he]&&(o=!1),o}function rt(e,t,r){if(!r)return t;var n=t.errors,i=t.errorSchema,a=e.toErrorList(r),o=r;return D.default(i)||(o=Ke(i,r,!0),a=[].concat(n).concat(a)),{errorSchema:o,errors:a}}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(Re||(Re={}));var nt=Symbol("no Value");function it(e,t,r,n,i){var a;if(void 0===i&&(i={}),F.default(r,se)){var o={};if(F.default(n,se)){var u=_.default(n,se,{});Object.keys(u).forEach((function(e){F.default(i,e)&&(o[e]=void 0)}))}var s=Object.keys(_.default(r,se,{})),d={};s.forEach((function(a){var u=_.default(i,a),s=_.default(n,[se,a],{}),l=_.default(r,[se,a],{});F.default(s,fe)&&(s=Pe(e,s,t,u)),F.default(l,fe)&&(l=Pe(e,l,t,u));var f=_.default(s,"type"),c=_.default(l,"type");if(!f||f===c)if(F.default(o,a)&&delete o[a],"object"===c||"array"===c&&Array.isArray(u)){var p=it(e,t,l,s,u);void 0===p&&"array"!==c||(d[a]=p)}else{var h=_.default(l,"default",nt),m=_.default(s,"default",nt);h!==nt&&h!==u&&(m===u?o[a]=h:!0===_.default(l,"readOnly")&&(o[a]=void 0));var v=_.default(l,"const",nt),y=_.default(s,"const",nt);v!==nt&&v!==u&&(o[a]=y===u?v:void 0)}})),a=V({},i,o,d)}else if("array"===_.default(n,"type")&&"array"===_.default(r,"type")&&Array.isArray(i)){var l=_.default(n,"items"),f=_.default(r,"items");if("object"!=typeof l||"object"!=typeof f||Array.isArray(l)||Array.isArray(f))"boolean"==typeof l&&"boolean"==typeof f&&l===f&&(a=i);else{F.default(l,fe)&&(l=Pe(e,l,t,i)),F.default(f,fe)&&(f=Pe(e,f,t,i));var c=_.default(l,"type"),p=_.default(f,"type");if(!c||c===p){var h=_.default(r,"maxItems",-1);a="object"===p?i.reduce((function(r,n){var i=it(e,t,f,l,n);return void 0!==i&&(h<0||r.length<h)&&r.push(i),r}),[]):h>0&&i.length>h?i.slice(0,h):i}}}return a}function at(e,t,r,n,i,a,o,u){if(void 0===u&&(u=[]),fe in t||Z in t||z in t){var s=Pe(e,t,a,o);if(-1===u.findIndex((function(e){return L.default(e,s)})))return at(e,s,r,n,i,a,o,u.concat(s))}if(ie in t&&!_.default(t,[ie,fe]))return at(e,_.default(t,ie),r,n,i,a,o,u);var d={$id:i||r};if("object"===Ie(t)&&se in t)for(var l in t.properties){var f=_.default(t,[se,l]),c=d[re]+n+l;d[l]=at(e,Y(f)?f:{},r,n,c,a,_.default(o,[l]),u)}return d}function ot(e,t,r,n,i,a,o){return void 0===a&&(a="root"),void 0===o&&(o="_"),at(e,t,a,o,r,n,i)}function ut(e,t,r,n,i,a){var o;if(void 0===a&&(a=[]),fe in t||Z in t||z in t){var u=Pe(e,t,n,i);if(-1===a.findIndex((function(e){return L.default(e,u)})))return ut(e,u,r,n,i,a.concat(u))}var s=((o={})[oe]=r.replace(/^\./,""),o);if(ue in t||G in t){var d=ue in t?t.oneOf:t.anyOf,l=Ee(t),f=Be(e,n,i,d,0,l);s=V({},s,ut(e,d[f],r,n,i,a))}if(J in t&&!1!==t[J]&&U.default(s,ce,!0),ie in t&&Array.isArray(i))i.forEach((function(i,o){s[o]=ut(e,t.items,r+"."+o,n,i,a)}));else if(se in t)for(var c in t.properties){var p=_.default(t,[se,c]);s[c]=ut(e,p,r+"."+c,n,_.default(i,[c]),a)}return s}function st(e,t,r,n,i){return void 0===r&&(r=""),ut(e,t,r,n,i)}var dt=function(){function e(e,t,r){this.rootSchema=void 0,this.validator=void 0,this.experimental_defaultFormStateBehavior=void 0,this.rootSchema=t,this.validator=e,this.experimental_defaultFormStateBehavior=r}var t=e.prototype;return t.getValidator=function(){return this.validator},t.doesSchemaUtilsDiffer=function(e,t,r){return void 0===r&&(r={}),!(!e||!t||this.validator===e&&ge(this.rootSchema,t)&&ge(this.experimental_defaultFormStateBehavior,r))},t.getDefaultFormState=function(e,t,r){return void 0===r&&(r=!1),Xe(this.validator,e,t,this.rootSchema,r,this.experimental_defaultFormStateBehavior)},t.getDisplayLabel=function(e,t,r){return tt(this.validator,e,t,this.rootSchema,r)},t.getClosestMatchingOption=function(e,t,r,n){return Be(this.validator,this.rootSchema,e,t,r,n)},t.getFirstMatchingOption=function(e,t,r){return Ae(this.validator,e,t,this.rootSchema,r)},t.getMatchingOption=function(e,t,r){return Oe(this.validator,e,t,this.rootSchema,r)},t.isFilesArray=function(e,t){return et(this.validator,e,t,this.rootSchema)},t.isMultiSelect=function(e){return Je(this.validator,e,this.rootSchema)},t.isSelect=function(e){return He(this.validator,e,this.rootSchema)},t.mergeValidationData=function(e,t){return rt(this.validator,e,t)},t.retrieveSchema=function(e,t){return Pe(this.validator,e,this.rootSchema,t)},t.sanitizeDataForNewSchema=function(e,t,r){return it(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="_"),ot(this.validator,e,t,this.rootSchema,r,n,i)},t.toPathSchema=function(e,t,r){return st(this.validator,e,t,this.rootSchema,r)},e}();function lt(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 ft(e,t,r){if(void 0===t&&(t=[]),Array.isArray(e))return e.map((function(e){return ft(e,t)})).filter((function(e){return e}));var n=""===e||null===e?-1:Number(e),i=t[n];return i?i.value:r}function ct(e,t){return Array.isArray(t)?t.some((function(t){return L.default(t,e)})):L.default(t,e)}var pt=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?_.default(this.errorSchema,e):this.errorSchema;return!t&&e&&U.default(this.errorSchema,e,t={}),t},n.resetAllErrors=function(e){return this.errorSchema=e?R.default(e):{},this},n.addErrors=function(e,t){var r,n=this.getOrCreateErrorBlock(t),i=_.default(n,te);return Array.isArray(i)||(n[te]=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 U.default(r,te,n),this},n.clearErrors=function(e){var t=this.getOrCreateErrorBlock(e);return U.default(t,te,[]),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 ht(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 mt,vt={props:{disabled:!1},submitText:"Submit",norender:!1},yt=["options"],gt={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 bt(e,t,r){void 0===r&&(r={});var n=Ie(e);if("function"==typeof t||t&&k.default.isForwardRef(b.createElement(t))||k.default.isMemo(t))return function(e){var t=_.default(e,"MergedWidget");if(!t){var r=e.defaultProps&&e.defaultProps.options||{};U.default(e,"MergedWidget",t=function(t){var n=t.options,i=$(t,yt);return g.jsx(e,V({options:V({},r,n)},i))})}return t}(t);if("string"!=typeof t)throw new Error("Unsupported widget definition: "+typeof t);if(t in r)return bt(e,r[t],r);if("string"==typeof n){if(!(n in gt))throw new Error("No widget for type '"+n+"'");if(t in gt[n])return bt(e,r[gt[n][t]],r)}throw new Error("No widget '"+t+"' for type '"+n+"'")}function St(e){var t=new Set;return JSON.stringify(e,(function(e,r){return t.add(e),r})),function(e){for(var t=0,r=0;r<e.length;r+=1)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t.toString(16)}(JSON.stringify(e,Array.from(t).sort()))}function Ot(e,t){return(P.default(e)?e:e[re])+"__"+t}function At(e){return Ot(e,"description")}function Et(e){return Ot(e,"error")}function wt(e){return Ot(e,"examples")}function It(e){return Ot(e,"help")}function _t(e){if(ee in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(Q in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function Dt(e,t){for(var r=String(e);r.length<t;)r="0"+r;return r}function jt(e,t){if(void 0===t&&(t=[]),!e)return[];var r=[];return te in e&&(r=r.concat(e[te].map((function(e){var r="."+t.join(".");return{property:r,message:e,stack:r+" "+e}})))),Object.keys(e).reduce((function(r,n){if(n!==te){var i=e[n];w.default(i)&&(r=r.concat(jt(i,[].concat(t,[n]))))}return r}),r)}e.TranslatableString=void 0,(mt=e.TranslatableString||(e.TranslatableString={})).ArrayItemTitle="Item",mt.MissingItems="Missing items definition",mt.YesLabel="Yes",mt.NoLabel="No",mt.CloseLabel="Close",mt.ErrorsLabel="Errors",mt.NewStringDefault="New Value",mt.AddButton="Add",mt.AddItemButton="Add Item",mt.CopyButton="Copy",mt.MoveDownButton="Move down",mt.MoveUpButton="Move up",mt.RemoveButton="Remove",mt.NowLabel="Now",mt.ClearLabel="Clear",mt.AriaDateLabel="Select a date",mt.PreviewLabel="Preview",mt.DecrementAriaLabel="Decrease value by 1",mt.IncrementAriaLabel="Increase value by 1",mt.UnknownFieldType="Unknown field type %1",mt.OptionPrefix="Option %1",mt.TitleOptionPrefix="%1 option %2",mt.KeyLabel="%1 Key",mt.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',mt.UnsupportedField="Unsupported field schema.",mt.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",mt.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",mt.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",mt.FilesInfo="<strong>%1</strong> (%2, %3 bytes)";var xt=function(){function e(e){this.rootSchema=void 0,this.schemaMap={},this.rootSchema=e,this.addSchema(e,St(e))}var t=e.prototype;return t.addSchema=function(e,t){var r,n=_.default(e,re,t),i=V({},e,((r={})[re]=n,r)),a=this.schemaMap[n];if(a){if(!L.default(a,i))throw console.error("existing schema:",JSON.stringify(a,null,2)),console.error("new schema:",JSON.stringify(i,null,2)),new Error("Two different schemas exist with the same key "+n+"! What a bad coincidence. If possible, try adding an $id to one of the schemas")}else this.schemaMap[n]=i},t.getSchemaMap=function(){return this.schemaMap},t.isValid=function(e,t,r){if(!L.default(r,this.rootSchema))throw new Error("Unexpectedly calling isValid() with a rootSchema that differs from the construction rootSchema");return this.addSchema(e,St(e)),!1},t.rawValidation=function(e,t){throw new Error("Unexpectedly calling the `rawValidation()` method during schema parsing")},t.toErrorList=function(e,t){throw new Error("Unexpectedly calling the `toErrorList()` method during schema parsing")},t.validateFormData=function(e,t,r,n,i){throw new Error("Unexpectedly calling the `validateFormData()` method during schema parsing")},e}();function Ft(e,t,r,n){Ue(e,n,r,void 0,!0).forEach((function(n){-1===t.findIndex((function(e){return L.default(e,n)}))&&(t.push(n),qe(e,n,r,!0).forEach((function(i){se in i&&i[se]&&B.default(n[se],(function(n){Ft(e,t,r,n)}))})),ie in n&&!Array.isArray(n.items)&&"boolean"!=typeof n.items&&Ft(e,t,r,n.items))}))}e.ADDITIONAL_PROPERTIES_KEY=J,e.ADDITIONAL_PROPERTY_FLAG=H,e.ALL_OF_KEY=z,e.ANY_OF_KEY=G,e.CONST_KEY=Q,e.DEFAULT_KEY=X,e.DEFINITIONS_KEY="definitions",e.DEPENDENCIES_KEY=Z,e.ENUM_KEY=ee,e.ERRORS_KEY=te,e.ErrorSchemaBuilder=pt,e.ID_KEY=re,e.IF_KEY=ne,e.ITEMS_KEY=ie,e.JUNK_OPTION_ID=ae,e.NAME_KEY=oe,e.ONE_OF_KEY=ue,e.PROPERTIES_KEY=se,e.REF_KEY=fe,e.REQUIRED_KEY=de,e.RJSF_ADDITONAL_PROPERTIES_FLAG=ce,e.ROOT_SCHEMA_PREFIX=pe,e.SUBMIT_BTN_OPTIONS_KEY=le,e.UI_FIELD_KEY=he,e.UI_GLOBAL_OPTIONS_KEY="ui:globalOptions",e.UI_OPTIONS_KEY=ve,e.UI_WIDGET_KEY=me,e.allowAdditionalItems=function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),Y(e.additionalItems)},e.ariaDescribedByIds=function(e,t){void 0===t&&(t=!1);var r=t?" "+wt(e):"";return Et(e)+" "+At(e)+" "+It(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=ye(t).expandable,i=void 0===n||n;return!1===i?i:void 0===e.maxProperties||!r||Object.keys(r).length<e.maxProperties},e.createErrorHandler=function e(t){var r,n=((r={})[te]=[],r.addError=function(e){this[te].push(e)},r);if(Array.isArray(t))return t.reduce((function(t,r,n){var i;return V({},t,((i={})[n]=e(r),i))}),n);if(w.default(t)){var i=t;return Object.keys(i).reduce((function(t,r){var n;return V({},t,((n={})[r]=e(i[r]),n))}),n)}return n},e.createSchemaUtils=function(e,t,r){return void 0===r&&(r={}),new dt(e,t,r)},e.dataURItoBlob=function(e){var t,r=e.split(","),n=r[0].split(";"),i=n[0].replace("data:",""),a=n.filter((function(e){return"name"===e.split("=")[0]}));t=1!==a.length?"unknown":decodeURI(a[0].split("=")[1]);try{for(var o=atob(r[1]),u=[],s=0;s<o.length;s++)u.push(o.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=ge,e.descriptionId=At,e.englishStringTranslator=function(e,t){return lt(e,t)},e.enumOptionsDeselectValue=function(e,t,r){void 0===r&&(r=[]);var n=ft(e,r);return Array.isArray(t)?t.filter((function(e){return!L.default(e,n)})):L.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 ct(t.value,e)?String(r):void 0})).filter((function(e){return void 0!==e}));return r?n:n[0]},e.enumOptionsIsSelected=ct,e.enumOptionsSelectValue=function(e,t,r){void 0===r&&(r=[]);var n=ft(e,r);if(!v.isNil(n)){var i=r.findIndex((function(e){return n===e.value})),a=r.map((function(e){return e.value}));return t.slice(0,i).concat(n,t.slice(i)).sort((function(e,t){return Number(a.indexOf(e)>a.indexOf(t))}))}return t},e.enumOptionsValueForIndex=ft,e.errorId=Et,e.examplesId=wt,e.findSchemaDefinition=Se,e.getClosestMatchingOption=Be,e.getDefaultFormState=Xe,e.getDiscriminatorFieldFromSchema=Ee,e.getDisplayLabel=tt,e.getFirstMatchingOption=Ae,e.getInputProps=function(e,t,r,n){void 0===r&&(r={}),void 0===n&&(n=!0);var i=V({type:t||"text"},ht(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=Oe,e.getSchemaType=Ie,e.getSubmitButtonOptions=function(e){void 0===e&&(e={});var t=ye(e);return t&&t[le]?V({},vt,t[le]):vt},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=ye,e.getWidget=bt,e.guessType=we,e.hasWidget=function(e,t,r){void 0===r&&(r={});try{return bt(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.hashForSchema=St,e.helpId=It,e.isConstant=$e,e.isCustomWidget=Ze,e.isFilesArray=et,e.isFixedItems=Ye,e.isMultiSelect=Je,e.isObject=Y,e.isSelect=He,e.labelValue=function(e,t,r){return t?r:e},e.localToUTC=function(e){return e?new Date(e).toJSON():void 0},e.mergeDefaultsWithFormData=Ve,e.mergeObjects=Ke,e.mergeSchemas=_e,e.mergeValidationData=rt,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=_t(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),a=t.filter((function(e){return"*"===e||i[e]})),o=n(a),u=e.filter((function(e){return!o[e]})),s=a.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 a}if(s!==a.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var d=[].concat(a);return d.splice.apply(d,[s,1].concat(u)),d},e.pad=Dt,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=ht,e.replaceStringParameters=lt,e.retrieveSchema=Pe,e.sanitizeDataForNewSchema=it,e.schemaParser=function(e){var t=new xt(e);return Ft(t,[],e,e),t.getSchemaMap()},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!ge(e.props,t)||!ge(n,r)},e.titleId=function(e){return Ot(e,"title")},e.toConstant=_t,e.toDateString=function(e,t){void 0===t&&(t=!0);var r=e.hour,n=e.minute,i=e.second,a=Date.UTC(e.year,e.month-1,e.day,void 0===r?0:r,void 0===n?0:n,void 0===i?0:i),o=new Date(a).toJSON();return t?o:o.slice(0,10)},e.toErrorList=jt,e.toErrorSchema=function(e){var t=new pt;return e.length&&e.forEach((function(e){var r=e.property,n=e.message,i="."===r?[]:C.default(r);i.length>0&&""===i[0]&&i.splice(0,1),n&&t.addErrors(n,i)})),t.ErrorSchema},e.toIdSchema=ot,e.toPathSchema=st,e.unwrapErrorHandler=function e(t){return Object.keys(t).reduce((function(r,n){if("addError"===n)return r;var i,a,o=t[n];return w.default(o)?V({},r,((a={})[n]=e(o),a)):V({},r,((i={})[n]=o,i))}),{})},e.utcToLocal=function(e){if(!e)return"";var t=new Date(e);return Dt(t.getFullYear(),4)+"-"+Dt(t.getMonth()+1,2)+"-"+Dt(t.getDate(),2)+"T"+Dt(t.getHours(),2)+":"+Dt(t.getMinutes(),2)+":"+Dt(t.getSeconds(),2)+"."+Dt(t.getMilliseconds(),3)},e.validationDataMerge=function(e,t){if(!t)return e;var r=e.errors,n=e.errorSchema,i=jt(t),a=t;return D.default(n)||(a=Ke(n,t,!0),i=[].concat(r).concat(i)),{errorSchema:a,errors:i}},e.withIdRefPrefix=function e(t){return t.constructor===Object?function(t){for(var r in t){var n=t[r];t[r]=r===fe&&"string"==typeof n&&n.startsWith("#")?pe+n:e(n)}return t}(V({},t)):Array.isArray(t)?function(t){for(var r=0;r<t.length;r++)t[r]=e(t[r]);return t}([].concat(t)):t},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(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"),require("lodash-es/cloneDeep"),require("react/jsx-runtime"),require("react"),require("react-is"),require("lodash-es/toPath"),require("lodash-es/forEach")):"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","lodash-es/cloneDeep","react/jsx-runtime","react","react-is","lodash-es/toPath","lodash-es/forEach"],t):t((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.lodashEs,e.cloneDeep,e.jsxRuntime,e.React,e.ReactIs,e.toPath,e.forEach)}(this,(function(e,t,r,n,i,a,o,u,s,d,l,f,c,p,h,m,v,y,g,b,S,O,A){"use strict";function E(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var w=E(t),I=E(r),_=E(n),D=E(i),j=E(a),x=E(o),F=E(u),T=E(s),P=E(d),W=E(l),N=E(f),U=E(c),q=E(p),M=E(h),L=E(m),R=E(y),k=E(S),C=E(O),B=E(A);function Y(e){return!("undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Date&&e instanceof Date||"object"!=typeof e||null===e||Array.isArray(e))}function V(){return V=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},V.apply(this,arguments)}function K(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function $(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(i[r]=e[r]);return i}var H="__additional_property",J="additionalProperties",z="allOf",G="anyOf",Q="const",X="default",Z="dependencies",ee="enum",te="__errors",re="$id",ne="if",ie="items",ae="_$junk_option_schema_id$_",oe="$name",ue="oneOf",se="properties",de="required",le="submitButtonOptions",fe="$ref",ce="__rjsf_additionalProperties",pe="__rjsf_rootSchema",he="ui:field",me="ui:widget",ve="ui:options";function ye(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===me&&Y(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),t):r===ve&&Y(i)?V({},t,i):V({},t,((n={})[r.substring(3)]=i,n))}),V({},t))}function ge(e,t){return I.default(e,t,(function(e,t){if("function"==typeof e&&"function"==typeof t)return!0}))}function be(e,t){var r=t[e];return[x.default(t,[e]),r]}function Se(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=j.default.get(t,r);if(void 0===n)throw new Error("Could not find a definition for "+e+".");if(n[fe]){var i=be(fe,n),a=i[0],o=Se(i[1],t);return Object.keys(a).length>0?V({},a,o):o}return n}function Oe(e,t,r,n,i){if(void 0===t)return 0;for(var a=0;a<r.length;a++){var o=r[a];if(i&&F.default(o,[se,i])){var u=_.default(t,i),s=_.default(o,[se,i],{});if(e.isValid(s,u,n))return a}else if(o[se]){var d={anyOf:Object.keys(o[se]).map((function(e){return{required:[e]}}))},l=void 0;if(o.anyOf){var f=V({},(K(o),o));f.allOf=f.allOf?f.allOf.slice():[],f.allOf.push(d),l=f}else l=Object.assign({},o,d);if(delete l.required,e.isValid(l,t,n))return a}else if(e.isValid(o,t,n))return a}return 0}function Ae(e,t,r,n,i){return Oe(e,t,r,n,i)}function Ee(e){var t,r=_.default(e,"discriminator.propertyName",void 0);return P.default(r)?t=r:void 0!==r&&console.warn('Expecting discriminator to be a string, got "'+typeof r+'" instead'),t}function we(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 Ie(e){var t=e.type;return!t&&e.const?we(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 _e(e,t){var r=Object.assign({},e);return Object.keys(t).reduce((function(r,n){var i=e?e[n]:{},a=t[n];return r[n]=e&&n in e&&Y(a)?_e(i,a):e&&t&&("object"===Ie(e)||"object"===Ie(t))&&n===de&&Array.isArray(i)&&Array.isArray(a)?M.default(i,a):a,r}),r)}var De=["if","then","else"],je=["$ref"],xe=["allOf"],Fe=["oneOf","anyOf"],Te=["dependencies"],Pe=["oneOf"];function We(e,t,r,n){return void 0===r&&(r={}),qe(e,t,r,n)[0]}function Ne(e){return e.reduce((function(e,t){return t.length>1?t.flatMap((function(t){return N.default(e.length,(function(r){return[].concat(e[r]).concat(t)}))})):(e.forEach((function(e){return e.push(t[0])})),e)}),[[]])}function Ue(e,t,r,n,i){var a=t.$ref,o=$(t,je);return qe(e,V({},Se(a,r),o),r,i,n)}function qe(e,t,r,n,i){if(void 0===i&&(i=!1),!Y(t))return[{}];var a=function(e,t,r,n,i){return fe in t?Ue(e,t,r,n,i):Z in t?Le(e,t,r,n,i).flatMap((function(t){return qe(e,t,r,i,n)})):z in t&&Array.isArray(t.allOf)?Ne(t.allOf.map((function(t){return qe(e,t,r,i,n)}))).map((function(e){return V({},t,{allOf:e})})):[t]}(e,t,r,i,n);return a.flatMap((function(t){var a=t;if(ne in a)return function(e,t,r,n,i){var a=t.if,o=t.then,u=t.else,s=$(t,De),d=e.isValid(a,i||{},r),l=[s],f=[];if(n)o&&"boolean"!=typeof o&&(f=f.concat(qe(e,o,r,i,n))),u&&"boolean"!=typeof u&&(f=f.concat(qe(e,u,r,i,n)));else{var c=d?o:u;c&&"boolean"!=typeof c&&(f=f.concat(qe(e,c,r,i,n)))}return f.length&&(l=f.map((function(e){return _e(s,e)}))),l.flatMap((function(t){return qe(e,t,r,i,n)}))}(e,a,r,i,n);if(z in a)try{a=q.default(a,{deep:!1})}catch(e){console.warn("could not merge subschemas in allOf:\n",e);var o=a.allOf,u=$(a,xe);return i&&o?[u].concat(o):u}return J in a&&!1!==a.additionalProperties?function(e,t,r,n){var i=V({},t,{properties:V({},t.properties)}),a=n&&Y(n)?n:{};return Object.keys(a).forEach((function(t){var n;t in i.properties||(n="boolean"!=typeof i.additionalProperties?fe in i.additionalProperties?We(e,{$ref:_.default(i.additionalProperties,[fe])},r,a):"type"in i.additionalProperties?V({},i.additionalProperties):G in i.additionalProperties||ue in i.additionalProperties?V({type:"object"},i.additionalProperties):{type:we(_.default(a,[t]))}:{type:we(_.default(a,[t]))},i.properties[t]=n,U.default(i.properties,[t,H],!0))})),i}(e,a,r,n):a}))}function Me(e,t,r,n,i){var a,o=t.oneOf,u=t.anyOf,s=$(t,Fe);if(Array.isArray(o)?a=o:Array.isArray(u)&&(a=u),a){var d=void 0===i&&n?{}:i,l=Ee(t);a=a.map((function(t){return fe in t?Ue(e,t,r,!1,d)[0]:t}));var f=Ae(e,d,a,r,l);if(n)return a.map((function(e){return V({},s,e)}));t=V({},s,a[f])}return[t]}function Le(e,t,r,n,i){var a=t.dependencies,o=$(t,Te);return Me(e,o,r,n,i).flatMap((function(t){return Re(e,a,t,r,n,i)}))}function Re(e,t,r,n,i,a){var o=[r],u=function(){if(!i&&void 0===_.default(a,[s]))return"continue";if(r.properties&&!(s in r.properties))return"continue";var u,d,l=be(s,t),f=l[0],c=l[1];return Array.isArray(c)?o[0]=(u=r,(d=c)?V({},u,{required:Array.isArray(u.required)?Array.from(new Set([].concat(u.required,d))):d}):u):Y(c)&&(o=function(e,t,r,n,i,a,o){return qe(e,i,r,o,a).flatMap((function(i){var u=i.oneOf,s=$(i,Pe);return t=_e(t,s),void 0===u?t:Ne(u.map((function(t){return"boolean"!=typeof t&&fe in t?Ue(e,t,r,a,o):[t]}))).flatMap((function(i){return function(e,t,r,n,i,a,o){var u=i.filter((function(t){if("boolean"==typeof t||!t||!t.properties)return!1;var i=t.properties[n];if(i){var u,s={type:"object",properties:(u={},u[n]=i,u)};return e.isValid(s,o,r)||a}return!1}));return a||1===u.length?u.flatMap((function(i){var u=V({},i,{properties:be(n,i.properties)[0]});return qe(e,u,r,o,a).map((function(e){return _e(t,e)}))})):(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t])}(e,t,r,n,i,a,o)}))}))}(e,r,n,s,c,i,a)),{v:o.flatMap((function(t){return Re(e,f,t,n,i,a)}))}};for(var s in t){var d=u();if("continue"!==d&&"object"==typeof d)return d.v}return o}var ke={type:"object",$id:ae,properties:{__not_really_there__:{type:"number"}}};function Ce(e,t,r,n){void 0===n&&(n={});var i=0;return r&&(T.default(r.properties)?i+=W.default(r.properties,(function(r,i,a){var o=_.default(n,a);if("boolean"==typeof i)return r;if(F.default(i,fe)){var u=We(e,i,t,o);return r+Ce(e,t,u,o||{})}if((F.default(i,ue)||F.default(i,G))&&o){var s=F.default(i,ue)?ue:G,d=Ee(i);return r+Be(e,t,o,_.default(i,s),-1,d)}if("object"===i.type)return r+Ce(e,t,i,o||{});if(i.type===we(o)){var l=r+1;return i.default?l+=o===i.default?1:-1:i.const&&(l+=o===i.const?1:-1),l}return r}),0):P.default(r.type)&&r.type===we(n)&&(i+=1)),i}function Be(e,t,r,n,i,a){void 0===i&&(i=-1);var o=n.map((function(n){return F.default(n,fe)?We(e,n,t,r):n})),u=o.reduce((function(n,i,o){return 1===Ae(e,r,[ke,i],t,a)&&n.push(o),n}),[]);if(1===u.length)return u[0];u.length||N.default(o.length,(function(e){return u.push(e)}));var s=new Set,d=u.reduce((function(n,i){var a=n.bestScore,u=Ce(e,t,o[i],r);return s.add(u),u>a?{bestIndex:i,bestScore:u}:n}),{bestIndex:i,bestScore:0});return 1===s.size&&i>=0?i:d.bestIndex}function Ye(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((function(e){return Y(e)}))}function Ve(e,t,r){if(void 0===r&&(r=!1),Array.isArray(t)){var n=Array.isArray(e)?e:[],i=t.map((function(e,t){return n[t]?Ve(n[t],e,r):e}));return r&&i.length<n.length&&i.push.apply(i,n.slice(i.length)),i}if(Y(t)){var a=Object.assign({},e);return Object.keys(t).reduce((function(n,i){return n[i]=Ve(e?_.default(e,i):{},_.default(t,i),r),n}),a)}return t}function Ke(e,t,r){return void 0===r&&(r=!1),Object.keys(t).reduce((function(n,i){var a=e?e[i]:{},o=t[i];if(e&&i in e&&Y(o))n[i]=Ke(a,o,r);else if(r&&Array.isArray(a)&&Array.isArray(o)){var u=o;"preventDuplicates"===r&&(u=o.reduce((function(e,t){return a.includes(t)||e.push(t),e}),[])),n[i]=a.concat(u)}else n[i]=o;return n}),Object.assign({},e))}function $e(e){return Array.isArray(e.enum)&&1===e.enum.length||Q in e}function He(e,t,r){void 0===r&&(r={});var n=We(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&&$e(e)}))}function Je(e,t,r){return!(!t.uniqueItems||!t.items||"boolean"==typeof t.items)&&He(e,t.items,r)}var ze,Ge=["oneOf"],Qe=["anyOf"];function Xe(e,t,r){if(void 0===t&&(t=ze.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!==ze.Ignore&&Y(e.additionalItems)?e.additionalItems:{}}function Ze(e,t,r,n,i,a,o){void 0===a&&(a=[]),void 0===o&&(o={});var u=o.emptyObjectFields,s=void 0===u?"populateAllDefaults":u;if(n)e[t]=r;else if("skipDefaults"!==s)if(Y(r)){var d=void 0===i?a.includes(t):i;D.default(r)&&!a.includes(t)||!d&&"populateRequiredDefaults"===s||(e[t]=r)}else void 0===r||"populateAllDefaults"!==s&&!a.includes(t)||(e[t]=r)}function et(e,t,r){var n=void 0===r?{}:r,i=n.parentDefaults,a=n.rawFormData,o=n.rootSchema,u=void 0===o?{}:o,s=n.includeUndefinedValues,d=void 0!==s&&s,l=n._recurseList,f=void 0===l?[]:l,c=n.experimental_defaultFormStateBehavior,p=void 0===c?void 0:c,h=n.required,m=Y(a)?a:{},v=Y(t)?t:{},y=i,g=null,b=f;if(Y(y)&&Y(v.default))y=Ke(y,v.default);else if(X in v)y=v.default;else if(fe in v){var S=v[fe];f.includes(S)||(b=f.concat(S),g=Se(S,u))}else if(Z in v)g=Le(e,v,u,!1,m)[0];else if(Ye(v))y=v.items.map((function(t,r){return et(e,t,{rootSchema:u,includeUndefinedValues:d,_recurseList:f,experimental_defaultFormStateBehavior:p,parentDefaults:Array.isArray(i)?i[r]:void 0,rawFormData:m,required:h})}));else if(ue in v){var O=v.oneOf,A=$(v,Ge);if(0===O.length)return;var E=Ee(v);g=V({},A,g=O[Be(e,u,D.default(m)?void 0:m,O,0,E)])}else if(G in v){var w=v.anyOf,I=$(v,Qe);if(0===w.length)return;var j=Ee(v);g=V({},I,g=w[Be(e,u,D.default(m)?void 0:m,w,0,j)])}if(g)return et(e,g,{rootSchema:u,includeUndefinedValues:d,_recurseList:b,experimental_defaultFormStateBehavior:p,parentDefaults:y,rawFormData:m,required:h});switch(void 0===y&&(y=v.default),Ie(v)){case"object":var x=Object.keys(v.properties||{}).reduce((function(t,r){var n;return Ze(t,r,et(e,_.default(v,[se,r]),{rootSchema:u,_recurseList:f,experimental_defaultFormStateBehavior:p,includeUndefinedValues:!0===d,parentDefaults:_.default(y,[r]),rawFormData:_.default(m,[r]),required:null===(n=v.required)||void 0===n?void 0:n.includes(r)}),d,h,v.required,p),t}),{});if(v.additionalProperties){var F,T=Y(v.additionalProperties)?v.additionalProperties:{},P=new Set;Y(y)&&Object.keys(y).filter((function(e){return!v.properties||!v.properties[e]})).forEach((function(e){return P.add(e)})),Y(m)&&(F=[],Object.keys(m).filter((function(e){return!v.properties||!v.properties[e]})).forEach((function(e){P.add(e),F.push(e)}))),P.forEach((function(t){var r,n=et(e,T,{rootSchema:u,_recurseList:f,experimental_defaultFormStateBehavior:p,includeUndefinedValues:!0===d,parentDefaults:_.default(y,[t]),rawFormData:_.default(m,[t]),required:null===(r=v.required)||void 0===r?void 0:r.includes(t)});Ze(x,t,n,d,h,F)}))}return x;case"array":var W;if(Array.isArray(y)&&(y=y.map((function(t,r){var n=Xe(v,ze.Fallback,r);return et(e,n,{rootSchema:u,_recurseList:f,experimental_defaultFormStateBehavior:p,parentDefaults:t,required:h})}))),Array.isArray(a)){var N=Xe(v);y=a.map((function(t,r){return et(e,N,{rootSchema:u,_recurseList:f,experimental_defaultFormStateBehavior:p,rawFormData:t,parentDefaults:_.default(y,[r]),required:h})}))}if("requiredOnly"===(null==p||null===(W=p.arrayMinItems)||void 0===W?void 0:W.populate)&&!h)return y||void 0;var U=Array.isArray(y)?y.length:0;if(!v.minItems||Je(e,v,u)||v.minItems<=U)return y||[];var q=y||[],M=Xe(v,ze.Invert),L=M.default,R=new Array(v.minItems-U).fill(et(e,M,{parentDefaults:L,rootSchema:u,_recurseList:f,experimental_defaultFormStateBehavior:p,required:h}));return q.concat(R)}return y}function tt(e,t,r,n,i,a){if(void 0===i&&(i=!1),!Y(t))throw new Error("Invalid schema: "+t);var o=et(e,We(e,t,n,r),{rootSchema:n,includeUndefinedValues:i,experimental_defaultFormStateBehavior:a,rawFormData:r});if(null==r||"number"==typeof r&&isNaN(r))return o;var u=((null==a?void 0:a.arrayMinItems)||{}).mergeExtraDefaults;return Y(r)||Array.isArray(r)?Ve(o,r,u):r}function rt(e){return void 0===e&&(e={}),"widget"in ye(e)&&"hidden"!==ye(e).widget}function nt(e,t,r,n){if(void 0===r&&(r={}),"files"===r[me])return!0;if(t.items){var i=We(e,t.items,n);return"string"===i.type&&"data-url"===i.format}return!1}function it(e,t,r,n,i){void 0===r&&(r={});var a=ye(r,i).label,o=!(void 0!==a&&!a),u=Ie(t);return"array"===u&&(o=Je(e,t,n)||nt(e,t,r,n)||rt(r)),"object"===u&&(o=!1),"boolean"!==u||r[me]||(o=!1),r[he]&&(o=!1),o}function at(e,t,r){if(!r)return t;var n=t.errors,i=t.errorSchema,a=e.toErrorList(r),o=r;return D.default(i)||(o=Ke(i,r,!0),a=[].concat(n).concat(a)),{errorSchema:o,errors:a}}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(ze||(ze={}));var ot=Symbol("no Value");function ut(e,t,r,n,i){var a;if(void 0===i&&(i={}),F.default(r,se)){var o={};if(F.default(n,se)){var u=_.default(n,se,{});Object.keys(u).forEach((function(e){F.default(i,e)&&(o[e]=void 0)}))}var s=Object.keys(_.default(r,se,{})),d={};s.forEach((function(a){var u=_.default(i,a),s=_.default(n,[se,a],{}),l=_.default(r,[se,a],{});F.default(s,fe)&&(s=We(e,s,t,u)),F.default(l,fe)&&(l=We(e,l,t,u));var f=_.default(s,"type"),c=_.default(l,"type");if(!f||f===c)if(F.default(o,a)&&delete o[a],"object"===c||"array"===c&&Array.isArray(u)){var p=ut(e,t,l,s,u);void 0===p&&"array"!==c||(d[a]=p)}else{var h=_.default(l,"default",ot),m=_.default(s,"default",ot);h!==ot&&h!==u&&(m===u?o[a]=h:!0===_.default(l,"readOnly")&&(o[a]=void 0));var v=_.default(l,"const",ot),y=_.default(s,"const",ot);v!==ot&&v!==u&&(o[a]=y===u?v:void 0)}})),a=V({},i,o,d)}else if("array"===_.default(n,"type")&&"array"===_.default(r,"type")&&Array.isArray(i)){var l=_.default(n,"items"),f=_.default(r,"items");if("object"!=typeof l||"object"!=typeof f||Array.isArray(l)||Array.isArray(f))"boolean"==typeof l&&"boolean"==typeof f&&l===f&&(a=i);else{F.default(l,fe)&&(l=We(e,l,t,i)),F.default(f,fe)&&(f=We(e,f,t,i));var c=_.default(l,"type"),p=_.default(f,"type");if(!c||c===p){var h=_.default(r,"maxItems",-1);a="object"===p?i.reduce((function(r,n){var i=ut(e,t,f,l,n);return void 0!==i&&(h<0||r.length<h)&&r.push(i),r}),[]):h>0&&i.length>h?i.slice(0,h):i}}}return a}function st(e,t,r,n,i,a,o,u){if(void 0===u&&(u=[]),fe in t||Z in t||z in t){var s=We(e,t,a,o);if(-1===u.findIndex((function(e){return L.default(e,s)})))return st(e,s,r,n,i,a,o,u.concat(s))}if(ie in t&&!_.default(t,[ie,fe]))return st(e,_.default(t,ie),r,n,i,a,o,u);var d={$id:i||r};if("object"===Ie(t)&&se in t)for(var l in t.properties){var f=_.default(t,[se,l]),c=d[re]+n+l;d[l]=st(e,Y(f)?f:{},r,n,c,a,_.default(o,[l]),u)}return d}function dt(e,t,r,n,i,a,o){return void 0===a&&(a="root"),void 0===o&&(o="_"),st(e,t,a,o,r,n,i)}function lt(e,t,r,n,i,a){var o;if(void 0===a&&(a=[]),fe in t||Z in t||z in t){var u=We(e,t,n,i);if(-1===a.findIndex((function(e){return L.default(e,u)})))return lt(e,u,r,n,i,a.concat(u))}var s=((o={})[oe]=r.replace(/^\./,""),o);if(ue in t||G in t){var d=ue in t?t.oneOf:t.anyOf,l=Ee(t),f=Be(e,n,i,d,0,l);s=V({},s,lt(e,d[f],r,n,i,a))}if(J in t&&!1!==t[J]&&U.default(s,ce,!0),ie in t&&Array.isArray(i))i.forEach((function(i,o){s[o]=lt(e,t.items,r+"."+o,n,i,a)}));else if(se in t)for(var c in t.properties){var p=_.default(t,[se,c]);s[c]=lt(e,p,r+"."+c,n,_.default(i,[c]),a)}return s}function ft(e,t,r,n,i){return void 0===r&&(r=""),lt(e,t,r,n,i)}var ct=function(){function e(e,t,r){this.rootSchema=void 0,this.validator=void 0,this.experimental_defaultFormStateBehavior=void 0,this.rootSchema=t,this.validator=e,this.experimental_defaultFormStateBehavior=r}var t=e.prototype;return t.getValidator=function(){return this.validator},t.doesSchemaUtilsDiffer=function(e,t,r){return void 0===r&&(r={}),!(!e||!t||this.validator===e&&ge(this.rootSchema,t)&&ge(this.experimental_defaultFormStateBehavior,r))},t.getDefaultFormState=function(e,t,r){return void 0===r&&(r=!1),tt(this.validator,e,t,this.rootSchema,r,this.experimental_defaultFormStateBehavior)},t.getDisplayLabel=function(e,t,r){return it(this.validator,e,t,this.rootSchema,r)},t.getClosestMatchingOption=function(e,t,r,n){return Be(this.validator,this.rootSchema,e,t,r,n)},t.getFirstMatchingOption=function(e,t,r){return Ae(this.validator,e,t,this.rootSchema,r)},t.getMatchingOption=function(e,t,r){return Oe(this.validator,e,t,this.rootSchema,r)},t.isFilesArray=function(e,t){return nt(this.validator,e,t,this.rootSchema)},t.isMultiSelect=function(e){return Je(this.validator,e,this.rootSchema)},t.isSelect=function(e){return He(this.validator,e,this.rootSchema)},t.mergeValidationData=function(e,t){return at(this.validator,e,t)},t.retrieveSchema=function(e,t){return We(this.validator,e,this.rootSchema,t)},t.sanitizeDataForNewSchema=function(e,t,r){return ut(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="_"),dt(this.validator,e,t,this.rootSchema,r,n,i)},t.toPathSchema=function(e,t,r){return ft(this.validator,e,t,this.rootSchema,r)},e}();function pt(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 ht(e,t,r){if(void 0===t&&(t=[]),Array.isArray(e))return e.map((function(e){return ht(e,t)})).filter((function(e){return e}));var n=""===e||null===e?-1:Number(e),i=t[n];return i?i.value:r}function mt(e,t){return Array.isArray(t)?t.some((function(t){return L.default(t,e)})):L.default(t,e)}var vt=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?_.default(this.errorSchema,e):this.errorSchema;return!t&&e&&U.default(this.errorSchema,e,t={}),t},n.resetAllErrors=function(e){return this.errorSchema=e?R.default(e):{},this},n.addErrors=function(e,t){var r,n=this.getOrCreateErrorBlock(t),i=_.default(n,te);return Array.isArray(i)||(n[te]=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 U.default(r,te,n),this},n.clearErrors=function(e){var t=this.getOrCreateErrorBlock(e);return U.default(t,te,[]),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 yt(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 gt,bt={props:{disabled:!1},submitText:"Submit",norender:!1},St=["options"],Ot={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 At(e,t,r){void 0===r&&(r={});var n=Ie(e);if("function"==typeof t||t&&k.default.isForwardRef(b.createElement(t))||k.default.isMemo(t))return function(e){var t=_.default(e,"MergedWidget");if(!t){var r=e.defaultProps&&e.defaultProps.options||{};U.default(e,"MergedWidget",t=function(t){var n=t.options,i=$(t,St);return g.jsx(e,V({options:V({},r,n)},i))})}return t}(t);if("string"!=typeof t)throw new Error("Unsupported widget definition: "+typeof t);if(t in r)return At(e,r[t],r);if("string"==typeof n){if(!(n in Ot))throw new Error("No widget for type '"+n+"'");if(t in Ot[n])return At(e,r[Ot[n][t]],r)}throw new Error("No widget '"+t+"' for type '"+n+"'")}function Et(e){var t=new Set;return JSON.stringify(e,(function(e,r){return t.add(e),r})),function(e){for(var t=0,r=0;r<e.length;r+=1)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t.toString(16)}(JSON.stringify(e,Array.from(t).sort()))}function wt(e,t){return(P.default(e)?e:e[re])+"__"+t}function It(e){return wt(e,"description")}function _t(e){return wt(e,"error")}function Dt(e){return wt(e,"examples")}function jt(e){return wt(e,"help")}function xt(e){if(ee in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(Q 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}function Tt(e,t){if(void 0===t&&(t=[]),!e)return[];var r=[];return te in e&&(r=r.concat(e[te].map((function(e){var r="."+t.join(".");return{property:r,message:e,stack:r+" "+e}})))),Object.keys(e).reduce((function(r,n){if(n!==te){var i=e[n];w.default(i)&&(r=r.concat(Tt(i,[].concat(t,[n]))))}return r}),r)}e.TranslatableString=void 0,(gt=e.TranslatableString||(e.TranslatableString={})).ArrayItemTitle="Item",gt.MissingItems="Missing items definition",gt.YesLabel="Yes",gt.NoLabel="No",gt.CloseLabel="Close",gt.ErrorsLabel="Errors",gt.NewStringDefault="New Value",gt.AddButton="Add",gt.AddItemButton="Add Item",gt.CopyButton="Copy",gt.MoveDownButton="Move down",gt.MoveUpButton="Move up",gt.RemoveButton="Remove",gt.NowLabel="Now",gt.ClearLabel="Clear",gt.AriaDateLabel="Select a date",gt.PreviewLabel="Preview",gt.DecrementAriaLabel="Decrease value by 1",gt.IncrementAriaLabel="Increase value by 1",gt.UnknownFieldType="Unknown field type %1",gt.OptionPrefix="Option %1",gt.TitleOptionPrefix="%1 option %2",gt.KeyLabel="%1 Key",gt.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',gt.UnsupportedField="Unsupported field schema.",gt.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",gt.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",gt.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",gt.FilesInfo="<strong>%1</strong> (%2, %3 bytes)";var Pt=function(){function e(e){this.rootSchema=void 0,this.schemaMap={},this.rootSchema=e,this.addSchema(e,Et(e))}var t=e.prototype;return t.addSchema=function(e,t){var r,n=_.default(e,re,t),i=V({},e,((r={})[re]=n,r)),a=this.schemaMap[n];if(a){if(!L.default(a,i))throw console.error("existing schema:",JSON.stringify(a,null,2)),console.error("new schema:",JSON.stringify(i,null,2)),new Error("Two different schemas exist with the same key "+n+"! What a bad coincidence. If possible, try adding an $id to one of the schemas")}else this.schemaMap[n]=i},t.getSchemaMap=function(){return this.schemaMap},t.isValid=function(e,t,r){if(!L.default(r,this.rootSchema))throw new Error("Unexpectedly calling isValid() with a rootSchema that differs from the construction rootSchema");return this.addSchema(e,Et(e)),!1},t.rawValidation=function(e,t){throw new Error("Unexpectedly calling the `rawValidation()` method during schema parsing")},t.toErrorList=function(e,t){throw new Error("Unexpectedly calling the `toErrorList()` method during schema parsing")},t.validateFormData=function(e,t,r,n,i){throw new Error("Unexpectedly calling the `validateFormData()` method during schema parsing")},e}();function Wt(e,t,r,n){qe(e,n,r,void 0,!0).forEach((function(n){-1===t.findIndex((function(e){return L.default(e,n)}))&&(t.push(n),Me(e,n,r,!0).forEach((function(i){se in i&&i[se]&&B.default(n[se],(function(n){Wt(e,t,r,n)}))})),ie in n&&!Array.isArray(n.items)&&"boolean"!=typeof n.items&&Wt(e,t,r,n.items))}))}e.ADDITIONAL_PROPERTIES_KEY=J,e.ADDITIONAL_PROPERTY_FLAG=H,e.ALL_OF_KEY=z,e.ANY_OF_KEY=G,e.CONST_KEY=Q,e.DEFAULT_KEY=X,e.DEFINITIONS_KEY="definitions",e.DEPENDENCIES_KEY=Z,e.ENUM_KEY=ee,e.ERRORS_KEY=te,e.ErrorSchemaBuilder=vt,e.ID_KEY=re,e.IF_KEY=ne,e.ITEMS_KEY=ie,e.JUNK_OPTION_ID=ae,e.NAME_KEY=oe,e.ONE_OF_KEY=ue,e.PROPERTIES_KEY=se,e.REF_KEY=fe,e.REQUIRED_KEY=de,e.RJSF_ADDITONAL_PROPERTIES_FLAG=ce,e.ROOT_SCHEMA_PREFIX=pe,e.SUBMIT_BTN_OPTIONS_KEY=le,e.UI_FIELD_KEY=he,e.UI_GLOBAL_OPTIONS_KEY="ui:globalOptions",e.UI_OPTIONS_KEY=ve,e.UI_WIDGET_KEY=me,e.allowAdditionalItems=function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),Y(e.additionalItems)},e.ariaDescribedByIds=function(e,t){void 0===t&&(t=!1);var r=t?" "+Dt(e):"";return _t(e)+" "+It(e)+" "+jt(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=ye(t).expandable,i=void 0===n||n;return!1===i?i:void 0===e.maxProperties||!r||Object.keys(r).length<e.maxProperties},e.createErrorHandler=function e(t){var r,n=((r={})[te]=[],r.addError=function(e){this[te].push(e)},r);if(Array.isArray(t))return t.reduce((function(t,r,n){var i;return V({},t,((i={})[n]=e(r),i))}),n);if(w.default(t)){var i=t;return Object.keys(i).reduce((function(t,r){var n;return V({},t,((n={})[r]=e(i[r]),n))}),n)}return n},e.createSchemaUtils=function(e,t,r){return void 0===r&&(r={}),new ct(e,t,r)},e.dataURItoBlob=function(e){var t,r=e.split(","),n=r[0].split(";"),i=n[0].replace("data:",""),a=n.filter((function(e){return"name"===e.split("=")[0]}));t=1!==a.length?"unknown":decodeURI(a[0].split("=")[1]);try{for(var o=atob(r[1]),u=[],s=0;s<o.length;s++)u.push(o.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=ge,e.descriptionId=It,e.englishStringTranslator=function(e,t){return pt(e,t)},e.enumOptionsDeselectValue=function(e,t,r){void 0===r&&(r=[]);var n=ht(e,r);return Array.isArray(t)?t.filter((function(e){return!L.default(e,n)})):L.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 mt(t.value,e)?String(r):void 0})).filter((function(e){return void 0!==e}));return r?n:n[0]},e.enumOptionsIsSelected=mt,e.enumOptionsSelectValue=function(e,t,r){void 0===r&&(r=[]);var n=ht(e,r);if(!v.isNil(n)){var i=r.findIndex((function(e){return n===e.value})),a=r.map((function(e){return e.value}));return t.slice(0,i).concat(n,t.slice(i)).sort((function(e,t){return Number(a.indexOf(e)>a.indexOf(t))}))}return t},e.enumOptionsValueForIndex=ht,e.errorId=_t,e.examplesId=Dt,e.findSchemaDefinition=Se,e.getClosestMatchingOption=Be,e.getDefaultFormState=tt,e.getDiscriminatorFieldFromSchema=Ee,e.getDisplayLabel=it,e.getFirstMatchingOption=Ae,e.getInputProps=function(e,t,r,n){void 0===r&&(r={}),void 0===n&&(n=!0);var i=V({type:t||"text"},yt(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=Oe,e.getSchemaType=Ie,e.getSubmitButtonOptions=function(e){void 0===e&&(e={});var t=ye(e);return t&&t[le]?V({},bt,t[le]):bt},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=ye,e.getWidget=At,e.guessType=we,e.hasWidget=function(e,t,r){void 0===r&&(r={});try{return At(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.hashForSchema=Et,e.helpId=jt,e.isConstant=$e,e.isCustomWidget=rt,e.isFilesArray=nt,e.isFixedItems=Ye,e.isMultiSelect=Je,e.isObject=Y,e.isSelect=He,e.labelValue=function(e,t,r){return t?r:e},e.localToUTC=function(e){return e?new Date(e).toJSON():void 0},e.mergeDefaultsWithFormData=Ve,e.mergeObjects=Ke,e.mergeSchemas=_e,e.mergeValidationData=at,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=xt(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),a=t.filter((function(e){return"*"===e||i[e]})),o=n(a),u=e.filter((function(e){return!o[e]})),s=a.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 a}if(s!==a.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var d=[].concat(a);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=yt,e.replaceStringParameters=pt,e.retrieveSchema=We,e.sanitizeDataForNewSchema=ut,e.schemaParser=function(e){var t=new Pt(e);return Wt(t,[],e,e),t.getSchemaMap()},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!ge(e.props,t)||!ge(n,r)},e.titleId=function(e){return wt(e,"title")},e.toConstant=xt,e.toDateString=function(e,t){void 0===t&&(t=!0);var r=e.hour,n=e.minute,i=e.second,a=Date.UTC(e.year,e.month-1,e.day,void 0===r?0:r,void 0===n?0:n,void 0===i?0:i),o=new Date(a).toJSON();return t?o:o.slice(0,10)},e.toErrorList=Tt,e.toErrorSchema=function(e){var t=new vt;return e.length&&e.forEach((function(e){var r=e.property,n=e.message,i="."===r?[]:C.default(r);i.length>0&&""===i[0]&&i.splice(0,1),n&&t.addErrors(n,i)})),t.ErrorSchema},e.toIdSchema=dt,e.toPathSchema=ft,e.unwrapErrorHandler=function e(t){return Object.keys(t).reduce((function(r,n){if("addError"===n)return r;var i,a,o=t[n];return w.default(o)?V({},r,((a={})[n]=e(o),a)):V({},r,((i={})[n]=o,i))}),{})},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)},e.validationDataMerge=function(e,t){if(!t)return e;var r=e.errors,n=e.errorSchema,i=Tt(t),a=t;return D.default(n)||(a=Ke(n,t,!0),i=[].concat(r).concat(i)),{errorSchema:a,errors:i}},e.withIdRefPrefix=function e(t){return t.constructor===Object?function(t){for(var r in t){var n=t[r];t[r]=r===fe&&"string"==typeof n&&n.startsWith("#")?pe+n:e(n)}return t}(V({},t)):Array.isArray(t)?function(t){for(var r=0;r<t.length;r++)t[r]=e(t[r]);return t}([].concat(t)):t},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=utils.umd.production.min.js.map |
{ | ||
"name": "@rjsf/utils", | ||
"version": "5.9.0", | ||
"version": "5.10.0", | ||
"main": "dist/index.js", | ||
@@ -42,3 +42,3 @@ "module": "dist/utils.esm.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.22.5", | ||
"@babel/core": "^7.22.9", | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
@@ -48,3 +48,3 @@ "@babel/plugin-proposal-optional-chaining": "^7.21.0", | ||
"@babel/plugin-transform-react-jsx": "^7.22.5", | ||
"@babel/preset-env": "^7.22.5", | ||
"@babel/preset-env": "^7.22.9", | ||
"@babel/preset-react": "^7.22.5", | ||
@@ -59,3 +59,3 @@ "@types/jest-expect-message": "^1.1.0", | ||
"dts-cli": "^1.6.3", | ||
"eslint": "^8.43.0", | ||
"eslint": "^8.44.0", | ||
"jest-expect-message": "^1.1.3", | ||
@@ -84,3 +84,3 @@ "react": "^17.0.2", | ||
"license": "Apache-2.0", | ||
"gitHead": "aa379209ab332dc499d279bf39c2a0dfbe857d9a" | ||
"gitHead": "d05138f4dc678e0f6f85e13780dd3e17074791c8" | ||
} |
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
2114246
12897