@saas-ui/forms 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/Field.d.ts +79 -0
  3. package/dist/Field.d.ts.map +1 -0
  4. package/dist/array-field.d.ts +48 -0
  5. package/dist/array-field.d.ts.map +1 -0
  6. package/dist/auto-form.d.ts +10 -0
  7. package/dist/auto-form.d.ts.map +1 -0
  8. package/dist/display-field.d.ts +7 -0
  9. package/dist/display-field.d.ts.map +1 -0
  10. package/dist/fields.d.ts +6 -0
  11. package/dist/fields.d.ts.map +1 -0
  12. package/dist/form.d.ts +16 -0
  13. package/dist/form.d.ts.map +1 -0
  14. package/dist/index.d.ts +13 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +2 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/index.modern.js +2 -0
  19. package/dist/index.modern.js.map +1 -0
  20. package/dist/layout.d.ts +5 -0
  21. package/dist/layout.d.ts.map +1 -0
  22. package/dist/object-field.d.ts +11 -0
  23. package/dist/object-field.d.ts.map +1 -0
  24. package/dist/resolvers/yup.d.ts +12 -0
  25. package/dist/resolvers/yup.d.ts.map +1 -0
  26. package/dist/submit-button.d.ts +3 -0
  27. package/dist/submit-button.d.ts.map +1 -0
  28. package/dist/use-array-field.d.ts +95 -0
  29. package/dist/use-array-field.d.ts.map +1 -0
  30. package/dist/utils.d.ts +3 -0
  31. package/dist/utils.d.ts.map +1 -0
  32. package/package.json +75 -0
  33. package/src/array-field.tsx +196 -0
  34. package/src/auto-form.tsx +35 -0
  35. package/src/display-field.tsx +31 -0
  36. package/src/field.tsx +295 -0
  37. package/src/fields.tsx +51 -0
  38. package/src/form.tsx +49 -0
  39. package/src/index.ts +14 -0
  40. package/src/layout.tsx +37 -0
  41. package/src/object-field.tsx +25 -0
  42. package/src/resolvers/yup.ts +81 -0
  43. package/src/submit-button.tsx +25 -0
  44. package/src/use-array-field.tsx +152 -0
  45. package/src/utils.ts +13 -0
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{useFormContext as t,get as r,Controller as n,useFieldArray as a,useForm as i,FormProvider as o}from"react-hook-form";import{FormControl as l,FormLabel as s,Text as c,forwardRef as u,Switch as h,Checkbox as f,Box as p,FormHelperText as d,FormErrorMessage as m,useMergeRefs as y,Input as v,Textarea as b,useTheme as _,SimpleGrid as g,chakra as E}from"@chakra-ui/react";import{NumberInput as w}from"@saas-ui/number-input";import{PasswordInput as L}from"@saas-ui/password-input";import{RadioInput as j}from"@saas-ui/radio";import{PinInput as C}from"@saas-ui/pin-input";import{Select as A,NativeSelect as O}from"@saas-ui/select";import{yupResolver as x}from"@hookform/resolvers/yup";import{forwardRef as M,chakra as k}from"@chakra-ui/system";import{IconButton as $,Button as N}from"@saas-ui/button";export*from"@saas-ui/input-right-button";function I(){return I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},I.apply(this,arguments)}function S(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(a[r]=e[r]);return a}const z=["name","label","placeholder"],V=r=>{let{name:n,label:a}=r,i=S(r,z);const{getValues:o}=t();/*#__PURE__*/return e.createElement(l,i,a?/*#__PURE__*/e.createElement(s,{htmlFor:n},a):null,/*#__PURE__*/e.createElement(c,{fontSize:"md"},o(n)))},Z=["name","label","help","variant","hideLabel","children"],T=["label","isDisabled","isInvalid","isReadOnly","isRequired","isOptional","variant"],P=["name","rules"],R=["ref"],B=["name","rules"],D=["ref"],F=["label"],H=["label"],q={},U="text",W=n=>{const{name:a,label:i,help:o,variant:c,hideLabel:u,children:h}=n,f=S(n,Z),{formState:y}=t(),v=((e,t)=>r(t.errors,e))(a,y);/*#__PURE__*/return e.createElement(l,I({isInvalid:!!v,variant:c},f),i&&!u?/*#__PURE__*/e.createElement(s,{variant:c},i):null,/*#__PURE__*/e.createElement(p,null,h,!o||null!=v&&v.message?null:/*#__PURE__*/e.createElement(d,null,o),(null==v?void 0:v.message)&&/*#__PURE__*/e.createElement(m,null,null==v?void 0:v.message)))},Y=u((t,r)=>{const{type:n=U}=t,a=(e=>q[e]||q[U])(n);/*#__PURE__*/return e.createElement(a,I({ref:r},t))}),G=r=>u((a,i)=>{let{name:o,rules:l}=a,s=S(a,P);const{control:c}=t();/*#__PURE__*/return e.createElement(n,{name:o,control:c,rules:l,render:t=>{let{field:{ref:n}}=t,a=S(t.field,R);/*#__PURE__*/return e.createElement(r,I({},a,s,{ref:y(i,n)}))}})}),Q=r=>u((n,a)=>{let{name:i,rules:o}=n,l=S(n,B);const{register:s}=t(),c=s(i,o),{ref:u}=c,h=S(c,D);/*#__PURE__*/return e.createElement(r,I({},h,l,{ref:y(a,u)}))}),J=(t,r,n)=>{let a;a=null!=n&&n.isControlled?G(r):Q(r);const i=((t,{displayName:r,hideLabel:n,BaseField:a})=>{const i=u((r,i)=>{const{label:o,isDisabled:l,isInvalid:s,isReadOnly:c,isRequired:u,isOptional:h,variant:f}=r,p=S(r,T);/*#__PURE__*/return e.createElement(a,{label:o,hideLabel:n,isDiabled:l,isInvalid:s,isReadOnly:c,isRequired:u,isOptional:h,variant:f},/*#__PURE__*/e.createElement(t,I({ref:i,label:o},p)))});return i.displayName=r,i})(a,{displayName:`${t.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}Field`,hideLabel:null==n?void 0:n.hideLabel,BaseField:(null==n?void 0:n.BaseField)||W});return q[t]=i,i},K=J("text",v),X=J("number",w,{isControlled:!0}),ee=J("password",L),te=J("textarea",b),re=J("switch",u((t,r)=>{let{label:n}=t,a=S(t,F);/*#__PURE__*/return e.createElement(h,I({ref:r},a),n)}),{isControlled:!0,hideLabel:!0}),ne=J("select",A,{isControlled:!0}),ae=J("checkbox",u((t,r)=>{let{label:n}=t,a=S(t,H);/*#__PURE__*/return e.createElement(f,I({ref:r},a),n)}),{hideLabel:!0}),ie=J("radio",j,{isControlled:!0}),oe=J("pin",C,{isControlled:!0}),le=J("native-select",O,{isControlled:!0});var se,ce;try{se=Map}catch(e){}try{ce=Set}catch(e){}function ue(e,t,r){if(!e||"object"!=typeof e||"function"==typeof e)return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(he);if(se&&e instanceof se)return new Map(Array.from(e.entries()));if(ce&&e instanceof ce)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var n=Object.create(e);for(var a in r.push(n),e){var i=t.findIndex(function(t){return t===e[a]});n[a]=i>-1?r[i]:ue(e[a],t,r)}return n}return e}function he(e){return ue(e,[],[])}const fe=Object.prototype.toString,pe=Error.prototype.toString,de=RegExp.prototype.toString,me="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",ye=/^Symbol\((.*)\)(.*)$/;function ve(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const r=typeof e;if("number"===r)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return me.call(e).replace(ye,"Symbol($1)");const n=fe.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+pe.call(e)+"]":"RegExp"===n?de.call(e):null}function be(e,t){let r=ve(e,t);return null!==r?r:JSON.stringify(e,function(e,r){let n=ve(this[e],t);return null!==n?n:r},2)}let _e={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{let a=null!=n&&n!==r,i=`${e} must be a \`${t}\` type, but the final value was: \`${be(r,!0)}\``+(a?` (cast from the value \`${be(n,!0)}\`).`:".");return null===r&&(i+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),i},defined:"${path} must be defined"};Object.assign(Object.create(null),{mixed:_e,string:{length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:{min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},object:{noUnknown:"${path} field has unspecified keys: ${unknown}"},array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"}});var ge=Object.prototype.hasOwnProperty,Ee=function(e,t){return null!=e&&ge.call(e,t)},we=Array.isArray,Le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function je(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ce,Ae="object"==typeof Le&&Le&&Le.Object===Object&&Le,Oe="object"==typeof self&&self&&self.Object===Object&&self,xe=Ae||Oe||Function("return this")(),Me=xe.Symbol,ke=Object.prototype,$e=ke.hasOwnProperty,Ne=ke.toString,Ie=Me?Me.toStringTag:void 0,Se=Object.prototype.toString,ze=Me?Me.toStringTag:void 0,Ve=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ze&&ze in Object(e)?function(e){var t=$e.call(e,Ie),r=e[Ie];try{e[Ie]=void 0;var n=!0}catch(e){}var a=Ne.call(e);return n&&(t?e[Ie]=r:delete e[Ie]),a}(e):function(e){return Se.call(e)}(e)},Ze=function(e){return null!=e&&"object"==typeof e},Te=function(e){return"symbol"==typeof e||Ze(e)&&"[object Symbol]"==Ve(e)},Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Re=/^\w*$/,Be=function(e,t){if(we(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Te(e))||Re.test(e)||!Pe.test(e)||null!=t&&e in Object(t)},De=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Fe=function(e){if(!De(e))return!1;var t=Ve(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},He=xe["__core-js_shared__"],qe=(Ce=/[^.]+$/.exec(He&&He.keys&&He.keys.IE_PROTO||""))?"Symbol(src)_1."+Ce:"",Ue=Function.prototype.toString,We=function(e){if(null!=e){try{return Ue.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Ye=/^\[object .+?Constructor\]$/,Ge=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qe=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!De(e)||(t=e,qe&&qe in t))&&(Fe(e)?Ge:Ye).test(We(e));var t}(r)?r:void 0},Je=Qe(Object,"create"),Ke=Object.prototype.hasOwnProperty,Xe=Object.prototype.hasOwnProperty;function et(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}et.prototype.clear=function(){this.__data__=Je?Je(null):{},this.size=0},et.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},et.prototype.get=function(e){var t=this.__data__;if(Je){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Ke.call(t,e)?t[e]:void 0},et.prototype.has=function(e){var t=this.__data__;return Je?void 0!==t[e]:Xe.call(t,e)},et.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Je&&void 0===t?"__lodash_hash_undefined__":t,this};var tt=et,rt=function(e,t){return e===t||e!=e&&t!=t},nt=function(e,t){for(var r=e.length;r--;)if(rt(e[r][0],t))return r;return-1},at=Array.prototype.splice;function it(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}it.prototype.clear=function(){this.__data__=[],this.size=0},it.prototype.delete=function(e){var t=this.__data__,r=nt(t,e);return!(r<0||(r==t.length-1?t.pop():at.call(t,r,1),--this.size,0))},it.prototype.get=function(e){var t=this.__data__,r=nt(t,e);return r<0?void 0:t[r][1]},it.prototype.has=function(e){return nt(this.__data__,e)>-1},it.prototype.set=function(e,t){var r=this.__data__,n=nt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var ot=it,lt=Qe(xe,"Map"),st=function(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map};function ct(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ct.prototype.clear=function(){this.size=0,this.__data__={hash:new tt,map:new(lt||ot),string:new tt}},ct.prototype.delete=function(e){var t=st(this,e).delete(e);return this.size-=t?1:0,t},ct.prototype.get=function(e){return st(this,e).get(e)},ct.prototype.has=function(e){return st(this,e).has(e)},ct.prototype.set=function(e,t){var r=st(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var ut=ct;function ht(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function r(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(ht.Cache||ut),r}ht.Cache=ut;var ft,pt,dt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mt=/\\(\\)?/g,yt=(ft=ht(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(dt,function(e,r,n,a){t.push(n?a.replace(mt,"$1"):r||e)}),t},function(e){return 500===pt.size&&pt.clear(),e}),pt=ft.cache,ft),vt=Me?Me.prototype:void 0,bt=vt?vt.toString:void 0,_t=function e(t){if("string"==typeof t)return t;if(we(t))return function(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}(t,e)+"";if(Te(t))return bt?bt.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},gt=function(e,t){return we(e)?e:Be(e,t)?[e]:yt(function(e){return null==e?"":_t(e)}(e))},Et=function(e){return Ze(e)&&"[object Arguments]"==Ve(e)},wt=Object.prototype,Lt=wt.hasOwnProperty,jt=wt.propertyIsEnumerable,Ct=Et(function(){return arguments}())?Et:function(e){return Ze(e)&&Lt.call(e,"callee")&&!jt.call(e,"callee")},At=/^(?:0|[1-9]\d*)$/,Ot=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&At.test(e))&&e>-1&&e%1==0&&e<t},xt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Mt=function(e){if("string"==typeof e||Te(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},kt=function(e,t,r){for(var n=-1,a=(t=gt(t,e)).length,i=!1;++n<a;){var o=Mt(t[n]);if(!(i=null!=e&&r(e,o)))break;e=e[o]}return i||++n!=a?i:!!(a=null==e?0:e.length)&&xt(a)&&Ot(o,a)&&(we(e)||Ct(e))};class $t{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t)return void(this.fn=t);if(null==(r=t)||!kt(r,"is",Ee))throw new TypeError("`is:` is required for `when()` conditions");var r;if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:a,otherwise:i}=t,o="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),r=e.pop(),n=o(...e)?a:i;if(n)return"function"==typeof n?n(r):r.concat(n.resolve(t))}}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn.apply(e,r.concat(e,t));if(void 0===n||n===e)return e;if(!(a=n)||!a.__isYupSchema__)throw new TypeError("conditions must return a schema object");var a;return n.resolve(t)}}function Nt(e){return null==e?[]:[].concat(e)}function It(){return It=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},It.apply(this,arguments)}let St=/\$\{\s*(\w+)\s*\}/g;class zt extends Error{static formatError(e,t){const r=t.label||t.path||"this";return r!==t.path&&(t=It({},t,{path:r})),"string"==typeof e?e.replace(St,(e,r)=>be(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,r,n){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],Nt(e).forEach(e=>{zt.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,zt)}}function Vt(e,t){let{endEarly:r,tests:n,args:a,value:i,errors:o,sort:l,path:s}=e,c=(e=>{let t=!1;return(...r)=>{t||(t=!0,e(...r))}})(t),u=n.length;const h=[];if(o=o||[],!u)return o.length?c(new zt(o,i,s)):c(null,i);for(let e=0;e<n.length;e++)(0,n[e])(a,function(e){if(e){if(!zt.isError(e))return c(e,i);if(r)return e.value=i,c(e,i);h.push(e)}if(--u<=0){if(h.length&&(l&&h.sort(l),o.length&&h.push(...o),o=h),o.length)return void c(new zt(o,i,s),i);c(null,i)}})}var Zt=function(){try{var e=Qe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Tt=function(){return!1},Pt=je(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,a=n&&n.exports===r?xe.Buffer:void 0;e.exports=(a?a.isBuffer:void 0)||Tt}),Rt={};Rt["[object Float32Array]"]=Rt["[object Float64Array]"]=Rt["[object Int8Array]"]=Rt["[object Int16Array]"]=Rt["[object Int32Array]"]=Rt["[object Uint8Array]"]=Rt["[object Uint8ClampedArray]"]=Rt["[object Uint16Array]"]=Rt["[object Uint32Array]"]=!0,Rt["[object Arguments]"]=Rt["[object Array]"]=Rt["[object ArrayBuffer]"]=Rt["[object Boolean]"]=Rt["[object DataView]"]=Rt["[object Date]"]=Rt["[object Error]"]=Rt["[object Function]"]=Rt["[object Map]"]=Rt["[object Number]"]=Rt["[object Object]"]=Rt["[object RegExp]"]=Rt["[object Set]"]=Rt["[object String]"]=Rt["[object WeakMap]"]=!1;var Bt,Dt=je(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,a=n&&n.exports===r&&Ae.process,i=function(){try{return n&&n.require&&n.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i}),Ft=Dt&&Dt.isTypedArray,Ht=Ft?(Bt=Ft,function(e){return Bt(e)}):function(e){return Ze(e)&&xt(e.length)&&!!Rt[Ve(e)]},qt=Object.prototype.hasOwnProperty,Ut=Object.prototype,Wt=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Yt=Object.prototype.hasOwnProperty,Gt=function(e){return null!=(t=e)&&xt(t.length)&&!Fe(t)?function(e,t){var r=we(e),n=!r&&Ct(e),a=!r&&!n&&Pt(e),i=!r&&!n&&!a&&Ht(e),o=r||n||a||i,l=o?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],s=l.length;for(var c in e)!qt.call(e,c)||o&&("length"==c||a&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ot(c,s))||l.push(c);return l}(e):function(e){if((t=e)!==("function"==typeof(r=t&&t.constructor)&&r.prototype||Ut))return Wt(e);var t,r,n=[];for(var a in Object(e))Yt.call(e,a)&&"constructor"!=a&&n.push(a);return n}(e);var t};function Qt(e){var t=this.__data__=new ot(e);this.size=t.size}Qt.prototype.clear=function(){this.__data__=new ot,this.size=0},Qt.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Qt.prototype.get=function(e){return this.__data__.get(e)},Qt.prototype.has=function(e){return this.__data__.has(e)},Qt.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ot){var n=r.__data__;if(!lt||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ut(n)}return r.set(e,t),this.size=r.size,this};var Jt=Qt;function Kt(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ut;++t<r;)this.add(e[t])}Kt.prototype.add=Kt.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Kt.prototype.has=function(e){return this.__data__.has(e)};var Xt=Kt,er=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},tr=function(e,t){return e.has(t)},rr=function(e,t,r,n,a,i){var o=1&r,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var h=-1,f=!0,p=2&r?new Xt:void 0;for(i.set(e,t),i.set(t,e);++h<l;){var d=e[h],m=t[h];if(n)var y=o?n(m,d,h,t,e,i):n(d,m,h,e,t,i);if(void 0!==y){if(y)continue;f=!1;break}if(p){if(!er(t,function(e,t){if(!tr(p,t)&&(d===e||a(d,e,r,n,i)))return p.push(t)})){f=!1;break}}else if(d!==m&&!a(d,m,r,n,i)){f=!1;break}}return i.delete(e),i.delete(t),f},nr=xe.Uint8Array,ar=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r},ir=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r},or=Me?Me.prototype:void 0,lr=or?or.valueOf:void 0,sr=Object.prototype.propertyIsEnumerable,cr=Object.getOwnPropertySymbols,ur=cr?function(e){return null==e?[]:(e=Object(e),function(t,r){for(var n=-1,a=null==t?0:t.length,i=0,o=[];++n<a;){var l=t[n];sr.call(e,l)&&(o[i++]=l)}return o}(cr(e)))}:function(){return[]},hr=ur,fr=function(e){return function(e,t,r){var n=Gt(e);return we(e)?n:function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}(n,r(e))}(e,0,hr)},pr=Object.prototype.hasOwnProperty,dr=Qe(xe,"DataView"),mr=Qe(xe,"Promise"),yr=Qe(xe,"Set"),vr=Qe(xe,"WeakMap"),br=We(dr),_r=We(lt),gr=We(mr),Er=We(yr),wr=We(vr),Lr=Ve;(dr&&"[object DataView]"!=Lr(new dr(new ArrayBuffer(1)))||lt&&"[object Map]"!=Lr(new lt)||mr&&"[object Promise]"!=Lr(mr.resolve())||yr&&"[object Set]"!=Lr(new yr)||vr&&"[object WeakMap]"!=Lr(new vr))&&(Lr=function(e){var t=Ve(e),r="[object Object]"==t?e.constructor:void 0,n=r?We(r):"";if(n)switch(n){case br:return"[object DataView]";case _r:return"[object Map]";case gr:return"[object Promise]";case Er:return"[object Set]";case wr:return"[object WeakMap]"}return t});var jr=Lr,Cr="[object Object]",Ar=Object.prototype.hasOwnProperty,Or=function e(t,r,n,a,i){return t===r||(null==t||null==r||!Ze(t)&&!Ze(r)?t!=t&&r!=r:function(e,t,r,n,a,i){var o=we(e),l=we(t),s=o?"[object Array]":jr(e),c=l?"[object Array]":jr(t),u=(s="[object Arguments]"==s?Cr:s)==Cr,h=(c="[object Arguments]"==c?Cr:c)==Cr,f=s==c;if(f&&Pt(e)){if(!Pt(t))return!1;o=!0,u=!1}if(f&&!u)return i||(i=new Jt),o||Ht(e)?rr(e,t,r,n,a,i):function(e,t,r,n,a,i,o){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new nr(e),new nr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return rt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=ar;case"[object Set]":if(l||(l=ir),e.size!=t.size&&!(1&n))return!1;var s=o.get(e);if(s)return s==t;n|=2,o.set(e,t);var c=rr(l(e),l(t),n,a,i,o);return o.delete(e),c;case"[object Symbol]":if(lr)return lr.call(e)==lr.call(t)}return!1}(e,t,s,r,n,a,i);if(!(1&r)){var p=u&&Ar.call(e,"__wrapped__"),d=h&&Ar.call(t,"__wrapped__");if(p||d){var m=p?e.value():e,y=d?t.value():t;return i||(i=new Jt),a(m,y,r,n,i)}}return!!f&&(i||(i=new Jt),function(e,t,r,n,a,i){var o=1&r,l=fr(e),s=l.length;if(s!=fr(t).length&&!o)return!1;for(var c=s;c--;){var u=l[c];if(!(o?u in t:pr.call(t,u)))return!1}var h=i.get(e),f=i.get(t);if(h&&f)return h==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var d=o;++c<s;){var m=e[u=l[c]],y=t[u];if(n)var v=o?n(y,m,u,t,e,i):n(m,y,u,e,t,i);if(!(void 0===v?m===y||a(m,y,r,n,i):v)){p=!1;break}d||(d="constructor"==u)}if(p&&!d){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,r,n,a,i))}(t,r,n,a,e,i))},xr=function(e){return e==e&&!De(e)},Mr=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}},kr=function(e,t){for(var r=0,n=(t=gt(t,e)).length;null!=e&&r<n;)e=e[Mt(t[r++])];return r&&r==n?e:void 0},$r=function(e,t){return null!=e&&t in Object(e)},Nr=function(e){return e};function Ir(e){this._maxSize=e,this.clear()}Ir.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Ir.prototype.get=function(e){return this._values[e]},Ir.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Sr=/[^.^\]^[]+|(?=\[\]|\.\.)/g,zr=/^\d+$/,Vr=/^\d/,Zr=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Tr=/^\s*(['"]?)(.*?)(\1)\s*$/,Pr=new Ir(512),Rr=(new Ir(512),new Ir(512));function Br(e){return e.match(Sr)}function Dr(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function Fr(e){return!Dr(e)&&(function(e){return e.match(Vr)&&!e.match(zr)}(e)||function(e){return Zr.test(e)}(e))}class Hr{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");var r,n;this.isContext="$"===this.key[0],this.isValue="."===this.key[0],this.isSibling=!this.isContext&&!this.isValue,this.path=this.key.slice((this.isContext?"$":this.isValue?".":"").length),this.getter=this.path&&(n=function(e){return Pr.get(e)||Pr.set(e,Br(e).map(function(e){return e.replace(Tr,"$2")}))}(r=this.path),Rr.get(r)||Rr.set(r,function(e){for(var t=0,r=n.length;t<r;){if(null==e)return;e=e[n[t++]]}return e})),this.map=t.map}getValue(e,t,r){let n=this.isContext?r:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}function qr(){return qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qr.apply(this,arguments)}function Ur(e){function t(t,r){let{value:n,path:a="",label:i,options:o,originalValue:l,sync:s}=t,c=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(a[r]=e[r]);return a}(t,["value","path","label","options","originalValue","sync"]);const{name:u,test:h,params:f,message:p}=e;let{parent:d,context:m}=o;function y(e){return Hr.isRef(e)?e.getValue(n,d,m):e}function v(e={}){const t=function(e,t){var r,n,a,i,o,l={};return t="function"==typeof(r=t)?r:null==r?Nr:"object"==typeof r?we(r)?(o=r[1],Be(i=r[0])&&xr(o)?Mr(Mt(i),o):function(e){var t=function(e,t,r){var n=null==e?void 0:kr(e,t);return void 0===n?void 0:n}(e,i);return void 0===t&&t===o?function(e,t){return null!=e&&kt(e,t,$r)}(e,i):Or(o,t,3)}):(a=function(e){for(var t=Gt(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,xr(a)]}return t}(n=r),1==a.length&&a[0][2]?Mr(a[0][0],a[0][1]):function(e){return e===n||function(e,t,r,n){var a=r.length,i=a;if(null==e)return!i;for(e=Object(e);a--;){var o=r[a];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){var l=(o=r[a])[0],s=e[l],c=o[1];if(o[2]){if(void 0===s&&!(l in e))return!1}else{var u=new Jt;if(!Or(c,s,3,void 0,u))return!1}}return!0}(e,0,a)}):function(e){return Be(e)?(t=Mt(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return kr(t,e)}}(e);var t}(r),function(e,t){e&&function(e,t,r){for(var n=-1,a=Object(e),i=r(e),o=i.length;o--;){var l=i[++n];if(!1===t(a[l],l,a))break}}(e,t,Gt)}(e,function(e,r,n){!function(e,t,r){"__proto__"==t&&Zt?Zt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}(l,r,t(e,r,n))}),l}(qr({value:n,originalValue:l,label:i,path:e.path||a},f,e.params),y),r=new zt(zt.formatError(e.message||p,t),n,t.path,e.type||u);return r.params=t,r}let b,_=qr({path:a,parent:d,type:u,createError:v,resolve:y,options:o,originalValue:l},c);if(s){try{var g;if(b=h.call(_,n,_),"function"==typeof(null==(g=b)?void 0:g.then))throw new Error(`Validation test of type: "${_.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){return void r(e)}zt.isError(b)?r(b):b?r(null,b):r(v())}else try{Promise.resolve(h.call(_,n,_)).then(e=>{zt.isError(e)?r(e):e?r(null,e):r(v())}).catch(r)}catch(e){r(e)}}return t.OPTIONS=e,t}function Wr(e,t,r,n=r){let a,i,o;return t?(function(e,t,r){!function(e,t,r){var n,a,i,o,l=e.length;for(a=0;a<l;a++)(n=e[a])&&(Fr(n)&&(n='"'+n+'"'),i=!(o=Dr(n))&&/^\d+$/.test(n),t.call(void 0,n,o,i,a,e))}(Array.isArray(e)?e:Br(e),t)}(t,(l,s,c)=>{let u=s?(e=>e.substr(0,e.length-1).substr(1))(l):l;if((e=e.resolve({context:n,parent:a,value:r})).innerType){let n=c?parseInt(u,10):0;if(r&&n>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);a=r,r=r&&r[n],e=e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e._type}")`);a=r,r=r&&r[u],e=e.fields[u]}i=u,o=s?"["+l+"]":"."+l}),{schema:e,parent:a,parentPath:i}):{parent:a,parentPath:t,schema:e}}Hr.prototype.__isYupRef=!0;class Yr{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const t of this.list)e.push(t);for(const[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,r)=>t.concat(Hr.isRef(r)?e(r):r),[])}add(e){Hr.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){Hr.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new Yr;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){const r=this.clone();return e.list.forEach(e=>r.add(e)),e.refs.forEach(e=>r.add(e)),t.list.forEach(e=>r.delete(e)),t.refs.forEach(e=>r.delete(e)),r}}function Gr(){return Gr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gr.apply(this,arguments)}class Qr{constructor(e){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new Yr,this._blacklist=new Yr,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(_e.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=Gr({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=Gr({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=he(Gr({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,r=e.clone();const n=Gr({},t.spec,r.spec);return r.spec=n,r._typeError||(r._typeError=t._typeError),r._whitelistError||(r._whitelistError=t._whitelistError),r._blacklistError||(r._blacklistError=t._blacklistError),r._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),r.tests=t.tests,r.exclusiveTests=t.exclusiveTests,r.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),r.transforms=[...t.transforms,...r.transforms],r}isType(e){return!(!this.spec.nullable||null!==e)||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;t=t.clone(),t.conditions=[],t=r.reduce((t,r)=>r.resolve(t,e),t),t=t.resolve(e)}return t}cast(e,t={}){let r=this.resolve(Gr({value:e},t)),n=r._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==r.isType(n)){let a=be(e),i=be(n);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}". \n\nattempted value: ${a} \n`+(i!==a?`result of cast: ${i}`:""))}return n}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((t,r)=>r.call(this,t,e,this),e);return void 0===r&&(r=this.getDefault()),r}_validate(e,t={},r){let{sync:n,path:a,from:i=[],originalValue:o=e,strict:l=this.spec.strict,abortEarly:s=this.spec.abortEarly}=t,c=e;l||(c=this._cast(c,Gr({assert:!1},t)));let u={value:c,path:a,options:t,originalValue:o,schema:this,label:this.spec.label,sync:n,from:i},h=[];this._typeError&&h.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),Vt({args:u,value:c,path:a,sync:n,tests:h,endEarly:s},e=>{e?r(e,c):Vt({tests:this.tests.concat(f),args:u,path:a,sync:n,value:c,endEarly:s},r)})}validate(e,t,r){let n=this.resolve(Gr({},t,{value:e}));return"function"==typeof r?n._validate(e,t,r):new Promise((r,a)=>n._validate(e,t,(e,t)=>{e?a(e):r(t)}))}validateSync(e,t){let r;return this.resolve(Gr({},t,{value:e}))._validate(e,Gr({},t,{sync:!0}),(e,t)=>{if(e)throw e;r=t}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(zt.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(zt.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):he(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=_e.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=_e.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=_e.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let r=this.clone(),n=Ur(t),a=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>{if(e.OPTIONS.name===t.name){if(a)return!1;if(e.OPTIONS.test===n.OPTIONS.test)return!1}return!0}),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=Nt(e).map(e=>new Hr(e));return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push(new $t(n,t)),r}typeError(e){let t=this.clone();return t._typeError=Ur({message:e,name:"typeError",test(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=_e.oneOf){let r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r._whitelistError=Ur({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:r}})}}),r}notOneOf(e,t=_e.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r._blacklistError=Ur({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){const e=this.clone(),{label:t,meta:r}=e.spec;return{meta:r,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,r)=>r.findIndex(t=>t.name===e.name)===t)}}}Qr.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Qr.prototype[`${e}At`]=function(t,r,n={}){const{parent:a,parentPath:i,schema:o}=Wr(this,t,r,n.context);return o[e](a&&a[i],Gr({},n,{parent:a,path:t}))};for(const e of["equals","is"])Qr.prototype[e]=Qr.prototype.oneOf;for(const e of["not","nope"])Qr.prototype[e]=Qr.prototype.notOneOf;Qr.prototype.optional=Qr.prototype.notRequired;const Jr=x,Kr=e=>{var t;if(null!=(t=e.spec.meta)&&t.type)return e.spec.meta.type;switch(e.type){case"array":return"array";case"object":return"object";case"number":return"number";case"date":return"date";default:return"text"}},Xr=(e,t)=>{for(const n of e.tests){var r;if(null!=(r=n.OPTIONS)&&r.params[t])return n.OPTIONS.params[t]}},en=e=>{const t=[];let r={};r="array"===e.type?e.innerType.fields:e.fields;for(const e in r){const n=r[e],a={};"array"===n.type&&(a.min=Xr(n,"min"),a.max=Xr(n,"max")),t.push(I({name:e,label:n.spec.label||e,type:Kr(n)},a))}return t},tn=["children"],rn=({children:t})=>/*#__PURE__*/e.createElement(E.div,null,t),nn=t=>{var r,n,a;let{children:i}=t,o=S(t,tn);const l=I({},null!=(r=null==(n=_().components)||null==(a=n.FormLayout)?void 0:a.defaultProps)?r:{spacing:4},o);/*#__PURE__*/return e.createElement(g,l,e.Children.map(i,t=>e.isValidElement(t)?/*#__PURE__*/e.createElement(rn,null,t):t))};je(function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,a="[object Arguments]",i="[object Function]",o="[object Object]",l=/^\[object .+?Constructor\]$/,s=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[a]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[i]=c["[object Map]"]=c["[object Number]"]=c[o]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var u="object"==typeof Le&&Le&&Le.Object===Object&&Le,h="object"==typeof self&&self&&self.Object===Object&&self,f=u||h||Function("return this")(),p=t&&!t.nodeType&&t,d=p&&e&&!e.nodeType&&e,m=d&&d.exports===p,y=m&&u.process,v=function(){try{return d&&d.require&&d.require("util").types||y&&y.binding&&y.binding("util")}catch(e){}}(),b=v&&v.isTypedArray;function _(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var g,E,w=Array.prototype,L=Object.prototype,j=f["__core-js_shared__"],C=Function.prototype.toString,A=L.hasOwnProperty,O=function(){var e=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),x=L.toString,M=C.call(Object),k=RegExp("^"+C.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=m?f.Buffer:void 0,N=f.Symbol,I=f.Uint8Array,S=(g=Object.getPrototypeOf,E=Object,function(e){return g(E(e))}),z=Object.create,V=L.propertyIsEnumerable,Z=w.splice,T=N?N.toStringTag:void 0,P=function(){try{var e=ie(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),R=$?$.isBuffer:void 0,B=Math.max,D=Date.now,F=ie(f,"Map"),H=ie(Object,"create"),q=function(){function e(){}return function(t){if(!ve(t))return{};if(z)return z(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function U(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function W(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Y(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function G(e){var t=this.__data__=new W(e);this.size=t.size}function Q(e,t,r){(void 0!==r&&!ue(e[t],r)||void 0===r&&!(t in e))&&X(e,t,r)}function J(e,t,r){var n=e[t];A.call(e,t)&&ue(n,r)&&(void 0!==r||t in e)||X(e,t,r)}function K(e,t){for(var r=e.length;r--;)if(ue(e[r][0],t))return r;return-1}function X(e,t,r){"__proto__"==t&&P?P(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ee(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":T&&T in Object(e)?function(e){var t=A.call(e,T),r=e[T];try{e[T]=void 0;var n=!0}catch(e){}var a=x.call(e);return n&&(t?e[T]=r:delete e[T]),a}(e):function(e){return x.call(e)}(e)}function te(e){return be(e)&&ee(e)==a}function re(e,t,r,n,a){e!==t&&function(e,t,r){for(var n=-1,a=Object(e),i=r(e),o=i.length;o--;){var l=i[++n];if(!1===t(a[l],l))break}}(t,function(i,l){if(a||(a=new G),ve(i))!function(e,t,r,n,a,i,l){var s=se(e,r),c=se(t,r),u=l.get(c);if(u)Q(e,r,u);else{var h,f,p,d,m=i?i(s,c,r+"",e,t,l):void 0,y=void 0===m;if(y){var v=fe(c),b=!v&&de(c),_=!v&&!b&&_e(c);m=c,v||b||_?fe(s)?m=s:be(d=s)&&pe(d)?m=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(s):b?(y=!1,m=c.slice()):_?(y=!1,p=new(f=(h=c).buffer).constructor(f.byteLength),new I(p).set(new I(f)),m=new h.constructor(p,h.byteOffset,h.length)):m=[]:function(e){if(!be(e)||ee(e)!=o)return!1;var t=S(e);if(null===t)return!0;var r=A.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&C.call(r)==M}(c)||he(c)?(m=s,he(s)?m=function(e){return function(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var l=t[i],s=void 0;void 0===s&&(s=e[l]),a?X(r,l,s):J(r,l,s)}return r}(e,ge(e))}(s):ve(s)&&!me(s)||(m=function(e){return"function"!=typeof e.constructor||le(e)?{}:q(S(e))}(c))):y=!1}y&&(l.set(c,m),a(m,c,n,i,l),l.delete(c)),Q(e,r,m)}}(e,t,l,r,re,n,a);else{var s=n?n(se(e,l),i,l+"",e,t,a):void 0;void 0===s&&(s=i),Q(e,l,s)}},ge)}U.prototype.clear=function(){this.__data__=H?H(null):{},this.size=0},U.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},U.prototype.get=function(e){var t=this.__data__;if(H){var n=t[e];return n===r?void 0:n}return A.call(t,e)?t[e]:void 0},U.prototype.has=function(e){var t=this.__data__;return H?void 0!==t[e]:A.call(t,e)},U.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=H&&void 0===t?r:t,this},W.prototype.clear=function(){this.__data__=[],this.size=0},W.prototype.delete=function(e){var t=this.__data__,r=K(t,e);return!(r<0||(r==t.length-1?t.pop():Z.call(t,r,1),--this.size,0))},W.prototype.get=function(e){var t=this.__data__,r=K(t,e);return r<0?void 0:t[r][1]},W.prototype.has=function(e){return K(this.__data__,e)>-1},W.prototype.set=function(e,t){var r=this.__data__,n=K(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Y.prototype.clear=function(){this.size=0,this.__data__={hash:new U,map:new(F||W),string:new U}},Y.prototype.delete=function(e){var t=ae(this,e).delete(e);return this.size-=t?1:0,t},Y.prototype.get=function(e){return ae(this,e).get(e)},Y.prototype.has=function(e){return ae(this,e).has(e)},Y.prototype.set=function(e,t){var r=ae(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},G.prototype.clear=function(){this.__data__=new W,this.size=0},G.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},G.prototype.get=function(e){return this.__data__.get(e)},G.prototype.has=function(e){return this.__data__.has(e)},G.prototype.set=function(e,t){var r=this.__data__;if(r instanceof W){var n=r.__data__;if(!F||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Y(n)}return r.set(e,t),this.size=r.size,this};var ne=P?function(e,t){return P(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:je;function ae(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function ie(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!ve(e)||function(e){return!!O&&O in e}(e))&&(me(e)?k:l).test(function(e){if(null!=e){try{return C.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}function oe(e,t){var r=typeof e;return!!(t=null==t?n:t)&&("number"==r||"symbol"!=r&&s.test(e))&&e>-1&&e%1==0&&e<t}function le(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||L)}function se(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ce=function(e){var t=0,r=0;return function(){var n=D(),a=16-(n-r);if(r=n,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ne);function ue(e,t){return e===t||e!=e&&t!=t}var he=te(function(){return arguments}())?te:function(e){return be(e)&&A.call(e,"callee")&&!V.call(e,"callee")},fe=Array.isArray;function pe(e){return null!=e&&ye(e.length)&&!me(e)}var de=R||function(){return!1};function me(e){if(!ve(e))return!1;var t=ee(e);return t==i||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ye(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function ve(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function be(e){return null!=e&&"object"==typeof e}var _e=b?function(e){return function(t){return e(t)}}(b):function(e){return be(e)&&ye(e.length)&&!!c[ee(e)]};function ge(e){return pe(e)?function(e,t){var r=fe(e),n=!r&&he(e),a=!r&&!n&&de(e),i=!r&&!n&&!a&&_e(e),o=r||n||a||i,l=o?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],s=l.length;for(var c in e)o&&("length"==c||a&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||oe(c,s))||l.push(c);return l}(e):function(e){if(!ve(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=le(e),r=[];for(var n in e)("constructor"!=n||!t&&A.call(e,n))&&r.push(n);return r}(e)}var Ee,we=(Ee=function(e,t,r,n){re(e,t,r,n)},function(e,t){return ce(function(e,t,r){return t=B(void 0===t?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=B(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=n[a];return l[t]=r(o),_(e,this,l)}}(e,void 0,je),e+"")}(function(e,t){var r=-1,n=t.length,a=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(a=Ee.length>3&&"function"==typeof a?(n--,a):void 0,i&&function(e,t,r){if(!ve(r))return!1;var n=typeof t;return!!("number"==n?pe(r)&&oe(t,r.length):"string"==n&&t in r)&&ue(r[t],e)}(t[0],t[1],i)&&(a=n<3?void 0:a,n=1),e=Object(e);++r<n;){var o=t[r];o&&Ee(e,o,r,a)}return e}));function je(e){return e}e.exports=we});var an="production"!==process.env.NODE_ENV;function on(){return on=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},on.apply(this,arguments)}process,Object.freeze(["base","sm","md","lg","xl","2xl"]);var ln=["as","viewBox","color","focusable","children","className","__css"],sn={path:/*#__PURE__*/e.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/e.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/e.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/e.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},cn=/*#__PURE__*/M(function(t,r){var n=t.as,a=t.viewBox,i=t.color,o=void 0===i?"currentColor":i,l=t.focusable,s=void 0!==l&&l,c=t.children,u=t.className,h=t.__css,f=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(a[r]=e[r]);return a}(t,ln),p=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}("chakra-icon",u),d={ref:r,focusable:s,className:p,__css:on({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o},h)},m=null!=a?a:sn.viewBox;if(n&&"string"!=typeof n)/*#__PURE__*/return e.createElement(k.svg,on({as:n},d,f));var y=null!=c?c:sn.path;/*#__PURE__*/return e.createElement(k.svg,on({verticalAlign:"middle",viewBox:m},d,f),y)});function un(t){var r=t.viewBox,n=void 0===r?"0 0 24 24":r,a=t.d,i=t.path,o=t.displayName,l=t.defaultProps,s=void 0===l?{}:l,c=/*#__PURE__*/M(function(t,r){/*#__PURE__*/return e.createElement(cn,on({ref:r,viewBox:n},s,t),null!=i?i:/*#__PURE__*/e.createElement("path",{fill:"currentColor",d:a}))});return an&&(c.displayName=o),c}an&&(cn.displayName="Icon"),un({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),un({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),un({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"}),un({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),un({displayName:"SunIcon",path:/*#__PURE__*/e.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},/*#__PURE__*/e.createElement("circle",{cx:"12",cy:"12",r:"5"}),/*#__PURE__*/e.createElement("path",{d:"M12 1v2"}),/*#__PURE__*/e.createElement("path",{d:"M12 21v2"}),/*#__PURE__*/e.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),/*#__PURE__*/e.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),/*#__PURE__*/e.createElement("path",{d:"M1 12h2"}),/*#__PURE__*/e.createElement("path",{d:"M21 12h2"}),/*#__PURE__*/e.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),/*#__PURE__*/e.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var hn=un({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});un({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:/*#__PURE__*/e.createElement("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})}),un({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"}),un({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}),un({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"}),un({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"}),un({displayName:"ViewIcon",path:/*#__PURE__*/e.createElement("g",{fill:"currentColor"},/*#__PURE__*/e.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),/*#__PURE__*/e.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),un({displayName:"ViewOffIcon",path:/*#__PURE__*/e.createElement("g",{fill:"currentColor"},/*#__PURE__*/e.createElement("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),/*#__PURE__*/e.createElement("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"}))}),un({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"}),un({displayName:"DeleteIcon",path:/*#__PURE__*/e.createElement("g",{fill:"currentColor"},/*#__PURE__*/e.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))}),un({displayName:"RepeatIcon",path:/*#__PURE__*/e.createElement("g",{fill:"currentColor"},/*#__PURE__*/e.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),/*#__PURE__*/e.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))}),un({displayName:"RepeatClockIcon",path:/*#__PURE__*/e.createElement("g",{fill:"currentColor"},/*#__PURE__*/e.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),/*#__PURE__*/e.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))}),un({displayName:"EditIcon",path:/*#__PURE__*/e.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/e.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),/*#__PURE__*/e.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),un({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),un({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"}),un({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),un({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),un({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),un({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),un({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),un({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"}),un({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),un({displayName:"ExternalLinkIcon",path:/*#__PURE__*/e.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/e.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),/*#__PURE__*/e.createElement("path",{d:"M15 3h6v6"}),/*#__PURE__*/e.createElement("path",{d:"M10 14L21 3"}))}),un({displayName:"LinkIcon",path:/*#__PURE__*/e.createElement("g",{fill:"currentColor"},/*#__PURE__*/e.createElement("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),/*#__PURE__*/e.createElement("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"}))}),un({displayName:"PlusSquareIcon",path:/*#__PURE__*/e.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/e.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),/*#__PURE__*/e.createElement("path",{d:"M12 8v8"}),/*#__PURE__*/e.createElement("path",{d:"M8 12h8"}))}),un({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"}),un({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"}),un({displayName:"TimeIcon",path:/*#__PURE__*/e.createElement("g",{fill:"currentColor"},/*#__PURE__*/e.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),/*#__PURE__*/e.createElement("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"}))}),un({displayName:"ArrowRightIcon",path:/*#__PURE__*/e.createElement("g",{fill:"currentColor"},/*#__PURE__*/e.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),/*#__PURE__*/e.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))}),un({displayName:"ArrowLeftIcon",path:/*#__PURE__*/e.createElement("g",{fill:"currentColor"},/*#__PURE__*/e.createElement("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),/*#__PURE__*/e.createElement("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"}))}),un({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"}),un({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"}),un({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"}),un({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"}),un({displayName:"EmailIcon",path:/*#__PURE__*/e.createElement("g",{fill:"currentColor"},/*#__PURE__*/e.createElement("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),/*#__PURE__*/e.createElement("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"}))}),un({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"}),un({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"}),un({displayName:"SpinnerIcon",path:/*#__PURE__*/e.createElement(e.Fragment,null,/*#__PURE__*/e.createElement("defs",null,/*#__PURE__*/e.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},/*#__PURE__*/e.createElement("stop",{stopColor:"currentColor",offset:"0%"}),/*#__PURE__*/e.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),/*#__PURE__*/e.createElement("g",{transform:"translate(2)",fill:"none"},/*#__PURE__*/e.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),/*#__PURE__*/e.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),/*#__PURE__*/e.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),un({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),un({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:/*#__PURE__*/e.createElement("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})}),un({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"}),un({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"}),un({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"}),un({displayName:"InfoOutlineIcon",path:/*#__PURE__*/e.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},/*#__PURE__*/e.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),/*#__PURE__*/e.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),/*#__PURE__*/e.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),un({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),un({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),un({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"}),un({displayName:"QuestionOutlineIcon",path:/*#__PURE__*/e.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/e.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/e.createElement("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/e.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),un({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),un({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"}),un({viewBox:"0 0 14 14",path:/*#__PURE__*/e.createElement("g",{fill:"currentColor"},/*#__PURE__*/e.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))});var fn=un({displayName:"MinusIcon",path:/*#__PURE__*/e.createElement("g",{fill:"currentColor"},/*#__PURE__*/e.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});un({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});const pn=(t,r)=>e.Children.map(r,r=>e.isValidElement(r)&&r.props.name?e.cloneElement(r,I({},r.props,{name:`${t}.${r.props.name}`})):r);function dn(t){void 0===t&&(t={});var r=t.strict,n=void 0===r||r,a=t.errorMessage,i=void 0===a?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":a,o=t.name,l=/*#__PURE__*/e.createContext(void 0);return l.displayName=o,[l.Provider,function t(){var r=e.useContext(l);if(!r&&n){var a=new Error(i);throw a.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(a,t),a}return r},l]}const[mn,yn]=dn({name:"ArrayFieldContext"}),[vn,bn]=dn({name:"ArrayFieldRowContext"}),_n=({name:e,defaultValue:r={},keyName:n,min:i,max:o})=>{const{control:l}=t();return I({},a({control:l,name:e,keyName:n}),{name:e,defaultValue:r,min:i,max:o})},gn=({index:r})=>{const{clearErrors:n}=t(),{name:a,remove:i,fields:o}=yn();return e.useEffect(()=>{n(a)},[]),{index:r,isFirst:0===r,isLast:r===o.length-1,name:`${a}.${r}`,remove:e.useCallback(()=>{n(a),i(r)},[r])}},En=()=>{const{isFirst:e,remove:t}=bn(),{min:r,fields:n}=yn();return{onClick:()=>t(),isDisabled:e&&!!(r&&n.length<=r)}},wn=()=>{const{append:e,defaultValue:t,max:r,fields:n}=yn();return{onClick:()=>e(t,{shouldFocus:!1}),isDisabled:!!(r&&n.length>=r)}},Ln=["children","columns","spacing"],jn=["children"],Cn=["name","defaultValue","keyName","min","max","children"],An=({children:t,columns:r,spacing:n,index:a})=>/*#__PURE__*/e.createElement(xn,{index:a},/*#__PURE__*/e.createElement(On,{columns:r,spacing:n},t),/*#__PURE__*/e.createElement(Mn,null)),On=t=>{let{children:r,columns:n,spacing:a}=t,i=S(t,Ln);const{name:o}=bn();/*#__PURE__*/return e.createElement(nn,I({flex:"1",columns:n,gridGap:a,mr:"2"},i),pn(o,r))},xn=({children:t,index:r})=>{const n=gn({index:r});/*#__PURE__*/return e.createElement(vn,{value:n},/*#__PURE__*/e.createElement(k.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},t))},Mn=t=>/*#__PURE__*/e.createElement($,I({icon:/*#__PURE__*/e.createElement(fn,null),"aria-label":"Remove row"},En(),t)),kn=t=>/*#__PURE__*/e.createElement($,I({icon:/*#__PURE__*/e.createElement(hn,null),"aria-label":"Add row",float:"right"},wn(),t)),$n=t=>{const{children:r}=t,n=S(t,jn);/*#__PURE__*/return e.createElement(In,n,/*#__PURE__*/e.createElement(Nn,null,t=>/*#__PURE__*/e.createElement(e.Fragment,null,t.map(({id:t},n)=>/*#__PURE__*/e.createElement(An,{key:t,index:n},r)))),/*#__PURE__*/e.createElement(kn,null))},Nn=({children:e})=>{const{fields:t}=yn();return e(t)},In=t=>{let{name:r,defaultValue:n,keyName:a,min:i,max:o,children:l}=t,s=S(t,Cn);const c=_n({name:r,defaultValue:n,keyName:a,min:i,max:o});/*#__PURE__*/return e.createElement(mn,{value:c},/*#__PURE__*/e.createElement(W,I({name:r},s),l))},Sn=["name","children","columns","spacing"],zn=t=>{const{name:r,children:n,columns:a,spacing:i}=t,o=S(t,Sn);/*#__PURE__*/return e.createElement(W,I({name:r},o),/*#__PURE__*/e.createElement(nn,{columns:a,gridGap:i},pn(r,n)))},Vn=["name","type"],Zn=["schema"],Tn=["name","type","defaultValue"],Pn=(t,r)=>en(((e,t)=>((e,t,r,n)=>Wr(e,t,void 0,void 0).schema)(e,t))(t,r)).map(t=>{let{name:r,type:n}=t,a=S(t,Vn);/*#__PURE__*/return e.createElement(Y,I({key:r,name:r,type:n},a))}),Rn=t=>{let{schema:r}=t,n=S(t,Zn);/*#__PURE__*/return e.createElement(nn,n,en(r).map(t=>{let{name:n,type:a}=t,i=S(t,Tn);return"array"===a?/*#__PURE__*/e.createElement($n,I({name:n},i),Pn(r,n)):"object"===a?/*#__PURE__*/e.createElement(zn,I({name:n},i),Pn(r,n)):/*#__PURE__*/e.createElement(Y,I({key:n,name:n,type:a},i))}))},Bn=["schema","defaultValues","onSubmit","onError","children"],Dn=u((t,r)=>{let{schema:n,defaultValues:a,onSubmit:l,onError:s,children:c}=t,u=S(t,Bn);const h={mode:"all",defaultValues:a};n&&(h.resolver=Jr(n));const f=i(h),{handleSubmit:p}=f;/*#__PURE__*/return e.createElement(o,f,/*#__PURE__*/e.createElement(E.form,I({ref:r,onSubmit:p(l,s)},u),c))}),Fn=["children"],Hn=M((r,n)=>{let{children:a}=r,i=S(r,Fn);const o=t();/*#__PURE__*/return e.createElement(N,I({type:"submit",isLoading:o.formState.isSubmitting,isPrimary:!0,ref:n},i),a)}),qn=["schema","submitLabel"],Un=u((t,r)=>{let{schema:n,submitLabel:a}=t,i=S(t,qn);/*#__PURE__*/return e.createElement(Dn,I({},i,{schema:n,ref:r}),/*#__PURE__*/e.createElement(nn,null,/*#__PURE__*/e.createElement(Rn,{schema:n}),a&&/*#__PURE__*/e.createElement(Hn,{label:a})))});Un.defaultProps={submitLabel:"Submit"};export{$n as ArrayField,kn as ArrayFieldAddButton,In as ArrayFieldContainer,mn as ArrayFieldProvider,Mn as ArrayFieldRemoveButton,An as ArrayFieldRow,xn as ArrayFieldRowContainer,On as ArrayFieldRowFields,vn as ArrayFieldRowProvider,Nn as ArrayFieldRows,Un as AutoForm,W as BaseField,ae as CheckboxField,V as DisplayField,Y as Field,Rn as Fields,Dn as Form,nn as FormLayout,K as InputField,le as NativeSelectField,X as NumberInputField,zn as ObjectField,ee as PasswordInputFIeld,oe as PinField,ie as RadioField,ne as SelectField,Hn as SubmitButton,re as SwitchField,te as TextareaField,J as registerFieldType,_n as useArrayField,wn as useArrayFieldAddButton,yn as useArrayFieldContext,En as useArrayFieldRemoveButton,gn as useArrayFieldRow,bn as useArrayFieldRowContext,G as withControlledInput,Q as withUncontrolledInput};
2
+ //# sourceMappingURL=index.modern.js.map