@chobantonov/jsonforms-react-shadcn-webcomponent 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +91 -2
  3. package/dist/JsonFormsShadcnElement.d.ts +29 -0
  4. package/dist/index.d.ts +3 -0
  5. package/dist/jsonforms-react-shadcn.js +1 -0
  6. package/dist/register.d.ts +2 -0
  7. package/dist/register.js +6 -0
  8. package/dist/register.js.map +1 -0
  9. package/dist/renderers.d.ts +2 -0
  10. package/dist/src-CLRAt7jc.mjs +9482 -0
  11. package/dist/src-CLRAt7jc.mjs.map +1 -0
  12. package/dist/standalone/AgGridControlRenderer.impl-BZS8_ocu-Dp2429lF.mjs +39184 -0
  13. package/dist/standalone/AgGridControlRenderer.impl-BZS8_ocu-Dp2429lF.mjs.map +1 -0
  14. package/dist/standalone/DynamicJSXRenderer-DyB3ZpZV-Dr83kPeb.mjs +14893 -0
  15. package/dist/standalone/DynamicJSXRenderer-DyB3ZpZV-Dr83kPeb.mjs.map +1 -0
  16. package/dist/standalone/FileArrayInput.esm-BG196JYM.mjs +760 -0
  17. package/dist/standalone/FileArrayInput.esm-BG196JYM.mjs.map +1 -0
  18. package/dist/standalone/MarkupLabelRenderer.impl-CWfdcUuH-BgJ-v1Ei.mjs +12 -0
  19. package/dist/standalone/MarkupLabelRenderer.impl-CWfdcUuH-BgJ-v1Ei.mjs.map +1 -0
  20. package/dist/standalone/MonacoControlRenderer.impl-CyjMHbOd-BP-CDX3S.mjs +773 -0
  21. package/dist/standalone/MonacoControlRenderer.impl-CyjMHbOd-BP-CDX3S.mjs.map +1 -0
  22. package/dist/standalone/RactiveTemplate-Cat7CxUp-BnyPMY_h.mjs +8028 -0
  23. package/dist/standalone/RactiveTemplate-Cat7CxUp-BnyPMY_h.mjs.map +1 -0
  24. package/dist/standalone/celTemplate-D_AGhaIL-ryXLzhcw.mjs +137 -0
  25. package/dist/standalone/celTemplate-D_AGhaIL-ryXLzhcw.mjs.map +1 -0
  26. package/dist/standalone/classPrivateFieldGet2-CAMXi-8L.mjs +22 -0
  27. package/dist/standalone/dynamicCel.esm-DrqwYtar.mjs +43 -0
  28. package/dist/standalone/dynamicCel.esm-DrqwYtar.mjs.map +1 -0
  29. package/dist/standalone/index.js +24493 -0
  30. package/dist/standalone/index.js.map +1 -0
  31. package/dist/standalone/jsonforms-react-extended.esm-CFwqhFcu.mjs +13760 -0
  32. package/dist/standalone/jsonforms-react-extended.esm-CFwqhFcu.mjs.map +1 -0
  33. package/dist/standalone/lib-DHN5bkVZ.mjs +3149 -0
  34. package/dist/standalone/lib-DHN5bkVZ.mjs.map +1 -0
  35. package/dist/standalone/markdown-C_y73Q0w-DE-0r4-5.mjs +3060 -0
  36. package/dist/standalone/markdown-C_y73Q0w-DE-0r4-5.mjs.map +1 -0
  37. package/dist/standalone/plainRecord.esm-D_l3rehZ.mjs +123 -0
  38. package/dist/standalone/plainRecord.esm-D_l3rehZ.mjs.map +1 -0
  39. package/dist/standalone/react-dom-DUZYP7tL.mjs +5644 -0
  40. package/dist/standalone/react-dom-DUZYP7tL.mjs.map +1 -0
  41. package/package.json +82 -3
  42. package/src/JsonFormsShadcnElement.tsx +208 -0
  43. package/src/components/ui/alert.tsx +65 -0
  44. package/src/components/ui/avatar.tsx +108 -0
  45. package/src/components/ui/breadcrumb.tsx +111 -0
  46. package/src/components/ui/button.tsx +64 -0
  47. package/src/components/ui/calendar.tsx +223 -0
  48. package/src/components/ui/card.tsx +91 -0
  49. package/src/components/ui/checkbox.tsx +31 -0
  50. package/src/components/ui/collapsible.tsx +21 -0
  51. package/src/components/ui/dialog.tsx +175 -0
  52. package/src/components/ui/index.ts +12 -0
  53. package/src/components/ui/input.tsx +22 -0
  54. package/src/components/ui/item.tsx +193 -0
  55. package/src/components/ui/pagination.tsx +132 -0
  56. package/src/components/ui/popover.tsx +88 -0
  57. package/src/components/ui/radio-group.tsx +44 -0
  58. package/src/components/ui/resizable.tsx +52 -0
  59. package/src/components/ui/scroll-area.tsx +57 -0
  60. package/src/components/ui/select.tsx +189 -0
  61. package/src/components/ui/separator.tsx +27 -0
  62. package/src/components/ui/slider.tsx +62 -0
  63. package/src/components/ui/switch.tsx +34 -0
  64. package/src/components/ui/tabs.tsx +90 -0
  65. package/src/components/ui/textarea.tsx +17 -0
  66. package/src/components/ui/tooltip.tsx +56 -0
  67. package/src/components/ui/utils.ts +5 -0
  68. package/src/index.tsx +4 -0
  69. package/src/register.ts +13 -0
  70. package/src/renderers.ts +14 -0
  71. package/src/styles.css +29 -0
  72. package/src/vite-env.d.ts +4 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonforms-react-extended.esm-CFwqhFcu.mjs","names":["isEmpty","range","startCase","get","has","includes","find","Ajv","filter","isEqual","keys","merge","isFunction","cloneDeep","or","reduce","toPairs","maxBy","t","n","r","i","a","o","l","u","f","d","m","e","n","r","i","e","t","n","e","r","i","a","o","s","l","u","e","e","n","e","r","o","c","l","t","Component","useRef","useState","Actions","useReducer","useCallback","useMemo","debounce","useContext","maxBy","i","r","n","t","e","a","o","e","t","n","r","i","a","o","s","c","e","t","n","r","i","e","t","a","o","r","s","c","l","e","u","d","f","p","m","h","g","n","_","v","y","b","x","S","w","T","E","D","i","O","k","A","t","j","e","t","h","v","c","p","y","o","s","e","g","i","C","r","l","d","u","f","n","t","b","S","L","R","z","a","B","V","H","U","a","i","e","r","e","t","r","n","o","s","c","l","f","i","u","a","p","y","h","getUntracked","n","t","r","i","e","e","t","a","o","s","c","l","u","r","e","i","t","n","e","t","n","r","i","a","o","s","c","i","n","r","e","n","r","i","e","a","t","o","e","t","a","o","s","r","c","n","e","t","l","c","a","o","i","r","l","n","u","e","t","s","a","t","i","o","e","n","r","M","E","se","N","b","S","o","P","I","Ce","z","u","F","t","_e","he","l","we","f","Te","Oe","O","V","ve","C","B","xe","A","R","me","T","D","ue","m","_","v","pe","Pe","Fe","Ae","d","x","Me","je","ke","ee","k","ie","ce","Ne","fe","oe","ne","re","Ke","qe","Ge","We","W","Je","Ze","Xe","Ye","He","y","Be","r","Qe","$e","ge","ye","be","w","De","Ee","de","Se","ae","te","j","le","rt","init_objectSpread2","__commonJSMin","__toCommonJS","__toESM","__esmMin","_asyncToGenerator","init_asyncToGenerator","e$13","__exportAll","require__isPrototype","objectProto","isPrototype","Ctor","value","require__overArg","overArg","func","transform","arg","require__nativeKeys","require__baseKeys","nativeKeys","hasOwnProperty","baseKeys","object","result","key","require__freeGlobal","require__root","freeGlobal","freeSelf","require__Symbol","require__getRawTag","Symbol","nativeObjectToString","symToStringTag","getRawTag","isOwn","tag","unmasked","require__objectToString","objectToString","require__baseGetTag","nullTag","undefinedTag","baseGetTag","require_isObject","isObject","type","require_isFunction","asyncTag","funcTag","genTag","proxyTag","isFunction","require__coreJsData","require__isMasked","coreJsData","maskSrcKey","uid","isMasked","require__toSource","funcToString","toSource","require__baseIsNative","reRegExpChar","reIsHostCtor","funcProto","reIsNative","baseIsNative","require__getValue","getValue","require__getNative","getNative","require__DataView","require__Map","require__Promise","require__Set","require__WeakMap","require__getTag","DataView","Map","Promise","Set","WeakMap","mapTag","objectTag","promiseTag","setTag","weakMapTag","dataViewTag","dataViewCtorString","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","getTag","ctorString","require_isObjectLike","isObjectLike","require__baseIsArguments","argsTag","baseIsArguments","require_isArguments","propertyIsEnumerable","require_isArray","require_isLength","isLength","require_isArrayLike","isArrayLike","require_stubFalse","stubFalse","require_isBuffer","root","freeExports","exports","freeModule","module","Buffer","require__baseIsTypedArray","arrayTag","boolTag","dateTag","errorTag","numberTag","regexpTag","stringTag","arrayBufferTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","typedArrayTags","baseIsTypedArray","require__baseUnary","baseUnary","require__nodeUtil","freeProcess","require_isTypedArray","nodeUtil","nodeIsTypedArray","require_isEmpty","isArguments","isArray","isBuffer","isTypedArray","isEmpty","require__arrayReduce","arrayReduce","index","length","array","initAccum","iteratee","accumulator","require__basePropertyOf","basePropertyOf","require__deburrLetter","\"À\"","\"Á\"","\"Â\"","\"Ã\"","\"Ä\"","\"Å\"","\"à\"","\"á\"","\"â\"","\"ã\"","\"ä\"","\"å\"","\"Ç\"","\"ç\"","\"Ð\"","\"ð\"","\"È\"","\"É\"","\"Ê\"","\"Ë\"","\"è\"","\"é\"","\"ê\"","\"ë\"","\"Ì\"","\"Í\"","\"Î\"","\"Ï\"","\"ì\"","\"í\"","\"î\"","\"ï\"","\"Ñ\"","\"ñ\"","\"Ò\"","\"Ó\"","\"Ô\"","\"Õ\"","\"Ö\"","\"Ø\"","\"ò\"","\"ó\"","\"ô\"","\"õ\"","\"ö\"","\"ø\"","\"Ù\"","\"Ú\"","\"Û\"","\"Ü\"","\"ù\"","\"ú\"","\"û\"","\"ü\"","\"Ý\"","\"ý\"","\"ÿ\"","\"Æ\"","\"æ\"","\"Þ\"","\"þ\"","\"ß\"","\"Ā\"","\"Ă\"","\"Ą\"","\"ā\"","\"ă\"","\"ą\"","\"Ć\"","\"Ĉ\"","\"Ċ\"","\"Č\"","\"ć\"","\"ĉ\"","\"ċ\"","\"č\"","\"Ď\"","\"Đ\"","\"ď\"","\"đ\"","\"Ē\"","\"Ĕ\"","\"Ė\"","\"Ę\"","\"Ě\"","\"ē\"","\"ĕ\"","\"ė\"","\"ę\"","\"ě\"","\"Ĝ\"","\"Ğ\"","\"Ġ\"","\"Ģ\"","\"ĝ\"","\"ğ\"","\"ġ\"","\"ģ\"","\"Ĥ\"","\"Ħ\"","\"ĥ\"","\"ħ\"","\"Ĩ\"","\"Ī\"","\"Ĭ\"","\"Į\"","\"İ\"","\"ĩ\"","\"ī\"","\"ĭ\"","\"į\"","\"ı\"","\"Ĵ\"","\"ĵ\"","\"Ķ\"","\"ķ\"","\"ĸ\"","\"Ĺ\"","\"Ļ\"","\"Ľ\"","\"Ŀ\"","\"Ł\"","\"ĺ\"","\"ļ\"","\"ľ\"","\"ŀ\"","\"ł\"","\"Ń\"","\"Ņ\"","\"Ň\"","\"Ŋ\"","\"ń\"","\"ņ\"","\"ň\"","\"ŋ\"","\"Ō\"","\"Ŏ\"","\"Ő\"","\"ō\"","\"ŏ\"","\"ő\"","\"Ŕ\"","\"Ŗ\"","\"Ř\"","\"ŕ\"","\"ŗ\"","\"ř\"","\"Ś\"","\"Ŝ\"","\"Ş\"","\"Š\"","\"ś\"","\"ŝ\"","\"ş\"","\"š\"","\"Ţ\"","\"Ť\"","\"Ŧ\"","\"ţ\"","\"ť\"","\"ŧ\"","\"Ũ\"","\"Ū\"","\"Ŭ\"","\"Ů\"","\"Ű\"","\"Ų\"","\"ũ\"","\"ū\"","\"ŭ\"","\"ů\"","\"ű\"","\"ų\"","\"Ŵ\"","\"ŵ\"","\"Ŷ\"","\"ŷ\"","\"Ÿ\"","\"Ź\"","\"Ż\"","\"Ž\"","\"ź\"","\"ż\"","\"ž\"","\"IJ\"","\"ij\"","\"Œ\"","\"œ\"","\"ʼn\"","\"ſ\"","require__arrayMap","arrayMap","require_isSymbol","symbolTag","isSymbol","require__baseToString","INFINITY","symbolProto","symbolToString","baseToString","require_toString","toString","require_deburr","deburrLetter","reLatin","reComboMark","deburr","string","require__asciiWords","reAsciiWord","asciiWords","require__hasUnicodeWord","reHasUnicodeWord","hasUnicodeWord","require__unicodeWords","rsAstralRange","rsComboRange","rsDingbatRange","rsLowerRange","rsMathOpRange","rsNonCharRange","rsPunctuationRange","rsSpaceRange","rsUpperRange","rsVarRange","rsBreakRange","rsApos","rsBreak","rsCombo","rsDigits","rsDingbat","rsLower","rsMisc","rsModifier","rsNonAstral","rsRegional","rsSurrPair","rsUpper","rsZWJ","rsMiscLower","rsMiscUpper","rsOptContrLower","rsOptContrUpper","reOptMod","rsOptVar","rsOptJoin","rsOrdLower","rsOrdUpper","rsSeq","rsEmoji","reUnicodeWord","unicodeWords","require_words","words","guard","pattern","require__createCompounder","reApos","createCompounder","callback","require__baseSlice","baseSlice","start","end","require__castSlice","castSlice","require__hasUnicode","reHasUnicode","hasUnicode","require__asciiToArray","asciiToArray","require__unicodeToArray","rsAstral","rsFitz","rsSymbol","reUnicode","unicodeToArray","require__stringToArray","stringToArray","require__createCaseFirst","createCaseFirst","strSymbols","chr","trailing","methodName","require_upperFirst","require_startCase","upperFirst","word","require__baseTimes","baseTimes","n","require__isIndex","reIsUint","isIndex","require__arrayLikeKeys","arrayLikeKeys","isArr","isArg","isBuff","isType","skipIndexes","inherited","require_keys","keys","require__baseRange","nativeCeil","nativeMax","baseRange","step","fromRight","require_eq","eq","other","require__isIterateeCall","isIterateeCall","require__trimmedEndIndex","reWhitespace","trimmedEndIndex","require__baseTrim","reTrimStart","baseTrim","require_toNumber","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","isBinary","require_toFinite","MAX_INTEGER","toFinite","require__createRange","createRange","require_range$2","require__isKey","reIsDeepProp","reIsPlainProp","isKey","require__nativeCreate","require__hashClear","nativeCreate","hashClear","require__hashDelete","hashDelete","require__hashGet","HASH_UNDEFINED","hashGet","data","require__hashHas","hashHas","require__hashSet","hashSet","require__Hash","Hash","entries","entry","\"delete\"","require__listCacheClear","listCacheClear","require__assocIndexOf","assocIndexOf","require__listCacheDelete","splice","listCacheDelete","require__listCacheGet","listCacheGet","require__listCacheHas","listCacheHas","require__listCacheSet","listCacheSet","require__ListCache","ListCache","require__mapCacheClear","mapCacheClear","\"hash\"","\"map\"","\"string\"","require__isKeyable","isKeyable","require__getMapData","getMapData","map","require__mapCacheDelete","mapCacheDelete","require__mapCacheGet","mapCacheGet","require__mapCacheHas","mapCacheHas","require__mapCacheSet","mapCacheSet","size","require__MapCache","MapCache","require_memoize","FUNC_ERROR_TEXT","memoize","resolver","memoized","args","cache","require__memoizeCapped","MAX_MEMOIZE_SIZE","memoizeCapped","require__stringToPath","rePropName","reEscapeChar","quote","subString","number","match","require__castPath","stringToPath","castPath","require__toKey","toKey","require__baseGet","baseGet","path","require_get","get","defaultValue","require__baseFindIndex","baseFindIndex","fromIndex","predicate","require__baseIsNaN","baseIsNaN","require__strictIndexOf","strictIndexOf","require__baseIndexOf","baseIndexOf","require_isString","isString","require_toInteger","toInteger","remainder","require__baseValues","baseValues","props","require_values","values","require_includes","includes","collection","require__stackClear","stackClear","require__stackDelete","stackDelete","require__stackGet","stackGet","require__stackHas","stackHas","require__stackSet","LARGE_ARRAY_SIZE","stackSet","pairs","require__Stack","Stack","require__setCacheAdd","setCacheAdd","require__setCacheHas","setCacheHas","require__SetCache","SetCache","require__arraySome","arraySome","require__cacheHas","cacheHas","require__equalArrays","COMPARE_PARTIAL_FLAG","COMPARE_UNORDERED_FLAG","equalArrays","isPartial","bitmask","arrLength","othLength","arrStacked","stack","othStacked","seen","arrValue","othValue","customizer","compared","othIndex","equalFunc","require__Uint8Array","require__mapToArray","mapToArray","require__setToArray","setToArray","set","require__equalByTag","Uint8Array","symbolValueOf","equalByTag","convert","stacked","require__arrayPush","arrayPush","offset","require__baseGetAllKeys","baseGetAllKeys","keysFunc","symbolsFunc","require__arrayFilter","arrayFilter","resIndex","require_stubArray","stubArray","require__getSymbols","nativeGetSymbols","symbol","require__getAllKeys","getSymbols","getAllKeys","require__equalObjects","equalObjects","objProps","objLength","objStacked","skipCtor","objValue","objCtor","othCtor","require__baseIsEqualDeep","baseIsEqualDeep","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","require__baseIsEqual","baseIsEqual","require__baseIsMatch","baseIsMatch","matchData","noCustomizer","srcValue","source","require__isStrictComparable","isStrictComparable","require__getMatchData","getMatchData","require__matchesStrictComparable","matchesStrictComparable","require__baseMatches","baseMatches","require__baseHasIn","baseHasIn","require__hasPath","hasPath","hasFunc","require_hasIn","hasIn","require__baseMatchesProperty","baseMatchesProperty","require_identity","identity","require__baseProperty","baseProperty","require__basePropertyDeep","basePropertyDeep","require_property","property","require__baseIteratee","baseIteratee","require__createFind","createFind","iterable","findIndexFunc","require_findIndex","findIndex","require_find","require__baseHas","baseHas","require_has","has","require_code$1","_CodeOrName","Name","s","_Code","code","item","_a","c","names","_","strs","addCodeArg","plus","str","expr","safeStringify","optimize","interpolate","i","res","mergeExprItems","b","a","strConcat","c2","c1","x","stringify","getProperty","getEsmExportName","regexpCode","rx","require_scope","code_1","ValueError","name","UsedValueState","\"Started\"","\"Completed\"","Scope","prefixes","parent","nameOrPrefix","prefix","ng","_b","ValueScopeName","nameStr","itemIndex","line","opts","_objectSpread2","valueKey","vs","_name","keyOrRef","scopeName","usedValues","getCode","nameSet","valueCode","def","require_codegen","scope_1","code_2","scope_2","Node","Def","varKind","rhs","es5","_n","optimizeExpr","constants","Assign","lhs","sideEffects","addExprNames","AssignOp","op","Label","label","Break","Throw","error","AnyCode","ParentNode","nodes","subtractNames","addNames","BlockNode","Root","Else","If","condition","cond","e","ns","not","For","ForLoop","iteration","ForRange","from","to","ForIter","loop","Func","async","Return","Try","Catch","Finally","extScope","prefixOrName","constant","_constant","keyValues","thenBody","elseBody","node","forBody","arr","obj","catchCode","finallyCode","tryBody","body","nodeCount","len","toClose","funcBody","N1","N2","replaceName","canOptimize","items","par","andCode","mappend","and","orCode","or","y","require_util","codegen_1","toHash","hash","alwaysValidSchema","schema","checkUnknownRules","it","schemaHasRules","rules","self","checkStrictMode","schemaHasRulesButRef","RULES","schemaRefOrVal","$data","topSchemaRef","schemaPath","keyword","unescapeFragment","unescapeJsonPointer","escapeFragment","escapeJsonPointer","eachItem","xs","makeMergeEvaluated","mergeNames","gen","mergeToName","mergeValues","toName","resultToName","setEvaluated","evaluatedPropsToName","ps","p","snippets","useFunc","f","Type","\"Num\"","\"Str\"","getErrorPath","dataProp","isNumber","dataPropType","jsPropertySyntax","mode","msg","require_names","require_errors","util_1","names_1","schemaType","reportError","cxt","errObj","errorObjectCode","errorPaths","overrideAllErrors","compositeRule","allErrors","addError","returnErrors","reportExtraError","resetErrorsCount","errsCount","extendErrors","err","schemaValue","schemaEnv","errs","validateName","E","createErrors","errorObject","errorInstancePath","errorSchemaPath","extraErrorProps","instPath","instancePath","errorPath","schPath","parentSchema","errSchemaPath","params","message","propertyName","require_boolSchema","errors_1","boolError","topBoolOrEmptySchema","falseSchemaError","boolOrEmptySchema","valid","require_rules","jsonTypes","isJSONType","getRules","groups","require_applicability","schemaHasRulesForType","group","shouldUseGroup","shouldUseRule","rule","kwd","require_dataType","rules_1","applicability_1","DataType","\"Correct\"","\"Wrong\"","getSchemaTypes","types","getJSONTypes","ts","coerceAndCheckDataType","coerceTo","coerceToTypes","checkTypes","wrongType","checkDataTypes","coerceData","reportTypeError","COERCIBLE","coerceTypes","t","dataType","coerced","coerceSpecificType","assignParentData","parentData","parentDataProperty","checkDataType","EQ","correct","numCond","_cond","strictNums","dataTypes","notObj","typeError","getTypeErrorContext","schemaCode","require_defaults","assignDefaults","ty","properties","assignDefault","sch","childData","prop","require_code","util_2","checkReportMissingProp","noPropertyInData","checkMissingProp","missing","reportMissingProp","hasPropFunc","isOwnProperty","propertyInData","ownProperties","allSchemaProperties","schemaMap","schemaProperties","callValidateCode","dataAndSchema","passSchema","valCxt","context","newRegExp","usePattern","u","regExp","validateArray","validArr","validateItems","notValid","validateUnion","schValid","schCxt","require_keyword","macroKeywordCode","macroSchema","schemaRef","useKeyword","funcKeywordCode","validateRef","validateKeyword","assignValid","modifyData","reportErrs","ruleErrs","validateAsync","validateSync","addErrs","validateErrs","passCxt","_await","errors","checkAsyncKeyword","validSchemaType","st","allowUndefined","validateKeywordUsage","deps","require_subschema","getSubschema","schemaProp","extendSubschemaData","dpType","dataContextProps","dataPathArr","subschema","_nextData","extendSubschemaMode","jtdDiscriminator","jtdMetadata","require_fast_deep_equal","equal","require_json_schema_traverse","traverse","cb","pre","post","_traverse","jsonPtr","rootSchema","parentJsonPtr","parentKeyword","keyIndex","escapeJsonPtr","require_resolve","SIMPLE_INLINED","inlineRef","limit","hasRef","countKeys","REF_KEYWORDS","count","getFullPath","normalize","normalizeId","id","_getFullPath","TRAILING_SLASH_HASH","resolveUrl","baseId","ANCHOR","getSchemaRefs","schId","schemaId","baseIds","pathPrefix","uriResolver","localRefs","schemaRefs","fullPath","innerBaseId","addRef","addAnchor","_resolve","ref","ambiguos","schOrRef","checkAmbiguosRef","anchor","sch2","sch1","require_validate","boolSchema_1","dataType_1","dataType_2","defaults_1","keyword_1","subschema_1","resolve_1","validateFunctionCode","isSchemaObj","checkKeywords","schemaCxtHasRules","topSchemaObjCode","validateFunction","funcSourceUrl","destructureValCxtES5","destructureValCxt","commentKeyword","checkNoDefault","resetEvaluated","typeAndKeywords","returnResults","subschemaCode","subSchemaObjCode","updateContext","checkAsyncSchema","checkRefsAndKeywords","schemaKeywords","rootName","ValidationError","assignEvaluated","evaluated","keywordCode","checkStrictTypes","groupKeywords","iterateKeywords","typeErrors","useDefaults","checkContextTypes","checkMultipleTypes","checkKeywordTypes","includesType","strictTypesError","narrowSchemaTypes","hasApplicableType","schTs","kwdT","withTypes","KeywordCxt","getData","successAction","failAction","errorParams","append","assign","$dataValid","codeBlock","wrong$DataType","invalid$DataSchema","validateSchemaRef","appl","nextContext","schemaCxt","ruleType","JSON_POINTER","RELATIVE_JSON_POINTER","jsonPointer","matches","up","dataLevel","errorMsg","dataNames","segments","segment","pointerType","require_validation_error","require_ref_error","require_compile","validation_error_1","validate_1","SchemaEnv","env","compileSchema","_sch","getCompilingSchema","rootId","_ValidationError","sourceCode","validateCode","validate","resolveRef","schOrFunc","resolve","inlineOrCompile","sameSchemaEnv","schEnv","s1","s2","resolveSchema","refPath","getJsonPointer","PREVENT_SCOPE_CHANGE","parsedRef","part","partSchema","$ref","data_exports","$id$1","data_default","description","properties$1","required","type$1","init_data","\"$data\"","\"type\"","\"anyOf\"","\"format\"","require_scopedChars","require_utils","IPV4_REG","normalizeIPv4","findToken","host","address","stripLeadingZeros","stringArrayToHexStripped","acc","strip","input","HEX","keepZero","getIPV6","tokenCount","output","buffer","isZone","endipv6Encountered","endIpv6","consume","hex","cursor","normalizeIPv6","ipv6","newHost","escapedHost","out","skip","l","token","ind","RDS1","RDS2","RDS3","RDS5","removeDotSegments","im","normalizeComponentEncoding","esc","components","recomposeAuthority","uriTokens","ipV4res","ipV6res","require_schemes","UUID_REG","URN_REG","isSecure","wsComponents","httpParse","httpSerialize","secure","wsParse","wsSerialize","query","urnParse","urnComponents","scheme","options","schemeHandler","SCHEMES","urnSerialize","nid","uriComponents","nss","urnuuidParse","uuidComponents","urnuuidSerialize","http","https","ws","require_fast_uri","uri","serialize","parse","schemelessOptions","resolveComponents","baseURI","relativeURI","target","skipNormalization","base","relative","uriA","uriB","cmpts","authority","hexLookUp","k","nonSimpleDomain","URI_PARSE","parsed","gotEncoding","isIP","ipv4result","ipv6result","fastUri","require_uri","require_core$1","ref_error_1","compile_1","codegen_2","$dataRefSchema","uri_1","defaultRegExp","flags","META_IGNORE_OPTIONS","EXT_SCOPE_NAMES","removedOptions","deprecatedOptions","MAX_EXPRESSION","requiredOptions","_c","_d","_e","_f","_g","_h","_j","_k","_l","_m","_o","_p","_q","_r","_s","_t","_u","_v","_w","_x","_y","_z","_0","o","_optz","Ajv","getLogger","formatOpt","checkOptions","getMetaSchemaOptions","addInitialFormats","addInitialKeywords","addInitialSchemas","_dataRefSchema","meta","v","schemaKeyRef","_meta","runCompileAsync","_runCompileAsync","loadMetaSchema","_schema","_compileAsync","_loadMetaSchema","_compileAsync2","checkLoaded","loadMissingSchema","missingRef","_loadMissingSchema","_loadSchema","_loadSchema2","loadSchema","_validateSchema","$schema","throwOrLogError","getSchEnv","keyRef","cacheKey","definitions","kwdOrDef","checkKeyword","addRule","definition","format","dataVar","text","separator","metaSchema","keywordsJsonPointers","keywords","seg","schemaOrData","schemas","regex","addSchema","validateSchema","currentOpts","checkOpts","opt","log","optsSchemas","defs","metaOpts","noLogs","logger","KEYWORD_NAME","ruleGroup","addBeforeRule","_rule","before","keywordMetaschema","$dataRef","require_id","require_ref","callRootRef","schOrEnv","callValidate","inlineRefSchema","callRef","getValidate","schName","$async","callAsyncRef","callSyncRef","addEvaluatedFrom","addErrorsFrom","schEvaluated","require_core","id_1","ref_1","require_limitNumber","ops","KWDs","require_multipleOf","prec","invalid","require_ucs2length","ucs2length","pos","require_limitLength","ucs2length_1","comp","require_pattern","regExpCode","require_limitProperties","require_required","missingProperty","useLoop","allErrorsMode","exitOnErrorMode","requiredKey","definedProperties","loopAllRequired","loopUntilMissing","require_limitItems","require_equal","require_uniqueItems","equal_1","j","itemTypes","validateUniqueItems","loopN","loopN2","indices","eql","outer","require_const","require_enum","getEql","loopEnum","vSchema","equalCode","require_validation","limitNumber_1","multipleOf_1","limitLength_1","pattern_1","limitProperties_1","required_1","limitItems_1","uniqueItems_1","const_1","enum_1","require_additionalItems","validateAdditionalItems","require_items","validateTuple","checkStrictTuple","schArr","fullTuple","extraItems","require_prefixItems","items_1","require_items2020","additionalItems_1","prefixItems","require_contains","max","min","minContains","maxContains","validateItemsWithCount","checkLimits","_valid","block","require_dependencies","property_ies","depsCount","propDeps","schDeps","splitDependencies","validatePropertyDeps","validateSchemaDeps","propertyDeps","schemaDeps","hasProperty","depProp","require_propertyNames","require_additionalProperties","patProps","checkAdditionalProperties","additionalPropertyCode","isAdditional","definedProp","propsSchema","deleteAdditional","applyAdditionalSchema","require_properties","additionalProperties_1","allProps","hasDefault","applyPropertySchema","require_patternProperties","patterns","alwaysValidPatterns","checkProperties","validatePatternProperties","pat","checkMatchingProperties","validateProperties","alwaysValid","require_not","require_anyOf","require_oneOf","passing","validateOneOf","require_allOf","require_if","hasThen","hasSchema","hasElse","validateIf","ifClause","validateClause","require_thenElse","require_applicator","prefixItems_1","items2020_1","contains_1","dependencies_1","propertyNames_1","properties_1","patternProperties_1","not_1","anyOf_1","oneOf_1","allOf_1","if_1","thenElse_1","getApplicator","applicator","draft2020","require_format$1","validate$DataFormat","validateFormat","fmts","fDef","fType","unknownFmt","invalidFmt","callFormat","validData","formatDef","fmtType","fmtRef","getFormat","validCondition","unknownFormat","unknownMsg","fmtDef","fmt","require_format","require_metadata","require_draft7","core_1","validation_1","applicator_1","format_1","metadata_1","require_types","DiscrError","\"Tag\"","\"Mapping\"","require_discriminator","types_1","discrError","tagName","oneOf","validateMapping","mapping","getMapping","tagValue","applyTagSchema","oneOfMapping","topRequired","hasRequired","tagRequired","propSch","addMappings","addMapping","json_schema_draft_07_exports","$id","json_schema_draft_07_default","title","init_json_schema_draft_07","\"schemaArray\"","\"minItems\"","\"items\"","\"$ref\"","\"nonNegativeInteger\"","\"minimum\"","\"nonNegativeIntegerDefault0\"","\"allOf\"","\"default\"","\"simpleTypes\"","\"enum\"","\"stringArray\"","\"uniqueItems\"","\"$id\"","\"$schema\"","\"$comment\"","\"title\"","\"description\"","\"readOnly\"","\"examples\"","\"multipleOf\"","\"exclusiveMinimum\"","\"maximum\"","\"exclusiveMaximum\"","\"maxLength\"","\"minLength\"","\"pattern\"","\"additionalItems\"","\"maxItems\"","\"contains\"","\"maxProperties\"","\"minProperties\"","\"required\"","\"additionalProperties\"","\"definitions\"","\"properties\"","\"patternProperties\"","\"propertyNames\"","\"dependencies\"","\"const\"","\"contentMediaType\"","\"contentEncoding\"","\"if\"","\"then\"","\"else\"","\"oneOf\"","\"not\"","require_ajv","draft7_1","discriminator_1","draft7MetaSchema","META_SUPPORT_DATA","META_SCHEMA_ID","require_formats","date","compareDate","getTime","compareTime","getDateTime","compareDateTime","compareIsoTime","compareIsoDateTime","validateInt32","validateInt64","validateNumber","isLeapYear","year","DATE","DAYS","month","day","d1","d2","TIME","hr","sec","tz","tzSign","tzH","tzM","strictTimeZone","utcMin","utcHr","t1","t2","a1","a2","DATE_TIME_SEPARATOR","time","dateTime","dt1","dt2","NOT_URI_FRAGMENT","URI","BYTE","byte","MIN_INT32","MAX_INT32","Z_ANCHOR","require_limit","ajv_1","fCxt","compareCode","ajv","require_dist$2","formats_1","limit_1","fullName","fastName","formatsPlugin","addFormats","formats","exportName","list","fs","require__createBaseFor","createBaseFor","require__baseFor","require__baseForOwn","baseFor","baseForOwn","require__createBaseEach","createBaseEach","eachFunc","require__baseEach","require__baseFilter","baseEach","baseFilter","require_filter","filter","require_isEqual","isEqual","require__defineProperty","require__baseAssignValue","defineProperty","baseAssignValue","\"configurable\"","\"enumerable\"","\"value\"","\"writable\"","require__assignMergeValue","assignMergeValue","require__cloneBuffer","allocUnsafe","cloneBuffer","isDeep","require__cloneArrayBuffer","cloneArrayBuffer","arrayBuffer","require__cloneTypedArray","cloneTypedArray","typedArray","require__copyArray","copyArray","require__baseCreate","objectCreate","proto","require__getPrototype","require__initCloneObject","baseCreate","getPrototype","initCloneObject","require_isArrayLikeObject","isArrayLikeObject","require_isPlainObject","objectCtorString","isPlainObject","require__safeGet","safeGet","require__assignValue","assignValue","require__copyObject","copyObject","isNew","newValue","require__nativeKeysIn","nativeKeysIn","require__baseKeysIn","baseKeysIn","isProto","require_keysIn","keysIn","require_toPlainObject","toPlainObject","require__baseMergeDeep","baseMergeDeep","isCommon","isTyped","mergeFunc","srcIndex","require__baseMerge","baseMerge","require__apply","apply","thisArg","require__overRest","overRest","otherArgs","require_constant","require__baseSetToString","require__shortOut","nativeNow","shortOut","lastCalled","stamp","remaining","require__setToString","baseSetToString","require__baseRest","setToString","baseRest","require__createAssigner","createAssigner","sources","assigner","require_merge","require__arrayEach","arrayEach","require__baseAssign","baseAssign","require__baseAssignIn","baseAssignIn","require__copySymbols","copySymbols","require__getSymbolsIn","require__copySymbolsIn","getSymbolsIn","copySymbolsIn","require__getAllKeysIn","getAllKeysIn","require__initCloneArray","initCloneArray","require__cloneDataView","cloneDataView","dataView","require__cloneRegExp","reFlags","cloneRegExp","regexp","require__cloneSymbol","cloneSymbol","require__initCloneByTag","initCloneByTag","require__baseIsMap","baseIsMap","require_isMap","nodeIsMap","require__baseIsSet","baseIsSet","require_isSet","nodeIsSet","require__baseClone","isMap","isSet","CLONE_DEEP_FLAG","CLONE_FLAT_FLAG","CLONE_SYMBOLS_FLAG","cloneableTags","baseClone","isFlat","isFull","isFunc","subValue","require_cloneDeep","cloneDeep","require__baseExtremum","baseExtremum","current","computed","comparator","require__baseGt","baseGt","require_maxBy","maxBy","require_last","last","require__parent","require__baseUnset","baseUnset","require__basePullAt","basePullAt","indexes","lastIndex","previous","require_remove","remove","require__baseClamp","baseClamp","upper","lower","require_endsWith","endsWith","position","require__baseReduce","baseReduce","require_reduce","reduce","require__baseToPairs","baseToPairs","require__setToPairs","setToPairs","require__createToPairs","createToPairs","require_toPairs","require_isUndefined","isUndefined","import_isFunction","import_isEmpty","import_startCase","import_keys","import_range","import_get","import_includes","import_find","import_has","import_ajv","import_dist$2","import_filter","import_isEqual","import_merge","import_cloneDeep","import_maxBy","import_reduce","import_toPairs","_objectDestructuringEmpty","_extends","_objectWithoutPropertiesLoose","r","_objectWithoutProperties","_excluded2$1","_excluded3","_excluded4","ADDITIONAL_PROPERTIES","REQUIRED_PROPERTIES","distinct","known","discriminatorValue","discriminator","Gen","findOption","propName","uniqueProperties","generateJsonSchema","optionName","instance","idSlots","prefixStates","makeId","idBase","Id","proposedId","state","tries","newId","slot","compose","p1","path1","path2","toDataPathSegments","decodedSegments","decode","startIndex","idx","toDataPath","encode","pointerSegment","deriveLabel","schemaElement","controlElement","createCleanLabel","createLabelDescriptionFrom","labelProperty","withLabel","labelDescription","resolveData","dataPath","curInstance","decodedSegment","invalidSegment","pathSegment","doResolveSchema","resolvedSchema","baseSchema","resolvePath","ctx","visitedPaths","resolvePathSegmentsWithCombinatorFallback","_schema$oneOf","_schema$allOf","_schema$anyOf","_schema$then","_schema$else","pathSegments","resolvePathSegments","subSchemas","subSchema","resolvedSubSchema","alternativeResolveResult","singleStepResult","resolveSingleStep","remainingPathSegments","RuleEffect","\"HIDE\"","\"SHOW\"","\"ENABLE\"","\"DISABLE\"","\"READONLY\"","\"WRITABLE\"","composeWithUi","isScoped","scopableUi","isInternationalized","element","isGroup","layout","isLayout","uischema","isScopable","isLabelable","isOrCondition","isAndCondition","isLeafCondition","isSchemaCondition","isValidateFunctionCondition","getConditionScope","evaluateCondition","cur","config","isRuleFulfilled","evalVisibility","fulfilled","evalEnablement","evalReadonly","hasShowRule","hasEnableRule","hasReadonlyRule","isVisible","isEnabled","isReadonly","convertDateToString","dateString","hasType","deriveTypes","jsonSchema","expected","enumElement","allOfType","Resolve","Paths","scopable","splitPath","isIndexSegment","stepSchema","container","cloneContainer","clone","ownPropertyValue","createInitialContainer","childSchema","nextSegment","setDataAt","doSet","currentSchema","existingChild","unsetDataAt","doUnset","nextValue","getFirstPrimitiveProp","isOneOfEnumSchema","isEnumSchema","createAjv","validator","getInvalidProperty","getControlPath","controlPath","invalidProperty","errorsAt","combinatorPaths","filteredErrorKeywords","matchPath","isObjectSchema","formatErrorMessage","createLayout","layoutType","createControlElement","wrapInLayoutIfNecessary","verticalLayout","addLabel","labelName","fixedLabel","isCombinator","generateUISchema","schemaElements","currentRef","schemaName","controlObject","nonNullTypes","effectiveTypes","nextRef","generateDefaultUISchema","_wrapInLayoutIfNecess","Generate","INIT","UPDATE_CORE","SET_AJV","UPDATE_DATA","UPDATE_ERRORS","VALIDATE","ADD_RENDERER","REMOVE_RENDERER","ADD_CELL","REMOVE_CELL","SET_CONFIG","ADD_UI_SCHEMA","REMOVE_UI_SCHEMA","SET_SCHEMA","SET_UISCHEMA","SET_VALIDATION_MODE","SET_LOCALE","SET_TRANSLATOR","UPDATE_I18N","ADD_DEFAULT_DATA","REMOVE_DEFAULT_DATA","isUpdateArrayContext","m","init","updateCore","registerDefaultData","unregisterDefaultData","setAjv","update","index$1","configDefault","applyDefaultConfiguration","configReducer","action","initState","getValidationMode","hasValidationModeOption","option","hasAdditionalErrorsOption","getAdditionalErrors","getOrCreateAjv","hasAjvOption","coreReducer","thisAjv","validationMode","additionalErrors","currentAjv","oldData","newData","newState","ArrayTranslationEnum","\"addTooltip\"","\"addAriaLabel\"","\"removeTooltip\"","\"upAriaLabel\"","\"downAriaLabel\"","\"noSelection\"","\"removeAriaLabel\"","\"noDataMessage\"","\"deleteDialogTitle\"","\"deleteDialogMessage\"","\"deleteDialogAccept\"","\"deleteDialogDecline\"","\"up\"","\"down\"","CombinatorTranslationEnum","\"clearDialogTitle\"","\"clearDialogMessage\"","\"clearDialogAccept\"","\"clearDialogDecline\"","getI18nKeyPrefixBySchema","_schema$i18n","transformPathToI18nPrefix","getI18nKeyPrefix","_getI18nKeyPrefixBySc","getI18nKey","defaultTranslator","translation","fn","defaultMessage","defaultErrorTranslator","_error$message","specializedKeywordMessage","genericKeywordMessage","messageCustomization","getCombinedErrorMessage","specializedErrorMessage","et","deriveLabelForUISchemaElement","stringifiedLabel","i18nKeyPrefix","fetchTranslator","fetchErrorTranslator","getTranslator","getErrorTranslator","defaultJsonFormsI18nState","i18nReducer","_action$locale","_action$translator","_action$errorTranslat","locale","translate","translateError","_action$translator2","_action$errorTranslat2","_action$locale2","isControl","schemaMatches","currentDataSchema","schemaTypeIs","expectedType","formatIs","expectedFormat","uiTypeIs","optionIs","optionValue","testers","tester","or$1","rankWith","rank","isBooleanControl","isObjectControl","isAllOfControl","isAnyOfControl","isOneOfControl","isEnumControl","isOneOfEnumControl","isIntegerControl","isNumberControl","isStringControl","isDateControl","isTimeControl","isDateTimeControl","any","el","pred","toTraverse","_key","val","isObjectArrayWithNesting","_context$rootSchema","objectDepth","isRangeControl","isNumberFormatControl","isCategorization","category","isCategory","hasCategory","categorization","elem","prev","curr","categorizationHasCategory","findMatchingUISchema","findUISchema","control","fallback","uiSchema","uischemas","defaultMiddleware","defaultReducer","getErrorsAt","_state$errors","_state$additionalErro","errorAt","subErrorsAt","getErrorAt","getSubErrorsAt","extractData","getSchema","extractSchema","getUiSchema","extractUiSchema","getAjv","extractAjv","getRenderers","getCells","getUISchemas","getConfig","isInherentlyEnabled","_state$jsonforms","rootData","ownProps","_uischema$options","_uischema$options2","isInherentlyReadonly","_state$jsonforms2","_uischema$options3","_uischema$options4","move","newIndex","delta","moveUp","toMove","moveDown","isRequired","lastSegment","nextHigherSchemaPath","nextHigherSchema","createDefaultValue","doCreateDefaultValue","extractDefaults","combinator","combinatorDefault","createDefaultValueForCombinatorSchema","combinatorSchemas","combinatorSchema","resolvedProperty","allOfSchema","isDescriptionHidden","visible","showUnfocusedDescription","isFocused","enumToEnumOptionMapper","i18nKey","oneOfToEnumOptionMapper","_e$title","fallbackI18nKey","mapStateToControlProps","labelDesc","enabled","readonly","te","i18nLabel","mapDispatchToControlProps","mapStateToEnumControlProps","_props$schema$enum","mapStateToOneOfEnumControlProps","_props$schema$oneOf","oneOfSubSchema","mapStateToControlWithDetailProps","_mapStateToControlPro","mapDispatchToArrayControlProps","toDelete","layoutDefaultProps","getDirection","mapStateToLayoutProps","_ownProps$direction","mapStateToJsonFormsRendererProps","mapStateToCombinatorRendererProps","_schema$keyword","_mapStateToControlPro2","structuralKeywords","dataIsValid","indexOfFittingSchema","valFn","mapStateToAllOfProps","mapStateToAnyOfProps","mapStateToOneOfProps","mapStateToArrayLayoutProps","_mapStateToControlWit2","childErrors","mapStateToLabelProps","mapStateToCellProps","isValid","mapStateToDispatchCellProps","_renderers","otherOwnProps","cells","createCombinatorRenderInfos","combinatorSubSchemas","_ref","_subSchema$title","subSchemaIndex","require_react_production_min","q","w","z","A","B","C","D","F","G","H","I","J","K","L","M","d","h","g","N","O","escape","P","Q","R","S","T","U","V","W","X","require_react","t$12","n$12","r$11","i$13","a$11","o$11","l$8","u$6","f$3","d$2","m$3","e$12","n$11","r$10","i$12","e$11","t$11","n$10","r$9","i$11","a$10","o$10","s$7","l$7","u$5","e$10","e$9","r$8","o$9","c$8","_r$t","l$6","require_now","require_debounce","now","nativeMin","debounce","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","wait","invokeFunc","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","import_react","import_debounce","UnknownRenderer","JsonFormsContext","useEffectAfterFirstRender","firstExecution","effect","dependencies","JsonFormsStateProvider","_initState$i18n7","_initState$i18n8","_initState$i18n9","middlewareRef","middleware","core","setCore","currentCore","configDispatch","i18n","i18nDispatch","_initState$i18n","_initState$i18n2","_initState$i18n3","_initState$i18n4","_initState$i18n5","_initState$i18n6","dispatch","contextValue","onChangeRef","onChange","debouncedEmit","_onChangeRef$current","children","useJsonForms","ctxToArrayLayoutProps","ctxToLayoutProps","ctxToControlProps","ctxToEnumControlProps","_ctx$i18n","enumProps","ctxToOneOfEnumControlProps","_ctx$i18n2","ctxToControlWithDetailProps","ctxToAllOfProps","ctxDispatchToControlProps","ctxToAnyOfProps","dispatchProps","ctxToOneOfProps","ctxToJsonFormsRendererProps","ctxDispatchToArrayControlProps","ctxToCellProps","ctxToDispatchCellProps","ctxToLabelProps","withJsonFormsContext","Component","withContextToJsonFormsRendererProps","contextProps","withContextToControlProps","controlProps","withContextToLayoutProps","layoutProps","withContextToOneOfProps","oneOfProps","withContextToAnyOfProps","withContextToAllOfProps","allOfProps","withContextToArrayLayoutProps","arrayLayoutProps","withContextToCellProps","cellProps","withContextToDispatchCellProps","withContextToEnumProps","stateProps","withContextToOneOfEnumProps","withContextToLabelProps","withJsonFormsRendererProps","withJsonFormsControlProps","withJsonFormsLayoutProps","withJsonFormsOneOfProps","withJsonFormsAnyOfProps","withJsonFormsAllOfProps","withJsonFormsArrayLayoutProps","withJsonFormsCellProps","withJsonFormsDispatchCellProps","withJsonFormsEnumProps","withJsonFormsOneOfEnumProps","withJsonFormsLabelProps","withTranslateProps","_ctx$i18n$locale","_ctx$i18n6","_ctx$i18n$translate","_ctx$i18n7","JsonFormsDispatchRenderer","prevProps","TestAndRender","testerContext","renderer","Render","ResolvedJsonFormsDispatchRenderer","JsonFormsDispatch","JsonForms","schemaToUse","uischemaToUse","DispatchCell","cell","Cell","i$10","_r$i18n","a$9","_ref2","o$8","e$8","t$10","_e$get","n$7","r$7","i$9","a$8","o$7","s$6","c$7","e$7","t$9","n$6","r$6","i$8","e$6","t$8","_excluded$1","a$7","o$6","s$5","c$6","l$5","u$4","d$1","f$2","p$2","m$2","h$3","g$2","_$2","v$2","y$3","b$1","x$1","S$1","w$1","T$1","E$1","_unused","_unused2","_unused3","D$1","O$1","k$1","A$1","j$1","e$5","t$7","_excluded","_excluded2","_e$path","_e$path2","_u$scope","_l$element","_e$path3","L$1","R$1","z$1","B$1","V$1","H$1","U$1","a$6","require_react_jsx_runtime_production_min","require_jsx_runtime","e$4","t$5","r$5","n$5","o$5","s$4","c$5","l$4","f$1","i$6","u$3","a$5","p$1","y$1","h$1","proxyStateMap","refSet","defaultProxyFunction","handler","promise","defaultHandlePromise","snapCache","version","snap","desc","handlePromise","target2","ensureVersion","createSnapshot","initialObject","found","proxyCache","versionHolder","listeners","notifyUpdate","nextVersion","listener","checkVersion","nextCheckVersion","propProxyStates","propProxyState","propVersion","createPropListener","newOp","addPropListener","removePropListener","addListener","prevRemove","baseObject","proxyObject","newProxy","prevValue","deleted","hasPrevValue","receiver","objectIs","canProxy","proxyFunction","childProxyState","proxyState","proxy","subscribe","isListenerActive","removeListener","notifyInSync","snapshot","import_jsx_runtime","n$4","r$4","i$5","e$3","t$4","a$4","o$4","s$3","c$4","l$3","u$2","_i$type","_o$additionalProperti","_r2","e$2","t$3","n$3","r$3","i$3","a$3","o$3","s$2","c$3","i$2","n$1","r$1","i$1","_e$schema","_t$patternProperties","a$2","o$2","_t$properties","_a$errors","_o$pageSizeOptions","a$1","o$1","s$1","c$2","_l$title","_l$additionalProperti","_l$items","l$2","c$1","_u$properties","l$1","r$12","u$1","require_dist$1","used","KEYWORD_PROPERTY_PARAMS","INTERPOLATION","INTERPOLATION_REPLACE","EMPTY_STR","errorMessage","kwdPropErrors","kwdErrors","keywordErrorsConfig","processKeywordErrors","processKeywordPropErrors","processChildErrors","childErrorsConfig","schMessage","processAllErrors","removeUsedErrors","propErrors","emSchema","kwdSch","errMap","kwdErrs","templates","getTemplatesCode","matchKeywordError","singleError","paramsErrors","loopErrors","errMessage","templatesCode","kwdPropParams","propParam","keyProp","tmpl","isObj","childErrs","childKwd","childProp","ifMatchesChildError","child","msgs","matchAnyError","templateExpr","childRegex","templateFunc","ptr","ajvErrors","require_typeof$1","TYPES","getDef","require_typeof","__importDefault","this$27","mod","typeof_1","typeofPlugin","require_instanceof$1","CONSTRUCTORS","_getDef","getConstructor","constructors","require_instanceof","this$26","instanceof_1","instanceofPlugin","require__range","getRangeDef","validateRangeSchema","require_range$1","this$25","require_range","this$24","range_1","range","require_exclusiveRange$1","this$23","require_exclusiveRange","this$22","exclusiveRange_1","exclusiveRange","require__util","metaSchemaRef","defaultMeta","require_regexp$1","_util_1","regexpMetaSchema","metaRegexp","regx","getRegExp","require_regexp","this$21","regexp_1","require_transform$1","cfg","configKey","tNames","getEnumCaseCfg","transformExpr","require_transform","this$20","transform_1","require_uniqueItemProperties$1","SCALAR_TYPES","scalar","getScalarKeys","require_uniqueItemProperties","this$19","uniqueItemProperties_1","uniqueItemProperties","require_allRequired$1","require_allRequired","this$18","allRequired_1","allRequired","require__required","getRequiredDef","require_anyRequired$1","this$17","require_anyRequired","this$16","anyRequired_1","anyRequired","require_oneRequired$1","this$15","require_oneRequired","this$14","oneRequired_1","oneRequired","require_patternRequired$1","missingPattern","matched","require_patternRequired","this$13","patternRequired_1","patternRequired","require_prohibited$1","require_prohibited","this$12","prohibited_1","prohibited","require_deepProperties$1","allOf","pointer","pointerSchema","isLast","require_deepProperties","this$11","deepProperties_1","deepProperties","require_deepRequired$1","jp","unescapeJPSegment","require_deepRequired","this$10","deepRequired_1","deepRequired","require_dynamicDefaults$1","sequences","DEFAULTS","getDefault","empty","getObjDefault","getStrDefault","assertDefined","require_dynamicDefaults","this$9","dynamicDefaults_1","dynamicDefaults","require_select$1","require_select","this$8","select_1","select","require_keywords","this$7","ajvKeywords","require_dist","this$6","keywords_1","defFunc","require_capitalize","capitalize","require_dayjs_min","this$5","$","require_customParseFormat","this$4","Y","require_duration","this$3","require_timezone","this$2","require_utc","this$1","import_codegen","import_dist","import_dynamicDefaults","import_dist$1","import_capitalize","import_dayjs_min","import_customParseFormat","import_duration","import_timezone","import_utc","at","ot","lt","ut","dt","ft","pt","mt","ht","gt","vt","yt","bt","xt","St","Ct","wt","Tt","At","Mt","Nt","Pt","Ft","It","Lt","Rt","zt","Bt","Vt","Ut","Wt","O$2","Gt","Kt","qt","Jt","Yt","Xt","Zt","Qt","en","tn","nn","rn","an","ee","on","sn","ln","dn","mn","hn","gn","vn","bn","xn","Sn","Cn","wn","Tn","Dn","On","An","jn","Mn","Pn","Fn","In","Ln","Rn","zn","Bn","Hn","Un","Gn","Kn","qn","Jn","Yn","Xn","Zn","Qn","$n","er","tr","nr","rr","ir","ar","d$3","f$4","fr","pr","br","wr","xr","Sr","Cr","Tr","Er","Dr","Or","kr","Ar","jr","Mr","Nr","Pr","Z","Fr","Ir","Lr","Rr","zr","Br","Vr","Hr","Ur","Wr","Gr","Kr","qr","Jr","Yr","Xr","Zr","Qr","$r","ei","ti","ni","ri","ai","oi","si","ci","li","ui","di","fi","pi","mi","hi","gi","_i","vi","yi","Si","Ci","wi","Ei","Di","Oi","ki","ji","Mi","Ni","Pi","Fi","D$2","Ii","Ri","zi","Bi","Vi","Ki","qi","Ji","Yi","Xi","Zi","Qi","$i","ea","ta","na","ra","ia","aa","oa","sa","ca","la","ua","da"],"sources":["../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isPrototype.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_overArg.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_nativeKeys.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseKeys.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isFunction.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_coreJsData.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isMasked.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_toSource.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIsNative.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getValue.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getNative.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_DataView.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Map.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Promise.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Set.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_WeakMap.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getTag.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIsArguments.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isArguments.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isArray.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isLength.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isArrayLike.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/stubFalse.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isBuffer.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIsTypedArray.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseUnary.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_nodeUtil.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isTypedArray.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isEmpty.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_arrayReduce.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_basePropertyOf.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_deburrLetter.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_arrayMap.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseToString.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toString.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/deburr.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_asciiWords.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hasUnicodeWord.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_unicodeWords.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/words.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_createCompounder.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseSlice.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_castSlice.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hasUnicode.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_asciiToArray.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_unicodeToArray.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_stringToArray.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_createCaseFirst.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/upperFirst.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/startCase.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTimes.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isIndex.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_arrayLikeKeys.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/keys.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseRange.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/eq.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isIterateeCall.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toFinite.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_createRange.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/range.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isKey.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_nativeCreate.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hashClear.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hashDelete.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hashGet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hashHas.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hashSet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Hash.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheClear.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheGet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheHas.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheSet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_ListCache.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isKeyable.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getMapData.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_MapCache.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/memoize.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_memoizeCapped.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_stringToPath.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_castPath.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_toKey.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/get.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseFindIndex.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIsNaN.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_strictIndexOf.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIndexOf.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isString.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toInteger.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseValues.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/values.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/includes.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_stackClear.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_stackDelete.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_stackGet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_stackHas.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_stackSet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Stack.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_setCacheAdd.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_setCacheHas.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_SetCache.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_arraySome.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_cacheHas.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_equalArrays.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Uint8Array.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapToArray.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_setToArray.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_equalByTag.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_arrayPush.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetAllKeys.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_arrayFilter.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/stubArray.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getSymbols.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getAllKeys.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_equalObjects.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIsEqualDeep.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIsEqual.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIsMatch.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isStrictComparable.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getMatchData.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_matchesStrictComparable.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseMatches.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseHasIn.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hasPath.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/hasIn.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseMatchesProperty.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/identity.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseProperty.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_basePropertyDeep.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/property.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIteratee.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_createFind.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/findIndex.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/find.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseHas.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/has.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js","../../../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js","../../../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js","../../../../node_modules/.pnpm/fast-uri@3.0.6/node_modules/fast-uri/lib/scopedChars.js","../../../../node_modules/.pnpm/fast-uri@3.0.6/node_modules/fast-uri/lib/utils.js","../../../../node_modules/.pnpm/fast-uri@3.0.6/node_modules/fast-uri/lib/schemes.js","../../../../node_modules/.pnpm/fast-uri@3.0.6/node_modules/fast-uri/index.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js","../../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js","../../../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js","../../../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js","../../../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_createBaseFor.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseFor.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseForOwn.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_createBaseEach.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseEach.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseFilter.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/filter.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isEqual.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_defineProperty.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseAssignValue.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_assignMergeValue.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_cloneBuffer.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_cloneArrayBuffer.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_cloneTypedArray.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_copyArray.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseCreate.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getPrototype.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_initCloneObject.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isArrayLikeObject.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isPlainObject.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_safeGet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_assignValue.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_copyObject.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_nativeKeysIn.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseKeysIn.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/keysIn.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toPlainObject.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseMergeDeep.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseMerge.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_apply.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_overRest.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/constant.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseSetToString.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_shortOut.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_setToString.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseRest.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_createAssigner.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_arrayEach.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseAssign.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseAssignIn.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_copySymbols.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getSymbolsIn.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_copySymbolsIn.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getAllKeysIn.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_initCloneArray.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_cloneDataView.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_cloneRegExp.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_cloneSymbol.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_initCloneByTag.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIsMap.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isMap.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIsSet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseClone.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/cloneDeep.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseExtremum.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGt.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/maxBy.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/last.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_parent.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseUnset.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_basePullAt.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/remove.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseClamp.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/endsWith.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseReduce.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/reduce.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseToPairs.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_setToPairs.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_createToPairs.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toPairs.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isUndefined.js","../../../../node_modules/.pnpm/@jsonforms+core@3.9.0-alpha.4/node_modules/@jsonforms/core/lib/jsonforms-core.esm.js","../../../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js","../../../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js","../../../jsonforms-react-extended-renderers/lib/ajvI18n-DO8FFvx1.mjs","../../../jsonforms-react-renderer-common/lib/core/configNamespaces.esm.js","../../../jsonforms-react-extended-renderers/lib/elementRender-y8MK9CCE.mjs","../../../jsonforms-react-extended-renderers/lib/objectWithoutProperties-yjQMyZ0y.mjs","../../../jsonforms-react-renderer-common/lib/locale/bg.esm.js","../../../jsonforms-react-renderer-common/lib/locale/en.esm.js","../../../jsonforms-react-renderer-common/lib/locale/rendererLocale.esm.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js","../../../../node_modules/.pnpm/@jsonforms+react@3.9.0-alpha.4_@jsonforms+core@3.9.0-alpha.4_react@18.3.1/node_modules/@jsonforms/react/lib/jsonforms-react.esm.js","../../../jsonforms-react-renderer-common/lib/locale/translate.esm.js","../../../jsonforms-react-renderer-common/lib/dynamic/dynamicTree.esm.js","../../../jsonforms-react-renderer-common/lib/dynamic/dynamicRuntime.esm.js","../../../jsonforms-react-renderer-common/lib/dynamic/dynamicScope.esm.js","../../../jsonforms-react-renderer-common/lib/dynamic/dynamicUi.esm.js","../../../jsonforms-react-renderer-common/lib/dynamic/dynamicConfig.esm.js","../../../jsonforms-react-renderer-common/lib/dynamic/DynamicUiProvider.esm.js","../../../jsonforms-react-renderer-common/lib/layout/layoutContext.esm.js","../../../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js","../../../../node_modules/.pnpm/proxy-compare@2.5.1/node_modules/proxy-compare/dist/index.modern.js","../../../../node_modules/.pnpm/valtio@1.11.2_@types+react@18.3.31_react@18.3.1/node_modules/valtio/esm/vanilla.mjs","../../../jsonforms-react-renderer-common/lib/core/detailUiSchema.esm.js","../../../jsonforms-react-renderer-common/lib/mixed/mixedComposition.esm.js","../../../jsonforms-react-renderer-common/lib/mixed/mixedSchema.esm.js","../../../jsonforms-react-renderer-common/lib/interaction/confirmation.esm.js","../../../jsonforms-react-renderer-common/lib/collections/useCollectionDelete.esm.js","../../../jsonforms-react-renderer-common/lib/objects/additionalPropertyName.esm.js","../../../jsonforms-react-renderer-common/lib/collections/collectionPagination.esm.js","../../../jsonforms-react-renderer-common/lib/objects/additionalProperties.esm.js","../../../jsonforms-react-renderer-common/lib/objects/useAdditionalPropertyEntries.esm.js","../../../../node_modules/.pnpm/ajv-errors@3.0.0_ajv@8.20.0/node_modules/ajv-errors/dist/index.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/typeof.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/typeof.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/instanceof.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/instanceof.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/_range.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/range.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/range.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/exclusiveRange.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/_util.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/regexp.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/regexp.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/transform.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/transform.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/uniqueItemProperties.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/uniqueItemProperties.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/allRequired.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/allRequired.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/_required.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/anyRequired.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/anyRequired.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/oneRequired.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/oneRequired.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/patternRequired.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/patternRequired.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/prohibited.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/prohibited.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/deepProperties.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/deepProperties.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/deepRequired.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/deepRequired.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/dynamicDefaults.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/definitions/select.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/select.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/keywords/index.js","../../../../node_modules/.pnpm/ajv-keywords@5.1.0_ajv@8.20.0/node_modules/ajv-keywords/dist/index.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/capitalize.js","../../../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js","../../../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/customParseFormat.js","../../../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/duration.js","../../../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.js","../../../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.js","../../../jsonforms-react-renderer-common/lib/formats/maskControls.esm.js","../../../jsonforms-react-renderer-common/lib/formats/duration.esm.js","../../../jsonforms-react-extended-renderers/lib/jsonforms-react-extended.esm.js"],"sourcesContent":["/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLike = require('./isArrayLike'),\n isBuffer = require('./isBuffer'),\n isPrototype = require('./_isPrototype'),\n isTypedArray = require('./isTypedArray');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\nfunction isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n}\n\nmodule.exports = isEmpty;\n","/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayReduce;\n","/**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n}\n\nmodule.exports = basePropertyOf;\n","var basePropertyOf = require('./_basePropertyOf');\n\n/** Used to map Latin Unicode letters to basic Latin letters. */\nvar deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n};\n\n/**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\nvar deburrLetter = basePropertyOf(deburredLetters);\n\nmodule.exports = deburrLetter;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","var deburrLetter = require('./_deburrLetter'),\n toString = require('./toString');\n\n/** Used to match Latin Unicode letters (excluding mathematical operators). */\nvar reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n/** Used to compose unicode character classes. */\nvar rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;\n\n/** Used to compose unicode capture groups. */\nvar rsCombo = '[' + rsComboRange + ']';\n\n/**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\nvar reComboMark = RegExp(rsCombo, 'g');\n\n/**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\nfunction deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n}\n\nmodule.exports = deburr;\n","/** Used to match words composed of alphanumeric characters. */\nvar reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n/**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction asciiWords(string) {\n return string.match(reAsciiWord) || [];\n}\n\nmodule.exports = asciiWords;\n","/** Used to detect strings that need a more robust regexp to match words. */\nvar reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n/**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\nfunction hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n}\n\nmodule.exports = hasUnicodeWord;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n/** Used to compose unicode capture groups. */\nvar rsApos = \"['\\u2019]\",\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;\n\n/** Used to match complex or compound words. */\nvar reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n].join('|'), 'g');\n\n/**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n}\n\nmodule.exports = unicodeWords;\n","var asciiWords = require('./_asciiWords'),\n hasUnicodeWord = require('./_hasUnicodeWord'),\n toString = require('./toString'),\n unicodeWords = require('./_unicodeWords');\n\n/**\n * Splits `string` into an array of its words.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {RegExp|string} [pattern] The pattern to match words.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the words of `string`.\n * @example\n *\n * _.words('fred, barney, & pebbles');\n * // => ['fred', 'barney', 'pebbles']\n *\n * _.words('fred, barney, & pebbles', /[^, ]+/g);\n * // => ['fred', 'barney', '&', 'pebbles']\n */\nfunction words(string, pattern, guard) {\n string = toString(string);\n pattern = guard ? undefined : pattern;\n\n if (pattern === undefined) {\n return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);\n }\n return string.match(pattern) || [];\n}\n\nmodule.exports = words;\n","var arrayReduce = require('./_arrayReduce'),\n deburr = require('./deburr'),\n words = require('./words');\n\n/** Used to compose unicode capture groups. */\nvar rsApos = \"['\\u2019]\";\n\n/** Used to match apostrophes. */\nvar reApos = RegExp(rsApos, 'g');\n\n/**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\nfunction createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n}\n\nmodule.exports = createCompounder;\n","/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\nmodule.exports = baseSlice;\n","var baseSlice = require('./_baseSlice');\n\n/**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\nfunction castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n}\n\nmodule.exports = castSlice;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\nmodule.exports = hasUnicode;\n","/**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction asciiToArray(string) {\n return string.split('');\n}\n\nmodule.exports = asciiToArray;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction unicodeToArray(string) {\n return string.match(reUnicode) || [];\n}\n\nmodule.exports = unicodeToArray;\n","var asciiToArray = require('./_asciiToArray'),\n hasUnicode = require('./_hasUnicode'),\n unicodeToArray = require('./_unicodeToArray');\n\n/**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n}\n\nmodule.exports = stringToArray;\n","var castSlice = require('./_castSlice'),\n hasUnicode = require('./_hasUnicode'),\n stringToArray = require('./_stringToArray'),\n toString = require('./toString');\n\n/**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\nfunction createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n}\n\nmodule.exports = createCaseFirst;\n","var createCaseFirst = require('./_createCaseFirst');\n\n/**\n * Converts the first character of `string` to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.upperFirst('fred');\n * // => 'Fred'\n *\n * _.upperFirst('FRED');\n * // => 'FRED'\n */\nvar upperFirst = createCaseFirst('toUpperCase');\n\nmodule.exports = upperFirst;\n","var createCompounder = require('./_createCompounder'),\n upperFirst = require('./upperFirst');\n\n/**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\nvar startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n});\n\nmodule.exports = startCase;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeCeil = Math.ceil,\n nativeMax = Math.max;\n\n/**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\nfunction baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n}\n\nmodule.exports = baseRange;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","var baseRange = require('./_baseRange'),\n isIterateeCall = require('./_isIterateeCall'),\n toFinite = require('./toFinite');\n\n/**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\nfunction createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n}\n\nmodule.exports = createRange;\n","var createRange = require('./_createRange');\n\n/**\n * Creates an array of numbers (positive and/or negative) progressing from\n * `start` up to, but not including, `end`. A step of `-1` is used if a negative\n * `start` is specified without an `end` or `step`. If `end` is not specified,\n * it's set to `start` with `start` then set to `0`.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.rangeRight\n * @example\n *\n * _.range(4);\n * // => [0, 1, 2, 3]\n *\n * _.range(-4);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 5);\n * // => [1, 2, 3, 4]\n *\n * _.range(0, 20, 5);\n * // => [0, 5, 10, 15]\n *\n * _.range(0, -4, -1);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.range(0);\n * // => []\n */\nvar range = createRange();\n\nmodule.exports = range;\n","var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var MapCache = require('./_MapCache');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n","var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nmodule.exports = memoizeCapped;\n","var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nmodule.exports = stringToPath;\n","var isArray = require('./isArray'),\n isKey = require('./_isKey'),\n stringToPath = require('./_stringToPath'),\n toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n","var castPath = require('./_castPath'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n","var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = strictIndexOf;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n","var baseGetTag = require('./_baseGetTag'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var arrayMap = require('./_arrayMap');\n\n/**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\nfunction baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n}\n\nmodule.exports = baseValues;\n","var baseValues = require('./_baseValues'),\n keys = require('./keys');\n\n/**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\nfunction values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n}\n\nmodule.exports = values;\n","var baseIndexOf = require('./_baseIndexOf'),\n isArrayLike = require('./isArrayLike'),\n isString = require('./isString'),\n toInteger = require('./toInteger'),\n values = require('./values');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\nfunction includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n}\n\nmodule.exports = includes;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arraySome;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","var SetCache = require('./_SetCache'),\n arraySome = require('./_arraySome'),\n cacheHas = require('./_cacheHas');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nmodule.exports = mapToArray;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nmodule.exports = setToArray;\n","var Symbol = require('./_Symbol'),\n Uint8Array = require('./_Uint8Array'),\n eq = require('./eq'),\n equalArrays = require('./_equalArrays'),\n mapToArray = require('./_mapToArray'),\n setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nmodule.exports = equalByTag;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","var arrayPush = require('./_arrayPush'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n","var arrayFilter = require('./_arrayFilter'),\n stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nmodule.exports = getSymbols;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbols = require('./_getSymbols'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n","var getAllKeys = require('./_getAllKeys');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalObjects;\n","var Stack = require('./_Stack'),\n equalArrays = require('./_equalArrays'),\n equalByTag = require('./_equalByTag'),\n equalObjects = require('./_equalObjects'),\n getTag = require('./_getTag'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isTypedArray = require('./isTypedArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n","var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n","var Stack = require('./_Stack'),\n baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nmodule.exports = baseIsMatch;\n","var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n","var isStrictComparable = require('./_isStrictComparable'),\n keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nmodule.exports = getMatchData;\n","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nmodule.exports = matchesStrictComparable;\n","var baseIsMatch = require('./_baseIsMatch'),\n getMatchData = require('./_getMatchData'),\n matchesStrictComparable = require('./_matchesStrictComparable');\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\nmodule.exports = baseMatches;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n","var castPath = require('./_castPath'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isIndex = require('./_isIndex'),\n isLength = require('./isLength'),\n toKey = require('./_toKey');\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n","var baseHasIn = require('./_baseHasIn'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n","var baseIsEqual = require('./_baseIsEqual'),\n get = require('./get'),\n hasIn = require('./hasIn'),\n isKey = require('./_isKey'),\n isStrictComparable = require('./_isStrictComparable'),\n matchesStrictComparable = require('./_matchesStrictComparable'),\n toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nmodule.exports = baseMatchesProperty;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nmodule.exports = baseProperty;\n","var baseGet = require('./_baseGet');\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n}\n\nmodule.exports = basePropertyDeep;\n","var baseProperty = require('./_baseProperty'),\n basePropertyDeep = require('./_basePropertyDeep'),\n isKey = require('./_isKey'),\n toKey = require('./_toKey');\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n","var baseMatches = require('./_baseMatches'),\n baseMatchesProperty = require('./_baseMatchesProperty'),\n identity = require('./identity'),\n isArray = require('./isArray'),\n property = require('./property');\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\nmodule.exports = baseIteratee;\n","var baseIteratee = require('./_baseIteratee'),\n isArrayLike = require('./isArrayLike'),\n keys = require('./keys');\n\n/**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\nfunction createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = baseIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n}\n\nmodule.exports = createFind;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n","var createFind = require('./_createFind'),\n findIndex = require('./findIndex');\n\n/**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\nvar find = createFind(findIndex);\n\nmodule.exports = find;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n}\n\nmodule.exports = baseHas;\n","var baseHas = require('./_baseHas'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\nfunction has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n}\n\nmodule.exports = has;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;\n// eslint-disable-next-line @typescript-eslint/no-extraneous-class\nclass _CodeOrName {\n}\nexports._CodeOrName = _CodeOrName;\nexports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;\nclass Name extends _CodeOrName {\n constructor(s) {\n super();\n if (!exports.IDENTIFIER.test(s))\n throw new Error(\"CodeGen: name must be a valid identifier\");\n this.str = s;\n }\n toString() {\n return this.str;\n }\n emptyStr() {\n return false;\n }\n get names() {\n return { [this.str]: 1 };\n }\n}\nexports.Name = Name;\nclass _Code extends _CodeOrName {\n constructor(code) {\n super();\n this._items = typeof code === \"string\" ? [code] : code;\n }\n toString() {\n return this.str;\n }\n emptyStr() {\n if (this._items.length > 1)\n return false;\n const item = this._items[0];\n return item === \"\" || item === '\"\"';\n }\n get str() {\n var _a;\n return ((_a = this._str) !== null && _a !== void 0 ? _a : (this._str = this._items.reduce((s, c) => `${s}${c}`, \"\")));\n }\n get names() {\n var _a;\n return ((_a = this._names) !== null && _a !== void 0 ? _a : (this._names = this._items.reduce((names, c) => {\n if (c instanceof Name)\n names[c.str] = (names[c.str] || 0) + 1;\n return names;\n }, {})));\n }\n}\nexports._Code = _Code;\nexports.nil = new _Code(\"\");\nfunction _(strs, ...args) {\n const code = [strs[0]];\n let i = 0;\n while (i < args.length) {\n addCodeArg(code, args[i]);\n code.push(strs[++i]);\n }\n return new _Code(code);\n}\nexports._ = _;\nconst plus = new _Code(\"+\");\nfunction str(strs, ...args) {\n const expr = [safeStringify(strs[0])];\n let i = 0;\n while (i < args.length) {\n expr.push(plus);\n addCodeArg(expr, args[i]);\n expr.push(plus, safeStringify(strs[++i]));\n }\n optimize(expr);\n return new _Code(expr);\n}\nexports.str = str;\nfunction addCodeArg(code, arg) {\n if (arg instanceof _Code)\n code.push(...arg._items);\n else if (arg instanceof Name)\n code.push(arg);\n else\n code.push(interpolate(arg));\n}\nexports.addCodeArg = addCodeArg;\nfunction optimize(expr) {\n let i = 1;\n while (i < expr.length - 1) {\n if (expr[i] === plus) {\n const res = mergeExprItems(expr[i - 1], expr[i + 1]);\n if (res !== undefined) {\n expr.splice(i - 1, 3, res);\n continue;\n }\n expr[i++] = \"+\";\n }\n i++;\n }\n}\nfunction mergeExprItems(a, b) {\n if (b === '\"\"')\n return a;\n if (a === '\"\"')\n return b;\n if (typeof a == \"string\") {\n if (b instanceof Name || a[a.length - 1] !== '\"')\n return;\n if (typeof b != \"string\")\n return `${a.slice(0, -1)}${b}\"`;\n if (b[0] === '\"')\n return a.slice(0, -1) + b.slice(1);\n return;\n }\n if (typeof b == \"string\" && b[0] === '\"' && !(a instanceof Name))\n return `\"${a}${b.slice(1)}`;\n return;\n}\nfunction strConcat(c1, c2) {\n return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str `${c1}${c2}`;\n}\nexports.strConcat = strConcat;\n// TODO do not allow arrays here\nfunction interpolate(x) {\n return typeof x == \"number\" || typeof x == \"boolean\" || x === null\n ? x\n : safeStringify(Array.isArray(x) ? x.join(\",\") : x);\n}\nfunction stringify(x) {\n return new _Code(safeStringify(x));\n}\nexports.stringify = stringify;\nfunction safeStringify(x) {\n return JSON.stringify(x)\n .replace(/\\u2028/g, \"\\\\u2028\")\n .replace(/\\u2029/g, \"\\\\u2029\");\n}\nexports.safeStringify = safeStringify;\nfunction getProperty(key) {\n return typeof key == \"string\" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`;\n}\nexports.getProperty = getProperty;\n//Does best effort to format the name properly\nfunction getEsmExportName(key) {\n if (typeof key == \"string\" && exports.IDENTIFIER.test(key)) {\n return new _Code(`${key}`);\n }\n throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);\n}\nexports.getEsmExportName = getEsmExportName;\nfunction regexpCode(rx) {\n return new _Code(rx.toString());\n}\nexports.regexpCode = regexpCode;\n//# sourceMappingURL=code.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;\nconst code_1 = require(\"./code\");\nclass ValueError extends Error {\n constructor(name) {\n super(`CodeGen: \"code\" for ${name} not defined`);\n this.value = name.value;\n }\n}\nvar UsedValueState;\n(function (UsedValueState) {\n UsedValueState[UsedValueState[\"Started\"] = 0] = \"Started\";\n UsedValueState[UsedValueState[\"Completed\"] = 1] = \"Completed\";\n})(UsedValueState || (exports.UsedValueState = UsedValueState = {}));\nexports.varKinds = {\n const: new code_1.Name(\"const\"),\n let: new code_1.Name(\"let\"),\n var: new code_1.Name(\"var\"),\n};\nclass Scope {\n constructor({ prefixes, parent } = {}) {\n this._names = {};\n this._prefixes = prefixes;\n this._parent = parent;\n }\n toName(nameOrPrefix) {\n return nameOrPrefix instanceof code_1.Name ? nameOrPrefix : this.name(nameOrPrefix);\n }\n name(prefix) {\n return new code_1.Name(this._newName(prefix));\n }\n _newName(prefix) {\n const ng = this._names[prefix] || this._nameGroup(prefix);\n return `${prefix}${ng.index++}`;\n }\n _nameGroup(prefix) {\n var _a, _b;\n if (((_b = (_a = this._parent) === null || _a === void 0 ? void 0 : _a._prefixes) === null || _b === void 0 ? void 0 : _b.has(prefix)) || (this._prefixes && !this._prefixes.has(prefix))) {\n throw new Error(`CodeGen: prefix \"${prefix}\" is not allowed in this scope`);\n }\n return (this._names[prefix] = { prefix, index: 0 });\n }\n}\nexports.Scope = Scope;\nclass ValueScopeName extends code_1.Name {\n constructor(prefix, nameStr) {\n super(nameStr);\n this.prefix = prefix;\n }\n setValue(value, { property, itemIndex }) {\n this.value = value;\n this.scopePath = (0, code_1._) `.${new code_1.Name(property)}[${itemIndex}]`;\n }\n}\nexports.ValueScopeName = ValueScopeName;\nconst line = (0, code_1._) `\\n`;\nclass ValueScope extends Scope {\n constructor(opts) {\n super(opts);\n this._values = {};\n this._scope = opts.scope;\n this.opts = { ...opts, _n: opts.lines ? line : code_1.nil };\n }\n get() {\n return this._scope;\n }\n name(prefix) {\n return new ValueScopeName(prefix, this._newName(prefix));\n }\n value(nameOrPrefix, value) {\n var _a;\n if (value.ref === undefined)\n throw new Error(\"CodeGen: ref must be passed in value\");\n const name = this.toName(nameOrPrefix);\n const { prefix } = name;\n const valueKey = (_a = value.key) !== null && _a !== void 0 ? _a : value.ref;\n let vs = this._values[prefix];\n if (vs) {\n const _name = vs.get(valueKey);\n if (_name)\n return _name;\n }\n else {\n vs = this._values[prefix] = new Map();\n }\n vs.set(valueKey, name);\n const s = this._scope[prefix] || (this._scope[prefix] = []);\n const itemIndex = s.length;\n s[itemIndex] = value.ref;\n name.setValue(value, { property: prefix, itemIndex });\n return name;\n }\n getValue(prefix, keyOrRef) {\n const vs = this._values[prefix];\n if (!vs)\n return;\n return vs.get(keyOrRef);\n }\n scopeRefs(scopeName, values = this._values) {\n return this._reduceValues(values, (name) => {\n if (name.scopePath === undefined)\n throw new Error(`CodeGen: name \"${name}\" has no value`);\n return (0, code_1._) `${scopeName}${name.scopePath}`;\n });\n }\n scopeCode(values = this._values, usedValues, getCode) {\n return this._reduceValues(values, (name) => {\n if (name.value === undefined)\n throw new Error(`CodeGen: name \"${name}\" has no value`);\n return name.value.code;\n }, usedValues, getCode);\n }\n _reduceValues(values, valueCode, usedValues = {}, getCode) {\n let code = code_1.nil;\n for (const prefix in values) {\n const vs = values[prefix];\n if (!vs)\n continue;\n const nameSet = (usedValues[prefix] = usedValues[prefix] || new Map());\n vs.forEach((name) => {\n if (nameSet.has(name))\n return;\n nameSet.set(name, UsedValueState.Started);\n let c = valueCode(name);\n if (c) {\n const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const;\n code = (0, code_1._) `${code}${def} ${name} = ${c};${this.opts._n}`;\n }\n else if ((c = getCode === null || getCode === void 0 ? void 0 : getCode(name))) {\n code = (0, code_1._) `${code}${c}${this.opts._n}`;\n }\n else {\n throw new ValueError(name);\n }\n nameSet.set(name, UsedValueState.Completed);\n });\n }\n return code;\n }\n}\nexports.ValueScope = ValueScope;\n//# sourceMappingURL=scope.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;\nconst code_1 = require(\"./code\");\nconst scope_1 = require(\"./scope\");\nvar code_2 = require(\"./code\");\nObject.defineProperty(exports, \"_\", { enumerable: true, get: function () { return code_2._; } });\nObject.defineProperty(exports, \"str\", { enumerable: true, get: function () { return code_2.str; } });\nObject.defineProperty(exports, \"strConcat\", { enumerable: true, get: function () { return code_2.strConcat; } });\nObject.defineProperty(exports, \"nil\", { enumerable: true, get: function () { return code_2.nil; } });\nObject.defineProperty(exports, \"getProperty\", { enumerable: true, get: function () { return code_2.getProperty; } });\nObject.defineProperty(exports, \"stringify\", { enumerable: true, get: function () { return code_2.stringify; } });\nObject.defineProperty(exports, \"regexpCode\", { enumerable: true, get: function () { return code_2.regexpCode; } });\nObject.defineProperty(exports, \"Name\", { enumerable: true, get: function () { return code_2.Name; } });\nvar scope_2 = require(\"./scope\");\nObject.defineProperty(exports, \"Scope\", { enumerable: true, get: function () { return scope_2.Scope; } });\nObject.defineProperty(exports, \"ValueScope\", { enumerable: true, get: function () { return scope_2.ValueScope; } });\nObject.defineProperty(exports, \"ValueScopeName\", { enumerable: true, get: function () { return scope_2.ValueScopeName; } });\nObject.defineProperty(exports, \"varKinds\", { enumerable: true, get: function () { return scope_2.varKinds; } });\nexports.operators = {\n GT: new code_1._Code(\">\"),\n GTE: new code_1._Code(\">=\"),\n LT: new code_1._Code(\"<\"),\n LTE: new code_1._Code(\"<=\"),\n EQ: new code_1._Code(\"===\"),\n NEQ: new code_1._Code(\"!==\"),\n NOT: new code_1._Code(\"!\"),\n OR: new code_1._Code(\"||\"),\n AND: new code_1._Code(\"&&\"),\n ADD: new code_1._Code(\"+\"),\n};\nclass Node {\n optimizeNodes() {\n return this;\n }\n optimizeNames(_names, _constants) {\n return this;\n }\n}\nclass Def extends Node {\n constructor(varKind, name, rhs) {\n super();\n this.varKind = varKind;\n this.name = name;\n this.rhs = rhs;\n }\n render({ es5, _n }) {\n const varKind = es5 ? scope_1.varKinds.var : this.varKind;\n const rhs = this.rhs === undefined ? \"\" : ` = ${this.rhs}`;\n return `${varKind} ${this.name}${rhs};` + _n;\n }\n optimizeNames(names, constants) {\n if (!names[this.name.str])\n return;\n if (this.rhs)\n this.rhs = optimizeExpr(this.rhs, names, constants);\n return this;\n }\n get names() {\n return this.rhs instanceof code_1._CodeOrName ? this.rhs.names : {};\n }\n}\nclass Assign extends Node {\n constructor(lhs, rhs, sideEffects) {\n super();\n this.lhs = lhs;\n this.rhs = rhs;\n this.sideEffects = sideEffects;\n }\n render({ _n }) {\n return `${this.lhs} = ${this.rhs};` + _n;\n }\n optimizeNames(names, constants) {\n if (this.lhs instanceof code_1.Name && !names[this.lhs.str] && !this.sideEffects)\n return;\n this.rhs = optimizeExpr(this.rhs, names, constants);\n return this;\n }\n get names() {\n const names = this.lhs instanceof code_1.Name ? {} : { ...this.lhs.names };\n return addExprNames(names, this.rhs);\n }\n}\nclass AssignOp extends Assign {\n constructor(lhs, op, rhs, sideEffects) {\n super(lhs, rhs, sideEffects);\n this.op = op;\n }\n render({ _n }) {\n return `${this.lhs} ${this.op}= ${this.rhs};` + _n;\n }\n}\nclass Label extends Node {\n constructor(label) {\n super();\n this.label = label;\n this.names = {};\n }\n render({ _n }) {\n return `${this.label}:` + _n;\n }\n}\nclass Break extends Node {\n constructor(label) {\n super();\n this.label = label;\n this.names = {};\n }\n render({ _n }) {\n const label = this.label ? ` ${this.label}` : \"\";\n return `break${label};` + _n;\n }\n}\nclass Throw extends Node {\n constructor(error) {\n super();\n this.error = error;\n }\n render({ _n }) {\n return `throw ${this.error};` + _n;\n }\n get names() {\n return this.error.names;\n }\n}\nclass AnyCode extends Node {\n constructor(code) {\n super();\n this.code = code;\n }\n render({ _n }) {\n return `${this.code};` + _n;\n }\n optimizeNodes() {\n return `${this.code}` ? this : undefined;\n }\n optimizeNames(names, constants) {\n this.code = optimizeExpr(this.code, names, constants);\n return this;\n }\n get names() {\n return this.code instanceof code_1._CodeOrName ? this.code.names : {};\n }\n}\nclass ParentNode extends Node {\n constructor(nodes = []) {\n super();\n this.nodes = nodes;\n }\n render(opts) {\n return this.nodes.reduce((code, n) => code + n.render(opts), \"\");\n }\n optimizeNodes() {\n const { nodes } = this;\n let i = nodes.length;\n while (i--) {\n const n = nodes[i].optimizeNodes();\n if (Array.isArray(n))\n nodes.splice(i, 1, ...n);\n else if (n)\n nodes[i] = n;\n else\n nodes.splice(i, 1);\n }\n return nodes.length > 0 ? this : undefined;\n }\n optimizeNames(names, constants) {\n const { nodes } = this;\n let i = nodes.length;\n while (i--) {\n // iterating backwards improves 1-pass optimization\n const n = nodes[i];\n if (n.optimizeNames(names, constants))\n continue;\n subtractNames(names, n.names);\n nodes.splice(i, 1);\n }\n return nodes.length > 0 ? this : undefined;\n }\n get names() {\n return this.nodes.reduce((names, n) => addNames(names, n.names), {});\n }\n}\nclass BlockNode extends ParentNode {\n render(opts) {\n return \"{\" + opts._n + super.render(opts) + \"}\" + opts._n;\n }\n}\nclass Root extends ParentNode {\n}\nclass Else extends BlockNode {\n}\nElse.kind = \"else\";\nclass If extends BlockNode {\n constructor(condition, nodes) {\n super(nodes);\n this.condition = condition;\n }\n render(opts) {\n let code = `if(${this.condition})` + super.render(opts);\n if (this.else)\n code += \"else \" + this.else.render(opts);\n return code;\n }\n optimizeNodes() {\n super.optimizeNodes();\n const cond = this.condition;\n if (cond === true)\n return this.nodes; // else is ignored here\n let e = this.else;\n if (e) {\n const ns = e.optimizeNodes();\n e = this.else = Array.isArray(ns) ? new Else(ns) : ns;\n }\n if (e) {\n if (cond === false)\n return e instanceof If ? e : e.nodes;\n if (this.nodes.length)\n return this;\n return new If(not(cond), e instanceof If ? [e] : e.nodes);\n }\n if (cond === false || !this.nodes.length)\n return undefined;\n return this;\n }\n optimizeNames(names, constants) {\n var _a;\n this.else = (_a = this.else) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants);\n if (!(super.optimizeNames(names, constants) || this.else))\n return;\n this.condition = optimizeExpr(this.condition, names, constants);\n return this;\n }\n get names() {\n const names = super.names;\n addExprNames(names, this.condition);\n if (this.else)\n addNames(names, this.else.names);\n return names;\n }\n}\nIf.kind = \"if\";\nclass For extends BlockNode {\n}\nFor.kind = \"for\";\nclass ForLoop extends For {\n constructor(iteration) {\n super();\n this.iteration = iteration;\n }\n render(opts) {\n return `for(${this.iteration})` + super.render(opts);\n }\n optimizeNames(names, constants) {\n if (!super.optimizeNames(names, constants))\n return;\n this.iteration = optimizeExpr(this.iteration, names, constants);\n return this;\n }\n get names() {\n return addNames(super.names, this.iteration.names);\n }\n}\nclass ForRange extends For {\n constructor(varKind, name, from, to) {\n super();\n this.varKind = varKind;\n this.name = name;\n this.from = from;\n this.to = to;\n }\n render(opts) {\n const varKind = opts.es5 ? scope_1.varKinds.var : this.varKind;\n const { name, from, to } = this;\n return `for(${varKind} ${name}=${from}; ${name}<${to}; ${name}++)` + super.render(opts);\n }\n get names() {\n const names = addExprNames(super.names, this.from);\n return addExprNames(names, this.to);\n }\n}\nclass ForIter extends For {\n constructor(loop, varKind, name, iterable) {\n super();\n this.loop = loop;\n this.varKind = varKind;\n this.name = name;\n this.iterable = iterable;\n }\n render(opts) {\n return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts);\n }\n optimizeNames(names, constants) {\n if (!super.optimizeNames(names, constants))\n return;\n this.iterable = optimizeExpr(this.iterable, names, constants);\n return this;\n }\n get names() {\n return addNames(super.names, this.iterable.names);\n }\n}\nclass Func extends BlockNode {\n constructor(name, args, async) {\n super();\n this.name = name;\n this.args = args;\n this.async = async;\n }\n render(opts) {\n const _async = this.async ? \"async \" : \"\";\n return `${_async}function ${this.name}(${this.args})` + super.render(opts);\n }\n}\nFunc.kind = \"func\";\nclass Return extends ParentNode {\n render(opts) {\n return \"return \" + super.render(opts);\n }\n}\nReturn.kind = \"return\";\nclass Try extends BlockNode {\n render(opts) {\n let code = \"try\" + super.render(opts);\n if (this.catch)\n code += this.catch.render(opts);\n if (this.finally)\n code += this.finally.render(opts);\n return code;\n }\n optimizeNodes() {\n var _a, _b;\n super.optimizeNodes();\n (_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNodes();\n (_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNodes();\n return this;\n }\n optimizeNames(names, constants) {\n var _a, _b;\n super.optimizeNames(names, constants);\n (_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants);\n (_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNames(names, constants);\n return this;\n }\n get names() {\n const names = super.names;\n if (this.catch)\n addNames(names, this.catch.names);\n if (this.finally)\n addNames(names, this.finally.names);\n return names;\n }\n}\nclass Catch extends BlockNode {\n constructor(error) {\n super();\n this.error = error;\n }\n render(opts) {\n return `catch(${this.error})` + super.render(opts);\n }\n}\nCatch.kind = \"catch\";\nclass Finally extends BlockNode {\n render(opts) {\n return \"finally\" + super.render(opts);\n }\n}\nFinally.kind = \"finally\";\nclass CodeGen {\n constructor(extScope, opts = {}) {\n this._values = {};\n this._blockStarts = [];\n this._constants = {};\n this.opts = { ...opts, _n: opts.lines ? \"\\n\" : \"\" };\n this._extScope = extScope;\n this._scope = new scope_1.Scope({ parent: extScope });\n this._nodes = [new Root()];\n }\n toString() {\n return this._root.render(this.opts);\n }\n // returns unique name in the internal scope\n name(prefix) {\n return this._scope.name(prefix);\n }\n // reserves unique name in the external scope\n scopeName(prefix) {\n return this._extScope.name(prefix);\n }\n // reserves unique name in the external scope and assigns value to it\n scopeValue(prefixOrName, value) {\n const name = this._extScope.value(prefixOrName, value);\n const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set());\n vs.add(name);\n return name;\n }\n getScopeValue(prefix, keyOrRef) {\n return this._extScope.getValue(prefix, keyOrRef);\n }\n // return code that assigns values in the external scope to the names that are used internally\n // (same names that were returned by gen.scopeName or gen.scopeValue)\n scopeRefs(scopeName) {\n return this._extScope.scopeRefs(scopeName, this._values);\n }\n scopeCode() {\n return this._extScope.scopeCode(this._values);\n }\n _def(varKind, nameOrPrefix, rhs, constant) {\n const name = this._scope.toName(nameOrPrefix);\n if (rhs !== undefined && constant)\n this._constants[name.str] = rhs;\n this._leafNode(new Def(varKind, name, rhs));\n return name;\n }\n // `const` declaration (`var` in es5 mode)\n const(nameOrPrefix, rhs, _constant) {\n return this._def(scope_1.varKinds.const, nameOrPrefix, rhs, _constant);\n }\n // `let` declaration with optional assignment (`var` in es5 mode)\n let(nameOrPrefix, rhs, _constant) {\n return this._def(scope_1.varKinds.let, nameOrPrefix, rhs, _constant);\n }\n // `var` declaration with optional assignment\n var(nameOrPrefix, rhs, _constant) {\n return this._def(scope_1.varKinds.var, nameOrPrefix, rhs, _constant);\n }\n // assignment code\n assign(lhs, rhs, sideEffects) {\n return this._leafNode(new Assign(lhs, rhs, sideEffects));\n }\n // `+=` code\n add(lhs, rhs) {\n return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs));\n }\n // appends passed SafeExpr to code or executes Block\n code(c) {\n if (typeof c == \"function\")\n c();\n else if (c !== code_1.nil)\n this._leafNode(new AnyCode(c));\n return this;\n }\n // returns code for object literal for the passed argument list of key-value pairs\n object(...keyValues) {\n const code = [\"{\"];\n for (const [key, value] of keyValues) {\n if (code.length > 1)\n code.push(\",\");\n code.push(key);\n if (key !== value || this.opts.es5) {\n code.push(\":\");\n (0, code_1.addCodeArg)(code, value);\n }\n }\n code.push(\"}\");\n return new code_1._Code(code);\n }\n // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)\n if(condition, thenBody, elseBody) {\n this._blockNode(new If(condition));\n if (thenBody && elseBody) {\n this.code(thenBody).else().code(elseBody).endIf();\n }\n else if (thenBody) {\n this.code(thenBody).endIf();\n }\n else if (elseBody) {\n throw new Error('CodeGen: \"else\" body without \"then\" body');\n }\n return this;\n }\n // `else if` clause - invalid without `if` or after `else` clauses\n elseIf(condition) {\n return this._elseNode(new If(condition));\n }\n // `else` clause - only valid after `if` or `else if` clauses\n else() {\n return this._elseNode(new Else());\n }\n // end `if` statement (needed if gen.if was used only with condition)\n endIf() {\n return this._endBlockNode(If, Else);\n }\n _for(node, forBody) {\n this._blockNode(node);\n if (forBody)\n this.code(forBody).endFor();\n return this;\n }\n // a generic `for` clause (or statement if `forBody` is passed)\n for(iteration, forBody) {\n return this._for(new ForLoop(iteration), forBody);\n }\n // `for` statement for a range of values\n forRange(nameOrPrefix, from, to, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.let) {\n const name = this._scope.toName(nameOrPrefix);\n return this._for(new ForRange(varKind, name, from, to), () => forBody(name));\n }\n // `for-of` statement (in es5 mode replace with a normal for loop)\n forOf(nameOrPrefix, iterable, forBody, varKind = scope_1.varKinds.const) {\n const name = this._scope.toName(nameOrPrefix);\n if (this.opts.es5) {\n const arr = iterable instanceof code_1.Name ? iterable : this.var(\"_arr\", iterable);\n return this.forRange(\"_i\", 0, (0, code_1._) `${arr}.length`, (i) => {\n this.var(name, (0, code_1._) `${arr}[${i}]`);\n forBody(name);\n });\n }\n return this._for(new ForIter(\"of\", varKind, name, iterable), () => forBody(name));\n }\n // `for-in` statement.\n // With option `ownProperties` replaced with a `for-of` loop for object keys\n forIn(nameOrPrefix, obj, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.const) {\n if (this.opts.ownProperties) {\n return this.forOf(nameOrPrefix, (0, code_1._) `Object.keys(${obj})`, forBody);\n }\n const name = this._scope.toName(nameOrPrefix);\n return this._for(new ForIter(\"in\", varKind, name, obj), () => forBody(name));\n }\n // end `for` loop\n endFor() {\n return this._endBlockNode(For);\n }\n // `label` statement\n label(label) {\n return this._leafNode(new Label(label));\n }\n // `break` statement\n break(label) {\n return this._leafNode(new Break(label));\n }\n // `return` statement\n return(value) {\n const node = new Return();\n this._blockNode(node);\n this.code(value);\n if (node.nodes.length !== 1)\n throw new Error('CodeGen: \"return\" should have one node');\n return this._endBlockNode(Return);\n }\n // `try` statement\n try(tryBody, catchCode, finallyCode) {\n if (!catchCode && !finallyCode)\n throw new Error('CodeGen: \"try\" without \"catch\" and \"finally\"');\n const node = new Try();\n this._blockNode(node);\n this.code(tryBody);\n if (catchCode) {\n const error = this.name(\"e\");\n this._currNode = node.catch = new Catch(error);\n catchCode(error);\n }\n if (finallyCode) {\n this._currNode = node.finally = new Finally();\n this.code(finallyCode);\n }\n return this._endBlockNode(Catch, Finally);\n }\n // `throw` statement\n throw(error) {\n return this._leafNode(new Throw(error));\n }\n // start self-balancing block\n block(body, nodeCount) {\n this._blockStarts.push(this._nodes.length);\n if (body)\n this.code(body).endBlock(nodeCount);\n return this;\n }\n // end the current self-balancing block\n endBlock(nodeCount) {\n const len = this._blockStarts.pop();\n if (len === undefined)\n throw new Error(\"CodeGen: not in self-balancing block\");\n const toClose = this._nodes.length - len;\n if (toClose < 0 || (nodeCount !== undefined && toClose !== nodeCount)) {\n throw new Error(`CodeGen: wrong number of nodes: ${toClose} vs ${nodeCount} expected`);\n }\n this._nodes.length = len;\n return this;\n }\n // `function` heading (or definition if funcBody is passed)\n func(name, args = code_1.nil, async, funcBody) {\n this._blockNode(new Func(name, args, async));\n if (funcBody)\n this.code(funcBody).endFunc();\n return this;\n }\n // end function definition\n endFunc() {\n return this._endBlockNode(Func);\n }\n optimize(n = 1) {\n while (n-- > 0) {\n this._root.optimizeNodes();\n this._root.optimizeNames(this._root.names, this._constants);\n }\n }\n _leafNode(node) {\n this._currNode.nodes.push(node);\n return this;\n }\n _blockNode(node) {\n this._currNode.nodes.push(node);\n this._nodes.push(node);\n }\n _endBlockNode(N1, N2) {\n const n = this._currNode;\n if (n instanceof N1 || (N2 && n instanceof N2)) {\n this._nodes.pop();\n return this;\n }\n throw new Error(`CodeGen: not in block \"${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}\"`);\n }\n _elseNode(node) {\n const n = this._currNode;\n if (!(n instanceof If)) {\n throw new Error('CodeGen: \"else\" without \"if\"');\n }\n this._currNode = n.else = node;\n return this;\n }\n get _root() {\n return this._nodes[0];\n }\n get _currNode() {\n const ns = this._nodes;\n return ns[ns.length - 1];\n }\n set _currNode(node) {\n const ns = this._nodes;\n ns[ns.length - 1] = node;\n }\n}\nexports.CodeGen = CodeGen;\nfunction addNames(names, from) {\n for (const n in from)\n names[n] = (names[n] || 0) + (from[n] || 0);\n return names;\n}\nfunction addExprNames(names, from) {\n return from instanceof code_1._CodeOrName ? addNames(names, from.names) : names;\n}\nfunction optimizeExpr(expr, names, constants) {\n if (expr instanceof code_1.Name)\n return replaceName(expr);\n if (!canOptimize(expr))\n return expr;\n return new code_1._Code(expr._items.reduce((items, c) => {\n if (c instanceof code_1.Name)\n c = replaceName(c);\n if (c instanceof code_1._Code)\n items.push(...c._items);\n else\n items.push(c);\n return items;\n }, []));\n function replaceName(n) {\n const c = constants[n.str];\n if (c === undefined || names[n.str] !== 1)\n return n;\n delete names[n.str];\n return c;\n }\n function canOptimize(e) {\n return (e instanceof code_1._Code &&\n e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants[c.str] !== undefined));\n }\n}\nfunction subtractNames(names, from) {\n for (const n in from)\n names[n] = (names[n] || 0) - (from[n] || 0);\n}\nfunction not(x) {\n return typeof x == \"boolean\" || typeof x == \"number\" || x === null ? !x : (0, code_1._) `!${par(x)}`;\n}\nexports.not = not;\nconst andCode = mappend(exports.operators.AND);\n// boolean AND (&&) expression with the passed arguments\nfunction and(...args) {\n return args.reduce(andCode);\n}\nexports.and = and;\nconst orCode = mappend(exports.operators.OR);\n// boolean OR (||) expression with the passed arguments\nfunction or(...args) {\n return args.reduce(orCode);\n}\nexports.or = or;\nfunction mappend(op) {\n return (x, y) => (x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._) `${par(x)} ${op} ${par(y)}`);\n}\nfunction par(x) {\n return x instanceof code_1.Name ? x : (0, code_1._) `(${x})`;\n}\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;\nconst codegen_1 = require(\"./codegen\");\nconst code_1 = require(\"./codegen/code\");\n// TODO refactor to use Set\nfunction toHash(arr) {\n const hash = {};\n for (const item of arr)\n hash[item] = true;\n return hash;\n}\nexports.toHash = toHash;\nfunction alwaysValidSchema(it, schema) {\n if (typeof schema == \"boolean\")\n return schema;\n if (Object.keys(schema).length === 0)\n return true;\n checkUnknownRules(it, schema);\n return !schemaHasRules(schema, it.self.RULES.all);\n}\nexports.alwaysValidSchema = alwaysValidSchema;\nfunction checkUnknownRules(it, schema = it.schema) {\n const { opts, self } = it;\n if (!opts.strictSchema)\n return;\n if (typeof schema === \"boolean\")\n return;\n const rules = self.RULES.keywords;\n for (const key in schema) {\n if (!rules[key])\n checkStrictMode(it, `unknown keyword: \"${key}\"`);\n }\n}\nexports.checkUnknownRules = checkUnknownRules;\nfunction schemaHasRules(schema, rules) {\n if (typeof schema == \"boolean\")\n return !schema;\n for (const key in schema)\n if (rules[key])\n return true;\n return false;\n}\nexports.schemaHasRules = schemaHasRules;\nfunction schemaHasRulesButRef(schema, RULES) {\n if (typeof schema == \"boolean\")\n return !schema;\n for (const key in schema)\n if (key !== \"$ref\" && RULES.all[key])\n return true;\n return false;\n}\nexports.schemaHasRulesButRef = schemaHasRulesButRef;\nfunction schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) {\n if (!$data) {\n if (typeof schema == \"number\" || typeof schema == \"boolean\")\n return schema;\n if (typeof schema == \"string\")\n return (0, codegen_1._) `${schema}`;\n }\n return (0, codegen_1._) `${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;\n}\nexports.schemaRefOrVal = schemaRefOrVal;\nfunction unescapeFragment(str) {\n return unescapeJsonPointer(decodeURIComponent(str));\n}\nexports.unescapeFragment = unescapeFragment;\nfunction escapeFragment(str) {\n return encodeURIComponent(escapeJsonPointer(str));\n}\nexports.escapeFragment = escapeFragment;\nfunction escapeJsonPointer(str) {\n if (typeof str == \"number\")\n return `${str}`;\n return str.replace(/~/g, \"~0\").replace(/\\//g, \"~1\");\n}\nexports.escapeJsonPointer = escapeJsonPointer;\nfunction unescapeJsonPointer(str) {\n return str.replace(/~1/g, \"/\").replace(/~0/g, \"~\");\n}\nexports.unescapeJsonPointer = unescapeJsonPointer;\nfunction eachItem(xs, f) {\n if (Array.isArray(xs)) {\n for (const x of xs)\n f(x);\n }\n else {\n f(xs);\n }\n}\nexports.eachItem = eachItem;\nfunction makeMergeEvaluated({ mergeNames, mergeToName, mergeValues, resultToName, }) {\n return (gen, from, to, toName) => {\n const res = to === undefined\n ? from\n : to instanceof codegen_1.Name\n ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to)\n : from instanceof codegen_1.Name\n ? (mergeToName(gen, to, from), from)\n : mergeValues(from, to);\n return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;\n };\n}\nexports.mergeEvaluated = {\n props: makeMergeEvaluated({\n mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => {\n gen.if((0, codegen_1._) `${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._) `${to} || {}`).code((0, codegen_1._) `Object.assign(${to}, ${from})`));\n }),\n mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => {\n if (from === true) {\n gen.assign(to, true);\n }\n else {\n gen.assign(to, (0, codegen_1._) `${to} || {}`);\n setEvaluated(gen, to, from);\n }\n }),\n mergeValues: (from, to) => (from === true ? true : { ...from, ...to }),\n resultToName: evaluatedPropsToName,\n }),\n items: makeMergeEvaluated({\n mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => gen.assign(to, (0, codegen_1._) `${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)),\n mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => gen.assign(to, from === true ? true : (0, codegen_1._) `${to} > ${from} ? ${to} : ${from}`)),\n mergeValues: (from, to) => (from === true ? true : Math.max(from, to)),\n resultToName: (gen, items) => gen.var(\"items\", items),\n }),\n};\nfunction evaluatedPropsToName(gen, ps) {\n if (ps === true)\n return gen.var(\"props\", true);\n const props = gen.var(\"props\", (0, codegen_1._) `{}`);\n if (ps !== undefined)\n setEvaluated(gen, props, ps);\n return props;\n}\nexports.evaluatedPropsToName = evaluatedPropsToName;\nfunction setEvaluated(gen, props, ps) {\n Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._) `${props}${(0, codegen_1.getProperty)(p)}`, true));\n}\nexports.setEvaluated = setEvaluated;\nconst snippets = {};\nfunction useFunc(gen, f) {\n return gen.scopeValue(\"func\", {\n ref: f,\n code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code)),\n });\n}\nexports.useFunc = useFunc;\nvar Type;\n(function (Type) {\n Type[Type[\"Num\"] = 0] = \"Num\";\n Type[Type[\"Str\"] = 1] = \"Str\";\n})(Type || (exports.Type = Type = {}));\nfunction getErrorPath(dataProp, dataPropType, jsPropertySyntax) {\n // let path\n if (dataProp instanceof codegen_1.Name) {\n const isNumber = dataPropType === Type.Num;\n return jsPropertySyntax\n ? isNumber\n ? (0, codegen_1._) `\"[\" + ${dataProp} + \"]\"`\n : (0, codegen_1._) `\"['\" + ${dataProp} + \"']\"`\n : isNumber\n ? (0, codegen_1._) `\"/\" + ${dataProp}`\n : (0, codegen_1._) `\"/\" + ${dataProp}.replace(/~/g, \"~0\").replace(/\\\\//g, \"~1\")`; // TODO maybe use global escapePointer\n }\n return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : \"/\" + escapeJsonPointer(dataProp);\n}\nexports.getErrorPath = getErrorPath;\nfunction checkStrictMode(it, msg, mode = it.opts.strictSchema) {\n if (!mode)\n return;\n msg = `strict mode: ${msg}`;\n if (mode === true)\n throw new Error(msg);\n it.self.logger.warn(msg);\n}\nexports.checkStrictMode = checkStrictMode;\n//# sourceMappingURL=util.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"./codegen\");\nconst names = {\n // validation function arguments\n data: new codegen_1.Name(\"data\"), // data passed to validation function\n // args passed from referencing schema\n valCxt: new codegen_1.Name(\"valCxt\"), // validation/data context - should not be used directly, it is destructured to the names below\n instancePath: new codegen_1.Name(\"instancePath\"),\n parentData: new codegen_1.Name(\"parentData\"),\n parentDataProperty: new codegen_1.Name(\"parentDataProperty\"),\n rootData: new codegen_1.Name(\"rootData\"), // root data - same as the data passed to the first/top validation function\n dynamicAnchors: new codegen_1.Name(\"dynamicAnchors\"), // used to support recursiveRef and dynamicRef\n // function scoped variables\n vErrors: new codegen_1.Name(\"vErrors\"), // null or array of validation errors\n errors: new codegen_1.Name(\"errors\"), // counter of validation errors\n this: new codegen_1.Name(\"this\"),\n // \"globals\"\n self: new codegen_1.Name(\"self\"),\n scope: new codegen_1.Name(\"scope\"),\n // JTD serialize/parse name for JSON string and position\n json: new codegen_1.Name(\"json\"),\n jsonPos: new codegen_1.Name(\"jsonPos\"),\n jsonLen: new codegen_1.Name(\"jsonLen\"),\n jsonPart: new codegen_1.Name(\"jsonPart\"),\n};\nexports.default = names;\n//# sourceMappingURL=names.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;\nconst codegen_1 = require(\"./codegen\");\nconst util_1 = require(\"./util\");\nconst names_1 = require(\"./names\");\nexports.keywordError = {\n message: ({ keyword }) => (0, codegen_1.str) `must pass \"${keyword}\" keyword validation`,\n};\nexports.keyword$DataError = {\n message: ({ keyword, schemaType }) => schemaType\n ? (0, codegen_1.str) `\"${keyword}\" keyword must be ${schemaType} ($data)`\n : (0, codegen_1.str) `\"${keyword}\" keyword is invalid ($data)`,\n};\nfunction reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) {\n const { it } = cxt;\n const { gen, compositeRule, allErrors } = it;\n const errObj = errorObjectCode(cxt, error, errorPaths);\n if (overrideAllErrors !== null && overrideAllErrors !== void 0 ? overrideAllErrors : (compositeRule || allErrors)) {\n addError(gen, errObj);\n }\n else {\n returnErrors(it, (0, codegen_1._) `[${errObj}]`);\n }\n}\nexports.reportError = reportError;\nfunction reportExtraError(cxt, error = exports.keywordError, errorPaths) {\n const { it } = cxt;\n const { gen, compositeRule, allErrors } = it;\n const errObj = errorObjectCode(cxt, error, errorPaths);\n addError(gen, errObj);\n if (!(compositeRule || allErrors)) {\n returnErrors(it, names_1.default.vErrors);\n }\n}\nexports.reportExtraError = reportExtraError;\nfunction resetErrorsCount(gen, errsCount) {\n gen.assign(names_1.default.errors, errsCount);\n gen.if((0, codegen_1._) `${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._) `${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null)));\n}\nexports.resetErrorsCount = resetErrorsCount;\nfunction extendErrors({ gen, keyword, schemaValue, data, errsCount, it, }) {\n /* istanbul ignore if */\n if (errsCount === undefined)\n throw new Error(\"ajv implementation error\");\n const err = gen.name(\"err\");\n gen.forRange(\"i\", errsCount, names_1.default.errors, (i) => {\n gen.const(err, (0, codegen_1._) `${names_1.default.vErrors}[${i}]`);\n gen.if((0, codegen_1._) `${err}.instancePath === undefined`, () => gen.assign((0, codegen_1._) `${err}.instancePath`, (0, codegen_1.strConcat)(names_1.default.instancePath, it.errorPath)));\n gen.assign((0, codegen_1._) `${err}.schemaPath`, (0, codegen_1.str) `${it.errSchemaPath}/${keyword}`);\n if (it.opts.verbose) {\n gen.assign((0, codegen_1._) `${err}.schema`, schemaValue);\n gen.assign((0, codegen_1._) `${err}.data`, data);\n }\n });\n}\nexports.extendErrors = extendErrors;\nfunction addError(gen, errObj) {\n const err = gen.const(\"err\", errObj);\n gen.if((0, codegen_1._) `${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._) `[${err}]`), (0, codegen_1._) `${names_1.default.vErrors}.push(${err})`);\n gen.code((0, codegen_1._) `${names_1.default.errors}++`);\n}\nfunction returnErrors(it, errs) {\n const { gen, validateName, schemaEnv } = it;\n if (schemaEnv.$async) {\n gen.throw((0, codegen_1._) `new ${it.ValidationError}(${errs})`);\n }\n else {\n gen.assign((0, codegen_1._) `${validateName}.errors`, errs);\n gen.return(false);\n }\n}\nconst E = {\n keyword: new codegen_1.Name(\"keyword\"),\n schemaPath: new codegen_1.Name(\"schemaPath\"), // also used in JTD errors\n params: new codegen_1.Name(\"params\"),\n propertyName: new codegen_1.Name(\"propertyName\"),\n message: new codegen_1.Name(\"message\"),\n schema: new codegen_1.Name(\"schema\"),\n parentSchema: new codegen_1.Name(\"parentSchema\"),\n};\nfunction errorObjectCode(cxt, error, errorPaths) {\n const { createErrors } = cxt.it;\n if (createErrors === false)\n return (0, codegen_1._) `{}`;\n return errorObject(cxt, error, errorPaths);\n}\nfunction errorObject(cxt, error, errorPaths = {}) {\n const { gen, it } = cxt;\n const keyValues = [\n errorInstancePath(it, errorPaths),\n errorSchemaPath(cxt, errorPaths),\n ];\n extraErrorProps(cxt, error, keyValues);\n return gen.object(...keyValues);\n}\nfunction errorInstancePath({ errorPath }, { instancePath }) {\n const instPath = instancePath\n ? (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(instancePath, util_1.Type.Str)}`\n : errorPath;\n return [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, instPath)];\n}\nfunction errorSchemaPath({ keyword, it: { errSchemaPath } }, { schemaPath, parentSchema }) {\n let schPath = parentSchema ? errSchemaPath : (0, codegen_1.str) `${errSchemaPath}/${keyword}`;\n if (schemaPath) {\n schPath = (0, codegen_1.str) `${schPath}${(0, util_1.getErrorPath)(schemaPath, util_1.Type.Str)}`;\n }\n return [E.schemaPath, schPath];\n}\nfunction extraErrorProps(cxt, { params, message }, keyValues) {\n const { keyword, data, schemaValue, it } = cxt;\n const { opts, propertyName, topSchemaRef, schemaPath } = it;\n keyValues.push([E.keyword, keyword], [E.params, typeof params == \"function\" ? params(cxt) : params || (0, codegen_1._) `{}`]);\n if (opts.messages) {\n keyValues.push([E.message, typeof message == \"function\" ? message(cxt) : message]);\n }\n if (opts.verbose) {\n keyValues.push([E.schema, schemaValue], [E.parentSchema, (0, codegen_1._) `${topSchemaRef}${schemaPath}`], [names_1.default.data, data]);\n }\n if (propertyName)\n keyValues.push([E.propertyName, propertyName]);\n}\n//# sourceMappingURL=errors.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;\nconst errors_1 = require(\"../errors\");\nconst codegen_1 = require(\"../codegen\");\nconst names_1 = require(\"../names\");\nconst boolError = {\n message: \"boolean schema is false\",\n};\nfunction topBoolOrEmptySchema(it) {\n const { gen, schema, validateName } = it;\n if (schema === false) {\n falseSchemaError(it, false);\n }\n else if (typeof schema == \"object\" && schema.$async === true) {\n gen.return(names_1.default.data);\n }\n else {\n gen.assign((0, codegen_1._) `${validateName}.errors`, null);\n gen.return(true);\n }\n}\nexports.topBoolOrEmptySchema = topBoolOrEmptySchema;\nfunction boolOrEmptySchema(it, valid) {\n const { gen, schema } = it;\n if (schema === false) {\n gen.var(valid, false); // TODO var\n falseSchemaError(it);\n }\n else {\n gen.var(valid, true); // TODO var\n }\n}\nexports.boolOrEmptySchema = boolOrEmptySchema;\nfunction falseSchemaError(it, overrideAllErrors) {\n const { gen, data } = it;\n // TODO maybe some other interface should be used for non-keyword validation errors...\n const cxt = {\n gen,\n keyword: \"false schema\",\n data,\n schema: false,\n schemaCode: false,\n schemaValue: false,\n params: {},\n it,\n };\n (0, errors_1.reportError)(cxt, boolError, undefined, overrideAllErrors);\n}\n//# sourceMappingURL=boolSchema.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRules = exports.isJSONType = void 0;\nconst _jsonTypes = [\"string\", \"number\", \"integer\", \"boolean\", \"null\", \"object\", \"array\"];\nconst jsonTypes = new Set(_jsonTypes);\nfunction isJSONType(x) {\n return typeof x == \"string\" && jsonTypes.has(x);\n}\nexports.isJSONType = isJSONType;\nfunction getRules() {\n const groups = {\n number: { type: \"number\", rules: [] },\n string: { type: \"string\", rules: [] },\n array: { type: \"array\", rules: [] },\n object: { type: \"object\", rules: [] },\n };\n return {\n types: { ...groups, integer: true, boolean: true, null: true },\n rules: [{ rules: [] }, groups.number, groups.string, groups.array, groups.object],\n post: { rules: [] },\n all: {},\n keywords: {},\n };\n}\nexports.getRules = getRules;\n//# sourceMappingURL=rules.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;\nfunction schemaHasRulesForType({ schema, self }, type) {\n const group = self.RULES.types[type];\n return group && group !== true && shouldUseGroup(schema, group);\n}\nexports.schemaHasRulesForType = schemaHasRulesForType;\nfunction shouldUseGroup(schema, group) {\n return group.rules.some((rule) => shouldUseRule(schema, rule));\n}\nexports.shouldUseGroup = shouldUseGroup;\nfunction shouldUseRule(schema, rule) {\n var _a;\n return (schema[rule.keyword] !== undefined ||\n ((_a = rule.definition.implements) === null || _a === void 0 ? void 0 : _a.some((kwd) => schema[kwd] !== undefined)));\n}\nexports.shouldUseRule = shouldUseRule;\n//# sourceMappingURL=applicability.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;\nconst rules_1 = require(\"../rules\");\nconst applicability_1 = require(\"./applicability\");\nconst errors_1 = require(\"../errors\");\nconst codegen_1 = require(\"../codegen\");\nconst util_1 = require(\"../util\");\nvar DataType;\n(function (DataType) {\n DataType[DataType[\"Correct\"] = 0] = \"Correct\";\n DataType[DataType[\"Wrong\"] = 1] = \"Wrong\";\n})(DataType || (exports.DataType = DataType = {}));\nfunction getSchemaTypes(schema) {\n const types = getJSONTypes(schema.type);\n const hasNull = types.includes(\"null\");\n if (hasNull) {\n if (schema.nullable === false)\n throw new Error(\"type: null contradicts nullable: false\");\n }\n else {\n if (!types.length && schema.nullable !== undefined) {\n throw new Error('\"nullable\" cannot be used without \"type\"');\n }\n if (schema.nullable === true)\n types.push(\"null\");\n }\n return types;\n}\nexports.getSchemaTypes = getSchemaTypes;\n// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\nfunction getJSONTypes(ts) {\n const types = Array.isArray(ts) ? ts : ts ? [ts] : [];\n if (types.every(rules_1.isJSONType))\n return types;\n throw new Error(\"type must be JSONType or JSONType[]: \" + types.join(\",\"));\n}\nexports.getJSONTypes = getJSONTypes;\nfunction coerceAndCheckDataType(it, types) {\n const { gen, data, opts } = it;\n const coerceTo = coerceToTypes(types, opts.coerceTypes);\n const checkTypes = types.length > 0 &&\n !(coerceTo.length === 0 && types.length === 1 && (0, applicability_1.schemaHasRulesForType)(it, types[0]));\n if (checkTypes) {\n const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong);\n gen.if(wrongType, () => {\n if (coerceTo.length)\n coerceData(it, types, coerceTo);\n else\n reportTypeError(it);\n });\n }\n return checkTypes;\n}\nexports.coerceAndCheckDataType = coerceAndCheckDataType;\nconst COERCIBLE = new Set([\"string\", \"number\", \"integer\", \"boolean\", \"null\"]);\nfunction coerceToTypes(types, coerceTypes) {\n return coerceTypes\n ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === \"array\" && t === \"array\"))\n : [];\n}\nfunction coerceData(it, types, coerceTo) {\n const { gen, data, opts } = it;\n const dataType = gen.let(\"dataType\", (0, codegen_1._) `typeof ${data}`);\n const coerced = gen.let(\"coerced\", (0, codegen_1._) `undefined`);\n if (opts.coerceTypes === \"array\") {\n gen.if((0, codegen_1._) `${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => gen\n .assign(data, (0, codegen_1._) `${data}[0]`)\n .assign(dataType, (0, codegen_1._) `typeof ${data}`)\n .if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data)));\n }\n gen.if((0, codegen_1._) `${coerced} !== undefined`);\n for (const t of coerceTo) {\n if (COERCIBLE.has(t) || (t === \"array\" && opts.coerceTypes === \"array\")) {\n coerceSpecificType(t);\n }\n }\n gen.else();\n reportTypeError(it);\n gen.endIf();\n gen.if((0, codegen_1._) `${coerced} !== undefined`, () => {\n gen.assign(data, coerced);\n assignParentData(it, coerced);\n });\n function coerceSpecificType(t) {\n switch (t) {\n case \"string\":\n gen\n .elseIf((0, codegen_1._) `${dataType} == \"number\" || ${dataType} == \"boolean\"`)\n .assign(coerced, (0, codegen_1._) `\"\" + ${data}`)\n .elseIf((0, codegen_1._) `${data} === null`)\n .assign(coerced, (0, codegen_1._) `\"\"`);\n return;\n case \"number\":\n gen\n .elseIf((0, codegen_1._) `${dataType} == \"boolean\" || ${data} === null\n || (${dataType} == \"string\" && ${data} && ${data} == +${data})`)\n .assign(coerced, (0, codegen_1._) `+${data}`);\n return;\n case \"integer\":\n gen\n .elseIf((0, codegen_1._) `${dataType} === \"boolean\" || ${data} === null\n || (${dataType} === \"string\" && ${data} && ${data} == +${data} && !(${data} % 1))`)\n .assign(coerced, (0, codegen_1._) `+${data}`);\n return;\n case \"boolean\":\n gen\n .elseIf((0, codegen_1._) `${data} === \"false\" || ${data} === 0 || ${data} === null`)\n .assign(coerced, false)\n .elseIf((0, codegen_1._) `${data} === \"true\" || ${data} === 1`)\n .assign(coerced, true);\n return;\n case \"null\":\n gen.elseIf((0, codegen_1._) `${data} === \"\" || ${data} === 0 || ${data} === false`);\n gen.assign(coerced, null);\n return;\n case \"array\":\n gen\n .elseIf((0, codegen_1._) `${dataType} === \"string\" || ${dataType} === \"number\"\n || ${dataType} === \"boolean\" || ${data} === null`)\n .assign(coerced, (0, codegen_1._) `[${data}]`);\n }\n }\n}\nfunction assignParentData({ gen, parentData, parentDataProperty }, expr) {\n // TODO use gen.property\n gen.if((0, codegen_1._) `${parentData} !== undefined`, () => gen.assign((0, codegen_1._) `${parentData}[${parentDataProperty}]`, expr));\n}\nfunction checkDataType(dataType, data, strictNums, correct = DataType.Correct) {\n const EQ = correct === DataType.Correct ? codegen_1.operators.EQ : codegen_1.operators.NEQ;\n let cond;\n switch (dataType) {\n case \"null\":\n return (0, codegen_1._) `${data} ${EQ} null`;\n case \"array\":\n cond = (0, codegen_1._) `Array.isArray(${data})`;\n break;\n case \"object\":\n cond = (0, codegen_1._) `${data} && typeof ${data} == \"object\" && !Array.isArray(${data})`;\n break;\n case \"integer\":\n cond = numCond((0, codegen_1._) `!(${data} % 1) && !isNaN(${data})`);\n break;\n case \"number\":\n cond = numCond();\n break;\n default:\n return (0, codegen_1._) `typeof ${data} ${EQ} ${dataType}`;\n }\n return correct === DataType.Correct ? cond : (0, codegen_1.not)(cond);\n function numCond(_cond = codegen_1.nil) {\n return (0, codegen_1.and)((0, codegen_1._) `typeof ${data} == \"number\"`, _cond, strictNums ? (0, codegen_1._) `isFinite(${data})` : codegen_1.nil);\n }\n}\nexports.checkDataType = checkDataType;\nfunction checkDataTypes(dataTypes, data, strictNums, correct) {\n if (dataTypes.length === 1) {\n return checkDataType(dataTypes[0], data, strictNums, correct);\n }\n let cond;\n const types = (0, util_1.toHash)(dataTypes);\n if (types.array && types.object) {\n const notObj = (0, codegen_1._) `typeof ${data} != \"object\"`;\n cond = types.null ? notObj : (0, codegen_1._) `!${data} || ${notObj}`;\n delete types.null;\n delete types.array;\n delete types.object;\n }\n else {\n cond = codegen_1.nil;\n }\n if (types.number)\n delete types.integer;\n for (const t in types)\n cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct));\n return cond;\n}\nexports.checkDataTypes = checkDataTypes;\nconst typeError = {\n message: ({ schema }) => `must be ${schema}`,\n params: ({ schema, schemaValue }) => typeof schema == \"string\" ? (0, codegen_1._) `{type: ${schema}}` : (0, codegen_1._) `{type: ${schemaValue}}`,\n};\nfunction reportTypeError(it) {\n const cxt = getTypeErrorContext(it);\n (0, errors_1.reportError)(cxt, typeError);\n}\nexports.reportTypeError = reportTypeError;\nfunction getTypeErrorContext(it) {\n const { gen, data, schema } = it;\n const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, \"type\");\n return {\n gen,\n keyword: \"type\",\n data,\n schema: schema.type,\n schemaCode,\n schemaValue: schemaCode,\n parentSchema: schema,\n params: {},\n it,\n };\n}\n//# sourceMappingURL=dataType.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assignDefaults = void 0;\nconst codegen_1 = require(\"../codegen\");\nconst util_1 = require(\"../util\");\nfunction assignDefaults(it, ty) {\n const { properties, items } = it.schema;\n if (ty === \"object\" && properties) {\n for (const key in properties) {\n assignDefault(it, key, properties[key].default);\n }\n }\n else if (ty === \"array\" && Array.isArray(items)) {\n items.forEach((sch, i) => assignDefault(it, i, sch.default));\n }\n}\nexports.assignDefaults = assignDefaults;\nfunction assignDefault(it, prop, defaultValue) {\n const { gen, compositeRule, data, opts } = it;\n if (defaultValue === undefined)\n return;\n const childData = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(prop)}`;\n if (compositeRule) {\n (0, util_1.checkStrictMode)(it, `default is ignored for: ${childData}`);\n return;\n }\n let condition = (0, codegen_1._) `${childData} === undefined`;\n if (opts.useDefaults === \"empty\") {\n condition = (0, codegen_1._) `${condition} || ${childData} === null || ${childData} === \"\"`;\n }\n // `${childData} === undefined` +\n // (opts.useDefaults === \"empty\" ? ` || ${childData} === null || ${childData} === \"\"` : \"\")\n gen.if(condition, (0, codegen_1._) `${childData} = ${(0, codegen_1.stringify)(defaultValue)}`);\n}\n//# sourceMappingURL=defaults.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0;\nconst codegen_1 = require(\"../compile/codegen\");\nconst util_1 = require(\"../compile/util\");\nconst names_1 = require(\"../compile/names\");\nconst util_2 = require(\"../compile/util\");\nfunction checkReportMissingProp(cxt, prop) {\n const { gen, data, it } = cxt;\n gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => {\n cxt.setParams({ missingProperty: (0, codegen_1._) `${prop}` }, true);\n cxt.error();\n });\n}\nexports.checkReportMissingProp = checkReportMissingProp;\nfunction checkMissingProp({ gen, data, it: { opts } }, properties, missing) {\n return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._) `${missing} = ${prop}`)));\n}\nexports.checkMissingProp = checkMissingProp;\nfunction reportMissingProp(cxt, missing) {\n cxt.setParams({ missingProperty: missing }, true);\n cxt.error();\n}\nexports.reportMissingProp = reportMissingProp;\nfunction hasPropFunc(gen) {\n return gen.scopeValue(\"func\", {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n ref: Object.prototype.hasOwnProperty,\n code: (0, codegen_1._) `Object.prototype.hasOwnProperty`,\n });\n}\nexports.hasPropFunc = hasPropFunc;\nfunction isOwnProperty(gen, data, property) {\n return (0, codegen_1._) `${hasPropFunc(gen)}.call(${data}, ${property})`;\n}\nexports.isOwnProperty = isOwnProperty;\nfunction propertyInData(gen, data, property, ownProperties) {\n const cond = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(property)} !== undefined`;\n return ownProperties ? (0, codegen_1._) `${cond} && ${isOwnProperty(gen, data, property)}` : cond;\n}\nexports.propertyInData = propertyInData;\nfunction noPropertyInData(gen, data, property, ownProperties) {\n const cond = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(property)} === undefined`;\n return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond;\n}\nexports.noPropertyInData = noPropertyInData;\nfunction allSchemaProperties(schemaMap) {\n return schemaMap ? Object.keys(schemaMap).filter((p) => p !== \"__proto__\") : [];\n}\nexports.allSchemaProperties = allSchemaProperties;\nfunction schemaProperties(it, schemaMap) {\n return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p]));\n}\nexports.schemaProperties = schemaProperties;\nfunction callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {\n const dataAndSchema = passSchema ? (0, codegen_1._) `${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;\n const valCxt = [\n [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, errorPath)],\n [names_1.default.parentData, it.parentData],\n [names_1.default.parentDataProperty, it.parentDataProperty],\n [names_1.default.rootData, names_1.default.rootData],\n ];\n if (it.opts.dynamicRef)\n valCxt.push([names_1.default.dynamicAnchors, names_1.default.dynamicAnchors]);\n const args = (0, codegen_1._) `${dataAndSchema}, ${gen.object(...valCxt)}`;\n return context !== codegen_1.nil ? (0, codegen_1._) `${func}.call(${context}, ${args})` : (0, codegen_1._) `${func}(${args})`;\n}\nexports.callValidateCode = callValidateCode;\nconst newRegExp = (0, codegen_1._) `new RegExp`;\nfunction usePattern({ gen, it: { opts } }, pattern) {\n const u = opts.unicodeRegExp ? \"u\" : \"\";\n const { regExp } = opts.code;\n const rx = regExp(pattern, u);\n return gen.scopeValue(\"pattern\", {\n key: rx.toString(),\n ref: rx,\n code: (0, codegen_1._) `${regExp.code === \"new RegExp\" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`,\n });\n}\nexports.usePattern = usePattern;\nfunction validateArray(cxt) {\n const { gen, data, keyword, it } = cxt;\n const valid = gen.name(\"valid\");\n if (it.allErrors) {\n const validArr = gen.let(\"valid\", true);\n validateItems(() => gen.assign(validArr, false));\n return validArr;\n }\n gen.var(valid, true);\n validateItems(() => gen.break());\n return valid;\n function validateItems(notValid) {\n const len = gen.const(\"len\", (0, codegen_1._) `${data}.length`);\n gen.forRange(\"i\", 0, len, (i) => {\n cxt.subschema({\n keyword,\n dataProp: i,\n dataPropType: util_1.Type.Num,\n }, valid);\n gen.if((0, codegen_1.not)(valid), notValid);\n });\n }\n}\nexports.validateArray = validateArray;\nfunction validateUnion(cxt) {\n const { gen, schema, keyword, it } = cxt;\n /* istanbul ignore if */\n if (!Array.isArray(schema))\n throw new Error(\"ajv implementation error\");\n const alwaysValid = schema.some((sch) => (0, util_1.alwaysValidSchema)(it, sch));\n if (alwaysValid && !it.opts.unevaluated)\n return;\n const valid = gen.let(\"valid\", false);\n const schValid = gen.name(\"_valid\");\n gen.block(() => schema.forEach((_sch, i) => {\n const schCxt = cxt.subschema({\n keyword,\n schemaProp: i,\n compositeRule: true,\n }, schValid);\n gen.assign(valid, (0, codegen_1._) `${valid} || ${schValid}`);\n const merged = cxt.mergeValidEvaluated(schCxt, schValid);\n // can short-circuit if `unevaluatedProperties/Items` not supported (opts.unevaluated !== true)\n // or if all properties and items were evaluated (it.props === true && it.items === true)\n if (!merged)\n gen.if((0, codegen_1.not)(valid));\n }));\n cxt.result(valid, () => cxt.reset(), () => cxt.error(true));\n}\nexports.validateUnion = validateUnion;\n//# sourceMappingURL=code.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;\nconst codegen_1 = require(\"../codegen\");\nconst names_1 = require(\"../names\");\nconst code_1 = require(\"../../vocabularies/code\");\nconst errors_1 = require(\"../errors\");\nfunction macroKeywordCode(cxt, def) {\n const { gen, keyword, schema, parentSchema, it } = cxt;\n const macroSchema = def.macro.call(it.self, schema, parentSchema, it);\n const schemaRef = useKeyword(gen, keyword, macroSchema);\n if (it.opts.validateSchema !== false)\n it.self.validateSchema(macroSchema, true);\n const valid = gen.name(\"valid\");\n cxt.subschema({\n schema: macroSchema,\n schemaPath: codegen_1.nil,\n errSchemaPath: `${it.errSchemaPath}/${keyword}`,\n topSchemaRef: schemaRef,\n compositeRule: true,\n }, valid);\n cxt.pass(valid, () => cxt.error(true));\n}\nexports.macroKeywordCode = macroKeywordCode;\nfunction funcKeywordCode(cxt, def) {\n var _a;\n const { gen, keyword, schema, parentSchema, $data, it } = cxt;\n checkAsyncKeyword(it, def);\n const validate = !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate;\n const validateRef = useKeyword(gen, keyword, validate);\n const valid = gen.let(\"valid\");\n cxt.block$data(valid, validateKeyword);\n cxt.ok((_a = def.valid) !== null && _a !== void 0 ? _a : valid);\n function validateKeyword() {\n if (def.errors === false) {\n assignValid();\n if (def.modifying)\n modifyData(cxt);\n reportErrs(() => cxt.error());\n }\n else {\n const ruleErrs = def.async ? validateAsync() : validateSync();\n if (def.modifying)\n modifyData(cxt);\n reportErrs(() => addErrs(cxt, ruleErrs));\n }\n }\n function validateAsync() {\n const ruleErrs = gen.let(\"ruleErrs\", null);\n gen.try(() => assignValid((0, codegen_1._) `await `), (e) => gen.assign(valid, false).if((0, codegen_1._) `${e} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1._) `${e}.errors`), () => gen.throw(e)));\n return ruleErrs;\n }\n function validateSync() {\n const validateErrs = (0, codegen_1._) `${validateRef}.errors`;\n gen.assign(validateErrs, null);\n assignValid(codegen_1.nil);\n return validateErrs;\n }\n function assignValid(_await = def.async ? (0, codegen_1._) `await ` : codegen_1.nil) {\n const passCxt = it.opts.passContext ? names_1.default.this : names_1.default.self;\n const passSchema = !((\"compile\" in def && !$data) || def.schema === false);\n gen.assign(valid, (0, codegen_1._) `${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying);\n }\n function reportErrs(errors) {\n var _a;\n gen.if((0, codegen_1.not)((_a = def.valid) !== null && _a !== void 0 ? _a : valid), errors);\n }\n}\nexports.funcKeywordCode = funcKeywordCode;\nfunction modifyData(cxt) {\n const { gen, data, it } = cxt;\n gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._) `${it.parentData}[${it.parentDataProperty}]`));\n}\nfunction addErrs(cxt, errs) {\n const { gen } = cxt;\n gen.if((0, codegen_1._) `Array.isArray(${errs})`, () => {\n gen\n .assign(names_1.default.vErrors, (0, codegen_1._) `${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`)\n .assign(names_1.default.errors, (0, codegen_1._) `${names_1.default.vErrors}.length`);\n (0, errors_1.extendErrors)(cxt);\n }, () => cxt.error());\n}\nfunction checkAsyncKeyword({ schemaEnv }, def) {\n if (def.async && !schemaEnv.$async)\n throw new Error(\"async keyword in sync schema\");\n}\nfunction useKeyword(gen, keyword, result) {\n if (result === undefined)\n throw new Error(`keyword \"${keyword}\" failed to compile`);\n return gen.scopeValue(\"keyword\", typeof result == \"function\" ? { ref: result } : { ref: result, code: (0, codegen_1.stringify)(result) });\n}\nfunction validSchemaType(schema, schemaType, allowUndefined = false) {\n // TODO add tests\n return (!schemaType.length ||\n schemaType.some((st) => st === \"array\"\n ? Array.isArray(schema)\n : st === \"object\"\n ? schema && typeof schema == \"object\" && !Array.isArray(schema)\n : typeof schema == st || (allowUndefined && typeof schema == \"undefined\")));\n}\nexports.validSchemaType = validSchemaType;\nfunction validateKeywordUsage({ schema, opts, self, errSchemaPath }, def, keyword) {\n /* istanbul ignore if */\n if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {\n throw new Error(\"ajv implementation error\");\n }\n const deps = def.dependencies;\n if (deps === null || deps === void 0 ? void 0 : deps.some((kwd) => !Object.prototype.hasOwnProperty.call(schema, kwd))) {\n throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(\",\")}`);\n }\n if (def.validateSchema) {\n const valid = def.validateSchema(schema[keyword]);\n if (!valid) {\n const msg = `keyword \"${keyword}\" value is invalid at path \"${errSchemaPath}\": ` +\n self.errorsText(def.validateSchema.errors);\n if (opts.validateSchema === \"log\")\n self.logger.error(msg);\n else\n throw new Error(msg);\n }\n }\n}\nexports.validateKeywordUsage = validateKeywordUsage;\n//# sourceMappingURL=keyword.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;\nconst codegen_1 = require(\"../codegen\");\nconst util_1 = require(\"../util\");\nfunction getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) {\n if (keyword !== undefined && schema !== undefined) {\n throw new Error('both \"keyword\" and \"schema\" passed, only one allowed');\n }\n if (keyword !== undefined) {\n const sch = it.schema[keyword];\n return schemaProp === undefined\n ? {\n schema: sch,\n schemaPath: (0, codegen_1._) `${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}`,\n errSchemaPath: `${it.errSchemaPath}/${keyword}`,\n }\n : {\n schema: sch[schemaProp],\n schemaPath: (0, codegen_1._) `${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}${(0, codegen_1.getProperty)(schemaProp)}`,\n errSchemaPath: `${it.errSchemaPath}/${keyword}/${(0, util_1.escapeFragment)(schemaProp)}`,\n };\n }\n if (schema !== undefined) {\n if (schemaPath === undefined || errSchemaPath === undefined || topSchemaRef === undefined) {\n throw new Error('\"schemaPath\", \"errSchemaPath\" and \"topSchemaRef\" are required with \"schema\"');\n }\n return {\n schema,\n schemaPath,\n topSchemaRef,\n errSchemaPath,\n };\n }\n throw new Error('either \"keyword\" or \"schema\" must be passed');\n}\nexports.getSubschema = getSubschema;\nfunction extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {\n if (data !== undefined && dataProp !== undefined) {\n throw new Error('both \"data\" and \"dataProp\" passed, only one allowed');\n }\n const { gen } = it;\n if (dataProp !== undefined) {\n const { errorPath, dataPathArr, opts } = it;\n const nextData = gen.let(\"data\", (0, codegen_1._) `${it.data}${(0, codegen_1.getProperty)(dataProp)}`, true);\n dataContextProps(nextData);\n subschema.errorPath = (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(dataProp, dpType, opts.jsPropertySyntax)}`;\n subschema.parentDataProperty = (0, codegen_1._) `${dataProp}`;\n subschema.dataPathArr = [...dataPathArr, subschema.parentDataProperty];\n }\n if (data !== undefined) {\n const nextData = data instanceof codegen_1.Name ? data : gen.let(\"data\", data, true); // replaceable if used once?\n dataContextProps(nextData);\n if (propertyName !== undefined)\n subschema.propertyName = propertyName;\n // TODO something is possibly wrong here with not changing parentDataProperty and not appending dataPathArr\n }\n if (dataTypes)\n subschema.dataTypes = dataTypes;\n function dataContextProps(_nextData) {\n subschema.data = _nextData;\n subschema.dataLevel = it.dataLevel + 1;\n subschema.dataTypes = [];\n it.definedProperties = new Set();\n subschema.parentData = it.data;\n subschema.dataNames = [...it.dataNames, _nextData];\n }\n}\nexports.extendSubschemaData = extendSubschemaData;\nfunction extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) {\n if (compositeRule !== undefined)\n subschema.compositeRule = compositeRule;\n if (createErrors !== undefined)\n subschema.createErrors = createErrors;\n if (allErrors !== undefined)\n subschema.allErrors = allErrors;\n subschema.jtdDiscriminator = jtdDiscriminator; // not inherited\n subschema.jtdMetadata = jtdMetadata; // not inherited\n}\nexports.extendSubschemaMode = extendSubschemaMode;\n//# sourceMappingURL=subschema.js.map","'use strict';\n\n// do not edit .js files directly - edit src/index.jst\n\n\n\nmodule.exports = function equal(a, b) {\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n\n\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n\n for (i = length; i-- !== 0;)\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n\n for (i = length; i-- !== 0;) {\n var key = keys[i];\n\n if (!equal(a[key], b[key])) return false;\n }\n\n return true;\n }\n\n // true if both NaN, false otherwise\n return a!==a && b!==b;\n};\n","'use strict';\n\nvar traverse = module.exports = function (schema, opts, cb) {\n // Legacy support for v0.3.1 and earlier.\n if (typeof opts == 'function') {\n cb = opts;\n opts = {};\n }\n\n cb = opts.cb || cb;\n var pre = (typeof cb == 'function') ? cb : cb.pre || function() {};\n var post = cb.post || function() {};\n\n _traverse(opts, pre, post, schema, '', schema);\n};\n\n\ntraverse.keywords = {\n additionalItems: true,\n items: true,\n contains: true,\n additionalProperties: true,\n propertyNames: true,\n not: true,\n if: true,\n then: true,\n else: true\n};\n\ntraverse.arrayKeywords = {\n items: true,\n allOf: true,\n anyOf: true,\n oneOf: true\n};\n\ntraverse.propsKeywords = {\n $defs: true,\n definitions: true,\n properties: true,\n patternProperties: true,\n dependencies: true\n};\n\ntraverse.skipKeywords = {\n default: true,\n enum: true,\n const: true,\n required: true,\n maximum: true,\n minimum: true,\n exclusiveMaximum: true,\n exclusiveMinimum: true,\n multipleOf: true,\n maxLength: true,\n minLength: true,\n pattern: true,\n format: true,\n maxItems: true,\n minItems: true,\n uniqueItems: true,\n maxProperties: true,\n minProperties: true\n};\n\n\nfunction _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {\n if (schema && typeof schema == 'object' && !Array.isArray(schema)) {\n pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);\n for (var key in schema) {\n var sch = schema[key];\n if (Array.isArray(sch)) {\n if (key in traverse.arrayKeywords) {\n for (var i=0; i<sch.length; i++)\n _traverse(opts, pre, post, sch[i], jsonPtr + '/' + key + '/' + i, rootSchema, jsonPtr, key, schema, i);\n }\n } else if (key in traverse.propsKeywords) {\n if (sch && typeof sch == 'object') {\n for (var prop in sch)\n _traverse(opts, pre, post, sch[prop], jsonPtr + '/' + key + '/' + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);\n }\n } else if (key in traverse.keywords || (opts.allKeys && !(key in traverse.skipKeywords))) {\n _traverse(opts, pre, post, sch, jsonPtr + '/' + key, rootSchema, jsonPtr, key, schema);\n }\n }\n post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);\n }\n}\n\n\nfunction escapeJsonPtr(str) {\n return str.replace(/~/g, '~0').replace(/\\//g, '~1');\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;\nconst util_1 = require(\"./util\");\nconst equal = require(\"fast-deep-equal\");\nconst traverse = require(\"json-schema-traverse\");\n// TODO refactor to use keyword definitions\nconst SIMPLE_INLINED = new Set([\n \"type\",\n \"format\",\n \"pattern\",\n \"maxLength\",\n \"minLength\",\n \"maxProperties\",\n \"minProperties\",\n \"maxItems\",\n \"minItems\",\n \"maximum\",\n \"minimum\",\n \"uniqueItems\",\n \"multipleOf\",\n \"required\",\n \"enum\",\n \"const\",\n]);\nfunction inlineRef(schema, limit = true) {\n if (typeof schema == \"boolean\")\n return true;\n if (limit === true)\n return !hasRef(schema);\n if (!limit)\n return false;\n return countKeys(schema) <= limit;\n}\nexports.inlineRef = inlineRef;\nconst REF_KEYWORDS = new Set([\n \"$ref\",\n \"$recursiveRef\",\n \"$recursiveAnchor\",\n \"$dynamicRef\",\n \"$dynamicAnchor\",\n]);\nfunction hasRef(schema) {\n for (const key in schema) {\n if (REF_KEYWORDS.has(key))\n return true;\n const sch = schema[key];\n if (Array.isArray(sch) && sch.some(hasRef))\n return true;\n if (typeof sch == \"object\" && hasRef(sch))\n return true;\n }\n return false;\n}\nfunction countKeys(schema) {\n let count = 0;\n for (const key in schema) {\n if (key === \"$ref\")\n return Infinity;\n count++;\n if (SIMPLE_INLINED.has(key))\n continue;\n if (typeof schema[key] == \"object\") {\n (0, util_1.eachItem)(schema[key], (sch) => (count += countKeys(sch)));\n }\n if (count === Infinity)\n return Infinity;\n }\n return count;\n}\nfunction getFullPath(resolver, id = \"\", normalize) {\n if (normalize !== false)\n id = normalizeId(id);\n const p = resolver.parse(id);\n return _getFullPath(resolver, p);\n}\nexports.getFullPath = getFullPath;\nfunction _getFullPath(resolver, p) {\n const serialized = resolver.serialize(p);\n return serialized.split(\"#\")[0] + \"#\";\n}\nexports._getFullPath = _getFullPath;\nconst TRAILING_SLASH_HASH = /#\\/?$/;\nfunction normalizeId(id) {\n return id ? id.replace(TRAILING_SLASH_HASH, \"\") : \"\";\n}\nexports.normalizeId = normalizeId;\nfunction resolveUrl(resolver, baseId, id) {\n id = normalizeId(id);\n return resolver.resolve(baseId, id);\n}\nexports.resolveUrl = resolveUrl;\nconst ANCHOR = /^[a-z_][-a-z0-9._]*$/i;\nfunction getSchemaRefs(schema, baseId) {\n if (typeof schema == \"boolean\")\n return {};\n const { schemaId, uriResolver } = this.opts;\n const schId = normalizeId(schema[schemaId] || baseId);\n const baseIds = { \"\": schId };\n const pathPrefix = getFullPath(uriResolver, schId, false);\n const localRefs = {};\n const schemaRefs = new Set();\n traverse(schema, { allKeys: true }, (sch, jsonPtr, _, parentJsonPtr) => {\n if (parentJsonPtr === undefined)\n return;\n const fullPath = pathPrefix + jsonPtr;\n let innerBaseId = baseIds[parentJsonPtr];\n if (typeof sch[schemaId] == \"string\")\n innerBaseId = addRef.call(this, sch[schemaId]);\n addAnchor.call(this, sch.$anchor);\n addAnchor.call(this, sch.$dynamicAnchor);\n baseIds[jsonPtr] = innerBaseId;\n function addRef(ref) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const _resolve = this.opts.uriResolver.resolve;\n ref = normalizeId(innerBaseId ? _resolve(innerBaseId, ref) : ref);\n if (schemaRefs.has(ref))\n throw ambiguos(ref);\n schemaRefs.add(ref);\n let schOrRef = this.refs[ref];\n if (typeof schOrRef == \"string\")\n schOrRef = this.refs[schOrRef];\n if (typeof schOrRef == \"object\") {\n checkAmbiguosRef(sch, schOrRef.schema, ref);\n }\n else if (ref !== normalizeId(fullPath)) {\n if (ref[0] === \"#\") {\n checkAmbiguosRef(sch, localRefs[ref], ref);\n localRefs[ref] = sch;\n }\n else {\n this.refs[ref] = fullPath;\n }\n }\n return ref;\n }\n function addAnchor(anchor) {\n if (typeof anchor == \"string\") {\n if (!ANCHOR.test(anchor))\n throw new Error(`invalid anchor \"${anchor}\"`);\n addRef.call(this, `#${anchor}`);\n }\n }\n });\n return localRefs;\n function checkAmbiguosRef(sch1, sch2, ref) {\n if (sch2 !== undefined && !equal(sch1, sch2))\n throw ambiguos(ref);\n }\n function ambiguos(ref) {\n return new Error(`reference \"${ref}\" resolves to more than one schema`);\n }\n}\nexports.getSchemaRefs = getSchemaRefs;\n//# sourceMappingURL=resolve.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;\nconst boolSchema_1 = require(\"./boolSchema\");\nconst dataType_1 = require(\"./dataType\");\nconst applicability_1 = require(\"./applicability\");\nconst dataType_2 = require(\"./dataType\");\nconst defaults_1 = require(\"./defaults\");\nconst keyword_1 = require(\"./keyword\");\nconst subschema_1 = require(\"./subschema\");\nconst codegen_1 = require(\"../codegen\");\nconst names_1 = require(\"../names\");\nconst resolve_1 = require(\"../resolve\");\nconst util_1 = require(\"../util\");\nconst errors_1 = require(\"../errors\");\n// schema compilation - generates validation function, subschemaCode (below) is used for subschemas\nfunction validateFunctionCode(it) {\n if (isSchemaObj(it)) {\n checkKeywords(it);\n if (schemaCxtHasRules(it)) {\n topSchemaObjCode(it);\n return;\n }\n }\n validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it));\n}\nexports.validateFunctionCode = validateFunctionCode;\nfunction validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) {\n if (opts.code.es5) {\n gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => {\n gen.code((0, codegen_1._) `\"use strict\"; ${funcSourceUrl(schema, opts)}`);\n destructureValCxtES5(gen, opts);\n gen.code(body);\n });\n }\n else {\n gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () => gen.code(funcSourceUrl(schema, opts)).code(body));\n }\n}\nfunction destructureValCxt(opts) {\n return (0, codegen_1._) `{${names_1.default.instancePath}=\"\", ${names_1.default.parentData}, ${names_1.default.parentDataProperty}, ${names_1.default.rootData}=${names_1.default.data}${opts.dynamicRef ? (0, codegen_1._) `, ${names_1.default.dynamicAnchors}={}` : codegen_1.nil}}={}`;\n}\nfunction destructureValCxtES5(gen, opts) {\n gen.if(names_1.default.valCxt, () => {\n gen.var(names_1.default.instancePath, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.instancePath}`);\n gen.var(names_1.default.parentData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentData}`);\n gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentDataProperty}`);\n gen.var(names_1.default.rootData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.rootData}`);\n if (opts.dynamicRef)\n gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.dynamicAnchors}`);\n }, () => {\n gen.var(names_1.default.instancePath, (0, codegen_1._) `\"\"`);\n gen.var(names_1.default.parentData, (0, codegen_1._) `undefined`);\n gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `undefined`);\n gen.var(names_1.default.rootData, names_1.default.data);\n if (opts.dynamicRef)\n gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `{}`);\n });\n}\nfunction topSchemaObjCode(it) {\n const { schema, opts, gen } = it;\n validateFunction(it, () => {\n if (opts.$comment && schema.$comment)\n commentKeyword(it);\n checkNoDefault(it);\n gen.let(names_1.default.vErrors, null);\n gen.let(names_1.default.errors, 0);\n if (opts.unevaluated)\n resetEvaluated(it);\n typeAndKeywords(it);\n returnResults(it);\n });\n return;\n}\nfunction resetEvaluated(it) {\n // TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated\n const { gen, validateName } = it;\n it.evaluated = gen.const(\"evaluated\", (0, codegen_1._) `${validateName}.evaluated`);\n gen.if((0, codegen_1._) `${it.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1._) `${it.evaluated}.props`, (0, codegen_1._) `undefined`));\n gen.if((0, codegen_1._) `${it.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1._) `${it.evaluated}.items`, (0, codegen_1._) `undefined`));\n}\nfunction funcSourceUrl(schema, opts) {\n const schId = typeof schema == \"object\" && schema[opts.schemaId];\n return schId && (opts.code.source || opts.code.process) ? (0, codegen_1._) `/*# sourceURL=${schId} */` : codegen_1.nil;\n}\n// schema compilation - this function is used recursively to generate code for sub-schemas\nfunction subschemaCode(it, valid) {\n if (isSchemaObj(it)) {\n checkKeywords(it);\n if (schemaCxtHasRules(it)) {\n subSchemaObjCode(it, valid);\n return;\n }\n }\n (0, boolSchema_1.boolOrEmptySchema)(it, valid);\n}\nfunction schemaCxtHasRules({ schema, self }) {\n if (typeof schema == \"boolean\")\n return !schema;\n for (const key in schema)\n if (self.RULES.all[key])\n return true;\n return false;\n}\nfunction isSchemaObj(it) {\n return typeof it.schema != \"boolean\";\n}\nfunction subSchemaObjCode(it, valid) {\n const { schema, gen, opts } = it;\n if (opts.$comment && schema.$comment)\n commentKeyword(it);\n updateContext(it);\n checkAsyncSchema(it);\n const errsCount = gen.const(\"_errs\", names_1.default.errors);\n typeAndKeywords(it, errsCount);\n // TODO var\n gen.var(valid, (0, codegen_1._) `${errsCount} === ${names_1.default.errors}`);\n}\nfunction checkKeywords(it) {\n (0, util_1.checkUnknownRules)(it);\n checkRefsAndKeywords(it);\n}\nfunction typeAndKeywords(it, errsCount) {\n if (it.opts.jtd)\n return schemaKeywords(it, [], false, errsCount);\n const types = (0, dataType_1.getSchemaTypes)(it.schema);\n const checkedTypes = (0, dataType_1.coerceAndCheckDataType)(it, types);\n schemaKeywords(it, types, !checkedTypes, errsCount);\n}\nfunction checkRefsAndKeywords(it) {\n const { schema, errSchemaPath, opts, self } = it;\n if (schema.$ref && opts.ignoreKeywordsWithRef && (0, util_1.schemaHasRulesButRef)(schema, self.RULES)) {\n self.logger.warn(`$ref: keywords ignored in schema at path \"${errSchemaPath}\"`);\n }\n}\nfunction checkNoDefault(it) {\n const { schema, opts } = it;\n if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) {\n (0, util_1.checkStrictMode)(it, \"default is ignored in the schema root\");\n }\n}\nfunction updateContext(it) {\n const schId = it.schema[it.opts.schemaId];\n if (schId)\n it.baseId = (0, resolve_1.resolveUrl)(it.opts.uriResolver, it.baseId, schId);\n}\nfunction checkAsyncSchema(it) {\n if (it.schema.$async && !it.schemaEnv.$async)\n throw new Error(\"async schema in sync schema\");\n}\nfunction commentKeyword({ gen, schemaEnv, schema, errSchemaPath, opts }) {\n const msg = schema.$comment;\n if (opts.$comment === true) {\n gen.code((0, codegen_1._) `${names_1.default.self}.logger.log(${msg})`);\n }\n else if (typeof opts.$comment == \"function\") {\n const schemaPath = (0, codegen_1.str) `${errSchemaPath}/$comment`;\n const rootName = gen.scopeValue(\"root\", { ref: schemaEnv.root });\n gen.code((0, codegen_1._) `${names_1.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`);\n }\n}\nfunction returnResults(it) {\n const { gen, schemaEnv, validateName, ValidationError, opts } = it;\n if (schemaEnv.$async) {\n // TODO assign unevaluated\n gen.if((0, codegen_1._) `${names_1.default.errors} === 0`, () => gen.return(names_1.default.data), () => gen.throw((0, codegen_1._) `new ${ValidationError}(${names_1.default.vErrors})`));\n }\n else {\n gen.assign((0, codegen_1._) `${validateName}.errors`, names_1.default.vErrors);\n if (opts.unevaluated)\n assignEvaluated(it);\n gen.return((0, codegen_1._) `${names_1.default.errors} === 0`);\n }\n}\nfunction assignEvaluated({ gen, evaluated, props, items }) {\n if (props instanceof codegen_1.Name)\n gen.assign((0, codegen_1._) `${evaluated}.props`, props);\n if (items instanceof codegen_1.Name)\n gen.assign((0, codegen_1._) `${evaluated}.items`, items);\n}\nfunction schemaKeywords(it, types, typeErrors, errsCount) {\n const { gen, schema, data, allErrors, opts, self } = it;\n const { RULES } = self;\n if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES))) {\n gen.block(() => keywordCode(it, \"$ref\", RULES.all.$ref.definition)); // TODO typecast\n return;\n }\n if (!opts.jtd)\n checkStrictTypes(it, types);\n gen.block(() => {\n for (const group of RULES.rules)\n groupKeywords(group);\n groupKeywords(RULES.post);\n });\n function groupKeywords(group) {\n if (!(0, applicability_1.shouldUseGroup)(schema, group))\n return;\n if (group.type) {\n gen.if((0, dataType_2.checkDataType)(group.type, data, opts.strictNumbers));\n iterateKeywords(it, group);\n if (types.length === 1 && types[0] === group.type && typeErrors) {\n gen.else();\n (0, dataType_2.reportTypeError)(it);\n }\n gen.endIf();\n }\n else {\n iterateKeywords(it, group);\n }\n // TODO make it \"ok\" call?\n if (!allErrors)\n gen.if((0, codegen_1._) `${names_1.default.errors} === ${errsCount || 0}`);\n }\n}\nfunction iterateKeywords(it, group) {\n const { gen, schema, opts: { useDefaults }, } = it;\n if (useDefaults)\n (0, defaults_1.assignDefaults)(it, group.type);\n gen.block(() => {\n for (const rule of group.rules) {\n if ((0, applicability_1.shouldUseRule)(schema, rule)) {\n keywordCode(it, rule.keyword, rule.definition, group.type);\n }\n }\n });\n}\nfunction checkStrictTypes(it, types) {\n if (it.schemaEnv.meta || !it.opts.strictTypes)\n return;\n checkContextTypes(it, types);\n if (!it.opts.allowUnionTypes)\n checkMultipleTypes(it, types);\n checkKeywordTypes(it, it.dataTypes);\n}\nfunction checkContextTypes(it, types) {\n if (!types.length)\n return;\n if (!it.dataTypes.length) {\n it.dataTypes = types;\n return;\n }\n types.forEach((t) => {\n if (!includesType(it.dataTypes, t)) {\n strictTypesError(it, `type \"${t}\" not allowed by context \"${it.dataTypes.join(\",\")}\"`);\n }\n });\n narrowSchemaTypes(it, types);\n}\nfunction checkMultipleTypes(it, ts) {\n if (ts.length > 1 && !(ts.length === 2 && ts.includes(\"null\"))) {\n strictTypesError(it, \"use allowUnionTypes to allow union type keyword\");\n }\n}\nfunction checkKeywordTypes(it, ts) {\n const rules = it.self.RULES.all;\n for (const keyword in rules) {\n const rule = rules[keyword];\n if (typeof rule == \"object\" && (0, applicability_1.shouldUseRule)(it.schema, rule)) {\n const { type } = rule.definition;\n if (type.length && !type.some((t) => hasApplicableType(ts, t))) {\n strictTypesError(it, `missing type \"${type.join(\",\")}\" for keyword \"${keyword}\"`);\n }\n }\n }\n}\nfunction hasApplicableType(schTs, kwdT) {\n return schTs.includes(kwdT) || (kwdT === \"number\" && schTs.includes(\"integer\"));\n}\nfunction includesType(ts, t) {\n return ts.includes(t) || (t === \"integer\" && ts.includes(\"number\"));\n}\nfunction narrowSchemaTypes(it, withTypes) {\n const ts = [];\n for (const t of it.dataTypes) {\n if (includesType(withTypes, t))\n ts.push(t);\n else if (withTypes.includes(\"integer\") && t === \"number\")\n ts.push(\"integer\");\n }\n it.dataTypes = ts;\n}\nfunction strictTypesError(it, msg) {\n const schemaPath = it.schemaEnv.baseId + it.errSchemaPath;\n msg += ` at \"${schemaPath}\" (strictTypes)`;\n (0, util_1.checkStrictMode)(it, msg, it.opts.strictTypes);\n}\nclass KeywordCxt {\n constructor(it, def, keyword) {\n (0, keyword_1.validateKeywordUsage)(it, def, keyword);\n this.gen = it.gen;\n this.allErrors = it.allErrors;\n this.keyword = keyword;\n this.data = it.data;\n this.schema = it.schema[keyword];\n this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data;\n this.schemaValue = (0, util_1.schemaRefOrVal)(it, this.schema, keyword, this.$data);\n this.schemaType = def.schemaType;\n this.parentSchema = it.schema;\n this.params = {};\n this.it = it;\n this.def = def;\n if (this.$data) {\n this.schemaCode = it.gen.const(\"vSchema\", getData(this.$data, it));\n }\n else {\n this.schemaCode = this.schemaValue;\n if (!(0, keyword_1.validSchemaType)(this.schema, def.schemaType, def.allowUndefined)) {\n throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`);\n }\n }\n if (\"code\" in def ? def.trackErrors : def.errors !== false) {\n this.errsCount = it.gen.const(\"_errs\", names_1.default.errors);\n }\n }\n result(condition, successAction, failAction) {\n this.failResult((0, codegen_1.not)(condition), successAction, failAction);\n }\n failResult(condition, successAction, failAction) {\n this.gen.if(condition);\n if (failAction)\n failAction();\n else\n this.error();\n if (successAction) {\n this.gen.else();\n successAction();\n if (this.allErrors)\n this.gen.endIf();\n }\n else {\n if (this.allErrors)\n this.gen.endIf();\n else\n this.gen.else();\n }\n }\n pass(condition, failAction) {\n this.failResult((0, codegen_1.not)(condition), undefined, failAction);\n }\n fail(condition) {\n if (condition === undefined) {\n this.error();\n if (!this.allErrors)\n this.gen.if(false); // this branch will be removed by gen.optimize\n return;\n }\n this.gen.if(condition);\n this.error();\n if (this.allErrors)\n this.gen.endIf();\n else\n this.gen.else();\n }\n fail$data(condition) {\n if (!this.$data)\n return this.fail(condition);\n const { schemaCode } = this;\n this.fail((0, codegen_1._) `${schemaCode} !== undefined && (${(0, codegen_1.or)(this.invalid$data(), condition)})`);\n }\n error(append, errorParams, errorPaths) {\n if (errorParams) {\n this.setParams(errorParams);\n this._error(append, errorPaths);\n this.setParams({});\n return;\n }\n this._error(append, errorPaths);\n }\n _error(append, errorPaths) {\n ;\n (append ? errors_1.reportExtraError : errors_1.reportError)(this, this.def.error, errorPaths);\n }\n $dataError() {\n (0, errors_1.reportError)(this, this.def.$dataError || errors_1.keyword$DataError);\n }\n reset() {\n if (this.errsCount === undefined)\n throw new Error('add \"trackErrors\" to keyword definition');\n (0, errors_1.resetErrorsCount)(this.gen, this.errsCount);\n }\n ok(cond) {\n if (!this.allErrors)\n this.gen.if(cond);\n }\n setParams(obj, assign) {\n if (assign)\n Object.assign(this.params, obj);\n else\n this.params = obj;\n }\n block$data(valid, codeBlock, $dataValid = codegen_1.nil) {\n this.gen.block(() => {\n this.check$data(valid, $dataValid);\n codeBlock();\n });\n }\n check$data(valid = codegen_1.nil, $dataValid = codegen_1.nil) {\n if (!this.$data)\n return;\n const { gen, schemaCode, schemaType, def } = this;\n gen.if((0, codegen_1.or)((0, codegen_1._) `${schemaCode} === undefined`, $dataValid));\n if (valid !== codegen_1.nil)\n gen.assign(valid, true);\n if (schemaType.length || def.validateSchema) {\n gen.elseIf(this.invalid$data());\n this.$dataError();\n if (valid !== codegen_1.nil)\n gen.assign(valid, false);\n }\n gen.else();\n }\n invalid$data() {\n const { gen, schemaCode, schemaType, def, it } = this;\n return (0, codegen_1.or)(wrong$DataType(), invalid$DataSchema());\n function wrong$DataType() {\n if (schemaType.length) {\n /* istanbul ignore if */\n if (!(schemaCode instanceof codegen_1.Name))\n throw new Error(\"ajv implementation error\");\n const st = Array.isArray(schemaType) ? schemaType : [schemaType];\n return (0, codegen_1._) `${(0, dataType_2.checkDataTypes)(st, schemaCode, it.opts.strictNumbers, dataType_2.DataType.Wrong)}`;\n }\n return codegen_1.nil;\n }\n function invalid$DataSchema() {\n if (def.validateSchema) {\n const validateSchemaRef = gen.scopeValue(\"validate$data\", { ref: def.validateSchema }); // TODO value.code for standalone\n return (0, codegen_1._) `!${validateSchemaRef}(${schemaCode})`;\n }\n return codegen_1.nil;\n }\n }\n subschema(appl, valid) {\n const subschema = (0, subschema_1.getSubschema)(this.it, appl);\n (0, subschema_1.extendSubschemaData)(subschema, this.it, appl);\n (0, subschema_1.extendSubschemaMode)(subschema, appl);\n const nextContext = { ...this.it, ...subschema, items: undefined, props: undefined };\n subschemaCode(nextContext, valid);\n return nextContext;\n }\n mergeEvaluated(schemaCxt, toName) {\n const { it, gen } = this;\n if (!it.opts.unevaluated)\n return;\n if (it.props !== true && schemaCxt.props !== undefined) {\n it.props = util_1.mergeEvaluated.props(gen, schemaCxt.props, it.props, toName);\n }\n if (it.items !== true && schemaCxt.items !== undefined) {\n it.items = util_1.mergeEvaluated.items(gen, schemaCxt.items, it.items, toName);\n }\n }\n mergeValidEvaluated(schemaCxt, valid) {\n const { it, gen } = this;\n if (it.opts.unevaluated && (it.props !== true || it.items !== true)) {\n gen.if(valid, () => this.mergeEvaluated(schemaCxt, codegen_1.Name));\n return true;\n }\n }\n}\nexports.KeywordCxt = KeywordCxt;\nfunction keywordCode(it, keyword, def, ruleType) {\n const cxt = new KeywordCxt(it, def, keyword);\n if (\"code\" in def) {\n def.code(cxt, ruleType);\n }\n else if (cxt.$data && def.validate) {\n (0, keyword_1.funcKeywordCode)(cxt, def);\n }\n else if (\"macro\" in def) {\n (0, keyword_1.macroKeywordCode)(cxt, def);\n }\n else if (def.compile || def.validate) {\n (0, keyword_1.funcKeywordCode)(cxt, def);\n }\n}\nconst JSON_POINTER = /^\\/(?:[^~]|~0|~1)*$/;\nconst RELATIVE_JSON_POINTER = /^([0-9]+)(#|\\/(?:[^~]|~0|~1)*)?$/;\nfunction getData($data, { dataLevel, dataNames, dataPathArr }) {\n let jsonPointer;\n let data;\n if ($data === \"\")\n return names_1.default.rootData;\n if ($data[0] === \"/\") {\n if (!JSON_POINTER.test($data))\n throw new Error(`Invalid JSON-pointer: ${$data}`);\n jsonPointer = $data;\n data = names_1.default.rootData;\n }\n else {\n const matches = RELATIVE_JSON_POINTER.exec($data);\n if (!matches)\n throw new Error(`Invalid JSON-pointer: ${$data}`);\n const up = +matches[1];\n jsonPointer = matches[2];\n if (jsonPointer === \"#\") {\n if (up >= dataLevel)\n throw new Error(errorMsg(\"property/index\", up));\n return dataPathArr[dataLevel - up];\n }\n if (up > dataLevel)\n throw new Error(errorMsg(\"data\", up));\n data = dataNames[dataLevel - up];\n if (!jsonPointer)\n return data;\n }\n let expr = data;\n const segments = jsonPointer.split(\"/\");\n for (const segment of segments) {\n if (segment) {\n data = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)((0, util_1.unescapeJsonPointer)(segment))}`;\n expr = (0, codegen_1._) `${expr} && ${data}`;\n }\n }\n return expr;\n function errorMsg(pointerType, up) {\n return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`;\n }\n}\nexports.getData = getData;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nclass ValidationError extends Error {\n constructor(errors) {\n super(\"validation failed\");\n this.errors = errors;\n this.ajv = this.validation = true;\n }\n}\nexports.default = ValidationError;\n//# sourceMappingURL=validation_error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst resolve_1 = require(\"./resolve\");\nclass MissingRefError extends Error {\n constructor(resolver, baseId, ref, msg) {\n super(msg || `can't resolve reference ${ref} from id ${baseId}`);\n this.missingRef = (0, resolve_1.resolveUrl)(resolver, baseId, ref);\n this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));\n }\n}\nexports.default = MissingRefError;\n//# sourceMappingURL=ref_error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;\nconst codegen_1 = require(\"./codegen\");\nconst validation_error_1 = require(\"../runtime/validation_error\");\nconst names_1 = require(\"./names\");\nconst resolve_1 = require(\"./resolve\");\nconst util_1 = require(\"./util\");\nconst validate_1 = require(\"./validate\");\nclass SchemaEnv {\n constructor(env) {\n var _a;\n this.refs = {};\n this.dynamicAnchors = {};\n let schema;\n if (typeof env.schema == \"object\")\n schema = env.schema;\n this.schema = env.schema;\n this.schemaId = env.schemaId;\n this.root = env.root || this;\n this.baseId = (_a = env.baseId) !== null && _a !== void 0 ? _a : (0, resolve_1.normalizeId)(schema === null || schema === void 0 ? void 0 : schema[env.schemaId || \"$id\"]);\n this.schemaPath = env.schemaPath;\n this.localRefs = env.localRefs;\n this.meta = env.meta;\n this.$async = schema === null || schema === void 0 ? void 0 : schema.$async;\n this.refs = {};\n }\n}\nexports.SchemaEnv = SchemaEnv;\n// let codeSize = 0\n// let nodeCount = 0\n// Compiles schema in SchemaEnv\nfunction compileSchema(sch) {\n // TODO refactor - remove compilations\n const _sch = getCompilingSchema.call(this, sch);\n if (_sch)\n return _sch;\n const rootId = (0, resolve_1.getFullPath)(this.opts.uriResolver, sch.root.baseId); // TODO if getFullPath removed 1 tests fails\n const { es5, lines } = this.opts.code;\n const { ownProperties } = this.opts;\n const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties });\n let _ValidationError;\n if (sch.$async) {\n _ValidationError = gen.scopeValue(\"Error\", {\n ref: validation_error_1.default,\n code: (0, codegen_1._) `require(\"ajv/dist/runtime/validation_error\").default`,\n });\n }\n const validateName = gen.scopeName(\"validate\");\n sch.validateName = validateName;\n const schemaCxt = {\n gen,\n allErrors: this.opts.allErrors,\n data: names_1.default.data,\n parentData: names_1.default.parentData,\n parentDataProperty: names_1.default.parentDataProperty,\n dataNames: [names_1.default.data],\n dataPathArr: [codegen_1.nil], // TODO can its length be used as dataLevel if nil is removed?\n dataLevel: 0,\n dataTypes: [],\n definedProperties: new Set(),\n topSchemaRef: gen.scopeValue(\"schema\", this.opts.code.source === true\n ? { ref: sch.schema, code: (0, codegen_1.stringify)(sch.schema) }\n : { ref: sch.schema }),\n validateName,\n ValidationError: _ValidationError,\n schema: sch.schema,\n schemaEnv: sch,\n rootId,\n baseId: sch.baseId || rootId,\n schemaPath: codegen_1.nil,\n errSchemaPath: sch.schemaPath || (this.opts.jtd ? \"\" : \"#\"),\n errorPath: (0, codegen_1._) `\"\"`,\n opts: this.opts,\n self: this,\n };\n let sourceCode;\n try {\n this._compilations.add(sch);\n (0, validate_1.validateFunctionCode)(schemaCxt);\n gen.optimize(this.opts.code.optimize);\n // gen.optimize(1)\n const validateCode = gen.toString();\n sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${validateCode}`;\n // console.log((codeSize += sourceCode.length), (nodeCount += gen.nodeCount))\n if (this.opts.code.process)\n sourceCode = this.opts.code.process(sourceCode, sch);\n // console.log(\"\\n\\n\\n *** \\n\", sourceCode)\n const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode);\n const validate = makeValidate(this, this.scope.get());\n this.scope.value(validateName, { ref: validate });\n validate.errors = null;\n validate.schema = sch.schema;\n validate.schemaEnv = sch;\n if (sch.$async)\n validate.$async = true;\n if (this.opts.code.source === true) {\n validate.source = { validateName, validateCode, scopeValues: gen._values };\n }\n if (this.opts.unevaluated) {\n const { props, items } = schemaCxt;\n validate.evaluated = {\n props: props instanceof codegen_1.Name ? undefined : props,\n items: items instanceof codegen_1.Name ? undefined : items,\n dynamicProps: props instanceof codegen_1.Name,\n dynamicItems: items instanceof codegen_1.Name,\n };\n if (validate.source)\n validate.source.evaluated = (0, codegen_1.stringify)(validate.evaluated);\n }\n sch.validate = validate;\n return sch;\n }\n catch (e) {\n delete sch.validate;\n delete sch.validateName;\n if (sourceCode)\n this.logger.error(\"Error compiling schema, function code:\", sourceCode);\n // console.log(\"\\n\\n\\n *** \\n\", sourceCode, this.opts)\n throw e;\n }\n finally {\n this._compilations.delete(sch);\n }\n}\nexports.compileSchema = compileSchema;\nfunction resolveRef(root, baseId, ref) {\n var _a;\n ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref);\n const schOrFunc = root.refs[ref];\n if (schOrFunc)\n return schOrFunc;\n let _sch = resolve.call(this, root, ref);\n if (_sch === undefined) {\n const schema = (_a = root.localRefs) === null || _a === void 0 ? void 0 : _a[ref]; // TODO maybe localRefs should hold SchemaEnv\n const { schemaId } = this.opts;\n if (schema)\n _sch = new SchemaEnv({ schema, schemaId, root, baseId });\n }\n if (_sch === undefined)\n return;\n return (root.refs[ref] = inlineOrCompile.call(this, _sch));\n}\nexports.resolveRef = resolveRef;\nfunction inlineOrCompile(sch) {\n if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs))\n return sch.schema;\n return sch.validate ? sch : compileSchema.call(this, sch);\n}\n// Index of schema compilation in the currently compiled list\nfunction getCompilingSchema(schEnv) {\n for (const sch of this._compilations) {\n if (sameSchemaEnv(sch, schEnv))\n return sch;\n }\n}\nexports.getCompilingSchema = getCompilingSchema;\nfunction sameSchemaEnv(s1, s2) {\n return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;\n}\n// resolve and compile the references ($ref)\n// TODO returns AnySchemaObject (if the schema can be inlined) or validation function\nfunction resolve(root, // information about the root schema for the current schema\nref // reference to resolve\n) {\n let sch;\n while (typeof (sch = this.refs[ref]) == \"string\")\n ref = sch;\n return sch || this.schemas[ref] || resolveSchema.call(this, root, ref);\n}\n// Resolve schema, its root and baseId\nfunction resolveSchema(root, // root object with properties schema, refs TODO below SchemaEnv is assigned to it\nref // reference to resolve\n) {\n const p = this.opts.uriResolver.parse(ref);\n const refPath = (0, resolve_1._getFullPath)(this.opts.uriResolver, p);\n let baseId = (0, resolve_1.getFullPath)(this.opts.uriResolver, root.baseId, undefined);\n // TODO `Object.keys(root.schema).length > 0` should not be needed - but removing breaks 2 tests\n if (Object.keys(root.schema).length > 0 && refPath === baseId) {\n return getJsonPointer.call(this, p, root);\n }\n const id = (0, resolve_1.normalizeId)(refPath);\n const schOrRef = this.refs[id] || this.schemas[id];\n if (typeof schOrRef == \"string\") {\n const sch = resolveSchema.call(this, root, schOrRef);\n if (typeof (sch === null || sch === void 0 ? void 0 : sch.schema) !== \"object\")\n return;\n return getJsonPointer.call(this, p, sch);\n }\n if (typeof (schOrRef === null || schOrRef === void 0 ? void 0 : schOrRef.schema) !== \"object\")\n return;\n if (!schOrRef.validate)\n compileSchema.call(this, schOrRef);\n if (id === (0, resolve_1.normalizeId)(ref)) {\n const { schema } = schOrRef;\n const { schemaId } = this.opts;\n const schId = schema[schemaId];\n if (schId)\n baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId);\n return new SchemaEnv({ schema, schemaId, root, baseId });\n }\n return getJsonPointer.call(this, p, schOrRef);\n}\nexports.resolveSchema = resolveSchema;\nconst PREVENT_SCOPE_CHANGE = new Set([\n \"properties\",\n \"patternProperties\",\n \"enum\",\n \"dependencies\",\n \"definitions\",\n]);\nfunction getJsonPointer(parsedRef, { baseId, schema, root }) {\n var _a;\n if (((_a = parsedRef.fragment) === null || _a === void 0 ? void 0 : _a[0]) !== \"/\")\n return;\n for (const part of parsedRef.fragment.slice(1).split(\"/\")) {\n if (typeof schema === \"boolean\")\n return;\n const partSchema = schema[(0, util_1.unescapeFragment)(part)];\n if (partSchema === undefined)\n return;\n schema = partSchema;\n // TODO PREVENT_SCOPE_CHANGE could be defined in keyword def?\n const schId = typeof schema === \"object\" && schema[this.opts.schemaId];\n if (!PREVENT_SCOPE_CHANGE.has(part) && schId) {\n baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId);\n }\n }\n let env;\n if (typeof schema != \"boolean\" && schema.$ref && !(0, util_1.schemaHasRulesButRef)(schema, this.RULES)) {\n const $ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schema.$ref);\n env = resolveSchema.call(this, root, $ref);\n }\n // even though resolution failed we need to return SchemaEnv to throw exception\n // so that compileAsync loads missing schema.\n const { schemaId } = this.opts;\n env = env || new SchemaEnv({ schema, schemaId, root, baseId });\n if (env.schema !== env.root.schema)\n return env;\n return undefined;\n}\n//# sourceMappingURL=index.js.map","'use strict'\n\nconst HEX = {\n 0: 0,\n 1: 1,\n 2: 2,\n 3: 3,\n 4: 4,\n 5: 5,\n 6: 6,\n 7: 7,\n 8: 8,\n 9: 9,\n a: 10,\n A: 10,\n b: 11,\n B: 11,\n c: 12,\n C: 12,\n d: 13,\n D: 13,\n e: 14,\n E: 14,\n f: 15,\n F: 15\n}\n\nmodule.exports = {\n HEX\n}\n","'use strict'\n\nconst { HEX } = require('./scopedChars')\n\nconst IPV4_REG = /^(?:(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)$/u\n\nfunction normalizeIPv4 (host) {\n if (findToken(host, '.') < 3) { return { host, isIPV4: false } }\n const matches = host.match(IPV4_REG) || []\n const [address] = matches\n if (address) {\n return { host: stripLeadingZeros(address, '.'), isIPV4: true }\n } else {\n return { host, isIPV4: false }\n }\n}\n\n/**\n * @param {string[]} input\n * @param {boolean} [keepZero=false]\n * @returns {string|undefined}\n */\nfunction stringArrayToHexStripped (input, keepZero = false) {\n let acc = ''\n let strip = true\n for (const c of input) {\n if (HEX[c] === undefined) return undefined\n if (c !== '0' && strip === true) strip = false\n if (!strip) acc += c\n }\n if (keepZero && acc.length === 0) acc = '0'\n return acc\n}\n\nfunction getIPV6 (input) {\n let tokenCount = 0\n const output = { error: false, address: '', zone: '' }\n const address = []\n const buffer = []\n let isZone = false\n let endipv6Encountered = false\n let endIpv6 = false\n\n function consume () {\n if (buffer.length) {\n if (isZone === false) {\n const hex = stringArrayToHexStripped(buffer)\n if (hex !== undefined) {\n address.push(hex)\n } else {\n output.error = true\n return false\n }\n }\n buffer.length = 0\n }\n return true\n }\n\n for (let i = 0; i < input.length; i++) {\n const cursor = input[i]\n if (cursor === '[' || cursor === ']') { continue }\n if (cursor === ':') {\n if (endipv6Encountered === true) {\n endIpv6 = true\n }\n if (!consume()) { break }\n tokenCount++\n address.push(':')\n if (tokenCount > 7) {\n // not valid\n output.error = true\n break\n }\n if (i - 1 >= 0 && input[i - 1] === ':') {\n endipv6Encountered = true\n }\n continue\n } else if (cursor === '%') {\n if (!consume()) { break }\n // switch to zone detection\n isZone = true\n } else {\n buffer.push(cursor)\n continue\n }\n }\n if (buffer.length) {\n if (isZone) {\n output.zone = buffer.join('')\n } else if (endIpv6) {\n address.push(buffer.join(''))\n } else {\n address.push(stringArrayToHexStripped(buffer))\n }\n }\n output.address = address.join('')\n return output\n}\n\nfunction normalizeIPv6 (host) {\n if (findToken(host, ':') < 2) { return { host, isIPV6: false } }\n const ipv6 = getIPV6(host)\n\n if (!ipv6.error) {\n let newHost = ipv6.address\n let escapedHost = ipv6.address\n if (ipv6.zone) {\n newHost += '%' + ipv6.zone\n escapedHost += '%25' + ipv6.zone\n }\n return { host: newHost, escapedHost, isIPV6: true }\n } else {\n return { host, isIPV6: false }\n }\n}\n\nfunction stripLeadingZeros (str, token) {\n let out = ''\n let skip = true\n const l = str.length\n for (let i = 0; i < l; i++) {\n const c = str[i]\n if (c === '0' && skip) {\n if ((i + 1 <= l && str[i + 1] === token) || i + 1 === l) {\n out += c\n skip = false\n }\n } else {\n if (c === token) {\n skip = true\n } else {\n skip = false\n }\n out += c\n }\n }\n return out\n}\n\nfunction findToken (str, token) {\n let ind = 0\n for (let i = 0; i < str.length; i++) {\n if (str[i] === token) ind++\n }\n return ind\n}\n\nconst RDS1 = /^\\.\\.?\\//u\nconst RDS2 = /^\\/\\.(?:\\/|$)/u\nconst RDS3 = /^\\/\\.\\.(?:\\/|$)/u\nconst RDS5 = /^\\/?(?:.|\\n)*?(?=\\/|$)/u\n\nfunction removeDotSegments (input) {\n const output = []\n\n while (input.length) {\n if (input.match(RDS1)) {\n input = input.replace(RDS1, '')\n } else if (input.match(RDS2)) {\n input = input.replace(RDS2, '/')\n } else if (input.match(RDS3)) {\n input = input.replace(RDS3, '/')\n output.pop()\n } else if (input === '.' || input === '..') {\n input = ''\n } else {\n const im = input.match(RDS5)\n if (im) {\n const s = im[0]\n input = input.slice(s.length)\n output.push(s)\n } else {\n throw new Error('Unexpected dot segment condition')\n }\n }\n }\n return output.join('')\n}\n\nfunction normalizeComponentEncoding (components, esc) {\n const func = esc !== true ? escape : unescape\n if (components.scheme !== undefined) {\n components.scheme = func(components.scheme)\n }\n if (components.userinfo !== undefined) {\n components.userinfo = func(components.userinfo)\n }\n if (components.host !== undefined) {\n components.host = func(components.host)\n }\n if (components.path !== undefined) {\n components.path = func(components.path)\n }\n if (components.query !== undefined) {\n components.query = func(components.query)\n }\n if (components.fragment !== undefined) {\n components.fragment = func(components.fragment)\n }\n return components\n}\n\nfunction recomposeAuthority (components) {\n const uriTokens = []\n\n if (components.userinfo !== undefined) {\n uriTokens.push(components.userinfo)\n uriTokens.push('@')\n }\n\n if (components.host !== undefined) {\n let host = unescape(components.host)\n const ipV4res = normalizeIPv4(host)\n\n if (ipV4res.isIPV4) {\n host = ipV4res.host\n } else {\n const ipV6res = normalizeIPv6(ipV4res.host)\n if (ipV6res.isIPV6 === true) {\n host = `[${ipV6res.escapedHost}]`\n } else {\n host = components.host\n }\n }\n uriTokens.push(host)\n }\n\n if (typeof components.port === 'number' || typeof components.port === 'string') {\n uriTokens.push(':')\n uriTokens.push(String(components.port))\n }\n\n return uriTokens.length ? uriTokens.join('') : undefined\n};\n\nmodule.exports = {\n recomposeAuthority,\n normalizeComponentEncoding,\n removeDotSegments,\n normalizeIPv4,\n normalizeIPv6,\n stringArrayToHexStripped\n}\n","'use strict'\n\nconst UUID_REG = /^[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12}$/iu\nconst URN_REG = /([\\da-z][\\d\\-a-z]{0,31}):((?:[\\w!$'()*+,\\-.:;=@]|%[\\da-f]{2})+)/iu\n\nfunction isSecure (wsComponents) {\n return typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === 'wss'\n}\n\nfunction httpParse (components) {\n if (!components.host) {\n components.error = components.error || 'HTTP URIs must have a host.'\n }\n\n return components\n}\n\nfunction httpSerialize (components) {\n const secure = String(components.scheme).toLowerCase() === 'https'\n\n // normalize the default port\n if (components.port === (secure ? 443 : 80) || components.port === '') {\n components.port = undefined\n }\n\n // normalize the empty path\n if (!components.path) {\n components.path = '/'\n }\n\n // NOTE: We do not parse query strings for HTTP URIs\n // as WWW Form Url Encoded query strings are part of the HTML4+ spec,\n // and not the HTTP spec.\n\n return components\n}\n\nfunction wsParse (wsComponents) {\n// indicate if the secure flag is set\n wsComponents.secure = isSecure(wsComponents)\n\n // construct resouce name\n wsComponents.resourceName = (wsComponents.path || '/') + (wsComponents.query ? '?' + wsComponents.query : '')\n wsComponents.path = undefined\n wsComponents.query = undefined\n\n return wsComponents\n}\n\nfunction wsSerialize (wsComponents) {\n// normalize the default port\n if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === '') {\n wsComponents.port = undefined\n }\n\n // ensure scheme matches secure flag\n if (typeof wsComponents.secure === 'boolean') {\n wsComponents.scheme = (wsComponents.secure ? 'wss' : 'ws')\n wsComponents.secure = undefined\n }\n\n // reconstruct path from resource name\n if (wsComponents.resourceName) {\n const [path, query] = wsComponents.resourceName.split('?')\n wsComponents.path = (path && path !== '/' ? path : undefined)\n wsComponents.query = query\n wsComponents.resourceName = undefined\n }\n\n // forbid fragment component\n wsComponents.fragment = undefined\n\n return wsComponents\n}\n\nfunction urnParse (urnComponents, options) {\n if (!urnComponents.path) {\n urnComponents.error = 'URN can not be parsed'\n return urnComponents\n }\n const matches = urnComponents.path.match(URN_REG)\n if (matches) {\n const scheme = options.scheme || urnComponents.scheme || 'urn'\n urnComponents.nid = matches[1].toLowerCase()\n urnComponents.nss = matches[2]\n const urnScheme = `${scheme}:${options.nid || urnComponents.nid}`\n const schemeHandler = SCHEMES[urnScheme]\n urnComponents.path = undefined\n\n if (schemeHandler) {\n urnComponents = schemeHandler.parse(urnComponents, options)\n }\n } else {\n urnComponents.error = urnComponents.error || 'URN can not be parsed.'\n }\n\n return urnComponents\n}\n\nfunction urnSerialize (urnComponents, options) {\n const scheme = options.scheme || urnComponents.scheme || 'urn'\n const nid = urnComponents.nid.toLowerCase()\n const urnScheme = `${scheme}:${options.nid || nid}`\n const schemeHandler = SCHEMES[urnScheme]\n\n if (schemeHandler) {\n urnComponents = schemeHandler.serialize(urnComponents, options)\n }\n\n const uriComponents = urnComponents\n const nss = urnComponents.nss\n uriComponents.path = `${nid || options.nid}:${nss}`\n\n options.skipEscape = true\n return uriComponents\n}\n\nfunction urnuuidParse (urnComponents, options) {\n const uuidComponents = urnComponents\n uuidComponents.uuid = uuidComponents.nss\n uuidComponents.nss = undefined\n\n if (!options.tolerant && (!uuidComponents.uuid || !UUID_REG.test(uuidComponents.uuid))) {\n uuidComponents.error = uuidComponents.error || 'UUID is not valid.'\n }\n\n return uuidComponents\n}\n\nfunction urnuuidSerialize (uuidComponents) {\n const urnComponents = uuidComponents\n // normalize UUID\n urnComponents.nss = (uuidComponents.uuid || '').toLowerCase()\n return urnComponents\n}\n\nconst http = {\n scheme: 'http',\n domainHost: true,\n parse: httpParse,\n serialize: httpSerialize\n}\n\nconst https = {\n scheme: 'https',\n domainHost: http.domainHost,\n parse: httpParse,\n serialize: httpSerialize\n}\n\nconst ws = {\n scheme: 'ws',\n domainHost: true,\n parse: wsParse,\n serialize: wsSerialize\n}\n\nconst wss = {\n scheme: 'wss',\n domainHost: ws.domainHost,\n parse: ws.parse,\n serialize: ws.serialize\n}\n\nconst urn = {\n scheme: 'urn',\n parse: urnParse,\n serialize: urnSerialize,\n skipNormalize: true\n}\n\nconst urnuuid = {\n scheme: 'urn:uuid',\n parse: urnuuidParse,\n serialize: urnuuidSerialize,\n skipNormalize: true\n}\n\nconst SCHEMES = {\n http,\n https,\n ws,\n wss,\n urn,\n 'urn:uuid': urnuuid\n}\n\nmodule.exports = SCHEMES\n","'use strict'\n\nconst { normalizeIPv6, normalizeIPv4, removeDotSegments, recomposeAuthority, normalizeComponentEncoding } = require('./lib/utils')\nconst SCHEMES = require('./lib/schemes')\n\nfunction normalize (uri, options) {\n if (typeof uri === 'string') {\n uri = serialize(parse(uri, options), options)\n } else if (typeof uri === 'object') {\n uri = parse(serialize(uri, options), options)\n }\n return uri\n}\n\nfunction resolve (baseURI, relativeURI, options) {\n const schemelessOptions = Object.assign({ scheme: 'null' }, options)\n const resolved = resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true)\n return serialize(resolved, { ...schemelessOptions, skipEscape: true })\n}\n\nfunction resolveComponents (base, relative, options, skipNormalization) {\n const target = {}\n if (!skipNormalization) {\n base = parse(serialize(base, options), options) // normalize base components\n relative = parse(serialize(relative, options), options) // normalize relative components\n }\n options = options || {}\n\n if (!options.tolerant && relative.scheme) {\n target.scheme = relative.scheme\n // target.authority = relative.authority;\n target.userinfo = relative.userinfo\n target.host = relative.host\n target.port = relative.port\n target.path = removeDotSegments(relative.path || '')\n target.query = relative.query\n } else {\n if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {\n // target.authority = relative.authority;\n target.userinfo = relative.userinfo\n target.host = relative.host\n target.port = relative.port\n target.path = removeDotSegments(relative.path || '')\n target.query = relative.query\n } else {\n if (!relative.path) {\n target.path = base.path\n if (relative.query !== undefined) {\n target.query = relative.query\n } else {\n target.query = base.query\n }\n } else {\n if (relative.path.charAt(0) === '/') {\n target.path = removeDotSegments(relative.path)\n } else {\n if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {\n target.path = '/' + relative.path\n } else if (!base.path) {\n target.path = relative.path\n } else {\n target.path = base.path.slice(0, base.path.lastIndexOf('/') + 1) + relative.path\n }\n target.path = removeDotSegments(target.path)\n }\n target.query = relative.query\n }\n // target.authority = base.authority;\n target.userinfo = base.userinfo\n target.host = base.host\n target.port = base.port\n }\n target.scheme = base.scheme\n }\n\n target.fragment = relative.fragment\n\n return target\n}\n\nfunction equal (uriA, uriB, options) {\n if (typeof uriA === 'string') {\n uriA = unescape(uriA)\n uriA = serialize(normalizeComponentEncoding(parse(uriA, options), true), { ...options, skipEscape: true })\n } else if (typeof uriA === 'object') {\n uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true })\n }\n\n if (typeof uriB === 'string') {\n uriB = unescape(uriB)\n uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), { ...options, skipEscape: true })\n } else if (typeof uriB === 'object') {\n uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true })\n }\n\n return uriA.toLowerCase() === uriB.toLowerCase()\n}\n\nfunction serialize (cmpts, opts) {\n const components = {\n host: cmpts.host,\n scheme: cmpts.scheme,\n userinfo: cmpts.userinfo,\n port: cmpts.port,\n path: cmpts.path,\n query: cmpts.query,\n nid: cmpts.nid,\n nss: cmpts.nss,\n uuid: cmpts.uuid,\n fragment: cmpts.fragment,\n reference: cmpts.reference,\n resourceName: cmpts.resourceName,\n secure: cmpts.secure,\n error: ''\n }\n const options = Object.assign({}, opts)\n const uriTokens = []\n\n // find scheme handler\n const schemeHandler = SCHEMES[(options.scheme || components.scheme || '').toLowerCase()]\n\n // perform scheme specific serialization\n if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options)\n\n if (components.path !== undefined) {\n if (!options.skipEscape) {\n components.path = escape(components.path)\n\n if (components.scheme !== undefined) {\n components.path = components.path.split('%3A').join(':')\n }\n } else {\n components.path = unescape(components.path)\n }\n }\n\n if (options.reference !== 'suffix' && components.scheme) {\n uriTokens.push(components.scheme, ':')\n }\n\n const authority = recomposeAuthority(components)\n if (authority !== undefined) {\n if (options.reference !== 'suffix') {\n uriTokens.push('//')\n }\n\n uriTokens.push(authority)\n\n if (components.path && components.path.charAt(0) !== '/') {\n uriTokens.push('/')\n }\n }\n if (components.path !== undefined) {\n let s = components.path\n\n if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {\n s = removeDotSegments(s)\n }\n\n if (authority === undefined) {\n s = s.replace(/^\\/\\//u, '/%2F') // don't allow the path to start with \"//\"\n }\n\n uriTokens.push(s)\n }\n\n if (components.query !== undefined) {\n uriTokens.push('?', components.query)\n }\n\n if (components.fragment !== undefined) {\n uriTokens.push('#', components.fragment)\n }\n return uriTokens.join('')\n}\n\nconst hexLookUp = Array.from({ length: 127 }, (_v, k) => /[^!\"$&'()*+,\\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)))\n\nfunction nonSimpleDomain (value) {\n let code = 0\n for (let i = 0, len = value.length; i < len; ++i) {\n code = value.charCodeAt(i)\n if (code > 126 || hexLookUp[code]) {\n return true\n }\n }\n return false\n}\n\nconst URI_PARSE = /^(?:([^#/:?]+):)?(?:\\/\\/((?:([^#/?@]*)@)?(\\[[^#/?\\]]+\\]|[^#/:?]*)(?::(\\d*))?))?([^#?]*)(?:\\?([^#]*))?(?:#((?:.|[\\n\\r])*))?/u\n\nfunction parse (uri, opts) {\n const options = Object.assign({}, opts)\n const parsed = {\n scheme: undefined,\n userinfo: undefined,\n host: '',\n port: undefined,\n path: '',\n query: undefined,\n fragment: undefined\n }\n const gotEncoding = uri.indexOf('%') !== -1\n let isIP = false\n if (options.reference === 'suffix') uri = (options.scheme ? options.scheme + ':' : '') + '//' + uri\n\n const matches = uri.match(URI_PARSE)\n\n if (matches) {\n // store each component\n parsed.scheme = matches[1]\n parsed.userinfo = matches[3]\n parsed.host = matches[4]\n parsed.port = parseInt(matches[5], 10)\n parsed.path = matches[6] || ''\n parsed.query = matches[7]\n parsed.fragment = matches[8]\n\n // fix port number\n if (isNaN(parsed.port)) {\n parsed.port = matches[5]\n }\n if (parsed.host) {\n const ipv4result = normalizeIPv4(parsed.host)\n if (ipv4result.isIPV4 === false) {\n const ipv6result = normalizeIPv6(ipv4result.host)\n parsed.host = ipv6result.host.toLowerCase()\n isIP = ipv6result.isIPV6\n } else {\n parsed.host = ipv4result.host\n isIP = true\n }\n }\n if (parsed.scheme === undefined && parsed.userinfo === undefined && parsed.host === undefined && parsed.port === undefined && parsed.query === undefined && !parsed.path) {\n parsed.reference = 'same-document'\n } else if (parsed.scheme === undefined) {\n parsed.reference = 'relative'\n } else if (parsed.fragment === undefined) {\n parsed.reference = 'absolute'\n } else {\n parsed.reference = 'uri'\n }\n\n // check for reference errors\n if (options.reference && options.reference !== 'suffix' && options.reference !== parsed.reference) {\n parsed.error = parsed.error || 'URI is not a ' + options.reference + ' reference.'\n }\n\n // find scheme handler\n const schemeHandler = SCHEMES[(options.scheme || parsed.scheme || '').toLowerCase()]\n\n // check if scheme can't handle IRIs\n if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {\n // if host component is a domain name\n if (parsed.host && (options.domainHost || (schemeHandler && schemeHandler.domainHost)) && isIP === false && nonSimpleDomain(parsed.host)) {\n // convert Unicode IDN -> ASCII IDN\n try {\n parsed.host = URL.domainToASCII(parsed.host.toLowerCase())\n } catch (e) {\n parsed.error = parsed.error || \"Host's domain name can not be converted to ASCII: \" + e\n }\n }\n // convert IRI -> URI\n }\n\n if (!schemeHandler || (schemeHandler && !schemeHandler.skipNormalize)) {\n if (gotEncoding && parsed.scheme !== undefined) {\n parsed.scheme = unescape(parsed.scheme)\n }\n if (gotEncoding && parsed.host !== undefined) {\n parsed.host = unescape(parsed.host)\n }\n if (parsed.path) {\n parsed.path = escape(unescape(parsed.path))\n }\n if (parsed.fragment) {\n parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment))\n }\n }\n\n // perform scheme specific parsing\n if (schemeHandler && schemeHandler.parse) {\n schemeHandler.parse(parsed, options)\n }\n } else {\n parsed.error = parsed.error || 'URI can not be parsed.'\n }\n return parsed\n}\n\nconst fastUri = {\n SCHEMES,\n normalize,\n resolve,\n resolveComponents,\n equal,\n serialize,\n parse\n}\n\nmodule.exports = fastUri\nmodule.exports.default = fastUri\nmodule.exports.fastUri = fastUri\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst uri = require(\"fast-uri\");\nuri.code = 'require(\"ajv/dist/runtime/uri\").default';\nexports.default = uri;\n//# sourceMappingURL=uri.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;\nvar validate_1 = require(\"./compile/validate\");\nObject.defineProperty(exports, \"KeywordCxt\", { enumerable: true, get: function () { return validate_1.KeywordCxt; } });\nvar codegen_1 = require(\"./compile/codegen\");\nObject.defineProperty(exports, \"_\", { enumerable: true, get: function () { return codegen_1._; } });\nObject.defineProperty(exports, \"str\", { enumerable: true, get: function () { return codegen_1.str; } });\nObject.defineProperty(exports, \"stringify\", { enumerable: true, get: function () { return codegen_1.stringify; } });\nObject.defineProperty(exports, \"nil\", { enumerable: true, get: function () { return codegen_1.nil; } });\nObject.defineProperty(exports, \"Name\", { enumerable: true, get: function () { return codegen_1.Name; } });\nObject.defineProperty(exports, \"CodeGen\", { enumerable: true, get: function () { return codegen_1.CodeGen; } });\nconst validation_error_1 = require(\"./runtime/validation_error\");\nconst ref_error_1 = require(\"./compile/ref_error\");\nconst rules_1 = require(\"./compile/rules\");\nconst compile_1 = require(\"./compile\");\nconst codegen_2 = require(\"./compile/codegen\");\nconst resolve_1 = require(\"./compile/resolve\");\nconst dataType_1 = require(\"./compile/validate/dataType\");\nconst util_1 = require(\"./compile/util\");\nconst $dataRefSchema = require(\"./refs/data.json\");\nconst uri_1 = require(\"./runtime/uri\");\nconst defaultRegExp = (str, flags) => new RegExp(str, flags);\ndefaultRegExp.code = \"new RegExp\";\nconst META_IGNORE_OPTIONS = [\"removeAdditional\", \"useDefaults\", \"coerceTypes\"];\nconst EXT_SCOPE_NAMES = new Set([\n \"validate\",\n \"serialize\",\n \"parse\",\n \"wrapper\",\n \"root\",\n \"schema\",\n \"keyword\",\n \"pattern\",\n \"formats\",\n \"validate$data\",\n \"func\",\n \"obj\",\n \"Error\",\n]);\nconst removedOptions = {\n errorDataPath: \"\",\n format: \"`validateFormats: false` can be used instead.\",\n nullable: '\"nullable\" keyword is supported by default.',\n jsonPointers: \"Deprecated jsPropertySyntax can be used instead.\",\n extendRefs: \"Deprecated ignoreKeywordsWithRef can be used instead.\",\n missingRefs: \"Pass empty schema with $id that should be ignored to ajv.addSchema.\",\n processCode: \"Use option `code: {process: (code, schemaEnv: object) => string}`\",\n sourceCode: \"Use option `code: {source: true}`\",\n strictDefaults: \"It is default now, see option `strict`.\",\n strictKeywords: \"It is default now, see option `strict`.\",\n uniqueItems: '\"uniqueItems\" keyword is always validated.',\n unknownFormats: \"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).\",\n cache: \"Map is used as cache, schema object as key.\",\n serialize: \"Map is used as cache, schema object as key.\",\n ajvErrors: \"It is default now.\",\n};\nconst deprecatedOptions = {\n ignoreKeywordsWithRef: \"\",\n jsPropertySyntax: \"\",\n unicode: '\"minLength\"/\"maxLength\" account for unicode characters by default.',\n};\nconst MAX_EXPRESSION = 200;\n// eslint-disable-next-line complexity\nfunction requiredOptions(o) {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;\n const s = o.strict;\n const _optz = (_a = o.code) === null || _a === void 0 ? void 0 : _a.optimize;\n const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0;\n const regExp = (_c = (_b = o.code) === null || _b === void 0 ? void 0 : _b.regExp) !== null && _c !== void 0 ? _c : defaultRegExp;\n const uriResolver = (_d = o.uriResolver) !== null && _d !== void 0 ? _d : uri_1.default;\n return {\n strictSchema: (_f = (_e = o.strictSchema) !== null && _e !== void 0 ? _e : s) !== null && _f !== void 0 ? _f : true,\n strictNumbers: (_h = (_g = o.strictNumbers) !== null && _g !== void 0 ? _g : s) !== null && _h !== void 0 ? _h : true,\n strictTypes: (_k = (_j = o.strictTypes) !== null && _j !== void 0 ? _j : s) !== null && _k !== void 0 ? _k : \"log\",\n strictTuples: (_m = (_l = o.strictTuples) !== null && _l !== void 0 ? _l : s) !== null && _m !== void 0 ? _m : \"log\",\n strictRequired: (_p = (_o = o.strictRequired) !== null && _o !== void 0 ? _o : s) !== null && _p !== void 0 ? _p : false,\n code: o.code ? { ...o.code, optimize, regExp } : { optimize, regExp },\n loopRequired: (_q = o.loopRequired) !== null && _q !== void 0 ? _q : MAX_EXPRESSION,\n loopEnum: (_r = o.loopEnum) !== null && _r !== void 0 ? _r : MAX_EXPRESSION,\n meta: (_s = o.meta) !== null && _s !== void 0 ? _s : true,\n messages: (_t = o.messages) !== null && _t !== void 0 ? _t : true,\n inlineRefs: (_u = o.inlineRefs) !== null && _u !== void 0 ? _u : true,\n schemaId: (_v = o.schemaId) !== null && _v !== void 0 ? _v : \"$id\",\n addUsedSchema: (_w = o.addUsedSchema) !== null && _w !== void 0 ? _w : true,\n validateSchema: (_x = o.validateSchema) !== null && _x !== void 0 ? _x : true,\n validateFormats: (_y = o.validateFormats) !== null && _y !== void 0 ? _y : true,\n unicodeRegExp: (_z = o.unicodeRegExp) !== null && _z !== void 0 ? _z : true,\n int32range: (_0 = o.int32range) !== null && _0 !== void 0 ? _0 : true,\n uriResolver: uriResolver,\n };\n}\nclass Ajv {\n constructor(opts = {}) {\n this.schemas = {};\n this.refs = {};\n this.formats = Object.create(null);\n this._compilations = new Set();\n this._loading = {};\n this._cache = new Map();\n opts = this.opts = { ...opts, ...requiredOptions(opts) };\n const { es5, lines } = this.opts.code;\n this.scope = new codegen_2.ValueScope({ scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines });\n this.logger = getLogger(opts.logger);\n const formatOpt = opts.validateFormats;\n opts.validateFormats = false;\n this.RULES = (0, rules_1.getRules)();\n checkOptions.call(this, removedOptions, opts, \"NOT SUPPORTED\");\n checkOptions.call(this, deprecatedOptions, opts, \"DEPRECATED\", \"warn\");\n this._metaOpts = getMetaSchemaOptions.call(this);\n if (opts.formats)\n addInitialFormats.call(this);\n this._addVocabularies();\n this._addDefaultMetaSchema();\n if (opts.keywords)\n addInitialKeywords.call(this, opts.keywords);\n if (typeof opts.meta == \"object\")\n this.addMetaSchema(opts.meta);\n addInitialSchemas.call(this);\n opts.validateFormats = formatOpt;\n }\n _addVocabularies() {\n this.addKeyword(\"$async\");\n }\n _addDefaultMetaSchema() {\n const { $data, meta, schemaId } = this.opts;\n let _dataRefSchema = $dataRefSchema;\n if (schemaId === \"id\") {\n _dataRefSchema = { ...$dataRefSchema };\n _dataRefSchema.id = _dataRefSchema.$id;\n delete _dataRefSchema.$id;\n }\n if (meta && $data)\n this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false);\n }\n defaultMeta() {\n const { meta, schemaId } = this.opts;\n return (this.opts.defaultMeta = typeof meta == \"object\" ? meta[schemaId] || meta : undefined);\n }\n validate(schemaKeyRef, // key, ref or schema object\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\n data // to be validated\n ) {\n let v;\n if (typeof schemaKeyRef == \"string\") {\n v = this.getSchema(schemaKeyRef);\n if (!v)\n throw new Error(`no schema with key or ref \"${schemaKeyRef}\"`);\n }\n else {\n v = this.compile(schemaKeyRef);\n }\n const valid = v(data);\n if (!(\"$async\" in v))\n this.errors = v.errors;\n return valid;\n }\n compile(schema, _meta) {\n const sch = this._addSchema(schema, _meta);\n return (sch.validate || this._compileSchemaEnv(sch));\n }\n compileAsync(schema, meta) {\n if (typeof this.opts.loadSchema != \"function\") {\n throw new Error(\"options.loadSchema should be a function\");\n }\n const { loadSchema } = this.opts;\n return runCompileAsync.call(this, schema, meta);\n async function runCompileAsync(_schema, _meta) {\n await loadMetaSchema.call(this, _schema.$schema);\n const sch = this._addSchema(_schema, _meta);\n return sch.validate || _compileAsync.call(this, sch);\n }\n async function loadMetaSchema($ref) {\n if ($ref && !this.getSchema($ref)) {\n await runCompileAsync.call(this, { $ref }, true);\n }\n }\n async function _compileAsync(sch) {\n try {\n return this._compileSchemaEnv(sch);\n }\n catch (e) {\n if (!(e instanceof ref_error_1.default))\n throw e;\n checkLoaded.call(this, e);\n await loadMissingSchema.call(this, e.missingSchema);\n return _compileAsync.call(this, sch);\n }\n }\n function checkLoaded({ missingSchema: ref, missingRef }) {\n if (this.refs[ref]) {\n throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`);\n }\n }\n async function loadMissingSchema(ref) {\n const _schema = await _loadSchema.call(this, ref);\n if (!this.refs[ref])\n await loadMetaSchema.call(this, _schema.$schema);\n if (!this.refs[ref])\n this.addSchema(_schema, ref, meta);\n }\n async function _loadSchema(ref) {\n const p = this._loading[ref];\n if (p)\n return p;\n try {\n return await (this._loading[ref] = loadSchema(ref));\n }\n finally {\n delete this._loading[ref];\n }\n }\n }\n // Adds schema to the instance\n addSchema(schema, // If array is passed, `key` will be ignored\n key, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.\n _meta, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead.\n _validateSchema = this.opts.validateSchema // false to skip schema validation. Used internally, option validateSchema should be used instead.\n ) {\n if (Array.isArray(schema)) {\n for (const sch of schema)\n this.addSchema(sch, undefined, _meta, _validateSchema);\n return this;\n }\n let id;\n if (typeof schema === \"object\") {\n const { schemaId } = this.opts;\n id = schema[schemaId];\n if (id !== undefined && typeof id != \"string\") {\n throw new Error(`schema ${schemaId} must be string`);\n }\n }\n key = (0, resolve_1.normalizeId)(key || id);\n this._checkUnique(key);\n this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true);\n return this;\n }\n // Add schema that will be used to validate other schemas\n // options in META_IGNORE_OPTIONS are alway set to false\n addMetaSchema(schema, key, // schema key\n _validateSchema = this.opts.validateSchema // false to skip schema validation, can be used to override validateSchema option for meta-schema\n ) {\n this.addSchema(schema, key, true, _validateSchema);\n return this;\n }\n // Validate schema against its meta-schema\n validateSchema(schema, throwOrLogError) {\n if (typeof schema == \"boolean\")\n return true;\n let $schema;\n $schema = schema.$schema;\n if ($schema !== undefined && typeof $schema != \"string\") {\n throw new Error(\"$schema must be a string\");\n }\n $schema = $schema || this.opts.defaultMeta || this.defaultMeta();\n if (!$schema) {\n this.logger.warn(\"meta-schema not available\");\n this.errors = null;\n return true;\n }\n const valid = this.validate($schema, schema);\n if (!valid && throwOrLogError) {\n const message = \"schema is invalid: \" + this.errorsText();\n if (this.opts.validateSchema === \"log\")\n this.logger.error(message);\n else\n throw new Error(message);\n }\n return valid;\n }\n // Get compiled schema by `key` or `ref`.\n // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)\n getSchema(keyRef) {\n let sch;\n while (typeof (sch = getSchEnv.call(this, keyRef)) == \"string\")\n keyRef = sch;\n if (sch === undefined) {\n const { schemaId } = this.opts;\n const root = new compile_1.SchemaEnv({ schema: {}, schemaId });\n sch = compile_1.resolveSchema.call(this, root, keyRef);\n if (!sch)\n return;\n this.refs[keyRef] = sch;\n }\n return (sch.validate || this._compileSchemaEnv(sch));\n }\n // Remove cached schema(s).\n // If no parameter is passed all schemas but meta-schemas are removed.\n // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.\n // Even if schema is referenced by other schemas it still can be removed as other schemas have local references.\n removeSchema(schemaKeyRef) {\n if (schemaKeyRef instanceof RegExp) {\n this._removeAllSchemas(this.schemas, schemaKeyRef);\n this._removeAllSchemas(this.refs, schemaKeyRef);\n return this;\n }\n switch (typeof schemaKeyRef) {\n case \"undefined\":\n this._removeAllSchemas(this.schemas);\n this._removeAllSchemas(this.refs);\n this._cache.clear();\n return this;\n case \"string\": {\n const sch = getSchEnv.call(this, schemaKeyRef);\n if (typeof sch == \"object\")\n this._cache.delete(sch.schema);\n delete this.schemas[schemaKeyRef];\n delete this.refs[schemaKeyRef];\n return this;\n }\n case \"object\": {\n const cacheKey = schemaKeyRef;\n this._cache.delete(cacheKey);\n let id = schemaKeyRef[this.opts.schemaId];\n if (id) {\n id = (0, resolve_1.normalizeId)(id);\n delete this.schemas[id];\n delete this.refs[id];\n }\n return this;\n }\n default:\n throw new Error(\"ajv.removeSchema: invalid parameter\");\n }\n }\n // add \"vocabulary\" - a collection of keywords\n addVocabulary(definitions) {\n for (const def of definitions)\n this.addKeyword(def);\n return this;\n }\n addKeyword(kwdOrDef, def // deprecated\n ) {\n let keyword;\n if (typeof kwdOrDef == \"string\") {\n keyword = kwdOrDef;\n if (typeof def == \"object\") {\n this.logger.warn(\"these parameters are deprecated, see docs for addKeyword\");\n def.keyword = keyword;\n }\n }\n else if (typeof kwdOrDef == \"object\" && def === undefined) {\n def = kwdOrDef;\n keyword = def.keyword;\n if (Array.isArray(keyword) && !keyword.length) {\n throw new Error(\"addKeywords: keyword must be string or non-empty array\");\n }\n }\n else {\n throw new Error(\"invalid addKeywords parameters\");\n }\n checkKeyword.call(this, keyword, def);\n if (!def) {\n (0, util_1.eachItem)(keyword, (kwd) => addRule.call(this, kwd));\n return this;\n }\n keywordMetaschema.call(this, def);\n const definition = {\n ...def,\n type: (0, dataType_1.getJSONTypes)(def.type),\n schemaType: (0, dataType_1.getJSONTypes)(def.schemaType),\n };\n (0, util_1.eachItem)(keyword, definition.type.length === 0\n ? (k) => addRule.call(this, k, definition)\n : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t)));\n return this;\n }\n getKeyword(keyword) {\n const rule = this.RULES.all[keyword];\n return typeof rule == \"object\" ? rule.definition : !!rule;\n }\n // Remove keyword\n removeKeyword(keyword) {\n // TODO return type should be Ajv\n const { RULES } = this;\n delete RULES.keywords[keyword];\n delete RULES.all[keyword];\n for (const group of RULES.rules) {\n const i = group.rules.findIndex((rule) => rule.keyword === keyword);\n if (i >= 0)\n group.rules.splice(i, 1);\n }\n return this;\n }\n // Add format\n addFormat(name, format) {\n if (typeof format == \"string\")\n format = new RegExp(format);\n this.formats[name] = format;\n return this;\n }\n errorsText(errors = this.errors, // optional array of validation errors\n { separator = \", \", dataVar = \"data\" } = {} // optional options with properties `separator` and `dataVar`\n ) {\n if (!errors || errors.length === 0)\n return \"No errors\";\n return errors\n .map((e) => `${dataVar}${e.instancePath} ${e.message}`)\n .reduce((text, msg) => text + separator + msg);\n }\n $dataMetaSchema(metaSchema, keywordsJsonPointers) {\n const rules = this.RULES.all;\n metaSchema = JSON.parse(JSON.stringify(metaSchema));\n for (const jsonPointer of keywordsJsonPointers) {\n const segments = jsonPointer.split(\"/\").slice(1); // first segment is an empty string\n let keywords = metaSchema;\n for (const seg of segments)\n keywords = keywords[seg];\n for (const key in rules) {\n const rule = rules[key];\n if (typeof rule != \"object\")\n continue;\n const { $data } = rule.definition;\n const schema = keywords[key];\n if ($data && schema)\n keywords[key] = schemaOrData(schema);\n }\n }\n return metaSchema;\n }\n _removeAllSchemas(schemas, regex) {\n for (const keyRef in schemas) {\n const sch = schemas[keyRef];\n if (!regex || regex.test(keyRef)) {\n if (typeof sch == \"string\") {\n delete schemas[keyRef];\n }\n else if (sch && !sch.meta) {\n this._cache.delete(sch.schema);\n delete schemas[keyRef];\n }\n }\n }\n }\n _addSchema(schema, meta, baseId, validateSchema = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) {\n let id;\n const { schemaId } = this.opts;\n if (typeof schema == \"object\") {\n id = schema[schemaId];\n }\n else {\n if (this.opts.jtd)\n throw new Error(\"schema must be object\");\n else if (typeof schema != \"boolean\")\n throw new Error(\"schema must be object or boolean\");\n }\n let sch = this._cache.get(schema);\n if (sch !== undefined)\n return sch;\n baseId = (0, resolve_1.normalizeId)(id || baseId);\n const localRefs = resolve_1.getSchemaRefs.call(this, schema, baseId);\n sch = new compile_1.SchemaEnv({ schema, schemaId, meta, baseId, localRefs });\n this._cache.set(sch.schema, sch);\n if (addSchema && !baseId.startsWith(\"#\")) {\n // TODO atm it is allowed to overwrite schemas without id (instead of not adding them)\n if (baseId)\n this._checkUnique(baseId);\n this.refs[baseId] = sch;\n }\n if (validateSchema)\n this.validateSchema(schema, true);\n return sch;\n }\n _checkUnique(id) {\n if (this.schemas[id] || this.refs[id]) {\n throw new Error(`schema with key or id \"${id}\" already exists`);\n }\n }\n _compileSchemaEnv(sch) {\n if (sch.meta)\n this._compileMetaSchema(sch);\n else\n compile_1.compileSchema.call(this, sch);\n /* istanbul ignore if */\n if (!sch.validate)\n throw new Error(\"ajv implementation error\");\n return sch.validate;\n }\n _compileMetaSchema(sch) {\n const currentOpts = this.opts;\n this.opts = this._metaOpts;\n try {\n compile_1.compileSchema.call(this, sch);\n }\n finally {\n this.opts = currentOpts;\n }\n }\n}\nAjv.ValidationError = validation_error_1.default;\nAjv.MissingRefError = ref_error_1.default;\nexports.default = Ajv;\nfunction checkOptions(checkOpts, options, msg, log = \"error\") {\n for (const key in checkOpts) {\n const opt = key;\n if (opt in options)\n this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`);\n }\n}\nfunction getSchEnv(keyRef) {\n keyRef = (0, resolve_1.normalizeId)(keyRef); // TODO tests fail without this line\n return this.schemas[keyRef] || this.refs[keyRef];\n}\nfunction addInitialSchemas() {\n const optsSchemas = this.opts.schemas;\n if (!optsSchemas)\n return;\n if (Array.isArray(optsSchemas))\n this.addSchema(optsSchemas);\n else\n for (const key in optsSchemas)\n this.addSchema(optsSchemas[key], key);\n}\nfunction addInitialFormats() {\n for (const name in this.opts.formats) {\n const format = this.opts.formats[name];\n if (format)\n this.addFormat(name, format);\n }\n}\nfunction addInitialKeywords(defs) {\n if (Array.isArray(defs)) {\n this.addVocabulary(defs);\n return;\n }\n this.logger.warn(\"keywords option as map is deprecated, pass array\");\n for (const keyword in defs) {\n const def = defs[keyword];\n if (!def.keyword)\n def.keyword = keyword;\n this.addKeyword(def);\n }\n}\nfunction getMetaSchemaOptions() {\n const metaOpts = { ...this.opts };\n for (const opt of META_IGNORE_OPTIONS)\n delete metaOpts[opt];\n return metaOpts;\n}\nconst noLogs = { log() { }, warn() { }, error() { } };\nfunction getLogger(logger) {\n if (logger === false)\n return noLogs;\n if (logger === undefined)\n return console;\n if (logger.log && logger.warn && logger.error)\n return logger;\n throw new Error(\"logger must implement log, warn and error methods\");\n}\nconst KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i;\nfunction checkKeyword(keyword, def) {\n const { RULES } = this;\n (0, util_1.eachItem)(keyword, (kwd) => {\n if (RULES.keywords[kwd])\n throw new Error(`Keyword ${kwd} is already defined`);\n if (!KEYWORD_NAME.test(kwd))\n throw new Error(`Keyword ${kwd} has invalid name`);\n });\n if (!def)\n return;\n if (def.$data && !(\"code\" in def || \"validate\" in def)) {\n throw new Error('$data keyword must have \"code\" or \"validate\" function');\n }\n}\nfunction addRule(keyword, definition, dataType) {\n var _a;\n const post = definition === null || definition === void 0 ? void 0 : definition.post;\n if (dataType && post)\n throw new Error('keyword with \"post\" flag cannot have \"type\"');\n const { RULES } = this;\n let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t }) => t === dataType);\n if (!ruleGroup) {\n ruleGroup = { type: dataType, rules: [] };\n RULES.rules.push(ruleGroup);\n }\n RULES.keywords[keyword] = true;\n if (!definition)\n return;\n const rule = {\n keyword,\n definition: {\n ...definition,\n type: (0, dataType_1.getJSONTypes)(definition.type),\n schemaType: (0, dataType_1.getJSONTypes)(definition.schemaType),\n },\n };\n if (definition.before)\n addBeforeRule.call(this, ruleGroup, rule, definition.before);\n else\n ruleGroup.rules.push(rule);\n RULES.all[keyword] = rule;\n (_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd));\n}\nfunction addBeforeRule(ruleGroup, rule, before) {\n const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before);\n if (i >= 0) {\n ruleGroup.rules.splice(i, 0, rule);\n }\n else {\n ruleGroup.rules.push(rule);\n this.logger.warn(`rule ${before} is not defined`);\n }\n}\nfunction keywordMetaschema(def) {\n let { metaSchema } = def;\n if (metaSchema === undefined)\n return;\n if (def.$data && this.opts.$data)\n metaSchema = schemaOrData(metaSchema);\n def.validateSchema = this.compile(metaSchema, true);\n}\nconst $dataRef = {\n $ref: \"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#\",\n};\nfunction schemaOrData(schema) {\n return { anyOf: [schema, $dataRef] };\n}\n//# sourceMappingURL=core.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst def = {\n keyword: \"id\",\n code() {\n throw new Error('NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID');\n },\n};\nexports.default = def;\n//# sourceMappingURL=id.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.callRef = exports.getValidate = void 0;\nconst ref_error_1 = require(\"../../compile/ref_error\");\nconst code_1 = require(\"../code\");\nconst codegen_1 = require(\"../../compile/codegen\");\nconst names_1 = require(\"../../compile/names\");\nconst compile_1 = require(\"../../compile\");\nconst util_1 = require(\"../../compile/util\");\nconst def = {\n keyword: \"$ref\",\n schemaType: \"string\",\n code(cxt) {\n const { gen, schema: $ref, it } = cxt;\n const { baseId, schemaEnv: env, validateName, opts, self } = it;\n const { root } = env;\n if (($ref === \"#\" || $ref === \"#/\") && baseId === root.baseId)\n return callRootRef();\n const schOrEnv = compile_1.resolveRef.call(self, root, baseId, $ref);\n if (schOrEnv === undefined)\n throw new ref_error_1.default(it.opts.uriResolver, baseId, $ref);\n if (schOrEnv instanceof compile_1.SchemaEnv)\n return callValidate(schOrEnv);\n return inlineRefSchema(schOrEnv);\n function callRootRef() {\n if (env === root)\n return callRef(cxt, validateName, env, env.$async);\n const rootName = gen.scopeValue(\"root\", { ref: root });\n return callRef(cxt, (0, codegen_1._) `${rootName}.validate`, root, root.$async);\n }\n function callValidate(sch) {\n const v = getValidate(cxt, sch);\n callRef(cxt, v, sch, sch.$async);\n }\n function inlineRefSchema(sch) {\n const schName = gen.scopeValue(\"schema\", opts.code.source === true ? { ref: sch, code: (0, codegen_1.stringify)(sch) } : { ref: sch });\n const valid = gen.name(\"valid\");\n const schCxt = cxt.subschema({\n schema: sch,\n dataTypes: [],\n schemaPath: codegen_1.nil,\n topSchemaRef: schName,\n errSchemaPath: $ref,\n }, valid);\n cxt.mergeEvaluated(schCxt);\n cxt.ok(valid);\n }\n },\n};\nfunction getValidate(cxt, sch) {\n const { gen } = cxt;\n return sch.validate\n ? gen.scopeValue(\"validate\", { ref: sch.validate })\n : (0, codegen_1._) `${gen.scopeValue(\"wrapper\", { ref: sch })}.validate`;\n}\nexports.getValidate = getValidate;\nfunction callRef(cxt, v, sch, $async) {\n const { gen, it } = cxt;\n const { allErrors, schemaEnv: env, opts } = it;\n const passCxt = opts.passContext ? names_1.default.this : codegen_1.nil;\n if ($async)\n callAsyncRef();\n else\n callSyncRef();\n function callAsyncRef() {\n if (!env.$async)\n throw new Error(\"async schema referenced by sync schema\");\n const valid = gen.let(\"valid\");\n gen.try(() => {\n gen.code((0, codegen_1._) `await ${(0, code_1.callValidateCode)(cxt, v, passCxt)}`);\n addEvaluatedFrom(v); // TODO will not work with async, it has to be returned with the result\n if (!allErrors)\n gen.assign(valid, true);\n }, (e) => {\n gen.if((0, codegen_1._) `!(${e} instanceof ${it.ValidationError})`, () => gen.throw(e));\n addErrorsFrom(e);\n if (!allErrors)\n gen.assign(valid, false);\n });\n cxt.ok(valid);\n }\n function callSyncRef() {\n cxt.result((0, code_1.callValidateCode)(cxt, v, passCxt), () => addEvaluatedFrom(v), () => addErrorsFrom(v));\n }\n function addErrorsFrom(source) {\n const errs = (0, codegen_1._) `${source}.errors`;\n gen.assign(names_1.default.vErrors, (0, codegen_1._) `${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`); // TODO tagged\n gen.assign(names_1.default.errors, (0, codegen_1._) `${names_1.default.vErrors}.length`);\n }\n function addEvaluatedFrom(source) {\n var _a;\n if (!it.opts.unevaluated)\n return;\n const schEvaluated = (_a = sch === null || sch === void 0 ? void 0 : sch.validate) === null || _a === void 0 ? void 0 : _a.evaluated;\n // TODO refactor\n if (it.props !== true) {\n if (schEvaluated && !schEvaluated.dynamicProps) {\n if (schEvaluated.props !== undefined) {\n it.props = util_1.mergeEvaluated.props(gen, schEvaluated.props, it.props);\n }\n }\n else {\n const props = gen.var(\"props\", (0, codegen_1._) `${source}.evaluated.props`);\n it.props = util_1.mergeEvaluated.props(gen, props, it.props, codegen_1.Name);\n }\n }\n if (it.items !== true) {\n if (schEvaluated && !schEvaluated.dynamicItems) {\n if (schEvaluated.items !== undefined) {\n it.items = util_1.mergeEvaluated.items(gen, schEvaluated.items, it.items);\n }\n }\n else {\n const items = gen.var(\"items\", (0, codegen_1._) `${source}.evaluated.items`);\n it.items = util_1.mergeEvaluated.items(gen, items, it.items, codegen_1.Name);\n }\n }\n }\n}\nexports.callRef = callRef;\nexports.default = def;\n//# sourceMappingURL=ref.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst id_1 = require(\"./id\");\nconst ref_1 = require(\"./ref\");\nconst core = [\n \"$schema\",\n \"$id\",\n \"$defs\",\n \"$vocabulary\",\n { keyword: \"$comment\" },\n \"definitions\",\n id_1.default,\n ref_1.default,\n];\nexports.default = core;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst ops = codegen_1.operators;\nconst KWDs = {\n maximum: { okStr: \"<=\", ok: ops.LTE, fail: ops.GT },\n minimum: { okStr: \">=\", ok: ops.GTE, fail: ops.LT },\n exclusiveMaximum: { okStr: \"<\", ok: ops.LT, fail: ops.GTE },\n exclusiveMinimum: { okStr: \">\", ok: ops.GT, fail: ops.LTE },\n};\nconst error = {\n message: ({ keyword, schemaCode }) => (0, codegen_1.str) `must be ${KWDs[keyword].okStr} ${schemaCode}`,\n params: ({ keyword, schemaCode }) => (0, codegen_1._) `{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`,\n};\nconst def = {\n keyword: Object.keys(KWDs),\n type: \"number\",\n schemaType: \"number\",\n $data: true,\n error,\n code(cxt) {\n const { keyword, data, schemaCode } = cxt;\n cxt.fail$data((0, codegen_1._) `${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`);\n },\n};\nexports.default = def;\n//# sourceMappingURL=limitNumber.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst error = {\n message: ({ schemaCode }) => (0, codegen_1.str) `must be multiple of ${schemaCode}`,\n params: ({ schemaCode }) => (0, codegen_1._) `{multipleOf: ${schemaCode}}`,\n};\nconst def = {\n keyword: \"multipleOf\",\n type: \"number\",\n schemaType: \"number\",\n $data: true,\n error,\n code(cxt) {\n const { gen, data, schemaCode, it } = cxt;\n // const bdt = bad$DataType(schemaCode, <string>def.schemaType, $data)\n const prec = it.opts.multipleOfPrecision;\n const res = gen.let(\"res\");\n const invalid = prec\n ? (0, codegen_1._) `Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}`\n : (0, codegen_1._) `${res} !== parseInt(${res})`;\n cxt.fail$data((0, codegen_1._) `(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`);\n },\n};\nexports.default = def;\n//# sourceMappingURL=multipleOf.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// https://mathiasbynens.be/notes/javascript-encoding\n// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode\nfunction ucs2length(str) {\n const len = str.length;\n let length = 0;\n let pos = 0;\n let value;\n while (pos < len) {\n length++;\n value = str.charCodeAt(pos++);\n if (value >= 0xd800 && value <= 0xdbff && pos < len) {\n // high surrogate, and there is a next character\n value = str.charCodeAt(pos);\n if ((value & 0xfc00) === 0xdc00)\n pos++; // low surrogate\n }\n }\n return length;\n}\nexports.default = ucs2length;\nucs2length.code = 'require(\"ajv/dist/runtime/ucs2length\").default';\n//# sourceMappingURL=ucs2length.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst ucs2length_1 = require(\"../../runtime/ucs2length\");\nconst error = {\n message({ keyword, schemaCode }) {\n const comp = keyword === \"maxLength\" ? \"more\" : \"fewer\";\n return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} characters`;\n },\n params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`,\n};\nconst def = {\n keyword: [\"maxLength\", \"minLength\"],\n type: \"string\",\n schemaType: \"number\",\n $data: true,\n error,\n code(cxt) {\n const { keyword, data, schemaCode, it } = cxt;\n const op = keyword === \"maxLength\" ? codegen_1.operators.GT : codegen_1.operators.LT;\n const len = it.opts.unicode === false ? (0, codegen_1._) `${data}.length` : (0, codegen_1._) `${(0, util_1.useFunc)(cxt.gen, ucs2length_1.default)}(${data})`;\n cxt.fail$data((0, codegen_1._) `${len} ${op} ${schemaCode}`);\n },\n};\nexports.default = def;\n//# sourceMappingURL=limitLength.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst code_1 = require(\"../code\");\nconst util_1 = require(\"../../compile/util\");\nconst codegen_1 = require(\"../../compile/codegen\");\nconst error = {\n message: ({ schemaCode }) => (0, codegen_1.str) `must match pattern \"${schemaCode}\"`,\n params: ({ schemaCode }) => (0, codegen_1._) `{pattern: ${schemaCode}}`,\n};\nconst def = {\n keyword: \"pattern\",\n type: \"string\",\n schemaType: \"string\",\n $data: true,\n error,\n code(cxt) {\n const { gen, data, $data, schema, schemaCode, it } = cxt;\n const u = it.opts.unicodeRegExp ? \"u\" : \"\";\n if ($data) {\n const { regExp } = it.opts.code;\n const regExpCode = regExp.code === \"new RegExp\" ? (0, codegen_1._) `new RegExp` : (0, util_1.useFunc)(gen, regExp);\n const valid = gen.let(\"valid\");\n gen.try(() => gen.assign(valid, (0, codegen_1._) `${regExpCode}(${schemaCode}, ${u}).test(${data})`), () => gen.assign(valid, false));\n cxt.fail$data((0, codegen_1._) `!${valid}`);\n }\n else {\n const regExp = (0, code_1.usePattern)(cxt, schema);\n cxt.fail$data((0, codegen_1._) `!${regExp}.test(${data})`);\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=pattern.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst error = {\n message({ keyword, schemaCode }) {\n const comp = keyword === \"maxProperties\" ? \"more\" : \"fewer\";\n return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} properties`;\n },\n params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`,\n};\nconst def = {\n keyword: [\"maxProperties\", \"minProperties\"],\n type: \"object\",\n schemaType: \"number\",\n $data: true,\n error,\n code(cxt) {\n const { keyword, data, schemaCode } = cxt;\n const op = keyword === \"maxProperties\" ? codegen_1.operators.GT : codegen_1.operators.LT;\n cxt.fail$data((0, codegen_1._) `Object.keys(${data}).length ${op} ${schemaCode}`);\n },\n};\nexports.default = def;\n//# sourceMappingURL=limitProperties.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst code_1 = require(\"../code\");\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst error = {\n message: ({ params: { missingProperty } }) => (0, codegen_1.str) `must have required property '${missingProperty}'`,\n params: ({ params: { missingProperty } }) => (0, codegen_1._) `{missingProperty: ${missingProperty}}`,\n};\nconst def = {\n keyword: \"required\",\n type: \"object\",\n schemaType: \"array\",\n $data: true,\n error,\n code(cxt) {\n const { gen, schema, schemaCode, data, $data, it } = cxt;\n const { opts } = it;\n if (!$data && schema.length === 0)\n return;\n const useLoop = schema.length >= opts.loopRequired;\n if (it.allErrors)\n allErrorsMode();\n else\n exitOnErrorMode();\n if (opts.strictRequired) {\n const props = cxt.parentSchema.properties;\n const { definedProperties } = cxt.it;\n for (const requiredKey of schema) {\n if ((props === null || props === void 0 ? void 0 : props[requiredKey]) === undefined && !definedProperties.has(requiredKey)) {\n const schemaPath = it.schemaEnv.baseId + it.errSchemaPath;\n const msg = `required property \"${requiredKey}\" is not defined at \"${schemaPath}\" (strictRequired)`;\n (0, util_1.checkStrictMode)(it, msg, it.opts.strictRequired);\n }\n }\n }\n function allErrorsMode() {\n if (useLoop || $data) {\n cxt.block$data(codegen_1.nil, loopAllRequired);\n }\n else {\n for (const prop of schema) {\n (0, code_1.checkReportMissingProp)(cxt, prop);\n }\n }\n }\n function exitOnErrorMode() {\n const missing = gen.let(\"missing\");\n if (useLoop || $data) {\n const valid = gen.let(\"valid\", true);\n cxt.block$data(valid, () => loopUntilMissing(missing, valid));\n cxt.ok(valid);\n }\n else {\n gen.if((0, code_1.checkMissingProp)(cxt, schema, missing));\n (0, code_1.reportMissingProp)(cxt, missing);\n gen.else();\n }\n }\n function loopAllRequired() {\n gen.forOf(\"prop\", schemaCode, (prop) => {\n cxt.setParams({ missingProperty: prop });\n gen.if((0, code_1.noPropertyInData)(gen, data, prop, opts.ownProperties), () => cxt.error());\n });\n }\n function loopUntilMissing(missing, valid) {\n cxt.setParams({ missingProperty: missing });\n gen.forOf(missing, schemaCode, () => {\n gen.assign(valid, (0, code_1.propertyInData)(gen, data, missing, opts.ownProperties));\n gen.if((0, codegen_1.not)(valid), () => {\n cxt.error();\n gen.break();\n });\n }, codegen_1.nil);\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=required.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst error = {\n message({ keyword, schemaCode }) {\n const comp = keyword === \"maxItems\" ? \"more\" : \"fewer\";\n return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} items`;\n },\n params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`,\n};\nconst def = {\n keyword: [\"maxItems\", \"minItems\"],\n type: \"array\",\n schemaType: \"number\",\n $data: true,\n error,\n code(cxt) {\n const { keyword, data, schemaCode } = cxt;\n const op = keyword === \"maxItems\" ? codegen_1.operators.GT : codegen_1.operators.LT;\n cxt.fail$data((0, codegen_1._) `${data}.length ${op} ${schemaCode}`);\n },\n};\nexports.default = def;\n//# sourceMappingURL=limitItems.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// https://github.com/ajv-validator/ajv/issues/889\nconst equal = require(\"fast-deep-equal\");\nequal.code = 'require(\"ajv/dist/runtime/equal\").default';\nexports.default = equal;\n//# sourceMappingURL=equal.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst dataType_1 = require(\"../../compile/validate/dataType\");\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst equal_1 = require(\"../../runtime/equal\");\nconst error = {\n message: ({ params: { i, j } }) => (0, codegen_1.str) `must NOT have duplicate items (items ## ${j} and ${i} are identical)`,\n params: ({ params: { i, j } }) => (0, codegen_1._) `{i: ${i}, j: ${j}}`,\n};\nconst def = {\n keyword: \"uniqueItems\",\n type: \"array\",\n schemaType: \"boolean\",\n $data: true,\n error,\n code(cxt) {\n const { gen, data, $data, schema, parentSchema, schemaCode, it } = cxt;\n if (!$data && !schema)\n return;\n const valid = gen.let(\"valid\");\n const itemTypes = parentSchema.items ? (0, dataType_1.getSchemaTypes)(parentSchema.items) : [];\n cxt.block$data(valid, validateUniqueItems, (0, codegen_1._) `${schemaCode} === false`);\n cxt.ok(valid);\n function validateUniqueItems() {\n const i = gen.let(\"i\", (0, codegen_1._) `${data}.length`);\n const j = gen.let(\"j\");\n cxt.setParams({ i, j });\n gen.assign(valid, true);\n gen.if((0, codegen_1._) `${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j));\n }\n function canOptimize() {\n return itemTypes.length > 0 && !itemTypes.some((t) => t === \"object\" || t === \"array\");\n }\n function loopN(i, j) {\n const item = gen.name(\"item\");\n const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it.opts.strictNumbers, dataType_1.DataType.Wrong);\n const indices = gen.const(\"indices\", (0, codegen_1._) `{}`);\n gen.for((0, codegen_1._) `;${i}--;`, () => {\n gen.let(item, (0, codegen_1._) `${data}[${i}]`);\n gen.if(wrongType, (0, codegen_1._) `continue`);\n if (itemTypes.length > 1)\n gen.if((0, codegen_1._) `typeof ${item} == \"string\"`, (0, codegen_1._) `${item} += \"_\"`);\n gen\n .if((0, codegen_1._) `typeof ${indices}[${item}] == \"number\"`, () => {\n gen.assign(j, (0, codegen_1._) `${indices}[${item}]`);\n cxt.error();\n gen.assign(valid, false).break();\n })\n .code((0, codegen_1._) `${indices}[${item}] = ${i}`);\n });\n }\n function loopN2(i, j) {\n const eql = (0, util_1.useFunc)(gen, equal_1.default);\n const outer = gen.name(\"outer\");\n gen.label(outer).for((0, codegen_1._) `;${i}--;`, () => gen.for((0, codegen_1._) `${j} = ${i}; ${j}--;`, () => gen.if((0, codegen_1._) `${eql}(${data}[${i}], ${data}[${j}])`, () => {\n cxt.error();\n gen.assign(valid, false).break(outer);\n })));\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=uniqueItems.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst equal_1 = require(\"../../runtime/equal\");\nconst error = {\n message: \"must be equal to constant\",\n params: ({ schemaCode }) => (0, codegen_1._) `{allowedValue: ${schemaCode}}`,\n};\nconst def = {\n keyword: \"const\",\n $data: true,\n error,\n code(cxt) {\n const { gen, data, $data, schemaCode, schema } = cxt;\n if ($data || (schema && typeof schema == \"object\")) {\n cxt.fail$data((0, codegen_1._) `!${(0, util_1.useFunc)(gen, equal_1.default)}(${data}, ${schemaCode})`);\n }\n else {\n cxt.fail((0, codegen_1._) `${schema} !== ${data}`);\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=const.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst equal_1 = require(\"../../runtime/equal\");\nconst error = {\n message: \"must be equal to one of the allowed values\",\n params: ({ schemaCode }) => (0, codegen_1._) `{allowedValues: ${schemaCode}}`,\n};\nconst def = {\n keyword: \"enum\",\n schemaType: \"array\",\n $data: true,\n error,\n code(cxt) {\n const { gen, data, $data, schema, schemaCode, it } = cxt;\n if (!$data && schema.length === 0)\n throw new Error(\"enum must have non-empty array\");\n const useLoop = schema.length >= it.opts.loopEnum;\n let eql;\n const getEql = () => (eql !== null && eql !== void 0 ? eql : (eql = (0, util_1.useFunc)(gen, equal_1.default)));\n let valid;\n if (useLoop || $data) {\n valid = gen.let(\"valid\");\n cxt.block$data(valid, loopEnum);\n }\n else {\n /* istanbul ignore if */\n if (!Array.isArray(schema))\n throw new Error(\"ajv implementation error\");\n const vSchema = gen.const(\"vSchema\", schemaCode);\n valid = (0, codegen_1.or)(...schema.map((_x, i) => equalCode(vSchema, i)));\n }\n cxt.pass(valid);\n function loopEnum() {\n gen.assign(valid, false);\n gen.forOf(\"v\", schemaCode, (v) => gen.if((0, codegen_1._) `${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break()));\n }\n function equalCode(vSchema, i) {\n const sch = schema[i];\n return typeof sch === \"object\" && sch !== null\n ? (0, codegen_1._) `${getEql()}(${data}, ${vSchema}[${i}])`\n : (0, codegen_1._) `${data} === ${sch}`;\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=enum.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst limitNumber_1 = require(\"./limitNumber\");\nconst multipleOf_1 = require(\"./multipleOf\");\nconst limitLength_1 = require(\"./limitLength\");\nconst pattern_1 = require(\"./pattern\");\nconst limitProperties_1 = require(\"./limitProperties\");\nconst required_1 = require(\"./required\");\nconst limitItems_1 = require(\"./limitItems\");\nconst uniqueItems_1 = require(\"./uniqueItems\");\nconst const_1 = require(\"./const\");\nconst enum_1 = require(\"./enum\");\nconst validation = [\n // number\n limitNumber_1.default,\n multipleOf_1.default,\n // string\n limitLength_1.default,\n pattern_1.default,\n // object\n limitProperties_1.default,\n required_1.default,\n // array\n limitItems_1.default,\n uniqueItems_1.default,\n // any\n { keyword: \"type\", schemaType: [\"string\", \"array\"] },\n { keyword: \"nullable\", schemaType: \"boolean\" },\n const_1.default,\n enum_1.default,\n];\nexports.default = validation;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.validateAdditionalItems = void 0;\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst error = {\n message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`,\n params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`,\n};\nconst def = {\n keyword: \"additionalItems\",\n type: \"array\",\n schemaType: [\"boolean\", \"object\"],\n before: \"uniqueItems\",\n error,\n code(cxt) {\n const { parentSchema, it } = cxt;\n const { items } = parentSchema;\n if (!Array.isArray(items)) {\n (0, util_1.checkStrictMode)(it, '\"additionalItems\" is ignored when \"items\" is not an array of schemas');\n return;\n }\n validateAdditionalItems(cxt, items);\n },\n};\nfunction validateAdditionalItems(cxt, items) {\n const { gen, schema, data, keyword, it } = cxt;\n it.items = true;\n const len = gen.const(\"len\", (0, codegen_1._) `${data}.length`);\n if (schema === false) {\n cxt.setParams({ len: items.length });\n cxt.pass((0, codegen_1._) `${len} <= ${items.length}`);\n }\n else if (typeof schema == \"object\" && !(0, util_1.alwaysValidSchema)(it, schema)) {\n const valid = gen.var(\"valid\", (0, codegen_1._) `${len} <= ${items.length}`); // TODO var\n gen.if((0, codegen_1.not)(valid), () => validateItems(valid));\n cxt.ok(valid);\n }\n function validateItems(valid) {\n gen.forRange(\"i\", items.length, len, (i) => {\n cxt.subschema({ keyword, dataProp: i, dataPropType: util_1.Type.Num }, valid);\n if (!it.allErrors)\n gen.if((0, codegen_1.not)(valid), () => gen.break());\n });\n }\n}\nexports.validateAdditionalItems = validateAdditionalItems;\nexports.default = def;\n//# sourceMappingURL=additionalItems.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.validateTuple = void 0;\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst code_1 = require(\"../code\");\nconst def = {\n keyword: \"items\",\n type: \"array\",\n schemaType: [\"object\", \"array\", \"boolean\"],\n before: \"uniqueItems\",\n code(cxt) {\n const { schema, it } = cxt;\n if (Array.isArray(schema))\n return validateTuple(cxt, \"additionalItems\", schema);\n it.items = true;\n if ((0, util_1.alwaysValidSchema)(it, schema))\n return;\n cxt.ok((0, code_1.validateArray)(cxt));\n },\n};\nfunction validateTuple(cxt, extraItems, schArr = cxt.schema) {\n const { gen, parentSchema, data, keyword, it } = cxt;\n checkStrictTuple(parentSchema);\n if (it.opts.unevaluated && schArr.length && it.items !== true) {\n it.items = util_1.mergeEvaluated.items(gen, schArr.length, it.items);\n }\n const valid = gen.name(\"valid\");\n const len = gen.const(\"len\", (0, codegen_1._) `${data}.length`);\n schArr.forEach((sch, i) => {\n if ((0, util_1.alwaysValidSchema)(it, sch))\n return;\n gen.if((0, codegen_1._) `${len} > ${i}`, () => cxt.subschema({\n keyword,\n schemaProp: i,\n dataProp: i,\n }, valid));\n cxt.ok(valid);\n });\n function checkStrictTuple(sch) {\n const { opts, errSchemaPath } = it;\n const l = schArr.length;\n const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false);\n if (opts.strictTuples && !fullTuple) {\n const msg = `\"${keyword}\" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path \"${errSchemaPath}\"`;\n (0, util_1.checkStrictMode)(it, msg, opts.strictTuples);\n }\n }\n}\nexports.validateTuple = validateTuple;\nexports.default = def;\n//# sourceMappingURL=items.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst items_1 = require(\"./items\");\nconst def = {\n keyword: \"prefixItems\",\n type: \"array\",\n schemaType: [\"array\"],\n before: \"uniqueItems\",\n code: (cxt) => (0, items_1.validateTuple)(cxt, \"items\"),\n};\nexports.default = def;\n//# sourceMappingURL=prefixItems.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst code_1 = require(\"../code\");\nconst additionalItems_1 = require(\"./additionalItems\");\nconst error = {\n message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`,\n params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`,\n};\nconst def = {\n keyword: \"items\",\n type: \"array\",\n schemaType: [\"object\", \"boolean\"],\n before: \"uniqueItems\",\n error,\n code(cxt) {\n const { schema, parentSchema, it } = cxt;\n const { prefixItems } = parentSchema;\n it.items = true;\n if ((0, util_1.alwaysValidSchema)(it, schema))\n return;\n if (prefixItems)\n (0, additionalItems_1.validateAdditionalItems)(cxt, prefixItems);\n else\n cxt.ok((0, code_1.validateArray)(cxt));\n },\n};\nexports.default = def;\n//# sourceMappingURL=items2020.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst error = {\n message: ({ params: { min, max } }) => max === undefined\n ? (0, codegen_1.str) `must contain at least ${min} valid item(s)`\n : (0, codegen_1.str) `must contain at least ${min} and no more than ${max} valid item(s)`,\n params: ({ params: { min, max } }) => max === undefined ? (0, codegen_1._) `{minContains: ${min}}` : (0, codegen_1._) `{minContains: ${min}, maxContains: ${max}}`,\n};\nconst def = {\n keyword: \"contains\",\n type: \"array\",\n schemaType: [\"object\", \"boolean\"],\n before: \"uniqueItems\",\n trackErrors: true,\n error,\n code(cxt) {\n const { gen, schema, parentSchema, data, it } = cxt;\n let min;\n let max;\n const { minContains, maxContains } = parentSchema;\n if (it.opts.next) {\n min = minContains === undefined ? 1 : minContains;\n max = maxContains;\n }\n else {\n min = 1;\n }\n const len = gen.const(\"len\", (0, codegen_1._) `${data}.length`);\n cxt.setParams({ min, max });\n if (max === undefined && min === 0) {\n (0, util_1.checkStrictMode)(it, `\"minContains\" == 0 without \"maxContains\": \"contains\" keyword ignored`);\n return;\n }\n if (max !== undefined && min > max) {\n (0, util_1.checkStrictMode)(it, `\"minContains\" > \"maxContains\" is always invalid`);\n cxt.fail();\n return;\n }\n if ((0, util_1.alwaysValidSchema)(it, schema)) {\n let cond = (0, codegen_1._) `${len} >= ${min}`;\n if (max !== undefined)\n cond = (0, codegen_1._) `${cond} && ${len} <= ${max}`;\n cxt.pass(cond);\n return;\n }\n it.items = true;\n const valid = gen.name(\"valid\");\n if (max === undefined && min === 1) {\n validateItems(valid, () => gen.if(valid, () => gen.break()));\n }\n else if (min === 0) {\n gen.let(valid, true);\n if (max !== undefined)\n gen.if((0, codegen_1._) `${data}.length > 0`, validateItemsWithCount);\n }\n else {\n gen.let(valid, false);\n validateItemsWithCount();\n }\n cxt.result(valid, () => cxt.reset());\n function validateItemsWithCount() {\n const schValid = gen.name(\"_valid\");\n const count = gen.let(\"count\", 0);\n validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)));\n }\n function validateItems(_valid, block) {\n gen.forRange(\"i\", 0, len, (i) => {\n cxt.subschema({\n keyword: \"contains\",\n dataProp: i,\n dataPropType: util_1.Type.Num,\n compositeRule: true,\n }, _valid);\n block();\n });\n }\n function checkLimits(count) {\n gen.code((0, codegen_1._) `${count}++`);\n if (max === undefined) {\n gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true).break());\n }\n else {\n gen.if((0, codegen_1._) `${count} > ${max}`, () => gen.assign(valid, false).break());\n if (min === 1)\n gen.assign(valid, true);\n else\n gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true));\n }\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=contains.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst code_1 = require(\"../code\");\nexports.error = {\n message: ({ params: { property, depsCount, deps } }) => {\n const property_ies = depsCount === 1 ? \"property\" : \"properties\";\n return (0, codegen_1.str) `must have ${property_ies} ${deps} when property ${property} is present`;\n },\n params: ({ params: { property, depsCount, deps, missingProperty } }) => (0, codegen_1._) `{property: ${property},\n missingProperty: ${missingProperty},\n depsCount: ${depsCount},\n deps: ${deps}}`, // TODO change to reference\n};\nconst def = {\n keyword: \"dependencies\",\n type: \"object\",\n schemaType: \"object\",\n error: exports.error,\n code(cxt) {\n const [propDeps, schDeps] = splitDependencies(cxt);\n validatePropertyDeps(cxt, propDeps);\n validateSchemaDeps(cxt, schDeps);\n },\n};\nfunction splitDependencies({ schema }) {\n const propertyDeps = {};\n const schemaDeps = {};\n for (const key in schema) {\n if (key === \"__proto__\")\n continue;\n const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps;\n deps[key] = schema[key];\n }\n return [propertyDeps, schemaDeps];\n}\nfunction validatePropertyDeps(cxt, propertyDeps = cxt.schema) {\n const { gen, data, it } = cxt;\n if (Object.keys(propertyDeps).length === 0)\n return;\n const missing = gen.let(\"missing\");\n for (const prop in propertyDeps) {\n const deps = propertyDeps[prop];\n if (deps.length === 0)\n continue;\n const hasProperty = (0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties);\n cxt.setParams({\n property: prop,\n depsCount: deps.length,\n deps: deps.join(\", \"),\n });\n if (it.allErrors) {\n gen.if(hasProperty, () => {\n for (const depProp of deps) {\n (0, code_1.checkReportMissingProp)(cxt, depProp);\n }\n });\n }\n else {\n gen.if((0, codegen_1._) `${hasProperty} && (${(0, code_1.checkMissingProp)(cxt, deps, missing)})`);\n (0, code_1.reportMissingProp)(cxt, missing);\n gen.else();\n }\n }\n}\nexports.validatePropertyDeps = validatePropertyDeps;\nfunction validateSchemaDeps(cxt, schemaDeps = cxt.schema) {\n const { gen, data, keyword, it } = cxt;\n const valid = gen.name(\"valid\");\n for (const prop in schemaDeps) {\n if ((0, util_1.alwaysValidSchema)(it, schemaDeps[prop]))\n continue;\n gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties), () => {\n const schCxt = cxt.subschema({ keyword, schemaProp: prop }, valid);\n cxt.mergeValidEvaluated(schCxt, valid);\n }, () => gen.var(valid, true) // TODO var\n );\n cxt.ok(valid);\n }\n}\nexports.validateSchemaDeps = validateSchemaDeps;\nexports.default = def;\n//# sourceMappingURL=dependencies.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst error = {\n message: \"property name must be valid\",\n params: ({ params }) => (0, codegen_1._) `{propertyName: ${params.propertyName}}`,\n};\nconst def = {\n keyword: \"propertyNames\",\n type: \"object\",\n schemaType: [\"object\", \"boolean\"],\n error,\n code(cxt) {\n const { gen, schema, data, it } = cxt;\n if ((0, util_1.alwaysValidSchema)(it, schema))\n return;\n const valid = gen.name(\"valid\");\n gen.forIn(\"key\", data, (key) => {\n cxt.setParams({ propertyName: key });\n cxt.subschema({\n keyword: \"propertyNames\",\n data: key,\n dataTypes: [\"string\"],\n propertyName: key,\n compositeRule: true,\n }, valid);\n gen.if((0, codegen_1.not)(valid), () => {\n cxt.error(true);\n if (!it.allErrors)\n gen.break();\n });\n });\n cxt.ok(valid);\n },\n};\nexports.default = def;\n//# sourceMappingURL=propertyNames.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst code_1 = require(\"../code\");\nconst codegen_1 = require(\"../../compile/codegen\");\nconst names_1 = require(\"../../compile/names\");\nconst util_1 = require(\"../../compile/util\");\nconst error = {\n message: \"must NOT have additional properties\",\n params: ({ params }) => (0, codegen_1._) `{additionalProperty: ${params.additionalProperty}}`,\n};\nconst def = {\n keyword: \"additionalProperties\",\n type: [\"object\"],\n schemaType: [\"boolean\", \"object\"],\n allowUndefined: true,\n trackErrors: true,\n error,\n code(cxt) {\n const { gen, schema, parentSchema, data, errsCount, it } = cxt;\n /* istanbul ignore if */\n if (!errsCount)\n throw new Error(\"ajv implementation error\");\n const { allErrors, opts } = it;\n it.props = true;\n if (opts.removeAdditional !== \"all\" && (0, util_1.alwaysValidSchema)(it, schema))\n return;\n const props = (0, code_1.allSchemaProperties)(parentSchema.properties);\n const patProps = (0, code_1.allSchemaProperties)(parentSchema.patternProperties);\n checkAdditionalProperties();\n cxt.ok((0, codegen_1._) `${errsCount} === ${names_1.default.errors}`);\n function checkAdditionalProperties() {\n gen.forIn(\"key\", data, (key) => {\n if (!props.length && !patProps.length)\n additionalPropertyCode(key);\n else\n gen.if(isAdditional(key), () => additionalPropertyCode(key));\n });\n }\n function isAdditional(key) {\n let definedProp;\n if (props.length > 8) {\n // TODO maybe an option instead of hard-coded 8?\n const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema.properties, \"properties\");\n definedProp = (0, code_1.isOwnProperty)(gen, propsSchema, key);\n }\n else if (props.length) {\n definedProp = (0, codegen_1.or)(...props.map((p) => (0, codegen_1._) `${key} === ${p}`));\n }\n else {\n definedProp = codegen_1.nil;\n }\n if (patProps.length) {\n definedProp = (0, codegen_1.or)(definedProp, ...patProps.map((p) => (0, codegen_1._) `${(0, code_1.usePattern)(cxt, p)}.test(${key})`));\n }\n return (0, codegen_1.not)(definedProp);\n }\n function deleteAdditional(key) {\n gen.code((0, codegen_1._) `delete ${data}[${key}]`);\n }\n function additionalPropertyCode(key) {\n if (opts.removeAdditional === \"all\" || (opts.removeAdditional && schema === false)) {\n deleteAdditional(key);\n return;\n }\n if (schema === false) {\n cxt.setParams({ additionalProperty: key });\n cxt.error();\n if (!allErrors)\n gen.break();\n return;\n }\n if (typeof schema == \"object\" && !(0, util_1.alwaysValidSchema)(it, schema)) {\n const valid = gen.name(\"valid\");\n if (opts.removeAdditional === \"failing\") {\n applyAdditionalSchema(key, valid, false);\n gen.if((0, codegen_1.not)(valid), () => {\n cxt.reset();\n deleteAdditional(key);\n });\n }\n else {\n applyAdditionalSchema(key, valid);\n if (!allErrors)\n gen.if((0, codegen_1.not)(valid), () => gen.break());\n }\n }\n }\n function applyAdditionalSchema(key, valid, errors) {\n const subschema = {\n keyword: \"additionalProperties\",\n dataProp: key,\n dataPropType: util_1.Type.Str,\n };\n if (errors === false) {\n Object.assign(subschema, {\n compositeRule: true,\n createErrors: false,\n allErrors: false,\n });\n }\n cxt.subschema(subschema, valid);\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=additionalProperties.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst validate_1 = require(\"../../compile/validate\");\nconst code_1 = require(\"../code\");\nconst util_1 = require(\"../../compile/util\");\nconst additionalProperties_1 = require(\"./additionalProperties\");\nconst def = {\n keyword: \"properties\",\n type: \"object\",\n schemaType: \"object\",\n code(cxt) {\n const { gen, schema, parentSchema, data, it } = cxt;\n if (it.opts.removeAdditional === \"all\" && parentSchema.additionalProperties === undefined) {\n additionalProperties_1.default.code(new validate_1.KeywordCxt(it, additionalProperties_1.default, \"additionalProperties\"));\n }\n const allProps = (0, code_1.allSchemaProperties)(schema);\n for (const prop of allProps) {\n it.definedProperties.add(prop);\n }\n if (it.opts.unevaluated && allProps.length && it.props !== true) {\n it.props = util_1.mergeEvaluated.props(gen, (0, util_1.toHash)(allProps), it.props);\n }\n const properties = allProps.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p]));\n if (properties.length === 0)\n return;\n const valid = gen.name(\"valid\");\n for (const prop of properties) {\n if (hasDefault(prop)) {\n applyPropertySchema(prop);\n }\n else {\n gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties));\n applyPropertySchema(prop);\n if (!it.allErrors)\n gen.else().var(valid, true);\n gen.endIf();\n }\n cxt.it.definedProperties.add(prop);\n cxt.ok(valid);\n }\n function hasDefault(prop) {\n return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined;\n }\n function applyPropertySchema(prop) {\n cxt.subschema({\n keyword: \"properties\",\n schemaProp: prop,\n dataProp: prop,\n }, valid);\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=properties.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst code_1 = require(\"../code\");\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst util_2 = require(\"../../compile/util\");\nconst def = {\n keyword: \"patternProperties\",\n type: \"object\",\n schemaType: \"object\",\n code(cxt) {\n const { gen, schema, data, parentSchema, it } = cxt;\n const { opts } = it;\n const patterns = (0, code_1.allSchemaProperties)(schema);\n const alwaysValidPatterns = patterns.filter((p) => (0, util_1.alwaysValidSchema)(it, schema[p]));\n if (patterns.length === 0 ||\n (alwaysValidPatterns.length === patterns.length &&\n (!it.opts.unevaluated || it.props === true))) {\n return;\n }\n const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties;\n const valid = gen.name(\"valid\");\n if (it.props !== true && !(it.props instanceof codegen_1.Name)) {\n it.props = (0, util_2.evaluatedPropsToName)(gen, it.props);\n }\n const { props } = it;\n validatePatternProperties();\n function validatePatternProperties() {\n for (const pat of patterns) {\n if (checkProperties)\n checkMatchingProperties(pat);\n if (it.allErrors) {\n validateProperties(pat);\n }\n else {\n gen.var(valid, true); // TODO var\n validateProperties(pat);\n gen.if(valid);\n }\n }\n }\n function checkMatchingProperties(pat) {\n for (const prop in checkProperties) {\n if (new RegExp(pat).test(prop)) {\n (0, util_1.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`);\n }\n }\n }\n function validateProperties(pat) {\n gen.forIn(\"key\", data, (key) => {\n gen.if((0, codegen_1._) `${(0, code_1.usePattern)(cxt, pat)}.test(${key})`, () => {\n const alwaysValid = alwaysValidPatterns.includes(pat);\n if (!alwaysValid) {\n cxt.subschema({\n keyword: \"patternProperties\",\n schemaProp: pat,\n dataProp: key,\n dataPropType: util_2.Type.Str,\n }, valid);\n }\n if (it.opts.unevaluated && props !== true) {\n gen.assign((0, codegen_1._) `${props}[${key}]`, true);\n }\n else if (!alwaysValid && !it.allErrors) {\n // can short-circuit if `unevaluatedProperties` is not supported (opts.next === false)\n // or if all properties were evaluated (props === true)\n gen.if((0, codegen_1.not)(valid), () => gen.break());\n }\n });\n });\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=patternProperties.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst util_1 = require(\"../../compile/util\");\nconst def = {\n keyword: \"not\",\n schemaType: [\"object\", \"boolean\"],\n trackErrors: true,\n code(cxt) {\n const { gen, schema, it } = cxt;\n if ((0, util_1.alwaysValidSchema)(it, schema)) {\n cxt.fail();\n return;\n }\n const valid = gen.name(\"valid\");\n cxt.subschema({\n keyword: \"not\",\n compositeRule: true,\n createErrors: false,\n allErrors: false,\n }, valid);\n cxt.failResult(valid, () => cxt.reset(), () => cxt.error());\n },\n error: { message: \"must NOT be valid\" },\n};\nexports.default = def;\n//# sourceMappingURL=not.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst code_1 = require(\"../code\");\nconst def = {\n keyword: \"anyOf\",\n schemaType: \"array\",\n trackErrors: true,\n code: code_1.validateUnion,\n error: { message: \"must match a schema in anyOf\" },\n};\nexports.default = def;\n//# sourceMappingURL=anyOf.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst error = {\n message: \"must match exactly one schema in oneOf\",\n params: ({ params }) => (0, codegen_1._) `{passingSchemas: ${params.passing}}`,\n};\nconst def = {\n keyword: \"oneOf\",\n schemaType: \"array\",\n trackErrors: true,\n error,\n code(cxt) {\n const { gen, schema, parentSchema, it } = cxt;\n /* istanbul ignore if */\n if (!Array.isArray(schema))\n throw new Error(\"ajv implementation error\");\n if (it.opts.discriminator && parentSchema.discriminator)\n return;\n const schArr = schema;\n const valid = gen.let(\"valid\", false);\n const passing = gen.let(\"passing\", null);\n const schValid = gen.name(\"_valid\");\n cxt.setParams({ passing });\n // TODO possibly fail straight away (with warning or exception) if there are two empty always valid schemas\n gen.block(validateOneOf);\n cxt.result(valid, () => cxt.reset(), () => cxt.error(true));\n function validateOneOf() {\n schArr.forEach((sch, i) => {\n let schCxt;\n if ((0, util_1.alwaysValidSchema)(it, sch)) {\n gen.var(schValid, true);\n }\n else {\n schCxt = cxt.subschema({\n keyword: \"oneOf\",\n schemaProp: i,\n compositeRule: true,\n }, schValid);\n }\n if (i > 0) {\n gen\n .if((0, codegen_1._) `${schValid} && ${valid}`)\n .assign(valid, false)\n .assign(passing, (0, codegen_1._) `[${passing}, ${i}]`)\n .else();\n }\n gen.if(schValid, () => {\n gen.assign(valid, true);\n gen.assign(passing, i);\n if (schCxt)\n cxt.mergeEvaluated(schCxt, codegen_1.Name);\n });\n });\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=oneOf.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst util_1 = require(\"../../compile/util\");\nconst def = {\n keyword: \"allOf\",\n schemaType: \"array\",\n code(cxt) {\n const { gen, schema, it } = cxt;\n /* istanbul ignore if */\n if (!Array.isArray(schema))\n throw new Error(\"ajv implementation error\");\n const valid = gen.name(\"valid\");\n schema.forEach((sch, i) => {\n if ((0, util_1.alwaysValidSchema)(it, sch))\n return;\n const schCxt = cxt.subschema({ keyword: \"allOf\", schemaProp: i }, valid);\n cxt.ok(valid);\n cxt.mergeEvaluated(schCxt);\n });\n },\n};\nexports.default = def;\n//# sourceMappingURL=allOf.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst error = {\n message: ({ params }) => (0, codegen_1.str) `must match \"${params.ifClause}\" schema`,\n params: ({ params }) => (0, codegen_1._) `{failingKeyword: ${params.ifClause}}`,\n};\nconst def = {\n keyword: \"if\",\n schemaType: [\"object\", \"boolean\"],\n trackErrors: true,\n error,\n code(cxt) {\n const { gen, parentSchema, it } = cxt;\n if (parentSchema.then === undefined && parentSchema.else === undefined) {\n (0, util_1.checkStrictMode)(it, '\"if\" without \"then\" and \"else\" is ignored');\n }\n const hasThen = hasSchema(it, \"then\");\n const hasElse = hasSchema(it, \"else\");\n if (!hasThen && !hasElse)\n return;\n const valid = gen.let(\"valid\", true);\n const schValid = gen.name(\"_valid\");\n validateIf();\n cxt.reset();\n if (hasThen && hasElse) {\n const ifClause = gen.let(\"ifClause\");\n cxt.setParams({ ifClause });\n gen.if(schValid, validateClause(\"then\", ifClause), validateClause(\"else\", ifClause));\n }\n else if (hasThen) {\n gen.if(schValid, validateClause(\"then\"));\n }\n else {\n gen.if((0, codegen_1.not)(schValid), validateClause(\"else\"));\n }\n cxt.pass(valid, () => cxt.error(true));\n function validateIf() {\n const schCxt = cxt.subschema({\n keyword: \"if\",\n compositeRule: true,\n createErrors: false,\n allErrors: false,\n }, schValid);\n cxt.mergeEvaluated(schCxt);\n }\n function validateClause(keyword, ifClause) {\n return () => {\n const schCxt = cxt.subschema({ keyword }, schValid);\n gen.assign(valid, schValid);\n cxt.mergeValidEvaluated(schCxt, valid);\n if (ifClause)\n gen.assign(ifClause, (0, codegen_1._) `${keyword}`);\n else\n cxt.setParams({ ifClause: keyword });\n };\n }\n },\n};\nfunction hasSchema(it, keyword) {\n const schema = it.schema[keyword];\n return schema !== undefined && !(0, util_1.alwaysValidSchema)(it, schema);\n}\nexports.default = def;\n//# sourceMappingURL=if.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst util_1 = require(\"../../compile/util\");\nconst def = {\n keyword: [\"then\", \"else\"],\n schemaType: [\"object\", \"boolean\"],\n code({ keyword, parentSchema, it }) {\n if (parentSchema.if === undefined)\n (0, util_1.checkStrictMode)(it, `\"${keyword}\" without \"if\" is ignored`);\n },\n};\nexports.default = def;\n//# sourceMappingURL=thenElse.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst additionalItems_1 = require(\"./additionalItems\");\nconst prefixItems_1 = require(\"./prefixItems\");\nconst items_1 = require(\"./items\");\nconst items2020_1 = require(\"./items2020\");\nconst contains_1 = require(\"./contains\");\nconst dependencies_1 = require(\"./dependencies\");\nconst propertyNames_1 = require(\"./propertyNames\");\nconst additionalProperties_1 = require(\"./additionalProperties\");\nconst properties_1 = require(\"./properties\");\nconst patternProperties_1 = require(\"./patternProperties\");\nconst not_1 = require(\"./not\");\nconst anyOf_1 = require(\"./anyOf\");\nconst oneOf_1 = require(\"./oneOf\");\nconst allOf_1 = require(\"./allOf\");\nconst if_1 = require(\"./if\");\nconst thenElse_1 = require(\"./thenElse\");\nfunction getApplicator(draft2020 = false) {\n const applicator = [\n // any\n not_1.default,\n anyOf_1.default,\n oneOf_1.default,\n allOf_1.default,\n if_1.default,\n thenElse_1.default,\n // object\n propertyNames_1.default,\n additionalProperties_1.default,\n dependencies_1.default,\n properties_1.default,\n patternProperties_1.default,\n ];\n // array\n if (draft2020)\n applicator.push(prefixItems_1.default, items2020_1.default);\n else\n applicator.push(additionalItems_1.default, items_1.default);\n applicator.push(contains_1.default);\n return applicator;\n}\nexports.default = getApplicator;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst error = {\n message: ({ schemaCode }) => (0, codegen_1.str) `must match format \"${schemaCode}\"`,\n params: ({ schemaCode }) => (0, codegen_1._) `{format: ${schemaCode}}`,\n};\nconst def = {\n keyword: \"format\",\n type: [\"number\", \"string\"],\n schemaType: \"string\",\n $data: true,\n error,\n code(cxt, ruleType) {\n const { gen, data, $data, schema, schemaCode, it } = cxt;\n const { opts, errSchemaPath, schemaEnv, self } = it;\n if (!opts.validateFormats)\n return;\n if ($data)\n validate$DataFormat();\n else\n validateFormat();\n function validate$DataFormat() {\n const fmts = gen.scopeValue(\"formats\", {\n ref: self.formats,\n code: opts.code.formats,\n });\n const fDef = gen.const(\"fDef\", (0, codegen_1._) `${fmts}[${schemaCode}]`);\n const fType = gen.let(\"fType\");\n const format = gen.let(\"format\");\n // TODO simplify\n gen.if((0, codegen_1._) `typeof ${fDef} == \"object\" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._) `${fDef}.type || \"string\"`).assign(format, (0, codegen_1._) `${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._) `\"string\"`).assign(format, fDef));\n cxt.fail$data((0, codegen_1.or)(unknownFmt(), invalidFmt()));\n function unknownFmt() {\n if (opts.strictSchema === false)\n return codegen_1.nil;\n return (0, codegen_1._) `${schemaCode} && !${format}`;\n }\n function invalidFmt() {\n const callFormat = schemaEnv.$async\n ? (0, codegen_1._) `(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))`\n : (0, codegen_1._) `${format}(${data})`;\n const validData = (0, codegen_1._) `(typeof ${format} == \"function\" ? ${callFormat} : ${format}.test(${data}))`;\n return (0, codegen_1._) `${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`;\n }\n }\n function validateFormat() {\n const formatDef = self.formats[schema];\n if (!formatDef) {\n unknownFormat();\n return;\n }\n if (formatDef === true)\n return;\n const [fmtType, format, fmtRef] = getFormat(formatDef);\n if (fmtType === ruleType)\n cxt.pass(validCondition());\n function unknownFormat() {\n if (opts.strictSchema === false) {\n self.logger.warn(unknownMsg());\n return;\n }\n throw new Error(unknownMsg());\n function unknownMsg() {\n return `unknown format \"${schema}\" ignored in schema at path \"${errSchemaPath}\"`;\n }\n }\n function getFormat(fmtDef) {\n const code = fmtDef instanceof RegExp\n ? (0, codegen_1.regexpCode)(fmtDef)\n : opts.code.formats\n ? (0, codegen_1._) `${opts.code.formats}${(0, codegen_1.getProperty)(schema)}`\n : undefined;\n const fmt = gen.scopeValue(\"formats\", { key: schema, ref: fmtDef, code });\n if (typeof fmtDef == \"object\" && !(fmtDef instanceof RegExp)) {\n return [fmtDef.type || \"string\", fmtDef.validate, (0, codegen_1._) `${fmt}.validate`];\n }\n return [\"string\", fmtDef, fmt];\n }\n function validCondition() {\n if (typeof formatDef == \"object\" && !(formatDef instanceof RegExp) && formatDef.async) {\n if (!schemaEnv.$async)\n throw new Error(\"async format in sync schema\");\n return (0, codegen_1._) `await ${fmtRef}(${data})`;\n }\n return typeof format == \"function\" ? (0, codegen_1._) `${fmtRef}(${data})` : (0, codegen_1._) `${fmtRef}.test(${data})`;\n }\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=format.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst format_1 = require(\"./format\");\nconst format = [format_1.default];\nexports.default = format;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.contentVocabulary = exports.metadataVocabulary = void 0;\nexports.metadataVocabulary = [\n \"title\",\n \"description\",\n \"default\",\n \"deprecated\",\n \"readOnly\",\n \"writeOnly\",\n \"examples\",\n];\nexports.contentVocabulary = [\n \"contentMediaType\",\n \"contentEncoding\",\n \"contentSchema\",\n];\n//# sourceMappingURL=metadata.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst core_1 = require(\"./core\");\nconst validation_1 = require(\"./validation\");\nconst applicator_1 = require(\"./applicator\");\nconst format_1 = require(\"./format\");\nconst metadata_1 = require(\"./metadata\");\nconst draft7Vocabularies = [\n core_1.default,\n validation_1.default,\n (0, applicator_1.default)(),\n format_1.default,\n metadata_1.metadataVocabulary,\n metadata_1.contentVocabulary,\n];\nexports.default = draft7Vocabularies;\n//# sourceMappingURL=draft7.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DiscrError = void 0;\nvar DiscrError;\n(function (DiscrError) {\n DiscrError[\"Tag\"] = \"tag\";\n DiscrError[\"Mapping\"] = \"mapping\";\n})(DiscrError || (exports.DiscrError = DiscrError = {}));\n//# sourceMappingURL=types.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst types_1 = require(\"../discriminator/types\");\nconst compile_1 = require(\"../../compile\");\nconst ref_error_1 = require(\"../../compile/ref_error\");\nconst util_1 = require(\"../../compile/util\");\nconst error = {\n message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag\n ? `tag \"${tagName}\" must be string`\n : `value of tag \"${tagName}\" must be in oneOf`,\n params: ({ params: { discrError, tag, tagName } }) => (0, codegen_1._) `{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`,\n};\nconst def = {\n keyword: \"discriminator\",\n type: \"object\",\n schemaType: \"object\",\n error,\n code(cxt) {\n const { gen, data, schema, parentSchema, it } = cxt;\n const { oneOf } = parentSchema;\n if (!it.opts.discriminator) {\n throw new Error(\"discriminator: requires discriminator option\");\n }\n const tagName = schema.propertyName;\n if (typeof tagName != \"string\")\n throw new Error(\"discriminator: requires propertyName\");\n if (schema.mapping)\n throw new Error(\"discriminator: mapping is not supported\");\n if (!oneOf)\n throw new Error(\"discriminator: requires oneOf keyword\");\n const valid = gen.let(\"valid\", false);\n const tag = gen.const(\"tag\", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(tagName)}`);\n gen.if((0, codegen_1._) `typeof ${tag} == \"string\"`, () => validateMapping(), () => cxt.error(false, { discrError: types_1.DiscrError.Tag, tag, tagName }));\n cxt.ok(valid);\n function validateMapping() {\n const mapping = getMapping();\n gen.if(false);\n for (const tagValue in mapping) {\n gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`);\n gen.assign(valid, applyTagSchema(mapping[tagValue]));\n }\n gen.else();\n cxt.error(false, { discrError: types_1.DiscrError.Mapping, tag, tagName });\n gen.endIf();\n }\n function applyTagSchema(schemaProp) {\n const _valid = gen.name(\"valid\");\n const schCxt = cxt.subschema({ keyword: \"oneOf\", schemaProp }, _valid);\n cxt.mergeEvaluated(schCxt, codegen_1.Name);\n return _valid;\n }\n function getMapping() {\n var _a;\n const oneOfMapping = {};\n const topRequired = hasRequired(parentSchema);\n let tagRequired = true;\n for (let i = 0; i < oneOf.length; i++) {\n let sch = oneOf[i];\n if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {\n const ref = sch.$ref;\n sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref);\n if (sch instanceof compile_1.SchemaEnv)\n sch = sch.schema;\n if (sch === undefined)\n throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref);\n }\n const propSch = (_a = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a === void 0 ? void 0 : _a[tagName];\n if (typeof propSch != \"object\") {\n throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have \"properties/${tagName}\"`);\n }\n tagRequired = tagRequired && (topRequired || hasRequired(sch));\n addMappings(propSch, i);\n }\n if (!tagRequired)\n throw new Error(`discriminator: \"${tagName}\" must be required`);\n return oneOfMapping;\n function hasRequired({ required }) {\n return Array.isArray(required) && required.includes(tagName);\n }\n function addMappings(sch, i) {\n if (sch.const) {\n addMapping(sch.const, i);\n }\n else if (sch.enum) {\n for (const tagValue of sch.enum) {\n addMapping(tagValue, i);\n }\n }\n else {\n throw new Error(`discriminator: \"properties/${tagName}\" must have \"const\" or \"enum\"`);\n }\n }\n function addMapping(tagValue, i) {\n if (typeof tagValue != \"string\" || tagValue in oneOfMapping) {\n throw new Error(`discriminator: \"${tagName}\" values must be unique strings`);\n }\n oneOfMapping[tagValue] = i;\n }\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;\nconst core_1 = require(\"./core\");\nconst draft7_1 = require(\"./vocabularies/draft7\");\nconst discriminator_1 = require(\"./vocabularies/discriminator\");\nconst draft7MetaSchema = require(\"./refs/json-schema-draft-07.json\");\nconst META_SUPPORT_DATA = [\"/properties\"];\nconst META_SCHEMA_ID = \"http://json-schema.org/draft-07/schema\";\nclass Ajv extends core_1.default {\n _addVocabularies() {\n super._addVocabularies();\n draft7_1.default.forEach((v) => this.addVocabulary(v));\n if (this.opts.discriminator)\n this.addKeyword(discriminator_1.default);\n }\n _addDefaultMetaSchema() {\n super._addDefaultMetaSchema();\n if (!this.opts.meta)\n return;\n const metaSchema = this.opts.$data\n ? this.$dataMetaSchema(draft7MetaSchema, META_SUPPORT_DATA)\n : draft7MetaSchema;\n this.addMetaSchema(metaSchema, META_SCHEMA_ID, false);\n this.refs[\"http://json-schema.org/schema\"] = META_SCHEMA_ID;\n }\n defaultMeta() {\n return (this.opts.defaultMeta =\n super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined));\n }\n}\nexports.Ajv = Ajv;\nmodule.exports = exports = Ajv;\nmodule.exports.Ajv = Ajv;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = Ajv;\nvar validate_1 = require(\"./compile/validate\");\nObject.defineProperty(exports, \"KeywordCxt\", { enumerable: true, get: function () { return validate_1.KeywordCxt; } });\nvar codegen_1 = require(\"./compile/codegen\");\nObject.defineProperty(exports, \"_\", { enumerable: true, get: function () { return codegen_1._; } });\nObject.defineProperty(exports, \"str\", { enumerable: true, get: function () { return codegen_1.str; } });\nObject.defineProperty(exports, \"stringify\", { enumerable: true, get: function () { return codegen_1.stringify; } });\nObject.defineProperty(exports, \"nil\", { enumerable: true, get: function () { return codegen_1.nil; } });\nObject.defineProperty(exports, \"Name\", { enumerable: true, get: function () { return codegen_1.Name; } });\nObject.defineProperty(exports, \"CodeGen\", { enumerable: true, get: function () { return codegen_1.CodeGen; } });\nvar validation_error_1 = require(\"./runtime/validation_error\");\nObject.defineProperty(exports, \"ValidationError\", { enumerable: true, get: function () { return validation_error_1.default; } });\nvar ref_error_1 = require(\"./compile/ref_error\");\nObject.defineProperty(exports, \"MissingRefError\", { enumerable: true, get: function () { return ref_error_1.default; } });\n//# sourceMappingURL=ajv.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.formatNames = exports.fastFormats = exports.fullFormats = void 0;\nfunction fmtDef(validate, compare) {\n return { validate, compare };\n}\nexports.fullFormats = {\n // date: http://tools.ietf.org/html/rfc3339#section-5.6\n date: fmtDef(date, compareDate),\n // date-time: http://tools.ietf.org/html/rfc3339#section-5.6\n time: fmtDef(getTime(true), compareTime),\n \"date-time\": fmtDef(getDateTime(true), compareDateTime),\n \"iso-time\": fmtDef(getTime(), compareIsoTime),\n \"iso-date-time\": fmtDef(getDateTime(), compareIsoDateTime),\n // duration: https://tools.ietf.org/html/rfc3339#appendix-A\n duration: /^P(?!$)((\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?|(\\d+W)?)$/,\n uri,\n \"uri-re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})*)*)?(?:\\?(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,\n // uri-template: https://tools.ietf.org/html/rfc6570\n \"uri-template\": /^(?:(?:[^\\x00-\\x20\"'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i,\n // For the source: https://gist.github.com/dperini/729294\n // For test cases: https://mathiasbynens.be/demo/url-regex\n url: /^(?:https?|ftp):\\/\\/(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)(?:\\.(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu,\n email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,\n hostname: /^(?=.{1,253}\\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\\.?$/i,\n // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html\n ipv4: /^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$/,\n ipv6: /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))$/i,\n regex,\n // uuid: http://tools.ietf.org/html/rfc4122\n uuid: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,\n // JSON-pointer: https://tools.ietf.org/html/rfc6901\n // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A\n \"json-pointer\": /^(?:\\/(?:[^~/]|~0|~1)*)*$/,\n \"json-pointer-uri-fragment\": /^#(?:\\/(?:[a-z0-9_\\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,\n // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00\n \"relative-json-pointer\": /^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/,\n // the following formats are used by the openapi specification: https://spec.openapis.org/oas/v3.0.0#data-types\n // byte: https://github.com/miguelmota/is-base64\n byte,\n // signed 32 bit integer\n int32: { type: \"number\", validate: validateInt32 },\n // signed 64 bit integer\n int64: { type: \"number\", validate: validateInt64 },\n // C-type float\n float: { type: \"number\", validate: validateNumber },\n // C-type double\n double: { type: \"number\", validate: validateNumber },\n // hint to the UI to hide input strings\n password: true,\n // unchecked string payload\n binary: true,\n};\nexports.fastFormats = {\n ...exports.fullFormats,\n date: fmtDef(/^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d$/, compareDate),\n time: fmtDef(/^(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)$/i, compareTime),\n \"date-time\": fmtDef(/^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\dt(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)$/i, compareDateTime),\n \"iso-time\": fmtDef(/^(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)?$/i, compareIsoTime),\n \"iso-date-time\": fmtDef(/^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d[t\\s](?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)?$/i, compareIsoDateTime),\n // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js\n uri: /^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/)?[^\\s]*$/i,\n \"uri-reference\": /^(?:(?:[a-z][a-z0-9+\\-.]*:)?\\/?\\/)?(?:[^\\\\\\s#][^\\s#]*)?(?:#[^\\\\\\s]*)?$/i,\n // email (sources from jsen validator):\n // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363\n // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')\n email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,\n};\nexports.formatNames = Object.keys(exports.fullFormats);\nfunction isLeapYear(year) {\n // https://tools.ietf.org/html/rfc3339#appendix-C\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\nconst DATE = /^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)$/;\nconst DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nfunction date(str) {\n // full-date from http://tools.ietf.org/html/rfc3339#section-5.6\n const matches = DATE.exec(str);\n if (!matches)\n return false;\n const year = +matches[1];\n const month = +matches[2];\n const day = +matches[3];\n return (month >= 1 &&\n month <= 12 &&\n day >= 1 &&\n day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]));\n}\nfunction compareDate(d1, d2) {\n if (!(d1 && d2))\n return undefined;\n if (d1 > d2)\n return 1;\n if (d1 < d2)\n return -1;\n return 0;\n}\nconst TIME = /^(\\d\\d):(\\d\\d):(\\d\\d(?:\\.\\d+)?)(z|([+-])(\\d\\d)(?::?(\\d\\d))?)?$/i;\nfunction getTime(strictTimeZone) {\n return function time(str) {\n const matches = TIME.exec(str);\n if (!matches)\n return false;\n const hr = +matches[1];\n const min = +matches[2];\n const sec = +matches[3];\n const tz = matches[4];\n const tzSign = matches[5] === \"-\" ? -1 : 1;\n const tzH = +(matches[6] || 0);\n const tzM = +(matches[7] || 0);\n if (tzH > 23 || tzM > 59 || (strictTimeZone && !tz))\n return false;\n if (hr <= 23 && min <= 59 && sec < 60)\n return true;\n // leap second\n const utcMin = min - tzM * tzSign;\n const utcHr = hr - tzH * tzSign - (utcMin < 0 ? 1 : 0);\n return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61;\n };\n}\nfunction compareTime(s1, s2) {\n if (!(s1 && s2))\n return undefined;\n const t1 = new Date(\"2020-01-01T\" + s1).valueOf();\n const t2 = new Date(\"2020-01-01T\" + s2).valueOf();\n if (!(t1 && t2))\n return undefined;\n return t1 - t2;\n}\nfunction compareIsoTime(t1, t2) {\n if (!(t1 && t2))\n return undefined;\n const a1 = TIME.exec(t1);\n const a2 = TIME.exec(t2);\n if (!(a1 && a2))\n return undefined;\n t1 = a1[1] + a1[2] + a1[3];\n t2 = a2[1] + a2[2] + a2[3];\n if (t1 > t2)\n return 1;\n if (t1 < t2)\n return -1;\n return 0;\n}\nconst DATE_TIME_SEPARATOR = /t|\\s/i;\nfunction getDateTime(strictTimeZone) {\n const time = getTime(strictTimeZone);\n return function date_time(str) {\n // http://tools.ietf.org/html/rfc3339#section-5.6\n const dateTime = str.split(DATE_TIME_SEPARATOR);\n return dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1]);\n };\n}\nfunction compareDateTime(dt1, dt2) {\n if (!(dt1 && dt2))\n return undefined;\n const d1 = new Date(dt1).valueOf();\n const d2 = new Date(dt2).valueOf();\n if (!(d1 && d2))\n return undefined;\n return d1 - d2;\n}\nfunction compareIsoDateTime(dt1, dt2) {\n if (!(dt1 && dt2))\n return undefined;\n const [d1, t1] = dt1.split(DATE_TIME_SEPARATOR);\n const [d2, t2] = dt2.split(DATE_TIME_SEPARATOR);\n const res = compareDate(d1, d2);\n if (res === undefined)\n return undefined;\n return res || compareTime(t1, t2);\n}\nconst NOT_URI_FRAGMENT = /\\/|:/;\nconst URI = /^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;\nfunction uri(str) {\n // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required \".\"\n return NOT_URI_FRAGMENT.test(str) && URI.test(str);\n}\nconst BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;\nfunction byte(str) {\n BYTE.lastIndex = 0;\n return BYTE.test(str);\n}\nconst MIN_INT32 = -(2 ** 31);\nconst MAX_INT32 = 2 ** 31 - 1;\nfunction validateInt32(value) {\n return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32;\n}\nfunction validateInt64(value) {\n // JSON and javascript max Int is 2**53, so any int that passes isInteger is valid for Int64\n return Number.isInteger(value);\n}\nfunction validateNumber() {\n return true;\n}\nconst Z_ANCHOR = /[^\\\\]\\\\Z/;\nfunction regex(str) {\n if (Z_ANCHOR.test(str))\n return false;\n try {\n new RegExp(str);\n return true;\n }\n catch (e) {\n return false;\n }\n}\n//# sourceMappingURL=formats.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.formatLimitDefinition = void 0;\nconst ajv_1 = require(\"ajv\");\nconst codegen_1 = require(\"ajv/dist/compile/codegen\");\nconst ops = codegen_1.operators;\nconst KWDs = {\n formatMaximum: { okStr: \"<=\", ok: ops.LTE, fail: ops.GT },\n formatMinimum: { okStr: \">=\", ok: ops.GTE, fail: ops.LT },\n formatExclusiveMaximum: { okStr: \"<\", ok: ops.LT, fail: ops.GTE },\n formatExclusiveMinimum: { okStr: \">\", ok: ops.GT, fail: ops.LTE },\n};\nconst error = {\n message: ({ keyword, schemaCode }) => (0, codegen_1.str) `should be ${KWDs[keyword].okStr} ${schemaCode}`,\n params: ({ keyword, schemaCode }) => (0, codegen_1._) `{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`,\n};\nexports.formatLimitDefinition = {\n keyword: Object.keys(KWDs),\n type: \"string\",\n schemaType: \"string\",\n $data: true,\n error,\n code(cxt) {\n const { gen, data, schemaCode, keyword, it } = cxt;\n const { opts, self } = it;\n if (!opts.validateFormats)\n return;\n const fCxt = new ajv_1.KeywordCxt(it, self.RULES.all.format.definition, \"format\");\n if (fCxt.$data)\n validate$DataFormat();\n else\n validateFormat();\n function validate$DataFormat() {\n const fmts = gen.scopeValue(\"formats\", {\n ref: self.formats,\n code: opts.code.formats,\n });\n const fmt = gen.const(\"fmt\", (0, codegen_1._) `${fmts}[${fCxt.schemaCode}]`);\n cxt.fail$data((0, codegen_1.or)((0, codegen_1._) `typeof ${fmt} != \"object\"`, (0, codegen_1._) `${fmt} instanceof RegExp`, (0, codegen_1._) `typeof ${fmt}.compare != \"function\"`, compareCode(fmt)));\n }\n function validateFormat() {\n const format = fCxt.schema;\n const fmtDef = self.formats[format];\n if (!fmtDef || fmtDef === true)\n return;\n if (typeof fmtDef != \"object\" ||\n fmtDef instanceof RegExp ||\n typeof fmtDef.compare != \"function\") {\n throw new Error(`\"${keyword}\": format \"${format}\" does not define \"compare\" function`);\n }\n const fmt = gen.scopeValue(\"formats\", {\n key: format,\n ref: fmtDef,\n code: opts.code.formats ? (0, codegen_1._) `${opts.code.formats}${(0, codegen_1.getProperty)(format)}` : undefined,\n });\n cxt.fail$data(compareCode(fmt));\n }\n function compareCode(fmt) {\n return (0, codegen_1._) `${fmt}.compare(${data}, ${schemaCode}) ${KWDs[keyword].fail} 0`;\n }\n },\n dependencies: [\"format\"],\n};\nconst formatLimitPlugin = (ajv) => {\n ajv.addKeyword(exports.formatLimitDefinition);\n return ajv;\n};\nexports.default = formatLimitPlugin;\n//# sourceMappingURL=limit.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst formats_1 = require(\"./formats\");\nconst limit_1 = require(\"./limit\");\nconst codegen_1 = require(\"ajv/dist/compile/codegen\");\nconst fullName = new codegen_1.Name(\"fullFormats\");\nconst fastName = new codegen_1.Name(\"fastFormats\");\nconst formatsPlugin = (ajv, opts = { keywords: true }) => {\n if (Array.isArray(opts)) {\n addFormats(ajv, opts, formats_1.fullFormats, fullName);\n return ajv;\n }\n const [formats, exportName] = opts.mode === \"fast\" ? [formats_1.fastFormats, fastName] : [formats_1.fullFormats, fullName];\n const list = opts.formats || formats_1.formatNames;\n addFormats(ajv, list, formats, exportName);\n if (opts.keywords)\n (0, limit_1.default)(ajv);\n return ajv;\n};\nformatsPlugin.get = (name, mode = \"full\") => {\n const formats = mode === \"fast\" ? formats_1.fastFormats : formats_1.fullFormats;\n const f = formats[name];\n if (!f)\n throw new Error(`Unknown format \"${name}\"`);\n return f;\n};\nfunction addFormats(ajv, list, fs, exportName) {\n var _a;\n var _b;\n (_a = (_b = ajv.opts.code).formats) !== null && _a !== void 0 ? _a : (_b.formats = (0, codegen_1._) `require(\"ajv-formats/dist/formats\").${exportName}`);\n for (const f of list)\n ajv.addFormat(f, fs[f]);\n}\nmodule.exports = exports = formatsPlugin;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = formatsPlugin;\n//# sourceMappingURL=index.js.map","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n","var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n","var baseFor = require('./_baseFor'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","var baseEach = require('./_baseEach');\n\n/**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n}\n\nmodule.exports = baseFilter;\n","var arrayFilter = require('./_arrayFilter'),\n baseFilter = require('./_baseFilter'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n *\n * // Combining several predicates using `_.overEvery` or `_.overSome`.\n * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));\n * // => objects for ['fred', 'barney']\n */\nfunction filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, baseIteratee(predicate, 3));\n}\n\nmodule.exports = filter;\n","var baseIsEqual = require('./_baseIsEqual');\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n\nmodule.exports = isEqual;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n","var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n","var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n","var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","var baseCreate = require('./_baseCreate'),\n getPrototype = require('./_getPrototype'),\n isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nmodule.exports = initCloneObject;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n","var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\nmodule.exports = toPlainObject;\n","var assignMergeValue = require('./_assignMergeValue'),\n cloneBuffer = require('./_cloneBuffer'),\n cloneTypedArray = require('./_cloneTypedArray'),\n copyArray = require('./_copyArray'),\n initCloneObject = require('./_initCloneObject'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLikeObject = require('./isArrayLikeObject'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isPlainObject = require('./isPlainObject'),\n isTypedArray = require('./isTypedArray'),\n safeGet = require('./_safeGet'),\n toPlainObject = require('./toPlainObject');\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\nmodule.exports = baseMergeDeep;\n","var Stack = require('./_Stack'),\n assignMergeValue = require('./_assignMergeValue'),\n baseFor = require('./_baseFor'),\n baseMergeDeep = require('./_baseMergeDeep'),\n isObject = require('./isObject'),\n keysIn = require('./keysIn'),\n safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nmodule.exports = baseMerge;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\nmodule.exports = createAssigner;\n","var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n","var copyObject = require('./_copyObject'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nmodule.exports = baseAssign;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nmodule.exports = baseAssignIn;\n","var copyObject = require('./_copyObject'),\n getSymbols = require('./_getSymbols');\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n","var arrayPush = require('./_arrayPush'),\n getPrototype = require('./_getPrototype'),\n getSymbols = require('./_getSymbols'),\n stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nmodule.exports = getSymbolsIn;\n","var copyObject = require('./_copyObject'),\n getSymbolsIn = require('./_getSymbolsIn');\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbolsIn = require('./_getSymbolsIn'),\n keysIn = require('./keysIn');\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nmodule.exports = initCloneArray;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nmodule.exports = cloneRegExp;\n","var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer'),\n cloneDataView = require('./_cloneDataView'),\n cloneRegExp = require('./_cloneRegExp'),\n cloneSymbol = require('./_cloneSymbol'),\n cloneTypedArray = require('./_cloneTypedArray');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nmodule.exports = initCloneByTag;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n","var baseIsMap = require('./_baseIsMap'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nmodule.exports = baseIsSet;\n","var baseIsSet = require('./_baseIsSet'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nmodule.exports = isSet;\n","var Stack = require('./_Stack'),\n arrayEach = require('./_arrayEach'),\n assignValue = require('./_assignValue'),\n baseAssign = require('./_baseAssign'),\n baseAssignIn = require('./_baseAssignIn'),\n cloneBuffer = require('./_cloneBuffer'),\n copyArray = require('./_copyArray'),\n copySymbols = require('./_copySymbols'),\n copySymbolsIn = require('./_copySymbolsIn'),\n getAllKeys = require('./_getAllKeys'),\n getAllKeysIn = require('./_getAllKeysIn'),\n getTag = require('./_getTag'),\n initCloneArray = require('./_initCloneArray'),\n initCloneByTag = require('./_initCloneByTag'),\n initCloneObject = require('./_initCloneObject'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isMap = require('./isMap'),\n isObject = require('./isObject'),\n isSet = require('./isSet'),\n keys = require('./keys'),\n keysIn = require('./keysIn');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nmodule.exports = baseClone;\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n","var isSymbol = require('./isSymbol');\n\n/**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\nfunction baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseExtremum;\n","/**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\nfunction baseGt(value, other) {\n return value > other;\n}\n\nmodule.exports = baseGt;\n","var baseExtremum = require('./_baseExtremum'),\n baseGt = require('./_baseGt'),\n baseIteratee = require('./_baseIteratee');\n\n/**\n * This method is like `_.max` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.maxBy(objects, function(o) { return o.n; });\n * // => { 'n': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.maxBy(objects, 'n');\n * // => { 'n': 2 }\n */\nfunction maxBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, baseIteratee(iteratee, 2), baseGt)\n : undefined;\n}\n\nmodule.exports = maxBy;\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n","var baseGet = require('./_baseGet'),\n baseSlice = require('./_baseSlice');\n\n/**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\nfunction parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n}\n\nmodule.exports = parent;\n","var castPath = require('./_castPath'),\n last = require('./last'),\n parent = require('./_parent'),\n toKey = require('./_toKey');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\nfunction baseUnset(object, path) {\n path = castPath(path, object);\n\n // Prevent prototype pollution:\n // https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg\n // https://github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh\n var index = -1,\n length = path.length;\n\n if (!length) {\n return true;\n }\n\n while (++index < length) {\n var key = toKey(path[index]);\n\n // Always block \"__proto__\" anywhere in the path if it's not expected\n if (key === '__proto__' && !hasOwnProperty.call(object, '__proto__')) {\n return false;\n }\n\n // Block constructor/prototype as non-terminal traversal keys to prevent\n // escaping the object graph into built-in constructors and prototypes.\n if ((key === 'constructor' || key === 'prototype') && index < length - 1) {\n return false;\n }\n }\n\n var obj = parent(object, path);\n return obj == null || delete obj[toKey(last(path))];\n}\n\nmodule.exports = baseUnset;\n","var baseUnset = require('./_baseUnset'),\n isIndex = require('./_isIndex');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\nfunction basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n}\n\nmodule.exports = basePullAt;\n","var baseIteratee = require('./_baseIteratee'),\n basePullAt = require('./_basePullAt');\n\n/**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\nfunction remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = baseIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n}\n\nmodule.exports = remove;\n","/**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\nfunction baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n}\n\nmodule.exports = baseClamp;\n","var baseClamp = require('./_baseClamp'),\n baseToString = require('./_baseToString'),\n toInteger = require('./toInteger'),\n toString = require('./toString');\n\n/**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\nfunction endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n}\n\nmodule.exports = endsWith;\n","/**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\nfunction baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseReduce;\n","var arrayReduce = require('./_arrayReduce'),\n baseEach = require('./_baseEach'),\n baseIteratee = require('./_baseIteratee'),\n baseReduce = require('./_baseReduce'),\n isArray = require('./isArray');\n\n/**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\nfunction reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n}\n\nmodule.exports = reduce;\n","var arrayMap = require('./_arrayMap');\n\n/**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\nfunction baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n}\n\nmodule.exports = baseToPairs;\n","/**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\nfunction setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n}\n\nmodule.exports = setToPairs;\n","var baseToPairs = require('./_baseToPairs'),\n getTag = require('./_getTag'),\n mapToArray = require('./_mapToArray'),\n setToPairs = require('./_setToPairs');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\nfunction createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n}\n\nmodule.exports = createToPairs;\n","var createToPairs = require('./_createToPairs'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\nvar toPairs = createToPairs(keys);\n\nmodule.exports = toPairs;\n","/**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\nfunction isUndefined(value) {\n return value === undefined;\n}\n\nmodule.exports = isUndefined;\n","import isEmpty from 'lodash/isEmpty';\nimport startCase from 'lodash/startCase';\nimport keys from 'lodash/keys';\nimport range from 'lodash/range';\nimport get from 'lodash/get';\nimport includes from 'lodash/includes';\nimport find from 'lodash/find';\nimport has from 'lodash/has';\nimport Ajv from 'ajv';\nimport addFormats from 'ajv-formats';\nimport filter from 'lodash/filter';\nimport isEqual from 'lodash/isEqual';\nimport merge from 'lodash/merge';\nimport cloneDeep from 'lodash/cloneDeep';\nimport isFunction from 'lodash/isFunction';\nimport maxBy from 'lodash/maxBy';\nimport remove from 'lodash/remove';\nimport endsWith from 'lodash/endsWith';\nimport last from 'lodash/last';\nimport reduce from 'lodash/reduce';\nimport toPairs from 'lodash/toPairs';\nimport isUndefined from 'lodash/isUndefined';\n\nconst ADDITIONAL_PROPERTIES = 'additionalProperties';\nconst REQUIRED_PROPERTIES = 'required';\nconst distinct = (properties, discriminator) => {\n const known = {};\n return properties.filter((item) => {\n const discriminatorValue = discriminator(item);\n if (Object.prototype.hasOwnProperty.call(known, discriminatorValue)) {\n return false;\n }\n else {\n known[discriminatorValue] = true;\n return true;\n }\n });\n};\nclass Gen {\n constructor(findOption) {\n this.findOption = findOption;\n this.schemaObject = (data) => {\n const props = this.properties(data);\n const schema = {\n type: 'object',\n properties: props,\n additionalProperties: this.findOption(props)(ADDITIONAL_PROPERTIES),\n };\n const required = this.findOption(props)(REQUIRED_PROPERTIES);\n if (required.length > 0) {\n schema.required = required;\n }\n return schema;\n };\n this.properties = (data) => {\n const emptyProps = {};\n return Object.keys(data).reduce((acc, propName) => {\n acc[propName] = this.property(data[propName]);\n return acc;\n }, emptyProps);\n };\n this.property = (data) => {\n switch (typeof data) {\n case 'string':\n return { type: 'string' };\n case 'boolean':\n return { type: 'boolean' };\n case 'number':\n if (Number.isInteger(data)) {\n return { type: 'integer' };\n }\n return { type: 'number' };\n case 'object':\n if (data == null) {\n return { type: 'null' };\n }\n return this.schemaObjectOrArray(data);\n default:\n return {};\n }\n };\n this.schemaObjectOrArray = (data) => {\n if (data instanceof Array) {\n return this.schemaArray(data);\n }\n else {\n return this.schemaObject(data);\n }\n };\n this.schemaArray = (data) => {\n if (data.length > 0) {\n const allProperties = data.map(this.property);\n const uniqueProperties = distinct(allProperties, (prop) => JSON.stringify(prop));\n if (uniqueProperties.length === 1) {\n return {\n type: 'array',\n items: uniqueProperties[0],\n };\n }\n else {\n return {\n type: 'array',\n items: {\n oneOf: uniqueProperties,\n },\n };\n }\n }\n else {\n return {\n type: 'array',\n items: {},\n };\n }\n };\n }\n}\nconst generateJsonSchema = (instance, options = {}) => {\n const findOption = (props) => (optionName) => {\n switch (optionName) {\n case ADDITIONAL_PROPERTIES:\n if (Object.prototype.hasOwnProperty.call(options, ADDITIONAL_PROPERTIES)) {\n return options[ADDITIONAL_PROPERTIES];\n }\n return true;\n case REQUIRED_PROPERTIES:\n if (Object.prototype.hasOwnProperty.call(options, REQUIRED_PROPERTIES)) {\n return options[REQUIRED_PROPERTIES](props);\n }\n return Object.keys(props);\n default:\n return;\n }\n };\n const gen = new Gen(findOption);\n return gen.property(instance);\n};\n\nconst idSlots = new Map();\nconst prefixStates = new Map();\nconst makeId = (idBase, iteration) => iteration <= 1 ? idBase : idBase + iteration.toString();\nconst createId = (proposedId) => {\n if (proposedId === undefined) {\n proposedId = 'undefined';\n }\n let state = prefixStates.get(proposedId);\n if (state === undefined) {\n state = { used: new Set(), next: 0 };\n prefixStates.set(proposedId, state);\n }\n let tries = state.next;\n while (state.used.has(tries) || idSlots.has(makeId(proposedId, tries))) {\n tries++;\n }\n const newId = makeId(proposedId, tries);\n state.used.add(tries);\n state.next = tries + 1;\n idSlots.set(newId, { prefix: proposedId, index: tries });\n return newId;\n};\nconst removeId = (id) => {\n const slot = idSlots.get(id);\n if (slot === undefined) {\n return false;\n }\n idSlots.delete(id);\n const state = prefixStates.get(slot.prefix);\n if (state !== undefined) {\n state.used.delete(slot.index);\n if (slot.index < state.next) {\n state.next = slot.index;\n }\n if (state.used.size === 0) {\n prefixStates.delete(slot.prefix);\n }\n }\n return true;\n};\nconst clearAllIds = () => {\n idSlots.clear();\n prefixStates.clear();\n};\nconst Id = {\n createId,\n removeId,\n clearAllIds,\n};\n\nconst compose = (path1, path2) => {\n let p1 = path1;\n if (!isEmpty(path1) && !isEmpty(path2) && !path2.startsWith('[')) {\n p1 = path1 + '.';\n }\n if (isEmpty(p1)) {\n return path2;\n }\n else if (isEmpty(path2)) {\n return p1;\n }\n else {\n return `${p1}${path2}`;\n }\n};\nconst toDataPathSegments = (schemaPath) => {\n const s = schemaPath\n .replace(/(anyOf|allOf|oneOf)\\/[\\d]+\\//g, '')\n .replace(/(then|else)\\//g, '');\n const segments = s.split('/');\n const decodedSegments = segments.map(decode);\n const startFromRoot = decodedSegments[0] === '#' || decodedSegments[0] === '';\n const startIndex = startFromRoot ? 2 : 1;\n return range(startIndex, decodedSegments.length, 2).map((idx) => decodedSegments[idx]);\n};\nconst toDataPath = (schemaPath) => {\n return toDataPathSegments(schemaPath).join('.');\n};\nconst encode = (segment) => segment?.replace(/~/g, '~0').replace(/\\//g, '~1');\nconst decode = (pointerSegment) => pointerSegment?.replace(/~1/g, '/').replace(/~0/, '~');\nconst getPropPath = (path) => {\n return `/properties/${path\n .split('.')\n .map((p) => encode(p))\n .join('/properties/')}`;\n};\n\nconst deriveLabel = (controlElement, schemaElement) => {\n if (schemaElement && typeof schemaElement.title === 'string') {\n return schemaElement.title;\n }\n if (typeof controlElement.scope === 'string') {\n const ref = controlElement.scope;\n const label = decode(ref.substr(ref.lastIndexOf('/') + 1));\n return startCase(label);\n }\n return '';\n};\nconst createCleanLabel = (label) => {\n return startCase(label.replace('_', ' '));\n};\nconst createLabelDescriptionFrom = (withLabel, schema) => {\n const labelProperty = withLabel.label;\n if (typeof labelProperty === 'boolean') {\n return labelDescription(deriveLabel(withLabel, schema), labelProperty);\n }\n if (typeof labelProperty === 'string') {\n return labelDescription(labelProperty, true);\n }\n if (typeof labelProperty === 'object') {\n const label = typeof labelProperty.text === 'string'\n ? labelProperty.text\n : deriveLabel(withLabel, schema);\n const show = typeof labelProperty.show === 'boolean' ? labelProperty.show : true;\n return labelDescription(label, show);\n }\n return labelDescription(deriveLabel(withLabel, schema), true);\n};\nconst labelDescription = (text, show) => ({\n text: text,\n show: show,\n});\n\nconst isObjectSchema$1 = (schema) => {\n return schema.properties !== undefined;\n};\nconst isArraySchema = (schema) => {\n return schema.type === 'array' && schema.items !== undefined;\n};\nconst resolveData = (instance, dataPath) => {\n if (isEmpty(dataPath)) {\n return instance;\n }\n const dataPathSegments = dataPath.split('.');\n return dataPathSegments.reduce((curInstance, decodedSegment) => {\n if (!curInstance ||\n !Object.prototype.hasOwnProperty.call(curInstance, decodedSegment)) {\n return undefined;\n }\n return curInstance[decodedSegment];\n }, instance);\n};\nconst findAllRefs = (schema, result = {}, resolveTuples = false) => {\n if (isObjectSchema$1(schema)) {\n Object.keys(schema.properties).forEach((key) => findAllRefs(schema.properties[key], result));\n }\n if (isArraySchema(schema)) {\n if (Array.isArray(schema.items)) {\n if (resolveTuples) {\n const items = schema.items;\n items.forEach((child) => findAllRefs(child, result));\n }\n }\n else {\n findAllRefs(schema.items, result);\n }\n }\n if (Array.isArray(schema.anyOf)) {\n const anyOf = schema.anyOf;\n anyOf.forEach((child) => findAllRefs(child, result));\n }\n if (schema.$ref !== undefined) {\n result[schema.$ref] = schema;\n }\n return result;\n};\nconst invalidSegment = (pathSegment) => pathSegment === '#' || pathSegment === undefined || pathSegment === '';\nconst resolveSchema = (schema, schemaPath, rootSchema) => {\n const result = doResolveSchema(schema, schemaPath, {\n rootSchema,\n resolutionMap: new Map(),\n });\n return result;\n};\nconst doResolveSchema = (schema, schemaPath, ctx) => {\n let resolvedSchema = undefined;\n if (schema && typeof schema.$ref === 'string') {\n const baseSchema = resolvePath(ctx.rootSchema, schema.$ref, ctx);\n if (baseSchema !== undefined) {\n resolvedSchema = resolvePath(baseSchema, schemaPath, ctx);\n }\n }\n if (resolvedSchema === undefined) {\n resolvedSchema = resolvePath(schema, schemaPath, ctx);\n }\n return resolvedSchema;\n};\nconst resolvePath = (schema, schemaPath, ctx) => {\n let visitedPaths = ctx.resolutionMap.get(schema);\n if (!visitedPaths) {\n visitedPaths = new Set();\n ctx.resolutionMap.set(schema, visitedPaths);\n }\n if (visitedPaths.has(schemaPath)) {\n return undefined;\n }\n visitedPaths.add(schemaPath);\n const resolvedSchema = resolvePathSegmentsWithCombinatorFallback(schema, schemaPath?.split('/').map(decode), ctx);\n visitedPaths.delete(schemaPath);\n return resolvedSchema;\n};\nconst resolvePathSegmentsWithCombinatorFallback = (schema, pathSegments, ctx) => {\n if (!pathSegments || pathSegments.length === 0) {\n return schema;\n }\n if (isEmpty(schema)) {\n return undefined;\n }\n const resolvedSchema = resolvePathSegments(schema, pathSegments, ctx);\n if (resolvedSchema !== undefined) {\n return resolvedSchema;\n }\n const subSchemas = [].concat(schema.oneOf ?? [], schema.allOf ?? [], schema.anyOf ?? [], schema.then ?? [], schema.else ?? []);\n for (const subSchema of subSchemas) {\n let resolvedSubSchema = subSchema;\n if (subSchema && typeof subSchema.$ref === 'string') {\n resolvedSubSchema = doResolveSchema(ctx.rootSchema, subSchema.$ref, ctx);\n }\n const alternativeResolveResult = resolvePathSegmentsWithCombinatorFallback(resolvedSubSchema, pathSegments, ctx);\n if (alternativeResolveResult) {\n return alternativeResolveResult;\n }\n }\n return undefined;\n};\nconst resolvePathSegments = (schema, pathSegments, ctx) => {\n if (!pathSegments || pathSegments.length === 0) {\n return schema;\n }\n if (isEmpty(schema)) {\n return undefined;\n }\n const singleStepResult = resolveSingleStep(schema, pathSegments);\n if (singleStepResult.schema &&\n typeof singleStepResult.schema.$ref === 'string') {\n singleStepResult.schema = doResolveSchema(ctx.rootSchema, singleStepResult.schema.$ref, ctx);\n }\n return resolvePathSegmentsWithCombinatorFallback(singleStepResult.schema, singleStepResult.remainingPathSegments, ctx);\n};\nconst resolveSingleStep = (schema, pathSegments) => {\n if (!pathSegments || pathSegments.length === 0) {\n return { schema, remainingPathSegments: [] };\n }\n if (isEmpty(schema)) {\n return {\n schema: undefined,\n remainingPathSegments: pathSegments,\n };\n }\n const [segment, ...remainingPathSegments] = pathSegments;\n if (invalidSegment(segment)) {\n return resolveSingleStep(schema, remainingPathSegments);\n }\n const singleSegmentResolveSchema = get(schema, segment);\n return {\n schema: singleSegmentResolveSchema,\n remainingPathSegments,\n resolvedSegment: segment,\n };\n};\n\nconst Draft4 = {\n id: 'http://json-schema.org/draft-04/schema#',\n $schema: 'http://json-schema.org/draft-04/schema#',\n description: 'Core schema meta-schema',\n definitions: {\n schemaArray: {\n type: 'array',\n minItems: 1,\n items: { $ref: '#' },\n },\n positiveInteger: {\n type: 'integer',\n minimum: 0,\n },\n positiveIntegerDefault0: {\n allOf: [{ $ref: '#/definitions/positiveInteger' }, { default: 0 }],\n },\n simpleTypes: {\n enum: [\n 'array',\n 'boolean',\n 'integer',\n 'null',\n 'number',\n 'object',\n 'string',\n ],\n },\n stringArray: {\n type: 'array',\n items: { type: 'string' },\n minItems: 1,\n uniqueItems: true,\n },\n },\n type: 'object',\n properties: {\n id: {\n type: 'string',\n format: 'uri',\n },\n $schema: {\n type: 'string',\n format: 'uri',\n },\n title: {\n type: 'string',\n },\n description: {\n type: 'string',\n },\n default: {},\n multipleOf: {\n type: 'number',\n minimum: 0,\n exclusiveMinimum: true,\n },\n maximum: {\n type: 'number',\n },\n exclusiveMaximum: {\n type: 'boolean',\n default: false,\n },\n minimum: {\n type: 'number',\n },\n exclusiveMinimum: {\n type: 'boolean',\n default: false,\n },\n maxLength: { $ref: '#/definitions/positiveInteger' },\n minLength: { $ref: '#/definitions/positiveIntegerDefault0' },\n pattern: {\n type: 'string',\n format: 'regex',\n },\n additionalItems: {\n anyOf: [{ type: 'boolean' }, { $ref: '#' }],\n default: {},\n },\n items: {\n anyOf: [{ $ref: '#' }, { $ref: '#/definitions/schemaArray' }],\n default: {},\n },\n maxItems: { $ref: '#/definitions/positiveInteger' },\n minItems: { $ref: '#/definitions/positiveIntegerDefault0' },\n uniqueItems: {\n type: 'boolean',\n default: false,\n },\n maxProperties: { $ref: '#/definitions/positiveInteger' },\n minProperties: { $ref: '#/definitions/positiveIntegerDefault0' },\n required: { $ref: '#/definitions/stringArray' },\n additionalProperties: {\n anyOf: [{ type: 'boolean' }, { $ref: '#' }],\n default: {},\n },\n definitions: {\n type: 'object',\n additionalProperties: { $ref: '#' },\n default: {},\n },\n properties: {\n type: 'object',\n additionalProperties: { $ref: '#' },\n default: {},\n },\n patternProperties: {\n type: 'object',\n additionalProperties: { $ref: '#' },\n default: {},\n },\n dependencies: {\n type: 'object',\n additionalProperties: {\n anyOf: [{ $ref: '#' }, { $ref: '#/definitions/stringArray' }],\n },\n },\n enum: {\n type: 'array',\n minItems: 1,\n uniqueItems: true,\n },\n type: {\n anyOf: [\n { $ref: '#/definitions/simpleTypes' },\n {\n type: 'array',\n items: { $ref: '#/definitions/simpleTypes' },\n minItems: 1,\n uniqueItems: true,\n },\n ],\n },\n allOf: { $ref: '#/definitions/schemaArray' },\n anyOf: { $ref: '#/definitions/schemaArray' },\n oneOf: { $ref: '#/definitions/schemaArray' },\n not: { $ref: '#' },\n },\n dependencies: {\n exclusiveMaximum: ['maximum'],\n exclusiveMinimum: ['minimum'],\n },\n default: {},\n};\n\nvar RuleEffect;\n(function (RuleEffect) {\n RuleEffect[\"HIDE\"] = \"HIDE\";\n RuleEffect[\"SHOW\"] = \"SHOW\";\n RuleEffect[\"ENABLE\"] = \"ENABLE\";\n RuleEffect[\"DISABLE\"] = \"DISABLE\";\n RuleEffect[\"READONLY\"] = \"READONLY\";\n RuleEffect[\"WRITABLE\"] = \"WRITABLE\";\n})(RuleEffect || (RuleEffect = {}));\n\nconst setReadonlyPropertyValue = (value) => (child) => {\n if (!child.options) {\n child.options = {};\n }\n child.options.readonly = value;\n};\nconst setReadonly = (uischema) => {\n iterateSchema(uischema, setReadonlyPropertyValue(true));\n};\nconst unsetReadonly = (uischema) => {\n iterateSchema(uischema, setReadonlyPropertyValue(false));\n};\nconst iterateSchema = (uischema, toApply) => {\n if (isEmpty(uischema)) {\n return;\n }\n if (isLayout(uischema)) {\n uischema.elements.forEach((child) => iterateSchema(child, toApply));\n return;\n }\n toApply(uischema);\n};\nconst findUiControl = (uiSchema, path) => {\n if (isControlElement(uiSchema)) {\n if (isScoped(uiSchema) && uiSchema.scope.endsWith(getPropPath(path))) {\n return uiSchema;\n }\n else if (uiSchema.options?.detail) {\n return findUiControl(uiSchema.options.detail, path);\n }\n }\n if (isLayout(uiSchema)) {\n for (const elem of uiSchema.elements) {\n const result = findUiControl(elem, path);\n if (result !== undefined)\n return result;\n }\n }\n return undefined;\n};\nconst composeWithUi = (scopableUi, path) => {\n if (!isScoped(scopableUi)) {\n return path ?? '';\n }\n const segments = toDataPathSegments(scopableUi.scope);\n if (isEmpty(segments)) {\n return path ?? '';\n }\n return compose(path, segments.join('.'));\n};\nconst isInternationalized = (element) => typeof element === 'object' &&\n element !== null &&\n typeof element.i18n === 'string';\nconst isGroup = (layout) => layout.type === 'Group';\nconst isLayout = (uischema) => uischema.elements !== undefined;\nconst isScopable = (obj) => !!obj && typeof obj === 'object';\nconst isScoped = (obj) => isScopable(obj) && typeof obj.scope === 'string';\nconst isLabelable = (obj) => !!obj && typeof obj === 'object';\nconst isLabeled = (obj) => isLabelable(obj) && ['string', 'boolean'].includes(typeof obj.label);\nconst isControlElement = (uiSchema) => uiSchema.type === 'Control';\n\nconst isOrCondition = (condition) => condition.type === 'OR';\nconst isAndCondition = (condition) => condition.type === 'AND';\nconst isLeafCondition = (condition) => condition.type === 'LEAF';\nconst isSchemaCondition = (condition) => has(condition, 'schema');\nconst isValidateFunctionCondition = (condition) => has(condition, 'validate') &&\n typeof condition.validate === 'function';\nconst getConditionScope = (condition, path) => {\n return composeWithUi(condition, path);\n};\nconst evaluateCondition = (data, uischema, condition, path, ajv, config) => {\n if (isAndCondition(condition)) {\n return condition.conditions.reduce((acc, cur) => acc && evaluateCondition(data, uischema, cur, path, ajv, config), true);\n }\n else if (isOrCondition(condition)) {\n return condition.conditions.reduce((acc, cur) => acc || evaluateCondition(data, uischema, cur, path, ajv, config), false);\n }\n else if (isLeafCondition(condition)) {\n const value = resolveData(data, getConditionScope(condition, path));\n return value === condition.expectedValue;\n }\n else if (isSchemaCondition(condition)) {\n const value = resolveData(data, getConditionScope(condition, path));\n if (condition.failWhenUndefined && value === undefined) {\n return false;\n }\n return ajv.validate(condition.schema, value);\n }\n else if (isValidateFunctionCondition(condition)) {\n const value = resolveData(data, getConditionScope(condition, path));\n const context = {\n data: value,\n fullData: data,\n path,\n uischemaElement: uischema,\n config,\n };\n return condition.validate(context);\n }\n else {\n return true;\n }\n};\nconst isRuleFulfilled = (uischema, data, path, ajv, config) => {\n const condition = uischema.rule.condition;\n return evaluateCondition(data, uischema, condition, path, ajv, config);\n};\nconst evalVisibility = (uischema, data, path = undefined, ajv, config) => {\n const fulfilled = isRuleFulfilled(uischema, data, path, ajv, config);\n switch (uischema.rule.effect) {\n case RuleEffect.HIDE:\n return !fulfilled;\n case RuleEffect.SHOW:\n return fulfilled;\n default:\n return true;\n }\n};\nconst evalEnablement = (uischema, data, path = undefined, ajv, config) => {\n const fulfilled = isRuleFulfilled(uischema, data, path, ajv, config);\n switch (uischema.rule.effect) {\n case RuleEffect.DISABLE:\n return !fulfilled;\n case RuleEffect.ENABLE:\n return fulfilled;\n default:\n return true;\n }\n};\nconst evalReadonly = (uischema, data, path = undefined, ajv, config) => {\n const fulfilled = isRuleFulfilled(uischema, data, path, ajv, config);\n switch (uischema.rule.effect) {\n case RuleEffect.WRITABLE:\n return !fulfilled;\n case RuleEffect.READONLY:\n return fulfilled;\n default:\n return false;\n }\n};\nconst hasShowRule = (uischema) => {\n if (uischema.rule &&\n (uischema.rule.effect === RuleEffect.SHOW ||\n uischema.rule.effect === RuleEffect.HIDE)) {\n return true;\n }\n return false;\n};\nconst hasEnableRule = (uischema) => {\n if (uischema.rule &&\n (uischema.rule.effect === RuleEffect.ENABLE ||\n uischema.rule.effect === RuleEffect.DISABLE)) {\n return true;\n }\n return false;\n};\nconst hasReadonlyRule = (uischema) => {\n if (uischema.rule &&\n (uischema.rule.effect === RuleEffect.READONLY ||\n uischema.rule.effect === RuleEffect.WRITABLE)) {\n return true;\n }\n return false;\n};\nconst isVisible = (uischema, data, path = undefined, ajv, config) => {\n if (uischema.rule) {\n return evalVisibility(uischema, data, path, ajv, config);\n }\n return true;\n};\nconst isEnabled = (uischema, data, path = undefined, ajv, config) => {\n if (uischema.rule) {\n return evalEnablement(uischema, data, path, ajv, config);\n }\n return true;\n};\nconst isReadonly = (uischema, data, path = undefined, ajv, config) => {\n if (uischema.rule) {\n return evalReadonly(uischema, data, path, ajv, config);\n }\n return false;\n};\n\nconst convertDateToString = (date, format) => {\n const dateString = date.toISOString();\n if (format === 'date-time') {\n return dateString;\n }\n else if (format === 'date') {\n return dateString.split('T')[0];\n }\n else if (format === 'time') {\n return dateString.split('T')[1].split('.')[0];\n }\n return dateString;\n};\nconst convertToValidClassName = (s) => s.replace('#', 'root').replace(new RegExp('/', 'g'), '_');\nconst hasType = (jsonSchema, expected) => {\n return includes(deriveTypes(jsonSchema), expected);\n};\nconst deriveTypes = (jsonSchema) => {\n if (isEmpty(jsonSchema)) {\n return [];\n }\n if (!isEmpty(jsonSchema.type) && typeof jsonSchema.type === 'string') {\n return [jsonSchema.type];\n }\n if (Array.isArray(jsonSchema.type)) {\n return jsonSchema.type;\n }\n if (!isEmpty(jsonSchema.properties) ||\n !isEmpty(jsonSchema.additionalProperties)) {\n return ['object'];\n }\n if (!isEmpty(jsonSchema.items)) {\n return ['array'];\n }\n if (!isEmpty(jsonSchema.enum)) {\n const types = new Set();\n jsonSchema.enum.forEach((enumElement) => {\n if (typeof enumElement === 'string') {\n types.add('string');\n }\n else {\n deriveTypes(enumElement).forEach((type) => types.add(type));\n }\n });\n return Array.from(types);\n }\n if (!isEmpty(jsonSchema.allOf)) {\n const allOfType = find(jsonSchema.allOf, (schema) => deriveTypes(schema).length !== 0);\n if (allOfType) {\n return deriveTypes(allOfType);\n }\n }\n return [];\n};\nconst Resolve = {\n schema: resolveSchema,\n data: resolveData,\n};\nconst fromScoped = (scopable) => toDataPathSegments(scopable.scope).join('.');\nconst Paths = {\n compose: compose,\n fromScoped,\n};\nconst Runtime = {\n isEnabled(uischema, data, ajv, config) {\n return isEnabled(uischema, data, undefined, ajv, config);\n },\n isVisible(uischema, data, ajv, config) {\n return isVisible(uischema, data, undefined, ajv, config);\n },\n};\n\nconst splitPath = (path) => path.split('.');\nconst isIndexSegment = (segment) => /^(?:0|[1-9]\\d*)$/.test(segment);\nconst stepSchema = (schema, segment, rootSchema) => {\n if (!schema || !rootSchema) {\n return undefined;\n }\n const pointer = hasType(schema, 'array')\n ? Array.isArray(schema.items)\n ? `/items/${segment}`\n : '/items'\n : `/properties/${encode(segment)}`;\n return resolveSchema(schema, pointer, rootSchema);\n};\nconst assign = (container, segment, value) => {\n if (segment === '__proto__') {\n Object.defineProperty(container, segment, {\n value,\n writable: true,\n enumerable: true,\n configurable: true,\n });\n }\n else {\n container[segment] = value;\n }\n return container;\n};\nconst cloneContainer = (data) => {\n if (Array.isArray(data)) {\n return [...data];\n }\n if (typeof data === 'object' && data !== null) {\n const clone = {};\n for (const key of Object.keys(data)) {\n assign(clone, key, data[key]);\n }\n return clone;\n }\n return {};\n};\nconst ownPropertyValue = (data, segment) => data !== null &&\n data !== undefined &&\n Object.prototype.hasOwnProperty.call(data, segment)\n ? data[segment]\n : undefined;\nconst createInitialContainer = (childSchema, nextSegment) => {\n const types = childSchema ? deriveTypes(childSchema) : [];\n if (types.includes('array')) {\n return [];\n }\n if (types.length > 0) {\n return {};\n }\n return isIndexSegment(nextSegment) ? [] : {};\n};\nconst setDataAt = (data, path, value, rootSchema) => {\n if (path === '') {\n return value;\n }\n return doSet(data, splitPath(path), 0, value, rootSchema, rootSchema);\n};\nconst doSet = (data, segments, index, value, currentSchema, rootSchema) => {\n const segment = segments[index];\n const container = cloneContainer(data);\n if (index === segments.length - 1) {\n return assign(container, segment, value);\n }\n const childSchema = stepSchema(currentSchema, segment, rootSchema);\n const existingChild = ownPropertyValue(data, segment);\n const child = existingChild !== null && typeof existingChild === 'object'\n ? existingChild\n : createInitialContainer(childSchema, segments[index + 1]);\n const nextValue = doSet(child, segments, index + 1, value, childSchema, rootSchema);\n return assign(container, segment, nextValue);\n};\nconst unsetDataAt = (data, path) => {\n if (path === '') {\n return data;\n }\n return doUnset(data, splitPath(path), 0);\n};\nconst doUnset = (data, segments, index) => {\n if (data === null || typeof data !== 'object') {\n return data;\n }\n const segment = segments[index];\n if (index === segments.length - 1) {\n if (!Object.prototype.hasOwnProperty.call(data, segment)) {\n return data;\n }\n if (Array.isArray(data)) {\n if (!isIndexSegment(segment)) {\n return data;\n }\n const container = [...data];\n delete container[Number(segment)];\n return container;\n }\n const container = cloneContainer(data);\n delete container[segment];\n return container;\n }\n const existingChild = ownPropertyValue(data, segment);\n if (existingChild === null || typeof existingChild !== 'object') {\n return data;\n }\n const nextValue = doUnset(existingChild, segments, index + 1);\n if (nextValue === existingChild) {\n return data;\n }\n return assign(cloneContainer(data), segment, nextValue);\n};\n\nconst getFirstPrimitiveProp = (schema) => {\n if (schema &&\n typeof schema === 'object' &&\n 'properties' in schema &&\n schema.properties) {\n return find(Object.keys(schema.properties), (propName) => {\n const prop = schema.properties[propName];\n return (prop &&\n typeof prop === 'object' &&\n 'type' in prop &&\n (prop.type === 'string' ||\n prop.type === 'number' ||\n prop.type === 'integer'));\n });\n }\n return undefined;\n};\nconst isOneOfEnumSchema = (schema) => !!schema &&\n Object.prototype.hasOwnProperty.call(schema, 'oneOf') &&\n schema.oneOf &&\n schema.oneOf.every((s) => s.const !== undefined);\nconst isEnumSchema = (schema) => !!schema &&\n typeof schema === 'object' &&\n (Object.prototype.hasOwnProperty.call(schema, 'enum') ||\n Object.prototype.hasOwnProperty.call(schema, 'const'));\n\nconst createAjv = (options) => {\n const ajv = new Ajv({\n allErrors: true,\n verbose: true,\n strict: false,\n addUsedSchema: false,\n ...options,\n });\n addFormats(ajv);\n return ajv;\n};\nconst validate = (validator, data) => {\n if (validator === undefined) {\n return [];\n }\n const valid = validator(data);\n if (valid) {\n return [];\n }\n return validator.errors;\n};\n\nconst defaultDateFormat = 'YYYY-MM-DD';\nconst defaultTimeFormat = 'HH:mm:ss';\nconst defaultDateTimeFormat = 'YYYY-MM-DDTHH:mm:ss.sssZ';\n\nconst getInvalidProperty = (error) => {\n switch (error.keyword) {\n case 'required':\n case 'dependencies':\n return error.params.missingProperty;\n case 'additionalProperties':\n return error.params.additionalProperty;\n default:\n return undefined;\n }\n};\nconst getControlPath = (error) => {\n let controlPath = error.dataPath || error.instancePath || '';\n controlPath = controlPath.replace(/\\//g, '.');\n const invalidProperty = getInvalidProperty(error);\n if (invalidProperty !== undefined) {\n controlPath = `${controlPath}.${invalidProperty}`;\n }\n controlPath = controlPath.replace(/^\\./, '');\n controlPath = decode(controlPath);\n return controlPath;\n};\nconst errorsAt = (instancePath, schema, matchPath) => (errors) => {\n const combinatorPaths = filter(errors, (error) => error.keyword === 'oneOf' || error.keyword === 'anyOf').map((error) => getControlPath(error));\n return filter(errors, (error) => {\n if (filteredErrorKeywords.indexOf(error.keyword) !== -1 &&\n !isOneOfEnumSchema(error.parentSchema)) {\n return false;\n }\n const controlPath = getControlPath(error);\n let result = matchPath(controlPath);\n const parentSchema = error.parentSchema;\n if (result &&\n !isObjectSchema(parentSchema) &&\n !isOneOfEnumSchema(parentSchema) &&\n combinatorPaths.findIndex((p) => instancePath.startsWith(p)) !== -1) {\n result = result && isEqual(parentSchema, schema);\n }\n return result;\n });\n};\nconst isObjectSchema = (schema) => {\n return schema?.type === 'object' || !!schema?.properties;\n};\nconst filteredErrorKeywords = [\n 'additionalProperties',\n 'allOf',\n 'anyOf',\n 'oneOf',\n];\nconst formatErrorMessage = (errors) => {\n if (errors === undefined || errors === null) {\n return '';\n }\n return errors.join('\\n');\n};\n\nconst Helpers = {\n createLabelDescriptionFrom,\n convertToValidClassName,\n};\n\nconst createLayout = (layoutType) => ({\n type: layoutType,\n elements: [],\n});\nconst createControlElement = (ref) => ({\n type: 'Control',\n scope: ref,\n});\nconst wrapInLayoutIfNecessary = (uischema, layoutType) => {\n if (!isEmpty(uischema) && !isLayout(uischema)) {\n const verticalLayout = createLayout(layoutType);\n verticalLayout.elements.push(uischema);\n return verticalLayout;\n }\n return uischema;\n};\nconst addLabel = (layout, labelName) => {\n if (!isEmpty(labelName)) {\n const fixedLabel = startCase(labelName);\n if (isGroup(layout)) {\n layout.label = fixedLabel;\n }\n else {\n const label = {\n type: 'Label',\n text: fixedLabel,\n };\n layout.elements.push(label);\n }\n }\n};\nconst isCombinator = (jsonSchema) => {\n return (!isEmpty(jsonSchema) &&\n (!isEmpty(jsonSchema.oneOf) ||\n !isEmpty(jsonSchema.anyOf) ||\n !isEmpty(jsonSchema.allOf)));\n};\nconst generateUISchema = (jsonSchema, schemaElements, currentRef, schemaName, layoutType, rootSchema) => {\n if (!isEmpty(jsonSchema) && jsonSchema.$ref !== undefined) {\n return generateUISchema(resolveSchema(rootSchema, jsonSchema.$ref, rootSchema), schemaElements, currentRef, schemaName, layoutType, rootSchema);\n }\n if (isCombinator(jsonSchema)) {\n const controlObject = createControlElement(currentRef);\n schemaElements.push(controlObject);\n return controlObject;\n }\n const types = deriveTypes(jsonSchema);\n if (types.length === 0) {\n return null;\n }\n const nonNullTypes = types.filter((t) => t !== 'null');\n const effectiveTypes = nonNullTypes.length > 0 ? nonNullTypes : types;\n if (effectiveTypes.length > 1) {\n const controlObject = createControlElement(currentRef);\n schemaElements.push(controlObject);\n return controlObject;\n }\n if (currentRef === '#' && effectiveTypes[0] === 'object') {\n const layout = createLayout(layoutType);\n schemaElements.push(layout);\n if (jsonSchema.properties && keys(jsonSchema.properties).length > 1) {\n addLabel(layout, schemaName);\n }\n if (!isEmpty(jsonSchema.properties)) {\n const nextRef = currentRef + '/properties';\n Object.keys(jsonSchema.properties).map((propName) => {\n let value = jsonSchema.properties[propName];\n const ref = `${nextRef}/${encode(propName)}`;\n if (value.$ref !== undefined) {\n value = resolveSchema(rootSchema, value.$ref, rootSchema);\n }\n generateUISchema(value, layout.elements, ref, propName, layoutType, rootSchema);\n });\n }\n return layout;\n }\n switch (effectiveTypes[0]) {\n case 'object':\n case 'array':\n case 'string':\n case 'number':\n case 'integer':\n case 'null':\n case 'boolean': {\n const controlObject = createControlElement(currentRef);\n schemaElements.push(controlObject);\n return controlObject;\n }\n default:\n throw new Error('Unknown type: ' + JSON.stringify(jsonSchema));\n }\n};\nconst generateDefaultUISchema = (jsonSchema, layoutType = 'VerticalLayout', prefix = '#', rootSchema = jsonSchema) => wrapInLayoutIfNecessary(generateUISchema(jsonSchema, [], prefix, '', layoutType, rootSchema), layoutType) ?? createLayout(layoutType);\n\nconst Generate = {\n jsonSchema: generateJsonSchema,\n uiSchema: generateDefaultUISchema,\n controlElement: createControlElement,\n};\n\nconst INIT = 'jsonforms/INIT';\nconst UPDATE_CORE = 'jsonforms/UPDATE_CORE';\nconst SET_AJV = 'jsonforms/SET_AJV';\nconst UPDATE_DATA = 'jsonforms/UPDATE';\nconst UPDATE_ERRORS = 'jsonforms/UPDATE_ERRORS';\nconst VALIDATE = 'jsonforms/VALIDATE';\nconst ADD_RENDERER = 'jsonforms/ADD_RENDERER';\nconst REMOVE_RENDERER = 'jsonforms/REMOVE_RENDERER';\nconst ADD_CELL = 'jsonforms/ADD_CELL';\nconst REMOVE_CELL = 'jsonforms/REMOVE_CELL';\nconst SET_CONFIG = 'jsonforms/SET_CONFIG';\nconst ADD_UI_SCHEMA = 'jsonforms/ADD_UI_SCHEMA';\nconst REMOVE_UI_SCHEMA = 'jsonforms/REMOVE_UI_SCHEMA';\nconst SET_SCHEMA = 'jsonforms/SET_SCHEMA';\nconst SET_UISCHEMA = 'jsonforms/SET_UISCHEMA';\nconst SET_VALIDATION_MODE = 'jsonforms/SET_VALIDATION_MODE';\nconst SET_LOCALE = 'jsonforms/SET_LOCALE';\nconst SET_TRANSLATOR = 'jsonforms/SET_TRANSLATOR';\nconst UPDATE_I18N = 'jsonforms/UPDATE_I18N';\nconst ADD_DEFAULT_DATA = 'jsonforms/ADD_DEFAULT_DATA';\nconst REMOVE_DEFAULT_DATA = 'jsonforms/REMOVE_DEFAULT_DATA';\nconst isUpdateArrayContext = (context) => {\n if (!('type' in context)) {\n return false;\n }\n if (typeof context.type !== 'string') {\n return false;\n }\n switch (context.type) {\n case 'ADD': {\n return ('values' in context &&\n Array.isArray(context.values) &&\n context.values.length > 0);\n }\n case 'REMOVE': {\n return ('indices' in context &&\n Array.isArray(context.indices) &&\n context.indices.length > 0 &&\n context.indices.every((i) => typeof i === 'number'));\n }\n case 'MOVE': {\n return ('moves' in context &&\n Array.isArray(context.moves) &&\n context.moves.length > 0 &&\n context.moves.every((m) => typeof m === 'object' &&\n m !== null &&\n 'from' in m &&\n 'to' in m &&\n typeof m.from === 'number' &&\n typeof m.to === 'number'));\n }\n default:\n return false;\n }\n};\nconst init = (data, schema = generateJsonSchema(data), uischema, options) => ({\n type: INIT,\n data,\n schema,\n uischema: typeof uischema === 'object' ? uischema : generateDefaultUISchema(schema),\n options,\n});\nconst updateCore = (data, schema, uischema, options) => ({\n type: UPDATE_CORE,\n data,\n schema,\n uischema,\n options,\n});\nconst registerDefaultData = (schemaPath, data) => ({\n type: ADD_DEFAULT_DATA,\n schemaPath,\n data,\n});\nconst unregisterDefaultData = (schemaPath) => ({\n type: REMOVE_DEFAULT_DATA,\n schemaPath,\n});\nconst setAjv = (ajv) => ({\n type: SET_AJV,\n ajv,\n});\nconst update = (path, updater, context) => ({\n type: UPDATE_DATA,\n path,\n updater,\n context,\n});\nconst updateErrors = (errors) => ({\n type: UPDATE_ERRORS,\n errors,\n});\nconst registerRenderer = (tester, renderer) => ({\n type: ADD_RENDERER,\n tester,\n renderer,\n});\nconst registerCell = (tester, cell) => ({\n type: ADD_CELL,\n tester,\n cell,\n});\nconst unregisterCell = (tester, cell) => ({\n type: REMOVE_CELL,\n tester,\n cell,\n});\nconst unregisterRenderer = (tester, renderer) => ({\n type: REMOVE_RENDERER,\n tester,\n renderer,\n});\nconst setConfig = (config) => ({\n type: SET_CONFIG,\n config,\n});\nconst setValidationMode = (validationMode) => ({\n type: SET_VALIDATION_MODE,\n validationMode,\n});\nconst registerUISchema = (tester, uischema) => {\n return {\n type: ADD_UI_SCHEMA,\n tester,\n uischema,\n };\n};\nconst unregisterUISchema = (tester) => {\n return {\n type: REMOVE_UI_SCHEMA,\n tester,\n };\n};\nconst setLocale = (locale) => ({\n type: SET_LOCALE,\n locale,\n});\nconst setSchema = (schema) => ({\n type: SET_SCHEMA,\n schema,\n});\nconst setTranslator = (translator, errorTranslator) => ({\n type: SET_TRANSLATOR,\n translator,\n errorTranslator,\n});\nconst updateI18n = (locale, translator, errorTranslator) => ({\n type: UPDATE_I18N,\n locale,\n translator,\n errorTranslator,\n});\nconst setUISchema = (uischema) => ({\n type: SET_UISCHEMA,\n uischema,\n});\n\nvar index$1 = /*#__PURE__*/Object.freeze({\n __proto__: null,\n INIT: INIT,\n UPDATE_CORE: UPDATE_CORE,\n SET_AJV: SET_AJV,\n UPDATE_DATA: UPDATE_DATA,\n UPDATE_ERRORS: UPDATE_ERRORS,\n VALIDATE: VALIDATE,\n ADD_RENDERER: ADD_RENDERER,\n REMOVE_RENDERER: REMOVE_RENDERER,\n ADD_CELL: ADD_CELL,\n REMOVE_CELL: REMOVE_CELL,\n SET_CONFIG: SET_CONFIG,\n ADD_UI_SCHEMA: ADD_UI_SCHEMA,\n REMOVE_UI_SCHEMA: REMOVE_UI_SCHEMA,\n SET_SCHEMA: SET_SCHEMA,\n SET_UISCHEMA: SET_UISCHEMA,\n SET_VALIDATION_MODE: SET_VALIDATION_MODE,\n SET_LOCALE: SET_LOCALE,\n SET_TRANSLATOR: SET_TRANSLATOR,\n UPDATE_I18N: UPDATE_I18N,\n ADD_DEFAULT_DATA: ADD_DEFAULT_DATA,\n REMOVE_DEFAULT_DATA: REMOVE_DEFAULT_DATA,\n isUpdateArrayContext: isUpdateArrayContext,\n init: init,\n updateCore: updateCore,\n registerDefaultData: registerDefaultData,\n unregisterDefaultData: unregisterDefaultData,\n setAjv: setAjv,\n update: update,\n updateErrors: updateErrors,\n registerRenderer: registerRenderer,\n registerCell: registerCell,\n unregisterCell: unregisterCell,\n unregisterRenderer: unregisterRenderer,\n setConfig: setConfig,\n setValidationMode: setValidationMode,\n registerUISchema: registerUISchema,\n unregisterUISchema: unregisterUISchema,\n setLocale: setLocale,\n setSchema: setSchema,\n setTranslator: setTranslator,\n updateI18n: updateI18n,\n setUISchema: setUISchema\n});\n\nconst cellReducer = (state = [], { type, tester, cell }) => {\n switch (type) {\n case ADD_CELL:\n return state.concat([{ tester, cell }]);\n case REMOVE_CELL:\n return state.filter((t) => t.tester !== tester);\n default:\n return state;\n }\n};\n\nconst configDefault = {\n restrict: false,\n trim: false,\n showUnfocusedDescription: false,\n hideRequiredAsterisk: false,\n separateReadonlyFromDisabled: false,\n};\n\nconst applyDefaultConfiguration = (config = {}) => merge({}, configDefault, config);\nconst configReducer = (state = applyDefaultConfiguration(), action) => {\n switch (action.type) {\n case SET_CONFIG:\n return applyDefaultConfiguration(action.config);\n default:\n return state;\n }\n};\n\nconst initState = {\n data: {},\n schema: {},\n uischema: undefined,\n errors: [],\n validator: undefined,\n ajv: undefined,\n validationMode: 'ValidateAndShow',\n additionalErrors: [],\n};\nconst getValidationMode = (state, action) => {\n if (action && hasValidationModeOption(action.options)) {\n return action.options.validationMode;\n }\n return state.validationMode;\n};\nconst hasValidationModeOption = (option) => {\n if (option) {\n return option.validationMode !== undefined;\n }\n return false;\n};\nconst hasAdditionalErrorsOption = (option) => {\n if (option) {\n return option.additionalErrors !== undefined;\n }\n return false;\n};\nconst getAdditionalErrors = (state, action) => {\n if (action && hasAdditionalErrorsOption(action.options)) {\n return action.options.additionalErrors;\n }\n return state.additionalErrors;\n};\nconst getOrCreateAjv = (state, action) => {\n if (action) {\n if (hasAjvOption(action.options)) {\n return action.options.ajv;\n }\n else if (action.options !== undefined) {\n if (isFunction(action.options.compile)) {\n return action.options;\n }\n }\n }\n return state.ajv ? state.ajv : createAjv();\n};\nconst hasAjvOption = (option) => {\n if (option) {\n return option.ajv !== undefined;\n }\n return false;\n};\nconst coreReducer = (state = initState, action) => {\n switch (action.type) {\n case INIT: {\n const thisAjv = getOrCreateAjv(state, action);\n const validationMode = getValidationMode(state, action);\n const v = validationMode === 'NoValidation'\n ? undefined\n : thisAjv.compile(action.schema);\n const e = validate(v, action.data);\n const additionalErrors = getAdditionalErrors(state, action);\n return {\n ...state,\n data: action.data,\n schema: action.schema,\n uischema: action.uischema,\n additionalErrors,\n errors: e,\n validator: v,\n ajv: thisAjv,\n validationMode,\n };\n }\n case UPDATE_CORE: {\n const thisAjv = getOrCreateAjv(state, action);\n const validationMode = getValidationMode(state, action);\n let validator = state.validator;\n let errors = state.errors;\n if (state.schema !== action.schema ||\n state.validationMode !== validationMode ||\n state.ajv !== thisAjv) {\n validator =\n validationMode === 'NoValidation'\n ? undefined\n : thisAjv.compile(action.schema);\n errors = validate(validator, action.data);\n }\n else if (state.data !== action.data) {\n errors = validate(validator, action.data);\n }\n const additionalErrors = getAdditionalErrors(state, action);\n const stateChanged = state.data !== action.data ||\n state.schema !== action.schema ||\n state.uischema !== action.uischema ||\n state.ajv !== thisAjv ||\n state.errors !== errors ||\n state.validator !== validator ||\n state.validationMode !== validationMode ||\n state.additionalErrors !== additionalErrors;\n return stateChanged\n ? {\n ...state,\n data: action.data,\n schema: action.schema,\n uischema: action.uischema,\n ajv: thisAjv,\n errors: isEqual(errors, state.errors) ? state.errors : errors,\n validator: validator,\n validationMode: validationMode,\n additionalErrors,\n }\n : state;\n }\n case SET_AJV: {\n const currentAjv = action.ajv;\n const validator = state.validationMode === 'NoValidation'\n ? undefined\n : currentAjv.compile(state.schema);\n const errors = validate(validator, state.data);\n return {\n ...state,\n ajv: currentAjv,\n validator,\n errors,\n };\n }\n case SET_SCHEMA: {\n const needsNewValidator = action.schema && state.ajv && state.validationMode !== 'NoValidation';\n const v = needsNewValidator\n ? state.ajv.compile(action.schema)\n : state.validator;\n const errors = validate(v, state.data);\n return {\n ...state,\n validator: v,\n schema: action.schema,\n errors,\n };\n }\n case SET_UISCHEMA: {\n return {\n ...state,\n uischema: action.uischema,\n };\n }\n case UPDATE_DATA: {\n if (action.path === undefined || action.path === null) {\n return state;\n }\n else if (action.path === '') {\n const result = action.updater(cloneDeep(state.data));\n const errors = validate(state.validator, result);\n return {\n ...state,\n data: result,\n errors,\n };\n }\n else {\n const oldData = resolveData(state.data, action.path);\n const newData = action.updater(cloneDeep(oldData));\n let newState;\n if (newData !== undefined) {\n newState = setDataAt(state.data === undefined ? {} : state.data, action.path, newData, state.schema);\n }\n else {\n newState = unsetDataAt(state.data === undefined ? {} : state.data, action.path);\n }\n const errors = validate(state.validator, newState);\n return {\n ...state,\n data: newState,\n errors,\n };\n }\n }\n case UPDATE_ERRORS: {\n return {\n ...state,\n errors: action.errors,\n };\n }\n case SET_VALIDATION_MODE: {\n if (state.validationMode === action.validationMode) {\n return state;\n }\n if (action.validationMode === 'NoValidation') {\n const errors = validate(undefined, state.data);\n return {\n ...state,\n errors,\n validationMode: action.validationMode,\n };\n }\n if (state.validationMode === 'NoValidation') {\n const validator = state.ajv.compile(state.schema);\n const errors = validate(validator, state.data);\n return {\n ...state,\n validator,\n errors,\n validationMode: action.validationMode,\n };\n }\n return {\n ...state,\n validationMode: action.validationMode,\n };\n }\n default:\n return state;\n }\n};\n\nconst defaultDataReducer = (state = [], action) => {\n switch (action.type) {\n case ADD_DEFAULT_DATA:\n return state.concat([\n { schemaPath: action.schemaPath, data: action.data },\n ]);\n case REMOVE_DEFAULT_DATA:\n return state.filter((t) => t.schemaPath !== action.schemaPath);\n default:\n return state;\n }\n};\nconst getDefaultData = (state) => extractDefaultData(get(state, 'jsonforms.defaultData'));\nconst extractDefaultData = (state) => state;\n\nvar ArrayTranslationEnum;\n(function (ArrayTranslationEnum) {\n ArrayTranslationEnum[\"addTooltip\"] = \"addTooltip\";\n ArrayTranslationEnum[\"addAriaLabel\"] = \"addAriaLabel\";\n ArrayTranslationEnum[\"removeTooltip\"] = \"removeTooltip\";\n ArrayTranslationEnum[\"upAriaLabel\"] = \"upAriaLabel\";\n ArrayTranslationEnum[\"downAriaLabel\"] = \"downAriaLabel\";\n ArrayTranslationEnum[\"noSelection\"] = \"noSelection\";\n ArrayTranslationEnum[\"removeAriaLabel\"] = \"removeAriaLabel\";\n ArrayTranslationEnum[\"noDataMessage\"] = \"noDataMessage\";\n ArrayTranslationEnum[\"deleteDialogTitle\"] = \"deleteDialogTitle\";\n ArrayTranslationEnum[\"deleteDialogMessage\"] = \"deleteDialogMessage\";\n ArrayTranslationEnum[\"deleteDialogAccept\"] = \"deleteDialogAccept\";\n ArrayTranslationEnum[\"deleteDialogDecline\"] = \"deleteDialogDecline\";\n ArrayTranslationEnum[\"up\"] = \"up\";\n ArrayTranslationEnum[\"down\"] = \"down\";\n})(ArrayTranslationEnum || (ArrayTranslationEnum = {}));\nconst arrayDefaultTranslations = [\n {\n key: ArrayTranslationEnum.addTooltip,\n default: (input) => (input ? `Add to ${input}` : 'Add'),\n },\n {\n key: ArrayTranslationEnum.addAriaLabel,\n default: (input) => (input ? `Add to ${input} button` : 'Add button'),\n },\n { key: ArrayTranslationEnum.removeTooltip, default: () => 'Delete' },\n { key: ArrayTranslationEnum.removeAriaLabel, default: () => 'Delete button' },\n { key: ArrayTranslationEnum.upAriaLabel, default: () => `Move item up` },\n { key: ArrayTranslationEnum.up, default: () => 'Up' },\n { key: ArrayTranslationEnum.down, default: () => 'Down' },\n { key: ArrayTranslationEnum.downAriaLabel, default: () => `Move item down` },\n { key: ArrayTranslationEnum.noDataMessage, default: () => 'No data' },\n { key: ArrayTranslationEnum.noSelection, default: () => 'No selection' },\n {\n key: ArrayTranslationEnum.deleteDialogTitle,\n default: () => 'Confirm Deletion',\n },\n {\n key: ArrayTranslationEnum.deleteDialogMessage,\n default: () => 'Are you sure you want to delete the selected entry?',\n },\n { key: ArrayTranslationEnum.deleteDialogAccept, default: () => 'Yes' },\n { key: ArrayTranslationEnum.deleteDialogDecline, default: () => 'No' },\n];\n\nvar CombinatorTranslationEnum;\n(function (CombinatorTranslationEnum) {\n CombinatorTranslationEnum[\"clearDialogTitle\"] = \"clearDialogTitle\";\n CombinatorTranslationEnum[\"clearDialogMessage\"] = \"clearDialogMessage\";\n CombinatorTranslationEnum[\"clearDialogAccept\"] = \"clearDialogAccept\";\n CombinatorTranslationEnum[\"clearDialogDecline\"] = \"clearDialogDecline\";\n})(CombinatorTranslationEnum || (CombinatorTranslationEnum = {}));\nconst combinatorDefaultTranslations = [\n {\n key: CombinatorTranslationEnum.clearDialogTitle,\n default: () => 'Clear form?',\n },\n {\n key: CombinatorTranslationEnum.clearDialogMessage,\n default: () => 'Your data will be cleared. Do you want to proceed?',\n },\n { key: CombinatorTranslationEnum.clearDialogAccept, default: () => 'Yes' },\n { key: CombinatorTranslationEnum.clearDialogDecline, default: () => 'No' },\n];\n\nconst getI18nKeyPrefixBySchema = (schema, uischema) => {\n if (isInternationalized(uischema)) {\n return uischema.i18n;\n }\n return schema?.i18n ?? undefined;\n};\nconst transformPathToI18nPrefix = (path) => {\n return (path\n ?.split('.')\n .filter((segment) => !/^\\d+$/.test(segment))\n .join('.') || 'root');\n};\nconst getI18nKeyPrefix = (schema, uischema, path) => {\n return (getI18nKeyPrefixBySchema(schema, uischema) ??\n transformPathToI18nPrefix(path));\n};\nconst getI18nKey = (schema, uischema, path, key) => {\n return `${getI18nKeyPrefix(schema, uischema, path)}.${key}`;\n};\nconst addI18nKeyToPrefix = (i18nKeyPrefix, key) => {\n return `${i18nKeyPrefix}.${key}`;\n};\nconst createTranslator = (fn) => (id, defaultMessage, values) => {\n const translation = fn(id, defaultMessage, values);\n if (translation === undefined) {\n return defaultMessage;\n }\n return translation;\n};\nconst defaultTranslator = createTranslator((_id, defaultMessage) => defaultMessage);\nconst defaultErrorTranslator = (error, t, uischema) => {\n const i18nKey = getI18nKey(error.parentSchema, uischema, getControlPath(error), `error.${error.keyword}`);\n const specializedKeywordMessage = t(i18nKey, undefined, { error });\n if (specializedKeywordMessage !== undefined) {\n return specializedKeywordMessage;\n }\n const genericKeywordMessage = t(`error.${error.keyword}`, undefined, {\n error,\n });\n if (genericKeywordMessage !== undefined) {\n return genericKeywordMessage;\n }\n const messageCustomization = t(error.message, undefined, { error });\n if (messageCustomization !== undefined) {\n return messageCustomization;\n }\n if (error.keyword === 'required' &&\n error.message?.startsWith('must have required property')) {\n return t('is a required property', 'is a required property', { error });\n }\n return error.message;\n};\nconst getCombinedErrorMessage = (errors, et, t, schema, uischema, path) => {\n if (errors.length > 0 && t) {\n const customErrorKey = getI18nKey(schema, uischema, path, 'error.custom');\n const specializedErrorMessage = t(customErrorKey, undefined, {\n schema,\n uischema,\n path,\n errors,\n });\n if (specializedErrorMessage !== undefined) {\n return specializedErrorMessage;\n }\n }\n return formatErrorMessage(errors.map((error) => et(error, t, uischema)));\n};\nconst deriveLabelForUISchemaElement = (uischema, t) => {\n if (uischema.label === false) {\n return undefined;\n }\n if ((uischema.label === undefined ||\n uischema.label === null ||\n uischema.label === true) &&\n !isInternationalized(uischema)) {\n return undefined;\n }\n const stringifiedLabel = typeof uischema.label === 'string'\n ? uischema.label\n : JSON.stringify(uischema.label);\n const i18nKeyPrefix = getI18nKeyPrefixBySchema(undefined, uischema);\n const i18nKey = typeof i18nKeyPrefix === 'string'\n ? `${i18nKeyPrefix}.label`\n : stringifiedLabel;\n return t(i18nKey, stringifiedLabel, { uischema: uischema });\n};\nconst getArrayTranslations = (t, defaultTranslations, i18nKeyPrefix, label) => {\n const translations = {};\n defaultTranslations.forEach((controlElement) => {\n const key = addI18nKeyToPrefix(i18nKeyPrefix, controlElement.key);\n translations[controlElement.key] = t(key, controlElement.default(label));\n });\n return translations;\n};\nconst getCombinatorTranslations = (t, defaultTranslations, i18nKeyPrefix, label) => {\n const translations = {};\n defaultTranslations.forEach((controlElement) => {\n const key = addI18nKeyToPrefix(i18nKeyPrefix, controlElement.key);\n translations[controlElement.key] = t(key, controlElement.default(label));\n });\n return translations;\n};\n\nconst fetchLocale = (state) => {\n if (state === undefined) {\n return undefined;\n }\n return state.locale;\n};\nconst fetchTranslator = (state) => {\n if (state === undefined) {\n return defaultTranslator;\n }\n return state.translate;\n};\nconst fetchErrorTranslator = (state) => {\n if (state === undefined) {\n return defaultErrorTranslator;\n }\n return state.translateError;\n};\nconst getLocale = (state) => fetchLocale(get(state, 'jsonforms.i18n'));\nconst getTranslator = () => (state) => fetchTranslator(get(state, 'jsonforms.i18n'));\nconst getErrorTranslator = () => (state) => fetchErrorTranslator(get(state, 'jsonforms.i18n'));\n\nconst defaultJsonFormsI18nState = {\n locale: 'en',\n translate: defaultTranslator,\n translateError: defaultErrorTranslator,\n};\nconst i18nReducer = (state = defaultJsonFormsI18nState, action) => {\n switch (action.type) {\n case UPDATE_I18N: {\n const locale = action.locale ?? defaultJsonFormsI18nState.locale;\n const translate = action.translator ?? defaultJsonFormsI18nState.translate;\n const translateError = action.errorTranslator ?? defaultJsonFormsI18nState.translateError;\n if (locale !== state.locale ||\n translate !== state.translate ||\n translateError !== state.translateError) {\n return {\n ...state,\n locale,\n translate,\n translateError,\n };\n }\n return state;\n }\n case SET_TRANSLATOR:\n return {\n ...state,\n translate: action.translator ?? defaultTranslator,\n translateError: action.errorTranslator ?? defaultErrorTranslator,\n };\n case SET_LOCALE:\n return {\n ...state,\n locale: action.locale ?? navigator.languages[0],\n };\n default:\n return state;\n }\n};\n\nconst rendererReducer = (state = [], action) => {\n switch (action.type) {\n case ADD_RENDERER:\n return state.concat([\n { tester: action.tester, renderer: action.renderer },\n ]);\n case REMOVE_RENDERER:\n return state.filter((t) => t.tester !== action.tester);\n default:\n return state;\n }\n};\n\nconst NOT_APPLICABLE = -1;\nconst isControl = (uischema) => !isEmpty(uischema) && uischema.scope !== undefined;\nconst schemaMatches = (predicate) => (uischema, schema, context) => {\n if (isEmpty(uischema) || !isControl(uischema)) {\n return false;\n }\n if (isEmpty(schema)) {\n return false;\n }\n const schemaPath = uischema.scope;\n if (isEmpty(schemaPath)) {\n return false;\n }\n let currentDataSchema = schema;\n if (hasType(schema, 'object')) {\n currentDataSchema = resolveSchema(schema, schemaPath, context?.rootSchema);\n }\n if (currentDataSchema === undefined) {\n return false;\n }\n return predicate(currentDataSchema, context?.rootSchema);\n};\nconst schemaSubPathMatches = (subPath, predicate) => (uischema, schema, context) => {\n if (isEmpty(uischema) || !isControl(uischema)) {\n return false;\n }\n const schemaPath = uischema.scope;\n let currentDataSchema = schema;\n if (hasType(schema, 'object')) {\n currentDataSchema = resolveSchema(schema, schemaPath, context?.rootSchema);\n }\n currentDataSchema = get(currentDataSchema, subPath);\n if (currentDataSchema === undefined) {\n return false;\n }\n return predicate(currentDataSchema, context?.rootSchema);\n};\nconst schemaTypeIs = (expectedType) => schemaMatches((schema) => !isEmpty(schema) && hasType(schema, expectedType));\nconst formatIs = (expectedFormat) => schemaMatches((schema) => !isEmpty(schema) &&\n schema.format === expectedFormat &&\n hasType(schema, 'string'));\nconst uiTypeIs = (expected) => (uischema) => !isEmpty(uischema) && uischema.type === expected;\nconst optionIs = (optionName, optionValue) => (uischema) => {\n if (isEmpty(uischema)) {\n return false;\n }\n const options = uischema.options;\n return !isEmpty(options) && options[optionName] === optionValue;\n};\nconst hasOption = (optionName) => (uischema) => {\n if (isEmpty(uischema)) {\n return false;\n }\n const options = uischema.options;\n return !isEmpty(options) && !isUndefined(options[optionName]);\n};\nconst scopeEndsWith = (expected) => (uischema) => {\n if (isEmpty(expected) || !isControl(uischema)) {\n return false;\n }\n return endsWith(uischema.scope, expected);\n};\nconst scopeEndIs = (expected) => (uischema) => {\n if (isEmpty(expected) || !isControl(uischema)) {\n return false;\n }\n const schemaPath = uischema.scope;\n return !isEmpty(schemaPath) && last(schemaPath.split('/')) === expected;\n};\nconst and = (...testers) => (uischema, schema, context) => testers.reduce((acc, tester) => acc && tester(uischema, schema, context), true);\nconst or = (...testers) => (uischema, schema, context) => testers.reduce((acc, tester) => acc || tester(uischema, schema, context), false);\nconst rankWith = (rank, tester) => (uischema, schema, context) => {\n if (tester(uischema, schema, context)) {\n return rank;\n }\n return NOT_APPLICABLE;\n};\nconst withIncreasedRank = (by, rankedTester) => (uischema, schema, context) => {\n const rank = rankedTester(uischema, schema, context);\n if (rank === NOT_APPLICABLE) {\n return NOT_APPLICABLE;\n }\n return rank + by;\n};\nconst isBooleanControl = and(uiTypeIs('Control'), schemaTypeIs('boolean'));\nconst isObjectControl = and(uiTypeIs('Control'), schemaTypeIs('object'));\nconst isAllOfControl = and(uiTypeIs('Control'), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, 'allOf')));\nconst isAnyOfControl = and(uiTypeIs('Control'), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, 'anyOf')));\nconst isOneOfControl = and(uiTypeIs('Control'), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, 'oneOf')));\nconst isEnumControl = and(uiTypeIs('Control'), schemaMatches((schema) => isEnumSchema(schema)));\nconst isOneOfEnumControl = and(uiTypeIs('Control'), schemaMatches((schema) => isOneOfEnumSchema(schema)));\nconst isIntegerControl = and(uiTypeIs('Control'), schemaTypeIs('integer'));\nconst isNumberControl = and(uiTypeIs('Control'), schemaTypeIs('number'));\nconst isStringControl = and(uiTypeIs('Control'), schemaTypeIs('string'));\nconst isMultiLineControl = and(uiTypeIs('Control'), optionIs('multi', true));\nconst isDateControl = and(uiTypeIs('Control'), or(formatIs('date'), optionIs('format', 'date')));\nconst isTimeControl = and(uiTypeIs('Control'), or(formatIs('time'), optionIs('format', 'time')));\nconst isDateTimeControl = and(uiTypeIs('Control'), or(formatIs('date-time'), optionIs('format', 'date-time')));\nconst isObjectArray = and(schemaMatches((schema, rootSchema) => hasType(schema, 'array') &&\n !Array.isArray(resolveSchema(schema, 'items', rootSchema))\n), schemaSubPathMatches('items', (schema, rootSchema) => {\n const resolvedSchema = schema.$ref\n ? resolveSchema(rootSchema, schema.$ref, rootSchema)\n : schema;\n return hasType(resolvedSchema, 'object');\n}));\nconst isObjectArrayControl = and(uiTypeIs('Control'), isObjectArray);\nconst traverse = (any, pred, rootSchema) => {\n if (Array.isArray(any)) {\n return reduce(any, (acc, el) => acc || traverse(el, pred, rootSchema), false);\n }\n if (pred(any)) {\n return true;\n }\n if (any.$ref) {\n const toTraverse = resolveSchema(rootSchema, any.$ref, rootSchema);\n if (toTraverse && !toTraverse.$ref) {\n return traverse(toTraverse, pred, rootSchema);\n }\n }\n if (any.items) {\n return traverse(any.items, pred, rootSchema);\n }\n if (any.properties) {\n return reduce(toPairs(any.properties), (acc, [_key, val]) => acc || traverse(val, pred, rootSchema), false);\n }\n return false;\n};\nconst isObjectArrayWithNesting = (uischema, schema, context) => {\n if (!uiTypeIs('Control')(uischema, schema, context)) {\n return false;\n }\n const schemaPath = uischema.scope;\n const resolvedSchema = resolveSchema(schema, schemaPath, context?.rootSchema ?? schema);\n let objectDepth = 0;\n if (resolvedSchema !== undefined && resolvedSchema.items !== undefined) {\n if (traverse(resolvedSchema.items, (val) => {\n if (val === schema) {\n return false;\n }\n if (val.$ref !== undefined) {\n return false;\n }\n if (val.anyOf || val.allOf) {\n return true;\n }\n if (val.oneOf && !isOneOfEnumSchema(val)) {\n return true;\n }\n if (hasType(val, 'object')) {\n objectDepth++;\n if (objectDepth === 2) {\n return true;\n }\n }\n if (hasType(val, 'array')) {\n return true;\n }\n return false;\n }, context?.rootSchema)) {\n return true;\n }\n if (uischema.options && uischema.options.detail) {\n if (typeof uischema.options.detail === 'string') {\n return uischema.options.detail.toUpperCase() !== 'DEFAULT';\n }\n else if (typeof uischema.options.detail === 'object' &&\n uischema.options.detail.type) {\n return true;\n }\n }\n }\n return false;\n};\nconst isArrayObjectControl = isObjectArrayControl;\nconst isPrimitiveArrayControl = and(uiTypeIs('Control'), schemaMatches((schema, rootSchema) => deriveTypes(schema).length !== 0 &&\n !Array.isArray(resolveSchema(schema, 'items', rootSchema))\n), schemaSubPathMatches('items', (schema, rootSchema) => {\n const resolvedSchema = schema.$ref\n ? resolveSchema(rootSchema, schema.$ref, rootSchema)\n : schema;\n const types = deriveTypes(resolvedSchema);\n return (types.length === 1 &&\n includes(['integer', 'number', 'boolean', 'string'], types[0]));\n}));\nconst isRangeControl = and(uiTypeIs('Control'), or(schemaTypeIs('number'), schemaTypeIs('integer')), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, 'maximum') &&\n Object.prototype.hasOwnProperty.call(schema, 'minimum') &&\n Object.prototype.hasOwnProperty.call(schema, 'default')), optionIs('slider', true));\nconst isNumberFormatControl = and(uiTypeIs('Control'), schemaTypeIs('integer'), optionIs('format', true));\nconst isCategorization = (category) => category.type === 'Categorization';\nconst isCategory = (uischema) => uischema.type === 'Category';\nconst hasCategory = (categorization) => {\n if (isEmpty(categorization.elements)) {\n return false;\n }\n return categorization.elements\n .map((elem) => isCategorization(elem) ? hasCategory(elem) : isCategory(elem))\n .reduce((prev, curr) => prev && curr, true);\n};\nconst categorizationHasCategory = (uischema) => hasCategory(uischema);\nconst not = (tester) => (uischema, schema, context) => !tester(uischema, schema, context);\n\nvar index = /*#__PURE__*/Object.freeze({\n __proto__: null,\n NOT_APPLICABLE: NOT_APPLICABLE,\n isControl: isControl,\n schemaMatches: schemaMatches,\n schemaSubPathMatches: schemaSubPathMatches,\n schemaTypeIs: schemaTypeIs,\n formatIs: formatIs,\n uiTypeIs: uiTypeIs,\n optionIs: optionIs,\n hasOption: hasOption,\n scopeEndsWith: scopeEndsWith,\n scopeEndIs: scopeEndIs,\n and: and,\n or: or,\n rankWith: rankWith,\n withIncreasedRank: withIncreasedRank,\n isBooleanControl: isBooleanControl,\n isObjectControl: isObjectControl,\n isAllOfControl: isAllOfControl,\n isAnyOfControl: isAnyOfControl,\n isOneOfControl: isOneOfControl,\n isEnumControl: isEnumControl,\n isOneOfEnumControl: isOneOfEnumControl,\n isIntegerControl: isIntegerControl,\n isNumberControl: isNumberControl,\n isStringControl: isStringControl,\n isMultiLineControl: isMultiLineControl,\n isDateControl: isDateControl,\n isTimeControl: isTimeControl,\n isDateTimeControl: isDateTimeControl,\n isObjectArray: isObjectArray,\n isObjectArrayControl: isObjectArrayControl,\n isObjectArrayWithNesting: isObjectArrayWithNesting,\n isArrayObjectControl: isArrayObjectControl,\n isPrimitiveArrayControl: isPrimitiveArrayControl,\n isRangeControl: isRangeControl,\n isNumberFormatControl: isNumberFormatControl,\n isCategorization: isCategorization,\n isCategory: isCategory,\n hasCategory: hasCategory,\n categorizationHasCategory: categorizationHasCategory,\n not: not\n});\n\nconst uischemaRegistryReducer = (state = [], action) => {\n switch (action.type) {\n case ADD_UI_SCHEMA:\n return state\n .slice()\n .concat({ tester: action.tester, uischema: action.uischema });\n case REMOVE_UI_SCHEMA: {\n const copy = state.slice();\n remove(copy, (entry) => entry.tester === action.tester);\n return copy;\n }\n default:\n return state;\n }\n};\nconst findMatchingUISchema = (state) => (jsonSchema, schemaPath, path) => {\n const match = maxBy(state, (entry) => entry.tester(jsonSchema, schemaPath, path));\n if (match !== undefined &&\n match.tester(jsonSchema, schemaPath, path) !== NOT_APPLICABLE) {\n return match.uischema;\n }\n return undefined;\n};\n\nconst jsonFormsReducerConfig = {\n core: coreReducer,\n renderers: rendererReducer,\n cells: cellReducer,\n config: configReducer,\n uischemas: uischemaRegistryReducer,\n defaultData: defaultDataReducer,\n i18n: i18nReducer,\n};\nconst findUISchema = (uischemas, schema, schemaPath, path, fallback = 'VerticalLayout', control, rootSchema) => {\n if (control && control.options && control.options.detail) {\n if (typeof control.options.detail === 'string') {\n if (control.options.detail.toUpperCase() === 'GENERATE') {\n if (typeof fallback === 'function') {\n return fallback();\n }\n return Generate.uiSchema(schema, fallback, undefined, rootSchema);\n }\n }\n else if (typeof control.options.detail === 'object') {\n if (control.options.detail.type &&\n typeof control.options.detail.type === 'string') {\n return control.options.detail;\n }\n }\n }\n const uiSchema = findMatchingUISchema(uischemas)(schema, schemaPath, path);\n if (uiSchema === undefined) {\n if (typeof fallback === 'function') {\n return fallback();\n }\n return Generate.uiSchema(schema, fallback, '#', rootSchema);\n }\n return uiSchema;\n};\n\nconst defaultMiddleware = (state, action, defaultReducer) => defaultReducer(state, action);\n\nconst getErrorsAt = (instancePath, schema, matchPath) => (state) => {\n const errors = state.errors ?? [];\n const additionalErrors = state.additionalErrors ?? [];\n return errorsAt(instancePath, schema, matchPath)(state.validationMode === 'ValidateAndHide'\n ? additionalErrors\n : [...errors, ...additionalErrors]);\n};\nconst errorAt = (instancePath, schema) => getErrorsAt(instancePath, schema, (path) => path === instancePath);\nconst subErrorsAt = (instancePath, schema) => getErrorsAt(instancePath, schema, (path) => path.startsWith(instancePath + '.'));\nconst getErrorAt = (instancePath, schema) => (state) => {\n return errorAt(instancePath, schema)(state.jsonforms.core);\n};\nconst getSubErrorsAt = (instancePath, schema) => (state) => subErrorsAt(instancePath, schema)(state.jsonforms.core);\nconst getData = (state) => extractData(get(state, 'jsonforms.core'));\nconst getSchema = (state) => extractSchema(get(state, 'jsonforms.core'));\nconst getUiSchema = (state) => extractUiSchema(get(state, 'jsonforms.core'));\nconst getAjv = (state) => extractAjv(get(state, 'jsonforms.core'));\nconst getRenderers = (state) => get(state, 'jsonforms.renderers');\nconst getCells = (state) => get(state, 'jsonforms.cells');\nconst getUISchemas = (state) => get(state, 'jsonforms.uischemas');\nconst extractData = (state) => get(state, 'data');\nconst extractSchema = (state) => get(state, 'schema');\nconst extractUiSchema = (state) => get(state, 'uischema');\nconst extractAjv = (state) => get(state, 'ajv');\nconst getConfig = (state) => state.jsonforms.config;\n\nconst isInherentlyEnabled = (state, ownProps, uischema, schema, rootData, config) => {\n if (!config?.separateReadonlyFromDisabled && state?.jsonforms?.readonly) {\n return false;\n }\n if (uischema && hasEnableRule(uischema)) {\n return isEnabled(uischema, rootData, ownProps?.path, getAjv(state), config);\n }\n if (!config?.separateReadonlyFromDisabled) {\n if (typeof uischema?.options?.readonly === 'boolean') {\n return !uischema.options.readonly;\n }\n if (typeof uischema?.options?.readOnly === 'boolean') {\n return !uischema.options.readOnly;\n }\n if (typeof config?.readonly === 'boolean') {\n return !config.readonly;\n }\n if (typeof config?.readOnly === 'boolean') {\n return !config.readOnly;\n }\n if (schema?.readOnly === true) {\n return false;\n }\n }\n if (typeof ownProps?.enabled === 'boolean') {\n return ownProps.enabled;\n }\n return true;\n};\nconst isInherentlyReadonly = (state, ownProps, uischema, schema, rootData, config) => {\n if (state?.jsonforms?.readonly) {\n return true;\n }\n if (uischema && hasReadonlyRule(uischema)) {\n return isReadonly(uischema, rootData, ownProps?.path, getAjv(state), config);\n }\n if (typeof uischema?.options?.readonly === 'boolean') {\n return uischema.options.readonly;\n }\n if (typeof uischema?.options?.readOnly === 'boolean') {\n return uischema.options.readOnly;\n }\n if (typeof config?.readonly === 'boolean') {\n return config.readonly;\n }\n if (typeof config?.readOnly === 'boolean') {\n return config.readOnly;\n }\n if (schema?.readOnly === true) {\n return true;\n }\n if (typeof ownProps?.readonly === 'boolean') {\n return ownProps.readonly;\n }\n return false;\n};\n\nconst move = (array, index, delta) => {\n const newIndex = index + delta;\n if (newIndex < 0 || newIndex >= array.length) {\n return;\n }\n const indexes = [index, newIndex].sort((a, b) => a - b);\n array.splice(indexes[0], 2, array[indexes[1]], array[indexes[0]]);\n};\nconst moveUp = (array, toMove) => {\n move(array, toMove, -1);\n};\nconst moveDown = (array, toMove) => {\n move(array, toMove, 1);\n};\nconst isRequired = (schema, schemaPath, rootSchema) => {\n const pathSegments = schemaPath.split('/');\n const lastSegment = decode(pathSegments[pathSegments.length - 1]);\n const nextHigherSchemaSegments = pathSegments.slice(0, pathSegments.length - 2);\n const nextHigherSchemaPath = nextHigherSchemaSegments.join('/');\n const nextHigherSchema = Resolve.schema(schema, nextHigherSchemaPath, rootSchema);\n return (nextHigherSchema !== undefined &&\n nextHigherSchema.required !== undefined &&\n nextHigherSchema.required.indexOf(lastSegment) !== -1);\n};\nconst computeLabel = (label, required, hideRequiredAsterisk) => {\n return `${label ?? ''}${required && !hideRequiredAsterisk ? '*' : ''}`;\n};\nconst showAsRequired = (required, hideRequiredAsterisk) => {\n return required && !hideRequiredAsterisk;\n};\nconst createDefaultValue = (schema, rootSchema) => {\n const defaultValue = doCreateDefaultValue(schema, rootSchema);\n return defaultValue === undefined ? {} : defaultValue;\n};\nconst doCreateDefaultValue = (schema, rootSchema) => {\n const resolvedSchema = typeof schema.$ref === 'string'\n ? Resolve.schema(rootSchema, schema.$ref, rootSchema)\n : schema;\n if (resolvedSchema.default !== undefined) {\n return extractDefaults(resolvedSchema, rootSchema);\n }\n if (hasType(resolvedSchema, 'string')) {\n if (resolvedSchema.format === 'date-time' ||\n resolvedSchema.format === 'date' ||\n resolvedSchema.format === 'time') {\n return convertDateToString(new Date(), resolvedSchema.format);\n }\n return '';\n }\n if (hasType(resolvedSchema, 'integer') || hasType(resolvedSchema, 'number')) {\n return 0;\n }\n if (hasType(resolvedSchema, 'boolean')) {\n return false;\n }\n if (hasType(resolvedSchema, 'array')) {\n return [];\n }\n if (hasType(resolvedSchema, 'object')) {\n return extractDefaults(resolvedSchema, rootSchema);\n }\n if (hasType(resolvedSchema, 'null')) {\n return null;\n }\n const combinators = ['oneOf', 'anyOf', 'allOf'];\n for (const combinator of combinators) {\n if (schema[combinator] && Array.isArray(schema[combinator])) {\n const combinatorDefault = createDefaultValueForCombinatorSchema(schema[combinator], rootSchema);\n if (combinatorDefault !== undefined) {\n return combinatorDefault;\n }\n }\n }\n return undefined;\n};\nconst createDefaultValueForCombinatorSchema = (combinatorSchemas, rootSchema) => {\n if (combinatorSchemas.length > 0) {\n for (const combinatorSchema of combinatorSchemas) {\n const result = doCreateDefaultValue(combinatorSchema, rootSchema);\n if (result !== undefined) {\n return result;\n }\n }\n }\n return undefined;\n};\nconst extractDefaults = (schema, rootSchema) => {\n if (hasType(schema, 'object') && schema.default === undefined) {\n const result = {};\n for (const key in schema.properties) {\n const property = schema.properties[key];\n const resolvedProperty = property.$ref\n ? Resolve.schema(rootSchema, property.$ref, rootSchema)\n : property;\n if (resolvedProperty && resolvedProperty.default !== undefined) {\n result[key] = cloneDeep(resolvedProperty.default);\n }\n }\n if (schema.allOf && Array.isArray(schema.allOf)) {\n schema.allOf.forEach((allOfSchema) => {\n if (allOfSchema && allOfSchema.properties) {\n for (const key in allOfSchema.properties) {\n const property = allOfSchema.properties[key];\n const resolvedProperty = property.$ref\n ? Resolve.schema(rootSchema, property.$ref, rootSchema)\n : property;\n if (resolvedProperty && resolvedProperty.default !== undefined) {\n result[key] = cloneDeep(resolvedProperty.default);\n }\n }\n }\n });\n }\n return result;\n }\n return cloneDeep(schema.default);\n};\nconst isDescriptionHidden = (visible, description, isFocused, showUnfocusedDescription) => {\n return (description === undefined ||\n (description !== undefined && !visible) ||\n (!showUnfocusedDescription && !isFocused));\n};\nconst enumToEnumOptionMapper = (e, t, i18nKey) => {\n let label = typeof e === 'string' ? e : JSON.stringify(e);\n if (t) {\n if (i18nKey) {\n label = t(`${i18nKey}.${label}`, label);\n }\n else {\n label = t(label, label);\n }\n }\n return { label, value: e };\n};\nconst oneOfToEnumOptionMapper = (e, t, fallbackI18nKey) => {\n let label = e.title ??\n (typeof e.const === 'string' ? e.const : JSON.stringify(e.const));\n if (t) {\n if (e.i18n) {\n label = t(e.i18n, label, { schema: e });\n }\n else if (fallbackI18nKey) {\n label = t(`${fallbackI18nKey}.${label}`, label, { schema: e });\n }\n else {\n label = t(label, label, { schema: e });\n }\n }\n return {\n label,\n value: e.const,\n };\n};\nconst mapStateToControlProps = (state, ownProps) => {\n const { uischema } = ownProps;\n const rootData = getData(state);\n const path = composeWithUi(uischema, ownProps.path);\n const config = getConfig(state);\n const visible = ownProps.visible === undefined || hasShowRule(uischema)\n ? isVisible(uischema, rootData, ownProps.path, getAjv(state), config)\n : ownProps.visible;\n const controlElement = uischema;\n const id = ownProps.id;\n const rootSchema = getSchema(state);\n const required = controlElement.scope !== undefined &&\n isRequired(ownProps.schema, controlElement.scope, rootSchema);\n const resolvedSchema = Resolve.schema(ownProps.schema || rootSchema, controlElement.scope, rootSchema);\n const errors = getErrorAt(path, resolvedSchema)(state);\n const description = resolvedSchema !== undefined ? resolvedSchema.description : '';\n const data = Resolve.data(rootData, path);\n const labelDesc = createLabelDescriptionFrom(uischema, resolvedSchema);\n const label = labelDesc.show ? labelDesc.text : '';\n const enabled = isInherentlyEnabled(state, ownProps, uischema, resolvedSchema || rootSchema, rootData, config);\n const readonly = isInherentlyReadonly(state, ownProps, uischema, resolvedSchema || rootSchema, rootData, config);\n const schema = resolvedSchema ?? rootSchema;\n const t = getTranslator()(state);\n const te = getErrorTranslator()(state);\n const i18nKeyPrefix = getI18nKeyPrefix(schema, uischema, path);\n const i18nLabel = t(getI18nKey(schema, uischema, path, 'label'), label, {\n schema,\n uischema,\n path,\n errors,\n });\n const i18nDescription = t(getI18nKey(schema, uischema, path, 'description'), description, { schema, uischema, path, errors });\n const i18nErrorMessage = getCombinedErrorMessage(errors, te, t, schema, uischema, path);\n return {\n data,\n description: i18nDescription,\n errors: i18nErrorMessage,\n label: i18nLabel,\n visible,\n enabled,\n readonly,\n id,\n path,\n required,\n uischema,\n schema,\n config: getConfig(state),\n cells: ownProps.cells || state.jsonforms.cells,\n rootSchema,\n i18nKeyPrefix,\n };\n};\nconst mapDispatchToControlProps = (dispatch) => ({\n handleChange(path, value) {\n dispatch(update(path, () => value));\n },\n});\nconst mapStateToEnumControlProps = (state, ownProps) => {\n const props = mapStateToControlProps(state, ownProps);\n const options = ownProps.options ||\n props.schema.enum?.map((e) => enumToEnumOptionMapper(e, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path))) ||\n (props.schema.const && [\n enumToEnumOptionMapper(props.schema.const, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path)),\n ]);\n return {\n ...props,\n options,\n };\n};\nconst mapStateToOneOfEnumControlProps = (state, ownProps) => {\n const props = mapStateToControlProps(state, ownProps);\n const options = ownProps.options ||\n props.schema.oneOf?.map((oneOfSubSchema) => oneOfToEnumOptionMapper(oneOfSubSchema, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path)));\n return {\n ...props,\n options,\n };\n};\nconst mapStateToMultiEnumControlProps = (state, ownProps) => {\n const props = mapStateToControlProps(state, ownProps);\n let items = props.schema.items;\n items =\n items && items.$ref\n ? resolveSchema(props.rootSchema, items.$ref, props.rootSchema)\n : items;\n const options = ownProps.options ||\n (items?.oneOf &&\n items.oneOf.map((oneOfSubSchema) => oneOfToEnumOptionMapper(oneOfSubSchema, state.jsonforms.i18n?.translate, getI18nKeyPrefix(props.schema, props.uischema, props.path)))) ||\n items?.enum?.map((e) => enumToEnumOptionMapper(e, state.jsonforms.i18n?.translate, getI18nKeyPrefix(props.schema, props.uischema, props.path)));\n return {\n ...props,\n options,\n };\n};\nconst mapStateToMasterListItemProps = (state, ownProps) => {\n const { schema, path, uischema, childLabelProp, index } = ownProps;\n const childPath = compose(path, `${index}`);\n const childLabel = computeChildLabel(getData(state), childPath, childLabelProp, schema, getSchema(state), state.jsonforms.i18n.translate, uischema);\n return {\n ...ownProps,\n childLabel,\n };\n};\nconst mapStateToControlWithDetailProps = (state, ownProps) => {\n const { ...props } = mapStateToControlProps(state, ownProps);\n return {\n ...props,\n uischemas: state.jsonforms.uischemas,\n };\n};\nconst mapStateToArrayControlProps = (state, ownProps) => {\n const { path, schema, uischema, label, ...props } = mapStateToControlWithDetailProps(state, ownProps);\n const resolvedSchema = Resolve.schema(schema, 'items', props.rootSchema);\n const childErrors = getSubErrorsAt(path, resolvedSchema)(state);\n return {\n ...props,\n label,\n path,\n uischema,\n schema: resolvedSchema,\n arraySchema: schema,\n childErrors,\n renderers: ownProps.renderers || getRenderers(state),\n cells: ownProps.cells || getCells(state),\n };\n};\nconst mapDispatchToArrayControlProps = (dispatch) => ({\n addItem: (path, value) => () => {\n dispatch(update(path, (array) => {\n if (array === undefined || array === null) {\n return [value];\n }\n array.push(value);\n return array;\n }, { type: 'ADD', values: [value] }));\n },\n removeItems: (path, toDelete) => () => {\n dispatch(update(path, (array) => {\n toDelete\n .sort((a, b) => a - b)\n .reverse()\n .forEach((s) => array.splice(s, 1));\n return array;\n }, { type: 'REMOVE', indices: toDelete }));\n },\n moveUp: (path, toMove) => () => {\n dispatch(update(path, (array) => {\n moveUp(array, toMove);\n return array;\n }, {\n type: 'MOVE',\n moves: [{ from: toMove, to: toMove - 1 }],\n }));\n },\n moveDown: (path, toMove) => () => {\n dispatch(update(path, (array) => {\n moveDown(array, toMove);\n return array;\n }, {\n type: 'MOVE',\n moves: [{ from: toMove, to: toMove + 1 }],\n }));\n },\n});\nconst mapDispatchToMultiEnumProps = (dispatch) => ({\n ...mapDispatchToControlProps(dispatch),\n addItem: (path, value) => {\n dispatch(update(path, (data) => {\n if (data === undefined || data === null) {\n return [value];\n }\n data.push(value);\n return data;\n }));\n },\n removeItem: (path, toDelete) => {\n dispatch(update(path, (data) => {\n const indexInData = data.indexOf(toDelete);\n data.splice(indexInData, 1);\n return data;\n }));\n },\n});\nconst layoutDefaultProps = {\n visible: true,\n enabled: true,\n path: '',\n direction: 'column',\n};\nconst getDirection = (uischema) => {\n if (uischema.type === 'HorizontalLayout') {\n return 'row';\n }\n if (uischema.type === 'VerticalLayout') {\n return 'column';\n }\n return layoutDefaultProps.direction;\n};\nconst mapStateToLayoutProps = (state, ownProps) => {\n const rootData = getData(state);\n const { uischema } = ownProps;\n const visible = ownProps.visible === undefined || hasShowRule(uischema)\n ? isVisible(ownProps.uischema, rootData, ownProps.path, getAjv(state), getConfig(state))\n : ownProps.visible;\n const data = Resolve.data(rootData, ownProps.path);\n const config = getConfig(state);\n const enabled = isInherentlyEnabled(state, ownProps, uischema, undefined,\n rootData, config);\n const readonly = isInherentlyReadonly(state, ownProps, uischema, undefined,\n rootData, config);\n const t = getTranslator()(state);\n const label = isLabelable(uischema)\n ? deriveLabelForUISchemaElement(uischema, t)\n : undefined;\n return {\n ...layoutDefaultProps,\n renderers: ownProps.renderers || getRenderers(state),\n cells: ownProps.cells || getCells(state),\n visible,\n enabled,\n readonly,\n path: ownProps.path,\n data,\n uischema: ownProps.uischema,\n schema: ownProps.schema,\n direction: ownProps.direction ?? getDirection(uischema),\n config,\n label,\n };\n};\nconst mapStateToJsonFormsRendererProps = (state, ownProps) => {\n return {\n renderers: ownProps.renderers || get(state.jsonforms, 'renderers'),\n cells: ownProps.cells || get(state.jsonforms, 'cells'),\n schema: ownProps.schema || getSchema(state),\n rootSchema: getSchema(state),\n uischema: ownProps.uischema || getUiSchema(state),\n path: ownProps.path,\n enabled: ownProps.enabled,\n config: getConfig(state),\n };\n};\nconst controlDefaultProps = {\n ...layoutDefaultProps,\n errors: [],\n};\nconst mapStateToCombinatorRendererProps = (state, ownProps, keyword) => {\n const { data, schema, rootSchema, i18nKeyPrefix, label, ...props } = mapStateToControlProps(state, ownProps);\n const ajv = state.jsonforms.core.ajv;\n const structuralKeywords = [\n 'required',\n 'additionalProperties',\n 'type',\n 'enum',\n 'const',\n ];\n const dataIsValid = (errors) => {\n return (!errors ||\n errors.length === 0 ||\n !errors.find((e) => structuralKeywords.indexOf(e.keyword) !== -1));\n };\n let indexOfFittingSchema;\n for (let i = 0; i < schema[keyword]?.length; i++) {\n try {\n let _schema = schema[keyword][i];\n if (_schema.$ref) {\n _schema = Resolve.schema(rootSchema, _schema.$ref, rootSchema);\n }\n const valFn = ajv.compile(_schema);\n valFn(data);\n if (dataIsValid(valFn.errors)) {\n indexOfFittingSchema = i;\n break;\n }\n }\n catch (error) {\n console.debug(\"Combinator subschema is not self contained, can't hand it over to AJV\");\n }\n }\n return {\n data,\n schema,\n rootSchema,\n ...props,\n i18nKeyPrefix,\n label,\n indexOfFittingSchema,\n uischemas: getUISchemas(state),\n };\n};\nconst mapStateToAllOfProps = (state, ownProps) => mapStateToCombinatorRendererProps(state, ownProps, 'allOf');\nconst mapStateToAnyOfProps = (state, ownProps) => {\n return mapStateToCombinatorRendererProps(state, ownProps, 'anyOf');\n};\nconst mapStateToOneOfProps = (state, ownProps) => {\n return mapStateToCombinatorRendererProps(state, ownProps, 'oneOf');\n};\nconst mapStateToArrayLayoutProps = (state, ownProps) => {\n const { path, schema, uischema, errors, label, ...props } = mapStateToControlWithDetailProps(state, ownProps);\n const resolvedSchema = Resolve.schema(schema, 'items', props.rootSchema);\n const t = getTranslator()(state);\n const childErrors = getCombinedErrorMessage(getSubErrorsAt(path, resolvedSchema)(state), getErrorTranslator()(state), t, undefined, undefined, undefined);\n const allErrors = errors +\n (errors.length > 0 && childErrors.length > 0 ? '\\n' : '') +\n childErrors;\n return {\n ...props,\n label,\n path,\n uischema,\n schema: resolvedSchema,\n arraySchema: schema,\n data: props.data ? props.data.length : 0,\n errors: allErrors,\n minItems: schema.minItems,\n };\n};\nconst mapStateToLabelProps = (state, props) => {\n const { uischema } = props;\n const visible = props.visible === undefined || hasShowRule(uischema)\n ? isVisible(props.uischema, getData(state), props.path, getAjv(state), getConfig(state))\n : props.visible;\n const text = uischema.text;\n const t = getTranslator()(state);\n const i18nKeyPrefix = getI18nKeyPrefixBySchema(undefined, uischema);\n const i18nKey = i18nKeyPrefix ? `${i18nKeyPrefix}.text` : text ?? '';\n const i18nText = t(i18nKey, text, { uischema });\n return {\n text: i18nText,\n visible,\n config: getConfig(state),\n renderers: props.renderers || getRenderers(state),\n cells: props.cells || getCells(state),\n uischema,\n };\n};\nconst computeChildLabel = (data, childPath, childLabelProp, schema, rootSchema, translateFct, uiSchema) => {\n const childData = Resolve.data(data, childPath);\n if (!childLabelProp) {\n childLabelProp = getFirstPrimitiveProp(schema);\n }\n if (!childLabelProp) {\n return '';\n }\n const currentValue = get(childData, childLabelProp);\n if (currentValue === undefined) {\n return '';\n }\n const childSchema = Resolve.schema(schema, '#' + getPropPath(childLabelProp), rootSchema);\n let enumOption = undefined;\n if (isEnumSchema(childSchema)) {\n enumOption = enumToEnumOptionMapper(currentValue, translateFct, getI18nKeyPrefix(childSchema, findUiControl(uiSchema, childLabelProp), childPath + '.' + childLabelProp));\n }\n else if (isOneOfEnumSchema(childSchema)) {\n const oneOfArray = childSchema.oneOf;\n const oneOfSchema = oneOfArray.find((e) => isEqual(e.const, currentValue));\n if (oneOfSchema) {\n enumOption = oneOfToEnumOptionMapper(oneOfSchema, translateFct, getI18nKeyPrefix(oneOfSchema, undefined, childPath + '.' + childLabelProp));\n }\n }\n return enumOption ? enumOption.label : currentValue;\n};\n\nconst mapStateToCellProps = (state, ownProps) => {\n const { id, schema, path, uischema, renderers, cells } = ownProps;\n const rootData = getData(state);\n const config = getConfig(state);\n const visible = ownProps.visible !== undefined\n ? ownProps.visible\n : isVisible(uischema, rootData, undefined, getAjv(state), config);\n const rootSchema = getSchema(state);\n let enabled;\n if (!config?.separateReadonlyFromDisabled &&\n state.jsonforms.readonly === true) {\n enabled = false;\n }\n else if (typeof ownProps.enabled === 'boolean') {\n enabled = ownProps.enabled;\n }\n else {\n enabled = isInherentlyEnabled(state, ownProps, uischema, schema || rootSchema, rootData, config);\n }\n let readonly;\n if (typeof ownProps.readonly === 'boolean') {\n readonly = ownProps.readonly;\n }\n else {\n readonly = isInherentlyReadonly(state, ownProps, uischema, schema || rootSchema, rootData, config);\n }\n const t = getTranslator()(state);\n const te = getErrorTranslator()(state);\n const errors = getCombinedErrorMessage(getErrorAt(path, schema)(state), te, t, schema, uischema, path);\n const isValid = isEmpty(errors);\n return {\n data: Resolve.data(rootData, path),\n visible,\n enabled,\n readonly,\n id,\n path,\n errors,\n isValid,\n schema,\n uischema,\n config: getConfig(state),\n rootSchema,\n renderers,\n cells,\n };\n};\nconst mapStateToDispatchCellProps = (state, ownProps) => {\n const props = mapStateToCellProps(state, ownProps);\n const { renderers: _renderers, cells, ...otherOwnProps } = ownProps;\n return {\n ...props,\n ...otherOwnProps,\n cells: cells || state.jsonforms.cells || [],\n };\n};\nconst defaultMapStateToEnumCellProps = (state, ownProps) => {\n const props = mapStateToCellProps(state, ownProps);\n const options = ownProps.options ||\n props.schema.enum?.map((e) => enumToEnumOptionMapper(e, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path))) ||\n (props.schema.const && [\n enumToEnumOptionMapper(props.schema.const, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path)),\n ]);\n return {\n ...props,\n options,\n };\n};\nconst mapStateToOneOfEnumCellProps = (state, ownProps) => {\n const props = mapStateToCellProps(state, ownProps);\n const options = ownProps.options ||\n props.schema.oneOf?.map((oneOfSubSchema) => oneOfToEnumOptionMapper(oneOfSubSchema, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path)));\n return {\n ...props,\n options,\n };\n};\nconst mapDispatchToCellProps = mapDispatchToControlProps;\nconst defaultMapDispatchToControlProps =\n(dispatch, ownProps) => {\n const { handleChange } = mapDispatchToCellProps(dispatch);\n return {\n handleChange: ownProps.handleChange || handleChange,\n };\n};\n\nconst createCombinatorRenderInfos = (combinatorSubSchemas, rootSchema, keyword, control, path, uischemas) => combinatorSubSchemas.map((subSchema, subSchemaIndex) => {\n const resolvedSubSchema = subSchema.$ref && Resolve.schema(rootSchema, subSchema.$ref, rootSchema);\n const schema = resolvedSubSchema ?? subSchema;\n return {\n schema,\n uischema: findUISchema(uischemas, schema, control.scope, path, undefined, control, rootSchema),\n label: subSchema.title ??\n resolvedSubSchema?.title ??\n `${keyword}-${subSchemaIndex}`,\n };\n});\n\nexport { ADD_CELL, ADD_DEFAULT_DATA, ADD_RENDERER, ADD_UI_SCHEMA, index$1 as Actions, ArrayTranslationEnum, CombinatorTranslationEnum, Draft4, Generate, Helpers, INIT, Id, NOT_APPLICABLE, Paths, REMOVE_CELL, REMOVE_DEFAULT_DATA, REMOVE_RENDERER, REMOVE_UI_SCHEMA, Resolve, RuleEffect, Runtime, SET_AJV, SET_CONFIG, SET_LOCALE, SET_SCHEMA, SET_TRANSLATOR, SET_UISCHEMA, SET_VALIDATION_MODE, index as Test, UPDATE_CORE, UPDATE_DATA, UPDATE_ERRORS, UPDATE_I18N, VALIDATE, addI18nKeyToPrefix, and, arrayDefaultTranslations, categorizationHasCategory, cellReducer, clearAllIds, combinatorDefaultTranslations, compose, compose as composePaths, composeWithUi, computeChildLabel, computeLabel, configReducer, controlDefaultProps, convertDateToString, convertToValidClassName, coreReducer, createAjv, createCleanLabel, createCombinatorRenderInfos, createControlElement, createDefaultValue, createId, createLabelDescriptionFrom, createTranslator, decode, defaultDataReducer, defaultDateFormat, defaultDateTimeFormat, defaultErrorTranslator, defaultJsonFormsI18nState, defaultMapDispatchToControlProps, defaultMapStateToEnumCellProps, defaultMiddleware, defaultTimeFormat, defaultTranslator, deriveLabelForUISchemaElement, deriveTypes, doCreateDefaultValue, encode, enumToEnumOptionMapper, errorAt, errorsAt, evalEnablement, evalReadonly, evalVisibility, extractAjv, extractData, extractDefaultData, extractDefaults, extractSchema, extractUiSchema, fetchErrorTranslator, fetchLocale, fetchTranslator, findAllRefs, findMatchingUISchema, findUISchema, findUiControl, formatErrorMessage, formatIs, generateDefaultUISchema, generateJsonSchema, getAdditionalErrors, getAjv, getArrayTranslations, getCells, getCombinatorTranslations, getCombinedErrorMessage, getConfig, getControlPath, getData, getDefaultData, getErrorAt, getErrorTranslator, getFirstPrimitiveProp, getI18nKey, getI18nKeyPrefix, getI18nKeyPrefixBySchema, getLocale, getOrCreateAjv, getPropPath, getRenderers, getSchema, getSubErrorsAt, getTranslator, getUISchemas, getUiSchema, getValidationMode, hasCategory, hasEnableRule, hasOption, hasReadonlyRule, hasShowRule, hasType, i18nReducer, init, initState, isAllOfControl, isAnyOfControl, isArrayObjectControl, isBooleanControl, isCategorization, isCategory, isControl, isControlElement, isDateControl, isDateTimeControl, isDescriptionHidden, isEnabled, isEnumControl, isEnumSchema, isGroup, isInherentlyEnabled, isInherentlyReadonly, isIntegerControl, isInternationalized, isLabelable, isLabeled, isLayout, isMultiLineControl, isNumberControl, isNumberFormatControl, isObjectArray, isObjectArrayControl, isObjectArrayWithNesting, isObjectControl, isOneOfControl, isOneOfEnumControl, isOneOfEnumSchema, isPrimitiveArrayControl, isRangeControl, isReadonly, isScopable, isScoped, isStringControl, isTimeControl, isUpdateArrayContext, isVisible, iterateSchema, jsonFormsReducerConfig, layoutDefaultProps, mapDispatchToArrayControlProps, mapDispatchToCellProps, mapDispatchToControlProps, mapDispatchToMultiEnumProps, mapStateToAllOfProps, mapStateToAnyOfProps, mapStateToArrayControlProps, mapStateToArrayLayoutProps, mapStateToCellProps, mapStateToCombinatorRendererProps, mapStateToControlProps, mapStateToControlWithDetailProps, mapStateToDispatchCellProps, mapStateToEnumControlProps, mapStateToJsonFormsRendererProps, mapStateToLabelProps, mapStateToLayoutProps, mapStateToMasterListItemProps, mapStateToMultiEnumControlProps, mapStateToOneOfEnumCellProps, mapStateToOneOfEnumControlProps, mapStateToOneOfProps, moveDown, moveUp, not, oneOfToEnumOptionMapper, optionIs, or, rankWith, registerCell, registerDefaultData, registerRenderer, registerUISchema, removeId, rendererReducer, resolveData, resolveSchema, schemaMatches, schemaSubPathMatches, schemaTypeIs, scopeEndIs, scopeEndsWith, setAjv, setConfig, setDataAt, setLocale, setReadonly, setSchema, setTranslator, setUISchema, setValidationMode, showAsRequired, subErrorsAt, toDataPath, toDataPathSegments, transformPathToI18nPrefix, uiTypeIs, uischemaRegistryReducer, unregisterCell, unregisterDefaultData, unregisterRenderer, unregisterUISchema, unsetDataAt, unsetReadonly, update, updateCore, updateErrors, updateI18n, validate, withIncreasedRank };\n//# sourceMappingURL=jsonforms-core.esm.js.map\n","/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return{$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}\nfunction N(a,b){return{$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\\/+/g;function Q(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(\"\"+a.key):b.toString(36)}\nfunction R(a,b,e,d,c){var k=typeof a;if(\"undefined\"===k||\"boolean\"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case \"string\":case \"number\":h=!0;break;case \"object\":switch(a.$$typeof){case l:case n:h=!0}}if(h)return h=a,c=c(h),a=\"\"===d?\".\"+Q(h,0):d,I(c)?(e=\"\",null!=a&&(e=a.replace(P,\"$&/\")+\"/\"),R(c,b,e,\"\",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?\"\":(\"\"+c.key).replace(P,\"$&/\")+\"/\")+a)),b.push(c)),1;h=0;d=\"\"===d?\".\":d+\":\";if(I(a))for(var g=0;g<a.length;g++){k=\na[g];var f=d+Q(k,g);h+=R(k,b,e,f,c)}else if(f=A(a),\"function\"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if(\"object\"===k)throw b=String(a),Error(\"Objects are not valid as a React child (found: \"+(\"[object Object]\"===b?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":b)+\"). If you meant to render a collection of children, use an array instead.\");return h}\nfunction S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,\"\",\"\",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}\nvar U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};function X(){throw Error(\"act(...) is not supported in production builds of React.\");}\nexports.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;S(a,function(){b++});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error(\"React.Children.only expected to receive a single React element child.\");return a}};exports.Component=E;exports.Fragment=p;exports.Profiler=r;exports.PureComponent=G;exports.StrictMode=q;exports.Suspense=w;\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;exports.act=X;\nexports.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \"+a+\".\");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=\"\"+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);\nfor(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};exports.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};exports.createElement=M;exports.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};\nexports.forwardRef=function(a){return{$$typeof:v,render:a}};exports.isValidElement=O;exports.lazy=function(a){return{$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:x,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=V.transition;V.transition={};try{a()}finally{V.transition=b}};exports.unstable_act=X;exports.useCallback=function(a,b){return U.current.useCallback(a,b)};exports.useContext=function(a){return U.current.useContext(a)};\nexports.useDebugValue=function(){};exports.useDeferredValue=function(a){return U.current.useDeferredValue(a)};exports.useEffect=function(a,b){return U.current.useEffect(a,b)};exports.useId=function(){return U.current.useId()};exports.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};exports.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};\nexports.useMemo=function(a,b){return U.current.useMemo(a,b)};exports.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};exports.useRef=function(a){return U.current.useRef(a)};exports.useState=function(a){return U.current.useState(a)};exports.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};exports.useTransition=function(){return U.current.useTransition()};exports.version=\"18.3.1\";\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","import { defaultErrorTranslator as e } from \"@jsonforms/core\";\n// \\0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js\nfunction t(e) {\n\t\"@babel/helpers - typeof\";\n\treturn t = typeof Symbol == \"function\" && typeof Symbol.iterator == \"symbol\" ? function(e) {\n\t\treturn typeof e;\n\t} : function(e) {\n\t\treturn e && typeof Symbol == \"function\" && e.constructor === Symbol && e !== Symbol.prototype ? \"symbol\" : typeof e;\n\t}, t(e);\n}\n// \\0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js\nfunction n(e, n) {\n\tif (t(e) != \"object\" || !e) return e;\n\tvar r = e[Symbol.toPrimitive];\n\tif (r !== void 0) {\n\t\tvar i = r.call(e, n || \"default\");\n\t\tif (t(i) != \"object\") return i;\n\t\tthrow TypeError(\"@@toPrimitive must return a primitive value.\");\n\t}\n\treturn (n === \"string\" ? String : Number)(e);\n}\n// \\0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js\nfunction r(e) {\n\tvar r = n(e, \"string\");\n\treturn t(r) == \"symbol\" ? r : r + \"\";\n}\n// \\0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js\nfunction i(e, t, n) {\n\treturn (t = r(t)) in e ? Object.defineProperty(e, t, {\n\t\tvalue: n,\n\t\tenumerable: !0,\n\t\tconfigurable: !0,\n\t\twritable: !0\n\t}) : e[t] = n, e;\n}\n// \\0@oxc-project+runtime@0.156.0/helpers/esm/objectSpread2.js\nfunction a(e, t) {\n\tvar n = Object.keys(e);\n\tif (Object.getOwnPropertySymbols) {\n\t\tvar r = Object.getOwnPropertySymbols(e);\n\t\tt && (r = r.filter(function(t) {\n\t\t\treturn Object.getOwnPropertyDescriptor(e, t).enumerable;\n\t\t})), n.push.apply(n, r);\n\t}\n\treturn n;\n}\nfunction o(e) {\n\tfor (var t = 1; t < arguments.length; t++) {\n\t\tvar n = arguments[t] == null ? {} : arguments[t];\n\t\tt % 2 ? a(Object(n), !0).forEach(function(t) {\n\t\t\ti(e, t, n[t]);\n\t\t}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : a(Object(n)).forEach(function(t) {\n\t\t\tObject.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));\n\t\t});\n\t}\n\treturn e;\n}\n// src/core/ajvI18n/bg.ts\nvar s = (e) => {\n\tif (e && e.length) for (let t of e) {\n\t\tlet e, n, r;\n\t\tswitch (t.keyword) {\n\t\t\tcase \"additionalItems\":\n\t\t\tcase \"items\":\n\t\t\t\te = \"\", n = t.params.limit, e += \"не трябва да има повече от \" + n + \" елемент\", n != 1 && (e += \"а\");\n\t\t\t\tbreak;\n\t\t\tcase \"additionalProperties\":\n\t\t\t\te = \"не трябва да има допълнителни полета\";\n\t\t\t\tbreak;\n\t\t\tcase \"anyOf\":\n\t\t\t\te = \"трябва да съответства на схема в \\\"anyOf\\\"\";\n\t\t\t\tbreak;\n\t\t\tcase \"const\":\n\t\t\t\te = \"трябва да бъде равно на константа\";\n\t\t\t\tbreak;\n\t\t\tcase \"contains\":\n\t\t\t\te = \"трябва да съдържа валиден елемент\";\n\t\t\t\tbreak;\n\t\t\tcase \"dependencies\":\n\t\t\tcase \"dependentRequired\":\n\t\t\t\te = \"\", n = t.params.depsCount, e += \"трябва да има поле\", n != 1 && (e += \"та\"), e += \" \" + t.params.deps + \" когато полето \" + t.params.property + \" е налично\";\n\t\t\t\tbreak;\n\t\t\tcase \"discriminator\":\n\t\t\t\tswitch (t.params.error) {\n\t\t\t\t\tcase \"tag\":\n\t\t\t\t\t\te = \"полето \\\"\" + t.params.tag + \"\\\" трябва да бъде низ\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"mapping\":\n\t\t\t\t\t\te = \"стойноста на полето \\\"\" + t.params.tag + \"\\\" трябва да бъде в oneOf\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault: e = \"трябва да премине валидацията на ключовата дума \\\"\" + t.keyword + \"\\\"\";\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"enum\":\n\t\t\t\te = \"трябва да бъде равно на едно от разрешените стойности\";\n\t\t\t\tbreak;\n\t\t\tcase \"false schema\":\n\t\t\t\te = \"схемата е равна на false\";\n\t\t\t\tbreak;\n\t\t\tcase \"format\":\n\t\t\t\te = \"трябва да съответства на формата \\\"\" + t.params.format + \"\\\"\";\n\t\t\t\tbreak;\n\t\t\tcase \"formatMaximum\":\n\t\t\tcase \"formatExclusiveMaximum\":\n\t\t\t\te = \"\", r = t.params.comparison + \" \" + t.params.limit, e += \"трябва да бъде \" + r;\n\t\t\t\tbreak;\n\t\t\tcase \"formatMinimum\":\n\t\t\tcase \"formatExclusiveMinimum\":\n\t\t\t\te = \"\", r = t.params.comparison + \" \" + t.params.limit, e += \"трябва да бъде \" + r;\n\t\t\t\tbreak;\n\t\t\tcase \"if\":\n\t\t\t\te = \"трябва да съответства на схемата \\\"\" + t.params.failingKeyword + \"\\\"\";\n\t\t\t\tbreak;\n\t\t\tcase \"maximum\":\n\t\t\tcase \"exclusiveMaximum\":\n\t\t\t\te = \"\", r = t.params.comparison + \" \" + t.params.limit, e += \"трябва да бъде \" + r;\n\t\t\t\tbreak;\n\t\t\tcase \"maxItems\":\n\t\t\t\te = \"\", n = t.params.limit, e += \"не трябва да има повече от \" + n + \" елемент\", n != 1 && (e += \"а\");\n\t\t\t\tbreak;\n\t\t\tcase \"maxLength\":\n\t\t\t\te = \"\", n = t.params.limit, e += \"не трябва да бъде по-дълго от \" + n + \" символ\", n != 1 && (e += \"а\");\n\t\t\t\tbreak;\n\t\t\tcase \"maxProperties\":\n\t\t\t\te = \"\", n = t.params.limit, e += \"не трябва да има повече от \" + n + \" поле\", n != 1 && (e += \"та\");\n\t\t\t\tbreak;\n\t\t\tcase \"minimum\":\n\t\t\tcase \"exclusiveMinimum\":\n\t\t\t\te = \"\", r = t.params.comparison + \" \" + t.params.limit, e += \"трябва да бъде \" + r;\n\t\t\t\tbreak;\n\t\t\tcase \"minItems\":\n\t\t\t\te = \"\", n = t.params.limit, e += \"не трябва да има по-малко от \" + n + \" елемент\", n != 1 && (e += \"а\");\n\t\t\t\tbreak;\n\t\t\tcase \"minLength\":\n\t\t\t\te = \"\", n = t.params.limit, e += \"не трябва да бъде по-късо от \" + n + \" символ\", n != 1 && (e += \"а\");\n\t\t\t\tbreak;\n\t\t\tcase \"minProperties\":\n\t\t\t\te = \"\", n = t.params.limit, e += \"не трябва да има по-малко от \" + n + \" поле\", n != 1 && (e += \"та\");\n\t\t\t\tbreak;\n\t\t\tcase \"multipleOf\":\n\t\t\t\te = \"трябва да бъде кратно на \" + t.params.multipleOf;\n\t\t\t\tbreak;\n\t\t\tcase \"not\":\n\t\t\t\te = \"не трябва да бъде валидно съгласно схемата в \\\"not\\\"\";\n\t\t\t\tbreak;\n\t\t\tcase \"oneOf\":\n\t\t\t\te = \"трябва да съответства точно на една схема в \\\"oneOf\\\"\";\n\t\t\t\tbreak;\n\t\t\tcase \"pattern\":\n\t\t\t\te = \"трябва да съответства на шаблон \\\"\" + t.params.pattern + \"\\\"\";\n\t\t\t\tbreak;\n\t\t\tcase \"patternRequired\":\n\t\t\t\te = \"трябва да има поле, което съответства на шаблон \\\"\" + t.params.missingPattern + \"\\\"\";\n\t\t\t\tbreak;\n\t\t\tcase \"propertyNames\":\n\t\t\t\te = \"името на полето е невалидно\";\n\t\t\t\tbreak;\n\t\t\tcase \"required\":\n\t\t\t\te = \"трябва да има задължително поле \" + t.params.missingProperty;\n\t\t\t\tbreak;\n\t\t\tcase \"type\":\n\t\t\t\te = \"трябва да бъде \" + t.params.type;\n\t\t\t\tbreak;\n\t\t\tcase \"unevaluatedItems\":\n\t\t\t\te = \"\", n = t.params.len, e += \"не трябва да има повече от \" + n + \" елемент\", n != 1 && (e += \"а\");\n\t\t\t\tbreak;\n\t\t\tcase \"unevaluatedProperties\":\n\t\t\t\te = \"не трябва да има непроверени полета\";\n\t\t\t\tbreak;\n\t\t\tcase \"uniqueItems\":\n\t\t\t\te = \"не трябва да има дублиращи се елементи (елементи ## \" + t.params.j + \" и \" + t.params.i + \" са идентични)\";\n\t\t\t\tbreak;\n\t\t\tdefault: e = \"трябва да премине валидацията на ключовата дума \\\"\" + t.keyword + \"\\\"\";\n\t\t}\n\t\tt.message = e;\n\t}\n}, c = (e) => {\n\tlet t = e;\n\tif (t != null && t.length) {\n\t\ts(t);\n\t\tfor (let e of t) e.keyword === \"required\" && (e.message = \"полето е задължително\");\n\t}\n}, l = (e, t) => {\n\tvar n;\n\tif (t) return (n = e[t]) == null ? e[t.split(\"-\")[0]] : n;\n}, u = (e, t) => {\n\tvar n;\n\tif (!(e != null && e.length)) return e == null ? [] : e;\n\tlet r = t == null || (n = t()) == null ? void 0 : n.translate;\n\treturn e.filter((e) => e.emUsed !== !0).flatMap((e) => {\n\t\tvar t;\n\t\tlet n = (t = e.params) == null ? void 0 : t.errors;\n\t\tif (e.keyword !== \"errorMessage\" || !Array.isArray(n)) return e;\n\t\tlet i = e.message, a = r && i ? r(f(i), i) : i;\n\t\treturn n.map((e) => o(o({}, e), {}, {\n\t\t\tmessage: a,\n\t\t\t[d]: i\n\t\t}));\n\t});\n}, d = Symbol.for(\"jsonforms.ajv.schemaMessage\"), f = (e) => `error.errorMessage.${e}`, p = (t, n) => (r, i, a) => {\n\tlet s = r[d];\n\tif (typeof s == \"string\") {\n\t\tvar c;\n\t\treturn (c = i(f(s), s)) == null ? s : c;\n\t}\n\tlet u = l(t, n());\n\tif (!u) return e(r, i, a);\n\tlet p = o({}, r);\n\treturn u([p]), e(p, i, a);\n}, m = (e, t = {}) => {\n\tlet n = t.localizers, r = e.compile.bind(e);\n\treturn e.compile = ((...e) => {\n\t\tlet i = r(...e), a = ((...e) => {\n\t\t\tlet r = i(...e);\n\t\t\tif (Object.assign(a, i), !r && i.errors) {\n\t\t\t\tvar o;\n\t\t\t\tlet e = n ? l(n, (o = t.i18n) == null || (o = o.call(t)) == null ? void 0 : o.locale) : void 0;\n\t\t\t\te && e(i.errors.filter((e) => e.keyword !== \"errorMessage\")), a.errors = u(i.errors, t.i18n);\n\t\t\t} else a.errors = i.errors;\n\t\t\treturn r;\n\t\t});\n\t\treturn Object.assign(a, i), a;\n\t}), e;\n};\nexport { f as a, i as c, c as i, m as n, u as o, p as r, o as s, d as t };\n\n//# sourceMappingURL=ajvI18n-DO8FFvx1.mjs.map","// src/core/configNamespaces.ts\nvar e = \"jsonformsExtended\", t = \"jsonforms-react-renderers\", n = (e, t) => {\n\tif (!e || typeof e != \"object\") return;\n\tlet n = e[t];\n\treturn n && typeof n == \"object\" ? n : void 0;\n}, r = (t) => n(t, e), i = (t, r, i, a, o = e) => {\n\tvar s;\n\tlet c = t && typeof t == \"object\" ? t[i] : void 0;\n\tif (c !== void 0) return c;\n\tlet l = (s = n(r, o)) == null ? void 0 : s[i];\n\treturn l === void 0 ? a : l;\n};\nexport { t as JSONFORMS_CONFIG_KEY, e as JSONFORMS_EXTENDED_CONFIG_KEY, r as extendedConfig, i as resolveExtendedOption };\n\n//# sourceMappingURL=configNamespaces.esm.js.map","// src/components/elementRender.ts\nvar e = Symbol.for(\"jsonforms.element.render\");\nexport { e as t };\n\n//# sourceMappingURL=elementRender-y8MK9CCE.mjs.map","import { n as e } from \"./configNamespaces-BFclHtB8.mjs\";\n// src/util/markdownEscape.ts\nvar t = (e) => e.replace(/[\\\\`*_{}[\\]()#+\\-.!>|~]/g, (e) => `\\\\${e}`), n = (t) => t == null ? void 0 : t[e], r = (e) => {\n\tvar t;\n\treturn (t = n(e)) == null ? void 0 : t.markup;\n}, i = (e) => {\n\tvar t;\n\tlet n = (t = r(e)) == null ? void 0 : t.markdown;\n\treturn (n == null ? void 0 : n.enabled) !== !1;\n}, a = (e) => {\n\tvar t;\n\treturn ((t = r(e)) == null || (t = t.markdown) == null ? void 0 : t.profile) === \"extended\" ? \"extended\" : \"basic\";\n}, o = (e, t) => {\n\tvar n;\n\tif (typeof (e == null ? void 0 : e.typography) == \"boolean\") return e.typography;\n\tlet i = (n = r(t)) == null ? void 0 : n.typography;\n\treturn typeof i != \"boolean\" || i;\n}, s = (e, t) => {\n\tlet n = e == null ? void 0 : e.markup, r = (e == null ? void 0 : e.interpolate) === !0, a = o(e, t);\n\treturn n !== void 0 && n !== \"plain\" && n !== \"markdown\" ? {\n\t\tmarkdown: !1,\n\t\tinterpolate: r,\n\t\ttypography: a,\n\t\tdiagnostic: \"markupUnsupported\"\n\t} : n === \"markdown\" && !i(t) ? {\n\t\tmarkdown: !1,\n\t\tinterpolate: r,\n\t\ttypography: a,\n\t\tdiagnostic: \"markdownDisabled\"\n\t} : {\n\t\tmarkdown: n === \"markdown\",\n\t\tinterpolate: r,\n\t\ttypography: a\n\t};\n}, c = (e) => (e == null ? void 0 : e.interpolate) === !0 || (e == null ? void 0 : e.markup) !== void 0 && e.markup !== \"plain\";\n// \\0@oxc-project+runtime@0.156.0/helpers/esm/objectWithoutPropertiesLoose.js\nfunction l(e, t) {\n\tif (e == null) return {};\n\tvar n = {};\n\tfor (var r in e) if ({}.hasOwnProperty.call(e, r)) {\n\t\tif (t.includes(r)) continue;\n\t\tn[r] = e[r];\n\t}\n\treturn n;\n}\n// \\0@oxc-project+runtime@0.156.0/helpers/esm/objectWithoutProperties.js\nfunction u(e, t) {\n\tif (e == null) return {};\n\tvar n, r, i = l(e, t);\n\tif (Object.getOwnPropertySymbols) {\n\t\tvar a = Object.getOwnPropertySymbols(e);\n\t\tfor (r = 0; r < a.length; r++) n = a[r], t.includes(n) || {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);\n\t}\n\treturn i;\n}\nexport { o as a, s as i, i as n, c as o, a as r, t as s, u as t };\n\n//# sourceMappingURL=objectWithoutProperties-yjQMyZ0y.mjs.map","// src/locale/bg.ts\nvar e = {\n\t\"file.maximumSize\": \"размерът трябва да е по-малък от {limitText}\",\n\t\"file.minimumSize\": \"размерът трябва да е по-голям от {limitText}\",\n\t\"file.bytes\": \"байта\",\n\t\"mixed.renameNamed\": \"Преименуване на {name}\",\n\t\"mixed.deleteNamed\": \"Изтриване на {name}\",\n\t\"mixed.type.unknown\": \"неизвестен тип\",\n\t\"mixed.typedValue\": \"Стойност от тип {type}\",\n\t\"mixed.view\": \"Преглед на {label}\",\n\t\"mixed.expand\": \"Разгъване на {label}\",\n\t\"layout.resizePane\": \"Промяна на размера на панел {index}\",\n\t\"template.unsupported\": \"Неподдържан език на шаблон: {language}. Този набор поддържа „ractive“ и „jsx“.\",\n\t\"template.disabled\": \"Изпълнението на шаблони е изключено. То компилира низа в изпълним код и изисква jsonformsExtended.security.allowScriptEvaluation да е true.\",\n\t\"markup.reservedParam\": \"textParams.{name} е запазено име\",\n\t\"mixed.type.object\": \"обект\",\n\t\"mixed.type.array\": \"масив\",\n\t\"mixed.type.string\": \"низ\",\n\t\"mixed.type.number\": \"число\",\n\t\"mixed.type.integer\": \"цяло число\",\n\t\"mixed.type.boolean\": \"булева стойност\",\n\t\"mixed.type.null\": \"null\",\n\t\"image.warningDetails\": \"Подробности за предупреждението за изображението\",\n\t\"image.blocked\": \"Изображението е блокирано\",\n\t\"image.configurationWarning\": \"Предупреждение за настройката на изображението\",\n\t\"image.missingAlt\": \"ImageView изисква `alt` на най-горно ниво. Използвайте `alt: \\\"\\\"` за декоративно изображение.\",\n\t\"image.noSource\": \"ImageView изисква поне едно от `src` и `scope`.\",\n\t\"image.urlRefused\": \"Източникът на изображението е блокиран от политиката за URL адреси. Използвайте разрешен URL адрес или променете политиката.\",\n\t\"image.scopeNotString\": \"Схемата при {scope} не допуска низове.\",\n\t\"image.nonStringSource\": \"Стойността при {scope} е от тип {type}, а не низ с URL адрес.\",\n\t\"button.action\": \"Действие\",\n\t\"button.scriptDisabled\": \"„{label}“ изпълнява скрипт, който компилира низ в изпълним код. Това изисква jsonformsExtended.security.allowScriptEvaluation да е true.\",\n\t\"template.runtimeTitle\": \"Грешка при изпълнение на шаблона\",\n\t\"template.compileTitle\": \"Грешка при компилиране на шаблона:\",\n\t\"template.errorLabel\": \"Грешка:\",\n\t\"template.errorDetails\": \"Подробности за грешката\",\n\t\"template.source\": \"Изходен код на шаблона\",\n\t\"template.availableVariables\": \"Налични променливи: {names}\",\n\t\"template.noVariables\": \"няма\",\n\t\"control.value\": \"Стойност\",\n\t\"control.group\": \"Група\",\n\t\"control.array\": \"Масив\",\n\t\"boolean.yes\": \"Да\",\n\t\"boolean.no\": \"Не\",\n\t\"enum.select\": \"Изберете...\",\n\t\"control.done\": \"Готово\",\n\t\"control.apply\": \"Прилагане\",\n\t\"control.cancel\": \"Отказ\",\n\t\"control.close\": \"Затваряне\",\n\t\"control.more\": \"Още\",\n\t\"array.addAriaLabel\": \"Добавяне\",\n\t\"array.addTooltip\": \"Добавяне на елемент\",\n\t\"array.removeAriaLabel\": \"Премахване\",\n\t\"array.removeTooltip\": \"Премахване на елемент\",\n\t\"array.upAriaLabel\": \"Преместване нагоре\",\n\t\"array.up\": \"Преместване нагоре\",\n\t\"array.downAriaLabel\": \"Преместване надолу\",\n\t\"array.down\": \"Преместване надолу\",\n\t\"array.noDataMessage\": \"Няма данни\",\n\t\"collection.morePages\": \"Още страници\",\n\t\"collection.previousLabel\": \"Предишна\",\n\t\"collection.nextLabel\": \"Следваща\",\n\t\"mixed.clearType\": \"Изчистване на типа\",\n\t\"mixed.valuePath\": \"Път до стойността\",\n\t\"mixed.codeUnavailable\": \"Представянето като код изисква редактора Monaco от разширения регистър.\",\n\t\"combinator.clearTitle\": \"Изчистване на формуляра?\",\n\t\"combinator.clearMessage\": \"Данните ще бъдат изчистени, ако изберете схема с различен тип данни. Искате ли да продължите?\",\n\t\"temporal.clearDate\": \"Изчистване на датата\",\n\t\"temporal.clearTime\": \"Изчистване на часа\",\n\t\"temporal.clearDateTime\": \"Изчистване на датата и часа\",\n\t\"temporal.hours\": \"Часове\",\n\t\"temporal.minutes\": \"Минути\",\n\t\"temporal.seconds\": \"Секунди\",\n\t\"temporal.increaseHours\": \"Увеличаване на часовете\",\n\t\"temporal.decreaseHours\": \"Намаляване на часовете\",\n\t\"temporal.increaseMinutes\": \"Увеличаване на минутите\",\n\t\"temporal.decreaseMinutes\": \"Намаляване на минутите\",\n\t\"temporal.increaseSeconds\": \"Увеличаване на секундите\",\n\t\"temporal.decreaseSeconds\": \"Намаляване на секундите\",\n\t\"temporal.period\": \"Част от деня\",\n\t\"temporal.am\": \"пр.об.\",\n\t\"temporal.pm\": \"сл.об.\",\n\t\"temporal.month\": \"Месец\",\n\t\"temporal.year\": \"Година\",\n\t\"calendar.navigation\": \"Навигация на календара\",\n\t\"calendar.previousMonth\": \"Към предишния месец\",\n\t\"calendar.nextMonth\": \"Към следващия месец\",\n\t\"calendar.chooseMonth\": \"Избор на месец\",\n\t\"calendar.chooseYear\": \"Избор на година\",\n\t\"calendar.weekNumber\": \"Седмица {week}\",\n\t\"calendar.weekNumberHeader\": \"Номер на седмицата\",\n\t\"calendar.day\": \"{date}{selected}{today}\",\n\t\"calendar.selected\": \", избран\",\n\t\"calendar.today\": \", днес\",\n\t\"color.pickerLabel\": \"Избор на {label}\",\n\t\"color.label\": \"Цвят\",\n\t\"color.saturationLabel\": \"Наситеност и яркост на {label}\",\n\t\"color.hueLabel\": \"Нюанс на {label}\",\n\t\"color.channelLabel\": \"{label} {channel}\",\n\t\"dynamic.loading\": \"Зареждане на формуляра…\",\n\t\"dynamic.loadFailed\": \"Зареждането на формуляра е неуспешно.\",\n\t\"breadcrumb.label\": \"Навигационна пътека\",\n\t\"collection.firstError\": \"Към първата грешка\",\n\t\"collection.addedHidden\": \"Новият елемент е скрит от текущия филтър.\",\n\t\"collection.clearFilters\": \"Изчистване на филтрите\",\n\t\"composite.summary.emptyObject\": \"Празен обект\",\n\t\"composite.summary.unspecified\": \"{label} не е зададено\",\n\t\"collection.pagination\": \"Странициране\",\n\t\"collection.pageSize\": \"Брой елементи на страница\",\n\t\"collection.previous\": \"Предишна страница\",\n\t\"collection.next\": \"Следваща страница\",\n\t\"collection.editDetails\": \"Редактиране на подробностите\",\n\t\"collection.selectItem\": \"Изберете елемент, за да видите подробностите за него.\",\n\t\"collection.showDetails\": \"Показване на подробностите\",\n\t\"collection.hideDetails\": \"Скриване на подробностите\",\n\t\"collection.deleteSelected\": \"Изтриване на избраните редове\",\n\t\"collection.deleteSelectedMessage\": \"Да се изтрият ли избраните редове и техните данни?\",\n\t\"collection.selectPage\": \"Избиране на всички редове на тази страница\",\n\t\"collection.selectRow\": \"Избиране на ред {index}\",\n\t\"oneOf.chooseKind\": \"Изберете вид.\",\n\t\"oneOf.clear\": \"Изчистване на избора\",\n\t\"collection.resizeColumn\": \"Промяна на ширината на колоната {field}\",\n\t\"enum.search\": \"Търсене на възможности\",\n\t\"enum.none\": \"Няма\",\n\t\"enum.noMatches\": \"Няма съвпадения\",\n\t\"chips.addPlaceholder\": \"Въведете стойност и натиснете Enter\",\n\t\"group.dataIndicator\": \"Секцията съдържа данни\",\n\t\"validation.showMore\": \"Покажи още {count}\",\n\t\"validation.showLess\": \"Покажи по-малко\",\n\t\"validation.childrenErrorCount\": \"1 грешка в елементите.\",\n\t\"validation.childrenErrors\": \"Някои елементи съдържат грешки.\",\n\t\"validation.childrenErrorsCount\": \"{count} грешки в елементите.\",\n\t\"validation.containerError\": \"{count} грешка в тази секция\",\n\t\"validation.containerErrors\": \"{count} грешки в тази секция\",\n\t\"validation.containerHasErrors\": \"Тази секция съдържа грешки\",\n\t\"file.rejected\": \"„{name}“ не беше прикачен: {reason}\",\n\t\"file.maxItems\": \"Файловете не са добавени. Допускат се най-много {limit} прикачени файла; съществуващите са запазени.\",\n\t\"file.sizeBound\": \"{name} трябва да съдържа {bound} {limit} байта.\",\n\t\"file.readFailed\": \"Файловете не могат да бъдат прочетени. Съществуващите файлове са запазени.\",\n\t\"file.reading\": \"Четене на файлове…\",\n\t\"file.numbered\": \"Файл {index}\",\n\t\"file.atLeast\": \"поне\",\n\t\"file.moreThan\": \"повече от\",\n\t\"file.atMost\": \"най-много\",\n\t\"file.lessThan\": \"по-малко от\",\n\t\"file.attached\": \"Прикачен файл\",\n\t\"file.clearAll\": \"Премахване на всички файлове\",\n\t\"file.select\": \"Изберете файл\",\n\t\"temporal.datePlaceholder\": \"Изберете дата\",\n\t\"temporal.timePlaceholder\": \"Изберете час\",\n\t\"temporal.dateTimePlaceholder\": \"Изберете дата и час\",\n\t\"control.clearValue\": \"Изчистване на стойността\",\n\t\"control.notSet\": \"Не е зададено\",\n\t\"password.show\": \"Показване на паролата\",\n\t\"password.hide\": \"Скриване на паролата\",\n\t\"boolean.notSet\": \"Не е зададено\",\n\t\"boolean.invalid\": \"Стойността не е „да“ или „не“\",\n\t\"array.indexLabel\": \"Номер\",\n\t\"categorization.next\": \"Напред\",\n\t\"categorization.previous\": \"Назад\",\n\t\"confirm.delete.title\": \"Изтриване на стойността?\",\n\t\"confirm.delete.message\": \"Стойността ще бъде премахната. Действието не може да бъде отменено оттук.\",\n\t\"confirm.typeChange.title\": \"Промяна на типа?\",\n\t\"confirm.typeChange.message\": \"Текущата стойност не отговаря на новия тип и ще бъде отхвърлена.\",\n\t\"confirm.branchChange.title\": \"Промяна на избора?\",\n\t\"confirm.branchChange.message\": \"Данните, които новият избор не описва, ще бъдат отхвърлени.\",\n\t\"confirm.accept\": \"Да\",\n\t\"confirm.decline\": \"Не\",\n\t\"combinator.cancel\": \"Отказ\",\n\t\"additionalProperties.title\": \"Допълнителни свойства\",\n\t\"additionalProperties.namePlaceholder\": \"Име на свойството\",\n\t\"additionalProperties.add\": \"Добавяне на свойство\",\n\t\"additionalProperties.addTo\": \"Добавяне на свойство към {label}\",\n\t\"additionalProperties.rename\": \"Преименуване на свойството\",\n\t\"additionalProperties.renameNamed\": \"Преименуване на {name}\",\n\t\"additionalProperties.renameTitle\": \"Преименуване на свойство\",\n\t\"additionalProperties.renameDialogDescription\": \"Променете името на свойството, без да променяте стойността му.\",\n\t\"additionalProperties.renamePropertyNameLabel\": \"Име на свойството\",\n\t\"additionalProperties.renameConfirm\": \"Преименуване\",\n\t\"additionalProperties.delete\": \"Изтриване на свойството\",\n\t\"additionalProperties.deleteNamed\": \"Изтриване на {name}\",\n\t\"additionalProperties.deleteBlocked\": \"Схемата изисква това свойство.\",\n\t\"additionalProperties.nameRequired\": \"Въведете име на свойството.\",\n\t\"additionalProperties.nameTaken\": \"„{name}“ вече е дефинирано.\",\n\t\"additionalProperties.nameInvalid\": \"„{name}“ не е допустимо име тук.\",\n\t\"additionalProperties.namePattern\": \"Името на свойството не съответства на разрешен шаблон.\",\n\t\"mixed.typeLabel\": \"Тип на стойността\",\n\t\"mixed.typePlaceholder\": \"Изберете тип\",\n\t\"mixed.integerRequired\": \"Въведете цяло число.\",\n\t\"mixed.required\": \"Задължително\",\n\t\"mixed.treeLabel\": \"Структура на стойността\",\n\t\"mixed.searchLabel\": \"Търсене в структурата\",\n\t\"mixed.searchPlaceholder\": \"Търсене...\",\n\t\"mixed.showPrimitives\": \"Показване на простите стойности\",\n\t\"mixed.hidePrimitives\": \"Скриване на простите стойности\",\n\t\"mixed.rename\": \"Преименуване\",\n\t\"mixed.renameBlocked\": \"Това свойство не може да бъде преименувано.\",\n\t\"mixed.delete\": \"Изтриване\",\n\t\"cron.expression\": \"Израз\",\n\t\"cron.choose\": \"Изберете график\",\n\t\"cron.ok\": \"Прилагане\",\n\t\"cron.cancel\": \"Отказ\",\n\t\"cron.repeats\": \"Повтаря се\",\n\t\"cron.chooseRepeats\": \"Изберете колко често\",\n\t\"cron.period.second\": \"Всяка секунда\",\n\t\"cron.period.minute\": \"Всяка минута\",\n\t\"cron.period.hour\": \"На всеки час\",\n\t\"cron.period.day\": \"Всеки ден\",\n\t\"cron.period.week\": \"Всяка седмица\",\n\t\"cron.period.month\": \"Всеки месец\",\n\t\"cron.period.year\": \"Всяка година\",\n\t\"cron.second\": \"Секунди\",\n\t\"cron.minute\": \"Минути\",\n\t\"cron.hour\": \"Часове\",\n\t\"cron.dayOfMonth\": \"Дни от месеца\",\n\t\"cron.month\": \"Месеци\",\n\t\"cron.dayOfWeek\": \"Дни от седмицата\",\n\t\"cron.every\": \"Всяка стойност\",\n\t\"cron.advanced\": \"Редактира се като текст: полето използва синтаксис, който не може да се изрази със списък.\",\n\t\"cron.error.sixFields\": \"Графикът има шест полета: секунда, минута, час, ден от месеца, месец, ден от седмицата.\",\n\t\"cron.error.second\": \"Полето за секунди не е валидно (0-59).\",\n\t\"cron.error.minute\": \"Полето за минути не е валидно (0-59).\",\n\t\"cron.error.hour\": \"Полето за часове не е валидно (0-23).\",\n\t\"cron.error.dayOfMonth\": \"Полето за ден от месеца не е валидно (1-31).\",\n\t\"cron.error.month\": \"Полето за месец не е валидно (1-12 или JAN-DEC).\",\n\t\"cron.error.dayOfWeek\": \"Полето за ден от седмицата не е валидно (0-7 или SUN-SAT).\",\n\t\"duration.weeks\": \"Седмици\",\n\t\"duration.years\": \"Години\",\n\t\"duration.months\": \"Месеци\",\n\t\"duration.days\": \"Дни\",\n\t\"duration.hours\": \"Часове\",\n\t\"duration.minutes\": \"Минути\",\n\t\"duration.seconds\": \"Секунди\",\n\t\"duration.addUnit\": \"Добавяне на единица\",\n\t\"duration.removeUnit\": \"Премахване на „{unit}“\",\n\t\"duration.modeComponents\": \"От години до секунди\",\n\t\"duration.modeWeeks\": \"Седмици\",\n\t\"duration.ok\": \"Прилагане\",\n\t\"duration.cancel\": \"Отказ\",\n\t\"tuple.position\": \"Елемент {position}\",\n\t\"tuple.additionalItems\": \"Допълнителни елементи\",\n\t\"tuple.add\": \"Добавяне на елемент\",\n\t\"tuple.delete\": \"Изтриване на {label}\",\n\t\"tuple.configuration\": \"Представянето като кортеж изисква схеми по позиции или равни неотрицателни minItems и maxItems на масива.\",\n\t\"tuple.forbidden\": \"На тази позиция не се допуска стойност.\",\n\t\"tuple.missingPosition\": \"Първо въведете елемент {position}.\",\n\t\"tuple.valueRequired\": \"Въведете стойност за тази позиция.\",\n\t\"tuple.initialType\": \"Допълнителният елемент се нуждае от изрична стойност по подразбиране или тип.\",\n\t\"composite.summary.item\": \"{count} елемент\",\n\t\"composite.summary.items\": \"{count} елемента\",\n\t\"composite.summary.details\": \"Преглед на детайлите\",\n\t\"composite.summary.unset\": \"Не е зададено\",\n\t\"composite.summary.more\": \"(+още {count})\",\n\t\"composite.edit\": \"Редактиране на {label}\",\n\t\"composite.remove\": \"Премахване на {label}\",\n\t\"composite.detailsTitle\": \"Детайли\",\n\t\"composite.itemsLabel\": \"елемента\",\n\t\"composite.detailsLabel\": \"детайли\",\n\t\"composite.empty\": \"Изчистване\",\n\t\"composite.emptyTooltip\": \"Изчиства съдържанието, като запазва обекта или масива.\",\n\t\"dialog.maximize\": \"Увеличаване на диалоговия прозорец\",\n\t\"dialog.restore\": \"Възстановяване на размера на диалоговия прозорец\",\n\t\"composite.cancel\": \"Отказ\",\n\t\"composite.cancelTooltip\": \"Отхвърля промените и затваря.\",\n\t\"composite.apply\": \"Прилагане\",\n\t\"composite.applyTooltip\": \"Прилага промените и затваря.\",\n\t\"composite.applyConflict\": \"Стойността беше променена другаде, докато диалогът беше отворен. Откажете и го отворете отново.\"\n};\nexport { e as bgRendererLocale };\n\n//# sourceMappingURL=bg.esm.js.map","// src/locale/en.ts\nvar e = {\n\t\"file.maximumSize\": \"size should be less than {limitText}\",\n\t\"file.minimumSize\": \"size should be greater than {limitText}\",\n\t\"file.bytes\": \"Bytes\",\n\t\"mixed.renameNamed\": \"Rename {name}\",\n\t\"mixed.deleteNamed\": \"Delete {name}\",\n\t\"mixed.type.unknown\": \"unknown\",\n\t\"mixed.typedValue\": \"{type} value\",\n\t\"mixed.view\": \"View {label}\",\n\t\"mixed.expand\": \"Expand {label}\",\n\t\"layout.resizePane\": \"Resize pane {index}\",\n\t\"template.unsupported\": \"Unsupported template language {language}. This renderer set implements \\\"ractive\\\" and \\\"jsx\\\".\",\n\t\"template.disabled\": \"Template rendering is disabled. It compiles the template string into executable code, which requires jsonformsExtended.security.allowScriptEvaluation to be true.\",\n\t\"markup.reservedParam\": \"textParams.{name} is a reserved name\",\n\t\"mixed.type.object\": \"object\",\n\t\"mixed.type.array\": \"array\",\n\t\"mixed.type.string\": \"string\",\n\t\"mixed.type.number\": \"number\",\n\t\"mixed.type.integer\": \"integer\",\n\t\"mixed.type.boolean\": \"boolean\",\n\t\"mixed.type.null\": \"null\",\n\t\"image.warningDetails\": \"Image warning details\",\n\t\"image.blocked\": \"Image blocked\",\n\t\"image.configurationWarning\": \"Image configuration warning\",\n\t\"image.missingAlt\": \"ImageView requires a top-level `alt`. Use `alt: \\\"\\\"` to mark the image decorative.\",\n\t\"image.noSource\": \"ImageView requires at least one of `src` and `scope`.\",\n\t\"image.urlRefused\": \"The image source is blocked by the configured URL policy. Use an allowed image URL or adjust the image URL policy.\",\n\t\"image.scopeNotString\": \"The schema at {scope} does not permit strings.\",\n\t\"image.nonStringSource\": \"The value at {scope} is a {type}, not a URL string.\",\n\t\"button.action\": \"Action\",\n\t\"button.scriptDisabled\": \"\\\"{label}\\\" runs a script, which compiles a string into executable code. That requires jsonformsExtended.security.allowScriptEvaluation to be true.\",\n\t\"template.runtimeTitle\": \"Template Runtime Error\",\n\t\"template.compileTitle\": \"Template Compilation Error:\",\n\t\"template.errorLabel\": \"Error:\",\n\t\"template.errorDetails\": \"Error Details\",\n\t\"template.source\": \"Template Source\",\n\t\"template.availableVariables\": \"Available variables: {names}\",\n\t\"template.noVariables\": \"none\",\n\t\"control.value\": \"Value\",\n\t\"control.group\": \"Group\",\n\t\"control.array\": \"Array\",\n\t\"boolean.yes\": \"Yes\",\n\t\"boolean.no\": \"No\",\n\t\"enum.select\": \"Select...\",\n\t\"control.done\": \"Done\",\n\t\"control.apply\": \"Apply\",\n\t\"control.cancel\": \"Cancel\",\n\t\"control.close\": \"Close\",\n\t\"control.more\": \"More\",\n\t\"array.addAriaLabel\": \"Add\",\n\t\"array.addTooltip\": \"Add item\",\n\t\"array.removeAriaLabel\": \"Remove\",\n\t\"array.removeTooltip\": \"Remove item\",\n\t\"array.upAriaLabel\": \"Move up\",\n\t\"array.up\": \"Move up\",\n\t\"array.downAriaLabel\": \"Move down\",\n\t\"array.down\": \"Move down\",\n\t\"array.noDataMessage\": \"No data\",\n\t\"collection.morePages\": \"More pages\",\n\t\"collection.previousLabel\": \"Previous\",\n\t\"collection.nextLabel\": \"Next\",\n\t\"mixed.clearType\": \"Clear type\",\n\t\"mixed.valuePath\": \"Value path\",\n\t\"mixed.codeUnavailable\": \"Code presentation requires the Monaco renderer from the extended renderer registry.\",\n\t\"combinator.clearTitle\": \"Clear form?\",\n\t\"combinator.clearMessage\": \"Your data will be cleared if you select a schema with a different data type. Do you want to proceed?\",\n\t\"temporal.clearDate\": \"Clear date\",\n\t\"temporal.clearTime\": \"Clear time\",\n\t\"temporal.clearDateTime\": \"Clear date and time\",\n\t\"temporal.hours\": \"Hours\",\n\t\"temporal.minutes\": \"Minutes\",\n\t\"temporal.seconds\": \"Seconds\",\n\t\"temporal.increaseHours\": \"Increase hours\",\n\t\"temporal.decreaseHours\": \"Decrease hours\",\n\t\"temporal.increaseMinutes\": \"Increase minutes\",\n\t\"temporal.decreaseMinutes\": \"Decrease minutes\",\n\t\"temporal.increaseSeconds\": \"Increase seconds\",\n\t\"temporal.decreaseSeconds\": \"Decrease seconds\",\n\t\"temporal.period\": \"Period\",\n\t\"temporal.am\": \"AM\",\n\t\"temporal.pm\": \"PM\",\n\t\"temporal.month\": \"Month\",\n\t\"temporal.year\": \"Year\",\n\t\"calendar.navigation\": \"Navigation bar\",\n\t\"calendar.previousMonth\": \"Go to the Previous Month\",\n\t\"calendar.nextMonth\": \"Go to the Next Month\",\n\t\"calendar.chooseMonth\": \"Choose the Month\",\n\t\"calendar.chooseYear\": \"Choose the Year\",\n\t\"calendar.weekNumber\": \"Week {week}\",\n\t\"calendar.weekNumberHeader\": \"Week number\",\n\t\"calendar.day\": \"{date}{selected}{today}\",\n\t\"calendar.selected\": \", selected\",\n\t\"calendar.today\": \", today\",\n\t\"color.pickerLabel\": \"{label} picker\",\n\t\"color.label\": \"Color\",\n\t\"color.saturationLabel\": \"{label} saturation and brightness\",\n\t\"color.hueLabel\": \"{label} hue\",\n\t\"color.channelLabel\": \"{label} {channel}\",\n\t\"dynamic.loading\": \"Loading form…\",\n\t\"dynamic.loadFailed\": \"Unable to load dynamic expressions.\",\n\t\"breadcrumb.label\": \"breadcrumb\",\n\t\"oneOf.chooseKind\": \"Choose a kind.\",\n\t\"oneOf.clear\": \"Clear selection\",\n\t\"collection.resizeColumn\": \"Resize {field} column\",\n\t\"collection.deleteSelected\": \"Delete selected rows\",\n\t\"collection.deleteSelectedMessage\": \"Delete the selected rows and their data?\",\n\t\"collection.selectPage\": \"Select all rows on this page\",\n\t\"collection.selectRow\": \"Select row {index}\",\n\t\"collection.pagination\": \"Pagination\",\n\t\"collection.pageSize\": \"Items per page\",\n\t\"collection.previous\": \"Previous page\",\n\t\"collection.next\": \"Next page\",\n\t\"collection.showDetails\": \"Show details\",\n\t\"collection.hideDetails\": \"Hide details\",\n\t\"collection.addedHidden\": \"The new item is hidden by the current filter.\",\n\t\"collection.clearFilters\": \"Clear filters\",\n\t\"collection.firstError\": \"Go to first error\",\n\t\"collection.editDetails\": \"Edit details\",\n\t\"collection.selectItem\": \"Select an item to view its details.\",\n\t\"enum.search\": \"Search choices\",\n\t\"enum.none\": \"None\",\n\t\"enum.noMatches\": \"No matching choices\",\n\t\"chips.addPlaceholder\": \"Type a value and press Enter\",\n\t\"group.dataIndicator\": \"Section contains data\",\n\t\"validation.showMore\": \"Show {count} more\",\n\t\"validation.showLess\": \"Show less\",\n\t\"validation.childrenErrorCount\": \"1 error in items.\",\n\t\"validation.childrenErrors\": \"Some items contain errors.\",\n\t\"validation.childrenErrorsCount\": \"{count} errors in items.\",\n\t\"validation.containerError\": \"{count} error in this section\",\n\t\"validation.containerErrors\": \"{count} errors in this section\",\n\t\"validation.containerHasErrors\": \"This section contains errors\",\n\t\"file.rejected\": \"\\\"{name}\\\" was not attached: {reason}\",\n\t\"file.maxItems\": \"These files were not added. A maximum of {limit} attachments is allowed; existing files were kept.\",\n\t\"file.sizeBound\": \"{name} must contain {bound} {limit} bytes.\",\n\t\"file.readFailed\": \"The files could not be read. Existing attachments were kept.\",\n\t\"file.reading\": \"Reading files…\",\n\t\"file.numbered\": \"File {index}\",\n\t\"file.atLeast\": \"at least\",\n\t\"file.moreThan\": \"more than\",\n\t\"file.atMost\": \"at most\",\n\t\"file.lessThan\": \"less than\",\n\t\"file.attached\": \"File attached\",\n\t\"file.clearAll\": \"Clear all files\",\n\t\"file.select\": \"Select File\",\n\t\"temporal.datePlaceholder\": \"Pick a date\",\n\t\"temporal.timePlaceholder\": \"Pick a time\",\n\t\"temporal.dateTimePlaceholder\": \"Pick a date and time\",\n\t\"control.clearValue\": \"Clear value\",\n\t\"control.notSet\": \"Not set\",\n\t\"password.show\": \"Show password\",\n\t\"password.hide\": \"Hide password\",\n\t\"boolean.notSet\": \"Not set\",\n\t\"boolean.invalid\": \"Not a true or false value\",\n\t\"array.indexLabel\": \"Index\",\n\t\"categorization.next\": \"Next\",\n\t\"categorization.previous\": \"Previous\",\n\t\"confirm.delete.title\": \"Delete this value?\",\n\t\"confirm.delete.message\": \"The value will be removed. This cannot be undone from here.\",\n\t\"confirm.typeChange.title\": \"Change the type?\",\n\t\"confirm.typeChange.message\": \"The current value does not fit the new type and will be discarded.\",\n\t\"confirm.branchChange.title\": \"Change the selection?\",\n\t\"confirm.branchChange.message\": \"Data that the new selection does not describe will be discarded.\",\n\t\"dialog.maximize\": \"Maximize dialog\",\n\t\"dialog.restore\": \"Restore dialog\",\n\t\"confirm.accept\": \"Yes\",\n\t\"confirm.decline\": \"No\",\n\t\"combinator.cancel\": \"Cancel\",\n\t\"additionalProperties.title\": \"Additional Properties\",\n\t\"additionalProperties.namePlaceholder\": \"Property name\",\n\t\"additionalProperties.add\": \"Add property\",\n\t\"additionalProperties.addTo\": \"Add property to {label}\",\n\t\"additionalProperties.rename\": \"Rename property\",\n\t\"additionalProperties.renameNamed\": \"Rename {name}\",\n\t\"additionalProperties.renameTitle\": \"Rename property\",\n\t\"additionalProperties.renameDialogDescription\": \"Change the property name without changing its value.\",\n\t\"additionalProperties.renamePropertyNameLabel\": \"Property Name\",\n\t\"additionalProperties.renameConfirm\": \"Rename\",\n\t\"additionalProperties.delete\": \"Delete property\",\n\t\"additionalProperties.deleteNamed\": \"Delete {name}\",\n\t\"additionalProperties.deleteBlocked\": \"The schema requires this property to remain.\",\n\t\"additionalProperties.nameRequired\": \"Enter a property name.\",\n\t\"additionalProperties.nameTaken\": \"'{name}' is already defined.\",\n\t\"additionalProperties.nameInvalid\": \"'{name}' is not a permitted property name here.\",\n\t\"additionalProperties.namePattern\": \"The property name does not match an allowed pattern.\",\n\t\"mixed.typeLabel\": \"Value type\",\n\t\"mixed.typePlaceholder\": \"Select a type\",\n\t\"mixed.integerRequired\": \"Enter a whole number.\",\n\t\"mixed.required\": \"Required\",\n\t\"mixed.treeLabel\": \"Value structure\",\n\t\"mixed.searchLabel\": \"Search value tree\",\n\t\"mixed.searchPlaceholder\": \"Search tree...\",\n\t\"mixed.showPrimitives\": \"Show primitives\",\n\t\"mixed.hidePrimitives\": \"Hide primitives\",\n\t\"mixed.rename\": \"Rename\",\n\t\"mixed.renameBlocked\": \"This property cannot be renamed.\",\n\t\"mixed.delete\": \"Delete\",\n\t\"cron.expression\": \"Expression\",\n\t\"cron.choose\": \"Choose a schedule\",\n\t\"cron.ok\": \"Apply\",\n\t\"cron.cancel\": \"Cancel\",\n\t\"cron.repeats\": \"Repeats\",\n\t\"cron.chooseRepeats\": \"Choose how often\",\n\t\"cron.period.second\": \"Every second\",\n\t\"cron.period.minute\": \"Every minute\",\n\t\"cron.period.hour\": \"Hourly\",\n\t\"cron.period.day\": \"Daily\",\n\t\"cron.period.week\": \"Weekly\",\n\t\"cron.period.month\": \"Monthly\",\n\t\"cron.period.year\": \"Yearly\",\n\t\"cron.second\": \"Seconds\",\n\t\"cron.minute\": \"Minutes\",\n\t\"cron.hour\": \"Hours\",\n\t\"cron.dayOfMonth\": \"Days of month\",\n\t\"cron.month\": \"Months\",\n\t\"cron.dayOfWeek\": \"Days of week\",\n\t\"cron.every\": \"Every\",\n\t\"cron.advanced\": \"Edited as text: this field uses syntax a list cannot state.\",\n\t\"cron.error.sixFields\": \"A schedule has six fields: second, minute, hour, day of month, month, day of week.\",\n\t\"cron.error.second\": \"The seconds field is not valid (0-59).\",\n\t\"cron.error.minute\": \"The minutes field is not valid (0-59).\",\n\t\"cron.error.hour\": \"The hours field is not valid (0-23).\",\n\t\"cron.error.dayOfMonth\": \"The day-of-month field is not valid (1-31).\",\n\t\"cron.error.month\": \"The month field is not valid (1-12, or JAN-DEC).\",\n\t\"cron.error.dayOfWeek\": \"The day-of-week field is not valid (0-7, or SUN-SAT).\",\n\t\"duration.weeks\": \"Weeks\",\n\t\"duration.years\": \"Years\",\n\t\"duration.months\": \"Months\",\n\t\"duration.days\": \"Days\",\n\t\"duration.hours\": \"Hours\",\n\t\"duration.minutes\": \"Minutes\",\n\t\"duration.seconds\": \"Seconds\",\n\t\"duration.addUnit\": \"Add unit\",\n\t\"duration.removeUnit\": \"Remove {unit}\",\n\t\"duration.modeComponents\": \"Years to seconds\",\n\t\"duration.modeWeeks\": \"Weeks\",\n\t\"duration.ok\": \"Apply\",\n\t\"duration.cancel\": \"Cancel\",\n\t\"tuple.position\": \"Item {position}\",\n\t\"tuple.additionalItems\": \"Additional items\",\n\t\"tuple.add\": \"Add item\",\n\t\"tuple.delete\": \"Delete {label}\",\n\t\"tuple.configuration\": \"Tuple presentation requires positional schemas, or equal non-negative minItems and maxItems on an array.\",\n\t\"tuple.forbidden\": \"No value is permitted at this position.\",\n\t\"tuple.missingPosition\": \"Enter Item {position} first.\",\n\t\"tuple.valueRequired\": \"Enter a value for this position.\",\n\t\"tuple.initialType\": \"The additional item needs an explicit default or type.\",\n\t\"composite.summary.item\": \"{count} item\",\n\t\"composite.summary.items\": \"{count} items\",\n\t\"composite.summary.details\": \"View details\",\n\t\"composite.summary.unset\": \"Not set\",\n\t\"composite.summary.more\": \"(+{count} more)\",\n\t\"composite.edit\": \"Edit {label}\",\n\t\"composite.remove\": \"Remove {label}\",\n\t\"composite.summary.emptyObject\": \"Empty object\",\n\t\"composite.summary.unspecified\": \"{label} not specified\",\n\t\"composite.detailsTitle\": \"Details\",\n\t\"composite.itemsLabel\": \"items\",\n\t\"composite.detailsLabel\": \"details\",\n\t\"composite.empty\": \"Clear\",\n\t\"composite.emptyTooltip\": \"Clear contents, keeping the object or array.\",\n\t\"composite.cancel\": \"Cancel\",\n\t\"composite.cancelTooltip\": \"Discard changes and close.\",\n\t\"composite.apply\": \"Apply\",\n\t\"composite.applyTooltip\": \"Apply changes and close.\",\n\t\"composite.applyConflict\": \"This value changed elsewhere while the dialog was open. Cancel and reopen it.\"\n};\nexport { e as enRendererLocale };\n\n//# sourceMappingURL=en.esm.js.map","import { bgRendererLocale as e } from \"./bg.esm.js\";\nimport { enRendererLocale as t } from \"./en.esm.js\";\n// src/locale/rendererLocale.ts\nvar n = {\n\ten: {},\n\tbg: e\n}, r = n, i = (e) => {\n\tr = e;\n}, a = () => r, o = (e) => e.toLowerCase().replace(/_/g, \"-\"), s = (e, t) => {\n\tr = {\n\t\t...r,\n\t\t[o(e)]: t\n\t};\n}, c = (e) => {\n\tif (!e) return;\n\tlet t = o(e);\n\treturn r[t] ?? r[t.split(\"-\")[0]];\n}, l = (e, n) => {\n\tvar r;\n\treturn ((r = c(e)) == null ? void 0 : r[n]) ?? t[n];\n};\nexport { n as defaultRendererLocales, a as getRendererLocales, s as registerRendererLocale, l as rendererDefault, c as resolveRendererLocale, i as setRendererLocales };\n\n//# sourceMappingURL=rendererLocale.esm.js.map","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","import React, { Component, useRef, useState, useEffect, useReducer, useCallback, useMemo, useContext } from 'react';\nimport maxBy from 'lodash/maxBy';\nimport { defaultMiddleware, Actions, coreReducer, configReducer, i18nReducer, mapStateToArrayLayoutProps, mapStateToArrayControlProps, mapStateToLayoutProps, mapStateToControlProps, mapStateToEnumControlProps, mapStateToOneOfEnumControlProps, mapStateToMultiEnumControlProps, mapStateToControlWithDetailProps, mapStateToAllOfProps, mapDispatchToControlProps, mapStateToAnyOfProps, mapStateToOneOfProps, mapStateToJsonFormsRendererProps, mapDispatchToArrayControlProps, mapStateToMasterListItemProps, mapStateToCellProps, defaultMapStateToEnumCellProps, mapStateToOneOfEnumCellProps, mapStateToDispatchCellProps, mapDispatchToMultiEnumProps, mapStateToLabelProps, defaultJsonFormsI18nState, getArrayTranslations, arrayDefaultTranslations, isControl, Id, Generate } from '@jsonforms/core';\nimport debounce from 'lodash/debounce';\n\nclass RendererComponent extends React.Component {\n constructor(props) {\n super(props);\n }\n}\n\nclass Control extends RendererComponent {\n constructor(props) {\n super(props);\n this.handleChange = (value) => {\n this.setState({ value });\n this.updateData(value);\n };\n this.onFocus = () => {\n this.setState({ isFocused: true });\n };\n this.onBlur = () => {\n this.setState({ isFocused: false });\n };\n this.updateData = (value) => {\n this.props.handleChange(this.props.path, value);\n };\n this.state = {\n value: props.data ? props.data : '',\n isFocused: false,\n };\n }\n}\n\nclass UnknownRenderer extends Component {\n render() {\n return (React.createElement(\"div\", { style: { color: 'red' } },\n \"No applicable \",\n this.props.type,\n \" found.\"));\n }\n}\n\nconst initialCoreState = {\n data: {},\n schema: {},\n uischema: undefined,\n errors: [],\n additionalErrors: [],\n validator: undefined,\n ajv: undefined,\n};\nconst JsonFormsContext = React.createContext({\n core: initialCoreState,\n renderers: [],\n});\nconst useEffectAfterFirstRender = (effect, dependencies) => {\n const firstExecution = useRef(true);\n useEffect(() => {\n if (firstExecution.current) {\n firstExecution.current = false;\n return;\n }\n effect();\n }, dependencies);\n};\nconst JsonFormsStateProvider = ({ children, initState, onChange, middleware, }) => {\n const { data, schema, uischema, ajv, validationMode, additionalErrors } = initState.core;\n const middlewareRef = useRef(middleware ?? defaultMiddleware);\n middlewareRef.current = middleware ?? defaultMiddleware;\n const [core, setCore] = useState(() => middlewareRef.current(initState.core, Actions.init(data, schema, uischema, {\n ajv,\n validationMode,\n additionalErrors,\n }), coreReducer));\n useEffect(() => setCore((currentCore) => middlewareRef.current(currentCore, Actions.updateCore(data, schema, uischema, {\n ajv,\n validationMode,\n additionalErrors,\n }), coreReducer)), [data, schema, uischema, ajv, validationMode, additionalErrors]);\n const [config, configDispatch] = useReducer(configReducer, undefined, () => configReducer(undefined, Actions.setConfig(initState.config)));\n useEffectAfterFirstRender(() => {\n configDispatch(Actions.setConfig(initState.config));\n }, [initState.config]);\n const [i18n, i18nDispatch] = useReducer(i18nReducer, undefined, () => i18nReducer(initState.i18n, Actions.updateI18n(initState.i18n?.locale, initState.i18n?.translate, initState.i18n?.translateError)));\n useEffect(() => {\n i18nDispatch(Actions.updateI18n(initState.i18n?.locale, initState.i18n?.translate, initState.i18n?.translateError));\n }, [\n initState.i18n?.locale,\n initState.i18n?.translate,\n initState.i18n?.translateError,\n ]);\n const dispatch = useCallback((action) => {\n setCore((currentCore) => middlewareRef.current(currentCore, action, coreReducer));\n }, []);\n const contextValue = useMemo(() => ({\n core,\n renderers: initState.renderers,\n cells: initState.cells,\n config: config,\n uischemas: initState.uischemas,\n readonly: initState.readonly,\n i18n: i18n,\n dispatch: dispatch,\n }), [\n core,\n initState.renderers,\n initState.cells,\n config,\n initState.uischemas,\n initState.readonly,\n i18n,\n ]);\n const onChangeRef = useRef(onChange);\n useEffect(() => {\n onChangeRef.current = onChange;\n }, [onChange]);\n const debouncedEmit = useCallback(debounce((...args) => onChangeRef.current?.(...args), 10), []);\n useEffect(() => {\n debouncedEmit({ data: core.data, errors: core.errors });\n }, [core.data, core.errors]);\n useEffect(() => {\n return () => {\n debouncedEmit.flush();\n };\n }, [debouncedEmit]);\n return (React.createElement(JsonFormsContext.Provider, { value: contextValue }, children));\n};\nconst useJsonForms = () => useContext(JsonFormsContext);\nconst ctxToArrayLayoutProps = (ctx, props) => mapStateToArrayLayoutProps({ jsonforms: { ...ctx } }, props);\nconst ctxToArrayControlProps = (ctx, props) => mapStateToArrayControlProps({ jsonforms: { ...ctx } }, props);\nconst ctxToLayoutProps = (ctx, props) => mapStateToLayoutProps({ jsonforms: { ...ctx } }, props);\nconst ctxToControlProps = (ctx, props) => mapStateToControlProps({ jsonforms: { ...ctx } }, props);\nconst ctxToEnumControlProps = (ctx, props) => {\n const enumProps = mapStateToEnumControlProps({ jsonforms: { ...ctx } }, props);\n const options = useMemo(() => enumProps.options, [props.options, enumProps.schema, ctx.i18n?.translate]);\n return { ...enumProps, options };\n};\nconst ctxToOneOfEnumControlProps = (ctx, props) => {\n const enumProps = mapStateToOneOfEnumControlProps({ jsonforms: { ...ctx } }, props);\n const options = useMemo(() => enumProps.options, [props.options, enumProps.schema, ctx.i18n?.translate]);\n return { ...enumProps, options };\n};\nconst ctxToMultiEnumControlProps = (ctx, props) => {\n const enumProps = mapStateToMultiEnumControlProps({ jsonforms: { ...ctx } }, props);\n const options = useMemo(() => enumProps.options, [props.options, enumProps.schema, ctx.i18n?.translate]);\n return { ...enumProps, options };\n};\nconst ctxToControlWithDetailProps = (ctx, props) => mapStateToControlWithDetailProps({ jsonforms: { ...ctx } }, props);\nconst ctxToAllOfProps = (ctx, ownProps) => {\n const props = mapStateToAllOfProps({ jsonforms: { ...ctx } }, ownProps);\n return {\n ...props,\n };\n};\nconst ctxDispatchToControlProps = (dispatch) => useMemo(() => mapDispatchToControlProps(dispatch), [dispatch]);\nconst ctxToAnyOfProps = (ctx, ownProps) => {\n const props = mapStateToAnyOfProps({ jsonforms: { ...ctx } }, ownProps);\n const dispatchProps = ctxDispatchToControlProps(ctx.dispatch);\n return {\n ...props,\n ...dispatchProps,\n };\n};\nconst ctxToOneOfProps = (ctx, ownProps) => {\n const props = mapStateToOneOfProps({ jsonforms: { ...ctx } }, ownProps);\n const dispatchProps = ctxDispatchToControlProps(ctx.dispatch);\n return {\n ...props,\n ...dispatchProps,\n };\n};\nconst ctxToJsonFormsRendererProps = (ctx, ownProps) => mapStateToJsonFormsRendererProps({ jsonforms: { ...ctx } }, ownProps);\nconst ctxDispatchToArrayControlProps = (dispatch) => ({\n ...ctxDispatchToControlProps(dispatch),\n ...useMemo(() => mapDispatchToArrayControlProps(dispatch), [dispatch]),\n});\nconst ctxToMasterListItemProps = (ctx, ownProps) => mapStateToMasterListItemProps({ jsonforms: { ...ctx } }, ownProps);\nconst ctxToCellProps = (ctx, ownProps) => {\n return mapStateToCellProps({ jsonforms: { ...ctx } }, ownProps);\n};\nconst ctxToEnumCellProps = (ctx, ownProps) => {\n const cellProps = defaultMapStateToEnumCellProps({ jsonforms: { ...ctx } }, ownProps);\n const options = useMemo(() => cellProps.options, [ownProps.options, cellProps.schema, ctx.i18n?.translate]);\n return { ...cellProps, options };\n};\nconst ctxToOneOfEnumCellProps = (ctx, props) => {\n const enumCellProps = mapStateToOneOfEnumCellProps({ jsonforms: { ...ctx } }, props);\n const options = useMemo(() => enumCellProps.options, [props.options, enumCellProps.schema, ctx.i18n?.translate]);\n return { ...enumCellProps, options };\n};\nconst ctxToDispatchCellProps = (ctx, ownProps) => {\n return mapStateToDispatchCellProps({ jsonforms: { ...ctx } }, ownProps);\n};\nconst ctxDispatchToMultiEnumProps = (dispatch) => ({\n ...ctxDispatchToControlProps(dispatch),\n ...useMemo(() => mapDispatchToMultiEnumProps(dispatch), [dispatch]),\n});\nconst ctxToLabelProps = (ctx, ownProps) => {\n return mapStateToLabelProps({ jsonforms: { ...ctx } }, ownProps);\n};\nconst withJsonFormsContext = (Component) => function WithJsonFormsContext(props) {\n const ctx = useJsonForms();\n return React.createElement(Component, { ctx: ctx, props: props });\n};\nconst withContextToJsonFormsRendererProps = (Component) => function WithContextToJsonFormsRendererProps({ ctx, props, }) {\n const contextProps = ctxToJsonFormsRendererProps(ctx, props);\n return React.createElement(Component, { ...props, ...contextProps });\n};\nconst withContextToControlProps = (Component) => function WithContextToControlProps({ ctx, props, }) {\n const controlProps = ctxToControlProps(ctx, props);\n const dispatchProps = ctxDispatchToControlProps(ctx.dispatch);\n return React.createElement(Component, { ...props, ...controlProps, ...dispatchProps });\n};\nconst withContextToLayoutProps = (Component) => function WithContextToLayoutProps({ ctx, props, }) {\n const layoutProps = ctxToLayoutProps(ctx, props);\n return React.createElement(Component, { ...props, ...layoutProps });\n};\nconst withContextToOneOfProps = (Component) => function WithContextToOneOfProps({ ctx, props, }) {\n const oneOfProps = ctxToOneOfProps(ctx, props);\n const dispatchProps = ctxDispatchToControlProps(ctx.dispatch);\n return React.createElement(Component, { ...props, ...oneOfProps, ...dispatchProps });\n};\nconst withContextToAnyOfProps = (Component) => function WithContextToAnyOfProps({ ctx, props, }) {\n const oneOfProps = ctxToAnyOfProps(ctx, props);\n const dispatchProps = ctxDispatchToControlProps(ctx.dispatch);\n return React.createElement(Component, { ...props, ...oneOfProps, ...dispatchProps });\n};\nconst withContextToAllOfProps = (Component) => function WithContextToAllOfProps({ ctx, props, }) {\n const allOfProps = ctxToAllOfProps(ctx, props);\n const dispatchProps = ctxDispatchToControlProps(ctx.dispatch);\n return React.createElement(Component, { ...props, ...allOfProps, ...dispatchProps });\n};\nconst withContextToDetailProps = (Component) => function WithContextToDetailProps({ ctx, props, }) {\n const detailProps = ctxToControlWithDetailProps(ctx, props);\n return React.createElement(Component, { ...props, ...detailProps });\n};\nconst withContextToArrayLayoutProps = (Component) => function WithContextToArrayLayoutProps({ ctx, props, }) {\n const arrayLayoutProps = ctxToArrayLayoutProps(ctx, props);\n const dispatchProps = ctxDispatchToArrayControlProps(ctx.dispatch);\n return React.createElement(Component, { ...props, ...arrayLayoutProps, ...dispatchProps });\n};\nconst withContextToArrayControlProps = (Component) => function WithContextToArrayControlProps({ ctx, props, }) {\n const stateProps = ctxToArrayControlProps(ctx, props);\n const dispatchProps = ctxDispatchToArrayControlProps(ctx.dispatch);\n return React.createElement(Component, { ...props, ...stateProps, ...dispatchProps });\n};\nconst withContextToMasterListItemProps = (Component) => function WithContextToMasterListItemProps({ ctx, props, }) {\n const stateProps = ctxToMasterListItemProps(ctx, props);\n return React.createElement(Component, { ...props, ...stateProps });\n};\nconst withContextToCellProps = (Component) => function WithContextToCellProps({ ctx, props, }) {\n const cellProps = ctxToCellProps(ctx, props);\n const dispatchProps = ctxDispatchToControlProps(ctx.dispatch);\n return React.createElement(Component, { ...props, ...dispatchProps, ...cellProps });\n};\nconst withContextToDispatchCellProps = (Component) => function WithContextToDispatchCellProps({ ctx, props, }) {\n const cellProps = ctxToDispatchCellProps(ctx, props);\n const dispatchProps = ctxDispatchToControlProps(ctx.dispatch);\n return React.createElement(Component, { ...props, ...dispatchProps, ...cellProps });\n};\nconst withContextToEnumCellProps = (Component) => function WithContextToEnumCellProps({ ctx, props, }) {\n const cellProps = ctxToEnumCellProps(ctx, props);\n const dispatchProps = ctxDispatchToControlProps(ctx.dispatch);\n return React.createElement(Component, { ...props, ...dispatchProps, ...cellProps });\n};\nconst withContextToEnumProps = (Component) => function WithContextToEnumProps({ ctx, props, }) {\n const stateProps = ctxToEnumControlProps(ctx, props);\n const dispatchProps = ctxDispatchToControlProps(ctx.dispatch);\n return React.createElement(Component, { ...props, ...dispatchProps, ...stateProps });\n};\nconst withContextToOneOfEnumCellProps = (Component) => function WithContextToOneOfEnumCellProps({ ctx, props, }) {\n const cellProps = ctxToOneOfEnumCellProps(ctx, props);\n const dispatchProps = ctxDispatchToControlProps(ctx.dispatch);\n return React.createElement(Component, { ...props, ...dispatchProps, ...cellProps });\n};\nconst withContextToOneOfEnumProps = (Component) => function WithContextToOneOfEnumProps({ ctx, props, }) {\n const stateProps = ctxToOneOfEnumControlProps(ctx, props);\n const dispatchProps = ctxDispatchToControlProps(ctx.dispatch);\n return React.createElement(Component, { ...props, ...dispatchProps, ...stateProps });\n};\nconst withContextToMultiEnumProps = (Component) => function WithContextToMultiEnumProps({ ctx, props, }) {\n const stateProps = ctxToMultiEnumControlProps(ctx, props);\n const dispatchProps = ctxDispatchToMultiEnumProps(ctx.dispatch);\n return React.createElement(Component, { ...props, ...dispatchProps, ...stateProps });\n};\nconst withContextToLabelProps = (Component) => function WithContextToLabelProps({ ctx, props, }) {\n const stateProps = ctxToLabelProps(ctx, props);\n return React.createElement(Component, { ...props, ...stateProps });\n};\nconst withJsonFormsRendererProps = (Component, memoize = true) => withJsonFormsContext(withContextToJsonFormsRendererProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsControlProps = (Component, memoize = true) => withJsonFormsContext(withContextToControlProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsLayoutProps = (Component, memoize = true) => withJsonFormsContext(withContextToLayoutProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsOneOfProps = (Component, memoize = true) => withJsonFormsContext(withContextToOneOfProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsAnyOfProps = (Component, memoize = true) => withJsonFormsContext(withContextToAnyOfProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsAllOfProps = (Component, memoize = true) => withJsonFormsContext(withContextToAllOfProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsDetailProps = (Component, memoize = true) => withJsonFormsContext(withContextToDetailProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsArrayLayoutProps = (Component, memoize = true) => withJsonFormsContext(withContextToArrayLayoutProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsArrayControlProps = (Component, memoize = true) => withJsonFormsContext(withContextToArrayControlProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsMasterListItemProps = (Component, memoize = true) => withJsonFormsContext(withContextToMasterListItemProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsCellProps = (Component, memoize = true) => withJsonFormsContext(withContextToCellProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsDispatchCellProps = (Component, memoize = true) => withJsonFormsContext(withContextToDispatchCellProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsEnumCellProps = (Component, memoize = true) => withJsonFormsContext(withContextToEnumCellProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsEnumProps = (Component, memoize = true) => withJsonFormsContext(withContextToEnumProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsOneOfEnumCellProps = (Component, memoize = true) => withJsonFormsContext(withContextToOneOfEnumCellProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsOneOfEnumProps = (Component, memoize = true) => withJsonFormsContext(withContextToOneOfEnumProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsMultiEnumProps = (Component, memoize = true) => withJsonFormsContext(withContextToMultiEnumProps(memoize ? React.memo(Component) : Component));\nconst withJsonFormsLabelProps = (Component, memoize = true) => withJsonFormsContext(withContextToLabelProps(memoize ? React.memo(Component) : Component));\nconst withTranslateProps = (Component) => function WithTranslateProps(props) {\n const ctx = useJsonForms();\n const locale = ctx.i18n?.locale ?? defaultJsonFormsI18nState.locale;\n const t = ctx.i18n?.translate ?? defaultJsonFormsI18nState.translate;\n return React.createElement(Component, { ...props, locale: locale, t: t });\n};\nconst withArrayTranslationProps = (Component) => function withArrayTranslatationProps(props) {\n const translations = useMemo(() => getArrayTranslations(props.t, arrayDefaultTranslations, props.i18nKeyPrefix, props.label), [props.t, props.i18nKeyPrefix, props.label]);\n return React.createElement(Component, { ...props, translations: translations });\n};\n\nclass JsonFormsDispatchRenderer extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n id: isControl(props.uischema)\n ? Id.createId(props.uischema.scope)\n : undefined,\n };\n }\n componentWillUnmount() {\n if (isControl(this.props.uischema)) {\n Id.removeId(this.state.id);\n }\n }\n componentDidUpdate(prevProps) {\n if (prevProps.schema !== this.props.schema) {\n Id.removeId(this.state.id);\n this.setState({\n id: isControl(this.props.uischema)\n ? Id.createId(this.props.uischema.scope)\n : undefined,\n });\n }\n }\n render() {\n const { schema, rootSchema, uischema, path, enabled, renderers, cells, config, } = this.props;\n return (React.createElement(TestAndRender, { uischema: uischema, schema: schema, rootSchema: rootSchema, path: path, enabled: enabled, renderers: renderers, cells: cells, id: this.state.id, config: config }));\n }\n}\nconst TestAndRender = React.memo(function TestAndRender(props) {\n const testerContext = useMemo(() => ({\n rootSchema: props.rootSchema,\n config: props.config,\n }), [props.rootSchema, props.config]);\n const renderer = useMemo(() => maxBy(props.renderers, (r) => r.tester(props.uischema, props.schema, testerContext)), [props.renderers, props.uischema, props.schema, testerContext]);\n if (renderer === undefined ||\n renderer.tester(props.uischema, props.schema, testerContext) === -1) {\n return React.createElement(UnknownRenderer, { type: 'renderer' });\n }\n else {\n const Render = renderer.renderer;\n return (React.createElement(Render, { uischema: props.uischema, schema: props.schema, path: props.path, enabled: props.enabled, renderers: props.renderers, cells: props.cells, id: props.id }));\n }\n});\nclass ResolvedJsonFormsDispatchRenderer extends JsonFormsDispatchRenderer {\n constructor(props) {\n super(props);\n }\n}\nconst JsonFormsDispatch = withJsonFormsRendererProps(JsonFormsDispatchRenderer);\nconst ResolvedJsonFormsDispatch = withJsonFormsRendererProps(ResolvedJsonFormsDispatchRenderer);\nconst JsonForms = (props) => {\n const { ajv, data, schema, uischema, renderers, cells, onChange, config, uischemas, readonly, validationMode, i18n, additionalErrors, middleware, } = props;\n const schemaToUse = useMemo(() => (schema !== undefined ? schema : Generate.jsonSchema(data)), [schema, data]);\n const uischemaToUse = useMemo(() => typeof uischema === 'object'\n ? uischema\n : Generate.uiSchema(schemaToUse, undefined, undefined, schemaToUse), [uischema, schemaToUse]);\n return (React.createElement(JsonFormsStateProvider, { initState: {\n core: {\n ajv,\n data,\n schema: schemaToUse,\n uischema: uischemaToUse,\n validationMode: validationMode,\n additionalErrors: additionalErrors,\n },\n config,\n uischemas,\n renderers,\n cells,\n readonly,\n i18n,\n }, onChange: onChange, middleware: middleware },\n React.createElement(JsonFormsDispatch, null)));\n};\n\nconst Dispatch = ({ uischema, schema, rootSchema, path, cells, id, enabled, renderers, config, }) => {\n const testerContext = useMemo(() => ({\n rootSchema: rootSchema,\n config: config,\n }), [rootSchema, config]);\n const cell = useMemo(() => maxBy(cells, (r) => r.tester(uischema, schema, testerContext)), [cells, uischema, schema, testerContext]);\n if (cell === undefined ||\n cell.tester(uischema, schema, testerContext) === -1) {\n return React.createElement(UnknownRenderer, { type: 'cell' });\n }\n else {\n const Cell = cell.cell;\n return (React.createElement(Cell, { uischema: uischema, schema: schema, enabled: enabled, path: path, id: id, renderers: renderers, cells: cells }));\n }\n};\nconst DispatchCell = withJsonFormsDispatchCellProps(Dispatch);\n\nexport { Control, Dispatch, DispatchCell, JsonForms, JsonFormsContext, JsonFormsDispatch, JsonFormsDispatchRenderer, JsonFormsStateProvider, RendererComponent, ResolvedJsonFormsDispatch, ResolvedJsonFormsDispatchRenderer, UnknownRenderer, ctxDispatchToArrayControlProps, ctxDispatchToControlProps, ctxDispatchToMultiEnumProps, ctxToAllOfProps, ctxToAnyOfProps, ctxToArrayControlProps, ctxToArrayLayoutProps, ctxToCellProps, ctxToControlProps, ctxToControlWithDetailProps, ctxToDispatchCellProps, ctxToEnumCellProps, ctxToEnumControlProps, ctxToJsonFormsRendererProps, ctxToLabelProps, ctxToLayoutProps, ctxToMasterListItemProps, ctxToMultiEnumControlProps, ctxToOneOfEnumCellProps, ctxToOneOfEnumControlProps, ctxToOneOfProps, useJsonForms, withArrayTranslationProps, withContextToJsonFormsRendererProps, withJsonFormsAllOfProps, withJsonFormsAnyOfProps, withJsonFormsArrayControlProps, withJsonFormsArrayLayoutProps, withJsonFormsCellProps, withJsonFormsContext, withJsonFormsControlProps, withJsonFormsDetailProps, withJsonFormsDispatchCellProps, withJsonFormsEnumCellProps, withJsonFormsEnumProps, withJsonFormsLabelProps, withJsonFormsLayoutProps, withJsonFormsMasterListItemProps, withJsonFormsMultiEnumProps, withJsonFormsOneOfEnumCellProps, withJsonFormsOneOfEnumProps, withJsonFormsOneOfProps, withJsonFormsRendererProps, withTranslateProps };\n//# sourceMappingURL=jsonforms-react.esm.js.map\n","import { rendererDefault as e } from \"./rendererLocale.esm.js\";\nimport { enRendererLocale as t } from \"./en.esm.js\";\nimport { useCallback as n } from \"react\";\nimport { useJsonForms as r } from \"@jsonforms/react\";\n// src/locale/translate.ts\nvar i = () => {\n\tlet { translate: i, locale: a } = r().i18n ?? {};\n\treturn n((n, r, o) => {\n\t\tlet s = Object.prototype.hasOwnProperty.call(t, n), c = s ? e(a, n) : r, l = (i == null ? void 0 : i(n, c, o)) ?? c;\n\t\treturn !s || !l || !o ? l : l.replace(/\\{(\\w+)\\}/g, (e, t) => o[t] === void 0 ? e : String(o[t]));\n\t}, [i, a]);\n}, a = () => {\n\tlet t = r().i18n, i = t == null ? void 0 : t.translate, a = t == null ? void 0 : t.locale;\n\treturn n((t, n) => {\n\t\tlet r = e(a, t), o = (i == null ? void 0 : i(t, r, n)) ?? r;\n\t\treturn n === void 0 ? o : o.replace(/\\{(\\w+)\\}/g, (e, t) => n[t] === void 0 ? e : String(n[t]));\n\t}, [i, a]);\n}, o = () => {\n\tvar t;\n\tlet i = (t = r().i18n) == null ? void 0 : t.locale;\n\treturn n((t) => e(i, t), [i]);\n};\nexport { a as useI18n, o as useI18nDefault, i as useTranslator };\n\n//# sourceMappingURL=translate.esm.js.map","// src/dynamic/dynamicTree.ts\nvar e = /* @__PURE__ */ new WeakMap(), t = (t) => e.get(t) ?? t, n = /* @__PURE__ */ new WeakMap(), r = (e) => n.get(e);\nfunction i(r, i) {\n\tlet a = n.get(r);\n\treturn a && (n.set(i, {\n\t\t...a,\n\t\telement: i\n\t}), e.set(i, t(r))), i;\n}\nvar a = /* @__PURE__ */ new WeakMap(), o = (e, t, n = 0) => {\n\tif (!e || typeof e != \"object\" || t != null && t.has(e) || n > 100) return !1;\n\tlet r = a.get(e);\n\tif (r !== void 0) return r;\n\tt ?? (t = /* @__PURE__ */ new Set()), t.add(e);\n\tlet i = e.elements, s = Object.prototype.hasOwnProperty.call(e, \"$dynamic\") || Array.isArray(i) && i.some((e) => o(e, t, n + 1));\n\treturn t.delete(e), a.set(e, s), s;\n};\nfunction s() {\n\tlet i = /* @__PURE__ */ new WeakMap();\n\treturn (a, s) => {\n\t\tif (!r(a) && !o(a)) return a;\n\t\tlet c = /* @__PURE__ */ new Set(), l = (a, u) => {\n\t\t\tif (!a || typeof a != \"object\" || c.has(a) || u > 100 || !r(a) && !o(a)) return a;\n\t\t\tc.add(a);\n\t\t\tlet d = r(a) ?? s(a), f = d.element, p = f.elements;\n\t\t\tif (Array.isArray(p)) {\n\t\t\t\tlet e = p.map((e) => l(e, u + 1));\n\t\t\t\tif (e.some((e, t) => e !== p[t])) {\n\t\t\t\t\tlet t = i.get(f);\n\t\t\t\t\tif (t && t.children.length === e.length && e.every((e, n) => e === t.children[n])) f = t.result;\n\t\t\t\t\telse {\n\t\t\t\t\t\tlet t = {\n\t\t\t\t\t\t\t...f,\n\t\t\t\t\t\t\telements: e\n\t\t\t\t\t\t};\n\t\t\t\t\t\ti.set(f, {\n\t\t\t\t\t\t\tchildren: e,\n\t\t\t\t\t\t\tresult: t\n\t\t\t\t\t\t}), f = t;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn c.delete(a), f !== a && (n.set(f, {\n\t\t\t\t...d,\n\t\t\t\telement: f\n\t\t\t}), e.set(f, t(a))), f;\n\t\t};\n\t\treturn l(a, 0);\n\t};\n}\nfunction c() {\n\tlet e = [];\n\treturn (t) => t.length === e.length && t.every((t, n) => t === e[n]) ? e : (e = t, t);\n}\nexport { c as createDynamicChildrenMemo, s as createDynamicTreeResolver, r as dynamicPresentation, t as dynamicTreeAuthor, o as hasDynamicTree, i as retainDynamicPresentation };\n\n//# sourceMappingURL=dynamicTree.esm.js.map","// src/dynamic/dynamicRuntime.ts\nvar e, t, n = () => e !== void 0;\nfunction r() {\n\treturn t ?? (t = import(\"./dynamicCel.esm.js\").then((t) => {\n\t\te = t;\n\t}).catch((e) => {\n\t\tthrow t = void 0, e;\n\t}));\n}\nfunction i(t, n, r) {\n\tif (!e) throw Error(\"CEL evaluator is not ready\");\n\treturn e.expression(t, n, r);\n}\nexport { n as dynamicUiExpressionsReady, i as evaluateDynamicExpression, r as loadDynamicUiExpressions };\n\n//# sourceMappingURL=dynamicRuntime.esm.js.map","// src/dynamic/dynamicScope.ts\nvar e = (e) => {\n\tlet t = e.startsWith(\"#\") ? e.slice(1) : e;\n\treturn t === \"\" ? [] : (t.startsWith(\"/\") ? t.slice(1) : t).split(\"/\").map((e) => e.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"));\n}, t = (t) => {\n\tlet n = e(t), r = [];\n\tfor (let e = 0; e < n.length;) {\n\t\tlet t = n[e++];\n\t\tif (t === \"then\" || t === \"else\") continue;\n\t\tlet i = n[e++];\n\t\tt !== \"oneOf\" && t !== \"anyOf\" && t !== \"allOf\" && i !== void 0 && r.push(i);\n\t}\n\treturn r;\n};\nexport { t as scopeDataSegments };\n\n//# sourceMappingURL=dynamicScope.esm.js.map","import { isPlainRecord as e } from \"../core/plainRecord.esm.js\";\nimport { dynamicUiExpressionsReady as t, evaluateDynamicExpression as n } from \"./dynamicRuntime.esm.js\";\nimport { scopeDataSegments as r } from \"./dynamicScope.esm.js\";\nimport i from \"lodash/isEqual\";\n// src/dynamic/dynamicUi.ts\nfunction a(e, t, n) {\n\tif (\"scope\" in e && typeof e.scope == \"string\") return o(t, [...n, ...r(e.scope)]);\n}\nfunction o(e, t) {\n\treturn t.reduce((e, t) => e && typeof e == \"object\" && Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, e);\n}\nvar s = /* @__PURE__ */ new Set([\n\t\"__proto__\",\n\t\"prototype\",\n\t\"constructor\"\n]);\nfunction c(e, t) {\n\tif (e.length > 1e4) throw Error(\"array size limit exceeded\");\n\treturn Array.from({ length: e.length }, (n, r) => {\n\t\tlet i = Object.getOwnPropertyDescriptor(e, String(r));\n\t\tif (!i || !(\"value\" in i)) throw Error(\"array contains a getter or hole\");\n\t\treturn t(i.value);\n\t});\n}\nfunction l(t, n = 0, r = /* @__PURE__ */ new WeakSet(), i = { remaining: 1e4 }) {\n\tif (--i.remaining < 0) throw Error(\"environment size limit exceeded\");\n\tif (n > 32) throw Error(\"environment depth limit exceeded\");\n\tif (t == null || [\n\t\t\"string\",\n\t\t\"boolean\",\n\t\t\"number\"\n\t].includes(typeof t)) return t;\n\tif (Array.isArray(t)) {\n\t\tif (r.has(t)) throw Error(\"cyclic environment\");\n\t\tr.add(t);\n\t\tlet e = c(t, (e) => l(e, n + 1, r, i));\n\t\treturn r.delete(t), Object.freeze(e);\n\t}\n\tif (!e(t)) throw Error(\"environment contains a non-data value\");\n\tif (r.has(t)) throw Error(\"cyclic environment\");\n\tr.add(t);\n\tlet a = Object.create(null);\n\tfor (let e of Object.keys(t)) {\n\t\tif (s.has(e)) continue;\n\t\tlet o = Object.getOwnPropertyDescriptor(t, e);\n\t\tif (!o || !(\"value\" in o)) throw Error(\"environment contains a getter\");\n\t\ta[e] = l(o.value, n + 1, r, i);\n\t}\n\treturn r.delete(t), Object.freeze(a);\n}\nvar u = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap();\nfunction f(e) {\n\tif (typeof e == \"object\" && e) {\n\t\tlet t = u.get(e);\n\t\tif (t) return t;\n\t}\n\tlet t = { remaining: 1e4 }, n = {\n\t\tvalue: l(e, 0, /* @__PURE__ */ new WeakSet(), t),\n\t\tnodes: 1e4 - t.remaining\n\t};\n\treturn typeof e == \"object\" && e && u.set(e, n), n;\n}\nfunction p(e) {\n\tlet t = d.get(e);\n\tif (t) return t;\n\tlet n = Object.create(null);\n\tfor (let t of Object.keys(e)) {\n\t\tif (t === \"jsonformsExtended\") continue;\n\t\tlet r = Object.getOwnPropertyDescriptor(e, t);\n\t\tif (!r || !(\"value\" in r)) throw Error(\"configuration contains a getter\");\n\t\tn[t] = r.value;\n\t}\n\tlet r = f(n);\n\treturn d.set(e, r), r;\n}\nfunction m(e, t) {\n\tlet n = [], r = 0, i = /^[A-Za-z_][\\w]*/.exec(e);\n\tif (!i) throw Error(\"invalid path\");\n\tfor (n.push(i[0]), r += i[0].length; r < e.length;) {\n\t\tlet t = e.slice(r);\n\t\tif (t.startsWith(\".\")) {\n\t\t\tlet e = /^[A-Za-z_][\\w]*/.exec(t.slice(1));\n\t\t\tif (!e) throw Error(\"invalid path\");\n\t\t\tn.push(e[0]), r += e[0].length + 1;\n\t\t} else if (t.startsWith(\"[\")) {\n\t\t\tlet e = /^\\[(\\d+)\\]/.exec(t);\n\t\t\tif (e) {\n\t\t\t\tn.push(e[1]), r += e[0].length;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tlet i = /^\\[(['\"])((?:\\\\.|(?!\\1)[^\\\\])*)\\1\\]/.exec(t);\n\t\t\tif (!i) throw Error(\"invalid path\");\n\t\t\tn.push(i[2].replace(/\\\\(['\"\\\\])/g, \"$1\")), r += i[0].length;\n\t\t} else throw Error(\"invalid path\");\n\t}\n\tlet a = t;\n\tfor (let e of n) {\n\t\tif (s.has(e)) throw Error(\"forbidden path\");\n\t\tif (e === \"length\" && (typeof a == \"string\" || Array.isArray(a))) a = a.length;\n\t\telse {\n\t\t\tif (typeof a != \"object\" || !a || !Object.prototype.hasOwnProperty.call(a, e)) return;\n\t\t\ta = a[e];\n\t\t}\n\t}\n\treturn a;\n}\nfunction h(e, t) {\n\tlet n = \"\";\n\tfor (let r = 0; r < e.length;) {\n\t\tif (e.startsWith(\"{{\", r)) {\n\t\t\tn += \"{\", r += 2;\n\t\t\tcontinue;\n\t\t}\n\t\tif (e.startsWith(\"}}\", r)) {\n\t\t\tn += \"}\", r += 2;\n\t\t\tcontinue;\n\t\t}\n\t\tif (e[r] !== \"{\") {\n\t\t\tn += e[r++];\n\t\t\tcontinue;\n\t\t}\n\t\tlet i = r + 1, a, o = !1;\n\t\tfor (; i < e.length; i++) {\n\t\t\tlet t = e[i];\n\t\t\tif (a) o ? o = !1 : t === \"\\\\\" ? o = !0 : t === a && (a = void 0);\n\t\t\telse if (t === \"'\" || t === \"\\\"\") a = t;\n\t\t\telse if (t === \"}\") break;\n\t\t}\n\t\tif (i === e.length) throw Error(\"unclosed template path\");\n\t\tlet s = m(e.slice(r + 1, i), t);\n\t\tif (s == null || typeof s == \"object\") throw Error(\"unresolved template path\");\n\t\tn += String(s), r = i + 1;\n\t}\n\treturn n;\n}\nfunction g(t, r, i = !1) {\n\tif (typeof t == \"function\") {\n\t\tif (!i) throw Error(\"trusted functions are disabled\");\n\t\tlet e = t(r);\n\t\tif (e instanceof Promise) throw Error(\"asynchronous dynamic function\");\n\t\treturn e;\n\t}\n\tif (!e(t)) return t;\n\tlet a = Object.keys(t);\n\tif (a.length !== 1) return t;\n\tlet o = a[0], s = Object.getOwnPropertyDescriptor(t, o);\n\tif (!s || !(\"value\" in s)) throw Error(\"descriptor contains a getter\");\n\tif (o === \"literal\") return s.value;\n\tif (![\n\t\t\"bind\",\n\t\t\"expression\",\n\t\t\"template\"\n\t].includes(o)) return t;\n\tif (typeof s.value != \"string\") throw Error(\"descriptor source must be a string\");\n\treturn o === \"bind\" ? m(s.value, r) : o === \"template\" ? h(s.value, r) : n(t, s.value, r);\n}\nvar _ = (t) => {\n\tif (!e(t)) return;\n\tlet n = Object.keys(t);\n\treturn n.length === 1 && [\n\t\t\"bind\",\n\t\t\"expression\",\n\t\t\"template\",\n\t\t\"literal\"\n\t].includes(n[0]) ? n[0] : void 0;\n}, v = [\n\t\"data\",\n\t\"item\",\n\t\"value\",\n\t\"path\",\n\t\"locale\",\n\t\"external\",\n\t\"errors\",\n\t\"config\"\n], y = /(?:^|[^\\w])(data|item|value|path|locale|external|errors|config)(?=$|[^\\w])/g, b = /* @__PURE__ */ new WeakMap();\nfunction x(t) {\n\tif (typeof t != \"object\" || !t) return /* @__PURE__ */ new Set();\n\tlet n = b.get(t);\n\tif (n) return n;\n\tlet r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new WeakSet(), a = (t) => {\n\t\tif (typeof t == \"function\") {\n\t\t\tv.forEach((e) => r.add(e));\n\t\t\treturn;\n\t\t}\n\t\tif (typeof t != \"object\" || !t || i.has(t)) return;\n\t\tif (i.add(t), Array.isArray(t)) {\n\t\t\tfor (let e of Object.values(Object.getOwnPropertyDescriptors(t))) \"value\" in e && a(e.value);\n\t\t\treturn;\n\t\t}\n\t\tif (!e(t)) return;\n\t\tlet n = _(t);\n\t\tif (n !== \"literal\") {\n\t\t\tif (n === \"bind\" || n === \"expression\" || n === \"template\") {\n\t\t\t\tlet e = Object.getOwnPropertyDescriptor(t, n), i = e && \"value\" in e ? e.value : void 0;\n\t\t\t\tif (typeof i == \"string\") for (let e of i.matchAll(y)) r.add(e[1]);\n\t\t\t} else for (let [e, n] of Object.entries(Object.getOwnPropertyDescriptors(t))) e !== \"$dynamic\" && \"value\" in n && a(n.value);\n\t\t}\n\t};\n\treturn a(t), b.set(t, r), r;\n}\nfunction S(e, t) {\n\tlet n = {};\n\tfor (let r of Object.keys(e)) {\n\t\tif (s.has(r)) throw Error(\"forbidden overlay key\");\n\t\tlet i = Object.getOwnPropertyDescriptor(e, r);\n\t\tif (!i || !(\"value\" in i)) throw Error(\"overlay contains a getter\");\n\t\tn[r] = t(i.value, r);\n\t}\n\treturn n;\n}\nfunction C(t, n = 0, r = /* @__PURE__ */ new WeakSet(), i = { remaining: 1e4 }, a = !1) {\n\tif (a && typeof t == \"function\") return t;\n\tif (--i.remaining < 0) throw Error(\"overlay size limit exceeded\");\n\tif (n > 32) throw Error(\"overlay depth limit exceeded\");\n\tif (t === null || typeof t == \"string\" || typeof t == \"boolean\" || typeof t == \"number\" && Number.isFinite(t)) return t;\n\tif (!t || typeof t != \"object\") throw Error(\"overlay must resolve to JSON\");\n\tif (r.has(t)) throw Error(\"cyclic overlay\");\n\tif (r.add(t), Array.isArray(t)) {\n\t\tlet e = c(t, (e) => C(e, n + 1, r, i, a));\n\t\treturn r.delete(t), e;\n\t}\n\tif (!e(t)) throw Error(\"overlay must resolve to plain data\");\n\tlet o = S(t, (e) => C(e, n + 1, r, i, a));\n\treturn r.delete(t), o;\n}\nfunction w(e, t = 0, n = /* @__PURE__ */ new WeakSet()) {\n\tif (t > 32) throw Error(\"overlay depth limit exceeded\");\n\tif (typeof e == \"object\" && e) {\n\t\tif (n.has(e)) throw Error(\"cyclic overlay\");\n\t\tn.add(e);\n\t\tfor (let r of Object.keys(e)) {\n\t\t\tlet i = Object.getOwnPropertyDescriptor(e, r);\n\t\t\ti && \"value\" in i && w(i.value, t + 1, n);\n\t\t}\n\t\tn.delete(e);\n\t}\n}\nfunction T(t, n, r, i = 0) {\n\tif (i > 32) throw Error(\"overlay depth limit exceeded\");\n\treturn _(t) || typeof t == \"function\" ? C(g(t, n, r)) : Array.isArray(t) ? c(t, (e) => T(e, n, r, i + 1)) : e(t) ? S(t, (e, t) => t === \"$dynamic\" ? C(e, i + 1, /* @__PURE__ */ new WeakSet(), { remaining: 1e4 }, r) : T(e, n, r, i + 1)) : C(t);\n}\nfunction E(t, n) {\n\tlet r = t.$dynamic;\n\tif (r === void 0) return {\n\t\telement: t,\n\t\tfailures: []\n\t};\n\tlet { $dynamic: i, ...a } = t, o = [], c;\n\ttry {\n\t\tlet e = x(r);\n\t\tc = Object.create(null);\n\t\tlet t = 1;\n\t\tfor (let r of v) {\n\t\t\tif (!e.has(r)) continue;\n\t\t\tlet i = n[r];\n\t\t\tif (i === void 0) continue;\n\t\t\tlet a = r === \"config\" ? p(i) : f(i);\n\t\t\tif (t += a.nodes, t > 1e4) throw Error(\"environment size limit exceeded\");\n\t\t\tc[r] = a.value;\n\t\t}\n\t\tObject.freeze(c);\n\t} catch {\n\t\treturn {\n\t\t\telement: a,\n\t\t\tfailures: [\"invalid environment\"]\n\t\t};\n\t}\n\tlet l = Array.isArray(r) ? r : [{ overlay: r }], u = a;\n\treturn l.forEach((t, r) => {\n\t\tif (!e(t)) {\n\t\t\to.push(`rule ${r}: invalid rule`);\n\t\t\treturn;\n\t\t}\n\t\tif (\"when\" in t) try {\n\t\t\tif (typeof t.when != \"boolean\" && typeof t.when != \"function\" && _(t.when) !== \"expression\") throw Error(\"unsupported condition\");\n\t\t\tlet e = g(t.when, c, n.trustedFunctions);\n\t\t\tif (typeof e != \"boolean\") throw Error(\"condition must be boolean\");\n\t\t\tif (!e) return;\n\t\t} catch {\n\t\t\to.push(`rule ${r}: invalid condition`);\n\t\t\treturn;\n\t\t}\n\t\tif (!e(t.overlay)) {\n\t\t\to.push(`rule ${r}: invalid overlay`);\n\t\t\treturn;\n\t\t}\n\t\tlet i = /* @__PURE__ */ new WeakSet(), a = (t, l, u, d = !0, f = 0) => {\n\t\t\tif (f > 32) throw Error(\"overlay depth limit exceeded\");\n\t\t\tif (i.has(l)) throw Error(\"cyclic overlay\");\n\t\t\ti.add(l);\n\t\t\tlet p = t;\n\t\t\ttry {\n\t\t\t\tfor (let t of Object.keys(l)) {\n\t\t\t\t\tlet i = [...u, t];\n\t\t\t\t\tif (s.has(t) || !u.length && t === \"$dynamic\") o.push(`rule ${r}: unsupported target ${i.join(\".\")}`);\n\t\t\t\t\telse try {\n\t\t\t\t\t\tlet r = Object.getOwnPropertyDescriptor(l, t);\n\t\t\t\t\t\tif (!r || !(\"value\" in r)) throw Error(\"overlay contains a getter\");\n\t\t\t\t\t\tlet o = r.value;\n\t\t\t\t\t\tif (t === \"$dynamic\") {\n\t\t\t\t\t\t\tlet e = C(o, f + 1, /* @__PURE__ */ new WeakSet(), { remaining: 1e4 }, !!n.trustedFunctions);\n\t\t\t\t\t\t\tp = {\n\t\t\t\t\t\t\t\t...p,\n\t\t\t\t\t\t\t\t[t]: e\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlet s = d && (typeof o == \"function\" || !!_(o)), u = s ? g(o, c, n.trustedFunctions) : o;\n\t\t\t\t\t\tif (u === void 0) throw Error(\"missing target value\");\n\t\t\t\t\t\tif (e(u) && !s) {\n\t\t\t\t\t\t\tw(u);\n\t\t\t\t\t\t\tlet n = u, r = a(e(p[t]) ? p[t] : {}, n, i, !s && d, f + 1);\n\t\t\t\t\t\t\tr !== p[t] && (p = {\n\t\t\t\t\t\t\t\t...p,\n\t\t\t\t\t\t\t\t[t]: r\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlet e = Array.isArray(u) && d && !s ? T(u, c, !!n.trustedFunctions) : C(u);\n\t\t\t\t\t\t\tObject.is(p[t], e) || (p = {\n\t\t\t\t\t\t\t\t...p,\n\t\t\t\t\t\t\t\t[t]: e\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch {\n\t\t\t\t\t\to.push(`rule ${r}: invalid target ${i.join(\".\")}`);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn p;\n\t\t\t} finally {\n\t\t\t\ti.delete(l);\n\t\t\t}\n\t\t};\n\t\tu = a(u, t.overlay, []);\n\t}), {\n\t\telement: u,\n\t\tfailures: o\n\t};\n}\nfunction D() {\n\tlet t;\n\treturn (n) => {\n\t\tif (t && i(t, n.element)) return {\n\t\t\t...n,\n\t\t\telement: t\n\t\t};\n\t\tlet r = (t, n) => Object.is(t, n) || i(t, n) ? t : Array.isArray(t) && Array.isArray(n) ? n.map((e, n) => r(t[n], e)) : e(t) && e(n) ? Object.fromEntries(Object.entries(n).map(([e, n]) => [e, r(t[e], n)])) : n;\n\t\treturn t = r(t, n.element), {\n\t\t\t...n,\n\t\t\telement: t\n\t\t};\n\t};\n}\nfunction O() {\n\tlet e = /* @__PURE__ */ new WeakMap();\n\treturn (t, n, r) => {\n\t\tlet i = e.get(t);\n\t\tif (i && k(i.inputs, n)) return i.result;\n\t\tlet a = r();\n\t\treturn e.set(t, {\n\t\t\tinputs: n,\n\t\t\tresult: a\n\t\t}), a;\n\t};\n}\nvar k = (e, t) => e.length === t.length && e.every((e, n) => Object.is(e, t[n]));\nfunction A(e) {\n\tlet n = D(), r, i = [], a;\n\treturn (o, s) => {\n\t\tlet c = o.$dynamic, l = x(c), u = {\n\t\t\tdata: void 0,\n\t\t\tpath: \"\",\n\t\t\ttrustedFunctions: s.trustedFunctions\n\t\t}, d = [s.trustedFunctions, t()];\n\t\tfor (let e of v) {\n\t\t\tif (!l.has(e)) continue;\n\t\t\tlet t = s[e];\n\t\t\tObject.defineProperty(u, e, {\n\t\t\t\tvalue: t,\n\t\t\t\tenumerable: !0,\n\t\t\t\tconfigurable: !0\n\t\t\t}), d.push(t);\n\t\t}\n\t\treturn r === o && a && d.length === i.length && d.every((e, t) => Object.is(e, i[t])) || (r = o, i = d, a = n(e ? e(o, d, () => E(o, u)) : E(o, u))), a;\n\t};\n}\nfunction j(e, t, n) {\n\tlet r = e, i = n;\n\tfor (let e of t) {\n\t\tif (typeof r != \"object\" || !r || !Object.prototype.hasOwnProperty.call(r, e)) break;\n\t\tlet t = r;\n\t\tr = r[e], Array.isArray(t) && /^(0|[1-9][0-9]*)$/.test(e) && (i = r);\n\t}\n\treturn i;\n}\nexport { O as createDynamicUiCache, D as createDynamicUiMemo, A as createDynamicUiResolver, a as dynamicBoundValue, o as dynamicCellValue, j as dynamicItemAt, m as dynamicPath, E as resolveDynamicUi };\n\n//# sourceMappingURL=dynamicUi.esm.js.map","// src/dynamic/dynamicConfig.ts\nvar e = Symbol(\"TRUST_DYNAMIC_FUNCTIONS\");\nfunction t(t, n) {\n\tvar r;\n\tlet i = t == null || (r = t.jsonformsExtended) == null ? void 0 : r.dynamic;\n\treturn (i == null ? void 0 : i.enabled) === !0 ? {\n\t\texternal: n,\n\t\ttrustedFunctions: i.trusted === e\n\t} : void 0;\n}\nexport { e as TRUST_DYNAMIC_FUNCTIONS, t as dynamicUiOptions };\n\n//# sourceMappingURL=dynamicConfig.esm.js.map","import { rendererDefault as e } from \"../locale/rendererLocale.esm.js\";\nimport { createDynamicChildrenMemo as t, createDynamicTreeResolver as n, dynamicPresentation as r, dynamicTreeAuthor as i, hasDynamicTree as a } from \"./dynamicTree.esm.js\";\nimport { dynamicUiExpressionsReady as o, loadDynamicUiExpressions as s } from \"./dynamicRuntime.esm.js\";\nimport { createDynamicUiCache as c, createDynamicUiResolver as l, dynamicBoundValue as u, dynamicCellValue as d, dynamicItemAt as f } from \"./dynamicUi.esm.js\";\nimport { dynamicUiOptions as p } from \"./dynamicConfig.esm.js\";\nimport m, { createContext as h, useContext as g, useEffect as _, useMemo as v, useState as y } from \"react\";\nimport { DispatchCell as b, JsonForms as x, JsonFormsDispatch as S, useJsonForms as C } from \"@jsonforms/react\";\n// src/dynamic/DynamicUiProvider.tsx\nvar w = h(void 0), T = h(void 0), E = h(void 0), D = ({ config: t, external: n, children: r, locale: i, translate: a }) => {\n\tlet l = v(c, []), u = p(t, n), d = !!u, [f, h] = y(o), [g, b] = y(!1);\n\t_(() => {\n\t\tif (!d || f) return;\n\t\tlet e = !0;\n\t\treturn b(!1), s().then(() => {\n\t\t\te && h(!0);\n\t\t}, () => {\n\t\t\te && b(!0);\n\t\t}), () => {\n\t\t\te = !1;\n\t\t};\n\t}, [d, f]);\n\tlet x = d && !f, [S, C] = y(() => !d || f);\n\t_(() => {\n\t\tx || C(!0);\n\t}, [x]);\n\tlet D = e(i, g ? \"dynamic.loadFailed\" : \"dynamic.loading\");\n\treturn /* @__PURE__ */ m.createElement(T.Provider, { value: l }, /* @__PURE__ */ m.createElement(E.Provider, { value: n }, /* @__PURE__ */ m.createElement(w.Provider, { value: f ? u : void 0 }, x && (S || g) && /* @__PURE__ */ m.createElement(\"p\", {\n\t\trole: g ? \"alert\" : \"status\",\n\t\t\"data-dynamic-loading\": !0\n\t}, (a == null ? void 0 : a(g ? \"dynamic.loadFailed\" : \"dynamic.loading\", D)) ?? D), /* @__PURE__ */ m.createElement(P, { pending: x }, (!x || S) && r))));\n}, O = () => g(E), k = i, A = (e) => !!e && Object.prototype.hasOwnProperty.call(k(e), \"$dynamic\");\nfunction j(e, t = !1) {\n\tlet n = C(), i = g(T), a = g(w), o = v(() => /* @__PURE__ */ new WeakMap(), [i]);\n\treturn (s) => {\n\t\tlet c = r(s);\n\t\tif (c) return c;\n\t\tlet p = k(s);\n\t\tif (!a || !A(p)) return {\n\t\t\telement: p,\n\t\t\tfailures: []\n\t\t};\n\t\tlet m = o.get(p);\n\t\tm || (m = l(i), o.set(p, m));\n\t\tlet h = e ? e.split(\".\") : [], g = {\n\t\t\tget data() {\n\t\t\t\tvar e;\n\t\t\t\treturn (e = n.core) == null ? void 0 : e.data;\n\t\t\t},\n\t\t\tget value() {\n\t\t\t\tvar e, r;\n\t\t\t\treturn t ? d((e = n.core) == null ? void 0 : e.data, h) : u(p, (r = n.core) == null ? void 0 : r.data, h);\n\t\t\t},\n\t\t\tget item() {\n\t\t\t\tvar e;\n\t\t\t\treturn f((e = n.core) == null ? void 0 : e.data, h, n.item);\n\t\t\t},\n\t\t\tget external() {\n\t\t\t\treturn a.external;\n\t\t\t},\n\t\t\tget config() {\n\t\t\t\treturn n.config;\n\t\t\t},\n\t\t\tget errors() {\n\t\t\t\tvar e;\n\t\t\t\treturn (e = n.core) == null ? void 0 : e.errors;\n\t\t\t},\n\t\t\tget locale() {\n\t\t\t\tvar e;\n\t\t\t\treturn (e = n.i18n) == null ? void 0 : e.locale;\n\t\t\t},\n\t\t\tpath: e,\n\t\t\ttrustedFunctions: a.trustedFunctions\n\t\t};\n\t\treturn m(p, g);\n\t};\n}\nfunction M(e = \"\") {\n\tlet t = g(w), r = j(e), i = v(() => n(), []);\n\treturn (e) => t ? i(e, r) : e;\n}\nfunction N(e, n) {\n\tlet r = M(n);\n\treturn v(() => t(), [])(e.map(r));\n}\nvar P = class extends m.Component {\n\tconstructor(...e) {\n\t\tsuper(...e), this.suspendedFocus = null, this.container = m.createRef();\n\t}\n\tgetSnapshotBeforeUpdate() {\n\t\tvar e, t;\n\t\tlet n = (e = this.container.current) == null ? void 0 : e.getRootNode(), r = n == null ? void 0 : n.activeElement;\n\t\treturn r && (t = this.container.current) != null && t.contains(r) ? r : null;\n\t}\n\tcomponentDidUpdate(e, t, n) {\n\t\tif (this.props.pending) {\n\t\t\tthis.suspendedFocus ?? (this.suspendedFocus = n);\n\t\t\treturn;\n\t\t}\n\t\tlet r = e.pending && !this.props.pending, i = r ? this.suspendedFocus : n;\n\t\tthis.suspendedFocus = null;\n\t\tlet a = this.container.current;\n\t\tif (!i || !r && i.isConnected || !a) return;\n\t\tlet o = a.getRootNode().activeElement;\n\t\tif (o && o !== a.ownerDocument.body && o !== a && o !== i) return;\n\t\tif (r && i instanceof HTMLElement && i.isConnected && !i.closest(\"[inert]\")) {\n\t\t\ti.focus({ preventScroll: !0 });\n\t\t\treturn;\n\t\t}\n\t\tlet s = a.querySelectorAll(\"input:not([disabled]):not([type=\\\"hidden\\\"]),select:not([disabled]),textarea:not([disabled]),[role=\\\"combobox\\\"],[role=\\\"slider\\\"],[role=\\\"radio\\\"],button:not([disabled]),[tabindex]:not([tabindex=\\\"-1\\\"]),a[href]\"), c = Array.from(s).find((e) => e.getAttribute(\"aria-disabled\") !== \"true\" && !e.closest(\"[hidden],[inert]\") && (typeof e.checkVisibility != \"function\" || e.checkVisibility()));\n\t\tif (c) {\n\t\t\tc.focus({ preventScroll: !0 });\n\t\t\treturn;\n\t\t}\n\t\tlet l = a.parentElement;\n\t\tfor (; l && getComputedStyle(l).display === \"contents\";) l = l.parentElement;\n\t\tl && (l.hasAttribute(\"tabindex\") || (l.setAttribute(\"tabindex\", \"-1\"), l.addEventListener(\"blur\", () => l.removeAttribute(\"tabindex\"), { once: !0 })), l.focus({ preventScroll: !0 }));\n\t}\n\trender() {\n\t\tlet e = this.props.pending ? { inert: Number.parseInt(m.version, 10) >= 19 || \"\" } : {};\n\t\treturn /* @__PURE__ */ m.createElement(\"div\", {\n\t\t\tref: this.container,\n\t\t\tstyle: { display: \"contents\" },\n\t\t\t\"aria-busy\": this.props.pending,\n\t\t\t...e\n\t\t}, this.props.children);\n\t}\n}, F = /* @__PURE__ */ new WeakSet();\nfunction I(e, t) {\n\tlet i = g(w), a = j(e.path ?? \"\", t), o = j(e.path ?? \"\"), s = v(() => n(), []), c = i ? s(e.uischema, (t) => t === e.uischema ? a(t) : o(t)) : e.uischema, l = r(c) ?? a(c), u = v(() => {\n\t\tlet { $dynamic: e, ...t } = l.element;\n\t\treturn F.add(t), t;\n\t}, [l.element]), d = l.failures.join(\"\\n\"), f = i == null ? void 0 : i.onDiagnostic;\n\t_(() => {\n\t\tfor (let t of d ? d.split(\"\\n\") : []) {\n\t\t\tlet n = {\n\t\t\t\tcode: \"dynamic.invalid\",\n\t\t\t\tpath: e.path ?? \"\",\n\t\t\t\tmessage: t\n\t\t\t};\n\t\t\tf ? f(n) : console.warn(\"dynamic.invalid\", n);\n\t\t}\n\t}, [\n\t\td,\n\t\te.path,\n\t\tf\n\t]);\n\tlet p = u.scope ?? \"\", { visible: h, readonly: y, enabled: x, ...C } = e;\n\treturn /* @__PURE__ */ m.createElement(P, null, t ? /* @__PURE__ */ m.createElement(b, {\n\t\t...C,\n\t\treadonly: y || void 0,\n\t\tenabled: x !== !1 && void 0,\n\t\tkey: p,\n\t\tuischema: u\n\t}) : /* @__PURE__ */ m.createElement(S, {\n\t\t...e,\n\t\tkey: p,\n\t\tuischema: u\n\t}));\n}\nvar L = (e) => I(e, !1), R = (e) => I(e, !0), z = (e) => !F.has(e) && (a(e) || r(e)) ? 2 ** 53 - 1 : -1, B = {\n\ttester: z,\n\trenderer: L\n}, V = {\n\ttester: z,\n\tcell: R\n}, H = (e = []) => [B, ...e.filter((e) => e.renderer !== L)], U = (e = []) => [V, ...e.filter((e) => e.cell !== R)], W = ({ external: e, renderers: t, cells: n, ...r }) => {\n\tvar i, a;\n\tlet o = v(() => H(t), [t]), s = v(() => U(n), [n]);\n\treturn /* @__PURE__ */ m.createElement(D, {\n\t\tconfig: r.config,\n\t\texternal: e,\n\t\tlocale: (i = r.i18n) == null ? void 0 : i.locale,\n\t\ttranslate: (a = r.i18n) == null ? void 0 : a.translate\n\t}, /* @__PURE__ */ m.createElement(x, {\n\t\t...r,\n\t\trenderers: o,\n\t\tcells: s\n\t}));\n};\nexport { R as DynamicCell, W as DynamicJsonForms, L as DynamicRenderer, D as DynamicUiProvider, k as dynamicAuthoredElement, V as dynamicCellEntry, B as dynamicRendererEntry, N as useDynamicElements, O as useDynamicExternal, j as useDynamicResolution, M as useDynamicTreeResolver, U as withDynamicCells, H as withDynamicRenderers };\n\n//# sourceMappingURL=DynamicUiProvider.esm.js.map","import { useDynamicElements as e } from \"../dynamic/DynamicUiProvider.esm.js\";\nimport t from \"react\";\nimport { getAjv as n, isVisible as r } from \"@jsonforms/core\";\nimport { useJsonForms as i } from \"@jsonforms/react\";\n// src/layout/layoutContext.tsx\nvar a = (t, n, a) => {\n\tvar o, s;\n\tlet c = i(), l = (o = c.core) == null ? void 0 : o.data, u = (s = c.core) == null ? void 0 : s.ajv;\n\treturn e(t ?? [], n).filter((e) => {\n\t\tif (!e) return !1;\n\t\ttry {\n\t\t\treturn !u || r(e, l, n, u, a);\n\t\t} catch {\n\t\t\treturn !0;\n\t\t}\n\t});\n}, o = (e) => function(r) {\n\tlet a = i(), o = n({ jsonforms: { ...a } });\n\treturn /* @__PURE__ */ t.createElement(e, {\n\t\t...r,\n\t\tajv: o\n\t});\n};\nexport { a as useEffectiveElements, o as withAjvProps };\n\n//# sourceMappingURL=layoutContext.esm.js.map","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","const e=Symbol(),t=Symbol(),r=\"a\",n=\"w\";let o=(e,t)=>new Proxy(e,t);const s=Object.getPrototypeOf,c=new WeakMap,l=e=>e&&(c.has(e)?c.get(e):s(e)===Object.prototype||s(e)===Array.prototype),f=e=>\"object\"==typeof e&&null!==e,i=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(e=>{e.configurable=!0}),Object.create(s(e),t)},u=e=>e[t]||e,a=(s,c,f,p)=>{if(!l(s))return s;let g=p&&p.get(s);if(!g){const e=u(s);g=(e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(e=>!e.configurable&&!e.writable))(e)?[e,i(e)]:[e],null==p||p.set(s,g)}const[y,h]=g;let w=f&&f.get(y);return w&&w[1].f===!!h||(w=((o,s)=>{const c={f:s};let l=!1;const f=(e,t)=>{if(!l){let s=c[r].get(o);if(s||(s={},c[r].set(o,s)),e===n)s[n]=!0;else{let r=s[e];r||(r=new Set,s[e]=r),r.add(t)}}},i={get:(e,n)=>n===t?o:(f(\"k\",n),a(Reflect.get(e,n),c[r],c.c,c.t)),has:(t,n)=>n===e?(l=!0,c[r].delete(o),!0):(f(\"h\",n),Reflect.has(t,n)),getOwnPropertyDescriptor:(e,t)=>(f(\"o\",t),Reflect.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(f(n),Reflect.ownKeys(e))};return s&&(i.set=i.deleteProperty=()=>!1),[i,c]})(y,!!h),w[1].p=o(h||y,w[0]),f&&f.set(y,w)),w[1][r]=c,w[1].c=f,w[1].t=p,w[1].p},p=(e,t,r,o)=>{if(Object.is(e,t))return!1;if(!f(e)||!f(t))return!0;const s=r.get(u(e));if(!s)return!0;if(o){const r=o.get(e);if(r&&r.n===t)return r.g;o.set(e,{n:t,g:!1})}let c=null;try{for(const r of s.h||[])if(c=Reflect.has(e,r)!==Reflect.has(t,r),c)return c;if(!0===s[n]){if(c=((e,t)=>{const r=Reflect.ownKeys(e),n=Reflect.ownKeys(t);return r.length!==n.length||r.some((e,t)=>e!==n[t])})(e,t),c)return c}else for(const r of s.o||[])if(c=!!Reflect.getOwnPropertyDescriptor(e,r)!=!!Reflect.getOwnPropertyDescriptor(t,r),c)return c;for(const n of s.k||[])if(c=p(e[n],t[n],r,o),c)return c;return null===c&&(c=!0),c}finally{o&&o.set(e,{n:t,g:c})}},g=t=>!!l(t)&&e in t,y=e=>l(e)&&e[t]||null,h=(e,t=!0)=>{c.set(e,t)},w=(e,t,r)=>{const o=[],s=new WeakSet,c=(e,l)=>{if(s.has(e))return;f(e)&&s.add(e);const i=f(e)&&t.get(u(e));if(i){var a,p;if(null==(a=i.h)||a.forEach(e=>{const t=`:has(${String(e)})`;o.push(l?[...l,t]:[t])}),!0===i[n]){const e=\":ownKeys\";o.push(l?[...l,e]:[e])}else{var g;null==(g=i.o)||g.forEach(e=>{const t=`:hasOwn(${String(e)})`;o.push(l?[...l,t]:[t])})}null==(p=i.k)||p.forEach(t=>{r&&!(\"value\"in(Object.getOwnPropertyDescriptor(e,t)||{}))||c(e[t],l?[...l,t]:[t])})}else l&&o.push(l)};return c(e),o},O=e=>{o=e};export{w as affectedToPathList,a as createProxy,y as getUntracked,p as isChanged,h as markToTrack,O as replaceNewProxy,g as trackMemo};\n//# sourceMappingURL=index.modern.mjs.map\n","import { markToTrack, getUntracked } from 'proxy-compare';\n\nconst isObject = (x) => typeof x === \"object\" && x !== null;\nconst proxyStateMap = /* @__PURE__ */ new WeakMap();\nconst refSet = /* @__PURE__ */ new WeakSet();\nconst buildProxyFunction = (objectIs = Object.is, newProxy = (target, handler) => new Proxy(target, handler), canProxy = (x) => isObject(x) && !refSet.has(x) && (Array.isArray(x) || !(Symbol.iterator in x)) && !(x instanceof WeakMap) && !(x instanceof WeakSet) && !(x instanceof Error) && !(x instanceof Number) && !(x instanceof Date) && !(x instanceof String) && !(x instanceof RegExp) && !(x instanceof ArrayBuffer), defaultHandlePromise = (promise) => {\n switch (promise.status) {\n case \"fulfilled\":\n return promise.value;\n case \"rejected\":\n throw promise.reason;\n default:\n throw promise;\n }\n}, snapCache = /* @__PURE__ */ new WeakMap(), createSnapshot = (target, version, handlePromise = defaultHandlePromise) => {\n const cache = snapCache.get(target);\n if ((cache == null ? void 0 : cache[0]) === version) {\n return cache[1];\n }\n const snap = Array.isArray(target) ? [] : Object.create(Object.getPrototypeOf(target));\n markToTrack(snap, true);\n snapCache.set(target, [version, snap]);\n Reflect.ownKeys(target).forEach((key) => {\n if (Object.getOwnPropertyDescriptor(snap, key)) {\n return;\n }\n const value = Reflect.get(target, key);\n const desc = {\n value,\n enumerable: true,\n // This is intentional to avoid copying with proxy-compare.\n // It's still non-writable, so it avoids assigning a value.\n configurable: true\n };\n if (refSet.has(value)) {\n markToTrack(value, false);\n } else if (value instanceof Promise) {\n delete desc.value;\n desc.get = () => handlePromise(value);\n } else if (proxyStateMap.has(value)) {\n const [target2, ensureVersion] = proxyStateMap.get(\n value\n );\n desc.value = createSnapshot(\n target2,\n ensureVersion(),\n handlePromise\n );\n }\n Object.defineProperty(snap, key, desc);\n });\n return Object.preventExtensions(snap);\n}, proxyCache = /* @__PURE__ */ new WeakMap(), versionHolder = [1, 1], proxyFunction = (initialObject) => {\n if (!isObject(initialObject)) {\n throw new Error(\"object required\");\n }\n const found = proxyCache.get(initialObject);\n if (found) {\n return found;\n }\n let version = versionHolder[0];\n const listeners = /* @__PURE__ */ new Set();\n const notifyUpdate = (op, nextVersion = ++versionHolder[0]) => {\n if (version !== nextVersion) {\n version = nextVersion;\n listeners.forEach((listener) => listener(op, nextVersion));\n }\n };\n let checkVersion = versionHolder[1];\n const ensureVersion = (nextCheckVersion = ++versionHolder[1]) => {\n if (checkVersion !== nextCheckVersion && !listeners.size) {\n checkVersion = nextCheckVersion;\n propProxyStates.forEach(([propProxyState]) => {\n const propVersion = propProxyState[1](nextCheckVersion);\n if (propVersion > version) {\n version = propVersion;\n }\n });\n }\n return version;\n };\n const createPropListener = (prop) => (op, nextVersion) => {\n const newOp = [...op];\n newOp[1] = [prop, ...newOp[1]];\n notifyUpdate(newOp, nextVersion);\n };\n const propProxyStates = /* @__PURE__ */ new Map();\n const addPropListener = (prop, propProxyState) => {\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && propProxyStates.has(prop)) {\n throw new Error(\"prop listener already exists\");\n }\n if (listeners.size) {\n const remove = propProxyState[3](createPropListener(prop));\n propProxyStates.set(prop, [propProxyState, remove]);\n } else {\n propProxyStates.set(prop, [propProxyState]);\n }\n };\n const removePropListener = (prop) => {\n var _a;\n const entry = propProxyStates.get(prop);\n if (entry) {\n propProxyStates.delete(prop);\n (_a = entry[1]) == null ? void 0 : _a.call(entry);\n }\n };\n const addListener = (listener) => {\n listeners.add(listener);\n if (listeners.size === 1) {\n propProxyStates.forEach(([propProxyState, prevRemove], prop) => {\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && prevRemove) {\n throw new Error(\"remove already exists\");\n }\n const remove = propProxyState[3](createPropListener(prop));\n propProxyStates.set(prop, [propProxyState, remove]);\n });\n }\n const removeListener = () => {\n listeners.delete(listener);\n if (listeners.size === 0) {\n propProxyStates.forEach(([propProxyState, remove], prop) => {\n if (remove) {\n remove();\n propProxyStates.set(prop, [propProxyState]);\n }\n });\n }\n };\n return removeListener;\n };\n const baseObject = Array.isArray(initialObject) ? [] : Object.create(Object.getPrototypeOf(initialObject));\n const handler = {\n deleteProperty(target, prop) {\n const prevValue = Reflect.get(target, prop);\n removePropListener(prop);\n const deleted = Reflect.deleteProperty(target, prop);\n if (deleted) {\n notifyUpdate([\"delete\", [prop], prevValue]);\n }\n return deleted;\n },\n set(target, prop, value, receiver) {\n const hasPrevValue = Reflect.has(target, prop);\n const prevValue = Reflect.get(target, prop, receiver);\n if (hasPrevValue && (objectIs(prevValue, value) || proxyCache.has(value) && objectIs(prevValue, proxyCache.get(value)))) {\n return true;\n }\n removePropListener(prop);\n if (isObject(value)) {\n value = getUntracked(value) || value;\n }\n let nextValue = value;\n if (value instanceof Promise) {\n value.then((v) => {\n value.status = \"fulfilled\";\n value.value = v;\n notifyUpdate([\"resolve\", [prop], v]);\n }).catch((e) => {\n value.status = \"rejected\";\n value.reason = e;\n notifyUpdate([\"reject\", [prop], e]);\n });\n } else {\n if (!proxyStateMap.has(value) && canProxy(value)) {\n nextValue = proxyFunction(value);\n }\n const childProxyState = !refSet.has(nextValue) && proxyStateMap.get(nextValue);\n if (childProxyState) {\n addPropListener(prop, childProxyState);\n }\n }\n Reflect.set(target, prop, nextValue, receiver);\n notifyUpdate([\"set\", [prop], value, prevValue]);\n return true;\n }\n };\n const proxyObject = newProxy(baseObject, handler);\n proxyCache.set(initialObject, proxyObject);\n const proxyState = [\n baseObject,\n ensureVersion,\n createSnapshot,\n addListener\n ];\n proxyStateMap.set(proxyObject, proxyState);\n Reflect.ownKeys(initialObject).forEach((key) => {\n const desc = Object.getOwnPropertyDescriptor(\n initialObject,\n key\n );\n if (\"value\" in desc) {\n proxyObject[key] = initialObject[key];\n delete desc.value;\n delete desc.writable;\n }\n Object.defineProperty(baseObject, key, desc);\n });\n return proxyObject;\n}) => [\n // public functions\n proxyFunction,\n // shared state\n proxyStateMap,\n refSet,\n // internal things\n objectIs,\n newProxy,\n canProxy,\n defaultHandlePromise,\n snapCache,\n createSnapshot,\n proxyCache,\n versionHolder\n];\nconst [defaultProxyFunction] = buildProxyFunction();\nfunction proxy(initialObject = {}) {\n return defaultProxyFunction(initialObject);\n}\nfunction getVersion(proxyObject) {\n const proxyState = proxyStateMap.get(proxyObject);\n return proxyState == null ? void 0 : proxyState[1]();\n}\nfunction subscribe(proxyObject, callback, notifyInSync) {\n const proxyState = proxyStateMap.get(proxyObject);\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && !proxyState) {\n console.warn(\"Please use proxy object\");\n }\n let promise;\n const ops = [];\n const addListener = proxyState[3];\n let isListenerActive = false;\n const listener = (op) => {\n ops.push(op);\n if (notifyInSync) {\n callback(ops.splice(0));\n return;\n }\n if (!promise) {\n promise = Promise.resolve().then(() => {\n promise = void 0;\n if (isListenerActive) {\n callback(ops.splice(0));\n }\n });\n }\n };\n const removeListener = addListener(listener);\n isListenerActive = true;\n return () => {\n isListenerActive = false;\n removeListener();\n };\n}\nfunction snapshot(proxyObject, handlePromise) {\n const proxyState = proxyStateMap.get(proxyObject);\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && !proxyState) {\n console.warn(\"Please use proxy object\");\n }\n const [target, ensureVersion, createSnapshot] = proxyState;\n return createSnapshot(target, ensureVersion(), handlePromise);\n}\nfunction ref(obj) {\n refSet.add(obj);\n return obj;\n}\nconst unstable_buildProxyFunction = buildProxyFunction;\n\nexport { getVersion, proxy, ref, snapshot, subscribe, unstable_buildProxyFunction };\n","import { createControlElement as e, findUISchema as t } from \"@jsonforms/core\";\n// src/core/detailUiSchema.ts\nvar n = (e, n, r, i, a = \"VerticalLayout\", o, s) => {\n\tvar c;\n\tlet l = o == null || (c = o.options) == null ? void 0 : c.detail, u = typeof l == \"string\" && l.toUpperCase() === \"GENERATE\";\n\treturn t(e, n, r, i, typeof a == \"function\" ? () => {\n\t\tlet e = a();\n\t\treturn u && e.type === \"Control\" ? {\n\t\t\t...e,\n\t\t\toptions: {\n\t\t\t\t...e.options,\n\t\t\t\tdetail: \"GENERATE\"\n\t\t\t}\n\t\t} : e;\n\t} : a, o, s);\n}, r = (e, t, r, i, a, o, s) => e === void 0 ? s : n(t, r, i, a, () => s, {\n\ttype: \"Control\",\n\tscope: i,\n\toptions: { detail: e }\n}, o), i = (t, r, i, a, o, s = n) => s(o, t, r.scope, i, () => e(\"#\"), r, a);\nexport { n as findDetailUISchema, i as findMixedDetailUiSchema, r as resolveEditorDetail };\n\n//# sourceMappingURL=detailUiSchema.esm.js.map","// src/mixed/mixedComposition.ts\nvar e = (e, t) => t === \"null\" ? e === null : t === \"array\" ? Array.isArray(e) : t === \"object\" ? typeof e == \"object\" && !!e && !Array.isArray(e) : t === \"integer\" ? typeof e == \"number\" && Number.isInteger(e) : typeof e === t, t = (n, r, i = { remaining: 256 }) => {\n\tvar a;\n\tif (typeof n == \"boolean\") return n && { type: r };\n\tif (--i.remaining < 0) return n;\n\tlet o = n;\n\tif (o.$ref) return n;\n\tlet s = Array.isArray(o.type) ? o.type : o.type ? [o.type] : [];\n\tif (!(s.length === 0 || s.some((e) => e === r || e === \"number\" && r === \"integer\" || e === \"integer\" && r === \"number\")) || \"const\" in o && !e(o.const, r)) return !1;\n\tlet c = (a = o.enum) == null ? void 0 : a.filter((t) => e(t, r));\n\tif ((c == null ? void 0 : c.length) === 0) return !1;\n\tlet l = {\n\t\t...o,\n\t\t...c ? { enum: c } : {},\n\t\ttype: r === \"number\" && s.includes(\"integer\") && !s.includes(\"number\") ? \"integer\" : r\n\t};\n\tfor (let e of [\n\t\t\"allOf\",\n\t\t\"anyOf\",\n\t\t\"oneOf\"\n\t]) {\n\t\tlet n = o[e];\n\t\tif (!n) continue;\n\t\tlet a = n.map((e) => t(e, r, i)), s = e === \"allOf\" ? a : a.filter((e) => e !== !1);\n\t\tl[e] = s.length ? s.map((e) => typeof e == \"boolean\" ? {\n\t\t\ttype: r,\n\t\t\tnot: {}\n\t\t} : e) : [{\n\t\t\ttype: r,\n\t\t\tnot: {}\n\t\t}];\n\t}\n\treturn l;\n};\nexport { t as narrowMixedComposition };\n\n//# sourceMappingURL=mixedComposition.esm.js.map","import { narrowMixedComposition as e } from \"./mixedComposition.esm.js\";\nimport { isControl as t, rankWith as n, resolveSchema as r } from \"@jsonforms/core\";\nimport i from \"lodash/get\";\n// src/mixed/mixedSchema.ts\nvar a = [\n\t\"array\",\n\t\"boolean\",\n\t\"integer\",\n\t\"null\",\n\t\"number\",\n\t\"object\",\n\t\"string\"\n], o = [\n\t\"items\",\n\t\"maxItems\",\n\t\"minItems\",\n\t\"uniqueItems\"\n], s = [\n\t\"additionalProperties\",\n\t\"dependencies\",\n\t\"dependentRequired\",\n\t\"dependentSchemas\",\n\t\"maxProperties\",\n\t\"minProperties\",\n\t\"patternProperties\",\n\t\"properties\",\n\t\"propertyNames\",\n\t\"required\"\n], c = [\n\t\"contentEncoding\",\n\t\"contentMediaType\",\n\t\"format\",\n\t\"maxLength\",\n\t\"minLength\",\n\t\"pattern\"\n], l = [\n\t\"exclusiveMaximum\",\n\t\"exclusiveMinimum\",\n\t\"maximum\",\n\t\"minimum\",\n\t\"multipleOf\"\n], u = (e, t) => t.forEach((t) => delete e[t]), d = (e) => typeof e == \"string\" ? \"string\" : typeof e == \"number\" ? Number.isInteger(e) ? \"integer\" : \"number\" : typeof e == \"boolean\" ? \"boolean\" : Array.isArray(e) ? \"array\" : e === null ? \"null\" : typeof e == \"object\" ? \"object\" : null, f = (e) => typeof e == \"object\" ? typeof e.type == \"string\" ? [e.type] : Array.isArray(e.type) ? e.type : a : a;\nfunction p(e, t) {\n\tt !== \"array\" && u(e, o), t !== \"object\" && u(e, s), t !== \"string\" && u(e, c), t !== \"integer\" && t !== \"number\" && u(e, l);\n}\nfunction m(e, t) {\n\treturn typeof e == \"object\" && !Array.isArray(e) && typeof e.$ref == \"string\" ? r(t, e.$ref, t) ?? e : e;\n}\nvar h = (t, n, r) => {\n\tlet i = e(t, n), o = {\n\t\t...typeof i == \"object\" ? i : {},\n\t\t...i === !1 ? { not: {} } : {},\n\t\ttype: typeof i == \"object\" ? i.type ?? n : n\n\t};\n\tif (p(o, n), o.default !== void 0) {\n\t\tlet e = d(o.default);\n\t\te === n || n === \"number\" && e === \"integer\" || delete o.default;\n\t}\n\tif (n === \"object\") o.additionalProperties = o.additionalProperties ?? !0;\n\telse if (n === \"array\") {\n\t\tlet e = m(o.items, r);\n\t\to.items = e === void 0 ? { type: a } : e;\n\t}\n\treturn o;\n}, g = (e, t) => {\n\tif (!t) return !1;\n\tlet n = t.lastIndexOf(\".\"), r = n < 0 ? e : i(e, t.slice(0, n).split(\".\"));\n\treturn Array.isArray(r);\n}, _ = (e, t, n) => {\n\tlet i = e == null ? void 0 : e.scope;\n\tif (!i) return t;\n\ttry {\n\t\treturn r(t, i, (n == null ? void 0 : n.rootSchema) ?? t) ?? t;\n\t} catch {\n\t\treturn t;\n\t}\n}, v = (e, n, r) => {\n\tif (n && typeof n == \"boolean\") return !0;\n\tif (!n || typeof n != \"object\") return !1;\n\tlet i = _(e, n, r);\n\treturn typeof i == \"boolean\" ? !!i : Array.isArray(i.type) ? i.type.length > 1 : i.allOf || i.anyOf || i.oneOf || i.properties || i.patternProperties || i.additionalProperties !== void 0 ? !1 : !!(i.type === void 0 && t(e));\n}, y = (e) => {\n\tlet t = e == null ? void 0 : e.elements;\n\treturn (e.type === \"VerticalLayout\" || e.type === \"Group\") && Array.isArray(t) && t.length === 1 && t[0].scope === \"#\" && t[0].type === \"Control\";\n}, b = (e) => (n, r, i) => e(n, r, i) && (t(n) || y(n)), x = b(v), S = n(20, x);\nexport { a as ANY_TYPES, d as getJsonDataType, f as getSchemaTypes, g as isArrayElementPath, y as isDefaultGeneratedUiSchema, x as isMixedControl, v as isMixedSchema, b as mixedControlFor, S as mixedControlTester, p as removeInapplicableKeywords, m as resolveMixedArrayItems, h as schemaForType };\n\n//# sourceMappingURL=mixedSchema.esm.js.map","// src/interaction/confirmation.ts\nvar e = [\n\t\"always\",\n\t\"never\",\n\t\"complex\"\n], t = (t) => e.includes(t) ? t : void 0, n = (e, t) => e === \"mixed\" && t === \"typeChange\" || t === \"delete\" ? \"complex\" : \"always\", r = (e) => {\n\tlet t = e == null ? void 0 : e.jsonformsExtended, n = t == null ? void 0 : t.confirmation;\n\treturn n && typeof n == \"object\" ? n : void 0;\n}, i = ({ options: e, config: i, catalogId: a, operation: o }) => {\n\tvar s;\n\tlet c = e == null ? void 0 : e.confirmation, l = t(c == null ? void 0 : c[o]);\n\tif (l) return l;\n\tlet u = r(i), d = u == null ? void 0 : u.renderers;\n\treturn t(d == null || (s = d[a]) == null ? void 0 : s[o]) || t(u == null ? void 0 : u.default) || n(a, o);\n}, a = (e) => e !== void 0, o = (e) => Array.isArray(e) ? e.length > 0 : typeof e == \"object\" && !!e && Object.keys(e).length > 0, s = (e, t) => e === \"never\" ? !1 : e === \"complex\" ? t.some(o) : t.some(a), c = (e, t) => s(i(e), t);\nexport { s as confirmationRequired, n as fallbackConfirmationPolicy, o as isComplexValue, a as isDiscardableValue, i as resolveConfirmationPolicy, c as shouldConfirm };\n\n//# sourceMappingURL=confirmation.esm.js.map","import { shouldConfirm as e } from \"../interaction/confirmation.esm.js\";\nimport { useLayoutEffect as t, useRef as n, useState as r } from \"react\";\n// src/collections/useCollectionDelete.ts\nvar i = (i) => {\n\tlet a = n(i);\n\tt(() => {\n\t\ta.current = i;\n\t}, [i]);\n\tlet o = n(), [s, c] = r(!1), l = () => {\n\t\to.current = void 0, c(!1);\n\t};\n\treturn {\n\t\tconfirming: s,\n\t\trequest: (t) => {\n\t\t\tlet n = a.current;\n\t\t\tn.canRemove(t) && (e({\n\t\t\t\toperation: \"delete\",\n\t\t\t\tcatalogId: n.catalogId,\n\t\t\t\toptions: n.options,\n\t\t\t\tconfig: n.config\n\t\t\t}, [n.value(t)]) ? (o.current = {\n\t\t\t\tkey: t,\n\t\t\t\tdata: n.data,\n\t\t\t\tidentity: n.identity\n\t\t\t}, c(!0)) : n.remove(t));\n\t\t},\n\t\tconfirm: () => {\n\t\t\tlet e = o.current;\n\t\t\tl();\n\t\t\tlet t = a.current;\n\t\t\te && e.data === t.data && e.identity === t.identity && t.canRemove(e.key) && t.remove(e.key);\n\t\t},\n\t\tcancel: l\n\t};\n};\nexport { i as useCollectionDelete };\n\n//# sourceMappingURL=useCollectionDelete.esm.js.map","import { Resolve as e, createAjv as t } from \"@jsonforms/core\";\n// src/objects/additionalPropertyName.ts\nvar n = (e) => e === \"\" || e.includes(\".\"), r = (e, t, n) => (Object.defineProperty(e, t, {\n\tvalue: n,\n\twritable: !0,\n\tenumerable: !0,\n\tconfigurable: !0\n}), e), i = (t, n) => {\n\tlet r = [], i = t.propertyNames;\n\tif (i === !1) r.push({ not: {} });\n\telse if (typeof i == \"object\" && i) {\n\t\tlet t = typeof i.$ref == \"string\" ? e.schema(n, i.$ref, n) ?? i : i;\n\t\tr.push(t);\n\t}\n\tif (t.additionalProperties === !1) {\n\t\tlet e = Object.keys(t.patternProperties ?? {});\n\t\tr.push(e.length > 0 ? { anyOf: e.map((e) => ({ pattern: e })) } : { not: {} });\n\t}\n\treturn {\n\t\ttype: \"string\",\n\t\t...r.length > 0 ? { allOf: r } : {}\n\t};\n}, a = t(), o = ({ name: e, schema: t, rootSchema: n, data: r, currentName: o, disallowedNames: s = [], allowEmptyName: c = !1, validate: l }) => {\n\tif (!c && e.trim().length === 0) return {\n\t\tname: e,\n\t\terror: \"required\"\n\t};\n\tif (([...Object.keys(t.properties ?? {}), ...s].includes(e) || typeof r == \"object\" && r && !Array.isArray(r) && Object.prototype.hasOwnProperty.call(r, e)) && e !== o) return {\n\t\tname: e,\n\t\terror: \"already-defined\"\n\t};\n\tlet u = i(t, n), d = !0, f = [];\n\ttry {\n\t\td = l ? l(u, e) : a.validate(u, e), d || (a.validate(u, e), f = [...a.errors ?? []]);\n\t} catch {\n\t\td = !0;\n\t}\n\treturn d ? { name: e } : {\n\t\tname: e,\n\t\terror: \"invalid\",\n\t\terrors: f\n\t};\n};\nexport { r as assignOwnProperty, i as createAdditionalPropertyNameSchema, n as needsIsolatedEditor, o as validateAdditionalPropertyName };\n\n//# sourceMappingURL=additionalPropertyName.esm.js.map","import { useMemo as e, useState as t } from \"react\";\n// src/collections/collectionPagination.ts\nvar n = (e, t, n, r = !0) => {\n\tvar i;\n\tlet a = e ?? (t == null || (i = t.jsonformsExtended) == null || (i = i[n]) == null ? void 0 : i.pagination) ?? r, o = typeof a == \"object\" ? a : {}, s = Number.isInteger(o.pageSize) && o.pageSize > 0 ? o.pageSize : 5, c = [.../* @__PURE__ */ new Set([...(o.pageSizeOptions ?? [\n\t\t5,\n\t\t10,\n\t\t25,\n\t\t50\n\t]).filter((e) => Number.isInteger(e) && e > 0), s])].sort((e, t) => e - t);\n\treturn {\n\t\tenabled: a !== !1,\n\t\tsize: s,\n\t\tchoices: c\n\t};\n}, r = (r, i, a, o, s = !0) => {\n\tlet c = e(() => /* @__PURE__ */ new Set(), []), l = n(i, a, o, s), [u, d] = t(l.size), [f, p] = t(1), m = JSON.stringify(r), [h, g] = t({\n\t\tkeySnapshot: m,\n\t\tsize: l.size,\n\t\tenabled: l.enabled\n\t}), _ = Math.max(1, Math.ceil(r.length / u));\n\tif (h.size !== l.size || h.enabled !== l.enabled) g({\n\t\tkeySnapshot: m,\n\t\tsize: l.size,\n\t\tenabled: l.enabled\n\t}), d(l.size), p(1);\n\telse if (h.keySnapshot !== m) {\n\t\tlet e = JSON.parse(h.keySnapshot), t = r.findIndex((t) => !e.includes(t));\n\t\tg({\n\t\t\t...h,\n\t\t\tkeySnapshot: m\n\t\t}), p(r.length > e.length && t >= 0 ? Math.floor(t / u) + 1 : Math.min(f, _));\n\t} else f > _ && p(_);\n\tlet v = Math.min(f, _), y = l.enabled ? (v - 1) * u : 0;\n\treturn {\n\t\tpending: c,\n\t\tenabled: l.enabled,\n\t\tcurrent: v,\n\t\tsize: u,\n\t\ttotal: r.length,\n\t\tpages: _,\n\t\tchoices: l.choices,\n\t\tindices: r.map((e, t) => t).slice(y, l.enabled ? y + u : void 0),\n\t\tchange: (e, t = u) => {\n\t\t\tc.forEach((e) => e.flush()), p(t === u ? e : Math.floor(y / t) + 1), d(t);\n\t\t}\n\t};\n};\nexport { n as resolvePagination, r as useCollectionPagination };\n\n//# sourceMappingURL=collectionPagination.esm.js.map","import { Generate as e, composePaths as t, createControlElement as n, resolveSchema as r } from \"@jsonforms/core\";\n// src/objects/additionalProperties.ts\nvar i = [\n\t\"array\",\n\t\"boolean\",\n\t\"integer\",\n\t\"null\",\n\t\"number\",\n\t\"object\",\n\t\"string\"\n], a = (e) => typeof e == \"object\" ? e : {}, o = (e) => {\n\tlet t = a(e);\n\treturn !!(t.patternProperties && Object.keys(t.patternProperties).length > 0) || typeof t.additionalProperties == \"object\" || t.additionalProperties === !0;\n}, s = (e, t, n, o) => {\n\tlet s = a(t), c;\n\tif (s.patternProperties) {\n\t\tlet t = Object.entries(s.patternProperties).filter(([t]) => new RegExp(t).test(e)).map(([, e]) => e);\n\t\tt.length === 1 && (c = t[0]), t.length > 1 && (c = { allOf: t });\n\t}\n\treturn c || typeof s.additionalProperties != \"object\" && s.additionalProperties !== !0 || (c = s.additionalProperties === !0 ? { type: i } : s.additionalProperties), !c && o && (c = { type: i }), typeof c == \"object\" && typeof c.$ref == \"string\" && (c = r(n, c.$ref, n)), c = c ?? { type: i }, typeof c == \"object\" && c.type === void 0 && (c = {\n\t\t...c,\n\t\ttype: i\n\t}), c;\n}, c = (r, i, a, o, c) => {\n\tlet l = s(r, a, o, c), u = n(\"#\");\n\treturn typeof l == \"object\" && l.type === \"array\" && (u = e.uiSchema(l, \"Group\", void 0, o), u.label = l.title ?? r), typeof l == \"object\" && (l = {\n\t\t...l,\n\t\ttitle: r\n\t}, l.type === \"object\" ? l.additionalProperties = l.additionalProperties === !1 ? !1 : l.additionalProperties ?? !0 : l.type === \"array\" && (l.items = l.items ?? {})), {\n\t\tpropertyName: r,\n\t\tpath: t(i, r),\n\t\tschema: l,\n\t\tuischema: u\n\t};\n};\nfunction l(e, t, n) {\n\treturn Object.fromEntries(Object.entries(e).map(([e, r]) => [e === t ? n : e, r]));\n}\nexport { s as getMatchingAdditionalPropertySchema, o as hasAdditionalProperties, l as renamePropertyKey, c as toAdditionalPropertyItem, a as toObjectSchema };\n\n//# sourceMappingURL=additionalProperties.esm.js.map","import { useCollectionDelete as e } from \"../collections/useCollectionDelete.esm.js\";\nimport { assignOwnProperty as t } from \"./additionalPropertyName.esm.js\";\nimport { useCollectionPagination as n } from \"../collections/collectionPagination.esm.js\";\nimport { hasAdditionalProperties as r, toAdditionalPropertyItem as i, toObjectSchema as a } from \"./additionalProperties.esm.js\";\nimport { useMemo as o } from \"react\";\nimport { createDefaultValue as s } from \"@jsonforms/core\";\n// src/objects/useAdditionalPropertyEntries.ts\nvar c = ({ data: e, schema: t, rootSchema: n, path: s, uischema: c, config: l }) => {\n\tlet u = a(t), d = {\n\t\t...l,\n\t\t...c.options\n\t}, f = typeof e == \"object\" && e && !Array.isArray(e) ? e : void 0, p = d.allowAdditionalPropertiesIfMissing === !0 && u.additionalProperties === void 0, m = Object.keys(u.properties ?? {}), h = Object.keys(f ?? {}).filter((e) => !m.includes(e)), g = JSON.stringify(h), _ = o(() => JSON.parse(g).map((e) => i(e, s, t, n, p)), [\n\t\tg,\n\t\tp,\n\t\ts,\n\t\tn,\n\t\tt\n\t]), v = r(t) || p || h.length > 0, y = Object.keys(f ?? {}).length;\n\treturn {\n\t\tmaxPropertiesReached: u.maxProperties !== void 0 && y >= u.maxProperties && !!f,\n\t\tminPropertiesReached: u.minProperties !== void 0 && y <= u.minProperties && !!f,\n\t\tobjectSchema: u,\n\t\tappliedOptions: d,\n\t\tobjectData: f,\n\t\tallowIfMissing: p,\n\t\treservedPropertyNames: m,\n\t\tadditionalKeys: h,\n\t\tadditionalPropertyItems: _,\n\t\tshouldShow: v\n\t};\n}, l = (e) => {\n\tvar t;\n\tlet r = c(e), i = n(r.additionalKeys, (t = e.uischema.options) == null || (t = t.additionalProperties) == null ? void 0 : t.pagination, e.config, \"additionalProperties\");\n\treturn {\n\t\t...r,\n\t\tpage: i\n\t};\n};\nfunction u(n, r, { restrict: a, propertyName: o, propertyNameError: c, setNewPropertyName: l }) {\n\tlet { enabled: u, readonly: d, path: f, rootSchema: p, schema: m, uischema: h, config: g, handleChange: _ } = n, { objectData: v, objectSchema: y, reservedPropertyNames: b, appliedOptions: x, allowIfMissing: S } = r, C = !u || !!d || a && r.maxPropertiesReached, w = !u || !!d || a && r.minPropertiesReached, T = e({\n\t\tdata: v,\n\t\tidentity: f,\n\t\tcatalogId: \"additionalProperties\",\n\t\toptions: h.options,\n\t\tconfig: g,\n\t\tcanRemove: (e) => {\n\t\t\tvar t;\n\t\t\treturn !w && !x.disableRemove && !!v && Object.prototype.hasOwnProperty.call(v, e) && !b.includes(e) && !(x.restrict !== !1 && (t = y.required) != null && t.includes(e));\n\t\t},\n\t\tvalue: (e) => v == null ? void 0 : v[e],\n\t\tremove: (e) => {\n\t\t\tlet t = { ...v };\n\t\t\tdelete t[e], _(f, t);\n\t\t}\n\t}), E = C || !!c;\n\tfunction D() {\n\t\tif (E) return;\n\t\tlet e = i(o, f, m, p, S);\n\t\t_(f, t({ ...v }, o, s(e.schema, p))), l(\"\");\n\t}\n\treturn {\n\t\taddPropertyDisabled: E,\n\t\tremovePropertyDisabled: w,\n\t\tdeletion: T,\n\t\taddProperty: D,\n\t\tremoveProperty: T.request\n\t};\n}\nexport { u as useAdditionalPropertyActions, l as useAdditionalPropertyEntries, c as useAdditionalPropertyItems };\n\n//# sourceMappingURL=useAdditionalPropertyEntries.esm.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst ajv_1 = require(\"ajv\");\nconst codegen_1 = require(\"ajv/dist/compile/codegen\");\nconst code_1 = require(\"ajv/dist/compile/codegen/code\");\nconst validate_1 = require(\"ajv/dist/compile/validate\");\nconst errors_1 = require(\"ajv/dist/compile/errors\");\nconst names_1 = require(\"ajv/dist/compile/names\");\nconst keyword = \"errorMessage\";\nconst used = new ajv_1.Name(\"emUsed\");\nconst KEYWORD_PROPERTY_PARAMS = {\n required: \"missingProperty\",\n dependencies: \"property\",\n dependentRequired: \"property\",\n};\nconst INTERPOLATION = /\\$\\{[^}]+\\}/;\nconst INTERPOLATION_REPLACE = /\\$\\{([^}]+)\\}/g;\nconst EMPTY_STR = /^\"\"\\s*\\+\\s*|\\s*\\+\\s*\"\"$/g;\nfunction errorMessage(options) {\n return {\n keyword,\n schemaType: [\"string\", \"object\"],\n post: true,\n code(cxt) {\n const { gen, data, schema, schemaValue, it } = cxt;\n if (it.createErrors === false)\n return;\n const sch = schema;\n const instancePath = codegen_1.strConcat(names_1.default.instancePath, it.errorPath);\n gen.if(ajv_1._ `${names_1.default.errors} > 0`, () => {\n if (typeof sch == \"object\") {\n const [kwdPropErrors, kwdErrors] = keywordErrorsConfig(sch);\n if (kwdErrors)\n processKeywordErrors(kwdErrors);\n if (kwdPropErrors)\n processKeywordPropErrors(kwdPropErrors);\n processChildErrors(childErrorsConfig(sch));\n }\n const schMessage = typeof sch == \"string\" ? sch : sch._;\n if (schMessage)\n processAllErrors(schMessage);\n if (!options.keepErrors)\n removeUsedErrors();\n });\n function childErrorsConfig({ properties, items }) {\n const errors = {};\n if (properties) {\n errors.props = {};\n for (const p in properties)\n errors.props[p] = [];\n }\n if (items) {\n errors.items = {};\n for (let i = 0; i < items.length; i++)\n errors.items[i] = [];\n }\n return errors;\n }\n function keywordErrorsConfig(emSchema) {\n let propErrors;\n let errors;\n for (const k in emSchema) {\n if (k === \"properties\" || k === \"items\")\n continue;\n const kwdSch = emSchema[k];\n if (typeof kwdSch == \"object\") {\n propErrors || (propErrors = {});\n const errMap = (propErrors[k] = {});\n for (const p in kwdSch)\n errMap[p] = [];\n }\n else {\n errors || (errors = {});\n errors[k] = [];\n }\n }\n return [propErrors, errors];\n }\n function processKeywordErrors(kwdErrors) {\n const kwdErrs = gen.const(\"emErrors\", ajv_1.stringify(kwdErrors));\n const templates = gen.const(\"templates\", getTemplatesCode(kwdErrors, schema));\n gen.forOf(\"err\", names_1.default.vErrors, (err) => gen.if(matchKeywordError(err, kwdErrs), () => gen.code(ajv_1._ `${kwdErrs}[${err}.keyword].push(${err})`).assign(ajv_1._ `${err}.${used}`, true)));\n const { singleError } = options;\n if (singleError) {\n const message = gen.let(\"message\", ajv_1._ `\"\"`);\n const paramsErrors = gen.let(\"paramsErrors\", ajv_1._ `[]`);\n loopErrors((key) => {\n gen.if(message, () => gen.code(ajv_1._ `${message} += ${typeof singleError == \"string\" ? singleError : \";\"}`));\n gen.code(ajv_1._ `${message} += ${errMessage(key)}`);\n gen.assign(paramsErrors, ajv_1._ `${paramsErrors}.concat(${kwdErrs}[${key}])`);\n });\n errors_1.reportError(cxt, { message, params: ajv_1._ `{errors: ${paramsErrors}}` });\n }\n else {\n loopErrors((key) => errors_1.reportError(cxt, {\n message: errMessage(key),\n params: ajv_1._ `{errors: ${kwdErrs}[${key}]}`,\n }));\n }\n function loopErrors(body) {\n gen.forIn(\"key\", kwdErrs, (key) => gen.if(ajv_1._ `${kwdErrs}[${key}].length`, () => body(key)));\n }\n function errMessage(key) {\n return ajv_1._ `${key} in ${templates} ? ${templates}[${key}]() : ${schemaValue}[${key}]`;\n }\n }\n function processKeywordPropErrors(kwdPropErrors) {\n const kwdErrs = gen.const(\"emErrors\", ajv_1.stringify(kwdPropErrors));\n const templatesCode = [];\n for (const k in kwdPropErrors) {\n templatesCode.push([\n k,\n getTemplatesCode(kwdPropErrors[k], schema[k]),\n ]);\n }\n const templates = gen.const(\"templates\", gen.object(...templatesCode));\n const kwdPropParams = gen.scopeValue(\"obj\", {\n ref: KEYWORD_PROPERTY_PARAMS,\n code: ajv_1.stringify(KEYWORD_PROPERTY_PARAMS),\n });\n const propParam = gen.let(\"emPropParams\");\n const paramsErrors = gen.let(\"emParamsErrors\");\n gen.forOf(\"err\", names_1.default.vErrors, (err) => gen.if(matchKeywordError(err, kwdErrs), () => {\n gen.assign(propParam, ajv_1._ `${kwdPropParams}[${err}.keyword]`);\n gen.assign(paramsErrors, ajv_1._ `${kwdErrs}[${err}.keyword][${err}.params[${propParam}]]`);\n gen.if(paramsErrors, () => gen.code(ajv_1._ `${paramsErrors}.push(${err})`).assign(ajv_1._ `${err}.${used}`, true));\n }));\n gen.forIn(\"key\", kwdErrs, (key) => gen.forIn(\"keyProp\", ajv_1._ `${kwdErrs}[${key}]`, (keyProp) => {\n gen.assign(paramsErrors, ajv_1._ `${kwdErrs}[${key}][${keyProp}]`);\n gen.if(ajv_1._ `${paramsErrors}.length`, () => {\n const tmpl = gen.const(\"tmpl\", ajv_1._ `${templates}[${key}] && ${templates}[${key}][${keyProp}]`);\n errors_1.reportError(cxt, {\n message: ajv_1._ `${tmpl} ? ${tmpl}() : ${schemaValue}[${key}][${keyProp}]`,\n params: ajv_1._ `{errors: ${paramsErrors}}`,\n });\n });\n }));\n }\n function processChildErrors(childErrors) {\n const { props, items } = childErrors;\n if (!props && !items)\n return;\n const isObj = ajv_1._ `typeof ${data} == \"object\"`;\n const isArr = ajv_1._ `Array.isArray(${data})`;\n const childErrs = gen.let(\"emErrors\");\n let childKwd;\n let childProp;\n const templates = gen.let(\"templates\");\n if (props && items) {\n childKwd = gen.let(\"emChildKwd\");\n gen.if(isObj);\n gen.if(isArr, () => {\n init(items, schema.items);\n gen.assign(childKwd, ajv_1.str `items`);\n }, () => {\n init(props, schema.properties);\n gen.assign(childKwd, ajv_1.str `properties`);\n });\n childProp = ajv_1._ `[${childKwd}]`;\n }\n else if (items) {\n gen.if(isArr);\n init(items, schema.items);\n childProp = ajv_1._ `.items`;\n }\n else if (props) {\n gen.if(codegen_1.and(isObj, codegen_1.not(isArr)));\n init(props, schema.properties);\n childProp = ajv_1._ `.properties`;\n }\n gen.forOf(\"err\", names_1.default.vErrors, (err) => ifMatchesChildError(err, childErrs, (child) => gen.code(ajv_1._ `${childErrs}[${child}].push(${err})`).assign(ajv_1._ `${err}.${used}`, true)));\n gen.forIn(\"key\", childErrs, (key) => gen.if(ajv_1._ `${childErrs}[${key}].length`, () => {\n errors_1.reportError(cxt, {\n message: ajv_1._ `${key} in ${templates} ? ${templates}[${key}]() : ${schemaValue}${childProp}[${key}]`,\n params: ajv_1._ `{errors: ${childErrs}[${key}]}`,\n });\n gen.assign(ajv_1._ `${names_1.default.vErrors}[${names_1.default.errors}-1].instancePath`, ajv_1._ `${instancePath} + \"/\" + ${key}.replace(/~/g, \"~0\").replace(/\\\\//g, \"~1\")`);\n }));\n gen.endIf();\n function init(children, msgs) {\n gen.assign(childErrs, ajv_1.stringify(children));\n gen.assign(templates, getTemplatesCode(children, msgs));\n }\n }\n function processAllErrors(schMessage) {\n const errs = gen.const(\"emErrs\", ajv_1._ `[]`);\n gen.forOf(\"err\", names_1.default.vErrors, (err) => gen.if(matchAnyError(err), () => gen.code(ajv_1._ `${errs}.push(${err})`).assign(ajv_1._ `${err}.${used}`, true)));\n gen.if(ajv_1._ `${errs}.length`, () => errors_1.reportError(cxt, {\n message: templateExpr(schMessage),\n params: ajv_1._ `{errors: ${errs}}`,\n }));\n }\n function removeUsedErrors() {\n const errs = gen.const(\"emErrs\", ajv_1._ `[]`);\n gen.forOf(\"err\", names_1.default.vErrors, (err) => gen.if(ajv_1._ `!${err}.${used}`, () => gen.code(ajv_1._ `${errs}.push(${err})`)));\n gen.assign(names_1.default.vErrors, errs).assign(names_1.default.errors, ajv_1._ `${errs}.length`);\n }\n function matchKeywordError(err, kwdErrs) {\n return codegen_1.and(ajv_1._ `${err}.keyword !== ${keyword}`, ajv_1._ `!${err}.${used}`, ajv_1._ `${err}.instancePath === ${instancePath}`, ajv_1._ `${err}.keyword in ${kwdErrs}`, \n // TODO match the end of the string?\n ajv_1._ `${err}.schemaPath.indexOf(${it.errSchemaPath}) === 0`, ajv_1._ `/^\\\\/[^\\\\/]*$/.test(${err}.schemaPath.slice(${it.errSchemaPath.length}))`);\n }\n function ifMatchesChildError(err, childErrs, thenBody) {\n gen.if(codegen_1.and(ajv_1._ `${err}.keyword !== ${keyword}`, ajv_1._ `!${err}.${used}`, ajv_1._ `${err}.instancePath.indexOf(${instancePath}) === 0`), () => {\n const childRegex = gen.scopeValue(\"pattern\", {\n ref: /^\\/([^/]*)(?:\\/|$)/,\n code: ajv_1._ `new RegExp(\"^\\\\\\/([^/]*)(?:\\\\\\/|$)\")`,\n });\n const matches = gen.const(\"emMatches\", ajv_1._ `${childRegex}.exec(${err}.instancePath.slice(${instancePath}.length))`);\n const child = gen.const(\"emChild\", ajv_1._ `${matches} && ${matches}[1].replace(/~1/g, \"/\").replace(/~0/g, \"~\")`);\n gen.if(ajv_1._ `${child} !== undefined && ${child} in ${childErrs}`, () => thenBody(child));\n });\n }\n function matchAnyError(err) {\n return codegen_1.and(ajv_1._ `${err}.keyword !== ${keyword}`, ajv_1._ `!${err}.${used}`, codegen_1.or(ajv_1._ `${err}.instancePath === ${instancePath}`, codegen_1.and(ajv_1._ `${err}.instancePath.indexOf(${instancePath}) === 0`, ajv_1._ `${err}.instancePath[${instancePath}.length] === \"/\"`)), ajv_1._ `${err}.schemaPath.indexOf(${it.errSchemaPath}) === 0`, ajv_1._ `${err}.schemaPath[${it.errSchemaPath}.length] === \"/\"`);\n }\n function getTemplatesCode(keys, msgs) {\n const templatesCode = [];\n for (const k in keys) {\n const msg = msgs[k];\n if (INTERPOLATION.test(msg))\n templatesCode.push([k, templateFunc(msg)]);\n }\n return gen.object(...templatesCode);\n }\n function templateExpr(msg) {\n if (!INTERPOLATION.test(msg))\n return ajv_1.stringify(msg);\n return new code_1._Code(code_1.safeStringify(msg)\n .replace(INTERPOLATION_REPLACE, (_s, ptr) => `\" + JSON.stringify(${validate_1.getData(ptr, it)}) + \"`)\n .replace(EMPTY_STR, \"\"));\n }\n function templateFunc(msg) {\n return ajv_1._ `function(){return ${templateExpr(msg)}}`;\n }\n },\n metaSchema: {\n anyOf: [\n { type: \"string\" },\n {\n type: \"object\",\n properties: {\n properties: { $ref: \"#/$defs/stringMap\" },\n items: { $ref: \"#/$defs/stringList\" },\n required: { $ref: \"#/$defs/stringOrMap\" },\n dependencies: { $ref: \"#/$defs/stringOrMap\" },\n },\n additionalProperties: { type: \"string\" },\n },\n ],\n $defs: {\n stringMap: {\n type: \"object\",\n additionalProperties: { type: \"string\" },\n },\n stringOrMap: {\n anyOf: [{ type: \"string\" }, { $ref: \"#/$defs/stringMap\" }],\n },\n stringList: { type: \"array\", items: { type: \"string\" } },\n },\n },\n };\n}\nconst ajvErrors = (ajv, options = {}) => {\n if (!ajv.opts.allErrors)\n throw new Error(\"ajv-errors: Ajv option allErrors must be true\");\n if (ajv.opts.jsPropertySyntax) {\n throw new Error(\"ajv-errors: ajv option jsPropertySyntax is not supported\");\n }\n return ajv.addKeyword(errorMessage(options));\n};\nexports.default = ajvErrors;\nmodule.exports = ajvErrors;\nmodule.exports.default = ajvErrors;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"ajv/dist/compile/codegen\");\nconst TYPES = [\"undefined\", \"string\", \"number\", \"object\", \"function\", \"boolean\", \"symbol\"];\nfunction getDef() {\n return {\n keyword: \"typeof\",\n schemaType: [\"string\", \"array\"],\n code(cxt) {\n const { data, schema, schemaValue } = cxt;\n cxt.fail(typeof schema == \"string\"\n ? (0, codegen_1._) `typeof ${data} != ${schema}`\n : (0, codegen_1._) `${schemaValue}.indexOf(typeof ${data}) < 0`);\n },\n metaSchema: {\n anyOf: [\n { type: \"string\", enum: TYPES },\n { type: \"array\", items: { type: \"string\", enum: TYPES } },\n ],\n },\n };\n}\nexports.default = getDef;\nmodule.exports = getDef;\n//# sourceMappingURL=typeof.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst typeof_1 = __importDefault(require(\"../definitions/typeof\"));\nconst typeofPlugin = (ajv) => ajv.addKeyword((0, typeof_1.default)());\nexports.default = typeofPlugin;\nmodule.exports = typeofPlugin;\n//# sourceMappingURL=typeof.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst CONSTRUCTORS = {\n Object,\n Array,\n Function,\n Number,\n String,\n Date,\n RegExp,\n};\n/* istanbul ignore else */\nif (typeof Buffer != \"undefined\")\n CONSTRUCTORS.Buffer = Buffer;\n/* istanbul ignore else */\nif (typeof Promise != \"undefined\")\n CONSTRUCTORS.Promise = Promise;\nconst getDef = Object.assign(_getDef, { CONSTRUCTORS });\nfunction _getDef() {\n return {\n keyword: \"instanceof\",\n schemaType: [\"string\", \"array\"],\n compile(schema) {\n if (typeof schema == \"string\") {\n const C = getConstructor(schema);\n return (data) => data instanceof C;\n }\n if (Array.isArray(schema)) {\n const constructors = schema.map(getConstructor);\n return (data) => {\n for (const C of constructors) {\n if (data instanceof C)\n return true;\n }\n return false;\n };\n }\n /* istanbul ignore next */\n throw new Error(\"ajv implementation error\");\n },\n metaSchema: {\n anyOf: [{ type: \"string\" }, { type: \"array\", items: { type: \"string\" } }],\n },\n };\n}\nfunction getConstructor(c) {\n const C = CONSTRUCTORS[c];\n if (C)\n return C;\n throw new Error(`invalid \"instanceof\" keyword value ${c}`);\n}\nexports.default = getDef;\nmodule.exports = getDef;\n//# sourceMappingURL=instanceof.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst instanceof_1 = __importDefault(require(\"../definitions/instanceof\"));\nconst instanceofPlugin = (ajv) => ajv.addKeyword((0, instanceof_1.default)());\nexports.default = instanceofPlugin;\nmodule.exports = instanceofPlugin;\n//# sourceMappingURL=instanceof.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction getRangeDef(keyword) {\n return () => ({\n keyword,\n type: \"number\",\n schemaType: \"array\",\n macro: function ([min, max]) {\n validateRangeSchema(min, max);\n return keyword === \"range\"\n ? { minimum: min, maximum: max }\n : { exclusiveMinimum: min, exclusiveMaximum: max };\n },\n metaSchema: {\n type: \"array\",\n minItems: 2,\n maxItems: 2,\n items: { type: \"number\" },\n },\n });\n function validateRangeSchema(min, max) {\n if (min > max || (keyword === \"exclusiveRange\" && min === max)) {\n throw new Error(\"There are no numbers in range\");\n }\n }\n}\nexports.default = getRangeDef;\n//# sourceMappingURL=_range.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst _range_1 = __importDefault(require(\"./_range\"));\nconst getDef = (0, _range_1.default)(\"range\");\nexports.default = getDef;\nmodule.exports = getDef;\n//# sourceMappingURL=range.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst range_1 = __importDefault(require(\"../definitions/range\"));\nconst range = (ajv) => ajv.addKeyword((0, range_1.default)());\nexports.default = range;\nmodule.exports = range;\n//# sourceMappingURL=range.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst _range_1 = __importDefault(require(\"./_range\"));\nconst getDef = (0, _range_1.default)(\"exclusiveRange\");\nexports.default = getDef;\nmodule.exports = getDef;\n//# sourceMappingURL=exclusiveRange.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst exclusiveRange_1 = __importDefault(require(\"../definitions/exclusiveRange\"));\nconst exclusiveRange = (ajv) => ajv.addKeyword((0, exclusiveRange_1.default)());\nexports.default = exclusiveRange;\nmodule.exports = exclusiveRange;\n//# sourceMappingURL=exclusiveRange.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.usePattern = exports.metaSchemaRef = void 0;\nconst codegen_1 = require(\"ajv/dist/compile/codegen\");\nconst META_SCHEMA_ID = \"http://json-schema.org/schema\";\nfunction metaSchemaRef({ defaultMeta } = {}) {\n return defaultMeta === false ? {} : { $ref: defaultMeta || META_SCHEMA_ID };\n}\nexports.metaSchemaRef = metaSchemaRef;\nfunction usePattern({ gen, it: { opts } }, pattern, flags = opts.unicodeRegExp ? \"u\" : \"\") {\n const rx = new RegExp(pattern, flags);\n return gen.scopeValue(\"pattern\", {\n key: rx.toString(),\n ref: rx,\n code: (0, codegen_1._) `new RegExp(${pattern}, ${flags})`,\n });\n}\nexports.usePattern = usePattern;\n//# sourceMappingURL=_util.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"ajv/dist/compile/codegen\");\nconst _util_1 = require(\"./_util\");\nconst regexpMetaSchema = {\n type: \"object\",\n properties: {\n pattern: { type: \"string\" },\n flags: { type: \"string\", nullable: true },\n },\n required: [\"pattern\"],\n additionalProperties: false,\n};\nconst metaRegexp = /^\\/(.*)\\/([gimuy]*)$/;\nfunction getDef() {\n return {\n keyword: \"regexp\",\n type: \"string\",\n schemaType: [\"string\", \"object\"],\n code(cxt) {\n const { data, schema } = cxt;\n const regx = getRegExp(schema);\n cxt.pass((0, codegen_1._) `${regx}.test(${data})`);\n function getRegExp(sch) {\n if (typeof sch == \"object\")\n return (0, _util_1.usePattern)(cxt, sch.pattern, sch.flags);\n const rx = metaRegexp.exec(sch);\n if (rx)\n return (0, _util_1.usePattern)(cxt, rx[1], rx[2]);\n throw new Error(\"cannot parse string into RegExp\");\n }\n },\n metaSchema: {\n anyOf: [{ type: \"string\" }, regexpMetaSchema],\n },\n };\n}\nexports.default = getDef;\nmodule.exports = getDef;\n//# sourceMappingURL=regexp.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst regexp_1 = __importDefault(require(\"../definitions/regexp\"));\nconst regexp = (ajv) => ajv.addKeyword((0, regexp_1.default)());\nexports.default = regexp;\nmodule.exports = regexp;\n//# sourceMappingURL=regexp.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"ajv/dist/compile/codegen\");\nconst transform = {\n trimStart: (s) => s.trimStart(),\n trimEnd: (s) => s.trimEnd(),\n trimLeft: (s) => s.trimStart(),\n trimRight: (s) => s.trimEnd(),\n trim: (s) => s.trim(),\n toLowerCase: (s) => s.toLowerCase(),\n toUpperCase: (s) => s.toUpperCase(),\n toEnumCase: (s, cfg) => (cfg === null || cfg === void 0 ? void 0 : cfg.hash[configKey(s)]) || s,\n};\nconst getDef = Object.assign(_getDef, { transform });\nfunction _getDef() {\n return {\n keyword: \"transform\",\n schemaType: \"array\",\n before: \"enum\",\n code(cxt) {\n const { gen, data, schema, parentSchema, it } = cxt;\n const { parentData, parentDataProperty } = it;\n const tNames = schema;\n if (!tNames.length)\n return;\n let cfg;\n if (tNames.includes(\"toEnumCase\")) {\n const config = getEnumCaseCfg(parentSchema);\n cfg = gen.scopeValue(\"obj\", { ref: config, code: (0, codegen_1.stringify)(config) });\n }\n gen.if((0, codegen_1._) `typeof ${data} == \"string\" && ${parentData} !== undefined`, () => {\n gen.assign(data, transformExpr(tNames.slice()));\n gen.assign((0, codegen_1._) `${parentData}[${parentDataProperty}]`, data);\n });\n function transformExpr(ts) {\n if (!ts.length)\n return data;\n const t = ts.pop();\n if (!(t in transform))\n throw new Error(`transform: unknown transformation ${t}`);\n const func = gen.scopeValue(\"func\", {\n ref: transform[t],\n code: (0, codegen_1._) `require(\"ajv-keywords/dist/definitions/transform\").transform${(0, codegen_1.getProperty)(t)}`,\n });\n const arg = transformExpr(ts);\n return cfg && t === \"toEnumCase\" ? (0, codegen_1._) `${func}(${arg}, ${cfg})` : (0, codegen_1._) `${func}(${arg})`;\n }\n },\n metaSchema: {\n type: \"array\",\n items: { type: \"string\", enum: Object.keys(transform) },\n },\n };\n}\nfunction getEnumCaseCfg(parentSchema) {\n // build hash table to enum values\n const cfg = { hash: {} };\n // requires `enum` in the same schema as transform\n if (!parentSchema.enum)\n throw new Error('transform: \"toEnumCase\" requires \"enum\"');\n for (const v of parentSchema.enum) {\n if (typeof v !== \"string\")\n continue;\n const k = configKey(v);\n // requires all `enum` values have unique keys\n if (cfg.hash[k]) {\n throw new Error('transform: \"toEnumCase\" requires all lowercased \"enum\" values to be unique');\n }\n cfg.hash[k] = v;\n }\n return cfg;\n}\nfunction configKey(s) {\n return s.toLowerCase();\n}\nexports.default = getDef;\nmodule.exports = getDef;\n//# sourceMappingURL=transform.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst transform_1 = __importDefault(require(\"../definitions/transform\"));\nconst transform = (ajv) => ajv.addKeyword((0, transform_1.default)());\nexports.default = transform;\nmodule.exports = transform;\n//# sourceMappingURL=transform.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst equal = require(\"fast-deep-equal\");\nconst SCALAR_TYPES = [\"number\", \"integer\", \"string\", \"boolean\", \"null\"];\nfunction getDef() {\n return {\n keyword: \"uniqueItemProperties\",\n type: \"array\",\n schemaType: \"array\",\n compile(keys, parentSchema) {\n const scalar = getScalarKeys(keys, parentSchema);\n return (data) => {\n if (data.length <= 1)\n return true;\n for (let k = 0; k < keys.length; k++) {\n const key = keys[k];\n if (scalar[k]) {\n const hash = {};\n for (const x of data) {\n if (!x || typeof x != \"object\")\n continue;\n let p = x[key];\n if (p && typeof p == \"object\")\n continue;\n if (typeof p == \"string\")\n p = '\"' + p;\n if (hash[p])\n return false;\n hash[p] = true;\n }\n }\n else {\n for (let i = data.length; i--;) {\n const x = data[i];\n if (!x || typeof x != \"object\")\n continue;\n for (let j = i; j--;) {\n const y = data[j];\n if (y && typeof y == \"object\" && equal(x[key], y[key]))\n return false;\n }\n }\n }\n }\n return true;\n };\n },\n metaSchema: {\n type: \"array\",\n items: { type: \"string\" },\n },\n };\n}\nexports.default = getDef;\nfunction getScalarKeys(keys, schema) {\n return keys.map((key) => {\n var _a, _b, _c;\n const t = (_c = (_b = (_a = schema.items) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b[key]) === null || _c === void 0 ? void 0 : _c.type;\n return Array.isArray(t)\n ? !t.includes(\"object\") && !t.includes(\"array\")\n : SCALAR_TYPES.includes(t);\n });\n}\nmodule.exports = getDef;\n//# sourceMappingURL=uniqueItemProperties.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst uniqueItemProperties_1 = __importDefault(require(\"../definitions/uniqueItemProperties\"));\nconst uniqueItemProperties = (ajv) => ajv.addKeyword((0, uniqueItemProperties_1.default)());\nexports.default = uniqueItemProperties;\nmodule.exports = uniqueItemProperties;\n//# sourceMappingURL=uniqueItemProperties.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction getDef() {\n return {\n keyword: \"allRequired\",\n type: \"object\",\n schemaType: \"boolean\",\n macro(schema, parentSchema) {\n if (!schema)\n return true;\n const required = Object.keys(parentSchema.properties);\n if (required.length === 0)\n return true;\n return { required };\n },\n dependencies: [\"properties\"],\n };\n}\nexports.default = getDef;\nmodule.exports = getDef;\n//# sourceMappingURL=allRequired.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst allRequired_1 = __importDefault(require(\"../definitions/allRequired\"));\nconst allRequired = (ajv) => ajv.addKeyword((0, allRequired_1.default)());\nexports.default = allRequired;\nmodule.exports = allRequired;\n//# sourceMappingURL=allRequired.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction getRequiredDef(keyword) {\n return () => ({\n keyword,\n type: \"object\",\n schemaType: \"array\",\n macro(schema) {\n if (schema.length === 0)\n return true;\n if (schema.length === 1)\n return { required: schema };\n const comb = keyword === \"anyRequired\" ? \"anyOf\" : \"oneOf\";\n return { [comb]: schema.map((p) => ({ required: [p] })) };\n },\n metaSchema: {\n type: \"array\",\n items: { type: \"string\" },\n },\n });\n}\nexports.default = getRequiredDef;\n//# sourceMappingURL=_required.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst _required_1 = __importDefault(require(\"./_required\"));\nconst getDef = (0, _required_1.default)(\"anyRequired\");\nexports.default = getDef;\nmodule.exports = getDef;\n//# sourceMappingURL=anyRequired.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst anyRequired_1 = __importDefault(require(\"../definitions/anyRequired\"));\nconst anyRequired = (ajv) => ajv.addKeyword((0, anyRequired_1.default)());\nexports.default = anyRequired;\nmodule.exports = anyRequired;\n//# sourceMappingURL=anyRequired.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst _required_1 = __importDefault(require(\"./_required\"));\nconst getDef = (0, _required_1.default)(\"oneRequired\");\nexports.default = getDef;\nmodule.exports = getDef;\n//# sourceMappingURL=oneRequired.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst oneRequired_1 = __importDefault(require(\"../definitions/oneRequired\"));\nconst oneRequired = (ajv) => ajv.addKeyword((0, oneRequired_1.default)());\nexports.default = oneRequired;\nmodule.exports = oneRequired;\n//# sourceMappingURL=oneRequired.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"ajv/dist/compile/codegen\");\nconst _util_1 = require(\"./_util\");\nconst error = {\n message: ({ params: { missingPattern } }) => (0, codegen_1.str) `should have property matching pattern '${missingPattern}'`,\n params: ({ params: { missingPattern } }) => (0, codegen_1._) `{missingPattern: ${missingPattern}}`,\n};\nfunction getDef() {\n return {\n keyword: \"patternRequired\",\n type: \"object\",\n schemaType: \"array\",\n error,\n code(cxt) {\n const { gen, schema, data } = cxt;\n if (schema.length === 0)\n return;\n const valid = gen.let(\"valid\", true);\n for (const pat of schema)\n validateProperties(pat);\n function validateProperties(pattern) {\n const matched = gen.let(\"matched\", false);\n gen.forIn(\"key\", data, (key) => {\n gen.assign(matched, (0, codegen_1._) `${(0, _util_1.usePattern)(cxt, pattern)}.test(${key})`);\n gen.if(matched, () => gen.break());\n });\n cxt.setParams({ missingPattern: pattern });\n gen.assign(valid, (0, codegen_1.and)(valid, matched));\n cxt.pass(valid);\n }\n },\n metaSchema: {\n type: \"array\",\n items: { type: \"string\", format: \"regex\" },\n uniqueItems: true,\n },\n };\n}\nexports.default = getDef;\nmodule.exports = getDef;\n//# sourceMappingURL=patternRequired.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst patternRequired_1 = __importDefault(require(\"../definitions/patternRequired\"));\nconst patternRequired = (ajv) => ajv.addKeyword((0, patternRequired_1.default)());\nexports.default = patternRequired;\nmodule.exports = patternRequired;\n//# sourceMappingURL=patternRequired.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction getDef() {\n return {\n keyword: \"prohibited\",\n type: \"object\",\n schemaType: \"array\",\n macro: function (schema) {\n if (schema.length === 0)\n return true;\n if (schema.length === 1)\n return { not: { required: schema } };\n return { not: { anyOf: schema.map((p) => ({ required: [p] })) } };\n },\n metaSchema: {\n type: \"array\",\n items: { type: \"string\" },\n },\n };\n}\nexports.default = getDef;\nmodule.exports = getDef;\n//# sourceMappingURL=prohibited.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst prohibited_1 = __importDefault(require(\"../definitions/prohibited\"));\nconst prohibited = (ajv) => ajv.addKeyword((0, prohibited_1.default)());\nexports.default = prohibited;\nmodule.exports = prohibited;\n//# sourceMappingURL=prohibited.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst _util_1 = require(\"./_util\");\nfunction getDef(opts) {\n return {\n keyword: \"deepProperties\",\n type: \"object\",\n schemaType: \"object\",\n macro: function (schema) {\n const allOf = [];\n for (const pointer in schema)\n allOf.push(getSchema(pointer, schema[pointer]));\n return { allOf };\n },\n metaSchema: {\n type: \"object\",\n propertyNames: { type: \"string\", format: \"json-pointer\" },\n additionalProperties: (0, _util_1.metaSchemaRef)(opts),\n },\n };\n}\nexports.default = getDef;\nfunction getSchema(jsonPointer, schema) {\n const segments = jsonPointer.split(\"/\");\n const rootSchema = {};\n let pointerSchema = rootSchema;\n for (let i = 1; i < segments.length; i++) {\n let segment = segments[i];\n const isLast = i === segments.length - 1;\n segment = unescapeJsonPointer(segment);\n const properties = (pointerSchema.properties = {});\n let items;\n if (/[0-9]+/.test(segment)) {\n let count = +segment;\n items = pointerSchema.items = [];\n pointerSchema.type = [\"object\", \"array\"];\n while (count--)\n items.push({});\n }\n else {\n pointerSchema.type = \"object\";\n }\n pointerSchema = isLast ? schema : {};\n properties[segment] = pointerSchema;\n if (items)\n items.push(pointerSchema);\n }\n return rootSchema;\n}\nfunction unescapeJsonPointer(str) {\n return str.replace(/~1/g, \"/\").replace(/~0/g, \"~\");\n}\nmodule.exports = getDef;\n//# sourceMappingURL=deepProperties.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst deepProperties_1 = __importDefault(require(\"../definitions/deepProperties\"));\nconst deepProperties = (ajv, opts) => ajv.addKeyword((0, deepProperties_1.default)(opts));\nexports.default = deepProperties;\nmodule.exports = deepProperties;\n//# sourceMappingURL=deepProperties.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"ajv/dist/compile/codegen\");\nfunction getDef() {\n return {\n keyword: \"deepRequired\",\n type: \"object\",\n schemaType: \"array\",\n code(ctx) {\n const { schema, data } = ctx;\n const props = schema.map((jp) => (0, codegen_1._) `(${getData(jp)}) === undefined`);\n ctx.fail((0, codegen_1.or)(...props));\n function getData(jsonPointer) {\n if (jsonPointer === \"\")\n throw new Error(\"empty JSON pointer not allowed\");\n const segments = jsonPointer.split(\"/\");\n let x = data;\n const xs = segments.map((s, i) => i ? (x = (0, codegen_1._) `${x}${(0, codegen_1.getProperty)(unescapeJPSegment(s))}`) : x);\n return (0, codegen_1.and)(...xs);\n }\n },\n metaSchema: {\n type: \"array\",\n items: { type: \"string\", format: \"json-pointer\" },\n },\n };\n}\nexports.default = getDef;\nfunction unescapeJPSegment(s) {\n return s.replace(/~1/g, \"/\").replace(/~0/g, \"~\");\n}\nmodule.exports = getDef;\n//# sourceMappingURL=deepRequired.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst deepRequired_1 = __importDefault(require(\"../definitions/deepRequired\"));\nconst deepRequired = (ajv) => ajv.addKeyword((0, deepRequired_1.default)());\nexports.default = deepRequired;\nmodule.exports = deepRequired;\n//# sourceMappingURL=deepRequired.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst sequences = {};\nconst DEFAULTS = {\n timestamp: () => () => Date.now(),\n datetime: () => () => new Date().toISOString(),\n date: () => () => new Date().toISOString().slice(0, 10),\n time: () => () => new Date().toISOString().slice(11),\n random: () => () => Math.random(),\n randomint: (args) => {\n var _a;\n const max = (_a = args === null || args === void 0 ? void 0 : args.max) !== null && _a !== void 0 ? _a : 2;\n return () => Math.floor(Math.random() * max);\n },\n seq: (args) => {\n var _a;\n const name = (_a = args === null || args === void 0 ? void 0 : args.name) !== null && _a !== void 0 ? _a : \"\";\n sequences[name] || (sequences[name] = 0);\n return () => sequences[name]++;\n },\n};\nconst getDef = Object.assign(_getDef, { DEFAULTS });\nfunction _getDef() {\n return {\n keyword: \"dynamicDefaults\",\n type: \"object\",\n schemaType: [\"string\", \"object\"],\n modifying: true,\n valid: true,\n compile(schema, _parentSchema, it) {\n if (!it.opts.useDefaults || it.compositeRule)\n return () => true;\n const fs = {};\n for (const key in schema)\n fs[key] = getDefault(schema[key]);\n const empty = it.opts.useDefaults === \"empty\";\n return (data) => {\n for (const prop in schema) {\n if (data[prop] === undefined || (empty && (data[prop] === null || data[prop] === \"\"))) {\n data[prop] = fs[prop]();\n }\n }\n return true;\n };\n },\n metaSchema: {\n type: \"object\",\n additionalProperties: {\n anyOf: [\n { type: \"string\" },\n {\n type: \"object\",\n additionalProperties: false,\n required: [\"func\", \"args\"],\n properties: {\n func: { type: \"string\" },\n args: { type: \"object\" },\n },\n },\n ],\n },\n },\n };\n}\nfunction getDefault(d) {\n return typeof d == \"object\" ? getObjDefault(d) : getStrDefault(d);\n}\nfunction getObjDefault({ func, args }) {\n const def = DEFAULTS[func];\n assertDefined(func, def);\n return def(args);\n}\nfunction getStrDefault(d = \"\") {\n const def = DEFAULTS[d];\n assertDefined(d, def);\n return def();\n}\nfunction assertDefined(name, def) {\n if (!def)\n throw new Error(`invalid \"dynamicDefaults\" keyword property value: ${name}`);\n}\nexports.default = getDef;\nmodule.exports = getDef;\n//# sourceMappingURL=dynamicDefaults.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst dynamicDefaults_1 = __importDefault(require(\"../definitions/dynamicDefaults\"));\nconst dynamicDefaults = (ajv) => ajv.addKeyword((0, dynamicDefaults_1.default)());\nexports.default = dynamicDefaults;\nmodule.exports = dynamicDefaults;\n//# sourceMappingURL=dynamicDefaults.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"ajv/dist/compile/codegen\");\nconst _util_1 = require(\"./_util\");\nconst error = {\n message: ({ params: { schemaProp } }) => schemaProp\n ? (0, codegen_1.str) `should match case \"${schemaProp}\" schema`\n : (0, codegen_1.str) `should match default case schema`,\n params: ({ params: { schemaProp } }) => schemaProp ? (0, codegen_1._) `{failingCase: ${schemaProp}}` : (0, codegen_1._) `{failingDefault: true}`,\n};\nfunction getDef(opts) {\n const metaSchema = (0, _util_1.metaSchemaRef)(opts);\n return [\n {\n keyword: \"select\",\n schemaType: [\"string\", \"number\", \"boolean\", \"null\"],\n $data: true,\n error,\n dependencies: [\"selectCases\"],\n code(cxt) {\n const { gen, schemaCode, parentSchema } = cxt;\n cxt.block$data(codegen_1.nil, () => {\n const valid = gen.let(\"valid\", true);\n const schValid = gen.name(\"_valid\");\n const value = gen.const(\"value\", (0, codegen_1._) `${schemaCode} === null ? \"null\" : ${schemaCode}`);\n gen.if(false); // optimizer should remove it from generated code\n for (const schemaProp in parentSchema.selectCases) {\n cxt.setParams({ schemaProp });\n gen.elseIf((0, codegen_1._) `\"\" + ${value} == ${schemaProp}`); // intentional ==, to match numbers and booleans\n const schCxt = cxt.subschema({ keyword: \"selectCases\", schemaProp }, schValid);\n cxt.mergeEvaluated(schCxt, codegen_1.Name);\n gen.assign(valid, schValid);\n }\n gen.else();\n if (parentSchema.selectDefault !== undefined) {\n cxt.setParams({ schemaProp: undefined });\n const schCxt = cxt.subschema({ keyword: \"selectDefault\" }, schValid);\n cxt.mergeEvaluated(schCxt, codegen_1.Name);\n gen.assign(valid, schValid);\n }\n gen.endIf();\n cxt.pass(valid);\n });\n },\n },\n {\n keyword: \"selectCases\",\n dependencies: [\"select\"],\n metaSchema: {\n type: \"object\",\n additionalProperties: metaSchema,\n },\n },\n {\n keyword: \"selectDefault\",\n dependencies: [\"select\", \"selectCases\"],\n metaSchema,\n },\n ];\n}\nexports.default = getDef;\nmodule.exports = getDef;\n//# sourceMappingURL=select.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst select_1 = __importDefault(require(\"../definitions/select\"));\nconst select = (ajv, opts) => {\n (0, select_1.default)(opts).forEach((d) => ajv.addKeyword(d));\n return ajv;\n};\nexports.default = select;\nmodule.exports = select;\n//# sourceMappingURL=select.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst typeof_1 = __importDefault(require(\"./typeof\"));\nconst instanceof_1 = __importDefault(require(\"./instanceof\"));\nconst range_1 = __importDefault(require(\"./range\"));\nconst exclusiveRange_1 = __importDefault(require(\"./exclusiveRange\"));\nconst regexp_1 = __importDefault(require(\"./regexp\"));\nconst transform_1 = __importDefault(require(\"./transform\"));\nconst uniqueItemProperties_1 = __importDefault(require(\"./uniqueItemProperties\"));\nconst allRequired_1 = __importDefault(require(\"./allRequired\"));\nconst anyRequired_1 = __importDefault(require(\"./anyRequired\"));\nconst oneRequired_1 = __importDefault(require(\"./oneRequired\"));\nconst patternRequired_1 = __importDefault(require(\"./patternRequired\"));\nconst prohibited_1 = __importDefault(require(\"./prohibited\"));\nconst deepProperties_1 = __importDefault(require(\"./deepProperties\"));\nconst deepRequired_1 = __importDefault(require(\"./deepRequired\"));\nconst dynamicDefaults_1 = __importDefault(require(\"./dynamicDefaults\"));\nconst select_1 = __importDefault(require(\"./select\"));\n// TODO type\nconst ajvKeywords = {\n typeof: typeof_1.default,\n instanceof: instanceof_1.default,\n range: range_1.default,\n exclusiveRange: exclusiveRange_1.default,\n regexp: regexp_1.default,\n transform: transform_1.default,\n uniqueItemProperties: uniqueItemProperties_1.default,\n allRequired: allRequired_1.default,\n anyRequired: anyRequired_1.default,\n oneRequired: oneRequired_1.default,\n patternRequired: patternRequired_1.default,\n prohibited: prohibited_1.default,\n deepProperties: deepProperties_1.default,\n deepRequired: deepRequired_1.default,\n dynamicDefaults: dynamicDefaults_1.default,\n select: select_1.default,\n};\nexports.default = ajvKeywords;\nmodule.exports = ajvKeywords;\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst keywords_1 = __importDefault(require(\"./keywords\"));\nconst ajvKeywords = (ajv, keyword) => {\n if (Array.isArray(keyword)) {\n for (const k of keyword)\n get(k)(ajv);\n return ajv;\n }\n if (keyword) {\n get(keyword)(ajv);\n return ajv;\n }\n for (keyword in keywords_1.default)\n get(keyword)(ajv);\n return ajv;\n};\najvKeywords.get = get;\nfunction get(keyword) {\n const defFunc = keywords_1.default[keyword];\n if (!defFunc)\n throw new Error(\"Unknown keyword \" + keyword);\n return defFunc;\n}\nexports.default = ajvKeywords;\nmodule.exports = ajvKeywords;\n// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\nmodule.exports.default = ajvKeywords;\n//# sourceMappingURL=index.js.map","var toString = require('./toString'),\n upperFirst = require('./upperFirst');\n\n/**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\nfunction capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n}\n\nmodule.exports = capitalize;\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return b.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return b.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return b.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return b.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return b.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return b.s(e.$s,2,\"0\");case\"SSS\":return b.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_customParseFormat=t()}(this,(function(){\"use strict\";var e={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},t=/(\\[[^[]*\\])|([-_:/.,()\\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\\d/,r=/\\d\\d/,i=/\\d\\d?/,o=/\\d*[^-_:/,()\\s\\d]+/,s={},a=function(e){return(e=+e)+(e>68?1900:2e3)};var f=function(e){return function(t){this[e]=+t}},h=[/[+-]\\d\\d:?(\\d\\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if(\"Z\"===e)return 0;var t=e.match(/([+-]|\\d\\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:\"+\"===t[0]?-n:n}(e)}],u=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=s.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?\"pm\":\"PM\");return n},c={A:[o,function(e){this.afternoon=d(e,!1)}],a:[o,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\\d{3}/,function(e){this.milliseconds=+e}],s:[i,f(\"seconds\")],ss:[i,f(\"seconds\")],m:[i,f(\"minutes\")],mm:[i,f(\"minutes\")],H:[i,f(\"hours\")],h:[i,f(\"hours\")],HH:[i,f(\"hours\")],hh:[i,f(\"hours\")],D:[i,f(\"day\")],DD:[r,f(\"day\")],Do:[o,function(e){var t=s.ordinal,n=e.match(/\\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\\[|\\]/g,\"\")===e&&(this.day=r)}],w:[i,f(\"week\")],ww:[r,f(\"week\")],M:[i,f(\"month\")],MM:[r,f(\"month\")],MMM:[o,function(e){var t=u(\"months\"),n=(u(\"monthsShort\")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=u(\"months\").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\\d+/,f(\"year\")],YY:[r,function(e){this.year=a(e)}],YYYY:[/\\d{4}/,f(\"year\")],Z:h,ZZ:h};function l(n){var r,i;r=n,i=s&&s.formats;for(var o=(n=r.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=o.length,f=0;f<a;f+=1){var h=o[f],u=c[h],d=u&&u[0],l=u&&u[1];o[f]=l?{regex:d,parser:l}:h.replace(/^\\[|\\]$/g,\"\")}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=o[n];if(\"string\"==typeof i)r+=i.length;else{var s=i.regex,f=i.parser,h=e.slice(r),u=s.exec(h)[0];f.call(t,u),e=e.replace(u,\"\")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var a=o[1];if(\"string\"==typeof a){var f=!0===o[2],h=!0===o[3],u=f||h,d=o[2];h&&(d=o[2]),s=this.$locale(),!f&&d&&(s=n.Ls[d]),this.$d=function(e,t,n,r){try{if([\"x\",\"X\"].indexOf(t)>-1)return new Date((\"X\"===t?1e3:1)*e);var i=l(t)(e),o=i.year,s=i.month,a=i.day,f=i.hours,h=i.minutes,u=i.seconds,d=i.milliseconds,c=i.zone,m=i.week,M=new Date,Y=a||(o||s?1:M.getDate()),p=o||M.getFullYear(),v=0;o&&!s||(v=s>0?s-1:M.getMonth());var D,w=f||0,g=h||0,y=u||0,L=d||0;return c?new Date(Date.UTC(p,v,Y,w,g,y,L+60*c.offset*1e3)):n?new Date(Date.UTC(p,v,Y,w,g,y,L)):(D=new Date(p,v,Y,w,g,y,L),m&&(D=r(D).week(m).toDate()),D)}catch(e){return new Date(\"\")}}(t,a,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date(\"\")),s={}}else if(a instanceof Array)for(var c=a.length,m=1;m<=c;m+=1){o[1]=a[m-1];var M=n.apply(this,o);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===c&&(this.$d=new Date(\"\"))}else i.call(this,e)}}}));","!function(t,s){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=s():\"function\"==typeof define&&define.amd?define(s):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs_plugin_duration=s()}(this,(function(){\"use strict\";var t,s,n=1e3,i=6e4,e=36e5,r=864e5,o=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,d=2628e6,a=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,h={years:u,months:d,days:r,hours:e,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},c=function(t){return t instanceof g},f=function(t,s,n){return new g(t,n,s.$l)},m=function(t){return s.p(t)+\"s\"},l=function(t){return t<0},$=function(t){return l(t)?Math.ceil(t):Math.floor(t)},y=function(t){return Math.abs(t)},v=function(t,s){return t?l(t)?{negative:!0,format:\"\"+y(t)+s}:{negative:!1,format:\"\"+t+s}:{negative:!1,format:\"\"}},g=function(){function l(t,s,n){var i=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),s)return f(t*h[m(s)],this);if(\"number\"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if(\"object\"==typeof t)return Object.keys(t).forEach((function(s){i.$d[m(s)]=t[s]})),this.calMilliseconds(),this;if(\"string\"==typeof t){var e=t.match(a);if(e){var r=e.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=r[0],this.$d.months=r[1],this.$d.weeks=r[2],this.$d.days=r[3],this.$d.hours=r[4],this.$d.minutes=r[5],this.$d.seconds=r[6],this.calMilliseconds(),this}}return this}var y=l.prototype;return y.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(s,n){return s+(t.$d[n]||0)*h[n]}),0)},y.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=$(t/u),t%=u,this.$d.months=$(t/d),t%=d,this.$d.days=$(t/r),t%=r,this.$d.hours=$(t/e),t%=e,this.$d.minutes=$(t/i),t%=i,this.$d.seconds=$(t/n),t%=n,this.$d.milliseconds=t},y.toISOString=function(){var t=v(this.$d.years,\"Y\"),s=v(this.$d.months,\"M\"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var i=v(n,\"D\"),e=v(this.$d.hours,\"H\"),r=v(this.$d.minutes,\"M\"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var u=v(o,\"S\"),d=t.negative||s.negative||i.negative||e.negative||r.negative||u.negative,a=e.format||r.format||u.format?\"T\":\"\",h=(d?\"-\":\"\")+\"P\"+t.format+s.format+i.format+a+e.format+r.format+u.format;return\"P\"===h||\"-P\"===h?\"P0D\":h},y.toJSON=function(){return this.toISOString()},y.format=function(t){var n=t||\"YYYY-MM-DDTHH:mm:ss\",i={Y:this.$d.years,YY:s.s(this.$d.years,2,\"0\"),YYYY:s.s(this.$d.years,4,\"0\"),M:this.$d.months,MM:s.s(this.$d.months,2,\"0\"),D:this.$d.days,DD:s.s(this.$d.days,2,\"0\"),H:this.$d.hours,HH:s.s(this.$d.hours,2,\"0\"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,\"0\"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,\"0\"),SSS:s.s(this.$d.milliseconds,3,\"0\")};return n.replace(o,(function(t,s){return s||String(i[t])}))},y.as=function(t){return this.$ms/h[m(t)]},y.get=function(t){var s=this.$ms,n=m(t);return\"milliseconds\"===n?s%=1e3:s=\"weeks\"===n?$(s/h[n]):this.$d[n],s||0},y.add=function(t,s,n){var i;return i=s?t*h[m(s)]:c(t)?t.$ms:f(t,this).$ms,f(this.$ms+i*(n?-1:1),this)},y.subtract=function(t,s){return this.add(t,s,!0)},y.locale=function(t){var s=this.clone();return s.$l=t,s},y.clone=function(){return f(this.$ms,this)},y.humanize=function(s){return t().add(this.$ms,\"ms\").locale(this.$l).fromNow(!s)},y.valueOf=function(){return this.asMilliseconds()},y.milliseconds=function(){return this.get(\"milliseconds\")},y.asMilliseconds=function(){return this.as(\"milliseconds\")},y.seconds=function(){return this.get(\"seconds\")},y.asSeconds=function(){return this.as(\"seconds\")},y.minutes=function(){return this.get(\"minutes\")},y.asMinutes=function(){return this.as(\"minutes\")},y.hours=function(){return this.get(\"hours\")},y.asHours=function(){return this.as(\"hours\")},y.days=function(){return this.get(\"days\")},y.asDays=function(){return this.as(\"days\")},y.weeks=function(){return this.get(\"weeks\")},y.asWeeks=function(){return this.as(\"weeks\")},y.months=function(){return this.get(\"months\")},y.asMonths=function(){return this.as(\"months\")},y.years=function(){return this.get(\"years\")},y.asYears=function(){return this.as(\"years\")},l}(),p=function(t,s,n){return t.add(s.years()*n,\"y\").add(s.months()*n,\"M\").add(s.days()*n,\"d\").add(s.hours()*n,\"h\").add(s.minutes()*n,\"m\").add(s.seconds()*n,\"s\").add(s.milliseconds()*n,\"ms\")};return function(n,i,e){t=e,s=e().$utils(),e.duration=function(t,s){var n=e.locale();return f(t,{$l:n},s)},e.isDuration=c;var r=i.prototype.add,o=i.prototype.subtract;i.prototype.add=function(t,s){return c(t)?p(this,t,1):r.bind(this)(t,s)},i.prototype.subtract=function(t,s){return c(t)?p(this,t,-1):o.bind(this)(t,s)}}}));","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs_plugin_timezone=e()}(this,(function(){\"use strict\";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,i,o){var r,a=function(t,n,i){void 0===i&&(i={});var o=new Date(t),r=function(t,n){void 0===n&&(n={});var i=n.timeZoneName||\"short\",o=t+\"|\"+i,r=e[o];return r||(r=new Intl.DateTimeFormat(\"en-US\",{hour12:!1,timeZone:t,year:\"numeric\",month:\"2-digit\",day:\"2-digit\",hour:\"2-digit\",minute:\"2-digit\",second:\"2-digit\",timeZoneName:i}),e[o]=r),r}(n,i);return r.formatToParts(o)},u=function(e,n){for(var i=a(e,n),r=[],u=0;u<i.length;u+=1){var f=i[u],s=f.type,m=f.value,c=t[s];c>=0&&(r[c]=parseInt(m,10))}var d=r[3],l=24===d?0:d,h=r[0]+\"-\"+r[1]+\"-\"+r[2]+\" \"+l+\":\"+r[4]+\":\"+r[5]+\":000\",v=+e;return(o.utc(h).valueOf()-(v-=v%1e3))/6e4},f=i.prototype;f.tz=function(t,e){void 0===t&&(t=r);var n,i=this.utcOffset(),a=this.toDate(),u=a.toLocaleString(\"en-US\",{timeZone:t}),f=Math.round((a-new Date(u))/1e3/60),s=15*-Math.round(a.getTimezoneOffset()/15)-f;if(!Number(s))n=this.utcOffset(0,e);else if(n=o(u,{locale:this.$L}).$set(\"millisecond\",this.$ms).utcOffset(s,!0),e){var m=n.utcOffset();n=n.add(i-m,\"minute\")}return n.$x.$timezone=t,n},f.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return\"timezonename\"===t.type.toLowerCase()}));return n&&n.value};var s=f.startOf;f.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return s.call(this,t,e);var n=o(this.format(\"YYYY-MM-DD HH:mm:ss:SSS\"),{locale:this.$L});return s.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,a=n||e||r,f=u(+o(),a);if(\"string\"!=typeof t)return o(t).tz(a);var s=function(t,e,n){var i=t-60*e*1e3,o=u(i,n);if(e===o)return[i,e];var r=u(i-=60*(o-e)*1e3,n);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}(o.utc(t,i).valueOf(),f,a),m=s[0],c=s[1],d=o(m).utcOffset(c);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){r=t}}}));","!function(t,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=i():\"function\"==typeof define&&define.amd?define(i):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs_plugin_utc=i()}(this,(function(){\"use strict\";var t=\"minute\",i=/[+-]\\d\\d(?::?\\d\\d)?/g,e=/([+-]|\\d\\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:!0,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:!0});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t)};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else r.call(this)};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if(\"string\"==typeof s&&(s=function(t){void 0===t&&(t=\"\");var s=t.match(i);if(!s)return null;var f=(\"\"+s[0]).match(e)||[\"-\",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:\"+\"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?\"YYYY-MM-DDTHH:mm:ss[Z]\":\"\");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return\"s\"===t&&this.$offset?n(this.format(\"YYYY-MM-DD HH:mm:ss:SSS\")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)}}}));","import { and as e, formatIs as t, isStringControl as n, not as r, optionIs as i, or as a, rankWith as o } from \"@jsonforms/core\";\n// src/formats/maskControls.ts\nvar s = (e) => typeof e == \"string\" ? e.length > 0 : Array.isArray(e) && e.length > 0 && e.every((e) => typeof e == \"string\" && e.length > 0), c = (e) => {\n\tvar t;\n\treturn s((t = e.options) == null ? void 0 : t.mask);\n}, l = a(...[\n\t\"color\",\n\t\"date\",\n\t\"date-time\",\n\t\"duration\",\n\t\"password\",\n\t\"time\"\n].flatMap((e) => [t(e), i(\"format\", e)])), u = o(4, e(n, c, r(l)));\nexport { u as extendedMaskTester, c as hasMaskPattern, s as isMaskPattern };\n\n//# sourceMappingURL=maskControls.esm.js.map","// src/formats/duration.ts\nvar e = {\n\tyears: 0,\n\tmonths: 0,\n\tdays: 0,\n\thours: 0,\n\tminutes: 0,\n\tseconds: 0\n}, t = /^P(?:(?<years>\\d+)Y)?(?:(?<months>\\d+)M)?(?:(?<days>\\d+)D)?(?:T(?:(?<hours>\\d+)H)?(?:(?<minutes>\\d+)M)?(?:(?<seconds>\\d+)S)?)?$/i, n = (e) => {\n\tif (typeof e != \"string\" || !e.trim()) return null;\n\tlet n = e.trim().match(t);\n\tif (!(n != null && n.groups) || !Object.values(n.groups).some(Boolean)) return null;\n\tlet r = (e) => e ? Number.parseInt(e, 10) : 0;\n\treturn {\n\t\tyears: r(n.groups.years),\n\t\tmonths: r(n.groups.months),\n\t\tdays: r(n.groups.days),\n\t\thours: r(n.groups.hours),\n\t\tminutes: r(n.groups.minutes),\n\t\tseconds: r(n.groups.seconds)\n\t};\n}, r = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, Math.max(0, Math.floor(t || 0))])), i = (e) => a(r(e)), a = (e) => {\n\tlet t = (e, t) => e ? `${e}${t}` : \"\", n = t(e.years, \"Y\") + t(e.months, \"M\") + t(e.days, \"D\"), r = t(e.hours, \"H\") + t(e.minutes, \"M\") + t(e.seconds, \"S\");\n\treturn n || r ? `P${n}${r ? `T${r}` : \"\"}` : \"P0D\";\n};\nexport { e as EMPTY_DURATION, i as formatDuration, a as formatDurationComponents, n as parseDuration, r as sanitizeComponents };\n\n//# sourceMappingURL=duration.esm.js.map","import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from \"./ajvI18n-DO8FFvx1.mjs\";\nimport { i as c, n as l, r as u, t as d } from \"./configNamespaces-BFclHtB8.mjs\";\nimport { t as f } from \"./elementRender-y8MK9CCE.mjs\";\nimport { a as p, i as m, n as h, o as g, r as _, s as v, t as y } from \"./objectWithoutProperties-yjQMyZ0y.mjs\";\nimport { useI18n as b, useTranslator as x } from \"@chobantonov/jsonforms-react-renderer-common/locale/translate\";\nimport { useEffectiveElements as S } from \"@chobantonov/jsonforms-react-renderer-common/layout/layoutContext\";\nimport { Actions as C, Generate as w, Resolve as T, and as E, composePaths as D, createAjv as O, createDefaultValue as k, deriveLabelForUISchemaElement as A, findUISchema as ee, formatIs as te, getAjv as ne, getConfig as re, isControl as ie, isStringControl as ae, isVisible as oe, optionIs as j, or as se, rankWith as M, resolveSchema as ce, schemaTypeIs as le, toDataPath as ue, uiTypeIs as N } from \"@jsonforms/core\";\nimport { JsonFormsDispatch as P, JsonFormsStateProvider as de, useJsonForms as F, withJsonFormsControlProps as fe, withJsonFormsLabelProps as pe, withJsonFormsLayoutProps as I, withTranslateProps as me } from \"@jsonforms/react\";\nimport L, { Suspense as he, createContext as ge, lazy as _e, useCallback as ve, useContext as ye, useEffect as R, useLayoutEffect as be, useMemo as z, useRef as xe, useState as B } from \"react\";\nimport { Fragment as V, jsx as H, jsxs as U } from \"react/jsx-runtime\";\nimport { DynamicUiProvider as Se, dynamicAuthoredElement as Ce, useDynamicElements as we, useDynamicExternal as Te, withDynamicCells as Ee, withDynamicRenderers as De } from \"@chobantonov/jsonforms-react-renderer-common/dynamic/DynamicUiProvider\";\nimport { proxy as Oe } from \"valtio\";\nimport { findMixedDetailUiSchema as ke } from \"@chobantonov/jsonforms-react-renderer-common/core/detailUiSchema\";\nimport { ANY_TYPES as Ae, getJsonDataType as je, getSchemaTypes as Me, mixedControlFor as Ne, removeInapplicableKeywords as Pe, resolveMixedArrayItems as Fe } from \"@chobantonov/jsonforms-react-renderer-common/mixed/mixedSchema\";\nimport { useAdditionalPropertyItems as Ie } from \"@chobantonov/jsonforms-react-renderer-common/objects/useAdditionalPropertyEntries\";\nimport { renamePropertyKey as Le, toAdditionalPropertyItem as Re, toObjectSchema as ze } from \"@chobantonov/jsonforms-react-renderer-common/objects/additionalProperties\";\nimport Be from \"ajv-errors\";\nimport Ve from \"ajv-keywords\";\nimport He from \"ajv-keywords/dist/definitions/dynamicDefaults\";\nimport { _ as Ue, getProperty as We, stringify as Ge } from \"ajv/dist/compile/codegen\";\nimport Ke from \"lodash/capitalize\";\nimport qe from \"lodash/startCase\";\nimport W from \"dayjs\";\nimport Je from \"dayjs/plugin/customParseFormat\";\nimport Ye from \"dayjs/plugin/duration\";\nimport Xe from \"dayjs/plugin/timezone\";\nimport Ze from \"dayjs/plugin/utc\";\nimport Qe from \"lodash/get\";\nimport $e from \"lodash/isEqual\";\nimport { extendedMaskTester as et, hasMaskPattern as tt, isMaskPattern as nt } from \"@chobantonov/jsonforms-react-renderer-common/formats/maskControls\";\nimport { formatDurationComponents as rt } from \"@chobantonov/jsonforms-react-renderer-common/formats/duration\";\nimport { TRUST_DYNAMIC_FUNCTIONS as it } from \"@chobantonov/jsonforms-react-renderer-common/dynamic/dynamicConfig\";\n// src/renderers/SplitLayoutRenderer.tsx\nvar at = M(4, E(se(N(\"HorizontalLayout\"), N(\"VerticalLayout\")), (e) => {\n\tvar t, n;\n\treturn String((t = (n = e.options) == null ? void 0 : n.variant) == null ? \"\" : t).toLowerCase() === \"splitter\";\n})), ot = (e) => typeof e == \"number\" && Number.isFinite(e) && e > 0 ? `${e}px` : typeof e == \"string\" && e.trim() ? e.trim() : void 0, st = (e) => {\n\tlet t = e.map((e) => {\n\t\tvar t;\n\t\tlet n = e == null || (t = e.options) == null || (t = t.layout) == null ? void 0 : t.weight;\n\t\treturn typeof n == \"number\" && Number.isFinite(n) && n > 0 ? n : 1;\n\t}), n = t.reduce((e, t) => e + t, 0);\n\treturn t.map((e) => e / n * 100);\n}, ct = (e) => {\n\tvar t, n;\n\tlet r = b(), i = e.uischema, a = i.type === \"HorizontalLayout\", s = S(i.elements, e.path, e.config), c = s.length, [l, u] = L.useState([]), d = l.length === c ? l : st(s), f = o(o({}, e.config), i.options).resizable !== !1, p = ((t = i.options) == null ? void 0 : t.wrap) === !0, m = L.useRef(), h = o(o({}, e.config), i.options), g = (e, t, n = d) => {\n\t\tlet r = Math.max(1 - n[e], Math.min(n[e + 1] - 1, t));\n\t\tu(n.map((t, n) => n === e ? t + r : n === e + 1 ? t - r : t));\n\t};\n\treturn e.visible ? /* @__PURE__ */ H(\"div\", o(o({}, p ? { \"data-layout-diagnostic\": \"`wrap` is not supported together with the splitter variant; ignored.\" } : {}), {}, {\n\t\tstyle: {\n\t\t\tdisplay: \"flex\",\n\t\t\tflexDirection: a ? \"row\" : \"column\",\n\t\t\twidth: \"100%\",\n\t\t\tminWidth: 0,\n\t\t\theight: a ? void 0 : (n = ot(h.height)) == null ? \"20rem\" : n,\n\t\t\tminHeight: a ? void 0 : ot(h.minHeight)\n\t\t},\n\t\tchildren: s.map((t, n) => /* @__PURE__ */ U(L.Fragment, { children: [/* @__PURE__ */ H(\"div\", {\n\t\t\tstyle: {\n\t\t\t\tboxSizing: \"border-box\",\n\t\t\t\tflex: `${d[n]} 1 0`,\n\t\t\t\tminWidth: 0,\n\t\t\t\tminHeight: 0,\n\t\t\t\toverflow: \"auto\",\n\t\t\t\tpadding: 8\n\t\t\t},\n\t\t\tchildren: /* @__PURE__ */ H(P, {\n\t\t\t\tschema: e.schema,\n\t\t\t\tuischema: t,\n\t\t\t\tpath: e.path,\n\t\t\t\tenabled: e.enabled,\n\t\t\t\trenderers: e.renderers,\n\t\t\t\tcells: e.cells\n\t\t\t})\n\t\t}), n < c - 1 && /* @__PURE__ */ H(\"div\", o(o({ role: \"separator\" }, f ? { tabIndex: 0 } : { \"aria-disabled\": !0 }), {}, {\n\t\t\t\"aria-label\": r(\"layout.resizePane\", { index: n + 1 }),\n\t\t\t\"aria-orientation\": a ? \"vertical\" : \"horizontal\",\n\t\t\t\"aria-valuemin\": 1,\n\t\t\t\"aria-valuemax\": d[n] + d[n + 1] - 1,\n\t\t\t\"aria-valuenow\": Math.round(d[n]),\n\t\t\tstyle: {\n\t\t\t\tflex: \"0 0 6px\",\n\t\t\t\tbackground: \"rgba(128,128,128,0.3)\",\n\t\t\t\tcursor: f ? a ? \"col-resize\" : \"row-resize\" : \"default\",\n\t\t\t\ttouchAction: \"none\"\n\t\t\t},\n\t\t\tonKeyDown: (e) => {\n\t\t\t\tif (!f) return;\n\t\t\t\tlet t = e.key === (a ? \"ArrowRight\" : \"ArrowDown\") ? 2 : e.key === (a ? \"ArrowLeft\" : \"ArrowUp\") ? -2 : 0;\n\t\t\t\tt && (e.preventDefault(), g(n, t));\n\t\t\t},\n\t\t\tonPointerDown: (e) => {\n\t\t\t\tif (!f) return;\n\t\t\t\tlet t = e.currentTarget.parentElement.getBoundingClientRect(), r = a ? t.width : t.height;\n\t\t\t\tr && (e.preventDefault(), m.current = {\n\t\t\t\t\tindex: n,\n\t\t\t\t\tstart: a ? e.clientX : e.clientY,\n\t\t\t\t\ttotal: r,\n\t\t\t\t\tsizes: d\n\t\t\t\t}, e.currentTarget.setPointerCapture(e.pointerId));\n\t\t\t},\n\t\t\tonPointerMove: (e) => {\n\t\t\t\tlet t = m.current;\n\t\t\t\tt && g(t.index, ((a ? e.clientX : e.clientY) - t.start) / t.total * 100, t.sizes);\n\t\t\t},\n\t\t\tonPointerUp: () => {\n\t\t\t\tm.current = void 0;\n\t\t\t},\n\t\t\tonPointerCancel: () => {\n\t\t\t\tm.current = void 0;\n\t\t\t},\n\t\t\tonLostPointerCapture: () => {\n\t\t\t\tm.current = void 0;\n\t\t\t}\n\t\t}))] }, n))\n\t})) : null;\n}, lt = I(ct), ut = (e) => {\n\tlet t = e == null ? [] : e, n = Array.from({ length: t.length }, () => void 0), r = {}, i = [];\n\treturn t.forEach((e, t) => {\n\t\tlet a = e ? Ce(e).name : void 0;\n\t\ttypeof a == \"string\" && a !== \"\" && (r[a] === void 0 ? (r[a] = t, n[t] = a) : i.push(`template.duplicateChildName: children ${r[a]} and ${t} are both named ${JSON.stringify(a)}; the first one keeps the name.`));\n\t}), t.forEach((e, t) => {\n\t\tif (n[t] !== void 0) return;\n\t\tlet a = String(t);\n\t\tr[a] === void 0 ? (r[a] = t, n[t] = a) : i.push(`template.childNameCollision: child ${t} has no name and its index ${JSON.stringify(a)} is already the name of child ${r[a]}, so it cannot be placed. Give it a name.`);\n\t}), {\n\t\tnames: n,\n\t\tbyName: r,\n\t\tdiagnostics: i\n\t};\n}, dt = /\\s([a-zA-Z](?:(?!-in-out)[-a-zA-Z_0-9])*-(?:in|out|in-out))(?=[\\s/>=])/g, ft = (e) => {\n\tlet t = /* @__PURE__ */ new Set(), n;\n\tfor (dt.lastIndex = 0; (n = dt.exec(e)) !== null;) t.add(n[1]);\n\treturn [...t];\n};\nfunction pt(e) {\n\tlet t = z(() => e == null ? [] : e, [e]), n = z(() => ut(t), [t]);\n\treturn o({ children: t }, n);\n}\n// src/util/formContext.ts\nvar mt = ({ ctx: e, schema: t, uischema: n, fireActionEvent: r, external: i }) => {\n\tvar a, o, s, c, l, u, d, f;\n\treturn {\n\t\texternal: i,\n\t\tconfig: e.config,\n\t\treadonly: e.readonly === !0,\n\t\tlocale: (a = e.i18n) == null ? void 0 : a.locale,\n\t\ttranslate: (o = e.i18n) == null ? void 0 : o.translate,\n\t\tdata: (s = e.core) == null ? void 0 : s.data,\n\t\tschema: t == null ? (c = e.core) == null ? void 0 : c.schema : t,\n\t\tuischema: n,\n\t\terrors: (l = (u = e.core) == null ? void 0 : u.errors) == null ? [] : l,\n\t\tadditionalErrors: (d = (f = e.core) == null ? void 0 : f.additionalErrors) == null ? [] : d,\n\t\tfireActionEvent: r\n\t};\n}, ht = [\"ractive\", \"jsx\"], gt = \"ractive\", _t = (e) => typeof e == \"string\" && ht.includes(e.toLowerCase()) ? e.toLowerCase() : void 0, vt = (e) => {\n\tvar t;\n\tlet n = (t = u(e)) == null ? void 0 : t.security;\n\treturn !!n && typeof n == \"object\" && n.allowScriptEvaluation === !0;\n}, yt = (e, t) => {\n\tlet n = e == null ? void 0 : e.lang;\n\tif (n !== void 0) {\n\t\tlet e = _t(n);\n\t\treturn e ? { lang: e } : {\n\t\t\trequested: String(n),\n\t\t\tdiagnostic: \"unsupported\"\n\t\t};\n\t}\n\tlet r = u(t), i = r == null ? void 0 : r.defaultTemplateLang;\n\tif (i !== void 0) {\n\t\tlet e = _t(i);\n\t\treturn e ? { lang: e } : {\n\t\t\trequested: String(i),\n\t\t\tdiagnostic: \"unsupported\"\n\t\t};\n\t}\n\treturn { lang: gt };\n}, bt = (e, t) => {\n\tlet n = yt(e, t);\n\treturn n.lang && !vt(t) ? o(o({}, n), {}, { diagnostic: \"evaluation-disabled\" }) : n;\n}, xt = (e) => M(2, (t, n, r) => N(\"TemplateLayout\")(t, n, r) ? yt(t, r == null ? void 0 : r.config).lang === e : !1), St = M(1, N(\"TemplateLayout\")), Ct = {\n\tborder: \"1px solid currentColor\",\n\tborderRadius: 4,\n\tpadding: \"0.75rem 1rem\",\n\topacity: .85,\n\tfontSize: \"0.9rem\"\n}, wt = ({ uischema: e, config: t, visible: n }) => {\n\tlet r = b(), i = bt(e, t);\n\tif (n === !1 || !i.diagnostic) return null;\n\tlet a = i.diagnostic === \"unsupported\" ? r(\"template.unsupported\", { language: JSON.stringify(i.requested) }) : r(\"template.disabled\");\n\treturn /* @__PURE__ */ H(\"div\", {\n\t\trole: \"alert\",\n\t\t\"data-template-diagnostic\": i.diagnostic,\n\t\tstyle: Ct,\n\t\tchildren: a\n\t});\n}, Tt = {\n\t\"array.addRow\": \"Add row\",\n\t\"array.removeSelected\": \"Remove selected\",\n\t\"grid.loading\": \"Loading data grid...\",\n\t\"grid.loadError\": \"Unable to load the data grid.\",\n\t\"editor.loading\": \"Loading editor...\",\n\t\"editor.loadError\": \"Unable to load the editor.\",\n\t\"editor.maximize\": \"Maximize editor\",\n\t\"editor.restore\": \"Restore editor\",\n\t\"editor.invalidJson\": \"Enter valid JSON.\",\n\t\"editor.languageErrors\": \"Code contains {count} errors. Review the marked locations in the editor.\",\n\t\"editor.languageError\": \"Code contains 1 error. Review the marked location in the editor.\",\n\t\"editor.chooseColor\": \"Choose a color\",\n\t\"editor.chooseDuration\": \"Choose a duration\",\n\t\"color.placeholder.hex\": \"#RRGGBB\",\n\t\"color.placeholder.hex3\": \"#RGB\",\n\t\"color.placeholder.rgb\": \"rgb(r, g, b)\",\n\t\"color.placeholder.hsb\": \"hsb(h, s%, b%)\",\n\t\"color.hex3Transparency\": \"Three-digit hex cannot store transparency. Enter an opaque color, or clear the value.\",\n\t\"additionalProperties.add\": \"Add\",\n\t\"additionalProperties.addLabel\": \"Add property\",\n\t\"additionalProperties.addTo\": \"Add property to {label}\",\n\t\"additionalProperties.namePlaceholder\": \"Property name\",\n\t\"additionalProperties.rename\": \"Rename\",\n\t\"additionalProperties.renameNamed\": \"Rename {name}\",\n\t\"additionalProperties.save\": \"Save\",\n\t\"additionalProperties.cancel\": \"Cancel\",\n\t\"additionalProperties.delete\": \"Delete\",\n\t\"additionalProperties.nameTaken\": \"Property '{name}' already defined\",\n\t\"additionalProperties.nameInvalid\": \"Property name '{name}' is invalid\",\n\t\"additionalProperties.namePattern\": \"Property name must match pattern: {pattern}\",\n\t\"template.loading\": \"Loading template engine…\",\n\t\"template.loadError\": \"The template engine could not be loaded.\",\n\t\"template.renderError\": \"The template could not be rendered.\",\n\t\"editor.ariaLabel\": \"Code editor\",\n\t\"duration.invalid\": \"Enter an ISO 8601 duration, for example P2DT3H or P2W.\",\n\t\"markup.markdownDisabled\": \"Markdown is turned off for this form, so this text is shown as written.\",\n\t\"markup.unsupported\": \"Unsupported markup {markup}. This renderer set implements \\\"plain\\\" and \\\"markdown\\\".\",\n\t\"markup.interpolationFailed\": \"Could not resolve: {detail}\"\n}, Et = {\n\t\"array.addRow\": \"Добавяне на ред\",\n\t\"array.removeSelected\": \"Премахване на избраните\",\n\t\"grid.loading\": \"Таблицата се зарежда...\",\n\t\"grid.loadError\": \"Таблицата не може да бъде заредена.\",\n\t\"editor.loading\": \"Редакторът се зарежда...\",\n\t\"editor.loadError\": \"Редакторът не може да бъде зареден.\",\n\t\"editor.maximize\": \"Максимизиране на редактора\",\n\t\"editor.restore\": \"Възстановяване на редактора\",\n\t\"editor.invalidJson\": \"Въведете валиден JSON.\",\n\t\"editor.chooseColor\": \"Изберете цвят\",\n\t\"editor.chooseDuration\": \"Изберете продължителност\",\n\t\"template.loading\": \"Шаблонният механизъм се зарежда…\",\n\t\"template.loadError\": \"Шаблонният механизъм не може да бъде зареден.\",\n\t\"template.renderError\": \"Шаблонът не може да бъде изобразен.\",\n\t\"editor.ariaLabel\": \"Редактор на код\",\n\t\"duration.invalid\": \"Въведете продължителност по ISO 8601, например P2DT3H или P2W.\",\n\t\"additionalProperties.add\": \"Добавяне\",\n\t\"additionalProperties.addLabel\": \"Добавяне на свойство\",\n\t\"additionalProperties.addTo\": \"Добавяне на свойство към {label}\",\n\t\"additionalProperties.namePlaceholder\": \"Име на свойството\",\n\t\"additionalProperties.rename\": \"Преименуване\",\n\t\"additionalProperties.renameNamed\": \"Преименуване на {name}\",\n\t\"additionalProperties.save\": \"Запазване\",\n\t\"additionalProperties.cancel\": \"Отказ\",\n\t\"additionalProperties.delete\": \"Изтриване\",\n\t\"additionalProperties.nameTaken\": \"Свойството „{name}“ вече е дефинирано\",\n\t\"additionalProperties.nameInvalid\": \"Името „{name}“ не е допустимо\",\n\t\"additionalProperties.namePattern\": \"Името на свойството трябва да съответства на шаблона: {pattern}\",\n\t\"markup.markdownDisabled\": \"Markdown е изключен за тази форма, затова текстът се показва както е написан.\",\n\t\"markup.unsupported\": \"Неподдържано маркиране {markup}. Този набор от рендери поддържа „plain“ и „markdown“.\",\n\t\"markup.interpolationFailed\": \"Неуспешно изчисляване: {detail}\"\n}, Dt = {\n\ten: {},\n\tbg: Et\n}, G = Dt, Ot = (e) => {\n\tG = e;\n}, kt = () => G, At = (e) => e.toLowerCase().replace(/_/g, \"-\"), jt = (e, t) => {\n\tG = o(o({}, G), {}, { [At(e)]: t });\n}, Mt = (e) => {\n\tvar t;\n\tif (!e) return;\n\tlet n = At(e);\n\treturn (t = G[n]) == null ? G[n.split(\"-\")[0]] : t;\n}, Nt = (e, t) => {\n\tvar n, r;\n\treturn (n = (r = Mt(e)) == null ? void 0 : r[t]) == null ? Tt[t] : n;\n}, K = () => {\n\tvar e, t;\n\tlet n = F(), r = (e = n.i18n) == null ? void 0 : e.translate, i = (t = n.i18n) == null ? void 0 : t.locale;\n\treturn (e, t) => {\n\t\tlet n = Nt(i, e), a = r ? r(e, n, t) : n;\n\t\treturn Object.entries(t == null ? {} : t).reduce((e, [t, n]) => e.replace(`{${t}}`, String(n)), a == null ? n : a);\n\t};\n};\n// \\0@oxc-project+runtime@0.156.0/helpers/esm/asyncToGenerator.js\nfunction Pt(e, t, n, r, i, a, o) {\n\ttry {\n\t\tvar s = e[a](o), c = s.value;\n\t} catch (e) {\n\t\tn(e);\n\t\treturn;\n\t}\n\ts.done ? t(c) : Promise.resolve(c).then(r, i);\n}\nfunction q(e) {\n\treturn function() {\n\t\tvar t = this, n = arguments;\n\t\treturn new Promise(function(r, i) {\n\t\t\tvar a = e.apply(t, n);\n\t\t\tfunction o(e) {\n\t\t\t\tPt(a, r, i, o, s, \"next\", e);\n\t\t\t}\n\t\t\tfunction s(e) {\n\t\t\t\tPt(a, r, i, o, s, \"throw\", e);\n\t\t\t}\n\t\t\to(void 0);\n\t\t});\n\t};\n}\n// src/util/lazyTemplate.tsx\nvar Ft = class extends L.Component {\n\tconstructor(...e) {\n\t\tsuper(...e), t(this, \"state\", { failed: !1 });\n\t}\n\tstatic getDerivedStateFromError() {\n\t\treturn { failed: !0 };\n\t}\n\tcomponentDidCatch(e) {\n\t\tconsole.error(\"template.failed:\", e);\n\t}\n\trender() {\n\t\treturn this.state.failed ? this.props.describe() : this.props.children;\n\t}\n}, It = (e, t) => {\n\tlet n = !1, r = _e(q(function* () {\n\t\tlet t = yield e();\n\t\treturn n = !0, { default: t };\n\t})), i = (e) => {\n\t\tlet i = K();\n\t\treturn /* @__PURE__ */ H(Ft, {\n\t\t\tdescribe: () => {\n\t\t\t\tvar e;\n\t\t\t\treturn /* @__PURE__ */ H(\"div\", {\n\t\t\t\t\trole: \"alert\",\n\t\t\t\t\t\"data-template-load-error\": !n || void 0,\n\t\t\t\t\t\"data-template-render-error\": n ? !0 : void 0,\n\t\t\t\t\tchildren: i(n ? (e = t.renderError) == null ? \"template.renderError\" : e : t.error)\n\t\t\t\t});\n\t\t\t},\n\t\t\tchildren: /* @__PURE__ */ H(he, {\n\t\t\t\tfallback: /* @__PURE__ */ H(\"div\", {\n\t\t\t\t\t\"aria-busy\": \"true\",\n\t\t\t\t\t\"aria-live\": \"polite\",\n\t\t\t\t\t\"data-template-loading\": !0,\n\t\t\t\t\tchildren: i(t.loading)\n\t\t\t\t}),\n\t\t\t\tchildren: /* @__PURE__ */ H(r, o({}, e))\n\t\t\t})\n\t\t});\n\t};\n\treturn i.displayName = \"LazyTemplate\", i;\n}, J = {\n\tallowedSchemes: [\n\t\t\"https\",\n\t\t\"http\",\n\t\t\"mailto\"\n\t],\n\tallowRelative: !0,\n\tallowImageDataUrls: !1\n}, Y = (e) => {\n\tlet t = e == null ? void 0 : e[l], n = t == null ? void 0 : t.security, r = n == null ? void 0 : n.urlPolicy;\n\treturn r ? {\n\t\tallowedSchemes: Array.isArray(r.allowedSchemes) ? r.allowedSchemes.map((e) => String(e).toLowerCase()) : J.allowedSchemes,\n\t\tallowRelative: r.allowRelative === void 0 ? J.allowRelative : r.allowRelative === !0,\n\t\tallowImageDataUrls: r.allowImageDataUrls === void 0 ? J.allowImageDataUrls : r.allowImageDataUrls === !0\n\t} : J;\n}, Lt = /^([a-zA-Z][a-zA-Z0-9+.-]*):/, Rt = (e, t = J) => {\n\tvar n;\n\tif (typeof e != \"string\") return !1;\n\tlet r = e.replace(/[\\u0000- ]/g, \"\");\n\tif (r === \"\") return !0;\n\tif (r.startsWith(\"//\")) return !1;\n\tlet i = (n = Lt.exec(r)) == null || (n = n[1]) == null ? void 0 : n.toLowerCase();\n\treturn i === void 0 ? t.allowRelative : t.allowedSchemes.includes(i);\n}, zt = /^data:image\\/[a-zA-Z0-9.+-]+[;,]/, Bt = (e, t = J) => t.allowImageDataUrls && typeof e == \"string\" && zt.test(e.replace(/[\\u0000- ]/g, \"\")) ? !0 : Rt(e, t), Vt = It(q(function* () {\n\treturn (yield import(\"./DynamicJSXRenderer-DyB3ZpZV.mjs\")).default;\n}), {\n\tloading: \"template.loading\",\n\terror: \"template.loadError\",\n\trenderError: \"template.renderError\"\n}), Ht = M(1, N(\"TemplateLayout\")), Ut = L.memo(function(e) {\n\treturn /* @__PURE__ */ H(P, o({}, e));\n}), Wt = ({ path: e, enabled: t, schema: n, uischema: r, visible: i, renderers: a, cells: s, config: c, components: l = {} }) => {\n\tvar u, d, p, m;\n\tlet h = bt(r, c), g = r.template, _ = we((u = r.elements) == null ? [] : u, e == null ? \"\" : e), { names: v, diagnostics: y } = z(() => ut(r.elements), [r.elements]);\n\tR(() => {\n\t\tfor (let e of y) console.warn(e);\n\t}, [y]);\n\tlet b = z(() => _.map((r, i) => {\n\t\tlet c = v[i], l = c == null ? `\\u0000unnamed:${i}` : c;\n\t\treturn o(o({}, r), {}, { [f]: function() {\n\t\t\treturn /* @__PURE__ */ H(Ut, {\n\t\t\t\tpath: e,\n\t\t\t\tschema: n,\n\t\t\t\tenabled: t,\n\t\t\t\trenderers: a,\n\t\t\t\tcells: s,\n\t\t\t\tuischema: r\n\t\t\t}, l);\n\t\t} });\n\t}), [\n\t\ts,\n\t\tt,\n\t\ta,\n\t\tn,\n\t\t_,\n\t\tv,\n\t\te\n\t]), x = z(() => {\n\t\tlet e = {};\n\t\treturn b.forEach((t, n) => {\n\t\t\tlet r = v[n];\n\t\t\tr !== void 0 && (e[r] = t);\n\t\t}), e;\n\t}, [b, v]), S = z(() => new Proxy(b, { get(e, t) {\n\t\treturn typeof t == \"string\" && x[t] ? x[t] : Reflect.get(e, t);\n\t} }), [b, x]), C = F(), w = Te(), [{ dataProxy: T, errorsProxy: E, additionalErrorsProxy: D }] = L.useState(() => {\n\t\tvar e, t, n;\n\t\treturn {\n\t\t\tdataProxy: Oe({ __val__: (e = C.core) == null ? void 0 : e.data }),\n\t\t\terrorsProxy: Oe({ __val__: (t = C.core) == null ? void 0 : t.errors }),\n\t\t\tadditionalErrorsProxy: Oe({ __val__: (n = C.core) == null ? void 0 : n.additionalErrors })\n\t\t};\n\t});\n\tR(() => {\n\t\tvar e, t, n;\n\t\tlet r = (e, t) => {\n\t\t\tif (t == null || e.__val__ === null || e.__val__ === void 0) {\n\t\t\t\te.__val__ = t;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet n = (e, t) => {\n\t\t\t\tif (t != null) {\n\t\t\t\t\tif (Array.isArray(t)) {\n\t\t\t\t\t\tif (!Array.isArray(e)) return t;\n\t\t\t\t\t\tt.forEach((t, r) => {\n\t\t\t\t\t\t\tif (t && typeof t == \"object\" && !Array.isArray(t)) {\n\t\t\t\t\t\t\t\t(!e[r] || typeof e[r] != \"object\" || Array.isArray(e[r])) && (e[r] = {});\n\t\t\t\t\t\t\t\tlet i = n(e[r], t);\n\t\t\t\t\t\t\t\ti !== void 0 && (e[r] = i);\n\t\t\t\t\t\t\t} else if (Array.isArray(t)) {\n\t\t\t\t\t\t\t\tArray.isArray(e[r]) || (e[r] = []);\n\t\t\t\t\t\t\t\tlet i = n(e[r], t);\n\t\t\t\t\t\t\t\ti !== void 0 && (e[r] = i);\n\t\t\t\t\t\t\t} else e[r] = t;\n\t\t\t\t\t\t}), e.length > t.length && e.splice(t.length);\n\t\t\t\t\t} else if (typeof t == \"object\" && !Array.isArray(t)) {\n\t\t\t\t\t\tif (typeof e != \"object\" || Array.isArray(e)) return t;\n\t\t\t\t\t\tObject.keys(t).forEach((r) => {\n\t\t\t\t\t\t\tif (t[r] && typeof t[r] == \"object\" && !Array.isArray(t[r])) {\n\t\t\t\t\t\t\t\t(!e[r] || typeof e[r] != \"object\" || Array.isArray(e[r])) && (e[r] = {});\n\t\t\t\t\t\t\t\tlet i = n(e[r], t[r]);\n\t\t\t\t\t\t\t\ti !== void 0 && (e[r] = i);\n\t\t\t\t\t\t\t} else e[r] = t[r];\n\t\t\t\t\t\t});\n\t\t\t\t\t} else return t;\n\t\t\t\t}\n\t\t\t}, r = n(e.__val__, t);\n\t\t\tr !== void 0 && (e.__val__ = r);\n\t\t};\n\t\tr(T, (e = C.core) == null ? void 0 : e.data), r(E, (t = C.core) == null ? void 0 : t.errors), r(D, (n = C.core) == null ? void 0 : n.additionalErrors);\n\t}, [\n\t\t(d = C.core) == null ? void 0 : d.data,\n\t\t(p = C.core) == null ? void 0 : p.errors,\n\t\t(m = C.core) == null ? void 0 : m.additionalErrors,\n\t\tT,\n\t\tE,\n\t\tD\n\t]);\n\tlet O = z(() => {\n\t\tvar e, t;\n\t\treturn o({\n\t\t\telements: S,\n\t\t\tschema: n,\n\t\t\tuischema: r,\n\t\t\tdata: T,\n\t\t\terrors: E,\n\t\t\tadditionalErrors: D,\n\t\t\ttranslate: (e = C.i18n) == null ? void 0 : e.translate,\n\t\t\tlocale: (t = C.i18n) == null ? void 0 : t.locale,\n\t\t\tcontext: mt({\n\t\t\t\tctx: C,\n\t\t\t\tschema: n,\n\t\t\t\tuischema: r,\n\t\t\t\texternal: w\n\t\t\t})\n\t\t}, l);\n\t}, [\n\t\tS,\n\t\tn,\n\t\tr,\n\t\tT,\n\t\tE,\n\t\tD,\n\t\tC,\n\t\tl,\n\t\tw\n\t]);\n\tif (!i) return null;\n\tlet k = `\nfunction Template(props) {\n ${`const { ${Object.keys(O).filter((e) => ![\n\t\t\"data\",\n\t\t\"errors\",\n\t\t\"additionalErrors\"\n\t].includes(e)).join(\", \")} } = props;`}\n\n const data = useTrackedSnapshot(props.data);\n const errors = useTrackedSnapshot(props.errors);\n const additionalErrors = useTrackedSnapshot(props.additionalErrors);\n\n return (\n <React.Fragment>\n ${g.replace(/<\\s*\\/\\s*React\\.Fragment\\s*>/g, \"\")}\n </React.Fragment>\n );\n}\n`;\n\treturn h.diagnostic ? /* @__PURE__ */ H(wt, {\n\t\tuischema: r,\n\t\tconfig: c,\n\t\tvisible: i\n\t}) : /* @__PURE__ */ H(Vt, {\n\t\tjsxTemplate: k,\n\t\tprops: O,\n\t\turlPolicy: Y(c)\n\t});\n}, Gt = It(q(function* () {\n\treturn (yield import(\"./RactiveTemplate-Cat7CxUp.mjs\")).RactiveTemplate;\n}), {\n\tloading: \"template.loading\",\n\terror: \"template.loadError\",\n\trenderError: \"template.renderError\"\n}), Kt = \"data-jsonforms-slot\", qt = (e) => {\n\tvar t;\n\tlet { uischema: n, schema: r, path: i, enabled: a, visible: o, renderers: s, cells: c, config: l } = e, u = F(), d = Te(), f = bt(n, l), { children: p, names: m, diagnostics: h } = pt(n.elements), g = JSON.stringify(m);\n\tR(() => {\n\t\tfor (let e of h) console.warn(e);\n\t}, [h]);\n\tlet _ = (t = n.template) == null ? \"\" : t;\n\tR(() => {\n\t\tlet e = ft(_);\n\t\te.length > 0 && console.warn(`template.ractiveTransitionAttribute: ${JSON.stringify(e)} end in -in, -out or -in-out, which Ractive parses as transition directives. This profile registers no transitions, so they are dropped from the DOM. Rename them.`);\n\t}, [_]);\n\tlet v = z(() => {\n\t\tlet e = {};\n\t\tfor (let t of JSON.parse(g)) t !== null && (e[t] = `<div ${Kt}=\"${t}\"></div>`);\n\t\treturn e;\n\t}, [g]), y = z(() => {\n\t\tlet e = {}, t = ut(p).names;\n\t\treturn p.forEach((n, o) => {\n\t\t\tlet l = t[o];\n\t\t\tl !== void 0 && (e[l] = /* @__PURE__ */ H(P, {\n\t\t\t\tuischema: n,\n\t\t\t\tschema: r,\n\t\t\t\tpath: i,\n\t\t\t\tenabled: a,\n\t\t\t\trenderers: s,\n\t\t\t\tcells: c\n\t\t\t}));\n\t\t}), e;\n\t}, [\n\t\tp,\n\t\tr,\n\t\ti,\n\t\ta,\n\t\ts,\n\t\tc\n\t]), b = z(() => {\n\t\tvar e, t, i;\n\t\treturn {\n\t\t\tdata: (e = u.core) == null ? void 0 : e.data,\n\t\t\terrors: (t = u.core) == null ? void 0 : t.errors,\n\t\t\tcontext: mt({\n\t\t\t\tctx: u,\n\t\t\t\tschema: r,\n\t\t\t\tuischema: n,\n\t\t\t\texternal: d\n\t\t\t}),\n\t\t\telements: ut((i = n.elements) == null ? [] : i).names.filter((e) => e !== void 0).map((e) => ({ name: e })),\n\t\t\ttranslate: (e, t) => {\n\t\t\t\tvar n, r, i, a;\n\t\t\t\treturn (n = (r = (i = u.i18n) == null || (a = i.translate) == null ? void 0 : a.call(i, e, t)) == null ? t : r) == null ? e : n;\n\t\t\t}\n\t\t};\n\t}, [\n\t\tu,\n\t\tr,\n\t\tn,\n\t\td\n\t]);\n\treturn o === !1 ? null : f.diagnostic ? /* @__PURE__ */ H(wt, {\n\t\tuischema: n,\n\t\tconfig: l,\n\t\tvisible: o\n\t}) : /* @__PURE__ */ H(Gt, {\n\t\ttemplate: _,\n\t\tpartials: v,\n\t\tdata: b,\n\t\tslots: y,\n\t\turlPolicy: Y(l)\n\t});\n}, Jt = L.createContext(void 0), Yt = () => L.useContext(Jt), Xt = M(5, E(N(\"TemplateLayout\"), (e) => typeof (e == null ? void 0 : e.template) == \"function\")), Zt = L.createContext(void 0), Qt = ({ name: e, children: t }) => {\n\tlet n = L.useContext(Zt), r = n == null ? void 0 : n.byName[e];\n\tif (!n || !r) {\n\t\tvar i;\n\t\treturn console.warn(`template.unknownSlot: no child is named ${JSON.stringify(e)}; known names are ${JSON.stringify(Object.keys((i = n == null ? void 0 : n.byName) == null ? {} : i))}.`), /* @__PURE__ */ H(V, { children: t == null ? null : t });\n\t}\n\treturn /* @__PURE__ */ H(P, {\n\t\tuischema: r,\n\t\tschema: n.schema,\n\t\tpath: n.path,\n\t\tenabled: n.enabled,\n\t\trenderers: n.renderers,\n\t\tcells: n.cells\n\t});\n}, $t = (e) => {\n\tvar t, n, r, i, a;\n\tlet { uischema: o, schema: s, path: c, enabled: l, visible: u, renderers: d, cells: f } = e, p = F(), m = Te(), h = Yt(), { children: g, names: _, diagnostics: v } = pt(o.elements);\n\tR(() => {\n\t\tfor (let e of v) console.warn(e);\n\t}, [v]);\n\tlet y = we(g, c == null ? \"\" : c), b = z(() => {\n\t\tlet e = {};\n\t\treturn y.forEach((t, n) => {\n\t\t\tlet r = _[n];\n\t\t\tr !== void 0 && (e[r] = t);\n\t\t}), e;\n\t}, [y, _]), x = ve((e, t) => {\n\t\tvar n;\n\t\tl !== !1 && ((n = p.dispatch) == null || n.call(p, C.update(e, () => t)));\n\t}, [p, l]);\n\tif (u === !1) return null;\n\tlet S = o.template;\n\treturn typeof S == \"function\" ? /* @__PURE__ */ H(Zt.Provider, {\n\t\tvalue: {\n\t\t\tbyName: b,\n\t\t\tschema: s,\n\t\t\tpath: c,\n\t\t\tenabled: l,\n\t\t\trenderers: d,\n\t\t\tcells: f\n\t\t},\n\t\tchildren: S({\n\t\t\tdata: (t = p.core) == null ? void 0 : t.data,\n\t\t\tpath: c == null ? \"\" : c,\n\t\t\terrors: (n = (r = p.core) == null ? void 0 : r.errors) == null ? [] : n,\n\t\t\tschema: s,\n\t\t\tuischema: o,\n\t\t\telements: b,\n\t\t\tSlot: Qt,\n\t\t\tenabled: l !== !1,\n\t\t\treadonly: p.readonly === !0,\n\t\t\thandleChange: x,\n\t\t\ttranslate: (i = (a = p.i18n) == null ? void 0 : a.translate) == null ? ((e) => e) : i,\n\t\t\turlPolicy: Y(p.config),\n\t\t\tcontext: mt({\n\t\t\t\tctx: p,\n\t\t\t\tschema: s,\n\t\t\t\tuischema: o,\n\t\t\t\tfireActionEvent: h,\n\t\t\t\texternal: m\n\t\t\t})\n\t\t})\n\t}) : null;\n}, en = I($t), tn = function() {\n\tvar e = q(function* (e, t) {\n\t\tif (typeof e == \"function\") {\n\t\t\tyield e.call(t, t);\n\t\t\treturn;\n\t\t}\n\t\tlet n = Object.getPrototypeOf(q(function* () {})).constructor;\n\t\tyield new n(e).call(t);\n\t});\n\treturn function(t, n) {\n\t\treturn e.apply(this, arguments);\n\t};\n}(), nn = M(2, N(\"Button\")), rn = {\n\tborder: \"1px solid currentColor\",\n\tborderRadius: 4,\n\tpadding: \"0.5rem 0.75rem\",\n\topacity: .85,\n\tfontSize: \"0.85rem\"\n}, an = ({ withProps: e = !0, ButtonComponent: t = \"button\", buttonProps: n = {}, getButtonProps: r } = {}) => {\n\tlet i = (e) => {\n\t\tvar i, a, s, c, l, u;\n\t\tlet { enabled: d, uischema: f, visible: p, config: m, t: h } = e, g = b(), _ = Yt(), v = F(), [y, x] = B(!1), S = xe(!1), C = f, w = (i = (a = (s = (c = A(C, h)) == null ? C.label : c) == null ? C.text : s) == null ? C.name : a) == null ? g(\"button.action\") : i, T = C.script, E = (l = C.action) == null ? T === void 0 ? C.name : void 0 : l, D = z(() => {\n\t\t\tvar e;\n\t\t\treturn (e = C.params) == null ? {} : e;\n\t\t}, [C.params]), O = ve(q(function* () {\n\t\t\tif (S.current) return;\n\t\t\tS.current = !0, x(!0);\n\t\t\tlet e = {\n\t\t\t\taction: E == null ? \"\" : E,\n\t\t\t\tlabel: w,\n\t\t\t\tparams: D,\n\t\t\t\telement: C,\n\t\t\t\tcontext: v\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tT !== void 0 && E === void 0 ? yield tn(T, e) : yield _ == null ? void 0 : _(e);\n\t\t\t} finally {\n\t\t\t\tS.current = !1, x(!1);\n\t\t\t}\n\t\t}), [\n\t\t\tE,\n\t\t\tw,\n\t\t\tD,\n\t\t\tT,\n\t\t\tC,\n\t\t\t_,\n\t\t\tv\n\t\t]);\n\t\tif (R(() => {\n\t\t\tC.action !== void 0 && C.script !== void 0 && console.warn(`action.conflict: ${JSON.stringify(w)} declares both an action and a script, which are mutually exclusive. The action is used.`);\n\t\t}, [\n\t\t\tC.action,\n\t\t\tC.script,\n\t\t\tw\n\t\t]), !p) return null;\n\t\tif (typeof T == \"string\" && !vt(m)) return /* @__PURE__ */ H(\"div\", {\n\t\t\trole: \"alert\",\n\t\t\t\"data-button-diagnostic\": \"script.evaluationDisabled\",\n\t\t\tstyle: rn,\n\t\t\tchildren: g(\"button.scriptDisabled\", { label: w })\n\t\t});\n\t\tlet k = !d || ((u = C.options) == null ? void 0 : u.disabled) === !0 || y, ee = r == null ? void 0 : r(o(o({}, e), {}, {\n\t\t\tpending: y,\n\t\t\tcolor: C.color,\n\t\t\ticon: C.icon\n\t\t}));\n\t\treturn /* @__PURE__ */ H(t, o(o(o({ type: \"button\" }, n), ee), {}, {\n\t\t\tdisabled: k,\n\t\t\t\"aria-busy\": y || void 0,\n\t\t\t\"data-button-pending\": y || void 0,\n\t\t\tonClick: O,\n\t\t\tchildren: w\n\t\t}));\n\t};\n\treturn e ? I(me(i)) : i;\n}, on = an(), sn = L.createContext({}), cn = (e) => typeof e.name == \"string\", ln = M(2, E(N(\"Template\"), cn)), un = (e) => {\n\tvar t;\n\tlet n = F(), r = L.useContext(sn), i = e.uischema, a = L.useMemo(() => {\n\t\tvar e;\n\t\treturn o(o({}, r), ((e = i.elements) == null ? [] : e).reduce((e, t) => {\n\t\t\tlet n = t.name;\n\t\t\treturn n && (e[n] = t), e;\n\t\t}, {}));\n\t}, [i.elements, r]), s = (t = n.uischemas) == null || (t = t.find((e) => e.uischema.name === i.name)) == null ? void 0 : t.uischema;\n\treturn !e.visible || !s ? null : /* @__PURE__ */ H(sn.Provider, {\n\t\tvalue: a,\n\t\tchildren: /* @__PURE__ */ H(P, {\n\t\t\tschema: e.schema,\n\t\t\tuischema: s,\n\t\t\tpath: e.path,\n\t\t\tenabled: e.enabled,\n\t\t\trenderers: e.renderers,\n\t\t\tcells: e.cells\n\t\t})\n\t});\n}, dn = I(un), fn = M(2, N(\"Slot\")), pn = (e) => {\n\tvar t, n;\n\tlet r = L.useContext(sn), i = e.uischema, a = (t = i.elements) == null ? void 0 : t[0], o = i.name ? (n = r[i.name]) == null ? a : n : a;\n\treturn !e.visible || !o ? null : /* @__PURE__ */ H(P, {\n\t\tschema: e.schema,\n\t\tuischema: o,\n\t\tpath: e.path,\n\t\tenabled: e.enabled,\n\t\trenderers: e.renderers,\n\t\tcells: e.cells\n\t});\n}, mn = I(pn), hn = M(1, N(\"Spacer\")), gn = 32, _n = (e) => typeof e == \"number\" ? `${e}px` : e, vn = (e) => {\n\tlet t = e == null ? void 0 : e.size;\n\treturn typeof t == \"number\" && Number.isFinite(t) ? Math.max(0, t) : typeof t == \"string\" && t.trim().length > 0 ? t : gn;\n}, yn = ({ uischema: e, visible: t }) => {\n\tvar n;\n\tlet r = vn(e), i = e == null || (n = e.options) == null || (n = n.layout) == null ? void 0 : n.weight;\n\treturn t ? /* @__PURE__ */ H(\"div\", {\n\t\t\"aria-hidden\": \"true\",\n\t\t\"data-spacer\": !0,\n\t\tstyle: typeof i == \"number\" && Number.isFinite(i) && i > 0 ? {\n\t\t\tflex: `${i} 1 0`,\n\t\t\tminWidth: 0,\n\t\t\tminHeight: 0\n\t\t} : {\n\t\t\tflexShrink: 0,\n\t\t\theight: _n(r),\n\t\t\twidth: \"100%\"\n\t\t}\n\t}) : null;\n}, bn = I(yn), xn = M(1, N(\"ImageView\")), Sn = (e) => {\n\tif (e === void 0) return !1;\n\tlet t = e.type;\n\treturn t === void 0 ? !0 : Array.isArray(t) ? t.includes(\"string\") : t === \"string\";\n}, Cn = (e, t) => {\n\tvar n, r;\n\tlet i = [], a = e.src, o = e.alt;\n\to === void 0 && i.push({\n\t\tcode: \"image.missingAlt\",\n\t\tseverity: \"warning\",\n\t\tmessage: \"ImageView requires a top-level `alt`. Use `alt: \\\"\\\"` to mark the image decorative.\"\n\t});\n\tlet s = o == null ? \"\" : o, c = Y(t.config), l = (e) => {\n\t\tif (e !== \"\") {\n\t\t\tif (!Bt(e, c)) i.push({\n\t\t\t\tcode: \"image.urlRefused\",\n\t\t\t\tseverity: \"error\",\n\t\t\t\tmessage: \"The image source is blocked by the configured URL policy. Use an allowed image URL or adjust the image URL policy.\"\n\t\t\t});\n\t\t\telse return e;\n\t\t}\n\t};\n\tif (a !== void 0) return {\n\t\tsrc: l(a),\n\t\talt: s,\n\t\tdiagnostics: i\n\t};\n\tif (e.scope === void 0) return i.push({\n\t\tcode: \"image.noSource\",\n\t\tseverity: \"error\",\n\t\tmessage: \"ImageView requires at least one of `src` and `scope`.\"\n\t}), {\n\t\talt: s,\n\t\tdiagnostics: i\n\t};\n\tif (!Sn(T.schema((n = t.schema) == null ? t.rootSchema : n, e.scope, t.rootSchema))) return i.push({\n\t\tcode: \"image.scopeNotString\",\n\t\tseverity: \"error\",\n\t\tmessage: `The schema at ${e.scope} does not permit strings.`,\n\t\tvalues: { scope: e.scope }\n\t}), {\n\t\talt: s,\n\t\tdiagnostics: i\n\t};\n\tlet u = D((r = t.path) == null ? \"\" : r, ue(e.scope)), d = T.data(t.data, u);\n\treturn d == null || d === \"\" ? {\n\t\talt: s,\n\t\tdiagnostics: i\n\t} : typeof d == \"string\" ? {\n\t\tsrc: l(d),\n\t\talt: s,\n\t\tdiagnostics: i\n\t} : (i.push({\n\t\tcode: \"image.nonStringSource\",\n\t\tseverity: \"error\",\n\t\tmessage: `The value at ${e.scope} is a ${typeof d}, not a URL string.`,\n\t\tvalues: {\n\t\t\tscope: e.scope,\n\t\t\ttype: typeof d\n\t\t}\n\t}), {\n\t\talt: s,\n\t\tdiagnostics: i\n\t});\n}, wn = {\n\tborder: \"1px solid currentColor\",\n\tborderRadius: 4,\n\tpadding: \"0.5rem 0.75rem\",\n\tboxSizing: \"border-box\",\n\tminWidth: 0,\n\tmaxWidth: \"100%\",\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n\tgap: \"0.5rem\",\n\toverflowWrap: \"anywhere\",\n\tfontSize: \"0.85rem\"\n}, Tn = ({ diagnostic: e }) => {\n\tlet t = b(), [n, r] = L.useState(!1), i = L.useId();\n\treturn /* @__PURE__ */ U(\"div\", {\n\t\trole: \"alert\",\n\t\t\"data-image-diagnostic\": e.code,\n\t\tstyle: wn,\n\t\tchildren: [/* @__PURE__ */ U(\"span\", {\n\t\t\tstyle: {\n\t\t\t\tposition: \"relative\",\n\t\t\t\tdisplay: \"inline-flex\",\n\t\t\t\tflexShrink: 0\n\t\t\t},\n\t\t\tonMouseEnter: () => r(!0),\n\t\t\tonMouseLeave: () => r(!1),\n\t\t\tchildren: [/* @__PURE__ */ H(\"button\", {\n\t\t\t\ttype: \"button\",\n\t\t\t\t\"aria-label\": t(\"image.warningDetails\"),\n\t\t\t\t\"aria-describedby\": n ? i : void 0,\n\t\t\t\tonFocus: () => r(!0),\n\t\t\t\tonBlur: () => r(!1),\n\t\t\t\tonClick: () => r(!0),\n\t\t\t\tonKeyDown: (e) => {\n\t\t\t\t\te.key === \"Escape\" && r(!1);\n\t\t\t\t},\n\t\t\t\tstyle: {\n\t\t\t\t\tdisplay: \"inline-flex\",\n\t\t\t\t\tpadding: 0,\n\t\t\t\t\tborder: 0,\n\t\t\t\t\tbackground: \"transparent\",\n\t\t\t\t\tcolor: \"inherit\",\n\t\t\t\t\tcursor: \"help\"\n\t\t\t\t},\n\t\t\t\tchildren: /* @__PURE__ */ U(\"svg\", {\n\t\t\t\t\twidth: \"18\",\n\t\t\t\t\theight: \"18\",\n\t\t\t\t\tviewBox: \"0 0 24 24\",\n\t\t\t\t\tfill: \"none\",\n\t\t\t\t\tstroke: \"currentColor\",\n\t\t\t\t\tstrokeWidth: \"1.75\",\n\t\t\t\t\t\"aria-hidden\": \"true\",\n\t\t\t\t\tchildren: [\n\t\t\t\t\t\t/* @__PURE__ */ H(\"path\", { d: \"M12 3 2 21h20L12 3Z\" }),\n\t\t\t\t\t\t/* @__PURE__ */ H(\"path\", { d: \"M12 9v5\" }),\n\t\t\t\t\t\t/* @__PURE__ */ H(\"circle\", {\n\t\t\t\t\t\t\tcx: \"12\",\n\t\t\t\t\t\t\tcy: \"17\",\n\t\t\t\t\t\t\tr: \".75\"\n\t\t\t\t\t\t})\n\t\t\t\t\t]\n\t\t\t\t})\n\t\t\t}), n && /* @__PURE__ */ H(\"span\", {\n\t\t\t\tid: i,\n\t\t\t\trole: \"tooltip\",\n\t\t\t\tstyle: {\n\t\t\t\t\tposition: \"absolute\",\n\t\t\t\t\ttop: \"100%\",\n\t\t\t\t\tleft: 0,\n\t\t\t\t\tzIndex: 10,\n\t\t\t\t\twidth: \"min(22rem, 70vw)\",\n\t\t\t\t\tboxSizing: \"border-box\",\n\t\t\t\t\tpadding: \"0.5rem 0.75rem\",\n\t\t\t\t\tbackground: \"Canvas\",\n\t\t\t\t\tcolor: \"CanvasText\",\n\t\t\t\t\tborder: \"1px solid currentColor\",\n\t\t\t\t\tborderRadius: 4,\n\t\t\t\t\toverflowWrap: \"anywhere\",\n\t\t\t\t\tfontWeight: \"normal\"\n\t\t\t\t},\n\t\t\t\tchildren: t(e.code, e.values)\n\t\t\t})]\n\t\t}), /* @__PURE__ */ H(\"span\", { children: e.code === \"image.urlRefused\" ? t(\"image.blocked\") : t(\"image.configurationWarning\") })]\n\t});\n}, En = ({ config: e, uischema: t, schema: n, path: r, visible: i }) => {\n\tvar a, o;\n\tlet s = F(), c = Cn(t, {\n\t\tschema: n,\n\t\trootSchema: (a = s.core) == null ? void 0 : a.schema,\n\t\tdata: (o = s.core) == null ? void 0 : o.data,\n\t\tpath: r,\n\t\tconfig: e\n\t});\n\treturn i === !1 ? null : /* @__PURE__ */ U(V, { children: [c.src !== void 0 && /* @__PURE__ */ H(\"img\", {\n\t\tsrc: c.src,\n\t\talt: c.alt,\n\t\tstyle: {\n\t\t\tmaxWidth: \"100%\",\n\t\t\theight: \"auto\"\n\t\t}\n\t}), c.diagnostics.map((e) => /* @__PURE__ */ H(Tn, { diagnostic: e }, e.code))] });\n}, Dn = I(En), On = M(1, N(\"Separator\")), kn = ({ uischema: e, visible: t }) => {\n\tvar n;\n\treturn t === !1 ? null : ((n = e.options) == null ? void 0 : n.vertical) === !0 ? /* @__PURE__ */ H(\"hr\", {\n\t\t\"aria-orientation\": \"vertical\",\n\t\t\"data-separator\": \"vertical\",\n\t\tstyle: {\n\t\t\talignSelf: \"stretch\",\n\t\t\twidth: 0,\n\t\t\theight: \"auto\",\n\t\t\tmargin: 0,\n\t\t\tborderLeft: \"1px solid currentColor\",\n\t\t\tborderTop: 0,\n\t\t\topacity: .3\n\t\t}\n\t}) : /* @__PURE__ */ H(\"hr\", {\n\t\t\"aria-orientation\": \"horizontal\",\n\t\t\"data-separator\": \"horizontal\"\n\t});\n}, An = I(kn), jn = M(1, N(\"Link\")), Mn = (e, t) => {\n\tlet n = (t == null ? \"\" : t).split(/\\s+/).filter(Boolean);\n\tif (e === \"_blank\") for (let e of [\"noopener\", \"noreferrer\"]) n.includes(e) || n.push(e);\n\treturn n.length > 0 ? n.join(\" \") : void 0;\n}, Nn = ({ uischema: e, visible: t, config: n, t: r }) => {\n\tvar i, a;\n\tlet o = e;\n\tif (!t) return null;\n\tlet s = (i = (a = A(o, r)) == null ? o.label : a) == null ? o.href : i, c = o.href;\n\treturn typeof c == \"string\" && c !== \"\" && Rt(c, Y(n)) ? /* @__PURE__ */ H(\"a\", {\n\t\thref: c,\n\t\ttarget: o.target,\n\t\trel: Mn(o.target, o.rel),\n\t\tchildren: s\n\t}) : /* @__PURE__ */ H(\"span\", {\n\t\t\"data-link-inert\": !0,\n\t\tchildren: s\n\t});\n}, Pn = me(I(Nn)), Fn = ({ label: e }) => /* @__PURE__ */ H(\"div\", {\n\t\"aria-busy\": \"true\",\n\t\"aria-live\": \"polite\",\n\tstyle: { minHeight: \"4rem\" },\n\tchildren: e\n}), In = ({ label: e }) => /* @__PURE__ */ H(\"div\", {\n\trole: \"alert\",\n\tchildren: e\n}), Ln = class extends L.Component {\n\tconstructor(...e) {\n\t\tsuper(...e), t(this, \"state\", { failed: !1 });\n\t}\n\tstatic getDerivedStateFromError() {\n\t\treturn { failed: !0 };\n\t}\n\trender() {\n\t\treturn this.state.failed ? this.props.fallback : this.props.children;\n\t}\n}, Rn = (e, t, n) => {\n\tvar r, i;\n\tlet a = (r = t.Loading) == null ? Fn : r, s = (i = t.LoadError) == null ? In : i, c = _e(q(function* () {\n\t\treturn { default: yield e() };\n\t})), l = (e) => {\n\t\tlet t = K();\n\t\treturn /* @__PURE__ */ H(Ln, {\n\t\t\tfallback: /* @__PURE__ */ H(s, { label: t(n.error) }),\n\t\t\tchildren: /* @__PURE__ */ H(he, {\n\t\t\t\tfallback: /* @__PURE__ */ H(a, { label: t(n.loading) }),\n\t\t\t\tchildren: /* @__PURE__ */ H(c, o({}, e))\n\t\t\t})\n\t\t});\n\t};\n\treturn l.displayName = `LazyControl(${n.loading})`, l;\n}, zn = (e) => {\n\tlet t = [], n = \"\", r = 0, i = () => {\n\t\tn && (t.push({\n\t\t\tkind: \"literal\",\n\t\t\ttext: n\n\t\t}), n = \"\");\n\t};\n\tfor (; r < e.length;) {\n\t\tlet a = e[r];\n\t\tif (a === \"{\" && e[r + 1] === \"{\") {\n\t\t\tn += \"{\", r += 2;\n\t\t\tcontinue;\n\t\t}\n\t\tif (a === \"}\" && e[r + 1] === \"}\") {\n\t\t\tn += \"}\", r += 2;\n\t\t\tcontinue;\n\t\t}\n\t\tif (a !== \"{\") {\n\t\t\tn += a, r += 1;\n\t\t\tcontinue;\n\t\t}\n\t\tlet o = r + 1, s, c = !1;\n\t\tfor (; o < e.length;) {\n\t\t\tlet t = e[o];\n\t\t\tif (s) {\n\t\t\t\tif (t === \"\\\\\") {\n\t\t\t\t\to += 2;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tt === s && (s = void 0);\n\t\t\t} else if (t === \"\\\"\" || t === \"'\") s = t;\n\t\t\telse if (t === \"}\") {\n\t\t\t\tc = !0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\to += 1;\n\t\t}\n\t\tif (!c) {\n\t\t\tn += e.slice(r);\n\t\t\tbreak;\n\t\t}\n\t\ti(), t.push({\n\t\t\tkind: \"expression\",\n\t\t\tsource: e.slice(r + 1, o)\n\t\t}), r = o + 1;\n\t}\n\treturn i(), t;\n}, Bn = (e) => e.some((e) => e.kind === \"expression\"), Vn = (e) => /\\{\\{\\s*[A-Za-z_$][\\w$]*(\\.[\\w$]+|\\[[^\\]]*\\])*\\s*\\}\\}/.test(e), Hn = (e) => e == null ? void 0 : e[l], Un = (e) => {\n\tvar t;\n\treturn ((t = Hn(e)) == null || (t = t.dynamicValues) == null ? void 0 : t.enabled) === !0;\n}, Wn = [\n\t\"data\",\n\t\"item\",\n\t\"config\",\n\t\"context\"\n], Gn = (e) => {\n\tvar t;\n\tlet n = { locale: (t = e.locale) == null ? \"en\" : t };\n\tif (e.dynamicAllowed) {\n\t\tvar r, i, a;\n\t\tn.data = (r = e.data) == null ? {} : r, Object.defineProperty(n, \"item\", {\n\t\t\tenumerable: !0,\n\t\t\tget: () => e.item\n\t\t}), n.config = (i = e.config) == null ? {} : i, n.context = (a = e.context) == null ? {} : a;\n\t}\n\treturn n;\n}, Kn = [\"locale\"], qn = (e, t) => o(o({}, e), {}, { locale: t == null ? \"en\" : t }), Jn = (e) => Object.keys(e == null ? {} : e).filter((e) => Kn.includes(e)), Yn = (e) => (e == null ? void 0 : e.interpolate) === !0, Xn = _e(q(function* () {\n\tlet { renderTemplate: e, resolveTextParams: t } = yield import(\"./celTemplate-D_AGhaIL.mjs\").then((e) => e.t);\n\treturn { default: ({ segments: n, textParams: r, namespaceScope: i, locale: a, translate: o, escape: s, children: c }) => {\n\t\tlet l = t(r, i, a, o), u = e(n, qn(l.params, a), s, a, o);\n\t\treturn /* @__PURE__ */ H(V, { children: c({\n\t\t\ttext: u.text,\n\t\t\tfailures: [...l.failures, ...u.failures]\n\t\t}) });\n\t} };\n})), Zn = ({ segments: e, textParams: t, namespaceScope: n, locale: r, translate: i, escape: a, children: o, fallback: s }) => /* @__PURE__ */ H(Ln, {\n\tfallback: s,\n\tchildren: /* @__PURE__ */ H(he, {\n\t\tfallback: /* @__PURE__ */ H(\"span\", {\n\t\t\trole: \"status\",\n\t\t\t\"aria-busy\": \"true\",\n\t\t\tchildren: \"…\"\n\t\t}),\n\t\tchildren: /* @__PURE__ */ H(Xn, {\n\t\t\tsegments: e,\n\t\t\ttextParams: t,\n\t\t\tnamespaceScope: n,\n\t\t\tlocale: r,\n\t\t\ttranslate: i,\n\t\t\tescape: a,\n\t\t\tchildren: o\n\t\t})\n\t})\n}), Qn = (e) => {\n\tlet t = e.options, n = t == null ? void 0 : t.markup;\n\treturn Yn(t) || n !== void 0 && n !== \"plain\";\n}, $n = M(3, (e, t, n) => N(\"Label\")(e, t, n) && Qn(e)), er = _e(q(function* () {\n\treturn { default: (yield import(\"./MarkupLabelRenderer.impl-CWfdcUuH.mjs\")).MarkdownText };\n})), tr = {\n\tdisplay: \"block\",\n\tfontSize: \"0.85em\",\n\topacity: .85\n}, nr = ({ uischema: e, text: t, visible: n, config: r, typography: i }) => {\n\tvar a, o, s, c;\n\tlet l = K(), u = b(), d = F();\n\tif (n === !1) return null;\n\tlet f = e == null ? void 0 : e.options, p = m(f, r), h = t == null ? \"\" : t, g = p.diagnostic ? /* @__PURE__ */ H(\"span\", {\n\t\trole: \"alert\",\n\t\t\"data-markup-diagnostic\": p.diagnostic,\n\t\tstyle: tr,\n\t\tchildren: p.diagnostic === \"markdownDisabled\" ? l(\"markup.markdownDisabled\") : l(\"markup.unsupported\", { markup: JSON.stringify(f == null ? void 0 : f.markup) })\n\t}) : null, y = p.typography ? i : void 0, x = p.interpolate ? zn(h) : void 0, S = x && Bn(x) ? x : void 0, C = x ? x.map((e) => e.kind === \"literal\" ? e.text : \"\").join(\"\") : h, w = f == null ? void 0 : f.textParams, T = S ? Gn({\n\t\tdata: (a = d.core) == null ? void 0 : a.data,\n\t\tget item() {\n\t\t\treturn d.item;\n\t\t},\n\t\tlocale: (o = d.i18n) == null ? void 0 : o.locale,\n\t\tconfig: r,\n\t\tdynamicAllowed: Un(r)\n\t}) : {}, E = Jn(w);\n\tif (!p.markdown && !S) return /* @__PURE__ */ U(\"label\", {\n\t\t\"data-markup-label\": \"plain\",\n\t\tchildren: [y ? /* @__PURE__ */ H(y, {\n\t\t\tblock: !1,\n\t\t\tchildren: C\n\t\t}) : C, g]\n\t});\n\tlet D = (e) => /* @__PURE__ */ H(Ln, {\n\t\tfallback: e,\n\t\tchildren: /* @__PURE__ */ H(he, {\n\t\t\tfallback: e,\n\t\t\tchildren: /* @__PURE__ */ H(er, {\n\t\t\t\ttext: e,\n\t\t\t\tprofile: _(r),\n\t\t\t\turlPolicy: Y(r)\n\t\t\t})\n\t\t})\n\t}), O = (e) => p.markdown ? D(e) : e;\n\treturn ((e, t) => {\n\t\tlet n = y ? /* @__PURE__ */ H(y, {\n\t\t\tblock: p.markdown,\n\t\t\tchildren: e\n\t\t}) : e;\n\t\treturn p.markdown ? /* @__PURE__ */ U(\"div\", {\n\t\t\t\"data-markup-label\": \"markdown\",\n\t\t\tchildren: [n, t]\n\t\t}) : /* @__PURE__ */ U(\"label\", {\n\t\t\t\"data-markup-label\": \"interpolated\",\n\t\t\tchildren: [n, t]\n\t\t});\n\t})(S ? /* @__PURE__ */ H(Zn, {\n\t\tsegments: S,\n\t\ttextParams: w,\n\t\tnamespaceScope: T,\n\t\tlocale: (s = d.i18n) == null ? void 0 : s.locale,\n\t\ttranslate: (c = d.i18n) == null ? void 0 : c.translate,\n\t\tescape: p.markdown ? v : void 0,\n\t\tfallback: C,\n\t\tchildren: (e) => /* @__PURE__ */ U(V, { children: [O(e.text), e.failures.length > 0 || E.length > 0 ? /* @__PURE__ */ H(\"span\", {\n\t\t\trole: \"alert\",\n\t\t\t\"data-markup-diagnostic\": \"interpolationFailed\",\n\t\t\tstyle: tr,\n\t\t\tchildren: l(\"markup.interpolationFailed\", { detail: [...E.map((e) => u(\"markup.reservedParam\", { name: e })), ...e.failures].join(\"; \") })\n\t\t}) : null] })\n\t}) : O(C), g);\n}, rr = pe(nr), ir = (e) => pe((t) => /* @__PURE__ */ H(nr, o(o({}, t), {}, { typography: e }))), ar = (e, t, n) => {\n\tlet r = o(o({}, typeof e == \"object\" ? e : {}), {}, { type: t });\n\tif (delete r.anyOf, delete r.oneOf, delete r.allOf, Pe(r, t), t === \"object\") {\n\t\tvar i;\n\t\tr.additionalProperties = (i = r.additionalProperties) == null || i;\n\t} else if (t === \"array\") {\n\t\tlet e = Fe(r.items, n);\n\t\tr.items = e && typeof e == \"object\" ? e : { type: Ae };\n\t}\n\treturn r;\n}, or = ({ cells: e, data: t, enabled: n, handleChange: r, label: i, path: a, renderers: o, readonly: s, rootSchema: c, schema: l, uischema: u, visible: d }) => {\n\tlet f = b(), p = x(), m = F(), h = z(() => {\n\t\tvar e;\n\t\treturn (e = m.uischemas) == null ? [] : e;\n\t}, [m.uischemas]), g = z(() => Me(l), [l]), _ = je(t), v = _ && g.includes(_) ? _ : _ === \"integer\" && g.includes(\"number\") ? \"number\" : null, y = z(() => v ? ar(l, v, c) : void 0, [\n\t\tc,\n\t\tl,\n\t\tv\n\t]), S = z(() => y ? ke(y, u, a, c, h == null ? [] : h, ee) : void 0, [\n\t\ta,\n\t\tc,\n\t\ty,\n\t\tu,\n\t\th\n\t]);\n\tif (!d) return null;\n\tlet C = v !== \"null\" && y && S ? /* @__PURE__ */ H(P, {\n\t\tschema: y,\n\t\tuischema: S,\n\t\tpath: a,\n\t\tenabled: n,\n\t\trenderers: o,\n\t\tcells: e,\n\t\treadonly: s\n\t}) : null, w = v === \"object\" || v === \"array\";\n\treturn /* @__PURE__ */ U(\"div\", {\n\t\tclassName: \"jsonforms-mixed-renderer\",\n\t\tchildren: [/* @__PURE__ */ U(\"label\", {\n\t\t\tclassName: \"jsonforms-mixed-renderer-type\",\n\t\t\tchildren: [i ? /* @__PURE__ */ H(\"span\", { children: i }) : null, /* @__PURE__ */ U(\"select\", {\n\t\t\t\tdisabled: !n,\n\t\t\t\tvalue: v == null ? \"\" : v,\n\t\t\t\tonChange: (e) => {\n\t\t\t\t\tlet t = e.currentTarget.value, n = ar(l, t, c);\n\t\t\t\t\tr(a, k(n, c));\n\t\t\t\t},\n\t\t\t\tchildren: [/* @__PURE__ */ H(\"option\", {\n\t\t\t\t\tdisabled: !0,\n\t\t\t\t\tvalue: \"\",\n\t\t\t\t\tchildren: f(\"mixed.typePlaceholder\")\n\t\t\t\t}), g.map((e) => /* @__PURE__ */ H(\"option\", {\n\t\t\t\t\tvalue: e,\n\t\t\t\t\tchildren: p(`mixed.type.${e}`, e)\n\t\t\t\t}, p(`mixed.type.${e}`, e)))]\n\t\t\t})]\n\t\t}), w ? /* @__PURE__ */ U(\"details\", {\n\t\t\tclassName: \"jsonforms-mixed-renderer-detail\",\n\t\t\topen: !0,\n\t\t\tchildren: [/* @__PURE__ */ H(\"summary\", { children: v }), C]\n\t\t}, v) : C]\n\t});\n}, sr = (e, t, n) => {\n\tif (t && typeof t == \"boolean\") return !0;\n\tif (!t || typeof t != \"object\") return !1;\n\tif (Array.isArray(t.type) || t.type === void 0 && ie(e)) return !0;\n\tif (t.type === \"object\") {\n\t\tlet r = e.scope;\n\t\tif (r) {\n\t\t\tlet e = ce(t, r, n == null ? void 0 : n.rootSchema);\n\t\t\treturn Array.isArray(e == null ? void 0 : e.type);\n\t\t}\n\t}\n\treturn !1;\n}, cr = Ne(sr), lr = M(20, cr), ur = fe(or), dr = 16, fr = (e) => e == null || e === \"auto\" || typeof e == \"number\" && Number.isInteger(e) && e >= 2 && e <= 16, pr = (e, t = \"1rem\") => {\n\tlet n = e.map((e) => typeof e == \"number\" && fr(e) ? e : void 0), r = [[]], i = n.every((e) => e === void 0), a = 0;\n\treturn n.forEach((e, t) => {\n\t\tlet n = e == null ? 2 : e;\n\t\t!i && a + n > 16 && (r.push([]), a = 0), r[r.length - 1].push(t), a += n;\n\t}), r.flatMap((r, i) => {\n\t\tlet a = r.reduce((e, t) => {\n\t\t\tvar r;\n\t\t\treturn e + ((r = n[t]) == null ? 0 : r);\n\t\t}, 0), o = r.filter((e) => n[e] === void 0).length;\n\t\treturn r.map((s) => {\n\t\t\tvar c;\n\t\t\tlet l = (c = n[s]) == null ? (16 - a) / o : c, u = l / 16;\n\t\t\treturn {\n\t\t\t\trow: i,\n\t\t\t\tcolumns: l,\n\t\t\t\tstyle: {\n\t\t\t\t\tflex: `0 0 calc(${u * 100}% - ${t} * ${(r.length - 1) * u})`,\n\t\t\t\t\tminWidth: 0\n\t\t\t\t},\n\t\t\t\tdiagnostic: fr(e[s]) ? void 0 : \"Columns must be Auto or an integer from 2 through 16.\"\n\t\t\t};\n\t\t});\n\t});\n}, mr = M(3, N(\"HorizontalLayout\")), hr = (e) => {\n\tvar t;\n\tlet n = F(), r = { jsonforms: n }, i = ((t = e.uischema.elements) == null ? [] : t).map((e, t) => ({\n\t\telement: e,\n\t\tindex: t\n\t})).filter(({ element: t }) => {\n\t\tvar i;\n\t\treturn oe(t, (i = n.core) == null ? void 0 : i.data, e.path, ne(r), re(r));\n\t}), a = \"1rem\", o = pr(i.map(({ element: e }) => {\n\t\tvar t;\n\t\treturn (t = e.options) == null ? void 0 : t.columns;\n\t}), a);\n\treturn e.visible ? /* @__PURE__ */ H(\"div\", {\n\t\tstyle: {\n\t\t\tdisplay: \"flex\",\n\t\t\tflexDirection: \"column\",\n\t\t\tgap: a,\n\t\t\twidth: \"100%\",\n\t\t\tminWidth: 0\n\t\t},\n\t\tchildren: Array.from(new Set(o.map(({ row: e }) => e))).map((t) => /* @__PURE__ */ H(\"div\", {\n\t\t\t\"data-columns-row\": t,\n\t\t\tstyle: {\n\t\t\t\tdisplay: \"flex\",\n\t\t\t\tgap: a,\n\t\t\t\tminWidth: 0\n\t\t\t},\n\t\t\tchildren: i.map(({ element: n, index: r }, i) => {\n\t\t\t\tlet a = o[i];\n\t\t\t\treturn a.row === t ? /* @__PURE__ */ H(\"div\", {\n\t\t\t\t\tstyle: a.style,\n\t\t\t\t\t\"data-columns\": a.columns,\n\t\t\t\t\t\"data-columns-diagnostic\": a.diagnostic,\n\t\t\t\t\tchildren: /* @__PURE__ */ H(P, {\n\t\t\t\t\t\tschema: e.schema,\n\t\t\t\t\t\tuischema: n,\n\t\t\t\t\t\tpath: e.path,\n\t\t\t\t\t\tenabled: e.enabled,\n\t\t\t\t\t\trenderers: e.renderers,\n\t\t\t\t\t\tcells: e.cells\n\t\t\t\t\t})\n\t\t\t\t}, `${e.path}-${r}`) : null;\n\t\t\t})\n\t\t}, t))\n\t}) : null;\n}, gr = I(hr), _r = (e, t) => {\n\tlet n = ze(e), r = n.propertyNames;\n\tif (typeof r == \"object\" && typeof r.$ref == \"string\") {\n\t\tvar i;\n\t\tr = (i = ce(t, r.$ref, t)) == null ? r : i;\n\t}\n\tif (typeof r == \"object\" && r.pattern) return r.pattern;\n\tif (n.additionalProperties === !1 && n.patternProperties) {\n\t\tlet e = Object.keys(n.patternProperties);\n\t\treturn e.length > 0 ? e.join(\"|\") : void 0;\n\t}\n}, vr = (e, t, n, r, i, a) => {\n\tif (!t) return;\n\tif (typeof n == \"object\" && n && Object.prototype.hasOwnProperty.call(n, t) && t !== a) return e(\"additionalProperties.nameTaken\", { name: t });\n\tif (t.includes(\"[\") || t.includes(\"]\") || t.includes(\".\")) return e(\"additionalProperties.nameInvalid\", { name: t });\n\tlet o = _r(r, i);\n\tif (o && !new RegExp(o).test(t)) return e(\"additionalProperties.namePattern\", { pattern: o });\n}, yr = ({ cells: e, config: t, data: n, enabled: r, handleChange: i, label: a, path: s, readonly: c, renderers: l, rootSchema: u, schema: d, uischema: f }) => {\n\tlet p = K(), [m, h] = B(\"\"), [g, _] = B(null), [v, y] = B(\"\"), { maxPropertiesReached: b, minPropertiesReached: x, appliedOptions: S, objectData: C, allowIfMissing: w, additionalPropertyItems: T, shouldShow: E } = Ie({\n\t\tdata: n,\n\t\tschema: d,\n\t\trootSchema: u,\n\t\tpath: s,\n\t\tuischema: f,\n\t\tconfig: t\n\t});\n\tif (!E) return null;\n\tlet D = m.trim(), O = vr(p, D, n, d, u), A = !r || c || S.restrict && b || !!O || !D, ee = !r || c || S.restrict && x, te = () => {\n\t\tif (A) return;\n\t\tlet e = Re(D, s, d, u, w), t = C ? o({}, C) : {};\n\t\tt[D] = k(e.schema, u), i(s, t), h(\"\");\n\t}, ne = (e) => {\n\t\tif (ee || !C) return;\n\t\tlet t = o({}, C);\n\t\tdelete t[e], i(s, t);\n\t}, re = (e) => {\n\t\tlet t = v.trim();\n\t\t!vr(p, t, n, d, u, e) && t && t !== e && C && (i(s, Le(C, e, t)), _(null), y(\"\"));\n\t};\n\treturn /* @__PURE__ */ U(\"div\", {\n\t\tclassName: \"jsonforms-additional-properties\",\n\t\tchildren: [\n\t\t\t/* @__PURE__ */ U(\"div\", {\n\t\t\t\tclassName: \"jsonforms-additional-properties-add\",\n\t\t\t\tchildren: [/* @__PURE__ */ H(\"input\", {\n\t\t\t\t\t\"aria-label\": a ? p(\"additionalProperties.addTo\", { label: a }) : p(\"additionalProperties.addLabel\"),\n\t\t\t\t\tdisabled: !r || c,\n\t\t\t\t\tplaceholder: p(\"additionalProperties.namePlaceholder\"),\n\t\t\t\t\ttype: \"text\",\n\t\t\t\t\tvalue: m,\n\t\t\t\t\tonChange: (e) => h(e.currentTarget.value),\n\t\t\t\t\tonKeyDown: (e) => {\n\t\t\t\t\t\te.key === \"Enter\" && te();\n\t\t\t\t\t}\n\t\t\t\t}), /* @__PURE__ */ H(\"button\", {\n\t\t\t\t\tdisabled: A,\n\t\t\t\t\ttype: \"button\",\n\t\t\t\t\tonClick: te,\n\t\t\t\t\tchildren: p(\"additionalProperties.add\")\n\t\t\t\t})]\n\t\t\t}),\n\t\t\tO ? /* @__PURE__ */ H(\"div\", {\n\t\t\t\tclassName: \"jsonforms-additional-properties-error\",\n\t\t\t\tchildren: O\n\t\t\t}) : null,\n\t\t\t/* @__PURE__ */ H(\"div\", {\n\t\t\t\tclassName: \"jsonforms-additional-properties-list\",\n\t\t\t\tchildren: T.map((t) => {\n\t\t\t\t\tlet i = g === t.propertyName, a = vr(p, v.trim(), n, d, u, t.propertyName), o = !r || c || !!a || !v.trim() || v.trim() === t.propertyName;\n\t\t\t\t\treturn /* @__PURE__ */ U(\"div\", {\n\t\t\t\t\t\tclassName: \"jsonforms-additional-property\",\n\t\t\t\t\t\tchildren: [/* @__PURE__ */ H(\"div\", {\n\t\t\t\t\t\t\tclassName: \"jsonforms-additional-property-control\",\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ H(P, {\n\t\t\t\t\t\t\t\tschema: t.schema,\n\t\t\t\t\t\t\t\tuischema: t.uischema,\n\t\t\t\t\t\t\t\tpath: t.path,\n\t\t\t\t\t\t\t\tenabled: r,\n\t\t\t\t\t\t\t\trenderers: l,\n\t\t\t\t\t\t\t\tcells: e,\n\t\t\t\t\t\t\t\treadonly: c\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}), r ? /* @__PURE__ */ H(\"div\", {\n\t\t\t\t\t\t\tclassName: \"jsonforms-additional-property-actions\",\n\t\t\t\t\t\t\tchildren: i ? /* @__PURE__ */ U(V, { children: [\n\t\t\t\t\t\t\t\t/* @__PURE__ */ H(\"input\", {\n\t\t\t\t\t\t\t\t\t\"aria-label\": p(\"additionalProperties.renameNamed\", { name: t.propertyName }),\n\t\t\t\t\t\t\t\t\tautoFocus: !0,\n\t\t\t\t\t\t\t\t\tdisabled: c,\n\t\t\t\t\t\t\t\t\ttype: \"text\",\n\t\t\t\t\t\t\t\t\tvalue: v,\n\t\t\t\t\t\t\t\t\tonChange: (e) => y(e.currentTarget.value),\n\t\t\t\t\t\t\t\t\tonKeyDown: (e) => {\n\t\t\t\t\t\t\t\t\t\te.key === \"Enter\" ? re(t.propertyName) : e.key === \"Escape\" && (_(null), y(\"\"));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ H(\"button\", {\n\t\t\t\t\t\t\t\t\tdisabled: o,\n\t\t\t\t\t\t\t\t\ttype: \"button\",\n\t\t\t\t\t\t\t\t\tonClick: () => re(t.propertyName),\n\t\t\t\t\t\t\t\t\tchildren: p(\"additionalProperties.save\")\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ H(\"button\", {\n\t\t\t\t\t\t\t\t\ttype: \"button\",\n\t\t\t\t\t\t\t\t\tonClick: () => {\n\t\t\t\t\t\t\t\t\t\t_(null), y(\"\");\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tchildren: p(\"additionalProperties.cancel\")\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\ta ? /* @__PURE__ */ H(\"div\", {\n\t\t\t\t\t\t\t\t\tclassName: \"jsonforms-additional-properties-error\",\n\t\t\t\t\t\t\t\t\tchildren: a\n\t\t\t\t\t\t\t\t}) : null\n\t\t\t\t\t\t\t] }) : /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(\"button\", {\n\t\t\t\t\t\t\t\tdisabled: c,\n\t\t\t\t\t\t\t\ttype: \"button\",\n\t\t\t\t\t\t\t\tonClick: () => {\n\t\t\t\t\t\t\t\t\t_(t.propertyName), y(t.propertyName);\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tchildren: p(\"additionalProperties.rename\")\n\t\t\t\t\t\t\t}), /* @__PURE__ */ H(\"button\", {\n\t\t\t\t\t\t\t\tdisabled: ee,\n\t\t\t\t\t\t\t\ttype: \"button\",\n\t\t\t\t\t\t\t\tonClick: () => ne(t.propertyName),\n\t\t\t\t\t\t\t\tchildren: p(\"additionalProperties.delete\")\n\t\t\t\t\t\t\t})] })\n\t\t\t\t\t\t}) : null]\n\t\t\t\t\t}, t.propertyName);\n\t\t\t\t})\n\t\t\t})\n\t\t]\n\t});\n}, br = {\n\ttrimStart: (e) => e.trimStart(),\n\ttrimEnd: (e) => e.trimEnd(),\n\ttrimLeft: (e) => e.trimStart(),\n\ttrimRight: (e) => e.trimEnd(),\n\ttrim: (e) => e.trim(),\n\ttoLowerCase: (e) => e.toLowerCase(),\n\ttoUpperCase: (e) => e.toUpperCase(),\n\ttoEnumCase: (e, t) => (t == null ? void 0 : t.hash[wr(e)]) || e,\n\tcapitalize: (e) => Ke(e),\n\tstartCase: (e) => qe(e)\n}, xr = Object.assign(Sr, { transform: br });\nfunction Sr() {\n\treturn {\n\t\tkeyword: \"transform\",\n\t\tschemaType: \"array\",\n\t\tbefore: \"enum\",\n\t\tcode(e) {\n\t\t\tlet { gen: t, data: n, schema: r, parentSchema: i, it: a } = e, { parentData: o, parentDataProperty: s } = a, c = r;\n\t\t\tif (!c.length) return;\n\t\t\tlet l;\n\t\t\tif (c.includes(\"toEnumCase\")) {\n\t\t\t\tlet e = Cr(i);\n\t\t\t\tl = t.scopeValue(\"obj\", {\n\t\t\t\t\tref: e,\n\t\t\t\t\tcode: Ge(e)\n\t\t\t\t});\n\t\t\t}\n\t\t\tt.if(Ue`typeof ${n} == \"string\" && ${o} !== undefined`, () => {\n\t\t\t\tt.assign(n, u(c.slice())), t.assign(Ue`${o}[${s}]`, n);\n\t\t\t});\n\t\t\tfunction u(e) {\n\t\t\t\tif (!e.length) return n;\n\t\t\t\tlet r = e.pop();\n\t\t\t\tif (!(r in br)) throw Error(`transform: unknown transformation ${r}`);\n\t\t\t\tlet i = t.scopeValue(\"func\", {\n\t\t\t\t\tref: br[r],\n\t\t\t\t\tcode: Ue`require(\"ajv-keywords/dist/definitions/transform\").transform${We(r)}`\n\t\t\t\t}), a = u(e);\n\t\t\t\treturn l && r === \"toEnumCase\" ? Ue`${i}(${a}, ${l})` : Ue`${i}(${a})`;\n\t\t\t}\n\t\t},\n\t\tmetaSchema: {\n\t\t\ttype: \"array\",\n\t\t\titems: {\n\t\t\t\ttype: \"string\",\n\t\t\t\tenum: Object.keys(br)\n\t\t\t}\n\t\t}\n\t};\n}\nfunction Cr(e) {\n\tlet t = { hash: {} };\n\tif (!e.enum) throw Error(\"transform: \\\"toEnumCase\\\" requires \\\"enum\\\"\");\n\tfor (let n of e.enum) {\n\t\tif (typeof n != \"string\") continue;\n\t\tlet e = wr(n);\n\t\tif (t.hash[e]) throw Error(\"transform: \\\"toEnumCase\\\" requires all lowercased \\\"enum\\\" values to be unique\");\n\t\tt.hash[e] = n;\n\t}\n\treturn t;\n}\nfunction wr(e) {\n\treturn e.toLowerCase();\n}\nW.extend(Je), W.extend(Ze), W.extend(Xe), W.extend(Ye);\nvar X = (e, t) => {\n\tlet n = e == null ? void 0 : e[t];\n\treturn typeof n == \"string\" ? n : void 0;\n}, Tr = (e) => (t) => {\n\tlet n = X(t, \"func\");\n\tif (!n) throw Error(\"missing argument 'func' for dynamicDefaults func 'dynamic'\");\n\tif (!e()) return console.warn(\"dynamicDefaults.evaluationDisabled: the 'dynamic' default compiles a function from the schema, which requires jsonformsExtended.security.allowScriptEvaluation. No default was applied.\"), () => void 0;\n\ttry {\n\t\tlet e = Function(\"args\", `const func = ${n}; return func(args);`);\n\t\treturn () => {\n\t\t\ttry {\n\t\t\t\treturn e(t);\n\t\t\t} catch (e) {\n\t\t\t\tconsole.error(`Error at dynamicDefaults 'dynamic': ${e}`);\n\t\t\t\treturn;\n\t\t\t}\n\t\t};\n\t} catch (e) {\n\t\treturn console.error(`Error at dynamicDefaults 'dynamic': ${e}`), () => void 0;\n\t}\n}, Er = (e) => {\n\tvar t;\n\tlet n = X(e, \"param\");\n\tif (!n || typeof window > \"u\" || !window.location) return () => void 0;\n\tlet r = new URL(window.location.href), i = (t = r.searchParams.get(n)) == null ? void 0 : t;\n\tif (i === void 0) {\n\t\tlet e = r.hash, t = e.indexOf(\"?\");\n\t\tif (t > 0 && t < e.length - 1) {\n\t\t\tvar a;\n\t\t\ti = (a = new URLSearchParams(e.substring(t + 1)).get(n)) == null ? void 0 : a;\n\t\t}\n\t}\n\treturn () => i;\n}, Dr = (e) => {\n\tlet t = X(e, \"duration\"), n = X(e, \"date\"), r = n && n !== \"now\" ? n : /* @__PURE__ */ new Date(), i = X(e, \"op\"), a = i === \"subtract\" || i === \"substract\", o = W(r);\n\tif (o.isValid() && t) {\n\t\tlet e = W.duration(t);\n\t\to = a ? o.subtract(e) : o.add(e);\n\t}\n\treturn o;\n}, Or = (e) => (t) => {\n\tlet n = Dr(t), r = n.isValid() ? n.local().format(e) : void 0;\n\treturn () => r;\n}, kr = Or(\"YYYY-MM-DDTHH:mm:ss.SSS\"), Ar = Or(\"HH:mm:ss.SSS\"), jr = Or(\"YYYY-MM-DD\"), Mr = (e) => {\n\tvar t;\n\tlet n = Dr(e);\n\tif (!n.isValid()) return () => void 0;\n\tlet r = (t = X(e, \"unit\")) == null ? \"millisecond\" : t, i = n.local().get(r);\n\treturn () => i;\n}, Nr = (e, t = {}) => {\n\tvar n;\n\tVe(e), e.getKeyword(\"transform\") && e.removeKeyword(\"transform\"), e.addKeyword(xr());\n\tlet r = He.DEFAULTS;\n\treturn r.dynamic = Tr((n = t.allowScriptEvaluation) == null ? (() => !1) : n), r.searchParams = Er, r.datetime = kr, r.date = jr, r.time = Ar, r.dateUnit = Mr, e;\n}, Pr = \"0 0/15 * * * *\", Z = [\n\t\"second\",\n\t\"minute\",\n\t\"hour\",\n\t\"dayOfMonth\",\n\t\"month\",\n\t\"dayOfWeek\"\n], Fr = [\n\t\"SUN\",\n\t\"MON\",\n\t\"TUE\",\n\t\"WED\",\n\t\"THU\",\n\t\"FRI\",\n\t\"SAT\"\n], Ir = [\n\t\"JAN\",\n\t\"FEB\",\n\t\"MAR\",\n\t\"APR\",\n\t\"MAY\",\n\t\"JUN\",\n\t\"JUL\",\n\t\"AUG\",\n\t\"SEP\",\n\t\"OCT\",\n\t\"NOV\",\n\t\"DEC\"\n], Q = {\n\tsecond: [0, 59],\n\tminute: [0, 59],\n\thour: [0, 23],\n\tdayOfMonth: [1, 31],\n\tmonth: [1, 12],\n\tdayOfWeek: [0, 6]\n};\nfunction Lr(e) {\n\tif (e === \"dayOfWeek\") return Fr;\n\tif (e === \"month\") return Ir;\n}\nvar Rr = {\n\t\"@yearly\": \"0 0 0 1 1 *\",\n\t\"@annually\": \"0 0 0 1 1 *\",\n\t\"@monthly\": \"0 0 0 1 * *\",\n\t\"@weekly\": \"0 0 0 * * 0\",\n\t\"@daily\": \"0 0 0 * * *\",\n\t\"@midnight\": \"0 0 0 * * *\",\n\t\"@hourly\": \"0 0 * * * *\"\n};\nfunction $(e) {\n\tvar t;\n\tlet n = e.trim();\n\tif (n === \"\") return;\n\tlet r = ((t = Rr[n.toLowerCase()]) == null ? n : t).split(/\\s+/);\n\treturn r.length === 6 ? r : void 0;\n}\nfunction zr(e) {\n\treturn e.join(\" \");\n}\nfunction Br(e, t) {\n\tlet n = Lr(t);\n\tif (n) {\n\t\tlet r = n.indexOf(e.toUpperCase());\n\t\tif (r >= 0) return t === \"month\" ? r + 1 : r;\n\t}\n\tif (!/^\\d+$/.test(e)) return;\n\tlet r = Number(e);\n\tif (t === \"dayOfWeek\" && r === 7) return 0;\n\tlet [i, a] = Q[t];\n\treturn r >= i && r <= a ? r : void 0;\n}\nfunction Vr(e, t) {\n\tlet [n, r] = Q[t], i = () => Array.from({ length: r - n + 1 }, (e, t) => n + t), a = e.trim();\n\tif (a === \"\") return;\n\tif (a === \"*\") return i();\n\tif (a === \"?\") return t === \"dayOfMonth\" || t === \"dayOfWeek\" ? i() : void 0;\n\tlet o = /* @__PURE__ */ new Set();\n\tfor (let e of a.split(\",\")) {\n\t\tlet [i, a, ...s] = e.split(\"/\");\n\t\tif (s.length > 0) return;\n\t\tlet c = 1;\n\t\tif (a !== void 0) {\n\t\t\tif (!/^\\d+$/.test(a) || Number(a) < 1) return;\n\t\t\tc = Number(a);\n\t\t}\n\t\tlet l, u;\n\t\tif (i === \"*\" || i === \"?\") [l, u] = [n, r];\n\t\telse {\n\t\t\tlet [e, n, ...o] = i.split(\"-\");\n\t\t\tif (o.length > 0) return;\n\t\t\tlet s = Br(e, t);\n\t\t\tif (s === void 0) return;\n\t\t\tif (n === void 0) [l, u] = a === void 0 ? [s, s] : [s, r];\n\t\t\telse {\n\t\t\t\tlet e = Br(n, t);\n\t\t\t\tif (e === void 0 || e < s) return;\n\t\t\t\t[l, u] = [s, e];\n\t\t\t}\n\t\t}\n\t\tfor (let e = l; e <= u; e += c) o.add(e);\n\t}\n\treturn [...o].sort((e, t) => e - t);\n}\nfunction Hr(e, t) {\n\tlet n = Lr(t);\n\treturn n ? t === \"month\" ? n[e - 1] : n[e] : String(e);\n}\nfunction Ur(e, t) {\n\tlet [n, r] = Q[t], i = [...new Set(e)].filter((e) => e >= n && e <= r).sort((e, t) => e - t);\n\tif (i.length === 0 || i.length === r - n + 1) return \"*\";\n\tif (Lr(t) === void 0 && i.length > 2) {\n\t\tlet e = i[1] - i[0];\n\t\tif (i.every((t, n) => n === 0 || t - i[n - 1] === e) && e > 1 && i[i.length - 1] + e > r) return i[0] === n ? `*/${e}` : `${i[0]}/${e}`;\n\t}\n\tlet a = [], o = 0;\n\tfor (; o < i.length;) {\n\t\tlet e = o;\n\t\tfor (; e + 1 < i.length && i[e + 1] === i[e] + 1;) e += 1;\n\t\tlet n = Hr(i[o], t);\n\t\tif (e - o >= 2) a.push(`${n}-${Hr(i[e], t)}`);\n\t\telse for (let n = o; n <= e; n += 1) a.push(Hr(i[n], t));\n\t\to = e + 1;\n\t}\n\treturn a.join(\",\");\n}\nfunction Wr(e, t) {\n\tif (Vr(e, t) !== void 0 || t === \"dayOfMonth\" && (e === \"L\" || e === \"LW\" || /^L-\\d+$/.test(e) || /^\\d+W$/.test(e)) || t === \"dayOfWeek\" && (/^\\d?L$/.test(e) || /^[A-Za-z]{3}L$/.test(e) || /^(?:\\d|[A-Za-z]{3})#[1-5]$/.test(e))) return !0;\n\tlet [n, r] = e.split(\"-\");\n\treturn r !== void 0 && Br(n, t) !== void 0 && Br(r, t) !== void 0;\n}\nfunction Gr(e) {\n\tlet t = $(e);\n\tif (!t) return \"sixFields\";\n\tlet n = Z.findIndex((e, n) => !Wr(t[n], e));\n\treturn n < 0 ? void 0 : Z[n];\n}\nvar Kr = [\n\t[\"year\", \"month\"],\n\t[\"month\", \"dayOfMonth\"],\n\t[\"week\", \"dayOfWeek\"],\n\t[\"day\", \"hour\"],\n\t[\"hour\", \"minute\"],\n\t[\"minute\", \"second\"]\n];\nfunction qr(e, t) {\n\tlet n = Vr(e, t), [r, i] = Q[t];\n\treturn n !== void 0 && n.length === i - r + 1;\n}\nfunction Jr(e) {\n\tfor (let [t, n] of Kr) if (!qr(e[Z.indexOf(n)], n)) return t;\n\treturn \"second\";\n}\nfunction Yr(e) {\n\tlet t = Kr.findIndex(([t]) => t === e);\n\treturn t < 0 ? [] : Kr.slice(t).map(([, e]) => e).filter((t) => e !== \"week\" || t !== \"dayOfMonth\");\n}\nfunction Xr(e, t) {\n\tif (e.trim() === t.trim()) return !0;\n\tlet n = $(e), r = $(t);\n\treturn !n || !r ? !1 : Z.every((e, t) => {\n\t\tlet i = Vr(n[t], e), a = Vr(r[t], e);\n\t\treturn i === void 0 || a === void 0 ? n[t] === r[t] : i.length === a.length && i.every((e, t) => e === a[t]);\n\t});\n}\nvar Zr = [\n\t\"*\",\n\t\"*\",\n\t\"*\",\n\t\"*\",\n\t\"*\",\n\t\"*\"\n], Qr = {\n\tmonth: 0,\n\tdayOfMonth: 1,\n\tdayOfWeek: 1,\n\thour: 2,\n\tminute: 3,\n\tsecond: 4\n};\nfunction $r(e, t) {\n\tlet n = new Set(Yr(t));\n\treturn Z.map((t, r) => {\n\t\tvar i;\n\t\treturn n.has(t) ? (i = e[r]) == null ? \"*\" : i : \"*\";\n\t});\n}\nfunction ei(e, t) {\n\tlet n = Qr[t];\n\treturn Z.map((t, r) => {\n\t\tvar i;\n\t\tlet a = (i = e[r]) == null ? \"*\" : i;\n\t\treturn t !== \"hour\" && t !== \"minute\" && t !== \"second\" || Qr[t] <= n || !qr(a, t) ? a : Ur([Q[t][0]], t);\n\t});\n}\n// src/core/ajv.ts\nvar ti = [\n\t\"formats\",\n\t\"extendedKeywords\",\n\t\"errorMessages\",\n\t\"allowScriptEvaluation\",\n\t\"i18n\",\n\t\"localizers\"\n], ni = /^(#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})|rgba?\\(.*\\)|hsla?\\(.*\\)|hsb\\(.*\\)|transparent)$/i, ri = (e = {}) => {\n\tlet { formats: t, extendedKeywords: n = !0, errorMessages: i = !0, allowScriptEvaluation: a = !1, i18n: s, localizers: c } = e, l = y(e, ti), u = O(o(o({\n\t\tuseDefaults: !0,\n\t\t$data: !0,\n\t\tdiscriminator: !0\n\t}, i ? { allErrors: !0 } : {}), l));\n\tu.addFormat(\"color\", {\n\t\ttype: \"string\",\n\t\tvalidate: (e) => ni.test(e)\n\t}), u.addFormat(\"cron\", {\n\t\ttype: \"string\",\n\t\tvalidate: (e) => Gr(e) === void 0\n\t});\n\tfor (let [e, n] of Object.entries(t == null ? {} : t)) u.addFormat(e, {\n\t\ttype: \"string\",\n\t\tvalidate: n\n\t});\n\tif (n && Nr(u, { allowScriptEvaluation: typeof a == \"function\" ? a : () => a === !0 }), i) {\n\t\tvar d;\n\t\t(d = u.opts) != null && d.allErrors ? Be(u) : console.warn(\"ajv.errorMessagesNeedAllErrors: `errorMessage` support was requested but `allErrors` is off, which ajv-errors requires. Schema-authored messages will not be applied.\");\n\t}\n\treturn (s || c) && r(u, {\n\t\ti18n: s,\n\t\tlocalizers: c\n\t}), u;\n}, ii = (e) => typeof (e == null ? void 0 : e.name) == \"string\" && e.name !== \"\", ai = \"template.urlRefused\", oi = {\n\thref: \"link\",\n\tsrc: \"link\",\n\tsrcSet: \"image\",\n\tposter: \"image\",\n\tbackground: \"image\",\n\taction: \"link\",\n\tformAction: \"link\",\n\tcite: \"link\",\n\tping: \"link\",\n\tmanifest: \"link\",\n\tprofile: \"link\",\n\tlongDesc: \"link\",\n\tcodeBase: \"link\",\n\tclassID: \"link\",\n\txlinkHref: \"link\"\n}, si = {\n\thref: \"link\",\n\tsrc: \"link\",\n\tsrcset: \"image\",\n\tposter: \"image\",\n\tbackground: \"image\",\n\taction: \"link\",\n\tformaction: \"link\",\n\tcite: \"link\",\n\tping: \"link\",\n\tmanifest: \"link\",\n\tprofile: \"link\",\n\tlongdesc: \"link\",\n\tcodebase: \"link\",\n\tclassid: \"link\",\n\t\"xlink:href\": \"link\"\n}, ci = /* @__PURE__ */ new Set([\n\t\"img\",\n\t\"image\",\n\t\"source\",\n\t\"input\"\n]), li = (e, t, n) => {\n\tif (t !== \"src\") return n;\n\tlet r = typeof e == \"string\" ? e.toLowerCase() : \"\";\n\treturn ci.has(r) ? \"image\" : \"link\";\n}, ui = (e, t, n) => t === \"image\" ? Bt(e, n) : Rt(e, n), di = (e, t) => e === \"ping\" ? t.split(/\\s+/).filter(Boolean) : t.split(\",\").map((e) => e.trim().split(/\\s+/)[0]).filter(Boolean), fi = (e) => e === \"srcSet\" || e === \"srcset\" || e === \"ping\", pi = (e, t, n) => {\n\tlet r = `${ai}: ${t}=${JSON.stringify(String(n))} is not permitted by the URL policy; the attribute was dropped.`;\n\te ? e(r) : console.warn(r);\n}, mi = (e, t) => typeof e == \"string\" || typeof t == \"string\", hi = (e, t, n, r, i) => {\n\tlet a = li(e, t, n);\n\treturn fi(t) && typeof r == \"string\" ? di(t, r).every((e) => ui(e, a, i)) : ui(r, a, i);\n}, gi = (e, t, n = J, r) => {\n\tvar i;\n\tif (!t) return t;\n\tlet a;\n\tfor (let [i, c] of Object.entries(oi)) {\n\t\tvar s;\n\t\tif (!Object.prototype.hasOwnProperty.call(t, i)) continue;\n\t\tlet l = t[i];\n\t\tl != null && mi(e, l) && (hi(e, i, c, String(l), n) || (a = (s = a) == null ? o({}, t) : s, delete a[i], pi(r, i, l)));\n\t}\n\tif (typeof e == \"string\" && e.toLowerCase() === \"object\" && typeof t.data == \"string\" && !Rt(t.data, n)) {\n\t\tvar c;\n\t\ta = (c = a) == null ? o({}, t) : c, delete a.data, pi(r, \"data\", t.data);\n\t}\n\treturn (i = a) == null ? t : i;\n}, _i = (e, t = J, n) => {\n\tvar r;\n\tif (!e) return 0;\n\tlet i = 0, a = Object.keys(si), o = a.map((e) => `[${e.replace(\":\", \"\\\\:\")}]`).join(\",\"), s = [...(r = e.matches) != null && r.call(e, o) ? [e] : [], ...Array.from(e.querySelectorAll(o))];\n\tfor (let e of s) {\n\t\tlet r = e.tagName.toLowerCase();\n\t\tfor (let o of a) {\n\t\t\tlet a = e.getAttribute(o);\n\t\t\ta !== null && (hi(r, o, si[o], a, t) || (e.removeAttribute(o), i += 1, pi(n, o, a)));\n\t\t}\n\t}\n\treturn i;\n}, vi = Symbol.for(\"jsonforms.additionalError.owner\"), yi = (e) => e[vi] !== void 0, bi = (e) => e[vi], xi = \"additionalErrors.noStore\", Si = (e) => e.replace(/^\\//, \"\").split(\"/\").join(\".\"), Ci = (e, t) => t === \"\" || t === \"/\" ? e : Qe(e, Si(t)), wi = () => {\n\tlet e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), n = [], r = () => {\n\t\tlet r = [];\n\t\treturn e.forEach((e) => r.push(...e.errors)), !$e(r, n) && (n = r, t.forEach((e) => e()), !0);\n\t}, i = (t, n, i) => {\n\t\tif (n.length === 0) {\n\t\t\te.delete(t) && r();\n\t\t\treturn;\n\t\t}\n\t\tlet a = n.map((e) => {\n\t\t\tlet n = o({}, e);\n\t\t\treturn n[vi] = t, n;\n\t\t});\n\t\te.set(t, {\n\t\t\terrors: a,\n\t\t\tclearOnChange: (i == null ? void 0 : i.clearOnChange) !== !1\n\t\t}), r();\n\t}, a = (t) => {\n\t\te.delete(t) && r();\n\t}, s = () => {\n\t\te.size > 0 && (e.clear(), r());\n\t}, c = (t, n) => {\n\t\tlet i = !1;\n\t\te.forEach((r, a) => {\n\t\t\tif (!r.clearOnChange) return;\n\t\t\tlet s = r.errors.filter((e) => {\n\t\t\t\tvar r, i;\n\t\t\t\treturn $e(Ci(t, (r = e.instancePath) == null ? \"\" : r), Ci(n, (i = e.instancePath) == null ? \"\" : i));\n\t\t\t});\n\t\t\ts.length !== r.errors.length && (i = !0, s.length === 0 ? e.delete(a) : e.set(a, o(o({}, r), {}, { errors: s })));\n\t\t}), i && r();\n\t};\n\treturn {\n\t\tpublish: i,\n\t\tclear: a,\n\t\tclearAll: s,\n\t\tall: () => n,\n\t\tsubscribe: (e) => (t.add(e), () => t.delete(e)),\n\t\tmiddleware: (e, t, r) => {\n\t\t\tvar i, a;\n\t\t\tlet s = r(e, t);\n\t\t\t(t == null ? void 0 : t.type) === \"jsonforms/UPDATE\" && e !== s && c(e == null ? void 0 : e.data, s.data);\n\t\t\tlet l = n, u = ((i = s.additionalErrors) == null ? [] : i).filter((e) => !yi(e)), d = l.length === 0 ? u : [...u, ...l];\n\t\t\treturn d.length === ((a = s.additionalErrors) == null ? [] : a).length && d.every((e, t) => {\n\t\t\t\tvar n;\n\t\t\t\treturn e === ((n = s.additionalErrors) == null ? void 0 : n[t]);\n\t\t\t}) ? s : o(o({}, s), {}, { additionalErrors: d });\n\t\t}\n\t};\n}, Ti = (e) => bi(e), Ei = ge({\n\tinert: !0,\n\tpublish: () => void 0,\n\tclear: () => void 0,\n\tclearAll: () => void 0,\n\tall: () => [],\n\tsubscribe: () => () => void 0,\n\tmiddleware: (e, t, n) => n(e, t)\n}), Di = ({ store: e, children: t }) => /* @__PURE__ */ H(Ei.Provider, {\n\tvalue: e,\n\tchildren: t\n}), Oi = () => ye(Ei), ki = (e, t, n) => {\n\tlet r = Oi(), i = t.length > 0;\n\tL.useEffect(() => {\n\t\tr.inert && i && console.warn(`${xi}: ${JSON.stringify(e)} has errors to publish, but this form installed no additional-error store, so they will not appear. Render the form with <ExtendedJsonForms>, or pass useAdditionalErrorProps(store) to <JsonForms> and wrap it in <AdditionalErrorStoreProvider>.`);\n\t}, [\n\t\tr,\n\t\te,\n\t\ti\n\t]);\n\tlet a = xe({\n\t\terrors: t,\n\t\toptions: n\n\t});\n\tbe(() => {\n\t\ta.current = {\n\t\t\terrors: t,\n\t\t\toptions: n\n\t\t};\n\t}, [t, n]);\n\tlet o = t.map((e) => `${e.instancePath}|${e.keyword}|${e.message}`).join(\"\\0\"), s = (n == null ? void 0 : n.clearOnChange) !== !1;\n\tL.useEffect(() => {\n\t\tr.publish(e, a.current.errors, a.current.options);\n\t}, [\n\t\tr,\n\t\te,\n\t\to,\n\t\ts\n\t]), L.useEffect(() => () => {\n\t\tr.clear(e);\n\t}, [r, e]);\n}, Ai = () => {\n\tlet e = Oi();\n\treturn L.useSyncExternalStore(e.subscribe, e.all, e.all);\n}, ji = [\"readOnly\"], Mi = (e) => {\n\tif (Array.isArray(e)) return e.map(Mi);\n\tif (typeof e != \"object\" || !e || Object.getPrototypeOf(e) !== Object.prototype) return e;\n\tlet t = Object.entries(e), n = !1, r = {};\n\tfor (let [i, a] of t) if (i === \"options\" && typeof e.type == \"string\" && a && typeof a == \"object\" && !Array.isArray(a) && Object.prototype.hasOwnProperty.call(a, \"readOnly\")) {\n\t\tlet { readOnly: e } = a;\n\t\tr[i] = Mi(y(a, ji)), n = !0;\n\t} else {\n\t\tlet e = Mi(a);\n\t\tr[i] = e, n || (n = e !== a);\n\t}\n\treturn n ? r : e;\n}, Ni = (e) => e && Object.prototype.hasOwnProperty.call(e, \"readOnly\") ? Object.fromEntries(Object.entries(e).filter(([e]) => e !== \"readOnly\")) : e, Pi = ({ store: e }) => {\n\tlet t = F(), n = t.dispatch, r = xe(t.core);\n\treturn be(() => {\n\t\tr.current = t.core;\n\t}, [t.core]), R(() => {\n\t\tif (n) return e.subscribe(() => {\n\t\t\tlet e = r.current;\n\t\t\te && n(C.updateCore(e.data, e.schema, e.uischema, {\n\t\t\t\tajv: e.ajv,\n\t\t\t\tvalidationMode: e.validationMode\n\t\t\t}));\n\t\t});\n\t}, [e, n]), null;\n}, Fi = ({ external: e, store: t, onAction: n, ajv: r, data: i, schema: a, uischema: o, renderers: s, cells: c, config: l, uischemas: u, readonly: d, validationMode: f, i18n: p, additionalErrors: m, middleware: h, onChange: g }) => {\n\tlet [_] = B(wi), v = Oi(), y = Yt(), b = t == null ? v.inert ? _ : v : t, x = z(() => a === void 0 ? w.jsonSchema(i) : a, [a, i]), S = z(() => typeof o == \"object\" ? Mi(o) : w.uiSchema(x, void 0, void 0, x), [o, x]), C = z(() => h ? (e, t, n) => b.middleware(e, t, ((e, t) => h(e, t, n))) : b.middleware, [b, h]), T = z(() => Ni(l), [l]), E = z(() => De(s), [s]), D = z(() => Ee(c), [c]), O = /* @__PURE__ */ U(de, {\n\t\tinitState: {\n\t\t\tcore: {\n\t\t\t\tajv: r,\n\t\t\t\tdata: i,\n\t\t\t\tschema: x,\n\t\t\t\tuischema: S,\n\t\t\t\tvalidationMode: f,\n\t\t\t\tadditionalErrors: m\n\t\t\t},\n\t\t\tconfig: T,\n\t\t\tuischemas: u,\n\t\t\trenderers: E,\n\t\t\tcells: D,\n\t\t\treadonly: d,\n\t\t\ti18n: p\n\t\t},\n\t\tonChange: g,\n\t\tmiddleware: C,\n\t\tchildren: [/* @__PURE__ */ H(Pi, { store: b }), /* @__PURE__ */ H(P, {})]\n\t}), k = /* @__PURE__ */ H(Di, {\n\t\tstore: b,\n\t\tchildren: /* @__PURE__ */ H(Se, {\n\t\t\tconfig: l,\n\t\t\texternal: e,\n\t\t\tlocale: p == null ? void 0 : p.locale,\n\t\t\ttranslate: p == null ? void 0 : p.translate,\n\t\t\tchildren: O\n\t\t})\n\t}), A = n == null ? y : n;\n\treturn A === y ? k : /* @__PURE__ */ H(Jt.Provider, {\n\t\tvalue: A,\n\t\tchildren: k\n\t});\n}, Ii = \"editor.language\", Li = 8, Ri = (e) => (e == null ? [] : e).filter((e) => {\n\tvar t;\n\treturn ((t = e == null ? void 0 : e.severity) == null ? 0 : t) >= 8;\n}).length, zi = (e, t) => {\n\tlet n = e == null ? void 0 : e.propagateErrors;\n\tif (n !== void 0) return n === !0;\n\tlet r = u(t);\n\treturn (r == null ? void 0 : r.propagateErrors) !== void 0 && r.propagateErrors === !0;\n}, Bi = (e) => e ? `/${e.split(\".\").join(\"/\")}` : \"\", Vi = ({ owner: e, path: t, language: n, errorCount: r, message: i }) => ({\n\tinstancePath: Bi(t),\n\tschemaPath: \"\",\n\tkeyword: Ii,\n\tmessage: i,\n\tparams: {\n\t\tsource: \"monaco\",\n\t\tlanguage: n,\n\t\terrorCount: r,\n\t\towner: e\n\t}\n}), Hi = M(3, E(ae, se(te(\"color\"), j(\"format\", \"color\")))), Ui = M(3, E(ae, se(te(\"duration\"), j(\"format\", \"duration\")))), Wi = M(3, E(N(\"Control\"), le(\"null\"))), Gi = (e) => typeof e == \"string\" ? /^#[a-f\\d]{6}$/i.test(e) ? e : /^#[a-f\\d]{3}$/i.test(e) ? \"#\" + Array.from(e.slice(1), (e) => e + e).join(\"\") : /^#[a-f\\d]{8}$/i.test(e) ? e.slice(0, 7) : \"#000000\" : \"#000000\", Ki = (e) => {\n\tvar t;\n\tlet n = b(), r = typeof e.data == \"string\" ? e.data : \"\", [i, a] = B(!1), [s, c] = B(\"\"), [l, u] = B(), [d, f] = B(!1), p = o(o({}, e.config), e.uischema.options), m = p.showActions !== !1, h = !e.enabled || !!e.readonly, g = r.trim() === \"\" ? void 0 : Gr(r), _ = g ? n(`cron.error.${g}`) : \"\", v = (t) => {\n\t\th || Xr(t, r) || e.handleChange(e.path, t);\n\t}, y = (t = $(s)) == null ? Zr : t, x = (e) => {\n\t\tc(e), f(!0), m || v(e);\n\t}, S = (e, t) => {\n\t\tlet n = [...y], r = t.trim() !== \"\" && t !== \"*\";\n\t\tn[Z.indexOf(e)] = r ? t : \"*\", x(zr(r ? ei(n, e) : n));\n\t}, C = (e) => {\n\t\tlet t = $(e);\n\t\tt && u(Jr(t)), x(e);\n\t}, w = (e) => {\n\t\th || e === l || (u(e), e === \"second\" ? x(zr(Zr)) : $(s) && x(zr($r(y, e))));\n\t}, T = s.trim() === \"\" ? void 0 : Gr(s), E = l ? Yr(l) : [];\n\treturn {\n\t\tlabel: n,\n\t\texpression: r,\n\t\topen: i,\n\t\tsetOpen: a,\n\t\ttext: s,\n\t\tperiod: l,\n\t\toptions: p,\n\t\tshowActions: m,\n\t\tdisabled: h,\n\t\tlocalError: _,\n\t\tdraft: y,\n\t\tchangeField: S,\n\t\tchangeText: C,\n\t\tchangePeriod: w,\n\t\teditedProblem: T,\n\t\tshownFields: E,\n\t\thasCustomField: E.some((e) => {\n\t\t\tvar t;\n\t\t\treturn Vr((t = y[Z.indexOf(e)]) == null ? \"*\" : t, e) === void 0;\n\t\t}),\n\t\topenOn: (e) => {\n\t\t\tif (!h) {\n\t\t\t\tif (e) {\n\t\t\t\t\tlet e = $(r);\n\t\t\t\t\tc(r), u(e ? Jr(e) : void 0), f(!1);\n\t\t\t\t}\n\t\t\t\ta(e);\n\t\t\t}\n\t\t},\n\t\taccept: () => {\n\t\t\td && v(s), a(!1);\n\t\t}\n\t};\n}, qi = {\n\tweeks: 0,\n\tyears: 0,\n\tmonths: 0,\n\tdays: 0,\n\thours: 0,\n\tminutes: 0,\n\tseconds: 0\n}, Ji = Object.keys(qi), Yi = Ji.filter((e) => e !== \"weeks\"), Xi = (e) => typeof e == \"string\" && /^P\\d+W$/i.test(e.trim()), Zi = \"hours\", Qi = 9007199254740991, $i = (e) => {\n\tif (typeof e != \"string\") return null;\n\tlet t = e.trim(), n = /^P(\\d+)W$/i.exec(t);\n\tif (n) return o(o({}, qi), {}, { weeks: Number(n[1]) });\n\tlet r = /^P(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+)S)?)?$/i.exec(t);\n\tif (!r || !r.slice(1).some(Boolean) || /T$/i.test(t)) return null;\n\tlet [, i, a, s, c, l, u] = r, d = {\n\t\tweeks: 0,\n\t\tyears: Number(i || 0),\n\t\tmonths: Number(a || 0),\n\t\tdays: Number(s || 0),\n\t\thours: Number(c || 0),\n\t\tminutes: Number(l || 0),\n\t\tseconds: Number(u || 0)\n\t};\n\treturn Object.values(d).every(Number.isFinite) ? d : null;\n}, ea = (e) => {\n\tlet t = Object.fromEntries(Object.entries(e).map(([e, t]) => [e, Number.isFinite(t) ? Math.max(0, Math.floor(t)) : 0]));\n\treturn t.weeks ? `P${t.weeks}W` : rt(t);\n}, ta = (e) => {\n\tlet t = K(), [n, r] = B(!1), [i, a] = B(o({}, qi)), [s, c] = B([]), [l, u] = B(\"components\"), d = o(o({}, e.config), e.uischema.options), f = !e.enabled || !!e.readonly, p = typeof e.data == \"string\" ? e.data : \"\", m = (t) => {\n\t\tf || e.handleChange(e.path, t);\n\t}, h = (e) => {\n\t\tlet t = $i(p);\n\t\treturn t !== null && Ji.every((n) => t[n] === e[n]);\n\t}, g = (e) => {\n\t\th(e) || m(ea(e));\n\t}, _ = (e) => {\n\t\td.showActions === !1 && g(e);\n\t}, v = l === \"weeks\" ? [\"weeks\"] : Yi.filter((e) => s.includes(e)), y = (e) => {\n\t\tlet t = Yi.filter((t) => e[t] > 0);\n\t\treturn t.length ? t : [Zi];\n\t};\n\treturn {\n\t\topen: n,\n\t\tdraft: i,\n\t\toptions: d,\n\t\tdisabled: f,\n\t\tvalue: p,\n\t\tmode: l,\n\t\tactiveFields: v,\n\t\taddableFields: l === \"weeks\" ? [] : Yi.filter((e) => !s.includes(e)),\n\t\terror: e.errors || (p && !$i(p) ? t(\"duration.invalid\") : \"\"),\n\t\tshowActions: d.showActions !== !1,\n\t\topenPicker: () => {\n\t\t\tif (!f) {\n\t\t\t\tvar e;\n\t\t\t\tlet t = (e = $i(p)) == null ? o({}, qi) : e;\n\t\t\t\ta(t), u(Xi(p) ? \"weeks\" : \"components\"), c(y(t)), r(!0);\n\t\t\t}\n\t\t},\n\t\tclose: () => r(!1),\n\t\tapply: () => {\n\t\t\tg(i), r(!1);\n\t\t},\n\t\tchangeText: (e) => m(e || void 0),\n\t\tsetMode: (e) => {\n\t\t\tif (f || e === l) return;\n\t\t\tlet t = o({}, qi);\n\t\t\tu(e), a(t), c(e === \"weeks\" ? [] : y(t)), _(t);\n\t\t},\n\t\taddField: (e) => {\n\t\t\tf || e === \"weeks\" || c((t) => t.includes(e) ? t : [...t, e]);\n\t\t},\n\t\tremoveField: (e) => {\n\t\t\tif (f) return;\n\t\t\tc((t) => {\n\t\t\t\tlet n = t.filter((t) => t !== e);\n\t\t\t\treturn n.length ? n : [Zi];\n\t\t\t});\n\t\t\tlet t = o(o({}, i), {}, { [e]: 0 });\n\t\t\ta(t), _(t);\n\t\t},\n\t\tchangePart: (e, t) => {\n\t\t\tif (f) return;\n\t\t\tlet n = o(o({}, i), {}, { [e]: Math.max(0, Math.min(Qi, Math.floor(t || 0))) });\n\t\t\ta(n), _(n);\n\t\t}\n\t};\n}, na = M(25, E(N(\"Control\"), j(\"format\", \"code\"), se(E(ae, (e) => {\n\tvar t, n;\n\treturn typeof ((t = e.options) == null ? void 0 : t.language) == \"string\" || typeof ((n = e.options) == null ? void 0 : n[\":language\"]) == \"string\";\n}), E(j(\"language\", \"json\"), j(\"convertJson\", !0))))), ra = M(25, E(N(\"Control\"), le(\"array\"), j(\"variant\", \"ag-grid\"))), ia = (e, t) => {\n\tlet n = typeof e[\":language\"] == \"string\" ? T.data(t, e[\":language\"]) : void 0;\n\treturn typeof n == \"string\" && n ? n : e.language || \"plaintext\";\n}, aa = (e, t) => e == null ? \"\" : t ? JSON.stringify(e, null, 2) : String(e), oa = (e, t) => {\n\tif (!t) return {\n\t\tvalid: !0,\n\t\tvalue: e || void 0\n\t};\n\ttry {\n\t\treturn {\n\t\t\tvalid: !0,\n\t\t\tvalue: JSON.parse(e)\n\t\t};\n\t} catch (t) {\n\t\treturn {\n\t\t\tvalid: !1,\n\t\t\tvalue: e\n\t\t};\n\t}\n}, sa = (e, t, n) => {\n\tlet [r, i] = B(!1);\n\treturn R(() => {\n\t\tvar t, n;\n\t\tlet r = e.current;\n\t\tif (!r) return;\n\t\tlet a = [], o = r;\n\t\tfor (; o;) {\n\t\t\tvar s;\n\t\t\ta.push(o);\n\t\t\tlet e = o.getRootNode();\n\t\t\to = (s = o.parentElement) == null ? e instanceof ShadowRoot ? e.host : null : s;\n\t\t}\n\t\tlet c = (t = (n = window).matchMedia) == null ? void 0 : t.call(n, \"(prefers-color-scheme: dark)\"), l = () => {\n\t\t\tfor (let t of a) {\n\t\t\t\tvar e;\n\t\t\t\tlet n = (e = getComputedStyle(t).backgroundColor.match(/[\\d.]+/g)) == null ? void 0 : e.map(Number);\n\t\t\t\tif (n && n.length >= 3 && (n.length < 4 || n[3] > .5)) {\n\t\t\t\t\ti(n[0] * .299 + n[1] * .587 + n[2] * .114 < 128);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\ti(!!(c != null && c.matches));\n\t\t}, u = new MutationObserver(l);\n\t\treturn a.forEach((e) => u.observe(e, {\n\t\t\tattributes: !0,\n\t\t\tattributeFilter: [\n\t\t\t\t\"class\",\n\t\t\t\t\"style\",\n\t\t\t\t\"mode\",\n\t\t\t\t\"dark\"\n\t\t\t]\n\t\t})), c == null || c.addEventListener(\"change\", l), l(), () => {\n\t\t\tu.disconnect(), c == null || c.removeEventListener(\"change\", l);\n\t\t};\n\t}, [e]), {\n\t\tcustomTheme: t && ![\n\t\t\t\"light\",\n\t\t\t\"dark\",\n\t\t\t\"system\"\n\t\t].includes(t) ? t : void 0,\n\t\tisDark: t === \"dark\" ? !0 : t === \"light\" ? !1 : t !== \"system\" && n !== void 0 ? n : r\n\t};\n}, ca = (e) => fe(Rn(q(function* () {\n\treturn (yield import(\"./MonacoControlRenderer.impl-CyjMHbOd.mjs\")).createMonacoControl(e);\n}), e, {\n\tloading: \"editor.loading\",\n\terror: \"editor.loadError\"\n})), la = (e) => Rn(q(function* () {\n\treturn (yield import(\"./AgGridControlRenderer.impl-BZS8_ocu.mjs\")).createAgGridControl(e);\n}), e, {\n\tloading: \"grid.loading\",\n\terror: \"grid.loadError\"\n}), ua = (e) => fe(la(e)), da = (e) => {\n\tvar t;\n\tlet n = e && \"components\" in e ? e : { components: e }, r = n.components, i = (t = n.includeButtonRenderer) == null || t, a = I((e) => /* @__PURE__ */ L.createElement(Wt, o(o({}, e), {}, { components: r })));\n\treturn [\n\t\t{\n\t\t\ttester: at,\n\t\t\trenderer: lt\n\t\t},\n\t\t{\n\t\t\ttester: hn,\n\t\t\trenderer: bn\n\t\t},\n\t\t{\n\t\t\ttester: xn,\n\t\t\trenderer: Dn\n\t\t},\n\t\t{\n\t\t\ttester: On,\n\t\t\trenderer: An\n\t\t},\n\t\t{\n\t\t\ttester: jn,\n\t\t\trenderer: Pn\n\t\t},\n\t\t{\n\t\t\ttester: $n,\n\t\t\trenderer: rr\n\t\t},\n\t\t...i ? [{\n\t\t\ttester: nn,\n\t\t\trenderer: on\n\t\t}] : [],\n\t\t{\n\t\t\ttester: Xt,\n\t\t\trenderer: en\n\t\t},\n\t\t{\n\t\t\ttester: xt(\"jsx\"),\n\t\t\trenderer: a\n\t\t},\n\t\t{\n\t\t\ttester: xt(\"ractive\"),\n\t\t\trenderer: I(qt)\n\t\t},\n\t\t{\n\t\t\ttester: St,\n\t\t\trenderer: I(wt)\n\t\t},\n\t\t{\n\t\t\ttester: ln,\n\t\t\trenderer: dn\n\t\t},\n\t\t{\n\t\t\ttester: fn,\n\t\t\trenderer: mn\n\t\t}\n\t];\n};\nexport { Di as AdditionalErrorStoreProvider, on as ButtonRenderer, Z as CRON_FIELDS, Fr as DAY_NAMES, Pr as DEFAULT_CRON, Wn as DYNAMIC_NAMESPACES, Ii as EDITOR_DIAGNOSTIC_KEYWORD, Fi as ExtendedJsonForms, Q as FIELD_RANGE, yr as GenericAdditionalProperties, ur as GenericMixedRenderer, or as GenericMixedRendererComponent, dr as HORIZONTAL_COLUMNS, Jt as HandleActionContext, gr as HorizontalColumnsLayoutRenderer, hr as HorizontalColumnsLayoutRendererComponent, Dn as ImageViewRenderer, En as ImageViewRendererComponent, d as JSONFORMS_CONFIG_KEY, l as JSONFORMS_EXTENDED_CONFIG_KEY, Pn as LinkRenderer, Nn as LinkRendererComponent, Li as MONACO_SEVERITY_ERROR, Ir as MONTH_NAMES, rr as MarkupLabelRenderer, nr as MarkupLabelRendererComponent, Zr as NOTHING_CHOSEN, xi as NO_STORE_DIAGNOSTIC, Kn as RESERVED_TEXT_NAMES, s as SCHEMA_MESSAGE, An as SeparatorRenderer, kn as SeparatorRendererComponent, ct as SharedSplitLayout, lt as SharedSplitLayoutRenderer, mn as SlotRenderer, pn as SlotRendererComponent, bn as SpacerRenderer, yn as SpacerRendererComponent, it as TRUST_DYNAMIC_FUNCTIONS, Wt as TemplateLayoutRenderer, dn as TemplateRenderer, un as TemplateRendererComponent, sn as TemplateSlotsContext, en as TsxTemplateLayoutRenderer, $t as TsxTemplateLayoutRendererComponent, ai as URL_REFUSED_DIAGNOSTIC, Ti as additionalErrorOwner, r as ajvTranslations, Et as bgExtendedLocale, Gn as buildNamespaceScope, qn as buildTextScope, nn as buttonRendererTester, Mi as canonicalUiOptions, Gi as colorPickerValue, Ri as countBlockingMarkers, wi as createAdditionalErrorStore, la as createAgGridControl, ua as createAgGridControlRenderer, a as createAjvErrorTranslator, an as createButtonRenderer, da as createExtendedRenderers, ri as createFormsAjv, ir as createMarkupLabelRenderer, ca as createMonacoControlRenderer, Gr as cronProblem, jr as dateOffset, Mr as dateUnit, kr as datetimeOffset, oa as decodeEditorValue, Dt as defaultExtendedLocales, J as defaultUrlPolicy, Yi as durationComponentFields, Qi as durationFieldMax, Ji as durationFields, Un as dynamicValuesEnabled, Vi as editorSummaryError, qi as emptyDurationParts, aa as encodeEditorValue, v as escapeMarkdown, ra as extendedAgGridTester, Hi as extendedColorTester, u as extendedConfig, Nt as extendedDefault, Ui as extendedDurationTester, Tt as extendedI18nDefaults, et as extendedMaskTester, Wi as extendedNullTester, xr as extendedTransformKeyword, Yr as fieldsForPeriod, ea as formatExtendedDuration, Ur as formatField, lr as genericMixedControlTester, kt as getExtendedLocales, Bn as hasExpressions, tt as hasMaskPattern, cn as hasTemplateName, mr as horizontalColumnsLayoutTester, pr as horizontalLayoutWidths, xn as imageViewRendererTester, st as initialSplitSizes, Bt as isAllowedImageUrl, Rt as isAllowedUrl, qr as isEvery, nt as isMaskPattern, cr as isMixedControl, sr as isMixedSchema, ii as isNamedUISchemaElement, fr as isValidColumns, Xi as isWeeksDuration, zr as joinCron, Hr as labelFor, Mn as linkRel, jn as linkRendererTester, n as localizeBg, Vn as looksLikeMustache, Tr as makeDynamic, h as markdownEnabled, _ as markdownProfile, $n as markupLabelTester, na as monacoControlTester, ln as namedTemplateTester, $i as parseExtendedDuration, Vr as parseField, Jr as periodOf, Bi as pointerFor, Nr as registerAjvKeywords, jt as registerExtendedLocale, Jn as reservedParamNames, ia as resolveEditorLanguage, Mt as resolveExtendedLocale, c as resolveExtendedOption, Cn as resolveImageView, m as resolveMarkup, zi as resolvePropagateErrors, Y as resolveUrlPolicy, Xr as sameExpression, _i as sanitizeUrlAttributes, gi as sanitizeUrlProps, ar as schemaForType, e as schemaMessageKey, Er as searchParams, On as separatorRendererTester, Ot as setExtendedLocales, at as sharedSplitLayoutTester, fn as slotRendererTester, hn as spacerRendererTester, $ as splitCron, ot as splitCssSize, zn as splitTemplate, $r as standDown, Ht as templateRendererTester, Ar as timeOffset, Xt as tsxTemplateLayoutTester, p as typographyEnabled, i as unwrapErrorMessageErrors, Oi as useAdditionalErrorStore, Ai as useAdditionalErrors, Ki as useCronPicker, ta as useDurationControl, sa as useEditorAppearance, K as useExtendedTranslator, Yt as useHandleAction, ki as useOwnedAdditionalErrors, Yn as wantsInterpolation, g as wantsMarkup, ei as withTimeDefaults };\n\n//# sourceMappingURL=jsonforms-react-extended.esm.js.map"],"ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,308,309,310,319,320,321,322,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375],"mappings":";;;CACA,IAAIsU,IAAc,OAAO;CASzB,SAASC,EAAY,GAAO;EAC1B,IAAIC,IAAOC,KAASA,EAAM;EAG1B,OAAOA,OAFM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