Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@upandgo/ui-components

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@upandgo/ui-components - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

dist/cjs/types/components/AvatarEditor/index.d.ts

46

dist/cjs/index.js

@@ -32,7 +32,7 @@ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@emotion/styled"),r=require("@mui/material");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=n(e),o=n(t);const i=o.default.img`

overflow: hidden;
`,l=(e,t,r,n)=>`${e.replace(/\/+$/,"")}/${t}/${t}${r+1}${void 0!==n?`-${n+1}`:""}.png`,s=({endpoint:e,avatar:t,bgColor:r,circled:n})=>a.default.createElement(c,{circled:n,bgColor:r,className:"uag uag-main-avatar-container uag-custom-avatar-container"},a.default.createElement(u,{className:"uag uag-character-parts-container uag-character-parts-container-body"},a.default.createElement(i,{alt:"shape",draggable:"false",src:l(e,"s",t.s),className:"uag uag-asset-shape-image"})),a.default.createElement(u,{style:{zIndex:3},className:"uag uag-character-parts-container uag-character-parts-container-eyes"},a.default.createElement(i,{alt:"eyes",draggable:"false",src:l(e,"e",t.e,t.c),className:"uag uag-asset-shape-image"})),a.default.createElement(u,{style:{zIndex:4},className:"uag uag-character-parts-container uag-character-parts-container-nose"},a.default.createElement(i,{alt:"nose",draggable:"false",src:l(e,"n",t.n),className:"uag uag-asset-shape-image"})),a.default.createElement(u,{style:{zIndex:5},className:"uag uag-character-parts-container uag-character-parts-container-hair"},a.default.createElement(i,{alt:"hair",draggable:"false",src:l(e,"h",t.h,t.c),className:"uag uag-asset-shape-image"})),a.default.createElement(u,{style:{zIndex:6},className:"uag uag-character-parts-container uag-character-parts-container-clothes"},a.default.createElement(i,{alt:"clothes",draggable:"false",src:l(e,"b",t.b)})),a.default.createElement(u,{style:{zIndex:7},className:"uag uag-character-parts-container uag-character-parts-container-mouth"},a.default.createElement(i,{alt:"mouth",draggable:"false",src:l(e,"m",t.m,t.c),className:"uag uag-asset-shape-image"})),a.default.createElement(u,{style:{zIndex:8},className:"uag uag-character-parts-container uag-character-parts-container-ears"},a.default.createElement(i,{alt:"ears",draggable:"false",src:l(e,"o",t.o),className:"uag uag-asset-shape-image"}))),f=({avatarUrl:e,bgColor:t,circled:r})=>a.default.createElement(c,{circled:r,bgColor:t,className:"main-avatar-container avastar-container"},a.default.createElement(i,{alt:"avatar picture",draggable:"false",src:e,className:"uag uag-asset-shape-image"}));var d={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},p=a.default.createContext&&a.default.createContext(d),y=function(){return y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},y.apply(this,arguments)},v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function m(e){return e&&e.map((function(e,t){return a.default.createElement(e.tag,y({key:t},e.attr),m(e.child))}))}function h(e){return function(t){return a.default.createElement(b,y({attr:y({},e.attr)},t),m(e.child))}}function b(e){var t=function(t){var r,n=e.attr,o=e.size,i=e.title,u=v(e,["attr","size","title"]),c=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),a.default.createElement("svg",y({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,u,{className:r,style:y(y({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),i&&a.default.createElement("title",null,i),e.children)};return void 0!==p?a.default.createElement(p.Consumer,null,(function(e){return t(e)})):t(d)}function g(e){return h({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"}}]})(e)}function E(e){return h({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}}]})(e)}const S=o.default.div`
`,l=e=>e.replace(/\/+$/,""),s=(e,t,r,n)=>`${l(e)}/${t}/${t}${r+1}${void 0!==n?`-${n+1}`:""}.png`,f=({endpoint:e,avatar:t,bgColor:r,circled:n})=>a.default.createElement(c,{circled:n,bgColor:r,className:"uag uag-main-avatar-container uag-custom-avatar-container"},a.default.createElement(u,{className:"uag uag-character-parts-container uag-character-parts-container-body"},a.default.createElement(i,{alt:"shape",draggable:"false",src:s(e,"s",t.s),className:"uag uag-asset-shape-image"})),a.default.createElement(u,{style:{zIndex:3},className:"uag uag-character-parts-container uag-character-parts-container-eyes"},a.default.createElement(i,{alt:"eyes",draggable:"false",src:s(e,"e",t.e,t.c),className:"uag uag-asset-shape-image"})),a.default.createElement(u,{style:{zIndex:4},className:"uag uag-character-parts-container uag-character-parts-container-nose"},a.default.createElement(i,{alt:"nose",draggable:"false",src:s(e,"n",t.n),className:"uag uag-asset-shape-image"})),a.default.createElement(u,{style:{zIndex:5},className:"uag uag-character-parts-container uag-character-parts-container-hair"},a.default.createElement(i,{alt:"hair",draggable:"false",src:s(e,"h",t.h,t.c),className:"uag uag-asset-shape-image"})),a.default.createElement(u,{style:{zIndex:6},className:"uag uag-character-parts-container uag-character-parts-container-clothes"},a.default.createElement(i,{alt:"clothes",draggable:"false",src:s(e,"b",t.b)})),a.default.createElement(u,{style:{zIndex:7},className:"uag uag-character-parts-container uag-character-parts-container-mouth"},a.default.createElement(i,{alt:"mouth",draggable:"false",src:s(e,"m",t.m,t.c),className:"uag uag-asset-shape-image"})),a.default.createElement(u,{style:{zIndex:8},className:"uag uag-character-parts-container uag-character-parts-container-ears"},a.default.createElement(i,{alt:"ears",draggable:"false",src:s(e,"o",t.o),className:"uag uag-asset-shape-image"}))),d=({avatarUrl:e,bgColor:t,circled:r})=>a.default.createElement(c,{circled:r,bgColor:t,className:"main-avatar-container avastar-container"},a.default.createElement(i,{alt:"avatar picture",draggable:"false",src:e,className:"uag uag-asset-shape-image"})),p=e=>"avatarUrl"in e?a.default.createElement(d,Object.assign({},e)):a.default.createElement(f,Object.assign({},e));var m={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},v=a.default.createContext&&a.default.createContext(m),y=function(){return y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},y.apply(this,arguments)},h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function b(e){return e&&e.map((function(e,t){return a.default.createElement(e.tag,y({key:t},e.attr),b(e.child))}))}function g(e){return function(t){return a.default.createElement(E,y({attr:y({},e.attr)},t),b(e.child))}}function E(e){var t=function(t){var r,n=e.attr,o=e.size,i=e.title,u=h(e,["attr","size","title"]),c=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),a.default.createElement("svg",y({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,u,{className:r,style:y(y({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),i&&a.default.createElement("title",null,i),e.children)};return void 0!==v?a.default.createElement(v.Consumer,null,(function(e){return t(e)})):t(m)}function S(e){return g({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"}}]})(e)}function j(e){return g({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}}]})(e)}const _=o.default.div`
height: 100%;
width: 100%;
display: flex;
`,_=o.default.button`
`,O=o.default.button`
height: 100%;

@@ -45,11 +45,45 @@ width: 25%;

background-color: transparent;
`,j=o.default.div`
`,w=o.default.div`
height: 100%;
width: 50%;
display: flex;
`,O=o.default.img`
`,x=o.default.img`
max-width: 100%;
max-height: 100%;
margin: auto;
`;var w=Array.isArray,A=Object.keys,T=Object.prototype.hasOwnProperty,x="undefined"!=typeof Element;function F(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,n,a,o=w(e),i=w(t);if(o&&i){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!F(e[r],t[r]))return!1;return!0}if(o!=i)return!1;var u=e instanceof Date,c=t instanceof Date;if(u!=c)return!1;if(u&&c)return e.getTime()==t.getTime();var l=e instanceof RegExp,s=t instanceof RegExp;if(l!=s)return!1;if(l&&s)return e.toString()==t.toString();var f=A(e);if((n=f.length)!==A(t).length)return!1;for(r=n;0!=r--;)if(!T.call(t,f[r]))return!1;if(x&&e instanceof Element&&t instanceof Element)return e===t;for(r=n;0!=r--;)if(!("_owner"===(a=f[r])&&e.$$typeof||F(e[a],t[a])))return!1;return!0}return e!=e&&t!=t}var C=function(e,t){try{return F(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}},k=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===I}(e)}(e)};var I="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function N(e,t){return!1!==t.clone&&t.isMergeableObject(e)?M((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function P(e,t,r){return e.concat(t).map((function(e){return N(e,r)}))}function M(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||P,r.isMergeableObject=r.isMergeableObject||k;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach((function(t){n[t]=N(e[t],r)})),Object.keys(t).forEach((function(a){r.isMergeableObject(t[a])&&e[a]?n[a]=M(e[a],t[a],r):n[a]=N(t[a],r)})),n}(e,t,r):N(t,r)}M.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return M(e,r,t)}),{})};var R=M,$="object"==typeof global&&global&&global.Object===Object&&global,D="object"==typeof self&&self&&self.Object===Object&&self,V=$||D||Function("return this")(),U=V.Symbol,L=Object.prototype,z=L.hasOwnProperty,B=L.toString,W=U?U.toStringTag:void 0;var H=Object.prototype.toString;var G=U?U.toStringTag:void 0;function q(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":G&&G in Object(e)?function(e){var t=z.call(e,W),r=e[W];try{e[W]=void 0;var n=!0}catch(e){}var a=B.call(e);return n&&(t?e[W]=r:delete e[W]),a}(e):function(e){return H.call(e)}(e)}function K(e,t){return function(r){return e(t(r))}}var Y=K(Object.getPrototypeOf,Object);function X(e){return null!=e&&"object"==typeof e}var J=Function.prototype,Q=Object.prototype,Z=J.toString,ee=Q.hasOwnProperty,te=Z.call(Object);function re(e){if(!X(e)||"[object Object]"!=q(e))return!1;var t=Y(e);if(null===t)return!0;var r=ee.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Z.call(r)==te}function ne(e,t){return e===t||e!=e&&t!=t}function ae(e,t){for(var r=e.length;r--;)if(ne(e[r][0],t))return r;return-1}var oe=Array.prototype.splice;function ie(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 ue(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}ie.prototype.clear=function(){this.__data__=[],this.size=0},ie.prototype.delete=function(e){var t=this.__data__,r=ae(t,e);return!(r<0)&&(r==t.length-1?t.pop():oe.call(t,r,1),--this.size,!0)},ie.prototype.get=function(e){var t=this.__data__,r=ae(t,e);return r<0?void 0:t[r][1]},ie.prototype.has=function(e){return ae(this.__data__,e)>-1},ie.prototype.set=function(e,t){var r=this.__data__,n=ae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function ce(e){if(!ue(e))return!1;var t=q(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var le,se=V["__core-js_shared__"],fe=(le=/[^.]+$/.exec(se&&se.keys&&se.keys.IE_PROTO||""))?"Symbol(src)_1."+le:"";var de=Function.prototype.toString;function pe(e){if(null!=e){try{return de.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ye=/^\[object .+?Constructor\]$/,ve=Function.prototype,me=Object.prototype,he=ve.toString,be=me.hasOwnProperty,ge=RegExp("^"+he.call(be).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ee(e){return!(!ue(e)||(t=e,fe&&fe in t))&&(ce(e)?ge:ye).test(pe(e));var t}function Se(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Ee(r)?r:void 0}var _e=Se(V,"Map"),je=Se(Object,"create");var Oe=Object.prototype.hasOwnProperty;var we=Object.prototype.hasOwnProperty;function Ae(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 Te(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 xe(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])}}Ae.prototype.clear=function(){this.__data__=je?je(null):{},this.size=0},Ae.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ae.prototype.get=function(e){var t=this.__data__;if(je){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Oe.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return je?void 0!==t[e]:we.call(t,e)},Ae.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},xe.prototype.clear=function(){this.size=0,this.__data__={hash:new Ae,map:new(_e||ie),string:new Ae}},xe.prototype.delete=function(e){var t=Te(this,e).delete(e);return this.size-=t?1:0,t},xe.prototype.get=function(e){return Te(this,e).get(e)},xe.prototype.has=function(e){return Te(this,e).has(e)},xe.prototype.set=function(e,t){var r=Te(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Fe(e){var t=this.__data__=new ie(e);this.size=t.size}Fe.prototype.clear=function(){this.__data__=new ie,this.size=0},Fe.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Fe.prototype.get=function(e){return this.__data__.get(e)},Fe.prototype.has=function(e){return this.__data__.has(e)},Fe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ie){var n=r.__data__;if(!_e||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new xe(n)}return r.set(e,t),this.size=r.size,this};var Ce=function(){try{var e=Se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();function ke(e,t,r){"__proto__"==t&&Ce?Ce(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Ie=Object.prototype.hasOwnProperty;function Ne(e,t,r){var n=e[t];Ie.call(e,t)&&ne(n,r)&&(void 0!==r||t in e)||ke(e,t,r)}function Pe(e,t,r,n){var a=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var u=t[o],c=n?n(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),a?ke(r,u,c):Ne(r,u,c)}return r}function Me(e){return X(e)&&"[object Arguments]"==q(e)}var Re=Object.prototype,$e=Re.hasOwnProperty,De=Re.propertyIsEnumerable,Ve=Me(function(){return arguments}())?Me:function(e){return X(e)&&$e.call(e,"callee")&&!De.call(e,"callee")},Ue=Array.isArray;var Le="object"==typeof exports&&exports&&!exports.nodeType&&exports,ze=Le&&"object"==typeof module&&module&&!module.nodeType&&module,Be=ze&&ze.exports===Le?V.Buffer:void 0,We=(Be?Be.isBuffer:void 0)||function(){return!1},He=/^(?:0|[1-9]\d*)$/;function Ge(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&He.test(e))&&e>-1&&e%1==0&&e<t}function qe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var Ke={};function Ye(e){return function(t){return e(t)}}Ke["[object Float32Array]"]=Ke["[object Float64Array]"]=Ke["[object Int8Array]"]=Ke["[object Int16Array]"]=Ke["[object Int32Array]"]=Ke["[object Uint8Array]"]=Ke["[object Uint8ClampedArray]"]=Ke["[object Uint16Array]"]=Ke["[object Uint32Array]"]=!0,Ke["[object Arguments]"]=Ke["[object Array]"]=Ke["[object ArrayBuffer]"]=Ke["[object Boolean]"]=Ke["[object DataView]"]=Ke["[object Date]"]=Ke["[object Error]"]=Ke["[object Function]"]=Ke["[object Map]"]=Ke["[object Number]"]=Ke["[object Object]"]=Ke["[object RegExp]"]=Ke["[object Set]"]=Ke["[object String]"]=Ke["[object WeakMap]"]=!1;var Xe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Je=Xe&&"object"==typeof module&&module&&!module.nodeType&&module,Qe=Je&&Je.exports===Xe&&$.process,Ze=function(){try{var e=Je&&Je.require&&Je.require("util").types;return e||Qe&&Qe.binding&&Qe.binding("util")}catch(e){}}(),et=Ze&&Ze.isTypedArray,tt=et?Ye(et):function(e){return X(e)&&qe(e.length)&&!!Ke[q(e)]},rt=Object.prototype.hasOwnProperty;function nt(e,t){var r=Ue(e),n=!r&&Ve(e),a=!r&&!n&&We(e),o=!r&&!n&&!a&&tt(e),i=r||n||a||o,u=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=u.length;for(var l in e)!t&&!rt.call(e,l)||i&&("length"==l||a&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ge(l,c))||u.push(l);return u}var at=Object.prototype;function ot(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||at)}var it=K(Object.keys,Object),ut=Object.prototype.hasOwnProperty;function ct(e){return null!=e&&qe(e.length)&&!ce(e)}function lt(e){return ct(e)?nt(e):function(e){if(!ot(e))return it(e);var t=[];for(var r in Object(e))ut.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}var st=Object.prototype.hasOwnProperty;function ft(e){if(!ue(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ot(e),r=[];for(var n in e)("constructor"!=n||!t&&st.call(e,n))&&r.push(n);return r}function dt(e){return ct(e)?nt(e,!0):ft(e)}var pt="object"==typeof exports&&exports&&!exports.nodeType&&exports,yt=pt&&"object"==typeof module&&module&&!module.nodeType&&module,vt=yt&&yt.exports===pt?V.Buffer:void 0,mt=vt?vt.allocUnsafe:void 0;function ht(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function bt(){return[]}var gt=Object.prototype.propertyIsEnumerable,Et=Object.getOwnPropertySymbols,St=Et?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o}(Et(e),(function(t){return gt.call(e,t)})))}:bt;function _t(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var jt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)_t(t,St(e)),e=Y(e);return t}:bt;function Ot(e,t,r){var n=t(e);return Ue(e)?n:_t(n,r(e))}function wt(e){return Ot(e,lt,St)}function At(e){return Ot(e,dt,jt)}var Tt=Se(V,"DataView"),xt=Se(V,"Promise"),Ft=Se(V,"Set"),Ct=Se(V,"WeakMap"),kt=pe(Tt),It=pe(_e),Nt=pe(xt),Pt=pe(Ft),Mt=pe(Ct),Rt=q;(Tt&&"[object DataView]"!=Rt(new Tt(new ArrayBuffer(1)))||_e&&"[object Map]"!=Rt(new _e)||xt&&"[object Promise]"!=Rt(xt.resolve())||Ft&&"[object Set]"!=Rt(new Ft)||Ct&&"[object WeakMap]"!=Rt(new Ct))&&(Rt=function(e){var t=q(e),r="[object Object]"==t?e.constructor:void 0,n=r?pe(r):"";if(n)switch(n){case kt:return"[object DataView]";case It:return"[object Map]";case Nt:return"[object Promise]";case Pt:return"[object Set]";case Mt:return"[object WeakMap]"}return t});var $t=Rt,Dt=Object.prototype.hasOwnProperty;var Vt=V.Uint8Array;function Ut(e){var t=new e.constructor(e.byteLength);return new Vt(t).set(new Vt(e)),t}var Lt=/\w*$/;var zt=U?U.prototype:void 0,Bt=zt?zt.valueOf:void 0;function Wt(e,t,r){var n,a,o,i=e.constructor;switch(t){case"[object ArrayBuffer]":return Ut(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var r=t?Ut(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);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 function(e,t){var r=t?Ut(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(o=new(a=e).constructor(a.source,Lt.exec(a))).lastIndex=a.lastIndex,o;case"[object Symbol]":return n=e,Bt?Object(Bt.call(n)):{}}}var Ht=Object.create,Gt=function(){function e(){}return function(t){if(!ue(t))return{};if(Ht)return Ht(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var qt=Ze&&Ze.isMap,Kt=qt?Ye(qt):function(e){return X(e)&&"[object Map]"==$t(e)};var Yt=Ze&&Ze.isSet,Xt=Yt?Ye(Yt):function(e){return X(e)&&"[object Set]"==$t(e)},Jt={};function Qt(e,t,r,n,a,o){var i,u=1&t,c=2&t,l=4&t;if(r&&(i=a?r(e,n,a,o):r(e)),void 0!==i)return i;if(!ue(e))return e;var s=Ue(e);if(s){if(i=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Dt.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return ht(e,i)}else{var f=$t(e),d="[object Function]"==f||"[object GeneratorFunction]"==f;if(We(e))return function(e,t){if(t)return e.slice();var r=e.length,n=mt?mt(r):new e.constructor(r);return e.copy(n),n}(e,u);if("[object Object]"==f||"[object Arguments]"==f||d&&!a){if(i=c||d?{}:function(e){return"function"!=typeof e.constructor||ot(e)?{}:Gt(Y(e))}(e),!u)return c?function(e,t){return Pe(e,jt(e),t)}(e,function(e,t){return e&&Pe(t,dt(t),e)}(i,e)):function(e,t){return Pe(e,St(e),t)}(e,function(e,t){return e&&Pe(t,lt(t),e)}(i,e))}else{if(!Jt[f])return a?e:{};i=Wt(e,f,u)}}o||(o=new Fe);var p=o.get(e);if(p)return p;o.set(e,i),Xt(e)?e.forEach((function(n){i.add(Qt(n,t,r,n,e,o))})):Kt(e)&&e.forEach((function(n,a){i.set(a,Qt(n,t,r,a,e,o))}));var y=s?void 0:(l?c?At:wt:c?dt:lt)(e);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(y||e,(function(n,a){y&&(n=e[a=n]),Ne(i,a,Qt(n,t,r,a,e,o))})),i}Jt["[object Arguments]"]=Jt["[object Array]"]=Jt["[object ArrayBuffer]"]=Jt["[object DataView]"]=Jt["[object Boolean]"]=Jt["[object Date]"]=Jt["[object Float32Array]"]=Jt["[object Float64Array]"]=Jt["[object Int8Array]"]=Jt["[object Int16Array]"]=Jt["[object Int32Array]"]=Jt["[object Map]"]=Jt["[object Number]"]=Jt["[object Object]"]=Jt["[object RegExp]"]=Jt["[object Set]"]=Jt["[object String]"]=Jt["[object Symbol]"]=Jt["[object Uint8Array]"]=Jt["[object Uint8ClampedArray]"]=Jt["[object Uint16Array]"]=Jt["[object Uint32Array]"]=!0,Jt["[object Error]"]=Jt["[object Function]"]=Jt["[object WeakMap]"]=!1;function Zt(e){return Qt(e,4)}function er(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}function tr(e){return"symbol"==typeof e||X(e)&&"[object Symbol]"==q(e)}function rr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i};return r.cache=new(rr.Cache||xe),r}rr.Cache=xe;var nr,ar,or,ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ur=/\\(\\)?/g,cr=(nr=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ir,(function(e,r,n,a){t.push(n?a.replace(ur,"$1"):r||e)})),t},ar=rr(nr,(function(e){return 500===or.size&&or.clear(),e})),or=ar.cache,ar);function lr(e){if("string"==typeof e||tr(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}var sr=U?U.prototype:void 0,fr=sr?sr.toString:void 0;function dr(e){if("string"==typeof e)return e;if(Ue(e))return er(e,dr)+"";if(tr(e))return fr?fr.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}function pr(e){return Ue(e)?er(e,lr):tr(e)?[e]:ht(cr(function(e){return null==e?"":dr(e)}(e)))}var yr="production"===process.env.NODE_ENV;function vr(e,t){if(!yr){if(e)return;var r="Warning: "+t;"undefined"!=typeof console&&console.warn(r);try{throw Error(r)}catch(e){}}}var mr,hr={exports:{}},br={};var gr,Er={};
`,A=({urlList:t,initialIndex:r,onChange:n})=>{const[o,i]=e.useState(r&&r<t.length?r:0),u=0===o,c=o===t.length-1,l=e=>r=>{r.preventDefault();const a="decrement"===e?Math.max(o-1,0):Math.min(o+1,t.length-1);i(a),n(t[a])};return a.default.createElement(_,{className:"uag-item-selector-container"},a.default.createElement(O,{disabled:u,className:"uag-item-selector-control uag-item-selector-control-left",onClick:l("decrement")},!u&&a.default.createElement(S,{className:"uag-item-selector-arrow uag-item-selector-arrow-left",size:"75%"})),a.default.createElement(w,{className:"uag-item-selector-item-container"},a.default.createElement(x,{className:"uag-item-selector-item-img",src:t[o]})),a.default.createElement(O,{disabled:c,className:"uag-item-selector-control uag-item-selector-control-right",onClick:l("increment")},!c&&a.default.createElement(j,{className:"uag-item-selector-arrow uag-item-selector-arrow-right",size:"75%"})))},T=o.default.div`
display: flex;
flex-direction: column;
gap: 0.5em;
`,C=o.default.div`
display: flex;
flex-wrap: wrap;
width: 100%;
box-sizing: border-box;
gap: 0.5em;
`,k=o.default.div`
display: flex;
flex-direction: column;
gap: 0.5em;
align-items: center;
justify-content: center;
flex: 1;
`,N=o.default.button`
aspect-ratio: 1;
background-color: ${e=>e.bgColor};
border: none;
border-radius: 100%;
cursor: pointer;
flex: 1 1 100%;
`,F=o.default.div`
display: flex;
width: 67%;
`,I=o.default.div`
box-sizing: border-box;
border: none;
border-radius: 2em;
flex: 1 1 30%;
min-width: 100px;
box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
`,M=(e,t)=>{const r=t+1;return e.filter((e=>e.includes("-"+r+".png")))},P=(e,t,r)=>{const n=l(e);return r.map((e=>`${n}/${t}/${t}${e}.png`))},$=(e,t,r,n)=>{const a=l(e);return r.map((e=>n.map((r=>`${a}/${t}/${t}${e}-${r}.png`)))).flat()},R={m:0,c:0,b:0,e:0,n:0,h:0,s:0,o:0},D={"#ffbf94":0,"#e3a05f":1,"#d1a958":2,"#b8652e":3,"#7a4512":4,"#431711":5},V=Object.keys(D);var L=Array.isArray,U=Object.keys,z=Object.prototype.hasOwnProperty,B="undefined"!=typeof Element;function W(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,n,a,o=L(e),i=L(t);if(o&&i){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!W(e[r],t[r]))return!1;return!0}if(o!=i)return!1;var u=e instanceof Date,c=t instanceof Date;if(u!=c)return!1;if(u&&c)return e.getTime()==t.getTime();var l=e instanceof RegExp,s=t instanceof RegExp;if(l!=s)return!1;if(l&&s)return e.toString()==t.toString();var f=U(e);if((n=f.length)!==U(t).length)return!1;for(r=n;0!=r--;)if(!z.call(t,f[r]))return!1;if(B&&e instanceof Element&&t instanceof Element)return e===t;for(r=n;0!=r--;)if(!("_owner"===(a=f[r])&&e.$$typeof||W(e[a],t[a])))return!1;return!0}return e!=e&&t!=t}var H=function(e,t){try{return W(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}},G=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===q}(e)}(e)};var q="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function K(e,t){return!1!==t.clone&&t.isMergeableObject(e)?X((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function Y(e,t,r){return e.concat(t).map((function(e){return K(e,r)}))}function X(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Y,r.isMergeableObject=r.isMergeableObject||G;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach((function(t){n[t]=K(e[t],r)})),Object.keys(t).forEach((function(a){r.isMergeableObject(t[a])&&e[a]?n[a]=X(e[a],t[a],r):n[a]=K(t[a],r)})),n}(e,t,r):K(t,r)}X.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return X(e,r,t)}),{})};var J=X,Q="object"==typeof global&&global&&global.Object===Object&&global,Z="object"==typeof self&&self&&self.Object===Object&&self,ee=Q||Z||Function("return this")(),te=ee.Symbol,re=Object.prototype,ne=re.hasOwnProperty,ae=re.toString,oe=te?te.toStringTag:void 0;var ie=Object.prototype.toString;var ue=te?te.toStringTag:void 0;function ce(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ue&&ue in Object(e)?function(e){var t=ne.call(e,oe),r=e[oe];try{e[oe]=void 0;var n=!0}catch(e){}var a=ae.call(e);return n&&(t?e[oe]=r:delete e[oe]),a}(e):function(e){return ie.call(e)}(e)}function le(e,t){return function(r){return e(t(r))}}var se=le(Object.getPrototypeOf,Object);function fe(e){return null!=e&&"object"==typeof e}var de=Function.prototype,pe=Object.prototype,me=de.toString,ve=pe.hasOwnProperty,ye=me.call(Object);function he(e){if(!fe(e)||"[object Object]"!=ce(e))return!1;var t=se(e);if(null===t)return!0;var r=ve.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&me.call(r)==ye}function be(e,t){return e===t||e!=e&&t!=t}function ge(e,t){for(var r=e.length;r--;)if(be(e[r][0],t))return r;return-1}var Ee=Array.prototype.splice;function Se(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 je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Se.prototype.clear=function(){this.__data__=[],this.size=0},Se.prototype.delete=function(e){var t=this.__data__,r=ge(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ee.call(t,r,1),--this.size,!0)},Se.prototype.get=function(e){var t=this.__data__,r=ge(t,e);return r<0?void 0:t[r][1]},Se.prototype.has=function(e){return ge(this.__data__,e)>-1},Se.prototype.set=function(e,t){var r=this.__data__,n=ge(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function _e(e){if(!je(e))return!1;var t=ce(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var Oe,we=ee["__core-js_shared__"],xe=(Oe=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||""))?"Symbol(src)_1."+Oe:"";var Ae=Function.prototype.toString;function Te(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Ce=/^\[object .+?Constructor\]$/,ke=Function.prototype,Ne=Object.prototype,Fe=ke.toString,Ie=Ne.hasOwnProperty,Me=RegExp("^"+Fe.call(Ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pe(e){return!(!je(e)||(t=e,xe&&xe in t))&&(_e(e)?Me:Ce).test(Te(e));var t}function $e(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Pe(r)?r:void 0}var Re=$e(ee,"Map"),De=$e(Object,"create");var Ve=Object.prototype.hasOwnProperty;var Le=Object.prototype.hasOwnProperty;function Ue(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 ze(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 Be(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])}}Ue.prototype.clear=function(){this.__data__=De?De(null):{},this.size=0},Ue.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ue.prototype.get=function(e){var t=this.__data__;if(De){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Ve.call(t,e)?t[e]:void 0},Ue.prototype.has=function(e){var t=this.__data__;return De?void 0!==t[e]:Le.call(t,e)},Ue.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=De&&void 0===t?"__lodash_hash_undefined__":t,this},Be.prototype.clear=function(){this.size=0,this.__data__={hash:new Ue,map:new(Re||Se),string:new Ue}},Be.prototype.delete=function(e){var t=ze(this,e).delete(e);return this.size-=t?1:0,t},Be.prototype.get=function(e){return ze(this,e).get(e)},Be.prototype.has=function(e){return ze(this,e).has(e)},Be.prototype.set=function(e,t){var r=ze(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function We(e){var t=this.__data__=new Se(e);this.size=t.size}We.prototype.clear=function(){this.__data__=new Se,this.size=0},We.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},We.prototype.get=function(e){return this.__data__.get(e)},We.prototype.has=function(e){return this.__data__.has(e)},We.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Se){var n=r.__data__;if(!Re||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Be(n)}return r.set(e,t),this.size=r.size,this};var He=function(){try{var e=$e(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();function Ge(e,t,r){"__proto__"==t&&He?He(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var qe=Object.prototype.hasOwnProperty;function Ke(e,t,r){var n=e[t];qe.call(e,t)&&be(n,r)&&(void 0!==r||t in e)||Ge(e,t,r)}function Ye(e,t,r,n){var a=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var u=t[o],c=n?n(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),a?Ge(r,u,c):Ke(r,u,c)}return r}function Xe(e){return fe(e)&&"[object Arguments]"==ce(e)}var Je=Object.prototype,Qe=Je.hasOwnProperty,Ze=Je.propertyIsEnumerable,et=Xe(function(){return arguments}())?Xe:function(e){return fe(e)&&Qe.call(e,"callee")&&!Ze.call(e,"callee")},tt=Array.isArray;var rt="object"==typeof exports&&exports&&!exports.nodeType&&exports,nt=rt&&"object"==typeof module&&module&&!module.nodeType&&module,at=nt&&nt.exports===rt?ee.Buffer:void 0,ot=(at?at.isBuffer:void 0)||function(){return!1},it=/^(?:0|[1-9]\d*)$/;function ut(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&it.test(e))&&e>-1&&e%1==0&&e<t}function ct(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var lt={};function st(e){return function(t){return e(t)}}lt["[object Float32Array]"]=lt["[object Float64Array]"]=lt["[object Int8Array]"]=lt["[object Int16Array]"]=lt["[object Int32Array]"]=lt["[object Uint8Array]"]=lt["[object Uint8ClampedArray]"]=lt["[object Uint16Array]"]=lt["[object Uint32Array]"]=!0,lt["[object Arguments]"]=lt["[object Array]"]=lt["[object ArrayBuffer]"]=lt["[object Boolean]"]=lt["[object DataView]"]=lt["[object Date]"]=lt["[object Error]"]=lt["[object Function]"]=lt["[object Map]"]=lt["[object Number]"]=lt["[object Object]"]=lt["[object RegExp]"]=lt["[object Set]"]=lt["[object String]"]=lt["[object WeakMap]"]=!1;var ft="object"==typeof exports&&exports&&!exports.nodeType&&exports,dt=ft&&"object"==typeof module&&module&&!module.nodeType&&module,pt=dt&&dt.exports===ft&&Q.process,mt=function(){try{var e=dt&&dt.require&&dt.require("util").types;return e||pt&&pt.binding&&pt.binding("util")}catch(e){}}(),vt=mt&&mt.isTypedArray,yt=vt?st(vt):function(e){return fe(e)&&ct(e.length)&&!!lt[ce(e)]},ht=Object.prototype.hasOwnProperty;function bt(e,t){var r=tt(e),n=!r&&et(e),a=!r&&!n&&ot(e),o=!r&&!n&&!a&&yt(e),i=r||n||a||o,u=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=u.length;for(var l in e)!t&&!ht.call(e,l)||i&&("length"==l||a&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ut(l,c))||u.push(l);return u}var gt=Object.prototype;function Et(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||gt)}var St=le(Object.keys,Object),jt=Object.prototype.hasOwnProperty;function _t(e){return null!=e&&ct(e.length)&&!_e(e)}function Ot(e){return _t(e)?bt(e):function(e){if(!Et(e))return St(e);var t=[];for(var r in Object(e))jt.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}var wt=Object.prototype.hasOwnProperty;function xt(e){if(!je(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Et(e),r=[];for(var n in e)("constructor"!=n||!t&&wt.call(e,n))&&r.push(n);return r}function At(e){return _t(e)?bt(e,!0):xt(e)}var Tt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ct=Tt&&"object"==typeof module&&module&&!module.nodeType&&module,kt=Ct&&Ct.exports===Tt?ee.Buffer:void 0,Nt=kt?kt.allocUnsafe:void 0;function Ft(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function It(){return[]}var Mt=Object.prototype.propertyIsEnumerable,Pt=Object.getOwnPropertySymbols,$t=Pt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o}(Pt(e),(function(t){return Mt.call(e,t)})))}:It;function Rt(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Dt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Rt(t,$t(e)),e=se(e);return t}:It;function Vt(e,t,r){var n=t(e);return tt(e)?n:Rt(n,r(e))}function Lt(e){return Vt(e,Ot,$t)}function Ut(e){return Vt(e,At,Dt)}var zt=$e(ee,"DataView"),Bt=$e(ee,"Promise"),Wt=$e(ee,"Set"),Ht=$e(ee,"WeakMap"),Gt=Te(zt),qt=Te(Re),Kt=Te(Bt),Yt=Te(Wt),Xt=Te(Ht),Jt=ce;(zt&&"[object DataView]"!=Jt(new zt(new ArrayBuffer(1)))||Re&&"[object Map]"!=Jt(new Re)||Bt&&"[object Promise]"!=Jt(Bt.resolve())||Wt&&"[object Set]"!=Jt(new Wt)||Ht&&"[object WeakMap]"!=Jt(new Ht))&&(Jt=function(e){var t=ce(e),r="[object Object]"==t?e.constructor:void 0,n=r?Te(r):"";if(n)switch(n){case Gt:return"[object DataView]";case qt:return"[object Map]";case Kt:return"[object Promise]";case Yt:return"[object Set]";case Xt:return"[object WeakMap]"}return t});var Qt=Jt,Zt=Object.prototype.hasOwnProperty;var er=ee.Uint8Array;function tr(e){var t=new e.constructor(e.byteLength);return new er(t).set(new er(e)),t}var rr=/\w*$/;var nr=te?te.prototype:void 0,ar=nr?nr.valueOf:void 0;function or(e,t,r){var n,a,o,i=e.constructor;switch(t){case"[object ArrayBuffer]":return tr(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var r=t?tr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);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 function(e,t){var r=t?tr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(o=new(a=e).constructor(a.source,rr.exec(a))).lastIndex=a.lastIndex,o;case"[object Symbol]":return n=e,ar?Object(ar.call(n)):{}}}var ir=Object.create,ur=function(){function e(){}return function(t){if(!je(t))return{};if(ir)return ir(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var cr=mt&&mt.isMap,lr=cr?st(cr):function(e){return fe(e)&&"[object Map]"==Qt(e)};var sr=mt&&mt.isSet,fr=sr?st(sr):function(e){return fe(e)&&"[object Set]"==Qt(e)},dr={};function pr(e,t,r,n,a,o){var i,u=1&t,c=2&t,l=4&t;if(r&&(i=a?r(e,n,a,o):r(e)),void 0!==i)return i;if(!je(e))return e;var s=tt(e);if(s){if(i=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Zt.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return Ft(e,i)}else{var f=Qt(e),d="[object Function]"==f||"[object GeneratorFunction]"==f;if(ot(e))return function(e,t){if(t)return e.slice();var r=e.length,n=Nt?Nt(r):new e.constructor(r);return e.copy(n),n}(e,u);if("[object Object]"==f||"[object Arguments]"==f||d&&!a){if(i=c||d?{}:function(e){return"function"!=typeof e.constructor||Et(e)?{}:ur(se(e))}(e),!u)return c?function(e,t){return Ye(e,Dt(e),t)}(e,function(e,t){return e&&Ye(t,At(t),e)}(i,e)):function(e,t){return Ye(e,$t(e),t)}(e,function(e,t){return e&&Ye(t,Ot(t),e)}(i,e))}else{if(!dr[f])return a?e:{};i=or(e,f,u)}}o||(o=new We);var p=o.get(e);if(p)return p;o.set(e,i),fr(e)?e.forEach((function(n){i.add(pr(n,t,r,n,e,o))})):lr(e)&&e.forEach((function(n,a){i.set(a,pr(n,t,r,a,e,o))}));var m=s?void 0:(l?c?Ut:Lt:c?At:Ot)(e);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(m||e,(function(n,a){m&&(n=e[a=n]),Ke(i,a,pr(n,t,r,a,e,o))})),i}dr["[object Arguments]"]=dr["[object Array]"]=dr["[object ArrayBuffer]"]=dr["[object DataView]"]=dr["[object Boolean]"]=dr["[object Date]"]=dr["[object Float32Array]"]=dr["[object Float64Array]"]=dr["[object Int8Array]"]=dr["[object Int16Array]"]=dr["[object Int32Array]"]=dr["[object Map]"]=dr["[object Number]"]=dr["[object Object]"]=dr["[object RegExp]"]=dr["[object Set]"]=dr["[object String]"]=dr["[object Symbol]"]=dr["[object Uint8Array]"]=dr["[object Uint8ClampedArray]"]=dr["[object Uint16Array]"]=dr["[object Uint32Array]"]=!0,dr["[object Error]"]=dr["[object Function]"]=dr["[object WeakMap]"]=!1;function mr(e){return pr(e,4)}function vr(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}function yr(e){return"symbol"==typeof e||fe(e)&&"[object Symbol]"==ce(e)}function hr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i};return r.cache=new(hr.Cache||Be),r}hr.Cache=Be;var br,gr,Er,Sr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jr=/\\(\\)?/g,_r=(br=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Sr,(function(e,r,n,a){t.push(n?a.replace(jr,"$1"):r||e)})),t},gr=hr(br,(function(e){return 500===Er.size&&Er.clear(),e})),Er=gr.cache,gr);function Or(e){if("string"==typeof e||yr(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}var wr=te?te.prototype:void 0,xr=wr?wr.toString:void 0;function Ar(e){if("string"==typeof e)return e;if(tt(e))return vr(e,Ar)+"";if(yr(e))return xr?xr.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}function Tr(e){return tt(e)?vr(e,Or):yr(e)?[e]:Ft(_r(function(e){return null==e?"":Ar(e)}(e)))}var Cr="production"===process.env.NODE_ENV;function kr(e,t){if(!Cr){if(e)return;var r="Warning: "+t;"undefined"!=typeof console&&console.warn(r);try{throw Error(r)}catch(e){}}}var Nr,Fr={exports:{}},Ir={};var Mr,Pr={};
/** @license React v16.13.1

@@ -62,3 +96,3 @@ * react-is.development.js

* LICENSE file in the root directory of this source tree.
*/!function(e){"production"===process.env.NODE_ENV?e.exports=function(){if(mr)return br;mr=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case c:case l:case n:case o:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case s:case y:case p:case i:return e;default:return d}}case r:return d}}}function E(e){return g(e)===l}return br.AsyncMode=c,br.ConcurrentMode=l,br.ContextConsumer=u,br.ContextProvider=i,br.Element=t,br.ForwardRef=s,br.Fragment=n,br.Lazy=y,br.Memo=p,br.Portal=r,br.Profiler=o,br.StrictMode=a,br.Suspense=f,br.isAsyncMode=function(e){return E(e)||g(e)===c},br.isConcurrentMode=E,br.isContextConsumer=function(e){return g(e)===u},br.isContextProvider=function(e){return g(e)===i},br.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},br.isForwardRef=function(e){return g(e)===s},br.isFragment=function(e){return g(e)===n},br.isLazy=function(e){return g(e)===y},br.isMemo=function(e){return g(e)===p},br.isPortal=function(e){return g(e)===r},br.isProfiler=function(e){return g(e)===o},br.isStrictMode=function(e){return g(e)===a},br.isSuspense=function(e){return g(e)===f},br.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===l||e===o||e===a||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===p||e.$$typeof===i||e.$$typeof===u||e.$$typeof===s||e.$$typeof===m||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v)},br.typeOf=g,br}():e.exports=(gr||(gr=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var v=e.type;switch(v){case c:case l:case n:case o:case a:case f:return v;default:var m=v&&v.$$typeof;switch(m){case u:case s:case y:case p:case i:return m;default:return d}}case r:return d}}}var E=c,S=l,_=u,j=i,O=t,w=s,A=n,T=y,x=p,F=r,C=o,k=a,I=f,N=!1;function P(e){return g(e)===l}Er.AsyncMode=E,Er.ConcurrentMode=S,Er.ContextConsumer=_,Er.ContextProvider=j,Er.Element=O,Er.ForwardRef=w,Er.Fragment=A,Er.Lazy=T,Er.Memo=x,Er.Portal=F,Er.Profiler=C,Er.StrictMode=k,Er.Suspense=I,Er.isAsyncMode=function(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(e)||g(e)===c},Er.isConcurrentMode=P,Er.isContextConsumer=function(e){return g(e)===u},Er.isContextProvider=function(e){return g(e)===i},Er.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Er.isForwardRef=function(e){return g(e)===s},Er.isFragment=function(e){return g(e)===n},Er.isLazy=function(e){return g(e)===y},Er.isMemo=function(e){return g(e)===p},Er.isPortal=function(e){return g(e)===r},Er.isProfiler=function(e){return g(e)===o},Er.isStrictMode=function(e){return g(e)===a},Er.isSuspense=function(e){return g(e)===f},Er.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===l||e===o||e===a||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===p||e.$$typeof===i||e.$$typeof===u||e.$$typeof===s||e.$$typeof===m||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v)},Er.typeOf=g}()),Er)}(hr);var Sr=hr.exports,_r={};_r[Sr.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_r[Sr.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function jr(e){return Qt(e,5)}function Or(){return Or=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},Or.apply(this,arguments)}function wr(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}function Ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Tr=function(e){return Array.isArray(e)&&0===e.length},xr=function(e){return"function"==typeof e},Fr=function(e){return null!==e&&"object"==typeof e},Cr=function(e){return String(Math.floor(Number(e)))===e},kr=function(e){return"[object String]"===Object.prototype.toString.call(e)},Ir=function(t){return 0===e.Children.count(t)},Nr=function(e){return Fr(e)&&xr(e.then)};function Pr(e,t,r,n){void 0===n&&(n=0);for(var a=pr(t);e&&n<a.length;)e=e[a[n++]];return void 0===e?r:e}function Mr(e,t,r){for(var n=Zt(e),a=n,o=0,i=pr(t);o<i.length-1;o++){var u=i[o],c=Pr(e,i.slice(0,o+1));if(c&&(Fr(c)||Array.isArray(c)))a=a[u]=Zt(c);else{var l=i[o+1];a=a[u]=Cr(l)&&Number(l)>=0?[]:{}}}return(0===o?e:a)[i[o]]===r?e:(void 0===r?delete a[i[o]]:a[i[o]]=r,0===o&&void 0===r&&delete n[i[o]],n)}function Rr(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var a=0,o=Object.keys(e);a<o.length;a++){var i=o[a],u=e[i];Fr(u)?r.get(u)||(r.set(u,!0),n[i]=Array.isArray(u)?[]:{},Rr(u,t,r,n[i])):n[i]=t}return n}var $r=e.createContext(void 0);$r.displayName="FormikContext";var Dr=$r.Provider;function Vr(e,t){switch(t.type){case"SET_VALUES":return Or({},e,{values:t.payload});case"SET_TOUCHED":return Or({},e,{touched:t.payload});case"SET_ERRORS":return C(e.errors,t.payload)?e:Or({},e,{errors:t.payload});case"SET_STATUS":return Or({},e,{status:t.payload});case"SET_ISSUBMITTING":return Or({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Or({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Or({},e,{values:Mr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Or({},e,{touched:Mr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Or({},e,{errors:Mr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Or({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Or({},e,{touched:Rr(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Or({},e,{isSubmitting:!1});default:return e}}$r.Consumer;var Ur={},Lr={};function zr(t){var r=t.validateOnChange,n=void 0===r||r,a=t.validateOnBlur,o=void 0===a||a,i=t.validateOnMount,u=void 0!==i&&i,c=t.isInitialValid,l=t.enableReinitialize,s=void 0!==l&&l,f=t.onSubmit,d=wr(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=Or({validateOnChange:n,validateOnBlur:o,validateOnMount:u,onSubmit:f},d),y=e.useRef(p.initialValues),v=e.useRef(p.initialErrors||Ur),m=e.useRef(p.initialTouched||Lr),h=e.useRef(p.initialStatus),b=e.useRef(!1),g=e.useRef({});"production"!==process.env.NODE_ENV&&e.useEffect((function(){void 0!==c&&("production"!==process.env.NODE_ENV?vr(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):vr(!1))}),[]),e.useEffect((function(){return b.current=!0,function(){b.current=!1}}),[]);var E=e.useReducer(Vr,{values:p.initialValues,errors:p.initialErrors||Ur,touched:p.initialTouched||Lr,status:p.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),S=E[0],_=E[1],j=e.useCallback((function(e,t){return new Promise((function(r,n){var a=p.validate(e,t);null==a?r(Ur):Nr(a)?a.then((function(e){r(e||Ur)}),(function(e){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",e),n(e)})):r(a)}))}),[p.validate]),O=e.useCallback((function(e,t){var r=p.validationSchema,n=xr(r)?r(t):r,a=t&&n.validateAt?n.validateAt(t,e):function(e,t,r,n){void 0===r&&(r=!1);void 0===n&&(n={});var a=Hr(e);return t[r?"validateSync":"validate"](a,{abortEarly:!1,context:n})}(e,n);return new Promise((function(e,t){a.then((function(){e(Ur)}),(function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Mr(t,e.path,e.message);var r=e.inner,n=Array.isArray(r),a=0;for(r=n?r:r[Symbol.iterator]();;){var o;if(n){if(a>=r.length)break;o=r[a++]}else{if((a=r.next()).done)break;o=a.value}var i=o;Pr(t,i.path)||(t=Mr(t,i.path,i.message))}}return t}(r)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",r),t(r))}))}))}),[p.validationSchema]),w=e.useCallback((function(e,t){return new Promise((function(r){return r(g.current[e].validate(t))}))}),[]),A=e.useCallback((function(e){var t=Object.keys(g.current).filter((function(e){return xr(g.current[e].validate)})),r=t.length>0?t.map((function(t){return w(t,Pr(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then((function(e){return e.reduce((function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=Mr(e,t[n],r)),e}),{})}))}),[w]),T=e.useCallback((function(e){return Promise.all([A(e),p.validationSchema?O(e):{},p.validate?j(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return R.all([t,r,n],{arrayMerge:Gr})}))}),[p.validate,p.validationSchema,A,j,O]),x=Kr((function(e){return void 0===e&&(e=S.values),_({type:"SET_ISVALIDATING",payload:!0}),T(e).then((function(e){return b.current&&(_({type:"SET_ISVALIDATING",payload:!1}),_({type:"SET_ERRORS",payload:e})),e}))}));e.useEffect((function(){u&&!0===b.current&&C(y.current,p.initialValues)&&x(y.current)}),[u,x]);var F=e.useCallback((function(e){var t=e&&e.values?e.values:y.current,r=e&&e.errors?e.errors:v.current?v.current:p.initialErrors||{},n=e&&e.touched?e.touched:m.current?m.current:p.initialTouched||{},a=e&&e.status?e.status:h.current?h.current:p.initialStatus;y.current=t,v.current=r,m.current=n,h.current=a;var o=function(){_({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:a,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(p.onReset){var i=p.onReset(S.values,X);Nr(i)?i.then(o):o()}else o()}),[p.initialErrors,p.initialStatus,p.initialTouched]);e.useEffect((function(){!0!==b.current||C(y.current,p.initialValues)||(s&&(y.current=p.initialValues,F()),u&&x(y.current))}),[s,p.initialValues,F,u,x]),e.useEffect((function(){s&&!0===b.current&&!C(v.current,p.initialErrors)&&(v.current=p.initialErrors||Ur,_({type:"SET_ERRORS",payload:p.initialErrors||Ur}))}),[s,p.initialErrors]),e.useEffect((function(){s&&!0===b.current&&!C(m.current,p.initialTouched)&&(m.current=p.initialTouched||Lr,_({type:"SET_TOUCHED",payload:p.initialTouched||Lr}))}),[s,p.initialTouched]),e.useEffect((function(){s&&!0===b.current&&!C(h.current,p.initialStatus)&&(h.current=p.initialStatus,_({type:"SET_STATUS",payload:p.initialStatus}))}),[s,p.initialStatus,p.initialTouched]);var k=Kr((function(e){if(g.current[e]&&xr(g.current[e].validate)){var t=Pr(S.values,e),r=g.current[e].validate(t);return Nr(r)?(_({type:"SET_ISVALIDATING",payload:!0}),r.then((function(e){return e})).then((function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),_({type:"SET_ISVALIDATING",payload:!1})}))):(_({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return p.validationSchema?(_({type:"SET_ISVALIDATING",payload:!0}),O(S.values,e).then((function(e){return e})).then((function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),_({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),I=e.useCallback((function(e,t){var r=t.validate;g.current[e]={validate:r}}),[]),N=e.useCallback((function(e){delete g.current[e]}),[]),P=Kr((function(e,t){return _({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?x(S.values):Promise.resolve()})),M=e.useCallback((function(e){_({type:"SET_ERRORS",payload:e})}),[]),$=Kr((function(e,t){var r=xr(e)?e(S.values):e;return _({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?x(r):Promise.resolve()})),D=e.useCallback((function(e,t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),V=Kr((function(e,t,r){return _({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?x(Mr(S.values,e,t)):Promise.resolve()})),U=e.useCallback((function(e,t){var r,n=t,a=e;if(!kr(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,i=o.type,u=o.name,c=o.id,l=o.value,s=o.checked,f=o.outerHTML,d=o.options,p=o.multiple;(n=t||(u||c))||"production"===process.env.NODE_ENV||Wr({htmlContent:f,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),a=/number|range/.test(i)?(r=parseFloat(l),isNaN(r)?"":r):/checkbox/.test(i)?function(e,t,r){if("boolean"==typeof e)return Boolean(t);var n=[],a=!1,o=-1;if(Array.isArray(e))n=e,a=(o=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);if(t&&r&&!a)return n.concat(r);if(!a)return n;return n.slice(0,o).concat(n.slice(o+1))}(Pr(S.values,n),s,l):d&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(d):l}n&&V(n,a)}),[V,S.values]),L=Kr((function(e){if(kr(e))return function(t){return U(t,e)};U(e)})),z=Kr((function(e,t,r){return void 0===t&&(t=!0),_({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?o:r)?x(S.values):Promise.resolve()})),B=e.useCallback((function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,a=r.id,o=r.outerHTML,i=t||(n||a);i||"production"===process.env.NODE_ENV||Wr({htmlContent:o,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),z(i,!0)}),[z]),W=Kr((function(e){if(kr(e))return function(t){return B(t,e)};B(e)})),H=e.useCallback((function(e){xr(e)?_({type:"SET_FORMIK_STATE",payload:e}):_({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),G=e.useCallback((function(e){_({type:"SET_STATUS",payload:e})}),[]),q=e.useCallback((function(e){_({type:"SET_ISSUBMITTING",payload:e})}),[]),K=Kr((function(){return _({type:"SUBMIT_ATTEMPT"}),x().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=J()))return}catch(e){throw e}return Promise.resolve(r).then((function(e){return b.current&&_({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(b.current)throw _({type:"SUBMIT_FAILURE"}),e}))}if(b.current&&(_({type:"SUBMIT_FAILURE"}),t))throw e}))})),Y=Kr((function(e){if(e&&e.preventDefault&&xr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&xr(e.stopPropagation)&&e.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var t=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}();null!==t&&t instanceof HTMLButtonElement&&(t.attributes&&t.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?vr(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):vr(!1)))}K().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),X={resetForm:F,validateForm:x,validateField:k,setErrors:M,setFieldError:D,setFieldTouched:z,setFieldValue:V,setStatus:G,setSubmitting:q,setTouched:P,setValues:$,setFormikState:H,submitForm:K},J=Kr((function(){return f(S.values,X)})),Q=Kr((function(e){e&&e.preventDefault&&xr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&xr(e.stopPropagation)&&e.stopPropagation(),F()})),Z=e.useCallback((function(e){return{value:Pr(S.values,e),error:Pr(S.errors,e),touched:!!Pr(S.touched,e),initialValue:Pr(y.current,e),initialTouched:!!Pr(m.current,e),initialError:Pr(v.current,e)}}),[S.errors,S.touched,S.values]),ee=e.useCallback((function(e){return{setValue:function(t,r){return V(e,t,r)},setTouched:function(t,r){return z(e,t,r)},setError:function(t){return D(e,t)}}}),[V,z,D]),te=e.useCallback((function(e){var t=Fr(e),r=t?e.name:e,n=Pr(S.values,r),a={name:r,value:n,onChange:L,onBlur:W};if(t){var o=e.type,i=e.value,u=e.as,c=e.multiple;"checkbox"===o?void 0===i?a.checked=!!n:(a.checked=!(!Array.isArray(n)||!~n.indexOf(i)),a.value=i):"radio"===o?(a.checked=n===i,a.value=i):"select"===u&&c&&(a.value=a.value||[],a.multiple=!0)}return a}),[W,L,S.values]),re=e.useMemo((function(){return!C(y.current,S.values)}),[y.current,S.values]),ne=e.useMemo((function(){return void 0!==c?re?S.errors&&0===Object.keys(S.errors).length:!1!==c&&xr(c)?c(p):c:S.errors&&0===Object.keys(S.errors).length}),[c,re,S.errors,p]);return Or({},S,{initialValues:y.current,initialErrors:v.current,initialTouched:m.current,initialStatus:h.current,handleBlur:W,handleChange:L,handleReset:Q,handleSubmit:Y,resetForm:F,setErrors:M,setFormikState:H,setFieldTouched:z,setFieldValue:V,setFieldError:D,setStatus:G,setSubmitting:q,setTouched:P,setValues:$,submitForm:K,validateForm:x,validateField:k,isValid:ne,dirty:re,unregisterField:N,registerField:I,getFieldProps:te,getFieldMeta:Z,getFieldHelpers:ee,validateOnBlur:o,validateOnChange:n,validateOnMount:u})}function Br(t){var r=zr(t),n=t.component,a=t.children,o=t.render,i=t.innerRef;return e.useImperativeHandle(i,(function(){return r})),"production"!==process.env.NODE_ENV&&e.useEffect((function(){t.render&&("production"!==process.env.NODE_ENV?vr(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):vr(!1))}),[]),e.createElement(Dr,{value:r},n?e.createElement(n,r):o?o(r):a?xr(a)?a(r):Ir(a)?null:e.Children.only(a):null)}function Wr(e){var t=e.htmlContent,r=e.documentationAnchorLink,n=e.handlerName;console.warn("Warning: Formik called `"+n+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+r+"\n ")}function Hr(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map((function(e){return!0===Array.isArray(e)||re(e)?Hr(e):""!==e?e:void 0})):re(e[n])?t[n]=Hr(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function Gr(e,t,r){var n=e.slice();return t.forEach((function(t,a){if(void 0===n[a]){var o=!1!==r.clone&&r.isMergeableObject(t);n[a]=o?R(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[a]=R(e[a],t,r):-1===e.indexOf(t)&&n.push(t)})),n}var qr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;function Kr(t){var r=e.useRef(t);return qr((function(){r.current=t})),e.useCallback((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.current.apply(void 0,t)}),[])}e.forwardRef((function(t,r){var n,a=t.action,o=wr(t,["action"]),i=null!=a?a:"#",u=((n=e.useContext($r))||("production"!==process.env.NODE_ENV?vr(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):vr(!1)),n),c=u.handleReset,l=u.handleSubmit;return e.createElement("form",Object.assign({onSubmit:l,ref:r,onReset:c,action:i},o))})).displayName="Form";var Yr=function(e,t,r){var n=Xr(e);return n.splice(t,0,r),n},Xr=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(Or({},e,{length:t+1}))}return[]},Jr=function(t){var r,n;function a(e){var r;return(r=t.call(this,e)||this).updateArrayField=function(e,t,n){var a=r.props,o=a.name;(0,a.formik.setFormikState)((function(r){var a="function"==typeof n?n:e,i="function"==typeof t?t:e,u=Mr(r.values,o,e(Pr(r.values,o))),c=n?a(Pr(r.errors,o)):void 0,l=t?i(Pr(r.touched,o)):void 0;return Tr(c)&&(c=void 0),Tr(l)&&(l=void 0),Or({},r,{values:u,errors:n?Mr(r.errors,o,c):r.errors,touched:t?Mr(r.touched,o,l):r.touched})}))},r.push=function(e){return r.updateArrayField((function(t){return[].concat(Xr(t),[jr(e)])}),!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Xr(e),a=n[t];return n[t]=n[r],n[r]=a,n}(r,e,t)}),!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Xr(e),a=n[t];return n.splice(t,1),n.splice(r,0,a),n}(r,e,t)}),!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField((function(r){return Yr(r,e,t)}),(function(t){return Yr(t,e,null)}),(function(t){return Yr(t,e,null)}))},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Xr(e);return n[t]=r,n}(r,e,t)}),!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField((function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r})),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(Ar(r)),r.pop=r.pop.bind(Ar(r)),r}n=t,(r=a).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var o=a.prototype;return o.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!C(Pr(e.formik.values,e.name),Pr(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},o.remove=function(e){var t;return this.updateArrayField((function(r){var n=r?Xr(r):[];return t||(t=n[e]),xr(n.splice)&&n.splice(e,1),n}),!0,!0),t},o.pop=function(){var e;return this.updateArrayField((function(t){var r=t;return e||(e=r&&r.pop&&r.pop()),r}),!0,!0),e},o.render=function(){var t={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},r=this.props,n=r.component,a=r.render,o=r.children,i=r.name,u=Or({},t,{form:wr(r.formik,["validate","validationSchema"]),name:i});return n?e.createElement(n,u):a?a(u):o?"function"==typeof o?o(u):Ir(o)?null:e.Children.only(o):null},a}(e.Component);Jr.defaultProps={validateOnChange:!0};const Qr=e=>t=>{var r,n;const a={};for(const[o,i]of Object.entries(e)){if("password"===i.type&&(null===(r=i.confirmPassword)||void 0===r?void 0:r.addField)&&t[o]!==t.confirmPassword&&(a.confirmPassword=i.confirmPassword.errorMessage),!i.validation)continue;if((null===(n=i.validation.required)||void 0===n?void 0:n.value)&&!t[o]){a[o]=i.validation.required.message;continue}if("checkbox"===e[o].type)continue;const u=t[o],{pattern:c,minLength:l}=i.validation;!c||c.value.test(u)?l&&u.length<l.value&&(a[o]=l.message):a[o]=c.message}return a};var Zr=Object.freeze({__proto__:null});exports.Avatar=e=>"avatarUrl"in e?a.default.createElement(f,Object.assign({},e)):a.default.createElement(s,Object.assign({},e)),exports.Form=({formSchema:e,onSubmit:t,SubmitButton:n})=>{const o=Object.entries(e).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t[0]]:t[1].initialValue})),{});return a.default.createElement(Br,{initialValues:o,onSubmit:e=>{const r=e,n="confirmPassword";r[n];const a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(r,[n+""]);t(a)},validate:Qr(e)},(({handleSubmit:t,values:o,handleChange:i,touched:u,errors:c})=>a.default.createElement("form",{noValidate:!0,onSubmit:t,className:"uag uag-form"},a.default.createElement(r.Stack,{className:"uag uag-form-stack",spacing:1},Object.entries(e).map((([e,t])=>{var n,l,s,f,d;const p={fullWidth:!0,id:e,name:e,label:`${t.label}${(null===(l=null===(n=t.validation)||void 0===n?void 0:n.required)||void 0===l?void 0:l.value)?"*":""}`,type:t.type,value:o[e],onChange:i,error:u[e]&&Boolean(c[e]),helperText:u[e]&&c[e]};return"password"===t.type?a.default.createElement(r.Stack,{className:"uag uag-pwd-container",key:e,spacing:1},a.default.createElement(r.TextField,Object.assign({},p,{className:"uag uag-form-text uag-form-text-password"})),(null===(s=t.confirmPassword)||void 0===s?void 0:s.addField)?a.default.createElement(r.TextField,{name:"confirmPassword",label:`${t.confirmPassword.label}${(null===(d=null===(f=t.validation)||void 0===f?void 0:f.required)||void 0===d?void 0:d.value)?"*":""}`,onChange:i,value:o.confirmPassword,error:u.confirmPassword&&Boolean(c.confirmPassword),helperText:u.confirmPassword&&c.confirmPassword,fullWidth:!0,type:"password",className:"uag uag-form-text uag-form-text-password uag-form-text-password-confirmation"}):null):"checkbox"===t.type?a.default.createElement(r.FormControl,{key:e,fullWidth:!0,error:p.error,className:"uag uag-form-checkbox uag-form-checkbox-control"},a.default.createElement(r.FormControlLabel,{control:a.default.createElement(r.Checkbox,{name:e,value:o[e],onChange:i,defaultChecked:t.initialValue,className:"uag uag-form-checkbox"}),label:t.label}),p.helperText&&a.default.createElement(r.FormHelperText,{className:"uag uag-form-helper-txt uag-form-checkbox-helper-txt"},p.helperText)):"list"===t.type?a.default.createElement(r.FormControl,{error:p.error,fullWidth:!0,key:e},a.default.createElement(r.InputLabel,{id:"uag-form-list-label"},t.label),a.default.createElement(r.Select,{labelId:"uag-form-list-label",name:e,onChange:i,value:o[e],label:t.label},t.options.map((({value:e,label:t})=>a.default.createElement(r.MenuItem,{key:e,value:e},t)))),p.helperText&&a.default.createElement(r.FormHelperText,{className:"uag uag-form-helper-txt uag-form-list-helper-txt"},p.helperText)):a.default.createElement(r.TextField,Object.assign({key:e},p,{className:"uag uag-form-text"}))})),a.default.createElement("div",{className:"uag uag-form-btn-container"},a.default.createElement(n.type,Object.assign({},n.props,{type:"submit"})))))))},exports.FormTypes=Zr,exports.ItemSelector=({urlList:t,initialIndex:r,onChange:n})=>{const[o,i]=e.useState(r&&r<t.length?r:0),u=0===o,c=o===t.length-1,l=e=>r=>{r.preventDefault();const a="decrement"===e?Math.max(o-1,0):Math.min(o+1,t.length-1);i(a),n(t[a])};return a.default.createElement(S,{className:"uag-item-selector-container"},a.default.createElement(_,{disabled:u,className:"uag-item-selector-control uag-item-selector-control-left",onClick:l("decrement")},!u&&a.default.createElement(g,{className:"uag-item-selector-arrow uag-item-selector-arrow-left",size:"75%"})),a.default.createElement(j,{className:"uag-item-selector-item-container"},a.default.createElement(O,{className:"uag-item-selector-item-img",src:t[o]})),a.default.createElement(_,{disabled:c,className:"uag-item-selector-control uag-item-selector-control-right",onClick:l("increment")},!c&&a.default.createElement(E,{className:"uag-item-selector-arrow uag-item-selector-arrow-right",size:"75%"})))};
*/!function(e){"production"===process.env.NODE_ENV?e.exports=function(){if(Nr)return Ir;Nr=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case c:case l:case n:case o:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case s:case m:case p:case i:return e;default:return d}}case r:return d}}}function E(e){return g(e)===l}return Ir.AsyncMode=c,Ir.ConcurrentMode=l,Ir.ContextConsumer=u,Ir.ContextProvider=i,Ir.Element=t,Ir.ForwardRef=s,Ir.Fragment=n,Ir.Lazy=m,Ir.Memo=p,Ir.Portal=r,Ir.Profiler=o,Ir.StrictMode=a,Ir.Suspense=f,Ir.isAsyncMode=function(e){return E(e)||g(e)===c},Ir.isConcurrentMode=E,Ir.isContextConsumer=function(e){return g(e)===u},Ir.isContextProvider=function(e){return g(e)===i},Ir.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ir.isForwardRef=function(e){return g(e)===s},Ir.isFragment=function(e){return g(e)===n},Ir.isLazy=function(e){return g(e)===m},Ir.isMemo=function(e){return g(e)===p},Ir.isPortal=function(e){return g(e)===r},Ir.isProfiler=function(e){return g(e)===o},Ir.isStrictMode=function(e){return g(e)===a},Ir.isSuspense=function(e){return g(e)===f},Ir.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===l||e===o||e===a||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===i||e.$$typeof===u||e.$$typeof===s||e.$$typeof===y||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v)},Ir.typeOf=g,Ir}():e.exports=(Mr||(Mr=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var v=e.type;switch(v){case c:case l:case n:case o:case a:case f:return v;default:var y=v&&v.$$typeof;switch(y){case u:case s:case m:case p:case i:return y;default:return d}}case r:return d}}}var E=c,S=l,j=u,_=i,O=t,w=s,x=n,A=m,T=p,C=r,k=o,N=a,F=f,I=!1;function M(e){return g(e)===l}Pr.AsyncMode=E,Pr.ConcurrentMode=S,Pr.ContextConsumer=j,Pr.ContextProvider=_,Pr.Element=O,Pr.ForwardRef=w,Pr.Fragment=x,Pr.Lazy=A,Pr.Memo=T,Pr.Portal=C,Pr.Profiler=k,Pr.StrictMode=N,Pr.Suspense=F,Pr.isAsyncMode=function(e){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(e)||g(e)===c},Pr.isConcurrentMode=M,Pr.isContextConsumer=function(e){return g(e)===u},Pr.isContextProvider=function(e){return g(e)===i},Pr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Pr.isForwardRef=function(e){return g(e)===s},Pr.isFragment=function(e){return g(e)===n},Pr.isLazy=function(e){return g(e)===m},Pr.isMemo=function(e){return g(e)===p},Pr.isPortal=function(e){return g(e)===r},Pr.isProfiler=function(e){return g(e)===o},Pr.isStrictMode=function(e){return g(e)===a},Pr.isSuspense=function(e){return g(e)===f},Pr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===l||e===o||e===a||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===i||e.$$typeof===u||e.$$typeof===s||e.$$typeof===y||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v)},Pr.typeOf=g}()),Pr)}(Fr);var $r=Fr.exports,Rr={};Rr[$r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Rr[$r.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Dr(e){return pr(e,5)}function Vr(){return Vr=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},Vr.apply(this,arguments)}function Lr(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}function Ur(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var zr=function(e){return Array.isArray(e)&&0===e.length},Br=function(e){return"function"==typeof e},Wr=function(e){return null!==e&&"object"==typeof e},Hr=function(e){return String(Math.floor(Number(e)))===e},Gr=function(e){return"[object String]"===Object.prototype.toString.call(e)},qr=function(t){return 0===e.Children.count(t)},Kr=function(e){return Wr(e)&&Br(e.then)};function Yr(e,t,r,n){void 0===n&&(n=0);for(var a=Tr(t);e&&n<a.length;)e=e[a[n++]];return void 0===e?r:e}function Xr(e,t,r){for(var n=mr(e),a=n,o=0,i=Tr(t);o<i.length-1;o++){var u=i[o],c=Yr(e,i.slice(0,o+1));if(c&&(Wr(c)||Array.isArray(c)))a=a[u]=mr(c);else{var l=i[o+1];a=a[u]=Hr(l)&&Number(l)>=0?[]:{}}}return(0===o?e:a)[i[o]]===r?e:(void 0===r?delete a[i[o]]:a[i[o]]=r,0===o&&void 0===r&&delete n[i[o]],n)}function Jr(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var a=0,o=Object.keys(e);a<o.length;a++){var i=o[a],u=e[i];Wr(u)?r.get(u)||(r.set(u,!0),n[i]=Array.isArray(u)?[]:{},Jr(u,t,r,n[i])):n[i]=t}return n}var Qr=e.createContext(void 0);Qr.displayName="FormikContext";var Zr=Qr.Provider;function en(e,t){switch(t.type){case"SET_VALUES":return Vr({},e,{values:t.payload});case"SET_TOUCHED":return Vr({},e,{touched:t.payload});case"SET_ERRORS":return H(e.errors,t.payload)?e:Vr({},e,{errors:t.payload});case"SET_STATUS":return Vr({},e,{status:t.payload});case"SET_ISSUBMITTING":return Vr({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Vr({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Vr({},e,{values:Xr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Vr({},e,{touched:Xr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Vr({},e,{errors:Xr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Vr({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Vr({},e,{touched:Jr(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Vr({},e,{isSubmitting:!1});default:return e}}Qr.Consumer;var tn={},rn={};function nn(t){var r=t.validateOnChange,n=void 0===r||r,a=t.validateOnBlur,o=void 0===a||a,i=t.validateOnMount,u=void 0!==i&&i,c=t.isInitialValid,l=t.enableReinitialize,s=void 0!==l&&l,f=t.onSubmit,d=Lr(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=Vr({validateOnChange:n,validateOnBlur:o,validateOnMount:u,onSubmit:f},d),m=e.useRef(p.initialValues),v=e.useRef(p.initialErrors||tn),y=e.useRef(p.initialTouched||rn),h=e.useRef(p.initialStatus),b=e.useRef(!1),g=e.useRef({});"production"!==process.env.NODE_ENV&&e.useEffect((function(){void 0!==c&&("production"!==process.env.NODE_ENV?kr(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):kr(!1))}),[]),e.useEffect((function(){return b.current=!0,function(){b.current=!1}}),[]);var E=e.useReducer(en,{values:p.initialValues,errors:p.initialErrors||tn,touched:p.initialTouched||rn,status:p.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),S=E[0],j=E[1],_=e.useCallback((function(e,t){return new Promise((function(r,n){var a=p.validate(e,t);null==a?r(tn):Kr(a)?a.then((function(e){r(e||tn)}),(function(e){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",e),n(e)})):r(a)}))}),[p.validate]),O=e.useCallback((function(e,t){var r=p.validationSchema,n=Br(r)?r(t):r,a=t&&n.validateAt?n.validateAt(t,e):function(e,t,r,n){void 0===r&&(r=!1);void 0===n&&(n={});var a=un(e);return t[r?"validateSync":"validate"](a,{abortEarly:!1,context:n})}(e,n);return new Promise((function(e,t){a.then((function(){e(tn)}),(function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Xr(t,e.path,e.message);var r=e.inner,n=Array.isArray(r),a=0;for(r=n?r:r[Symbol.iterator]();;){var o;if(n){if(a>=r.length)break;o=r[a++]}else{if((a=r.next()).done)break;o=a.value}var i=o;Yr(t,i.path)||(t=Xr(t,i.path,i.message))}}return t}(r)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",r),t(r))}))}))}),[p.validationSchema]),w=e.useCallback((function(e,t){return new Promise((function(r){return r(g.current[e].validate(t))}))}),[]),x=e.useCallback((function(e){var t=Object.keys(g.current).filter((function(e){return Br(g.current[e].validate)})),r=t.length>0?t.map((function(t){return w(t,Yr(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then((function(e){return e.reduce((function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=Xr(e,t[n],r)),e}),{})}))}),[w]),A=e.useCallback((function(e){return Promise.all([x(e),p.validationSchema?O(e):{},p.validate?_(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return J.all([t,r,n],{arrayMerge:cn})}))}),[p.validate,p.validationSchema,x,_,O]),T=sn((function(e){return void 0===e&&(e=S.values),j({type:"SET_ISVALIDATING",payload:!0}),A(e).then((function(e){return b.current&&(j({type:"SET_ISVALIDATING",payload:!1}),j({type:"SET_ERRORS",payload:e})),e}))}));e.useEffect((function(){u&&!0===b.current&&H(m.current,p.initialValues)&&T(m.current)}),[u,T]);var C=e.useCallback((function(e){var t=e&&e.values?e.values:m.current,r=e&&e.errors?e.errors:v.current?v.current:p.initialErrors||{},n=e&&e.touched?e.touched:y.current?y.current:p.initialTouched||{},a=e&&e.status?e.status:h.current?h.current:p.initialStatus;m.current=t,v.current=r,y.current=n,h.current=a;var o=function(){j({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:a,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(p.onReset){var i=p.onReset(S.values,Y);Kr(i)?i.then(o):o()}else o()}),[p.initialErrors,p.initialStatus,p.initialTouched]);e.useEffect((function(){!0!==b.current||H(m.current,p.initialValues)||(s&&(m.current=p.initialValues,C()),u&&T(m.current))}),[s,p.initialValues,C,u,T]),e.useEffect((function(){s&&!0===b.current&&!H(v.current,p.initialErrors)&&(v.current=p.initialErrors||tn,j({type:"SET_ERRORS",payload:p.initialErrors||tn}))}),[s,p.initialErrors]),e.useEffect((function(){s&&!0===b.current&&!H(y.current,p.initialTouched)&&(y.current=p.initialTouched||rn,j({type:"SET_TOUCHED",payload:p.initialTouched||rn}))}),[s,p.initialTouched]),e.useEffect((function(){s&&!0===b.current&&!H(h.current,p.initialStatus)&&(h.current=p.initialStatus,j({type:"SET_STATUS",payload:p.initialStatus}))}),[s,p.initialStatus,p.initialTouched]);var k=sn((function(e){if(g.current[e]&&Br(g.current[e].validate)){var t=Yr(S.values,e),r=g.current[e].validate(t);return Kr(r)?(j({type:"SET_ISVALIDATING",payload:!0}),r.then((function(e){return e})).then((function(t){j({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),j({type:"SET_ISVALIDATING",payload:!1})}))):(j({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return p.validationSchema?(j({type:"SET_ISVALIDATING",payload:!0}),O(S.values,e).then((function(e){return e})).then((function(t){j({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),j({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),N=e.useCallback((function(e,t){var r=t.validate;g.current[e]={validate:r}}),[]),F=e.useCallback((function(e){delete g.current[e]}),[]),I=sn((function(e,t){return j({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?T(S.values):Promise.resolve()})),M=e.useCallback((function(e){j({type:"SET_ERRORS",payload:e})}),[]),P=sn((function(e,t){var r=Br(e)?e(S.values):e;return j({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?T(r):Promise.resolve()})),$=e.useCallback((function(e,t){j({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),R=sn((function(e,t,r){return j({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?T(Xr(S.values,e,t)):Promise.resolve()})),D=e.useCallback((function(e,t){var r,n=t,a=e;if(!Gr(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,i=o.type,u=o.name,c=o.id,l=o.value,s=o.checked,f=o.outerHTML,d=o.options,p=o.multiple;(n=t||(u||c))||"production"===process.env.NODE_ENV||on({htmlContent:f,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),a=/number|range/.test(i)?(r=parseFloat(l),isNaN(r)?"":r):/checkbox/.test(i)?function(e,t,r){if("boolean"==typeof e)return Boolean(t);var n=[],a=!1,o=-1;if(Array.isArray(e))n=e,a=(o=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);if(t&&r&&!a)return n.concat(r);if(!a)return n;return n.slice(0,o).concat(n.slice(o+1))}(Yr(S.values,n),s,l):d&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(d):l}n&&R(n,a)}),[R,S.values]),V=sn((function(e){if(Gr(e))return function(t){return D(t,e)};D(e)})),L=sn((function(e,t,r){return void 0===t&&(t=!0),j({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?o:r)?T(S.values):Promise.resolve()})),U=e.useCallback((function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,a=r.id,o=r.outerHTML,i=t||(n||a);i||"production"===process.env.NODE_ENV||on({htmlContent:o,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),L(i,!0)}),[L]),z=sn((function(e){if(Gr(e))return function(t){return U(t,e)};U(e)})),B=e.useCallback((function(e){Br(e)?j({type:"SET_FORMIK_STATE",payload:e}):j({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),W=e.useCallback((function(e){j({type:"SET_STATUS",payload:e})}),[]),G=e.useCallback((function(e){j({type:"SET_ISSUBMITTING",payload:e})}),[]),q=sn((function(){return j({type:"SUBMIT_ATTEMPT"}),T().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=X()))return}catch(e){throw e}return Promise.resolve(r).then((function(e){return b.current&&j({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(b.current)throw j({type:"SUBMIT_FAILURE"}),e}))}if(b.current&&(j({type:"SUBMIT_FAILURE"}),t))throw e}))})),K=sn((function(e){if(e&&e.preventDefault&&Br(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Br(e.stopPropagation)&&e.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var t=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}();null!==t&&t instanceof HTMLButtonElement&&(t.attributes&&t.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?kr(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):kr(!1)))}q().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),Y={resetForm:C,validateForm:T,validateField:k,setErrors:M,setFieldError:$,setFieldTouched:L,setFieldValue:R,setStatus:W,setSubmitting:G,setTouched:I,setValues:P,setFormikState:B,submitForm:q},X=sn((function(){return f(S.values,Y)})),Q=sn((function(e){e&&e.preventDefault&&Br(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Br(e.stopPropagation)&&e.stopPropagation(),C()})),Z=e.useCallback((function(e){return{value:Yr(S.values,e),error:Yr(S.errors,e),touched:!!Yr(S.touched,e),initialValue:Yr(m.current,e),initialTouched:!!Yr(y.current,e),initialError:Yr(v.current,e)}}),[S.errors,S.touched,S.values]),ee=e.useCallback((function(e){return{setValue:function(t,r){return R(e,t,r)},setTouched:function(t,r){return L(e,t,r)},setError:function(t){return $(e,t)}}}),[R,L,$]),te=e.useCallback((function(e){var t=Wr(e),r=t?e.name:e,n=Yr(S.values,r),a={name:r,value:n,onChange:V,onBlur:z};if(t){var o=e.type,i=e.value,u=e.as,c=e.multiple;"checkbox"===o?void 0===i?a.checked=!!n:(a.checked=!(!Array.isArray(n)||!~n.indexOf(i)),a.value=i):"radio"===o?(a.checked=n===i,a.value=i):"select"===u&&c&&(a.value=a.value||[],a.multiple=!0)}return a}),[z,V,S.values]),re=e.useMemo((function(){return!H(m.current,S.values)}),[m.current,S.values]),ne=e.useMemo((function(){return void 0!==c?re?S.errors&&0===Object.keys(S.errors).length:!1!==c&&Br(c)?c(p):c:S.errors&&0===Object.keys(S.errors).length}),[c,re,S.errors,p]);return Vr({},S,{initialValues:m.current,initialErrors:v.current,initialTouched:y.current,initialStatus:h.current,handleBlur:z,handleChange:V,handleReset:Q,handleSubmit:K,resetForm:C,setErrors:M,setFormikState:B,setFieldTouched:L,setFieldValue:R,setFieldError:$,setStatus:W,setSubmitting:G,setTouched:I,setValues:P,submitForm:q,validateForm:T,validateField:k,isValid:ne,dirty:re,unregisterField:F,registerField:N,getFieldProps:te,getFieldMeta:Z,getFieldHelpers:ee,validateOnBlur:o,validateOnChange:n,validateOnMount:u})}function an(t){var r=nn(t),n=t.component,a=t.children,o=t.render,i=t.innerRef;return e.useImperativeHandle(i,(function(){return r})),"production"!==process.env.NODE_ENV&&e.useEffect((function(){t.render&&("production"!==process.env.NODE_ENV?kr(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):kr(!1))}),[]),e.createElement(Zr,{value:r},n?e.createElement(n,r):o?o(r):a?Br(a)?a(r):qr(a)?null:e.Children.only(a):null)}function on(e){var t=e.htmlContent,r=e.documentationAnchorLink,n=e.handlerName;console.warn("Warning: Formik called `"+n+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+r+"\n ")}function un(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map((function(e){return!0===Array.isArray(e)||he(e)?un(e):""!==e?e:void 0})):he(e[n])?t[n]=un(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function cn(e,t,r){var n=e.slice();return t.forEach((function(t,a){if(void 0===n[a]){var o=!1!==r.clone&&r.isMergeableObject(t);n[a]=o?J(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[a]=J(e[a],t,r):-1===e.indexOf(t)&&n.push(t)})),n}var ln="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;function sn(t){var r=e.useRef(t);return ln((function(){r.current=t})),e.useCallback((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.current.apply(void 0,t)}),[])}e.forwardRef((function(t,r){var n,a=t.action,o=Lr(t,["action"]),i=null!=a?a:"#",u=((n=e.useContext(Qr))||("production"!==process.env.NODE_ENV?kr(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):kr(!1)),n),c=u.handleReset,l=u.handleSubmit;return e.createElement("form",Object.assign({onSubmit:l,ref:r,onReset:c,action:i},o))})).displayName="Form";var fn=function(e,t,r){var n=dn(e);return n.splice(t,0,r),n},dn=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(Vr({},e,{length:t+1}))}return[]},pn=function(t){var r,n;function a(e){var r;return(r=t.call(this,e)||this).updateArrayField=function(e,t,n){var a=r.props,o=a.name;(0,a.formik.setFormikState)((function(r){var a="function"==typeof n?n:e,i="function"==typeof t?t:e,u=Xr(r.values,o,e(Yr(r.values,o))),c=n?a(Yr(r.errors,o)):void 0,l=t?i(Yr(r.touched,o)):void 0;return zr(c)&&(c=void 0),zr(l)&&(l=void 0),Vr({},r,{values:u,errors:n?Xr(r.errors,o,c):r.errors,touched:t?Xr(r.touched,o,l):r.touched})}))},r.push=function(e){return r.updateArrayField((function(t){return[].concat(dn(t),[Dr(e)])}),!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=dn(e),a=n[t];return n[t]=n[r],n[r]=a,n}(r,e,t)}),!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=dn(e),a=n[t];return n.splice(t,1),n.splice(r,0,a),n}(r,e,t)}),!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField((function(r){return fn(r,e,t)}),(function(t){return fn(t,e,null)}),(function(t){return fn(t,e,null)}))},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=dn(e);return n[t]=r,n}(r,e,t)}),!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField((function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r})),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(Ur(r)),r.pop=r.pop.bind(Ur(r)),r}n=t,(r=a).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var o=a.prototype;return o.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!H(Yr(e.formik.values,e.name),Yr(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},o.remove=function(e){var t;return this.updateArrayField((function(r){var n=r?dn(r):[];return t||(t=n[e]),Br(n.splice)&&n.splice(e,1),n}),!0,!0),t},o.pop=function(){var e;return this.updateArrayField((function(t){var r=t;return e||(e=r&&r.pop&&r.pop()),r}),!0,!0),e},o.render=function(){var t={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},r=this.props,n=r.component,a=r.render,o=r.children,i=r.name,u=Vr({},t,{form:Lr(r.formik,["validate","validationSchema"]),name:i});return n?e.createElement(n,u):a?a(u):o?"function"==typeof o?o(u):qr(o)?null:e.Children.only(o):null},a}(e.Component);pn.defaultProps={validateOnChange:!0};const mn=e=>t=>{var r,n;const a={};for(const[o,i]of Object.entries(e)){if("password"===i.type&&(null===(r=i.confirmPassword)||void 0===r?void 0:r.addField)&&t[o]!==t.confirmPassword&&(a.confirmPassword=i.confirmPassword.errorMessage),!i.validation)continue;if((null===(n=i.validation.required)||void 0===n?void 0:n.value)&&!t[o]){a[o]=i.validation.required.message;continue}if("checkbox"===e[o].type)continue;const u=t[o],{pattern:c,minLength:l}=i.validation;!c||c.value.test(u)?l&&u.length<l.value&&(a[o]=l.message):a[o]=c.message}return a};var vn=Object.freeze({__proto__:null});exports.Avatar=p,exports.AvatarEditor=({endpoint:t,hairModelCodes:r,noseModelCodes:n,eyesModelCodes:o,mouthModelCodes:i,pencilModelCodes:u,bodyModelCodes:c,onChange:l,initialAvatar:s})=>{const[f,d]=e.useState(s||R),m=e.useMemo((()=>$(t,"h",r,u)),[]),v=e.useMemo((()=>$(t,"e",o,u)),[]),y=e.useMemo((()=>$(t,"m",i,u)),[]),h=e.useMemo((()=>P(t,"n",n)),[]),b=e.useMemo((()=>P(t,"c",u)),[]),g=e.useMemo((()=>P(t,"b",c)),[]),E=e=>t=>{var r;const n=(null===(r=(e=>{try{const t=new URL(e).pathname.split("/"),r=t[t.length-1],n=/(\d+)(-(\d+))?/.exec(r);return n?{partIndex:Number(n[1])-1,colorIndex:n.length>2?Number(n[3])-1:void 0}:void 0}catch(e){return void console.error(e)}})(t))||void 0===r?void 0:r.partIndex)||R[e],a=Object.assign(Object.assign({},f),{[e]:n});d(a),l(a)};return a.default.createElement(T,{className:"uag uag-avatar-editor-main-container"},a.default.createElement(C,{className:"uag uag-avatar-editor-row"},a.default.createElement(k,{className:"uag uag-color-picker-container"},V.map((e=>{return a.default.createElement(N,{className:`uag uag-color-picker uag-color-picker-${e}`,key:e,bgColor:e,onClick:(t=e,e=>{e.preventDefault();const r=D[t]||R.s,n=Object.assign(Object.assign({},f),{s:r,o:r});d(n),l(n)})});var t}))),a.default.createElement(F,{className:"uag uag-avatar-editor-avatar-container"},a.default.createElement(p,{endpoint:t,avatar:f}))),a.default.createElement(C,{className:"uag uag-avatar-editor-row"},a.default.createElement(I,{className:"uag uag-avatar-editor-part-selector uag-avatar-editor-part-selector-pencil"},a.default.createElement(A,{urlList:b,onChange:E("c")})),a.default.createElement(I,{className:"uag uag-avatar-editor-part-selector uag-avatar-editor-part-selector-hair"},a.default.createElement(A,{urlList:M(m,f.c),onChange:E("h")})),a.default.createElement(I,{className:"uag uag-avatar-editor-part-selector uag-avatar-editor-part-selector-eyes"},a.default.createElement(A,{urlList:M(v,f.c),onChange:E("e")})),a.default.createElement(I,{className:"uag uag-avatar-editor-part-selector uag-avatar-editor-part-selector-mouth"},a.default.createElement(A,{urlList:M(y,f.c),onChange:E("m")})),a.default.createElement(I,{className:"uag uag-avatar-editor-part-selector uag-avatar-editor-part-selector-nose"},a.default.createElement(A,{urlList:h,onChange:E("n")})),a.default.createElement(I,{className:"uag uag-avatar-editor-part-selector uag-avatar-editor-part-selector-body"},a.default.createElement(A,{urlList:g,onChange:E("b")}))))},exports.Form=({formSchema:e,onSubmit:t,SubmitButton:n})=>{const o=Object.entries(e).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t[0]]:t[1].initialValue})),{});return a.default.createElement(an,{initialValues:o,onSubmit:e=>{const r=e,n="confirmPassword";r[n];const a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(r,[n+""]);t(a)},validate:mn(e)},(({handleSubmit:t,values:o,handleChange:i,touched:u,errors:c})=>a.default.createElement("form",{noValidate:!0,onSubmit:t,className:"uag uag-form"},a.default.createElement(r.Stack,{className:"uag uag-form-stack",spacing:1},Object.entries(e).map((([e,t])=>{var n,l,s,f,d;const p={fullWidth:!0,id:e,name:e,label:`${t.label}${(null===(l=null===(n=t.validation)||void 0===n?void 0:n.required)||void 0===l?void 0:l.value)?"*":""}`,type:t.type,value:o[e],onChange:i,error:u[e]&&Boolean(c[e]),helperText:u[e]&&c[e]};return"password"===t.type?a.default.createElement(r.Stack,{className:"uag uag-pwd-container",key:e,spacing:1},a.default.createElement(r.TextField,Object.assign({},p,{className:"uag uag-form-text uag-form-text-password"})),(null===(s=t.confirmPassword)||void 0===s?void 0:s.addField)?a.default.createElement(r.TextField,{name:"confirmPassword",label:`${t.confirmPassword.label}${(null===(d=null===(f=t.validation)||void 0===f?void 0:f.required)||void 0===d?void 0:d.value)?"*":""}`,onChange:i,value:o.confirmPassword,error:u.confirmPassword&&Boolean(c.confirmPassword),helperText:u.confirmPassword&&c.confirmPassword,fullWidth:!0,type:"password",className:"uag uag-form-text uag-form-text-password uag-form-text-password-confirmation"}):null):"checkbox"===t.type?a.default.createElement(r.FormControl,{key:e,fullWidth:!0,error:p.error,className:"uag uag-form-checkbox uag-form-checkbox-control"},a.default.createElement(r.FormControlLabel,{control:a.default.createElement(r.Checkbox,{name:e,value:o[e],onChange:i,defaultChecked:t.initialValue,className:"uag uag-form-checkbox"}),label:t.label}),p.helperText&&a.default.createElement(r.FormHelperText,{className:"uag uag-form-helper-txt uag-form-checkbox-helper-txt"},p.helperText)):"list"===t.type?a.default.createElement(r.FormControl,{error:p.error,fullWidth:!0,key:e},a.default.createElement(r.InputLabel,{id:"uag-form-list-label"},t.label),a.default.createElement(r.Select,{labelId:"uag-form-list-label",name:e,onChange:i,value:o[e],label:t.label},t.options.map((({value:e,label:t})=>a.default.createElement(r.MenuItem,{key:e,value:e},t)))),p.helperText&&a.default.createElement(r.FormHelperText,{className:"uag uag-form-helper-txt uag-form-list-helper-txt"},p.helperText)):a.default.createElement(r.TextField,Object.assign({key:e},p,{className:"uag uag-form-text"}))})),a.default.createElement("div",{className:"uag uag-form-btn-container"},a.default.createElement(n.type,Object.assign({},n.props,{type:"submit"})))))))},exports.FormTypes=vn,exports.ItemSelector=A;
//# sourceMappingURL=index.js.map
export { default as Avatar } from "./Avatar";
export { default as AvatarEditor } from "./AvatarEditor";
export { default as ItemSelector } from "./ItemSelector";

@@ -3,0 +4,0 @@ export { default as Form } from "./Form";

@@ -1,2 +0,2 @@

import e,{useState as t,createContext as r,forwardRef as n,createElement as o,useContext as a,useImperativeHandle as i,useEffect as c,Children as u,useRef as l,useReducer as s,useCallback as f,useMemo as p,Component as d,useLayoutEffect as y}from"react";import v from"@emotion/styled";import{Stack as m,TextField as h,FormControl as b,FormControlLabel as g,Checkbox as E,FormHelperText as S,InputLabel as _,Select as j,MenuItem as O}from"@mui/material";const w=v.img`
import e,{useState as t,useMemo as r,createContext as n,forwardRef as a,createElement as o,useContext as i,useImperativeHandle as c,useEffect as u,Children as l,useRef as s,useReducer as f,useCallback as d,Component as p,useLayoutEffect as m}from"react";import v from"@emotion/styled";import{Stack as y,TextField as h,FormControl as b,FormControlLabel as g,Checkbox as E,FormHelperText as j,InputLabel as S,Select as _,MenuItem as O}from"@mui/material";const w=v.img`
height: 100%;

@@ -21,3 +21,3 @@ width: 100%;

transform: translateX(-50%);
`,T=v.div`
`,x=v.div`
position: relative;

@@ -33,7 +33,7 @@ display: flex;

overflow: hidden;
`,x=(e,t,r,n)=>`${e.replace(/\/+$/,"")}/${t}/${t}${r+1}${void 0!==n?`-${n+1}`:""}.png`,F=({endpoint:t,avatar:r,bgColor:n,circled:o})=>e.createElement(T,{circled:o,bgColor:n,className:"uag uag-main-avatar-container uag-custom-avatar-container"},e.createElement(A,{className:"uag uag-character-parts-container uag-character-parts-container-body"},e.createElement(w,{alt:"shape",draggable:"false",src:x(t,"s",r.s),className:"uag uag-asset-shape-image"})),e.createElement(A,{style:{zIndex:3},className:"uag uag-character-parts-container uag-character-parts-container-eyes"},e.createElement(w,{alt:"eyes",draggable:"false",src:x(t,"e",r.e,r.c),className:"uag uag-asset-shape-image"})),e.createElement(A,{style:{zIndex:4},className:"uag uag-character-parts-container uag-character-parts-container-nose"},e.createElement(w,{alt:"nose",draggable:"false",src:x(t,"n",r.n),className:"uag uag-asset-shape-image"})),e.createElement(A,{style:{zIndex:5},className:"uag uag-character-parts-container uag-character-parts-container-hair"},e.createElement(w,{alt:"hair",draggable:"false",src:x(t,"h",r.h,r.c),className:"uag uag-asset-shape-image"})),e.createElement(A,{style:{zIndex:6},className:"uag uag-character-parts-container uag-character-parts-container-clothes"},e.createElement(w,{alt:"clothes",draggable:"false",src:x(t,"b",r.b)})),e.createElement(A,{style:{zIndex:7},className:"uag uag-character-parts-container uag-character-parts-container-mouth"},e.createElement(w,{alt:"mouth",draggable:"false",src:x(t,"m",r.m,r.c),className:"uag uag-asset-shape-image"})),e.createElement(A,{style:{zIndex:8},className:"uag uag-character-parts-container uag-character-parts-container-ears"},e.createElement(w,{alt:"ears",draggable:"false",src:x(t,"o",r.o),className:"uag uag-asset-shape-image"}))),N=({avatarUrl:t,bgColor:r,circled:n})=>e.createElement(T,{circled:n,bgColor:r,className:"main-avatar-container avastar-container"},e.createElement(w,{alt:"avatar picture",draggable:"false",src:t,className:"uag uag-asset-shape-image"})),I=t=>"avatarUrl"in t?e.createElement(N,Object.assign({},t)):e.createElement(F,Object.assign({},t));var P={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},k=e.createContext&&e.createContext(P),M=function(){return M=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},M.apply(this,arguments)},$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};function C(t){return t&&t.map((function(t,r){return e.createElement(t.tag,M({key:r},t.attr),C(t.child))}))}function R(t){return function(r){return e.createElement(D,M({attr:M({},t.attr)},r),C(t.child))}}function D(t){var r=function(r){var n,o=t.attr,a=t.size,i=t.title,c=$(t,["attr","size","title"]),u=a||r.size||"1em";return r.className&&(n=r.className),t.className&&(n=(n?n+" ":"")+t.className),e.createElement("svg",M({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,c,{className:n,style:M(M({color:t.color||r.color},r.style),t.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),i&&e.createElement("title",null,i),t.children)};return void 0!==k?e.createElement(k.Consumer,null,(function(e){return r(e)})):r(P)}function V(e){return R({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"}}]})(e)}function U(e){return R({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}}]})(e)}const L=v.div`
`,T=e=>e.replace(/\/+$/,""),N=(e,t,r,n)=>`${T(e)}/${t}/${t}${r+1}${void 0!==n?`-${n+1}`:""}.png`,F=({endpoint:t,avatar:r,bgColor:n,circled:a})=>e.createElement(x,{circled:a,bgColor:n,className:"uag uag-main-avatar-container uag-custom-avatar-container"},e.createElement(A,{className:"uag uag-character-parts-container uag-character-parts-container-body"},e.createElement(w,{alt:"shape",draggable:"false",src:N(t,"s",r.s),className:"uag uag-asset-shape-image"})),e.createElement(A,{style:{zIndex:3},className:"uag uag-character-parts-container uag-character-parts-container-eyes"},e.createElement(w,{alt:"eyes",draggable:"false",src:N(t,"e",r.e,r.c),className:"uag uag-asset-shape-image"})),e.createElement(A,{style:{zIndex:4},className:"uag uag-character-parts-container uag-character-parts-container-nose"},e.createElement(w,{alt:"nose",draggable:"false",src:N(t,"n",r.n),className:"uag uag-asset-shape-image"})),e.createElement(A,{style:{zIndex:5},className:"uag uag-character-parts-container uag-character-parts-container-hair"},e.createElement(w,{alt:"hair",draggable:"false",src:N(t,"h",r.h,r.c),className:"uag uag-asset-shape-image"})),e.createElement(A,{style:{zIndex:6},className:"uag uag-character-parts-container uag-character-parts-container-clothes"},e.createElement(w,{alt:"clothes",draggable:"false",src:N(t,"b",r.b)})),e.createElement(A,{style:{zIndex:7},className:"uag uag-character-parts-container uag-character-parts-container-mouth"},e.createElement(w,{alt:"mouth",draggable:"false",src:N(t,"m",r.m,r.c),className:"uag uag-asset-shape-image"})),e.createElement(A,{style:{zIndex:8},className:"uag uag-character-parts-container uag-character-parts-container-ears"},e.createElement(w,{alt:"ears",draggable:"false",src:N(t,"o",r.o),className:"uag uag-asset-shape-image"}))),I=({avatarUrl:t,bgColor:r,circled:n})=>e.createElement(x,{circled:n,bgColor:r,className:"main-avatar-container avastar-container"},e.createElement(w,{alt:"avatar picture",draggable:"false",src:t,className:"uag uag-asset-shape-image"})),C=t=>"avatarUrl"in t?e.createElement(I,Object.assign({},t)):e.createElement(F,Object.assign({},t));var P={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},k=e.createContext&&e.createContext(P),$=function(){return $=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},$.apply(this,arguments)},M=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function R(t){return t&&t.map((function(t,r){return e.createElement(t.tag,$({key:r},t.attr),R(t.child))}))}function D(t){return function(r){return e.createElement(V,$({attr:$({},t.attr)},r),R(t.child))}}function V(t){var r=function(r){var n,a=t.attr,o=t.size,i=t.title,c=M(t,["attr","size","title"]),u=o||r.size||"1em";return r.className&&(n=r.className),t.className&&(n=(n?n+" ":"")+t.className),e.createElement("svg",$({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,a,c,{className:n,style:$($({color:t.color||r.color},r.style),t.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),i&&e.createElement("title",null,i),t.children)};return void 0!==k?e.createElement(k.Consumer,null,(function(e){return r(e)})):r(P)}function L(e){return D({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"}}]})(e)}function U(e){return D({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}}]})(e)}const z=v.div`
height: 100%;
width: 100%;
display: flex;
`,z=v.button`
`,B=v.button`
height: 100%;

@@ -46,11 +46,45 @@ width: 25%;

background-color: transparent;
`,B=v.div`
`,W=v.div`
height: 100%;
width: 50%;
display: flex;
`,W=v.img`
`,G=v.img`
max-width: 100%;
max-height: 100%;
margin: auto;
`,G=({urlList:r,initialIndex:n,onChange:o})=>{const[a,i]=t(n&&n<r.length?n:0),c=0===a,u=a===r.length-1,l=e=>t=>{t.preventDefault();const n="decrement"===e?Math.max(a-1,0):Math.min(a+1,r.length-1);i(n),o(r[n])};return e.createElement(L,{className:"uag-item-selector-container"},e.createElement(z,{disabled:c,className:"uag-item-selector-control uag-item-selector-control-left",onClick:l("decrement")},!c&&e.createElement(V,{className:"uag-item-selector-arrow uag-item-selector-arrow-left",size:"75%"})),e.createElement(B,{className:"uag-item-selector-item-container"},e.createElement(W,{className:"uag-item-selector-item-img",src:r[a]})),e.createElement(z,{disabled:u,className:"uag-item-selector-control uag-item-selector-control-right",onClick:l("increment")},!u&&e.createElement(U,{className:"uag-item-selector-arrow uag-item-selector-arrow-right",size:"75%"})))};var H=Array.isArray,q=Object.keys,K=Object.prototype.hasOwnProperty,Y="undefined"!=typeof Element;function X(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,n,o,a=H(e),i=H(t);if(a&&i){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!X(e[r],t[r]))return!1;return!0}if(a!=i)return!1;var c=e instanceof Date,u=t instanceof Date;if(c!=u)return!1;if(c&&u)return e.getTime()==t.getTime();var l=e instanceof RegExp,s=t instanceof RegExp;if(l!=s)return!1;if(l&&s)return e.toString()==t.toString();var f=q(e);if((n=f.length)!==q(t).length)return!1;for(r=n;0!=r--;)if(!K.call(t,f[r]))return!1;if(Y&&e instanceof Element&&t instanceof Element)return e===t;for(r=n;0!=r--;)if(!("_owner"===(o=f[r])&&e.$$typeof||X(e[o],t[o])))return!1;return!0}return e!=e&&t!=t}var J=function(e,t){try{return X(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}},Q=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Z}(e)}(e)};var Z="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ee(e,t){return!1!==t.clone&&t.isMergeableObject(e)?re((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function te(e,t,r){return e.concat(t).map((function(e){return ee(e,r)}))}function re(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||te,r.isMergeableObject=r.isMergeableObject||Q;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach((function(t){n[t]=ee(e[t],r)})),Object.keys(t).forEach((function(o){r.isMergeableObject(t[o])&&e[o]?n[o]=re(e[o],t[o],r):n[o]=ee(t[o],r)})),n}(e,t,r):ee(t,r)}re.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return re(e,r,t)}),{})};var ne=re,oe="object"==typeof global&&global&&global.Object===Object&&global,ae="object"==typeof self&&self&&self.Object===Object&&self,ie=oe||ae||Function("return this")(),ce=ie.Symbol,ue=Object.prototype,le=ue.hasOwnProperty,se=ue.toString,fe=ce?ce.toStringTag:void 0;var pe=Object.prototype.toString;var de=ce?ce.toStringTag:void 0;function ye(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":de&&de in Object(e)?function(e){var t=le.call(e,fe),r=e[fe];try{e[fe]=void 0;var n=!0}catch(e){}var o=se.call(e);return n&&(t?e[fe]=r:delete e[fe]),o}(e):function(e){return pe.call(e)}(e)}function ve(e,t){return function(r){return e(t(r))}}var me=ve(Object.getPrototypeOf,Object);function he(e){return null!=e&&"object"==typeof e}var be=Function.prototype,ge=Object.prototype,Ee=be.toString,Se=ge.hasOwnProperty,_e=Ee.call(Object);function je(e){if(!he(e)||"[object Object]"!=ye(e))return!1;var t=me(e);if(null===t)return!0;var r=Se.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ee.call(r)==_e}function Oe(e,t){return e===t||e!=e&&t!=t}function we(e,t){for(var r=e.length;r--;)if(Oe(e[r][0],t))return r;return-1}var Ae=Array.prototype.splice;function Te(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 xe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Te.prototype.clear=function(){this.__data__=[],this.size=0},Te.prototype.delete=function(e){var t=this.__data__,r=we(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ae.call(t,r,1),--this.size,!0)},Te.prototype.get=function(e){var t=this.__data__,r=we(t,e);return r<0?void 0:t[r][1]},Te.prototype.has=function(e){return we(this.__data__,e)>-1},Te.prototype.set=function(e,t){var r=this.__data__,n=we(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Fe(e){if(!xe(e))return!1;var t=ye(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var Ne,Ie=ie["__core-js_shared__"],Pe=(Ne=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+Ne:"";var ke=Function.prototype.toString;function Me(e){if(null!=e){try{return ke.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var $e=/^\[object .+?Constructor\]$/,Ce=Function.prototype,Re=Object.prototype,De=Ce.toString,Ve=Re.hasOwnProperty,Ue=RegExp("^"+De.call(Ve).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Le(e){return!(!xe(e)||(t=e,Pe&&Pe in t))&&(Fe(e)?Ue:$e).test(Me(e));var t}function ze(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Le(r)?r:void 0}var Be=ze(ie,"Map"),We=ze(Object,"create");var Ge=Object.prototype.hasOwnProperty;var He=Object.prototype.hasOwnProperty;function qe(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 Ke(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Ye(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])}}qe.prototype.clear=function(){this.__data__=We?We(null):{},this.size=0},qe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qe.prototype.get=function(e){var t=this.__data__;if(We){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Ge.call(t,e)?t[e]:void 0},qe.prototype.has=function(e){var t=this.__data__;return We?void 0!==t[e]:He.call(t,e)},qe.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=We&&void 0===t?"__lodash_hash_undefined__":t,this},Ye.prototype.clear=function(){this.size=0,this.__data__={hash:new qe,map:new(Be||Te),string:new qe}},Ye.prototype.delete=function(e){var t=Ke(this,e).delete(e);return this.size-=t?1:0,t},Ye.prototype.get=function(e){return Ke(this,e).get(e)},Ye.prototype.has=function(e){return Ke(this,e).has(e)},Ye.prototype.set=function(e,t){var r=Ke(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Xe(e){var t=this.__data__=new Te(e);this.size=t.size}Xe.prototype.clear=function(){this.__data__=new Te,this.size=0},Xe.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Xe.prototype.get=function(e){return this.__data__.get(e)},Xe.prototype.has=function(e){return this.__data__.has(e)},Xe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Te){var n=r.__data__;if(!Be||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ye(n)}return r.set(e,t),this.size=r.size,this};var Je=function(){try{var e=ze(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();function Qe(e,t,r){"__proto__"==t&&Je?Je(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Ze=Object.prototype.hasOwnProperty;function et(e,t,r){var n=e[t];Ze.call(e,t)&&Oe(n,r)&&(void 0!==r||t in e)||Qe(e,t,r)}function tt(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var c=t[a],u=n?n(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),o?Qe(r,c,u):et(r,c,u)}return r}function rt(e){return he(e)&&"[object Arguments]"==ye(e)}var nt=Object.prototype,ot=nt.hasOwnProperty,at=nt.propertyIsEnumerable,it=rt(function(){return arguments}())?rt:function(e){return he(e)&&ot.call(e,"callee")&&!at.call(e,"callee")},ct=Array.isArray;var ut="object"==typeof exports&&exports&&!exports.nodeType&&exports,lt=ut&&"object"==typeof module&&module&&!module.nodeType&&module,st=lt&&lt.exports===ut?ie.Buffer:void 0,ft=(st?st.isBuffer:void 0)||function(){return!1},pt=/^(?:0|[1-9]\d*)$/;function dt(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&pt.test(e))&&e>-1&&e%1==0&&e<t}function yt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var vt={};function mt(e){return function(t){return e(t)}}vt["[object Float32Array]"]=vt["[object Float64Array]"]=vt["[object Int8Array]"]=vt["[object Int16Array]"]=vt["[object Int32Array]"]=vt["[object Uint8Array]"]=vt["[object Uint8ClampedArray]"]=vt["[object Uint16Array]"]=vt["[object Uint32Array]"]=!0,vt["[object Arguments]"]=vt["[object Array]"]=vt["[object ArrayBuffer]"]=vt["[object Boolean]"]=vt["[object DataView]"]=vt["[object Date]"]=vt["[object Error]"]=vt["[object Function]"]=vt["[object Map]"]=vt["[object Number]"]=vt["[object Object]"]=vt["[object RegExp]"]=vt["[object Set]"]=vt["[object String]"]=vt["[object WeakMap]"]=!1;var ht="object"==typeof exports&&exports&&!exports.nodeType&&exports,bt=ht&&"object"==typeof module&&module&&!module.nodeType&&module,gt=bt&&bt.exports===ht&&oe.process,Et=function(){try{var e=bt&&bt.require&&bt.require("util").types;return e||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),St=Et&&Et.isTypedArray,_t=St?mt(St):function(e){return he(e)&&yt(e.length)&&!!vt[ye(e)]},jt=Object.prototype.hasOwnProperty;function Ot(e,t){var r=ct(e),n=!r&&it(e),o=!r&&!n&&ft(e),a=!r&&!n&&!o&&_t(e),i=r||n||o||a,c=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=c.length;for(var l in e)!t&&!jt.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||dt(l,u))||c.push(l);return c}var wt=Object.prototype;function At(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||wt)}var Tt=ve(Object.keys,Object),xt=Object.prototype.hasOwnProperty;function Ft(e){return null!=e&&yt(e.length)&&!Fe(e)}function Nt(e){return Ft(e)?Ot(e):function(e){if(!At(e))return Tt(e);var t=[];for(var r in Object(e))xt.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}var It=Object.prototype.hasOwnProperty;function Pt(e){if(!xe(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=At(e),r=[];for(var n in e)("constructor"!=n||!t&&It.call(e,n))&&r.push(n);return r}function kt(e){return Ft(e)?Ot(e,!0):Pt(e)}var Mt="object"==typeof exports&&exports&&!exports.nodeType&&exports,$t=Mt&&"object"==typeof module&&module&&!module.nodeType&&module,Ct=$t&&$t.exports===Mt?ie.Buffer:void 0,Rt=Ct?Ct.allocUnsafe:void 0;function Dt(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function Vt(){return[]}var Ut=Object.prototype.propertyIsEnumerable,Lt=Object.getOwnPropertySymbols,zt=Lt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}(Lt(e),(function(t){return Ut.call(e,t)})))}:Vt;function Bt(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var Wt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Bt(t,zt(e)),e=me(e);return t}:Vt;function Gt(e,t,r){var n=t(e);return ct(e)?n:Bt(n,r(e))}function Ht(e){return Gt(e,Nt,zt)}function qt(e){return Gt(e,kt,Wt)}var Kt=ze(ie,"DataView"),Yt=ze(ie,"Promise"),Xt=ze(ie,"Set"),Jt=ze(ie,"WeakMap"),Qt=Me(Kt),Zt=Me(Be),er=Me(Yt),tr=Me(Xt),rr=Me(Jt),nr=ye;(Kt&&"[object DataView]"!=nr(new Kt(new ArrayBuffer(1)))||Be&&"[object Map]"!=nr(new Be)||Yt&&"[object Promise]"!=nr(Yt.resolve())||Xt&&"[object Set]"!=nr(new Xt)||Jt&&"[object WeakMap]"!=nr(new Jt))&&(nr=function(e){var t=ye(e),r="[object Object]"==t?e.constructor:void 0,n=r?Me(r):"";if(n)switch(n){case Qt:return"[object DataView]";case Zt:return"[object Map]";case er:return"[object Promise]";case tr:return"[object Set]";case rr:return"[object WeakMap]"}return t});var or=nr,ar=Object.prototype.hasOwnProperty;var ir=ie.Uint8Array;function cr(e){var t=new e.constructor(e.byteLength);return new ir(t).set(new ir(e)),t}var ur=/\w*$/;var lr=ce?ce.prototype:void 0,sr=lr?lr.valueOf:void 0;function fr(e,t,r){var n,o,a,i=e.constructor;switch(t){case"[object ArrayBuffer]":return cr(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var r=t?cr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);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 function(e,t){var r=t?cr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(a=new(o=e).constructor(o.source,ur.exec(o))).lastIndex=o.lastIndex,a;case"[object Symbol]":return n=e,sr?Object(sr.call(n)):{}}}var pr=Object.create,dr=function(){function e(){}return function(t){if(!xe(t))return{};if(pr)return pr(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var yr=Et&&Et.isMap,vr=yr?mt(yr):function(e){return he(e)&&"[object Map]"==or(e)};var mr=Et&&Et.isSet,hr=mr?mt(mr):function(e){return he(e)&&"[object Set]"==or(e)},br={};function gr(e,t,r,n,o,a){var i,c=1&t,u=2&t,l=4&t;if(r&&(i=o?r(e,n,o,a):r(e)),void 0!==i)return i;if(!xe(e))return e;var s=ct(e);if(s){if(i=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ar.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!c)return Dt(e,i)}else{var f=or(e),p="[object Function]"==f||"[object GeneratorFunction]"==f;if(ft(e))return function(e,t){if(t)return e.slice();var r=e.length,n=Rt?Rt(r):new e.constructor(r);return e.copy(n),n}(e,c);if("[object Object]"==f||"[object Arguments]"==f||p&&!o){if(i=u||p?{}:function(e){return"function"!=typeof e.constructor||At(e)?{}:dr(me(e))}(e),!c)return u?function(e,t){return tt(e,Wt(e),t)}(e,function(e,t){return e&&tt(t,kt(t),e)}(i,e)):function(e,t){return tt(e,zt(e),t)}(e,function(e,t){return e&&tt(t,Nt(t),e)}(i,e))}else{if(!br[f])return o?e:{};i=fr(e,f,c)}}a||(a=new Xe);var d=a.get(e);if(d)return d;a.set(e,i),hr(e)?e.forEach((function(n){i.add(gr(n,t,r,n,e,a))})):vr(e)&&e.forEach((function(n,o){i.set(o,gr(n,t,r,o,e,a))}));var y=s?void 0:(l?u?qt:Ht:u?kt:Nt)(e);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(y||e,(function(n,o){y&&(n=e[o=n]),et(i,o,gr(n,t,r,o,e,a))})),i}br["[object Arguments]"]=br["[object Array]"]=br["[object ArrayBuffer]"]=br["[object DataView]"]=br["[object Boolean]"]=br["[object Date]"]=br["[object Float32Array]"]=br["[object Float64Array]"]=br["[object Int8Array]"]=br["[object Int16Array]"]=br["[object Int32Array]"]=br["[object Map]"]=br["[object Number]"]=br["[object Object]"]=br["[object RegExp]"]=br["[object Set]"]=br["[object String]"]=br["[object Symbol]"]=br["[object Uint8Array]"]=br["[object Uint8ClampedArray]"]=br["[object Uint16Array]"]=br["[object Uint32Array]"]=!0,br["[object Error]"]=br["[object Function]"]=br["[object WeakMap]"]=!1;function Er(e){return gr(e,4)}function Sr(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function _r(e){return"symbol"==typeof e||he(e)&&"[object Symbol]"==ye(e)}function jr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(jr.Cache||Ye),r}jr.Cache=Ye;var Or,wr,Ar,Tr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xr=/\\(\\)?/g,Fr=(Or=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Tr,(function(e,r,n,o){t.push(n?o.replace(xr,"$1"):r||e)})),t},wr=jr(Or,(function(e){return 500===Ar.size&&Ar.clear(),e})),Ar=wr.cache,wr);function Nr(e){if("string"==typeof e||_r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}var Ir=ce?ce.prototype:void 0,Pr=Ir?Ir.toString:void 0;function kr(e){if("string"==typeof e)return e;if(ct(e))return Sr(e,kr)+"";if(_r(e))return Pr?Pr.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}function Mr(e){return ct(e)?Sr(e,Nr):_r(e)?[e]:Dt(Fr(function(e){return null==e?"":kr(e)}(e)))}var $r="production"===process.env.NODE_ENV;function Cr(e,t){if(!$r){if(e)return;var r="Warning: "+t;"undefined"!=typeof console&&console.warn(r);try{throw Error(r)}catch(e){}}}var Rr,Dr={exports:{}},Vr={};var Ur,Lr={};
`,H=({urlList:r,initialIndex:n,onChange:a})=>{const[o,i]=t(n&&n<r.length?n:0),c=0===o,u=o===r.length-1,l=e=>t=>{t.preventDefault();const n="decrement"===e?Math.max(o-1,0):Math.min(o+1,r.length-1);i(n),a(r[n])};return e.createElement(z,{className:"uag-item-selector-container"},e.createElement(B,{disabled:c,className:"uag-item-selector-control uag-item-selector-control-left",onClick:l("decrement")},!c&&e.createElement(L,{className:"uag-item-selector-arrow uag-item-selector-arrow-left",size:"75%"})),e.createElement(W,{className:"uag-item-selector-item-container"},e.createElement(G,{className:"uag-item-selector-item-img",src:r[o]})),e.createElement(B,{disabled:u,className:"uag-item-selector-control uag-item-selector-control-right",onClick:l("increment")},!u&&e.createElement(U,{className:"uag-item-selector-arrow uag-item-selector-arrow-right",size:"75%"})))},q=v.div`
display: flex;
flex-direction: column;
gap: 0.5em;
`,K=v.div`
display: flex;
flex-wrap: wrap;
width: 100%;
box-sizing: border-box;
gap: 0.5em;
`,Y=v.div`
display: flex;
flex-direction: column;
gap: 0.5em;
align-items: center;
justify-content: center;
flex: 1;
`,X=v.button`
aspect-ratio: 1;
background-color: ${e=>e.bgColor};
border: none;
border-radius: 100%;
cursor: pointer;
flex: 1 1 100%;
`,J=v.div`
display: flex;
width: 67%;
`,Q=v.div`
box-sizing: border-box;
border: none;
border-radius: 2em;
flex: 1 1 30%;
min-width: 100px;
box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
`,Z=(e,t)=>{const r=t+1;return e.filter((e=>e.includes("-"+r+".png")))},ee=(e,t,r)=>{const n=T(e);return r.map((e=>`${n}/${t}/${t}${e}.png`))},te=(e,t,r,n)=>{const a=T(e);return r.map((e=>n.map((r=>`${a}/${t}/${t}${e}-${r}.png`)))).flat()},re={m:0,c:0,b:0,e:0,n:0,h:0,s:0,o:0},ne={"#ffbf94":0,"#e3a05f":1,"#d1a958":2,"#b8652e":3,"#7a4512":4,"#431711":5},ae=Object.keys(ne),oe=({endpoint:n,hairModelCodes:a,noseModelCodes:o,eyesModelCodes:i,mouthModelCodes:c,pencilModelCodes:u,bodyModelCodes:l,onChange:s,initialAvatar:f})=>{const[d,p]=t(f||re),m=r((()=>te(n,"h",a,u)),[]),v=r((()=>te(n,"e",i,u)),[]),y=r((()=>te(n,"m",c,u)),[]),h=r((()=>ee(n,"n",o)),[]),b=r((()=>ee(n,"c",u)),[]),g=r((()=>ee(n,"b",l)),[]),E=e=>t=>{var r;const n=(null===(r=(e=>{try{const t=new URL(e).pathname.split("/"),r=t[t.length-1],n=/(\d+)(-(\d+))?/.exec(r);return n?{partIndex:Number(n[1])-1,colorIndex:n.length>2?Number(n[3])-1:void 0}:void 0}catch(e){return void console.error(e)}})(t))||void 0===r?void 0:r.partIndex)||re[e],a=Object.assign(Object.assign({},d),{[e]:n});p(a),s(a)};return e.createElement(q,{className:"uag uag-avatar-editor-main-container"},e.createElement(K,{className:"uag uag-avatar-editor-row"},e.createElement(Y,{className:"uag uag-color-picker-container"},ae.map((t=>{return e.createElement(X,{className:`uag uag-color-picker uag-color-picker-${t}`,key:t,bgColor:t,onClick:(r=t,e=>{e.preventDefault();const t=ne[r]||re.s,n=Object.assign(Object.assign({},d),{s:t,o:t});p(n),s(n)})});var r}))),e.createElement(J,{className:"uag uag-avatar-editor-avatar-container"},e.createElement(C,{endpoint:n,avatar:d}))),e.createElement(K,{className:"uag uag-avatar-editor-row"},e.createElement(Q,{className:"uag uag-avatar-editor-part-selector uag-avatar-editor-part-selector-pencil"},e.createElement(H,{urlList:b,onChange:E("c")})),e.createElement(Q,{className:"uag uag-avatar-editor-part-selector uag-avatar-editor-part-selector-hair"},e.createElement(H,{urlList:Z(m,d.c),onChange:E("h")})),e.createElement(Q,{className:"uag uag-avatar-editor-part-selector uag-avatar-editor-part-selector-eyes"},e.createElement(H,{urlList:Z(v,d.c),onChange:E("e")})),e.createElement(Q,{className:"uag uag-avatar-editor-part-selector uag-avatar-editor-part-selector-mouth"},e.createElement(H,{urlList:Z(y,d.c),onChange:E("m")})),e.createElement(Q,{className:"uag uag-avatar-editor-part-selector uag-avatar-editor-part-selector-nose"},e.createElement(H,{urlList:h,onChange:E("n")})),e.createElement(Q,{className:"uag uag-avatar-editor-part-selector uag-avatar-editor-part-selector-body"},e.createElement(H,{urlList:g,onChange:E("b")}))))};var ie=Array.isArray,ce=Object.keys,ue=Object.prototype.hasOwnProperty,le="undefined"!=typeof Element;function se(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,n,a,o=ie(e),i=ie(t);if(o&&i){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!se(e[r],t[r]))return!1;return!0}if(o!=i)return!1;var c=e instanceof Date,u=t instanceof Date;if(c!=u)return!1;if(c&&u)return e.getTime()==t.getTime();var l=e instanceof RegExp,s=t instanceof RegExp;if(l!=s)return!1;if(l&&s)return e.toString()==t.toString();var f=ce(e);if((n=f.length)!==ce(t).length)return!1;for(r=n;0!=r--;)if(!ue.call(t,f[r]))return!1;if(le&&e instanceof Element&&t instanceof Element)return e===t;for(r=n;0!=r--;)if(!("_owner"===(a=f[r])&&e.$$typeof||se(e[a],t[a])))return!1;return!0}return e!=e&&t!=t}var fe=function(e,t){try{return se(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}},de=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===pe}(e)}(e)};var pe="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function me(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ye((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function ve(e,t,r){return e.concat(t).map((function(e){return me(e,r)}))}function ye(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||ve,r.isMergeableObject=r.isMergeableObject||de;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach((function(t){n[t]=me(e[t],r)})),Object.keys(t).forEach((function(a){r.isMergeableObject(t[a])&&e[a]?n[a]=ye(e[a],t[a],r):n[a]=me(t[a],r)})),n}(e,t,r):me(t,r)}ye.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return ye(e,r,t)}),{})};var he=ye,be="object"==typeof global&&global&&global.Object===Object&&global,ge="object"==typeof self&&self&&self.Object===Object&&self,Ee=be||ge||Function("return this")(),je=Ee.Symbol,Se=Object.prototype,_e=Se.hasOwnProperty,Oe=Se.toString,we=je?je.toStringTag:void 0;var Ae=Object.prototype.toString;var xe=je?je.toStringTag:void 0;function Te(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":xe&&xe in Object(e)?function(e){var t=_e.call(e,we),r=e[we];try{e[we]=void 0;var n=!0}catch(e){}var a=Oe.call(e);return n&&(t?e[we]=r:delete e[we]),a}(e):function(e){return Ae.call(e)}(e)}function Ne(e,t){return function(r){return e(t(r))}}var Fe=Ne(Object.getPrototypeOf,Object);function Ie(e){return null!=e&&"object"==typeof e}var Ce=Function.prototype,Pe=Object.prototype,ke=Ce.toString,$e=Pe.hasOwnProperty,Me=ke.call(Object);function Re(e){if(!Ie(e)||"[object Object]"!=Te(e))return!1;var t=Fe(e);if(null===t)return!0;var r=$e.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ke.call(r)==Me}function De(e,t){return e===t||e!=e&&t!=t}function Ve(e,t){for(var r=e.length;r--;)if(De(e[r][0],t))return r;return-1}var Le=Array.prototype.splice;function Ue(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 ze(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Ue.prototype.clear=function(){this.__data__=[],this.size=0},Ue.prototype.delete=function(e){var t=this.__data__,r=Ve(t,e);return!(r<0)&&(r==t.length-1?t.pop():Le.call(t,r,1),--this.size,!0)},Ue.prototype.get=function(e){var t=this.__data__,r=Ve(t,e);return r<0?void 0:t[r][1]},Ue.prototype.has=function(e){return Ve(this.__data__,e)>-1},Ue.prototype.set=function(e,t){var r=this.__data__,n=Ve(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Be(e){if(!ze(e))return!1;var t=Te(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var We,Ge=Ee["__core-js_shared__"],He=(We=/[^.]+$/.exec(Ge&&Ge.keys&&Ge.keys.IE_PROTO||""))?"Symbol(src)_1."+We:"";var qe=Function.prototype.toString;function Ke(e){if(null!=e){try{return qe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Ye=/^\[object .+?Constructor\]$/,Xe=Function.prototype,Je=Object.prototype,Qe=Xe.toString,Ze=Je.hasOwnProperty,et=RegExp("^"+Qe.call(Ze).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tt(e){return!(!ze(e)||(t=e,He&&He in t))&&(Be(e)?et:Ye).test(Ke(e));var t}function rt(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return tt(r)?r:void 0}var nt=rt(Ee,"Map"),at=rt(Object,"create");var ot=Object.prototype.hasOwnProperty;var it=Object.prototype.hasOwnProperty;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])}}function ut(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 lt(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.__data__=at?at(null):{},this.size=0},ct.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ct.prototype.get=function(e){var t=this.__data__;if(at){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ot.call(t,e)?t[e]:void 0},ct.prototype.has=function(e){var t=this.__data__;return at?void 0!==t[e]:it.call(t,e)},ct.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=at&&void 0===t?"__lodash_hash_undefined__":t,this},lt.prototype.clear=function(){this.size=0,this.__data__={hash:new ct,map:new(nt||Ue),string:new ct}},lt.prototype.delete=function(e){var t=ut(this,e).delete(e);return this.size-=t?1:0,t},lt.prototype.get=function(e){return ut(this,e).get(e)},lt.prototype.has=function(e){return ut(this,e).has(e)},lt.prototype.set=function(e,t){var r=ut(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function st(e){var t=this.__data__=new Ue(e);this.size=t.size}st.prototype.clear=function(){this.__data__=new Ue,this.size=0},st.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},st.prototype.get=function(e){return this.__data__.get(e)},st.prototype.has=function(e){return this.__data__.has(e)},st.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ue){var n=r.__data__;if(!nt||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new lt(n)}return r.set(e,t),this.size=r.size,this};var ft=function(){try{var e=rt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();function dt(e,t,r){"__proto__"==t&&ft?ft(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var pt=Object.prototype.hasOwnProperty;function mt(e,t,r){var n=e[t];pt.call(e,t)&&De(n,r)&&(void 0!==r||t in e)||dt(e,t,r)}function vt(e,t,r,n){var a=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var c=t[o],u=n?n(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),a?dt(r,c,u):mt(r,c,u)}return r}function yt(e){return Ie(e)&&"[object Arguments]"==Te(e)}var ht=Object.prototype,bt=ht.hasOwnProperty,gt=ht.propertyIsEnumerable,Et=yt(function(){return arguments}())?yt:function(e){return Ie(e)&&bt.call(e,"callee")&&!gt.call(e,"callee")},jt=Array.isArray;var St="object"==typeof exports&&exports&&!exports.nodeType&&exports,_t=St&&"object"==typeof module&&module&&!module.nodeType&&module,Ot=_t&&_t.exports===St?Ee.Buffer:void 0,wt=(Ot?Ot.isBuffer:void 0)||function(){return!1},At=/^(?:0|[1-9]\d*)$/;function xt(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}function Tt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var Nt={};function Ft(e){return function(t){return e(t)}}Nt["[object Float32Array]"]=Nt["[object Float64Array]"]=Nt["[object Int8Array]"]=Nt["[object Int16Array]"]=Nt["[object Int32Array]"]=Nt["[object Uint8Array]"]=Nt["[object Uint8ClampedArray]"]=Nt["[object Uint16Array]"]=Nt["[object Uint32Array]"]=!0,Nt["[object Arguments]"]=Nt["[object Array]"]=Nt["[object ArrayBuffer]"]=Nt["[object Boolean]"]=Nt["[object DataView]"]=Nt["[object Date]"]=Nt["[object Error]"]=Nt["[object Function]"]=Nt["[object Map]"]=Nt["[object Number]"]=Nt["[object Object]"]=Nt["[object RegExp]"]=Nt["[object Set]"]=Nt["[object String]"]=Nt["[object WeakMap]"]=!1;var It="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ct=It&&"object"==typeof module&&module&&!module.nodeType&&module,Pt=Ct&&Ct.exports===It&&be.process,kt=function(){try{var e=Ct&&Ct.require&&Ct.require("util").types;return e||Pt&&Pt.binding&&Pt.binding("util")}catch(e){}}(),$t=kt&&kt.isTypedArray,Mt=$t?Ft($t):function(e){return Ie(e)&&Tt(e.length)&&!!Nt[Te(e)]},Rt=Object.prototype.hasOwnProperty;function Dt(e,t){var r=jt(e),n=!r&&Et(e),a=!r&&!n&&wt(e),o=!r&&!n&&!a&&Mt(e),i=r||n||a||o,c=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=c.length;for(var l in e)!t&&!Rt.call(e,l)||i&&("length"==l||a&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||xt(l,u))||c.push(l);return c}var Vt=Object.prototype;function Lt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Vt)}var Ut=Ne(Object.keys,Object),zt=Object.prototype.hasOwnProperty;function Bt(e){return null!=e&&Tt(e.length)&&!Be(e)}function Wt(e){return Bt(e)?Dt(e):function(e){if(!Lt(e))return Ut(e);var t=[];for(var r in Object(e))zt.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}var Gt=Object.prototype.hasOwnProperty;function Ht(e){if(!ze(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Lt(e),r=[];for(var n in e)("constructor"!=n||!t&&Gt.call(e,n))&&r.push(n);return r}function qt(e){return Bt(e)?Dt(e,!0):Ht(e)}var Kt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Yt=Kt&&"object"==typeof module&&module&&!module.nodeType&&module,Xt=Yt&&Yt.exports===Kt?Ee.Buffer:void 0,Jt=Xt?Xt.allocUnsafe:void 0;function Qt(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function Zt(){return[]}var er=Object.prototype.propertyIsEnumerable,tr=Object.getOwnPropertySymbols,rr=tr?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o}(tr(e),(function(t){return er.call(e,t)})))}:Zt;function nr(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var ar=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)nr(t,rr(e)),e=Fe(e);return t}:Zt;function or(e,t,r){var n=t(e);return jt(e)?n:nr(n,r(e))}function ir(e){return or(e,Wt,rr)}function cr(e){return or(e,qt,ar)}var ur=rt(Ee,"DataView"),lr=rt(Ee,"Promise"),sr=rt(Ee,"Set"),fr=rt(Ee,"WeakMap"),dr=Ke(ur),pr=Ke(nt),mr=Ke(lr),vr=Ke(sr),yr=Ke(fr),hr=Te;(ur&&"[object DataView]"!=hr(new ur(new ArrayBuffer(1)))||nt&&"[object Map]"!=hr(new nt)||lr&&"[object Promise]"!=hr(lr.resolve())||sr&&"[object Set]"!=hr(new sr)||fr&&"[object WeakMap]"!=hr(new fr))&&(hr=function(e){var t=Te(e),r="[object Object]"==t?e.constructor:void 0,n=r?Ke(r):"";if(n)switch(n){case dr:return"[object DataView]";case pr:return"[object Map]";case mr:return"[object Promise]";case vr:return"[object Set]";case yr:return"[object WeakMap]"}return t});var br=hr,gr=Object.prototype.hasOwnProperty;var Er=Ee.Uint8Array;function jr(e){var t=new e.constructor(e.byteLength);return new Er(t).set(new Er(e)),t}var Sr=/\w*$/;var _r=je?je.prototype:void 0,Or=_r?_r.valueOf:void 0;function wr(e,t,r){var n,a,o,i=e.constructor;switch(t){case"[object ArrayBuffer]":return jr(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var r=t?jr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);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 function(e,t){var r=t?jr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(o=new(a=e).constructor(a.source,Sr.exec(a))).lastIndex=a.lastIndex,o;case"[object Symbol]":return n=e,Or?Object(Or.call(n)):{}}}var Ar=Object.create,xr=function(){function e(){}return function(t){if(!ze(t))return{};if(Ar)return Ar(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var Tr=kt&&kt.isMap,Nr=Tr?Ft(Tr):function(e){return Ie(e)&&"[object Map]"==br(e)};var Fr=kt&&kt.isSet,Ir=Fr?Ft(Fr):function(e){return Ie(e)&&"[object Set]"==br(e)},Cr={};function Pr(e,t,r,n,a,o){var i,c=1&t,u=2&t,l=4&t;if(r&&(i=a?r(e,n,a,o):r(e)),void 0!==i)return i;if(!ze(e))return e;var s=jt(e);if(s){if(i=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&gr.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!c)return Qt(e,i)}else{var f=br(e),d="[object Function]"==f||"[object GeneratorFunction]"==f;if(wt(e))return function(e,t){if(t)return e.slice();var r=e.length,n=Jt?Jt(r):new e.constructor(r);return e.copy(n),n}(e,c);if("[object Object]"==f||"[object Arguments]"==f||d&&!a){if(i=u||d?{}:function(e){return"function"!=typeof e.constructor||Lt(e)?{}:xr(Fe(e))}(e),!c)return u?function(e,t){return vt(e,ar(e),t)}(e,function(e,t){return e&&vt(t,qt(t),e)}(i,e)):function(e,t){return vt(e,rr(e),t)}(e,function(e,t){return e&&vt(t,Wt(t),e)}(i,e))}else{if(!Cr[f])return a?e:{};i=wr(e,f,c)}}o||(o=new st);var p=o.get(e);if(p)return p;o.set(e,i),Ir(e)?e.forEach((function(n){i.add(Pr(n,t,r,n,e,o))})):Nr(e)&&e.forEach((function(n,a){i.set(a,Pr(n,t,r,a,e,o))}));var m=s?void 0:(l?u?cr:ir:u?qt:Wt)(e);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(m||e,(function(n,a){m&&(n=e[a=n]),mt(i,a,Pr(n,t,r,a,e,o))})),i}Cr["[object Arguments]"]=Cr["[object Array]"]=Cr["[object ArrayBuffer]"]=Cr["[object DataView]"]=Cr["[object Boolean]"]=Cr["[object Date]"]=Cr["[object Float32Array]"]=Cr["[object Float64Array]"]=Cr["[object Int8Array]"]=Cr["[object Int16Array]"]=Cr["[object Int32Array]"]=Cr["[object Map]"]=Cr["[object Number]"]=Cr["[object Object]"]=Cr["[object RegExp]"]=Cr["[object Set]"]=Cr["[object String]"]=Cr["[object Symbol]"]=Cr["[object Uint8Array]"]=Cr["[object Uint8ClampedArray]"]=Cr["[object Uint16Array]"]=Cr["[object Uint32Array]"]=!0,Cr["[object Error]"]=Cr["[object Function]"]=Cr["[object WeakMap]"]=!1;function kr(e){return Pr(e,4)}function $r(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}function Mr(e){return"symbol"==typeof e||Ie(e)&&"[object Symbol]"==Te(e)}function Rr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i};return r.cache=new(Rr.Cache||lt),r}Rr.Cache=lt;var Dr,Vr,Lr,Ur=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zr=/\\(\\)?/g,Br=(Dr=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ur,(function(e,r,n,a){t.push(n?a.replace(zr,"$1"):r||e)})),t},Vr=Rr(Dr,(function(e){return 500===Lr.size&&Lr.clear(),e})),Lr=Vr.cache,Vr);function Wr(e){if("string"==typeof e||Mr(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}var Gr=je?je.prototype:void 0,Hr=Gr?Gr.toString:void 0;function qr(e){if("string"==typeof e)return e;if(jt(e))return $r(e,qr)+"";if(Mr(e))return Hr?Hr.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}function Kr(e){return jt(e)?$r(e,Wr):Mr(e)?[e]:Qt(Br(function(e){return null==e?"":qr(e)}(e)))}var Yr="production"===process.env.NODE_ENV;function Xr(e,t){if(!Yr){if(e)return;var r="Warning: "+t;"undefined"!=typeof console&&console.warn(r);try{throw Error(r)}catch(e){}}}var Jr,Qr={exports:{}},Zr={};var en,tn={};
/** @license React v16.13.1

@@ -63,3 +97,3 @@ * react-is.development.js

* LICENSE file in the root directory of this source tree.
*/!function(e){"production"===process.env.NODE_ENV?e.exports=function(){if(Rr)return Vr;Rr=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case u:case l:case n:case a:case o:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case y:case d:case i:return e;default:return p}}case r:return p}}}function E(e){return g(e)===l}return Vr.AsyncMode=u,Vr.ConcurrentMode=l,Vr.ContextConsumer=c,Vr.ContextProvider=i,Vr.Element=t,Vr.ForwardRef=s,Vr.Fragment=n,Vr.Lazy=y,Vr.Memo=d,Vr.Portal=r,Vr.Profiler=a,Vr.StrictMode=o,Vr.Suspense=f,Vr.isAsyncMode=function(e){return E(e)||g(e)===u},Vr.isConcurrentMode=E,Vr.isContextConsumer=function(e){return g(e)===c},Vr.isContextProvider=function(e){return g(e)===i},Vr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Vr.isForwardRef=function(e){return g(e)===s},Vr.isFragment=function(e){return g(e)===n},Vr.isLazy=function(e){return g(e)===y},Vr.isMemo=function(e){return g(e)===d},Vr.isPortal=function(e){return g(e)===r},Vr.isProfiler=function(e){return g(e)===a},Vr.isStrictMode=function(e){return g(e)===o},Vr.isSuspense=function(e){return g(e)===f},Vr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===l||e===a||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===d||e.$$typeof===i||e.$$typeof===c||e.$$typeof===s||e.$$typeof===m||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v)},Vr.typeOf=g,Vr}():e.exports=(Ur||(Ur=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var v=e.type;switch(v){case u:case l:case n:case a:case o:case f:return v;default:var m=v&&v.$$typeof;switch(m){case c:case s:case y:case d:case i:return m;default:return p}}case r:return p}}}var E=u,S=l,_=c,j=i,O=t,w=s,A=n,T=y,x=d,F=r,N=a,I=o,P=f,k=!1;function M(e){return g(e)===l}Lr.AsyncMode=E,Lr.ConcurrentMode=S,Lr.ContextConsumer=_,Lr.ContextProvider=j,Lr.Element=O,Lr.ForwardRef=w,Lr.Fragment=A,Lr.Lazy=T,Lr.Memo=x,Lr.Portal=F,Lr.Profiler=N,Lr.StrictMode=I,Lr.Suspense=P,Lr.isAsyncMode=function(e){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(e)||g(e)===u},Lr.isConcurrentMode=M,Lr.isContextConsumer=function(e){return g(e)===c},Lr.isContextProvider=function(e){return g(e)===i},Lr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Lr.isForwardRef=function(e){return g(e)===s},Lr.isFragment=function(e){return g(e)===n},Lr.isLazy=function(e){return g(e)===y},Lr.isMemo=function(e){return g(e)===d},Lr.isPortal=function(e){return g(e)===r},Lr.isProfiler=function(e){return g(e)===a},Lr.isStrictMode=function(e){return g(e)===o},Lr.isSuspense=function(e){return g(e)===f},Lr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===l||e===a||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===d||e.$$typeof===i||e.$$typeof===c||e.$$typeof===s||e.$$typeof===m||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v)},Lr.typeOf=g}()),Lr)}(Dr);var zr=Dr.exports,Br={};Br[zr.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Br[zr.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Wr(e){return gr(e,5)}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)}function Hr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function qr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Kr=function(e){return Array.isArray(e)&&0===e.length},Yr=function(e){return"function"==typeof e},Xr=function(e){return null!==e&&"object"==typeof e},Jr=function(e){return String(Math.floor(Number(e)))===e},Qr=function(e){return"[object String]"===Object.prototype.toString.call(e)},Zr=function(e){return 0===u.count(e)},en=function(e){return Xr(e)&&Yr(e.then)};function tn(e,t,r,n){void 0===n&&(n=0);for(var o=Mr(t);e&&n<o.length;)e=e[o[n++]];return void 0===e?r:e}function rn(e,t,r){for(var n=Er(e),o=n,a=0,i=Mr(t);a<i.length-1;a++){var c=i[a],u=tn(e,i.slice(0,a+1));if(u&&(Xr(u)||Array.isArray(u)))o=o[c]=Er(u);else{var l=i[a+1];o=o[c]=Jr(l)&&Number(l)>=0?[]:{}}}return(0===a?e:o)[i[a]]===r?e:(void 0===r?delete o[i[a]]:o[i[a]]=r,0===a&&void 0===r&&delete n[i[a]],n)}function nn(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,a=Object.keys(e);o<a.length;o++){var i=a[o],c=e[i];Xr(c)?r.get(c)||(r.set(c,!0),n[i]=Array.isArray(c)?[]:{},nn(c,t,r,n[i])):n[i]=t}return n}var on=r(void 0);on.displayName="FormikContext";var an=on.Provider;function cn(e,t){switch(t.type){case"SET_VALUES":return Gr({},e,{values:t.payload});case"SET_TOUCHED":return Gr({},e,{touched:t.payload});case"SET_ERRORS":return J(e.errors,t.payload)?e:Gr({},e,{errors:t.payload});case"SET_STATUS":return Gr({},e,{status:t.payload});case"SET_ISSUBMITTING":return Gr({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Gr({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Gr({},e,{values:rn(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Gr({},e,{touched:rn(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Gr({},e,{errors:rn(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Gr({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Gr({},e,{touched:nn(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Gr({},e,{isSubmitting:!1});default:return e}}on.Consumer;var un={},ln={};function sn(e){var t=e.validateOnChange,r=void 0===t||t,n=e.validateOnBlur,o=void 0===n||n,a=e.validateOnMount,i=void 0!==a&&a,u=e.isInitialValid,d=e.enableReinitialize,y=void 0!==d&&d,v=e.onSubmit,m=Hr(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=Gr({validateOnChange:r,validateOnBlur:o,validateOnMount:i,onSubmit:v},m),b=l(h.initialValues),g=l(h.initialErrors||un),E=l(h.initialTouched||ln),S=l(h.initialStatus),_=l(!1),j=l({});"production"!==process.env.NODE_ENV&&c((function(){void 0!==u&&("production"!==process.env.NODE_ENV?Cr(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):Cr(!1))}),[]),c((function(){return _.current=!0,function(){_.current=!1}}),[]);var O=s(cn,{values:h.initialValues,errors:h.initialErrors||un,touched:h.initialTouched||ln,status:h.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),w=O[0],A=O[1],T=f((function(e,t){return new Promise((function(r,n){var o=h.validate(e,t);null==o?r(un):en(o)?o.then((function(e){r(e||un)}),(function(e){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",e),n(e)})):r(o)}))}),[h.validate]),x=f((function(e,t){var r=h.validationSchema,n=Yr(r)?r(t):r,o=t&&n.validateAt?n.validateAt(t,e):function(e,t,r,n){void 0===r&&(r=!1);void 0===n&&(n={});var o=dn(e);return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:n})}(e,n);return new Promise((function(e,t){o.then((function(){e(un)}),(function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return rn(t,e.path,e.message);var r=e.inner,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var a;if(n){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var i=a;tn(t,i.path)||(t=rn(t,i.path,i.message))}}return t}(r)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",r),t(r))}))}))}),[h.validationSchema]),F=f((function(e,t){return new Promise((function(r){return r(j.current[e].validate(t))}))}),[]),N=f((function(e){var t=Object.keys(j.current).filter((function(e){return Yr(j.current[e].validate)})),r=t.length>0?t.map((function(t){return F(t,tn(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then((function(e){return e.reduce((function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=rn(e,t[n],r)),e}),{})}))}),[F]),I=f((function(e){return Promise.all([N(e),h.validationSchema?x(e):{},h.validate?T(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return ne.all([t,r,n],{arrayMerge:yn})}))}),[h.validate,h.validationSchema,N,T,x]),P=mn((function(e){return void 0===e&&(e=w.values),A({type:"SET_ISVALIDATING",payload:!0}),I(e).then((function(e){return _.current&&(A({type:"SET_ISVALIDATING",payload:!1}),A({type:"SET_ERRORS",payload:e})),e}))}));c((function(){i&&!0===_.current&&J(b.current,h.initialValues)&&P(b.current)}),[i,P]);var k=f((function(e){var t=e&&e.values?e.values:b.current,r=e&&e.errors?e.errors:g.current?g.current:h.initialErrors||{},n=e&&e.touched?e.touched:E.current?E.current:h.initialTouched||{},o=e&&e.status?e.status:S.current?S.current:h.initialStatus;b.current=t,g.current=r,E.current=n,S.current=o;var a=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var i=h.onReset(w.values,Z);en(i)?i.then(a):a()}else a()}),[h.initialErrors,h.initialStatus,h.initialTouched]);c((function(){!0!==_.current||J(b.current,h.initialValues)||(y&&(b.current=h.initialValues,k()),i&&P(b.current))}),[y,h.initialValues,k,i,P]),c((function(){y&&!0===_.current&&!J(g.current,h.initialErrors)&&(g.current=h.initialErrors||un,A({type:"SET_ERRORS",payload:h.initialErrors||un}))}),[y,h.initialErrors]),c((function(){y&&!0===_.current&&!J(E.current,h.initialTouched)&&(E.current=h.initialTouched||ln,A({type:"SET_TOUCHED",payload:h.initialTouched||ln}))}),[y,h.initialTouched]),c((function(){y&&!0===_.current&&!J(S.current,h.initialStatus)&&(S.current=h.initialStatus,A({type:"SET_STATUS",payload:h.initialStatus}))}),[y,h.initialStatus,h.initialTouched]);var M=mn((function(e){if(j.current[e]&&Yr(j.current[e].validate)){var t=tn(w.values,e),r=j.current[e].validate(t);return en(r)?(A({type:"SET_ISVALIDATING",payload:!0}),r.then((function(e){return e})).then((function(t){A({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),A({type:"SET_ISVALIDATING",payload:!1})}))):(A({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return h.validationSchema?(A({type:"SET_ISVALIDATING",payload:!0}),x(w.values,e).then((function(e){return e})).then((function(t){A({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),A({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),$=f((function(e,t){var r=t.validate;j.current[e]={validate:r}}),[]),C=f((function(e){delete j.current[e]}),[]),R=mn((function(e,t){return A({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?P(w.values):Promise.resolve()})),D=f((function(e){A({type:"SET_ERRORS",payload:e})}),[]),V=mn((function(e,t){var n=Yr(e)?e(w.values):e;return A({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?P(n):Promise.resolve()})),U=f((function(e,t){A({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),L=mn((function(e,t,n){return A({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?P(rn(w.values,e,t)):Promise.resolve()})),z=f((function(e,t){var r,n=t,o=e;if(!Qr(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,i=a.type,c=a.name,u=a.id,l=a.value,s=a.checked,f=a.outerHTML,p=a.options,d=a.multiple;(n=t||(c||u))||"production"===process.env.NODE_ENV||pn({htmlContent:f,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),o=/number|range/.test(i)?(r=parseFloat(l),isNaN(r)?"":r):/checkbox/.test(i)?function(e,t,r){if("boolean"==typeof e)return Boolean(t);var n=[],o=!1,a=-1;if(Array.isArray(e))n=e,o=(a=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);if(t&&r&&!o)return n.concat(r);if(!o)return n;return n.slice(0,a).concat(n.slice(a+1))}(tn(w.values,n),s,l):p&&d?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(p):l}n&&L(n,o)}),[L,w.values]),B=mn((function(e){if(Qr(e))return function(t){return z(t,e)};z(e)})),W=mn((function(e,t,r){return void 0===t&&(t=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?o:r)?P(w.values):Promise.resolve()})),G=f((function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,o=r.id,a=r.outerHTML,i=t||(n||o);i||"production"===process.env.NODE_ENV||pn({htmlContent:a,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),W(i,!0)}),[W]),H=mn((function(e){if(Qr(e))return function(t){return G(t,e)};G(e)})),q=f((function(e){Yr(e)?A({type:"SET_FORMIK_STATE",payload:e}):A({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),K=f((function(e){A({type:"SET_STATUS",payload:e})}),[]),Y=f((function(e){A({type:"SET_ISSUBMITTING",payload:e})}),[]),X=mn((function(){return A({type:"SUBMIT_ATTEMPT"}),P().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=ee()))return}catch(e){throw e}return Promise.resolve(r).then((function(e){return _.current&&A({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(_.current)throw A({type:"SUBMIT_FAILURE"}),e}))}if(_.current&&(A({type:"SUBMIT_FAILURE"}),t))throw e}))})),Q=mn((function(e){if(e&&e.preventDefault&&Yr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Yr(e.stopPropagation)&&e.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var t=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}();null!==t&&t instanceof HTMLButtonElement&&(t.attributes&&t.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?Cr(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):Cr(!1)))}X().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),Z={resetForm:k,validateForm:P,validateField:M,setErrors:D,setFieldError:U,setFieldTouched:W,setFieldValue:L,setStatus:K,setSubmitting:Y,setTouched:R,setValues:V,setFormikState:q,submitForm:X},ee=mn((function(){return v(w.values,Z)})),te=mn((function(e){e&&e.preventDefault&&Yr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Yr(e.stopPropagation)&&e.stopPropagation(),k()})),re=f((function(e){return{value:tn(w.values,e),error:tn(w.errors,e),touched:!!tn(w.touched,e),initialValue:tn(b.current,e),initialTouched:!!tn(E.current,e),initialError:tn(g.current,e)}}),[w.errors,w.touched,w.values]),oe=f((function(e){return{setValue:function(t,r){return L(e,t,r)},setTouched:function(t,r){return W(e,t,r)},setError:function(t){return U(e,t)}}}),[L,W,U]),ae=f((function(e){var t=Xr(e),r=t?e.name:e,n=tn(w.values,r),o={name:r,value:n,onChange:B,onBlur:H};if(t){var a=e.type,i=e.value,c=e.as,u=e.multiple;"checkbox"===a?void 0===i?o.checked=!!n:(o.checked=!(!Array.isArray(n)||!~n.indexOf(i)),o.value=i):"radio"===a?(o.checked=n===i,o.value=i):"select"===c&&u&&(o.value=o.value||[],o.multiple=!0)}return o}),[H,B,w.values]),ie=p((function(){return!J(b.current,w.values)}),[b.current,w.values]),ce=p((function(){return void 0!==u?ie?w.errors&&0===Object.keys(w.errors).length:!1!==u&&Yr(u)?u(h):u:w.errors&&0===Object.keys(w.errors).length}),[u,ie,w.errors,h]);return Gr({},w,{initialValues:b.current,initialErrors:g.current,initialTouched:E.current,initialStatus:S.current,handleBlur:H,handleChange:B,handleReset:te,handleSubmit:Q,resetForm:k,setErrors:D,setFormikState:q,setFieldTouched:W,setFieldValue:L,setFieldError:U,setStatus:K,setSubmitting:Y,setTouched:R,setValues:V,submitForm:X,validateForm:P,validateField:M,isValid:ce,dirty:ie,unregisterField:C,registerField:$,getFieldProps:ae,getFieldMeta:re,getFieldHelpers:oe,validateOnBlur:o,validateOnChange:r,validateOnMount:i})}function fn(e){var t=sn(e),r=e.component,n=e.children,a=e.render,l=e.innerRef;return i(l,(function(){return t})),"production"!==process.env.NODE_ENV&&c((function(){e.render&&("production"!==process.env.NODE_ENV?Cr(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):Cr(!1))}),[]),o(an,{value:t},r?o(r,t):a?a(t):n?Yr(n)?n(t):Zr(n)?null:u.only(n):null)}function pn(e){var t=e.htmlContent,r=e.documentationAnchorLink,n=e.handlerName;console.warn("Warning: Formik called `"+n+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+r+"\n ")}function dn(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map((function(e){return!0===Array.isArray(e)||je(e)?dn(e):""!==e?e:void 0})):je(e[n])?t[n]=dn(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function yn(e,t,r){var n=e.slice();return t.forEach((function(t,o){if(void 0===n[o]){var a=!1!==r.clone&&r.isMergeableObject(t);n[o]=a?ne(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[o]=ne(e[o],t,r):-1===e.indexOf(t)&&n.push(t)})),n}var vn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?y:c;function mn(e){var t=l(e);return vn((function(){t.current=e})),f((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(void 0,r)}),[])}n((function(e,t){var r,n=e.action,i=Hr(e,["action"]),c=null!=n?n:"#",u=((r=a(on))||("production"!==process.env.NODE_ENV?Cr(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):Cr(!1)),r),l=u.handleReset,s=u.handleSubmit;return o("form",Object.assign({onSubmit:s,ref:t,onReset:l,action:c},i))})).displayName="Form";var hn=function(e,t,r){var n=bn(e);return n.splice(t,0,r),n},bn=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(Gr({},e,{length:t+1}))}return[]},gn=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var o=r.props,a=o.name;(0,o.formik.setFormikState)((function(r){var o="function"==typeof n?n:e,i="function"==typeof t?t:e,c=rn(r.values,a,e(tn(r.values,a))),u=n?o(tn(r.errors,a)):void 0,l=t?i(tn(r.touched,a)):void 0;return Kr(u)&&(u=void 0),Kr(l)&&(l=void 0),Gr({},r,{values:c,errors:n?rn(r.errors,a,u):r.errors,touched:t?rn(r.touched,a,l):r.touched})}))},r.push=function(e){return r.updateArrayField((function(t){return[].concat(bn(t),[Wr(e)])}),!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=bn(e),o=n[t];return n[t]=n[r],n[r]=o,n}(r,e,t)}),!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=bn(e),o=n[t];return n.splice(t,1),n.splice(r,0,o),n}(r,e,t)}),!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField((function(r){return hn(r,e,t)}),(function(t){return hn(t,e,null)}),(function(t){return hn(t,e,null)}))},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=bn(e);return n[t]=r,n}(r,e,t)}),!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField((function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r})),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(qr(r)),r.pop=r.pop.bind(qr(r)),r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!J(tn(e.formik.values,e.name),tn(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},a.remove=function(e){var t;return this.updateArrayField((function(r){var n=r?bn(r):[];return t||(t=n[e]),Yr(n.splice)&&n.splice(e,1),n}),!0,!0),t},a.pop=function(){var e;return this.updateArrayField((function(t){var r=t;return e||(e=r&&r.pop&&r.pop()),r}),!0,!0),e},a.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,n=t.render,a=t.children,i=t.name,c=Gr({},e,{form:Hr(t.formik,["validate","validationSchema"]),name:i});return r?o(r,c):n?n(c):a?"function"==typeof a?a(c):Zr(a)?null:u.only(a):null},n}(d);gn.defaultProps={validateOnChange:!0};const En=e=>t=>{var r,n;const o={};for(const[a,i]of Object.entries(e)){if("password"===i.type&&(null===(r=i.confirmPassword)||void 0===r?void 0:r.addField)&&t[a]!==t.confirmPassword&&(o.confirmPassword=i.confirmPassword.errorMessage),!i.validation)continue;if((null===(n=i.validation.required)||void 0===n?void 0:n.value)&&!t[a]){o[a]=i.validation.required.message;continue}if("checkbox"===e[a].type)continue;const c=t[a],{pattern:u,minLength:l}=i.validation;!u||u.value.test(c)?l&&c.length<l.value&&(o[a]=l.message):o[a]=u.message}return o},Sn=({formSchema:t,onSubmit:r,SubmitButton:n})=>{const o=Object.entries(t).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t[0]]:t[1].initialValue})),{});return e.createElement(fn,{initialValues:o,onSubmit:e=>{const t=e,n="confirmPassword";t[n];const o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(t,[n+""]);r(o)},validate:En(t)},(({handleSubmit:r,values:o,handleChange:a,touched:i,errors:c})=>e.createElement("form",{noValidate:!0,onSubmit:r,className:"uag uag-form"},e.createElement(m,{className:"uag uag-form-stack",spacing:1},Object.entries(t).map((([t,r])=>{var n,u,l,s,f;const p={fullWidth:!0,id:t,name:t,label:`${r.label}${(null===(u=null===(n=r.validation)||void 0===n?void 0:n.required)||void 0===u?void 0:u.value)?"*":""}`,type:r.type,value:o[t],onChange:a,error:i[t]&&Boolean(c[t]),helperText:i[t]&&c[t]};return"password"===r.type?e.createElement(m,{className:"uag uag-pwd-container",key:t,spacing:1},e.createElement(h,Object.assign({},p,{className:"uag uag-form-text uag-form-text-password"})),(null===(l=r.confirmPassword)||void 0===l?void 0:l.addField)?e.createElement(h,{name:"confirmPassword",label:`${r.confirmPassword.label}${(null===(f=null===(s=r.validation)||void 0===s?void 0:s.required)||void 0===f?void 0:f.value)?"*":""}`,onChange:a,value:o.confirmPassword,error:i.confirmPassword&&Boolean(c.confirmPassword),helperText:i.confirmPassword&&c.confirmPassword,fullWidth:!0,type:"password",className:"uag uag-form-text uag-form-text-password uag-form-text-password-confirmation"}):null):"checkbox"===r.type?e.createElement(b,{key:t,fullWidth:!0,error:p.error,className:"uag uag-form-checkbox uag-form-checkbox-control"},e.createElement(g,{control:e.createElement(E,{name:t,value:o[t],onChange:a,defaultChecked:r.initialValue,className:"uag uag-form-checkbox"}),label:r.label}),p.helperText&&e.createElement(S,{className:"uag uag-form-helper-txt uag-form-checkbox-helper-txt"},p.helperText)):"list"===r.type?e.createElement(b,{error:p.error,fullWidth:!0,key:t},e.createElement(_,{id:"uag-form-list-label"},r.label),e.createElement(j,{labelId:"uag-form-list-label",name:t,onChange:a,value:o[t],label:r.label},r.options.map((({value:t,label:r})=>e.createElement(O,{key:t,value:t},r)))),p.helperText&&e.createElement(S,{className:"uag uag-form-helper-txt uag-form-list-helper-txt"},p.helperText)):e.createElement(h,Object.assign({key:t},p,{className:"uag uag-form-text"}))})),e.createElement("div",{className:"uag uag-form-btn-container"},e.createElement(n.type,Object.assign({},n.props,{type:"submit"})))))))};var _n=Object.freeze({__proto__:null});export{I as Avatar,Sn as Form,_n as FormTypes,G as ItemSelector};
*/!function(e){"production"===process.env.NODE_ENV?e.exports=function(){if(Jr)return Zr;Jr=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case u:case l:case n:case o:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case m:case p:case i:return e;default:return d}}case r:return d}}}function E(e){return g(e)===l}return Zr.AsyncMode=u,Zr.ConcurrentMode=l,Zr.ContextConsumer=c,Zr.ContextProvider=i,Zr.Element=t,Zr.ForwardRef=s,Zr.Fragment=n,Zr.Lazy=m,Zr.Memo=p,Zr.Portal=r,Zr.Profiler=o,Zr.StrictMode=a,Zr.Suspense=f,Zr.isAsyncMode=function(e){return E(e)||g(e)===u},Zr.isConcurrentMode=E,Zr.isContextConsumer=function(e){return g(e)===c},Zr.isContextProvider=function(e){return g(e)===i},Zr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Zr.isForwardRef=function(e){return g(e)===s},Zr.isFragment=function(e){return g(e)===n},Zr.isLazy=function(e){return g(e)===m},Zr.isMemo=function(e){return g(e)===p},Zr.isPortal=function(e){return g(e)===r},Zr.isProfiler=function(e){return g(e)===o},Zr.isStrictMode=function(e){return g(e)===a},Zr.isSuspense=function(e){return g(e)===f},Zr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===l||e===o||e===a||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===i||e.$$typeof===c||e.$$typeof===s||e.$$typeof===y||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v)},Zr.typeOf=g,Zr}():e.exports=(en||(en=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var v=e.type;switch(v){case u:case l:case n:case o:case a:case f:return v;default:var y=v&&v.$$typeof;switch(y){case c:case s:case m:case p:case i:return y;default:return d}}case r:return d}}}var E=u,j=l,S=c,_=i,O=t,w=s,A=n,x=m,T=p,N=r,F=o,I=a,C=f,P=!1;function k(e){return g(e)===l}tn.AsyncMode=E,tn.ConcurrentMode=j,tn.ContextConsumer=S,tn.ContextProvider=_,tn.Element=O,tn.ForwardRef=w,tn.Fragment=A,tn.Lazy=x,tn.Memo=T,tn.Portal=N,tn.Profiler=F,tn.StrictMode=I,tn.Suspense=C,tn.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k(e)||g(e)===u},tn.isConcurrentMode=k,tn.isContextConsumer=function(e){return g(e)===c},tn.isContextProvider=function(e){return g(e)===i},tn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},tn.isForwardRef=function(e){return g(e)===s},tn.isFragment=function(e){return g(e)===n},tn.isLazy=function(e){return g(e)===m},tn.isMemo=function(e){return g(e)===p},tn.isPortal=function(e){return g(e)===r},tn.isProfiler=function(e){return g(e)===o},tn.isStrictMode=function(e){return g(e)===a},tn.isSuspense=function(e){return g(e)===f},tn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===l||e===o||e===a||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===i||e.$$typeof===c||e.$$typeof===s||e.$$typeof===y||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v)},tn.typeOf=g}()),tn)}(Qr);var rn=Qr.exports,nn={};nn[rn.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nn[rn.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function an(e){return Pr(e,5)}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)}function cn(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}function un(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ln=function(e){return Array.isArray(e)&&0===e.length},sn=function(e){return"function"==typeof e},fn=function(e){return null!==e&&"object"==typeof e},dn=function(e){return String(Math.floor(Number(e)))===e},pn=function(e){return"[object String]"===Object.prototype.toString.call(e)},mn=function(e){return 0===l.count(e)},vn=function(e){return fn(e)&&sn(e.then)};function yn(e,t,r,n){void 0===n&&(n=0);for(var a=Kr(t);e&&n<a.length;)e=e[a[n++]];return void 0===e?r:e}function hn(e,t,r){for(var n=kr(e),a=n,o=0,i=Kr(t);o<i.length-1;o++){var c=i[o],u=yn(e,i.slice(0,o+1));if(u&&(fn(u)||Array.isArray(u)))a=a[c]=kr(u);else{var l=i[o+1];a=a[c]=dn(l)&&Number(l)>=0?[]:{}}}return(0===o?e:a)[i[o]]===r?e:(void 0===r?delete a[i[o]]:a[i[o]]=r,0===o&&void 0===r&&delete n[i[o]],n)}function bn(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var a=0,o=Object.keys(e);a<o.length;a++){var i=o[a],c=e[i];fn(c)?r.get(c)||(r.set(c,!0),n[i]=Array.isArray(c)?[]:{},bn(c,t,r,n[i])):n[i]=t}return n}var gn=n(void 0);gn.displayName="FormikContext";var En=gn.Provider;function jn(e,t){switch(t.type){case"SET_VALUES":return on({},e,{values:t.payload});case"SET_TOUCHED":return on({},e,{touched:t.payload});case"SET_ERRORS":return fe(e.errors,t.payload)?e:on({},e,{errors:t.payload});case"SET_STATUS":return on({},e,{status:t.payload});case"SET_ISSUBMITTING":return on({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return on({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return on({},e,{values:hn(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return on({},e,{touched:hn(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return on({},e,{errors:hn(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return on({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return on({},e,{touched:bn(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return on({},e,{isSubmitting:!1});default:return e}}gn.Consumer;var Sn={},_n={};function On(e){var t=e.validateOnChange,n=void 0===t||t,a=e.validateOnBlur,o=void 0===a||a,i=e.validateOnMount,c=void 0!==i&&i,l=e.isInitialValid,p=e.enableReinitialize,m=void 0!==p&&p,v=e.onSubmit,y=cn(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=on({validateOnChange:n,validateOnBlur:o,validateOnMount:c,onSubmit:v},y),b=s(h.initialValues),g=s(h.initialErrors||Sn),E=s(h.initialTouched||_n),j=s(h.initialStatus),S=s(!1),_=s({});"production"!==process.env.NODE_ENV&&u((function(){void 0!==l&&("production"!==process.env.NODE_ENV?Xr(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):Xr(!1))}),[]),u((function(){return S.current=!0,function(){S.current=!1}}),[]);var O=f(jn,{values:h.initialValues,errors:h.initialErrors||Sn,touched:h.initialTouched||_n,status:h.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),w=O[0],A=O[1],x=d((function(e,t){return new Promise((function(r,n){var a=h.validate(e,t);null==a?r(Sn):vn(a)?a.then((function(e){r(e||Sn)}),(function(e){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",e),n(e)})):r(a)}))}),[h.validate]),T=d((function(e,t){var r=h.validationSchema,n=sn(r)?r(t):r,a=t&&n.validateAt?n.validateAt(t,e):function(e,t,r,n){void 0===r&&(r=!1);void 0===n&&(n={});var a=xn(e);return t[r?"validateSync":"validate"](a,{abortEarly:!1,context:n})}(e,n);return new Promise((function(e,t){a.then((function(){e(Sn)}),(function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return hn(t,e.path,e.message);var r=e.inner,n=Array.isArray(r),a=0;for(r=n?r:r[Symbol.iterator]();;){var o;if(n){if(a>=r.length)break;o=r[a++]}else{if((a=r.next()).done)break;o=a.value}var i=o;yn(t,i.path)||(t=hn(t,i.path,i.message))}}return t}(r)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",r),t(r))}))}))}),[h.validationSchema]),N=d((function(e,t){return new Promise((function(r){return r(_.current[e].validate(t))}))}),[]),F=d((function(e){var t=Object.keys(_.current).filter((function(e){return sn(_.current[e].validate)})),r=t.length>0?t.map((function(t){return N(t,yn(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then((function(e){return e.reduce((function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=hn(e,t[n],r)),e}),{})}))}),[N]),I=d((function(e){return Promise.all([F(e),h.validationSchema?T(e):{},h.validate?x(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return he.all([t,r,n],{arrayMerge:Tn})}))}),[h.validate,h.validationSchema,F,x,T]),C=Fn((function(e){return void 0===e&&(e=w.values),A({type:"SET_ISVALIDATING",payload:!0}),I(e).then((function(e){return S.current&&(A({type:"SET_ISVALIDATING",payload:!1}),A({type:"SET_ERRORS",payload:e})),e}))}));u((function(){c&&!0===S.current&&fe(b.current,h.initialValues)&&C(b.current)}),[c,C]);var P=d((function(e){var t=e&&e.values?e.values:b.current,r=e&&e.errors?e.errors:g.current?g.current:h.initialErrors||{},n=e&&e.touched?e.touched:E.current?E.current:h.initialTouched||{},a=e&&e.status?e.status:j.current?j.current:h.initialStatus;b.current=t,g.current=r,E.current=n,j.current=a;var o=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:a,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var i=h.onReset(w.values,Q);vn(i)?i.then(o):o()}else o()}),[h.initialErrors,h.initialStatus,h.initialTouched]);u((function(){!0!==S.current||fe(b.current,h.initialValues)||(m&&(b.current=h.initialValues,P()),c&&C(b.current))}),[m,h.initialValues,P,c,C]),u((function(){m&&!0===S.current&&!fe(g.current,h.initialErrors)&&(g.current=h.initialErrors||Sn,A({type:"SET_ERRORS",payload:h.initialErrors||Sn}))}),[m,h.initialErrors]),u((function(){m&&!0===S.current&&!fe(E.current,h.initialTouched)&&(E.current=h.initialTouched||_n,A({type:"SET_TOUCHED",payload:h.initialTouched||_n}))}),[m,h.initialTouched]),u((function(){m&&!0===S.current&&!fe(j.current,h.initialStatus)&&(j.current=h.initialStatus,A({type:"SET_STATUS",payload:h.initialStatus}))}),[m,h.initialStatus,h.initialTouched]);var k=Fn((function(e){if(_.current[e]&&sn(_.current[e].validate)){var t=yn(w.values,e),r=_.current[e].validate(t);return vn(r)?(A({type:"SET_ISVALIDATING",payload:!0}),r.then((function(e){return e})).then((function(t){A({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),A({type:"SET_ISVALIDATING",payload:!1})}))):(A({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return h.validationSchema?(A({type:"SET_ISVALIDATING",payload:!0}),T(w.values,e).then((function(e){return e})).then((function(t){A({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),A({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),$=d((function(e,t){var r=t.validate;_.current[e]={validate:r}}),[]),M=d((function(e){delete _.current[e]}),[]),R=Fn((function(e,t){return A({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?C(w.values):Promise.resolve()})),D=d((function(e){A({type:"SET_ERRORS",payload:e})}),[]),V=Fn((function(e,t){var r=sn(e)?e(w.values):e;return A({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?C(r):Promise.resolve()})),L=d((function(e,t){A({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),U=Fn((function(e,t,r){return A({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?C(hn(w.values,e,t)):Promise.resolve()})),z=d((function(e,t){var r,n=t,a=e;if(!pn(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,i=o.type,c=o.name,u=o.id,l=o.value,s=o.checked,f=o.outerHTML,d=o.options,p=o.multiple;(n=t||(c||u))||"production"===process.env.NODE_ENV||An({htmlContent:f,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),a=/number|range/.test(i)?(r=parseFloat(l),isNaN(r)?"":r):/checkbox/.test(i)?function(e,t,r){if("boolean"==typeof e)return Boolean(t);var n=[],a=!1,o=-1;if(Array.isArray(e))n=e,a=(o=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);if(t&&r&&!a)return n.concat(r);if(!a)return n;return n.slice(0,o).concat(n.slice(o+1))}(yn(w.values,n),s,l):d&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(d):l}n&&U(n,a)}),[U,w.values]),B=Fn((function(e){if(pn(e))return function(t){return z(t,e)};z(e)})),W=Fn((function(e,t,r){return void 0===t&&(t=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?o:r)?C(w.values):Promise.resolve()})),G=d((function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,a=r.id,o=r.outerHTML,i=t||(n||a);i||"production"===process.env.NODE_ENV||An({htmlContent:o,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),W(i,!0)}),[W]),H=Fn((function(e){if(pn(e))return function(t){return G(t,e)};G(e)})),q=d((function(e){sn(e)?A({type:"SET_FORMIK_STATE",payload:e}):A({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),K=d((function(e){A({type:"SET_STATUS",payload:e})}),[]),Y=d((function(e){A({type:"SET_ISSUBMITTING",payload:e})}),[]),X=Fn((function(){return A({type:"SUBMIT_ATTEMPT"}),C().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=Z()))return}catch(e){throw e}return Promise.resolve(r).then((function(e){return S.current&&A({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(S.current)throw A({type:"SUBMIT_FAILURE"}),e}))}if(S.current&&(A({type:"SUBMIT_FAILURE"}),t))throw e}))})),J=Fn((function(e){if(e&&e.preventDefault&&sn(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&sn(e.stopPropagation)&&e.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var t=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}();null!==t&&t instanceof HTMLButtonElement&&(t.attributes&&t.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?Xr(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):Xr(!1)))}X().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),Q={resetForm:P,validateForm:C,validateField:k,setErrors:D,setFieldError:L,setFieldTouched:W,setFieldValue:U,setStatus:K,setSubmitting:Y,setTouched:R,setValues:V,setFormikState:q,submitForm:X},Z=Fn((function(){return v(w.values,Q)})),ee=Fn((function(e){e&&e.preventDefault&&sn(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&sn(e.stopPropagation)&&e.stopPropagation(),P()})),te=d((function(e){return{value:yn(w.values,e),error:yn(w.errors,e),touched:!!yn(w.touched,e),initialValue:yn(b.current,e),initialTouched:!!yn(E.current,e),initialError:yn(g.current,e)}}),[w.errors,w.touched,w.values]),re=d((function(e){return{setValue:function(t,r){return U(e,t,r)},setTouched:function(t,r){return W(e,t,r)},setError:function(t){return L(e,t)}}}),[U,W,L]),ne=d((function(e){var t=fn(e),r=t?e.name:e,n=yn(w.values,r),a={name:r,value:n,onChange:B,onBlur:H};if(t){var o=e.type,i=e.value,c=e.as,u=e.multiple;"checkbox"===o?void 0===i?a.checked=!!n:(a.checked=!(!Array.isArray(n)||!~n.indexOf(i)),a.value=i):"radio"===o?(a.checked=n===i,a.value=i):"select"===c&&u&&(a.value=a.value||[],a.multiple=!0)}return a}),[H,B,w.values]),ae=r((function(){return!fe(b.current,w.values)}),[b.current,w.values]),oe=r((function(){return void 0!==l?ae?w.errors&&0===Object.keys(w.errors).length:!1!==l&&sn(l)?l(h):l:w.errors&&0===Object.keys(w.errors).length}),[l,ae,w.errors,h]);return on({},w,{initialValues:b.current,initialErrors:g.current,initialTouched:E.current,initialStatus:j.current,handleBlur:H,handleChange:B,handleReset:ee,handleSubmit:J,resetForm:P,setErrors:D,setFormikState:q,setFieldTouched:W,setFieldValue:U,setFieldError:L,setStatus:K,setSubmitting:Y,setTouched:R,setValues:V,submitForm:X,validateForm:C,validateField:k,isValid:oe,dirty:ae,unregisterField:M,registerField:$,getFieldProps:ne,getFieldMeta:te,getFieldHelpers:re,validateOnBlur:o,validateOnChange:n,validateOnMount:c})}function wn(e){var t=On(e),r=e.component,n=e.children,a=e.render,i=e.innerRef;return c(i,(function(){return t})),"production"!==process.env.NODE_ENV&&u((function(){e.render&&("production"!==process.env.NODE_ENV?Xr(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):Xr(!1))}),[]),o(En,{value:t},r?o(r,t):a?a(t):n?sn(n)?n(t):mn(n)?null:l.only(n):null)}function An(e){var t=e.htmlContent,r=e.documentationAnchorLink,n=e.handlerName;console.warn("Warning: Formik called `"+n+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+r+"\n ")}function xn(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map((function(e){return!0===Array.isArray(e)||Re(e)?xn(e):""!==e?e:void 0})):Re(e[n])?t[n]=xn(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function Tn(e,t,r){var n=e.slice();return t.forEach((function(t,a){if(void 0===n[a]){var o=!1!==r.clone&&r.isMergeableObject(t);n[a]=o?he(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[a]=he(e[a],t,r):-1===e.indexOf(t)&&n.push(t)})),n}var Nn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?m:u;function Fn(e){var t=s(e);return Nn((function(){t.current=e})),d((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(void 0,r)}),[])}a((function(e,t){var r,n=e.action,a=cn(e,["action"]),c=null!=n?n:"#",u=((r=i(gn))||("production"!==process.env.NODE_ENV?Xr(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):Xr(!1)),r),l=u.handleReset,s=u.handleSubmit;return o("form",Object.assign({onSubmit:s,ref:t,onReset:l,action:c},a))})).displayName="Form";var In=function(e,t,r){var n=Cn(e);return n.splice(t,0,r),n},Cn=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(on({},e,{length:t+1}))}return[]},Pn=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var a=r.props,o=a.name;(0,a.formik.setFormikState)((function(r){var a="function"==typeof n?n:e,i="function"==typeof t?t:e,c=hn(r.values,o,e(yn(r.values,o))),u=n?a(yn(r.errors,o)):void 0,l=t?i(yn(r.touched,o)):void 0;return ln(u)&&(u=void 0),ln(l)&&(l=void 0),on({},r,{values:c,errors:n?hn(r.errors,o,u):r.errors,touched:t?hn(r.touched,o,l):r.touched})}))},r.push=function(e){return r.updateArrayField((function(t){return[].concat(Cn(t),[an(e)])}),!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Cn(e),a=n[t];return n[t]=n[r],n[r]=a,n}(r,e,t)}),!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Cn(e),a=n[t];return n.splice(t,1),n.splice(r,0,a),n}(r,e,t)}),!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField((function(r){return In(r,e,t)}),(function(t){return In(t,e,null)}),(function(t){return In(t,e,null)}))},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=Cn(e);return n[t]=r,n}(r,e,t)}),!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField((function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r})),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(un(r)),r.pop=r.pop.bind(un(r)),r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!fe(yn(e.formik.values,e.name),yn(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},a.remove=function(e){var t;return this.updateArrayField((function(r){var n=r?Cn(r):[];return t||(t=n[e]),sn(n.splice)&&n.splice(e,1),n}),!0,!0),t},a.pop=function(){var e;return this.updateArrayField((function(t){var r=t;return e||(e=r&&r.pop&&r.pop()),r}),!0,!0),e},a.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,n=t.render,a=t.children,i=t.name,c=on({},e,{form:cn(t.formik,["validate","validationSchema"]),name:i});return r?o(r,c):n?n(c):a?"function"==typeof a?a(c):mn(a)?null:l.only(a):null},n}(p);Pn.defaultProps={validateOnChange:!0};const kn=e=>t=>{var r,n;const a={};for(const[o,i]of Object.entries(e)){if("password"===i.type&&(null===(r=i.confirmPassword)||void 0===r?void 0:r.addField)&&t[o]!==t.confirmPassword&&(a.confirmPassword=i.confirmPassword.errorMessage),!i.validation)continue;if((null===(n=i.validation.required)||void 0===n?void 0:n.value)&&!t[o]){a[o]=i.validation.required.message;continue}if("checkbox"===e[o].type)continue;const c=t[o],{pattern:u,minLength:l}=i.validation;!u||u.value.test(c)?l&&c.length<l.value&&(a[o]=l.message):a[o]=u.message}return a},$n=({formSchema:t,onSubmit:r,SubmitButton:n})=>{const a=Object.entries(t).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t[0]]:t[1].initialValue})),{});return e.createElement(wn,{initialValues:a,onSubmit:e=>{const t=e,n="confirmPassword";t[n];const a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(t,[n+""]);r(a)},validate:kn(t)},(({handleSubmit:r,values:a,handleChange:o,touched:i,errors:c})=>e.createElement("form",{noValidate:!0,onSubmit:r,className:"uag uag-form"},e.createElement(y,{className:"uag uag-form-stack",spacing:1},Object.entries(t).map((([t,r])=>{var n,u,l,s,f;const d={fullWidth:!0,id:t,name:t,label:`${r.label}${(null===(u=null===(n=r.validation)||void 0===n?void 0:n.required)||void 0===u?void 0:u.value)?"*":""}`,type:r.type,value:a[t],onChange:o,error:i[t]&&Boolean(c[t]),helperText:i[t]&&c[t]};return"password"===r.type?e.createElement(y,{className:"uag uag-pwd-container",key:t,spacing:1},e.createElement(h,Object.assign({},d,{className:"uag uag-form-text uag-form-text-password"})),(null===(l=r.confirmPassword)||void 0===l?void 0:l.addField)?e.createElement(h,{name:"confirmPassword",label:`${r.confirmPassword.label}${(null===(f=null===(s=r.validation)||void 0===s?void 0:s.required)||void 0===f?void 0:f.value)?"*":""}`,onChange:o,value:a.confirmPassword,error:i.confirmPassword&&Boolean(c.confirmPassword),helperText:i.confirmPassword&&c.confirmPassword,fullWidth:!0,type:"password",className:"uag uag-form-text uag-form-text-password uag-form-text-password-confirmation"}):null):"checkbox"===r.type?e.createElement(b,{key:t,fullWidth:!0,error:d.error,className:"uag uag-form-checkbox uag-form-checkbox-control"},e.createElement(g,{control:e.createElement(E,{name:t,value:a[t],onChange:o,defaultChecked:r.initialValue,className:"uag uag-form-checkbox"}),label:r.label}),d.helperText&&e.createElement(j,{className:"uag uag-form-helper-txt uag-form-checkbox-helper-txt"},d.helperText)):"list"===r.type?e.createElement(b,{error:d.error,fullWidth:!0,key:t},e.createElement(S,{id:"uag-form-list-label"},r.label),e.createElement(_,{labelId:"uag-form-list-label",name:t,onChange:o,value:a[t],label:r.label},r.options.map((({value:t,label:r})=>e.createElement(O,{key:t,value:t},r)))),d.helperText&&e.createElement(j,{className:"uag uag-form-helper-txt uag-form-list-helper-txt"},d.helperText)):e.createElement(h,Object.assign({key:t},d,{className:"uag uag-form-text"}))})),e.createElement("div",{className:"uag uag-form-btn-container"},e.createElement(n.type,Object.assign({},n.props,{type:"submit"})))))))};var Mn=Object.freeze({__proto__:null});export{C as Avatar,oe as AvatarEditor,$n as Form,Mn as FormTypes,H as ItemSelector};
//# sourceMappingURL=index.js.map
export { default as Avatar } from "./Avatar";
export { default as AvatarEditor } from "./AvatarEditor";
export { default as ItemSelector } from "./ItemSelector";

@@ -3,0 +4,0 @@ export { default as Form } from "./Form";

@@ -28,2 +28,16 @@ /// <reference types="react" />

declare type Props$2 = {
endpoint: string;
hairModelCodes: number[];
noseModelCodes: number[];
eyesModelCodes: number[];
mouthModelCodes: number[];
pencilModelCodes: number[];
bodyModelCodes: number[];
onChange: (avatar: MappedAvatar) => void;
initialAvatar?: MappedAvatar;
};
declare const AvatarEditor: ({ endpoint, hairModelCodes, noseModelCodes, eyesModelCodes, mouthModelCodes, pencilModelCodes, bodyModelCodes, onChange, initialAvatar, }: Props$2) => JSX.Element;
//# sourceMappingURL=AvatarEditor.d.ts.map
declare type Props$1 = {

@@ -128,2 +142,2 @@ urlList: string[];

export { Avatar, Form, types_d as FormTypes, ItemSelector };
export { Avatar, AvatarEditor, Form, types_d as FormTypes, ItemSelector };

2

package.json
{
"name": "@upandgo/ui-components",
"version": "1.4.2",
"version": "1.4.3",
"description": "Upandgo reusable UI components",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc