@earthranger/react-native-jsonforms-formatter 2.0.0-beta.1 → 2.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +1 -2
- package/dist/common/schemaUtils.d.ts +23 -0
- package/dist/common/schemaUtils.d.ts.map +1 -0
- package/dist/common/schemaUtils.js +56 -0
- package/dist/common/schemaUtils.js.map +1 -0
- package/dist/{src/common → common}/types.d.ts +5 -0
- package/dist/common/types.d.ts.map +1 -0
- package/dist/common/types.js +2 -0
- package/dist/common/types.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/v1/generateUISchema.d.ts.map +1 -0
- package/dist/v1/generateUISchema.js +181 -0
- package/dist/v1/generateUISchema.js.map +1 -0
- package/dist/v1/index.d.ts.map +1 -0
- package/dist/v1/index.js +3 -0
- package/dist/v1/index.js.map +1 -0
- package/dist/v1/utils/utils.d.ts.map +1 -0
- package/dist/v1/utils/utils.js +149 -0
- package/dist/v1/utils/utils.js.map +1 -0
- package/dist/v1/validateJsonSchema.d.ts.map +1 -0
- package/dist/v1/validateJsonSchema.js +286 -0
- package/dist/v1/validateJsonSchema.js.map +1 -0
- package/dist/v1.d.ts.map +1 -0
- package/dist/v1.js +3 -0
- package/dist/v1.js.map +1 -0
- package/dist/{src/v2 → v2}/generateUISchema.d.ts +1 -0
- package/dist/v2/generateUISchema.d.ts.map +1 -0
- package/dist/v2/generateUISchema.js +162 -0
- package/dist/v2/generateUISchema.js.map +1 -0
- package/dist/v2/index.d.ts.map +1 -0
- package/dist/v2/index.js +3 -0
- package/dist/v2/index.js.map +1 -0
- package/dist/v2/mockData.d.ts.map +1 -0
- package/dist/v2/mockData.js +343 -0
- package/dist/v2/mockData.js.map +1 -0
- package/dist/v2/utils.d.ts.map +1 -0
- package/dist/v2/utils.js +253 -0
- package/dist/v2/utils.js.map +1 -0
- package/package.json +16 -10
- package/dist/src/common/types.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -4
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/v1/generateUISchema.d.ts.map +0 -1
- package/dist/src/v1/index.d.ts.map +0 -1
- package/dist/src/v1/utils/utils.d.ts.map +0 -1
- package/dist/src/v1/validateJsonSchema.d.ts.map +0 -1
- package/dist/src/v1.d.ts.map +0 -1
- package/dist/src/v2/generateUISchema.d.ts.map +0 -1
- package/dist/src/v2/index.d.ts.map +0 -1
- package/dist/src/v2/mockData.d.ts.map +0 -1
- package/dist/src/v2/utils.d.ts.map +0 -1
- /package/dist/{src/v1 → v1}/generateUISchema.d.ts +0 -0
- /package/dist/{src/v1 → v1}/index.d.ts +0 -0
- /package/dist/{src/v1 → v1}/utils/utils.d.ts +0 -0
- /package/dist/{src/v1 → v1}/validateJsonSchema.d.ts +0 -0
- /package/dist/{src/v1.d.ts → v1.d.ts} +0 -0
- /package/dist/{src/v2 → v2}/index.d.ts +0 -0
- /package/dist/{src/v2 → v2}/mockData.d.ts +0 -0
- /package/dist/{src/v2 → v2}/utils.d.ts +0 -0
package/dist/bundle.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/*! For license information please see bundle.js.LICENSE.txt */
|
|
2
|
-
(()=>{"use strict";var t={729:function(t,e,n){var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.v2=e.v1=e.validateJSONSchema=e.generateUISchema=void 0;var u=n(779);Object.defineProperty(e,"generateUISchema",{enumerable:!0,get:function(){return u.generateUISchema}}),Object.defineProperty(e,"validateJSONSchema",{enumerable:!0,get:function(){return u.validateJSONSchema}}),e.v1=o(n(779)),e.v2=o(n(486))},153:function(t,e,n){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.generateUISchema=void 0;var i,o=n(271),u=n(16);!function(t){t.Number="number",t.String="string",t.Array="array"}(i||(i={}));var a=function(t,e,n){return void 0===n&&(n={}),r({type:"Control",scope:"#/properties/".concat(t),label:e},n&&{options:n})},c=function(t,e,n){void 0===n&&(n=void 0);try{var r=n||e.definition.find((function(e){return e.key===t}));if("date-time-picker json-schema"===r.fieldHtmlClass||r&&"datetime"===(r.type||""))return"date"===e.schema.properties[t].format?u.DateTimeFormat.Date:u.DateTimeFormat.DateTime;if("date-picker json-schema"===r.fieldHtmlClass||"date"===e.schema.properties[t].format)return u.DateTimeFormat.Date}catch(t){return}};e.generateUISchema=function(t){var e=[];return(0,u.isSchemaFieldSet)(t.definition)?e.push.apply(e,s(t)):Object.keys(t.schema.properties).forEach((function(n){var r=l(n,t);(0,o.isEmpty)(r)||e.push(r)})),{type:"Category",elements:e}};var s=function(t){var e=[];return t.definition.forEach((function(n){if("string"==typeof n)e.push(a(n,t.schema.properties[n].title||""));else if(n instanceof Object)switch(!0){case(0,u.isFieldSetTitleWithoutItems)(n):e.push(a((0,u.getFieldSetTitleKey)(n.title),n.title,f(u.PropertyFormat.FormLabel)));break;case(0,u.isFieldSet)(n):n.title&&e.push(a((0,u.getFieldSetTitleKey)(n.title),n.title,f(u.PropertyFormat.FormLabel))),n.items.forEach((function(n){if(n instanceof Object){var r=l(n.key||"",t,n);r&&e.push(r)}else if("string"==typeof n){var i=l(n,t);i&&e.push(i)}}));break;case(0,u.isPropertyKey)(n):var r=l(n.key,t);r&&e.push(r)}})),e},f=function(t,e){if(void 0===t&&(t=""),void 0===e&&(e=""),(0,o.isEmpty)(t))return{};var n={format:t};return(0,o.isEmpty)(e)||(n.display=e),n},l=function(t,e,n){void 0===n&&(n=void 0);var r={};switch(e.schema.properties[t].type){case i.Number:return a(t,e.schema.properties[t].title||"");case i.String:var o=c(t,e,n);return(0,u.isEmptyString)(o)?e.schema.properties[t].display&&e.schema.properties[t].display===u.ElementDisplay.Header&&(r=f(u.PropertyFormat.FormLabel)):r=f(u.PropertyFormat.DateTime,o),a(t,e.schema.properties[t].title||"",r);case i.Array:return e.schema.properties[t].items.enum&&e.schema.properties[t].items.enumNames?r=f(u.PropertyFormat.MultiSelect):e.schema.properties[t].items&&(r=f(u.PropertyFormat.RepeatableField)),a(t,e.schema.properties[t].title||"",r);case void 0:var s=function(t,e){try{var n=e.definition.find((function(e){return e.key===t}));return"json-schema-checkbox-wrapper"===n.fieldHtmlClass||"checkboxes"===n.type?n:void 0}catch(t){return}}(t,e);return s?(r=f(u.PropertyFormat.MultiSelect),a(t,s.title||"",r)):(o=c(t,e,n),(0,u.isEmptyString)(o)?void 0:(r=f(u.PropertyFormat.DateTime,o),a(t,e.schema.properties[t].title||"",r)))}}},779:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateJSONSchema=e.generateUISchema=void 0;var r=n(153);Object.defineProperty(e,"generateUISchema",{enumerable:!0,get:function(){return r.generateUISchema}});var i=n(620);Object.defineProperty(e,"validateJSONSchema",{enumerable:!0,get:function(){return i.validateJSONSchema}})},16:function(t,e,n){var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.traverseSchema=e.normalizeDecimalSeparators=e.isString=e.isSchemaFieldSet=e.isRequiredProperty=e.isPropertyKey=e.isObject=e.isInactiveChoice=e.isFieldSet=e.isFieldSetTitleWithoutItems=e.isFieldSetTitle=e.isEmptyString=e.isDisabledChoice=e.isCheckbox=e.isArrayProperty=e.hasDuplicatedItems=e.getSchemaValidations=e.getFieldSetTitleKey=e.ElementDisplay=e.PropertyFormat=e.DateTimeFormat=e.ENUM=e.ARRAY_TYPE=e.STRING_TYPE=e.DISABLED_ENUM=e.INACTIVE_ENUM=e.CHECKBOXES=e.REQUIRED_PROPERTY=e.HELP_VALUE=e.FIELD_SET=void 0;var i,o,u,a=n(271);e.FIELD_SET="fieldset",e.HELP_VALUE="helpvalue",e.REQUIRED_PROPERTY="required",e.CHECKBOXES="checkboxes",e.INACTIVE_ENUM="inactive_enum",e.DISABLED_ENUM="inactive_titleMap",e.STRING_TYPE="string",e.ARRAY_TYPE="array",e.ENUM="enum",function(t){t.DateTime="date-time",t.Date="date"}(i||(e.DateTimeFormat=i={})),function(t){t.DateTime="date-time",t.MultiSelect="multiselect",t.RepeatableField="repeatable-field",t.FormLabel="form-label"}(o||(e.PropertyFormat=o={})),function(t){t.Header="header"}(u||(e.ElementDisplay=u={})),e.getFieldSetTitleKey=function(t){var e=t.toLowerCase().replace(/[\s\\/\\%]/gi,"_");return"fieldset__title_".concat(e)},e.getSchemaValidations=function(t){return{hasCheckboxes:c(t),hasInactiveChoices:s(t),hasDisabledChoices:f(t),hasEnums:l(t)}},e.hasDuplicatedItems=function(t){return new Set(t).size!==t.length},e.isArrayProperty=function(t){var n,r;return t.type===e.ARRAY_TYPE&&!(null===(n=t.items)||void 0===n?void 0:n.enum)&&!(null===(r=t.items)||void 0===r?void 0:r.enumNames)},e.isCheckbox=function(t){return(0,e.isObject)(t)&&t.type===e.CHECKBOXES},e.isDisabledChoice=function(t){var n,r;return(0,e.isObject)(t)&&t.type===e.CHECKBOXES&&(null===(n=t.inactive_titleMap)||void 0===n?void 0:n.length)>0&&(null===(r=t.titleMap)||void 0===r?void 0:r.length)>0},e.isEmptyString=function(t){return null==t||0===t.trim().length},e.isFieldSetTitle=function(t){return(0,e.isObject)(t)&&t.type===e.FIELD_SET&&!(0,a.isEmpty)(t.title)},e.isFieldSetTitleWithoutItems=function(t){return(0,e.isObject)(t)&&t.type===e.FIELD_SET&&0===t.items.length&&!(0,a.isEmpty)(t.title)},e.isFieldSet=function(t){return(0,e.isObject)(t)&&t.type===e.FIELD_SET&&t.items.length>0},e.isInactiveChoice=function(t){var n,r;return t.type===e.STRING_TYPE&&(null===(n=t.enum)||void 0===n?void 0:n.length)>0&&(null===(r=t.inactive_enum)||void 0===r?void 0:r.length)>0},e.isObject=function(t){return t instanceof Object},e.isPropertyKey=function(t){return!(0,a.isEmpty)(t.key)},e.isRequiredProperty=function(t){return"true"===t.required||t.required>0},e.isSchemaFieldSet=function(t){return 0!==t.length&&void 0!==t.find((function(t){return(0,e.isObject)(t)&&t&&(t.type||"")===e.FIELD_SET}))},e.isString=function(t){return typeof t===e.STRING_TYPE},e.normalizeDecimalSeparators=function(t){if("number"==typeof t)return t;if("string"!=typeof t)return t;var e=t.trim();if(""===e)return t;if(/^-?\d+,\d+$/.test(e)){var n=e.replace(",","."),r=parseFloat(n);if(!isNaN(r))return n}return t},e.traverseSchema=function(t,n,i){void 0===i&&(i=[]),"object"==typeof t&&null!==t&&(n(t,i),Array.isArray(t)?t.forEach((function(t,o){return(0,e.traverseSchema)(t,n,r(r([],i,!0),[o.toString()],!1))})):Object.entries(t).forEach((function(t){var o=t[0],u=t[1];return(0,e.traverseSchema)(u,n,r(r([],i,!0),[o],!1))})))};var c=function(t){return t.includes(e.CHECKBOXES)},s=function(t){return t.includes(e.INACTIVE_ENUM)},f=function(t){return t.includes(e.DISABLED_ENUM)},l=function(t){return t.includes(e.ENUM)}},620:function(t,e,n){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.validateJSONSchema=void 0;var o=n(271),u=n(16),a=/[^\w\n\s_"](?=[^:\n\s{}[]]*:[\t\n\s]*(\{|\[)+)/g,c=/"minimum"(?:[^\\"]|\\\\|\\")*"\d+\.*\d*"/g,s=/"maximum"(?:[^\\"]|\\\\|\\")*"\d+\.*\d*"/g,f=/"(?=[^"]*(?:"[^"]*)?$)/g,l=function(t){return{type:"string",readOnly:!0,isHidden:!1,display:u.ElementDisplay.Header,title:t}},p=function(t){return(null==t?void 0:t.isHidden)||!1},h=function(t){return t.enum.filter((function(e){return!t.inactive_enum.includes(e)}))},v=function(t){return t.titleMap.filter((function(e){return!t.inactive_titleMap.includes(e.value)}))},d=function(t,e,n,i){var o,a,c,s,f=t.hasCheckboxes,l=t.hasDisabledChoices;if((0,u.isString)(e)&&n.schema.properties[e])n.schema.properties[e].isHidden=p(n.schema.properties[e]);else{if(((0,u.isObject)(e)||(0,u.isPropertyKey)(e))&&e.key&&n.schema.properties[e.key]&&(n.schema.properties[e.key].isHidden=p(n.schema.properties[e.key])),l&&(0,u.isDisabledChoice)(e))if(i){var h=n.definition.indexOf(i),d=n.definition[h].items.indexOf(e);n.definition[h].items[d].titleMap=v(e)}else n.definition[n.definition.indexOf(e)].titleMap=v(e);f&&(0,u.isCheckbox)(e)&&(n.schema.properties[e.key]=(o=e,a=n.schema.properties[e.key].title||"",c=n.schema.properties[e.key].required||!1,s=n.schema.properties[e.key].default||!1,r(r(r({type:"array",uniqueItems:!0,isHidden:!1},c&&{required:c}),{title:a||o.title,items:{enum:o.titleMap.map((function(t){return t.value})),enumNames:o.titleMap.map((function(t){return t.name}))}}),s&&{default:s})))}};e.validateJSONSchema=function(t){var e;t=function(t){if(null!==t.match(a))throw Error("Special characters not supported in JSON Schema");return(t=(t=(t=(t=(t=t.replace(/([“”])/g,'"')).replace(new RegExp('\\"enum\\"\\n*\\s*\\:\\n*\\s*\\[\\n*\\s*\\]',"g"),'"enum": ["0"]')).replace(new RegExp('\\"enumNames\\"\\n*\\s*\\:\\n*\\s*\\{\\n*\\s*\\}',"g"),'"enumNames": {"0":"No Options"}')).replace(new RegExp('\\"titleMap\\"\\n*\\s*\\:\\n*\\s*\\[\\n*\\s*\\]',"g"),'"titleMap": [{"value":"no_option", "name":"No Option"}]')).replace(c,(function(t){return t.replace(f,"")}))).replace(s,(function(t){return t.replace(f,"")}))}(t);var n=JSON.parse(t);delete n.schema.$schema,delete n.schema.id,function(t){if(t.schema.definition){var e=t.schema.definition;delete t.schema.definition,t.definition=e}}(n);var r=(0,u.getSchemaValidations)(t);if(function(t){(0,u.traverseSchema)(t,(function(t){"object"===t.type&&t.properties&&Object.entries(t.properties).forEach((function(t){var e=t[1];"number"===e.type&&(void 0!==e.default&&(e.default=(0,u.normalizeDecimalSeparators)(e.default)),void 0!==e.minimum&&(e.minimum=(0,u.normalizeDecimalSeparators)(e.minimum)),void 0!==e.maximum&&(e.maximum=(0,u.normalizeDecimalSeparators)(e.maximum)))}))}))}(n.schema),function(t,e){var n=t.hasInactiveChoices,r=t.hasEnums;if(n)for(var i=0,a=Object.keys(e.schema.properties);i<a.length;i++){var c=a[i],s=e.schema.properties[c];(0,u.isInactiveChoice)(s)&&(e.schema.properties[c].enum=h(s),(0,o.isEmpty)(e.schema.properties[c].enum)&&(e.schema.properties[c].enum=["0"],e.schema.properties[c].enumNames={0:"No Options"}))}if(r)for(var f=0,l=Object.keys(e.schema.properties);f<l.length;f++)if(c=l[f],!(0,o.isEmpty)(e.schema.properties[c].enum)&&(0,u.hasDuplicatedItems)(e.schema.properties[c].enum))throw new Error("Duplicated enum items")}(r,n),function(t,e){var n;if((0,u.isSchemaFieldSet)(e.definition))!function(t,e){for(var n=0,r=e.definition;n<r.length;n++){var i=r[n];switch(!0){case(0,u.isString)(i):break;case(0,u.isFieldSetTitle)(i):var o=(0,u.getFieldSetTitleKey)(i.title);e.schema.properties[o]=l(i.title);break;case(0,u.isFieldSet)(i):for(var a=0,c=i.items;a<c.length;a++){var s=c[a];d(t,s,e,i)}break;case(0,u.isCheckbox)(i):d(t,i,e)}}}(t,e);else if((null===(n=e.definition)||void 0===n?void 0:n.length)>0)for(var r=0,i=e.definition;r<i.length;r++){var o=i[r];d(t,o,e)}}(r,n),t.includes(u.HELP_VALUE)&&function(t){for(var e={},n=0,r=0,i=t.definition;r<i.length;r++){var o=i[r];if((0,u.isString)(o))e[o]=t.schema.properties[o],delete t.schema.properties[o];else if((0,u.isObject)(o))if(o.helpvalue){var a="help_value_".concat(n);n+=1,e[a]=l((o.helpvalue||"").replace(/(<.+?>)/g,""))}else o.key&&(e[o.key]=t.schema.properties[o.key],delete t.schema.properties[o.key])}t.schema.properties=Object.assign(e,t.schema.properties)}(n),t.includes(u.REQUIRED_PROPERTY)){if((null===(e=n.schema.required)||void 0===e?void 0:e.length)>0&&(0,u.hasDuplicatedItems)(n.schema.required))throw new Error("Duplicated required properties");n.schema=function(t){var e=Array.isArray(t.required)?i([],t.required,!0):null;return(0,u.traverseSchema)(t,(function(t,n){if("object"===t.type&&t.properties){var r=[];if(Object.entries(t.properties).forEach((function(t){var e=t[0],n=t[1];(0,u.isRequiredProperty)(n)&&(r.push(e),delete n.required)})),(0,o.isEmpty)(r))n.length>0&&t.required&&delete t.required;else if(0===n.length&&e){var a=i(i([],e,!0),r,!0);t.required=Array.from(new Set(a))}else t.required=r}})),t}(n.schema)}return n}},538:function(t,e,n){var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.generateUISchema=void 0;var i=n(43);e.generateUISchema=function(t){var e=(0,i.getVisibleFields)(t),n=(0,i.groupFieldsBySection)(e,t.ui.sections),o=[];return t.ui.order.forEach((function(e){var u=t.ui.sections[e],a=n[e]||[],c=a.length>0,s=r(r([],u.leftColumn,!0),u.rightColumn,!0).some((function(e){return"header"===e.type&&t.ui.headers[e.name]}));if((null==u?void 0:u.isActive)&&(c||s)){var f=a.map((function(t){var e=t.name,n=t.property,r=t.uiField;return(0,i.createControl)(e,n,r)})),l=(0,i.createSectionLayout)(e,u,f,t.ui.headers);o.push(l)}})),{type:"VerticalLayout",elements:o}}},486:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.generateUISchema=void 0;var r=n(538);Object.defineProperty(e,"generateUISchema",{enumerable:!0,get:function(){return r.generateUISchema}})},43:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.groupFieldsBySection=e.getVisibleFields=e.createSectionLayout=e.createHeaderLabel=e.createControl=e.isFieldVisible=void 0,e.isFieldVisible=function(t){return!t.deprecated},e.createControl=function(t,e,r){var i,o={type:"Control",scope:"#/properties/".concat(t),label:e.title,options:{}};switch(r.type){case"TEXT":"LONG_TEXT"===r.inputType&&(o.options.multi=!0),r.placeholder&&(o.options.placeholder=r.placeholder);break;case"NUMERIC":o.options.format="number",r.placeholder&&(o.options.placeholder=r.placeholder);break;case"DATE_TIME":e.format&&(o.options.format=e.format,o.options.display=e.format);break;case"CHOICE_LIST":"DROPDOWN"===r.inputType?(o.options.format="dropdown",r.placeholder&&(o.options.placeholder=r.placeholder)):"LIST"===r.inputType&&(o.options.format="radio"),"array"===e.type&&(o.options.multi=!0);break;case"LOCATION":o.options.format="location",o.options.display="map";break;case"COLLECTION":o.options.format="array",o.options.addButtonText=r.buttonText||"Add Item",r.itemIdentifier&&(o.options.itemIdentifier=r.itemIdentifier),void 0!==e.maxItems&&(o.options.maxItems=e.maxItems),void 0!==e.minItems&&(o.options.minItems=e.minItems),"array"===e.type&&(null===(i=e.items)||void 0===i?void 0:i.properties)&&(o.options.detail=n(e,r));break;case"ATTACHMENT":o.options.format="file",r.allowableFileTypes&&(o.options.accept=r.allowableFileTypes.join(","))}return e.description&&(o.options.description=e.description),o},e.createHeaderLabel=function(t,e){return{type:"Label",text:e.label,options:{size:e.size}}},e.createSectionLayout=function(t,n,r,i){var o={type:"VerticalLayout",label:n.label,elements:[]},u=[];return n.leftColumn.forEach((function(t){if("field"===t.type){var n=r.find((function(e){return e.scope==="#/properties/".concat(t.name)}));n&&u.push(n)}else if("header"===t.type){var o=i[t.name];if(o){var a=(0,e.createHeaderLabel)(t.name,o);u.push(a)}}})),n.rightColumn.forEach((function(t){if("field"===t.type){var n=r.find((function(e){return e.scope==="#/properties/".concat(t.name)}));n&&u.push(n)}else if("header"===t.type){var o=i[t.name];if(o){var a=(0,e.createHeaderLabel)(t.name,o);u.push(a)}}})),o.elements=u,o},e.getVisibleFields=function(t){var n=[];return Object.entries(t.json.properties).forEach((function(r){var i=r[0],o=r[1],u=t.ui.fields[i];(0,e.isFieldVisible)(o)&&u&&n.push({name:i,property:o,uiField:u})})),n},e.groupFieldsBySection=function(t,e){var n={};return t.forEach((function(t){var r=t.uiField.parent;e[r]&&(n[r]||(n[r]=[]),n[r].push(t))})),n};var n=function(t,e){var n;if("array"!==t.type||!(null===(n=t.items)||void 0===n?void 0:n.properties))throw new Error("Collection property must be an array with item properties");var r=t.items.properties,i=[],o=function(t,e){var n={type:"Control",scope:"#/properties/".concat(t),label:e.title||t,options:{}};switch(e.type){case"string":"uri"===e.format&&(n.options.format="file",n.options.accept="image/*");break;case"number":n.options.format="number"}return e.description&&(n.options.description=e.description),n};return e&&(e.leftColumn||e.rightColumn)?(e.leftColumn&&e.leftColumn.forEach((function(t){r[t]&&i.push(o(t,r[t]))})),e.rightColumn&&e.rightColumn.forEach((function(t){r[t]&&i.push(o(t,r[t]))}))):Object.entries(r).forEach((function(t){var e=t[0],n=t[1];i.push(o(e,n))})),{type:"VerticalLayout",elements:i}}},271:(t,e,n)=>{n.r(e),n.d(e,{add:()=>w,after:()=>L,ary:()=>ie,assign:()=>He,assignIn:()=>Xe,assignInWith:()=>tn,assignWith:()=>nn,at:()=>Dn,attempt:()=>Yn,before:()=>Jn,bind:()=>Zn,bindAll:()=>Xn,bindKey:()=>tr,camelCase:()=>ti,capitalize:()=>br,castArray:()=>ei,ceil:()=>oi,chain:()=>ui,chunk:()=>si,clamp:()=>li,clone:()=>co,cloneDeep:()=>so,cloneDeepWith:()=>fo,cloneWith:()=>lo,commit:()=>po,compact:()=>ho,concat:()=>vo,cond:()=>Ko,conforms:()=>$o,conformsTo:()=>Ho,constant:()=>Wt,countBy:()=>ru,create:()=>iu,curry:()=>uu,curryRight:()=>cu,debounce:()=>pu,deburr:()=>Sr,default:()=>lv,defaultTo:()=>hu,defaults:()=>gu,defaultsDeep:()=>Su,defer:()=>ku,delay:()=>Mu,difference:()=>Wu,differenceBy:()=>Cu,differenceWith:()=>Lu,divide:()=>Du,drop:()=>Fu,dropRight:()=>Nu,dropRightWhile:()=>Uu,dropWhile:()=>qu,each:()=>Vu,eachRight:()=>Gu,endsWith:()=>Zu,entries:()=>Qu,entriesIn:()=>ta,eq:()=>ue,escape:()=>ia,escapeRegExp:()=>aa,every:()=>fa,extend:()=>Xe,extendWith:()=>tn,fill:()=>pa,filter:()=>va,find:()=>ma,findIndex:()=>ga,findKey:()=>ba,findLast:()=>xa,findLastIndex:()=>wa,findLastKey:()=>Ea,first:()=>Sa,flatMap:()=>ka,flatMapDeep:()=>Ma,flatMapDepth:()=>Ba,flatten:()=>Cn,flattenDeep:()=>Wa,flattenDepth:()=>Ta,flip:()=>Ca,floor:()=>La,flow:()=>Fa,flowRight:()=>Na,forEach:()=>Vu,forEachRight:()=>Gu,forIn:()=>za,forInRight:()=>Ua,forOwn:()=>qa,forOwnRight:()=>Ka,fromPairs:()=>Va,functions:()=>Ha,functionsIn:()=>Ya,get:()=>Rn,groupBy:()=>Ga,gt:()=>Qa,gte:()=>tc,has:()=>rc,hasIn:()=>Fo,head:()=>Sa,identity:()=>D,inRange:()=>uc,includes:()=>lc,indexOf:()=>hc,initial:()=>vc,intersection:()=>mc,intersectionBy:()=>_c,intersectionWith:()=>bc,invert:()=>wc,invertBy:()=>Ac,invoke:()=>Rc,invokeMap:()=>Mc,isArguments:()=>xe,isArray:()=>m,isArrayBuffer:()=>Pc,isArrayLike:()=>ve,isArrayLikeObject:()=>_u,isBoolean:()=>Wc,isBuffer:()=>ke,isDate:()=>Cc,isElement:()=>Lc,isEmpty:()=>Fc,isEqual:()=>Nc,isEqualWith:()=>zc,isError:()=>$n,isFinite:()=>qc,isFunction:()=>F,isInteger:()=>Kc,isLength:()=>he,isMap:()=>to,isMatch:()=>Vc,isMatchWith:()=>$c,isNaN:()=>Yc,isNative:()=>Gc,isNil:()=>Zc,isNull:()=>Xc,isNumber:()=>Hc,isObject:()=>I,isObjectLike:()=>v,isPlainObject:()=>Vn,isRegExp:()=>ts,isSafeInteger:()=>es,isSet:()=>no,isString:()=>ac,isSymbol:()=>d,isTypedArray:()=>Le,isUndefined:()=>ns,isWeakMap:()=>rs,isWeakSet:()=>is,iteratee:()=>os,join:()=>as,kebabCase:()=>cs,keyBy:()=>ss,keys:()=>Ke,keysIn:()=>Ge,last:()=>Tu,lastIndexOf:()=>ps,lodash:()=>St,lowerCase:()=>hs,lowerFirst:()=>vs,lt:()=>ys,lte:()=>gs,map:()=>Ia,mapKeys:()=>ms,mapValues:()=>_s,matches:()=>bs,matchesProperty:()=>js,max:()=>ws,maxBy:()=>xs,mean:()=>As,meanBy:()=>Is,memoize:()=>jn,merge:()=>Rs,mergeWith:()=>Eu,method:()=>Ms,methodOf:()=>Bs,min:()=>Ps,minBy:()=>Ws,mixin:()=>Ts,multiply:()=>Cs,negate:()=>Ls,next:()=>Ns,noop:()=>vt,now:()=>su,nth:()=>Us,nthArg:()=>qs,omit:()=>$s,omitBy:()=>Gs,once:()=>Zs,orderBy:()=>tf,over:()=>nf,overArgs:()=>af,overEvery:()=>cf,overSome:()=>sf,pad:()=>Rf,padEnd:()=>Mf,padStart:()=>Bf,parseInt:()=>Tf,partial:()=>Lf,partialRight:()=>Ff,partition:()=>Nf,pick:()=>zf,pickBy:()=>Js,plant:()=>Uf,property:()=>Uo,propertyOf:()=>qf,pull:()=>Yf,pullAll:()=>Hf,pullAllBy:()=>Jf,pullAllWith:()=>Gf,pullAt:()=>Qf,random:()=>ul,range:()=>fl,rangeRight:()=>ll,rearg:()=>hl,reduce:()=>dl,reduceRight:()=>gl,reject:()=>ml,remove:()=>_l,repeat:()=>bl,replace:()=>jl,rest:()=>Ol,result:()=>wl,reverse:()=>El,round:()=>Sl,sample:()=>kl,sampleSize:()=>Pl,set:()=>Wl,setWith:()=>Tl,shuffle:()=>Dl,size:()=>Fl,slice:()=>Nl,snakeCase:()=>zl,some:()=>ql,sortBy:()=>Kl,sortedIndex:()=>Jl,sortedIndexBy:()=>Gl,sortedIndexOf:()=>Zl,sortedLastIndex:()=>Xl,sortedLastIndexBy:()=>Ql,sortedLastIndexOf:()=>tp,sortedUniq:()=>np,sortedUniqBy:()=>rp,split:()=>ip,spread:()=>up,startCase:()=>ap,startsWith:()=>cp,stubArray:()=>ji,stubFalse:()=>Ee,stubObject:()=>sp,stubString:()=>fp,stubTrue:()=>lp,subtract:()=>pp,sum:()=>hp,sumBy:()=>vp,tail:()=>dp,take:()=>yp,takeRight:()=>gp,takeRightWhile:()=>mp,takeWhile:()=>_p,tap:()=>bp,template:()=>Cp,templateSettings:()=>Ap,throttle:()=>Lp,thru:()=>Dp,times:()=>zp,toArray:()=>Fs,toFinite:()=>T,toInteger:()=>C,toIterator:()=>Up,toJSON:()=>Kp,toLength:()=>la,toLower:()=>Vp,toNumber:()=>P,toPairs:()=>Qu,toPairsIn:()=>ta,toPath:()=>$p,toPlainObject:()=>ju,toSafeInteger:()=>Hp,toString:()=>Sn,toUpper:()=>Yp,transform:()=>Jp,trim:()=>Xp,trimEnd:()=>Qp,trimStart:()=>eh,truncate:()=>rh,unary:()=>ih,unescape:()=>ch,union:()=>lh,unionBy:()=>ph,unionWith:()=>hh,uniq:()=>vh,uniqBy:()=>dh,uniqWith:()=>yh,uniqueId:()=>mh,unset:()=>_h,unzip:()=>jh,unzipWith:()=>Oh,update:()=>xh,updateWith:()=>Eh,upperCase:()=>Sh,upperFirst:()=>_r,value:()=>Kp,valueOf:()=>Kp,values:()=>sc,valuesIn:()=>Ah,without:()=>Ih,words:()=>Zr,wrap:()=>kh,wrapperAt:()=>Rh,wrapperChain:()=>Mh,wrapperCommit:()=>po,wrapperLodash:()=>St,wrapperNext:()=>Ns,wrapperPlant:()=>Uf,wrapperReverse:()=>Bh,wrapperToIterator:()=>Up,wrapperValue:()=>Kp,xor:()=>Wh,xorBy:()=>Th,xorWith:()=>Ch,zip:()=>Lh,zipObject:()=>Fh,zipObjectDeep:()=>Nh,zipWith:()=>zh});const r="object"==typeof global&&global&&global.Object===Object&&global;var i="object"==typeof self&&self&&self.Object===Object&&self;const o=r||i||Function("return this")(),u=o.Symbol;var a=Object.prototype,c=a.hasOwnProperty,s=a.toString,f=u?u.toStringTag:void 0;var l=Object.prototype.toString;var p=u?u.toStringTag:void 0;const h=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":p&&p in Object(t)?function(t){var e=c.call(t,f),n=t[f];try{t[f]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[f]=n:delete t[f]),i}(t):function(t){return l.call(t)}(t)},v=function(t){return null!=t&&"object"==typeof t},d=function(t){return"symbol"==typeof t||v(t)&&"[object Symbol]"==h(t)},y=function(t){return"number"==typeof t?t:d(t)?NaN:+t},g=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i},m=Array.isArray;var _=u?u.prototype:void 0,b=_?_.toString:void 0;const j=function t(e){if("string"==typeof e)return e;if(m(e))return g(e,t)+"";if(d(e))return b?b.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},O=function(t,e){return function(n,r){var i;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=j(n),r=j(r)):(n=y(n),r=y(r)),i=t(n,r)}return i}},w=O((function(t,e){return t+e}),0);var x=/\s/;const E=function(t){for(var e=t.length;e--&&x.test(t.charAt(e)););return e};var S=/^\s+/;const A=function(t){return t?t.slice(0,E(t)+1).replace(S,""):t},I=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var k=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,M=/^0o[0-7]+$/i,B=parseInt;const P=function(t){if("number"==typeof t)return t;if(d(t))return NaN;if(I(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=I(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=A(t);var n=R.test(t);return n||M.test(t)?B(t.slice(2),n?2:8):k.test(t)?NaN:+t};var W=1/0;const T=function(t){return t?(t=P(t))===W||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},C=function(t){var e=T(t),n=e%1;return e==e?n?e-n:e:0},L=function(t,e){if("function"!=typeof e)throw new TypeError("Expected a function");return t=C(t),function(){if(--t<1)return e.apply(this,arguments)}},D=function(t){return t},F=function(t){if(!I(t))return!1;var e=h(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},N=o["__core-js_shared__"];var z,U=(z=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"";var q=Function.prototype.toString;const K=function(t){if(null!=t){try{return q.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var V=/^\[object .+?Constructor\]$/,$=Function.prototype,H=Object.prototype,Y=$.toString,J=H.hasOwnProperty,G=RegExp("^"+Y.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Z=function(t){return!(!I(t)||function(t){return!!U&&U in t}(t))&&(F(t)?G:V).test(K(t))},X=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Z(n)?n:void 0},Q=X(o,"WeakMap"),tt=Q&&new Q;var et=tt?function(t,e){return tt.set(t,e),t}:D;const nt=et;var rt=Object.create;const it=function(){function t(){}return function(e){if(!I(e))return{};if(rt)return rt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),ot=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=it(t.prototype),r=t.apply(n,e);return I(r)?r:n}},ut=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var at=Math.max;const ct=function(t,e,n,r){for(var i=-1,o=t.length,u=n.length,a=-1,c=e.length,s=at(o-u,0),f=Array(c+s),l=!r;++a<c;)f[a]=e[a];for(;++i<u;)(l||i<o)&&(f[n[i]]=t[i]);for(;s--;)f[a++]=t[i++];return f};var st=Math.max;const ft=function(t,e,n,r){for(var i=-1,o=t.length,u=-1,a=n.length,c=-1,s=e.length,f=st(o-a,0),l=Array(f+s),p=!r;++i<f;)l[i]=t[i];for(var h=i;++c<s;)l[h+c]=e[c];for(;++u<a;)(p||i<o)&&(l[h+n[u]]=t[i++]);return l},lt=function(){};function pt(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}pt.prototype=it(lt.prototype),pt.prototype.constructor=pt;const ht=pt,vt=function(){};var dt=tt?function(t){return tt.get(t)}:vt;const yt=dt,gt={};var mt=Object.prototype.hasOwnProperty;const _t=function(t){for(var e=t.name+"",n=gt[e],r=mt.call(gt,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e};function bt(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}bt.prototype=it(lt.prototype),bt.prototype.constructor=bt;const jt=bt,Ot=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e},wt=function(t){if(t instanceof ht)return t.clone();var e=new jt(t.__wrapped__,t.__chain__);return e.__actions__=Ot(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e};var xt=Object.prototype.hasOwnProperty;function Et(t){if(v(t)&&!m(t)&&!(t instanceof ht)){if(t instanceof jt)return t;if(xt.call(t,"__wrapped__"))return wt(t)}return new jt(t)}Et.prototype=lt.prototype,Et.prototype.constructor=Et;const St=Et,At=function(t){var e=_t(t),n=St[e];if("function"!=typeof n||!(e in ht.prototype))return!1;if(t===n)return!0;var r=yt(n);return!!r&&t===r[0]};var It=Date.now;const kt=function(t){var e=0,n=0;return function(){var r=It(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},Rt=kt(nt);var Mt=/\{\n\/\* \[wrapped with (.+)\] \*/,Bt=/,? & /;var Pt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;const Wt=function(t){return function(){return t}};var Tt=function(){try{var t=X(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const Ct=Tt;var Lt=Ct?function(t,e){return Ct(t,"toString",{configurable:!0,enumerable:!1,value:Wt(e),writable:!0})}:D;const Dt=kt(Lt),Ft=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t},Nt=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1},zt=function(t){return t!=t},Ut=function(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Nt(t,zt,n)},qt=function(t,e){return!(null==t||!t.length)&&Ut(t,e,0)>-1};var Kt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];const Vt=function(t,e,n){var r=e+"";return Dt(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Pt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ft(Kt,(function(n){var r="_."+n[0];e&n[1]&&!qt(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(Mt);return e?e[1].split(Bt):[]}(r),n)))},$t=function(t,e,n,r,i,o,u,a,c,s){var f=8&e;e|=f?32:64,4&(e&=~(f?64:32))||(e&=-4);var l=[t,e,i,f?o:void 0,f?u:void 0,f?void 0:o,f?void 0:u,a,c,s],p=n.apply(void 0,l);return At(t)&&Rt(p,l),p.placeholder=r,Vt(p,t,e)},Ht=function(t){return t.placeholder};var Yt=/^(?:0|[1-9]\d*)$/;const Jt=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Yt.test(t))&&t>-1&&t%1==0&&t<e};var Gt=Math.min;var Zt="__lodash_placeholder__";const Xt=function(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var u=t[n];u!==e&&u!==Zt||(t[n]=Zt,o[i++]=n)}return o},Qt=function t(e,n,r,i,u,a,c,s,f,l){var p=128&n,h=1&n,v=2&n,d=24&n,y=512&n,g=v?void 0:ot(e);return function m(){for(var _=arguments.length,b=Array(_),j=_;j--;)b[j]=arguments[j];if(d)var O=Ht(m),w=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(b,O);if(i&&(b=ct(b,i,u,d)),a&&(b=ft(b,a,c,d)),_-=w,d&&_<l){var x=Xt(b,O);return $t(e,n,t,m.placeholder,r,b,x,s,f,l-_)}var E=h?r:this,S=v?E[e]:e;return _=b.length,s?b=function(t,e){for(var n=t.length,r=Gt(e.length,n),i=Ot(t);r--;){var o=e[r];t[r]=Jt(o,n)?i[o]:void 0}return t}(b,s):y&&_>1&&b.reverse(),p&&f<_&&(b.length=f),this&&this!==o&&this instanceof m&&(S=g||ot(S)),S.apply(E,b)}};var te="__lodash_placeholder__",ee=Math.min;var ne=Math.max;const re=function(t,e,n,r,i,u,a,c){var s=2&e;if(!s&&"function"!=typeof t)throw new TypeError("Expected a function");var f=r?r.length:0;if(f||(e&=-97,r=i=void 0),a=void 0===a?a:ne(C(a),0),c=void 0===c?c:C(c),f-=i?i.length:0,64&e){var l=r,p=i;r=i=void 0}var h=s?void 0:yt(t),v=[t,e,n,r,i,l,p,u,a,c];if(h&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,u=128==r&&8==n||128==r&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!u)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var a=e[3];if(a){var c=t[3];t[3]=c?ct(c,a,e[4]):a,t[4]=c?Xt(t[3],te):e[4]}(a=e[5])&&(c=t[5],t[5]=c?ft(c,a,e[6]):a,t[6]=c?Xt(t[5],te):e[6]),(a=e[7])&&(t[7]=a),128&r&&(t[8]=null==t[8]?e[8]:ee(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(v,h),t=v[0],e=v[1],n=v[2],r=v[3],i=v[4],!(c=v[9]=void 0===v[9]?s?0:t.length:ne(v[9]-f,0))&&24&e&&(e&=-25),e&&1!=e)d=8==e||16==e?function(t,e,n){var r=ot(t);return function i(){for(var u=arguments.length,a=Array(u),c=u,s=Ht(i);c--;)a[c]=arguments[c];var f=u<3&&a[0]!==s&&a[u-1]!==s?[]:Xt(a,s);return(u-=f.length)<n?$t(t,e,Qt,i.placeholder,void 0,a,f,void 0,void 0,n-u):ut(this&&this!==o&&this instanceof i?r:t,this,a)}}(t,e,c):32!=e&&33!=e||i.length?Qt.apply(void 0,v):function(t,e,n,r){var i=1&e,u=ot(t);return function e(){for(var a=-1,c=arguments.length,s=-1,f=r.length,l=Array(f+c),p=this&&this!==o&&this instanceof e?u:t;++s<f;)l[s]=r[s];for(;c--;)l[s++]=arguments[++a];return ut(p,i?n:this,l)}}(t,e,n,r);else var d=function(t,e,n){var r=1&e,i=ot(t);return function e(){return(this&&this!==o&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Vt((h?nt:Rt)(d,v),t,e)},ie=function(t,e,n){return e=n?void 0:e,e=t&&null==e?t.length:e,re(t,128,void 0,void 0,void 0,void 0,e)},oe=function(t,e,n){"__proto__"==e&&Ct?Ct(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},ue=function(t,e){return t===e||t!=t&&e!=e};var ae=Object.prototype.hasOwnProperty;const ce=function(t,e,n){var r=t[e];ae.call(t,e)&&ue(r,n)&&(void 0!==n||e in t)||oe(t,e,n)},se=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,u=e.length;++o<u;){var a=e[o],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),i?oe(n,a,c):ce(n,a,c)}return n};var fe=Math.max;const le=function(t,e,n){return e=fe(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=fe(r.length-e,0),u=Array(o);++i<o;)u[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(u),ut(t,this,a)}},pe=function(t,e){return Dt(le(t,e,D),t+"")},he=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},ve=function(t){return null!=t&&he(t.length)&&!F(t)},de=function(t,e,n){if(!I(n))return!1;var r=typeof e;return!!("number"==r?ve(n)&&Jt(e,n.length):"string"==r&&e in n)&&ue(n[e],t)},ye=function(t){return pe((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,u&&de(n[0],n[1],u)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,o)}return e}))};var ge=Object.prototype;const me=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ge)},_e=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},be=function(t){return v(t)&&"[object Arguments]"==h(t)};var je=Object.prototype,Oe=je.hasOwnProperty,we=je.propertyIsEnumerable;const xe=be(function(){return arguments}())?be:function(t){return v(t)&&Oe.call(t,"callee")&&!we.call(t,"callee")},Ee=function(){return!1};var Se="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ae=Se&&"object"==typeof module&&module&&!module.nodeType&&module,Ie=Ae&&Ae.exports===Se?o.Buffer:void 0;const ke=(Ie?Ie.isBuffer:void 0)||Ee;var Re={};Re["[object Float32Array]"]=Re["[object Float64Array]"]=Re["[object Int8Array]"]=Re["[object Int16Array]"]=Re["[object Int32Array]"]=Re["[object Uint8Array]"]=Re["[object Uint8ClampedArray]"]=Re["[object Uint16Array]"]=Re["[object Uint32Array]"]=!0,Re["[object Arguments]"]=Re["[object Array]"]=Re["[object ArrayBuffer]"]=Re["[object Boolean]"]=Re["[object DataView]"]=Re["[object Date]"]=Re["[object Error]"]=Re["[object Function]"]=Re["[object Map]"]=Re["[object Number]"]=Re["[object Object]"]=Re["[object RegExp]"]=Re["[object Set]"]=Re["[object String]"]=Re["[object WeakMap]"]=!1;const Me=function(t){return function(e){return t(e)}};var Be="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pe=Be&&"object"==typeof module&&module&&!module.nodeType&&module,We=Pe&&Pe.exports===Be&&r.process;const Te=function(){try{return Pe&&Pe.require&&Pe.require("util").types||We&&We.binding&&We.binding("util")}catch(t){}}();var Ce=Te&&Te.isTypedArray;const Le=Ce?Me(Ce):function(t){return v(t)&&he(t.length)&&!!Re[h(t)]};var De=Object.prototype.hasOwnProperty;const Fe=function(t,e){var n=m(t),r=!n&&xe(t),i=!n&&!r&&ke(t),o=!n&&!r&&!i&&Le(t),u=n||r||i||o,a=u?_e(t.length,String):[],c=a.length;for(var s in t)!e&&!De.call(t,s)||u&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Jt(s,c))||a.push(s);return a},Ne=function(t,e){return function(n){return t(e(n))}},ze=Ne(Object.keys,Object);var Ue=Object.prototype.hasOwnProperty;const qe=function(t){if(!me(t))return ze(t);var e=[];for(var n in Object(t))Ue.call(t,n)&&"constructor"!=n&&e.push(n);return e},Ke=function(t){return ve(t)?Fe(t):qe(t)};var Ve=Object.prototype.hasOwnProperty,$e=ye((function(t,e){if(me(e)||ve(e))se(e,Ke(e),t);else for(var n in e)Ve.call(e,n)&&ce(t,n,e[n])}));const He=$e;var Ye=Object.prototype.hasOwnProperty;const Je=function(t){if(!I(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=me(t),n=[];for(var r in t)("constructor"!=r||!e&&Ye.call(t,r))&&n.push(r);return n},Ge=function(t){return ve(t)?Fe(t,!0):Je(t)};var Ze=ye((function(t,e){se(e,Ge(e),t)}));const Xe=Ze;var Qe=ye((function(t,e,n,r){se(e,Ge(e),t,r)}));const tn=Qe;var en=ye((function(t,e,n,r){se(e,Ke(e),t,r)}));const nn=en;var rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,on=/^\w*$/;const un=function(t,e){if(m(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!d(t))||on.test(t)||!rn.test(t)||null!=e&&t in Object(e)},an=X(Object,"create");var cn=Object.prototype.hasOwnProperty;var sn=Object.prototype.hasOwnProperty;function fn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}fn.prototype.clear=function(){this.__data__=an?an(null):{},this.size=0},fn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},fn.prototype.get=function(t){var e=this.__data__;if(an){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return cn.call(e,t)?e[t]:void 0},fn.prototype.has=function(t){var e=this.__data__;return an?void 0!==e[t]:sn.call(e,t)},fn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=an&&void 0===e?"__lodash_hash_undefined__":e,this};const ln=fn,pn=function(t,e){for(var n=t.length;n--;)if(ue(t[n][0],e))return n;return-1};var hn=Array.prototype.splice;function vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}vn.prototype.clear=function(){this.__data__=[],this.size=0},vn.prototype.delete=function(t){var e=this.__data__,n=pn(e,t);return!(n<0||(n==e.length-1?e.pop():hn.call(e,n,1),--this.size,0))},vn.prototype.get=function(t){var e=this.__data__,n=pn(e,t);return n<0?void 0:e[n][1]},vn.prototype.has=function(t){return pn(this.__data__,t)>-1},vn.prototype.set=function(t,e){var n=this.__data__,r=pn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};const dn=vn,yn=X(o,"Map"),gn=function(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map};function mn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}mn.prototype.clear=function(){this.size=0,this.__data__={hash:new ln,map:new(yn||dn),string:new ln}},mn.prototype.delete=function(t){var e=gn(this,t).delete(t);return this.size-=e?1:0,e},mn.prototype.get=function(t){return gn(this,t).get(t)},mn.prototype.has=function(t){return gn(this,t).has(t)},mn.prototype.set=function(t,e){var n=gn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};const _n=mn;function bn(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return n.cache=o.set(i,u)||o,u};return n.cache=new(bn.Cache||_n),n}bn.Cache=_n;const jn=bn;var On=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wn=/\\(\\)?/g,xn=function(t){var e=jn(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(On,(function(t,n,r,i){e.push(r?i.replace(wn,"$1"):n||t)})),e}));const En=xn,Sn=function(t){return null==t?"":j(t)},An=function(t,e){return m(t)?t:un(t,e)?[t]:En(Sn(t))},In=function(t){if("string"==typeof t||d(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},kn=function(t,e){for(var n=0,r=(e=An(e,t)).length;null!=t&&n<r;)t=t[In(e[n++])];return n&&n==r?t:void 0},Rn=function(t,e,n){var r=null==t?void 0:kn(t,e);return void 0===r?n:r},Mn=function(t,e){for(var n=-1,r=e.length,i=Array(r),o=null==t;++n<r;)i[n]=o?void 0:Rn(t,e[n]);return i},Bn=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t};var Pn=u?u.isConcatSpreadable:void 0;const Wn=function(t){return m(t)||xe(t)||!!(Pn&&t&&t[Pn])},Tn=function t(e,n,r,i,o){var u=-1,a=e.length;for(r||(r=Wn),o||(o=[]);++u<a;){var c=e[u];n>0&&r(c)?n>1?t(c,n-1,r,i,o):Bn(o,c):i||(o[o.length]=c)}return o},Cn=function(t){return null!=t&&t.length?Tn(t,1):[]},Ln=function(t){return Dt(le(t,void 0,Cn),t+"")},Dn=Ln(Mn),Fn=Ne(Object.getPrototypeOf,Object);var Nn=Function.prototype,zn=Object.prototype,Un=Nn.toString,qn=zn.hasOwnProperty,Kn=Un.call(Object);const Vn=function(t){if(!v(t)||"[object Object]"!=h(t))return!1;var e=Fn(t);if(null===e)return!0;var n=qn.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Un.call(n)==Kn},$n=function(t){if(!v(t))return!1;var e=h(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Vn(t)};var Hn=pe((function(t,e){try{return ut(t,void 0,e)}catch(t){return $n(t)?t:new Error(t)}}));const Yn=Hn,Jn=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=C(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}};var Gn=pe((function(t,e,n){var r=1;if(n.length){var i=Xt(n,Ht(Gn));r|=32}return re(t,r,e,n,i)}));Gn.placeholder={};const Zn=Gn,Xn=Ln((function(t,e){return Ft(e,(function(e){e=In(e),oe(t,e,Zn(t[e],t))})),t}));var Qn=pe((function(t,e,n){var r=3;if(n.length){var i=Xt(n,Ht(Qn));r|=32}return re(e,r,t,n,i)}));Qn.placeholder={};const tr=Qn,er=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o},nr=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:er(t,e,n)};var rr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const ir=function(t){return rr.test(t)};var or="\\ud800-\\udfff",ur="["+or+"]",ar="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",cr="\\ud83c[\\udffb-\\udfff]",sr="[^"+or+"]",fr="(?:\\ud83c[\\udde6-\\uddff]){2}",lr="[\\ud800-\\udbff][\\udc00-\\udfff]",pr="(?:"+ar+"|"+cr+")?",hr="[\\ufe0e\\ufe0f]?",vr=hr+pr+"(?:\\u200d(?:"+[sr,fr,lr].join("|")+")"+hr+pr+")*",dr="(?:"+[sr+ar+"?",ar,fr,lr,ur].join("|")+")",yr=RegExp(cr+"(?="+cr+")|"+dr+vr,"g");const gr=function(t){return ir(t)?function(t){return t.match(yr)||[]}(t):function(t){return t.split("")}(t)},mr=function(t){return function(e){e=Sn(e);var n=ir(e)?gr(e):void 0,r=n?n[0]:e.charAt(0),i=n?nr(n,1).join(""):e.slice(1);return r[t]()+i}},_r=mr("toUpperCase"),br=function(t){return _r(Sn(t).toLowerCase())},jr=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n},Or=function(t){return function(e){return null==t?void 0:t[e]}},wr=Or({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});var xr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Er=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const Sr=function(t){return(t=Sn(t))&&t.replace(xr,wr).replace(Er,"")};var Ar=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Ir=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var kr="\\ud800-\\udfff",Rr="\\u2700-\\u27bf",Mr="a-z\\xdf-\\xf6\\xf8-\\xff",Br="A-Z\\xc0-\\xd6\\xd8-\\xde",Pr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",Wr="["+Pr+"]",Tr="\\d+",Cr="["+Rr+"]",Lr="["+Mr+"]",Dr="[^"+kr+Pr+Tr+Rr+Mr+Br+"]",Fr="(?:\\ud83c[\\udde6-\\uddff]){2}",Nr="[\\ud800-\\udbff][\\udc00-\\udfff]",zr="["+Br+"]",Ur="(?:"+Lr+"|"+Dr+")",qr="(?:"+zr+"|"+Dr+")",Kr="(?:['’](?:d|ll|m|re|s|t|ve))?",Vr="(?:['’](?:D|LL|M|RE|S|T|VE))?",$r="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Hr="[\\ufe0e\\ufe0f]?",Yr=Hr+$r+"(?:\\u200d(?:"+["[^"+kr+"]",Fr,Nr].join("|")+")"+Hr+$r+")*",Jr="(?:"+[Cr,Fr,Nr].join("|")+")"+Yr,Gr=RegExp([zr+"?"+Lr+"+"+Kr+"(?="+[Wr,zr,"$"].join("|")+")",qr+"+"+Vr+"(?="+[Wr,zr+Ur,"$"].join("|")+")",zr+"?"+Ur+"+"+Kr,zr+"+"+Vr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tr,Jr].join("|"),"g");const Zr=function(t,e,n){return t=Sn(t),void 0===(e=n?void 0:e)?function(t){return Ir.test(t)}(t)?function(t){return t.match(Gr)||[]}(t):function(t){return t.match(Ar)||[]}(t):t.match(e)||[]};var Xr=RegExp("['’]","g");const Qr=function(t){return function(e){return jr(Zr(Sr(e).replace(Xr,"")),t,"")}};const ti=Qr((function(t,e,n){return e=e.toLowerCase(),t+(n?br(e):e)})),ei=function(){if(!arguments.length)return[];var t=arguments[0];return m(t)?t:[t]};var ni=o.isFinite,ri=Math.min;const ii=function(t){var e=Math[t];return function(t,n){if(t=P(t),(n=null==n?0:ri(C(n),292))&&ni(t)){var r=(Sn(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return+((r=(Sn(i)+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}},oi=ii("ceil"),ui=function(t){var e=St(t);return e.__chain__=!0,e};var ai=Math.ceil,ci=Math.max;const si=function(t,e,n){e=(n?de(t,e,n):void 0===e)?1:ci(C(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,o=0,u=Array(ai(r/e));i<r;)u[o++]=er(t,i,i+=e);return u},fi=function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t},li=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=P(n))==n?n:0),void 0!==e&&(e=(e=P(e))==e?e:0),fi(P(t),e,n)};function pi(t){var e=this.__data__=new dn(t);this.size=e.size}pi.prototype.clear=function(){this.__data__=new dn,this.size=0},pi.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},pi.prototype.get=function(t){return this.__data__.get(t)},pi.prototype.has=function(t){return this.__data__.has(t)},pi.prototype.set=function(t,e){var n=this.__data__;if(n instanceof dn){var r=n.__data__;if(!yn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new _n(r)}return n.set(t,e),this.size=n.size,this};const hi=pi,vi=function(t,e){return t&&se(e,Ke(e),t)};var di="object"==typeof exports&&exports&&!exports.nodeType&&exports,yi=di&&"object"==typeof module&&module&&!module.nodeType&&module,gi=yi&&yi.exports===di?o.Buffer:void 0,mi=gi?gi.allocUnsafe:void 0;const _i=function(t,e){if(e)return t.slice();var n=t.length,r=mi?mi(n):new t.constructor(n);return t.copy(r),r},bi=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var u=t[n];e(u,n,t)&&(o[i++]=u)}return o},ji=function(){return[]};var Oi=Object.prototype.propertyIsEnumerable,wi=Object.getOwnPropertySymbols;const xi=wi?function(t){return null==t?[]:(t=Object(t),bi(wi(t),(function(e){return Oi.call(t,e)})))}:ji;const Ei=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Bn(e,xi(t)),t=Fn(t);return e}:ji,Si=function(t,e,n){var r=e(t);return m(t)?r:Bn(r,n(t))},Ai=function(t){return Si(t,Ke,xi)},Ii=function(t){return Si(t,Ge,Ei)},ki=X(o,"DataView"),Ri=X(o,"Promise"),Mi=X(o,"Set");var Bi="[object Map]",Pi="[object Promise]",Wi="[object Set]",Ti="[object WeakMap]",Ci="[object DataView]",Li=K(ki),Di=K(yn),Fi=K(Ri),Ni=K(Mi),zi=K(Q),Ui=h;(ki&&Ui(new ki(new ArrayBuffer(1)))!=Ci||yn&&Ui(new yn)!=Bi||Ri&&Ui(Ri.resolve())!=Pi||Mi&&Ui(new Mi)!=Wi||Q&&Ui(new Q)!=Ti)&&(Ui=function(t){var e=h(t),n="[object Object]"==e?t.constructor:void 0,r=n?K(n):"";if(r)switch(r){case Li:return Ci;case Di:return Bi;case Fi:return Pi;case Ni:return Wi;case zi:return Ti}return e});const qi=Ui;var Ki=Object.prototype.hasOwnProperty;const Vi=o.Uint8Array,$i=function(t){var e=new t.constructor(t.byteLength);return new Vi(e).set(new Vi(t)),e};var Hi=/\w*$/;var Yi=u?u.prototype:void 0,Ji=Yi?Yi.valueOf:void 0;const Gi=function(t,e){var n=e?$i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},Zi=function(t,e,n){var r,i,o,u=t.constructor;switch(e){case"[object ArrayBuffer]":return $i(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return function(t,e){var n=e?$i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Gi(t,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return(o=new(i=t).constructor(i.source,Hi.exec(i))).lastIndex=i.lastIndex,o;case"[object Symbol]":return r=t,Ji?Object(Ji.call(r)):{}}},Xi=function(t){return"function"!=typeof t.constructor||me(t)?{}:it(Fn(t))};var Qi=Te&&Te.isMap;const to=Qi?Me(Qi):function(t){return v(t)&&"[object Map]"==qi(t)};var eo=Te&&Te.isSet;const no=eo?Me(eo):function(t){return v(t)&&"[object Set]"==qi(t)};var ro="[object Arguments]",io="[object Function]",oo="[object Object]",uo={};uo[ro]=uo["[object Array]"]=uo["[object ArrayBuffer]"]=uo["[object DataView]"]=uo["[object Boolean]"]=uo["[object Date]"]=uo["[object Float32Array]"]=uo["[object Float64Array]"]=uo["[object Int8Array]"]=uo["[object Int16Array]"]=uo["[object Int32Array]"]=uo["[object Map]"]=uo["[object Number]"]=uo[oo]=uo["[object RegExp]"]=uo["[object Set]"]=uo["[object String]"]=uo["[object Symbol]"]=uo["[object Uint8Array]"]=uo["[object Uint8ClampedArray]"]=uo["[object Uint16Array]"]=uo["[object Uint32Array]"]=!0,uo["[object Error]"]=uo[io]=uo["[object WeakMap]"]=!1;const ao=function t(e,n,r,i,o,u){var a,c=1&n,s=2&n,f=4&n;if(r&&(a=o?r(e,i,o,u):r(e)),void 0!==a)return a;if(!I(e))return e;var l=m(e);if(l){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Ki.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!c)return Ot(e,a)}else{var p=qi(e),h=p==io||"[object GeneratorFunction]"==p;if(ke(e))return _i(e,c);if(p==oo||p==ro||h&&!o){if(a=s||h?{}:Xi(e),!c)return s?function(t,e){return se(t,Ei(t),e)}(e,function(t,e){return t&&se(e,Ge(e),t)}(a,e)):function(t,e){return se(t,xi(t),e)}(e,vi(a,e))}else{if(!uo[p])return o?e:{};a=Zi(e,p,c)}}u||(u=new hi);var v=u.get(e);if(v)return v;u.set(e,a),no(e)?e.forEach((function(i){a.add(t(i,n,r,i,e,u))})):to(e)&&e.forEach((function(i,o){a.set(o,t(i,n,r,o,e,u))}));var d=l?void 0:(f?s?Ii:Ai:s?Ge:Ke)(e);return Ft(d||e,(function(i,o){d&&(i=e[o=i]),ce(a,o,t(i,n,r,o,e,u))})),a},co=function(t){return ao(t,4)},so=function(t){return ao(t,5)},fo=function(t,e){return ao(t,5,e="function"==typeof e?e:void 0)},lo=function(t,e){return ao(t,4,e="function"==typeof e?e:void 0)},po=function(){return new jt(this.value(),this.__chain__)},ho=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},vo=function(){var t=arguments.length;if(!t)return[];for(var e=Array(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return Bn(m(n)?Ot(n):[n],Tn(e,1))};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new _n;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},yo.prototype.has=function(t){return this.__data__.has(t)};const go=yo,mo=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},_o=function(t,e){return t.has(e)},bo=function(t,e,n,r,i,o){var u=1&n,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var s=o.get(t),f=o.get(e);if(s&&f)return s==e&&f==t;var l=-1,p=!0,h=2&n?new go:void 0;for(o.set(t,e),o.set(e,t);++l<a;){var v=t[l],d=e[l];if(r)var y=u?r(d,v,l,e,t,o):r(v,d,l,t,e,o);if(void 0!==y){if(y)continue;p=!1;break}if(h){if(!mo(e,(function(t,e){if(!_o(h,e)&&(v===t||i(v,t,n,r,o)))return h.push(e)}))){p=!1;break}}else if(v!==d&&!i(v,d,n,r,o)){p=!1;break}}return o.delete(t),o.delete(e),p},jo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n},Oo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var wo=u?u.prototype:void 0,xo=wo?wo.valueOf:void 0;var Eo=Object.prototype.hasOwnProperty;var So="[object Arguments]",Ao="[object Array]",Io="[object Object]",ko=Object.prototype.hasOwnProperty;const Ro=function(t,e,n,r,i,o){var u=m(t),a=m(e),c=u?Ao:qi(t),s=a?Ao:qi(e),f=(c=c==So?Io:c)==Io,l=(s=s==So?Io:s)==Io,p=c==s;if(p&&ke(t)){if(!ke(e))return!1;u=!0,f=!1}if(p&&!f)return o||(o=new hi),u||Le(t)?bo(t,e,n,r,i,o):function(t,e,n,r,i,o,u){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new Vi(t),new Vi(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ue(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=jo;case"[object Set]":var c=1&r;if(a||(a=Oo),t.size!=e.size&&!c)return!1;var s=u.get(t);if(s)return s==e;r|=2,u.set(t,e);var f=bo(a(t),a(e),r,i,o,u);return u.delete(t),f;case"[object Symbol]":if(xo)return xo.call(t)==xo.call(e)}return!1}(t,e,c,n,r,i,o);if(!(1&n)){var h=f&&ko.call(t,"__wrapped__"),v=l&&ko.call(e,"__wrapped__");if(h||v){var d=h?t.value():t,y=v?e.value():e;return o||(o=new hi),i(d,y,n,r,o)}}return!!p&&(o||(o=new hi),function(t,e,n,r,i,o){var u=1&n,a=Ai(t),c=a.length;if(c!=Ai(e).length&&!u)return!1;for(var s=c;s--;){var f=a[s];if(!(u?f in e:Eo.call(e,f)))return!1}var l=o.get(t),p=o.get(e);if(l&&p)return l==e&&p==t;var h=!0;o.set(t,e),o.set(e,t);for(var v=u;++s<c;){var d=t[f=a[s]],y=e[f];if(r)var g=u?r(y,d,f,e,t,o):r(d,y,f,t,e,o);if(!(void 0===g?d===y||i(d,y,n,r,o):g)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var m=t.constructor,_=e.constructor;m==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _||(h=!1)}return o.delete(t),o.delete(e),h}(t,e,n,r,i,o))},Mo=function t(e,n,r,i,o){return e===n||(null==e||null==n||!v(e)&&!v(n)?e!=e&&n!=n:Ro(e,n,r,i,t,o))},Bo=function(t,e,n,r){var i=n.length,o=i,u=!r;if(null==t)return!o;for(t=Object(t);i--;){var a=n[i];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){var c=(a=n[i])[0],s=t[c],f=a[1];if(u&&a[2]){if(void 0===s&&!(c in t))return!1}else{var l=new hi;if(r)var p=r(s,f,c,t,e,l);if(!(void 0===p?Mo(f,s,3,r,l):p))return!1}}return!0},Po=function(t){return t==t&&!I(t)},Wo=function(t){for(var e=Ke(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Po(i)]}return e},To=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}},Co=function(t){var e=Wo(t);return 1==e.length&&e[0][2]?To(e[0][0],e[0][1]):function(n){return n===t||Bo(n,t,e)}},Lo=function(t,e){return null!=t&&e in Object(t)},Do=function(t,e,n){for(var r=-1,i=(e=An(e,t)).length,o=!1;++r<i;){var u=In(e[r]);if(!(o=null!=t&&n(t,u)))break;t=t[u]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&he(i)&&Jt(u,i)&&(m(t)||xe(t))},Fo=function(t,e){return null!=t&&Do(t,e,Lo)},No=function(t,e){return un(t)&&Po(e)?To(In(t),e):function(n){var r=Rn(n,t);return void 0===r&&r===e?Fo(n,t):Mo(e,r,3)}},zo=function(t){return function(e){return null==e?void 0:e[t]}},Uo=function(t){return un(t)?zo(In(t)):function(t){return function(e){return kn(e,t)}}(t)},qo=function(t){return"function"==typeof t?t:null==t?D:"object"==typeof t?m(t)?No(t[0],t[1]):Co(t):Uo(t)},Ko=function(t){var e=null==t?0:t.length,n=qo;return t=e?g(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[n(t[0]),t[1]]})):[],pe((function(n){for(var r=-1;++r<e;){var i=t[r];if(ut(i[0],this,n))return ut(i[1],this,n)}}))},Vo=function(t,e,n){var r=n.length;if(null==t)return!r;for(t=Object(t);r--;){var i=n[r],o=e[i],u=t[i];if(void 0===u&&!(i in t)||!o(u))return!1}return!0},$o=function(t){return function(t){var e=Ke(t);return function(n){return Vo(n,t,e)}}(ao(t,1))},Ho=function(t,e){return null==e||Vo(t,e,Ke(e))},Yo=function(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var u=t[i];e(r,u,n(u),t)}return r},Jo=function(t){return function(e,n,r){for(var i=-1,o=Object(e),u=r(e),a=u.length;a--;){var c=u[t?a:++i];if(!1===n(o[c],c,o))break}return e}},Go=Jo(),Zo=function(t,e){return t&&Go(t,e,Ke)},Xo=function(t,e){return function(n,r){if(null==n)return n;if(!ve(n))return t(n,r);for(var i=n.length,o=e?i:-1,u=Object(n);(e?o--:++o<i)&&!1!==r(u[o],o,u););return n}},Qo=Xo(Zo),tu=function(t,e,n,r){return Qo(t,(function(t,i,o){e(r,t,n(t),o)})),r},eu=function(t,e){return function(n,r){var i=m(n)?Yo:tu,o=e?e():{};return i(n,t,qo(r),o)}};var nu=Object.prototype.hasOwnProperty;const ru=eu((function(t,e,n){nu.call(t,n)?++t[n]:oe(t,n,1)})),iu=function(t,e){var n=it(t);return null==e?n:vi(n,e)};function ou(t,e,n){var r=re(t,8,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return r.placeholder=ou.placeholder,r}ou.placeholder={};const uu=ou;function au(t,e,n){var r=re(t,16,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return r.placeholder=au.placeholder,r}au.placeholder={};const cu=au,su=function(){return o.Date.now()};var fu=Math.max,lu=Math.min;const pu=function(t,e,n){var r,i,o,u,a,c,s=0,f=!1,l=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function h(e){var n=r,o=i;return r=i=void 0,s=e,u=t.apply(o,n)}function v(t){var n=t-c;return void 0===c||n>=e||n<0||l&&t-s>=o}function d(){var t=su();if(v(t))return y(t);a=setTimeout(d,function(t){var n=e-(t-c);return l?lu(n,o-(t-s)):n}(t))}function y(t){return a=void 0,p&&r?h(t):(r=i=void 0,u)}function g(){var t=su(),n=v(t);if(r=arguments,i=this,c=t,n){if(void 0===a)return function(t){return s=t,a=setTimeout(d,e),f?h(t):u}(c);if(l)return clearTimeout(a),a=setTimeout(d,e),h(c)}return void 0===a&&(a=setTimeout(d,e)),u}return e=P(e)||0,I(n)&&(f=!!n.leading,o=(l="maxWait"in n)?fu(P(n.maxWait)||0,e):o,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),s=0,r=c=i=a=void 0},g.flush=function(){return void 0===a?u:y(su())},g},hu=function(t,e){return null==t||t!=t?e:t};var vu=Object.prototype,du=vu.hasOwnProperty,yu=pe((function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&de(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],u=Ge(o),a=-1,c=u.length;++a<c;){var s=u[a],f=t[s];(void 0===f||ue(f,vu[s])&&!du.call(t,s))&&(t[s]=o[s])}return t}));const gu=yu,mu=function(t,e,n){(void 0!==n&&!ue(t[e],n)||void 0===n&&!(e in t))&&oe(t,e,n)},_u=function(t){return v(t)&&ve(t)},bu=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},ju=function(t){return se(t,Ge(t))},Ou=function t(e,n,r,i,o){e!==n&&Go(n,(function(u,a){if(o||(o=new hi),I(u))!function(t,e,n,r,i,o,u){var a=bu(t,n),c=bu(e,n),s=u.get(c);if(s)mu(t,n,s);else{var f=o?o(a,c,n+"",t,e,u):void 0,l=void 0===f;if(l){var p=m(c),h=!p&&ke(c),v=!p&&!h&&Le(c);f=c,p||h||v?m(a)?f=a:_u(a)?f=Ot(a):h?(l=!1,f=_i(c,!0)):v?(l=!1,f=Gi(c,!0)):f=[]:Vn(c)||xe(c)?(f=a,xe(a)?f=ju(a):I(a)&&!F(a)||(f=Xi(c))):l=!1}l&&(u.set(c,f),i(f,c,r,o,u),u.delete(c)),mu(t,n,f)}}(e,n,a,r,t,i,o);else{var c=i?i(bu(e,a),u,a+"",e,n,o):void 0;void 0===c&&(c=u),mu(e,a,c)}}),Ge)},wu=function t(e,n,r,i,o,u){return I(e)&&I(n)&&(u.set(n,e),Ou(e,n,void 0,t,u),u.delete(n)),e};var xu=ye((function(t,e,n,r){Ou(t,e,n,r)}));const Eu=xu,Su=pe((function(t){return t.push(void 0,wu),ut(Eu,void 0,t)})),Au=function(t,e,n){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,n)}),e)};var Iu=pe((function(t,e){return Au(t,1,e)}));const ku=Iu;var Ru=pe((function(t,e,n){return Au(t,P(e)||0,n)}));const Mu=Ru,Bu=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1},Pu=function(t,e,n,r){var i=-1,o=qt,u=!0,a=t.length,c=[],s=e.length;if(!a)return c;n&&(e=g(e,Me(n))),r?(o=Bu,u=!1):e.length>=200&&(o=_o,u=!1,e=new go(e));t:for(;++i<a;){var f=t[i],l=null==n?f:n(f);if(f=r||0!==f?f:0,u&&l==l){for(var p=s;p--;)if(e[p]===l)continue t;c.push(f)}else o(e,l,r)||c.push(f)}return c};const Wu=pe((function(t,e){return _u(t)?Pu(t,Tn(e,1,_u,!0)):[]})),Tu=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Cu=pe((function(t,e){var n=Tu(e);return _u(n)&&(n=void 0),_u(t)?Pu(t,Tn(e,1,_u,!0),qo(n)):[]}));const Lu=pe((function(t,e){var n=Tu(e);return _u(n)&&(n=void 0),_u(t)?Pu(t,Tn(e,1,_u,!0),void 0,n):[]})),Du=O((function(t,e){return t/e}),1),Fu=function(t,e,n){var r=null==t?0:t.length;return r?(e=n||void 0===e?1:C(e),er(t,e<0?0:e,r)):[]},Nu=function(t,e,n){var r=null==t?0:t.length;return r?(e=n||void 0===e?1:C(e),er(t,0,(e=r-e)<0?0:e)):[]},zu=function(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?er(t,r?0:o,r?o+1:i):er(t,r?o+1:0,r?i:o)},Uu=function(t,e){return t&&t.length?zu(t,qo(e),!0,!0):[]},qu=function(t,e){return t&&t.length?zu(t,qo(e),!0):[]},Ku=function(t){return"function"==typeof t?t:D},Vu=function(t,e){return(m(t)?Ft:Qo)(t,Ku(e))},$u=function(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t},Hu=Jo(!0),Yu=function(t,e){return t&&Hu(t,e,Ke)},Ju=Xo(Yu,!0),Gu=function(t,e){return(m(t)?$u:Ju)(t,Ku(e))},Zu=function(t,e,n){t=Sn(t),e=j(e);var r=t.length,i=n=void 0===n?r:fi(C(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},Xu=function(t){return function(e){var n,r,i,o=qi(e);return"[object Map]"==o?jo(e):"[object Set]"==o?(n=e,r=-1,i=Array(n.size),n.forEach((function(t){i[++r]=[t,t]})),i):function(t,e){return g(e,(function(e){return[e,t[e]]}))}(e,t(e))}},Qu=Xu(Ke),ta=Xu(Ge),ea=Or({"&":"&","<":"<",">":">",'"':""","'":"'"});var na=/[&<>"']/g,ra=RegExp(na.source);const ia=function(t){return(t=Sn(t))&&ra.test(t)?t.replace(na,ea):t};var oa=/[\\^$.*+?()[\]{}|]/g,ua=RegExp(oa.source);const aa=function(t){return(t=Sn(t))&&ua.test(t)?t.replace(oa,"\\$&"):t},ca=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0},sa=function(t,e){var n=!0;return Qo(t,(function(t,r,i){return n=!!e(t,r,i)})),n},fa=function(t,e,n){var r=m(t)?ca:sa;return n&&de(t,e,n)&&(e=void 0),r(t,qo(e))},la=function(t){return t?fi(C(t),0,4294967295):0},pa=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&de(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=C(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:C(r))<0&&(r+=i),r=n>r?0:la(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},ha=function(t,e){var n=[];return Qo(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n},va=function(t,e){return(m(t)?bi:ha)(t,qo(e))},da=function(t){return function(e,n,r){var i=Object(e);if(!ve(e)){var o=qo(n);e=Ke(e),n=function(t){return o(i[t],t,i)}}var u=t(e,n,r);return u>-1?i[o?e[u]:u]:void 0}};var ya=Math.max;const ga=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:C(n);return i<0&&(i=ya(r+i,0)),Nt(t,qo(e),i)},ma=da(ga),_a=function(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r},ba=function(t,e){return _a(t,qo(e),Zo)};var ja=Math.max,Oa=Math.min;const wa=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=C(n),i=n<0?ja(r+i,0):Oa(i,r-1)),Nt(t,qo(e),i,!0)},xa=da(wa),Ea=function(t,e){return _a(t,qo(e),Yu)},Sa=function(t){return t&&t.length?t[0]:void 0},Aa=function(t,e){var n=-1,r=ve(t)?Array(t.length):[];return Qo(t,(function(t,i,o){r[++n]=e(t,i,o)})),r},Ia=function(t,e){return(m(t)?g:Aa)(t,qo(e))},ka=function(t,e){return Tn(Ia(t,e),1)};var Ra=1/0;const Ma=function(t,e){return Tn(Ia(t,e),Ra)},Ba=function(t,e,n){return n=void 0===n?1:C(n),Tn(Ia(t,e),n)};var Pa=1/0;const Wa=function(t){return null!=t&&t.length?Tn(t,Pa):[]},Ta=function(t,e){return null!=t&&t.length?(e=void 0===e?1:C(e),Tn(t,e)):[]},Ca=function(t){return re(t,512)},La=ii("floor"),Da=function(t){return Ln((function(e){var n=e.length,r=n,i=jt.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if("function"!=typeof o)throw new TypeError("Expected a function");if(i&&!u&&"wrapper"==_t(o))var u=new jt([],!0)}for(r=u?r:n;++r<n;){o=e[r];var a=_t(o),c="wrapper"==a?yt(o):void 0;u=c&&At(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[_t(c[0])].apply(u,c[3]):1==o.length&&At(o)?u[a]():u.thru(o)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&m(r))return u.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))},Fa=Da(),Na=Da(!0),za=function(t,e){return null==t?t:Go(t,Ku(e),Ge)},Ua=function(t,e){return null==t?t:Hu(t,Ku(e),Ge)},qa=function(t,e){return t&&Zo(t,Ku(e))},Ka=function(t,e){return t&&Yu(t,Ku(e))},Va=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},$a=function(t,e){return bi(e,(function(e){return F(t[e])}))},Ha=function(t){return null==t?[]:$a(t,Ke(t))},Ya=function(t){return null==t?[]:$a(t,Ge(t))};var Ja=Object.prototype.hasOwnProperty;const Ga=eu((function(t,e,n){Ja.call(t,n)?t[n].push(e):oe(t,n,[e])})),Za=function(t,e){return t>e},Xa=function(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=P(e),n=P(n)),t(e,n)}},Qa=Xa(Za),tc=Xa((function(t,e){return t>=e}));var ec=Object.prototype.hasOwnProperty;const nc=function(t,e){return null!=t&&ec.call(t,e)},rc=function(t,e){return null!=t&&Do(t,e,nc)};var ic=Math.max,oc=Math.min;const uc=function(t,e,n){return e=T(e),void 0===n?(n=e,e=0):n=T(n),function(t,e,n){return t>=oc(e,n)&&t<ic(e,n)}(t=P(t),e,n)},ac=function(t){return"string"==typeof t||!m(t)&&v(t)&&"[object String]"==h(t)},cc=function(t,e){return g(e,(function(e){return t[e]}))},sc=function(t){return null==t?[]:cc(t,Ke(t))};var fc=Math.max;const lc=function(t,e,n,r){t=ve(t)?t:sc(t),n=n&&!r?C(n):0;var i=t.length;return n<0&&(n=fc(i+n,0)),ac(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Ut(t,e,n)>-1};var pc=Math.max;const hc=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:C(n);return i<0&&(i=pc(r+i,0)),Ut(t,e,i)},vc=function(t){return null!=t&&t.length?er(t,0,-1):[]};var dc=Math.min;const yc=function(t,e,n){for(var r=n?Bu:qt,i=t[0].length,o=t.length,u=o,a=Array(o),c=1/0,s=[];u--;){var f=t[u];u&&e&&(f=g(f,Me(e))),c=dc(f.length,c),a[u]=!n&&(e||i>=120&&f.length>=120)?new go(u&&f):void 0}f=t[0];var l=-1,p=a[0];t:for(;++l<i&&s.length<c;){var h=f[l],v=e?e(h):h;if(h=n||0!==h?h:0,!(p?_o(p,v):r(s,v,n))){for(u=o;--u;){var d=a[u];if(!(d?_o(d,v):r(t[u],v,n)))continue t}p&&p.push(v),s.push(h)}}return s},gc=function(t){return _u(t)?t:[]},mc=pe((function(t){var e=g(t,gc);return e.length&&e[0]===t[0]?yc(e):[]}));const _c=pe((function(t){var e=Tu(t),n=g(t,gc);return e===Tu(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?yc(n,qo(e)):[]})),bc=pe((function(t){var e=Tu(t),n=g(t,gc);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?yc(n,void 0,e):[]})),jc=function(t,e){return function(n,r){return function(t,e,n,r){return Zo(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}};var Oc=Object.prototype.toString;const wc=jc((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Oc.call(e)),t[e]=n}),Wt(D));var xc=Object.prototype,Ec=xc.hasOwnProperty,Sc=xc.toString;const Ac=jc((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Sc.call(e)),Ec.call(t,e)?t[e].push(n):t[e]=[n]}),qo),Ic=function(t,e){return e.length<2?t:kn(t,er(e,0,-1))},kc=function(t,e,n){e=An(e,t);var r=null==(t=Ic(t,e))?t:t[In(Tu(e))];return null==r?void 0:ut(r,t,n)},Rc=pe(kc);const Mc=pe((function(t,e,n){var r=-1,i="function"==typeof e,o=ve(t)?Array(t.length):[];return Qo(t,(function(t){o[++r]=i?ut(e,t,n):kc(t,e,n)})),o}));var Bc=Te&&Te.isArrayBuffer;const Pc=Bc?Me(Bc):function(t){return v(t)&&"[object ArrayBuffer]"==h(t)},Wc=function(t){return!0===t||!1===t||v(t)&&"[object Boolean]"==h(t)};var Tc=Te&&Te.isDate;const Cc=Tc?Me(Tc):function(t){return v(t)&&"[object Date]"==h(t)},Lc=function(t){return v(t)&&1===t.nodeType&&!Vn(t)};var Dc=Object.prototype.hasOwnProperty;const Fc=function(t){if(null==t)return!0;if(ve(t)&&(m(t)||"string"==typeof t||"function"==typeof t.splice||ke(t)||Le(t)||xe(t)))return!t.length;var e=qi(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(me(t))return!qe(t).length;for(var n in t)if(Dc.call(t,n))return!1;return!0},Nc=function(t,e){return Mo(t,e)},zc=function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?Mo(t,e,void 0,n):!!r};var Uc=o.isFinite;const qc=function(t){return"number"==typeof t&&Uc(t)},Kc=function(t){return"number"==typeof t&&t==C(t)},Vc=function(t,e){return t===e||Bo(t,e,Wo(e))},$c=function(t,e,n){return n="function"==typeof n?n:void 0,Bo(t,e,Wo(e),n)},Hc=function(t){return"number"==typeof t||v(t)&&"[object Number]"==h(t)},Yc=function(t){return Hc(t)&&t!=+t},Jc=N?F:Ee,Gc=function(t){if(Jc(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Z(t)},Zc=function(t){return null==t},Xc=function(t){return null===t};var Qc=Te&&Te.isRegExp;const ts=Qc?Me(Qc):function(t){return v(t)&&"[object RegExp]"==h(t)};const es=function(t){return Kc(t)&&t>=-9007199254740991&&t<=9007199254740991},ns=function(t){return void 0===t},rs=function(t){return v(t)&&"[object WeakMap]"==qi(t)},is=function(t){return v(t)&&"[object WeakSet]"==h(t)},os=function(t){return qo("function"==typeof t?t:ao(t,1))};var us=Array.prototype.join;const as=function(t,e){return null==t?"":us.call(t,e)};const cs=Qr((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}));const ss=eu((function(t,e,n){oe(t,n,e)}));var fs=Math.max,ls=Math.min;const ps=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=C(n))<0?fs(r+i,0):ls(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):Nt(t,zt,i,!0)};const hs=Qr((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),vs=mr("toLowerCase"),ds=function(t,e){return t<e},ys=Xa(ds),gs=Xa((function(t,e){return t<=e})),ms=function(t,e){var n={};return e=qo(e),Zo(t,(function(t,r,i){oe(n,e(t,r,i),t)})),n},_s=function(t,e){var n={};return e=qo(e),Zo(t,(function(t,r,i){oe(n,r,e(t,r,i))})),n},bs=function(t){return Co(ao(t,1))},js=function(t,e){return No(t,ao(e,1))},Os=function(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],u=e(o);if(null!=u&&(void 0===a?u==u&&!d(u):n(u,a)))var a=u,c=o}return c},ws=function(t){return t&&t.length?Os(t,D,Za):void 0},xs=function(t,e){return t&&t.length?Os(t,qo(e),Za):void 0},Es=function(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n},Ss=function(t,e){var n=null==t?0:t.length;return n?Es(t,e)/n:NaN},As=function(t){return Ss(t,D)},Is=function(t,e){return Ss(t,qo(e))};var ks=ye((function(t,e,n){Ou(t,e,n)}));const Rs=ks,Ms=pe((function(t,e){return function(n){return kc(n,t,e)}})),Bs=pe((function(t,e){return function(n){return kc(t,n,e)}})),Ps=function(t){return t&&t.length?Os(t,D,ds):void 0},Ws=function(t,e){return t&&t.length?Os(t,qo(e),ds):void 0},Ts=function(t,e,n){var r=Ke(e),i=$a(e,r),o=!(I(n)&&"chain"in n&&!n.chain),u=F(t);return Ft(i,(function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Ot(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Bn([this.value()],arguments))})})),t},Cs=O((function(t,e){return t*e}),1),Ls=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}};var Ds=u?u.iterator:void 0;const Fs=function(t){if(!t)return[];if(ve(t))return ac(t)?gr(t):Ot(t);if(Ds&&t[Ds])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Ds]());var e=qi(t);return("[object Map]"==e?jo:"[object Set]"==e?Oo:sc)(t)},Ns=function(){void 0===this.__values__&&(this.__values__=Fs(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},zs=function(t,e){var n=t.length;if(n)return Jt(e+=e<0?n:0,n)?t[e]:void 0},Us=function(t,e){return t&&t.length?zs(t,C(e)):void 0},qs=function(t){return t=C(t),pe((function(e){return zs(e,t)}))},Ks=function(t,e){return e=An(e,t),null==(t=Ic(t,e))||delete t[In(Tu(e))]},Vs=function(t){return Vn(t)?void 0:t};const $s=Ln((function(t,e){var n={};if(null==t)return n;var r=!1;e=g(e,(function(e){return e=An(e,t),r||(r=e.length>1),e})),se(t,Ii(t),n),r&&(n=ao(n,7,Vs));for(var i=e.length;i--;)Ks(n,e[i]);return n})),Hs=function(t,e,n,r){if(!I(t))return t;for(var i=-1,o=(e=An(e,t)).length,u=o-1,a=t;null!=a&&++i<o;){var c=In(e[i]),s=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=u){var f=a[c];void 0===(s=r?r(f,c,a):void 0)&&(s=I(f)?f:Jt(e[i+1])?[]:{})}ce(a,c,s),a=a[c]}return t},Ys=function(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var u=e[r],a=kn(t,u);n(a,u)&&Hs(o,An(u,t),a)}return o},Js=function(t,e){if(null==t)return{};var n=g(Ii(t),(function(t){return[t]}));return e=qo(e),Ys(t,n,(function(t,n){return e(t,n[0])}))},Gs=function(t,e){return Js(t,Ls(qo(e)))},Zs=function(t){return Jn(2,t)},Xs=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=d(t),u=void 0!==e,a=null===e,c=e==e,s=d(e);if(!a&&!s&&!o&&t>e||o&&u&&c&&!a&&!s||r&&u&&c||!n&&c||!i)return 1;if(!r&&!o&&!s&&t<e||s&&n&&i&&!r&&!o||a&&n&&i||!u&&i||!c)return-1}return 0},Qs=function(t,e,n){e=e.length?g(e,(function(t){return m(t)?function(e){return kn(e,1===t.length?t[0]:t)}:t})):[D];var r=-1;return e=g(e,Me(qo)),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Aa(t,(function(t,n,i){return{criteria:g(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,u=i.length,a=n.length;++r<u;){var c=Xs(i[r],o[r]);if(c)return r>=a?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))},tf=function(t,e,n,r){return null==t?[]:(m(e)||(e=null==e?[]:[e]),m(n=r?void 0:n)||(n=null==n?[]:[n]),Qs(t,e,n))},ef=function(t){return Ln((function(e){return e=g(e,Me(qo)),pe((function(n){var r=this;return t(e,(function(t){return ut(t,r,n)}))}))}))},nf=ef(g),rf=pe;var of=Math.min,uf=rf((function(t,e){var n=(e=1==e.length&&m(e[0])?g(e[0],Me(qo)):g(Tn(e,1),Me(qo))).length;return pe((function(r){for(var i=-1,o=of(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return ut(t,this,r)}))}));const af=uf,cf=ef(ca),sf=ef(mo);var ff=Math.floor;const lf=function(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=ff(e/2))&&(t+=t)}while(e);return n},pf=zo("length");var hf="\\ud800-\\udfff",vf="["+hf+"]",df="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",yf="\\ud83c[\\udffb-\\udfff]",gf="[^"+hf+"]",mf="(?:\\ud83c[\\udde6-\\uddff]){2}",_f="[\\ud800-\\udbff][\\udc00-\\udfff]",bf="(?:"+df+"|"+yf+")?",jf="[\\ufe0e\\ufe0f]?",Of=jf+bf+"(?:\\u200d(?:"+[gf,mf,_f].join("|")+")"+jf+bf+")*",wf="(?:"+[gf+df+"?",df,mf,_f,vf].join("|")+")",xf=RegExp(yf+"(?="+yf+")|"+wf+Of,"g");const Ef=function(t){return ir(t)?function(t){for(var e=xf.lastIndex=0;xf.test(t);)++e;return e}(t):pf(t)};var Sf=Math.ceil;const Af=function(t,e){var n=(e=void 0===e?" ":j(e)).length;if(n<2)return n?lf(e,t):e;var r=lf(e,Sf(t/Ef(e)));return ir(e)?nr(gr(r),0,t).join(""):r.slice(0,t)};var If=Math.ceil,kf=Math.floor;const Rf=function(t,e,n){t=Sn(t);var r=(e=C(e))?Ef(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Af(kf(i),n)+t+Af(If(i),n)},Mf=function(t,e,n){t=Sn(t);var r=(e=C(e))?Ef(t):0;return e&&r<e?t+Af(e-r,n):t},Bf=function(t,e,n){t=Sn(t);var r=(e=C(e))?Ef(t):0;return e&&r<e?Af(e-r,n)+t:t};var Pf=/^\s+/,Wf=o.parseInt;const Tf=function(t,e,n){return n||null==e?e=0:e&&(e=+e),Wf(Sn(t).replace(Pf,""),e||0)};var Cf=pe((function(t,e){var n=Xt(e,Ht(Cf));return re(t,32,void 0,e,n)}));Cf.placeholder={};const Lf=Cf;var Df=pe((function(t,e){var n=Xt(e,Ht(Df));return re(t,64,void 0,e,n)}));Df.placeholder={};const Ff=Df;const Nf=eu((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),zf=Ln((function(t,e){return null==t?{}:function(t,e){return Ys(t,e,(function(e,n){return Fo(t,n)}))}(t,e)})),Uf=function(t){for(var e,n=this;n instanceof lt;){var r=wt(n);r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},qf=function(t){return function(e){return null==t?void 0:kn(t,e)}},Kf=function(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1};var Vf=Array.prototype.splice;const $f=function(t,e,n,r){var i=r?Kf:Ut,o=-1,u=e.length,a=t;for(t===e&&(e=Ot(e)),n&&(a=g(t,Me(n)));++o<u;)for(var c=0,s=e[o],f=n?n(s):s;(c=i(a,f,c,r))>-1;)a!==t&&Vf.call(a,c,1),Vf.call(t,c,1);return t},Hf=function(t,e){return t&&t.length&&e&&e.length?$f(t,e):t},Yf=pe(Hf),Jf=function(t,e,n){return t&&t.length&&e&&e.length?$f(t,e,qo(n)):t},Gf=function(t,e,n){return t&&t.length&&e&&e.length?$f(t,e,void 0,n):t};var Zf=Array.prototype.splice;const Xf=function(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Jt(i)?Zf.call(t,i,1):Ks(t,i)}}return t};const Qf=Ln((function(t,e){var n=null==t?0:t.length,r=Mn(t,e);return Xf(t,g(e,(function(t){return Jt(t,n)?+t:t})).sort(Xs)),r}));var tl=Math.floor,el=Math.random;const nl=function(t,e){return t+tl(el()*(e-t+1))};var rl=parseFloat,il=Math.min,ol=Math.random;const ul=function(t,e,n){if(n&&"boolean"!=typeof n&&de(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=T(t),void 0===e?(e=t,t=0):e=T(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=ol();return il(t+i*(e-t+rl("1e-"+((i+"").length-1))),e)}return nl(t,e)};var al=Math.ceil,cl=Math.max;const sl=function(t){return function(e,n,r){return r&&"number"!=typeof r&&de(e,n,r)&&(n=r=void 0),e=T(e),void 0===n?(n=e,e=0):n=T(n),function(t,e,n,r){for(var i=-1,o=cl(al((e-t)/(n||1)),0),u=Array(o);o--;)u[r?o:++i]=t,t+=n;return u}(e,n,r=void 0===r?e<n?1:-1:T(r),t)}},fl=sl(),ll=sl(!0);var pl=Ln((function(t,e){return re(t,256,void 0,void 0,void 0,e)}));const hl=pl,vl=function(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n},dl=function(t,e,n){var r=m(t)?jr:vl,i=arguments.length<3;return r(t,qo(e),n,i,Qo)},yl=function(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n},gl=function(t,e,n){var r=m(t)?yl:vl,i=arguments.length<3;return r(t,qo(e),n,i,Ju)},ml=function(t,e){return(m(t)?bi:ha)(t,Ls(qo(e)))},_l=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=qo(e);++r<o;){var u=t[r];e(u,r,t)&&(n.push(u),i.push(r))}return Xf(t,i),n},bl=function(t,e,n){return e=(n?de(t,e,n):void 0===e)?1:C(e),lf(Sn(t),e)},jl=function(){var t=arguments,e=Sn(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Ol=function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return e=void 0===e?e:C(e),pe(t,e)},wl=function(t,e,n){var r=-1,i=(e=An(e,t)).length;for(i||(i=1,t=void 0);++r<i;){var o=null==t?void 0:t[In(e[r])];void 0===o&&(r=i,o=n),t=F(o)?o.call(t):o}return t};var xl=Array.prototype.reverse;const El=function(t){return null==t?t:xl.call(t)},Sl=ii("round"),Al=function(t){var e=t.length;return e?t[nl(0,e-1)]:void 0},Il=function(t){return Al(sc(t))},kl=function(t){return(m(t)?Al:Il)(t)},Rl=function(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n<e;){var o=nl(n,i),u=t[o];t[o]=t[n],t[n]=u}return t.length=e,t},Ml=function(t,e){return Rl(Ot(t),fi(e,0,t.length))},Bl=function(t,e){var n=sc(t);return Rl(n,fi(e,0,n.length))},Pl=function(t,e,n){return e=(n?de(t,e,n):void 0===e)?1:C(e),(m(t)?Ml:Bl)(t,e)},Wl=function(t,e,n){return null==t?t:Hs(t,e,n)},Tl=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:Hs(t,e,n,r)},Cl=function(t){return Rl(Ot(t))},Ll=function(t){return Rl(sc(t))},Dl=function(t){return(m(t)?Cl:Ll)(t)},Fl=function(t){if(null==t)return 0;if(ve(t))return ac(t)?Ef(t):t.length;var e=qi(t);return"[object Map]"==e||"[object Set]"==e?t.size:qe(t).length},Nl=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&de(t,e,n)?(e=0,n=r):(e=null==e?0:C(e),n=void 0===n?r:C(n)),er(t,e,n)):[]};const zl=Qr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Ul=function(t,e){var n;return Qo(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n},ql=function(t,e,n){var r=m(t)?mo:Ul;return n&&de(t,e,n)&&(e=void 0),r(t,qo(e))},Kl=pe((function(t,e){if(null==t)return[];var n=e.length;return n>1&&de(t,e[0],e[1])?e=[]:n>2&&de(e[0],e[1],e[2])&&(e=[e[0]]),Qs(t,Tn(e,1),[])}));var Vl=Math.floor,$l=Math.min;const Hl=function(t,e,n,r){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var u=(e=n(e))!=e,a=null===e,c=d(e),s=void 0===e;i<o;){var f=Vl((i+o)/2),l=n(t[f]),p=void 0!==l,h=null===l,v=l==l,y=d(l);if(u)var g=r||v;else g=s?v&&(r||p):a?v&&p&&(r||!h):c?v&&p&&!h&&(r||!y):!h&&!y&&(r?l<=e:l<e);g?i=f+1:o=f}return $l(o,4294967294)},Yl=function(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,u=t[o];null!==u&&!d(u)&&(n?u<=e:u<e)?r=o+1:i=o}return i}return Hl(t,e,D,n)},Jl=function(t,e){return Yl(t,e)},Gl=function(t,e,n){return Hl(t,e,qo(n))},Zl=function(t,e){var n=null==t?0:t.length;if(n){var r=Yl(t,e);if(r<n&&ue(t[r],e))return r}return-1},Xl=function(t,e){return Yl(t,e,!0)},Ql=function(t,e,n){return Hl(t,e,qo(n),!0)},tp=function(t,e){if(null!=t&&t.length){var n=Yl(t,e,!0)-1;if(ue(t[n],e))return n}return-1},ep=function(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var u=t[n],a=e?e(u):u;if(!n||!ue(a,c)){var c=a;o[i++]=0===u?0:u}}return o},np=function(t){return t&&t.length?ep(t):[]},rp=function(t,e){return t&&t.length?ep(t,qo(e)):[]},ip=function(t,e,n){return n&&"number"!=typeof n&&de(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=Sn(t))&&("string"==typeof e||null!=e&&!ts(e))&&!(e=j(e))&&ir(t)?nr(gr(t),0,n):t.split(e,n):[]};var op=Math.max;const up=function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return e=null==e?0:op(C(e),0),pe((function(n){var r=n[e],i=nr(n,0,e);return r&&Bn(i,r),ut(t,this,i)}))};const ap=Qr((function(t,e,n){return t+(n?" ":"")+_r(e)})),cp=function(t,e,n){return t=Sn(t),n=null==n?0:fi(C(n),0,t.length),e=j(e),t.slice(n,n+e.length)==e},sp=function(){return{}},fp=function(){return""},lp=function(){return!0},pp=O((function(t,e){return t-e}),0),hp=function(t){return t&&t.length?Es(t,D):0},vp=function(t,e){return t&&t.length?Es(t,qo(e)):0},dp=function(t){var e=null==t?0:t.length;return e?er(t,1,e):[]},yp=function(t,e,n){return t&&t.length?(e=n||void 0===e?1:C(e),er(t,0,e<0?0:e)):[]},gp=function(t,e,n){var r=null==t?0:t.length;return r?(e=n||void 0===e?1:C(e),er(t,(e=r-e)<0?0:e,r)):[]},mp=function(t,e){return t&&t.length?zu(t,qo(e),!1,!0):[]},_p=function(t,e){return t&&t.length?zu(t,qo(e)):[]},bp=function(t,e){return e(t),t};var jp=Object.prototype,Op=jp.hasOwnProperty;const wp=function(t,e,n,r){return void 0===t||ue(t,jp[n])&&!Op.call(r,n)?e:t};var xp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};const Ep=function(t){return"\\"+xp[t]},Sp=/<%=([\s\S]+?)%>/g,Ap={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Sp,variable:"",imports:{_:{escape:ia}}};var Ip=/\b__p \+= '';/g,kp=/\b(__p \+=) '' \+/g,Rp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mp=/[()=,{}\[\]\/\s]/,Bp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pp=/($^)/,Wp=/['\n\r\u2028\u2029\\]/g,Tp=Object.prototype.hasOwnProperty;const Cp=function(t,e,n){var r=Ap.imports._.templateSettings||Ap;n&&de(t,e,n)&&(e=void 0),t=Sn(t),e=tn({},e,r,wp);var i,o,u=tn({},e.imports,r.imports,wp),a=Ke(u),c=cc(u,a),s=0,f=e.interpolate||Pp,l="__p += '",p=RegExp((e.escape||Pp).source+"|"+f.source+"|"+(f===Sp?Bp:Pp).source+"|"+(e.evaluate||Pp).source+"|$","g"),h=Tp.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(p,(function(e,n,r,u,a,c){return r||(r=u),l+=t.slice(s,c).replace(Wp,Ep),n&&(i=!0,l+="' +\n__e("+n+") +\n'"),a&&(o=!0,l+="';\n"+a+";\n__p += '"),r&&(l+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=c+e.length,e})),l+="';\n";var v=Tp.call(e,"variable")&&e.variable;if(v){if(Mp.test(v))throw new Error("Invalid `variable` option passed into `_.template`")}else l="with (obj) {\n"+l+"\n}\n";l=(o?l.replace(Ip,""):l).replace(kp,"$1").replace(Rp,"$1;"),l="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var d=Yn((function(){return Function(a,h+"return "+l).apply(void 0,c)}));if(d.source=l,$n(d))throw d;return d},Lp=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return I(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),pu(t,e,{leading:r,maxWait:e,trailing:i})},Dp=function(t,e){return e(t)};var Fp=4294967295,Np=Math.min;const zp=function(t,e){if((t=C(t))<1||t>9007199254740991)return[];var n=Fp,r=Np(t,Fp);e=Ku(e),t-=Fp;for(var i=_e(r,e);++n<t;)e(n);return i},Up=function(){return this},qp=function(t,e){var n=t;return n instanceof ht&&(n=n.value()),jr(e,(function(t,e){return e.func.apply(e.thisArg,Bn([t],e.args))}),n)},Kp=function(){return qp(this.__wrapped__,this.__actions__)},Vp=function(t){return Sn(t).toLowerCase()},$p=function(t){return m(t)?g(t,In):d(t)?[t]:Ot(En(Sn(t)))};const Hp=function(t){return t?fi(C(t),-9007199254740991,9007199254740991):0===t?t:0},Yp=function(t){return Sn(t).toUpperCase()},Jp=function(t,e,n){var r=m(t),i=r||ke(t)||Le(t);if(e=qo(e),null==n){var o=t&&t.constructor;n=i?r?new o:[]:I(t)&&F(o)?it(Fn(t)):{}}return(i?Ft:Zo)(t,(function(t,r,i){return e(n,t,r,i)})),n},Gp=function(t,e){for(var n=t.length;n--&&Ut(e,t[n],0)>-1;);return n},Zp=function(t,e){for(var n=-1,r=t.length;++n<r&&Ut(e,t[n],0)>-1;);return n},Xp=function(t,e,n){if((t=Sn(t))&&(n||void 0===e))return A(t);if(!t||!(e=j(e)))return t;var r=gr(t),i=gr(e),o=Zp(r,i),u=Gp(r,i)+1;return nr(r,o,u).join("")},Qp=function(t,e,n){if((t=Sn(t))&&(n||void 0===e))return t.slice(0,E(t)+1);if(!t||!(e=j(e)))return t;var r=gr(t),i=Gp(r,gr(e))+1;return nr(r,0,i).join("")};var th=/^\s+/;const eh=function(t,e,n){if((t=Sn(t))&&(n||void 0===e))return t.replace(th,"");if(!t||!(e=j(e)))return t;var r=gr(t),i=Zp(r,gr(e));return nr(r,i).join("")};var nh=/\w*$/;const rh=function(t,e){var n=30,r="...";if(I(e)){var i="separator"in e?e.separator:i;n="length"in e?C(e.length):n,r="omission"in e?j(e.omission):r}var o=(t=Sn(t)).length;if(ir(t)){var u=gr(t);o=u.length}if(n>=o)return t;var a=n-Ef(r);if(a<1)return r;var c=u?nr(u,0,a).join(""):t.slice(0,a);if(void 0===i)return c+r;if(u&&(a+=c.length-a),ts(i)){if(t.slice(a).search(i)){var s,f=c;for(i.global||(i=RegExp(i.source,Sn(nh.exec(i))+"g")),i.lastIndex=0;s=i.exec(f);)var l=s.index;c=c.slice(0,void 0===l?a:l)}}else if(t.indexOf(j(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+r},ih=function(t){return ie(t,1)},oh=Or({"&":"&","<":"<",">":">",""":'"',"'":"'"});var uh=/&(?:amp|lt|gt|quot|#39);/g,ah=RegExp(uh.source);const ch=function(t){return(t=Sn(t))&&ah.test(t)?t.replace(uh,oh):t};const sh=Mi&&1/Oo(new Mi([,-0]))[1]==1/0?function(t){return new Mi(t)}:vt,fh=function(t,e,n){var r=-1,i=qt,o=t.length,u=!0,a=[],c=a;if(n)u=!1,i=Bu;else if(o>=200){var s=e?null:sh(t);if(s)return Oo(s);u=!1,i=_o,c=new go}else c=e?[]:a;t:for(;++r<o;){var f=t[r],l=e?e(f):f;if(f=n||0!==f?f:0,u&&l==l){for(var p=c.length;p--;)if(c[p]===l)continue t;e&&c.push(l),a.push(f)}else i(c,l,n)||(c!==a&&c.push(l),a.push(f))}return a},lh=pe((function(t){return fh(Tn(t,1,_u,!0))}));const ph=pe((function(t){var e=Tu(t);return _u(e)&&(e=void 0),fh(Tn(t,1,_u,!0),qo(e))})),hh=pe((function(t){var e=Tu(t);return e="function"==typeof e?e:void 0,fh(Tn(t,1,_u,!0),void 0,e)})),vh=function(t){return t&&t.length?fh(t):[]},dh=function(t,e){return t&&t.length?fh(t,qo(e)):[]},yh=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?fh(t,void 0,e):[]};var gh=0;const mh=function(t){var e=++gh;return Sn(t)+e},_h=function(t,e){return null==t||Ks(t,e)};var bh=Math.max;const jh=function(t){if(!t||!t.length)return[];var e=0;return t=bi(t,(function(t){if(_u(t))return e=bh(t.length,e),!0})),_e(e,(function(e){return g(t,zo(e))}))},Oh=function(t,e){if(!t||!t.length)return[];var n=jh(t);return null==e?n:g(n,(function(t){return ut(e,void 0,t)}))},wh=function(t,e,n,r){return Hs(t,e,n(kn(t,e)),r)},xh=function(t,e,n){return null==t?t:wh(t,e,Ku(n))},Eh=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:wh(t,e,Ku(n),r)};const Sh=Qr((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Ah=function(t){return null==t?[]:cc(t,Ge(t))};const Ih=pe((function(t,e){return _u(t)?Pu(t,e):[]})),kh=function(t,e){return Lf(Ku(e),t)},Rh=Ln((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Mn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof ht&&Jt(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Dp,args:[i],thisArg:void 0}),new jt(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)})),Mh=function(){return ui(this)},Bh=function(){var t=this.__wrapped__;if(t instanceof ht){var e=t;return this.__actions__.length&&(e=new ht(this)),(e=e.reverse()).__actions__.push({func:Dp,args:[El],thisArg:void 0}),new jt(e,this.__chain__)}return this.thru(El)},Ph=function(t,e,n){var r=t.length;if(r<2)return r?fh(t[0]):[];for(var i=-1,o=Array(r);++i<r;)for(var u=t[i],a=-1;++a<r;)a!=i&&(o[i]=Pu(o[i]||u,t[a],e,n));return fh(Tn(o,1),e,n)},Wh=pe((function(t){return Ph(bi(t,_u))}));const Th=pe((function(t){var e=Tu(t);return _u(e)&&(e=void 0),Ph(bi(t,_u),qo(e))})),Ch=pe((function(t){var e=Tu(t);return e="function"==typeof e?e:void 0,Ph(bi(t,_u),void 0,e)})),Lh=pe(jh),Dh=function(t,e,n){for(var r=-1,i=t.length,o=e.length,u={};++r<i;){var a=r<o?e[r]:void 0;n(u,t[r],a)}return u},Fh=function(t,e){return Dh(t||[],e||[],ce)},Nh=function(t,e){return Dh(t||[],e||[],Hs)};const zh=pe((function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Oh(t,n)})),Uh={chunk:si,compact:ho,concat:vo,difference:Wu,differenceBy:Cu,differenceWith:Lu,drop:Fu,dropRight:Nu,dropRightWhile:Uu,dropWhile:qu,fill:pa,findIndex:ga,findLastIndex:wa,first:Sa,flatten:Cn,flattenDeep:Wa,flattenDepth:Ta,fromPairs:Va,head:Sa,indexOf:hc,initial:vc,intersection:mc,intersectionBy:_c,intersectionWith:bc,join:as,last:Tu,lastIndexOf:ps,nth:Us,pull:Yf,pullAll:Hf,pullAllBy:Jf,pullAllWith:Gf,pullAt:Qf,remove:_l,reverse:El,slice:Nl,sortedIndex:Jl,sortedIndexBy:Gl,sortedIndexOf:Zl,sortedLastIndex:Xl,sortedLastIndexBy:Ql,sortedLastIndexOf:tp,sortedUniq:np,sortedUniqBy:rp,tail:dp,take:yp,takeRight:gp,takeRightWhile:mp,takeWhile:_p,union:lh,unionBy:ph,unionWith:hh,uniq:vh,uniqBy:dh,uniqWith:yh,unzip:jh,unzipWith:Oh,without:Ih,xor:Wh,xorBy:Th,xorWith:Ch,zip:Lh,zipObject:Fh,zipObjectDeep:Nh,zipWith:zh},qh={countBy:ru,each:Vu,eachRight:Gu,every:fa,filter:va,find:ma,findLast:xa,flatMap:ka,flatMapDeep:Ma,flatMapDepth:Ba,forEach:Vu,forEachRight:Gu,groupBy:Ga,includes:lc,invokeMap:Mc,keyBy:ss,map:Ia,orderBy:tf,partition:Nf,reduce:dl,reduceRight:gl,reject:ml,sample:kl,sampleSize:Pl,shuffle:Dl,size:Fl,some:ql,sortBy:Kl},Kh={now:su},Vh={after:L,ary:ie,before:Jn,bind:Zn,bindKey:tr,curry:uu,curryRight:cu,debounce:pu,defer:ku,delay:Mu,flip:Ca,memoize:jn,negate:Ls,once:Zs,overArgs:af,partial:Lf,partialRight:Ff,rearg:hl,rest:Ol,spread:up,throttle:Lp,unary:ih,wrap:kh},$h={castArray:ei,clone:co,cloneDeep:so,cloneDeepWith:fo,cloneWith:lo,conformsTo:Ho,eq:ue,gt:Qa,gte:tc,isArguments:xe,isArray:m,isArrayBuffer:Pc,isArrayLike:ve,isArrayLikeObject:_u,isBoolean:Wc,isBuffer:ke,isDate:Cc,isElement:Lc,isEmpty:Fc,isEqual:Nc,isEqualWith:zc,isError:$n,isFinite:qc,isFunction:F,isInteger:Kc,isLength:he,isMap:to,isMatch:Vc,isMatchWith:$c,isNaN:Yc,isNative:Gc,isNil:Zc,isNull:Xc,isNumber:Hc,isObject:I,isObjectLike:v,isPlainObject:Vn,isRegExp:ts,isSafeInteger:es,isSet:no,isString:ac,isSymbol:d,isTypedArray:Le,isUndefined:ns,isWeakMap:rs,isWeakSet:is,lt:ys,lte:gs,toArray:Fs,toFinite:T,toInteger:C,toLength:la,toNumber:P,toPlainObject:ju,toSafeInteger:Hp,toString:Sn},Hh={add:w,ceil:oi,divide:Du,floor:La,max:ws,maxBy:xs,mean:As,meanBy:Is,min:Ps,minBy:Ws,multiply:Cs,round:Sl,subtract:pp,sum:hp,sumBy:vp},Yh={clamp:li,inRange:uc,random:ul},Jh={assign:He,assignIn:Xe,assignInWith:tn,assignWith:nn,at:Dn,create:iu,defaults:gu,defaultsDeep:Su,entries:Qu,entriesIn:ta,extend:Xe,extendWith:tn,findKey:ba,findLastKey:Ea,forIn:za,forInRight:Ua,forOwn:qa,forOwnRight:Ka,functions:Ha,functionsIn:Ya,get:Rn,has:rc,hasIn:Fo,invert:wc,invertBy:Ac,invoke:Rc,keys:Ke,keysIn:Ge,mapKeys:ms,mapValues:_s,merge:Rs,mergeWith:Eu,omit:$s,omitBy:Gs,pick:zf,pickBy:Js,result:wl,set:Wl,setWith:Tl,toPairs:Qu,toPairsIn:ta,transform:Jp,unset:_h,update:xh,updateWith:Eh,values:sc,valuesIn:Ah},Gh={at:Rh,chain:ui,commit:po,lodash:St,next:Ns,plant:Uf,reverse:Bh,tap:bp,thru:Dp,toIterator:Up,toJSON:Kp,value:Kp,valueOf:Kp,wrapperChain:Mh},Zh={camelCase:ti,capitalize:br,deburr:Sr,endsWith:Zu,escape:ia,escapeRegExp:aa,kebabCase:cs,lowerCase:hs,lowerFirst:vs,pad:Rf,padEnd:Mf,padStart:Bf,parseInt:Tf,repeat:bl,replace:jl,snakeCase:zl,split:ip,startCase:ap,startsWith:cp,template:Cp,templateSettings:Ap,toLower:Vp,toUpper:Yp,trim:Xp,trimEnd:Qp,trimStart:eh,truncate:rh,unescape:ch,upperCase:Sh,upperFirst:_r,words:Zr},Xh={attempt:Yn,bindAll:Xn,cond:Ko,conforms:$o,constant:Wt,defaultTo:hu,flow:Fa,flowRight:Na,identity:D,iteratee:os,matches:bs,matchesProperty:js,method:Ms,methodOf:Bs,mixin:Ts,noop:vt,nthArg:qs,over:nf,overEvery:cf,overSome:sf,property:Uo,propertyOf:qf,range:fl,rangeRight:ll,stubArray:ji,stubFalse:Ee,stubObject:sp,stubString:fp,stubTrue:lp,times:zp,toPath:$p,uniqueId:mh};var Qh=Math.max,tv=Math.min;var ev=Math.min;var nv,rv,iv=4294967295,ov=Array.prototype,uv=Object.prototype.hasOwnProperty,av=u?u.iterator:void 0,cv=Math.max,sv=Math.min,fv=(nv=Ts,function(t,e,n){if(null==n){var r=I(e),i=r&&Ke(e),o=i&&i.length&&$a(e,i);(o?o.length:r)||(n=e,e=t,t=this)}return nv(t,e,n)});St.after=Vh.after,St.ary=Vh.ary,St.assign=Jh.assign,St.assignIn=Jh.assignIn,St.assignInWith=Jh.assignInWith,St.assignWith=Jh.assignWith,St.at=Jh.at,St.before=Vh.before,St.bind=Vh.bind,St.bindAll=Xh.bindAll,St.bindKey=Vh.bindKey,St.castArray=$h.castArray,St.chain=Gh.chain,St.chunk=Uh.chunk,St.compact=Uh.compact,St.concat=Uh.concat,St.cond=Xh.cond,St.conforms=Xh.conforms,St.constant=Xh.constant,St.countBy=qh.countBy,St.create=Jh.create,St.curry=Vh.curry,St.curryRight=Vh.curryRight,St.debounce=Vh.debounce,St.defaults=Jh.defaults,St.defaultsDeep=Jh.defaultsDeep,St.defer=Vh.defer,St.delay=Vh.delay,St.difference=Uh.difference,St.differenceBy=Uh.differenceBy,St.differenceWith=Uh.differenceWith,St.drop=Uh.drop,St.dropRight=Uh.dropRight,St.dropRightWhile=Uh.dropRightWhile,St.dropWhile=Uh.dropWhile,St.fill=Uh.fill,St.filter=qh.filter,St.flatMap=qh.flatMap,St.flatMapDeep=qh.flatMapDeep,St.flatMapDepth=qh.flatMapDepth,St.flatten=Uh.flatten,St.flattenDeep=Uh.flattenDeep,St.flattenDepth=Uh.flattenDepth,St.flip=Vh.flip,St.flow=Xh.flow,St.flowRight=Xh.flowRight,St.fromPairs=Uh.fromPairs,St.functions=Jh.functions,St.functionsIn=Jh.functionsIn,St.groupBy=qh.groupBy,St.initial=Uh.initial,St.intersection=Uh.intersection,St.intersectionBy=Uh.intersectionBy,St.intersectionWith=Uh.intersectionWith,St.invert=Jh.invert,St.invertBy=Jh.invertBy,St.invokeMap=qh.invokeMap,St.iteratee=Xh.iteratee,St.keyBy=qh.keyBy,St.keys=Ke,St.keysIn=Jh.keysIn,St.map=qh.map,St.mapKeys=Jh.mapKeys,St.mapValues=Jh.mapValues,St.matches=Xh.matches,St.matchesProperty=Xh.matchesProperty,St.memoize=Vh.memoize,St.merge=Jh.merge,St.mergeWith=Jh.mergeWith,St.method=Xh.method,St.methodOf=Xh.methodOf,St.mixin=fv,St.negate=Ls,St.nthArg=Xh.nthArg,St.omit=Jh.omit,St.omitBy=Jh.omitBy,St.once=Vh.once,St.orderBy=qh.orderBy,St.over=Xh.over,St.overArgs=Vh.overArgs,St.overEvery=Xh.overEvery,St.overSome=Xh.overSome,St.partial=Vh.partial,St.partialRight=Vh.partialRight,St.partition=qh.partition,St.pick=Jh.pick,St.pickBy=Jh.pickBy,St.property=Xh.property,St.propertyOf=Xh.propertyOf,St.pull=Uh.pull,St.pullAll=Uh.pullAll,St.pullAllBy=Uh.pullAllBy,St.pullAllWith=Uh.pullAllWith,St.pullAt=Uh.pullAt,St.range=Xh.range,St.rangeRight=Xh.rangeRight,St.rearg=Vh.rearg,St.reject=qh.reject,St.remove=Uh.remove,St.rest=Vh.rest,St.reverse=Uh.reverse,St.sampleSize=qh.sampleSize,St.set=Jh.set,St.setWith=Jh.setWith,St.shuffle=qh.shuffle,St.slice=Uh.slice,St.sortBy=qh.sortBy,St.sortedUniq=Uh.sortedUniq,St.sortedUniqBy=Uh.sortedUniqBy,St.split=Zh.split,St.spread=Vh.spread,St.tail=Uh.tail,St.take=Uh.take,St.takeRight=Uh.takeRight,St.takeRightWhile=Uh.takeRightWhile,St.takeWhile=Uh.takeWhile,St.tap=Gh.tap,St.throttle=Vh.throttle,St.thru=Dp,St.toArray=$h.toArray,St.toPairs=Jh.toPairs,St.toPairsIn=Jh.toPairsIn,St.toPath=Xh.toPath,St.toPlainObject=$h.toPlainObject,St.transform=Jh.transform,St.unary=Vh.unary,St.union=Uh.union,St.unionBy=Uh.unionBy,St.unionWith=Uh.unionWith,St.uniq=Uh.uniq,St.uniqBy=Uh.uniqBy,St.uniqWith=Uh.uniqWith,St.unset=Jh.unset,St.unzip=Uh.unzip,St.unzipWith=Uh.unzipWith,St.update=Jh.update,St.updateWith=Jh.updateWith,St.values=Jh.values,St.valuesIn=Jh.valuesIn,St.without=Uh.without,St.words=Zh.words,St.wrap=Vh.wrap,St.xor=Uh.xor,St.xorBy=Uh.xorBy,St.xorWith=Uh.xorWith,St.zip=Uh.zip,St.zipObject=Uh.zipObject,St.zipObjectDeep=Uh.zipObjectDeep,St.zipWith=Uh.zipWith,St.entries=Jh.toPairs,St.entriesIn=Jh.toPairsIn,St.extend=Jh.assignIn,St.extendWith=Jh.assignInWith,fv(St,St),St.add=Hh.add,St.attempt=Xh.attempt,St.camelCase=Zh.camelCase,St.capitalize=Zh.capitalize,St.ceil=Hh.ceil,St.clamp=Yh.clamp,St.clone=$h.clone,St.cloneDeep=$h.cloneDeep,St.cloneDeepWith=$h.cloneDeepWith,St.cloneWith=$h.cloneWith,St.conformsTo=$h.conformsTo,St.deburr=Zh.deburr,St.defaultTo=Xh.defaultTo,St.divide=Hh.divide,St.endsWith=Zh.endsWith,St.eq=$h.eq,St.escape=Zh.escape,St.escapeRegExp=Zh.escapeRegExp,St.every=qh.every,St.find=qh.find,St.findIndex=Uh.findIndex,St.findKey=Jh.findKey,St.findLast=qh.findLast,St.findLastIndex=Uh.findLastIndex,St.findLastKey=Jh.findLastKey,St.floor=Hh.floor,St.forEach=qh.forEach,St.forEachRight=qh.forEachRight,St.forIn=Jh.forIn,St.forInRight=Jh.forInRight,St.forOwn=Jh.forOwn,St.forOwnRight=Jh.forOwnRight,St.get=Jh.get,St.gt=$h.gt,St.gte=$h.gte,St.has=Jh.has,St.hasIn=Jh.hasIn,St.head=Uh.head,St.identity=D,St.includes=qh.includes,St.indexOf=Uh.indexOf,St.inRange=Yh.inRange,St.invoke=Jh.invoke,St.isArguments=$h.isArguments,St.isArray=m,St.isArrayBuffer=$h.isArrayBuffer,St.isArrayLike=$h.isArrayLike,St.isArrayLikeObject=$h.isArrayLikeObject,St.isBoolean=$h.isBoolean,St.isBuffer=$h.isBuffer,St.isDate=$h.isDate,St.isElement=$h.isElement,St.isEmpty=$h.isEmpty,St.isEqual=$h.isEqual,St.isEqualWith=$h.isEqualWith,St.isError=$h.isError,St.isFinite=$h.isFinite,St.isFunction=$h.isFunction,St.isInteger=$h.isInteger,St.isLength=$h.isLength,St.isMap=$h.isMap,St.isMatch=$h.isMatch,St.isMatchWith=$h.isMatchWith,St.isNaN=$h.isNaN,St.isNative=$h.isNative,St.isNil=$h.isNil,St.isNull=$h.isNull,St.isNumber=$h.isNumber,St.isObject=I,St.isObjectLike=$h.isObjectLike,St.isPlainObject=$h.isPlainObject,St.isRegExp=$h.isRegExp,St.isSafeInteger=$h.isSafeInteger,St.isSet=$h.isSet,St.isString=$h.isString,St.isSymbol=$h.isSymbol,St.isTypedArray=$h.isTypedArray,St.isUndefined=$h.isUndefined,St.isWeakMap=$h.isWeakMap,St.isWeakSet=$h.isWeakSet,St.join=Uh.join,St.kebabCase=Zh.kebabCase,St.last=Tu,St.lastIndexOf=Uh.lastIndexOf,St.lowerCase=Zh.lowerCase,St.lowerFirst=Zh.lowerFirst,St.lt=$h.lt,St.lte=$h.lte,St.max=Hh.max,St.maxBy=Hh.maxBy,St.mean=Hh.mean,St.meanBy=Hh.meanBy,St.min=Hh.min,St.minBy=Hh.minBy,St.stubArray=Xh.stubArray,St.stubFalse=Xh.stubFalse,St.stubObject=Xh.stubObject,St.stubString=Xh.stubString,St.stubTrue=Xh.stubTrue,St.multiply=Hh.multiply,St.nth=Uh.nth,St.noop=Xh.noop,St.now=Kh.now,St.pad=Zh.pad,St.padEnd=Zh.padEnd,St.padStart=Zh.padStart,St.parseInt=Zh.parseInt,St.random=Yh.random,St.reduce=qh.reduce,St.reduceRight=qh.reduceRight,St.repeat=Zh.repeat,St.replace=Zh.replace,St.result=Jh.result,St.round=Hh.round,St.sample=qh.sample,St.size=qh.size,St.snakeCase=Zh.snakeCase,St.some=qh.some,St.sortedIndex=Uh.sortedIndex,St.sortedIndexBy=Uh.sortedIndexBy,St.sortedIndexOf=Uh.sortedIndexOf,St.sortedLastIndex=Uh.sortedLastIndex,St.sortedLastIndexBy=Uh.sortedLastIndexBy,St.sortedLastIndexOf=Uh.sortedLastIndexOf,St.startCase=Zh.startCase,St.startsWith=Zh.startsWith,St.subtract=Hh.subtract,St.sum=Hh.sum,St.sumBy=Hh.sumBy,St.template=Zh.template,St.times=Xh.times,St.toFinite=$h.toFinite,St.toInteger=C,St.toLength=$h.toLength,St.toLower=Zh.toLower,St.toNumber=$h.toNumber,St.toSafeInteger=$h.toSafeInteger,St.toString=$h.toString,St.toUpper=Zh.toUpper,St.trim=Zh.trim,St.trimEnd=Zh.trimEnd,St.trimStart=Zh.trimStart,St.truncate=Zh.truncate,St.unescape=Zh.unescape,St.uniqueId=Xh.uniqueId,St.upperCase=Zh.upperCase,St.upperFirst=Zh.upperFirst,St.each=qh.forEach,St.eachRight=qh.forEachRight,St.first=Uh.head,fv(St,(rv={},Zo(St,(function(t,e){uv.call(St.prototype,e)||(rv[e]=t)})),rv),{chain:!1}),St.VERSION="4.17.21",(St.templateSettings=Zh.templateSettings).imports._=St,Ft(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){St[t].placeholder=St})),Ft(["drop","take"],(function(t,e){ht.prototype[t]=function(n){n=void 0===n?1:cv(C(n),0);var r=this.__filtered__&&!e?new ht(this):this.clone();return r.__filtered__?r.__takeCount__=sv(n,r.__takeCount__):r.__views__.push({size:sv(n,iv),type:t+(r.__dir__<0?"Right":"")}),r},ht.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ft(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;ht.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:qo(t),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ft(["head","last"],(function(t,e){var n="take"+(e?"Right":"");ht.prototype[t]=function(){return this[n](1).value()[0]}})),Ft(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");ht.prototype[t]=function(){return this.__filtered__?new ht(this):this[n](1)}})),ht.prototype.compact=function(){return this.filter(D)},ht.prototype.find=function(t){return this.filter(t).head()},ht.prototype.findLast=function(t){return this.reverse().find(t)},ht.prototype.invokeMap=pe((function(t,e){return"function"==typeof t?new ht(this):this.map((function(n){return kc(n,t,e)}))})),ht.prototype.reject=function(t){return this.filter(Ls(qo(t)))},ht.prototype.slice=function(t,e){t=C(t);var n=this;return n.__filtered__&&(t>0||e<0)?new ht(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=C(e))<0?n.dropRight(-e):n.take(e-t)),n)},ht.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ht.prototype.toArray=function(){return this.take(iv)},Zo(ht.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=St[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(St.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,a=e instanceof ht,c=u[0],s=a||m(e),f=function(t){var e=i.apply(St,Bn([t],u));return r&&l?e[0]:e};s&&n&&"function"==typeof c&&1!=c.length&&(a=s=!1);var l=this.__chain__,p=!!this.__actions__.length,h=o&&!l,v=a&&!p;if(!o&&s){e=v?e:new ht(this);var d=t.apply(e,u);return d.__actions__.push({func:Dp,args:[f],thisArg:void 0}),new jt(d,l)}return h&&v?t.apply(this,u):(d=this.thru(f),h?r?d.value()[0]:d.value():d)})})),Ft(["pop","push","shift","sort","splice","unshift"],(function(t){var e=ov[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);St.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(m(i)?i:[],t)}return this[n]((function(n){return e.apply(m(n)?n:[],t)}))}})),Zo(ht.prototype,(function(t,e){var n=St[e];if(n){var r=n.name+"";uv.call(gt,r)||(gt[r]=[]),gt[r].push({name:e,func:n})}})),gt[Qt(void 0,2).name]=[{name:"wrapper",func:void 0}],ht.prototype.clone=function(){var t=new ht(this.__wrapped__);return t.__actions__=Ot(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ot(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ot(this.__views__),t},ht.prototype.reverse=function(){if(this.__filtered__){var t=new ht(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},ht.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=m(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],u=o.size;switch(o.type){case"drop":t+=u;break;case"dropRight":e-=u;break;case"take":e=tv(e,t+u);break;case"takeRight":t=Qh(t,e-u)}}return{start:t,end:e}}(0,i,this.__views__),u=o.start,a=o.end,c=a-u,s=r?a:u-1,f=this.__iteratees__,l=f.length,p=0,h=ev(c,this.__takeCount__);if(!n||!r&&i==c&&h==c)return qp(t,this.__actions__);var v=[];t:for(;c--&&p<h;){for(var d=-1,y=t[s+=e];++d<l;){var g=f[d],_=g.iteratee,b=g.type,j=_(y);if(2==b)y=j;else if(!j){if(1==b)continue t;break t}}v[p++]=y}return v},St.prototype.at=Gh.at,St.prototype.chain=Gh.wrapperChain,St.prototype.commit=Gh.commit,St.prototype.next=Gh.next,St.prototype.plant=Gh.plant,St.prototype.reverse=Gh.reverse,St.prototype.toJSON=St.prototype.valueOf=St.prototype.value=Gh.value,St.prototype.first=St.prototype.head,av&&(St.prototype[av]=Gh.toIterator);const lv=St}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r=n(729);module.exports=r})();
|
|
1
|
+
(()=>{"use strict";var e={d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{void 0!==m&&m.toStringTag&&Object.defineProperty(e,m.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{detectSchemaVersion:()=>dt,generateUISchema:()=>Ge,processSchema:()=>ht,v1:()=>r,v2:()=>n,validateJSONSchema:()=>pt});var r={};e.r(r),e.d(r,{generateUISchema:()=>Ge,validateJSONSchema:()=>pt});var n={};e.r(n),e.d(n,{generateUISchema:()=>mt});var i=Object.prototype;const o=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||i)},a=(c=Object.keys,s=Object,function(e){return c(s(e))});var c,s,u=Object.prototype.hasOwnProperty;const p="object"==typeof global&&global&&global.Object===Object&&global;var l="object"==typeof self&&self&&self.Object===Object&&self;const f=p||l||Function("return this")();var m=f.Symbol;const d=m;var h=Object.prototype,y=h.hasOwnProperty,v=h.toString,b=d?d.toStringTag:void 0;var g=Object.prototype.toString;var O=d?d.toStringTag:void 0;const j=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":O&&O in Object(e)?function(e){var t=y.call(e,b),r=e[b];try{e[b]=void 0;var n=!0}catch(e){}var i=v.call(e);return n&&(t?e[b]=r:delete e[b]),i}(e):function(e){return g.call(e)}(e)},E=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},T=function(e){if(!E(e))return!1;var t=j(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},A=f["__core-js_shared__"];var w,S=(w=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"";var k=Function.prototype.toString;const C=function(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var I=/^\[object .+?Constructor\]$/,x=Function.prototype,N=Object.prototype,_=x.toString,M=N.hasOwnProperty,D=RegExp("^"+_.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const F=function(e){return!(!E(e)||function(e){return!!S&&S in e}(e))&&(T(e)?D:I).test(C(e))},L=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return F(r)?r:void 0},q=L(f,"DataView"),H=L(f,"Map"),P=L(f,"Promise"),R=L(f,"Set"),U=L(f,"WeakMap");var $="[object Map]",J="[object Promise]",V="[object Set]",B="[object WeakMap]",W="[object DataView]",z=C(q),X=C(H),G=C(P),K=C(R),Q=C(U),Y=j;(q&&Y(new q(new ArrayBuffer(1)))!=W||H&&Y(new H)!=$||P&&Y(P.resolve())!=J||R&&Y(new R)!=V||U&&Y(new U)!=B)&&(Y=function(e){var t=j(e),r="[object Object]"==t?e.constructor:void 0,n=r?C(r):"";if(n)switch(n){case z:return W;case X:return $;case G:return J;case K:return V;case Q:return B}return t});const Z=Y,ee=function(e){return null!=e&&"object"==typeof e},te=function(e){return ee(e)&&"[object Arguments]"==j(e)};var re=Object.prototype,ne=re.hasOwnProperty,ie=re.propertyIsEnumerable;const oe=te(function(){return arguments}())?te:function(e){return ee(e)&&ne.call(e,"callee")&&!ie.call(e,"callee")},ae=Array.isArray,ce=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var se="object"==typeof exports&&exports&&!exports.nodeType&&exports,ue=se&&"object"==typeof module&&module&&!module.nodeType&&module,pe=ue&&ue.exports===se?f.Buffer:void 0;const le=(pe?pe.isBuffer:void 0)||function(){return!1};var fe={};fe["[object Float32Array]"]=fe["[object Float64Array]"]=fe["[object Int8Array]"]=fe["[object Int16Array]"]=fe["[object Int32Array]"]=fe["[object Uint8Array]"]=fe["[object Uint8ClampedArray]"]=fe["[object Uint16Array]"]=fe["[object Uint32Array]"]=!0,fe["[object Arguments]"]=fe["[object Array]"]=fe["[object ArrayBuffer]"]=fe["[object Boolean]"]=fe["[object DataView]"]=fe["[object Date]"]=fe["[object Error]"]=fe["[object Function]"]=fe["[object Map]"]=fe["[object Number]"]=fe["[object Object]"]=fe["[object RegExp]"]=fe["[object Set]"]=fe["[object String]"]=fe["[object WeakMap]"]=!1;var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,de=me&&"object"==typeof module&&module&&!module.nodeType&&module,he=de&&de.exports===me&&p.process,ye=function(){try{return de&&de.require&&de.require("util").types||he&&he.binding&&he.binding("util")}catch(e){}}(),ve=ye&&ye.isTypedArray;const be=ve?function(e){return function(t){return e(t)}}(ve):function(e){return ee(e)&&ce(e.length)&&!!fe[j(e)]};var ge=Object.prototype.hasOwnProperty;const Oe=function(e){if(null==e)return!0;if(function(e){return null!=e&&ce(e.length)&&!T(e)}(e)&&(ae(e)||"string"==typeof e||"function"==typeof e.splice||le(e)||be(e)||oe(e)))return!e.length;var t=Z(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(o(e))return!function(e){if(!o(e))return a(e);var t=[];for(var r in Object(e))u.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e).length;for(var r in e)if(ge.call(e,r))return!1;return!0};var je,Ee,Te,Ae=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},we="fieldset",Se="checkboxes",ke="string";!function(e){e.DateTime="date-time",e.Date="date"}(je||(je={})),function(e){e.DateTime="date-time",e.MultiSelect="multiselect",e.RepeatableField="repeatable-field",e.FormLabel="form-label"}(Ee||(Ee={})),function(e){e.Header="header"}(Te||(Te={}));var Ce,Ie=function(e){var t=e.toLowerCase().replace(/[\s\\/\\%]/gi,"_");return"fieldset__title_".concat(t)},xe=function(e){return new Set(e).size!==e.length},Ne=function(e){return Le(e)&&e.type===Se},_e=function(e){return null==e||0===e.trim().length},Me=function(e){return Le(e)&&e.type===we&&!Oe(e.title)},De=function(e){return Le(e)&&e.type===we&&e.items.length>0},Fe=function(e){var t,r;return e.type===ke&&(null===(t=e.enum)||void 0===t?void 0:t.length)>0&&(null===(r=e.inactive_enum)||void 0===r?void 0:r.length)>0},Le=function(e){return e instanceof Object},qe=function(e){return!Oe(e.key)},He=function(e){return 0!==e.length&&void 0!==e.find((function(e){return Le(e)&&e&&(e.type||"")===we}))},Pe=function(e){return typeof e===ke},Re=function(e){if("number"==typeof e)return e;if("string"!=typeof e)return e;var t=e.trim();if(""===t)return e;if(/^-?\d+,\d+$/.test(t)){var r=t.replace(",","."),n=parseFloat(r);if(!isNaN(n))return r}return e},Ue=function(e,t,r){void 0===r&&(r=[]),"object"==typeof e&&null!==e&&(t(e,r),Array.isArray(e)?e.forEach((function(e,n){return Ue(e,t,Ae(Ae([],r,!0),[n.toString()],!1))})):Object.entries(e).forEach((function(e){var n=e[0],i=e[1];return Ue(i,t,Ae(Ae([],r,!0),[n],!1))})))},$e=function(e){return e.includes(Se)},Je=function(e){return e.includes("inactive_enum")},Ve=function(e){return e.includes("inactive_titleMap")},Be=function(e){return e.includes("enum")},We=function(){return We=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},We.apply(this,arguments)};!function(e){e.Number="number",e.String="string",e.Array="array"}(Ce||(Ce={}));var ze=function(e,t,r){return void 0===r&&(r={}),We({type:"Control",scope:"#/properties/".concat(e),label:t},r&&{options:r})},Xe=function(e,t,r){void 0===r&&(r=void 0);try{var n=r||t.definition.find((function(t){return t.key===e}));if("date-time-picker json-schema"===n.fieldHtmlClass||n&&"datetime"===(n.type||""))return"date"===t.schema.properties[e].format?je.Date:je.DateTime;if("date-picker json-schema"===n.fieldHtmlClass||"date"===t.schema.properties[e].format)return je.Date}catch(e){return}},Ge=function(e){var t=[];return He(e.definition)?t.push.apply(t,Ke(e)):Object.keys(e.schema.properties).forEach((function(r){var n=Ye(r,e);Oe(n)||t.push(n)})),{type:"Category",elements:t}},Ke=function(e){var t=[];return e.definition.forEach((function(r){if("string"==typeof r)t.push(ze(r,e.schema.properties[r].title||""));else if(r instanceof Object)switch(!0){case function(e){return Le(e)&&e.type===we&&0===e.items.length&&!Oe(e.title)}(r):t.push(ze(Ie(r.title),r.title,Qe(Ee.FormLabel)));break;case De(r):r.title&&t.push(ze(Ie(r.title),r.title,Qe(Ee.FormLabel))),r.items.forEach((function(r){if(r instanceof Object){var n=Ye(r.key||"",e,r);n&&t.push(n)}else if("string"==typeof r){var i=Ye(r,e);i&&t.push(i)}}));break;case qe(r):var n=Ye(r.key,e);n&&t.push(n)}})),t},Qe=function(e,t){if(void 0===e&&(e=""),void 0===t&&(t=""),Oe(e))return{};var r={format:e};return Oe(t)||(r.display=t),r},Ye=function(e,t,r){void 0===r&&(r=void 0);var n={};switch(t.schema.properties[e].type){case Ce.Number:return ze(e,t.schema.properties[e].title||"");case Ce.String:var i=Xe(e,t,r);return _e(i)?t.schema.properties[e].display&&t.schema.properties[e].display===Te.Header&&(n=Qe(Ee.FormLabel)):n=Qe(Ee.DateTime,i),ze(e,t.schema.properties[e].title||"",n);case Ce.Array:return t.schema.properties[e].items.enum&&t.schema.properties[e].items.enumNames?n=Qe(Ee.MultiSelect):t.schema.properties[e].items&&(n=Qe(Ee.RepeatableField)),ze(e,t.schema.properties[e].title||"",n);case void 0:var o=function(e,t){try{var r=t.definition.find((function(t){return t.key===e}));return"json-schema-checkbox-wrapper"===r.fieldHtmlClass||"checkboxes"===r.type?r:void 0}catch(e){return}}(e,t);return o?(n=Qe(Ee.MultiSelect),ze(e,o.title||"",n)):(i=Xe(e,t,r),_e(i)?void 0:(n=Qe(Ee.DateTime,i),ze(e,t.schema.properties[e].title||"",n)))}},Ze=function(){return Ze=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ze.apply(this,arguments)},et=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},tt=/[^\w\n\s_"](?=[^:\n\s{}[]]*:[\t\n\s]*(\{|\[)+)/g,rt=/"minimum"(?:[^\\"]|\\\\|\\")*"\d+\.*\d*"/g,nt=/"maximum"(?:[^\\"]|\\\\|\\")*"\d+\.*\d*"/g,it=/"(?=[^"]*(?:"[^"]*)?$)/g,ot=function(e){return{type:"string",readOnly:!0,isHidden:!1,display:Te.Header,title:e}},at=function(e){return(null==e?void 0:e.isHidden)||!1},ct=function(e){return e.enum.filter((function(t){return!e.inactive_enum.includes(t)}))},st=function(e){return e.titleMap.filter((function(t){return!e.inactive_titleMap.includes(t.value)}))},ut=function(e,t,r,n){var i,o,a,c,s=e.hasCheckboxes,u=e.hasDisabledChoices;if(Pe(t)&&r.schema.properties[t])r.schema.properties[t].isHidden=at(r.schema.properties[t]);else{if((Le(t)||qe(t))&&t.key&&r.schema.properties[t.key]&&(r.schema.properties[t.key].isHidden=at(r.schema.properties[t.key])),u&&function(e){var t,r;return Le(e)&&e.type===Se&&(null===(t=e.inactive_titleMap)||void 0===t?void 0:t.length)>0&&(null===(r=e.titleMap)||void 0===r?void 0:r.length)>0}(t))if(n){var p=r.definition.indexOf(n),l=r.definition[p].items.indexOf(t);r.definition[p].items[l].titleMap=st(t)}else r.definition[r.definition.indexOf(t)].titleMap=st(t);s&&Ne(t)&&(r.schema.properties[t.key]=(i=t,o=r.schema.properties[t.key].title||"",a=r.schema.properties[t.key].required||!1,c=r.schema.properties[t.key].default||!1,Ze(Ze(Ze({type:"array",uniqueItems:!0,isHidden:!1},a&&{required:a}),{title:o||i.title,items:{enum:i.titleMap.map((function(e){return e.value})),enumNames:i.titleMap.map((function(e){return e.name}))}}),c&&{default:c})))}},pt=function(e){var t;e=function(e){if(null!==e.match(tt))throw Error("Special characters not supported in JSON Schema");return(e=(e=(e=(e=(e=e.replace(/([“”])/g,'"')).replace(new RegExp('\\"enum\\"\\n*\\s*\\:\\n*\\s*\\[\\n*\\s*\\]',"g"),'"enum": ["0"]')).replace(new RegExp('\\"enumNames\\"\\n*\\s*\\:\\n*\\s*\\{\\n*\\s*\\}',"g"),'"enumNames": {"0":"No Options"}')).replace(new RegExp('\\"titleMap\\"\\n*\\s*\\:\\n*\\s*\\[\\n*\\s*\\]',"g"),'"titleMap": [{"value":"no_option", "name":"No Option"}]')).replace(rt,(function(e){return e.replace(it,"")}))).replace(nt,(function(e){return e.replace(it,"")}))}(e);var r=JSON.parse(e);delete r.schema.$schema,delete r.schema.id,function(e){if(e.schema.definition){var t=e.schema.definition;delete e.schema.definition,e.definition=t}}(r);var n=function(e){return{hasCheckboxes:$e(e),hasInactiveChoices:Je(e),hasDisabledChoices:Ve(e),hasEnums:Be(e)}}(e);if(function(e){Ue(e,(function(e){"object"===e.type&&e.properties&&Object.entries(e.properties).forEach((function(e){var t=e[1];"number"===t.type&&(void 0!==t.default&&(t.default=Re(t.default)),void 0!==t.minimum&&(t.minimum=Re(t.minimum)),void 0!==t.maximum&&(t.maximum=Re(t.maximum)))}))}))}(r.schema),function(e,t){var r=e.hasInactiveChoices,n=e.hasEnums;if(r)for(var i=0,o=Object.keys(t.schema.properties);i<o.length;i++){var a=o[i],c=t.schema.properties[a];Fe(c)&&(t.schema.properties[a].enum=ct(c),Oe(t.schema.properties[a].enum)&&(t.schema.properties[a].enum=["0"],t.schema.properties[a].enumNames={0:"No Options"}))}if(n)for(var s=0,u=Object.keys(t.schema.properties);s<u.length;s++)if(a=u[s],!Oe(t.schema.properties[a].enum)&&xe(t.schema.properties[a].enum))throw new Error("Duplicated enum items")}(n,r),function(e,t){var r;if(He(t.definition))!function(e,t){for(var r=0,n=t.definition;r<n.length;r++){var i=n[r];switch(!0){case Pe(i):break;case Me(i):var o=Ie(i.title);t.schema.properties[o]=ot(i.title);break;case De(i):for(var a=0,c=i.items;a<c.length;a++){var s=c[a];ut(e,s,t,i)}break;case Ne(i):ut(e,i,t)}}}(e,t);else if((null===(r=t.definition)||void 0===r?void 0:r.length)>0)for(var n=0,i=t.definition;n<i.length;n++){var o=i[n];ut(e,o,t)}}(n,r),e.includes("helpvalue")&&function(e){for(var t={},r=0,n=0,i=e.definition;n<i.length;n++){var o=i[n];if(Pe(o))t[o]=e.schema.properties[o],delete e.schema.properties[o];else if(Le(o))if(o.helpvalue){var a="help_value_".concat(r);r+=1,t[a]=ot((o.helpvalue||"").replace(/(<.+?>)/g,""))}else o.key&&(t[o.key]=e.schema.properties[o.key],delete e.schema.properties[o.key])}e.schema.properties=Object.assign(t,e.schema.properties)}(r),e.includes("required")){if((null===(t=r.schema.required)||void 0===t?void 0:t.length)>0&&xe(r.schema.required))throw new Error("Duplicated required properties");r.schema=function(e){var t=Array.isArray(e.required)?et([],e.required,!0):null;return Ue(e,(function(e,r){if("object"===e.type&&e.properties){var n=[];if(Object.entries(e.properties).forEach((function(e){var t=e[0],r=e[1];(function(e){return"true"===e.required||e.required>0})(r)&&(n.push(t),delete r.required)})),Oe(n))r.length>0&&e.required&&delete e.required;else if(0===r.length&&t){var i=et(et([],t,!0),n,!0);e.required=Array.from(new Set(i))}else e.required=n}})),e}(r.schema)}return r},lt=function(e,t){return{type:"Label",text:t.label,options:{size:t.size}}},ft=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},mt=function(e){var t=function(e){var t=JSON.parse(JSON.stringify(e));return Object.entries(t.json.properties).forEach((function(e){var r,n=e[0],i=e[1],o=t.ui.fields[n];if("CHOICE_LIST"===(null==o?void 0:o.type)){var a=i;if("array"===a.type&&(null===(r=a.items)||void 0===r?void 0:r.anyOf)){var c=a.items.anyOf.map((function(e){return e.oneOf||[]})).flat();console.log("Flattening array choice list ".concat(n,": ").concat(c.length," total choices")),a.items={type:"string",enum:c.map((function(e){return e.const})),enumNames:c.map((function(e){return e.title||e.const}))},delete a.items.anyOf}a.anyOf&&(c=a.anyOf.map((function(e){return e.oneOf||[]})).flat(),console.log("Flattening string choice list ".concat(n,": ").concat(c.length," total choices")),a.enum=c.map((function(e){return e.const})),a.enumNames=c.map((function(e){return e.title||e.const})),delete a.anyOf)}})),t}(e);!function(e){var t=[],r=["TEXT","NUMERIC","DATE_TIME","CHOICE_LIST","LOCATION","COLLECTION","ATTACHMENT"];if(Object.entries(e.json.properties).forEach((function(n){var i,o,a=n[0],c=n[1],s=e.ui.fields[a];if(s||!c.deprecated)if(s)if(r.includes(s.type)){if("CHOICE_LIST"===s.type){var u=!1,p=c;"array"===p.type&&(null===(i=p.items)||void 0===i?void 0:i.anyOf)?u=p.items.anyOf.some((function(e){return e.oneOf&&Array.isArray(e.oneOf)})):"array"===p.type&&(null===(o=p.items)||void 0===o?void 0:o.enum)?u=Array.isArray(p.items.enum):p.anyOf?u=p.anyOf.some((function(e){return e.oneOf&&Array.isArray(e.oneOf)})):p.enum&&(u=Array.isArray(p.enum)),u||t.push("".concat(a,": CHOICE_LIST field requires embedded oneOf arrays or enum structure - $ref not supported"))}}else t.push("".concat(a,": unsupported field type '").concat(s.type,"'"));else t.push("".concat(a,": missing UI field definition"))})),t.length>0)throw new Error("Invalid V2 schema structure: ".concat(t.join(", ")))}(t);var r,n,i,o=function(e){var t=[];return Object.entries(e.json.properties).forEach((function(r){var n=r[0],i=r[1],o=e.ui.fields[n];(function(e){return!e.deprecated})(i)&&o&&t.push({name:n,property:i,uiField:o})})),t}(t),a=(r=o,n=t.ui.sections,i={},r.forEach((function(e){var t=e.uiField.parent;n[t]&&(i[t]||(i[t]=[]),i[t].push(e))})),i),c=[];return t.ui.order.forEach((function(e){var r=t.ui.sections[e],n=a[e]||[],i=n.length>0,o=ft(ft([],r.leftColumn,!0),r.rightColumn,!0).some((function(e){return"header"===e.type&&t.ui.headers[e.name]}));if((null==r?void 0:r.isActive)&&(i||o)){var s=function(e,t,r,n){var i={type:"VerticalLayout",label:t.label,elements:[]},o=[];return t.leftColumn.forEach((function(e){if("field"===e.type){var t=r.find((function(t){return t.scope==="#/properties/".concat(e.name)}));t&&o.push(t)}else if("header"===e.type){var i=n[e.name];if(i){var a=lt(e.name,i);o.push(a)}}})),t.rightColumn.forEach((function(e){if("field"===e.type){var t=r.find((function(t){return t.scope==="#/properties/".concat(e.name)}));t&&o.push(t)}else if("header"===e.type){var i=n[e.name];if(i){var a=lt(e.name,i);o.push(a)}}})),i.elements=o,i}(0,r,n.map((function(e){return function(e,t,r){var n,i={type:"Control",scope:"#/properties/".concat(e),label:t.title,options:{}};switch(r.type){case"TEXT":"LONG_TEXT"===r.inputType&&(i.options.multi=!0),r.placeholder&&(i.options.placeholder=r.placeholder);break;case"NUMERIC":i.options.format="number",r.placeholder&&(i.options.placeholder=r.placeholder);break;case"DATE_TIME":i.options.format=t.format||"date-time",i.options.display=t.format||"date-time";break;case"CHOICE_LIST":"array"===t.type?(i.options.multi=!0,"DROPDOWN"===r.inputType?i.options.format="dropdown":"LIST"===r.inputType&&(i.options.format="checkbox")):"DROPDOWN"===r.inputType?i.options.format="dropdown":"LIST"===r.inputType&&(i.options.format="radio"),r.placeholder&&(i.options.placeholder=r.placeholder);break;case"LOCATION":i.options.format="location",i.options.display="map";break;case"COLLECTION":i.options.format="array",i.options.addButtonText=r.buttonText||"Add Item",r.itemIdentifier&&(i.options.itemIdentifier=r.itemIdentifier),void 0!==t.maxItems&&(i.options.maxItems=t.maxItems),void 0!==t.minItems&&(i.options.minItems=t.minItems),"array"===t.type&&(null===(n=t.items)||void 0===n?void 0:n.properties)&&(i.options.detail=function(e,t){var r;if("array"!==e.type||!(null===(r=e.items)||void 0===r?void 0:r.properties))throw new Error("Collection property must be an array with item properties");var n=e.items.properties,i=[],o=function(e,t){var r={type:"Control",scope:"#/properties/".concat(e),label:t.title||e,options:{}};switch(t.type){case"string":"uri"===t.format&&(r.options.format="file",r.options.accept="image/*");break;case"number":r.options.format="number"}return t.description&&(r.options.description=t.description),r};return t&&(t.leftColumn||t.rightColumn)?(t.leftColumn&&t.leftColumn.forEach((function(e){n[e]&&i.push(o(e,n[e]))})),t.rightColumn&&t.rightColumn.forEach((function(e){n[e]&&i.push(o(e,n[e]))}))):Object.entries(n).forEach((function(e){var t=e[0],r=e[1];i.push(o(t,r))})),{type:"VerticalLayout",elements:i}}(t,r));break;case"ATTACHMENT":i.options.format="file",r.allowableFileTypes&&(i.options.accept=r.allowableFileTypes.join(","))}return t.description&&(i.options.description=t.description),i}(e.name,e.property,e.uiField)})),t.ui.headers);c.push(s)}})),{type:"VerticalLayout",elements:c}},dt=function(e){try{var t=JSON.parse(e),r=t.data||t;return r.json&&r.ui?{version:"v2",data:r}:(r.schema&&r.definition||r.schema&&r.ui,{version:"v1",data:r})}catch(e){throw new Error("Invalid JSON schema: ".concat(e instanceof Error?e.message:"Unknown error"))}},ht=function(e){var t=dt(e),r=t.version,n=t.data;return{version:r,processedData:JSON.stringify(n)}};module.exports=t})();
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for schema version detection and handling
|
|
3
|
+
*/
|
|
4
|
+
export type SchemaVersion = 'v1' | 'v2';
|
|
5
|
+
export interface ParsedSchema {
|
|
6
|
+
version: SchemaVersion;
|
|
7
|
+
data: any;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Detects whether a schema string contains v1 or v2 format
|
|
11
|
+
*
|
|
12
|
+
* v1 schema structure: { schema: {...}, definition: [...] } or { data: { schema: {...}, definition: [...] } }
|
|
13
|
+
* v2 schema structure: { json: {...}, ui: {...} } or { data: { json: {...}, ui: {...} } }
|
|
14
|
+
*/
|
|
15
|
+
export declare const detectSchemaVersion: (schemaString: string) => ParsedSchema;
|
|
16
|
+
/**
|
|
17
|
+
* Processes a schema string and returns the appropriate data structure for the detected version
|
|
18
|
+
*/
|
|
19
|
+
export declare const processSchema: (schemaString: string) => {
|
|
20
|
+
version: SchemaVersion;
|
|
21
|
+
processedData: string;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=schemaUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemaUtils.d.ts","sourceRoot":"","sources":["../../src/common/schemaUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,CAAC;AAExC,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,aAAa,CAAC;IACvB,IAAI,EAAE,GAAG,CAAC;CACX;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,iBAAkB,MAAM,KAAG,YAwC1D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,iBAAkB,MAAM;aAAc,aAAa;mBAAiB,MAAM;CAOnG,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for schema version detection and handling
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Detects whether a schema string contains v1 or v2 format
|
|
6
|
+
*
|
|
7
|
+
* v1 schema structure: { schema: {...}, definition: [...] } or { data: { schema: {...}, definition: [...] } }
|
|
8
|
+
* v2 schema structure: { json: {...}, ui: {...} } or { data: { json: {...}, ui: {...} } }
|
|
9
|
+
*/
|
|
10
|
+
export var detectSchemaVersion = function (schemaString) {
|
|
11
|
+
try {
|
|
12
|
+
var parsed = JSON.parse(schemaString);
|
|
13
|
+
// Handle wrapped responses (API responses with data wrapper)
|
|
14
|
+
var actualSchema = parsed.data || parsed;
|
|
15
|
+
// Check for v2 schema structure
|
|
16
|
+
if (actualSchema.json && actualSchema.ui) {
|
|
17
|
+
return {
|
|
18
|
+
version: 'v2',
|
|
19
|
+
data: actualSchema
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
// Check for v1 schema structure
|
|
23
|
+
if (actualSchema.schema && actualSchema.definition) {
|
|
24
|
+
return {
|
|
25
|
+
version: 'v1',
|
|
26
|
+
data: actualSchema
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
// If we have a schema property but no ui property, assume v1
|
|
30
|
+
if (actualSchema.schema && !actualSchema.ui) {
|
|
31
|
+
return {
|
|
32
|
+
version: 'v1',
|
|
33
|
+
data: actualSchema
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
// Default to v1 for backward compatibility
|
|
37
|
+
return {
|
|
38
|
+
version: 'v1',
|
|
39
|
+
data: actualSchema
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
throw new Error("Invalid JSON schema: ".concat(error instanceof Error ? error.message : 'Unknown error'));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Processes a schema string and returns the appropriate data structure for the detected version
|
|
48
|
+
*/
|
|
49
|
+
export var processSchema = function (schemaString) {
|
|
50
|
+
var _a = detectSchemaVersion(schemaString), version = _a.version, data = _a.data;
|
|
51
|
+
return {
|
|
52
|
+
version: version,
|
|
53
|
+
processedData: JSON.stringify(data)
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=schemaUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemaUtils.js","sourceRoot":"","sources":["../../src/common/schemaUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AASH;;;;;GAKG;AACH,MAAM,CAAC,IAAM,mBAAmB,GAAG,UAAC,YAAoB;IACtD,IAAI,CAAC;QACH,IAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAExC,6DAA6D;QAC7D,IAAM,YAAY,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC;QAE3C,gCAAgC;QAChC,IAAI,YAAY,CAAC,IAAI,IAAI,YAAY,CAAC,EAAE,EAAE,CAAC;YACzC,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,YAAY;aACnB,CAAC;QACJ,CAAC;QAED,gCAAgC;QAChC,IAAI,YAAY,CAAC,MAAM,IAAI,YAAY,CAAC,UAAU,EAAE,CAAC;YACnD,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,YAAY;aACnB,CAAC;QACJ,CAAC;QAED,6DAA6D;QAC7D,IAAI,YAAY,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,CAAC;YAC5C,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,YAAY;aACnB,CAAC;QACJ,CAAC;QAED,2CAA2C;QAC3C,OAAO;YACL,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,YAAY;SACnB,CAAC;IAEJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,+BAAwB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAE,CAAC,CAAC;IACtG,CAAC;AACH,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,IAAM,aAAa,GAAG,UAAC,YAAoB;IAC1C,IAAA,KAAoB,mBAAmB,CAAC,YAAY,CAAC,EAAnD,OAAO,aAAA,EAAE,IAAI,UAAsC,CAAC;IAE5D,OAAO;QACL,OAAO,SAAA;QACP,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KACpC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -36,6 +36,11 @@ export interface V2BaseProperty {
|
|
|
36
36
|
format?: 'date-time' | 'date' | 'time' | 'uri';
|
|
37
37
|
anyOf?: Array<{
|
|
38
38
|
$ref: string;
|
|
39
|
+
} | {
|
|
40
|
+
oneOf: Array<{
|
|
41
|
+
const: any;
|
|
42
|
+
title?: string;
|
|
43
|
+
}>;
|
|
39
44
|
}>;
|
|
40
45
|
items?: V2BaseProperty;
|
|
41
46
|
properties?: Record<string, V2BaseProperty>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/common/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAChC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,UAAU,EAAE,GAAG,EAAE,CAAC;CACnB;AAGD,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,oBAAoB,EAAE,OAAO,CAAC;QAC9B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QACvC,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,EAAE,EAAE;QACF,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAClC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAClC,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;KACrC,CAAC;CACH;AAGD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;IAC/C,KAAK,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,KAAK,EAAE,KAAK,CAAC;YAAE,KAAK,EAAE,GAAG,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;KAAE,CAAC,CAAC;IACnF,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAGD,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CAC7C;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,UAAU,GAAG,YAAY,GAAG,YAAY,CAAC;IAClG,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,YAAY,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,sBAAsB,GAAG,SAAS,CAAC;IACzC,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACpC;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,WAAW,EAAE,YAAY,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC1B;AAGD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,kBAAkB,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,IAAI,EAAE,gBAAgB,GAAG,kBAAkB,GAAG,OAAO,GAAG,gBAAgB,CAAC;IACzE,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;QACpC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/common/types.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { generateUISchema, validateJSONSchema } from './v1/index';
|
|
2
|
+
export * as v1 from './v1/index';
|
|
3
|
+
export * as v2 from './v2/index';
|
|
4
|
+
export { detectSchemaVersion, processSchema, type SchemaVersion, type ParsedSchema } from './common/schemaUtils';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAGlE,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Default exports (backward compatible - uses v1)
|
|
2
|
+
export { generateUISchema, validateJSONSchema } from './v1/index';
|
|
3
|
+
import * as v1_1 from './v1/index';
|
|
4
|
+
export { v1_1 as v1 };
|
|
5
|
+
import * as v2_1 from './v2/index';
|
|
6
|
+
export { v2_1 as v2 };
|
|
7
|
+
// Schema utilities
|
|
8
|
+
export { detectSchemaVersion, processSchema } from './common/schemaUtils';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;sBAG9C,YAAY;iBAApB,EAAE;sBACM,YAAY;iBAApB,EAAE;AAEd,mBAAmB;AACnB,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAyC,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateUISchema.d.ts","sourceRoot":"","sources":["../../src/v1/generateUISchema.ts"],"names":[],"mappings":"AAmEA,eAAO,MAAM,gBAAgB,WAAY,GAAG;;;CAiB3C,CAAC"}
|