Socket
Socket
Sign inDemoInstall

intl-tel-input

Package Overview
Dependencies
8
Maintainers
1
Versions
351
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 19.5.1 to 19.5.2

third_party/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1363_en

2

build/js/data.js
/*
* International Telephone Input v19.5.1
* International Telephone Input v19.5.2
* https://github.com/jackocnr/intl-tel-input.git

@@ -4,0 +4,0 @@ * Licensed under the MIT license

/*
* International Telephone Input v19.5.1
* International Telephone Input v19.5.2
* https://github.com/jackocnr/intl-tel-input.git

@@ -4,0 +4,0 @@ * Licensed under the MIT license

/*
* International Telephone Input v19.5.1
* International Telephone Input v19.5.2
* https://github.com/jackocnr/intl-tel-input.git

@@ -8,2 +8,2 @@ * Licensed under the MIT license

!function(a){"object"==typeof module&&module.exports?module.exports=a(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],function(b){a(b)}):a(jQuery)}(function(a,b){"use strict";function c(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?Object(arguments[b]):{},e=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&e.push.apply(e,Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable})),e.forEach(function(b){d(a,b,c[b])})}return a}function d(a,b,c){return b=n(b),b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function e(a,b){return j(a)||i(a,b)||g(a,b)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(a,b){if(a){if("string"==typeof a)return h(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(a):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?h(a,b):void 0}}function h(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=new Array(b);c<b;c++)d[c]=a[c];return d}function i(a,b){var c=null==a?null:"undefined"!=typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(null!=c){var d,e,f,g,h=[],i=!0,j=!1;try{if(f=(c=c.call(a)).next,0===b){if(Object(c)!==c)return;i=!1}else for(;!(i=(d=f.call(c)).done)&&(h.push(d.value),h.length!==b);i=!0);}catch(k){j=!0,e=k}finally{try{if(!i&&null!=c["return"]&&(g=c["return"](),Object(g)!==g))return}finally{if(j)throw e}}return h}}function j(a){if(Array.isArray(a))return a}function k(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function l(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,n(d.key),d)}}function m(a,b,c){return b&&l(a.prototype,b),c&&l(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function n(a){var b=o(a,"string");return"symbol"==typeof b?b:String(b)}function o(a,c){if("object"!=typeof a||null===a)return a;var d=a[Symbol.toPrimitive];if(d!==b){var e=d.call(a,c||"default");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===c?String:Number)(a)}for(var p=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua & Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria","at","43"],["Azerbaijan","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus","by","375"],["Belgium","be","32"],["Belize","bz","501"],["Benin","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia & Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros","km","269"],["Congo - Brazzaville","cg","242"],["Congo - Kinshasa","cd","243"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus","cy","357"],["Czech Republic","cz","420"],["Denmark","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands","fk","500"],["Faroe Islands","fo","298"],["Fiji","fj","679"],["Finland","fi","358",0],["France","fr","33"],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49"],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30"],["Greenland","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong","hk","852"],["Hungary","hu","36"],["Iceland","is","354"],["India","in","91"],["Indonesia","id","62"],["Iran","ir","98"],["Iraq","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel","il","972"],["Italy","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan","jo","962"],["Kazakhstan","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996"],["Laos","la","856"],["Latvia","lv","371"],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico","mx","52"],["Micronesia","fm","691"],["Moldova","md","373"],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco","ma","212",0],["Mozambique","mz","258"],["Myanmar (Burma)","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31"],["New Caledonia","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea","kp","850"],["North Macedonia","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway","no","47",0],["Oman","om","968"],["Pakistan","pk","92"],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63"],["Poland","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262",0],["Romania","ro","40"],["Russia","ru","7",0],["Rwanda","rw","250"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé & Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82"],["South Sudan","ss","211"],["Spain","es","34"],["Sri Lanka","lk","94"],["St Barthélemy","bl","590",1],["St Helena","sh","290"],["St Kitts & Nevis","kn","1",18,["869"]],["St Lucia","lc","1",19,["758"]],["St Martin","mf","590",2],["St Pierre & Miquelon","pm","508"],["St Vincent & Grenadines","vc","1",20,["784"]],["Sudan","sd","249"],["Suriname","sr","597"],["Svalbard & Jan Mayen","sj","47",1,["79"]],["Sweden","se","46"],["Switzerland","ch","41"],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad & Tobago","tt","1",22,["868"]],["Tunisia","tn","216"],["Turkey","tr","90"],["Turkmenistan","tm","993"],["Turks & Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380"],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["US Virgin Islands","vi","1",24,["340"]],["Uzbekistan","uz","998"],["Vanuatu","vu","678"],["Vatican City","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681"],["Western Sahara","eh","212",1,["5288","5289"]],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],q=0;q<p.length;q++){var r=p[q];p[q]={name:r[0],iso2:r[1],dialCode:r[2],priority:r[3]||0,areaCodes:r[4]||null,nodeById:{}}}var s={getInstance:function(a){var b=a.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[b]},instances:{},documentReady:function(){return"complete"===document.readyState}};"object"==typeof window&&(window.intlTelInputGlobals=s);var t=0,u={allowDropdown:!0,autoInsertDialCode:!1,autoPlaceholder:"polite",countrySearch:!0,containerClass:"",customPlaceholder:null,defaultToFirstCountry:!0,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:[],showFlags:!0,showSelectedDialCode:!1,useFullscreenPopup:"undefined"!=typeof navigator&&"undefined"!=typeof window&&(/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500),utilsScript:""},v=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],w=function(a){var b=window.intlTelInputGlobals.instances;Object.values(b).forEach(function(b){return b[a]()})},x=function(){function a(c){var d=arguments.length>1&&arguments[1]!==b?arguments[1]:{};k(this,a),this.id=t++,this.a=c,this.b=null,this.c=null,this.d=Object.assign({},u,d),this.e=Boolean(c.getAttribute("placeholder"))}return m(a,[{key:"_init",value:function(){var a=this;this.d.useFullscreenPopup&&(this.d.fixDropdownWidth=!1),this.d.countrySearch&&!this.d.useFullscreenPopup&&(this.d.fixDropdownWidth=!0),this.d.nationalMode&&(this.d.autoInsertDialCode=!1),this.d.showSelectedDialCode&&(this.d.autoInsertDialCode=!1);var b=this.d.allowDropdown&&!this.d.showSelectedDialCode;if(!this.d.showFlags&&b&&(this.d.showFlags=!0),this.d.useFullscreenPopup&&!this.d.dropdownContainer&&(this.d.dropdownContainer=document.body),this.isRTL=!!this.a.closest("[dir=rtl]"),"undefined"!=typeof Promise){var c=new Promise(function(b,c){a.h=b,a.i=c}),d=new Promise(function(b,c){a.i0=b,a.i1=c});this.promise=Promise.all([c,d])}else this.h=this.i=function(){},this.i0=this.i1=function(){};this.s={},this._b(),this._f(),this._h(),this._i(),this._i3()}},{key:"_b",value:function(){this._d(),this._d2(),this._e(),this._d0(),(this.d.onlyCountries.length||this.d.i18n)&&this.p.sort(this._d1)}},{key:"_c",value:function(a,c,d){c.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=c.length),this.q.hasOwnProperty(c)||(this.q[c]=[]);for(var e=0;e<this.q[c].length;e++)if(this.q[c][e]===a)return;var f=d!==b?d:this.q[c].length;this.q[c][f]=a}},{key:"_d",value:function(){if(this.d.onlyCountries.length){var a=this.d.onlyCountries.map(function(a){return a.toLowerCase()});this.p=p.filter(function(b){return a.indexOf(b.iso2)>-1})}else if(this.d.excludeCountries.length){var b=this.d.excludeCountries.map(function(a){return a.toLowerCase()});this.p=p.filter(function(a){return-1===b.indexOf(a.iso2)})}else this.p=p}},{key:"_d0",value:function(){for(var a=0;a<this.p.length;a++){var b=this.p[a].iso2.toLowerCase();this.d.i18n.hasOwnProperty(b)&&(this.p[a].name=this.d.i18n[b])}}},{key:"_d1",value:function(a,b){return a.name<b.name?-1:a.name>b.name?1:0}},{key:"_d2",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.q={};for(var a=0;a<this.p.length;a++){var b=this.p[a];this.dialCodes[b.dialCode]||(this.dialCodes[b.dialCode]=!0),this._c(b.iso2,b.dialCode,b.priority)}for(var c=0;c<this.p.length;c++){var d=this.p[c];if(d.areaCodes)for(var e=this.q[d.dialCode][0],f=0;f<d.areaCodes.length;f++){for(var g=d.areaCodes[f],h=1;h<g.length;h++){var i=d.dialCode+g.substr(0,h);this._c(e,i),this._c(d.iso2,i)}this._c(d.iso2,d.dialCode+g)}}}},{key:"_e",value:function(){this.preferredCountries=[];for(var a=0;a<this.d.preferredCountries.length;a++){var b=this.d.preferredCountries[a].toLowerCase(),c=this._y(b,!0);c&&this.preferredCountries.push(c)}}},{key:"_e2",value:function(a,b,c){var d=document.createElement(a);return b&&Object.entries(b).forEach(function(a){var b=e(a,2),c=b[0],f=b[1];return d.setAttribute(c,f)}),c&&c.appendChild(d),d}},{key:"_f",value:function(){this.a.classList.add("iti__tel-input"),this.a.hasAttribute("autocomplete")||this.a.form&&this.a.form.hasAttribute("autocomplete")||this.a.setAttribute("autocomplete","off");var a=this.d,b=a.allowDropdown,d=a.showSelectedDialCode,e=a.showFlags,f=a.containerClass,g=a.hiddenInput,h=a.dropdownContainer,i=a.fixDropdownWidth,j=a.useFullscreenPopup,k=a.countrySearch,l="iti";b&&(l+=" iti--allow-dropdown"),d&&(l+=" iti--show-selected-dial-code"),e&&(l+=" iti--show-flags"),f&&(l+=" ".concat(f)),j||(l+=" iti--inline-dropdown");var m=this._e2("div",{"class":l});this.a.parentNode.insertBefore(m,this.a);var n=b||e||d;if(n&&(this.k=this._e2("div",{"class":"iti__flag-container"},m)),m.appendChild(this.a),n&&(this.selectedFlag=this._e2("div",c({"class":"iti__selected-flag"},b&&{role:"combobox","aria-haspopup":"listbox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false","aria-label":this.d.i18n.selectedCountryAriaLabel||"Selected country"}),this.k)),e&&(this.l=this._e2("div",{"class":"iti__flag iti__globe"},this.selectedFlag)),this.selectedFlag&&this.a.disabled&&this.selectedFlag.setAttribute("aria-disabled","true"),d&&(this.t=this._e2("div",{"class":"iti__selected-dial-code"},this.selectedFlag)),b){this.a.disabled||this.selectedFlag.setAttribute("tabindex","0"),this.u=this._e2("div",{"class":"iti__arrow"},this.selectedFlag);var o=i?"":"iti--flexible-dropdown-width";if(this.dropdownContent=this._e2("div",{"class":"iti__dropdown-content iti__hide ".concat(o)}),k&&(this.searchInput=this._e2("input",{type:"text","class":"iti__search-input",placeholder:this.d.i18n.searchPlaceholder||"Search"},this.dropdownContent)),this.countryList=this._e2("ul",{"class":"iti__country-list",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":this.d.i18n.countryListAriaLabel||"List of countries"},this.dropdownContent),this.preferredCountries.length&&!k&&(this._g(this.preferredCountries,"iti__preferred",!0),this._e2("li",{"class":"iti__divider","aria-hidden":"true"},this.countryList)),this._g(this.p,"iti__standard"),h){var p="iti iti--container";p+=j?" iti--fullscreen-popup":" iti--inline-dropdown",k&&(p+=" iti--country-search"),this.dropdown=this._e2("div",{"class":p}),this.dropdown.appendChild(this.dropdownContent)}else this.k.appendChild(this.dropdownContent)}if(g){var q,r,s=this.a.getAttribute("name"),t=g(s),u=null!==t&&"object"==typeof t;if(u?(q=t.phone||s,r=t.country||"".concat(q,"_country")):(q=t||s,r="".concat(q,"_country")),!q)return;this.hiddenInput=this._e2("input",{type:"hidden",name:q}),this.hiddenInputCountry=this._e2("input",{type:"hidden",name:r}),m.appendChild(this.hiddenInput),m.appendChild(this.hiddenInputCountry)}}},{key:"_g",value:function(a,b,c){for(var d=0;d<a.length;d++){var e=a[d],f=c?"-preferred":"",g=this._e2("li",{id:"iti-".concat(this.id,"__item-").concat(e.iso2).concat(f),"class":"iti__country ".concat(b),tabindex:"-1",role:"option","data-dial-code":e.dialCode,"data-country-code":e.iso2,"aria-selected":"false"},this.countryList);e.nodeById[this.id]=g;var h="";this.d.showFlags&&(h+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(e.iso2,"'></div></div>")),h+="<span class='iti__country-name'>".concat(e.name,"</span>"),h+="<span class='iti__dial-code'>+".concat(e.dialCode,"</span>"),g.insertAdjacentHTML("beforeend",h)}}},{key:"_h",value:function(){var a=arguments.length>0&&arguments[0]!==b&&arguments[0],c=this.a.getAttribute("value"),d=this.a.value,e=c&&"+"===c.charAt(0)&&(!d||"+"!==d.charAt(0)),f=e?c:d,g=this._5(f),h=this._w(f),i=this.d,j=i.initialCountry,k=i.autoInsertDialCode,l=i.defaultToFirstCountry;if(g&&!h)this._v(f);else if("auto"!==j||a){var m=j?j.toLowerCase():"",n=m&&this._y(m,!0);n?this._z(m):g&&h?this._z("us"):l&&(this.j=this.preferredCountries.length?this.preferredCountries[0].iso2:this.p[0].iso2,f||this._z(this.j)),!f&&k&&(this.a.value="+".concat(this.s.dialCode))}f&&this._u(f)}},{key:"_i",value:function(){this._j(),this.d.autoInsertDialCode&&this._l(),this.d.allowDropdown&&this._i2(),this.hiddenInput&&this._i0()}},{key:"_i0",value:function(){var a=this;this._a14=function(){a.hiddenInput.value=a.getNumber(),a.hiddenInputCountry.value=a.getSelectedCountryData().iso2},this.a.form&&this.a.form.addEventListener("submit",this._a14)}},{key:"_i2",value:function(){var a=this;this._a9=function(b){a.dropdownContent.classList.contains("iti__hide")?a.a.focus():b.preventDefault()};var b=this.a.closest("label");b&&b.addEventListener("click",this._a9),this._a10=function(){!a.dropdownContent.classList.contains("iti__hide")||a.a.disabled||a.a.readOnly||a._n()},this.selectedFlag.addEventListener("click",this._a10),this._a11=function(b){a.dropdownContent.classList.contains("iti__hide")&&["ArrowUp","ArrowDown"," ","Enter"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),a._n()),"Tab"===b.key&&a._2()},this.k.addEventListener("keydown",this._a11)}},{key:"_i3",value:function(){var a=this;this.d.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.d.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(a.d.utilsScript)}):this.i0(),"auto"!==this.d.initialCountry||this.s.iso2?this.h():this._i4()}},{key:"_i4",value:function(){var a=this;window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.d.geoIpLookup&&this.d.geoIpLookup(function(){var c=arguments.length>0&&arguments[0]!==b?arguments[0]:"",d=c.toLowerCase();d&&a._y(d,!0)?(window.intlTelInputGlobals.autoCountry=d,setTimeout(function(){return w("handleAutoCountry")})):(a._h(!0),w("rejectAutoCountryPromise"))},function(){return w("rejectAutoCountryPromise")}))}},{key:"_j",value:function(){var a=this,b=!1;this._a12=function(c){if(a._v(a.a.value)&&a._m2CountryChange(),c&&c.data&&/[^+0-9]/.test(c.data)?b=!0:/[^+0-9]/.test(a.a.value)||(b=!1),a.d.formatAsYouType&&!b){var d=a.a.selectionStart,e=a.a.value.substring(0,d),f=e.replace(/[^+0-9]/g,"").length,g=c&&"deleteContentForward"===c.inputType,h=a._formatNumberAsYouType(),i=a._translateCursorPosition(f,h,d,g);a.a.value=h,a.a.setSelectionRange(i,i)}},this.a.addEventListener("input",this._a12),this._a13=function(){setTimeout(a._a12)},this.a.addEventListener("cut",this._a13),this.a.addEventListener("paste",this._a13)}},{key:"_translateCursorPosition",value:function(a,b,c,d){if(0===c&&!d)return 0;for(var e=0,f=0;f<b.length;f++){if(/[+0-9]/.test(b[f])&&e++,e===a&&!d)return f+1;if(d&&e===a+1)return f}return b.length}},{key:"_j2",value:function(a){var b=this.a.getAttribute("maxlength");return b&&a.length>b?a.substr(0,b):a}},{key:"_l",value:function(){var a=this;this._a8=function(){a._l2()},this.a.form&&this.a.form.addEventListener("submit",this._a8),this.a.addEventListener("blur",this._a8)}},{key:"_l2",value:function(){if("+"===this.a.value.charAt(0)){var a=this._m(this.a.value);a&&this.s.dialCode!==a||(this.a.value="")}}},{key:"_m",value:function(a){return a.replace(/\D/g,"")}},{key:"_m2",value:function(a){var b=new Event(a,{bubbles:!0,cancelable:!0});this.a.dispatchEvent(b)}},{key:"_n",value:function(){if(this.d.fixDropdownWidth&&(this.dropdownContent.style.width="".concat(this.a.offsetWidth,"px")),this.dropdownContent.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._o(),this.d.countrySearch){var a=this.countryList.firstElementChild;a&&this._x(a,!1),this.searchInput.focus()}else this.b&&(this._x(this.b,!1),this._3(this.b,!0));this._p(),this.u.classList.add("iti__arrow--up"),this._m2("open:countrydropdown")}},{key:"_n2",value:function(a,b,c){c&&!a.classList.contains(b)?a.classList.add(b):!c&&a.classList.contains(b)&&a.classList.remove(b)}},{key:"_o",value:function(){var a=this;if(this.d.dropdownContainer&&this.d.dropdownContainer.appendChild(this.dropdown),!this.d.useFullscreenPopup){var b=this.a.getBoundingClientRect(),c=document.documentElement.scrollTop,d=b.top+c,e=this.dropdownContent.offsetHeight,f=d+this.a.offsetHeight+e<c+window.innerHeight,g=d-e>c,h=!this.d.countrySearch&&!f&&g;if(this._n2(this.dropdownContent,"iti__dropdown-content--dropup",h),this.d.dropdownContainer){var i=h?0:this.a.offsetHeight;this.dropdown.style.top="".concat(d+i,"px"),this.dropdown.style.left="".concat(b.left+document.body.scrollLeft,"px"),this._a4=function(){return a._2()},window.addEventListener("scroll",this._a4)}}}},{key:"_p",value:function(){var a=this;this._a0=function(b){var c=b.target.closest(".iti__country");c&&a._x(c,!1)},this.countryList.addEventListener("mouseover",this._a0),this._a1=function(b){var c=b.target.closest(".iti__country");c&&a._1(c)},this.countryList.addEventListener("click",this._a1);var b=!0;this._a2=function(){b||a._2(),b=!1},document.documentElement.addEventListener("click",this._a2);var c="",d=null;if(this._a3=function(b){["ArrowUp","ArrowDown","Enter","Escape"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),"ArrowUp"===b.key||"ArrowDown"===b.key?a._q(b.key):"Enter"===b.key?a._r():"Escape"===b.key&&a._2()),!a.d.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(b.key)&&(b.stopPropagation(),d&&clearTimeout(d),c+=b.key.toLowerCase(),a._s(c),d=setTimeout(function(){c=""},1e3))},document.addEventListener("keydown",this._a3),this.d.countrySearch){var e=function(){var b=a.searchInput.value.trim();b?a._filterCountries(b):a._filterCountries("",!0)},f=null;this._handleSearchChange=function(){f&&clearTimeout(f),f=setTimeout(function(){e(),f=null},100)},this.searchInput.addEventListener("input",this._handleSearchChange),this.searchInput.addEventListener("click",function(a){return a.stopPropagation()})}}},{key:"_normaliseString",value:function(){return(arguments.length>0&&arguments[0]!==b?arguments[0]:"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},{key:"_filterCountries",value:function(a){var c=arguments.length>1&&arguments[1]!==b&&arguments[1],d=!0;this.countryList.innerHTML="";for(var e=this._normaliseString(a),f=0;f<this.p.length;f++){var g=this.p[f],h=this._normaliseString(g.name),i="+".concat(g.dialCode);(c||h.includes(e)||i.includes(e)||g.iso2.includes(e))&&(this.countryList.appendChild(g.nodeById[this.id]),d&&(this._x(g.nodeById[this.id],!1),d=!1))}}},{key:"_q",value:function(a){var b="ArrowUp"===a?this.c.previousElementSibling:this.c.nextElementSibling;if(b?b.classList.contains("iti__divider")&&(b="ArrowUp"===a?b.previousElementSibling:b.nextElementSibling):this.countryList.childElementCount>1&&(b="ArrowUp"===a?this.countryList.lastElementChild:this.countryList.firstElementChild),b){var c=!this.d.countrySearch;this._x(b,c),this.d.countrySearch&&this._3(b,!1)}}},{key:"_r",value:function(){this.c&&this._1(this.c)}},{key:"_s",value:function(a){for(var b=0;b<this.p.length;b++)if(this._t(this.p[b].name,a)){var c=this.p[b].nodeById[this.id];this._x(c,!1),this._3(c,!0);break}}},{key:"_t",value:function(a,b){return a.substr(0,b.length).toLowerCase()===b}},{key:"_u",value:function(a){var b=a;if(this.d.formatOnDisplay&&window.intlTelInputUtils&&this.s){var c=this.d.nationalMode||"+"!==b.charAt(0)&&!this.d.showSelectedDialCode,d=intlTelInputUtils.numberFormat,e=d.NATIONAL,f=d.INTERNATIONAL,g=c?e:f;b=intlTelInputUtils.formatNumber(b,this.s.iso2,g)}b=this._7(b),this.a.value=b}},{key:"_v",value:function(a){var b=a.indexOf("+"),c=b?a.substring(b):a,d=this.s.dialCode,e="1"===d;c&&e&&"+"!==c.charAt(0)&&("1"!==c.charAt(0)&&(c="1".concat(c)),c="+".concat(c)),this.d.showSelectedDialCode&&d&&"+"!==c.charAt(0)&&(c="+".concat(d).concat(c));var f=this._5(c,!0),g=this._m(c),h=null;if(f){var i=this.q[this._m(f)],j=-1!==i.indexOf(this.s.iso2)&&g.length<=f.length-1;if(!("1"===d&&this._w(g))&&!j)for(var k=0;k<i.length;k++)if(i[k]){h=i[k];break}}else"+"===c.charAt(0)&&g.length?h="":c&&"+"!==c||this.s.iso2||(h=this.j);return null!==h&&this._z(h)}},{key:"_w",value:function(a){var b=this._m(a);if("1"===b.charAt(0)){var c=b.substr(1,3);return-1!==v.indexOf(c)}return!1}},{key:"_x",value:function(a,b){var c=this.c;c&&c.classList.remove("iti__highlight"),this.c=a,this.c.classList.add("iti__highlight"),this.selectedFlag.setAttribute("aria-activedescendant",a.getAttribute("id")),b&&this.c.focus()}},{key:"_y",value:function(a,b){for(var c=0;c<this.p.length;c++)if(this.p[c].iso2===a)return this.p[c];if(b)return null;throw new Error("No country data for '".concat(a,"'"))}},{key:"_z",value:function(a){var b=this.d,c=b.allowDropdown,d=b.showSelectedDialCode,e=b.showFlags,f=b.countrySearch,g=this.s.iso2?this.s:{};if(this.s=a?this._y(a,!1):{},this.s.iso2&&(this.j=this.s.iso2),e){var h=a?"iti__".concat(a):"iti__globe";this.l.setAttribute("class","iti__flag ".concat(h))}if(this._setSelectedCountryFlagTitleAttribute(a,d),d){var i=this.s.dialCode?"+".concat(this.s.dialCode):"";this.t.innerHTML=i;var j=this.selectedFlag.offsetWidth||this._z2();this.isRTL?this.a.style.paddingRight="".concat(j+6,"px"):this.a.style.paddingLeft="".concat(j+6,"px")}if(this._0(),c&&!f){var k=this.b;if(k&&(k.classList.remove("iti__active"),k.setAttribute("aria-selected","false")),a){var l=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(a,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(a));l.setAttribute("aria-selected","true"),l.classList.add("iti__active"),this.b=l}}return g.iso2!==a}},{key:"_setSelectedCountryFlagTitleAttribute",value:function(a,b){if(this.selectedFlag){var c;c=a&&!b?"".concat(this.s.name,": +").concat(this.s.dialCode):a?this.s.name:"Unknown",this.selectedFlag.setAttribute("title",c)}}},{key:"_z2",value:function(){var a=this.a.parentNode.cloneNode();a.style.visibility="hidden",document.body.appendChild(a);var b=this.k.cloneNode();a.appendChild(b);var c=this.selectedFlag.cloneNode(!0);b.appendChild(c);var d=c.offsetWidth;return a.parentNode.removeChild(a),d}},{key:"_0",value:function(){var a="aggressive"===this.d.autoPlaceholder||!this.e&&"polite"===this.d.autoPlaceholder;if(window.intlTelInputUtils&&a){var b=intlTelInputUtils.numberType[this.d.placeholderNumberType],c=this.s.iso2?intlTelInputUtils.getExampleNumber(this.s.iso2,this.d.nationalMode,b):"";c=this._7(c),"function"==typeof this.d.customPlaceholder&&(c=this.d.customPlaceholder(c,this.s)),
this.a.setAttribute("placeholder",c)}}},{key:"_1",value:function(a){var b=this._z(a.getAttribute("data-country-code"));this._2(),this._4(a.getAttribute("data-dial-code")),this.a.focus(),b&&this._m2CountryChange()}},{key:"_2",value:function(){this.dropdownContent.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.selectedFlag.removeAttribute("aria-activedescendant"),this.u.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._a3),this.d.countrySearch&&this.searchInput.removeEventListener("input",this._handleSearchChange),document.documentElement.removeEventListener("click",this._a2),this.countryList.removeEventListener("mouseover",this._a0),this.countryList.removeEventListener("click",this._a1),this.d.dropdownContainer&&(this.d.useFullscreenPopup||window.removeEventListener("scroll",this._a4),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._m2("close:countrydropdown")}},{key:"_3",value:function(a,b){var c=this.countryList,d=document.documentElement.scrollTop,e=c.offsetHeight,f=c.getBoundingClientRect().top+d,g=f+e,h=a.offsetHeight,i=a.getBoundingClientRect().top+d,j=i+h,k=i-f+c.scrollTop,l=e/2-h/2;if(i<f)b&&(k-=l),c.scrollTop=k;else if(j>g){b&&(k+=l);var m=e-h;c.scrollTop=k-m}}},{key:"_4",value:function(a){var b,c=this.a.value,d="+".concat(a);if("+"===c.charAt(0)){var e=this._5(c);b=e?c.replace(e,d):d,this.a.value=b}else this.d.autoInsertDialCode&&(b=c?d+c:d,this.a.value=b)}},{key:"_5",value:function(a,b){var c="";if("+"===a.charAt(0))for(var d="",e=0;e<a.length;e++){var f=a.charAt(e);if(!isNaN(parseInt(f,10))){if(d+=f,b)this.q[d]&&(c=a.substr(0,e+1));else if(this.dialCodes[d]){c=a.substr(0,e+1);break}if(d.length===this.countryCodeMaxLen)break}}return c}},{key:"_6",value:function(){var a=this.a.value.trim(),b=this.s.dialCode,c=this._m(a);return(this.d.showSelectedDialCode&&!this.d.nationalMode&&"+"!==a.charAt(0)&&b&&c?"+".concat(b):"")+a}},{key:"_7",value:function(a){var b=a;if(this.d.showSelectedDialCode){var c=this._5(b);if(c){c="+".concat(this.s.dialCode);var d=" "===b[c.length]||"-"===b[c.length]?c.length+1:c.length;b=b.substr(d)}}return this._j2(b)}},{key:"_m2CountryChange",value:function(){this._m2("countrychange")}},{key:"_formatNumberAsYouType",value:function(){var a=this._6(),b=window.intlTelInputUtils?intlTelInputUtils.formatNumberAsYouType(a,this.s.iso2):a,c=this.s.dialCode;if(this.d.showSelectedDialCode&&!this.d.nationalMode&&"+"!==this.a.value.charAt(0)&&b.includes("+".concat(c))){return(b.split("+".concat(c))[1]||"").trim()}return b}},{key:"handleAutoCountry",value:function(){"auto"===this.d.initialCountry&&(this.j=window.intlTelInputGlobals.autoCountry,this.a.value||this.setCountry(this.j),this.h())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.a.value&&this._u(this.a.value),this._0()),this.i0()}},{key:"destroy",value:function(){var a=this.a.form;if(this.d.allowDropdown){this._2(),this.selectedFlag.removeEventListener("click",this._a10),this.k.removeEventListener("keydown",this._a11);var b=this.a.closest("label");b&&b.removeEventListener("click",this._a9)}this.hiddenInput&&a&&a.removeEventListener("submit",this._a14),this.d.autoInsertDialCode&&(a&&a.removeEventListener("submit",this._a8),this.a.removeEventListener("blur",this._a8)),this.a.removeEventListener("input",this._a12),this.a.removeEventListener("cut",this._a13),this.a.removeEventListener("paste",this._a13),this.a.removeAttribute("data-intl-tel-input-id");var c=this.a.parentNode;c.parentNode.insertBefore(this.a,c),c.parentNode.removeChild(c),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._6(),this.s.iso2):""}},{key:"getNumber",value:function(a){if(window.intlTelInputUtils){var b=this.s.iso2;return intlTelInputUtils.formatNumber(this._6(),b,a)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._6(),this.s.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.s}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var a=this.s.iso2;return intlTelInputUtils.getValidationError(this._6(),a)}return-99}},{key:"isValidNumber",value:function(){var a=this._6();return window.intlTelInputUtils?intlTelInputUtils.isPossibleNumber(a,this.s.iso2):null}},{key:"isValidNumberPrecise",value:function(){var a=this._6();return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(a,this.s.iso2):null}},{key:"setCountry",value:function(a){var b=a.toLowerCase();this.s.iso2!==b&&(this._z(b),this._4(this.s.dialCode),this._m2CountryChange())}},{key:"setNumber",value:function(a){var b=this._v(a);this._u(a),b&&this._m2CountryChange()}},{key:"setPlaceholderNumberType",value:function(a){this.d.placeholderNumberType=a,this._0()}}]),a}();s.getCountryData=function(){return p};var y=function(a,b,c){var d=document.createElement("script");d.onload=function(){w("handleUtils"),b&&b()},d.onerror=function(){w("rejectUtilsScriptPromise"),c&&c()},d.className="iti-load-utils",d.async=!0,d.src=a,document.body.appendChild(d)};s.loadUtils=function(a){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!=typeof Promise)return new Promise(function(b,c){return y(a,b,c)});y(a)}return null},s.defaults=u,s.version="19.5.1";a.fn.intlTelInput=function(c){var d=arguments;if(c===b||"object"==typeof c)return this.each(function(){if(!a.data(this,"plugin_intlTelInput")){var b=new x(this,c);b._init(),window.intlTelInputGlobals.instances[b.id]=b,a.data(this,"plugin_intlTelInput",b)}});if("string"==typeof c&&"_"!==c[0]){var e;return this.each(function(){var b=a.data(this,"plugin_intlTelInput");b instanceof x&&"function"==typeof b[c]&&(e=b[c].apply(b,Array.prototype.slice.call(d,1))),"destroy"===c&&a.data(this,"plugin_intlTelInput",null)}),e!==b?e:this}}});
this.a.setAttribute("placeholder",c)}}},{key:"_1",value:function(a){var b=this._z(a.getAttribute("data-country-code"));this._2(),this._4(a.getAttribute("data-dial-code")),this.a.focus(),b&&this._m2CountryChange()}},{key:"_2",value:function(){this.dropdownContent.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.selectedFlag.removeAttribute("aria-activedescendant"),this.u.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._a3),this.d.countrySearch&&this.searchInput.removeEventListener("input",this._handleSearchChange),document.documentElement.removeEventListener("click",this._a2),this.countryList.removeEventListener("mouseover",this._a0),this.countryList.removeEventListener("click",this._a1),this.d.dropdownContainer&&(this.d.useFullscreenPopup||window.removeEventListener("scroll",this._a4),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._m2("close:countrydropdown")}},{key:"_3",value:function(a,b){var c=this.countryList,d=document.documentElement.scrollTop,e=c.offsetHeight,f=c.getBoundingClientRect().top+d,g=f+e,h=a.offsetHeight,i=a.getBoundingClientRect().top+d,j=i+h,k=i-f+c.scrollTop,l=e/2-h/2;if(i<f)b&&(k-=l),c.scrollTop=k;else if(j>g){b&&(k+=l);var m=e-h;c.scrollTop=k-m}}},{key:"_4",value:function(a){var b,c=this.a.value,d="+".concat(a);if("+"===c.charAt(0)){var e=this._5(c);b=e?c.replace(e,d):d,this.a.value=b}else this.d.autoInsertDialCode&&(b=c?d+c:d,this.a.value=b)}},{key:"_5",value:function(a,b){var c="";if("+"===a.charAt(0))for(var d="",e=0;e<a.length;e++){var f=a.charAt(e);if(!isNaN(parseInt(f,10))){if(d+=f,b)this.q[d]&&(c=a.substr(0,e+1));else if(this.dialCodes[d]){c=a.substr(0,e+1);break}if(d.length===this.countryCodeMaxLen)break}}return c}},{key:"_6",value:function(){var a=this.a.value.trim(),b=this.s.dialCode,c=this._m(a);return(this.d.showSelectedDialCode&&!this.d.nationalMode&&"+"!==a.charAt(0)&&b&&c?"+".concat(b):"")+a}},{key:"_7",value:function(a){var b=a;if(this.d.showSelectedDialCode){var c=this._5(b);if(c){c="+".concat(this.s.dialCode);var d=" "===b[c.length]||"-"===b[c.length]?c.length+1:c.length;b=b.substr(d)}}return this._j2(b)}},{key:"_m2CountryChange",value:function(){this._m2("countrychange")}},{key:"_formatNumberAsYouType",value:function(){var a=this._6(),b=window.intlTelInputUtils?intlTelInputUtils.formatNumberAsYouType(a,this.s.iso2):a,c=this.s.dialCode;if(this.d.showSelectedDialCode&&!this.d.nationalMode&&"+"!==this.a.value.charAt(0)&&b.includes("+".concat(c))){return(b.split("+".concat(c))[1]||"").trim()}return b}},{key:"handleAutoCountry",value:function(){"auto"===this.d.initialCountry&&(this.j=window.intlTelInputGlobals.autoCountry,this.a.value||this.setCountry(this.j),this.h())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.a.value&&this._u(this.a.value),this._0()),this.i0()}},{key:"destroy",value:function(){var a=this.a.form;if(this.d.allowDropdown){this._2(),this.selectedFlag.removeEventListener("click",this._a10),this.k.removeEventListener("keydown",this._a11);var b=this.a.closest("label");b&&b.removeEventListener("click",this._a9)}this.hiddenInput&&a&&a.removeEventListener("submit",this._a14),this.d.autoInsertDialCode&&(a&&a.removeEventListener("submit",this._a8),this.a.removeEventListener("blur",this._a8)),this.a.removeEventListener("input",this._a12),this.a.removeEventListener("cut",this._a13),this.a.removeEventListener("paste",this._a13),this.a.removeAttribute("data-intl-tel-input-id");var c=this.a.parentNode;c.parentNode.insertBefore(this.a,c),c.parentNode.removeChild(c),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._6(),this.s.iso2):""}},{key:"getNumber",value:function(a){if(window.intlTelInputUtils){var b=this.s.iso2;return intlTelInputUtils.formatNumber(this._6(),b,a)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._6(),this.s.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.s}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var a=this.s.iso2;return intlTelInputUtils.getValidationError(this._6(),a)}return-99}},{key:"isValidNumber",value:function(){var a=this._6();return window.intlTelInputUtils?intlTelInputUtils.isPossibleNumber(a,this.s.iso2):null}},{key:"isValidNumberPrecise",value:function(){var a=this._6();return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(a,this.s.iso2):null}},{key:"setCountry",value:function(a){var b=a.toLowerCase();this.s.iso2!==b&&(this._z(b),this._4(this.s.dialCode),this._m2CountryChange())}},{key:"setNumber",value:function(a){var b=this._v(a);this._u(a),b&&this._m2CountryChange()}},{key:"setPlaceholderNumberType",value:function(a){this.d.placeholderNumberType=a,this._0()}}]),a}();s.getCountryData=function(){return p};var y=function(a,b,c){var d=document.createElement("script");d.onload=function(){w("handleUtils"),b&&b()},d.onerror=function(){w("rejectUtilsScriptPromise"),c&&c()},d.className="iti-load-utils",d.async=!0,d.src=a,document.body.appendChild(d)};s.loadUtils=function(a){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!=typeof Promise)return new Promise(function(b,c){return y(a,b,c)});y(a)}return null},s.defaults=u,s.version="19.5.2";a.fn.intlTelInput=function(c){var d=arguments;if(c===b||"object"==typeof c)return this.each(function(){if(!a.data(this,"plugin_intlTelInput")){var b=new x(this,c);b._init(),window.intlTelInputGlobals.instances[b.id]=b,a.data(this,"plugin_intlTelInput",b)}});if("string"==typeof c&&"_"!==c[0]){var e;return this.each(function(){var b=a.data(this,"plugin_intlTelInput");b instanceof x&&"function"==typeof b[c]&&(e=b[c].apply(b,Array.prototype.slice.call(d,1))),"destroy"===c&&a.data(this,"plugin_intlTelInput",null)}),e!==b?e:this}}});
/*
* International Telephone Input v19.5.1
* International Telephone Input v19.5.2
* https://github.com/jackocnr/intl-tel-input.git

@@ -8,2 +8,2 @@ * Licensed under the MIT license

!function(a){"object"==typeof module&&module.exports?module.exports=a():window.intlTelInput=a()}(function(a){"use strict";return function(){function b(a){for(var b=1;b<arguments.length;b++){var d=null!=arguments[b]?Object(arguments[b]):{},e=Object.keys(d);"function"==typeof Object.getOwnPropertySymbols&&e.push.apply(e,Object.getOwnPropertySymbols(d).filter(function(a){return Object.getOwnPropertyDescriptor(d,a).enumerable})),e.forEach(function(b){c(a,b,d[b])})}return a}function c(a,b,c){return b=m(b),b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function d(a,b){return i(a)||h(a,b)||f(a,b)||e()}function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(a,b){if(a){if("string"==typeof a)return g(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(a):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?g(a,b):void 0}}function g(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=new Array(b);c<b;c++)d[c]=a[c];return d}function h(a,b){var c=null==a?null:"undefined"!=typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(null!=c){var d,e,f,g,h=[],i=!0,j=!1;try{if(f=(c=c.call(a)).next,0===b){if(Object(c)!==c)return;i=!1}else for(;!(i=(d=f.call(c)).done)&&(h.push(d.value),h.length!==b);i=!0);}catch(k){j=!0,e=k}finally{try{if(!i&&null!=c["return"]&&(g=c["return"](),Object(g)!==g))return}finally{if(j)throw e}}return h}}function i(a){if(Array.isArray(a))return a}function j(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function k(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,m(d.key),d)}}function l(a,b,c){return b&&k(a.prototype,b),c&&k(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function m(a){var b=n(a,"string");return"symbol"==typeof b?b:String(b)}function n(b,c){if("object"!=typeof b||null===b)return b;var d=b[Symbol.toPrimitive];if(d!==a){var e=d.call(b,c||"default");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===c?String:Number)(b)}for(var o=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua & Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria","at","43"],["Azerbaijan","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus","by","375"],["Belgium","be","32"],["Belize","bz","501"],["Benin","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia & Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros","km","269"],["Congo - Brazzaville","cg","242"],["Congo - Kinshasa","cd","243"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus","cy","357"],["Czech Republic","cz","420"],["Denmark","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands","fk","500"],["Faroe Islands","fo","298"],["Fiji","fj","679"],["Finland","fi","358",0],["France","fr","33"],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49"],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30"],["Greenland","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong","hk","852"],["Hungary","hu","36"],["Iceland","is","354"],["India","in","91"],["Indonesia","id","62"],["Iran","ir","98"],["Iraq","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel","il","972"],["Italy","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan","jo","962"],["Kazakhstan","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996"],["Laos","la","856"],["Latvia","lv","371"],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico","mx","52"],["Micronesia","fm","691"],["Moldova","md","373"],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco","ma","212",0],["Mozambique","mz","258"],["Myanmar (Burma)","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31"],["New Caledonia","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea","kp","850"],["North Macedonia","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway","no","47",0],["Oman","om","968"],["Pakistan","pk","92"],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63"],["Poland","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262",0],["Romania","ro","40"],["Russia","ru","7",0],["Rwanda","rw","250"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé & Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82"],["South Sudan","ss","211"],["Spain","es","34"],["Sri Lanka","lk","94"],["St Barthélemy","bl","590",1],["St Helena","sh","290"],["St Kitts & Nevis","kn","1",18,["869"]],["St Lucia","lc","1",19,["758"]],["St Martin","mf","590",2],["St Pierre & Miquelon","pm","508"],["St Vincent & Grenadines","vc","1",20,["784"]],["Sudan","sd","249"],["Suriname","sr","597"],["Svalbard & Jan Mayen","sj","47",1,["79"]],["Sweden","se","46"],["Switzerland","ch","41"],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad & Tobago","tt","1",22,["868"]],["Tunisia","tn","216"],["Turkey","tr","90"],["Turkmenistan","tm","993"],["Turks & Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380"],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["US Virgin Islands","vi","1",24,["340"]],["Uzbekistan","uz","998"],["Vanuatu","vu","678"],["Vatican City","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681"],["Western Sahara","eh","212",1,["5288","5289"]],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],p=0;p<o.length;p++){var q=o[p];o[p]={name:q[0],iso2:q[1],dialCode:q[2],priority:q[3]||0,areaCodes:q[4]||null,nodeById:{}}}var r={getInstance:function(a){var b=a.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[b]},instances:{},documentReady:function(){return"complete"===document.readyState}};"object"==typeof window&&(window.intlTelInputGlobals=r);var s=0,t={allowDropdown:!0,autoInsertDialCode:!1,autoPlaceholder:"polite",countrySearch:!0,containerClass:"",customPlaceholder:null,defaultToFirstCountry:!0,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:[],showFlags:!0,showSelectedDialCode:!1,useFullscreenPopup:"undefined"!=typeof navigator&&"undefined"!=typeof window&&(/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500),utilsScript:""},u=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],v=function(a){var b=window.intlTelInputGlobals.instances;Object.values(b).forEach(function(b){return b[a]()})},w=function(){function c(b){var d=arguments.length>1&&arguments[1]!==a?arguments[1]:{};j(this,c),this.id=s++,this.a=b,this.b=null,this.c=null,this.d=Object.assign({},t,d),this.e=Boolean(b.getAttribute("placeholder"))}return l(c,[{key:"_init",value:function(){var a=this;this.d.useFullscreenPopup&&(this.d.fixDropdownWidth=!1),this.d.countrySearch&&!this.d.useFullscreenPopup&&(this.d.fixDropdownWidth=!0),this.d.nationalMode&&(this.d.autoInsertDialCode=!1),this.d.showSelectedDialCode&&(this.d.autoInsertDialCode=!1);var b=this.d.allowDropdown&&!this.d.showSelectedDialCode;if(!this.d.showFlags&&b&&(this.d.showFlags=!0),this.d.useFullscreenPopup&&!this.d.dropdownContainer&&(this.d.dropdownContainer=document.body),this.isRTL=!!this.a.closest("[dir=rtl]"),"undefined"!=typeof Promise){var c=new Promise(function(b,c){a.h=b,a.i=c}),d=new Promise(function(b,c){a.i0=b,a.i1=c});this.promise=Promise.all([c,d])}else this.h=this.i=function(){},this.i0=this.i1=function(){};this.s={},this._b(),this._f(),this._h(),this._i(),this._i3()}},{key:"_b",value:function(){this._d(),this._d2(),this._e(),this._d0(),(this.d.onlyCountries.length||this.d.i18n)&&this.p.sort(this._d1)}},{key:"_c",value:function(b,c,d){c.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=c.length),this.q.hasOwnProperty(c)||(this.q[c]=[]);for(var e=0;e<this.q[c].length;e++)if(this.q[c][e]===b)return;var f=d!==a?d:this.q[c].length;this.q[c][f]=b}},{key:"_d",value:function(){if(this.d.onlyCountries.length){var a=this.d.onlyCountries.map(function(a){return a.toLowerCase()});this.p=o.filter(function(b){return a.indexOf(b.iso2)>-1})}else if(this.d.excludeCountries.length){var b=this.d.excludeCountries.map(function(a){return a.toLowerCase()});this.p=o.filter(function(a){return-1===b.indexOf(a.iso2)})}else this.p=o}},{key:"_d0",value:function(){for(var a=0;a<this.p.length;a++){var b=this.p[a].iso2.toLowerCase();this.d.i18n.hasOwnProperty(b)&&(this.p[a].name=this.d.i18n[b])}}},{key:"_d1",value:function(a,b){return a.name<b.name?-1:a.name>b.name?1:0}},{key:"_d2",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.q={};for(var a=0;a<this.p.length;a++){var b=this.p[a];this.dialCodes[b.dialCode]||(this.dialCodes[b.dialCode]=!0),this._c(b.iso2,b.dialCode,b.priority)}for(var c=0;c<this.p.length;c++){var d=this.p[c];if(d.areaCodes)for(var e=this.q[d.dialCode][0],f=0;f<d.areaCodes.length;f++){for(var g=d.areaCodes[f],h=1;h<g.length;h++){var i=d.dialCode+g.substr(0,h);this._c(e,i),this._c(d.iso2,i)}this._c(d.iso2,d.dialCode+g)}}}},{key:"_e",value:function(){this.preferredCountries=[];for(var a=0;a<this.d.preferredCountries.length;a++){var b=this.d.preferredCountries[a].toLowerCase(),c=this._y(b,!0);c&&this.preferredCountries.push(c)}}},{key:"_e2",value:function(a,b,c){var e=document.createElement(a);return b&&Object.entries(b).forEach(function(a){var b=d(a,2),c=b[0],f=b[1];return e.setAttribute(c,f)}),c&&c.appendChild(e),e}},{key:"_f",value:function(){this.a.classList.add("iti__tel-input"),this.a.hasAttribute("autocomplete")||this.a.form&&this.a.form.hasAttribute("autocomplete")||this.a.setAttribute("autocomplete","off");var a=this.d,c=a.allowDropdown,d=a.showSelectedDialCode,e=a.showFlags,f=a.containerClass,g=a.hiddenInput,h=a.dropdownContainer,i=a.fixDropdownWidth,j=a.useFullscreenPopup,k=a.countrySearch,l="iti";c&&(l+=" iti--allow-dropdown"),d&&(l+=" iti--show-selected-dial-code"),e&&(l+=" iti--show-flags"),f&&(l+=" ".concat(f)),j||(l+=" iti--inline-dropdown");var m=this._e2("div",{"class":l});this.a.parentNode.insertBefore(m,this.a);var n=c||e||d;if(n&&(this.k=this._e2("div",{"class":"iti__flag-container"},m)),m.appendChild(this.a),n&&(this.selectedFlag=this._e2("div",b({"class":"iti__selected-flag"},c&&{role:"combobox","aria-haspopup":"listbox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false","aria-label":this.d.i18n.selectedCountryAriaLabel||"Selected country"}),this.k)),e&&(this.l=this._e2("div",{"class":"iti__flag iti__globe"},this.selectedFlag)),this.selectedFlag&&this.a.disabled&&this.selectedFlag.setAttribute("aria-disabled","true"),d&&(this.t=this._e2("div",{"class":"iti__selected-dial-code"},this.selectedFlag)),c){this.a.disabled||this.selectedFlag.setAttribute("tabindex","0"),this.u=this._e2("div",{"class":"iti__arrow"},this.selectedFlag);var o=i?"":"iti--flexible-dropdown-width";if(this.dropdownContent=this._e2("div",{"class":"iti__dropdown-content iti__hide ".concat(o)}),k&&(this.searchInput=this._e2("input",{type:"text","class":"iti__search-input",placeholder:this.d.i18n.searchPlaceholder||"Search"},this.dropdownContent)),this.countryList=this._e2("ul",{"class":"iti__country-list",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":this.d.i18n.countryListAriaLabel||"List of countries"},this.dropdownContent),this.preferredCountries.length&&!k&&(this._g(this.preferredCountries,"iti__preferred",!0),this._e2("li",{"class":"iti__divider","aria-hidden":"true"},this.countryList)),this._g(this.p,"iti__standard"),h){var p="iti iti--container";p+=j?" iti--fullscreen-popup":" iti--inline-dropdown",k&&(p+=" iti--country-search"),this.dropdown=this._e2("div",{"class":p}),this.dropdown.appendChild(this.dropdownContent)}else this.k.appendChild(this.dropdownContent)}if(g){var q,r,s=this.a.getAttribute("name"),t=g(s),u=null!==t&&"object"==typeof t;if(u?(q=t.phone||s,r=t.country||"".concat(q,"_country")):(q=t||s,r="".concat(q,"_country")),!q)return;this.hiddenInput=this._e2("input",{type:"hidden",name:q}),this.hiddenInputCountry=this._e2("input",{type:"hidden",name:r}),m.appendChild(this.hiddenInput),m.appendChild(this.hiddenInputCountry)}}},{key:"_g",value:function(a,b,c){for(var d=0;d<a.length;d++){var e=a[d],f=c?"-preferred":"",g=this._e2("li",{id:"iti-".concat(this.id,"__item-").concat(e.iso2).concat(f),"class":"iti__country ".concat(b),tabindex:"-1",role:"option","data-dial-code":e.dialCode,"data-country-code":e.iso2,"aria-selected":"false"},this.countryList);e.nodeById[this.id]=g;var h="";this.d.showFlags&&(h+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(e.iso2,"'></div></div>")),h+="<span class='iti__country-name'>".concat(e.name,"</span>"),h+="<span class='iti__dial-code'>+".concat(e.dialCode,"</span>"),g.insertAdjacentHTML("beforeend",h)}}},{key:"_h",value:function(){var b=arguments.length>0&&arguments[0]!==a&&arguments[0],c=this.a.getAttribute("value"),d=this.a.value,e=c&&"+"===c.charAt(0)&&(!d||"+"!==d.charAt(0)),f=e?c:d,g=this._5(f),h=this._w(f),i=this.d,j=i.initialCountry,k=i.autoInsertDialCode,l=i.defaultToFirstCountry;if(g&&!h)this._v(f);else if("auto"!==j||b){var m=j?j.toLowerCase():"",n=m&&this._y(m,!0);n?this._z(m):g&&h?this._z("us"):l&&(this.j=this.preferredCountries.length?this.preferredCountries[0].iso2:this.p[0].iso2,f||this._z(this.j)),!f&&k&&(this.a.value="+".concat(this.s.dialCode))}f&&this._u(f)}},{key:"_i",value:function(){this._j(),this.d.autoInsertDialCode&&this._l(),this.d.allowDropdown&&this._i2(),this.hiddenInput&&this._i0()}},{key:"_i0",value:function(){var a=this;this._a14=function(){a.hiddenInput.value=a.getNumber(),a.hiddenInputCountry.value=a.getSelectedCountryData().iso2},this.a.form&&this.a.form.addEventListener("submit",this._a14)}},{key:"_i2",value:function(){var a=this;this._a9=function(b){a.dropdownContent.classList.contains("iti__hide")?a.a.focus():b.preventDefault()};var b=this.a.closest("label");b&&b.addEventListener("click",this._a9),this._a10=function(){!a.dropdownContent.classList.contains("iti__hide")||a.a.disabled||a.a.readOnly||a._n()},this.selectedFlag.addEventListener("click",this._a10),this._a11=function(b){a.dropdownContent.classList.contains("iti__hide")&&["ArrowUp","ArrowDown"," ","Enter"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),a._n()),"Tab"===b.key&&a._2()},this.k.addEventListener("keydown",this._a11)}},{key:"_i3",value:function(){var a=this;this.d.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.d.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(a.d.utilsScript)}):this.i0(),"auto"!==this.d.initialCountry||this.s.iso2?this.h():this._i4()}},{key:"_i4",value:function(){var b=this;window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.d.geoIpLookup&&this.d.geoIpLookup(function(){var c=arguments.length>0&&arguments[0]!==a?arguments[0]:"",d=c.toLowerCase();d&&b._y(d,!0)?(window.intlTelInputGlobals.autoCountry=d,setTimeout(function(){return v("handleAutoCountry")})):(b._h(!0),v("rejectAutoCountryPromise"))},function(){return v("rejectAutoCountryPromise")}))}},{key:"_j",value:function(){var a=this,b=!1;this._a12=function(c){if(a._v(a.a.value)&&a._m2CountryChange(),c&&c.data&&/[^+0-9]/.test(c.data)?b=!0:/[^+0-9]/.test(a.a.value)||(b=!1),a.d.formatAsYouType&&!b){var d=a.a.selectionStart,e=a.a.value.substring(0,d),f=e.replace(/[^+0-9]/g,"").length,g=c&&"deleteContentForward"===c.inputType,h=a._formatNumberAsYouType(),i=a._translateCursorPosition(f,h,d,g);a.a.value=h,a.a.setSelectionRange(i,i)}},this.a.addEventListener("input",this._a12),this._a13=function(){setTimeout(a._a12)},this.a.addEventListener("cut",this._a13),this.a.addEventListener("paste",this._a13)}},{key:"_translateCursorPosition",value:function(a,b,c,d){if(0===c&&!d)return 0;for(var e=0,f=0;f<b.length;f++){if(/[+0-9]/.test(b[f])&&e++,e===a&&!d)return f+1;if(d&&e===a+1)return f}return b.length}},{key:"_j2",value:function(a){var b=this.a.getAttribute("maxlength");return b&&a.length>b?a.substr(0,b):a}},{key:"_l",value:function(){var a=this;this._a8=function(){a._l2()},this.a.form&&this.a.form.addEventListener("submit",this._a8),this.a.addEventListener("blur",this._a8)}},{key:"_l2",value:function(){if("+"===this.a.value.charAt(0)){var a=this._m(this.a.value);a&&this.s.dialCode!==a||(this.a.value="")}}},{key:"_m",value:function(a){return a.replace(/\D/g,"")}},{key:"_m2",value:function(a){var b=new Event(a,{bubbles:!0,cancelable:!0});this.a.dispatchEvent(b)}},{key:"_n",value:function(){if(this.d.fixDropdownWidth&&(this.dropdownContent.style.width="".concat(this.a.offsetWidth,"px")),this.dropdownContent.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._o(),this.d.countrySearch){var a=this.countryList.firstElementChild;a&&this._x(a,!1),this.searchInput.focus()}else this.b&&(this._x(this.b,!1),this._3(this.b,!0));this._p(),this.u.classList.add("iti__arrow--up"),this._m2("open:countrydropdown")}},{key:"_n2",value:function(a,b,c){c&&!a.classList.contains(b)?a.classList.add(b):!c&&a.classList.contains(b)&&a.classList.remove(b)}},{key:"_o",value:function(){var a=this;if(this.d.dropdownContainer&&this.d.dropdownContainer.appendChild(this.dropdown),!this.d.useFullscreenPopup){var b=this.a.getBoundingClientRect(),c=document.documentElement.scrollTop,d=b.top+c,e=this.dropdownContent.offsetHeight,f=d+this.a.offsetHeight+e<c+window.innerHeight,g=d-e>c,h=!this.d.countrySearch&&!f&&g;if(this._n2(this.dropdownContent,"iti__dropdown-content--dropup",h),this.d.dropdownContainer){var i=h?0:this.a.offsetHeight;this.dropdown.style.top="".concat(d+i,"px"),this.dropdown.style.left="".concat(b.left+document.body.scrollLeft,"px"),this._a4=function(){return a._2()},window.addEventListener("scroll",this._a4)}}}},{key:"_p",value:function(){var a=this;this._a0=function(b){var c=b.target.closest(".iti__country");c&&a._x(c,!1)},this.countryList.addEventListener("mouseover",this._a0),this._a1=function(b){var c=b.target.closest(".iti__country");c&&a._1(c)},this.countryList.addEventListener("click",this._a1);var b=!0;this._a2=function(){b||a._2(),b=!1},document.documentElement.addEventListener("click",this._a2);var c="",d=null;if(this._a3=function(b){["ArrowUp","ArrowDown","Enter","Escape"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),"ArrowUp"===b.key||"ArrowDown"===b.key?a._q(b.key):"Enter"===b.key?a._r():"Escape"===b.key&&a._2()),!a.d.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(b.key)&&(b.stopPropagation(),d&&clearTimeout(d),c+=b.key.toLowerCase(),a._s(c),d=setTimeout(function(){c=""},1e3))},document.addEventListener("keydown",this._a3),this.d.countrySearch){var e=function(){var b=a.searchInput.value.trim();b?a._filterCountries(b):a._filterCountries("",!0)},f=null;this._handleSearchChange=function(){f&&clearTimeout(f),f=setTimeout(function(){e(),f=null},100)},this.searchInput.addEventListener("input",this._handleSearchChange),this.searchInput.addEventListener("click",function(a){return a.stopPropagation()})}}},{key:"_normaliseString",value:function(){return(arguments.length>0&&arguments[0]!==a?arguments[0]:"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},{key:"_filterCountries",value:function(b){var c=arguments.length>1&&arguments[1]!==a&&arguments[1],d=!0;this.countryList.innerHTML="";for(var e=this._normaliseString(b),f=0;f<this.p.length;f++){var g=this.p[f],h=this._normaliseString(g.name),i="+".concat(g.dialCode);(c||h.includes(e)||i.includes(e)||g.iso2.includes(e))&&(this.countryList.appendChild(g.nodeById[this.id]),d&&(this._x(g.nodeById[this.id],!1),d=!1))}}},{key:"_q",value:function(a){var b="ArrowUp"===a?this.c.previousElementSibling:this.c.nextElementSibling;if(b?b.classList.contains("iti__divider")&&(b="ArrowUp"===a?b.previousElementSibling:b.nextElementSibling):this.countryList.childElementCount>1&&(b="ArrowUp"===a?this.countryList.lastElementChild:this.countryList.firstElementChild),b){var c=!this.d.countrySearch;this._x(b,c),this.d.countrySearch&&this._3(b,!1)}}},{key:"_r",value:function(){this.c&&this._1(this.c)}},{key:"_s",value:function(a){for(var b=0;b<this.p.length;b++)if(this._t(this.p[b].name,a)){var c=this.p[b].nodeById[this.id];this._x(c,!1),this._3(c,!0);break}}},{key:"_t",value:function(a,b){return a.substr(0,b.length).toLowerCase()===b}},{key:"_u",value:function(a){var b=a;if(this.d.formatOnDisplay&&window.intlTelInputUtils&&this.s){var c=this.d.nationalMode||"+"!==b.charAt(0)&&!this.d.showSelectedDialCode,d=intlTelInputUtils.numberFormat,e=d.NATIONAL,f=d.INTERNATIONAL,g=c?e:f;b=intlTelInputUtils.formatNumber(b,this.s.iso2,g)}b=this._7(b),this.a.value=b}},{key:"_v",value:function(a){var b=a.indexOf("+"),c=b?a.substring(b):a,d=this.s.dialCode,e="1"===d;c&&e&&"+"!==c.charAt(0)&&("1"!==c.charAt(0)&&(c="1".concat(c)),c="+".concat(c)),this.d.showSelectedDialCode&&d&&"+"!==c.charAt(0)&&(c="+".concat(d).concat(c));var f=this._5(c,!0),g=this._m(c),h=null;if(f){var i=this.q[this._m(f)],j=-1!==i.indexOf(this.s.iso2)&&g.length<=f.length-1;if(!("1"===d&&this._w(g))&&!j)for(var k=0;k<i.length;k++)if(i[k]){h=i[k];break}}else"+"===c.charAt(0)&&g.length?h="":c&&"+"!==c||this.s.iso2||(h=this.j);return null!==h&&this._z(h)}},{key:"_w",value:function(a){var b=this._m(a);if("1"===b.charAt(0)){var c=b.substr(1,3);return-1!==u.indexOf(c)}return!1}},{key:"_x",value:function(a,b){var c=this.c;c&&c.classList.remove("iti__highlight"),this.c=a,this.c.classList.add("iti__highlight"),this.selectedFlag.setAttribute("aria-activedescendant",a.getAttribute("id")),b&&this.c.focus()}},{key:"_y",value:function(a,b){for(var c=0;c<this.p.length;c++)if(this.p[c].iso2===a)return this.p[c];if(b)return null;throw new Error("No country data for '".concat(a,"'"))}},{key:"_z",value:function(a){var b=this.d,c=b.allowDropdown,d=b.showSelectedDialCode,e=b.showFlags,f=b.countrySearch,g=this.s.iso2?this.s:{};if(this.s=a?this._y(a,!1):{},this.s.iso2&&(this.j=this.s.iso2),e){var h=a?"iti__".concat(a):"iti__globe";this.l.setAttribute("class","iti__flag ".concat(h))}if(this._setSelectedCountryFlagTitleAttribute(a,d),d){var i=this.s.dialCode?"+".concat(this.s.dialCode):"";this.t.innerHTML=i;var j=this.selectedFlag.offsetWidth||this._z2();this.isRTL?this.a.style.paddingRight="".concat(j+6,"px"):this.a.style.paddingLeft="".concat(j+6,"px")}if(this._0(),c&&!f){var k=this.b;if(k&&(k.classList.remove("iti__active"),k.setAttribute("aria-selected","false")),a){var l=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(a,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(a));l.setAttribute("aria-selected","true"),l.classList.add("iti__active"),this.b=l}}return g.iso2!==a}},{key:"_setSelectedCountryFlagTitleAttribute",value:function(a,b){if(this.selectedFlag){var c;c=a&&!b?"".concat(this.s.name,": +").concat(this.s.dialCode):a?this.s.name:"Unknown",this.selectedFlag.setAttribute("title",c)}}},{key:"_z2",value:function(){var a=this.a.parentNode.cloneNode();a.style.visibility="hidden",document.body.appendChild(a);var b=this.k.cloneNode();a.appendChild(b);var c=this.selectedFlag.cloneNode(!0);b.appendChild(c);var d=c.offsetWidth;return a.parentNode.removeChild(a),d}},{key:"_0",value:function(){var a="aggressive"===this.d.autoPlaceholder||!this.e&&"polite"===this.d.autoPlaceholder;if(window.intlTelInputUtils&&a){var b=intlTelInputUtils.numberType[this.d.placeholderNumberType],c=this.s.iso2?intlTelInputUtils.getExampleNumber(this.s.iso2,this.d.nationalMode,b):"";c=this._7(c),"function"==typeof this.d.customPlaceholder&&(c=this.d.customPlaceholder(c,this.s)),this.a.setAttribute("placeholder",c)}}},{key:"_1",value:function(a){
var b=this._z(a.getAttribute("data-country-code"));this._2(),this._4(a.getAttribute("data-dial-code")),this.a.focus(),b&&this._m2CountryChange()}},{key:"_2",value:function(){this.dropdownContent.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.selectedFlag.removeAttribute("aria-activedescendant"),this.u.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._a3),this.d.countrySearch&&this.searchInput.removeEventListener("input",this._handleSearchChange),document.documentElement.removeEventListener("click",this._a2),this.countryList.removeEventListener("mouseover",this._a0),this.countryList.removeEventListener("click",this._a1),this.d.dropdownContainer&&(this.d.useFullscreenPopup||window.removeEventListener("scroll",this._a4),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._m2("close:countrydropdown")}},{key:"_3",value:function(a,b){var c=this.countryList,d=document.documentElement.scrollTop,e=c.offsetHeight,f=c.getBoundingClientRect().top+d,g=f+e,h=a.offsetHeight,i=a.getBoundingClientRect().top+d,j=i+h,k=i-f+c.scrollTop,l=e/2-h/2;if(i<f)b&&(k-=l),c.scrollTop=k;else if(j>g){b&&(k+=l);var m=e-h;c.scrollTop=k-m}}},{key:"_4",value:function(a){var b,c=this.a.value,d="+".concat(a);if("+"===c.charAt(0)){var e=this._5(c);b=e?c.replace(e,d):d,this.a.value=b}else this.d.autoInsertDialCode&&(b=c?d+c:d,this.a.value=b)}},{key:"_5",value:function(a,b){var c="";if("+"===a.charAt(0))for(var d="",e=0;e<a.length;e++){var f=a.charAt(e);if(!isNaN(parseInt(f,10))){if(d+=f,b)this.q[d]&&(c=a.substr(0,e+1));else if(this.dialCodes[d]){c=a.substr(0,e+1);break}if(d.length===this.countryCodeMaxLen)break}}return c}},{key:"_6",value:function(){var a=this.a.value.trim(),b=this.s.dialCode,c=this._m(a);return(this.d.showSelectedDialCode&&!this.d.nationalMode&&"+"!==a.charAt(0)&&b&&c?"+".concat(b):"")+a}},{key:"_7",value:function(a){var b=a;if(this.d.showSelectedDialCode){var c=this._5(b);if(c){c="+".concat(this.s.dialCode);var d=" "===b[c.length]||"-"===b[c.length]?c.length+1:c.length;b=b.substr(d)}}return this._j2(b)}},{key:"_m2CountryChange",value:function(){this._m2("countrychange")}},{key:"_formatNumberAsYouType",value:function(){var a=this._6(),b=window.intlTelInputUtils?intlTelInputUtils.formatNumberAsYouType(a,this.s.iso2):a,c=this.s.dialCode;if(this.d.showSelectedDialCode&&!this.d.nationalMode&&"+"!==this.a.value.charAt(0)&&b.includes("+".concat(c))){return(b.split("+".concat(c))[1]||"").trim()}return b}},{key:"handleAutoCountry",value:function(){"auto"===this.d.initialCountry&&(this.j=window.intlTelInputGlobals.autoCountry,this.a.value||this.setCountry(this.j),this.h())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.a.value&&this._u(this.a.value),this._0()),this.i0()}},{key:"destroy",value:function(){var a=this.a.form;if(this.d.allowDropdown){this._2(),this.selectedFlag.removeEventListener("click",this._a10),this.k.removeEventListener("keydown",this._a11);var b=this.a.closest("label");b&&b.removeEventListener("click",this._a9)}this.hiddenInput&&a&&a.removeEventListener("submit",this._a14),this.d.autoInsertDialCode&&(a&&a.removeEventListener("submit",this._a8),this.a.removeEventListener("blur",this._a8)),this.a.removeEventListener("input",this._a12),this.a.removeEventListener("cut",this._a13),this.a.removeEventListener("paste",this._a13),this.a.removeAttribute("data-intl-tel-input-id");var c=this.a.parentNode;c.parentNode.insertBefore(this.a,c),c.parentNode.removeChild(c),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._6(),this.s.iso2):""}},{key:"getNumber",value:function(a){if(window.intlTelInputUtils){var b=this.s.iso2;return intlTelInputUtils.formatNumber(this._6(),b,a)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._6(),this.s.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.s}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var a=this.s.iso2;return intlTelInputUtils.getValidationError(this._6(),a)}return-99}},{key:"isValidNumber",value:function(){var a=this._6();return window.intlTelInputUtils?intlTelInputUtils.isPossibleNumber(a,this.s.iso2):null}},{key:"isValidNumberPrecise",value:function(){var a=this._6();return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(a,this.s.iso2):null}},{key:"setCountry",value:function(a){var b=a.toLowerCase();this.s.iso2!==b&&(this._z(b),this._4(this.s.dialCode),this._m2CountryChange())}},{key:"setNumber",value:function(a){var b=this._v(a);this._u(a),b&&this._m2CountryChange()}},{key:"setPlaceholderNumberType",value:function(a){this.d.placeholderNumberType=a,this._0()}}]),c}();r.getCountryData=function(){return o};var x=function(a,b,c){var d=document.createElement("script");d.onload=function(){v("handleUtils"),b&&b()},d.onerror=function(){v("rejectUtilsScriptPromise"),c&&c()},d.className="iti-load-utils",d.async=!0,d.src=a,document.body.appendChild(d)};return r.loadUtils=function(a){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!=typeof Promise)return new Promise(function(b,c){return x(a,b,c)});x(a)}return null},r.defaults=t,r.version="19.5.1",function(a,b){var c=new w(a,b);return c._init(),a.setAttribute("data-intl-tel-input-id",c.id),window.intlTelInputGlobals.instances[c.id]=c,c}}()});
var b=this._z(a.getAttribute("data-country-code"));this._2(),this._4(a.getAttribute("data-dial-code")),this.a.focus(),b&&this._m2CountryChange()}},{key:"_2",value:function(){this.dropdownContent.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.selectedFlag.removeAttribute("aria-activedescendant"),this.u.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._a3),this.d.countrySearch&&this.searchInput.removeEventListener("input",this._handleSearchChange),document.documentElement.removeEventListener("click",this._a2),this.countryList.removeEventListener("mouseover",this._a0),this.countryList.removeEventListener("click",this._a1),this.d.dropdownContainer&&(this.d.useFullscreenPopup||window.removeEventListener("scroll",this._a4),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._m2("close:countrydropdown")}},{key:"_3",value:function(a,b){var c=this.countryList,d=document.documentElement.scrollTop,e=c.offsetHeight,f=c.getBoundingClientRect().top+d,g=f+e,h=a.offsetHeight,i=a.getBoundingClientRect().top+d,j=i+h,k=i-f+c.scrollTop,l=e/2-h/2;if(i<f)b&&(k-=l),c.scrollTop=k;else if(j>g){b&&(k+=l);var m=e-h;c.scrollTop=k-m}}},{key:"_4",value:function(a){var b,c=this.a.value,d="+".concat(a);if("+"===c.charAt(0)){var e=this._5(c);b=e?c.replace(e,d):d,this.a.value=b}else this.d.autoInsertDialCode&&(b=c?d+c:d,this.a.value=b)}},{key:"_5",value:function(a,b){var c="";if("+"===a.charAt(0))for(var d="",e=0;e<a.length;e++){var f=a.charAt(e);if(!isNaN(parseInt(f,10))){if(d+=f,b)this.q[d]&&(c=a.substr(0,e+1));else if(this.dialCodes[d]){c=a.substr(0,e+1);break}if(d.length===this.countryCodeMaxLen)break}}return c}},{key:"_6",value:function(){var a=this.a.value.trim(),b=this.s.dialCode,c=this._m(a);return(this.d.showSelectedDialCode&&!this.d.nationalMode&&"+"!==a.charAt(0)&&b&&c?"+".concat(b):"")+a}},{key:"_7",value:function(a){var b=a;if(this.d.showSelectedDialCode){var c=this._5(b);if(c){c="+".concat(this.s.dialCode);var d=" "===b[c.length]||"-"===b[c.length]?c.length+1:c.length;b=b.substr(d)}}return this._j2(b)}},{key:"_m2CountryChange",value:function(){this._m2("countrychange")}},{key:"_formatNumberAsYouType",value:function(){var a=this._6(),b=window.intlTelInputUtils?intlTelInputUtils.formatNumberAsYouType(a,this.s.iso2):a,c=this.s.dialCode;if(this.d.showSelectedDialCode&&!this.d.nationalMode&&"+"!==this.a.value.charAt(0)&&b.includes("+".concat(c))){return(b.split("+".concat(c))[1]||"").trim()}return b}},{key:"handleAutoCountry",value:function(){"auto"===this.d.initialCountry&&(this.j=window.intlTelInputGlobals.autoCountry,this.a.value||this.setCountry(this.j),this.h())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.a.value&&this._u(this.a.value),this._0()),this.i0()}},{key:"destroy",value:function(){var a=this.a.form;if(this.d.allowDropdown){this._2(),this.selectedFlag.removeEventListener("click",this._a10),this.k.removeEventListener("keydown",this._a11);var b=this.a.closest("label");b&&b.removeEventListener("click",this._a9)}this.hiddenInput&&a&&a.removeEventListener("submit",this._a14),this.d.autoInsertDialCode&&(a&&a.removeEventListener("submit",this._a8),this.a.removeEventListener("blur",this._a8)),this.a.removeEventListener("input",this._a12),this.a.removeEventListener("cut",this._a13),this.a.removeEventListener("paste",this._a13),this.a.removeAttribute("data-intl-tel-input-id");var c=this.a.parentNode;c.parentNode.insertBefore(this.a,c),c.parentNode.removeChild(c),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._6(),this.s.iso2):""}},{key:"getNumber",value:function(a){if(window.intlTelInputUtils){var b=this.s.iso2;return intlTelInputUtils.formatNumber(this._6(),b,a)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._6(),this.s.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.s}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var a=this.s.iso2;return intlTelInputUtils.getValidationError(this._6(),a)}return-99}},{key:"isValidNumber",value:function(){var a=this._6();return window.intlTelInputUtils?intlTelInputUtils.isPossibleNumber(a,this.s.iso2):null}},{key:"isValidNumberPrecise",value:function(){var a=this._6();return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(a,this.s.iso2):null}},{key:"setCountry",value:function(a){var b=a.toLowerCase();this.s.iso2!==b&&(this._z(b),this._4(this.s.dialCode),this._m2CountryChange())}},{key:"setNumber",value:function(a){var b=this._v(a);this._u(a),b&&this._m2CountryChange()}},{key:"setPlaceholderNumberType",value:function(a){this.d.placeholderNumberType=a,this._0()}}]),c}();r.getCountryData=function(){return o};var x=function(a,b,c){var d=document.createElement("script");d.onload=function(){v("handleUtils"),b&&b()},d.onerror=function(){v("rejectUtilsScriptPromise"),c&&c()},d.className="iti-load-utils",d.async=!0,d.src=a,document.body.appendChild(d)};return r.loadUtils=function(a){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!=typeof Promise)return new Promise(function(b,c){return x(a,b,c)});x(a)}return null},r.defaults=t,r.version="19.5.2",function(a,b){var c=new w(a,b);return c._init(),a.setAttribute("data-intl-tel-input-id",c.id),window.intlTelInputGlobals.instances[c.id]=c,c}}()});
{
"name": "jackocnr/intl-tel-input",
"version": "19.5.1",
"version": "19.5.2",
"description": "A JavaScript plugin for entering and validating international telephone numbers",

@@ -5,0 +5,0 @@ "keywords": [

{
"name": "intl-tel-input",
"version": "19.5.1",
"version": "19.5.2",
"description": "A JavaScript plugin for entering and validating international telephone numbers",

@@ -5,0 +5,0 @@ "keywords": [

var et=Object.create;var P=Object.defineProperty;var it=Object.getOwnPropertyDescriptor;var nt=Object.getOwnPropertyNames;var ot=Object.getPrototypeOf,rt=Object.prototype.hasOwnProperty;var st=(h,p)=>()=>(p||h((p={exports:{}}).exports,p),p.exports),at=(h,p)=>{for(var g in p)P(h,g,{get:p[g],enumerable:!0})},W=(h,p,g,m)=>{if(p&&typeof p=="object"||typeof p=="function")for(let C of nt(p))!rt.call(h,C)&&C!==g&&P(h,C,{get:()=>p[C],enumerable:!(m=it(p,C))||m.enumerable});return h};var K=(h,p,g)=>(g=h!=null?et(ot(h)):{},W(p||!h||!h.__esModule?P(g,"default",{value:h,enumerable:!0}):g,h)),lt=h=>W(P({},"__esModule",{value:!0}),h);var q=st((ct,x)=>{(function(h){typeof x=="object"&&x.exports?x.exports=h():window.intlTelInput=h()})(function(h){"use strict";return function(){for(var p=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua & Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria","at","43"],["Azerbaijan","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus","by","375"],["Belgium","be","32"],["Belize","bz","501"],["Benin","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia & Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros","km","269"],["Congo - Brazzaville","cg","242"],["Congo - Kinshasa","cd","243"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["C\xF4te d\u2019Ivoire","ci","225"],["Croatia","hr","385"],["Cuba","cu","53"],["Cura\xE7ao","cw","599",0],["Cyprus","cy","357"],["Czech Republic","cz","420"],["Denmark","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands","fk","500"],["Faroe Islands","fo","298"],["Fiji","fj","679"],["Finland","fi","358",0],["France","fr","33"],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49"],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30"],["Greenland","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong","hk","852"],["Hungary","hu","36"],["Iceland","is","354"],["India","in","91"],["Indonesia","id","62"],["Iran","ir","98"],["Iraq","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel","il","972"],["Italy","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan","jo","962"],["Kazakhstan","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996"],["Laos","la","856"],["Latvia","lv","371"],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico","mx","52"],["Micronesia","fm","691"],["Moldova","md","373"],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco","ma","212",0],["Mozambique","mz","258"],["Myanmar (Burma)","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31"],["New Caledonia","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea","kp","850"],["North Macedonia","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway","no","47",0],["Oman","om","968"],["Pakistan","pk","92"],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63"],["Poland","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar","qa","974"],["R\xE9union","re","262",0],["Romania","ro","40"],["Russia","ru","7",0],["Rwanda","rw","250"],["Samoa","ws","685"],["San Marino","sm","378"],["S\xE3o Tom\xE9 & Pr\xEDncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82"],["South Sudan","ss","211"],["Spain","es","34"],["Sri Lanka","lk","94"],["St Barth\xE9lemy","bl","590",1],["St Helena","sh","290"],["St Kitts & Nevis","kn","1",18,["869"]],["St Lucia","lc","1",19,["758"]],["St Martin","mf","590",2],["St Pierre & Miquelon","pm","508"],["St Vincent & Grenadines","vc","1",20,["784"]],["Sudan","sd","249"],["Suriname","sr","597"],["Svalbard & Jan Mayen","sj","47",1,["79"]],["Sweden","se","46"],["Switzerland","ch","41"],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad & Tobago","tt","1",22,["868"]],["Tunisia","tn","216"],["Turkey","tr","90"],["Turkmenistan","tm","993"],["Turks & Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380"],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["US Virgin Islands","vi","1",24,["340"]],["Uzbekistan","uz","998"],["Vanuatu","vu","678"],["Vatican City","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681"],["Western Sahara","eh","212",1,["5288","5289"]],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["\xC5land Islands","ax","358",1,["18"]]],g=0;g<p.length;g++){var m=p[g];p[g]={name:m[0],iso2:m[1],dialCode:m[2],priority:m[3]||0,areaCodes:m[4]||null,nodeById:{}}}function C(s){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},e=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&e.push.apply(e,Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.forEach(function(i){O(s,i,t[i])})}return s}function O(s,n,t){return n=N(n),n in s?Object.defineProperty(s,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[n]=t,s}function U(s,n){return _(s)||S(s,n)||B(s,n)||M()}function M(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B(s,n){if(s){if(typeof s=="string")return T(s,n);var t=Object.prototype.toString.call(s).slice(8,-1);if(t==="Object"&&s.constructor&&(t=s.constructor.name),t==="Map"||t==="Set")return Array.from(s);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return T(s,n)}}function T(s,n){(n==null||n>s.length)&&(n=s.length);for(var t=0,e=new Array(n);t<n;t++)e[t]=s[t];return e}function S(s,n){var t=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(t!=null){var e,i,o,r,a=[],l=!0,u=!1;try{if(o=(t=t.call(s)).next,n===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(e=o.call(t)).done)&&(a.push(e.value),a.length!==n);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&t.return!=null&&(r=t.return(),Object(r)!==r))return}finally{if(u)throw i}}return a}}function _(s){if(Array.isArray(s))return s}function k(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function b(s,n){for(var t=0;t<n.length;t++){var e=n[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,N(e.key),e)}}function j(s,n,t){return n&&b(s.prototype,n),t&&b(s,t),Object.defineProperty(s,"prototype",{writable:!1}),s}function N(s){var n=J(s,"string");return typeof n=="symbol"?n:String(n)}function J(s,n){if(typeof s!="object"||s===null)return s;var t=s[Symbol.toPrimitive];if(t!==h){var e=t.call(s,n||"default");if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(s)}var D={getInstance:function(n){var t=n.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[t]},instances:{},documentReady:function(){return document.readyState==="complete"}};typeof window=="object"&&(window.intlTelInputGlobals=D);var Z=0,V={allowDropdown:!0,autoInsertDialCode:!1,autoPlaceholder:"polite",countrySearch:!0,containerClass:"",customPlaceholder:null,defaultToFirstCountry:!0,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:[],showFlags:!0,showSelectedDialCode:!1,useFullscreenPopup:typeof navigator<"u"&&typeof window<"u"?/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500:!1,utilsScript:""},$=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],A=function(n){var t=window.intlTelInputGlobals.instances;Object.values(t).forEach(function(e){return e[n]()})},Q=function(){function s(n){var t=arguments.length>1&&arguments[1]!==h?arguments[1]:{};k(this,s),this.id=Z++,this.telInput=n,this.activeItem=null,this.highlightedItem=null,this.options=Object.assign({},V,t),this.hadInitialPlaceholder=!!n.getAttribute("placeholder")}return j(s,[{key:"_init",value:function(){var t=this;this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!1),this.options.countrySearch&&!this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!0),this.options.nationalMode&&(this.options.autoInsertDialCode=!1),this.options.showSelectedDialCode&&(this.options.autoInsertDialCode=!1);var e=this.options.allowDropdown&&!this.options.showSelectedDialCode;if(!this.options.showFlags&&e&&(this.options.showFlags=!0),this.options.useFullscreenPopup&&!this.options.dropdownContainer&&(this.options.dropdownContainer=document.body),this.isRTL=!!this.telInput.closest("[dir=rtl]"),typeof Promise<"u"){var i=new Promise(function(r,a){t.resolveAutoCountryPromise=r,t.rejectAutoCountryPromise=a}),o=new Promise(function(r,a){t.resolveUtilsScriptPromise=r,t.rejectUtilsScriptPromise=a});this.promise=Promise.all([i,o])}else this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){};this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries(),this._translateCountryNames(),(this.options.onlyCountries.length||this.options.i18n)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(t,e,i){e.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=e.length),this.countryCodes.hasOwnProperty(e)||(this.countryCodes[e]=[]);for(var o=0;o<this.countryCodes[e].length;o++)if(this.countryCodes[e][o]===t)return;var r=i!==h?i:this.countryCodes[e].length;this.countryCodes[e][r]=t}},{key:"_processAllCountries",value:function(){if(this.options.onlyCountries.length){var t=this.options.onlyCountries.map(function(i){return i.toLowerCase()});this.countries=p.filter(function(i){return t.indexOf(i.iso2)>-1})}else if(this.options.excludeCountries.length){var e=this.options.excludeCountries.map(function(i){return i.toLowerCase()});this.countries=p.filter(function(i){return e.indexOf(i.iso2)===-1})}else this.countries=p}},{key:"_translateCountryNames",value:function(){for(var t=0;t<this.countries.length;t++){var e=this.countries[t].iso2.toLowerCase();this.options.i18n.hasOwnProperty(e)&&(this.countries[t].name=this.options.i18n[e])}}},{key:"_countryNameSort",value:function(t,e){return t.name<e.name?-1:t.name>e.name?1:0}},{key:"_processCountryCodes",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.countryCodes={};for(var t=0;t<this.countries.length;t++){var e=this.countries[t];this.dialCodes[e.dialCode]||(this.dialCodes[e.dialCode]=!0),this._addCountryCode(e.iso2,e.dialCode,e.priority)}for(var i=0;i<this.countries.length;i++){var o=this.countries[i];if(o.areaCodes)for(var r=this.countryCodes[o.dialCode][0],a=0;a<o.areaCodes.length;a++){for(var l=o.areaCodes[a],u=1;u<l.length;u++){var c=o.dialCode+l.substr(0,u);this._addCountryCode(r,c),this._addCountryCode(o.iso2,c)}this._addCountryCode(o.iso2,o.dialCode+l)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var t=0;t<this.options.preferredCountries.length;t++){var e=this.options.preferredCountries[t].toLowerCase(),i=this._getCountryData(e,!0);i&&this.preferredCountries.push(i)}}},{key:"_createEl",value:function(t,e,i){var o=document.createElement(t);return e&&Object.entries(e).forEach(function(r){var a=U(r,2),l=a[0],u=a[1];return o.setAttribute(l,u)}),i&&i.appendChild(o),o}},{key:"_generateMarkup",value:function(){this.telInput.classList.add("iti__tel-input"),!this.telInput.hasAttribute("autocomplete")&&!(this.telInput.form&&this.telInput.form.hasAttribute("autocomplete"))&&this.telInput.setAttribute("autocomplete","off");var t=this.options,e=t.allowDropdown,i=t.showSelectedDialCode,o=t.showFlags,r=t.containerClass,a=t.hiddenInput,l=t.dropdownContainer,u=t.fixDropdownWidth,c=t.useFullscreenPopup,y=t.countrySearch,v="iti";e&&(v+=" iti--allow-dropdown"),i&&(v+=" iti--show-selected-dial-code"),o&&(v+=" iti--show-flags"),r&&(v+=" ".concat(r)),c||(v+=" iti--inline-dropdown");var f=this._createEl("div",{class:v});this.telInput.parentNode.insertBefore(f,this.telInput);var I=e||o||i;if(I&&(this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},f)),f.appendChild(this.telInput),I&&(this.selectedFlag=this._createEl("div",C({class:"iti__selected-flag"},e&&{role:"combobox","aria-haspopup":"listbox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false","aria-label":this.options.i18n.selectedCountryAriaLabel||"Selected country"}),this.flagsContainer)),o&&(this.selectedFlagInner=this._createEl("div",{class:"iti__flag iti__globe"},this.selectedFlag)),this.selectedFlag&&this.telInput.disabled&&this.selectedFlag.setAttribute("aria-disabled","true"),i&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),e){this.telInput.disabled||this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow"},this.selectedFlag);var X=u?"":"iti--flexible-dropdown-width";if(this.dropdownContent=this._createEl("div",{class:"iti__dropdown-content iti__hide ".concat(X)}),y&&(this.searchInput=this._createEl("input",{type:"text",class:"iti__search-input",placeholder:this.options.i18n.searchPlaceholder||"Search"},this.dropdownContent)),this.countryList=this._createEl("ul",{class:"iti__country-list",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":this.options.i18n.countryListAriaLabel||"List of countries"},this.dropdownContent),this.preferredCountries.length&&!y&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider","aria-hidden":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),l){var F="iti iti--container";c?F+=" iti--fullscreen-popup":F+=" iti--inline-dropdown",y&&(F+=" iti--country-search"),this.dropdown=this._createEl("div",{class:F}),this.dropdown.appendChild(this.dropdownContent)}else this.flagsContainer.appendChild(this.dropdownContent)}if(a){var G=this.telInput.getAttribute("name"),E=a(G),tt=E!==null&&typeof E=="object",L,R;if(tt?(L=E.phone||G,R=E.country||"".concat(L,"_country")):(L=E||G,R="".concat(L,"_country")),!L)return;this.hiddenInput=this._createEl("input",{type:"hidden",name:L}),this.hiddenInputCountry=this._createEl("input",{type:"hidden",name:R}),f.appendChild(this.hiddenInput),f.appendChild(this.hiddenInputCountry)}}},{key:"_appendListItems",value:function(t,e,i){for(var o=0;o<t.length;o++){var r=t[o],a=i?"-preferred":"",l=this._createEl("li",{id:"iti-".concat(this.id,"__item-").concat(r.iso2).concat(a),class:"iti__country ".concat(e),tabindex:"-1",role:"option","data-dial-code":r.dialCode,"data-country-code":r.iso2,"aria-selected":"false"},this.countryList);r.nodeById[this.id]=l;var u="";this.options.showFlags&&(u+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(r.iso2,"'></div></div>")),u+="<span class='iti__country-name'>".concat(r.name,"</span>"),u+="<span class='iti__dial-code'>+".concat(r.dialCode,"</span>"),l.insertAdjacentHTML("beforeend",u)}}},{key:"_setInitialState",value:function(){var t=arguments.length>0&&arguments[0]!==h?arguments[0]:!1,e=this.telInput.getAttribute("value"),i=this.telInput.value,o=e&&e.charAt(0)==="+"&&(!i||i.charAt(0)!=="+"),r=o?e:i,a=this._getDialCode(r),l=this._isRegionlessNanp(r),u=this.options,c=u.initialCountry,y=u.autoInsertDialCode,v=u.defaultToFirstCountry;if(a&&!l)this._updateFlagFromNumber(r);else if(c!=="auto"||t){var f=c?c.toLowerCase():"",I=f&&this._getCountryData(f,!0);I?this._setFlag(f):a&&l?this._setFlag("us"):v&&(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,r||this._setFlag(this.defaultCountry)),!r&&y&&(this.telInput.value="+".concat(this.selectedCountryData.dialCode))}r&&this._updateValFromNumber(r)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoInsertDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var t=this;this._handleHiddenInputSubmit=function(){t.hiddenInput.value=t.getNumber(),t.hiddenInputCountry.value=t.getSelectedCountryData().iso2},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_initDropdownListeners",value:function(){var t=this;this._handleLabelClick=function(i){t.dropdownContent.classList.contains("iti__hide")?t.telInput.focus():i.preventDefault()};var e=this.telInput.closest("label");e&&e.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){t.dropdownContent.classList.contains("iti__hide")&&!t.telInput.disabled&&!t.telInput.readOnly&&t._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(i){var o=t.dropdownContent.classList.contains("iti__hide");o&&["ArrowUp","ArrowDown"," ","Enter"].includes(i.key)&&(i.preventDefault(),i.stopPropagation(),t._showDropdown()),i.key==="Tab"&&t._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var t=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(t.options.utilsScript)}):this.resolveUtilsScriptPromise(),this.options.initialCountry==="auto"&&!this.selectedCountryData.iso2?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){var t=this;window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,typeof this.options.geoIpLookup=="function"&&this.options.geoIpLookup(function(){var e=arguments.length>0&&arguments[0]!==h?arguments[0]:"",i=e.toLowerCase(),o=i&&t._getCountryData(i,!0);o?(window.intlTelInputGlobals.autoCountry=i,setTimeout(function(){return A("handleAutoCountry")})):(t._setInitialState(!0),A("rejectAutoCountryPromise"))},function(){return A("rejectAutoCountryPromise")}))}},{key:"_initKeyListeners",value:function(){var t=this,e=!1;this._handleKeyEvent=function(i){if(t._updateFlagFromNumber(t.telInput.value)&&t._triggerCountryChange(),i&&i.data&&/[^+0-9]/.test(i.data)?e=!0:/[^+0-9]/.test(t.telInput.value)||(e=!1),t.options.formatAsYouType&&!e){var o=t.telInput.selectionStart,r=t.telInput.value.substring(0,o),a=r.replace(/[^+0-9]/g,"").length,l=i&&i.inputType==="deleteContentForward",u=t._formatNumberAsYouType(),c=t._translateCursorPosition(a,u,o,l);t.telInput.value=u,t.telInput.setSelectionRange(c,c)}},this.telInput.addEventListener("input",this._handleKeyEvent),this._handleClipboardEvent=function(){setTimeout(t._handleKeyEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_translateCursorPosition",value:function(t,e,i,o){if(i===0&&!o)return 0;for(var r=0,a=0;a<e.length;a++){if(/[+0-9]/.test(e[a])&&r++,r===t&&!o)return a+1;if(o&&r===t+1)return a}return e.length}},{key:"_cap",value:function(t){var e=this.telInput.getAttribute("maxlength");return e&&t.length>e?t.substr(0,e):t}},{key:"_initBlurListeners",value:function(){var t=this;this._handleSubmitOrBlurEvent=function(){t._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if(this.telInput.value.charAt(0)==="+"){var t=this._getNumeric(this.telInput.value);(!t||this.selectedCountryData.dialCode===t)&&(this.telInput.value="")}}},{key:"_getNumeric",value:function(t){return t.replace(/\D/g,"")}},{key:"_trigger",value:function(t){var e=new Event(t,{bubbles:!0,cancelable:!0});this.telInput.dispatchEvent(e)}},{key:"_showDropdown",value:function(){if(this.options.fixDropdownWidth&&(this.dropdownContent.style.width="".concat(this.telInput.offsetWidth,"px")),this.dropdownContent.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.options.countrySearch){var t=this.countryList.firstElementChild;t&&this._highlightListItem(t,!1),this.searchInput.focus()}else this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0));this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(t,e,i){i&&!t.classList.contains(e)?t.classList.add(e):!i&&t.classList.contains(e)&&t.classList.remove(e)}},{key:"_setDropdownPosition",value:function(){var t=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.options.useFullscreenPopup){var e=this.telInput.getBoundingClientRect(),i=document.documentElement.scrollTop,o=e.top+i,r=this.dropdownContent.offsetHeight,a=o+this.telInput.offsetHeight+r<i+window.innerHeight,l=o-r>i,u=!this.options.countrySearch&&!a&&l;if(this._toggleClass(this.dropdownContent,"iti__dropdown-content--dropup",u),this.options.dropdownContainer){var c=u?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(o+c,"px"),this.dropdown.style.left="".concat(e.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return t._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_bindDropdownListeners",value:function(){var t=this;this._handleMouseoverCountryList=function(l){var u=l.target.closest(".iti__country");u&&t._highlightListItem(u,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(l){var u=l.target.closest(".iti__country");u&&t._selectListItem(u)},this.countryList.addEventListener("click",this._handleClickCountryList);var e=!0;this._handleClickOffToClose=function(){e||t._closeDropdown(),e=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var i="",o=null;if(this._handleKeydownOnDropdown=function(l){["ArrowUp","ArrowDown","Enter","Escape"].includes(l.key)&&(l.preventDefault(),l.stopPropagation(),l.key==="ArrowUp"||l.key==="ArrowDown"?t._handleUpDownKey(l.key):l.key==="Enter"?t._handleEnterKey():l.key==="Escape"&&t._closeDropdown()),!t.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(l.key)&&(l.stopPropagation(),o&&clearTimeout(o),i+=l.key.toLowerCase(),t._searchForCountry(i),o=setTimeout(function(){i=""},1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch){var r=function(){var u=t.searchInput.value.trim();u?t._filterCountries(u):t._filterCountries("",!0)},a=null;this._handleSearchChange=function(){a&&clearTimeout(a),a=setTimeout(function(){r(),a=null},100)},this.searchInput.addEventListener("input",this._handleSearchChange),this.searchInput.addEventListener("click",function(l){return l.stopPropagation()})}}},{key:"_normaliseString",value:function(){var t=arguments.length>0&&arguments[0]!==h?arguments[0]:"";return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},{key:"_filterCountries",value:function(t){var e=arguments.length>1&&arguments[1]!==h?arguments[1]:!1,i=!0;this.countryList.innerHTML="";for(var o=this._normaliseString(t),r=0;r<this.countries.length;r++){var a=this.countries[r],l=this._normaliseString(a.name),u="+".concat(a.dialCode);(e||l.includes(o)||u.includes(o)||a.iso2.includes(o))&&(this.countryList.appendChild(a.nodeById[this.id]),i&&(this._highlightListItem(a.nodeById[this.id],!1),i=!1))}}},{key:"_handleUpDownKey",value:function(t){var e=t==="ArrowUp"?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;if(e?e.classList.contains("iti__divider")&&(e=t==="ArrowUp"?e.previousElementSibling:e.nextElementSibling):this.countryList.childElementCount>1&&(e=t==="ArrowUp"?this.countryList.lastElementChild:this.countryList.firstElementChild),e){var i=!this.options.countrySearch;this._highlightListItem(e,i),this.options.countrySearch&&this._scrollTo(e,!1)}}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(t){for(var e=0;e<this.countries.length;e++)if(this._startsWith(this.countries[e].name,t)){var i=this.countries[e].nodeById[this.id];this._highlightListItem(i,!1),this._scrollTo(i,!0);break}}},{key:"_startsWith",value:function(t,e){return t.substr(0,e.length).toLowerCase()===e}},{key:"_updateValFromNumber",value:function(t){var e=t;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var i=this.options.nationalMode||e.charAt(0)!=="+"&&!this.options.showSelectedDialCode,o=intlTelInputUtils.numberFormat,r=o.NATIONAL,a=o.INTERNATIONAL,l=i?r:a;e=intlTelInputUtils.formatNumber(e,this.selectedCountryData.iso2,l)}e=this._beforeSetNumber(e),this.telInput.value=e}},{key:"_updateFlagFromNumber",value:function(t){var e=t.indexOf("+"),i=e?t.substring(e):t,o=this.selectedCountryData.dialCode,r=o==="1";i&&r&&i.charAt(0)!=="+"&&(i.charAt(0)!=="1"&&(i="1".concat(i)),i="+".concat(i)),this.options.showSelectedDialCode&&o&&i.charAt(0)!=="+"&&(i="+".concat(o).concat(i));var a=this._getDialCode(i,!0),l=this._getNumeric(i),u=null;if(a){var c=this.countryCodes[this._getNumeric(a)],y=c.indexOf(this.selectedCountryData.iso2)!==-1&&l.length<=a.length-1,v=o==="1"&&this._isRegionlessNanp(l);if(!v&&!y){for(var f=0;f<c.length;f++)if(c[f]){u=c[f];break}}}else i.charAt(0)==="+"&&l.length?u="":(!i||i==="+")&&!this.selectedCountryData.iso2&&(u=this.defaultCountry);return u!==null?this._setFlag(u):!1}},{key:"_isRegionlessNanp",value:function(t){var e=this._getNumeric(t);if(e.charAt(0)==="1"){var i=e.substr(1,3);return $.indexOf(i)!==-1}return!1}},{key:"_highlightListItem",value:function(t,e){var i=this.highlightedItem;i&&i.classList.remove("iti__highlight"),this.highlightedItem=t,this.highlightedItem.classList.add("iti__highlight"),this.selectedFlag.setAttribute("aria-activedescendant",t.getAttribute("id")),e&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(t,e){for(var i=0;i<this.countries.length;i++)if(this.countries[i].iso2===t)return this.countries[i];if(e)return null;throw new Error("No country data for '".concat(t,"'"))}},{key:"_setFlag",value:function(t){var e=this.options,i=e.allowDropdown,o=e.showSelectedDialCode,r=e.showFlags,a=e.countrySearch,l=this.selectedCountryData.iso2?this.selectedCountryData:{};if(this.selectedCountryData=t?this._getCountryData(t,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),r){var u=t?"iti__".concat(t):"iti__globe";this.selectedFlagInner.setAttribute("class","iti__flag ".concat(u))}if(this._setSelectedCountryFlagTitleAttribute(t,o),o){var c=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=c;var y=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.isRTL?this.telInput.style.paddingRight="".concat(y+6,"px"):this.telInput.style.paddingLeft="".concat(y+6,"px")}if(this._updatePlaceholder(),i&&!a){var v=this.activeItem;if(v&&(v.classList.remove("iti__active"),v.setAttribute("aria-selected","false")),t){var f=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(t,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(t));f.setAttribute("aria-selected","true"),f.classList.add("iti__active"),this.activeItem=f}}return l.iso2!==t}},{key:"_setSelectedCountryFlagTitleAttribute",value:function(t,e){if(this.selectedFlag){var i;t&&!e?i="".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):t?i=this.selectedCountryData.name:i="Unknown",this.selectedFlag.setAttribute("title",i)}}},{key:"_getHiddenSelectedFlagWidth",value:function(){var t=this.telInput.parentNode.cloneNode();t.style.visibility="hidden",document.body.appendChild(t);var e=this.flagsContainer.cloneNode();t.appendChild(e);var i=this.selectedFlag.cloneNode(!0);e.appendChild(i);var o=i.offsetWidth;return t.parentNode.removeChild(t),o}},{key:"_updatePlaceholder",value:function(){var t=this.options.autoPlaceholder==="aggressive"||!this.hadInitialPlaceholder&&this.options.autoPlaceholder==="polite";if(window.intlTelInputUtils&&t){var e=intlTelInputUtils.numberType[this.options.placeholderNumberType],i=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,e):"";i=this._beforeSetNumber(i),typeof this.options.customPlaceholder=="function"&&(i=this.options.customPlaceholder(i,this.selectedCountryData)),this.telInput.setAttribute("placeholder",i)}}},{key:"_selectListItem",value:function(t){var e=this._setFlag(t.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(t.getAttribute("data-dial-code")),this.telInput.focus(),e&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.dropdownContent.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.selectedFlag.removeAttribute("aria-activedescendant"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch&&this.searchInput.removeEventListener("input",this._handleSearchChange),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.options.useFullscreenPopup||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(t,e){var i=this.countryList,o=document.documentElement.scrollTop,r=i.offsetHeight,a=i.getBoundingClientRect().top+o,l=a+r,u=t.offsetHeight,c=t.getBoundingClientRect().top+o,y=c+u,v=c-a+i.scrollTop,f=r/2-u/2;if(c<a)e&&(v-=f),i.scrollTop=v;else if(y>l){e&&(v+=f);var I=r-u;i.scrollTop=v-I}}},{key:"_updateDialCode",value:function(t){var e=this.telInput.value,i="+".concat(t),o;if(e.charAt(0)==="+"){var r=this._getDialCode(e);r?o=e.replace(r,i):o=i,this.telInput.value=o}else this.options.autoInsertDialCode&&(e?o=i+e:o=i,this.telInput.value=o)}},{key:"_getDialCode",value:function(t,e){var i="";if(t.charAt(0)==="+")for(var o="",r=0;r<t.length;r++){var a=t.charAt(r);if(!isNaN(parseInt(a,10))){if(o+=a,e)this.countryCodes[o]&&(i=t.substr(0,r+1));else if(this.dialCodes[o]){i=t.substr(0,r+1);break}if(o.length===this.countryCodeMaxLen)break}}return i}},{key:"_getFullNumber",value:function(){var t=this.telInput.value.trim(),e=this.selectedCountryData.dialCode,i,o=this._getNumeric(t);return this.options.showSelectedDialCode&&!this.options.nationalMode&&t.charAt(0)!=="+"&&e&&o?i="+".concat(e):i="",i+t}},{key:"_beforeSetNumber",value:function(t){var e=t;if(this.options.showSelectedDialCode){var i=this._getDialCode(e);if(i){i="+".concat(this.selectedCountryData.dialCode);var o=e[i.length]===" "||e[i.length]==="-"?i.length+1:i.length;e=e.substr(o)}}return this._cap(e)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"_formatNumberAsYouType",value:function(){var t=this._getFullNumber(),e=window.intlTelInputUtils?intlTelInputUtils.formatNumberAsYouType(t,this.selectedCountryData.iso2):t,i=this.selectedCountryData.dialCode;if(this.options.showSelectedDialCode&&!this.options.nationalMode&&this.telInput.value.charAt(0)!=="+"&&e.includes("+".concat(i))){var o=e.split("+".concat(i))[1]||"";return o.trim()}return e}},{key:"handleAutoCountry",value:function(){this.options.initialCountry==="auto"&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var t=this.telInput.form;if(this.options.allowDropdown){this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var e=this.telInput.closest("label");e&&e.removeEventListener("click",this._handleLabelClick)}this.hiddenInput&&t&&t.removeEventListener("submit",this._handleHiddenInputSubmit),this.options.autoInsertDialCode&&(t&&t.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)),this.telInput.removeEventListener("input",this._handleKeyEvent),this.telInput.removeEventListener("cut",this._handleClipboardEvent),this.telInput.removeEventListener("paste",this._handleClipboardEvent),this.telInput.removeAttribute("data-intl-tel-input-id");var i=this.telInput.parentNode;i.parentNode.insertBefore(this.telInput,i),i.parentNode.removeChild(i),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(t){if(window.intlTelInputUtils){var e=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),e,t)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var t=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),t)}return-99}},{key:"isValidNumber",value:function(){var t=this._getFullNumber();return window.intlTelInputUtils?intlTelInputUtils.isPossibleNumber(t,this.selectedCountryData.iso2):null}},{key:"isValidNumberPrecise",value:function(){var t=this._getFullNumber();return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(t,this.selectedCountryData.iso2):null}},{key:"setCountry",value:function(t){var e=t.toLowerCase();this.selectedCountryData.iso2!==e&&(this._setFlag(e),this._updateDialCode(this.selectedCountryData.dialCode),this._triggerCountryChange())}},{key:"setNumber",value:function(t){var e=this._updateFlagFromNumber(t);this._updateValFromNumber(t),e&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(t){this.options.placeholderNumberType=t,this._updatePlaceholder()}}]),s}();D.getCountryData=function(){return p};var H=function(n,t,e){var i=document.createElement("script");i.onload=function(){A("handleUtils"),t&&t()},i.onerror=function(){A("rejectUtilsScriptPromise"),e&&e()},i.className="iti-load-utils",i.async=!0,i.src=n,document.body.appendChild(i)};return D.loadUtils=function(s){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,typeof Promise<"u")return new Promise(function(n,t){return H(s,n,t)});H(s)}return null},D.defaults=V,D.version="19.5.1",function(s,n){var t=new Q(s,n);return t._init(),s.setAttribute("data-intl-tel-input-id",t.id),window.intlTelInputGlobals.instances[t.id]=t,t}}()})});var dt={};at(dt,{default:()=>ut});module.exports=lt(dt);var w=K(require("react")),d=K(require("prop-types")),Y=K(q()),z=({initialValue:h,onChangeNumber:p,onChangeCountry:g,onChangeValidity:m,onChangeErrorCode:C,initOptions:O,className:U,disabled:M,onFocus:B,onBlur:T})=>{let S=(0,w.useRef)(null),_=(0,w.useRef)(null),k=()=>{let b=_.current.getNumber(),j=_.current.getSelectedCountryData().iso2;if(p(b),g(j),_.current.isValidNumber())m(!0),C(null);else{let N=_.current.getValidationError();m(!1),C(N)}};return(0,w.useEffect)(()=>{let b=S.current;return _.current=(0,Y.default)(S.current,O),b.addEventListener("countrychange",k),()=>{b.removeEventListener("countrychange",k),_.current.destroy()}},[]),w.default.createElement("input",{type:"tel",ref:S,onInput:k,defaultValue:h,className:U,disabled:M,onFocus:B,onBlur:T})};z.propTypes={initialValue:d.default.string,onChangeNumber:d.default.func,onChangeCountry:d.default.func,onChangeValidity:d.default.func,onChangeErrorCode:d.default.func,initOptions:d.default.shape({allowDropdown:d.default.bool,autoInsertDialCode:d.default.bool,autoPlaceholder:d.default.string,containerClass:d.default.string,countrySearch:d.default.bool,customPlaceholder:d.default.func,dropdownContainer:d.default.node,excludeCountries:d.default.arrayOf(d.default.string),fixDropdownWidth:d.default.bool,formatAsYouType:d.default.bool,formatOnDisplay:d.default.bool,geoIpLookup:d.default.func,hiddenInput:d.default.func,i18n:d.default.objectOf(d.default.string),initialCountry:d.default.string,nationalMode:d.default.bool,onlyCountries:d.default.arrayOf(d.default.string),placeholderNumberType:d.default.string,preferredCountries:d.default.arrayOf(d.default.string),showFlags:d.default.bool,showSelectedDialCode:d.default.bool,useFullscreenPopup:d.default.bool,utilsScript:d.default.string}),className:d.default.string,disabled:d.default.bool,onFocus:d.default.func,onBlur:d.default.func};z.defaultProps={initialValue:"",onChangeNumber:()=>{},onChangeCountry:()=>{},onChangeValidity:()=>{},onChangeErrorCode:()=>{},initOptions:{},className:"",disabled:!1,onFocus:()=>{},onBlur:()=>{}};var ut=z;
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B(s,n){if(s){if(typeof s=="string")return T(s,n);var t=Object.prototype.toString.call(s).slice(8,-1);if(t==="Object"&&s.constructor&&(t=s.constructor.name),t==="Map"||t==="Set")return Array.from(s);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return T(s,n)}}function T(s,n){(n==null||n>s.length)&&(n=s.length);for(var t=0,e=new Array(n);t<n;t++)e[t]=s[t];return e}function S(s,n){var t=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(t!=null){var e,i,o,r,a=[],l=!0,u=!1;try{if(o=(t=t.call(s)).next,n===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(e=o.call(t)).done)&&(a.push(e.value),a.length!==n);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&t.return!=null&&(r=t.return(),Object(r)!==r))return}finally{if(u)throw i}}return a}}function _(s){if(Array.isArray(s))return s}function k(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function b(s,n){for(var t=0;t<n.length;t++){var e=n[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,N(e.key),e)}}function j(s,n,t){return n&&b(s.prototype,n),t&&b(s,t),Object.defineProperty(s,"prototype",{writable:!1}),s}function N(s){var n=J(s,"string");return typeof n=="symbol"?n:String(n)}function J(s,n){if(typeof s!="object"||s===null)return s;var t=s[Symbol.toPrimitive];if(t!==h){var e=t.call(s,n||"default");if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(s)}var D={getInstance:function(n){var t=n.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[t]},instances:{},documentReady:function(){return document.readyState==="complete"}};typeof window=="object"&&(window.intlTelInputGlobals=D);var Z=0,V={allowDropdown:!0,autoInsertDialCode:!1,autoPlaceholder:"polite",countrySearch:!0,containerClass:"",customPlaceholder:null,defaultToFirstCountry:!0,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:[],showFlags:!0,showSelectedDialCode:!1,useFullscreenPopup:typeof navigator<"u"&&typeof window<"u"?/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500:!1,utilsScript:""},$=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],A=function(n){var t=window.intlTelInputGlobals.instances;Object.values(t).forEach(function(e){return e[n]()})},Q=function(){function s(n){var t=arguments.length>1&&arguments[1]!==h?arguments[1]:{};k(this,s),this.id=Z++,this.telInput=n,this.activeItem=null,this.highlightedItem=null,this.options=Object.assign({},V,t),this.hadInitialPlaceholder=!!n.getAttribute("placeholder")}return j(s,[{key:"_init",value:function(){var t=this;this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!1),this.options.countrySearch&&!this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!0),this.options.nationalMode&&(this.options.autoInsertDialCode=!1),this.options.showSelectedDialCode&&(this.options.autoInsertDialCode=!1);var e=this.options.allowDropdown&&!this.options.showSelectedDialCode;if(!this.options.showFlags&&e&&(this.options.showFlags=!0),this.options.useFullscreenPopup&&!this.options.dropdownContainer&&(this.options.dropdownContainer=document.body),this.isRTL=!!this.telInput.closest("[dir=rtl]"),typeof Promise<"u"){var i=new Promise(function(r,a){t.resolveAutoCountryPromise=r,t.rejectAutoCountryPromise=a}),o=new Promise(function(r,a){t.resolveUtilsScriptPromise=r,t.rejectUtilsScriptPromise=a});this.promise=Promise.all([i,o])}else this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){};this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries(),this._translateCountryNames(),(this.options.onlyCountries.length||this.options.i18n)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(t,e,i){e.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=e.length),this.countryCodes.hasOwnProperty(e)||(this.countryCodes[e]=[]);for(var o=0;o<this.countryCodes[e].length;o++)if(this.countryCodes[e][o]===t)return;var r=i!==h?i:this.countryCodes[e].length;this.countryCodes[e][r]=t}},{key:"_processAllCountries",value:function(){if(this.options.onlyCountries.length){var t=this.options.onlyCountries.map(function(i){return i.toLowerCase()});this.countries=p.filter(function(i){return t.indexOf(i.iso2)>-1})}else if(this.options.excludeCountries.length){var e=this.options.excludeCountries.map(function(i){return i.toLowerCase()});this.countries=p.filter(function(i){return e.indexOf(i.iso2)===-1})}else this.countries=p}},{key:"_translateCountryNames",value:function(){for(var t=0;t<this.countries.length;t++){var e=this.countries[t].iso2.toLowerCase();this.options.i18n.hasOwnProperty(e)&&(this.countries[t].name=this.options.i18n[e])}}},{key:"_countryNameSort",value:function(t,e){return t.name<e.name?-1:t.name>e.name?1:0}},{key:"_processCountryCodes",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.countryCodes={};for(var t=0;t<this.countries.length;t++){var e=this.countries[t];this.dialCodes[e.dialCode]||(this.dialCodes[e.dialCode]=!0),this._addCountryCode(e.iso2,e.dialCode,e.priority)}for(var i=0;i<this.countries.length;i++){var o=this.countries[i];if(o.areaCodes)for(var r=this.countryCodes[o.dialCode][0],a=0;a<o.areaCodes.length;a++){for(var l=o.areaCodes[a],u=1;u<l.length;u++){var c=o.dialCode+l.substr(0,u);this._addCountryCode(r,c),this._addCountryCode(o.iso2,c)}this._addCountryCode(o.iso2,o.dialCode+l)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var t=0;t<this.options.preferredCountries.length;t++){var e=this.options.preferredCountries[t].toLowerCase(),i=this._getCountryData(e,!0);i&&this.preferredCountries.push(i)}}},{key:"_createEl",value:function(t,e,i){var o=document.createElement(t);return e&&Object.entries(e).forEach(function(r){var a=U(r,2),l=a[0],u=a[1];return o.setAttribute(l,u)}),i&&i.appendChild(o),o}},{key:"_generateMarkup",value:function(){this.telInput.classList.add("iti__tel-input"),!this.telInput.hasAttribute("autocomplete")&&!(this.telInput.form&&this.telInput.form.hasAttribute("autocomplete"))&&this.telInput.setAttribute("autocomplete","off");var t=this.options,e=t.allowDropdown,i=t.showSelectedDialCode,o=t.showFlags,r=t.containerClass,a=t.hiddenInput,l=t.dropdownContainer,u=t.fixDropdownWidth,c=t.useFullscreenPopup,y=t.countrySearch,v="iti";e&&(v+=" iti--allow-dropdown"),i&&(v+=" iti--show-selected-dial-code"),o&&(v+=" iti--show-flags"),r&&(v+=" ".concat(r)),c||(v+=" iti--inline-dropdown");var f=this._createEl("div",{class:v});this.telInput.parentNode.insertBefore(f,this.telInput);var I=e||o||i;if(I&&(this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},f)),f.appendChild(this.telInput),I&&(this.selectedFlag=this._createEl("div",C({class:"iti__selected-flag"},e&&{role:"combobox","aria-haspopup":"listbox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false","aria-label":this.options.i18n.selectedCountryAriaLabel||"Selected country"}),this.flagsContainer)),o&&(this.selectedFlagInner=this._createEl("div",{class:"iti__flag iti__globe"},this.selectedFlag)),this.selectedFlag&&this.telInput.disabled&&this.selectedFlag.setAttribute("aria-disabled","true"),i&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),e){this.telInput.disabled||this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow"},this.selectedFlag);var X=u?"":"iti--flexible-dropdown-width";if(this.dropdownContent=this._createEl("div",{class:"iti__dropdown-content iti__hide ".concat(X)}),y&&(this.searchInput=this._createEl("input",{type:"text",class:"iti__search-input",placeholder:this.options.i18n.searchPlaceholder||"Search"},this.dropdownContent)),this.countryList=this._createEl("ul",{class:"iti__country-list",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":this.options.i18n.countryListAriaLabel||"List of countries"},this.dropdownContent),this.preferredCountries.length&&!y&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider","aria-hidden":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),l){var F="iti iti--container";c?F+=" iti--fullscreen-popup":F+=" iti--inline-dropdown",y&&(F+=" iti--country-search"),this.dropdown=this._createEl("div",{class:F}),this.dropdown.appendChild(this.dropdownContent)}else this.flagsContainer.appendChild(this.dropdownContent)}if(a){var G=this.telInput.getAttribute("name"),E=a(G),tt=E!==null&&typeof E=="object",L,R;if(tt?(L=E.phone||G,R=E.country||"".concat(L,"_country")):(L=E||G,R="".concat(L,"_country")),!L)return;this.hiddenInput=this._createEl("input",{type:"hidden",name:L}),this.hiddenInputCountry=this._createEl("input",{type:"hidden",name:R}),f.appendChild(this.hiddenInput),f.appendChild(this.hiddenInputCountry)}}},{key:"_appendListItems",value:function(t,e,i){for(var o=0;o<t.length;o++){var r=t[o],a=i?"-preferred":"",l=this._createEl("li",{id:"iti-".concat(this.id,"__item-").concat(r.iso2).concat(a),class:"iti__country ".concat(e),tabindex:"-1",role:"option","data-dial-code":r.dialCode,"data-country-code":r.iso2,"aria-selected":"false"},this.countryList);r.nodeById[this.id]=l;var u="";this.options.showFlags&&(u+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(r.iso2,"'></div></div>")),u+="<span class='iti__country-name'>".concat(r.name,"</span>"),u+="<span class='iti__dial-code'>+".concat(r.dialCode,"</span>"),l.insertAdjacentHTML("beforeend",u)}}},{key:"_setInitialState",value:function(){var t=arguments.length>0&&arguments[0]!==h?arguments[0]:!1,e=this.telInput.getAttribute("value"),i=this.telInput.value,o=e&&e.charAt(0)==="+"&&(!i||i.charAt(0)!=="+"),r=o?e:i,a=this._getDialCode(r),l=this._isRegionlessNanp(r),u=this.options,c=u.initialCountry,y=u.autoInsertDialCode,v=u.defaultToFirstCountry;if(a&&!l)this._updateFlagFromNumber(r);else if(c!=="auto"||t){var f=c?c.toLowerCase():"",I=f&&this._getCountryData(f,!0);I?this._setFlag(f):a&&l?this._setFlag("us"):v&&(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,r||this._setFlag(this.defaultCountry)),!r&&y&&(this.telInput.value="+".concat(this.selectedCountryData.dialCode))}r&&this._updateValFromNumber(r)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoInsertDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var t=this;this._handleHiddenInputSubmit=function(){t.hiddenInput.value=t.getNumber(),t.hiddenInputCountry.value=t.getSelectedCountryData().iso2},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_initDropdownListeners",value:function(){var t=this;this._handleLabelClick=function(i){t.dropdownContent.classList.contains("iti__hide")?t.telInput.focus():i.preventDefault()};var e=this.telInput.closest("label");e&&e.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){t.dropdownContent.classList.contains("iti__hide")&&!t.telInput.disabled&&!t.telInput.readOnly&&t._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(i){var o=t.dropdownContent.classList.contains("iti__hide");o&&["ArrowUp","ArrowDown"," ","Enter"].includes(i.key)&&(i.preventDefault(),i.stopPropagation(),t._showDropdown()),i.key==="Tab"&&t._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var t=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(t.options.utilsScript)}):this.resolveUtilsScriptPromise(),this.options.initialCountry==="auto"&&!this.selectedCountryData.iso2?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){var t=this;window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,typeof this.options.geoIpLookup=="function"&&this.options.geoIpLookup(function(){var e=arguments.length>0&&arguments[0]!==h?arguments[0]:"",i=e.toLowerCase(),o=i&&t._getCountryData(i,!0);o?(window.intlTelInputGlobals.autoCountry=i,setTimeout(function(){return A("handleAutoCountry")})):(t._setInitialState(!0),A("rejectAutoCountryPromise"))},function(){return A("rejectAutoCountryPromise")}))}},{key:"_initKeyListeners",value:function(){var t=this,e=!1;this._handleKeyEvent=function(i){if(t._updateFlagFromNumber(t.telInput.value)&&t._triggerCountryChange(),i&&i.data&&/[^+0-9]/.test(i.data)?e=!0:/[^+0-9]/.test(t.telInput.value)||(e=!1),t.options.formatAsYouType&&!e){var o=t.telInput.selectionStart,r=t.telInput.value.substring(0,o),a=r.replace(/[^+0-9]/g,"").length,l=i&&i.inputType==="deleteContentForward",u=t._formatNumberAsYouType(),c=t._translateCursorPosition(a,u,o,l);t.telInput.value=u,t.telInput.setSelectionRange(c,c)}},this.telInput.addEventListener("input",this._handleKeyEvent),this._handleClipboardEvent=function(){setTimeout(t._handleKeyEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_translateCursorPosition",value:function(t,e,i,o){if(i===0&&!o)return 0;for(var r=0,a=0;a<e.length;a++){if(/[+0-9]/.test(e[a])&&r++,r===t&&!o)return a+1;if(o&&r===t+1)return a}return e.length}},{key:"_cap",value:function(t){var e=this.telInput.getAttribute("maxlength");return e&&t.length>e?t.substr(0,e):t}},{key:"_initBlurListeners",value:function(){var t=this;this._handleSubmitOrBlurEvent=function(){t._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if(this.telInput.value.charAt(0)==="+"){var t=this._getNumeric(this.telInput.value);(!t||this.selectedCountryData.dialCode===t)&&(this.telInput.value="")}}},{key:"_getNumeric",value:function(t){return t.replace(/\D/g,"")}},{key:"_trigger",value:function(t){var e=new Event(t,{bubbles:!0,cancelable:!0});this.telInput.dispatchEvent(e)}},{key:"_showDropdown",value:function(){if(this.options.fixDropdownWidth&&(this.dropdownContent.style.width="".concat(this.telInput.offsetWidth,"px")),this.dropdownContent.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.options.countrySearch){var t=this.countryList.firstElementChild;t&&this._highlightListItem(t,!1),this.searchInput.focus()}else this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0));this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(t,e,i){i&&!t.classList.contains(e)?t.classList.add(e):!i&&t.classList.contains(e)&&t.classList.remove(e)}},{key:"_setDropdownPosition",value:function(){var t=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.options.useFullscreenPopup){var e=this.telInput.getBoundingClientRect(),i=document.documentElement.scrollTop,o=e.top+i,r=this.dropdownContent.offsetHeight,a=o+this.telInput.offsetHeight+r<i+window.innerHeight,l=o-r>i,u=!this.options.countrySearch&&!a&&l;if(this._toggleClass(this.dropdownContent,"iti__dropdown-content--dropup",u),this.options.dropdownContainer){var c=u?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(o+c,"px"),this.dropdown.style.left="".concat(e.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return t._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_bindDropdownListeners",value:function(){var t=this;this._handleMouseoverCountryList=function(l){var u=l.target.closest(".iti__country");u&&t._highlightListItem(u,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(l){var u=l.target.closest(".iti__country");u&&t._selectListItem(u)},this.countryList.addEventListener("click",this._handleClickCountryList);var e=!0;this._handleClickOffToClose=function(){e||t._closeDropdown(),e=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var i="",o=null;if(this._handleKeydownOnDropdown=function(l){["ArrowUp","ArrowDown","Enter","Escape"].includes(l.key)&&(l.preventDefault(),l.stopPropagation(),l.key==="ArrowUp"||l.key==="ArrowDown"?t._handleUpDownKey(l.key):l.key==="Enter"?t._handleEnterKey():l.key==="Escape"&&t._closeDropdown()),!t.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(l.key)&&(l.stopPropagation(),o&&clearTimeout(o),i+=l.key.toLowerCase(),t._searchForCountry(i),o=setTimeout(function(){i=""},1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch){var r=function(){var u=t.searchInput.value.trim();u?t._filterCountries(u):t._filterCountries("",!0)},a=null;this._handleSearchChange=function(){a&&clearTimeout(a),a=setTimeout(function(){r(),a=null},100)},this.searchInput.addEventListener("input",this._handleSearchChange),this.searchInput.addEventListener("click",function(l){return l.stopPropagation()})}}},{key:"_normaliseString",value:function(){var t=arguments.length>0&&arguments[0]!==h?arguments[0]:"";return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},{key:"_filterCountries",value:function(t){var e=arguments.length>1&&arguments[1]!==h?arguments[1]:!1,i=!0;this.countryList.innerHTML="";for(var o=this._normaliseString(t),r=0;r<this.countries.length;r++){var a=this.countries[r],l=this._normaliseString(a.name),u="+".concat(a.dialCode);(e||l.includes(o)||u.includes(o)||a.iso2.includes(o))&&(this.countryList.appendChild(a.nodeById[this.id]),i&&(this._highlightListItem(a.nodeById[this.id],!1),i=!1))}}},{key:"_handleUpDownKey",value:function(t){var e=t==="ArrowUp"?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;if(e?e.classList.contains("iti__divider")&&(e=t==="ArrowUp"?e.previousElementSibling:e.nextElementSibling):this.countryList.childElementCount>1&&(e=t==="ArrowUp"?this.countryList.lastElementChild:this.countryList.firstElementChild),e){var i=!this.options.countrySearch;this._highlightListItem(e,i),this.options.countrySearch&&this._scrollTo(e,!1)}}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(t){for(var e=0;e<this.countries.length;e++)if(this._startsWith(this.countries[e].name,t)){var i=this.countries[e].nodeById[this.id];this._highlightListItem(i,!1),this._scrollTo(i,!0);break}}},{key:"_startsWith",value:function(t,e){return t.substr(0,e.length).toLowerCase()===e}},{key:"_updateValFromNumber",value:function(t){var e=t;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var i=this.options.nationalMode||e.charAt(0)!=="+"&&!this.options.showSelectedDialCode,o=intlTelInputUtils.numberFormat,r=o.NATIONAL,a=o.INTERNATIONAL,l=i?r:a;e=intlTelInputUtils.formatNumber(e,this.selectedCountryData.iso2,l)}e=this._beforeSetNumber(e),this.telInput.value=e}},{key:"_updateFlagFromNumber",value:function(t){var e=t.indexOf("+"),i=e?t.substring(e):t,o=this.selectedCountryData.dialCode,r=o==="1";i&&r&&i.charAt(0)!=="+"&&(i.charAt(0)!=="1"&&(i="1".concat(i)),i="+".concat(i)),this.options.showSelectedDialCode&&o&&i.charAt(0)!=="+"&&(i="+".concat(o).concat(i));var a=this._getDialCode(i,!0),l=this._getNumeric(i),u=null;if(a){var c=this.countryCodes[this._getNumeric(a)],y=c.indexOf(this.selectedCountryData.iso2)!==-1&&l.length<=a.length-1,v=o==="1"&&this._isRegionlessNanp(l);if(!v&&!y){for(var f=0;f<c.length;f++)if(c[f]){u=c[f];break}}}else i.charAt(0)==="+"&&l.length?u="":(!i||i==="+")&&!this.selectedCountryData.iso2&&(u=this.defaultCountry);return u!==null?this._setFlag(u):!1}},{key:"_isRegionlessNanp",value:function(t){var e=this._getNumeric(t);if(e.charAt(0)==="1"){var i=e.substr(1,3);return $.indexOf(i)!==-1}return!1}},{key:"_highlightListItem",value:function(t,e){var i=this.highlightedItem;i&&i.classList.remove("iti__highlight"),this.highlightedItem=t,this.highlightedItem.classList.add("iti__highlight"),this.selectedFlag.setAttribute("aria-activedescendant",t.getAttribute("id")),e&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(t,e){for(var i=0;i<this.countries.length;i++)if(this.countries[i].iso2===t)return this.countries[i];if(e)return null;throw new Error("No country data for '".concat(t,"'"))}},{key:"_setFlag",value:function(t){var e=this.options,i=e.allowDropdown,o=e.showSelectedDialCode,r=e.showFlags,a=e.countrySearch,l=this.selectedCountryData.iso2?this.selectedCountryData:{};if(this.selectedCountryData=t?this._getCountryData(t,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),r){var u=t?"iti__".concat(t):"iti__globe";this.selectedFlagInner.setAttribute("class","iti__flag ".concat(u))}if(this._setSelectedCountryFlagTitleAttribute(t,o),o){var c=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=c;var y=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.isRTL?this.telInput.style.paddingRight="".concat(y+6,"px"):this.telInput.style.paddingLeft="".concat(y+6,"px")}if(this._updatePlaceholder(),i&&!a){var v=this.activeItem;if(v&&(v.classList.remove("iti__active"),v.setAttribute("aria-selected","false")),t){var f=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(t,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(t));f.setAttribute("aria-selected","true"),f.classList.add("iti__active"),this.activeItem=f}}return l.iso2!==t}},{key:"_setSelectedCountryFlagTitleAttribute",value:function(t,e){if(this.selectedFlag){var i;t&&!e?i="".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):t?i=this.selectedCountryData.name:i="Unknown",this.selectedFlag.setAttribute("title",i)}}},{key:"_getHiddenSelectedFlagWidth",value:function(){var t=this.telInput.parentNode.cloneNode();t.style.visibility="hidden",document.body.appendChild(t);var e=this.flagsContainer.cloneNode();t.appendChild(e);var i=this.selectedFlag.cloneNode(!0);e.appendChild(i);var o=i.offsetWidth;return t.parentNode.removeChild(t),o}},{key:"_updatePlaceholder",value:function(){var t=this.options.autoPlaceholder==="aggressive"||!this.hadInitialPlaceholder&&this.options.autoPlaceholder==="polite";if(window.intlTelInputUtils&&t){var e=intlTelInputUtils.numberType[this.options.placeholderNumberType],i=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,e):"";i=this._beforeSetNumber(i),typeof this.options.customPlaceholder=="function"&&(i=this.options.customPlaceholder(i,this.selectedCountryData)),this.telInput.setAttribute("placeholder",i)}}},{key:"_selectListItem",value:function(t){var e=this._setFlag(t.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(t.getAttribute("data-dial-code")),this.telInput.focus(),e&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.dropdownContent.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.selectedFlag.removeAttribute("aria-activedescendant"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch&&this.searchInput.removeEventListener("input",this._handleSearchChange),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.options.useFullscreenPopup||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(t,e){var i=this.countryList,o=document.documentElement.scrollTop,r=i.offsetHeight,a=i.getBoundingClientRect().top+o,l=a+r,u=t.offsetHeight,c=t.getBoundingClientRect().top+o,y=c+u,v=c-a+i.scrollTop,f=r/2-u/2;if(c<a)e&&(v-=f),i.scrollTop=v;else if(y>l){e&&(v+=f);var I=r-u;i.scrollTop=v-I}}},{key:"_updateDialCode",value:function(t){var e=this.telInput.value,i="+".concat(t),o;if(e.charAt(0)==="+"){var r=this._getDialCode(e);r?o=e.replace(r,i):o=i,this.telInput.value=o}else this.options.autoInsertDialCode&&(e?o=i+e:o=i,this.telInput.value=o)}},{key:"_getDialCode",value:function(t,e){var i="";if(t.charAt(0)==="+")for(var o="",r=0;r<t.length;r++){var a=t.charAt(r);if(!isNaN(parseInt(a,10))){if(o+=a,e)this.countryCodes[o]&&(i=t.substr(0,r+1));else if(this.dialCodes[o]){i=t.substr(0,r+1);break}if(o.length===this.countryCodeMaxLen)break}}return i}},{key:"_getFullNumber",value:function(){var t=this.telInput.value.trim(),e=this.selectedCountryData.dialCode,i,o=this._getNumeric(t);return this.options.showSelectedDialCode&&!this.options.nationalMode&&t.charAt(0)!=="+"&&e&&o?i="+".concat(e):i="",i+t}},{key:"_beforeSetNumber",value:function(t){var e=t;if(this.options.showSelectedDialCode){var i=this._getDialCode(e);if(i){i="+".concat(this.selectedCountryData.dialCode);var o=e[i.length]===" "||e[i.length]==="-"?i.length+1:i.length;e=e.substr(o)}}return this._cap(e)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"_formatNumberAsYouType",value:function(){var t=this._getFullNumber(),e=window.intlTelInputUtils?intlTelInputUtils.formatNumberAsYouType(t,this.selectedCountryData.iso2):t,i=this.selectedCountryData.dialCode;if(this.options.showSelectedDialCode&&!this.options.nationalMode&&this.telInput.value.charAt(0)!=="+"&&e.includes("+".concat(i))){var o=e.split("+".concat(i))[1]||"";return o.trim()}return e}},{key:"handleAutoCountry",value:function(){this.options.initialCountry==="auto"&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var t=this.telInput.form;if(this.options.allowDropdown){this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var e=this.telInput.closest("label");e&&e.removeEventListener("click",this._handleLabelClick)}this.hiddenInput&&t&&t.removeEventListener("submit",this._handleHiddenInputSubmit),this.options.autoInsertDialCode&&(t&&t.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)),this.telInput.removeEventListener("input",this._handleKeyEvent),this.telInput.removeEventListener("cut",this._handleClipboardEvent),this.telInput.removeEventListener("paste",this._handleClipboardEvent),this.telInput.removeAttribute("data-intl-tel-input-id");var i=this.telInput.parentNode;i.parentNode.insertBefore(this.telInput,i),i.parentNode.removeChild(i),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(t){if(window.intlTelInputUtils){var e=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),e,t)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var t=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),t)}return-99}},{key:"isValidNumber",value:function(){var t=this._getFullNumber();return window.intlTelInputUtils?intlTelInputUtils.isPossibleNumber(t,this.selectedCountryData.iso2):null}},{key:"isValidNumberPrecise",value:function(){var t=this._getFullNumber();return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(t,this.selectedCountryData.iso2):null}},{key:"setCountry",value:function(t){var e=t.toLowerCase();this.selectedCountryData.iso2!==e&&(this._setFlag(e),this._updateDialCode(this.selectedCountryData.dialCode),this._triggerCountryChange())}},{key:"setNumber",value:function(t){var e=this._updateFlagFromNumber(t);this._updateValFromNumber(t),e&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(t){this.options.placeholderNumberType=t,this._updatePlaceholder()}}]),s}();D.getCountryData=function(){return p};var H=function(n,t,e){var i=document.createElement("script");i.onload=function(){A("handleUtils"),t&&t()},i.onerror=function(){A("rejectUtilsScriptPromise"),e&&e()},i.className="iti-load-utils",i.async=!0,i.src=n,document.body.appendChild(i)};return D.loadUtils=function(s){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,typeof Promise<"u")return new Promise(function(n,t){return H(s,n,t)});H(s)}return null},D.defaults=V,D.version="19.5.2",function(s,n){var t=new Q(s,n);return t._init(),s.setAttribute("data-intl-tel-input-id",t.id),window.intlTelInputGlobals.instances[t.id]=t,t}}()})});var dt={};at(dt,{default:()=>ut});module.exports=lt(dt);var w=K(require("react")),d=K(require("prop-types")),Y=K(q()),z=({initialValue:h,onChangeNumber:p,onChangeCountry:g,onChangeValidity:m,onChangeErrorCode:C,initOptions:O,className:U,disabled:M,onFocus:B,onBlur:T})=>{let S=(0,w.useRef)(null),_=(0,w.useRef)(null),k=()=>{let b=_.current.getNumber(),j=_.current.getSelectedCountryData().iso2;if(p(b),g(j),_.current.isValidNumber())m(!0),C(null);else{let N=_.current.getValidationError();m(!1),C(N)}};return(0,w.useEffect)(()=>{let b=S.current;return _.current=(0,Y.default)(S.current,O),b.addEventListener("countrychange",k),()=>{b.removeEventListener("countrychange",k),_.current.destroy()}},[]),w.default.createElement("input",{type:"tel",ref:S,onInput:k,defaultValue:h,className:U,disabled:M,onFocus:B,onBlur:T})};z.propTypes={initialValue:d.default.string,onChangeNumber:d.default.func,onChangeCountry:d.default.func,onChangeValidity:d.default.func,onChangeErrorCode:d.default.func,initOptions:d.default.shape({allowDropdown:d.default.bool,autoInsertDialCode:d.default.bool,autoPlaceholder:d.default.string,containerClass:d.default.string,countrySearch:d.default.bool,customPlaceholder:d.default.func,dropdownContainer:d.default.node,excludeCountries:d.default.arrayOf(d.default.string),fixDropdownWidth:d.default.bool,formatAsYouType:d.default.bool,formatOnDisplay:d.default.bool,geoIpLookup:d.default.func,hiddenInput:d.default.func,i18n:d.default.objectOf(d.default.string),initialCountry:d.default.string,nationalMode:d.default.bool,onlyCountries:d.default.arrayOf(d.default.string),placeholderNumberType:d.default.string,preferredCountries:d.default.arrayOf(d.default.string),showFlags:d.default.bool,showSelectedDialCode:d.default.bool,useFullscreenPopup:d.default.bool,utilsScript:d.default.string}),className:d.default.string,disabled:d.default.bool,onFocus:d.default.func,onBlur:d.default.func};z.defaultProps={initialValue:"",onChangeNumber:()=>{},onChangeCountry:()=>{},onChangeValidity:()=>{},onChangeErrorCode:()=>{},initOptions:{},className:"",disabled:!1,onFocus:()=>{},onBlur:()=>{}};var ut=z;
//# sourceMappingURL=IntlTelInput.cjs.js.map
var X=Object.create;var z=Object.defineProperty;var tt=Object.getOwnPropertyDescriptor;var et=Object.getOwnPropertyNames;var it=Object.getPrototypeOf,nt=Object.prototype.hasOwnProperty;var ot=(c,p)=>()=>(p||c((p={exports:{}}).exports,p),p.exports);var rt=(c,p,g,m)=>{if(p&&typeof p=="object"||typeof p=="function")for(let C of et(p))!nt.call(c,C)&&C!==g&&z(c,C,{get:()=>p[C],enumerable:!(m=tt(p,C))||m.enumerable});return c};var st=(c,p,g)=>(g=c!=null?X(it(c)):{},rt(p||!c||!c.__esModule?z(g,"default",{value:c,enumerable:!0}):g,c));var V=ot((dt,F)=>{(function(c){typeof F=="object"&&F.exports?F.exports=c():window.intlTelInput=c()})(function(c){"use strict";return function(){for(var p=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua & Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria","at","43"],["Azerbaijan","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus","by","375"],["Belgium","be","32"],["Belize","bz","501"],["Benin","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia & Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros","km","269"],["Congo - Brazzaville","cg","242"],["Congo - Kinshasa","cd","243"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["C\xF4te d\u2019Ivoire","ci","225"],["Croatia","hr","385"],["Cuba","cu","53"],["Cura\xE7ao","cw","599",0],["Cyprus","cy","357"],["Czech Republic","cz","420"],["Denmark","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands","fk","500"],["Faroe Islands","fo","298"],["Fiji","fj","679"],["Finland","fi","358",0],["France","fr","33"],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49"],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30"],["Greenland","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong","hk","852"],["Hungary","hu","36"],["Iceland","is","354"],["India","in","91"],["Indonesia","id","62"],["Iran","ir","98"],["Iraq","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel","il","972"],["Italy","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan","jo","962"],["Kazakhstan","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996"],["Laos","la","856"],["Latvia","lv","371"],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico","mx","52"],["Micronesia","fm","691"],["Moldova","md","373"],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco","ma","212",0],["Mozambique","mz","258"],["Myanmar (Burma)","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31"],["New Caledonia","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea","kp","850"],["North Macedonia","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway","no","47",0],["Oman","om","968"],["Pakistan","pk","92"],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63"],["Poland","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar","qa","974"],["R\xE9union","re","262",0],["Romania","ro","40"],["Russia","ru","7",0],["Rwanda","rw","250"],["Samoa","ws","685"],["San Marino","sm","378"],["S\xE3o Tom\xE9 & Pr\xEDncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82"],["South Sudan","ss","211"],["Spain","es","34"],["Sri Lanka","lk","94"],["St Barth\xE9lemy","bl","590",1],["St Helena","sh","290"],["St Kitts & Nevis","kn","1",18,["869"]],["St Lucia","lc","1",19,["758"]],["St Martin","mf","590",2],["St Pierre & Miquelon","pm","508"],["St Vincent & Grenadines","vc","1",20,["784"]],["Sudan","sd","249"],["Suriname","sr","597"],["Svalbard & Jan Mayen","sj","47",1,["79"]],["Sweden","se","46"],["Switzerland","ch","41"],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad & Tobago","tt","1",22,["868"]],["Tunisia","tn","216"],["Turkey","tr","90"],["Turkmenistan","tm","993"],["Turks & Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380"],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["US Virgin Islands","vi","1",24,["340"]],["Uzbekistan","uz","998"],["Vanuatu","vu","678"],["Vatican City","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681"],["Western Sahara","eh","212",1,["5288","5289"]],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["\xC5land Islands","ax","358",1,["18"]]],g=0;g<p.length;g++){var m=p[g];p[g]={name:m[0],iso2:m[1],dialCode:m[2],priority:m[3]||0,areaCodes:m[4]||null,nodeById:{}}}function C(s){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},e=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&e.push.apply(e,Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.forEach(function(i){P(s,i,t[i])})}return s}function P(s,n,t){return n=T(n),n in s?Object.defineProperty(s,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[n]=t,s}function x(s,n){return _(s)||L(s,n)||U(s,n)||O()}function O(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(s,n){if(s){if(typeof s=="string")return E(s,n);var t=Object.prototype.toString.call(s).slice(8,-1);if(t==="Object"&&s.constructor&&(t=s.constructor.name),t==="Map"||t==="Set")return Array.from(s);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return E(s,n)}}function E(s,n){(n==null||n>s.length)&&(n=s.length);for(var t=0,e=new Array(n);t<n;t++)e[t]=s[t];return e}function L(s,n){var t=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(t!=null){var e,i,o,r,a=[],l=!0,u=!1;try{if(o=(t=t.call(s)).next,n===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(e=o.call(t)).done)&&(a.push(e.value),a.length!==n);l=!0);}catch(h){u=!0,i=h}finally{try{if(!l&&t.return!=null&&(r=t.return(),Object(r)!==r))return}finally{if(u)throw i}}return a}}function _(s){if(Array.isArray(s))return s}function S(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function b(s,n){for(var t=0;t<n.length;t++){var e=n[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,T(e.key),e)}}function M(s,n,t){return n&&b(s.prototype,n),t&&b(s,t),Object.defineProperty(s,"prototype",{writable:!1}),s}function T(s){var n=q(s,"string");return typeof n=="symbol"?n:String(n)}function q(s,n){if(typeof s!="object"||s===null)return s;var t=s[Symbol.toPrimitive];if(t!==c){var e=t.call(s,n||"default");if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(s)}var k={getInstance:function(n){var t=n.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[t]},instances:{},documentReady:function(){return document.readyState==="complete"}};typeof window=="object"&&(window.intlTelInputGlobals=k);var Y=0,R={allowDropdown:!0,autoInsertDialCode:!1,autoPlaceholder:"polite",countrySearch:!0,containerClass:"",customPlaceholder:null,defaultToFirstCountry:!0,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:[],showFlags:!0,showSelectedDialCode:!1,useFullscreenPopup:typeof navigator<"u"&&typeof window<"u"?/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500:!1,utilsScript:""},J=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],D=function(n){var t=window.intlTelInputGlobals.instances;Object.values(t).forEach(function(e){return e[n]()})},Z=function(){function s(n){var t=arguments.length>1&&arguments[1]!==c?arguments[1]:{};S(this,s),this.id=Y++,this.telInput=n,this.activeItem=null,this.highlightedItem=null,this.options=Object.assign({},R,t),this.hadInitialPlaceholder=!!n.getAttribute("placeholder")}return M(s,[{key:"_init",value:function(){var t=this;this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!1),this.options.countrySearch&&!this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!0),this.options.nationalMode&&(this.options.autoInsertDialCode=!1),this.options.showSelectedDialCode&&(this.options.autoInsertDialCode=!1);var e=this.options.allowDropdown&&!this.options.showSelectedDialCode;if(!this.options.showFlags&&e&&(this.options.showFlags=!0),this.options.useFullscreenPopup&&!this.options.dropdownContainer&&(this.options.dropdownContainer=document.body),this.isRTL=!!this.telInput.closest("[dir=rtl]"),typeof Promise<"u"){var i=new Promise(function(r,a){t.resolveAutoCountryPromise=r,t.rejectAutoCountryPromise=a}),o=new Promise(function(r,a){t.resolveUtilsScriptPromise=r,t.rejectUtilsScriptPromise=a});this.promise=Promise.all([i,o])}else this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){};this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries(),this._translateCountryNames(),(this.options.onlyCountries.length||this.options.i18n)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(t,e,i){e.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=e.length),this.countryCodes.hasOwnProperty(e)||(this.countryCodes[e]=[]);for(var o=0;o<this.countryCodes[e].length;o++)if(this.countryCodes[e][o]===t)return;var r=i!==c?i:this.countryCodes[e].length;this.countryCodes[e][r]=t}},{key:"_processAllCountries",value:function(){if(this.options.onlyCountries.length){var t=this.options.onlyCountries.map(function(i){return i.toLowerCase()});this.countries=p.filter(function(i){return t.indexOf(i.iso2)>-1})}else if(this.options.excludeCountries.length){var e=this.options.excludeCountries.map(function(i){return i.toLowerCase()});this.countries=p.filter(function(i){return e.indexOf(i.iso2)===-1})}else this.countries=p}},{key:"_translateCountryNames",value:function(){for(var t=0;t<this.countries.length;t++){var e=this.countries[t].iso2.toLowerCase();this.options.i18n.hasOwnProperty(e)&&(this.countries[t].name=this.options.i18n[e])}}},{key:"_countryNameSort",value:function(t,e){return t.name<e.name?-1:t.name>e.name?1:0}},{key:"_processCountryCodes",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.countryCodes={};for(var t=0;t<this.countries.length;t++){var e=this.countries[t];this.dialCodes[e.dialCode]||(this.dialCodes[e.dialCode]=!0),this._addCountryCode(e.iso2,e.dialCode,e.priority)}for(var i=0;i<this.countries.length;i++){var o=this.countries[i];if(o.areaCodes)for(var r=this.countryCodes[o.dialCode][0],a=0;a<o.areaCodes.length;a++){for(var l=o.areaCodes[a],u=1;u<l.length;u++){var h=o.dialCode+l.substr(0,u);this._addCountryCode(r,h),this._addCountryCode(o.iso2,h)}this._addCountryCode(o.iso2,o.dialCode+l)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var t=0;t<this.options.preferredCountries.length;t++){var e=this.options.preferredCountries[t].toLowerCase(),i=this._getCountryData(e,!0);i&&this.preferredCountries.push(i)}}},{key:"_createEl",value:function(t,e,i){var o=document.createElement(t);return e&&Object.entries(e).forEach(function(r){var a=x(r,2),l=a[0],u=a[1];return o.setAttribute(l,u)}),i&&i.appendChild(o),o}},{key:"_generateMarkup",value:function(){this.telInput.classList.add("iti__tel-input"),!this.telInput.hasAttribute("autocomplete")&&!(this.telInput.form&&this.telInput.form.hasAttribute("autocomplete"))&&this.telInput.setAttribute("autocomplete","off");var t=this.options,e=t.allowDropdown,i=t.showSelectedDialCode,o=t.showFlags,r=t.containerClass,a=t.hiddenInput,l=t.dropdownContainer,u=t.fixDropdownWidth,h=t.useFullscreenPopup,y=t.countrySearch,v="iti";e&&(v+=" iti--allow-dropdown"),i&&(v+=" iti--show-selected-dial-code"),o&&(v+=" iti--show-flags"),r&&(v+=" ".concat(r)),h||(v+=" iti--inline-dropdown");var f=this._createEl("div",{class:v});this.telInput.parentNode.insertBefore(f,this.telInput);var w=e||o||i;if(w&&(this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},f)),f.appendChild(this.telInput),w&&(this.selectedFlag=this._createEl("div",C({class:"iti__selected-flag"},e&&{role:"combobox","aria-haspopup":"listbox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false","aria-label":this.options.i18n.selectedCountryAriaLabel||"Selected country"}),this.flagsContainer)),o&&(this.selectedFlagInner=this._createEl("div",{class:"iti__flag iti__globe"},this.selectedFlag)),this.selectedFlag&&this.telInput.disabled&&this.selectedFlag.setAttribute("aria-disabled","true"),i&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),e){this.telInput.disabled||this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow"},this.selectedFlag);var $=u?"":"iti--flexible-dropdown-width";if(this.dropdownContent=this._createEl("div",{class:"iti__dropdown-content iti__hide ".concat($)}),y&&(this.searchInput=this._createEl("input",{type:"text",class:"iti__search-input",placeholder:this.options.i18n.searchPlaceholder||"Search"},this.dropdownContent)),this.countryList=this._createEl("ul",{class:"iti__country-list",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":this.options.i18n.countryListAriaLabel||"List of countries"},this.dropdownContent),this.preferredCountries.length&&!y&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider","aria-hidden":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),l){var N="iti iti--container";h?N+=" iti--fullscreen-popup":N+=" iti--inline-dropdown",y&&(N+=" iti--country-search"),this.dropdown=this._createEl("div",{class:N}),this.dropdown.appendChild(this.dropdownContent)}else this.flagsContainer.appendChild(this.dropdownContent)}if(a){var B=this.telInput.getAttribute("name"),A=a(B),Q=A!==null&&typeof A=="object",I,j;if(Q?(I=A.phone||B,j=A.country||"".concat(I,"_country")):(I=A||B,j="".concat(I,"_country")),!I)return;this.hiddenInput=this._createEl("input",{type:"hidden",name:I}),this.hiddenInputCountry=this._createEl("input",{type:"hidden",name:j}),f.appendChild(this.hiddenInput),f.appendChild(this.hiddenInputCountry)}}},{key:"_appendListItems",value:function(t,e,i){for(var o=0;o<t.length;o++){var r=t[o],a=i?"-preferred":"",l=this._createEl("li",{id:"iti-".concat(this.id,"__item-").concat(r.iso2).concat(a),class:"iti__country ".concat(e),tabindex:"-1",role:"option","data-dial-code":r.dialCode,"data-country-code":r.iso2,"aria-selected":"false"},this.countryList);r.nodeById[this.id]=l;var u="";this.options.showFlags&&(u+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(r.iso2,"'></div></div>")),u+="<span class='iti__country-name'>".concat(r.name,"</span>"),u+="<span class='iti__dial-code'>+".concat(r.dialCode,"</span>"),l.insertAdjacentHTML("beforeend",u)}}},{key:"_setInitialState",value:function(){var t=arguments.length>0&&arguments[0]!==c?arguments[0]:!1,e=this.telInput.getAttribute("value"),i=this.telInput.value,o=e&&e.charAt(0)==="+"&&(!i||i.charAt(0)!=="+"),r=o?e:i,a=this._getDialCode(r),l=this._isRegionlessNanp(r),u=this.options,h=u.initialCountry,y=u.autoInsertDialCode,v=u.defaultToFirstCountry;if(a&&!l)this._updateFlagFromNumber(r);else if(h!=="auto"||t){var f=h?h.toLowerCase():"",w=f&&this._getCountryData(f,!0);w?this._setFlag(f):a&&l?this._setFlag("us"):v&&(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,r||this._setFlag(this.defaultCountry)),!r&&y&&(this.telInput.value="+".concat(this.selectedCountryData.dialCode))}r&&this._updateValFromNumber(r)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoInsertDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var t=this;this._handleHiddenInputSubmit=function(){t.hiddenInput.value=t.getNumber(),t.hiddenInputCountry.value=t.getSelectedCountryData().iso2},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_initDropdownListeners",value:function(){var t=this;this._handleLabelClick=function(i){t.dropdownContent.classList.contains("iti__hide")?t.telInput.focus():i.preventDefault()};var e=this.telInput.closest("label");e&&e.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){t.dropdownContent.classList.contains("iti__hide")&&!t.telInput.disabled&&!t.telInput.readOnly&&t._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(i){var o=t.dropdownContent.classList.contains("iti__hide");o&&["ArrowUp","ArrowDown"," ","Enter"].includes(i.key)&&(i.preventDefault(),i.stopPropagation(),t._showDropdown()),i.key==="Tab"&&t._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var t=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(t.options.utilsScript)}):this.resolveUtilsScriptPromise(),this.options.initialCountry==="auto"&&!this.selectedCountryData.iso2?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){var t=this;window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,typeof this.options.geoIpLookup=="function"&&this.options.geoIpLookup(function(){var e=arguments.length>0&&arguments[0]!==c?arguments[0]:"",i=e.toLowerCase(),o=i&&t._getCountryData(i,!0);o?(window.intlTelInputGlobals.autoCountry=i,setTimeout(function(){return D("handleAutoCountry")})):(t._setInitialState(!0),D("rejectAutoCountryPromise"))},function(){return D("rejectAutoCountryPromise")}))}},{key:"_initKeyListeners",value:function(){var t=this,e=!1;this._handleKeyEvent=function(i){if(t._updateFlagFromNumber(t.telInput.value)&&t._triggerCountryChange(),i&&i.data&&/[^+0-9]/.test(i.data)?e=!0:/[^+0-9]/.test(t.telInput.value)||(e=!1),t.options.formatAsYouType&&!e){var o=t.telInput.selectionStart,r=t.telInput.value.substring(0,o),a=r.replace(/[^+0-9]/g,"").length,l=i&&i.inputType==="deleteContentForward",u=t._formatNumberAsYouType(),h=t._translateCursorPosition(a,u,o,l);t.telInput.value=u,t.telInput.setSelectionRange(h,h)}},this.telInput.addEventListener("input",this._handleKeyEvent),this._handleClipboardEvent=function(){setTimeout(t._handleKeyEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_translateCursorPosition",value:function(t,e,i,o){if(i===0&&!o)return 0;for(var r=0,a=0;a<e.length;a++){if(/[+0-9]/.test(e[a])&&r++,r===t&&!o)return a+1;if(o&&r===t+1)return a}return e.length}},{key:"_cap",value:function(t){var e=this.telInput.getAttribute("maxlength");return e&&t.length>e?t.substr(0,e):t}},{key:"_initBlurListeners",value:function(){var t=this;this._handleSubmitOrBlurEvent=function(){t._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if(this.telInput.value.charAt(0)==="+"){var t=this._getNumeric(this.telInput.value);(!t||this.selectedCountryData.dialCode===t)&&(this.telInput.value="")}}},{key:"_getNumeric",value:function(t){return t.replace(/\D/g,"")}},{key:"_trigger",value:function(t){var e=new Event(t,{bubbles:!0,cancelable:!0});this.telInput.dispatchEvent(e)}},{key:"_showDropdown",value:function(){if(this.options.fixDropdownWidth&&(this.dropdownContent.style.width="".concat(this.telInput.offsetWidth,"px")),this.dropdownContent.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.options.countrySearch){var t=this.countryList.firstElementChild;t&&this._highlightListItem(t,!1),this.searchInput.focus()}else this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0));this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(t,e,i){i&&!t.classList.contains(e)?t.classList.add(e):!i&&t.classList.contains(e)&&t.classList.remove(e)}},{key:"_setDropdownPosition",value:function(){var t=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.options.useFullscreenPopup){var e=this.telInput.getBoundingClientRect(),i=document.documentElement.scrollTop,o=e.top+i,r=this.dropdownContent.offsetHeight,a=o+this.telInput.offsetHeight+r<i+window.innerHeight,l=o-r>i,u=!this.options.countrySearch&&!a&&l;if(this._toggleClass(this.dropdownContent,"iti__dropdown-content--dropup",u),this.options.dropdownContainer){var h=u?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(o+h,"px"),this.dropdown.style.left="".concat(e.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return t._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_bindDropdownListeners",value:function(){var t=this;this._handleMouseoverCountryList=function(l){var u=l.target.closest(".iti__country");u&&t._highlightListItem(u,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(l){var u=l.target.closest(".iti__country");u&&t._selectListItem(u)},this.countryList.addEventListener("click",this._handleClickCountryList);var e=!0;this._handleClickOffToClose=function(){e||t._closeDropdown(),e=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var i="",o=null;if(this._handleKeydownOnDropdown=function(l){["ArrowUp","ArrowDown","Enter","Escape"].includes(l.key)&&(l.preventDefault(),l.stopPropagation(),l.key==="ArrowUp"||l.key==="ArrowDown"?t._handleUpDownKey(l.key):l.key==="Enter"?t._handleEnterKey():l.key==="Escape"&&t._closeDropdown()),!t.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(l.key)&&(l.stopPropagation(),o&&clearTimeout(o),i+=l.key.toLowerCase(),t._searchForCountry(i),o=setTimeout(function(){i=""},1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch){var r=function(){var u=t.searchInput.value.trim();u?t._filterCountries(u):t._filterCountries("",!0)},a=null;this._handleSearchChange=function(){a&&clearTimeout(a),a=setTimeout(function(){r(),a=null},100)},this.searchInput.addEventListener("input",this._handleSearchChange),this.searchInput.addEventListener("click",function(l){return l.stopPropagation()})}}},{key:"_normaliseString",value:function(){var t=arguments.length>0&&arguments[0]!==c?arguments[0]:"";return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},{key:"_filterCountries",value:function(t){var e=arguments.length>1&&arguments[1]!==c?arguments[1]:!1,i=!0;this.countryList.innerHTML="";for(var o=this._normaliseString(t),r=0;r<this.countries.length;r++){var a=this.countries[r],l=this._normaliseString(a.name),u="+".concat(a.dialCode);(e||l.includes(o)||u.includes(o)||a.iso2.includes(o))&&(this.countryList.appendChild(a.nodeById[this.id]),i&&(this._highlightListItem(a.nodeById[this.id],!1),i=!1))}}},{key:"_handleUpDownKey",value:function(t){var e=t==="ArrowUp"?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;if(e?e.classList.contains("iti__divider")&&(e=t==="ArrowUp"?e.previousElementSibling:e.nextElementSibling):this.countryList.childElementCount>1&&(e=t==="ArrowUp"?this.countryList.lastElementChild:this.countryList.firstElementChild),e){var i=!this.options.countrySearch;this._highlightListItem(e,i),this.options.countrySearch&&this._scrollTo(e,!1)}}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(t){for(var e=0;e<this.countries.length;e++)if(this._startsWith(this.countries[e].name,t)){var i=this.countries[e].nodeById[this.id];this._highlightListItem(i,!1),this._scrollTo(i,!0);break}}},{key:"_startsWith",value:function(t,e){return t.substr(0,e.length).toLowerCase()===e}},{key:"_updateValFromNumber",value:function(t){var e=t;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var i=this.options.nationalMode||e.charAt(0)!=="+"&&!this.options.showSelectedDialCode,o=intlTelInputUtils.numberFormat,r=o.NATIONAL,a=o.INTERNATIONAL,l=i?r:a;e=intlTelInputUtils.formatNumber(e,this.selectedCountryData.iso2,l)}e=this._beforeSetNumber(e),this.telInput.value=e}},{key:"_updateFlagFromNumber",value:function(t){var e=t.indexOf("+"),i=e?t.substring(e):t,o=this.selectedCountryData.dialCode,r=o==="1";i&&r&&i.charAt(0)!=="+"&&(i.charAt(0)!=="1"&&(i="1".concat(i)),i="+".concat(i)),this.options.showSelectedDialCode&&o&&i.charAt(0)!=="+"&&(i="+".concat(o).concat(i));var a=this._getDialCode(i,!0),l=this._getNumeric(i),u=null;if(a){var h=this.countryCodes[this._getNumeric(a)],y=h.indexOf(this.selectedCountryData.iso2)!==-1&&l.length<=a.length-1,v=o==="1"&&this._isRegionlessNanp(l);if(!v&&!y){for(var f=0;f<h.length;f++)if(h[f]){u=h[f];break}}}else i.charAt(0)==="+"&&l.length?u="":(!i||i==="+")&&!this.selectedCountryData.iso2&&(u=this.defaultCountry);return u!==null?this._setFlag(u):!1}},{key:"_isRegionlessNanp",value:function(t){var e=this._getNumeric(t);if(e.charAt(0)==="1"){var i=e.substr(1,3);return J.indexOf(i)!==-1}return!1}},{key:"_highlightListItem",value:function(t,e){var i=this.highlightedItem;i&&i.classList.remove("iti__highlight"),this.highlightedItem=t,this.highlightedItem.classList.add("iti__highlight"),this.selectedFlag.setAttribute("aria-activedescendant",t.getAttribute("id")),e&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(t,e){for(var i=0;i<this.countries.length;i++)if(this.countries[i].iso2===t)return this.countries[i];if(e)return null;throw new Error("No country data for '".concat(t,"'"))}},{key:"_setFlag",value:function(t){var e=this.options,i=e.allowDropdown,o=e.showSelectedDialCode,r=e.showFlags,a=e.countrySearch,l=this.selectedCountryData.iso2?this.selectedCountryData:{};if(this.selectedCountryData=t?this._getCountryData(t,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),r){var u=t?"iti__".concat(t):"iti__globe";this.selectedFlagInner.setAttribute("class","iti__flag ".concat(u))}if(this._setSelectedCountryFlagTitleAttribute(t,o),o){var h=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=h;var y=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.isRTL?this.telInput.style.paddingRight="".concat(y+6,"px"):this.telInput.style.paddingLeft="".concat(y+6,"px")}if(this._updatePlaceholder(),i&&!a){var v=this.activeItem;if(v&&(v.classList.remove("iti__active"),v.setAttribute("aria-selected","false")),t){var f=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(t,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(t));f.setAttribute("aria-selected","true"),f.classList.add("iti__active"),this.activeItem=f}}return l.iso2!==t}},{key:"_setSelectedCountryFlagTitleAttribute",value:function(t,e){if(this.selectedFlag){var i;t&&!e?i="".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):t?i=this.selectedCountryData.name:i="Unknown",this.selectedFlag.setAttribute("title",i)}}},{key:"_getHiddenSelectedFlagWidth",value:function(){var t=this.telInput.parentNode.cloneNode();t.style.visibility="hidden",document.body.appendChild(t);var e=this.flagsContainer.cloneNode();t.appendChild(e);var i=this.selectedFlag.cloneNode(!0);e.appendChild(i);var o=i.offsetWidth;return t.parentNode.removeChild(t),o}},{key:"_updatePlaceholder",value:function(){var t=this.options.autoPlaceholder==="aggressive"||!this.hadInitialPlaceholder&&this.options.autoPlaceholder==="polite";if(window.intlTelInputUtils&&t){var e=intlTelInputUtils.numberType[this.options.placeholderNumberType],i=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,e):"";i=this._beforeSetNumber(i),typeof this.options.customPlaceholder=="function"&&(i=this.options.customPlaceholder(i,this.selectedCountryData)),this.telInput.setAttribute("placeholder",i)}}},{key:"_selectListItem",value:function(t){var e=this._setFlag(t.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(t.getAttribute("data-dial-code")),this.telInput.focus(),e&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.dropdownContent.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.selectedFlag.removeAttribute("aria-activedescendant"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch&&this.searchInput.removeEventListener("input",this._handleSearchChange),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.options.useFullscreenPopup||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(t,e){var i=this.countryList,o=document.documentElement.scrollTop,r=i.offsetHeight,a=i.getBoundingClientRect().top+o,l=a+r,u=t.offsetHeight,h=t.getBoundingClientRect().top+o,y=h+u,v=h-a+i.scrollTop,f=r/2-u/2;if(h<a)e&&(v-=f),i.scrollTop=v;else if(y>l){e&&(v+=f);var w=r-u;i.scrollTop=v-w}}},{key:"_updateDialCode",value:function(t){var e=this.telInput.value,i="+".concat(t),o;if(e.charAt(0)==="+"){var r=this._getDialCode(e);r?o=e.replace(r,i):o=i,this.telInput.value=o}else this.options.autoInsertDialCode&&(e?o=i+e:o=i,this.telInput.value=o)}},{key:"_getDialCode",value:function(t,e){var i="";if(t.charAt(0)==="+")for(var o="",r=0;r<t.length;r++){var a=t.charAt(r);if(!isNaN(parseInt(a,10))){if(o+=a,e)this.countryCodes[o]&&(i=t.substr(0,r+1));else if(this.dialCodes[o]){i=t.substr(0,r+1);break}if(o.length===this.countryCodeMaxLen)break}}return i}},{key:"_getFullNumber",value:function(){var t=this.telInput.value.trim(),e=this.selectedCountryData.dialCode,i,o=this._getNumeric(t);return this.options.showSelectedDialCode&&!this.options.nationalMode&&t.charAt(0)!=="+"&&e&&o?i="+".concat(e):i="",i+t}},{key:"_beforeSetNumber",value:function(t){var e=t;if(this.options.showSelectedDialCode){var i=this._getDialCode(e);if(i){i="+".concat(this.selectedCountryData.dialCode);var o=e[i.length]===" "||e[i.length]==="-"?i.length+1:i.length;e=e.substr(o)}}return this._cap(e)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"_formatNumberAsYouType",value:function(){var t=this._getFullNumber(),e=window.intlTelInputUtils?intlTelInputUtils.formatNumberAsYouType(t,this.selectedCountryData.iso2):t,i=this.selectedCountryData.dialCode;if(this.options.showSelectedDialCode&&!this.options.nationalMode&&this.telInput.value.charAt(0)!=="+"&&e.includes("+".concat(i))){var o=e.split("+".concat(i))[1]||"";return o.trim()}return e}},{key:"handleAutoCountry",value:function(){this.options.initialCountry==="auto"&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var t=this.telInput.form;if(this.options.allowDropdown){this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var e=this.telInput.closest("label");e&&e.removeEventListener("click",this._handleLabelClick)}this.hiddenInput&&t&&t.removeEventListener("submit",this._handleHiddenInputSubmit),this.options.autoInsertDialCode&&(t&&t.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)),this.telInput.removeEventListener("input",this._handleKeyEvent),this.telInput.removeEventListener("cut",this._handleClipboardEvent),this.telInput.removeEventListener("paste",this._handleClipboardEvent),this.telInput.removeAttribute("data-intl-tel-input-id");var i=this.telInput.parentNode;i.parentNode.insertBefore(this.telInput,i),i.parentNode.removeChild(i),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(t){if(window.intlTelInputUtils){var e=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),e,t)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var t=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),t)}return-99}},{key:"isValidNumber",value:function(){var t=this._getFullNumber();return window.intlTelInputUtils?intlTelInputUtils.isPossibleNumber(t,this.selectedCountryData.iso2):null}},{key:"isValidNumberPrecise",value:function(){var t=this._getFullNumber();return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(t,this.selectedCountryData.iso2):null}},{key:"setCountry",value:function(t){var e=t.toLowerCase();this.selectedCountryData.iso2!==e&&(this._setFlag(e),this._updateDialCode(this.selectedCountryData.dialCode),this._triggerCountryChange())}},{key:"setNumber",value:function(t){var e=this._updateFlagFromNumber(t);this._updateValFromNumber(t),e&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(t){this.options.placeholderNumberType=t,this._updatePlaceholder()}}]),s}();k.getCountryData=function(){return p};var K=function(n,t,e){var i=document.createElement("script");i.onload=function(){D("handleUtils"),t&&t()},i.onerror=function(){D("rejectUtilsScriptPromise"),e&&e()},i.className="iti-load-utils",i.async=!0,i.src=n,document.body.appendChild(i)};return k.loadUtils=function(s){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,typeof Promise<"u")return new Promise(function(n,t){return K(s,n,t)});K(s)}return null},k.defaults=R,k.version="19.5.1",function(s,n){var t=new Z(s,n);return t._init(),s.setAttribute("data-intl-tel-input-id",t.id),window.intlTelInputGlobals.instances[t.id]=t,t}}()})});var W=st(V());import at,{useRef as H,useEffect as lt}from"react";import d from"prop-types";var G=({initialValue:c,onChangeNumber:p,onChangeCountry:g,onChangeValidity:m,onChangeErrorCode:C,initOptions:P,className:x,disabled:O,onFocus:U,onBlur:E})=>{let L=H(null),_=H(null),S=()=>{let b=_.current.getNumber(),M=_.current.getSelectedCountryData().iso2;if(p(b),g(M),_.current.isValidNumber())m(!0),C(null);else{let T=_.current.getValidationError();m(!1),C(T)}};return lt(()=>{let b=L.current;return _.current=(0,W.default)(L.current,P),b.addEventListener("countrychange",S),()=>{b.removeEventListener("countrychange",S),_.current.destroy()}},[]),at.createElement("input",{type:"tel",ref:L,onInput:S,defaultValue:c,className:x,disabled:O,onFocus:U,onBlur:E})};G.propTypes={initialValue:d.string,onChangeNumber:d.func,onChangeCountry:d.func,onChangeValidity:d.func,onChangeErrorCode:d.func,initOptions:d.shape({allowDropdown:d.bool,autoInsertDialCode:d.bool,autoPlaceholder:d.string,containerClass:d.string,countrySearch:d.bool,customPlaceholder:d.func,dropdownContainer:d.node,excludeCountries:d.arrayOf(d.string),fixDropdownWidth:d.bool,formatAsYouType:d.bool,formatOnDisplay:d.bool,geoIpLookup:d.func,hiddenInput:d.func,i18n:d.objectOf(d.string),initialCountry:d.string,nationalMode:d.bool,onlyCountries:d.arrayOf(d.string),placeholderNumberType:d.string,preferredCountries:d.arrayOf(d.string),showFlags:d.bool,showSelectedDialCode:d.bool,useFullscreenPopup:d.bool,utilsScript:d.string}),className:d.string,disabled:d.bool,onFocus:d.func,onBlur:d.func};G.defaultProps={initialValue:"",onChangeNumber:()=>{},onChangeCountry:()=>{},onChangeValidity:()=>{},onChangeErrorCode:()=>{},initOptions:{},className:"",disabled:!1,onFocus:()=>{},onBlur:()=>{}};var pt=G;export{pt as default};
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(s,n){if(s){if(typeof s=="string")return E(s,n);var t=Object.prototype.toString.call(s).slice(8,-1);if(t==="Object"&&s.constructor&&(t=s.constructor.name),t==="Map"||t==="Set")return Array.from(s);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return E(s,n)}}function E(s,n){(n==null||n>s.length)&&(n=s.length);for(var t=0,e=new Array(n);t<n;t++)e[t]=s[t];return e}function L(s,n){var t=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(t!=null){var e,i,o,r,a=[],l=!0,u=!1;try{if(o=(t=t.call(s)).next,n===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(e=o.call(t)).done)&&(a.push(e.value),a.length!==n);l=!0);}catch(h){u=!0,i=h}finally{try{if(!l&&t.return!=null&&(r=t.return(),Object(r)!==r))return}finally{if(u)throw i}}return a}}function _(s){if(Array.isArray(s))return s}function S(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function b(s,n){for(var t=0;t<n.length;t++){var e=n[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,T(e.key),e)}}function M(s,n,t){return n&&b(s.prototype,n),t&&b(s,t),Object.defineProperty(s,"prototype",{writable:!1}),s}function T(s){var n=q(s,"string");return typeof n=="symbol"?n:String(n)}function q(s,n){if(typeof s!="object"||s===null)return s;var t=s[Symbol.toPrimitive];if(t!==c){var e=t.call(s,n||"default");if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(s)}var k={getInstance:function(n){var t=n.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[t]},instances:{},documentReady:function(){return document.readyState==="complete"}};typeof window=="object"&&(window.intlTelInputGlobals=k);var Y=0,R={allowDropdown:!0,autoInsertDialCode:!1,autoPlaceholder:"polite",countrySearch:!0,containerClass:"",customPlaceholder:null,defaultToFirstCountry:!0,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:[],showFlags:!0,showSelectedDialCode:!1,useFullscreenPopup:typeof navigator<"u"&&typeof window<"u"?/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500:!1,utilsScript:""},J=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],D=function(n){var t=window.intlTelInputGlobals.instances;Object.values(t).forEach(function(e){return e[n]()})},Z=function(){function s(n){var t=arguments.length>1&&arguments[1]!==c?arguments[1]:{};S(this,s),this.id=Y++,this.telInput=n,this.activeItem=null,this.highlightedItem=null,this.options=Object.assign({},R,t),this.hadInitialPlaceholder=!!n.getAttribute("placeholder")}return M(s,[{key:"_init",value:function(){var t=this;this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!1),this.options.countrySearch&&!this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!0),this.options.nationalMode&&(this.options.autoInsertDialCode=!1),this.options.showSelectedDialCode&&(this.options.autoInsertDialCode=!1);var e=this.options.allowDropdown&&!this.options.showSelectedDialCode;if(!this.options.showFlags&&e&&(this.options.showFlags=!0),this.options.useFullscreenPopup&&!this.options.dropdownContainer&&(this.options.dropdownContainer=document.body),this.isRTL=!!this.telInput.closest("[dir=rtl]"),typeof Promise<"u"){var i=new Promise(function(r,a){t.resolveAutoCountryPromise=r,t.rejectAutoCountryPromise=a}),o=new Promise(function(r,a){t.resolveUtilsScriptPromise=r,t.rejectUtilsScriptPromise=a});this.promise=Promise.all([i,o])}else this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){};this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries(),this._translateCountryNames(),(this.options.onlyCountries.length||this.options.i18n)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(t,e,i){e.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=e.length),this.countryCodes.hasOwnProperty(e)||(this.countryCodes[e]=[]);for(var o=0;o<this.countryCodes[e].length;o++)if(this.countryCodes[e][o]===t)return;var r=i!==c?i:this.countryCodes[e].length;this.countryCodes[e][r]=t}},{key:"_processAllCountries",value:function(){if(this.options.onlyCountries.length){var t=this.options.onlyCountries.map(function(i){return i.toLowerCase()});this.countries=p.filter(function(i){return t.indexOf(i.iso2)>-1})}else if(this.options.excludeCountries.length){var e=this.options.excludeCountries.map(function(i){return i.toLowerCase()});this.countries=p.filter(function(i){return e.indexOf(i.iso2)===-1})}else this.countries=p}},{key:"_translateCountryNames",value:function(){for(var t=0;t<this.countries.length;t++){var e=this.countries[t].iso2.toLowerCase();this.options.i18n.hasOwnProperty(e)&&(this.countries[t].name=this.options.i18n[e])}}},{key:"_countryNameSort",value:function(t,e){return t.name<e.name?-1:t.name>e.name?1:0}},{key:"_processCountryCodes",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.countryCodes={};for(var t=0;t<this.countries.length;t++){var e=this.countries[t];this.dialCodes[e.dialCode]||(this.dialCodes[e.dialCode]=!0),this._addCountryCode(e.iso2,e.dialCode,e.priority)}for(var i=0;i<this.countries.length;i++){var o=this.countries[i];if(o.areaCodes)for(var r=this.countryCodes[o.dialCode][0],a=0;a<o.areaCodes.length;a++){for(var l=o.areaCodes[a],u=1;u<l.length;u++){var h=o.dialCode+l.substr(0,u);this._addCountryCode(r,h),this._addCountryCode(o.iso2,h)}this._addCountryCode(o.iso2,o.dialCode+l)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var t=0;t<this.options.preferredCountries.length;t++){var e=this.options.preferredCountries[t].toLowerCase(),i=this._getCountryData(e,!0);i&&this.preferredCountries.push(i)}}},{key:"_createEl",value:function(t,e,i){var o=document.createElement(t);return e&&Object.entries(e).forEach(function(r){var a=x(r,2),l=a[0],u=a[1];return o.setAttribute(l,u)}),i&&i.appendChild(o),o}},{key:"_generateMarkup",value:function(){this.telInput.classList.add("iti__tel-input"),!this.telInput.hasAttribute("autocomplete")&&!(this.telInput.form&&this.telInput.form.hasAttribute("autocomplete"))&&this.telInput.setAttribute("autocomplete","off");var t=this.options,e=t.allowDropdown,i=t.showSelectedDialCode,o=t.showFlags,r=t.containerClass,a=t.hiddenInput,l=t.dropdownContainer,u=t.fixDropdownWidth,h=t.useFullscreenPopup,y=t.countrySearch,v="iti";e&&(v+=" iti--allow-dropdown"),i&&(v+=" iti--show-selected-dial-code"),o&&(v+=" iti--show-flags"),r&&(v+=" ".concat(r)),h||(v+=" iti--inline-dropdown");var f=this._createEl("div",{class:v});this.telInput.parentNode.insertBefore(f,this.telInput);var w=e||o||i;if(w&&(this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},f)),f.appendChild(this.telInput),w&&(this.selectedFlag=this._createEl("div",C({class:"iti__selected-flag"},e&&{role:"combobox","aria-haspopup":"listbox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false","aria-label":this.options.i18n.selectedCountryAriaLabel||"Selected country"}),this.flagsContainer)),o&&(this.selectedFlagInner=this._createEl("div",{class:"iti__flag iti__globe"},this.selectedFlag)),this.selectedFlag&&this.telInput.disabled&&this.selectedFlag.setAttribute("aria-disabled","true"),i&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),e){this.telInput.disabled||this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow"},this.selectedFlag);var $=u?"":"iti--flexible-dropdown-width";if(this.dropdownContent=this._createEl("div",{class:"iti__dropdown-content iti__hide ".concat($)}),y&&(this.searchInput=this._createEl("input",{type:"text",class:"iti__search-input",placeholder:this.options.i18n.searchPlaceholder||"Search"},this.dropdownContent)),this.countryList=this._createEl("ul",{class:"iti__country-list",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":this.options.i18n.countryListAriaLabel||"List of countries"},this.dropdownContent),this.preferredCountries.length&&!y&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider","aria-hidden":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),l){var N="iti iti--container";h?N+=" iti--fullscreen-popup":N+=" iti--inline-dropdown",y&&(N+=" iti--country-search"),this.dropdown=this._createEl("div",{class:N}),this.dropdown.appendChild(this.dropdownContent)}else this.flagsContainer.appendChild(this.dropdownContent)}if(a){var B=this.telInput.getAttribute("name"),A=a(B),Q=A!==null&&typeof A=="object",I,j;if(Q?(I=A.phone||B,j=A.country||"".concat(I,"_country")):(I=A||B,j="".concat(I,"_country")),!I)return;this.hiddenInput=this._createEl("input",{type:"hidden",name:I}),this.hiddenInputCountry=this._createEl("input",{type:"hidden",name:j}),f.appendChild(this.hiddenInput),f.appendChild(this.hiddenInputCountry)}}},{key:"_appendListItems",value:function(t,e,i){for(var o=0;o<t.length;o++){var r=t[o],a=i?"-preferred":"",l=this._createEl("li",{id:"iti-".concat(this.id,"__item-").concat(r.iso2).concat(a),class:"iti__country ".concat(e),tabindex:"-1",role:"option","data-dial-code":r.dialCode,"data-country-code":r.iso2,"aria-selected":"false"},this.countryList);r.nodeById[this.id]=l;var u="";this.options.showFlags&&(u+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(r.iso2,"'></div></div>")),u+="<span class='iti__country-name'>".concat(r.name,"</span>"),u+="<span class='iti__dial-code'>+".concat(r.dialCode,"</span>"),l.insertAdjacentHTML("beforeend",u)}}},{key:"_setInitialState",value:function(){var t=arguments.length>0&&arguments[0]!==c?arguments[0]:!1,e=this.telInput.getAttribute("value"),i=this.telInput.value,o=e&&e.charAt(0)==="+"&&(!i||i.charAt(0)!=="+"),r=o?e:i,a=this._getDialCode(r),l=this._isRegionlessNanp(r),u=this.options,h=u.initialCountry,y=u.autoInsertDialCode,v=u.defaultToFirstCountry;if(a&&!l)this._updateFlagFromNumber(r);else if(h!=="auto"||t){var f=h?h.toLowerCase():"",w=f&&this._getCountryData(f,!0);w?this._setFlag(f):a&&l?this._setFlag("us"):v&&(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,r||this._setFlag(this.defaultCountry)),!r&&y&&(this.telInput.value="+".concat(this.selectedCountryData.dialCode))}r&&this._updateValFromNumber(r)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoInsertDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var t=this;this._handleHiddenInputSubmit=function(){t.hiddenInput.value=t.getNumber(),t.hiddenInputCountry.value=t.getSelectedCountryData().iso2},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_initDropdownListeners",value:function(){var t=this;this._handleLabelClick=function(i){t.dropdownContent.classList.contains("iti__hide")?t.telInput.focus():i.preventDefault()};var e=this.telInput.closest("label");e&&e.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){t.dropdownContent.classList.contains("iti__hide")&&!t.telInput.disabled&&!t.telInput.readOnly&&t._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(i){var o=t.dropdownContent.classList.contains("iti__hide");o&&["ArrowUp","ArrowDown"," ","Enter"].includes(i.key)&&(i.preventDefault(),i.stopPropagation(),t._showDropdown()),i.key==="Tab"&&t._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var t=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(t.options.utilsScript)}):this.resolveUtilsScriptPromise(),this.options.initialCountry==="auto"&&!this.selectedCountryData.iso2?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){var t=this;window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,typeof this.options.geoIpLookup=="function"&&this.options.geoIpLookup(function(){var e=arguments.length>0&&arguments[0]!==c?arguments[0]:"",i=e.toLowerCase(),o=i&&t._getCountryData(i,!0);o?(window.intlTelInputGlobals.autoCountry=i,setTimeout(function(){return D("handleAutoCountry")})):(t._setInitialState(!0),D("rejectAutoCountryPromise"))},function(){return D("rejectAutoCountryPromise")}))}},{key:"_initKeyListeners",value:function(){var t=this,e=!1;this._handleKeyEvent=function(i){if(t._updateFlagFromNumber(t.telInput.value)&&t._triggerCountryChange(),i&&i.data&&/[^+0-9]/.test(i.data)?e=!0:/[^+0-9]/.test(t.telInput.value)||(e=!1),t.options.formatAsYouType&&!e){var o=t.telInput.selectionStart,r=t.telInput.value.substring(0,o),a=r.replace(/[^+0-9]/g,"").length,l=i&&i.inputType==="deleteContentForward",u=t._formatNumberAsYouType(),h=t._translateCursorPosition(a,u,o,l);t.telInput.value=u,t.telInput.setSelectionRange(h,h)}},this.telInput.addEventListener("input",this._handleKeyEvent),this._handleClipboardEvent=function(){setTimeout(t._handleKeyEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_translateCursorPosition",value:function(t,e,i,o){if(i===0&&!o)return 0;for(var r=0,a=0;a<e.length;a++){if(/[+0-9]/.test(e[a])&&r++,r===t&&!o)return a+1;if(o&&r===t+1)return a}return e.length}},{key:"_cap",value:function(t){var e=this.telInput.getAttribute("maxlength");return e&&t.length>e?t.substr(0,e):t}},{key:"_initBlurListeners",value:function(){var t=this;this._handleSubmitOrBlurEvent=function(){t._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if(this.telInput.value.charAt(0)==="+"){var t=this._getNumeric(this.telInput.value);(!t||this.selectedCountryData.dialCode===t)&&(this.telInput.value="")}}},{key:"_getNumeric",value:function(t){return t.replace(/\D/g,"")}},{key:"_trigger",value:function(t){var e=new Event(t,{bubbles:!0,cancelable:!0});this.telInput.dispatchEvent(e)}},{key:"_showDropdown",value:function(){if(this.options.fixDropdownWidth&&(this.dropdownContent.style.width="".concat(this.telInput.offsetWidth,"px")),this.dropdownContent.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.options.countrySearch){var t=this.countryList.firstElementChild;t&&this._highlightListItem(t,!1),this.searchInput.focus()}else this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0));this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(t,e,i){i&&!t.classList.contains(e)?t.classList.add(e):!i&&t.classList.contains(e)&&t.classList.remove(e)}},{key:"_setDropdownPosition",value:function(){var t=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.options.useFullscreenPopup){var e=this.telInput.getBoundingClientRect(),i=document.documentElement.scrollTop,o=e.top+i,r=this.dropdownContent.offsetHeight,a=o+this.telInput.offsetHeight+r<i+window.innerHeight,l=o-r>i,u=!this.options.countrySearch&&!a&&l;if(this._toggleClass(this.dropdownContent,"iti__dropdown-content--dropup",u),this.options.dropdownContainer){var h=u?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(o+h,"px"),this.dropdown.style.left="".concat(e.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return t._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_bindDropdownListeners",value:function(){var t=this;this._handleMouseoverCountryList=function(l){var u=l.target.closest(".iti__country");u&&t._highlightListItem(u,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(l){var u=l.target.closest(".iti__country");u&&t._selectListItem(u)},this.countryList.addEventListener("click",this._handleClickCountryList);var e=!0;this._handleClickOffToClose=function(){e||t._closeDropdown(),e=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var i="",o=null;if(this._handleKeydownOnDropdown=function(l){["ArrowUp","ArrowDown","Enter","Escape"].includes(l.key)&&(l.preventDefault(),l.stopPropagation(),l.key==="ArrowUp"||l.key==="ArrowDown"?t._handleUpDownKey(l.key):l.key==="Enter"?t._handleEnterKey():l.key==="Escape"&&t._closeDropdown()),!t.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(l.key)&&(l.stopPropagation(),o&&clearTimeout(o),i+=l.key.toLowerCase(),t._searchForCountry(i),o=setTimeout(function(){i=""},1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch){var r=function(){var u=t.searchInput.value.trim();u?t._filterCountries(u):t._filterCountries("",!0)},a=null;this._handleSearchChange=function(){a&&clearTimeout(a),a=setTimeout(function(){r(),a=null},100)},this.searchInput.addEventListener("input",this._handleSearchChange),this.searchInput.addEventListener("click",function(l){return l.stopPropagation()})}}},{key:"_normaliseString",value:function(){var t=arguments.length>0&&arguments[0]!==c?arguments[0]:"";return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},{key:"_filterCountries",value:function(t){var e=arguments.length>1&&arguments[1]!==c?arguments[1]:!1,i=!0;this.countryList.innerHTML="";for(var o=this._normaliseString(t),r=0;r<this.countries.length;r++){var a=this.countries[r],l=this._normaliseString(a.name),u="+".concat(a.dialCode);(e||l.includes(o)||u.includes(o)||a.iso2.includes(o))&&(this.countryList.appendChild(a.nodeById[this.id]),i&&(this._highlightListItem(a.nodeById[this.id],!1),i=!1))}}},{key:"_handleUpDownKey",value:function(t){var e=t==="ArrowUp"?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;if(e?e.classList.contains("iti__divider")&&(e=t==="ArrowUp"?e.previousElementSibling:e.nextElementSibling):this.countryList.childElementCount>1&&(e=t==="ArrowUp"?this.countryList.lastElementChild:this.countryList.firstElementChild),e){var i=!this.options.countrySearch;this._highlightListItem(e,i),this.options.countrySearch&&this._scrollTo(e,!1)}}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(t){for(var e=0;e<this.countries.length;e++)if(this._startsWith(this.countries[e].name,t)){var i=this.countries[e].nodeById[this.id];this._highlightListItem(i,!1),this._scrollTo(i,!0);break}}},{key:"_startsWith",value:function(t,e){return t.substr(0,e.length).toLowerCase()===e}},{key:"_updateValFromNumber",value:function(t){var e=t;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var i=this.options.nationalMode||e.charAt(0)!=="+"&&!this.options.showSelectedDialCode,o=intlTelInputUtils.numberFormat,r=o.NATIONAL,a=o.INTERNATIONAL,l=i?r:a;e=intlTelInputUtils.formatNumber(e,this.selectedCountryData.iso2,l)}e=this._beforeSetNumber(e),this.telInput.value=e}},{key:"_updateFlagFromNumber",value:function(t){var e=t.indexOf("+"),i=e?t.substring(e):t,o=this.selectedCountryData.dialCode,r=o==="1";i&&r&&i.charAt(0)!=="+"&&(i.charAt(0)!=="1"&&(i="1".concat(i)),i="+".concat(i)),this.options.showSelectedDialCode&&o&&i.charAt(0)!=="+"&&(i="+".concat(o).concat(i));var a=this._getDialCode(i,!0),l=this._getNumeric(i),u=null;if(a){var h=this.countryCodes[this._getNumeric(a)],y=h.indexOf(this.selectedCountryData.iso2)!==-1&&l.length<=a.length-1,v=o==="1"&&this._isRegionlessNanp(l);if(!v&&!y){for(var f=0;f<h.length;f++)if(h[f]){u=h[f];break}}}else i.charAt(0)==="+"&&l.length?u="":(!i||i==="+")&&!this.selectedCountryData.iso2&&(u=this.defaultCountry);return u!==null?this._setFlag(u):!1}},{key:"_isRegionlessNanp",value:function(t){var e=this._getNumeric(t);if(e.charAt(0)==="1"){var i=e.substr(1,3);return J.indexOf(i)!==-1}return!1}},{key:"_highlightListItem",value:function(t,e){var i=this.highlightedItem;i&&i.classList.remove("iti__highlight"),this.highlightedItem=t,this.highlightedItem.classList.add("iti__highlight"),this.selectedFlag.setAttribute("aria-activedescendant",t.getAttribute("id")),e&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(t,e){for(var i=0;i<this.countries.length;i++)if(this.countries[i].iso2===t)return this.countries[i];if(e)return null;throw new Error("No country data for '".concat(t,"'"))}},{key:"_setFlag",value:function(t){var e=this.options,i=e.allowDropdown,o=e.showSelectedDialCode,r=e.showFlags,a=e.countrySearch,l=this.selectedCountryData.iso2?this.selectedCountryData:{};if(this.selectedCountryData=t?this._getCountryData(t,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),r){var u=t?"iti__".concat(t):"iti__globe";this.selectedFlagInner.setAttribute("class","iti__flag ".concat(u))}if(this._setSelectedCountryFlagTitleAttribute(t,o),o){var h=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=h;var y=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.isRTL?this.telInput.style.paddingRight="".concat(y+6,"px"):this.telInput.style.paddingLeft="".concat(y+6,"px")}if(this._updatePlaceholder(),i&&!a){var v=this.activeItem;if(v&&(v.classList.remove("iti__active"),v.setAttribute("aria-selected","false")),t){var f=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(t,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(t));f.setAttribute("aria-selected","true"),f.classList.add("iti__active"),this.activeItem=f}}return l.iso2!==t}},{key:"_setSelectedCountryFlagTitleAttribute",value:function(t,e){if(this.selectedFlag){var i;t&&!e?i="".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):t?i=this.selectedCountryData.name:i="Unknown",this.selectedFlag.setAttribute("title",i)}}},{key:"_getHiddenSelectedFlagWidth",value:function(){var t=this.telInput.parentNode.cloneNode();t.style.visibility="hidden",document.body.appendChild(t);var e=this.flagsContainer.cloneNode();t.appendChild(e);var i=this.selectedFlag.cloneNode(!0);e.appendChild(i);var o=i.offsetWidth;return t.parentNode.removeChild(t),o}},{key:"_updatePlaceholder",value:function(){var t=this.options.autoPlaceholder==="aggressive"||!this.hadInitialPlaceholder&&this.options.autoPlaceholder==="polite";if(window.intlTelInputUtils&&t){var e=intlTelInputUtils.numberType[this.options.placeholderNumberType],i=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,e):"";i=this._beforeSetNumber(i),typeof this.options.customPlaceholder=="function"&&(i=this.options.customPlaceholder(i,this.selectedCountryData)),this.telInput.setAttribute("placeholder",i)}}},{key:"_selectListItem",value:function(t){var e=this._setFlag(t.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(t.getAttribute("data-dial-code")),this.telInput.focus(),e&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.dropdownContent.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.selectedFlag.removeAttribute("aria-activedescendant"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch&&this.searchInput.removeEventListener("input",this._handleSearchChange),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.options.useFullscreenPopup||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(t,e){var i=this.countryList,o=document.documentElement.scrollTop,r=i.offsetHeight,a=i.getBoundingClientRect().top+o,l=a+r,u=t.offsetHeight,h=t.getBoundingClientRect().top+o,y=h+u,v=h-a+i.scrollTop,f=r/2-u/2;if(h<a)e&&(v-=f),i.scrollTop=v;else if(y>l){e&&(v+=f);var w=r-u;i.scrollTop=v-w}}},{key:"_updateDialCode",value:function(t){var e=this.telInput.value,i="+".concat(t),o;if(e.charAt(0)==="+"){var r=this._getDialCode(e);r?o=e.replace(r,i):o=i,this.telInput.value=o}else this.options.autoInsertDialCode&&(e?o=i+e:o=i,this.telInput.value=o)}},{key:"_getDialCode",value:function(t,e){var i="";if(t.charAt(0)==="+")for(var o="",r=0;r<t.length;r++){var a=t.charAt(r);if(!isNaN(parseInt(a,10))){if(o+=a,e)this.countryCodes[o]&&(i=t.substr(0,r+1));else if(this.dialCodes[o]){i=t.substr(0,r+1);break}if(o.length===this.countryCodeMaxLen)break}}return i}},{key:"_getFullNumber",value:function(){var t=this.telInput.value.trim(),e=this.selectedCountryData.dialCode,i,o=this._getNumeric(t);return this.options.showSelectedDialCode&&!this.options.nationalMode&&t.charAt(0)!=="+"&&e&&o?i="+".concat(e):i="",i+t}},{key:"_beforeSetNumber",value:function(t){var e=t;if(this.options.showSelectedDialCode){var i=this._getDialCode(e);if(i){i="+".concat(this.selectedCountryData.dialCode);var o=e[i.length]===" "||e[i.length]==="-"?i.length+1:i.length;e=e.substr(o)}}return this._cap(e)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"_formatNumberAsYouType",value:function(){var t=this._getFullNumber(),e=window.intlTelInputUtils?intlTelInputUtils.formatNumberAsYouType(t,this.selectedCountryData.iso2):t,i=this.selectedCountryData.dialCode;if(this.options.showSelectedDialCode&&!this.options.nationalMode&&this.telInput.value.charAt(0)!=="+"&&e.includes("+".concat(i))){var o=e.split("+".concat(i))[1]||"";return o.trim()}return e}},{key:"handleAutoCountry",value:function(){this.options.initialCountry==="auto"&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var t=this.telInput.form;if(this.options.allowDropdown){this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var e=this.telInput.closest("label");e&&e.removeEventListener("click",this._handleLabelClick)}this.hiddenInput&&t&&t.removeEventListener("submit",this._handleHiddenInputSubmit),this.options.autoInsertDialCode&&(t&&t.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)),this.telInput.removeEventListener("input",this._handleKeyEvent),this.telInput.removeEventListener("cut",this._handleClipboardEvent),this.telInput.removeEventListener("paste",this._handleClipboardEvent),this.telInput.removeAttribute("data-intl-tel-input-id");var i=this.telInput.parentNode;i.parentNode.insertBefore(this.telInput,i),i.parentNode.removeChild(i),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(t){if(window.intlTelInputUtils){var e=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),e,t)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var t=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),t)}return-99}},{key:"isValidNumber",value:function(){var t=this._getFullNumber();return window.intlTelInputUtils?intlTelInputUtils.isPossibleNumber(t,this.selectedCountryData.iso2):null}},{key:"isValidNumberPrecise",value:function(){var t=this._getFullNumber();return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(t,this.selectedCountryData.iso2):null}},{key:"setCountry",value:function(t){var e=t.toLowerCase();this.selectedCountryData.iso2!==e&&(this._setFlag(e),this._updateDialCode(this.selectedCountryData.dialCode),this._triggerCountryChange())}},{key:"setNumber",value:function(t){var e=this._updateFlagFromNumber(t);this._updateValFromNumber(t),e&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(t){this.options.placeholderNumberType=t,this._updatePlaceholder()}}]),s}();k.getCountryData=function(){return p};var K=function(n,t,e){var i=document.createElement("script");i.onload=function(){D("handleUtils"),t&&t()},i.onerror=function(){D("rejectUtilsScriptPromise"),e&&e()},i.className="iti-load-utils",i.async=!0,i.src=n,document.body.appendChild(i)};return k.loadUtils=function(s){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,typeof Promise<"u")return new Promise(function(n,t){return K(s,n,t)});K(s)}return null},k.defaults=R,k.version="19.5.2",function(s,n){var t=new Z(s,n);return t._init(),s.setAttribute("data-intl-tel-input-id",t.id),window.intlTelInputGlobals.instances[t.id]=t,t}}()})});var W=st(V());import at,{useRef as H,useEffect as lt}from"react";import d from"prop-types";var G=({initialValue:c,onChangeNumber:p,onChangeCountry:g,onChangeValidity:m,onChangeErrorCode:C,initOptions:P,className:x,disabled:O,onFocus:U,onBlur:E})=>{let L=H(null),_=H(null),S=()=>{let b=_.current.getNumber(),M=_.current.getSelectedCountryData().iso2;if(p(b),g(M),_.current.isValidNumber())m(!0),C(null);else{let T=_.current.getValidationError();m(!1),C(T)}};return lt(()=>{let b=L.current;return _.current=(0,W.default)(L.current,P),b.addEventListener("countrychange",S),()=>{b.removeEventListener("countrychange",S),_.current.destroy()}},[]),at.createElement("input",{type:"tel",ref:L,onInput:S,defaultValue:c,className:x,disabled:O,onFocus:U,onBlur:E})};G.propTypes={initialValue:d.string,onChangeNumber:d.func,onChangeCountry:d.func,onChangeValidity:d.func,onChangeErrorCode:d.func,initOptions:d.shape({allowDropdown:d.bool,autoInsertDialCode:d.bool,autoPlaceholder:d.string,containerClass:d.string,countrySearch:d.bool,customPlaceholder:d.func,dropdownContainer:d.node,excludeCountries:d.arrayOf(d.string),fixDropdownWidth:d.bool,formatAsYouType:d.bool,formatOnDisplay:d.bool,geoIpLookup:d.func,hiddenInput:d.func,i18n:d.objectOf(d.string),initialCountry:d.string,nationalMode:d.bool,onlyCountries:d.arrayOf(d.string),placeholderNumberType:d.string,preferredCountries:d.arrayOf(d.string),showFlags:d.bool,showSelectedDialCode:d.bool,useFullscreenPopup:d.bool,utilsScript:d.string}),className:d.string,disabled:d.bool,onFocus:d.func,onBlur:d.func};G.defaultProps={initialValue:"",onChangeNumber:()=>{},onChangeCountry:()=>{},onChangeValidity:()=>{},onChangeErrorCode:()=>{},initOptions:{},className:"",disabled:!1,onFocus:()=>{},onBlur:()=>{}};var pt=G;export{pt as default};
//# sourceMappingURL=IntlTelInput.esm.js.map

@@ -65,3 +65,3 @@ # International Telephone Input [![Build Status](https://app.travis-ci.com/jackocnr/intl-tel-input.svg?branch=master)](https://app.travis-ci.com/jackocnr/intl-tel-input) <img src="https://img.shields.io/github/package-json/v/jackocnr/intl-tel-input.svg" /> <img src="https://img.shields.io/npm/dm/intl-tel-input.svg" />

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/css/intlTelInput.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.2/build/css/intlTelInput.css">
```

@@ -71,7 +71,7 @@

```html
<script src="https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/js/intlTelInput.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.2/build/js/intlTelInput.min.js"></script>
<script>
const input = document.querySelector("#phone");
window.intlTelInput(input, {
utilsScript: "https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/js/utils.js",
utilsScript: "https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.2/build/js/utils.js",
});

@@ -78,0 +78,0 @@ </script>

@@ -58,3 +58,3 @@ <p align="right">

Last demo update: v8.13.25.
Last demo update: v8.13.30.

@@ -61,0 +61,0 @@ Note: Even though the library (main branch/[maven release](https://repo1.maven.org/maven2/com/googlecode/libphonenumber/libphonenumber/8.12.56/))

@@ -153,3 +153,4 @@ # Copyright (C) 2013 The Libphonenumber Authors

14418|Cellular One
14419|Deltronics
144190|Paradise Mobile
144192|Deltronics
1473402|Affordable Island Communications

@@ -508,6 +509,2 @@ 147341|Digicel Grenada

186826|Digicel
1868266|bmobile
1868267|bmobile
1868268|bmobile
1868269|bmobile
186827|bmobile

@@ -514,0 +511,0 @@ 186828|bmobile

@@ -17,8 +17,4 @@ # Copyright (C) 2013 The Libphonenumber Authors

22940|Celtiis
22941|Celtiis
2294|Celtiis
22942|MTN
22943|Celtiis
22944|Celtiis
22945|Celtiis
22946|MTN

@@ -25,0 +21,0 @@ 2295|MTN

@@ -17,2 +17,3 @@ # Copyright (C) 2013 The Libphonenumber Authors

231330|West Africa Telecom
23142|Connect
231555|Lonestar Cell

@@ -19,0 +20,0 @@ 2316|Lonestar Cell

@@ -32,2 +32,3 @@ # Copyright (C) 2013 The Libphonenumber Authors

234706|MTN
234707|MTN
234708|Airtel

@@ -34,0 +35,0 @@ 234709|Multilinks

@@ -1,19 +0,7 @@

# Copyright (C) 2013 The Libphonenumber Authors
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
25670|Airtel
25671|UTL
256720|Smile
256724|Hamilton Telecom
256726|Tangerine
256728|Talkio
25673|Hamilton Telecom

@@ -20,0 +8,0 @@ 25674|Sure Telecom

@@ -282,3 +282,8 @@ # Copyright (C) 2013 The Libphonenumber Authors

3375707|Keyyo
3375714|AIF
3375708|SFR
3375709|SFR
3375710|SFR
3375711|SFR
3375712|SFR
3375714|SFR
3375715|AIF

@@ -285,0 +290,0 @@ 3375717|Keyyo

@@ -24,2 +24,3 @@ # Copyright (C) 2013 The Libphonenumber Authors

351639233|Digi Communications
351639234|G9 Telecom
35163929|NOS

@@ -29,2 +30,3 @@ 3516393|NOS

351659233|Digi Communications
351659234|G9 Telecom
35165929|NOS

@@ -50,2 +52,3 @@ 3516593|NOS

3519233|Digi Communications
3519234|G9 Telecom
351924|MEO

@@ -52,0 +55,0 @@ 351925|MEO

@@ -1,19 +0,1 @@

# Copyright (C) 2013 The Libphonenumber Authors
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# https://www.viestintavirasto.fi/en/internettelephone/numberingoftelecommunicationsnetworks/mobilenetworks/mobilenetworkareacodes.html
# Sonera and Tele Finland carriers are now Telia.
35840|Telia

@@ -28,2 +10,3 @@ 35841|DNA

3584325|NETTIA
3584326|Lancelot
358436|DNA

@@ -30,0 +13,0 @@ 358438|DNA

@@ -26,2 +26,3 @@ # Copyright (C) 2013 The Libphonenumber Authors

3859754|Lancelot Telecom
3859755|BSG
3859757|Mobile One

@@ -28,0 +29,0 @@ 38597595|YATECO

@@ -15,3 +15,4 @@ # Copyright (C) 2013 The Libphonenumber Authors

406|Vodafone
4062|Vodafone
4064|Orange
407000|Enigma-System

@@ -18,0 +19,0 @@ 407013|Lycamobile

@@ -52,2 +52,4 @@ # Copyright (C) 2013 The Libphonenumber Authors

4207059|T-Mobile
420706|DataCell
42071|O2
42072|O2

@@ -173,3 +175,3 @@ 4207300|T-Mobile

4207929|Tesco Mobile CR
42079390|T-Mobile
4207939|T-Mobile
4207940|O2

@@ -188,2 +190,3 @@ 4207941|O2

4207953|O2
4207954|Tesco Mobile CR
42079750|Dial Telecom

@@ -200,3 +203,3 @@ 4207976|T-Mobile

42079799|T-Mobile
42079900|MAXPROGRES
4207990|T-Mobile
4207991|T-Mobile

@@ -212,3 +215,5 @@ 42079920|METRONET

42079957|T-Mobile
42079958|GoMobil
42079979|miniTEL
42079999|T-Mobile
4207998|T-Mobile
4207999|T-Mobile

@@ -27,2 +27,3 @@ # Copyright (C) 2016 The Libphonenumber Authors

423661|Dimoco
423666|Datamobile AG
42373|Telecom Liechtenstein

@@ -29,0 +30,0 @@ 42374|First Mobile

@@ -165,5 +165,7 @@ # Copyright (C) 2013 The Libphonenumber Authors

474743|telenor norge
47475|altibox
474750|telenor norge
474751|telenor norge
47475|telenor norge
474756|altibox
474757|altibox
474758|altibox
474759|altibox
47476|telenor norge

@@ -250,6 +252,4 @@ 474769|telia

47927|telenor norge
47929|telenor norge
479297|ice norge
479298|ice norge
479299|ice norge
47929|ice norge
479290|telenor norge
47930|telia

@@ -256,0 +256,0 @@ 479310|telenor norge

@@ -15,4 +15,14 @@ # Copyright (C) 2013 The Libphonenumber Authors

482110|Plus
482111|Polska Spoka Gazownictwa Sp
482113|Polska Spoka Gazownictwa Sp
4821130|Plus
4821131|Polska Spoka Gazownictwa Sp
4821132|Polska Spoka Gazownictwa Sp
4821133|Polska Spoka Gazownictwa Sp
4821134|Polska Spoka Gazownictwa Sp
4821135|Polska Spoka Gazownictwa Sp
4821136|Plus
4821137|Plus
4821138|Plus
4821139|Plus
482114|Plus

@@ -42,2 +52,3 @@ 482115|Plus

4845959|TELESTRADA S.A.
484596|Plus
484598|Plus

@@ -215,3 +226,2 @@ 4850|Orange

4873991|AGILE TELECOM POLAND
4873992|MobiWeb Telecom Limited
4873993|SIA NetBalt

@@ -239,6 +249,12 @@ 4873997|Play

48785|Plus
487860|Plus
4878600|JMDI
4878601|Plus
4878602|Plus
4878603|Plus
4878604|Plus
4878605|Plus
4878606|Plus
4878607|Play
4878608|Play
4878609|Plus
487861|Play

@@ -254,3 +270,7 @@ 487862|Play

4878673|Plus
4878674|Plus
4878675|Plus
4878676|Plus
4878678|Play
4878679|Plus
487868|Orange

@@ -294,3 +314,10 @@ 487869|Orange

488843|Play
4888441|Plus
4888442|Plus
4888443|Plus
4888444|CARITAS
4888446|Plus
4888447|Plus
4888449|Plus
488845|Plus
488846|Play

@@ -297,0 +324,0 @@ 488847|Play

@@ -18,2 +18,3 @@ # Copyright (C) 2013 The Libphonenumber Authors

4915019|Tismi BV
4915020|Interactive digital media

@@ -30,3 +31,5 @@ 4915050|NAKA AG

491529|Vodafone/Truphone
4915555|Tismi BV
491531|Mtel
4915510|LEBARA
4915511|LEBARA
491556|1&1 Mobilfunk

@@ -33,0 +36,0 @@ 4915630|Multiconnect

@@ -73,1 +73,3 @@ # Copyright (C) 2017 The Libphonenumber Authors

59069135|Orange
590694|Digicel
590696|Digicel

@@ -54,2 +54,3 @@ # Copyright (C) 2015 The Libphonenumber Authors

59272|GTT
59273|E-Networks
59274|GTT

@@ -24,2 +24,3 @@ # Copyright (C) 2013 The Libphonenumber Authors

595986|Tigo
595987|Tigo
59599|Claro

@@ -82,2 +82,3 @@ # Copyright (C) 2013 The Libphonenumber Authors

61462|Telstra
61463|Telstra
61466|Optus

@@ -84,0 +85,0 @@ 61467|Telstra

@@ -21,2 +21,3 @@ # Copyright (C) 2013 The Libphonenumber Authors

64206|Voyager Internet Limted
64208|Vodafone
6421|Vodafone

@@ -23,0 +24,0 @@ 6422|2degrees

@@ -57,5 +57,9 @@ # Copyright (C) 2013 The Libphonenumber Authors

658071|SingTel
658080|Simba
658081|Simba
65808|Simba
658082|SingTel
658083|M1
658084|SingTel
658090|SingTel
658091|M1
658092|Simba
6581|StarHub

@@ -62,0 +66,0 @@ 65810|M1

@@ -20,2 +20,3 @@ # Copyright (C) 2013 The Libphonenumber Authors

67373|DSTCom
67374|Imagine
67377|DSTCom

@@ -22,0 +23,0 @@ 67381|Progresif Cellular

@@ -27,4 +27,5 @@ # Copyright (C) 2013 The Libphonenumber Authors

67578|bmobile
67581|DIGIVOIP
67582|Digicel
67581|Vodafone
67582|Vodafone
67583|Vodafone
67588|Digicel

@@ -15,2 +15,3 @@ # Copyright (C) 2020 The Libphonenumber Authors

67654|Toko Wireless
676554|Toko Wireless

@@ -17,0 +18,0 @@ 676555|Toko Wireless

@@ -17,5 +17,3 @@ # Copyright (C) 2019 The Libphonenumber Authors

6923|National Telecommunications Authority
692453|National Telecommunications Authority
692455|National Telecommunications Authority
692456|National Telecommunications Authority
6924|National Telecommunications Authority
69254|National Telecommunications Authority

@@ -15,3 +15,3 @@ # Copyright (C) 2013 The Libphonenumber Authors

843|Viettel Mobile
843|Viettel
8430|MobiFone

@@ -30,3 +30,3 @@ 8451|MobiFone

8485|Vinaphone
8486|Viettel Mobile
8486|Viettel
8487|Vinaphone

@@ -33,0 +33,0 @@ 8488|Vinaphone

@@ -26,4 +26,11 @@ # Copyright (C) 2013 The Libphonenumber Authors

852441|HKT
852442|Hutchison Telecom.
852443|HKT
852444|HKT
8524441|Hutchison Telecom.
8524442|Hutchison Telecom.
852445|HKT
852446|Hutchison Telecom.
852447|China Mobile
852448|Hutchison Telecom.
852460|China Unicom

@@ -294,2 +301,4 @@ 8524607|Multibyte

852699|China Mobile
852701|China Mobile
852702|Hutchison Telecom.
8527071|SmarTone

@@ -301,7 +310,13 @@ 8527072|SmarTone

8527076|China Mobile
8527077|Hutchison Telecom.
8527078|Hutchison Telecom.
852708|HKT
852709|Hutchison Telecom.
852840|China Mobile
852841|Hutchison Telecom.
852842|HKT
8528480|HKT
8528481|HKT
8528482|HKT
8528483|HKT
8528485|SmarTone

@@ -352,2 +367,3 @@ 8528486|SmarTone

852938|SmarTone
852939|HKT
852940|HKT

@@ -354,0 +370,0 @@ 852941|3

@@ -47,2 +47,4 @@ # Copyright (C) 2013 The Libphonenumber Authors

9736676|Batelco
9736678|Batelco
9736679|Batelco
973669|zain BH

@@ -15,2 +15,3 @@ # Copyright (C) 2013 The Libphonenumber Authors

97790|NCell
977960|STM Telecom

@@ -17,0 +18,0 @@ 977961|Smart Telecom

@@ -17,5 +17,25 @@ # Copyright (C) 2013 The Libphonenumber Authors

995500|Silknet
99550001|Cellfie
995500050|Silknet
995500051|Silknet
995500052|Silknet
995500053|Silknet
995500054|Silknet
995500055|Cellfie
995500056|Cellfie
995500057|Cellfie
995500058|Cellfie
995500059|Cellfie
99550010|Cellfie
99550011|Silknet
9955002|Silknet
9955003|Silknet
9955004|Silknet
99550050|MagtiCom
99550070|MyPhone
99550055|Silknet
99550070|Cellfie
99550077|Silknet
9955008|Silknet
99550090|Cellfie
99550099|Silknet
9955050|Silknet

@@ -62,6 +82,6 @@ 9955055|MagtiCom

995559999|DataHouse Global
99556|Veon
99556|Cellfie
995570|Silknet
995571|Veon
995574|Veon
995571|Cellfie
995574|Cellfie
9955750|Asanet

@@ -73,3 +93,3 @@ 9955755|Silknet

995577|Silknet
995579|Veon
995579|Cellfie
995580|Silknet

@@ -80,9 +100,9 @@ 995585|MagtiCom

995591|MagtiCom
995592|Veon
995592|Cellfie
995593|Silknet
995595|MagtiCom
995596|MagtiCom
995597|Veon
995597|Cellfie
995598|MagtiCom
995599|MagtiCom
99579|MagtiCom

@@ -20,4 +20,11 @@ # Copyright (C) 2016 The Libphonenumber Authors

852441|香港移动通讯
852442|和記電話有限公司
852443|香港移动通讯
852444|香港移动通讯
8524441|和記電話有限公司
8524442|和記電話有限公司
852445|香港移动通讯
852446|和記電話有限公司
852447|中国移动
852448|和記電話有限公司
852460|中国联通

@@ -288,2 +295,4 @@ 8524607|Multibyte

852699|中国移动
852701|中国移动
852702|和記電話有限公司
8527071|数码通

@@ -295,7 +304,13 @@ 8527072|数码通

8527076|中国移动
8527077|和記電話有限公司
8527078|和記電話有限公司
852708|香港移动通讯
852709|和記電話有限公司
852840|中国移动
852841|和記電話有限公司
852842|香港移动通讯
8528480|香港移动通讯
8528481|香港移动通讯
8528482|香港移动通讯
8528483|香港移动通讯
8528485|数码通

@@ -346,2 +361,3 @@ 8528486|数码通

852938|数码通
852939|香港移动通讯
852940|香港移动通讯

@@ -348,0 +364,0 @@ 852941|3

@@ -24,2 +24,54 @@ # Copyright (C) 2012 The Libphonenumber Authors

2342|Ibadan
234201|Lagos
2342030|Ado Ekiti
2342031|Ilorin
2342033|New Bussa
2342034|Akure
2342035|Osogbo
2342036|Ile Ife
2342037|Ijebu Ode
2342038|Oyo
2342039|Abeokuta
2342041|Wukari
2342042|Nsukka Enugu
2342043|Abakaliki
2342044|Makurdi
2342045|Ogoja
2342046|Onitsha
2342047|Lafia/Keffi
2342048|Awka
2342050|Ikare
2342051|Owoh
2342052|Benin
2342053|Warri
2342054|Sapele
2342055|Agbor
2342056|Asaba
2342057|Auchi
2342058|Lokoja
2342059|Okitipupa
2342060|Sokoto
2342062|Kaduna
2342064|Kano
2342065|Katsina
2342066|Minna
2342068|Birin Kebbi
2342069|Zaria
2342071|Azare
2342072|Gombe
2342073|Jos
2342074|Damaturu
2342075|Yola
2342076|Maiduguri
2342077|Bauchi
2342079|Jalingo
2342082|Aba
2342083|Owerri
2342084|Port Harcourt
2342085|Uyo
2342086|Ahoada
2342087|Calabar
2342088|Umuahia
2342089|Yenagoa
234209|Abuja
23430|Ado Ekiti

@@ -26,0 +78,0 @@ 23431|Ilorin

@@ -67,1 +67,2 @@ # Copyright (C) 2011 The Libphonenumber Authors

3589|Helsinki
35890|Uusimaa

@@ -301,2 +301,3 @@ # Copyright (C) 2017 The Libphonenumber Authors

52769|Morelos
52770|Cuernavaca/Emiliano Zapata/Temixco/Xochitepec/Jiutepec
52771|Pachuca/Real Del Monte, HGO

@@ -303,0 +304,0 @@ 52772|Actopan, HGO

@@ -329,9 +329,3 @@ # Copyright (C) 2011 The Libphonenumber Authors

543872|Salta, Salta
5438730|Tartagal, Salta
5438731|Tartagal, Salta
5438732|Tartagal, Salta
5438733|Tartagal, Salta
5438734|Tartagal, Salta
5438735|Tartagal, Salta
5438736|Tartagal, Salta
543873|Tartagal, Salta
543874|Salta, Salta

@@ -338,0 +332,0 @@ 543875|Salta, Salta

@@ -301,2 +301,3 @@ # Copyright (C) 2017 The Libphonenumber Authors

52769|Morelos
52770|Cuernavaca/Emiliano Zapata/Temixco/Xochitepec/Jiutepec
52771|Pachuca/Real del Monte, HGO

@@ -303,0 +304,0 @@ 52772|Actopan, HGO

@@ -331,9 +331,3 @@ # Copyright (C) 2011 The Libphonenumber Authors

543872|Salta, Salta
5438730|Tartagal, Salta
5438731|Tartagal, Salta
5438732|Tartagal, Salta
5438733|Tartagal, Salta
5438734|Tartagal, Salta
5438735|Tartagal, Salta
5438736|Tartagal, Salta
543873|Tartagal, Salta
543874|Salta, Salta

@@ -340,0 +334,0 @@ 543875|Salta, Salta

@@ -67,1 +67,2 @@ # Copyright (C) 2011 The Libphonenumber Authors

3589|Helsinki
35890|Uusimaa

@@ -67,1 +67,2 @@ # Copyright (C) 2011 The Libphonenumber Authors

3589|Helsingfors
35890|Nyland

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc