New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@duely/react-form

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@duely/react-form - npm Package Compare versions

Comparing version 0.4.20 to 0.4.21

2

dist/index.js

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

!function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a(require("react")):"function"==typeof define&&define.amd?define(["react"],a):"object"==typeof exports?exports["@duely/react-form"]=a(require("react")):e["@duely/react-form"]=a(e.react)}(this,(function(e){return(()=>{var a={67:function(e){e.exports=(()=>{"use strict";var e={d:(a,i)=>{for(var n in i)e.o(i,n)&&!e.o(a,n)&&Object.defineProperty(a,n,{enumerable:!0,get:i[n]})},o:(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},a={};function i(e){const a=e.toString(16);return 1===a.length?"0"+a:a}function n(e){return parseInt(e,16)}function o(...e){return Array.from(new Set(e.filter(b).join(" ").split(" ").filter((e=>!!e)))).join(" ")}function t(e){return e<1e3?`${e.toFixed(0)}B`:(e/=1e3)<1e3?`${e.toPrecision(3)}KB`:(e/=1e3)<1e3?`${e.toPrecision(3)}MB`:(e/=1e3)<1e3?`${e.toPrecision(3)}GB`:void 0}function c(e){const a=e.match(/\b\w/g)||[];return((a.shift()||"")+(a.pop()||"")).toUpperCase()}function r(e,a){null!=e||(e=32),null!=a||(a=l(a));const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let o=0;o<e;++o)n+=i[Math.floor(l(a+o)*i.length)];return n}function l(e){const a=1e4*Math.sin(e||Math.random());return a-Math.floor(a)}function d(e,a){const i=Math.exp(-e);let n=1,o=0;a=null!=a?a:Math.random;do{o++,n*=a()}while(n>i);return o-1}function m(e,a){return(null==e?void 0:e.length)>a?e.substring(0,a).trimEnd()+"...":e}function s(e){return e&&e.charAt(0).toUpperCase()+e.substring(1)}function u(e){return e.slice(5,e.indexOf(";"))}function f(e,a){return Object.fromEntries(Object.entries(e).filter((([e,i])=>(null==a?void 0:a[e])!==i)))}function h(e,a){return("string"==typeof a?a.split("."):a).reduce(((e,a)=>null==e?void 0:e[a]),e)}function p(e,a){return e.replace(/{(.*?)}/g,((e,i)=>{var n,o;return null!==(o=null===(n=h(a,i.trim()))||void 0===n?void 0:n.toString())&&void 0!==o?o:i}))}function N(e){var a=e.split(".").map((e=>parseInt(e,10)));return 4===a.length&&!a.some(isNaN)&&(10===a[0]||172===a[0]&&a[1]>=16&&a[1]<=31||192===a[0]&&168===a[1])}function M(e){return Object.fromEntries(Object.entries(e).filter((e=>void 0!==e[1])))}function S(e,a){return M(f(I(a,e),e))}function v(e,a){return e===Object(e)&&Object.prototype.hasOwnProperty.call(e,a)}function g(e,a){return e===Object(e)&&a in e}function y(e){return"function"==typeof e}function b(e){return"string"==typeof e}function A(e,a){var i;return"function"==typeof(null===(i=e)||void 0===i?void 0:i[a])}function C(e,...a){return i=this,void 0,o=function*(){return yield y(e)?e(...a):e},new((n=void 0)||(n=Promise))((function(e,a){function t(e){try{r(o.next(e))}catch(e){a(e)}}function c(e){try{r(o.throw(e))}catch(e){a(e)}}function r(a){var i;a.done?e(a.value):(i=a.value,i instanceof n?i:new n((function(e){e(i)}))).then(t,c)}r((o=o.apply(i,[])).next())}));var i,n,o}function T(e){return e}function G(e,...a){return(...i)=>{const n=[...a,...i];return e(...n)}}function I(e,a){const i=Array.isArray(a)?a:Object.keys(a),n={};for(const a of i)n[a]=e[a];return n}function E(e){const a=new Map;return(...i)=>{let n=a;const o=i.length-1;if(-1===o){if(n.has(o))return n.get(o);{const a=e(...i);return n.set(o,a),a}}let t=n.get(o);void 0===t&&(t=new Map,n.set(o,t)),n=t;for(let e=0;e<o;++e){const a=i[e];t=n.get(a),void 0===t&&(t=new Map,n.set(a,t)),n=t}const c=i[o];if(n.has(c))return n.get(c);{const a=e(...i);return n.set(c,a),a}}}function B(e,...a){let i,n=!1;const o=new Map;function t(){return n||(n=!0,i=e(...a)),i}return new Proxy(e,{get(e,a,i){const n=t(),c=Reflect.get(n,a,i===e?n:i);if("function"!=typeof c)return c;let r=o.get(c);return void 0===r&&(r=c.bind(n),o.set(c,r)),r},set(e,a,i,n){const o=t();return Reflect.set(o,a,i,n===e?o:n)},apply(e,a,...i){const n=t();Reflect.apply(n,a===e?n:a,...i)},construct:(e,...a)=>Reflect.construct(t(),...a),defineProperty:(e,...a)=>Reflect.defineProperty(t(),...a),deleteProperty:(e,...a)=>Reflect.deleteProperty(t(),...a),getOwnPropertyDescriptor:(e,...a)=>Reflect.getOwnPropertyDescriptor(t(),...a),getPrototypeOf:(e,...a)=>Reflect.getPrototypeOf(t(),...a),has:(e,...a)=>Reflect.has(t(),...a),isExtensible:(e,...a)=>Reflect.isExtensible(t(),...a),ownKeys:(e,...a)=>Reflect.ownKeys(t(),...a),preventExtensions:(e,...a)=>Reflect.preventExtensions(t(),...a),setPrototypeOf:(e,...a)=>Reflect.setPrototypeOf(t(),...a)})}e.r(a),e.d(a,{byteToHex:()=>i,countryFromCode:()=>L,createClassName:()=>o,createUpdateArgs:()=>S,dataUriFromSvg:()=>O,dateToTimestamp:()=>Z,diff:()=>f,formatCurrency:()=>U,formatDate:()=>Y,formatFileSize:()=>t,getNameInitials:()=>c,getPathValue:()=>h,hasMethod:()=>A,hasOwnProperty:()=>v,hasProperty:()=>g,hex2hsl:()=>k,hex2rgb:()=>K,hexToByte:()=>n,hsl2rgb:()=>D,identity:()=>T,isFunction:()=>y,isPrivateIp:()=>N,isString:()=>b,lazy:()=>B,memo:()=>E,mimeTypeFromDataUrl:()=>u,minorCurrencyAmountToNumber:()=>w,numberToMinorCurrencyAmount:()=>R,omitUndefined:()=>M,partial:()=>G,pick:()=>I,poisson:()=>d,pseudoRandom:()=>l,push:()=>J,randomKey:()=>r,remove:()=>z,removeAt:()=>j,resolve:()=>C,rgb2hsl:()=>W,sentenceCase:()=>s,set:()=>$,template:()=>p,timestampToDate:()=>H,truncate:()=>m});const P=new Set(["BIF","CLP","DJF","GNF","JPY","KMF","KRW","MGA","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"]);function R(e,a){return a=a.toUpperCase(),P.has(a)?e:Math.floor(100*e)}function w(e,a){return a=a.toUpperCase(),P.has(a)?e:e/100}function U(e,a,i){const n=w(e,a=a.toUpperCase());return new Intl.NumberFormat(i,{currency:a,currencySign:"accounting",style:"currency"}).format(n)}function V(e){const a=e[0].codePointAt(0),i=e[1].codePointAt(0);return String.fromCodePoint(a+127462-65,i+127462-65)}let F;function L(e){return Object.assign({flag:V(e)},F[e])}function O(e){return"data:image/svg+xml;base64,"+btoa(e)}function D(e,a,i){const n=a*Math.min(i,1-i),o=(a,o=(a+e/30)%12)=>i-n*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)].map((e=>Math.ceil(255*e)))}function K(e){let a,i,o,t=1;switch(e.length){case 5:t=n(e[4].repeat(2))/256;case 4:a=n(e[1].repeat(2)),i=n(e[2].repeat(2)),o=n(e[3].repeat(2));break;case 8:t=n(e.substr(7,2))/256;case 7:a=n(e.substr(1,2)),i=n(e.substr(3,2)),o=n(e.substr(5,2));break;default:throw Error("Value is not a hexadecimal color code.")}return[a,i,o,t]}function k(e){return W(...K(e))}function W(e,a,i,n){e/=255,a/=255,i/=255;const o=Math.max(e,a,i),t=o-Math.min(e,a,i),c=1-Math.abs(o+o-t-1),r=t&&(o===e?(a-i)/t:o===a?2+(i-e)/t:4+(e-a)/t);return[60*(r<0?r+6:r),c?t/c:0,(o+o-t)/2,n]}function H(e){return void 0===e?void 0:null===e?null:new Date(1e3*e)}function Z(e){return void 0===e?void 0:null===e?null:Math.round(e.getTime()/1e3)}F={AF:{code:"AF",officialName:"Afghanistan",alpha3code:"AFG",numeric:"004",name:"Afghanistan"},AL:{code:"AL",officialName:"Albania",alpha3code:"ALB",numeric:"008",name:"Albania"},DZ:{code:"DZ",officialName:"Algeria",alpha3code:"DZA",numeric:"012",name:"Algeria"},AS:{code:"AS",officialName:"American Samoa",alpha3code:"ASM",numeric:"016",name:"American Samoa"},AD:{code:"AD",officialName:"Andorra",alpha3code:"AND",numeric:"020",name:"Andorra"},AO:{code:"AO",officialName:"Angola",alpha3code:"AGO",numeric:"024",name:"Angola"},AI:{code:"AI",officialName:"Anguilla",alpha3code:"AIA",numeric:"660",name:"Anguilla"},AQ:{code:"AQ",officialName:"Antarctica",alpha3code:"ATA",numeric:"010",name:"Antarctica"},AG:{code:"AG",officialName:"Antigua and Barbuda",alpha3code:"ATG",numeric:"028",name:"Antigua & Barbuda"},AR:{code:"AR",officialName:"Argentina",alpha3code:"ARG",numeric:"032",name:"Argentina"},AM:{code:"AM",officialName:"Armenia",alpha3code:"ARM",numeric:"051",name:"Armenia"},AW:{code:"AW",officialName:"Aruba",alpha3code:"ABW",numeric:"533",name:"Aruba"},AU:{code:"AU",officialName:"Australia",alpha3code:"AUS",numeric:"036",name:"Australia"},AT:{code:"AT",officialName:"Austria",alpha3code:"AUT",numeric:"040",name:"Austria"},AZ:{code:"AZ",officialName:"Azerbaijan",alpha3code:"AZE",numeric:"031",name:"Azerbaijan"},BS:{code:"BS",officialName:"Bahamas (the)",alpha3code:"BHS",numeric:"044",name:"Bahamas"},BH:{code:"BH",officialName:"Bahrain",alpha3code:"BHR",numeric:"048",name:"Bahrain"},BD:{code:"BD",officialName:"Bangladesh",alpha3code:"BGD",numeric:"050",name:"Bangladesh"},BB:{code:"BB",officialName:"Barbados",alpha3code:"BRB",numeric:"052",name:"Barbados"},BY:{code:"BY",officialName:"Belarus",alpha3code:"BLR",numeric:"112",name:"Belarus"},BE:{code:"BE",officialName:"Belgium",alpha3code:"BEL",numeric:"056",name:"Belgium"},BZ:{code:"BZ",officialName:"Belize",alpha3code:"BLZ",numeric:"084",name:"Belize"},BJ:{code:"BJ",officialName:"Benin",alpha3code:"BEN",numeric:"204",name:"Benin"},BM:{code:"BM",officialName:"Bermuda",alpha3code:"BMU",numeric:"060",name:"Bermuda"},BT:{code:"BT",officialName:"Bhutan",alpha3code:"BTN",numeric:"064",name:"Bhutan"},BO:{code:"BO",officialName:"Bolivia (Plurinational State of)",alpha3code:"BOL",numeric:"068",name:"Bolivia"},BQ:{code:"BQ",officialName:"Bonaire, Sint Eustatius and Saba",alpha3code:"BES",numeric:"535",name:"Caribbean Netherlands"},BA:{code:"BA",officialName:"Bosnia and Herzegovina",alpha3code:"BIH",numeric:"070",name:"Bosnia & Herzegovina"},BW:{code:"BW",officialName:"Botswana",alpha3code:"BWA",numeric:"072",name:"Botswana"},BV:{code:"BV",officialName:"Bouvet Island",alpha3code:"BVT",numeric:"074",name:"Bouvet Island"},BR:{code:"BR",officialName:"Brazil",alpha3code:"BRA",numeric:"076",name:"Brazil"},IO:{code:"IO",officialName:"British Indian Ocean Territory (the)",alpha3code:"IOT",numeric:"086",name:"British Indian Ocean Territory"},BN:{code:"BN",officialName:"Brunei Darussalam",alpha3code:"BRN",numeric:"096",name:"Brunei"},BG:{code:"BG",officialName:"Bulgaria",alpha3code:"BGR",numeric:"100",name:"Bulgaria"},BF:{code:"BF",officialName:"Burkina Faso",alpha3code:"BFA",numeric:"854",name:"Burkina Faso"},BI:{code:"BI",officialName:"Burundi",alpha3code:"BDI",numeric:"108",name:"Burundi"},CV:{code:"CV",officialName:"Cabo Verde",alpha3code:"CPV",numeric:"132",name:"Cape Verde"},KH:{code:"KH",officialName:"Cambodia",alpha3code:"KHM",numeric:"116",name:"Cambodia"},CM:{code:"CM",officialName:"Cameroon",alpha3code:"CMR",numeric:"120",name:"Cameroon"},CA:{code:"CA",officialName:"Canada",alpha3code:"CAN",numeric:"124",name:"Canada"},KY:{code:"KY",officialName:"Cayman Islands (the)",alpha3code:"CYM",numeric:"136",name:"Cayman Islands"},CF:{code:"CF",officialName:"Central African Republic (the)",alpha3code:"CAF",numeric:"140",name:"Central African Republic"},TD:{code:"TD",officialName:"Chad",alpha3code:"TCD",numeric:"148",name:"Chad"},CL:{code:"CL",officialName:"Chile",alpha3code:"CHL",numeric:"152",name:"Chile"},CN:{code:"CN",officialName:"China",alpha3code:"CHN",numeric:"156",name:"China"},CX:{code:"CX",officialName:"Christmas Island",alpha3code:"CXR",numeric:"162",name:"Christmas Island"},CC:{code:"CC",officialName:"Cocos (Keeling) Islands (the)",alpha3code:"CCK",numeric:"166",name:"Cocos Keeling Islands"},CO:{code:"CO",officialName:"Colombia",alpha3code:"COL",numeric:"170",name:"Colombia"},KM:{code:"KM",officialName:"Comoros (the)",alpha3code:"COM",numeric:"174",name:"Comoros"},CD:{code:"CD",officialName:"Congo (the Democratic Republic of the)",alpha3code:"COD",numeric:"180",name:"Congo - Kinshasa"},CG:{code:"CG",officialName:"Congo (the)",alpha3code:"COG",numeric:"178",name:"Congo - Brazzaville"},CK:{code:"CK",officialName:"Cook Islands (the)",alpha3code:"COK",numeric:"184",name:"Cook Islands"},CR:{code:"CR",officialName:"Costa Rica",alpha3code:"CRI",numeric:"188",name:"Costa Rica"},HR:{code:"HR",officialName:"Croatia",alpha3code:"HRV",numeric:"191",name:"Croatia"},CU:{code:"CU",officialName:"Cuba",alpha3code:"CUB",numeric:"192",name:"Cuba"},CW:{code:"CW",officialName:"Curaçao",alpha3code:"CUW",numeric:"531",name:"Curaçao"},CY:{code:"CY",officialName:"Cyprus",alpha3code:"CYP",numeric:"196",name:"Cyprus"},CZ:{code:"CZ",officialName:"Czechia",alpha3code:"CZE",numeric:"203",name:"Czechia"},CI:{code:"CI",officialName:"Côte d'Ivoire",alpha3code:"CIV",numeric:"384",name:"Côte d’Ivoire"},DK:{code:"DK",officialName:"Denmark",alpha3code:"DNK",numeric:"208",name:"Denmark"},DJ:{code:"DJ",officialName:"Djibouti",alpha3code:"DJI",numeric:"262",name:"Djibouti"},DM:{code:"DM",officialName:"Dominica",alpha3code:"DMA",numeric:"212",name:"Dominica"},DO:{code:"DO",officialName:"Dominican Republic (the)",alpha3code:"DOM",numeric:"214",name:"Dominican Republic"},EC:{code:"EC",officialName:"Ecuador",alpha3code:"ECU",numeric:"218",name:"Ecuador"},EG:{code:"EG",officialName:"Egypt",alpha3code:"EGY",numeric:"818",name:"Egypt"},SV:{code:"SV",officialName:"El Salvador",alpha3code:"SLV",numeric:"222",name:"El Salvador"},GQ:{code:"GQ",officialName:"Equatorial Guinea",alpha3code:"GNQ",numeric:"226",name:"Equatorial Guinea"},ER:{code:"ER",officialName:"Eritrea",alpha3code:"ERI",numeric:"232",name:"Eritrea"},EE:{code:"EE",officialName:"Estonia",alpha3code:"EST",numeric:"233",name:"Estonia"},SZ:{code:"SZ",officialName:"Eswatini",alpha3code:"SWZ",numeric:"748",name:"Eswatini"},ET:{code:"ET",officialName:"Ethiopia",alpha3code:"ETH",numeric:"231",name:"Ethiopia"},FK:{code:"FK",officialName:"Falkland Islands (the) [Malvinas]",alpha3code:"FLK",numeric:"238",name:"Falkland Islands"},FO:{code:"FO",officialName:"Faroe Islands (the)",alpha3code:"FRO",numeric:"234",name:"Faroe Islands"},FJ:{code:"FJ",officialName:"Fiji",alpha3code:"FJI",numeric:"242",name:"Fiji"},FI:{code:"FI",officialName:"Finland",alpha3code:"FIN",numeric:"246",name:"Finland"},FR:{code:"FR",officialName:"France",alpha3code:"FRA",numeric:"250",name:"France"},GF:{code:"GF",officialName:"French Guiana",alpha3code:"GUF",numeric:"254",name:"French Guiana"},PF:{code:"PF",officialName:"French Polynesia",alpha3code:"PYF",numeric:"258",name:"French Polynesia"},TF:{code:"TF",officialName:"French Southern Territories (the)",alpha3code:"ATF",numeric:"260",name:"French Southern Territories"},GA:{code:"GA",officialName:"Gabon",alpha3code:"GAB",numeric:"266",name:"Gabon"},GM:{code:"GM",officialName:"Gambia (the)",alpha3code:"GMB",numeric:"270",name:"Gambia"},GE:{code:"GE",officialName:"Georgia",alpha3code:"GEO",numeric:"268",name:"Georgia"},DE:{code:"DE",officialName:"Germany",alpha3code:"DEU",numeric:"276",name:"Germany"},GH:{code:"GH",officialName:"Ghana",alpha3code:"GHA",numeric:"288",name:"Ghana"},GI:{code:"GI",officialName:"Gibraltar",alpha3code:"GIB",numeric:"292",name:"Gibraltar"},GR:{code:"GR",officialName:"Greece",alpha3code:"GRC",numeric:"300",name:"Greece"},GL:{code:"GL",officialName:"Greenland",alpha3code:"GRL",numeric:"304",name:"Greenland"},GD:{code:"GD",officialName:"Grenada",alpha3code:"GRD",numeric:"308",name:"Grenada"},GP:{code:"GP",officialName:"Guadeloupe",alpha3code:"GLP",numeric:"312",name:"Guadeloupe"},GU:{code:"GU",officialName:"Guam",alpha3code:"GUM",numeric:"316",name:"Guam"},GT:{code:"GT",officialName:"Guatemala",alpha3code:"GTM",numeric:"320",name:"Guatemala"},GG:{code:"GG",officialName:"Guernsey",alpha3code:"GGY",numeric:"831",name:"Guernsey"},GN:{code:"GN",officialName:"Guinea",alpha3code:"GIN",numeric:"324",name:"Guinea"},GW:{code:"GW",officialName:"Guinea-Bissau",alpha3code:"GNB",numeric:"624",name:"Guinea-Bissau"},GY:{code:"GY",officialName:"Guyana",alpha3code:"GUY",numeric:"328",name:"Guyana"},HT:{code:"HT",officialName:"Haiti",alpha3code:"HTI",numeric:"332",name:"Haiti"},HM:{code:"HM",officialName:"Heard Island and McDonald Islands",alpha3code:"HMD",numeric:"334",name:"Heard Island and McDonald Islands"},VA:{code:"VA",officialName:"Holy See (the)",alpha3code:"VAT",numeric:"336",name:"Vatican City"},HN:{code:"HN",officialName:"Honduras",alpha3code:"HND",numeric:"340",name:"Honduras"},HK:{code:"HK",officialName:"Hong Kong",alpha3code:"HKG",numeric:"344",name:"Hong Kong SAR China"},HU:{code:"HU",officialName:"Hungary",alpha3code:"HUN",numeric:"348",name:"Hungary"},IS:{code:"IS",officialName:"Iceland",alpha3code:"ISL",numeric:"352",name:"Iceland"},IN:{code:"IN",officialName:"India",alpha3code:"IND",numeric:"356",name:"India"},ID:{code:"ID",officialName:"Indonesia",alpha3code:"IDN",numeric:"360",name:"Indonesia"},IR:{code:"IR",officialName:"Iran (Islamic Republic of)",alpha3code:"IRN",numeric:"364",name:"Iran"},IQ:{code:"IQ",officialName:"Iraq",alpha3code:"IRQ",numeric:"368",name:"Iraq"},IE:{code:"IE",officialName:"Ireland",alpha3code:"IRL",numeric:"372",name:"Ireland"},IM:{code:"IM",officialName:"Isle of Man",alpha3code:"IMN",numeric:"833",name:"Isle of Man"},IL:{code:"IL",officialName:"Israel",alpha3code:"ISR",numeric:"376",name:"Israel"},IT:{code:"IT",officialName:"Italy",alpha3code:"ITA",numeric:"380",name:"Italy"},JM:{code:"JM",officialName:"Jamaica",alpha3code:"JAM",numeric:"388",name:"Jamaica"},JP:{code:"JP",officialName:"Japan",alpha3code:"JPN",numeric:"392",name:"Japan"},JE:{code:"JE",officialName:"Jersey",alpha3code:"JEY",numeric:"832",name:"Jersey"},JO:{code:"JO",officialName:"Jordan",alpha3code:"JOR",numeric:"400",name:"Jordan"},KZ:{code:"KZ",officialName:"Kazakhstan",alpha3code:"KAZ",numeric:"398",name:"Kazakhstan"},KE:{code:"KE",officialName:"Kenya",alpha3code:"KEN",numeric:"404",name:"Kenya"},KI:{code:"KI",officialName:"Kiribati",alpha3code:"KIR",numeric:"296",name:"Kiribati"},KP:{code:"KP",officialName:"Korea (the Democratic People's Republic of)",alpha3code:"PRK",numeric:"408",name:"North Korea"},KR:{code:"KR",officialName:"Korea (the Republic of)",alpha3code:"KOR",numeric:"410",name:"Republic of Korea"},KW:{code:"KW",officialName:"Kuwait",alpha3code:"KWT",numeric:"414",name:"Kuwait"},KG:{code:"KG",officialName:"Kyrgyzstan",alpha3code:"KGZ",numeric:"417",name:"Kyrgyzstan"},LA:{code:"LA",officialName:"Lao People's Democratic Republic (the)",alpha3code:"LAO",numeric:"418",name:"Laos"},LV:{code:"LV",officialName:"Latvia",alpha3code:"LVA",numeric:"428",name:"Latvia"},LB:{code:"LB",officialName:"Lebanon",alpha3code:"LBN",numeric:"422",name:"Lebanon"},LS:{code:"LS",officialName:"Lesotho",alpha3code:"LSO",numeric:"426",name:"Lesotho"},LR:{code:"LR",officialName:"Liberia",alpha3code:"LBR",numeric:"430",name:"Liberia"},LY:{code:"LY",officialName:"Libya",alpha3code:"LBY",numeric:"434",name:"Libya"},LI:{code:"LI",officialName:"Liechtenstein",alpha3code:"LIE",numeric:"438",name:"Liechtenstein"},LT:{code:"LT",officialName:"Lithuania",alpha3code:"LTU",numeric:"440",name:"Lithuania"},LU:{code:"LU",officialName:"Luxembourg",alpha3code:"LUX",numeric:"442",name:"Luxembourg"},MO:{code:"MO",officialName:"Macao",alpha3code:"MAC",numeric:"446",name:"Macao SAR China"},MG:{code:"MG",officialName:"Madagascar",alpha3code:"MDG",numeric:"450",name:"Madagascar"},MW:{code:"MW",officialName:"Malawi",alpha3code:"MWI",numeric:"454",name:"Malawi"},MY:{code:"MY",officialName:"Malaysia",alpha3code:"MYS",numeric:"458",name:"Malaysia"},MV:{code:"MV",officialName:"Maldives",alpha3code:"MDV",numeric:"462",name:"Maldives"},ML:{code:"ML",officialName:"Mali",alpha3code:"MLI",numeric:"466",name:"Mali"},MT:{code:"MT",officialName:"Malta",alpha3code:"MLT",numeric:"470",name:"Malta"},MH:{code:"MH",officialName:"Marshall Islands (the)",alpha3code:"MHL",numeric:"584",name:"Marshall Islands"},MQ:{code:"MQ",officialName:"Martinique",alpha3code:"MTQ",numeric:"474",name:"Martinique"},MR:{code:"MR",officialName:"Mauritania",alpha3code:"MRT",numeric:"478",name:"Mauritania"},MU:{code:"MU",officialName:"Mauritius",alpha3code:"MUS",numeric:"480",name:"Mauritius"},YT:{code:"YT",officialName:"Mayotte",alpha3code:"MYT",numeric:"175",name:"Mayotte"},MX:{code:"MX",officialName:"Mexico",alpha3code:"MEX",numeric:"484",name:"Mexico"},FM:{code:"FM",officialName:"Micronesia (Federated States of)",alpha3code:"FSM",numeric:"583",name:"Micronesia"},MD:{code:"MD",officialName:"Moldova (the Republic of)",alpha3code:"MDA",numeric:"498",name:"Moldova"},MC:{code:"MC",officialName:"Monaco",alpha3code:"MCO",numeric:"492",name:"Monaco"},MN:{code:"MN",officialName:"Mongolia",alpha3code:"MNG",numeric:"496",name:"Mongolia"},ME:{code:"ME",officialName:"Montenegro",alpha3code:"MNE",numeric:"499",name:"Montenegro"},MS:{code:"MS",officialName:"Montserrat",alpha3code:"MSR",numeric:"500",name:"Montserrat"},MA:{code:"MA",officialName:"Morocco",alpha3code:"MAR",numeric:"504",name:"Morocco"},MZ:{code:"MZ",officialName:"Mozambique",alpha3code:"MOZ",numeric:"508",name:"Mozambique"},MM:{code:"MM",officialName:"Myanmar",alpha3code:"MMR",numeric:"104",name:"Myanmar (Burma)"},NA:{code:"NA",officialName:"Namibia",alpha3code:"NAM",numeric:"516",name:"Namibia"},NR:{code:"NR",officialName:"Nauru",alpha3code:"NRU",numeric:"520",name:"Nauru"},NP:{code:"NP",officialName:"Nepal",alpha3code:"NPL",numeric:"524",name:"Nepal"},NL:{code:"NL",officialName:"Netherlands (the)",alpha3code:"NLD",numeric:"528",name:"Netherlands"},NC:{code:"NC",officialName:"New Caledonia",alpha3code:"NCL",numeric:"540",name:"New Caledonia"},NZ:{code:"NZ",officialName:"New Zealand",alpha3code:"NZL",numeric:"554",name:"New Zealand"},NI:{code:"NI",officialName:"Nicaragua",alpha3code:"NIC",numeric:"558",name:"Nicaragua"},NE:{code:"NE",officialName:"Niger (the)",alpha3code:"NER",numeric:"562",name:"Niger"},NG:{code:"NG",officialName:"Nigeria",alpha3code:"NGA",numeric:"566",name:"Nigeria"},NU:{code:"NU",officialName:"Niue",alpha3code:"NIU",numeric:"570",name:"Niue"},NF:{code:"NF",officialName:"Norfolk Island",alpha3code:"NFK",numeric:"574",name:"Norfolk Island"},MP:{code:"MP",officialName:"Northern Mariana Islands (the)",alpha3code:"MNP",numeric:"580",name:"Northern Mariana Islands (the)"},NO:{code:"NO",officialName:"Norway",alpha3code:"NOR",numeric:"578",name:"Norway"},OM:{code:"OM",officialName:"Oman",alpha3code:"OMN",numeric:"512",name:"Oman"},PK:{code:"PK",officialName:"Pakistan",alpha3code:"PAK",numeric:"586",name:"Pakistan"},PW:{code:"PW",officialName:"Palau",alpha3code:"PLW",numeric:"585",name:"Palau"},PS:{code:"PS",officialName:"Palestine, State of",alpha3code:"PSE",numeric:"275",name:"Palestinian Territories"},PA:{code:"PA",officialName:"Panama",alpha3code:"PAN",numeric:"591",name:"Panama"},PG:{code:"PG",officialName:"Papua New Guinea",alpha3code:"PNG",numeric:"598",name:"Papua New Guinea"},PY:{code:"PY",officialName:"Paraguay",alpha3code:"PRY",numeric:"600",name:"Paraguay"},PE:{code:"PE",officialName:"Peru",alpha3code:"PER",numeric:"604",name:"Peru"},PH:{code:"PH",officialName:"Philippines (the)",alpha3code:"PHL",numeric:"608",name:"Philippines"},PN:{code:"PN",officialName:"Pitcairn",alpha3code:"PCN",numeric:"612",name:"Pitcairn Islands"},PL:{code:"PL",officialName:"Poland",alpha3code:"POL",numeric:"616",name:"Poland"},PT:{code:"PT",officialName:"Portugal",alpha3code:"PRT",numeric:"620",name:"Portugal"},PR:{code:"PR",officialName:"Puerto Rico",alpha3code:"PRI",numeric:"630",name:"Puerto Rico"},QA:{code:"QA",officialName:"Qatar",alpha3code:"QAT",numeric:"634",name:"Qatar"},MK:{code:"MK",officialName:"Republic of North Macedonia",alpha3code:"MKD",numeric:"807",name:"North Macedonia"},RO:{code:"RO",officialName:"Romania",alpha3code:"ROU",numeric:"642",name:"Romania"},RU:{code:"RU",officialName:"Russian Federation (the)",alpha3code:"RUS",numeric:"643",name:"Russia"},RW:{code:"RW",officialName:"Rwanda",alpha3code:"RWA",numeric:"646",name:"Rwanda"},RE:{code:"RE",officialName:"Réunion",alpha3code:"REU",numeric:"638",name:"Réunion"},BL:{code:"BL",officialName:"Saint Barthélemy",alpha3code:"BLM",numeric:"652",name:"St. Barthélemy"},SH:{code:"SH",officialName:"Saint Helena, Ascension and Tristan da Cunha",alpha3code:"SHN",numeric:"654",name:"St. Helena"},KN:{code:"KN",officialName:"Saint Kitts and Nevis",alpha3code:"KNA",numeric:"659",name:"St. Kitts & Nevis"},LC:{code:"LC",officialName:"Saint Lucia",alpha3code:"LCA",numeric:"662",name:"St. Lucia"},MF:{code:"MF",officialName:"Saint Martin (French part)",alpha3code:"MAF",numeric:"663",name:"St. Martin"},PM:{code:"PM",officialName:"Saint Pierre and Miquelon",alpha3code:"SPM",numeric:"666",name:"St. Pierre & Miquelon"},VC:{code:"VC",officialName:"Saint Vincent and the Grenadines",alpha3code:"VCT",numeric:"670",name:"St. Vincent & Grenadines"},WS:{code:"WS",officialName:"Samoa",alpha3code:"WSM",numeric:"882",name:"Samoa"},SM:{code:"SM",officialName:"San Marino",alpha3code:"SMR",numeric:"674",name:"San Marino"},ST:{code:"ST",officialName:"Sao Tome and Principe",alpha3code:"STP",numeric:"678",name:"São Tomé & Príncipe"},SA:{code:"SA",officialName:"Saudi Arabia",alpha3code:"SAU",numeric:"682",name:"Saudi Arabia"},SN:{code:"SN",officialName:"Senegal",alpha3code:"SEN",numeric:"686",name:"Senegal"},RS:{code:"RS",officialName:"Serbia",alpha3code:"SRB",numeric:"688",name:"Serbia"},SC:{code:"SC",officialName:"Seychelles",alpha3code:"SYC",numeric:"690",name:"Seychelles"},SL:{code:"SL",officialName:"Sierra Leone",alpha3code:"SLE",numeric:"694",name:"Sierra Leone"},SG:{code:"SG",officialName:"Singapore",alpha3code:"SGP",numeric:"702",name:"Singapore"},SX:{code:"SX",officialName:"Sint Maarten (Dutch part)",alpha3code:"SXM",numeric:"534",name:"Sint Maarten"},SK:{code:"SK",officialName:"Slovakia",alpha3code:"SVK",numeric:"703",name:"Slovakia"},SI:{code:"SI",officialName:"Slovenia",alpha3code:"SVN",numeric:"705",name:"Slovenia"},SB:{code:"SB",officialName:"Solomon Islands",alpha3code:"SLB",numeric:"090",name:"Solomon Islands"},SO:{code:"SO",officialName:"Somalia",alpha3code:"SOM",numeric:"706",name:"Somalia"},ZA:{code:"ZA",officialName:"South Africa",alpha3code:"ZAF",numeric:"710",name:"South Africa"},GS:{code:"GS",officialName:"South Georgia and the South Sandwich Islands",alpha3code:"SGS",numeric:"239",name:"South Georgia & South Sandwich Islands"},SS:{code:"SS",officialName:"South Sudan",alpha3code:"SSD",numeric:"728",name:"South Sudan"},ES:{code:"ES",officialName:"Spain",alpha3code:"ESP",numeric:"724",name:"Spain"},LK:{code:"LK",officialName:"Sri Lanka",alpha3code:"LKA",numeric:"144",name:"Sri Lanka"},SD:{code:"SD",officialName:"Sudan (the)",alpha3code:"SDN",numeric:"729",name:"Sudan"},SR:{code:"SR",officialName:"Suriname",alpha3code:"SUR",numeric:"740",name:"Suriname"},SJ:{code:"SJ",officialName:"Svalbard and Jan Mayen",alpha3code:"SJM",numeric:"744",name:"Svalbard & Jan Mayen"},SE:{code:"SE",officialName:"Sweden",alpha3code:"SWE",numeric:"752",name:"Sweden"},CH:{code:"CH",officialName:"Switzerland",alpha3code:"CHE",numeric:"756",name:"Switzerland"},SY:{code:"SY",officialName:"Syrian Arab Republic",alpha3code:"SYR",numeric:"760",name:"Syria"},TW:{code:"TW",officialName:"Taiwan (Province of China)",alpha3code:"TWN",numeric:"158",name:"Taiwan"},TJ:{code:"TJ",officialName:"Tajikistan",alpha3code:"TJK",numeric:"762",name:"Tajikistan"},TZ:{code:"TZ",officialName:"Tanzania, United Republic of",alpha3code:"TZA",numeric:"834",name:"Tanzania"},TH:{code:"TH",officialName:"Thailand",alpha3code:"THA",numeric:"764",name:"Thailand"},TL:{code:"TL",officialName:"Timor-Leste",alpha3code:"TLS",numeric:"626",name:"Timor-Leste"},TG:{code:"TG",officialName:"Togo",alpha3code:"TGO",numeric:"768",name:"Togo"},TK:{code:"TK",officialName:"Tokelau",alpha3code:"TKL",numeric:"772",name:"Tokelau"},TO:{code:"TO",officialName:"Tonga",alpha3code:"TON",numeric:"776",name:"Tonga"},TT:{code:"TT",officialName:"Trinidad and Tobago",alpha3code:"TTO",numeric:"780",name:"Trinidad & Tobago"},TN:{code:"TN",officialName:"Tunisia",alpha3code:"TUN",numeric:"788",name:"Tunisia"},TR:{code:"TR",officialName:"Turkey",alpha3code:"TUR",numeric:"792",name:"Turkey"},TM:{code:"TM",officialName:"Turkmenistan",alpha3code:"TKM",numeric:"795",name:"Turkmenistan"},TC:{code:"TC",officialName:"Turks and Caicos Islands (the)",alpha3code:"TCA",numeric:"796",name:"Turks & Caicos Islands"},TV:{code:"TV",officialName:"Tuvalu",alpha3code:"TUV",numeric:"798",name:"Tuvalu"},UG:{code:"UG",officialName:"Uganda",alpha3code:"UGA",numeric:"800",name:"Uganda"},UA:{code:"UA",officialName:"Ukraine",alpha3code:"UKR",numeric:"804",name:"Ukraine"},AE:{code:"AE",officialName:"United Arab Emirates (the)",alpha3code:"ARE",numeric:"784",name:"United Arab Emirates"},GB:{code:"GB",officialName:"United Kingdom of Great Britain and Northern Ireland (the)",alpha3code:"GBR",numeric:"826",name:"United Kingdom"},UM:{code:"UM",officialName:"United States Minor Outlying Islands (the)",alpha3code:"UMI",numeric:"581",name:"United States Minor Outlying Islands"},US:{code:"US",officialName:"United States of America (the)",alpha3code:"USA",numeric:"840",name:"United States"},UY:{code:"UY",officialName:"Uruguay",alpha3code:"URY",numeric:"858",name:"Uruguay"},UZ:{code:"UZ",officialName:"Uzbekistan",alpha3code:"UZB",numeric:"860",name:"Uzbekistan"},VU:{code:"VU",officialName:"Vanuatu",alpha3code:"VUT",numeric:"548",name:"Vanuatu"},VE:{code:"VE",officialName:"Venezuela (Bolivarian Republic of)",alpha3code:"VEN",numeric:"862",name:"Venezuela"},VN:{code:"VN",officialName:"Viet Nam",alpha3code:"VNM",numeric:"704",name:"Vietnam"},VG:{code:"VG",officialName:"Virgin Islands (British)",alpha3code:"VGB",numeric:"092",name:"British Virgin Islands"},VI:{code:"VI",officialName:"Virgin Islands (U.S.)",alpha3code:"VIR",numeric:"850",name:"Virgin Islands"},WF:{code:"WF",officialName:"Wallis and Futuna",alpha3code:"WLF",numeric:"876",name:"Wallis & Futuna"},EH:{code:"EH",officialName:"Western Sahara",alpha3code:"ESH",numeric:"732",name:"Western Sahara"},YE:{code:"YE",officialName:"Yemen",alpha3code:"YEM",numeric:"887",name:"Yemen"},ZM:{code:"ZM",officialName:"Zambia",alpha3code:"ZMB",numeric:"894",name:"Zambia"},ZW:{code:"ZW",officialName:"Zimbabwe",alpha3code:"ZWE",numeric:"716",name:"Zimbabwe"},AX:{code:"AX",officialName:"Åland Islands",alpha3code:"ALA",numeric:"248",name:"Åland Islands"},AC:{code:"AC",name:"Ascension Island"},XK:{code:"XK",name:"Kosovo"},TA:{code:"TA",name:"Tristan da Cunha"}};const x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Y(e,a){if(null==e)return e;if("string"==typeof e)return e;if("number"==typeof e){if(0===e)throw Error("Invalid timestamp");e<1e12&&(e*=1e3),e=new Date(e)}const i=e.getUTCDate(),n=String(i).padStart(2,"0"),o=e.getUTCMonth()+1,t=String(o).padStart(2,"0"),c=x[o],r=e.getUTCFullYear(),l=String(r),d=e.getUTCHours(),m=String(d).padStart(2,"0"),s=e.getUTCMinutes(),u=String(s).padStart(2,"0");switch(null!=a||(a="mmm d, yyyy hh:nn UTC"),a){case"mmm d, yyyy hh:nn UTC":return`${c} ${i}, ${l} ${m}:${u} UTC`;case"mmm d, yyyy":return`${c} ${i}, ${l}`;case"yyyy-mm-dd":return`${l}-${t}-${n}`;default:const e=a;let r;return r=e.replace("yyyy",l),r=e.replace("nn",u),r=e.replace("n",s.toString()),r=e.replace("hh",m),r=e.replace("h",d.toString()),r=e.replace("dd",n),r=e.replace("d",i.toString()),r=e.replace("mmm","§"),r=e.replace("mm",t),r=e.replace("m",o.toString()),r=e.replace("§",c),r}}function J(e,a){return[...e,a]}function j(e,a){return[...e.slice(0,a),...e.slice(a+1)]}function z(e,a){for(let i=0;i<e.length;i++)if(a(e[i],i))return j(e,i);return[...e]}function $(e,a,i){return[...e.slice(0,a),i,...e.slice(a+1)]}return a})()},156:a=>{"use strict";a.exports=e}},i={};function n(e){var o=i[e];if(void 0!==o)return o.exports;var t=i[e]={exports:{}};return a[e].call(t.exports,t,t.exports,n),t.exports}n.d=(e,a)=>{for(var i in a)n.o(a,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:a[i]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{FormControl:()=>le,FormFieldControl:()=>H,InputFilters:()=>te,ValidationRules:()=>oe,defaultGetElementValue:()=>O,defaultSetElementValue:()=>D,formFieldInfo:()=>K,useForm:()=>de,useRerender:()=>i});var e=n(156);function a(){return{isRendering:!1,rerenderingPending:!1}}function i(){const[,i]=(0,e.useState)(0),[n]=(0,e.useState)(a);return n.isRendering=!0,(0,e.useLayoutEffect)((()=>{n.isRendering=!1,n.rerenderingPending&&(n.rerenderingPending=!1,i((e=>e+1)))})),(0,e.useCallback)((e=>{n.isRendering||e?n.rerenderingPending=!0:(n.rerenderingPending=!1,i((e=>e+1)))}),[n])}var t,c,r,l,d,m,s,u,f,h,p,N,M,S,v,g,y,b,A,C,T,G,I,E,B,P,R,w=n(67),U=function(e,a,i,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof a?e!==a||!o:!a.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,i):o?o.value=i:a.set(e,i),i},V=function(e,a,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof a?e!==a||!n:!a.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:a.get(e)};const F="Required",L={preventValidate:!1};function O(e){return e.value}function D(e,a){return 0===(null==a?void 0:a.length)&&(a=void 0),a=null!=a?a:"",e.value!==a&&(e.value=a,!0)}const K={checkbox:{props:{type:"checkbox"},getElementValue:e=>e.checked,setElementValue:(e,a)=>(a=null!=a&&a,e.checked!==a&&(e.checked=a,!0))},color:{props:{type:"color"}},date:{props:{type:"date"},getElementValue:e=>e.value?new Date(e.value):null,setElementValue:(e,a)=>(a||(a=void 0),e.value!==a&&(e.value=(0,w.formatDate)(a,"yyyy-mm-dd"),!0))},"datetime-local":{props:{type:"datetime-local"},getElementValue:e=>e.value?new Date(e.value):null,setElementValue:(e,a)=>{var i;if(a||(a=void 0),e.value===a)return!1;var n=a&&new Date(a);return e.value=null!==(i=null==n?void 0:n.toISOString())&&void 0!==i?i:"",!0}},email:{props:{type:"email"}},file:{props:{type:"file"},shouldValidateOnChange:!0,getElementValue:e=>e.files},month:{props:{type:"month"}},number:{props:{type:"number"}},password:{props:{type:"password"}},radio:{props:{type:"radio"},shouldValidateOnChange:!0,getElementValue:e=>{var a;const i=null===(a=e.form)||void 0===a?void 0:a.elements[e.name];if(i)return i.value},setElementValue:(e,a)=>{var i;const n=null===(i=e.form)||void 0===i?void 0:i.elements[e.name];if(!n)return!1;const o=n;if(a=null!=a?a:"",o.value===a)return!1;if(""===a){const e=Array.from(o).map((e=>e)).find((e=>e.checked));if(!e)return!1;e.checked=!1}else o.value=a;return!0}},range:{props:{type:"range"}},search:{props:{type:"search"}},tel:{props:{type:"tel"}},text:{props:{type:"text"}},time:{props:{type:"time"}},url:{props:{type:"url"}},week:{props:{type:"week"}},"select-one":{props:{},shouldValidateOnChange:!0},"select-multiple":{props:{},shouldValidateOnChange:!0},textarea:{props:{}}},k=["button","submit","reset","menu","image"],W=Object.entries(K).filter((([,e])=>e.shouldValidateOnChange)).map((([e])=>e));class H{constructor(e,a){t.add(this),c.set(this,void 0),r.set(this,void 0),l.set(this,void 0),d.set(this,void 0),m.set(this,void 0),s.set(this,void 0),u.set(this,void 0),f.set(this,void 0),h.set(this,null),p.set(this,!1),N.set(this,!1),M.set(this,!1),S.set(this,[]),v.set(this,!1),g.set(this,[]),y.set(this,0),b.set(this,void 0),A.set(this,0),U(this,c,e,"f"),U(this,r,a,"f"),U(this,b,{},"f")}get props(){return V(this,d,"f")||U(this,d,{name:V(this,c,"f"),ref:e=>{e?V(this,t,"m",P).call(this,e):V(this,t,"m",R).call(this)}},"f"),V(this,d,"f")}get type(){var e;return null===(e=V(this,l,"f"))||void 0===e?void 0:e.type}get value(){return V(this,u,"f")&&V(this,l,"f")&&U(this,m,V(this,u,"f").call(this,V(this,l,"f")),"f"),V(this,m,"f")}get defaultValue(){return V(this,s,"f")}get options(){return V(this,b,"f")}set options(e){V(this,b,"f")!==e&&(this.startUpdate(),void 0!==e.defaultValue&&this.setDefaultValue(e.defaultValue),U(this,b,e,"f"),this.endUpdate())}get isDirty(){return V(this,p,"f")}set isDirty(e){var a;V(this,p,"f")!==e&&(this.startUpdate(),U(this,p,e,"f"),U(this,v,!0,"f"),this.endUpdate(),(a=V(this,r,"f")).isDirty||(a.isDirty=e))}get isTouched(){return V(this,N,"f")}set isTouched(e){V(this,N,"f")!==e&&(this.startUpdate(),U(this,N,e,"f"),U(this,v,!0,"f"),this.endUpdate())}get error(){return V(this,h,"f")}set error(e){V(this,h,"f")!==e&&(this.startUpdate(),U(this,h,e,"f"),U(this,v,!0,"f"),this.endUpdate())}startUpdate(){var e;U(this,y,(e=V(this,y,"f"),++e),"f")}endUpdate(){var e;0===U(this,y,(e=V(this,y,"f"),--e),"f")&&(V(this,M,"f")&&(U(this,M,!1,"f"),V(this,S,"f").forEach((e=>e()))),V(this,v,"f")&&(U(this,v,!1,"f"),V(this,g,"f").forEach((e=>e()))))}setValue(e,a){if(null!=a||(a=L),this.startUpdate(),V(this,f,"f")&&V(this,l,"f"))U(this,M,V(this,M,"f")||V(this,f,"f").call(this,V(this,l,"f"),e),"f"),!a.preventValidate&&V(this,M,"f")&&V(this,t,"a",T)&&this.validate();else{const a=this.value;U(this,s,e,"f"),U(this,m,e,"f"),U(this,M,V(this,M,"f")||a!==this.value,"f")}this.endUpdate()}setDefaultValue(e,a){if(null!=a||(a=L),V(this,l,"f")){const i=this.defaultValue;U(this,s,e,"f"),V(this,t,"a",C)&&i!==this.value||this.setValue(this.defaultValue,a)}else this.setValue(e,a)}subscribeToValueChanged(e){return V(this,S,"f").push(e),()=>{const a=V(this,S,"f").indexOf(e);-1!==a&&V(this,S,"f").splice(a,1)}}subscribeToStateChanged(e){return V(this,g,"f").push(e),()=>{const a=V(this,g,"f").indexOf(e);-1!==a&&V(this,g,"f").splice(a,1)}}validate(){var e;if(this.startUpdate(),this.options.required&&!V(this,t,"a",C))return this.error=F,this.endUpdate(),!1;if(V(this,l,"f")&&V(this,t,"a",C))for(const a of null!==(e=V(this,b,"f").rules)&&void 0!==e?e:[]){const e=a(this.value,V(this,l,"f"));if(e)return this.error=e,this.endUpdate(),!1}return this.error=null,this.endUpdate(),!0}reset(e){this.startUpdate(),U(this,h,null,"f"),U(this,p,!1,"f"),U(this,N,!1,"f"),void 0!==e&&this.setDefaultValue(e,{preventValidate:!0}),this.setValue(this.defaultValue,{preventValidate:!0}),U(this,v,!0,"f"),this.endUpdate()}focus(){var e;null===(e=V(this,l,"f"))||void 0===e||e.focus()}}c=new WeakMap,r=new WeakMap,l=new WeakMap,d=new WeakMap,m=new WeakMap,s=new WeakMap,u=new WeakMap,f=new WeakMap,h=new WeakMap,p=new WeakMap,N=new WeakMap,M=new WeakMap,S=new WeakMap,v=new WeakMap,g=new WeakMap,y=new WeakMap,b=new WeakMap,A=new WeakMap,t=new WeakSet,C=function(){return![void 0,""].includes(this.value)},T=function(){return!!V(this,N,"f")||!(!V(this,l,"f")||!W.includes(V(this,l,"f").type))},G=function(e){const a=e.currentTarget;this.setValue(a.value)},I=function(e){var a;V(this,b,"f").inputFilter&&e.data&&(null===(a=e.data.match(V(this,b,"f").inputFilter))||void 0===a?void 0:a[0].length)!==e.data.length&&e.preventDefault()},E=function(e){this.startUpdate(),this.isDirty=!0,U(this,M,!0,"f"),V(this,t,"a",T)&&this.validate(),this.endUpdate()},B=function(e){this.startUpdate(),this.isTouched=!0,this.isDirty&&this.validate(),this.endUpdate()},P=function(e){var a,i,n;this.startUpdate(),U(this,A,(n=V(this,A,"f"),++n),"f"),U(this,l,e,"f"),k.includes(e.type)?e.addEventListener("click",(e=>V(this,t,"m",G).call(this,e))):(e.addEventListener("beforeinput",(e=>V(this,t,"m",I).call(this,e))),e.addEventListener("input",(e=>V(this,t,"m",E).call(this,e))),e.addEventListener("blur",(e=>V(this,t,"m",B).call(this,e))),U(this,u,null!==(a=K[e.type].getElementValue)&&void 0!==a?a:O,"f"),U(this,f,null!==(i=K[e.type].setElementValue)&&void 0!==i?i:D,"f")),void 0!==this.defaultValue&&this.setValue(this.defaultValue),void 0!==this.value&&(void 0===this.defaultValue&&U(this,s,this.value,"f"),U(this,M,!0,"f")),this.endUpdate()},R=function(){var e;0===U(this,A,(e=V(this,A,"f"),--e),"f")&&(V(this,r,"f").unregister(V(this,c,"f")),V(this,u,"f")&&V(this,l,"f")&&U(this,m,V(this,u,"f").call(this,V(this,l,"f")),"f"),U(this,l,null,"f"))};var Z,x,Y,J,j,z,$,Q,X,q,_,ee,ae,ie,ne,oe,te,ce=function(e,a,i,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof a?e!==a||!o:!a.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,i):o?o.value=i:a.set(e,i),i},re=function(e,a,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof a?e!==a||!n:!a.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:a.get(e)};class le{constructor(e){var a;Z.add(this),x.set(this,!1),Y.set(this,!1),J.set(this,!1),j.set(this,new Map),z.set(this,[]),$.set(this,!1),Q.set(this,[]),X.set(this,0),q.set(this,void 0),_.set(this,{}),ee.set(this,{}),ce(this,q,null!==(a=null==e?void 0:e.defaultValues)&&void 0!==a?a:{},"f")}get value(){var e,a;const i={},n={};for(const[o,t]of Object.entries(re(this,_,"f"))){const c=o.indexOf("[");if(-1===c){i[o]=t.value;continue}const r=o.slice(0,c),l=null===(e=re(this,ee,"f")[r])||void 0===e?void 0:e.items;if(!l){i[o]=t.value;continue}const d=o.indexOf("]",c),m=o.slice(d+2);let s=n[r];if(s||(s=new Set,n[r]=s),s.has(m))continue;s.add(m);let u=i[r];if(null===(a=re(this,ee,"f")[r])||void 0===a?void 0:a.options.returnTrueValues){u||(u=[],i[r]=u);for(let e=0;e<l.length;++e){const a=l[e],i=re(this,_,"f")[`${r}[${a}].${m}`];if(void 0!==i&&!0===i.value){u.push(m);break}}}else{u||(u=l.map((e=>({}))),i[r]=u);for(let e=0;e<l.length;++e){const a=l[e],i=re(this,_,"f")[`${r}[${a}].${m}`];void 0!==i&&(u[e][m]=i.value)}}}return i}get isDirty(){return re(this,Y,"f")}set isDirty(e){re(this,Y,"f")!==e&&(this.startUpdate(),ce(this,Y,e,"f"),ce(this,$,!0,"f"),this.endUpdate())}get isSubmitting(){return re(this,x,"f")}startUpdate(){var e;ce(this,X,(e=re(this,X,"f"),++e),"f")}endUpdate(){var e;0===ce(this,X,(e=re(this,X,"f"),--e),"f")&&(re(this,J,"f")&&(ce(this,J,!1,"f"),re(this,z,"f").forEach((e=>e()))),re(this,$,"f")&&(ce(this,$,!1,"f"),re(this,Q,"f").forEach((e=>e()))))}register(e,a){return re(this,Z,"m",ae).call(this,e,a).props}unregister(e){re(this,_,"f").hasOwnProperty(e)&&(this.startUpdate(),delete re(this,_,"f")[e],ce(this,J,!0,"f"),ce(this,$,!0,"f"),this.endUpdate())}useFormState(){const a=i();return(0,e.useEffect)((()=>re(this,Z,"m",ne).call(this,a)),[]),this}useFormFieldState(a){const n=i(),o=re(this,_,"f")[a];return(0,e.useEffect)((()=>{if(o)return o.subscribeToStateChanged(n);{let e=re(this,j,"f").get(a);e||(e=[],re(this,j,"f").set(a,e)),e.push(n.bind(null,!0))}}),[o]),o}useFormFieldValue(a){const n=i(),o=re(this,_,"f")[a];return(0,e.useEffect)((()=>{if(o)return o.subscribeToValueChanged(n);{let e=re(this,j,"f").get(a);e||(e=[],re(this,j,"f").set(a,e)),e.push(n.bind(null,!0))}}),[o]),null==o?void 0:o.value}useFieldArrayValue(a){const[n]=(0,e.useState)((()=>new Map)),o=i();return(0,e.useEffect)((()=>{Object.entries(re(this,_,"f")).filter((([e])=>!n.has(e)&&e.startsWith(`${a}[`))).forEach((([e,a])=>n.set(e,a.subscribeToValueChanged(o))))})),(0,e.useEffect)((()=>()=>n.forEach((e=>e()))),[]),this.value[a]}useFormValue(){const a=i();return(0,e.useEffect)((()=>re(this,Z,"m",ie).call(this,a)),[]),this.value}useFieldArray(a,i){var n;const o=null!==(n=null==i?void 0:i.items)&&void 0!==n?n:[],t=o.map((e=>"function"==typeof i.keyField?i.keyField(e):e[i.keyField])),c={};for(let e=0;e<o.length;++e)c[t[e]]=o[e];const[r,l]=(0,e.useState)(t);(0,e.useEffect)((()=>{i&&!i.loading&&l((e=>[...t,...e.filter((e=>void 0===c[e]))]))}),[null==i?void 0:i.loading]);const d=(0,e.useCallback)((()=>l((e=>(0,w.push)(e,(0,w.randomKey)())))),[a]),m=(0,e.useCallback)((e=>l((a=>(0,w.isString)(e)?(0,w.remove)(a,(a=>a===e)):(0,w.removeAt)(a,e)))),[a]),s=a;return 0===r.length?delete re(this,ee,"f")[a]:re(this,ee,"f")[a]={items:r,options:{returnTrueValues:null==i?void 0:i.returnTrueValues}},{fields:(0,e.useMemo)((()=>r.map((e=>({key:e,item:c[e],getName:a=>`${s}[${e}].${a}`})))),[r]),addItem:d,removeItem:m}}reset(e){this.startUpdate(),e&&ce(this,q,e,"f"),Object.entries(re(this,_,"f")).forEach((([a,i])=>i.reset(null==e?void 0:e[a]))),this.isDirty=!1,this.endUpdate()}handleSubmit(e){const a=this;return i=>{return n=this,o=void 0,c=function*(){null==i||i.preventDefault();for(const e of Object.values(re(a,_,"f")))if(!e.validate())return void e.focus();const n=this.value;this.startUpdate(),ce(this,x,!0,"f"),ce(this,$,!0,"f"),this.endUpdate(),yield e(n,i),this.startUpdate(),ce(this,x,!1,"f"),ce(this,Y,!1,"f"),Object.values(re(this,_,"f")).forEach((e=>e.isDirty=!1)),ce(this,$,!0,"f"),this.endUpdate()},new((t=void 0)||(t=Promise))((function(e,a){function i(e){try{l(c.next(e))}catch(e){a(e)}}function r(e){try{l(c.throw(e))}catch(e){a(e)}}function l(a){var n;a.done?e(a.value):(n=a.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,r)}l((c=c.apply(n,o||[])).next())}));var n,o,t,c}}setValue(e,a){re(this,Z,"m",ae).call(this,e).setValue(a)}setDefaultValue(e,a){re(this,Z,"m",ae).call(this,e).setDefaultValue(a)}}function de(a){const i=(0,e.useState)((()=>new le(a)))[0];return(0,e.useMemo)((()=>({control:i,register:i.register.bind(i),unregister:i.unregister.bind(i),useFormFieldState:i.useFormFieldState.bind(i),useFormFieldValue:i.useFormFieldValue.bind(i),useFieldArrayValue:i.useFieldArrayValue.bind(i),useFormValue:i.useFormValue.bind(i),useFormState:i.useFormState.bind(i),useFieldArray:i.useFieldArray.bind(i),reset:i.reset.bind(i),handleSubmit:i.handleSubmit.bind(i),setValue:i.setValue.bind(i),setDefaultValue:i.setDefaultValue.bind(i)})),[])}x=new WeakMap,Y=new WeakMap,J=new WeakMap,j=new WeakMap,z=new WeakMap,$=new WeakMap,Q=new WeakMap,X=new WeakMap,q=new WeakMap,_=new WeakMap,ee=new WeakMap,Z=new WeakSet,ae=function(e,a){let i=re(this,_,"f")[e];const n=re(this,q,"f")[e];if(a&&void 0===a.defaultValue&&void 0!==n&&(a.defaultValue=n),void 0===i){i=new H(e,this),re(this,_,"f")[e]=i,i.subscribeToValueChanged((()=>{this.startUpdate(),ce(this,J,!0,"f"),this.endUpdate()}));const a=re(this,j,"f").get(e);null==a||a.forEach((e=>e()));const n=e.indexOf("[");if(-1!==n){const a=e.slice(0,n),i=re(this,j,"f").get(a);null==i||i.forEach((e=>e()))}}return a&&(i.options=a),i},ie=function(e){return re(this,z,"f").push(e),()=>{const a=re(this,z,"f").indexOf(e);-1!==a&&re(this,z,"f").splice(a,1)}},ne=function(e){return re(this,Q,"f").push(e),()=>{const a=re(this,Q,"f").indexOf(e);-1!==a&&re(this,Q,"f").splice(a,1)}},function(e){e.maxFileSize=function(e){return a=>{var i;return(null===(i=null==a?void 0:a[0])||void 0===i?void 0:i.size)>e?`Maximum image size is ${(0,w.formatFileSize)(e)}.`:void 0}},e.isNumber=function(e){return isNaN(+e)?"Value is not a valid number.":void 0},e.isPositiveNumber=function(e){return isNaN(+e)||+e<0?"Value is not a positive number.":void 0},e.isPositiveInteger=function(e){return isNaN(+e)||!Number.isInteger(+e)?"Value is not a positive integer.":void 0},e.isEmailAddress=function(e){return/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)?void 0:"Invalid email address."}}(oe||(oe={})),function(e){e.integer=/\d*/,e.numeric=/[-0-9., ]*/}(te||(te={}))})(),o})()}));
!function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a(require("react")):"function"==typeof define&&define.amd?define(["react"],a):"object"==typeof exports?exports["@duely/react-form"]=a(require("react")):e["@duely/react-form"]=a(e.react)}(this,(function(e){return(()=>{var a={67:function(e){e.exports=(()=>{"use strict";var e={d:(a,i)=>{for(var n in i)e.o(i,n)&&!e.o(a,n)&&Object.defineProperty(a,n,{enumerable:!0,get:i[n]})},o:(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},a={};function i(e){const a=e.toString(16);return 1===a.length?"0"+a:a}function n(e){return parseInt(e,16)}function o(...e){return Array.from(new Set(e.filter(b).join(" ").split(" ").filter((e=>!!e)))).join(" ")}function t(e){return e<1e3?`${e.toFixed(0)}B`:(e/=1e3)<1e3?`${e.toPrecision(3)}KB`:(e/=1e3)<1e3?`${e.toPrecision(3)}MB`:(e/=1e3)<1e3?`${e.toPrecision(3)}GB`:void 0}function c(e){const a=e.match(/\b\w/g)||[];return((a.shift()||"")+(a.pop()||"")).toUpperCase()}function r(e,a){null!=e||(e=32),null!=a||(a=l(a));const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let o=0;o<e;++o)n+=i[Math.floor(l(a+o)*i.length)];return n}function l(e){const a=1e4*Math.sin(e||Math.random());return a-Math.floor(a)}function d(e,a){const i=Math.exp(-e);let n=1,o=0;a=null!=a?a:Math.random;do{o++,n*=a()}while(n>i);return o-1}function u(e,a){return(null==e?void 0:e.length)>a?e.substring(0,a).trimEnd()+"...":e}function s(e){return e&&e.charAt(0).toUpperCase()+e.substring(1)}function m(e){return e.slice(5,e.indexOf(";"))}function f(e,a){return Object.fromEntries(Object.entries(e).filter((([e,i])=>(null==a?void 0:a[e])!==i)))}function h(e,a){return("string"==typeof a?a.split("."):a).reduce(((e,a)=>null==e?void 0:e[a]),e)}function p(e,a){return e.replace(/{(.*?)}/g,((e,i)=>{var n,o;return null!==(o=null===(n=h(a,i.trim()))||void 0===n?void 0:n.toString())&&void 0!==o?o:i}))}function N(e){var a=e.split(".").map((e=>parseInt(e,10)));return 4===a.length&&!a.some(isNaN)&&(10===a[0]||172===a[0]&&a[1]>=16&&a[1]<=31||192===a[0]&&168===a[1])}function M(e){return Object.fromEntries(Object.entries(e).filter((e=>void 0!==e[1])))}function S(e,a){return M(f(I(a,e),e))}function v(e,a){return e===Object(e)&&Object.prototype.hasOwnProperty.call(e,a)}function g(e,a){return e===Object(e)&&a in e}function y(e){return"function"==typeof e}function b(e){return"string"==typeof e}function C(e,a){var i;return"function"==typeof(null===(i=e)||void 0===i?void 0:i[a])}function A(e,...a){return i=this,void 0,o=function*(){return yield y(e)?e(...a):e},new((n=void 0)||(n=Promise))((function(e,a){function t(e){try{r(o.next(e))}catch(e){a(e)}}function c(e){try{r(o.throw(e))}catch(e){a(e)}}function r(a){var i;a.done?e(a.value):(i=a.value,i instanceof n?i:new n((function(e){e(i)}))).then(t,c)}r((o=o.apply(i,[])).next())}));var i,n,o}function T(e){return e}function G(e,...a){return(...i)=>{const n=[...a,...i];return e(...n)}}function I(e,a){const i=Array.isArray(a)?a:Object.keys(a),n={};for(const a of i)n[a]=e[a];return n}function E(e){const a=new Map;return(...i)=>{let n=a;const o=i.length-1;if(-1===o){if(n.has(o))return n.get(o);{const a=e(...i);return n.set(o,a),a}}let t=n.get(o);void 0===t&&(t=new Map,n.set(o,t)),n=t;for(let e=0;e<o;++e){const a=i[e];t=n.get(a),void 0===t&&(t=new Map,n.set(a,t)),n=t}const c=i[o];if(n.has(c))return n.get(c);{const a=e(...i);return n.set(c,a),a}}}function B(e,...a){let i,n=!1;const o=new Map;function t(){return n||(n=!0,i=e(...a)),i}return new Proxy(e,{get(e,a,i){const n=t(),c=Reflect.get(n,a,i===e?n:i);if("function"!=typeof c)return c;let r=o.get(c);return void 0===r&&(r=c.bind(n),o.set(c,r)),r},set(e,a,i,n){const o=t();return Reflect.set(o,a,i,n===e?o:n)},apply(e,a,...i){const n=t();Reflect.apply(n,a===e?n:a,...i)},construct:(e,...a)=>Reflect.construct(t(),...a),defineProperty:(e,...a)=>Reflect.defineProperty(t(),...a),deleteProperty:(e,...a)=>Reflect.deleteProperty(t(),...a),getOwnPropertyDescriptor:(e,...a)=>Reflect.getOwnPropertyDescriptor(t(),...a),getPrototypeOf:(e,...a)=>Reflect.getPrototypeOf(t(),...a),has:(e,...a)=>Reflect.has(t(),...a),isExtensible:(e,...a)=>Reflect.isExtensible(t(),...a),ownKeys:(e,...a)=>Reflect.ownKeys(t(),...a),preventExtensions:(e,...a)=>Reflect.preventExtensions(t(),...a),setPrototypeOf:(e,...a)=>Reflect.setPrototypeOf(t(),...a)})}e.r(a),e.d(a,{byteToHex:()=>i,countryFromCode:()=>L,createClassName:()=>o,createUpdateArgs:()=>S,dataUriFromSvg:()=>O,dateToTimestamp:()=>Z,diff:()=>f,formatCurrency:()=>V,formatDate:()=>Y,formatFileSize:()=>t,getNameInitials:()=>c,getPathValue:()=>h,hasMethod:()=>C,hasOwnProperty:()=>v,hasProperty:()=>g,hex2hsl:()=>k,hex2rgb:()=>K,hexToByte:()=>n,hsl2rgb:()=>D,identity:()=>T,isFunction:()=>y,isPrivateIp:()=>N,isString:()=>b,lazy:()=>B,memo:()=>E,mimeTypeFromDataUrl:()=>m,minorCurrencyAmountToNumber:()=>w,numberToMinorCurrencyAmount:()=>R,omitUndefined:()=>M,partial:()=>G,pick:()=>I,poisson:()=>d,pseudoRandom:()=>l,push:()=>J,randomKey:()=>r,remove:()=>z,removeAt:()=>j,resolve:()=>A,rgb2hsl:()=>W,sentenceCase:()=>s,set:()=>$,template:()=>p,timestampToDate:()=>H,truncate:()=>u});const P=new Set(["BIF","CLP","DJF","GNF","JPY","KMF","KRW","MGA","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"]);function R(e,a){return a=a.toUpperCase(),P.has(a)?e:Math.floor(100*e)}function w(e,a){return a=a.toUpperCase(),P.has(a)?e:e/100}function V(e,a,i){const n=w(e,a=a.toUpperCase());return new Intl.NumberFormat(i,{currency:a,currencySign:"accounting",style:"currency"}).format(n)}function U(e){const a=e[0].codePointAt(0),i=e[1].codePointAt(0);return String.fromCodePoint(a+127462-65,i+127462-65)}let F;function L(e){return Object.assign({flag:U(e)},F[e])}function O(e){return"data:image/svg+xml;base64,"+btoa(e)}function D(e,a,i){const n=a*Math.min(i,1-i),o=(a,o=(a+e/30)%12)=>i-n*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)].map((e=>Math.ceil(255*e)))}function K(e){let a,i,o,t=1;switch(e.length){case 5:t=n(e[4].repeat(2))/256;case 4:a=n(e[1].repeat(2)),i=n(e[2].repeat(2)),o=n(e[3].repeat(2));break;case 8:t=n(e.substr(7,2))/256;case 7:a=n(e.substr(1,2)),i=n(e.substr(3,2)),o=n(e.substr(5,2));break;default:throw Error("Value is not a hexadecimal color code.")}return[a,i,o,t]}function k(e){return W(...K(e))}function W(e,a,i,n){e/=255,a/=255,i/=255;const o=Math.max(e,a,i),t=o-Math.min(e,a,i),c=1-Math.abs(o+o-t-1),r=t&&(o===e?(a-i)/t:o===a?2+(i-e)/t:4+(e-a)/t);return[60*(r<0?r+6:r),c?t/c:0,(o+o-t)/2,n]}function H(e){return void 0===e?void 0:null===e?null:new Date(1e3*e)}function Z(e){return void 0===e?void 0:null===e?null:Math.round(e.getTime()/1e3)}F={AF:{code:"AF",officialName:"Afghanistan",alpha3code:"AFG",numeric:"004",name:"Afghanistan"},AL:{code:"AL",officialName:"Albania",alpha3code:"ALB",numeric:"008",name:"Albania"},DZ:{code:"DZ",officialName:"Algeria",alpha3code:"DZA",numeric:"012",name:"Algeria"},AS:{code:"AS",officialName:"American Samoa",alpha3code:"ASM",numeric:"016",name:"American Samoa"},AD:{code:"AD",officialName:"Andorra",alpha3code:"AND",numeric:"020",name:"Andorra"},AO:{code:"AO",officialName:"Angola",alpha3code:"AGO",numeric:"024",name:"Angola"},AI:{code:"AI",officialName:"Anguilla",alpha3code:"AIA",numeric:"660",name:"Anguilla"},AQ:{code:"AQ",officialName:"Antarctica",alpha3code:"ATA",numeric:"010",name:"Antarctica"},AG:{code:"AG",officialName:"Antigua and Barbuda",alpha3code:"ATG",numeric:"028",name:"Antigua & Barbuda"},AR:{code:"AR",officialName:"Argentina",alpha3code:"ARG",numeric:"032",name:"Argentina"},AM:{code:"AM",officialName:"Armenia",alpha3code:"ARM",numeric:"051",name:"Armenia"},AW:{code:"AW",officialName:"Aruba",alpha3code:"ABW",numeric:"533",name:"Aruba"},AU:{code:"AU",officialName:"Australia",alpha3code:"AUS",numeric:"036",name:"Australia"},AT:{code:"AT",officialName:"Austria",alpha3code:"AUT",numeric:"040",name:"Austria"},AZ:{code:"AZ",officialName:"Azerbaijan",alpha3code:"AZE",numeric:"031",name:"Azerbaijan"},BS:{code:"BS",officialName:"Bahamas (the)",alpha3code:"BHS",numeric:"044",name:"Bahamas"},BH:{code:"BH",officialName:"Bahrain",alpha3code:"BHR",numeric:"048",name:"Bahrain"},BD:{code:"BD",officialName:"Bangladesh",alpha3code:"BGD",numeric:"050",name:"Bangladesh"},BB:{code:"BB",officialName:"Barbados",alpha3code:"BRB",numeric:"052",name:"Barbados"},BY:{code:"BY",officialName:"Belarus",alpha3code:"BLR",numeric:"112",name:"Belarus"},BE:{code:"BE",officialName:"Belgium",alpha3code:"BEL",numeric:"056",name:"Belgium"},BZ:{code:"BZ",officialName:"Belize",alpha3code:"BLZ",numeric:"084",name:"Belize"},BJ:{code:"BJ",officialName:"Benin",alpha3code:"BEN",numeric:"204",name:"Benin"},BM:{code:"BM",officialName:"Bermuda",alpha3code:"BMU",numeric:"060",name:"Bermuda"},BT:{code:"BT",officialName:"Bhutan",alpha3code:"BTN",numeric:"064",name:"Bhutan"},BO:{code:"BO",officialName:"Bolivia (Plurinational State of)",alpha3code:"BOL",numeric:"068",name:"Bolivia"},BQ:{code:"BQ",officialName:"Bonaire, Sint Eustatius and Saba",alpha3code:"BES",numeric:"535",name:"Caribbean Netherlands"},BA:{code:"BA",officialName:"Bosnia and Herzegovina",alpha3code:"BIH",numeric:"070",name:"Bosnia & Herzegovina"},BW:{code:"BW",officialName:"Botswana",alpha3code:"BWA",numeric:"072",name:"Botswana"},BV:{code:"BV",officialName:"Bouvet Island",alpha3code:"BVT",numeric:"074",name:"Bouvet Island"},BR:{code:"BR",officialName:"Brazil",alpha3code:"BRA",numeric:"076",name:"Brazil"},IO:{code:"IO",officialName:"British Indian Ocean Territory (the)",alpha3code:"IOT",numeric:"086",name:"British Indian Ocean Territory"},BN:{code:"BN",officialName:"Brunei Darussalam",alpha3code:"BRN",numeric:"096",name:"Brunei"},BG:{code:"BG",officialName:"Bulgaria",alpha3code:"BGR",numeric:"100",name:"Bulgaria"},BF:{code:"BF",officialName:"Burkina Faso",alpha3code:"BFA",numeric:"854",name:"Burkina Faso"},BI:{code:"BI",officialName:"Burundi",alpha3code:"BDI",numeric:"108",name:"Burundi"},CV:{code:"CV",officialName:"Cabo Verde",alpha3code:"CPV",numeric:"132",name:"Cape Verde"},KH:{code:"KH",officialName:"Cambodia",alpha3code:"KHM",numeric:"116",name:"Cambodia"},CM:{code:"CM",officialName:"Cameroon",alpha3code:"CMR",numeric:"120",name:"Cameroon"},CA:{code:"CA",officialName:"Canada",alpha3code:"CAN",numeric:"124",name:"Canada"},KY:{code:"KY",officialName:"Cayman Islands (the)",alpha3code:"CYM",numeric:"136",name:"Cayman Islands"},CF:{code:"CF",officialName:"Central African Republic (the)",alpha3code:"CAF",numeric:"140",name:"Central African Republic"},TD:{code:"TD",officialName:"Chad",alpha3code:"TCD",numeric:"148",name:"Chad"},CL:{code:"CL",officialName:"Chile",alpha3code:"CHL",numeric:"152",name:"Chile"},CN:{code:"CN",officialName:"China",alpha3code:"CHN",numeric:"156",name:"China"},CX:{code:"CX",officialName:"Christmas Island",alpha3code:"CXR",numeric:"162",name:"Christmas Island"},CC:{code:"CC",officialName:"Cocos (Keeling) Islands (the)",alpha3code:"CCK",numeric:"166",name:"Cocos Keeling Islands"},CO:{code:"CO",officialName:"Colombia",alpha3code:"COL",numeric:"170",name:"Colombia"},KM:{code:"KM",officialName:"Comoros (the)",alpha3code:"COM",numeric:"174",name:"Comoros"},CD:{code:"CD",officialName:"Congo (the Democratic Republic of the)",alpha3code:"COD",numeric:"180",name:"Congo - Kinshasa"},CG:{code:"CG",officialName:"Congo (the)",alpha3code:"COG",numeric:"178",name:"Congo - Brazzaville"},CK:{code:"CK",officialName:"Cook Islands (the)",alpha3code:"COK",numeric:"184",name:"Cook Islands"},CR:{code:"CR",officialName:"Costa Rica",alpha3code:"CRI",numeric:"188",name:"Costa Rica"},HR:{code:"HR",officialName:"Croatia",alpha3code:"HRV",numeric:"191",name:"Croatia"},CU:{code:"CU",officialName:"Cuba",alpha3code:"CUB",numeric:"192",name:"Cuba"},CW:{code:"CW",officialName:"Curaçao",alpha3code:"CUW",numeric:"531",name:"Curaçao"},CY:{code:"CY",officialName:"Cyprus",alpha3code:"CYP",numeric:"196",name:"Cyprus"},CZ:{code:"CZ",officialName:"Czechia",alpha3code:"CZE",numeric:"203",name:"Czechia"},CI:{code:"CI",officialName:"Côte d'Ivoire",alpha3code:"CIV",numeric:"384",name:"Côte d’Ivoire"},DK:{code:"DK",officialName:"Denmark",alpha3code:"DNK",numeric:"208",name:"Denmark"},DJ:{code:"DJ",officialName:"Djibouti",alpha3code:"DJI",numeric:"262",name:"Djibouti"},DM:{code:"DM",officialName:"Dominica",alpha3code:"DMA",numeric:"212",name:"Dominica"},DO:{code:"DO",officialName:"Dominican Republic (the)",alpha3code:"DOM",numeric:"214",name:"Dominican Republic"},EC:{code:"EC",officialName:"Ecuador",alpha3code:"ECU",numeric:"218",name:"Ecuador"},EG:{code:"EG",officialName:"Egypt",alpha3code:"EGY",numeric:"818",name:"Egypt"},SV:{code:"SV",officialName:"El Salvador",alpha3code:"SLV",numeric:"222",name:"El Salvador"},GQ:{code:"GQ",officialName:"Equatorial Guinea",alpha3code:"GNQ",numeric:"226",name:"Equatorial Guinea"},ER:{code:"ER",officialName:"Eritrea",alpha3code:"ERI",numeric:"232",name:"Eritrea"},EE:{code:"EE",officialName:"Estonia",alpha3code:"EST",numeric:"233",name:"Estonia"},SZ:{code:"SZ",officialName:"Eswatini",alpha3code:"SWZ",numeric:"748",name:"Eswatini"},ET:{code:"ET",officialName:"Ethiopia",alpha3code:"ETH",numeric:"231",name:"Ethiopia"},FK:{code:"FK",officialName:"Falkland Islands (the) [Malvinas]",alpha3code:"FLK",numeric:"238",name:"Falkland Islands"},FO:{code:"FO",officialName:"Faroe Islands (the)",alpha3code:"FRO",numeric:"234",name:"Faroe Islands"},FJ:{code:"FJ",officialName:"Fiji",alpha3code:"FJI",numeric:"242",name:"Fiji"},FI:{code:"FI",officialName:"Finland",alpha3code:"FIN",numeric:"246",name:"Finland"},FR:{code:"FR",officialName:"France",alpha3code:"FRA",numeric:"250",name:"France"},GF:{code:"GF",officialName:"French Guiana",alpha3code:"GUF",numeric:"254",name:"French Guiana"},PF:{code:"PF",officialName:"French Polynesia",alpha3code:"PYF",numeric:"258",name:"French Polynesia"},TF:{code:"TF",officialName:"French Southern Territories (the)",alpha3code:"ATF",numeric:"260",name:"French Southern Territories"},GA:{code:"GA",officialName:"Gabon",alpha3code:"GAB",numeric:"266",name:"Gabon"},GM:{code:"GM",officialName:"Gambia (the)",alpha3code:"GMB",numeric:"270",name:"Gambia"},GE:{code:"GE",officialName:"Georgia",alpha3code:"GEO",numeric:"268",name:"Georgia"},DE:{code:"DE",officialName:"Germany",alpha3code:"DEU",numeric:"276",name:"Germany"},GH:{code:"GH",officialName:"Ghana",alpha3code:"GHA",numeric:"288",name:"Ghana"},GI:{code:"GI",officialName:"Gibraltar",alpha3code:"GIB",numeric:"292",name:"Gibraltar"},GR:{code:"GR",officialName:"Greece",alpha3code:"GRC",numeric:"300",name:"Greece"},GL:{code:"GL",officialName:"Greenland",alpha3code:"GRL",numeric:"304",name:"Greenland"},GD:{code:"GD",officialName:"Grenada",alpha3code:"GRD",numeric:"308",name:"Grenada"},GP:{code:"GP",officialName:"Guadeloupe",alpha3code:"GLP",numeric:"312",name:"Guadeloupe"},GU:{code:"GU",officialName:"Guam",alpha3code:"GUM",numeric:"316",name:"Guam"},GT:{code:"GT",officialName:"Guatemala",alpha3code:"GTM",numeric:"320",name:"Guatemala"},GG:{code:"GG",officialName:"Guernsey",alpha3code:"GGY",numeric:"831",name:"Guernsey"},GN:{code:"GN",officialName:"Guinea",alpha3code:"GIN",numeric:"324",name:"Guinea"},GW:{code:"GW",officialName:"Guinea-Bissau",alpha3code:"GNB",numeric:"624",name:"Guinea-Bissau"},GY:{code:"GY",officialName:"Guyana",alpha3code:"GUY",numeric:"328",name:"Guyana"},HT:{code:"HT",officialName:"Haiti",alpha3code:"HTI",numeric:"332",name:"Haiti"},HM:{code:"HM",officialName:"Heard Island and McDonald Islands",alpha3code:"HMD",numeric:"334",name:"Heard Island and McDonald Islands"},VA:{code:"VA",officialName:"Holy See (the)",alpha3code:"VAT",numeric:"336",name:"Vatican City"},HN:{code:"HN",officialName:"Honduras",alpha3code:"HND",numeric:"340",name:"Honduras"},HK:{code:"HK",officialName:"Hong Kong",alpha3code:"HKG",numeric:"344",name:"Hong Kong SAR China"},HU:{code:"HU",officialName:"Hungary",alpha3code:"HUN",numeric:"348",name:"Hungary"},IS:{code:"IS",officialName:"Iceland",alpha3code:"ISL",numeric:"352",name:"Iceland"},IN:{code:"IN",officialName:"India",alpha3code:"IND",numeric:"356",name:"India"},ID:{code:"ID",officialName:"Indonesia",alpha3code:"IDN",numeric:"360",name:"Indonesia"},IR:{code:"IR",officialName:"Iran (Islamic Republic of)",alpha3code:"IRN",numeric:"364",name:"Iran"},IQ:{code:"IQ",officialName:"Iraq",alpha3code:"IRQ",numeric:"368",name:"Iraq"},IE:{code:"IE",officialName:"Ireland",alpha3code:"IRL",numeric:"372",name:"Ireland"},IM:{code:"IM",officialName:"Isle of Man",alpha3code:"IMN",numeric:"833",name:"Isle of Man"},IL:{code:"IL",officialName:"Israel",alpha3code:"ISR",numeric:"376",name:"Israel"},IT:{code:"IT",officialName:"Italy",alpha3code:"ITA",numeric:"380",name:"Italy"},JM:{code:"JM",officialName:"Jamaica",alpha3code:"JAM",numeric:"388",name:"Jamaica"},JP:{code:"JP",officialName:"Japan",alpha3code:"JPN",numeric:"392",name:"Japan"},JE:{code:"JE",officialName:"Jersey",alpha3code:"JEY",numeric:"832",name:"Jersey"},JO:{code:"JO",officialName:"Jordan",alpha3code:"JOR",numeric:"400",name:"Jordan"},KZ:{code:"KZ",officialName:"Kazakhstan",alpha3code:"KAZ",numeric:"398",name:"Kazakhstan"},KE:{code:"KE",officialName:"Kenya",alpha3code:"KEN",numeric:"404",name:"Kenya"},KI:{code:"KI",officialName:"Kiribati",alpha3code:"KIR",numeric:"296",name:"Kiribati"},KP:{code:"KP",officialName:"Korea (the Democratic People's Republic of)",alpha3code:"PRK",numeric:"408",name:"North Korea"},KR:{code:"KR",officialName:"Korea (the Republic of)",alpha3code:"KOR",numeric:"410",name:"Republic of Korea"},KW:{code:"KW",officialName:"Kuwait",alpha3code:"KWT",numeric:"414",name:"Kuwait"},KG:{code:"KG",officialName:"Kyrgyzstan",alpha3code:"KGZ",numeric:"417",name:"Kyrgyzstan"},LA:{code:"LA",officialName:"Lao People's Democratic Republic (the)",alpha3code:"LAO",numeric:"418",name:"Laos"},LV:{code:"LV",officialName:"Latvia",alpha3code:"LVA",numeric:"428",name:"Latvia"},LB:{code:"LB",officialName:"Lebanon",alpha3code:"LBN",numeric:"422",name:"Lebanon"},LS:{code:"LS",officialName:"Lesotho",alpha3code:"LSO",numeric:"426",name:"Lesotho"},LR:{code:"LR",officialName:"Liberia",alpha3code:"LBR",numeric:"430",name:"Liberia"},LY:{code:"LY",officialName:"Libya",alpha3code:"LBY",numeric:"434",name:"Libya"},LI:{code:"LI",officialName:"Liechtenstein",alpha3code:"LIE",numeric:"438",name:"Liechtenstein"},LT:{code:"LT",officialName:"Lithuania",alpha3code:"LTU",numeric:"440",name:"Lithuania"},LU:{code:"LU",officialName:"Luxembourg",alpha3code:"LUX",numeric:"442",name:"Luxembourg"},MO:{code:"MO",officialName:"Macao",alpha3code:"MAC",numeric:"446",name:"Macao SAR China"},MG:{code:"MG",officialName:"Madagascar",alpha3code:"MDG",numeric:"450",name:"Madagascar"},MW:{code:"MW",officialName:"Malawi",alpha3code:"MWI",numeric:"454",name:"Malawi"},MY:{code:"MY",officialName:"Malaysia",alpha3code:"MYS",numeric:"458",name:"Malaysia"},MV:{code:"MV",officialName:"Maldives",alpha3code:"MDV",numeric:"462",name:"Maldives"},ML:{code:"ML",officialName:"Mali",alpha3code:"MLI",numeric:"466",name:"Mali"},MT:{code:"MT",officialName:"Malta",alpha3code:"MLT",numeric:"470",name:"Malta"},MH:{code:"MH",officialName:"Marshall Islands (the)",alpha3code:"MHL",numeric:"584",name:"Marshall Islands"},MQ:{code:"MQ",officialName:"Martinique",alpha3code:"MTQ",numeric:"474",name:"Martinique"},MR:{code:"MR",officialName:"Mauritania",alpha3code:"MRT",numeric:"478",name:"Mauritania"},MU:{code:"MU",officialName:"Mauritius",alpha3code:"MUS",numeric:"480",name:"Mauritius"},YT:{code:"YT",officialName:"Mayotte",alpha3code:"MYT",numeric:"175",name:"Mayotte"},MX:{code:"MX",officialName:"Mexico",alpha3code:"MEX",numeric:"484",name:"Mexico"},FM:{code:"FM",officialName:"Micronesia (Federated States of)",alpha3code:"FSM",numeric:"583",name:"Micronesia"},MD:{code:"MD",officialName:"Moldova (the Republic of)",alpha3code:"MDA",numeric:"498",name:"Moldova"},MC:{code:"MC",officialName:"Monaco",alpha3code:"MCO",numeric:"492",name:"Monaco"},MN:{code:"MN",officialName:"Mongolia",alpha3code:"MNG",numeric:"496",name:"Mongolia"},ME:{code:"ME",officialName:"Montenegro",alpha3code:"MNE",numeric:"499",name:"Montenegro"},MS:{code:"MS",officialName:"Montserrat",alpha3code:"MSR",numeric:"500",name:"Montserrat"},MA:{code:"MA",officialName:"Morocco",alpha3code:"MAR",numeric:"504",name:"Morocco"},MZ:{code:"MZ",officialName:"Mozambique",alpha3code:"MOZ",numeric:"508",name:"Mozambique"},MM:{code:"MM",officialName:"Myanmar",alpha3code:"MMR",numeric:"104",name:"Myanmar (Burma)"},NA:{code:"NA",officialName:"Namibia",alpha3code:"NAM",numeric:"516",name:"Namibia"},NR:{code:"NR",officialName:"Nauru",alpha3code:"NRU",numeric:"520",name:"Nauru"},NP:{code:"NP",officialName:"Nepal",alpha3code:"NPL",numeric:"524",name:"Nepal"},NL:{code:"NL",officialName:"Netherlands (the)",alpha3code:"NLD",numeric:"528",name:"Netherlands"},NC:{code:"NC",officialName:"New Caledonia",alpha3code:"NCL",numeric:"540",name:"New Caledonia"},NZ:{code:"NZ",officialName:"New Zealand",alpha3code:"NZL",numeric:"554",name:"New Zealand"},NI:{code:"NI",officialName:"Nicaragua",alpha3code:"NIC",numeric:"558",name:"Nicaragua"},NE:{code:"NE",officialName:"Niger (the)",alpha3code:"NER",numeric:"562",name:"Niger"},NG:{code:"NG",officialName:"Nigeria",alpha3code:"NGA",numeric:"566",name:"Nigeria"},NU:{code:"NU",officialName:"Niue",alpha3code:"NIU",numeric:"570",name:"Niue"},NF:{code:"NF",officialName:"Norfolk Island",alpha3code:"NFK",numeric:"574",name:"Norfolk Island"},MP:{code:"MP",officialName:"Northern Mariana Islands (the)",alpha3code:"MNP",numeric:"580",name:"Northern Mariana Islands (the)"},NO:{code:"NO",officialName:"Norway",alpha3code:"NOR",numeric:"578",name:"Norway"},OM:{code:"OM",officialName:"Oman",alpha3code:"OMN",numeric:"512",name:"Oman"},PK:{code:"PK",officialName:"Pakistan",alpha3code:"PAK",numeric:"586",name:"Pakistan"},PW:{code:"PW",officialName:"Palau",alpha3code:"PLW",numeric:"585",name:"Palau"},PS:{code:"PS",officialName:"Palestine, State of",alpha3code:"PSE",numeric:"275",name:"Palestinian Territories"},PA:{code:"PA",officialName:"Panama",alpha3code:"PAN",numeric:"591",name:"Panama"},PG:{code:"PG",officialName:"Papua New Guinea",alpha3code:"PNG",numeric:"598",name:"Papua New Guinea"},PY:{code:"PY",officialName:"Paraguay",alpha3code:"PRY",numeric:"600",name:"Paraguay"},PE:{code:"PE",officialName:"Peru",alpha3code:"PER",numeric:"604",name:"Peru"},PH:{code:"PH",officialName:"Philippines (the)",alpha3code:"PHL",numeric:"608",name:"Philippines"},PN:{code:"PN",officialName:"Pitcairn",alpha3code:"PCN",numeric:"612",name:"Pitcairn Islands"},PL:{code:"PL",officialName:"Poland",alpha3code:"POL",numeric:"616",name:"Poland"},PT:{code:"PT",officialName:"Portugal",alpha3code:"PRT",numeric:"620",name:"Portugal"},PR:{code:"PR",officialName:"Puerto Rico",alpha3code:"PRI",numeric:"630",name:"Puerto Rico"},QA:{code:"QA",officialName:"Qatar",alpha3code:"QAT",numeric:"634",name:"Qatar"},MK:{code:"MK",officialName:"Republic of North Macedonia",alpha3code:"MKD",numeric:"807",name:"North Macedonia"},RO:{code:"RO",officialName:"Romania",alpha3code:"ROU",numeric:"642",name:"Romania"},RU:{code:"RU",officialName:"Russian Federation (the)",alpha3code:"RUS",numeric:"643",name:"Russia"},RW:{code:"RW",officialName:"Rwanda",alpha3code:"RWA",numeric:"646",name:"Rwanda"},RE:{code:"RE",officialName:"Réunion",alpha3code:"REU",numeric:"638",name:"Réunion"},BL:{code:"BL",officialName:"Saint Barthélemy",alpha3code:"BLM",numeric:"652",name:"St. Barthélemy"},SH:{code:"SH",officialName:"Saint Helena, Ascension and Tristan da Cunha",alpha3code:"SHN",numeric:"654",name:"St. Helena"},KN:{code:"KN",officialName:"Saint Kitts and Nevis",alpha3code:"KNA",numeric:"659",name:"St. Kitts & Nevis"},LC:{code:"LC",officialName:"Saint Lucia",alpha3code:"LCA",numeric:"662",name:"St. Lucia"},MF:{code:"MF",officialName:"Saint Martin (French part)",alpha3code:"MAF",numeric:"663",name:"St. Martin"},PM:{code:"PM",officialName:"Saint Pierre and Miquelon",alpha3code:"SPM",numeric:"666",name:"St. Pierre & Miquelon"},VC:{code:"VC",officialName:"Saint Vincent and the Grenadines",alpha3code:"VCT",numeric:"670",name:"St. Vincent & Grenadines"},WS:{code:"WS",officialName:"Samoa",alpha3code:"WSM",numeric:"882",name:"Samoa"},SM:{code:"SM",officialName:"San Marino",alpha3code:"SMR",numeric:"674",name:"San Marino"},ST:{code:"ST",officialName:"Sao Tome and Principe",alpha3code:"STP",numeric:"678",name:"São Tomé & Príncipe"},SA:{code:"SA",officialName:"Saudi Arabia",alpha3code:"SAU",numeric:"682",name:"Saudi Arabia"},SN:{code:"SN",officialName:"Senegal",alpha3code:"SEN",numeric:"686",name:"Senegal"},RS:{code:"RS",officialName:"Serbia",alpha3code:"SRB",numeric:"688",name:"Serbia"},SC:{code:"SC",officialName:"Seychelles",alpha3code:"SYC",numeric:"690",name:"Seychelles"},SL:{code:"SL",officialName:"Sierra Leone",alpha3code:"SLE",numeric:"694",name:"Sierra Leone"},SG:{code:"SG",officialName:"Singapore",alpha3code:"SGP",numeric:"702",name:"Singapore"},SX:{code:"SX",officialName:"Sint Maarten (Dutch part)",alpha3code:"SXM",numeric:"534",name:"Sint Maarten"},SK:{code:"SK",officialName:"Slovakia",alpha3code:"SVK",numeric:"703",name:"Slovakia"},SI:{code:"SI",officialName:"Slovenia",alpha3code:"SVN",numeric:"705",name:"Slovenia"},SB:{code:"SB",officialName:"Solomon Islands",alpha3code:"SLB",numeric:"090",name:"Solomon Islands"},SO:{code:"SO",officialName:"Somalia",alpha3code:"SOM",numeric:"706",name:"Somalia"},ZA:{code:"ZA",officialName:"South Africa",alpha3code:"ZAF",numeric:"710",name:"South Africa"},GS:{code:"GS",officialName:"South Georgia and the South Sandwich Islands",alpha3code:"SGS",numeric:"239",name:"South Georgia & South Sandwich Islands"},SS:{code:"SS",officialName:"South Sudan",alpha3code:"SSD",numeric:"728",name:"South Sudan"},ES:{code:"ES",officialName:"Spain",alpha3code:"ESP",numeric:"724",name:"Spain"},LK:{code:"LK",officialName:"Sri Lanka",alpha3code:"LKA",numeric:"144",name:"Sri Lanka"},SD:{code:"SD",officialName:"Sudan (the)",alpha3code:"SDN",numeric:"729",name:"Sudan"},SR:{code:"SR",officialName:"Suriname",alpha3code:"SUR",numeric:"740",name:"Suriname"},SJ:{code:"SJ",officialName:"Svalbard and Jan Mayen",alpha3code:"SJM",numeric:"744",name:"Svalbard & Jan Mayen"},SE:{code:"SE",officialName:"Sweden",alpha3code:"SWE",numeric:"752",name:"Sweden"},CH:{code:"CH",officialName:"Switzerland",alpha3code:"CHE",numeric:"756",name:"Switzerland"},SY:{code:"SY",officialName:"Syrian Arab Republic",alpha3code:"SYR",numeric:"760",name:"Syria"},TW:{code:"TW",officialName:"Taiwan (Province of China)",alpha3code:"TWN",numeric:"158",name:"Taiwan"},TJ:{code:"TJ",officialName:"Tajikistan",alpha3code:"TJK",numeric:"762",name:"Tajikistan"},TZ:{code:"TZ",officialName:"Tanzania, United Republic of",alpha3code:"TZA",numeric:"834",name:"Tanzania"},TH:{code:"TH",officialName:"Thailand",alpha3code:"THA",numeric:"764",name:"Thailand"},TL:{code:"TL",officialName:"Timor-Leste",alpha3code:"TLS",numeric:"626",name:"Timor-Leste"},TG:{code:"TG",officialName:"Togo",alpha3code:"TGO",numeric:"768",name:"Togo"},TK:{code:"TK",officialName:"Tokelau",alpha3code:"TKL",numeric:"772",name:"Tokelau"},TO:{code:"TO",officialName:"Tonga",alpha3code:"TON",numeric:"776",name:"Tonga"},TT:{code:"TT",officialName:"Trinidad and Tobago",alpha3code:"TTO",numeric:"780",name:"Trinidad & Tobago"},TN:{code:"TN",officialName:"Tunisia",alpha3code:"TUN",numeric:"788",name:"Tunisia"},TR:{code:"TR",officialName:"Turkey",alpha3code:"TUR",numeric:"792",name:"Turkey"},TM:{code:"TM",officialName:"Turkmenistan",alpha3code:"TKM",numeric:"795",name:"Turkmenistan"},TC:{code:"TC",officialName:"Turks and Caicos Islands (the)",alpha3code:"TCA",numeric:"796",name:"Turks & Caicos Islands"},TV:{code:"TV",officialName:"Tuvalu",alpha3code:"TUV",numeric:"798",name:"Tuvalu"},UG:{code:"UG",officialName:"Uganda",alpha3code:"UGA",numeric:"800",name:"Uganda"},UA:{code:"UA",officialName:"Ukraine",alpha3code:"UKR",numeric:"804",name:"Ukraine"},AE:{code:"AE",officialName:"United Arab Emirates (the)",alpha3code:"ARE",numeric:"784",name:"United Arab Emirates"},GB:{code:"GB",officialName:"United Kingdom of Great Britain and Northern Ireland (the)",alpha3code:"GBR",numeric:"826",name:"United Kingdom"},UM:{code:"UM",officialName:"United States Minor Outlying Islands (the)",alpha3code:"UMI",numeric:"581",name:"United States Minor Outlying Islands"},US:{code:"US",officialName:"United States of America (the)",alpha3code:"USA",numeric:"840",name:"United States"},UY:{code:"UY",officialName:"Uruguay",alpha3code:"URY",numeric:"858",name:"Uruguay"},UZ:{code:"UZ",officialName:"Uzbekistan",alpha3code:"UZB",numeric:"860",name:"Uzbekistan"},VU:{code:"VU",officialName:"Vanuatu",alpha3code:"VUT",numeric:"548",name:"Vanuatu"},VE:{code:"VE",officialName:"Venezuela (Bolivarian Republic of)",alpha3code:"VEN",numeric:"862",name:"Venezuela"},VN:{code:"VN",officialName:"Viet Nam",alpha3code:"VNM",numeric:"704",name:"Vietnam"},VG:{code:"VG",officialName:"Virgin Islands (British)",alpha3code:"VGB",numeric:"092",name:"British Virgin Islands"},VI:{code:"VI",officialName:"Virgin Islands (U.S.)",alpha3code:"VIR",numeric:"850",name:"Virgin Islands"},WF:{code:"WF",officialName:"Wallis and Futuna",alpha3code:"WLF",numeric:"876",name:"Wallis & Futuna"},EH:{code:"EH",officialName:"Western Sahara",alpha3code:"ESH",numeric:"732",name:"Western Sahara"},YE:{code:"YE",officialName:"Yemen",alpha3code:"YEM",numeric:"887",name:"Yemen"},ZM:{code:"ZM",officialName:"Zambia",alpha3code:"ZMB",numeric:"894",name:"Zambia"},ZW:{code:"ZW",officialName:"Zimbabwe",alpha3code:"ZWE",numeric:"716",name:"Zimbabwe"},AX:{code:"AX",officialName:"Åland Islands",alpha3code:"ALA",numeric:"248",name:"Åland Islands"},AC:{code:"AC",name:"Ascension Island"},XK:{code:"XK",name:"Kosovo"},TA:{code:"TA",name:"Tristan da Cunha"}};const x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Y(e,a){if(null==e)return e;if("string"==typeof e)return e;if("number"==typeof e){if(0===e)throw Error("Invalid timestamp");e<1e12&&(e*=1e3),e=new Date(e)}const i=e.getUTCDate(),n=String(i).padStart(2,"0"),o=e.getUTCMonth()+1,t=String(o).padStart(2,"0"),c=x[o],r=e.getUTCFullYear(),l=String(r),d=e.getUTCHours(),u=String(d).padStart(2,"0"),s=e.getUTCMinutes(),m=String(s).padStart(2,"0");switch(null!=a||(a="mmm d, yyyy hh:nn UTC"),a){case"mmm d, yyyy hh:nn UTC":return`${c} ${i}, ${l} ${u}:${m} UTC`;case"mmm d, yyyy":return`${c} ${i}, ${l}`;case"yyyy-mm-dd":return`${l}-${t}-${n}`;default:const e=a;let r;return r=e.replace("yyyy",l),r=e.replace("nn",m),r=e.replace("n",s.toString()),r=e.replace("hh",u),r=e.replace("h",d.toString()),r=e.replace("dd",n),r=e.replace("d",i.toString()),r=e.replace("mmm","§"),r=e.replace("mm",t),r=e.replace("m",o.toString()),r=e.replace("§",c),r}}function J(e,a){return[...e,a]}function j(e,a){return[...e.slice(0,a),...e.slice(a+1)]}function z(e,a){for(let i=0;i<e.length;i++)if(a(e[i],i))return j(e,i);return[...e]}function $(e,a,i){return[...e.slice(0,a),i,...e.slice(a+1)]}return a})()},156:a=>{"use strict";a.exports=e}},i={};function n(e){var o=i[e];if(void 0!==o)return o.exports;var t=i[e]={exports:{}};return a[e].call(t.exports,t,t.exports,n),t.exports}n.d=(e,a)=>{for(var i in a)n.o(a,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:a[i]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{FormControl:()=>le,FormFieldControl:()=>H,InputFilters:()=>te,ValidationRules:()=>oe,defaultGetElementValue:()=>O,defaultSetElementValue:()=>D,formFieldInfo:()=>K,useForm:()=>de,useRerender:()=>i});var e=n(156);function a(){return{isRendering:!1,rerenderingPending:!1}}function i(){const[,i]=(0,e.useState)(0),[n]=(0,e.useState)(a);return n.isRendering=!0,(0,e.useLayoutEffect)((()=>{n.isRendering=!1,n.rerenderingPending&&(n.rerenderingPending=!1,i((e=>e+1)))})),(0,e.useCallback)((e=>{n.isRendering||e?n.rerenderingPending=!0:(n.rerenderingPending=!1,i((e=>e+1)))}),[n])}var t,c,r,l,d,u,s,m,f,h,p,N,M,S,v,g,y,b,C,A,T,G,I,E,B,P,R,w=n(67),V=function(e,a,i,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof a?e!==a||!o:!a.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,i):o?o.value=i:a.set(e,i),i},U=function(e,a,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof a?e!==a||!n:!a.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:a.get(e)};const F="Required",L={preventValidate:!1};function O(e){return e.value}function D(e,a){return 0===(null==a?void 0:a.length)&&(a=void 0),a=null!=a?a:"",e.value!==a&&(e.value=a,!0)}const K={checkbox:{props:{type:"checkbox"},getElementValue:e=>e.checked,setElementValue:(e,a)=>(a=null!=a&&a,e.checked!==a&&(e.checked=a,!0))},color:{props:{type:"color"}},date:{props:{type:"date"},getElementValue:e=>e.value?new Date(e.value):null,setElementValue:(e,a)=>(a||(a=void 0),e.value!==a&&(e.value=(0,w.formatDate)(a,"yyyy-mm-dd"),!0))},"datetime-local":{props:{type:"datetime-local"},getElementValue:e=>e.value?new Date(e.value):null,setElementValue:(e,a)=>{var i;if(a||(a=void 0),e.value===a)return!1;var n=a&&new Date(a);return e.value=null!==(i=null==n?void 0:n.toISOString())&&void 0!==i?i:"",!0}},email:{props:{type:"email"}},file:{props:{type:"file"},shouldValidateOnChange:!0,getElementValue:e=>e.files},month:{props:{type:"month"}},number:{props:{type:"number"}},password:{props:{type:"password"}},radio:{props:{type:"radio"},shouldValidateOnChange:!0,getElementValue:e=>{var a;const i=null===(a=e.form)||void 0===a?void 0:a.elements[e.name];if(i)return i.value},setElementValue:(e,a)=>{var i;const n=null===(i=e.form)||void 0===i?void 0:i.elements[e.name];if(!n)return!1;const o=n;if(a=null!=a?a:"",o.value===a)return!1;if(""===a){const e=Array.from(o).map((e=>e)).find((e=>e.checked));if(!e)return!1;e.checked=!1}else o.value=a;return!0}},range:{props:{type:"range"}},search:{props:{type:"search"}},tel:{props:{type:"tel"}},text:{props:{type:"text"}},time:{props:{type:"time"}},url:{props:{type:"url"}},week:{props:{type:"week"}},"select-one":{props:{},shouldValidateOnChange:!0},"select-multiple":{props:{},shouldValidateOnChange:!0},textarea:{props:{}}},k=["button","submit","reset","menu","image"],W=Object.entries(K).filter((([,e])=>e.shouldValidateOnChange)).map((([e])=>e));class H{constructor(e,a){t.add(this),c.set(this,void 0),r.set(this,void 0),l.set(this,void 0),d.set(this,void 0),u.set(this,void 0),s.set(this,void 0),m.set(this,void 0),f.set(this,void 0),h.set(this,null),p.set(this,!1),N.set(this,!1),M.set(this,!1),S.set(this,[]),v.set(this,!1),g.set(this,[]),y.set(this,0),b.set(this,void 0),C.set(this,0),V(this,c,e,"f"),V(this,r,a,"f"),V(this,b,{},"f")}get props(){return U(this,d,"f")||V(this,d,{name:U(this,c,"f"),ref:e=>{e?U(this,t,"m",P).call(this,e):U(this,t,"m",R).call(this)}},"f"),U(this,d,"f")}get type(){var e;return null===(e=U(this,l,"f"))||void 0===e?void 0:e.type}get value(){return U(this,m,"f")&&U(this,l,"f")&&V(this,u,U(this,m,"f").call(this,U(this,l,"f")),"f"),U(this,u,"f")}get defaultValue(){return U(this,s,"f")}get options(){return U(this,b,"f")}set options(e){U(this,b,"f")!==e&&(this.startUpdate(),void 0!==e.defaultValue&&this.setDefaultValue(e.defaultValue),V(this,b,e,"f"),this.endUpdate())}get isDirty(){return U(this,p,"f")}set isDirty(e){var a;U(this,p,"f")!==e&&(this.startUpdate(),V(this,p,e,"f"),V(this,v,!0,"f"),this.endUpdate(),(a=U(this,r,"f")).isDirty||(a.isDirty=e))}get isTouched(){return U(this,N,"f")}set isTouched(e){U(this,N,"f")!==e&&(this.startUpdate(),V(this,N,e,"f"),V(this,v,!0,"f"),this.endUpdate())}get error(){return U(this,h,"f")}set error(e){U(this,h,"f")!==e&&(this.startUpdate(),V(this,h,e,"f"),V(this,v,!0,"f"),this.endUpdate())}startUpdate(){var e;V(this,y,(e=U(this,y,"f"),++e),"f")}endUpdate(){var e;0===V(this,y,(e=U(this,y,"f"),--e),"f")&&(U(this,M,"f")&&(V(this,M,!1,"f"),U(this,S,"f").forEach((e=>e()))),U(this,v,"f")&&(V(this,v,!1,"f"),U(this,g,"f").forEach((e=>e()))))}setValue(e,a){if(null!=a||(a=L),this.startUpdate(),U(this,f,"f")&&U(this,l,"f"))V(this,M,U(this,M,"f")||U(this,f,"f").call(this,U(this,l,"f"),e),"f"),!a.preventValidate&&U(this,M,"f")&&U(this,t,"a",T)&&this.validate();else{const a=this.value;V(this,s,e,"f"),V(this,u,e,"f"),V(this,M,U(this,M,"f")||a!==this.value,"f")}this.endUpdate()}setDefaultValue(e,a){if(null!=a||(a=L),U(this,l,"f")){const i=this.defaultValue;V(this,s,e,"f"),U(this,t,"a",A)&&i!==this.value||this.setValue(this.defaultValue,a)}else this.setValue(e,a)}subscribeToValueChanged(e){return U(this,S,"f").push(e),()=>{const a=U(this,S,"f").indexOf(e);-1!==a&&U(this,S,"f").splice(a,1)}}subscribeToStateChanged(e){return U(this,g,"f").push(e),()=>{const a=U(this,g,"f").indexOf(e);-1!==a&&U(this,g,"f").splice(a,1)}}validate(){var e;if(this.startUpdate(),this.options.required&&!U(this,t,"a",A))return this.error=F,this.endUpdate(),!1;if(U(this,l,"f")&&U(this,t,"a",A))for(const a of null!==(e=U(this,b,"f").rules)&&void 0!==e?e:[]){const e=a(this.value,U(this,l,"f"));if(e)return this.error=e,this.endUpdate(),!1}return this.error=null,this.endUpdate(),!0}reset(e){this.startUpdate(),V(this,h,null,"f"),V(this,p,!1,"f"),V(this,N,!1,"f"),void 0!==e&&this.setDefaultValue(e,{preventValidate:!0}),this.setValue(this.defaultValue,{preventValidate:!0}),V(this,v,!0,"f"),this.endUpdate()}focus(){var e;null===(e=U(this,l,"f"))||void 0===e||e.focus()}}c=new WeakMap,r=new WeakMap,l=new WeakMap,d=new WeakMap,u=new WeakMap,s=new WeakMap,m=new WeakMap,f=new WeakMap,h=new WeakMap,p=new WeakMap,N=new WeakMap,M=new WeakMap,S=new WeakMap,v=new WeakMap,g=new WeakMap,y=new WeakMap,b=new WeakMap,C=new WeakMap,t=new WeakSet,A=function(){return![void 0,""].includes(this.value)},T=function(){return!!U(this,N,"f")||!(!U(this,l,"f")||!W.includes(U(this,l,"f").type))},G=function(e){const a=e.currentTarget;this.setValue(a.value)},I=function(e){var a;U(this,b,"f").inputFilter&&e.data&&(null===(a=e.data.match(U(this,b,"f").inputFilter))||void 0===a?void 0:a[0].length)!==e.data.length&&e.preventDefault()},E=function(e){this.startUpdate(),this.isDirty=!0,V(this,M,!0,"f"),U(this,t,"a",T)&&this.validate(),this.endUpdate()},B=function(e){this.startUpdate(),this.isTouched=!0,this.isDirty&&this.validate(),this.endUpdate()},P=function(e){var a,i,n;this.startUpdate(),V(this,C,(n=U(this,C,"f"),++n),"f"),V(this,l,e,"f"),k.includes(e.type)?e.addEventListener("click",(e=>U(this,t,"m",G).call(this,e))):(e.addEventListener("beforeinput",(e=>U(this,t,"m",I).call(this,e))),e.addEventListener("input",(e=>U(this,t,"m",E).call(this,e))),e.addEventListener("blur",(e=>U(this,t,"m",B).call(this,e))),V(this,m,null!==(a=K[e.type].getElementValue)&&void 0!==a?a:O,"f"),V(this,f,null!==(i=K[e.type].setElementValue)&&void 0!==i?i:D,"f")),void 0!==this.defaultValue&&this.setValue(this.defaultValue),void 0!==this.value&&(void 0===this.defaultValue&&V(this,s,this.value,"f"),V(this,M,!0,"f")),this.endUpdate()},R=function(){var e;0===V(this,C,(e=U(this,C,"f"),--e),"f")&&(U(this,r,"f").unregister(U(this,c,"f")),U(this,m,"f")&&U(this,l,"f")&&V(this,u,U(this,m,"f").call(this,U(this,l,"f")),"f"),V(this,l,null,"f"))};var Z,x,Y,J,j,z,$,Q,X,q,_,ee,ae,ie,ne,oe,te,ce=function(e,a,i,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof a?e!==a||!o:!a.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,i):o?o.value=i:a.set(e,i),i},re=function(e,a,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof a?e!==a||!n:!a.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:a.get(e)};class le{constructor(e){var a;Z.add(this),x.set(this,!1),Y.set(this,!1),J.set(this,!1),j.set(this,new Map),z.set(this,[]),$.set(this,!1),Q.set(this,[]),X.set(this,0),q.set(this,void 0),_.set(this,{}),ee.set(this,{}),ce(this,q,null!==(a=null==e?void 0:e.defaultValues)&&void 0!==a?a:{},"f")}get value(){var e,a;const i={},n={};for(const[o,t]of Object.entries(re(this,_,"f"))){const c=o.indexOf("[");if(-1===c){i[o]=t.value;continue}const r=o.slice(0,c),l=null===(e=re(this,ee,"f")[r])||void 0===e?void 0:e.items;if(!l){i[o]=t.value;continue}const d=o.indexOf("]",c),u=o.slice(d+2);let s=n[r];if(s||(s=new Set,n[r]=s),s.has(u))continue;s.add(u);let m=i[r];if(null===(a=re(this,ee,"f")[r])||void 0===a?void 0:a.options.returnTrueValues){m||(m=[],i[r]=m);for(let e=0;e<l.length;++e){const a=l[e],i=re(this,_,"f")[`${r}[${a}].${u}`];if(void 0!==i&&!0===i.value){m.push(u);break}}}else{m||(m=l.map((e=>({}))),i[r]=m);for(let e=0;e<l.length;++e){const a=l[e],i=re(this,_,"f")[`${r}[${a}].${u}`];void 0!==i&&(m[e][u]=i.value)}}}return i}get isDirty(){return re(this,Y,"f")}set isDirty(e){re(this,Y,"f")!==e&&(this.startUpdate(),ce(this,Y,e,"f"),ce(this,$,!0,"f"),this.endUpdate())}get isSubmitting(){return re(this,x,"f")}startUpdate(){var e;ce(this,X,(e=re(this,X,"f"),++e),"f")}endUpdate(){var e;0===ce(this,X,(e=re(this,X,"f"),--e),"f")&&(re(this,J,"f")&&(ce(this,J,!1,"f"),re(this,z,"f").forEach((e=>e()))),re(this,$,"f")&&(ce(this,$,!1,"f"),re(this,Q,"f").forEach((e=>e()))))}register(e,a){return re(this,Z,"m",ae).call(this,e,a).props}unregister(e){re(this,_,"f").hasOwnProperty(e)&&(this.startUpdate(),delete re(this,_,"f")[e],ce(this,J,!0,"f"),ce(this,$,!0,"f"),this.endUpdate())}useFormState(){const a=i();return(0,e.useEffect)((()=>re(this,Z,"m",ne).call(this,a)),[]),this}useFormFieldState(a){const n=(0,e.useRef)(),o=i(),t=re(this,_,"f")[a];if(!n.current)if(t)n.current=t.subscribeToValueChanged(o);else{let e=re(this,j,"f").get(a);e||(e=[],re(this,j,"f").set(a,e));const i={callback:o,type:"stateChanged"};e.push(i),n.current=()=>{var e;return null===(e=i.unsubscribe)||void 0===e?void 0:e.call(i)}}return(0,e.useEffect)((()=>()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.call(n)}),[]),t}useFormFieldValue(a){const n=(0,e.useRef)(),o=i(),t=re(this,_,"f")[a];if(!n.current)if(t)n.current=t.subscribeToValueChanged(o);else{let e=re(this,j,"f").get(a);e||(e=[],re(this,j,"f").set(a,e));const i={callback:o,type:"valueChanged"};e.push(i),n.current=()=>{var e;return null===(e=i.unsubscribe)||void 0===e?void 0:e.call(i)}}return(0,e.useEffect)((()=>()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.call(n)}),[]),null==t?void 0:t.value}useFieldArrayValue(a){const[n]=(0,e.useState)((()=>new Map)),o=i();return Object.entries(re(this,_,"f")).filter((([e])=>!n.has(e)&&e.startsWith(`${a}[`))).forEach((([e,a])=>n.set(e,a.subscribeToValueChanged(o)))),(0,e.useEffect)((()=>()=>n.forEach((e=>e()))),[]),this.value[a]}useFormValue(){const a=i();return(0,e.useEffect)((()=>re(this,Z,"m",ie).call(this,a)),[]),this.value}useFieldArray(a,i){var n;const o=null!==(n=null==i?void 0:i.items)&&void 0!==n?n:[],t=o.map((e=>"function"==typeof i.keyField?i.keyField(e):e[i.keyField])),c={};for(let e=0;e<o.length;++e)c[t[e]]=o[e];const[r,l]=(0,e.useState)(t);(0,e.useEffect)((()=>{i&&!i.loading&&l((e=>[...t,...e.filter((e=>void 0===c[e]))]))}),[null==i?void 0:i.loading]);const d=(0,e.useCallback)((()=>l((e=>(0,w.push)(e,(0,w.randomKey)())))),[a]),u=(0,e.useCallback)((e=>l((a=>(0,w.isString)(e)?(0,w.remove)(a,(a=>a===e)):(0,w.removeAt)(a,e)))),[a]),s=a;return 0===r.length?delete re(this,ee,"f")[a]:re(this,ee,"f")[a]={items:r,options:{returnTrueValues:null==i?void 0:i.returnTrueValues}},{fields:(0,e.useMemo)((()=>r.map((e=>({key:e,item:c[e],getName:a=>`${s}[${e}].${a}`})))),[r]),addItem:d,removeItem:u}}reset(e){this.startUpdate(),e&&ce(this,q,e,"f"),Object.entries(re(this,_,"f")).forEach((([a,i])=>i.reset(null==e?void 0:e[a]))),this.isDirty=!1,this.endUpdate()}handleSubmit(e){const a=this;return i=>{return n=this,o=void 0,c=function*(){null==i||i.preventDefault();for(const e of Object.values(re(a,_,"f")))if(!e.validate())return void e.focus();const n=this.value;this.startUpdate(),ce(this,x,!0,"f"),ce(this,$,!0,"f"),this.endUpdate(),yield e(n,i),this.startUpdate(),ce(this,x,!1,"f"),ce(this,Y,!1,"f"),Object.values(re(this,_,"f")).forEach((e=>e.isDirty=!1)),ce(this,$,!0,"f"),this.endUpdate()},new((t=void 0)||(t=Promise))((function(e,a){function i(e){try{l(c.next(e))}catch(e){a(e)}}function r(e){try{l(c.throw(e))}catch(e){a(e)}}function l(a){var n;a.done?e(a.value):(n=a.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,r)}l((c=c.apply(n,o||[])).next())}));var n,o,t,c}}setValue(e,a){re(this,Z,"m",ae).call(this,e).setValue(a)}setDefaultValue(e,a){re(this,Z,"m",ae).call(this,e).setDefaultValue(a)}}function de(a){const i=(0,e.useState)((()=>new le(a)))[0];return(0,e.useMemo)((()=>({control:i,register:i.register.bind(i),unregister:i.unregister.bind(i),useFormFieldState:i.useFormFieldState.bind(i),useFormFieldValue:i.useFormFieldValue.bind(i),useFieldArrayValue:i.useFieldArrayValue.bind(i),useFormValue:i.useFormValue.bind(i),useFormState:i.useFormState.bind(i),useFieldArray:i.useFieldArray.bind(i),reset:i.reset.bind(i),handleSubmit:i.handleSubmit.bind(i),setValue:i.setValue.bind(i),setDefaultValue:i.setDefaultValue.bind(i)})),[])}x=new WeakMap,Y=new WeakMap,J=new WeakMap,j=new WeakMap,z=new WeakMap,$=new WeakMap,Q=new WeakMap,X=new WeakMap,q=new WeakMap,_=new WeakMap,ee=new WeakMap,Z=new WeakSet,ae=function(e,a){let i=re(this,_,"f")[e];const n=re(this,q,"f")[e];if(a&&void 0===a.defaultValue&&void 0!==n&&(a.defaultValue=n),void 0===i){i=new H(e,this),re(this,_,"f")[e]=i,i.subscribeToValueChanged((()=>{this.startUpdate(),ce(this,J,!0,"f"),this.endUpdate()}));const a=re(this,j,"f").get(e);null==a||a.forEach((e=>{"valueChanged"===e.type?e.unsubscribe=null==i?void 0:i.subscribeToValueChanged(e.callback):e.unsubscribe=null==i?void 0:i.subscribeToStateChanged(e.callback),e.callback(!0)}));const n=e.indexOf("[");if(-1!==n){const a=e.slice(0,n),o=re(this,j,"f").get(a);null==o||o.forEach((e=>{"valueChanged"===e.type?e.unsubscribe=null==i?void 0:i.subscribeToValueChanged(e.callback):e.unsubscribe=null==i?void 0:i.subscribeToStateChanged(e.callback),e.callback(!0)}))}}return a&&(i.options=a),i},ie=function(e){return re(this,z,"f").push(e),()=>{const a=re(this,z,"f").indexOf(e);-1!==a&&re(this,z,"f").splice(a,1)}},ne=function(e){return re(this,Q,"f").push(e),()=>{const a=re(this,Q,"f").indexOf(e);-1!==a&&re(this,Q,"f").splice(a,1)}},function(e){e.maxFileSize=function(e){return a=>{var i;return(null===(i=null==a?void 0:a[0])||void 0===i?void 0:i.size)>e?`Maximum image size is ${(0,w.formatFileSize)(e)}.`:void 0}},e.isNumber=function(e){return isNaN(+e)?"Value is not a valid number.":void 0},e.isPositiveNumber=function(e){return isNaN(+e)||+e<0?"Value is not a positive number.":void 0},e.isPositiveInteger=function(e){return isNaN(+e)||!Number.isInteger(+e)?"Value is not a positive integer.":void 0},e.isEmailAddress=function(e){return/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)?void 0:"Invalid email address."}}(oe||(oe={})),function(e){e.integer=/\d*/,e.numeric=/[-0-9., ]*/}(te||(te={}))})(),o})()}));
//# sourceMappingURL=index.js.map
{
"name": "@duely/react-form",
"version": "0.4.20",
"version": "0.4.21",
"description": "React useFrom hook for duely.app",

@@ -5,0 +5,0 @@ "repository": "github:uoleevi/duely",

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